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;
/**
*
*
*
* Configuration information for the auxiliary service versions.
*
*
* Protobuf type {@code google.cloud.metastore.v1beta.AuxiliaryVersionConfig}
*/
public final class AuxiliaryVersionConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.metastore.v1beta.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.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_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.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_AuxiliaryVersionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1beta.AuxiliaryVersionConfig.class,
com.google.cloud.metastore.v1beta.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.
*
* 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.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_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.
*
* 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.
*
* 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.v1beta.NetworkConfig networkConfig_;
/**
*
*
*
* Output only. The network configuration contains the endpoint URI(s) of the
* auxiliary Hive metastore service.
*
*
*
* .google.cloud.metastore.v1beta.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.
*
* 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.
*
* 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.
*
* 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.
*