Class HiveMetastoreConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HiveMetastoreConfig.Builder>
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.Builder
All Implemented Interfaces:
HiveMetastoreConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HiveMetastoreConfig

public static final class HiveMetastoreConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<HiveMetastoreConfig.Builder> implements HiveMetastoreConfigOrBuilder
 Specifies configuration information specific to running Hive metastore
 software as the metastore service.
 
Protobuf type google.cloud.metastore.v1beta.HiveMetastoreConfig
  • 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<HiveMetastoreConfig.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

      public HiveMetastoreConfig.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<HiveMetastoreConfig.Builder>
      Throws:
      IOException
    • getVersion

      public String getVersion()
       Immutable. The Hive metastore schema version.
       
      string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVersion in interface HiveMetastoreConfigOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Immutable. The Hive metastore schema version.
       
      string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVersionBytes in interface HiveMetastoreConfigOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public HiveMetastoreConfig.Builder setVersion(String value)
       Immutable. The Hive metastore schema version.
       
      string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public HiveMetastoreConfig.Builder clearVersion()
       Immutable. The Hive metastore schema version.
       
      string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public HiveMetastoreConfig.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Immutable. The Hive metastore schema version.
       
      string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getConfigOverridesCount

      public int getConfigOverridesCount()
      Description copied from interface: HiveMetastoreConfigOrBuilder
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
      Specified by:
      getConfigOverridesCount in interface HiveMetastoreConfigOrBuilder
    • containsConfigOverrides

      public boolean containsConfigOverrides(String key)
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
      Specified by:
      containsConfigOverrides in interface HiveMetastoreConfigOrBuilder
    • getConfigOverrides

      @Deprecated public Map<String,String> getConfigOverrides()
      Deprecated.
      Specified by:
      getConfigOverrides in interface HiveMetastoreConfigOrBuilder
    • getConfigOverridesMap

      public Map<String,String> getConfigOverridesMap()
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
      Specified by:
      getConfigOverridesMap in interface HiveMetastoreConfigOrBuilder
    • getConfigOverridesOrDefault

      public String getConfigOverridesOrDefault(String key, String defaultValue)
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
      Specified by:
      getConfigOverridesOrDefault in interface HiveMetastoreConfigOrBuilder
    • getConfigOverridesOrThrow

      public String getConfigOverridesOrThrow(String key)
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
      Specified by:
      getConfigOverridesOrThrow in interface HiveMetastoreConfigOrBuilder
    • clearConfigOverrides

      public HiveMetastoreConfig.Builder clearConfigOverrides()
    • removeConfigOverrides

      public HiveMetastoreConfig.Builder removeConfigOverrides(String key)
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
    • getMutableConfigOverrides

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

      public HiveMetastoreConfig.Builder putConfigOverrides(String key, String value)
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
    • putAllConfigOverrides

      public HiveMetastoreConfig.Builder putAllConfigOverrides(Map<String,String> values)
       A mapping of Hive metastore configuration key-value pairs to apply to the
       Hive metastore (configured in `hive-site.xml`). The mappings
       override system defaults (some keys cannot be overridden). These
       overrides are also applied to auxiliary versions and can be further
       customized in the auxiliary version's `AuxiliaryVersionConfig`.
       
      map<string, string> config_overrides = 2;
    • hasKerberosConfig

      public boolean hasKerberosConfig()
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
      Specified by:
      hasKerberosConfig in interface HiveMetastoreConfigOrBuilder
      Returns:
      Whether the kerberosConfig field is set.
    • getKerberosConfig

      public KerberosConfig getKerberosConfig()
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
      Specified by:
      getKerberosConfig in interface HiveMetastoreConfigOrBuilder
      Returns:
      The kerberosConfig.
    • setKerberosConfig

      public HiveMetastoreConfig.Builder setKerberosConfig(KerberosConfig value)
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
    • setKerberosConfig

      public HiveMetastoreConfig.Builder setKerberosConfig(KerberosConfig.Builder builderForValue)
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
    • mergeKerberosConfig

      public HiveMetastoreConfig.Builder mergeKerberosConfig(KerberosConfig value)
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
    • clearKerberosConfig

      public HiveMetastoreConfig.Builder clearKerberosConfig()
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
    • getKerberosConfigBuilder

      public KerberosConfig.Builder getKerberosConfigBuilder()
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
    • getKerberosConfigOrBuilder

      public KerberosConfigOrBuilder getKerberosConfigOrBuilder()
       Information used to configure the Hive metastore service as a service
       principal in a Kerberos realm. To disable Kerberos, use the `UpdateService`
       method and specify this field's path
       (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
       while omitting this field from the request's `service`.
       
      .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3;
      Specified by:
      getKerberosConfigOrBuilder in interface HiveMetastoreConfigOrBuilder
    • getEndpointProtocolValue

      public int getEndpointProtocolValue()
       The protocol to use for the metastore service endpoint. If unspecified,
       defaults to `THRIFT`.
       
      .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
      Specified by:
      getEndpointProtocolValue in interface HiveMetastoreConfigOrBuilder
      Returns:
      The enum numeric value on the wire for endpointProtocol.
    • setEndpointProtocolValue

      public HiveMetastoreConfig.Builder setEndpointProtocolValue(int value)
       The protocol to use for the metastore service endpoint. If unspecified,
       defaults to `THRIFT`.
       
      .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
      Parameters:
      value - The enum numeric value on the wire for endpointProtocol to set.
      Returns:
      This builder for chaining.
    • getEndpointProtocol

      public HiveMetastoreConfig.EndpointProtocol getEndpointProtocol()
       The protocol to use for the metastore service endpoint. If unspecified,
       defaults to `THRIFT`.
       
      .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
      Specified by:
      getEndpointProtocol in interface HiveMetastoreConfigOrBuilder
      Returns:
      The endpointProtocol.
    • setEndpointProtocol

       The protocol to use for the metastore service endpoint. If unspecified,
       defaults to `THRIFT`.
       
      .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
      Parameters:
      value - The endpointProtocol to set.
      Returns:
      This builder for chaining.
    • clearEndpointProtocol

      public HiveMetastoreConfig.Builder clearEndpointProtocol()
       The protocol to use for the metastore service endpoint. If unspecified,
       defaults to `THRIFT`.
       
      .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
      Returns:
      This builder for chaining.
    • getAuxiliaryVersionsCount

      public int getAuxiliaryVersionsCount()
      Description copied from interface: HiveMetastoreConfigOrBuilder
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
      Specified by:
      getAuxiliaryVersionsCount in interface HiveMetastoreConfigOrBuilder
    • containsAuxiliaryVersions

      public boolean containsAuxiliaryVersions(String key)
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
      Specified by:
      containsAuxiliaryVersions in interface HiveMetastoreConfigOrBuilder
    • getAuxiliaryVersions

      @Deprecated public Map<String,AuxiliaryVersionConfig> getAuxiliaryVersions()
      Deprecated.
      Specified by:
      getAuxiliaryVersions in interface HiveMetastoreConfigOrBuilder
    • getAuxiliaryVersionsMap

      public Map<String,AuxiliaryVersionConfig> getAuxiliaryVersionsMap()
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
      Specified by:
      getAuxiliaryVersionsMap in interface HiveMetastoreConfigOrBuilder
    • getAuxiliaryVersionsOrDefault

      public AuxiliaryVersionConfig getAuxiliaryVersionsOrDefault(String key, AuxiliaryVersionConfig defaultValue)
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
      Specified by:
      getAuxiliaryVersionsOrDefault in interface HiveMetastoreConfigOrBuilder
    • getAuxiliaryVersionsOrThrow

      public AuxiliaryVersionConfig getAuxiliaryVersionsOrThrow(String key)
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
      Specified by:
      getAuxiliaryVersionsOrThrow in interface HiveMetastoreConfigOrBuilder
    • clearAuxiliaryVersions

      public HiveMetastoreConfig.Builder clearAuxiliaryVersions()
    • removeAuxiliaryVersions

      public HiveMetastoreConfig.Builder removeAuxiliaryVersions(String key)
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
    • getMutableAuxiliaryVersions

      @Deprecated public Map<String,AuxiliaryVersionConfig> getMutableAuxiliaryVersions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAuxiliaryVersions

      public HiveMetastoreConfig.Builder putAuxiliaryVersions(String key, AuxiliaryVersionConfig value)
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
    • putAllAuxiliaryVersions

      public HiveMetastoreConfig.Builder putAllAuxiliaryVersions(Map<String,AuxiliaryVersionConfig> values)
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;
    • putAuxiliaryVersionsBuilderIfAbsent

      public AuxiliaryVersionConfig.Builder putAuxiliaryVersionsBuilderIfAbsent(String key)
       A mapping of Hive metastore version to the auxiliary version
       configuration. When specified, a secondary Hive metastore service is
       created along with the primary service. All auxiliary versions must be less
       than the service's primary version. The key is the auxiliary service name
       and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This
       means that the first character must be a lowercase letter, and all the
       following characters must be hyphens, lowercase letters, or digits, except
       the last character, which cannot be a hyphen.
       
      map<string, .google.cloud.metastore.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;