Class HiveMetastoreConfig.Builder (2.10.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.v1beta.HiveMetastoreConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HiveMetastoreConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HiveMetastoreConfig.Builder
Overrides

build()

public HiveMetastoreConfig build()
Returns
TypeDescription
HiveMetastoreConfig

buildPartial()

public HiveMetastoreConfig buildPartial()
Returns
TypeDescription
HiveMetastoreConfig

clear()

public HiveMetastoreConfig.Builder clear()
Returns
TypeDescription
HiveMetastoreConfig.Builder
Overrides

clearAuxiliaryVersions()

public HiveMetastoreConfig.Builder clearAuxiliaryVersions()
Returns
TypeDescription
HiveMetastoreConfig.Builder

clearConfigOverrides()

public HiveMetastoreConfig.Builder clearConfigOverrides()
Returns
TypeDescription
HiveMetastoreConfig.Builder

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
TypeDescription
HiveMetastoreConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HiveMetastoreConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Returns
TypeDescription
HiveMetastoreConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public HiveMetastoreConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HiveMetastoreConfig.Builder
Overrides

clearVersion()

public HiveMetastoreConfig.Builder clearVersion()

Immutable. The Hive metastore schema version.

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

Returns
TypeDescription
HiveMetastoreConfig.Builder

This builder for chaining.

clone()

public HiveMetastoreConfig.Builder clone()
Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAuxiliaryVersions()

public Map<String,AuxiliaryVersionConfig> getAuxiliaryVersions()
Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameters
NameDescription
keyString
defaultValueAuxiliaryVersionConfig
Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
AuxiliaryVersionConfig

getConfigOverrides()

public Map<String,String> getConfigOverrides()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public HiveMetastoreConfig getDefaultInstanceForType()
Returns
TypeDescription
HiveMetastoreConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
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.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Returns
TypeDescription
KerberosConfigOrBuilder

getMutableAuxiliaryVersions()

public Map<String,AuxiliaryVersionConfig> getMutableAuxiliaryVersions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,AuxiliaryVersionConfig>

getMutableConfigOverrides()

public Map<String,String> getMutableConfigOverrides()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getVersion()

public String getVersion()

Immutable. The Hive metastore schema version.

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

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Immutable. The Hive metastore schema version.

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

Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Returns
TypeDescription
boolean

Whether the kerberosConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HiveMetastoreConfig other)

public HiveMetastoreConfig.Builder mergeFrom(HiveMetastoreConfig other)
Parameter
NameDescription
otherHiveMetastoreConfig
Returns
TypeDescription
HiveMetastoreConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HiveMetastoreConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HiveMetastoreConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HiveMetastoreConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Parameter
NameDescription
valueKerberosConfig
Returns
TypeDescription
HiveMetastoreConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HiveMetastoreConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
NameDescription
valuesMap<String,AuxiliaryVersionConfig>
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameters
NameDescription
keyString
valueAuxiliaryVersionConfig
Returns
TypeDescription
HiveMetastoreConfig.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
NameDescription
keyString
valueString
Returns
TypeDescription
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.v1beta.AuxiliaryVersionConfig> auxiliary_versions = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Parameter
NameDescription
valueHiveMetastoreConfig.EndpointProtocol

The endpointProtocol to set.

Returns
TypeDescription
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.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
HiveMetastoreConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HiveMetastoreConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Parameter
NameDescription
valueKerberosConfig
Returns
TypeDescription
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.v1beta.KerberosConfig kerberos_config = 3;

Parameter
NameDescription
builderForValueKerberosConfig.Builder
Returns
TypeDescription
HiveMetastoreConfig.Builder

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

public HiveMetastoreConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HiveMetastoreConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HiveMetastoreConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
HiveMetastoreConfig.Builder

This builder for chaining.