Class RegisterServiceRequest.Builder

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

public static final class RegisterServiceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RegisterServiceRequest.Builder> implements RegisterServiceRequestOrBuilder
 Request to register a service with the platform.

 Provides the information needed to register a service instance with Consul
 and make it discoverable to other platform components.
 
Protobuf type ai.pipestream.platform.registration.v1.RegisterServiceRequest
  • 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<RegisterServiceRequest.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RegisterServiceRequest.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<RegisterServiceRequest.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<RegisterServiceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public RegisterServiceRequest.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<RegisterServiceRequest.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<RegisterServiceRequest.Builder>
    • mergeFrom

      public RegisterServiceRequest.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<RegisterServiceRequest.Builder>
      Throws:
      IOException
    • getServiceName

      public String getServiceName()
       Logical service name (e.g., "mapping-service").
       
      string service_name = 1;
      Specified by:
      getServiceName in interface RegisterServiceRequestOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       Logical service name (e.g., "mapping-service").
       
      string service_name = 1;
      Specified by:
      getServiceNameBytes in interface RegisterServiceRequestOrBuilder
      Returns:
      The bytes for serviceName.
    • setServiceName

      public RegisterServiceRequest.Builder setServiceName(String value)
       Logical service name (e.g., "mapping-service").
       
      string service_name = 1;
      Parameters:
      value - The serviceName to set.
      Returns:
      This builder for chaining.
    • clearServiceName

      public RegisterServiceRequest.Builder clearServiceName()
       Logical service name (e.g., "mapping-service").
       
      string service_name = 1;
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public RegisterServiceRequest.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       Logical service name (e.g., "mapping-service").
       
      string service_name = 1;
      Parameters:
      value - The bytes for serviceName to set.
      Returns:
      This builder for chaining.
    • getHost

      public String getHost()
       Host where service is running.
       
      string host = 2;
      Specified by:
      getHost in interface RegisterServiceRequestOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Host where service is running.
       
      string host = 2;
      Specified by:
      getHostBytes in interface RegisterServiceRequestOrBuilder
      Returns:
      The bytes for host.
    • setHost

      public RegisterServiceRequest.Builder setHost(String value)
       Host where service is running.
       
      string host = 2;
      Parameters:
      value - The host to set.
      Returns:
      This builder for chaining.
    • clearHost

      public RegisterServiceRequest.Builder clearHost()
       Host where service is running.
       
      string host = 2;
      Returns:
      This builder for chaining.
    • setHostBytes

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

      public int getPort()
       gRPC port where service accepts connections.
       
      int32 port = 3;
      Specified by:
      getPort in interface RegisterServiceRequestOrBuilder
      Returns:
      The port.
    • setPort

      public RegisterServiceRequest.Builder setPort(int value)
       gRPC port where service accepts connections.
       
      int32 port = 3;
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public RegisterServiceRequest.Builder clearPort()
       gRPC port where service accepts connections.
       
      int32 port = 3;
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Service version (e.g., "1.2.3").
       
      string version = 4;
      Specified by:
      getVersion in interface RegisterServiceRequestOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Service version (e.g., "1.2.3").
       
      string version = 4;
      Specified by:
      getVersionBytes in interface RegisterServiceRequestOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public RegisterServiceRequest.Builder setVersion(String value)
       Service version (e.g., "1.2.3").
       
      string version = 4;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public RegisterServiceRequest.Builder clearVersion()
       Service version (e.g., "1.2.3").
       
      string version = 4;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public RegisterServiceRequest.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Service version (e.g., "1.2.3").
       
      string version = 4;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: RegisterServiceRequestOrBuilder
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
      Specified by:
      getMetadataCount in interface RegisterServiceRequestOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
      Specified by:
      containsMetadata in interface RegisterServiceRequestOrBuilder
    • getMetadata

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

      public Map<String,String> getMetadataMap()
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
      Specified by:
      getMetadataMap in interface RegisterServiceRequestOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
      Specified by:
      getMetadataOrDefault in interface RegisterServiceRequestOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
      Specified by:
      getMetadataOrThrow in interface RegisterServiceRequestOrBuilder
    • clearMetadata

      public RegisterServiceRequest.Builder clearMetadata()
    • removeMetadata

      public RegisterServiceRequest.Builder removeMetadata(String key)
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
    • getMutableMetadata

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

      public RegisterServiceRequest.Builder putMetadata(String key, String value)
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
    • putAllMetadata

      public RegisterServiceRequest.Builder putAllMetadata(Map<String,String> values)
       Additional metadata for service configuration.
       
      map<string, string> metadata = 5;
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Specified by:
      getTagsList in interface RegisterServiceRequestOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Specified by:
      getTagsCount in interface RegisterServiceRequestOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Specified by:
      getTags in interface RegisterServiceRequestOrBuilder
      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 for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Specified by:
      getTagsBytes in interface RegisterServiceRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public RegisterServiceRequest.Builder setTags(int index, String value)
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public RegisterServiceRequest.Builder addTags(String value)
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public RegisterServiceRequest.Builder addAllTags(Iterable<String> values)
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public RegisterServiceRequest.Builder clearTags()
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public RegisterServiceRequest.Builder addTagsBytes(com.google.protobuf.ByteString value)
       Tags for discovery and filtering (e.g., "production", "us-east-1").
       
      repeated string tags = 6;
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • getCapabilitiesList

      public com.google.protobuf.ProtocolStringList getCapabilitiesList()
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Specified by:
      getCapabilitiesList in interface RegisterServiceRequestOrBuilder
      Returns:
      A list containing the capabilities.
    • getCapabilitiesCount

      public int getCapabilitiesCount()
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Specified by:
      getCapabilitiesCount in interface RegisterServiceRequestOrBuilder
      Returns:
      The count of capabilities.
    • getCapabilities

      public String getCapabilities(int index)
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Specified by:
      getCapabilities in interface RegisterServiceRequestOrBuilder
      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 (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Specified by:
      getCapabilitiesBytes in interface RegisterServiceRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the capabilities at the given index.
    • setCapabilities

      public RegisterServiceRequest.Builder setCapabilities(int index, String value)
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Parameters:
      index - The index to set the value at.
      value - The capabilities to set.
      Returns:
      This builder for chaining.
    • addCapabilities

      public RegisterServiceRequest.Builder addCapabilities(String value)
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Parameters:
      value - The capabilities to add.
      Returns:
      This builder for chaining.
    • addAllCapabilities

      public RegisterServiceRequest.Builder addAllCapabilities(Iterable<String> values)
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Parameters:
      values - The capabilities to add.
      Returns:
      This builder for chaining.
    • clearCapabilities

      public RegisterServiceRequest.Builder clearCapabilities()
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Returns:
      This builder for chaining.
    • addCapabilitiesBytes

      public RegisterServiceRequest.Builder addCapabilitiesBytes(com.google.protobuf.ByteString value)
       Service capabilities (e.g., "document-storage", "search").
       
      repeated string capabilities = 7;
      Parameters:
      value - The bytes of the capabilities to add.
      Returns:
      This builder for chaining.