Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/metastore/v1beta/metastore.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.metastore.v1beta;
/**
*
*
*
* Specifies configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* Protobuf type {@code google.cloud.metastore.v1beta.HiveMetastoreConfig}
*/
public final class HiveMetastoreConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.metastore.v1beta.HiveMetastoreConfig)
HiveMetastoreConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use HiveMetastoreConfig.newBuilder() to construct.
private HiveMetastoreConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HiveMetastoreConfig() {
version_ = "";
endpointProtocol_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new HiveMetastoreConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_HiveMetastoreConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetConfigOverrides();
case 5:
return internalGetAuxiliaryVersions();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_HiveMetastoreConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.class,
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.Builder.class);
}
/**
*
*
*
* Protocols available for serving the metastore service endpoint.
*
*
* ENDPOINT_PROTOCOL_UNSPECIFIED = 0;
*/
public static final int ENDPOINT_PROTOCOL_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Use the legacy Apache Thrift protocol for the metastore service endpoint.
*
*
* THRIFT = 1;
*/
public static final int THRIFT_VALUE = 1;
/**
*
*
*
* Use the modernized gRPC protocol for the metastore service endpoint.
*
*
* GRPC = 2;
*/
public static final int GRPC_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EndpointProtocol valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EndpointProtocol forNumber(int value) {
switch (value) {
case 0:
return ENDPOINT_PROTOCOL_UNSPECIFIED;
case 1:
return THRIFT;
case 2:
return GRPC;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EndpointProtocol findValueByNumber(int number) {
return EndpointProtocol.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final EndpointProtocol[] VALUES = values();
public static EndpointProtocol valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private EndpointProtocol(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol)
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object version_ = "";
/**
*
*
*
*
* string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIG_OVERRIDES_FIELD_NUMBER = 2;
private static final class ConfigOverridesDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_HiveMetastoreConfig_ConfigOverridesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField configOverrides_;
private com.google.protobuf.MapField
internalGetConfigOverrides() {
if (configOverrides_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ConfigOverridesDefaultEntryHolder.defaultEntry);
}
return configOverrides_;
}
public int getConfigOverridesCount() {
return internalGetConfigOverrides().getMap().size();
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public boolean containsConfigOverrides(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetConfigOverrides().getMap().containsKey(key);
}
/** Use {@link #getConfigOverridesMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfigOverrides() {
return 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`.
*
* 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`.
*
* 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;
*/
@java.lang.Override
public java.lang.String getConfigOverridesOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetConfigOverrides().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int KERBEROS_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.metastore.v1beta.KerberosConfig kerberosConfig_;
/**
*
*
*
* 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;
*
* @return Whether the kerberosConfig field is set.
*/
@java.lang.Override
public boolean hasKerberosConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* 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`.
*
* 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;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.KerberosConfigOrBuilder getKerberosConfigOrBuilder() {
return kerberosConfig_ == null
? com.google.cloud.metastore.v1beta.KerberosConfig.getDefaultInstance()
: kerberosConfig_;
}
public static final int ENDPOINT_PROTOCOL_FIELD_NUMBER = 4;
private int endpointProtocol_ = 0;
/**
*
*
*
* The protocol to use for the metastore service endpoint. If unspecified,
* defaults to `THRIFT`.
*
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
*
*
* @return The enum numeric value on the wire for endpointProtocol.
*/
@java.lang.Override
public int getEndpointProtocolValue() {
return endpointProtocol_;
}
/**
*
*
*
* The protocol to use for the metastore service endpoint. If unspecified,
* defaults to `THRIFT`.
*
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
*
*
* @return The endpointProtocol.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol
getEndpointProtocol() {
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol result =
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol.forNumber(
endpointProtocol_);
return result == null
? com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol.UNRECOGNIZED
: result;
}
public static final int AUXILIARY_VERSIONS_FIELD_NUMBER = 5;
private static final class AuxiliaryVersionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig>
defaultEntry =
com.google.protobuf.MapEntry
.
newDefaultInstance(
com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_HiveMetastoreConfig_AuxiliaryVersionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig
.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig>
auxiliaryVersions_;
private com.google.protobuf.MapField<
java.lang.String, com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig>
internalGetAuxiliaryVersions() {
if (auxiliaryVersions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AuxiliaryVersionsDefaultEntryHolder.defaultEntry);
}
return auxiliaryVersions_;
}
public int getAuxiliaryVersionsCount() {
return internalGetAuxiliaryVersions().getMap().size();
}
/**
*
*
*
* 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;
*
*/
@java.lang.Override
public boolean containsAuxiliaryVersions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAuxiliaryVersions().getMap().containsKey(key);
}
/** Use {@link #getAuxiliaryVersionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getAuxiliaryVersions() {
return 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.
*
* 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.
*
* 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.
*
*
* string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for version.
*/
public com.google.protobuf.ByteString getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The Hive metastore schema version.
*
*
* string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The Hive metastore schema version.
*
*
* string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Immutable. The Hive metastore schema version.
*
*
* string version = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.MapField configOverrides_;
private com.google.protobuf.MapField
internalGetConfigOverrides() {
if (configOverrides_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ConfigOverridesDefaultEntryHolder.defaultEntry);
}
return configOverrides_;
}
private com.google.protobuf.MapField
internalGetMutableConfigOverrides() {
if (configOverrides_ == null) {
configOverrides_ =
com.google.protobuf.MapField.newMapField(
ConfigOverridesDefaultEntryHolder.defaultEntry);
}
if (!configOverrides_.isMutable()) {
configOverrides_ = configOverrides_.copy();
}
bitField0_ |= 0x00000002;
onChanged();
return configOverrides_;
}
public int getConfigOverridesCount() {
return internalGetConfigOverrides().getMap().size();
}
/**
*
*
*
* 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;
*/
@java.lang.Override
public boolean containsConfigOverrides(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetConfigOverrides().getMap().containsKey(key);
}
/** Use {@link #getConfigOverridesMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfigOverrides() {
return 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`.
*
* 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`.
*
* 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;
*/
@java.lang.Override
public java.lang.String getConfigOverridesOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetConfigOverrides().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearConfigOverrides() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableConfigOverrides().getMutableMap().clear();
return this;
}
/**
*
*
*
* 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;
*/
public Builder removeConfigOverrides(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableConfigOverrides().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableConfigOverrides() {
bitField0_ |= 0x00000002;
return internalGetMutableConfigOverrides().getMutableMap();
}
/**
*
*
*
* 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;
*/
public Builder putConfigOverrides(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableConfigOverrides().getMutableMap().put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* 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`.
*
* 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;
*
* @return Whether the kerberosConfig field is set.
*/
public boolean hasKerberosConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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`.
*
* The protocol to use for the metastore service endpoint. If unspecified,
* defaults to `THRIFT`.
*
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
*
*
* @return The enum numeric value on the wire for endpointProtocol.
*/
@java.lang.Override
public int getEndpointProtocolValue() {
return endpointProtocol_;
}
/**
*
*
*
* The protocol to use for the metastore service endpoint. If unspecified,
* defaults to `THRIFT`.
*
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
*
*
* @param value The enum numeric value on the wire for endpointProtocol to set.
* @return This builder for chaining.
*/
public Builder setEndpointProtocolValue(int value) {
endpointProtocol_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The protocol to use for the metastore service endpoint. If unspecified,
* defaults to `THRIFT`.
*
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
*
*
* @return The endpointProtocol.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol
getEndpointProtocol() {
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol result =
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol.forNumber(
endpointProtocol_);
return result == null
? com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol.UNRECOGNIZED
: result;
}
/**
*
*
*
* The protocol to use for the metastore service endpoint. If unspecified,
* defaults to `THRIFT`.
*
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
*
*
* @param value The endpointProtocol to set.
* @return This builder for chaining.
*/
public Builder setEndpointProtocol(
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
endpointProtocol_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The protocol to use for the metastore service endpoint. If unspecified,
* defaults to `THRIFT`.
*
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4;
*
*
* @return This builder for chaining.
*/
public Builder clearEndpointProtocol() {
bitField0_ = (bitField0_ & ~0x00000008);
endpointProtocol_ = 0;
onChanged();
return this;
}
private static final class AuxiliaryVersionsConverter
implements com.google.protobuf.MapFieldBuilder.Converter<
java.lang.String,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfigOrBuilder,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig> {
@java.lang.Override
public com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig build(
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfigOrBuilder val) {
if (val instanceof com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig) {
return (com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig) val;
}
return ((com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig>
defaultEntry() {
return AuxiliaryVersionsDefaultEntryHolder.defaultEntry;
}
};
private static final AuxiliaryVersionsConverter auxiliaryVersionsConverter =
new AuxiliaryVersionsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfigOrBuilder,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig.Builder>
auxiliaryVersions_;
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfigOrBuilder,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig.Builder>
internalGetAuxiliaryVersions() {
if (auxiliaryVersions_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(auxiliaryVersionsConverter);
}
return auxiliaryVersions_;
}
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfigOrBuilder,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig,
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig.Builder>
internalGetMutableAuxiliaryVersions() {
if (auxiliaryVersions_ == null) {
auxiliaryVersions_ = new com.google.protobuf.MapFieldBuilder<>(auxiliaryVersionsConverter);
}
bitField0_ |= 0x00000010;
onChanged();
return auxiliaryVersions_;
}
public int getAuxiliaryVersionsCount() {
return internalGetAuxiliaryVersions().ensureBuilderMap().size();
}
/**
*
*
*
* 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;
*
*/
@java.lang.Override
public boolean containsAuxiliaryVersions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAuxiliaryVersions().ensureBuilderMap().containsKey(key);
}
/** Use {@link #getAuxiliaryVersionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getAuxiliaryVersions() {
return 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.
*
* 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.
*
* 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;
*
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig getAuxiliaryVersionsOrThrow(
java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String, com.google.cloud.metastore.v1beta.AuxiliaryVersionConfigOrBuilder>
map = internalGetMutableAuxiliaryVersions().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return auxiliaryVersionsConverter.build(map.get(key));
}
public Builder clearAuxiliaryVersions() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableAuxiliaryVersions().clear();
return this;
}
/**
*
*
*
* 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.
*
* 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;
*
*/
public Builder putAuxiliaryVersions(
java.lang.String key, com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableAuxiliaryVersions().ensureBuilderMap().put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
*
*
*
* 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;
*
*/
public Builder putAllAuxiliaryVersions(
java.util.Map
values) {
for (java.util.Map.Entry<
java.lang.String, com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig>
e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableAuxiliaryVersions().ensureBuilderMap().putAll(values);
bitField0_ |= 0x00000010;
return this;
}
/**
*
*
*
* 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.
*