![JAR search and dependency download from the Maven repository](/logo.png)
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dataproc-metastore-v1alpha Show documentation
Show all versions of proto-google-cloud-dataproc-metastore-v1alpha Show documentation
Proto library for google-cloud-dataproc-metastore
/*
* 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/v1alpha/metastore.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.metastore.v1alpha;
/**
*
*
*
* Configuration information for the auxiliary service versions.
*
*
* Protobuf type {@code google.cloud.metastore.v1alpha.AuxiliaryVersionConfig}
*/
public final class AuxiliaryVersionConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.metastore.v1alpha.AuxiliaryVersionConfig)
AuxiliaryVersionConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use AuxiliaryVersionConfig.newBuilder() to construct.
private AuxiliaryVersionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AuxiliaryVersionConfig() {
version_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuxiliaryVersionConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1alpha.MetastoreProto
.internal_static_google_cloud_metastore_v1alpha_AuxiliaryVersionConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetConfigOverrides();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.metastore.v1alpha.MetastoreProto
.internal_static_google_cloud_metastore_v1alpha_AuxiliaryVersionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.class,
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.Builder.class);
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object version_ = "";
/**
*
*
*
* The Hive metastore version of the auxiliary service. It must be less
* than the primary Hive metastore service's version.
*
*
* string version = 1;
*
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
}
}
/**
*
*
*
* The Hive metastore version of the auxiliary service. It must be less
* than the primary Hive metastore service's version.
*
*
* string version = 1;
*
* @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.v1alpha.MetastoreProto
.internal_static_google_cloud_metastore_v1alpha_AuxiliaryVersionConfig_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
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* 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
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* map<string, string> config_overrides = 2;
*/
@java.lang.Override
public java.util.Map getConfigOverridesMap() {
return internalGetConfigOverrides().getMap();
}
/**
*
*
*
* A mapping of Hive metastore configuration key-value pairs to apply to the
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* map<string, string> config_overrides = 2;
*/
@java.lang.Override
public /* nullable */ java.lang.String getConfigOverridesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetConfigOverrides().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* A mapping of Hive metastore configuration key-value pairs to apply to the
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* 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 NETWORK_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.metastore.v1alpha.NetworkConfig networkConfig_;
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the networkConfig field is set.
*/
@java.lang.Override
public boolean hasNetworkConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The networkConfig.
*/
@java.lang.Override
public com.google.cloud.metastore.v1alpha.NetworkConfig getNetworkConfig() {
return networkConfig_ == null
? com.google.cloud.metastore.v1alpha.NetworkConfig.getDefaultInstance()
: networkConfig_;
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.metastore.v1alpha.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {
return networkConfig_ == null
? com.google.cloud.metastore.v1alpha.NetworkConfig.getDefaultInstance()
: networkConfig_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetConfigOverrides(), ConfigOverridesDefaultEntryHolder.defaultEntry, 2);
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getNetworkConfig());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
for (java.util.Map.Entry entry :
internalGetConfigOverrides().getMap().entrySet()) {
com.google.protobuf.MapEntry configOverrides__ =
ConfigOverridesDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, configOverrides__);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNetworkConfig());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig)) {
return super.equals(obj);
}
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig other =
(com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig) obj;
if (!getVersion().equals(other.getVersion())) return false;
if (!internalGetConfigOverrides().equals(other.internalGetConfigOverrides())) return false;
if (hasNetworkConfig() != other.hasNetworkConfig()) return false;
if (hasNetworkConfig()) {
if (!getNetworkConfig().equals(other.getNetworkConfig())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (!internalGetConfigOverrides().getMap().isEmpty()) {
hash = (37 * hash) + CONFIG_OVERRIDES_FIELD_NUMBER;
hash = (53 * hash) + internalGetConfigOverrides().hashCode();
}
if (hasNetworkConfig()) {
hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getNetworkConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Configuration information for the auxiliary service versions.
*
*
* Protobuf type {@code google.cloud.metastore.v1alpha.AuxiliaryVersionConfig}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.metastore.v1alpha.AuxiliaryVersionConfig)
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1alpha.MetastoreProto
.internal_static_google_cloud_metastore_v1alpha_AuxiliaryVersionConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetConfigOverrides();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 2:
return internalGetMutableConfigOverrides();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.metastore.v1alpha.MetastoreProto
.internal_static_google_cloud_metastore_v1alpha_AuxiliaryVersionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.class,
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.Builder.class);
}
// Construct using com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getNetworkConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = "";
internalGetMutableConfigOverrides().clear();
networkConfig_ = null;
if (networkConfigBuilder_ != null) {
networkConfigBuilder_.dispose();
networkConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.metastore.v1alpha.MetastoreProto
.internal_static_google_cloud_metastore_v1alpha_AuxiliaryVersionConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig getDefaultInstanceForType() {
return com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig build() {
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig buildPartial() {
com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig result =
new com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.configOverrides_ = internalGetConfigOverrides();
result.configOverrides_.makeImmutable();
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.networkConfig_ =
networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig) {
return mergeFrom((com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig other) {
if (other == com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig.getDefaultInstance())
return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableConfigOverrides().mergeFrom(other.internalGetConfigOverrides());
bitField0_ |= 0x00000002;
if (other.hasNetworkConfig()) {
mergeNetworkConfig(other.getNetworkConfig());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
version_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.protobuf.MapEntry configOverrides__ =
input.readMessage(
ConfigOverridesDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableConfigOverrides()
.getMutableMap()
.put(configOverrides__.getKey(), configOverrides__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object version_ = "";
/**
*
*
*
* The Hive metastore version of the auxiliary service. It must be less
* than the primary Hive metastore service's version.
*
*
* string version = 1;
*
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The Hive metastore version of the auxiliary service. It must be less
* than the primary Hive metastore service's version.
*
*
* string version = 1;
*
* @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;
}
}
/**
*
*
*
* The Hive metastore version of the auxiliary service. It must be less
* than the primary Hive metastore service's version.
*
*
* string version = 1;
*
* @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;
}
/**
*
*
*
* The Hive metastore version of the auxiliary service. It must be less
* than the primary Hive metastore service's version.
*
*
* string version = 1;
*
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The Hive metastore version of the auxiliary service. It must be less
* than the primary Hive metastore service's version.
*
*
* string version = 1;
*
* @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
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* 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
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* map<string, string> config_overrides = 2;
*/
@java.lang.Override
public java.util.Map getConfigOverridesMap() {
return internalGetConfigOverrides().getMap();
}
/**
*
*
*
* A mapping of Hive metastore configuration key-value pairs to apply to the
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* map<string, string> config_overrides = 2;
*/
@java.lang.Override
public /* nullable */ java.lang.String getConfigOverridesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetConfigOverrides().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* A mapping of Hive metastore configuration key-value pairs to apply to the
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* 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
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* 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
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* 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
* auxiliary Hive metastore (configured in `hive-site.xml`) in addition to
* the primary version's overrides. If keys are present in both the auxiliary
* version's overrides and the primary version's overrides, the value from
* the auxiliary version's overrides takes precedence.
*
*
* map<string, string> config_overrides = 2;
*/
public Builder putAllConfigOverrides(java.util.Map values) {
internalGetMutableConfigOverrides().getMutableMap().putAll(values);
bitField0_ |= 0x00000002;
return this;
}
private com.google.cloud.metastore.v1alpha.NetworkConfig networkConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1alpha.NetworkConfig,
com.google.cloud.metastore.v1alpha.NetworkConfig.Builder,
com.google.cloud.metastore.v1alpha.NetworkConfigOrBuilder>
networkConfigBuilder_;
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the networkConfig field is set.
*/
public boolean hasNetworkConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The networkConfig.
*/
public com.google.cloud.metastore.v1alpha.NetworkConfig getNetworkConfig() {
if (networkConfigBuilder_ == null) {
return networkConfig_ == null
? com.google.cloud.metastore.v1alpha.NetworkConfig.getDefaultInstance()
: networkConfig_;
} else {
return networkConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setNetworkConfig(com.google.cloud.metastore.v1alpha.NetworkConfig value) {
if (networkConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkConfig_ = value;
} else {
networkConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setNetworkConfig(
com.google.cloud.metastore.v1alpha.NetworkConfig.Builder builderForValue) {
if (networkConfigBuilder_ == null) {
networkConfig_ = builderForValue.build();
} else {
networkConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeNetworkConfig(com.google.cloud.metastore.v1alpha.NetworkConfig value) {
if (networkConfigBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& networkConfig_ != null
&& networkConfig_
!= com.google.cloud.metastore.v1alpha.NetworkConfig.getDefaultInstance()) {
getNetworkConfigBuilder().mergeFrom(value);
} else {
networkConfig_ = value;
}
} else {
networkConfigBuilder_.mergeFrom(value);
}
if (networkConfig_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearNetworkConfig() {
bitField0_ = (bitField0_ & ~0x00000004);
networkConfig_ = null;
if (networkConfigBuilder_ != null) {
networkConfigBuilder_.dispose();
networkConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.metastore.v1alpha.NetworkConfig.Builder getNetworkConfigBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getNetworkConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.metastore.v1alpha.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {
if (networkConfigBuilder_ != null) {
return networkConfigBuilder_.getMessageOrBuilder();
} else {
return networkConfig_ == null
? com.google.cloud.metastore.v1alpha.NetworkConfig.getDefaultInstance()
: networkConfig_;
}
}
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1alpha.NetworkConfig,
com.google.cloud.metastore.v1alpha.NetworkConfig.Builder,
com.google.cloud.metastore.v1alpha.NetworkConfigOrBuilder>
getNetworkConfigFieldBuilder() {
if (networkConfigBuilder_ == null) {
networkConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1alpha.NetworkConfig,
com.google.cloud.metastore.v1alpha.NetworkConfig.Builder,
com.google.cloud.metastore.v1alpha.NetworkConfigOrBuilder>(
getNetworkConfig(), getParentForChildren(), isClean());
networkConfig_ = null;
}
return networkConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.metastore.v1alpha.AuxiliaryVersionConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.metastore.v1alpha.AuxiliaryVersionConfig)
private static final com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig();
}
public static com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuxiliaryVersionConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.metastore.v1alpha.AuxiliaryVersionConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy