Class GetServiceResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GetServiceResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<GetServiceResponse.Builder>
ai.pipestream.platform.registration.v1.GetServiceResponse.Builder
All Implemented Interfaces:
GetServiceResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetServiceResponse

public static final class GetServiceResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetServiceResponse.Builder> 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
  • 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.Builder<GetServiceResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GetServiceResponse.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GetServiceResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GetServiceResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GetServiceResponse.Builder>
    • getDefaultInstanceForType

      public GetServiceResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public GetServiceResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetServiceResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GetServiceResponse.Builder>
    • mergeFrom

      public GetServiceResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetServiceResponse.Builder>
      Throws:
      IOException
    • 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.
    • setServiceName

      public GetServiceResponse.Builder setServiceName(String value)
       Logical service name.
       
      string service_name = 1 [json_name = "serviceName"];
      Parameters:
      value - The serviceName to set.
      Returns:
      This builder for chaining.
    • clearServiceName

      public GetServiceResponse.Builder clearServiceName()
       Logical service name.
       
      string service_name = 1 [json_name = "serviceName"];
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public GetServiceResponse.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       Logical service name.
       
      string service_name = 1 [json_name = "serviceName"];
      Parameters:
      value - The bytes for serviceName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setServiceId

      public GetServiceResponse.Builder setServiceId(String value)
       Consul service ID for this specific instance.
       
      string service_id = 2 [json_name = "serviceId"];
      Parameters:
      value - The serviceId to set.
      Returns:
      This builder for chaining.
    • clearServiceId

      public GetServiceResponse.Builder clearServiceId()
       Consul service ID for this specific instance.
       
      string service_id = 2 [json_name = "serviceId"];
      Returns:
      This builder for chaining.
    • setServiceIdBytes

      public GetServiceResponse.Builder setServiceIdBytes(com.google.protobuf.ByteString value)
       Consul service ID for this specific instance.
       
      string service_id = 2 [json_name = "serviceId"];
      Parameters:
      value - The bytes for serviceId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setHost

      public GetServiceResponse.Builder setHost(String value)
       Host where service is running.
       
      string host = 3 [json_name = "host"];
      Parameters:
      value - The host to set.
      Returns:
      This builder for chaining.
    • clearHost

      public GetServiceResponse.Builder clearHost()
       Host where service is running.
       
      string host = 3 [json_name = "host"];
      Returns:
      This builder for chaining.
    • setHostBytes

      public GetServiceResponse.Builder setHostBytes(com.google.protobuf.ByteString value)
       Host where service is running.
       
      string host = 3 [json_name = "host"];
      Parameters:
      value - The bytes for host to set.
      Returns:
      This builder for chaining.
    • getPort

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

      public GetServiceResponse.Builder setPort(int value)
       Port where service accepts connections.
       
      int32 port = 4 [json_name = "port"];
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public GetServiceResponse.Builder clearPort()
       Port where service accepts connections.
       
      int32 port = 4 [json_name = "port"];
      Returns:
      This builder for chaining.
    • 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.
    • setVersion

      public GetServiceResponse.Builder setVersion(String value)
       Service version.
       
      string version = 5 [json_name = "version"];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public GetServiceResponse.Builder clearVersion()
       Service version.
       
      string version = 5 [json_name = "version"];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public GetServiceResponse.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Service version.
       
      string version = 5 [json_name = "version"];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • 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
    • clearMetadata

      public GetServiceResponse.Builder clearMetadata()
    • removeMetadata

      public GetServiceResponse.Builder removeMetadata(String key)
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public GetServiceResponse.Builder putMetadata(String key, String value)
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • putAllMetadata

      public GetServiceResponse.Builder putAllMetadata(Map<String,String> values)
       Service metadata.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • 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.
    • setTags

      public GetServiceResponse.Builder setTags(int index, String value)
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public GetServiceResponse.Builder addTags(String value)
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public GetServiceResponse.Builder addAllTags(Iterable<String> values)
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public GetServiceResponse.Builder clearTags()
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Returns:
      This builder for chaining.
    • addTagsBytes

      public GetServiceResponse.Builder addTagsBytes(com.google.protobuf.ByteString value)
       Service tags for discovery.
       
      repeated string tags = 7 [json_name = "tags"];
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • 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.
    • setCapabilities

      public GetServiceResponse.Builder setCapabilities(int index, String value)
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Parameters:
      index - The index to set the value at.
      value - The capabilities to set.
      Returns:
      This builder for chaining.
    • addCapabilities

      public GetServiceResponse.Builder addCapabilities(String value)
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Parameters:
      value - The capabilities to add.
      Returns:
      This builder for chaining.
    • addAllCapabilities

      public GetServiceResponse.Builder addAllCapabilities(Iterable<String> values)
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Parameters:
      values - The capabilities to add.
      Returns:
      This builder for chaining.
    • clearCapabilities

      public GetServiceResponse.Builder clearCapabilities()
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Returns:
      This builder for chaining.
    • addCapabilitiesBytes

      public GetServiceResponse.Builder addCapabilitiesBytes(com.google.protobuf.ByteString value)
       Service capabilities.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Parameters:
      value - The bytes of the capabilities to add.
      Returns:
      This builder for chaining.
    • 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.
    • setIsHealthy

      public GetServiceResponse.Builder setIsHealthy(boolean value)
       Whether this instance is currently healthy.
       
      bool is_healthy = 9 [json_name = "isHealthy"];
      Parameters:
      value - The isHealthy to set.
      Returns:
      This builder for chaining.
    • clearIsHealthy

      public GetServiceResponse.Builder clearIsHealthy()
       Whether this instance is currently healthy.
       
      bool is_healthy = 9 [json_name = "isHealthy"];
      Returns:
      This builder for chaining.
    • 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.
    • setRegisteredAt

      public GetServiceResponse.Builder setRegisteredAt(com.google.protobuf.Timestamp value)
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];
    • setRegisteredAt

      public GetServiceResponse.Builder setRegisteredAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];
    • mergeRegisteredAt

      public GetServiceResponse.Builder mergeRegisteredAt(com.google.protobuf.Timestamp value)
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];
    • clearRegisteredAt

      public GetServiceResponse.Builder clearRegisteredAt()
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];
    • getRegisteredAtBuilder

      public com.google.protobuf.Timestamp.Builder getRegisteredAtBuilder()
       Timestamp when service was registered.
       
      .google.protobuf.Timestamp registered_at = 10 [json_name = "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.
    • setLastHealthCheck

      public GetServiceResponse.Builder setLastHealthCheck(com.google.protobuf.Timestamp value)
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
    • setLastHealthCheck

      public GetServiceResponse.Builder setLastHealthCheck(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
    • mergeLastHealthCheck

      public GetServiceResponse.Builder mergeLastHealthCheck(com.google.protobuf.Timestamp value)
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
    • clearLastHealthCheck

      public GetServiceResponse.Builder clearLastHealthCheck()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
    • getLastHealthCheckBuilder

      public com.google.protobuf.Timestamp.Builder getLastHealthCheckBuilder()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 11 [json_name = "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