Class HiveMetastoreConfig (2.43.0)

public final class HiveMetastoreConfig extends GeneratedMessageV3 implements HiveMetastoreConfigOrBuilder

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

Protobuf type google.cloud.metastore.v1alpha.HiveMetastoreConfig

Static Fields

AUXILIARY_VERSIONS_FIELD_NUMBER

public static final int AUXILIARY_VERSIONS_FIELD_NUMBER
Field Value
Type Description
int

CONFIG_OVERRIDES_FIELD_NUMBER

public static final int CONFIG_OVERRIDES_FIELD_NUMBER
Field Value
Type Description
int

ENDPOINT_PROTOCOL_FIELD_NUMBER

public static final int ENDPOINT_PROTOCOL_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_CONFIG_FIELD_NUMBER

public static final int KERBEROS_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HiveMetastoreConfig getDefaultInstance()
Returns
Type Description
HiveMetastoreConfig

getDescriptor()

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

newBuilder()

public static HiveMetastoreConfig.Builder newBuilder()
Returns
Type Description
HiveMetastoreConfig.Builder

newBuilder(HiveMetastoreConfig prototype)

public static HiveMetastoreConfig.Builder newBuilder(HiveMetastoreConfig prototype)
Parameter
Name Description
prototype HiveMetastoreConfig
Returns
Type Description
HiveMetastoreConfig.Builder

parseDelimitedFrom(InputStream input)

public static HiveMetastoreConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HiveMetastoreConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HiveMetastoreConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HiveMetastoreConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HiveMetastoreConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HiveMetastoreConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveMetastoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HiveMetastoreConfig> parser()
Returns
Type Description
Parser<HiveMetastoreConfig>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

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

getParserForType()

public Parser<HiveMetastoreConfig> getParserForType()
Returns
Type Description
Parser<HiveMetastoreConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HiveMetastoreConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HiveMetastoreConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException