Class Service.GatewayModelDefinition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
org.mlflow.api.proto.Service.GatewayModelDefinition.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Service.GatewayModelDefinitionOrBuilder
Enclosing class:
Service.GatewayModelDefinition

public static final class Service.GatewayModelDefinition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder> implements Service.GatewayModelDefinitionOrBuilder
 Reusable model definition that can be shared across endpoints
 
Protobuf type mlflow.GatewayModelDefinition
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Service.GatewayModelDefinition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
    • setField

      public Service.GatewayModelDefinition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
    • clearField

      public Service.GatewayModelDefinition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
    • clearOneof

      public Service.GatewayModelDefinition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
    • setRepeatedField

      public Service.GatewayModelDefinition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
    • addRepeatedField

      public Service.GatewayModelDefinition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
    • mergeFrom

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

    • isInitialized

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

      public Service.GatewayModelDefinition.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<Service.GatewayModelDefinition.Builder>
      Throws:
      IOException
    • hasModelDefinitionId

      public boolean hasModelDefinitionId()
       Unique identifier for this model definition
       
      optional string model_definition_id = 1;
      Specified by:
      hasModelDefinitionId in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the modelDefinitionId field is set.
    • getModelDefinitionId

      public String getModelDefinitionId()
       Unique identifier for this model definition
       
      optional string model_definition_id = 1;
      Specified by:
      getModelDefinitionId in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The modelDefinitionId.
    • getModelDefinitionIdBytes

      public com.google.protobuf.ByteString getModelDefinitionIdBytes()
       Unique identifier for this model definition
       
      optional string model_definition_id = 1;
      Specified by:
      getModelDefinitionIdBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for modelDefinitionId.
    • setModelDefinitionId

      public Service.GatewayModelDefinition.Builder setModelDefinitionId(String value)
       Unique identifier for this model definition
       
      optional string model_definition_id = 1;
      Parameters:
      value - The modelDefinitionId to set.
      Returns:
      This builder for chaining.
    • clearModelDefinitionId

      public Service.GatewayModelDefinition.Builder clearModelDefinitionId()
       Unique identifier for this model definition
       
      optional string model_definition_id = 1;
      Returns:
      This builder for chaining.
    • setModelDefinitionIdBytes

      public Service.GatewayModelDefinition.Builder setModelDefinitionIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for this model definition
       
      optional string model_definition_id = 1;
      Parameters:
      value - The bytes for modelDefinitionId to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       User-friendly name for identification and reuse
       
      optional string name = 2;
      Specified by:
      hasName in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       User-friendly name for identification and reuse
       
      optional string name = 2;
      Specified by:
      getName in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       User-friendly name for identification and reuse
       
      optional string name = 2;
      Specified by:
      getNameBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for name.
    • setName

       User-friendly name for identification and reuse
       
      optional string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       User-friendly name for identification and reuse
       
      optional string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Service.GatewayModelDefinition.Builder setNameBytes(com.google.protobuf.ByteString value)
       User-friendly name for identification and reuse
       
      optional string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasSecretId

      public boolean hasSecretId()
       ID of the secret containing authentication credentials
       
      optional string secret_id = 3;
      Specified by:
      hasSecretId in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the secretId field is set.
    • getSecretId

      public String getSecretId()
       ID of the secret containing authentication credentials
       
      optional string secret_id = 3;
      Specified by:
      getSecretId in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The secretId.
    • getSecretIdBytes

      public com.google.protobuf.ByteString getSecretIdBytes()
       ID of the secret containing authentication credentials
       
      optional string secret_id = 3;
      Specified by:
      getSecretIdBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for secretId.
    • setSecretId

      public Service.GatewayModelDefinition.Builder setSecretId(String value)
       ID of the secret containing authentication credentials
       
      optional string secret_id = 3;
      Parameters:
      value - The secretId to set.
      Returns:
      This builder for chaining.
    • clearSecretId

       ID of the secret containing authentication credentials
       
      optional string secret_id = 3;
      Returns:
      This builder for chaining.
    • setSecretIdBytes

      public Service.GatewayModelDefinition.Builder setSecretIdBytes(com.google.protobuf.ByteString value)
       ID of the secret containing authentication credentials
       
      optional string secret_id = 3;
      Parameters:
      value - The bytes for secretId to set.
      Returns:
      This builder for chaining.
    • hasSecretName

      public boolean hasSecretName()
       Name of the secret for display purposes
       
      optional string secret_name = 4;
      Specified by:
      hasSecretName in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the secretName field is set.
    • getSecretName

      public String getSecretName()
       Name of the secret for display purposes
       
      optional string secret_name = 4;
      Specified by:
      getSecretName in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The secretName.
    • getSecretNameBytes

      public com.google.protobuf.ByteString getSecretNameBytes()
       Name of the secret for display purposes
       
      optional string secret_name = 4;
      Specified by:
      getSecretNameBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for secretName.
    • setSecretName

      public Service.GatewayModelDefinition.Builder setSecretName(String value)
       Name of the secret for display purposes
       
      optional string secret_name = 4;
      Parameters:
      value - The secretName to set.
      Returns:
      This builder for chaining.
    • clearSecretName

      public Service.GatewayModelDefinition.Builder clearSecretName()
       Name of the secret for display purposes
       
      optional string secret_name = 4;
      Returns:
      This builder for chaining.
    • setSecretNameBytes

      public Service.GatewayModelDefinition.Builder setSecretNameBytes(com.google.protobuf.ByteString value)
       Name of the secret for display purposes
       
      optional string secret_name = 4;
      Parameters:
      value - The bytes for secretName to set.
      Returns:
      This builder for chaining.
    • hasProvider

      public boolean hasProvider()
       LLM provider (e.g., "openai", "anthropic", "cohere", "bedrock")
       
      optional string provider = 5;
      Specified by:
      hasProvider in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the provider field is set.
    • getProvider

      public String getProvider()
       LLM provider (e.g., "openai", "anthropic", "cohere", "bedrock")
       
      optional string provider = 5;
      Specified by:
      getProvider in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The provider.
    • getProviderBytes

      public com.google.protobuf.ByteString getProviderBytes()
       LLM provider (e.g., "openai", "anthropic", "cohere", "bedrock")
       
      optional string provider = 5;
      Specified by:
      getProviderBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for provider.
    • setProvider

      public Service.GatewayModelDefinition.Builder setProvider(String value)
       LLM provider (e.g., "openai", "anthropic", "cohere", "bedrock")
       
      optional string provider = 5;
      Parameters:
      value - The provider to set.
      Returns:
      This builder for chaining.
    • clearProvider

       LLM provider (e.g., "openai", "anthropic", "cohere", "bedrock")
       
      optional string provider = 5;
      Returns:
      This builder for chaining.
    • setProviderBytes

      public Service.GatewayModelDefinition.Builder setProviderBytes(com.google.protobuf.ByteString value)
       LLM provider (e.g., "openai", "anthropic", "cohere", "bedrock")
       
      optional string provider = 5;
      Parameters:
      value - The bytes for provider to set.
      Returns:
      This builder for chaining.
    • hasModelName

      public boolean hasModelName()
       Provider-specific model identifier (e.g., "gpt-4o", "claude-3-5-sonnet")
       
      optional string model_name = 6;
      Specified by:
      hasModelName in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the modelName field is set.
    • getModelName

      public String getModelName()
       Provider-specific model identifier (e.g., "gpt-4o", "claude-3-5-sonnet")
       
      optional string model_name = 6;
      Specified by:
      getModelName in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The modelName.
    • getModelNameBytes

      public com.google.protobuf.ByteString getModelNameBytes()
       Provider-specific model identifier (e.g., "gpt-4o", "claude-3-5-sonnet")
       
      optional string model_name = 6;
      Specified by:
      getModelNameBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for modelName.
    • setModelName

      public Service.GatewayModelDefinition.Builder setModelName(String value)
       Provider-specific model identifier (e.g., "gpt-4o", "claude-3-5-sonnet")
       
      optional string model_name = 6;
      Parameters:
      value - The modelName to set.
      Returns:
      This builder for chaining.
    • clearModelName

      public Service.GatewayModelDefinition.Builder clearModelName()
       Provider-specific model identifier (e.g., "gpt-4o", "claude-3-5-sonnet")
       
      optional string model_name = 6;
      Returns:
      This builder for chaining.
    • setModelNameBytes

      public Service.GatewayModelDefinition.Builder setModelNameBytes(com.google.protobuf.ByteString value)
       Provider-specific model identifier (e.g., "gpt-4o", "claude-3-5-sonnet")
       
      optional string model_name = 6;
      Parameters:
      value - The bytes for modelName to set.
      Returns:
      This builder for chaining.
    • hasCreatedAt

      public boolean hasCreatedAt()
       Timestamp (milliseconds since epoch) when the model definition was created
       
      optional int64 created_at = 7;
      Specified by:
      hasCreatedAt in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the createdAt field is set.
    • getCreatedAt

      public long getCreatedAt()
       Timestamp (milliseconds since epoch) when the model definition was created
       
      optional int64 created_at = 7;
      Specified by:
      getCreatedAt in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The createdAt.
    • setCreatedAt

      public Service.GatewayModelDefinition.Builder setCreatedAt(long value)
       Timestamp (milliseconds since epoch) when the model definition was created
       
      optional int64 created_at = 7;
      Parameters:
      value - The createdAt to set.
      Returns:
      This builder for chaining.
    • clearCreatedAt

      public Service.GatewayModelDefinition.Builder clearCreatedAt()
       Timestamp (milliseconds since epoch) when the model definition was created
       
      optional int64 created_at = 7;
      Returns:
      This builder for chaining.
    • hasLastUpdatedAt

      public boolean hasLastUpdatedAt()
       Timestamp (milliseconds since epoch) when the model definition was last updated
       
      optional int64 last_updated_at = 8;
      Specified by:
      hasLastUpdatedAt in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the lastUpdatedAt field is set.
    • getLastUpdatedAt

      public long getLastUpdatedAt()
       Timestamp (milliseconds since epoch) when the model definition was last updated
       
      optional int64 last_updated_at = 8;
      Specified by:
      getLastUpdatedAt in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The lastUpdatedAt.
    • setLastUpdatedAt

      public Service.GatewayModelDefinition.Builder setLastUpdatedAt(long value)
       Timestamp (milliseconds since epoch) when the model definition was last updated
       
      optional int64 last_updated_at = 8;
      Parameters:
      value - The lastUpdatedAt to set.
      Returns:
      This builder for chaining.
    • clearLastUpdatedAt

      public Service.GatewayModelDefinition.Builder clearLastUpdatedAt()
       Timestamp (milliseconds since epoch) when the model definition was last updated
       
      optional int64 last_updated_at = 8;
      Returns:
      This builder for chaining.
    • hasCreatedBy

      public boolean hasCreatedBy()
       User ID who created the model definition
       
      optional string created_by = 9;
      Specified by:
      hasCreatedBy in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the createdBy field is set.
    • getCreatedBy

      public String getCreatedBy()
       User ID who created the model definition
       
      optional string created_by = 9;
      Specified by:
      getCreatedBy in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The createdBy.
    • getCreatedByBytes

      public com.google.protobuf.ByteString getCreatedByBytes()
       User ID who created the model definition
       
      optional string created_by = 9;
      Specified by:
      getCreatedByBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for createdBy.
    • setCreatedBy

      public Service.GatewayModelDefinition.Builder setCreatedBy(String value)
       User ID who created the model definition
       
      optional string created_by = 9;
      Parameters:
      value - The createdBy to set.
      Returns:
      This builder for chaining.
    • clearCreatedBy

      public Service.GatewayModelDefinition.Builder clearCreatedBy()
       User ID who created the model definition
       
      optional string created_by = 9;
      Returns:
      This builder for chaining.
    • setCreatedByBytes

      public Service.GatewayModelDefinition.Builder setCreatedByBytes(com.google.protobuf.ByteString value)
       User ID who created the model definition
       
      optional string created_by = 9;
      Parameters:
      value - The bytes for createdBy to set.
      Returns:
      This builder for chaining.
    • hasLastUpdatedBy

      public boolean hasLastUpdatedBy()
       User ID who last updated the model definition
       
      optional string last_updated_by = 10;
      Specified by:
      hasLastUpdatedBy in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      Whether the lastUpdatedBy field is set.
    • getLastUpdatedBy

      public String getLastUpdatedBy()
       User ID who last updated the model definition
       
      optional string last_updated_by = 10;
      Specified by:
      getLastUpdatedBy in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The lastUpdatedBy.
    • getLastUpdatedByBytes

      public com.google.protobuf.ByteString getLastUpdatedByBytes()
       User ID who last updated the model definition
       
      optional string last_updated_by = 10;
      Specified by:
      getLastUpdatedByBytes in interface Service.GatewayModelDefinitionOrBuilder
      Returns:
      The bytes for lastUpdatedBy.
    • setLastUpdatedBy

      public Service.GatewayModelDefinition.Builder setLastUpdatedBy(String value)
       User ID who last updated the model definition
       
      optional string last_updated_by = 10;
      Parameters:
      value - The lastUpdatedBy to set.
      Returns:
      This builder for chaining.
    • clearLastUpdatedBy

      public Service.GatewayModelDefinition.Builder clearLastUpdatedBy()
       User ID who last updated the model definition
       
      optional string last_updated_by = 10;
      Returns:
      This builder for chaining.
    • setLastUpdatedByBytes

      public Service.GatewayModelDefinition.Builder setLastUpdatedByBytes(com.google.protobuf.ByteString value)
       User ID who last updated the model definition
       
      optional string last_updated_by = 10;
      Parameters:
      value - The bytes for lastUpdatedBy to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Service.GatewayModelDefinition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>
    • mergeUnknownFields

      public final Service.GatewayModelDefinition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayModelDefinition.Builder>