Class GetServiceResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.platform.registration.v1.GetServiceResponse
All Implemented Interfaces:
GetServiceResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class GetServiceResponse extends com.google.protobuf.GeneratedMessage implements GetServiceResponseOrBuilder
 Complete details for a registered service instance.

 Includes connection information, metadata, health status, and registration timestamps.
 
Protobuf type ai.pipestream.platform.registration.v1.GetServiceResponse
See Also:
  • Field Details

  • 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
    • getServiceName

      public String getServiceName()
       Logical service name.
       
      string service_name = 1 [json_name = "serviceName"];
      Specified by:
      getServiceName in interface GetServiceResponseOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       Logical service name.
       
      string service_name = 1 [json_name = "serviceName"];
      Specified by:
      getServiceNameBytes in interface GetServiceResponseOrBuilder
      Returns:
      The bytes for serviceName.
    • getServiceId

      public String getServiceId()
       Consul service ID for this specific instance.
       
      string service_id = 2 [json_name = "serviceId"];
      Specified by:
      getServiceId in interface GetServiceResponseOrBuilder
      Returns:
      The serviceId.
    • getServiceIdBytes

      public com.google.protobuf.ByteString getServiceIdBytes()
       Consul service ID for this specific instance.
       
      string service_id = 2 [json_name = "serviceId"];
      Specified by:
      getServiceIdBytes in interface GetServiceResponseOrBuilder
      Returns:
      The bytes for serviceId.
    • getHost

      public String getHost()
       Host where service is running.
       
      string host = 3 [json_name = "host"];
      Specified by:
      getHost in interface GetServiceResponseOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Host where service is running.
       
      string host = 3 [json_name = "host"];
      Specified by:
      getHostBytes in interface GetServiceResponseOrBuilder
      Returns:
      The bytes for host.
    • getPort

      public int getPort()
       Port where service accepts connections.
       
      int32 port = 4 [json_name = "port"];
      Specified by:
      getPort in interface GetServiceResponseOrBuilder
      Returns:
      The port.
    • getVersion

      public String getVersion()
       Service version.
       
      string version = 5 [json_name = "version"];
      Specified by:
      getVersion in interface GetServiceResponseOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Service version.
       
      string version = 5 [json_name = "version"];
      Specified by:
      getVersionBytes in interface GetServiceResponseOrBuilder
      Returns:
      The bytes for version.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: GetServiceResponseOrBuilder
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface GetServiceResponseOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface GetServiceResponseOrBuilder
    • getMetadata

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

      public Map<String,String> getMetadataMap()
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface GetServiceResponseOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface GetServiceResponseOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface GetServiceResponseOrBuilder
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Specified by:
      getTagsList in interface GetServiceResponseOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Specified by:
      getTagsCount in interface GetServiceResponseOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Specified by:
      getTags in interface GetServiceResponseOrBuilder
      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)
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Specified by:
      getTagsBytes in interface GetServiceResponseOrBuilder
      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()
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Specified by:
      getCapabilitiesList in interface GetServiceResponseOrBuilder
      Returns:
      A list containing the capabilities.
    • getCapabilitiesCount

      public int getCapabilitiesCount()
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Specified by:
      getCapabilitiesCount in interface GetServiceResponseOrBuilder
      Returns:
      The count of capabilities.
    • getCapabilities

      public String getCapabilities(int index)
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Specified by:
      getCapabilities in interface GetServiceResponseOrBuilder
      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)
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Specified by:
      getCapabilitiesBytes in interface GetServiceResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the capabilities at the given index.
    • getIsHealthy

      public boolean getIsHealthy()
       Whether this instance is currently healthy.
       
      bool is_healthy = 9 [json_name = "isHealthy"];
      Specified by:
      getIsHealthy in interface GetServiceResponseOrBuilder
      Returns:
      The isHealthy.
    • hasRegisteredAt

      public boolean hasRegisteredAt()
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];
      Specified by:
      hasRegisteredAt in interface GetServiceResponseOrBuilder
      Returns:
      Whether the registeredAt field is set.
    • getRegisteredAt

      public com.google.protobuf.Timestamp getRegisteredAt()
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];
      Specified by:
      getRegisteredAt in interface GetServiceResponseOrBuilder
      Returns:
      The registeredAt.
    • getRegisteredAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRegisteredAtOrBuilder()
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];
      Specified by:
      getRegisteredAtOrBuilder in interface GetServiceResponseOrBuilder
    • hasLastHealthCheck

      public boolean hasLastHealthCheck()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
      Specified by:
      hasLastHealthCheck in interface GetServiceResponseOrBuilder
      Returns:
      Whether the lastHealthCheck field is set.
    • getLastHealthCheck

      public com.google.protobuf.Timestamp getLastHealthCheck()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
      Specified by:
      getLastHealthCheck in interface GetServiceResponseOrBuilder
      Returns:
      The lastHealthCheck.
    • getLastHealthCheckOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastHealthCheckOrBuilder()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
      Specified by:
      getLastHealthCheckOrBuilder in interface GetServiceResponseOrBuilder
    • 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 GetServiceResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetServiceResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetServiceResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetServiceResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetServiceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GetServiceResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static GetServiceResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static GetServiceResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GetServiceResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GetServiceResponse.Builder newBuilder()
    • newBuilder

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

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

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

      public static GetServiceResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<GetServiceResponse> 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 GetServiceResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder