Class ResolveServiceResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.platform.registration.v1.ResolveServiceResponse
- All Implemented Interfaces:
ResolveServiceResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ResolveServiceResponse
extends com.google.protobuf.GeneratedMessage
implements ResolveServiceResponseOrBuilder
Response from service resolution containing the best available instance. Provides complete connection details for the selected instance along with metadata explaining the selection decision.Protobuf type
ai.pipestream.platform.registration.v1.ResolveServiceResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResponse from service resolution containing the best available instance.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Additional metadata from the selected instance.booleangetCapabilities(int index) Capabilities of the selected instance.com.google.protobuf.ByteStringgetCapabilitiesBytes(int index) Capabilities of the selected instance.intCapabilities of the selected instance.com.google.protobuf.ProtocolStringListCapabilities of the selected instance.static ResolveServiceResponsestatic final com.google.protobuf.Descriptors.DescriptorbooleangetFound()Whether a healthy instance was found.intNumber of healthy instances considered.getHost()Host of the selected instance.com.google.protobuf.ByteStringHost of the selected instance.Deprecated.intAdditional metadata from the selected instance.Additional metadata from the selected instance.getMetadataOrDefault(String key, String defaultValue) Additional metadata from the selected instance.getMetadataOrThrow(String key) Additional metadata from the selected instance.com.google.protobuf.Parser<ResolveServiceResponse> intgetPort()Port of the selected instance.com.google.protobuf.TimestampTimestamp when resolution occurred.com.google.protobuf.TimestampOrBuilderTimestamp when resolution occurred.Explanation of why this instance was selected.com.google.protobuf.ByteStringExplanation of why this instance was selected.intConsul service ID of the selected instance.com.google.protobuf.ByteStringConsul service ID of the selected instance.Service name that was resolved.com.google.protobuf.ByteStringService name that was resolved.getTags(int index) Tags associated with the selected instance.com.google.protobuf.ByteStringgetTagsBytes(int index) Tags associated with the selected instance.intTags associated with the selected instance.com.google.protobuf.ProtocolStringListTags associated with the selected instance.intTotal number of instances found (including unhealthy).Version of the selected instance.com.google.protobuf.ByteStringVersion of the selected instance.inthashCode()booleanTimestamp when resolution occurred.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(ResolveServiceResponse prototype) protected ResolveServiceResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ResolveServiceResponseparseDelimitedFrom(InputStream input) static ResolveServiceResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResolveServiceResponseparseFrom(byte[] data) static ResolveServiceResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResolveServiceResponseparseFrom(com.google.protobuf.ByteString data) static ResolveServiceResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResolveServiceResponseparseFrom(com.google.protobuf.CodedInputStream input) static ResolveServiceResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResolveServiceResponseparseFrom(InputStream input) static ResolveServiceResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResolveServiceResponseparseFrom(ByteBuffer data) static ResolveServiceResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ResolveServiceResponse> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FOUND_FIELD_NUMBER
public static final int FOUND_FIELD_NUMBER- See Also:
-
SERVICE_NAME_FIELD_NUMBER
public static final int SERVICE_NAME_FIELD_NUMBER- See Also:
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
SERVICE_ID_FIELD_NUMBER
public static final int SERVICE_ID_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
CAPABILITIES_FIELD_NUMBER
public static final int CAPABILITIES_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
TOTAL_INSTANCES_FIELD_NUMBER
public static final int TOTAL_INSTANCES_FIELD_NUMBER- See Also:
-
HEALTHY_INSTANCES_FIELD_NUMBER
public static final int HEALTHY_INSTANCES_FIELD_NUMBER- See Also:
-
SELECTION_REASON_FIELD_NUMBER
public static final int SELECTION_REASON_FIELD_NUMBER- See Also:
-
RESOLVED_AT_FIELD_NUMBER
public static final int RESOLVED_AT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getFound
public boolean getFound()Whether a healthy instance was found.
bool found = 1 [json_name = "found"];- Specified by:
getFoundin interfaceResolveServiceResponseOrBuilder- Returns:
- The found.
-
getServiceName
Service name that was resolved.
string service_name = 2 [json_name = "serviceName"];- Specified by:
getServiceNamein interfaceResolveServiceResponseOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()Service name that was resolved.
string service_name = 2 [json_name = "serviceName"];- Specified by:
getServiceNameBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for serviceName.
-
getHost
Host of the selected instance.
string host = 3 [json_name = "host"];- Specified by:
getHostin interfaceResolveServiceResponseOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()Host of the selected instance.
string host = 3 [json_name = "host"];- Specified by:
getHostBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for host.
-
getPort
public int getPort()Port of the selected instance.
int32 port = 4 [json_name = "port"];- Specified by:
getPortin interfaceResolveServiceResponseOrBuilder- Returns:
- The port.
-
getServiceId
Consul service ID of the selected instance.
string service_id = 5 [json_name = "serviceId"];- Specified by:
getServiceIdin interfaceResolveServiceResponseOrBuilder- Returns:
- The serviceId.
-
getServiceIdBytes
public com.google.protobuf.ByteString getServiceIdBytes()Consul service ID of the selected instance.
string service_id = 5 [json_name = "serviceId"];- Specified by:
getServiceIdBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for serviceId.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:ResolveServiceResponseOrBuilderAdditional metadata from the selected instance.
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataCountin interfaceResolveServiceResponseOrBuilder
-
containsMetadata
Additional metadata from the selected instance.
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
containsMetadatain interfaceResolveServiceResponseOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceResolveServiceResponseOrBuilder
-
getMetadataMap
Additional metadata from the selected instance.
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataMapin interfaceResolveServiceResponseOrBuilder
-
getMetadataOrDefault
Additional metadata from the selected instance.
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataOrDefaultin interfaceResolveServiceResponseOrBuilder
-
getMetadataOrThrow
Additional metadata from the selected instance.
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataOrThrowin interfaceResolveServiceResponseOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Tags associated with the selected instance.
repeated string tags = 7 [json_name = "tags"];- Specified by:
getTagsListin interfaceResolveServiceResponseOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Tags associated with the selected instance.
repeated string tags = 7 [json_name = "tags"];- Specified by:
getTagsCountin interfaceResolveServiceResponseOrBuilder- Returns:
- The count of tags.
-
getTags
Tags associated with the selected instance.
repeated string tags = 7 [json_name = "tags"];- Specified by:
getTagsin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Tags associated with the selected instance.
repeated string tags = 7 [json_name = "tags"];- Specified by:
getTagsBytesin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getCapabilitiesList
public com.google.protobuf.ProtocolStringList getCapabilitiesList()Capabilities of the selected instance.
repeated string capabilities = 8 [json_name = "capabilities"];- Specified by:
getCapabilitiesListin interfaceResolveServiceResponseOrBuilder- Returns:
- A list containing the capabilities.
-
getCapabilitiesCount
public int getCapabilitiesCount()Capabilities of the selected instance.
repeated string capabilities = 8 [json_name = "capabilities"];- Specified by:
getCapabilitiesCountin interfaceResolveServiceResponseOrBuilder- Returns:
- The count of capabilities.
-
getCapabilities
Capabilities of the selected instance.
repeated string capabilities = 8 [json_name = "capabilities"];- Specified by:
getCapabilitiesin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The capabilities at the given index.
-
getCapabilitiesBytes
public com.google.protobuf.ByteString getCapabilitiesBytes(int index) Capabilities of the selected instance.
repeated string capabilities = 8 [json_name = "capabilities"];- Specified by:
getCapabilitiesBytesin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the capabilities at the given index.
-
getVersion
Version of the selected instance.
string version = 9 [json_name = "version"];- Specified by:
getVersionin interfaceResolveServiceResponseOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Version of the selected instance.
string version = 9 [json_name = "version"];- Specified by:
getVersionBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for version.
-
getTotalInstances
public int getTotalInstances()Total number of instances found (including unhealthy).
int32 total_instances = 10 [json_name = "totalInstances"];- Specified by:
getTotalInstancesin interfaceResolveServiceResponseOrBuilder- Returns:
- The totalInstances.
-
getHealthyInstances
public int getHealthyInstances()Number of healthy instances considered.
int32 healthy_instances = 11 [json_name = "healthyInstances"];- Specified by:
getHealthyInstancesin interfaceResolveServiceResponseOrBuilder- Returns:
- The healthyInstances.
-
getSelectionReason
Explanation of why this instance was selected.
string selection_reason = 12 [json_name = "selectionReason"];- Specified by:
getSelectionReasonin interfaceResolveServiceResponseOrBuilder- Returns:
- The selectionReason.
-
getSelectionReasonBytes
public com.google.protobuf.ByteString getSelectionReasonBytes()Explanation of why this instance was selected.
string selection_reason = 12 [json_name = "selectionReason"];- Specified by:
getSelectionReasonBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for selectionReason.
-
hasResolvedAt
public boolean hasResolvedAt()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13 [json_name = "resolvedAt"];- Specified by:
hasResolvedAtin interfaceResolveServiceResponseOrBuilder- Returns:
- Whether the resolvedAt field is set.
-
getResolvedAt
public com.google.protobuf.Timestamp getResolvedAt()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13 [json_name = "resolvedAt"];- Specified by:
getResolvedAtin interfaceResolveServiceResponseOrBuilder- Returns:
- The resolvedAt.
-
getResolvedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getResolvedAtOrBuilder()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13 [json_name = "resolvedAt"];- Specified by:
getResolvedAtOrBuilderin interfaceResolveServiceResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ResolveServiceResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResolveServiceResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResolveServiceResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResolveServiceResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResolveServiceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResolveServiceResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ResolveServiceResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ResolveServiceResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ResolveServiceResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ResolveServiceResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ResolveServiceResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-