Class GetModuleResponse.Builder

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

public static final class GetModuleResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetModuleResponse.Builder> implements GetModuleResponseOrBuilder
 Complete details for a registered module instance.

 Extends service details with module-specific information including
 input/output formats and document type support.
 
Protobuf type ai.pipestream.platform.registration.v1.GetModuleResponse
  • 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<GetModuleResponse.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public GetModuleResponse.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<GetModuleResponse.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<GetModuleResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GetModuleResponse.Builder mergeFrom(GetModuleResponse other)
    • isInitialized

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

      public GetModuleResponse.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<GetModuleResponse.Builder>
      Throws:
      IOException
    • getModuleName

      public String getModuleName()
       Module name.
       
      string module_name = 1;
      Specified by:
      getModuleName in interface GetModuleResponseOrBuilder
      Returns:
      The moduleName.
    • getModuleNameBytes

      public com.google.protobuf.ByteString getModuleNameBytes()
       Module name.
       
      string module_name = 1;
      Specified by:
      getModuleNameBytes in interface GetModuleResponseOrBuilder
      Returns:
      The bytes for moduleName.
    • setModuleName

      public GetModuleResponse.Builder setModuleName(String value)
       Module name.
       
      string module_name = 1;
      Parameters:
      value - The moduleName to set.
      Returns:
      This builder for chaining.
    • clearModuleName

      public GetModuleResponse.Builder clearModuleName()
       Module name.
       
      string module_name = 1;
      Returns:
      This builder for chaining.
    • setModuleNameBytes

      public GetModuleResponse.Builder setModuleNameBytes(com.google.protobuf.ByteString value)
       Module name.
       
      string module_name = 1;
      Parameters:
      value - The bytes for moduleName to set.
      Returns:
      This builder for chaining.
    • getServiceId

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

      public com.google.protobuf.ByteString getServiceIdBytes()
       Consul service ID for this specific instance.
       
      string service_id = 2;
      Specified by:
      getServiceIdBytes in interface GetModuleResponseOrBuilder
      Returns:
      The bytes for serviceId.
    • setServiceId

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

      public GetModuleResponse.Builder clearServiceId()
       Consul service ID for this specific instance.
       
      string service_id = 2;
      Returns:
      This builder for chaining.
    • setServiceIdBytes

      public GetModuleResponse.Builder setServiceIdBytes(com.google.protobuf.ByteString value)
       Consul service ID for this specific instance.
       
      string service_id = 2;
      Parameters:
      value - The bytes for serviceId to set.
      Returns:
      This builder for chaining.
    • getHost

      public String getHost()
       Host where module is running.
       
      string host = 3;
      Specified by:
      getHost in interface GetModuleResponseOrBuilder
      Returns:
      The host.
    • getHostBytes

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

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

      public GetModuleResponse.Builder clearHost()
       Host where module is running.
       
      string host = 3;
      Returns:
      This builder for chaining.
    • setHostBytes

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

      public int getPort()
       Port where module accepts connections.
       
      int32 port = 4;
      Specified by:
      getPort in interface GetModuleResponseOrBuilder
      Returns:
      The port.
    • setPort

      public GetModuleResponse.Builder setPort(int value)
       Port where module accepts connections.
       
      int32 port = 4;
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public GetModuleResponse.Builder clearPort()
       Port where module accepts connections.
       
      int32 port = 4;
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Module version.
       
      string version = 5;
      Specified by:
      getVersion in interface GetModuleResponseOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Module version.
       
      string version = 5;
      Specified by:
      getVersionBytes in interface GetModuleResponseOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public GetModuleResponse.Builder setVersion(String value)
       Module version.
       
      string version = 5;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public GetModuleResponse.Builder clearVersion()
       Module version.
       
      string version = 5;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public GetModuleResponse.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Module version.
       
      string version = 5;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: GetModuleResponseOrBuilder
       Module metadata.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataCount in interface GetModuleResponseOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Module metadata.
       
      map<string, string> metadata = 6;
      Specified by:
      containsMetadata in interface GetModuleResponseOrBuilder
    • getMetadata

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

      public Map<String,String> getMetadataMap()
       Module metadata.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataMap in interface GetModuleResponseOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Module metadata.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataOrDefault in interface GetModuleResponseOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Module metadata.
       
      map<string, string> metadata = 6;
      Specified by:
      getMetadataOrThrow in interface GetModuleResponseOrBuilder
    • clearMetadata

      public GetModuleResponse.Builder clearMetadata()
    • removeMetadata

      public GetModuleResponse.Builder removeMetadata(String key)
       Module metadata.
       
      map<string, string> metadata = 6;
    • getMutableMetadata

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

      public GetModuleResponse.Builder putMetadata(String key, String value)
       Module metadata.
       
      map<string, string> metadata = 6;
    • putAllMetadata

      public GetModuleResponse.Builder putAllMetadata(Map<String,String> values)
       Module metadata.
       
      map<string, string> metadata = 6;
    • getInputFormat

      public String getInputFormat()
       Input format expected by module (e.g., "PipeDoc", "text/plain").
       
      string input_format = 7;
      Specified by:
      getInputFormat in interface GetModuleResponseOrBuilder
      Returns:
      The inputFormat.
    • getInputFormatBytes

      public com.google.protobuf.ByteString getInputFormatBytes()
       Input format expected by module (e.g., "PipeDoc", "text/plain").
       
      string input_format = 7;
      Specified by:
      getInputFormatBytes in interface GetModuleResponseOrBuilder
      Returns:
      The bytes for inputFormat.
    • setInputFormat

      public GetModuleResponse.Builder setInputFormat(String value)
       Input format expected by module (e.g., "PipeDoc", "text/plain").
       
      string input_format = 7;
      Parameters:
      value - The inputFormat to set.
      Returns:
      This builder for chaining.
    • clearInputFormat

      public GetModuleResponse.Builder clearInputFormat()
       Input format expected by module (e.g., "PipeDoc", "text/plain").
       
      string input_format = 7;
      Returns:
      This builder for chaining.
    • setInputFormatBytes

      public GetModuleResponse.Builder setInputFormatBytes(com.google.protobuf.ByteString value)
       Input format expected by module (e.g., "PipeDoc", "text/plain").
       
      string input_format = 7;
      Parameters:
      value - The bytes for inputFormat to set.
      Returns:
      This builder for chaining.
    • getOutputFormat

      public String getOutputFormat()
       Output format produced by module (e.g., "PipeDoc", "application/json").
       
      string output_format = 8;
      Specified by:
      getOutputFormat in interface GetModuleResponseOrBuilder
      Returns:
      The outputFormat.
    • getOutputFormatBytes

      public com.google.protobuf.ByteString getOutputFormatBytes()
       Output format produced by module (e.g., "PipeDoc", "application/json").
       
      string output_format = 8;
      Specified by:
      getOutputFormatBytes in interface GetModuleResponseOrBuilder
      Returns:
      The bytes for outputFormat.
    • setOutputFormat

      public GetModuleResponse.Builder setOutputFormat(String value)
       Output format produced by module (e.g., "PipeDoc", "application/json").
       
      string output_format = 8;
      Parameters:
      value - The outputFormat to set.
      Returns:
      This builder for chaining.
    • clearOutputFormat

      public GetModuleResponse.Builder clearOutputFormat()
       Output format produced by module (e.g., "PipeDoc", "application/json").
       
      string output_format = 8;
      Returns:
      This builder for chaining.
    • setOutputFormatBytes

      public GetModuleResponse.Builder setOutputFormatBytes(com.google.protobuf.ByteString value)
       Output format produced by module (e.g., "PipeDoc", "application/json").
       
      string output_format = 8;
      Parameters:
      value - The bytes for outputFormat to set.
      Returns:
      This builder for chaining.
    • getDocumentTypesList

      public com.google.protobuf.ProtocolStringList getDocumentTypesList()
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Specified by:
      getDocumentTypesList in interface GetModuleResponseOrBuilder
      Returns:
      A list containing the documentTypes.
    • getDocumentTypesCount

      public int getDocumentTypesCount()
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Specified by:
      getDocumentTypesCount in interface GetModuleResponseOrBuilder
      Returns:
      The count of documentTypes.
    • getDocumentTypes

      public String getDocumentTypes(int index)
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Specified by:
      getDocumentTypes in interface GetModuleResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The documentTypes at the given index.
    • getDocumentTypesBytes

      public com.google.protobuf.ByteString getDocumentTypesBytes(int index)
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Specified by:
      getDocumentTypesBytes in interface GetModuleResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the documentTypes at the given index.
    • setDocumentTypes

      public GetModuleResponse.Builder setDocumentTypes(int index, String value)
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Parameters:
      index - The index to set the value at.
      value - The documentTypes to set.
      Returns:
      This builder for chaining.
    • addDocumentTypes

      public GetModuleResponse.Builder addDocumentTypes(String value)
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Parameters:
      value - The documentTypes to add.
      Returns:
      This builder for chaining.
    • addAllDocumentTypes

      public GetModuleResponse.Builder addAllDocumentTypes(Iterable<String> values)
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Parameters:
      values - The documentTypes to add.
      Returns:
      This builder for chaining.
    • clearDocumentTypes

      public GetModuleResponse.Builder clearDocumentTypes()
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Returns:
      This builder for chaining.
    • addDocumentTypesBytes

      public GetModuleResponse.Builder addDocumentTypesBytes(com.google.protobuf.ByteString value)
       Document types this module can process (e.g., "pdf", "docx", "image").
       
      repeated string document_types = 9;
      Parameters:
      value - The bytes of the documentTypes to add.
      Returns:
      This builder for chaining.
    • getIsHealthy

      public boolean getIsHealthy()
       Whether this instance is currently healthy.
       
      bool is_healthy = 10;
      Specified by:
      getIsHealthy in interface GetModuleResponseOrBuilder
      Returns:
      The isHealthy.
    • setIsHealthy

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

      public GetModuleResponse.Builder clearIsHealthy()
       Whether this instance is currently healthy.
       
      bool is_healthy = 10;
      Returns:
      This builder for chaining.
    • hasRegisteredAt

      public boolean hasRegisteredAt()
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
      Specified by:
      hasRegisteredAt in interface GetModuleResponseOrBuilder
      Returns:
      Whether the registeredAt field is set.
    • getRegisteredAt

      public com.google.protobuf.Timestamp getRegisteredAt()
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
      Specified by:
      getRegisteredAt in interface GetModuleResponseOrBuilder
      Returns:
      The registeredAt.
    • setRegisteredAt

      public GetModuleResponse.Builder setRegisteredAt(com.google.protobuf.Timestamp value)
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
    • setRegisteredAt

      public GetModuleResponse.Builder setRegisteredAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
    • mergeRegisteredAt

      public GetModuleResponse.Builder mergeRegisteredAt(com.google.protobuf.Timestamp value)
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
    • clearRegisteredAt

      public GetModuleResponse.Builder clearRegisteredAt()
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
    • getRegisteredAtBuilder

      public com.google.protobuf.Timestamp.Builder getRegisteredAtBuilder()
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
    • getRegisteredAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRegisteredAtOrBuilder()
       Timestamp when module was registered.
       
      .google.protobuf.Timestamp registered_at = 11;
      Specified by:
      getRegisteredAtOrBuilder in interface GetModuleResponseOrBuilder
    • hasLastHealthCheck

      public boolean hasLastHealthCheck()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 12;
      Specified by:
      hasLastHealthCheck in interface GetModuleResponseOrBuilder
      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 = 12;
      Specified by:
      getLastHealthCheck in interface GetModuleResponseOrBuilder
      Returns:
      The lastHealthCheck.
    • setLastHealthCheck

      public GetModuleResponse.Builder setLastHealthCheck(com.google.protobuf.Timestamp value)
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 12;
    • setLastHealthCheck

      public GetModuleResponse.Builder setLastHealthCheck(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 12;
    • mergeLastHealthCheck

      public GetModuleResponse.Builder mergeLastHealthCheck(com.google.protobuf.Timestamp value)
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 12;
    • clearLastHealthCheck

      public GetModuleResponse.Builder clearLastHealthCheck()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 12;
    • getLastHealthCheckBuilder

      public com.google.protobuf.Timestamp.Builder getLastHealthCheckBuilder()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 12;
    • getLastHealthCheckOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastHealthCheckOrBuilder()
       Timestamp of last health check.
       
      .google.protobuf.Timestamp last_health_check = 12;
      Specified by:
      getLastHealthCheckOrBuilder in interface GetModuleResponseOrBuilder