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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getFound

      public boolean getFound()
       Whether a healthy instance was found.
       
      bool found = 1;
      Specified by:
      getFound in interface ResolveServiceResponseOrBuilder
      Returns:
      The found.
    • getServiceName

      public String getServiceName()
       Service name that was resolved.
       
      string service_name = 2;
      Specified by:
      getServiceName in interface ResolveServiceResponseOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       Service name that was resolved.
       
      string service_name = 2;
      Specified by:
      getServiceNameBytes in interface ResolveServiceResponseOrBuilder
      Returns:
      The bytes for serviceName.
    • getHost

      public String getHost()
       Host of the selected instance.
       
      string host = 3;
      Specified by:
      getHost in interface ResolveServiceResponseOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Host of the selected instance.
       
      string host = 3;
      Specified by:
      getHostBytes in interface ResolveServiceResponseOrBuilder
      Returns:
      The bytes for host.
    • getPort

      public int getPort()
       Port of the selected instance.
       
      int32 port = 4;
      Specified by:
      getPort in interface ResolveServiceResponseOrBuilder
      Returns:
      The port.
    • getServiceId

      public String getServiceId()
       Consul service ID of the selected instance.
       
      string service_id = 5;
      Specified by:
      getServiceId in interface ResolveServiceResponseOrBuilder
      Returns:
      The serviceId.
    • getServiceIdBytes

      public com.google.protobuf.ByteString getServiceIdBytes()
       Consul service ID of the selected instance.
       
      string service_id = 5;
      Specified by:
      getServiceIdBytes in interface ResolveServiceResponseOrBuilder
      Returns:
      The bytes for serviceId.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: ResolveServiceResponseOrBuilder
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataCount in interface ResolveServiceResponseOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6;
      Specified by:
      containsMetadata in interface ResolveServiceResponseOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface ResolveServiceResponseOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataMap in interface ResolveServiceResponseOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataOrDefault in interface ResolveServiceResponseOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataOrThrow in interface ResolveServiceResponseOrBuilder
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       Tags associated with the selected instance.
       
      repeated string tags = 7;
      Specified by:
      getTagsList in interface ResolveServiceResponseOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Tags associated with the selected instance.
       
      repeated string tags = 7;
      Specified by:
      getTagsCount in interface ResolveServiceResponseOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Tags associated with the selected instance.
       
      repeated string tags = 7;
      Specified by:
      getTags in interface ResolveServiceResponseOrBuilder
      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;
      Specified by:
      getTagsBytes in interface ResolveServiceResponseOrBuilder
      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;
      Specified by:
      getCapabilitiesList in interface ResolveServiceResponseOrBuilder
      Returns:
      A list containing the capabilities.
    • getCapabilitiesCount

      public int getCapabilitiesCount()
       Capabilities of the selected instance.
       
      repeated string capabilities = 8;
      Specified by:
      getCapabilitiesCount in interface ResolveServiceResponseOrBuilder
      Returns:
      The count of capabilities.
    • getCapabilities

      public String getCapabilities(int index)
       Capabilities of the selected instance.
       
      repeated string capabilities = 8;
      Specified by:
      getCapabilities in interface ResolveServiceResponseOrBuilder
      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;
      Specified by:
      getCapabilitiesBytes in interface ResolveServiceResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the capabilities at the given index.
    • getVersion

      public String getVersion()
       Version of the selected instance.
       
      string version = 9;
      Specified by:
      getVersion in interface ResolveServiceResponseOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Version of the selected instance.
       
      string version = 9;
      Specified by:
      getVersionBytes in interface ResolveServiceResponseOrBuilder
      Returns:
      The bytes for version.
    • getTotalInstances

      public int getTotalInstances()
       Total number of instances found (including unhealthy).
       
      int32 total_instances = 10;
      Specified by:
      getTotalInstances in interface ResolveServiceResponseOrBuilder
      Returns:
      The totalInstances.
    • getHealthyInstances

      public int getHealthyInstances()
       Number of healthy instances considered.
       
      int32 healthy_instances = 11;
      Specified by:
      getHealthyInstances in interface ResolveServiceResponseOrBuilder
      Returns:
      The healthyInstances.
    • getSelectionReason

      public String getSelectionReason()
       Explanation of why this instance was selected.
       
      string selection_reason = 12;
      Specified by:
      getSelectionReason in interface ResolveServiceResponseOrBuilder
      Returns:
      The selectionReason.
    • getSelectionReasonBytes

      public com.google.protobuf.ByteString getSelectionReasonBytes()
       Explanation of why this instance was selected.
       
      string selection_reason = 12;
      Specified by:
      getSelectionReasonBytes in interface ResolveServiceResponseOrBuilder
      Returns:
      The bytes for selectionReason.
    • hasResolvedAt

      public boolean hasResolvedAt()
       Timestamp when resolution occurred.
       
      .google.protobuf.Timestamp resolved_at = 13;
      Specified by:
      hasResolvedAt in interface ResolveServiceResponseOrBuilder
      Returns:
      Whether the resolvedAt field is set.
    • getResolvedAt

      public com.google.protobuf.Timestamp getResolvedAt()
       Timestamp when resolution occurred.
       
      .google.protobuf.Timestamp resolved_at = 13;
      Specified by:
      getResolvedAt in interface ResolveServiceResponseOrBuilder
      Returns:
      The resolvedAt.
    • getResolvedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getResolvedAtOrBuilder()
       Timestamp when resolution occurred.
       
      .google.protobuf.Timestamp resolved_at = 13;
      Specified by:
      getResolvedAtOrBuilder in interface ResolveServiceResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static ResolveServiceResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResolveServiceResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResolveServiceResponse parseDelimitedFrom(InputStream input) throws IOException
      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

      public ResolveServiceResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ResolveServiceResponse.Builder newBuilder()
    • newBuilder

      public static ResolveServiceResponse.Builder newBuilder(ResolveServiceResponse prototype)
    • toBuilder

      public ResolveServiceResponse.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ResolveServiceResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ResolveServiceResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ResolveServiceResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<ResolveServiceResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ResolveServiceResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder