com.google.cloud.metastore.v1beta.Service 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-v1beta Show documentation
Show all versions of proto-google-cloud-dataproc-metastore-v1beta 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/v1beta/metastore.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.metastore.v1beta;
/**
*
*
*
* A managed metastore service that serves metadata queries.
*
*
* Protobuf type {@code google.cloud.metastore.v1beta.Service}
*/
public final class Service extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.metastore.v1beta.Service)
ServiceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Service.newBuilder() to construct.
private Service(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Service() {
name_ = "";
network_ = "";
endpointUri_ = "";
state_ = 0;
stateMessage_ = "";
artifactGcsUri_ = "";
tier_ = 0;
uid_ = "";
releaseChannel_ = 0;
databaseType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Service();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_Service_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
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_Service_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1beta.Service.class,
com.google.cloud.metastore.v1beta.Service.Builder.class);
}
/**
*
*
*
* The current state of the metastore service.
*
*
* Protobuf enum {@code google.cloud.metastore.v1beta.Service.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The state of the metastore service is unknown.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The metastore service is in the process of being created.
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
*
*
* The metastore service is running and ready to serve queries.
*
*
* ACTIVE = 2;
*/
ACTIVE(2),
/**
*
*
*
* The metastore service is entering suspension. Its query-serving
* availability may cease unexpectedly.
*
*
* SUSPENDING = 3;
*/
SUSPENDING(3),
/**
*
*
*
* The metastore service is suspended and unable to serve queries.
*
*
* SUSPENDED = 4;
*/
SUSPENDED(4),
/**
*
*
*
* The metastore service is being updated. It remains usable but cannot
* accept additional update requests or be deleted at this time.
*
*
* UPDATING = 5;
*/
UPDATING(5),
/**
*
*
*
* The metastore service is undergoing deletion. It cannot be used.
*
*
* DELETING = 6;
*/
DELETING(6),
/**
*
*
*
* The metastore service has encountered an error and cannot be used. The
* metastore service should be deleted.
*
*
* ERROR = 7;
*/
ERROR(7),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The state of the metastore service is unknown.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The metastore service is in the process of being created.
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
*
*
* The metastore service is running and ready to serve queries.
*
*
* ACTIVE = 2;
*/
public static final int ACTIVE_VALUE = 2;
/**
*
*
*
* The metastore service is entering suspension. Its query-serving
* availability may cease unexpectedly.
*
*
* SUSPENDING = 3;
*/
public static final int SUSPENDING_VALUE = 3;
/**
*
*
*
* The metastore service is suspended and unable to serve queries.
*
*
* SUSPENDED = 4;
*/
public static final int SUSPENDED_VALUE = 4;
/**
*
*
*
* The metastore service is being updated. It remains usable but cannot
* accept additional update requests or be deleted at this time.
*
*
* UPDATING = 5;
*/
public static final int UPDATING_VALUE = 5;
/**
*
*
*
* The metastore service is undergoing deletion. It cannot be used.
*
*
* DELETING = 6;
*/
public static final int DELETING_VALUE = 6;
/**
*
*
*
* The metastore service has encountered an error and cannot be used. The
* metastore service should be deleted.
*
*
* ERROR = 7;
*/
public static final int ERROR_VALUE = 7;
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 State 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 State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return CREATING;
case 2:
return ACTIVE;
case 3:
return SUSPENDING;
case 4:
return SUSPENDED;
case 5:
return UPDATING;
case 6:
return DELETING;
case 7:
return ERROR;
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 State findValueByNumber(int number) {
return State.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.Service.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State 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 State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.metastore.v1beta.Service.State)
}
/**
*
*
*
* Available service tiers.
*
*
* Protobuf enum {@code google.cloud.metastore.v1beta.Service.Tier}
*/
public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The tier is not set.
*
*
* TIER_UNSPECIFIED = 0;
*/
TIER_UNSPECIFIED(0),
/**
*
*
*
* The developer tier provides limited scalability and no fault tolerance.
* Good for low-cost proof-of-concept.
*
*
* DEVELOPER = 1;
*/
DEVELOPER(1),
/**
*
*
*
* The enterprise tier provides multi-zone high availability, and sufficient
* scalability for enterprise-level Dataproc Metastore workloads.
*
*
* ENTERPRISE = 3;
*/
ENTERPRISE(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The tier is not set.
*
*
* TIER_UNSPECIFIED = 0;
*/
public static final int TIER_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The developer tier provides limited scalability and no fault tolerance.
* Good for low-cost proof-of-concept.
*
*
* DEVELOPER = 1;
*/
public static final int DEVELOPER_VALUE = 1;
/**
*
*
*
* The enterprise tier provides multi-zone high availability, and sufficient
* scalability for enterprise-level Dataproc Metastore workloads.
*
*
* ENTERPRISE = 3;
*/
public static final int ENTERPRISE_VALUE = 3;
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 Tier 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 Tier forNumber(int value) {
switch (value) {
case 0:
return TIER_UNSPECIFIED;
case 1:
return DEVELOPER;
case 3:
return ENTERPRISE;
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 Tier findValueByNumber(int number) {
return Tier.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.Service.getDescriptor().getEnumTypes().get(1);
}
private static final Tier[] VALUES = values();
public static Tier 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 Tier(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.metastore.v1beta.Service.Tier)
}
/**
*
*
*
* Release channels bundle features of varying levels of stability. Newer
* features may be introduced initially into less stable release channels and
* can be automatically promoted into more stable release channels.
*
*
* Protobuf enum {@code google.cloud.metastore.v1beta.Service.ReleaseChannel}
*/
public enum ReleaseChannel implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Release channel is not specified.
*
*
* RELEASE_CHANNEL_UNSPECIFIED = 0;
*/
RELEASE_CHANNEL_UNSPECIFIED(0),
/**
*
*
*
* The `CANARY` release channel contains the newest features, which may be
* unstable and subject to unresolved issues with no known workarounds.
* Services using the `CANARY` release channel are not subject to any SLAs.
*
*
* CANARY = 1;
*/
CANARY(1),
/**
*
*
*
* The `STABLE` release channel contains features that are considered stable
* and have been validated for production use.
*
*
* STABLE = 2;
*/
STABLE(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Release channel is not specified.
*
*
* RELEASE_CHANNEL_UNSPECIFIED = 0;
*/
public static final int RELEASE_CHANNEL_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The `CANARY` release channel contains the newest features, which may be
* unstable and subject to unresolved issues with no known workarounds.
* Services using the `CANARY` release channel are not subject to any SLAs.
*
*
* CANARY = 1;
*/
public static final int CANARY_VALUE = 1;
/**
*
*
*
* The `STABLE` release channel contains features that are considered stable
* and have been validated for production use.
*
*
* STABLE = 2;
*/
public static final int STABLE_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 ReleaseChannel 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 ReleaseChannel forNumber(int value) {
switch (value) {
case 0:
return RELEASE_CHANNEL_UNSPECIFIED;
case 1:
return CANARY;
case 2:
return STABLE;
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 ReleaseChannel findValueByNumber(int number) {
return ReleaseChannel.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.Service.getDescriptor().getEnumTypes().get(2);
}
private static final ReleaseChannel[] VALUES = values();
public static ReleaseChannel 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 ReleaseChannel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.metastore.v1beta.Service.ReleaseChannel)
}
/**
*
*
*
* The backend database type for the metastore service.
*
*
* Protobuf enum {@code google.cloud.metastore.v1beta.Service.DatabaseType}
*/
public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The DATABASE_TYPE is not set.
*
*
* DATABASE_TYPE_UNSPECIFIED = 0;
*/
DATABASE_TYPE_UNSPECIFIED(0),
/**
*
*
*
* MySQL is used to persist the metastore data.
*
*
* MYSQL = 1;
*/
MYSQL(1),
/**
*
*
*
* Spanner is used to persist the metastore data.
*
*
* SPANNER = 2;
*/
SPANNER(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The DATABASE_TYPE is not set.
*
*
* DATABASE_TYPE_UNSPECIFIED = 0;
*/
public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* MySQL is used to persist the metastore data.
*
*
* MYSQL = 1;
*/
public static final int MYSQL_VALUE = 1;
/**
*
*
*
* Spanner is used to persist the metastore data.
*
*
* SPANNER = 2;
*/
public static final int SPANNER_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 DatabaseType 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 DatabaseType forNumber(int value) {
switch (value) {
case 0:
return DATABASE_TYPE_UNSPECIFIED;
case 1:
return MYSQL;
case 2:
return SPANNER;
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 DatabaseType findValueByNumber(int number) {
return DatabaseType.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.Service.getDescriptor().getEnumTypes().get(3);
}
private static final DatabaseType[] VALUES = values();
public static DatabaseType 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 DatabaseType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.metastore.v1beta.Service.DatabaseType)
}
private int bitField0_;
private int metastoreConfigCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object metastoreConfig_;
public enum MetastoreConfigCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
HIVE_METASTORE_CONFIG(5),
METASTORECONFIG_NOT_SET(0);
private final int value;
private MetastoreConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MetastoreConfigCase valueOf(int value) {
return forNumber(value);
}
public static MetastoreConfigCase forNumber(int value) {
switch (value) {
case 5:
return HIVE_METASTORE_CONFIG;
case 0:
return METASTORECONFIG_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public MetastoreConfigCase getMetastoreConfigCase() {
return MetastoreConfigCase.forNumber(metastoreConfigCase_);
}
public static final int HIVE_METASTORE_CONFIG_FIELD_NUMBER = 5;
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*
* @return Whether the hiveMetastoreConfig field is set.
*/
@java.lang.Override
public boolean hasHiveMetastoreConfig() {
return metastoreConfigCase_ == 5;
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*
* @return The hiveMetastoreConfig.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.HiveMetastoreConfig getHiveMetastoreConfig() {
if (metastoreConfigCase_ == 5) {
return (com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_;
}
return com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDefaultInstance();
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.HiveMetastoreConfigOrBuilder
getHiveMetastoreConfigOrBuilder() {
if (metastoreConfigCase_ == 5) {
return (com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_;
}
return com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDefaultInstance();
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Immutable. The relative resource name of the metastore service, in the
* following format:
*
* `projects/{project_number}/locations/{location_id}/services/{service_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* Immutable. The relative resource name of the metastore service, in the
* following format:
*
* `projects/{project_number}/locations/{location_id}/services/{service_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATE_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_Service_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int NETWORK_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object network_ = "";
/**
*
*
*
* Immutable. The relative resource name of the VPC network on which the
* instance can be accessed. It is specified in the following form:
*
* `projects/{project_number}/global/networks/{network_id}`.
*
*
*
* string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The network.
*/
@java.lang.Override
public java.lang.String getNetwork() {
java.lang.Object ref = network_;
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();
network_ = s;
return s;
}
}
/**
*
*
*
* Immutable. The relative resource name of the VPC network on which the
* instance can be accessed. It is specified in the following form:
*
* `projects/{project_number}/global/networks/{network_id}`.
*
*
*
* string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for network.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNetworkBytes() {
java.lang.Object ref = network_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
network_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDPOINT_URI_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object endpointUri_ = "";
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore service.
*
*
* string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The endpointUri.
*/
@java.lang.Override
public java.lang.String getEndpointUri() {
java.lang.Object ref = endpointUri_;
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();
endpointUri_ = s;
return s;
}
}
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore service.
*
*
* string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for endpointUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEndpointUriBytes() {
java.lang.Object ref = endpointUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endpointUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 9;
private int port_ = 0;
/**
*
*
*
* The TCP port at which the metastore service is reached. Default: 9083.
*
*
* int32 port = 9;
*
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
public static final int STATE_FIELD_NUMBER = 10;
private int state_ = 0;
/**
*
*
*
* Output only. The current state of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. The current state of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.State getState() {
com.google.cloud.metastore.v1beta.Service.State result =
com.google.cloud.metastore.v1beta.Service.State.forNumber(state_);
return result == null ? com.google.cloud.metastore.v1beta.Service.State.UNRECOGNIZED : result;
}
public static final int STATE_MESSAGE_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object stateMessage_ = "";
/**
*
*
*
* Output only. Additional information about the current state of the
* metastore service, if available.
*
*
* string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The stateMessage.
*/
@java.lang.Override
public java.lang.String getStateMessage() {
java.lang.Object ref = stateMessage_;
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();
stateMessage_ = s;
return s;
}
}
/**
*
*
*
* Output only. Additional information about the current state of the
* metastore service, if available.
*
*
* string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for stateMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStateMessageBytes() {
java.lang.Object ref = stateMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stateMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARTIFACT_GCS_URI_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object artifactGcsUri_ = "";
/**
*
*
*
* Output only. A Cloud Storage URI (starting with `gs://`) that specifies
* where artifacts related to the metastore service are stored.
*
*
* string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The artifactGcsUri.
*/
@java.lang.Override
public java.lang.String getArtifactGcsUri() {
java.lang.Object ref = artifactGcsUri_;
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();
artifactGcsUri_ = s;
return s;
}
}
/**
*
*
*
* Output only. A Cloud Storage URI (starting with `gs://`) that specifies
* where artifacts related to the metastore service are stored.
*
*
* string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for artifactGcsUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getArtifactGcsUriBytes() {
java.lang.Object ref = artifactGcsUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
artifactGcsUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIER_FIELD_NUMBER = 13;
private int tier_ = 0;
/**
*
*
*
* The tier of the service.
*
*
* .google.cloud.metastore.v1beta.Service.Tier tier = 13;
*
* @return The enum numeric value on the wire for tier.
*/
@java.lang.Override
public int getTierValue() {
return tier_;
}
/**
*
*
*
* The tier of the service.
*
*
* .google.cloud.metastore.v1beta.Service.Tier tier = 13;
*
* @return The tier.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.Tier getTier() {
com.google.cloud.metastore.v1beta.Service.Tier result =
com.google.cloud.metastore.v1beta.Service.Tier.forNumber(tier_);
return result == null ? com.google.cloud.metastore.v1beta.Service.Tier.UNRECOGNIZED : result;
}
public static final int METADATA_INTEGRATION_FIELD_NUMBER = 14;
private com.google.cloud.metastore.v1beta.MetadataIntegration metadataIntegration_;
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*
* @return Whether the metadataIntegration field is set.
*/
@java.lang.Override
public boolean hasMetadataIntegration() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*
* @return The metadataIntegration.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.MetadataIntegration getMetadataIntegration() {
return metadataIntegration_ == null
? com.google.cloud.metastore.v1beta.MetadataIntegration.getDefaultInstance()
: metadataIntegration_;
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.MetadataIntegrationOrBuilder
getMetadataIntegrationOrBuilder() {
return metadataIntegration_ == null
? com.google.cloud.metastore.v1beta.MetadataIntegration.getDefaultInstance()
: metadataIntegration_;
}
public static final int MAINTENANCE_WINDOW_FIELD_NUMBER = 15;
private com.google.cloud.metastore.v1beta.MaintenanceWindow maintenanceWindow_;
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*
* @return Whether the maintenanceWindow field is set.
*/
@java.lang.Override
public boolean hasMaintenanceWindow() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*
* @return The maintenanceWindow.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.MaintenanceWindow getMaintenanceWindow() {
return maintenanceWindow_ == null
? com.google.cloud.metastore.v1beta.MaintenanceWindow.getDefaultInstance()
: maintenanceWindow_;
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.MaintenanceWindowOrBuilder
getMaintenanceWindowOrBuilder() {
return maintenanceWindow_ == null
? com.google.cloud.metastore.v1beta.MaintenanceWindow.getDefaultInstance()
: maintenanceWindow_;
}
public static final int UID_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
*
*
*
* Output only. The globally unique resource identifier of the metastore
* service.
*
*
* string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The uid.
*/
@java.lang.Override
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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();
uid_ = s;
return s;
}
}
/**
*
*
*
* Output only. The globally unique resource identifier of the metastore
* service.
*
*
* string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METADATA_MANAGEMENT_ACTIVITY_FIELD_NUMBER = 17;
private com.google.cloud.metastore.v1beta.MetadataManagementActivity metadataManagementActivity_;
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the metadataManagementActivity field is set.
*/
@java.lang.Override
public boolean hasMetadataManagementActivity() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The metadataManagementActivity.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.MetadataManagementActivity
getMetadataManagementActivity() {
return metadataManagementActivity_ == null
? com.google.cloud.metastore.v1beta.MetadataManagementActivity.getDefaultInstance()
: metadataManagementActivity_;
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.MetadataManagementActivityOrBuilder
getMetadataManagementActivityOrBuilder() {
return metadataManagementActivity_ == null
? com.google.cloud.metastore.v1beta.MetadataManagementActivity.getDefaultInstance()
: metadataManagementActivity_;
}
public static final int RELEASE_CHANNEL_FIELD_NUMBER = 19;
private int releaseChannel_ = 0;
/**
*
*
*
* Immutable. The release channel of the service.
* If unspecified, defaults to `STABLE`.
*
*
*
* .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for releaseChannel.
*/
@java.lang.Override
public int getReleaseChannelValue() {
return releaseChannel_;
}
/**
*
*
*
* Immutable. The release channel of the service.
* If unspecified, defaults to `STABLE`.
*
*
*
* .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The releaseChannel.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.ReleaseChannel getReleaseChannel() {
com.google.cloud.metastore.v1beta.Service.ReleaseChannel result =
com.google.cloud.metastore.v1beta.Service.ReleaseChannel.forNumber(releaseChannel_);
return result == null
? com.google.cloud.metastore.v1beta.Service.ReleaseChannel.UNRECOGNIZED
: result;
}
public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 20;
private com.google.cloud.metastore.v1beta.EncryptionConfig encryptionConfig_;
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return Whether the encryptionConfig field is set.
*/
@java.lang.Override
public boolean hasEncryptionConfig() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The encryptionConfig.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.EncryptionConfig getEncryptionConfig() {
return encryptionConfig_ == null
? com.google.cloud.metastore.v1beta.EncryptionConfig.getDefaultInstance()
: encryptionConfig_;
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.EncryptionConfigOrBuilder
getEncryptionConfigOrBuilder() {
return encryptionConfig_ == null
? com.google.cloud.metastore.v1beta.EncryptionConfig.getDefaultInstance()
: encryptionConfig_;
}
public static final int NETWORK_CONFIG_FIELD_NUMBER = 21;
private com.google.cloud.metastore.v1beta.NetworkConfig networkConfig_;
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*
* @return Whether the networkConfig field is set.
*/
@java.lang.Override
public boolean hasNetworkConfig() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*
* @return The networkConfig.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.NetworkConfig getNetworkConfig() {
return networkConfig_ == null
? com.google.cloud.metastore.v1beta.NetworkConfig.getDefaultInstance()
: networkConfig_;
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {
return networkConfig_ == null
? com.google.cloud.metastore.v1beta.NetworkConfig.getDefaultInstance()
: networkConfig_;
}
public static final int DATABASE_TYPE_FIELD_NUMBER = 22;
private int databaseType_ = 0;
/**
*
*
*
* Immutable. The database type that the Metastore service stores its data.
*
*
*
* .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for databaseType.
*/
@java.lang.Override
public int getDatabaseTypeValue() {
return databaseType_;
}
/**
*
*
*
* Immutable. The database type that the Metastore service stores its data.
*
*
*
* .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The databaseType.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.DatabaseType getDatabaseType() {
com.google.cloud.metastore.v1beta.Service.DatabaseType result =
com.google.cloud.metastore.v1beta.Service.DatabaseType.forNumber(databaseType_);
return result == null
? com.google.cloud.metastore.v1beta.Service.DatabaseType.UNRECOGNIZED
: result;
}
public static final int TELEMETRY_CONFIG_FIELD_NUMBER = 23;
private com.google.cloud.metastore.v1beta.TelemetryConfig telemetryConfig_;
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*
* @return Whether the telemetryConfig field is set.
*/
@java.lang.Override
public boolean hasTelemetryConfig() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*
* @return The telemetryConfig.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.TelemetryConfig getTelemetryConfig() {
return telemetryConfig_ == null
? com.google.cloud.metastore.v1beta.TelemetryConfig.getDefaultInstance()
: telemetryConfig_;
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.TelemetryConfigOrBuilder getTelemetryConfigOrBuilder() {
return telemetryConfig_ == null
? com.google.cloud.metastore.v1beta.TelemetryConfig.getDefaultInstance()
: telemetryConfig_;
}
public static final int SCALING_CONFIG_FIELD_NUMBER = 24;
private com.google.cloud.metastore.v1beta.ScalingConfig scalingConfig_;
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*
* @return Whether the scalingConfig field is set.
*/
@java.lang.Override
public boolean hasScalingConfig() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*
* @return The scalingConfig.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.ScalingConfig getScalingConfig() {
return scalingConfig_ == null
? com.google.cloud.metastore.v1beta.ScalingConfig.getDefaultInstance()
: scalingConfig_;
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.ScalingConfigOrBuilder getScalingConfigOrBuilder() {
return scalingConfig_ == null
? com.google.cloud.metastore.v1beta.ScalingConfig.getDefaultInstance()
: scalingConfig_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getUpdateTime());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
if (metastoreConfigCase_ == 5) {
output.writeMessage(
5, (com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, network_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endpointUri_);
}
if (port_ != 0) {
output.writeInt32(9, port_);
}
if (state_ != com.google.cloud.metastore.v1beta.Service.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(10, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stateMessage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactGcsUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, artifactGcsUri_);
}
if (tier_ != com.google.cloud.metastore.v1beta.Service.Tier.TIER_UNSPECIFIED.getNumber()) {
output.writeEnum(13, tier_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(14, getMetadataIntegration());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(15, getMaintenanceWindow());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, uid_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(17, getMetadataManagementActivity());
}
if (releaseChannel_
!= com.google.cloud.metastore.v1beta.Service.ReleaseChannel.RELEASE_CHANNEL_UNSPECIFIED
.getNumber()) {
output.writeEnum(19, releaseChannel_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(20, getEncryptionConfig());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(21, getNetworkConfig());
}
if (databaseType_
!= com.google.cloud.metastore.v1beta.Service.DatabaseType.DATABASE_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(22, databaseType_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(23, getTelemetryConfig());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(24, getScalingConfig());
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
}
if (metastoreConfigCase_ == 5) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, (com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, network_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, endpointUri_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, port_);
}
if (state_ != com.google.cloud.metastore.v1beta.Service.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateMessage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactGcsUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, artifactGcsUri_);
}
if (tier_ != com.google.cloud.metastore.v1beta.Service.Tier.TIER_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, tier_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(14, getMetadataIntegration());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getMaintenanceWindow());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, uid_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
17, getMetadataManagementActivity());
}
if (releaseChannel_
!= com.google.cloud.metastore.v1beta.Service.ReleaseChannel.RELEASE_CHANNEL_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, releaseChannel_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryptionConfig());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getNetworkConfig());
}
if (databaseType_
!= com.google.cloud.metastore.v1beta.Service.DatabaseType.DATABASE_TYPE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, databaseType_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getTelemetryConfig());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getScalingConfig());
}
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.v1beta.Service)) {
return super.equals(obj);
}
com.google.cloud.metastore.v1beta.Service other =
(com.google.cloud.metastore.v1beta.Service) obj;
if (!getName().equals(other.getName())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (!getNetwork().equals(other.getNetwork())) return false;
if (!getEndpointUri().equals(other.getEndpointUri())) return false;
if (getPort() != other.getPort()) return false;
if (state_ != other.state_) return false;
if (!getStateMessage().equals(other.getStateMessage())) return false;
if (!getArtifactGcsUri().equals(other.getArtifactGcsUri())) return false;
if (tier_ != other.tier_) return false;
if (hasMetadataIntegration() != other.hasMetadataIntegration()) return false;
if (hasMetadataIntegration()) {
if (!getMetadataIntegration().equals(other.getMetadataIntegration())) return false;
}
if (hasMaintenanceWindow() != other.hasMaintenanceWindow()) return false;
if (hasMaintenanceWindow()) {
if (!getMaintenanceWindow().equals(other.getMaintenanceWindow())) return false;
}
if (!getUid().equals(other.getUid())) return false;
if (hasMetadataManagementActivity() != other.hasMetadataManagementActivity()) return false;
if (hasMetadataManagementActivity()) {
if (!getMetadataManagementActivity().equals(other.getMetadataManagementActivity()))
return false;
}
if (releaseChannel_ != other.releaseChannel_) return false;
if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false;
if (hasEncryptionConfig()) {
if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false;
}
if (hasNetworkConfig() != other.hasNetworkConfig()) return false;
if (hasNetworkConfig()) {
if (!getNetworkConfig().equals(other.getNetworkConfig())) return false;
}
if (databaseType_ != other.databaseType_) return false;
if (hasTelemetryConfig() != other.hasTelemetryConfig()) return false;
if (hasTelemetryConfig()) {
if (!getTelemetryConfig().equals(other.getTelemetryConfig())) return false;
}
if (hasScalingConfig() != other.hasScalingConfig()) return false;
if (hasScalingConfig()) {
if (!getScalingConfig().equals(other.getScalingConfig())) return false;
}
if (!getMetastoreConfigCase().equals(other.getMetastoreConfigCase())) return false;
switch (metastoreConfigCase_) {
case 5:
if (!getHiveMetastoreConfig().equals(other.getHiveMetastoreConfig())) return false;
break;
case 0:
default:
}
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + NETWORK_FIELD_NUMBER;
hash = (53 * hash) + getNetwork().hashCode();
hash = (37 * hash) + ENDPOINT_URI_FIELD_NUMBER;
hash = (53 * hash) + getEndpointUri().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStateMessage().hashCode();
hash = (37 * hash) + ARTIFACT_GCS_URI_FIELD_NUMBER;
hash = (53 * hash) + getArtifactGcsUri().hashCode();
hash = (37 * hash) + TIER_FIELD_NUMBER;
hash = (53 * hash) + tier_;
if (hasMetadataIntegration()) {
hash = (37 * hash) + METADATA_INTEGRATION_FIELD_NUMBER;
hash = (53 * hash) + getMetadataIntegration().hashCode();
}
if (hasMaintenanceWindow()) {
hash = (37 * hash) + MAINTENANCE_WINDOW_FIELD_NUMBER;
hash = (53 * hash) + getMaintenanceWindow().hashCode();
}
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
if (hasMetadataManagementActivity()) {
hash = (37 * hash) + METADATA_MANAGEMENT_ACTIVITY_FIELD_NUMBER;
hash = (53 * hash) + getMetadataManagementActivity().hashCode();
}
hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + releaseChannel_;
if (hasEncryptionConfig()) {
hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEncryptionConfig().hashCode();
}
if (hasNetworkConfig()) {
hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getNetworkConfig().hashCode();
}
hash = (37 * hash) + DATABASE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + databaseType_;
if (hasTelemetryConfig()) {
hash = (37 * hash) + TELEMETRY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getTelemetryConfig().hashCode();
}
if (hasScalingConfig()) {
hash = (37 * hash) + SCALING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getScalingConfig().hashCode();
}
switch (metastoreConfigCase_) {
case 5:
hash = (37 * hash) + HIVE_METASTORE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getHiveMetastoreConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.metastore.v1beta.Service parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1beta.Service 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.v1beta.Service parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1beta.Service 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.v1beta.Service parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1beta.Service parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.metastore.v1beta.Service parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1beta.Service 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.v1beta.Service parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1beta.Service 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.v1beta.Service parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1beta.Service 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.v1beta.Service 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;
}
/**
*
*
*
* A managed metastore service that serves metadata queries.
*
*
* Protobuf type {@code google.cloud.metastore.v1beta.Service}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.metastore.v1beta.Service)
com.google.cloud.metastore.v1beta.ServiceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_Service_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
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_Service_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1beta.Service.class,
com.google.cloud.metastore.v1beta.Service.Builder.class);
}
// Construct using com.google.cloud.metastore.v1beta.Service.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getMetadataIntegrationFieldBuilder();
getMaintenanceWindowFieldBuilder();
getMetadataManagementActivityFieldBuilder();
getEncryptionConfigFieldBuilder();
getNetworkConfigFieldBuilder();
getTelemetryConfigFieldBuilder();
getScalingConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (hiveMetastoreConfigBuilder_ != null) {
hiveMetastoreConfigBuilder_.clear();
}
name_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
internalGetMutableLabels().clear();
network_ = "";
endpointUri_ = "";
port_ = 0;
state_ = 0;
stateMessage_ = "";
artifactGcsUri_ = "";
tier_ = 0;
metadataIntegration_ = null;
if (metadataIntegrationBuilder_ != null) {
metadataIntegrationBuilder_.dispose();
metadataIntegrationBuilder_ = null;
}
maintenanceWindow_ = null;
if (maintenanceWindowBuilder_ != null) {
maintenanceWindowBuilder_.dispose();
maintenanceWindowBuilder_ = null;
}
uid_ = "";
metadataManagementActivity_ = null;
if (metadataManagementActivityBuilder_ != null) {
metadataManagementActivityBuilder_.dispose();
metadataManagementActivityBuilder_ = null;
}
releaseChannel_ = 0;
encryptionConfig_ = null;
if (encryptionConfigBuilder_ != null) {
encryptionConfigBuilder_.dispose();
encryptionConfigBuilder_ = null;
}
networkConfig_ = null;
if (networkConfigBuilder_ != null) {
networkConfigBuilder_.dispose();
networkConfigBuilder_ = null;
}
databaseType_ = 0;
telemetryConfig_ = null;
if (telemetryConfigBuilder_ != null) {
telemetryConfigBuilder_.dispose();
telemetryConfigBuilder_ = null;
}
scalingConfig_ = null;
if (scalingConfigBuilder_ != null) {
scalingConfigBuilder_.dispose();
scalingConfigBuilder_ = null;
}
metastoreConfigCase_ = 0;
metastoreConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_Service_descriptor;
}
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service getDefaultInstanceForType() {
return com.google.cloud.metastore.v1beta.Service.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service build() {
com.google.cloud.metastore.v1beta.Service result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service buildPartial() {
com.google.cloud.metastore.v1beta.Service result =
new com.google.cloud.metastore.v1beta.Service(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.metastore.v1beta.Service result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.network_ = network_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.endpointUri_ = endpointUri_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.port_ = port_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.stateMessage_ = stateMessage_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.artifactGcsUri_ = artifactGcsUri_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.tier_ = tier_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.metadataIntegration_ =
metadataIntegrationBuilder_ == null
? metadataIntegration_
: metadataIntegrationBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.maintenanceWindow_ =
maintenanceWindowBuilder_ == null
? maintenanceWindow_
: maintenanceWindowBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.metadataManagementActivity_ =
metadataManagementActivityBuilder_ == null
? metadataManagementActivity_
: metadataManagementActivityBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.releaseChannel_ = releaseChannel_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.encryptionConfig_ =
encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.networkConfig_ =
networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.databaseType_ = databaseType_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.telemetryConfig_ =
telemetryConfigBuilder_ == null ? telemetryConfig_ : telemetryConfigBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.scalingConfig_ =
scalingConfigBuilder_ == null ? scalingConfig_ : scalingConfigBuilder_.build();
to_bitField0_ |= 0x00000100;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.metastore.v1beta.Service result) {
result.metastoreConfigCase_ = metastoreConfigCase_;
result.metastoreConfig_ = this.metastoreConfig_;
if (metastoreConfigCase_ == 5 && hiveMetastoreConfigBuilder_ != null) {
result.metastoreConfig_ = hiveMetastoreConfigBuilder_.build();
}
}
@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.v1beta.Service) {
return mergeFrom((com.google.cloud.metastore.v1beta.Service) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.metastore.v1beta.Service other) {
if (other == com.google.cloud.metastore.v1beta.Service.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000010;
if (!other.getNetwork().isEmpty()) {
network_ = other.network_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getEndpointUri().isEmpty()) {
endpointUri_ = other.endpointUri_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getStateMessage().isEmpty()) {
stateMessage_ = other.stateMessage_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getArtifactGcsUri().isEmpty()) {
artifactGcsUri_ = other.artifactGcsUri_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.tier_ != 0) {
setTierValue(other.getTierValue());
}
if (other.hasMetadataIntegration()) {
mergeMetadataIntegration(other.getMetadataIntegration());
}
if (other.hasMaintenanceWindow()) {
mergeMaintenanceWindow(other.getMaintenanceWindow());
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00004000;
onChanged();
}
if (other.hasMetadataManagementActivity()) {
mergeMetadataManagementActivity(other.getMetadataManagementActivity());
}
if (other.releaseChannel_ != 0) {
setReleaseChannelValue(other.getReleaseChannelValue());
}
if (other.hasEncryptionConfig()) {
mergeEncryptionConfig(other.getEncryptionConfig());
}
if (other.hasNetworkConfig()) {
mergeNetworkConfig(other.getNetworkConfig());
}
if (other.databaseType_ != 0) {
setDatabaseTypeValue(other.getDatabaseTypeValue());
}
if (other.hasTelemetryConfig()) {
mergeTelemetryConfig(other.getTelemetryConfig());
}
if (other.hasScalingConfig()) {
mergeScalingConfig(other.getScalingConfig());
}
switch (other.getMetastoreConfigCase()) {
case HIVE_METASTORE_CONFIG:
{
mergeHiveMetastoreConfig(other.getHiveMetastoreConfig());
break;
}
case METASTORECONFIG_NOT_SET:
{
break;
}
}
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 10
case 18:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 34:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 34
case 42:
{
input.readMessage(
getHiveMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry);
metastoreConfigCase_ = 5;
break;
} // case 42
case 58:
{
network_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 58
case 66:
{
endpointUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 66
case 72:
{
port_ = input.readInt32();
bitField0_ |= 0x00000080;
break;
} // case 72
case 80:
{
state_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 80
case 90:
{
stateMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 90
case 98:
{
artifactGcsUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 98
case 104:
{
tier_ = input.readEnum();
bitField0_ |= 0x00000800;
break;
} // case 104
case 114:
{
input.readMessage(
getMetadataIntegrationFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 114
case 122:
{
input.readMessage(
getMaintenanceWindowFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 122
case 130:
{
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 130
case 138:
{
input.readMessage(
getMetadataManagementActivityFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00008000;
break;
} // case 138
case 152:
{
releaseChannel_ = input.readEnum();
bitField0_ |= 0x00010000;
break;
} // case 152
case 162:
{
input.readMessage(
getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00020000;
break;
} // case 162
case 170:
{
input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00040000;
break;
} // case 170
case 176:
{
databaseType_ = input.readEnum();
bitField0_ |= 0x00080000;
break;
} // case 176
case 186:
{
input.readMessage(getTelemetryConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00100000;
break;
} // case 186
case 194:
{
input.readMessage(getScalingConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00200000;
break;
} // case 194
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 metastoreConfigCase_ = 0;
private java.lang.Object metastoreConfig_;
public MetastoreConfigCase getMetastoreConfigCase() {
return MetastoreConfigCase.forNumber(metastoreConfigCase_);
}
public Builder clearMetastoreConfig() {
metastoreConfigCase_ = 0;
metastoreConfig_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.HiveMetastoreConfig,
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.Builder,
com.google.cloud.metastore.v1beta.HiveMetastoreConfigOrBuilder>
hiveMetastoreConfigBuilder_;
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*
* @return Whether the hiveMetastoreConfig field is set.
*/
@java.lang.Override
public boolean hasHiveMetastoreConfig() {
return metastoreConfigCase_ == 5;
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*
* @return The hiveMetastoreConfig.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.HiveMetastoreConfig getHiveMetastoreConfig() {
if (hiveMetastoreConfigBuilder_ == null) {
if (metastoreConfigCase_ == 5) {
return (com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_;
}
return com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDefaultInstance();
} else {
if (metastoreConfigCase_ == 5) {
return hiveMetastoreConfigBuilder_.getMessage();
}
return com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDefaultInstance();
}
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
public Builder setHiveMetastoreConfig(
com.google.cloud.metastore.v1beta.HiveMetastoreConfig value) {
if (hiveMetastoreConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metastoreConfig_ = value;
onChanged();
} else {
hiveMetastoreConfigBuilder_.setMessage(value);
}
metastoreConfigCase_ = 5;
return this;
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
public Builder setHiveMetastoreConfig(
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.Builder builderForValue) {
if (hiveMetastoreConfigBuilder_ == null) {
metastoreConfig_ = builderForValue.build();
onChanged();
} else {
hiveMetastoreConfigBuilder_.setMessage(builderForValue.build());
}
metastoreConfigCase_ = 5;
return this;
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
public Builder mergeHiveMetastoreConfig(
com.google.cloud.metastore.v1beta.HiveMetastoreConfig value) {
if (hiveMetastoreConfigBuilder_ == null) {
if (metastoreConfigCase_ == 5
&& metastoreConfig_
!= com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDefaultInstance()) {
metastoreConfig_ =
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.newBuilder(
(com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_)
.mergeFrom(value)
.buildPartial();
} else {
metastoreConfig_ = value;
}
onChanged();
} else {
if (metastoreConfigCase_ == 5) {
hiveMetastoreConfigBuilder_.mergeFrom(value);
} else {
hiveMetastoreConfigBuilder_.setMessage(value);
}
}
metastoreConfigCase_ = 5;
return this;
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
public Builder clearHiveMetastoreConfig() {
if (hiveMetastoreConfigBuilder_ == null) {
if (metastoreConfigCase_ == 5) {
metastoreConfigCase_ = 0;
metastoreConfig_ = null;
onChanged();
}
} else {
if (metastoreConfigCase_ == 5) {
metastoreConfigCase_ = 0;
metastoreConfig_ = null;
}
hiveMetastoreConfigBuilder_.clear();
}
return this;
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
public com.google.cloud.metastore.v1beta.HiveMetastoreConfig.Builder
getHiveMetastoreConfigBuilder() {
return getHiveMetastoreConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.HiveMetastoreConfigOrBuilder
getHiveMetastoreConfigOrBuilder() {
if ((metastoreConfigCase_ == 5) && (hiveMetastoreConfigBuilder_ != null)) {
return hiveMetastoreConfigBuilder_.getMessageOrBuilder();
} else {
if (metastoreConfigCase_ == 5) {
return (com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_;
}
return com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDefaultInstance();
}
}
/**
*
*
*
* Configuration information specific to running Hive metastore
* software as the metastore service.
*
*
* .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.HiveMetastoreConfig,
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.Builder,
com.google.cloud.metastore.v1beta.HiveMetastoreConfigOrBuilder>
getHiveMetastoreConfigFieldBuilder() {
if (hiveMetastoreConfigBuilder_ == null) {
if (!(metastoreConfigCase_ == 5)) {
metastoreConfig_ =
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.getDefaultInstance();
}
hiveMetastoreConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.HiveMetastoreConfig,
com.google.cloud.metastore.v1beta.HiveMetastoreConfig.Builder,
com.google.cloud.metastore.v1beta.HiveMetastoreConfigOrBuilder>(
(com.google.cloud.metastore.v1beta.HiveMetastoreConfig) metastoreConfig_,
getParentForChildren(),
isClean());
metastoreConfig_ = null;
}
metastoreConfigCase_ = 5;
onChanged();
return hiveMetastoreConfigBuilder_;
}
private java.lang.Object name_ = "";
/**
*
*
*
* Immutable. The relative resource name of the metastore service, in the
* following format:
*
* `projects/{project_number}/locations/{location_id}/services/{service_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. The relative resource name of the metastore service, in the
* following format:
*
* `projects/{project_number}/locations/{location_id}/services/{service_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The relative resource name of the metastore service, in the
* following format:
*
* `projects/{project_number}/locations/{location_id}/services/{service_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The relative resource name of the metastore service, in the
* following format:
*
* `projects/{project_number}/locations/{location_id}/services/{service_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Immutable. The relative resource name of the metastore service, in the
* following format:
*
* `projects/{project_number}/locations/{location_id}/services/{service_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. The time when the metastore service was created.
*
*
*
* .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000008);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* Output only. The time when the metastore service was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000010;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00000010;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
*
*
*
* User-defined labels for the metastore service.
*
*
* map<string, string> labels = 4;
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00000010;
return this;
}
private java.lang.Object network_ = "";
/**
*
*
*
* Immutable. The relative resource name of the VPC network on which the
* instance can be accessed. It is specified in the following form:
*
* `projects/{project_number}/global/networks/{network_id}`.
*
*
*
* string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The network.
*/
public java.lang.String getNetwork() {
java.lang.Object ref = network_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
network_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. The relative resource name of the VPC network on which the
* instance can be accessed. It is specified in the following form:
*
* `projects/{project_number}/global/networks/{network_id}`.
*
*
*
* string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for network.
*/
public com.google.protobuf.ByteString getNetworkBytes() {
java.lang.Object ref = network_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
network_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The relative resource name of the VPC network on which the
* instance can be accessed. It is specified in the following form:
*
* `projects/{project_number}/global/networks/{network_id}`.
*
*
*
* string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The network to set.
* @return This builder for chaining.
*/
public Builder setNetwork(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
network_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The relative resource name of the VPC network on which the
* instance can be accessed. It is specified in the following form:
*
* `projects/{project_number}/global/networks/{network_id}`.
*
*
*
* string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearNetwork() {
network_ = getDefaultInstance().getNetwork();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* Immutable. The relative resource name of the VPC network on which the
* instance can be accessed. It is specified in the following form:
*
* `projects/{project_number}/global/networks/{network_id}`.
*
*
*
* string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for network to set.
* @return This builder for chaining.
*/
public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
network_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object endpointUri_ = "";
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore service.
*
*
* string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The endpointUri.
*/
public java.lang.String getEndpointUri() {
java.lang.Object ref = endpointUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endpointUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore service.
*
*
* string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for endpointUri.
*/
public com.google.protobuf.ByteString getEndpointUriBytes() {
java.lang.Object ref = endpointUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endpointUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore service.
*
*
* string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The endpointUri to set.
* @return This builder for chaining.
*/
public Builder setEndpointUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endpointUri_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore service.
*
*
* string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearEndpointUri() {
endpointUri_ = getDefaultInstance().getEndpointUri();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore service.
*
*
* string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for endpointUri to set.
* @return This builder for chaining.
*/
public Builder setEndpointUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
endpointUri_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int port_;
/**
*
*
*
* The TCP port at which the metastore service is reached. Default: 9083.
*
*
* int32 port = 9;
*
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
*
*
*
* The TCP port at which the metastore service is reached. Default: 9083.
*
*
* int32 port = 9;
*
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The TCP port at which the metastore service is reached. Default: 9083.
*
*
* int32 port = 9;
*
* @return This builder for chaining.
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000080);
port_ = 0;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* Output only. The current state of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. The current state of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Output only. The current state of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.State getState() {
com.google.cloud.metastore.v1beta.Service.State result =
com.google.cloud.metastore.v1beta.Service.State.forNumber(state_);
return result == null ? com.google.cloud.metastore.v1beta.Service.State.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. The current state of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.metastore.v1beta.Service.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. The current state of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000100);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object stateMessage_ = "";
/**
*
*
*
* Output only. Additional information about the current state of the
* metastore service, if available.
*
*
* string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The stateMessage.
*/
public java.lang.String getStateMessage() {
java.lang.Object ref = stateMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stateMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. Additional information about the current state of the
* metastore service, if available.
*
*
* string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for stateMessage.
*/
public com.google.protobuf.ByteString getStateMessageBytes() {
java.lang.Object ref = stateMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
stateMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. Additional information about the current state of the
* metastore service, if available.
*
*
* string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The stateMessage to set.
* @return This builder for chaining.
*/
public Builder setStateMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stateMessage_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the current state of the
* metastore service, if available.
*
*
* string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearStateMessage() {
stateMessage_ = getDefaultInstance().getStateMessage();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the current state of the
* metastore service, if available.
*
*
* string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for stateMessage to set.
* @return This builder for chaining.
*/
public Builder setStateMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stateMessage_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object artifactGcsUri_ = "";
/**
*
*
*
* Output only. A Cloud Storage URI (starting with `gs://`) that specifies
* where artifacts related to the metastore service are stored.
*
*
* string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The artifactGcsUri.
*/
public java.lang.String getArtifactGcsUri() {
java.lang.Object ref = artifactGcsUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
artifactGcsUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. A Cloud Storage URI (starting with `gs://`) that specifies
* where artifacts related to the metastore service are stored.
*
*
* string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for artifactGcsUri.
*/
public com.google.protobuf.ByteString getArtifactGcsUriBytes() {
java.lang.Object ref = artifactGcsUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
artifactGcsUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. A Cloud Storage URI (starting with `gs://`) that specifies
* where artifacts related to the metastore service are stored.
*
*
* string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The artifactGcsUri to set.
* @return This builder for chaining.
*/
public Builder setArtifactGcsUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
artifactGcsUri_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Output only. A Cloud Storage URI (starting with `gs://`) that specifies
* where artifacts related to the metastore service are stored.
*
*
* string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearArtifactGcsUri() {
artifactGcsUri_ = getDefaultInstance().getArtifactGcsUri();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*
*
* Output only. A Cloud Storage URI (starting with `gs://`) that specifies
* where artifacts related to the metastore service are stored.
*
*
* string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for artifactGcsUri to set.
* @return This builder for chaining.
*/
public Builder setArtifactGcsUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
artifactGcsUri_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private int tier_ = 0;
/**
*
*
*
* The tier of the service.
*
*
* .google.cloud.metastore.v1beta.Service.Tier tier = 13;
*
* @return The enum numeric value on the wire for tier.
*/
@java.lang.Override
public int getTierValue() {
return tier_;
}
/**
*
*
*
* The tier of the service.
*
*
* .google.cloud.metastore.v1beta.Service.Tier tier = 13;
*
* @param value The enum numeric value on the wire for tier to set.
* @return This builder for chaining.
*/
public Builder setTierValue(int value) {
tier_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
*
* The tier of the service.
*
*
* .google.cloud.metastore.v1beta.Service.Tier tier = 13;
*
* @return The tier.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.Tier getTier() {
com.google.cloud.metastore.v1beta.Service.Tier result =
com.google.cloud.metastore.v1beta.Service.Tier.forNumber(tier_);
return result == null ? com.google.cloud.metastore.v1beta.Service.Tier.UNRECOGNIZED : result;
}
/**
*
*
*
* The tier of the service.
*
*
* .google.cloud.metastore.v1beta.Service.Tier tier = 13;
*
* @param value The tier to set.
* @return This builder for chaining.
*/
public Builder setTier(com.google.cloud.metastore.v1beta.Service.Tier value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
tier_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The tier of the service.
*
*
* .google.cloud.metastore.v1beta.Service.Tier tier = 13;
*
* @return This builder for chaining.
*/
public Builder clearTier() {
bitField0_ = (bitField0_ & ~0x00000800);
tier_ = 0;
onChanged();
return this;
}
private com.google.cloud.metastore.v1beta.MetadataIntegration metadataIntegration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MetadataIntegration,
com.google.cloud.metastore.v1beta.MetadataIntegration.Builder,
com.google.cloud.metastore.v1beta.MetadataIntegrationOrBuilder>
metadataIntegrationBuilder_;
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*
* @return Whether the metadataIntegration field is set.
*/
public boolean hasMetadataIntegration() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*
* @return The metadataIntegration.
*/
public com.google.cloud.metastore.v1beta.MetadataIntegration getMetadataIntegration() {
if (metadataIntegrationBuilder_ == null) {
return metadataIntegration_ == null
? com.google.cloud.metastore.v1beta.MetadataIntegration.getDefaultInstance()
: metadataIntegration_;
} else {
return metadataIntegrationBuilder_.getMessage();
}
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
public Builder setMetadataIntegration(
com.google.cloud.metastore.v1beta.MetadataIntegration value) {
if (metadataIntegrationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadataIntegration_ = value;
} else {
metadataIntegrationBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
public Builder setMetadataIntegration(
com.google.cloud.metastore.v1beta.MetadataIntegration.Builder builderForValue) {
if (metadataIntegrationBuilder_ == null) {
metadataIntegration_ = builderForValue.build();
} else {
metadataIntegrationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
public Builder mergeMetadataIntegration(
com.google.cloud.metastore.v1beta.MetadataIntegration value) {
if (metadataIntegrationBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)
&& metadataIntegration_ != null
&& metadataIntegration_
!= com.google.cloud.metastore.v1beta.MetadataIntegration.getDefaultInstance()) {
getMetadataIntegrationBuilder().mergeFrom(value);
} else {
metadataIntegration_ = value;
}
} else {
metadataIntegrationBuilder_.mergeFrom(value);
}
if (metadataIntegration_ != null) {
bitField0_ |= 0x00001000;
onChanged();
}
return this;
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
public Builder clearMetadataIntegration() {
bitField0_ = (bitField0_ & ~0x00001000);
metadataIntegration_ = null;
if (metadataIntegrationBuilder_ != null) {
metadataIntegrationBuilder_.dispose();
metadataIntegrationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
public com.google.cloud.metastore.v1beta.MetadataIntegration.Builder
getMetadataIntegrationBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getMetadataIntegrationFieldBuilder().getBuilder();
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
public com.google.cloud.metastore.v1beta.MetadataIntegrationOrBuilder
getMetadataIntegrationOrBuilder() {
if (metadataIntegrationBuilder_ != null) {
return metadataIntegrationBuilder_.getMessageOrBuilder();
} else {
return metadataIntegration_ == null
? com.google.cloud.metastore.v1beta.MetadataIntegration.getDefaultInstance()
: metadataIntegration_;
}
}
/**
*
*
*
* The setting that defines how metastore metadata should be integrated with
* external services and systems.
*
*
* .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MetadataIntegration,
com.google.cloud.metastore.v1beta.MetadataIntegration.Builder,
com.google.cloud.metastore.v1beta.MetadataIntegrationOrBuilder>
getMetadataIntegrationFieldBuilder() {
if (metadataIntegrationBuilder_ == null) {
metadataIntegrationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MetadataIntegration,
com.google.cloud.metastore.v1beta.MetadataIntegration.Builder,
com.google.cloud.metastore.v1beta.MetadataIntegrationOrBuilder>(
getMetadataIntegration(), getParentForChildren(), isClean());
metadataIntegration_ = null;
}
return metadataIntegrationBuilder_;
}
private com.google.cloud.metastore.v1beta.MaintenanceWindow maintenanceWindow_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MaintenanceWindow,
com.google.cloud.metastore.v1beta.MaintenanceWindow.Builder,
com.google.cloud.metastore.v1beta.MaintenanceWindowOrBuilder>
maintenanceWindowBuilder_;
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*
* @return Whether the maintenanceWindow field is set.
*/
public boolean hasMaintenanceWindow() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*
* @return The maintenanceWindow.
*/
public com.google.cloud.metastore.v1beta.MaintenanceWindow getMaintenanceWindow() {
if (maintenanceWindowBuilder_ == null) {
return maintenanceWindow_ == null
? com.google.cloud.metastore.v1beta.MaintenanceWindow.getDefaultInstance()
: maintenanceWindow_;
} else {
return maintenanceWindowBuilder_.getMessage();
}
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
public Builder setMaintenanceWindow(com.google.cloud.metastore.v1beta.MaintenanceWindow value) {
if (maintenanceWindowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maintenanceWindow_ = value;
} else {
maintenanceWindowBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
public Builder setMaintenanceWindow(
com.google.cloud.metastore.v1beta.MaintenanceWindow.Builder builderForValue) {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindow_ = builderForValue.build();
} else {
maintenanceWindowBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
public Builder mergeMaintenanceWindow(
com.google.cloud.metastore.v1beta.MaintenanceWindow value) {
if (maintenanceWindowBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)
&& maintenanceWindow_ != null
&& maintenanceWindow_
!= com.google.cloud.metastore.v1beta.MaintenanceWindow.getDefaultInstance()) {
getMaintenanceWindowBuilder().mergeFrom(value);
} else {
maintenanceWindow_ = value;
}
} else {
maintenanceWindowBuilder_.mergeFrom(value);
}
if (maintenanceWindow_ != null) {
bitField0_ |= 0x00002000;
onChanged();
}
return this;
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
public Builder clearMaintenanceWindow() {
bitField0_ = (bitField0_ & ~0x00002000);
maintenanceWindow_ = null;
if (maintenanceWindowBuilder_ != null) {
maintenanceWindowBuilder_.dispose();
maintenanceWindowBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
public com.google.cloud.metastore.v1beta.MaintenanceWindow.Builder
getMaintenanceWindowBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getMaintenanceWindowFieldBuilder().getBuilder();
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
public com.google.cloud.metastore.v1beta.MaintenanceWindowOrBuilder
getMaintenanceWindowOrBuilder() {
if (maintenanceWindowBuilder_ != null) {
return maintenanceWindowBuilder_.getMessageOrBuilder();
} else {
return maintenanceWindow_ == null
? com.google.cloud.metastore.v1beta.MaintenanceWindow.getDefaultInstance()
: maintenanceWindow_;
}
}
/**
*
*
*
* The one hour maintenance window of the metastore service. This specifies
* when the service can be restarted for maintenance purposes in UTC time.
* Maintenance window is not needed for services with the SPANNER
* database type.
*
*
* .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MaintenanceWindow,
com.google.cloud.metastore.v1beta.MaintenanceWindow.Builder,
com.google.cloud.metastore.v1beta.MaintenanceWindowOrBuilder>
getMaintenanceWindowFieldBuilder() {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindowBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MaintenanceWindow,
com.google.cloud.metastore.v1beta.MaintenanceWindow.Builder,
com.google.cloud.metastore.v1beta.MaintenanceWindowOrBuilder>(
getMaintenanceWindow(), getParentForChildren(), isClean());
maintenanceWindow_ = null;
}
return maintenanceWindowBuilder_;
}
private java.lang.Object uid_ = "";
/**
*
*
*
* Output only. The globally unique resource identifier of the metastore
* service.
*
*
* string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The uid.
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The globally unique resource identifier of the metastore
* service.
*
*
* string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for uid.
*/
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The globally unique resource identifier of the metastore
* service.
*
*
* string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uid_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*
*
* Output only. The globally unique resource identifier of the metastore
* service.
*
*
* string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
*
*
* Output only. The globally unique resource identifier of the metastore
* service.
*
*
* string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
private com.google.cloud.metastore.v1beta.MetadataManagementActivity
metadataManagementActivity_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MetadataManagementActivity,
com.google.cloud.metastore.v1beta.MetadataManagementActivity.Builder,
com.google.cloud.metastore.v1beta.MetadataManagementActivityOrBuilder>
metadataManagementActivityBuilder_;
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the metadataManagementActivity field is set.
*/
public boolean hasMetadataManagementActivity() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The metadataManagementActivity.
*/
public com.google.cloud.metastore.v1beta.MetadataManagementActivity
getMetadataManagementActivity() {
if (metadataManagementActivityBuilder_ == null) {
return metadataManagementActivity_ == null
? com.google.cloud.metastore.v1beta.MetadataManagementActivity.getDefaultInstance()
: metadataManagementActivity_;
} else {
return metadataManagementActivityBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setMetadataManagementActivity(
com.google.cloud.metastore.v1beta.MetadataManagementActivity value) {
if (metadataManagementActivityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadataManagementActivity_ = value;
} else {
metadataManagementActivityBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setMetadataManagementActivity(
com.google.cloud.metastore.v1beta.MetadataManagementActivity.Builder builderForValue) {
if (metadataManagementActivityBuilder_ == null) {
metadataManagementActivity_ = builderForValue.build();
} else {
metadataManagementActivityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeMetadataManagementActivity(
com.google.cloud.metastore.v1beta.MetadataManagementActivity value) {
if (metadataManagementActivityBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0)
&& metadataManagementActivity_ != null
&& metadataManagementActivity_
!= com.google.cloud.metastore.v1beta.MetadataManagementActivity
.getDefaultInstance()) {
getMetadataManagementActivityBuilder().mergeFrom(value);
} else {
metadataManagementActivity_ = value;
}
} else {
metadataManagementActivityBuilder_.mergeFrom(value);
}
if (metadataManagementActivity_ != null) {
bitField0_ |= 0x00008000;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearMetadataManagementActivity() {
bitField0_ = (bitField0_ & ~0x00008000);
metadataManagementActivity_ = null;
if (metadataManagementActivityBuilder_ != null) {
metadataManagementActivityBuilder_.dispose();
metadataManagementActivityBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.metastore.v1beta.MetadataManagementActivity.Builder
getMetadataManagementActivityBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getMetadataManagementActivityFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.metastore.v1beta.MetadataManagementActivityOrBuilder
getMetadataManagementActivityOrBuilder() {
if (metadataManagementActivityBuilder_ != null) {
return metadataManagementActivityBuilder_.getMessageOrBuilder();
} else {
return metadataManagementActivity_ == null
? com.google.cloud.metastore.v1beta.MetadataManagementActivity.getDefaultInstance()
: metadataManagementActivity_;
}
}
/**
*
*
*
* Output only. The metadata management activities of the metastore service.
*
*
*
* .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MetadataManagementActivity,
com.google.cloud.metastore.v1beta.MetadataManagementActivity.Builder,
com.google.cloud.metastore.v1beta.MetadataManagementActivityOrBuilder>
getMetadataManagementActivityFieldBuilder() {
if (metadataManagementActivityBuilder_ == null) {
metadataManagementActivityBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.MetadataManagementActivity,
com.google.cloud.metastore.v1beta.MetadataManagementActivity.Builder,
com.google.cloud.metastore.v1beta.MetadataManagementActivityOrBuilder>(
getMetadataManagementActivity(), getParentForChildren(), isClean());
metadataManagementActivity_ = null;
}
return metadataManagementActivityBuilder_;
}
private int releaseChannel_ = 0;
/**
*
*
*
* Immutable. The release channel of the service.
* If unspecified, defaults to `STABLE`.
*
*
*
* .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for releaseChannel.
*/
@java.lang.Override
public int getReleaseChannelValue() {
return releaseChannel_;
}
/**
*
*
*
* Immutable. The release channel of the service.
* If unspecified, defaults to `STABLE`.
*
*
*
* .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The enum numeric value on the wire for releaseChannel to set.
* @return This builder for chaining.
*/
public Builder setReleaseChannelValue(int value) {
releaseChannel_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The release channel of the service.
* If unspecified, defaults to `STABLE`.
*
*
*
* .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The releaseChannel.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.ReleaseChannel getReleaseChannel() {
com.google.cloud.metastore.v1beta.Service.ReleaseChannel result =
com.google.cloud.metastore.v1beta.Service.ReleaseChannel.forNumber(releaseChannel_);
return result == null
? com.google.cloud.metastore.v1beta.Service.ReleaseChannel.UNRECOGNIZED
: result;
}
/**
*
*
*
* Immutable. The release channel of the service.
* If unspecified, defaults to `STABLE`.
*
*
*
* .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The releaseChannel to set.
* @return This builder for chaining.
*/
public Builder setReleaseChannel(
com.google.cloud.metastore.v1beta.Service.ReleaseChannel value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00010000;
releaseChannel_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Immutable. The release channel of the service.
* If unspecified, defaults to `STABLE`.
*
*
*
* .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return This builder for chaining.
*/
public Builder clearReleaseChannel() {
bitField0_ = (bitField0_ & ~0x00010000);
releaseChannel_ = 0;
onChanged();
return this;
}
private com.google.cloud.metastore.v1beta.EncryptionConfig encryptionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.EncryptionConfig,
com.google.cloud.metastore.v1beta.EncryptionConfig.Builder,
com.google.cloud.metastore.v1beta.EncryptionConfigOrBuilder>
encryptionConfigBuilder_;
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return Whether the encryptionConfig field is set.
*/
public boolean hasEncryptionConfig() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The encryptionConfig.
*/
public com.google.cloud.metastore.v1beta.EncryptionConfig getEncryptionConfig() {
if (encryptionConfigBuilder_ == null) {
return encryptionConfig_ == null
? com.google.cloud.metastore.v1beta.EncryptionConfig.getDefaultInstance()
: encryptionConfig_;
} else {
return encryptionConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setEncryptionConfig(com.google.cloud.metastore.v1beta.EncryptionConfig value) {
if (encryptionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
encryptionConfig_ = value;
} else {
encryptionConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setEncryptionConfig(
com.google.cloud.metastore.v1beta.EncryptionConfig.Builder builderForValue) {
if (encryptionConfigBuilder_ == null) {
encryptionConfig_ = builderForValue.build();
} else {
encryptionConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder mergeEncryptionConfig(com.google.cloud.metastore.v1beta.EncryptionConfig value) {
if (encryptionConfigBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0)
&& encryptionConfig_ != null
&& encryptionConfig_
!= com.google.cloud.metastore.v1beta.EncryptionConfig.getDefaultInstance()) {
getEncryptionConfigBuilder().mergeFrom(value);
} else {
encryptionConfig_ = value;
}
} else {
encryptionConfigBuilder_.mergeFrom(value);
}
if (encryptionConfig_ != null) {
bitField0_ |= 0x00020000;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder clearEncryptionConfig() {
bitField0_ = (bitField0_ & ~0x00020000);
encryptionConfig_ = null;
if (encryptionConfigBuilder_ != null) {
encryptionConfigBuilder_.dispose();
encryptionConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.metastore.v1beta.EncryptionConfig.Builder getEncryptionConfigBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getEncryptionConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.metastore.v1beta.EncryptionConfigOrBuilder
getEncryptionConfigOrBuilder() {
if (encryptionConfigBuilder_ != null) {
return encryptionConfigBuilder_.getMessageOrBuilder();
} else {
return encryptionConfig_ == null
? com.google.cloud.metastore.v1beta.EncryptionConfig.getDefaultInstance()
: encryptionConfig_;
}
}
/**
*
*
*
* Immutable. Information used to configure the Dataproc Metastore service to
* encrypt customer data at rest. Cannot be updated.
*
*
*
* .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.EncryptionConfig,
com.google.cloud.metastore.v1beta.EncryptionConfig.Builder,
com.google.cloud.metastore.v1beta.EncryptionConfigOrBuilder>
getEncryptionConfigFieldBuilder() {
if (encryptionConfigBuilder_ == null) {
encryptionConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.EncryptionConfig,
com.google.cloud.metastore.v1beta.EncryptionConfig.Builder,
com.google.cloud.metastore.v1beta.EncryptionConfigOrBuilder>(
getEncryptionConfig(), getParentForChildren(), isClean());
encryptionConfig_ = null;
}
return encryptionConfigBuilder_;
}
private com.google.cloud.metastore.v1beta.NetworkConfig networkConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.NetworkConfig,
com.google.cloud.metastore.v1beta.NetworkConfig.Builder,
com.google.cloud.metastore.v1beta.NetworkConfigOrBuilder>
networkConfigBuilder_;
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*
* @return Whether the networkConfig field is set.
*/
public boolean hasNetworkConfig() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*
* @return The networkConfig.
*/
public com.google.cloud.metastore.v1beta.NetworkConfig getNetworkConfig() {
if (networkConfigBuilder_ == null) {
return networkConfig_ == null
? com.google.cloud.metastore.v1beta.NetworkConfig.getDefaultInstance()
: networkConfig_;
} else {
return networkConfigBuilder_.getMessage();
}
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
public Builder setNetworkConfig(com.google.cloud.metastore.v1beta.NetworkConfig value) {
if (networkConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkConfig_ = value;
} else {
networkConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
public Builder setNetworkConfig(
com.google.cloud.metastore.v1beta.NetworkConfig.Builder builderForValue) {
if (networkConfigBuilder_ == null) {
networkConfig_ = builderForValue.build();
} else {
networkConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
public Builder mergeNetworkConfig(com.google.cloud.metastore.v1beta.NetworkConfig value) {
if (networkConfigBuilder_ == null) {
if (((bitField0_ & 0x00040000) != 0)
&& networkConfig_ != null
&& networkConfig_
!= com.google.cloud.metastore.v1beta.NetworkConfig.getDefaultInstance()) {
getNetworkConfigBuilder().mergeFrom(value);
} else {
networkConfig_ = value;
}
} else {
networkConfigBuilder_.mergeFrom(value);
}
if (networkConfig_ != null) {
bitField0_ |= 0x00040000;
onChanged();
}
return this;
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
public Builder clearNetworkConfig() {
bitField0_ = (bitField0_ & ~0x00040000);
networkConfig_ = null;
if (networkConfigBuilder_ != null) {
networkConfigBuilder_.dispose();
networkConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
public com.google.cloud.metastore.v1beta.NetworkConfig.Builder getNetworkConfigBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getNetworkConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
public com.google.cloud.metastore.v1beta.NetworkConfigOrBuilder getNetworkConfigOrBuilder() {
if (networkConfigBuilder_ != null) {
return networkConfigBuilder_.getMessageOrBuilder();
} else {
return networkConfig_ == null
? com.google.cloud.metastore.v1beta.NetworkConfig.getDefaultInstance()
: networkConfig_;
}
}
/**
*
*
*
* The configuration specifying the network settings for the
* Dataproc Metastore service.
*
*
* .google.cloud.metastore.v1beta.NetworkConfig network_config = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.NetworkConfig,
com.google.cloud.metastore.v1beta.NetworkConfig.Builder,
com.google.cloud.metastore.v1beta.NetworkConfigOrBuilder>
getNetworkConfigFieldBuilder() {
if (networkConfigBuilder_ == null) {
networkConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.NetworkConfig,
com.google.cloud.metastore.v1beta.NetworkConfig.Builder,
com.google.cloud.metastore.v1beta.NetworkConfigOrBuilder>(
getNetworkConfig(), getParentForChildren(), isClean());
networkConfig_ = null;
}
return networkConfigBuilder_;
}
private int databaseType_ = 0;
/**
*
*
*
* Immutable. The database type that the Metastore service stores its data.
*
*
*
* .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for databaseType.
*/
@java.lang.Override
public int getDatabaseTypeValue() {
return databaseType_;
}
/**
*
*
*
* Immutable. The database type that the Metastore service stores its data.
*
*
*
* .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The enum numeric value on the wire for databaseType to set.
* @return This builder for chaining.
*/
public Builder setDatabaseTypeValue(int value) {
databaseType_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The database type that the Metastore service stores its data.
*
*
*
* .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The databaseType.
*/
@java.lang.Override
public com.google.cloud.metastore.v1beta.Service.DatabaseType getDatabaseType() {
com.google.cloud.metastore.v1beta.Service.DatabaseType result =
com.google.cloud.metastore.v1beta.Service.DatabaseType.forNumber(databaseType_);
return result == null
? com.google.cloud.metastore.v1beta.Service.DatabaseType.UNRECOGNIZED
: result;
}
/**
*
*
*
* Immutable. The database type that the Metastore service stores its data.
*
*
*
* .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The databaseType to set.
* @return This builder for chaining.
*/
public Builder setDatabaseType(com.google.cloud.metastore.v1beta.Service.DatabaseType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
databaseType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Immutable. The database type that the Metastore service stores its data.
*
*
*
* .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return This builder for chaining.
*/
public Builder clearDatabaseType() {
bitField0_ = (bitField0_ & ~0x00080000);
databaseType_ = 0;
onChanged();
return this;
}
private com.google.cloud.metastore.v1beta.TelemetryConfig telemetryConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.TelemetryConfig,
com.google.cloud.metastore.v1beta.TelemetryConfig.Builder,
com.google.cloud.metastore.v1beta.TelemetryConfigOrBuilder>
telemetryConfigBuilder_;
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*
* @return Whether the telemetryConfig field is set.
*/
public boolean hasTelemetryConfig() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*
* @return The telemetryConfig.
*/
public com.google.cloud.metastore.v1beta.TelemetryConfig getTelemetryConfig() {
if (telemetryConfigBuilder_ == null) {
return telemetryConfig_ == null
? com.google.cloud.metastore.v1beta.TelemetryConfig.getDefaultInstance()
: telemetryConfig_;
} else {
return telemetryConfigBuilder_.getMessage();
}
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
public Builder setTelemetryConfig(com.google.cloud.metastore.v1beta.TelemetryConfig value) {
if (telemetryConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
telemetryConfig_ = value;
} else {
telemetryConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
public Builder setTelemetryConfig(
com.google.cloud.metastore.v1beta.TelemetryConfig.Builder builderForValue) {
if (telemetryConfigBuilder_ == null) {
telemetryConfig_ = builderForValue.build();
} else {
telemetryConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
public Builder mergeTelemetryConfig(com.google.cloud.metastore.v1beta.TelemetryConfig value) {
if (telemetryConfigBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)
&& telemetryConfig_ != null
&& telemetryConfig_
!= com.google.cloud.metastore.v1beta.TelemetryConfig.getDefaultInstance()) {
getTelemetryConfigBuilder().mergeFrom(value);
} else {
telemetryConfig_ = value;
}
} else {
telemetryConfigBuilder_.mergeFrom(value);
}
if (telemetryConfig_ != null) {
bitField0_ |= 0x00100000;
onChanged();
}
return this;
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
public Builder clearTelemetryConfig() {
bitField0_ = (bitField0_ & ~0x00100000);
telemetryConfig_ = null;
if (telemetryConfigBuilder_ != null) {
telemetryConfigBuilder_.dispose();
telemetryConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
public com.google.cloud.metastore.v1beta.TelemetryConfig.Builder getTelemetryConfigBuilder() {
bitField0_ |= 0x00100000;
onChanged();
return getTelemetryConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
public com.google.cloud.metastore.v1beta.TelemetryConfigOrBuilder
getTelemetryConfigOrBuilder() {
if (telemetryConfigBuilder_ != null) {
return telemetryConfigBuilder_.getMessageOrBuilder();
} else {
return telemetryConfig_ == null
? com.google.cloud.metastore.v1beta.TelemetryConfig.getDefaultInstance()
: telemetryConfig_;
}
}
/**
*
*
*
* The configuration specifying telemetry settings for the Dataproc Metastore
* service. If unspecified defaults to `JSON`.
*
*
* .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.TelemetryConfig,
com.google.cloud.metastore.v1beta.TelemetryConfig.Builder,
com.google.cloud.metastore.v1beta.TelemetryConfigOrBuilder>
getTelemetryConfigFieldBuilder() {
if (telemetryConfigBuilder_ == null) {
telemetryConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.TelemetryConfig,
com.google.cloud.metastore.v1beta.TelemetryConfig.Builder,
com.google.cloud.metastore.v1beta.TelemetryConfigOrBuilder>(
getTelemetryConfig(), getParentForChildren(), isClean());
telemetryConfig_ = null;
}
return telemetryConfigBuilder_;
}
private com.google.cloud.metastore.v1beta.ScalingConfig scalingConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.ScalingConfig,
com.google.cloud.metastore.v1beta.ScalingConfig.Builder,
com.google.cloud.metastore.v1beta.ScalingConfigOrBuilder>
scalingConfigBuilder_;
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*
* @return Whether the scalingConfig field is set.
*/
public boolean hasScalingConfig() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*
* @return The scalingConfig.
*/
public com.google.cloud.metastore.v1beta.ScalingConfig getScalingConfig() {
if (scalingConfigBuilder_ == null) {
return scalingConfig_ == null
? com.google.cloud.metastore.v1beta.ScalingConfig.getDefaultInstance()
: scalingConfig_;
} else {
return scalingConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
public Builder setScalingConfig(com.google.cloud.metastore.v1beta.ScalingConfig value) {
if (scalingConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scalingConfig_ = value;
} else {
scalingConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
public Builder setScalingConfig(
com.google.cloud.metastore.v1beta.ScalingConfig.Builder builderForValue) {
if (scalingConfigBuilder_ == null) {
scalingConfig_ = builderForValue.build();
} else {
scalingConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
public Builder mergeScalingConfig(com.google.cloud.metastore.v1beta.ScalingConfig value) {
if (scalingConfigBuilder_ == null) {
if (((bitField0_ & 0x00200000) != 0)
&& scalingConfig_ != null
&& scalingConfig_
!= com.google.cloud.metastore.v1beta.ScalingConfig.getDefaultInstance()) {
getScalingConfigBuilder().mergeFrom(value);
} else {
scalingConfig_ = value;
}
} else {
scalingConfigBuilder_.mergeFrom(value);
}
if (scalingConfig_ != null) {
bitField0_ |= 0x00200000;
onChanged();
}
return this;
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
public Builder clearScalingConfig() {
bitField0_ = (bitField0_ & ~0x00200000);
scalingConfig_ = null;
if (scalingConfigBuilder_ != null) {
scalingConfigBuilder_.dispose();
scalingConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
public com.google.cloud.metastore.v1beta.ScalingConfig.Builder getScalingConfigBuilder() {
bitField0_ |= 0x00200000;
onChanged();
return getScalingConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
public com.google.cloud.metastore.v1beta.ScalingConfigOrBuilder getScalingConfigOrBuilder() {
if (scalingConfigBuilder_ != null) {
return scalingConfigBuilder_.getMessageOrBuilder();
} else {
return scalingConfig_ == null
? com.google.cloud.metastore.v1beta.ScalingConfig.getDefaultInstance()
: scalingConfig_;
}
}
/**
*
*
*
* Scaling configuration of the metastore service.
*
*
* .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.ScalingConfig,
com.google.cloud.metastore.v1beta.ScalingConfig.Builder,
com.google.cloud.metastore.v1beta.ScalingConfigOrBuilder>
getScalingConfigFieldBuilder() {
if (scalingConfigBuilder_ == null) {
scalingConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.metastore.v1beta.ScalingConfig,
com.google.cloud.metastore.v1beta.ScalingConfig.Builder,
com.google.cloud.metastore.v1beta.ScalingConfigOrBuilder>(
getScalingConfig(), getParentForChildren(), isClean());
scalingConfig_ = null;
}
return scalingConfigBuilder_;
}
@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.v1beta.Service)
}
// @@protoc_insertion_point(class_scope:google.cloud.metastore.v1beta.Service)
private static final com.google.cloud.metastore.v1beta.Service DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.metastore.v1beta.Service();
}
public static com.google.cloud.metastore.v1beta.Service getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Service 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.v1beta.Service getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}