Class HiveMetastoreConfig.Builder (2.47.0)

public static final class HiveMetastoreConfig.Builder extends GeneratedMessageV3.Builder<HiveMetastoreConfig.Builder> implements HiveMetastoreConfigOrBuilder

Specifies configuration information specific to running Hive metastore software as the metastore service.

Protobuf type google.cloud.metastore.v1alpha.HiveMetastoreConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HiveMetastoreConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

build()

public HiveMetastoreConfig build()
Returns
Type Description
HiveMetastoreConfig

buildPartial()

public HiveMetastoreConfig buildPartial()
Returns
Type Description
HiveMetastoreConfig

clear()

public HiveMetastoreConfig.Builder clear()
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

clearAuxiliaryVersions()

public HiveMetastoreConfig.Builder clearAuxiliaryVersions()
Returns
Type Description
HiveMetastoreConfig.Builder

clearConfigOverrides()

public HiveMetastoreConfig.Builder clearConfigOverrides()
Returns
Type Description
HiveMetastoreConfig.Builder

clearEndpointProtocol()

public HiveMetastoreConfig.Builder clearEndpointProtocol()

The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.

.google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Returns
Type Description
HiveMetastoreConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HiveMetastoreConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

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.v1alpha.KerberosConfig kerberos_config = 3;

Returns
Type Description
HiveMetastoreConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public HiveMetastoreConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

clearVersion()

public HiveMetastoreConfig.Builder clearVersion()

Immutable. The Hive metastore schema version.

string version = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
HiveMetastoreConfig.Builder

This builder for chaining.

clone()

public HiveMetastoreConfig.Builder clone()
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

containsAuxiliaryVersions(String key)

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsConfigOverrides(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAuxiliaryVersions() (deprecated)

public Map<String,AuxiliaryVersionConfig> getAuxiliaryVersions()
Returns
Type Description
Map<String,AuxiliaryVersionConfig>

getAuxiliaryVersionsCount()

public int getAuxiliaryVersionsCount()

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Returns
Type Description
int

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Returns
Type Description
Map<String,AuxiliaryVersionConfig>

getAuxiliaryVersionsOrDefault(String key, AuxiliaryVersionConfig defaultValue)

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameters
Name Description
key String
defaultValue AuxiliaryVersionConfig
Returns
Type Description
AuxiliaryVersionConfig

getAuxiliaryVersionsOrThrow(String key)

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
Name Description
key String
Returns
Type Description
AuxiliaryVersionConfig

getConfigOverrides() (deprecated)

public Map<String,String> getConfigOverrides()
Returns
Type Description
Map<String,String>

getConfigOverridesCount()

public int getConfigOverridesCount()

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;

Returns
Type Description
int

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;

Returns
Type Description
Map<String,String>

getConfigOverridesOrDefault(String key, String defaultValue)

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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getConfigOverridesOrThrow(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public HiveMetastoreConfig getDefaultInstanceForType()
Returns
Type Description
HiveMetastoreConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpointProtocol()

public HiveMetastoreConfig.EndpointProtocol getEndpointProtocol()

The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.

.google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Returns
Type Description
HiveMetastoreConfig.EndpointProtocol

The endpointProtocol.

getEndpointProtocolValue()

public int getEndpointProtocolValue()

The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.

.google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Returns
Type Description
int

The enum numeric value on the wire for endpointProtocol.

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.v1alpha.KerberosConfig kerberos_config = 3;

Returns
Type Description
KerberosConfig

The kerberosConfig.

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.v1alpha.KerberosConfig kerberos_config = 3;

Returns
Type Description
KerberosConfig.Builder

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.v1alpha.KerberosConfig kerberos_config = 3;

Returns
Type Description
KerberosConfigOrBuilder

getMutableAuxiliaryVersions() (deprecated)

public Map<String,AuxiliaryVersionConfig> getMutableAuxiliaryVersions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,AuxiliaryVersionConfig>

getMutableConfigOverrides() (deprecated)

public Map<String,String> getMutableConfigOverrides()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getVersion()

public String getVersion()

Immutable. The Hive metastore schema version.

string version = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Immutable. The Hive metastore schema version.

string version = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for version.

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.v1alpha.KerberosConfig kerberos_config = 3;

Returns
Type Description
boolean

Whether the kerberosConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HiveMetastoreConfig other)

public HiveMetastoreConfig.Builder mergeFrom(HiveMetastoreConfig other)
Parameter
Name Description
other HiveMetastoreConfig
Returns
Type Description
HiveMetastoreConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HiveMetastoreConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HiveMetastoreConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

mergeKerberosConfig(KerberosConfig value)

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.v1alpha.KerberosConfig kerberos_config = 3;

Parameter
Name Description
value KerberosConfig
Returns
Type Description
HiveMetastoreConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HiveMetastoreConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

putAllAuxiliaryVersions(Map<String,AuxiliaryVersionConfig> values)

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
Name Description
values Map<String,AuxiliaryVersionConfig>
Returns
Type Description
HiveMetastoreConfig.Builder

putAllConfigOverrides(Map<String,String> values)

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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
HiveMetastoreConfig.Builder

putAuxiliaryVersions(String key, AuxiliaryVersionConfig value)

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameters
Name Description
key String
value AuxiliaryVersionConfig
Returns
Type Description
HiveMetastoreConfig.Builder

putAuxiliaryVersionsBuilderIfAbsent(String key)

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
Name Description
key String
Returns
Type Description
AuxiliaryVersionConfig.Builder

putConfigOverrides(String key, String value)

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;

Parameters
Name Description
key String
value String
Returns
Type Description
HiveMetastoreConfig.Builder

removeAuxiliaryVersions(String key)

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?. 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.v1alpha.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
Name Description
key String
Returns
Type Description
HiveMetastoreConfig.Builder

removeConfigOverrides(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
HiveMetastoreConfig.Builder

setEndpointProtocol(HiveMetastoreConfig.EndpointProtocol value)

public HiveMetastoreConfig.Builder setEndpointProtocol(HiveMetastoreConfig.EndpointProtocol value)

The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.

.google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Parameter
Name Description
value HiveMetastoreConfig.EndpointProtocol

The endpointProtocol to set.

Returns
Type Description
HiveMetastoreConfig.Builder

This builder for chaining.

setEndpointProtocolValue(int value)

public HiveMetastoreConfig.Builder setEndpointProtocolValue(int value)

The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.

.google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for endpointProtocol to set.

Returns
Type Description
HiveMetastoreConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HiveMetastoreConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

setKerberosConfig(KerberosConfig value)

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.v1alpha.KerberosConfig kerberos_config = 3;

Parameter
Name Description
value KerberosConfig
Returns
Type Description
HiveMetastoreConfig.Builder

setKerberosConfig(KerberosConfig.Builder builderForValue)

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.v1alpha.KerberosConfig kerberos_config = 3;

Parameter
Name Description
builderForValue KerberosConfig.Builder
Returns
Type Description
HiveMetastoreConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HiveMetastoreConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HiveMetastoreConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

setVersion(String value)

public HiveMetastoreConfig.Builder setVersion(String value)

Immutable. The Hive metastore schema version.

string version = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
HiveMetastoreConfig.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public HiveMetastoreConfig.Builder setVersionBytes(ByteString value)

Immutable. The Hive metastore schema version.

string version = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
HiveMetastoreConfig.Builder

This builder for chaining.