Class HiveMetastoreConfig (2.24.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.v1.HiveMetastoreConfig

Static Fields

AUXILIARY_VERSIONS_FIELD_NUMBER

public static final int AUXILIARY_VERSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIG_OVERRIDES_FIELD_NUMBER

public static final int CONFIG_OVERRIDES_FIELD_NUMBER
Field Value
TypeDescription
int

ENDPOINT_PROTOCOL_FIELD_NUMBER

public static final int ENDPOINT_PROTOCOL_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_CONFIG_FIELD_NUMBER

public static final int KERBEROS_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HiveMetastoreConfig getDefaultInstance()
Returns
TypeDescription
HiveMetastoreConfig

getDescriptor()

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

newBuilder()

public static HiveMetastoreConfig.Builder newBuilder()
Returns
TypeDescription
HiveMetastoreConfig.Builder

newBuilder(HiveMetastoreConfig prototype)

public static HiveMetastoreConfig.Builder newBuilder(HiveMetastoreConfig prototype)
Parameter
NameDescription
prototypeHiveMetastoreConfig
Returns
TypeDescription
HiveMetastoreConfig.Builder

parseDelimitedFrom(InputStream input)

public static HiveMetastoreConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HiveMetastoreConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HiveMetastoreConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HiveMetastoreConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HiveMetastoreConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HiveMetastoreConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HiveMetastoreConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HiveMetastoreConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HiveMetastoreConfig> parser()
Returns
TypeDescription
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.v1.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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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.v1.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.v1.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.v1.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.v1.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

getEndpointProtocol()

public HiveMetastoreConfig.EndpointProtocol getEndpointProtocol()

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

.google.cloud.metastore.v1.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.v1.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.v1.KerberosConfig kerberos_config = 3;

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

Returns
TypeDescription
KerberosConfigOrBuilder

getParserForType()

public Parser<HiveMetastoreConfig> getParserForType()
Returns
TypeDescription
Parser<HiveMetastoreConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

Returns
TypeDescription
boolean

Whether the kerberosConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HiveMetastoreConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HiveMetastoreConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException