Class Service.GatewaySecretInfo.Builder

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

public static final class Service.GatewaySecretInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewaySecretInfo.Builder> implements Service.GatewaySecretInfoOrBuilder
 Secret metadata entity (does not include the decrypted secret value)
 
Protobuf type mlflow.GatewaySecretInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewaySecretInfo.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewaySecretInfo.Builder>
    • internalGetFieldAccessorTable

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

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

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

      public Service.GatewaySecretInfo 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.GatewaySecretInfo.Builder>
    • setField

      public Service.GatewaySecretInfo.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.GatewaySecretInfo.Builder>
    • clearField

      public Service.GatewaySecretInfo.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.GatewaySecretInfo.Builder>
    • clearOneof

      public Service.GatewaySecretInfo.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.GatewaySecretInfo.Builder>
    • setRepeatedField

      public Service.GatewaySecretInfo.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.GatewaySecretInfo.Builder>
    • addRepeatedField

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

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

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

      public boolean hasSecretId()
       Unique identifier for the secret (UUID)
       
      optional string secret_id = 1;
      Specified by:
      hasSecretId in interface Service.GatewaySecretInfoOrBuilder
      Returns:
      Whether the secretId field is set.
    • getSecretId

      public String getSecretId()
       Unique identifier for the secret (UUID)
       
      optional string secret_id = 1;
      Specified by:
      getSecretId in interface Service.GatewaySecretInfoOrBuilder
      Returns:
      The secretId.
    • getSecretIdBytes

      public com.google.protobuf.ByteString getSecretIdBytes()
       Unique identifier for the secret (UUID)
       
      optional string secret_id = 1;
      Specified by:
      getSecretIdBytes in interface Service.GatewaySecretInfoOrBuilder
      Returns:
      The bytes for secretId.
    • setSecretId

      public Service.GatewaySecretInfo.Builder setSecretId(String value)
       Unique identifier for the secret (UUID)
       
      optional string secret_id = 1;
      Parameters:
      value - The secretId to set.
      Returns:
      This builder for chaining.
    • clearSecretId

      public Service.GatewaySecretInfo.Builder clearSecretId()
       Unique identifier for the secret (UUID)
       
      optional string secret_id = 1;
      Returns:
      This builder for chaining.
    • setSecretIdBytes

      public Service.GatewaySecretInfo.Builder setSecretIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for the secret (UUID)
       
      optional string secret_id = 1;
      Parameters:
      value - The bytes for secretId to set.
      Returns:
      This builder for chaining.
    • hasSecretName

      public boolean hasSecretName()
       User-friendly name for the secret (must be unique)
       
      optional string secret_name = 2;
      Specified by:
      hasSecretName in interface Service.GatewaySecretInfoOrBuilder
      Returns:
      Whether the secretName field is set.
    • getSecretName

      public String getSecretName()
       User-friendly name for the secret (must be unique)
       
      optional string secret_name = 2;
      Specified by:
      getSecretName in interface Service.GatewaySecretInfoOrBuilder
      Returns:
      The secretName.
    • getSecretNameBytes

      public com.google.protobuf.ByteString getSecretNameBytes()
       User-friendly name for the secret (must be unique)
       
      optional string secret_name = 2;
      Specified by:
      getSecretNameBytes in interface Service.GatewaySecretInfoOrBuilder
      Returns:
      The bytes for secretName.
    • setSecretName

      public Service.GatewaySecretInfo.Builder setSecretName(String value)
       User-friendly name for the secret (must be unique)
       
      optional string secret_name = 2;
      Parameters:
      value - The secretName to set.
      Returns:
      This builder for chaining.
    • clearSecretName

      public Service.GatewaySecretInfo.Builder clearSecretName()
       User-friendly name for the secret (must be unique)
       
      optional string secret_name = 2;
      Returns:
      This builder for chaining.
    • setSecretNameBytes

      public Service.GatewaySecretInfo.Builder setSecretNameBytes(com.google.protobuf.ByteString value)
       User-friendly name for the secret (must be unique)
       
      optional string secret_name = 2;
      Parameters:
      value - The bytes for secretName to set.
      Returns:
      This builder for chaining.
    • getMaskedValuesCount

      public int getMaskedValuesCount()
      Description copied from interface: Service.GatewaySecretInfoOrBuilder
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
      Specified by:
      getMaskedValuesCount in interface Service.GatewaySecretInfoOrBuilder
    • containsMaskedValues

      public boolean containsMaskedValues(String key)
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
      Specified by:
      containsMaskedValues in interface Service.GatewaySecretInfoOrBuilder
    • getMaskedValues

      @Deprecated public Map<String,String> getMaskedValues()
      Deprecated.
      Specified by:
      getMaskedValues in interface Service.GatewaySecretInfoOrBuilder
    • getMaskedValuesMap

      public Map<String,String> getMaskedValuesMap()
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
      Specified by:
      getMaskedValuesMap in interface Service.GatewaySecretInfoOrBuilder
    • getMaskedValuesOrDefault

      public String getMaskedValuesOrDefault(String key, String defaultValue)
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
      Specified by:
      getMaskedValuesOrDefault in interface Service.GatewaySecretInfoOrBuilder
    • getMaskedValuesOrThrow

      public String getMaskedValuesOrThrow(String key)
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
      Specified by:
      getMaskedValuesOrThrow in interface Service.GatewaySecretInfoOrBuilder
    • clearMaskedValues

      public Service.GatewaySecretInfo.Builder clearMaskedValues()
    • removeMaskedValues

      public Service.GatewaySecretInfo.Builder removeMaskedValues(String key)
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
    • getMutableMaskedValues

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

      public Service.GatewaySecretInfo.Builder putMaskedValues(String key, String value)
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
    • putAllMaskedValues

      public Service.GatewaySecretInfo.Builder putAllMaskedValues(Map<String,String> values)
       Masked version of the secret values for display as key-value pairs.
       For simple API keys: {"api_key": "sk-...xyz123"}
       For compound credentials: ``{"aws_access_key_id": "AKI...1234", "aws_secret_access_key": "***"}``
       
      map<string, string> masked_values = 3;
    • hasCreatedAt

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

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

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

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

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

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

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

      public Service.GatewaySecretInfo.Builder clearLastUpdatedAt()
       Timestamp (milliseconds since epoch) when the secret was last updated
       
      optional int64 last_updated_at = 5;
      Returns:
      This builder for chaining.
    • hasProvider

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

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

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

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

      public Service.GatewaySecretInfo.Builder clearProvider()
       LLM provider identifier (e.g., "openai", "anthropic", "cohere")
       
      optional string provider = 6;
      Returns:
      This builder for chaining.
    • setProviderBytes

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

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

      public String getCreatedBy()
       User ID who created the secret
       
      optional string created_by = 7;
      Specified by:
      getCreatedBy in interface Service.GatewaySecretInfoOrBuilder
      Returns:
      The createdBy.
    • getCreatedByBytes

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

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

      public Service.GatewaySecretInfo.Builder clearCreatedBy()
       User ID who created the secret
       
      optional string created_by = 7;
      Returns:
      This builder for chaining.
    • setCreatedByBytes

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

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

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

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

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

      public Service.GatewaySecretInfo.Builder clearLastUpdatedBy()
       User ID who last updated the secret
       
      optional string last_updated_by = 8;
      Returns:
      This builder for chaining.
    • setLastUpdatedByBytes

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

      public int getAuthConfigCount()
      Description copied from interface: Service.GatewaySecretInfoOrBuilder
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
      Specified by:
      getAuthConfigCount in interface Service.GatewaySecretInfoOrBuilder
    • containsAuthConfig

      public boolean containsAuthConfig(String key)
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
      Specified by:
      containsAuthConfig in interface Service.GatewaySecretInfoOrBuilder
    • getAuthConfig

      @Deprecated public Map<String,String> getAuthConfig()
      Deprecated.
      Use getAuthConfigMap() instead.
      Specified by:
      getAuthConfig in interface Service.GatewaySecretInfoOrBuilder
    • getAuthConfigMap

      public Map<String,String> getAuthConfigMap()
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
      Specified by:
      getAuthConfigMap in interface Service.GatewaySecretInfoOrBuilder
    • getAuthConfigOrDefault

      public String getAuthConfigOrDefault(String key, String defaultValue)
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
      Specified by:
      getAuthConfigOrDefault in interface Service.GatewaySecretInfoOrBuilder
    • getAuthConfigOrThrow

      public String getAuthConfigOrThrow(String key)
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
      Specified by:
      getAuthConfigOrThrow in interface Service.GatewaySecretInfoOrBuilder
    • clearAuthConfig

      public Service.GatewaySecretInfo.Builder clearAuthConfig()
    • removeAuthConfig

      public Service.GatewaySecretInfo.Builder removeAuthConfig(String key)
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
    • getMutableAuthConfig

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

      public Service.GatewaySecretInfo.Builder putAuthConfig(String key, String value)
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
    • putAllAuthConfig

      public Service.GatewaySecretInfo.Builder putAllAuthConfig(Map<String,String> values)
       Provider-specific auth configuration (e.g., auth_mode, region, project_id)
       
      map<string, string> auth_config = 9;
    • setUnknownFields

      public final Service.GatewaySecretInfo.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.GatewaySecretInfo.Builder>
    • mergeUnknownFields

      public final Service.GatewaySecretInfo.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.GatewaySecretInfo.Builder>