Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/resources.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.dataplex.v1;
/**
*
*
*
* A lake is a centralized repository for managing enterprise data across the
* organization distributed across many cloud projects, and stored in a variety
* of storage services such as Google Cloud Storage and BigQuery. The resources
* attached to a lake are referred to as managed resources. Data within these
* managed resources can be structured or unstructured. A lake provides data
* admins with tools to organize, secure and manage their data at scale, and
* provides data scientists and data engineers an integrated experience to
* easily search, discover, analyze and transform data and associated metadata.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Lake}
*/
public final class Lake extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Lake)
LakeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Lake.newBuilder() to construct.
private Lake(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Lake() {
name_ = "";
displayName_ = "";
uid_ = "";
description_ = "";
state_ = 0;
serviceAccount_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Lake();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 6:
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.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Lake.class,
com.google.cloud.dataplex.v1.Lake.Builder.class);
}
public interface MetastoreOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Lake.Metastore)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
*
* string service = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for service.
*/
com.google.protobuf.ByteString getServiceBytes();
}
/**
*
*
*
* Settings to manage association of Dataproc Metastore with a lake.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Lake.Metastore}
*/
public static final class Metastore extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Lake.Metastore)
MetastoreOrBuilder {
private static final long serialVersionUID = 0L;
// Use Metastore.newBuilder() to construct.
private Metastore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Metastore() {
service_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Metastore();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_Metastore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_Metastore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Lake.Metastore.class,
com.google.cloud.dataplex.v1.Lake.Metastore.Builder.class);
}
public static final int SERVICE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object service_ = "";
/**
*
*
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
*
* string service = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for service.
*/
@java.lang.Override
public com.google.protobuf.ByteString getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(service_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_);
}
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(service_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_);
}
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.dataplex.v1.Lake.Metastore)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Lake.Metastore other =
(com.google.cloud.dataplex.v1.Lake.Metastore) obj;
if (!getService().equals(other.getService())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Lake.Metastore parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Lake.Metastore 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.dataplex.v1.Lake.Metastore parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Lake.Metastore 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.dataplex.v1.Lake.Metastore parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Lake.Metastore parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.Lake.Metastore parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Lake.Metastore 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.dataplex.v1.Lake.Metastore parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Lake.Metastore 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.dataplex.v1.Lake.Metastore parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Lake.Metastore 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.dataplex.v1.Lake.Metastore 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;
}
/**
*
*
*
* Settings to manage association of Dataproc Metastore with a lake.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Lake.Metastore}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Lake.Metastore)
com.google.cloud.dataplex.v1.Lake.MetastoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_Metastore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_Metastore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Lake.Metastore.class,
com.google.cloud.dataplex.v1.Lake.Metastore.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Lake.Metastore.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
service_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_Metastore_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.Metastore getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Lake.Metastore.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.Metastore build() {
com.google.cloud.dataplex.v1.Lake.Metastore result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.Metastore buildPartial() {
com.google.cloud.dataplex.v1.Lake.Metastore result =
new com.google.cloud.dataplex.v1.Lake.Metastore(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Lake.Metastore result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.service_ = service_;
}
}
@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.dataplex.v1.Lake.Metastore) {
return mergeFrom((com.google.cloud.dataplex.v1.Lake.Metastore) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Lake.Metastore other) {
if (other == com.google.cloud.dataplex.v1.Lake.Metastore.getDefaultInstance()) return this;
if (!other.getService().isEmpty()) {
service_ = other.service_;
bitField0_ |= 0x00000001;
onChanged();
}
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:
{
service_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object service_ = "";
/**
*
*
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
*
* string service = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for service.
*/
public com.google.protobuf.ByteString getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
*
* string service = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
service_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
*
* string service = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearService() {
service_ = getDefaultInstance().getService();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. A relative reference to the Dataproc Metastore
* (https://cloud.google.com/dataproc-metastore/docs) service associated
* with the lake:
* `projects/{project_id}/locations/{location_id}/services/{service_id}`
*
*
* string service = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for service to set.
* @return This builder for chaining.
*/
public Builder setServiceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
service_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@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.dataplex.v1.Lake.Metastore)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Lake.Metastore)
private static final com.google.cloud.dataplex.v1.Lake.Metastore DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Lake.Metastore();
}
public static com.google.cloud.dataplex.v1.Lake.Metastore getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Metastore 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.dataplex.v1.Lake.Metastore getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MetastoreStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Lake.MetastoreStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @return The state.
*/
com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State getState();
/**
*
*
*
* Additional information about the current status.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* A Metastore service instance is not associated with the lake.
*
*
* NONE = 1;
*/
public static final int NONE_VALUE = 1;
/**
*
*
*
* A Metastore service instance is attached to the lake.
*
*
* READY = 2;
*/
public static final int READY_VALUE = 2;
/**
*
*
*
* Attach/detach is in progress.
*
*
* UPDATING = 3;
*/
public static final int UPDATING_VALUE = 3;
/**
*
*
*
* Attach/detach could not be done due to errors.
*
*
* ERROR = 4;
*/
public static final int ERROR_VALUE = 4;
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 NONE;
case 2:
return READY;
case 3:
return UPDATING;
case 4:
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.dataplex.v1.Lake.MetastoreStatus.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.dataplex.v1.Lake.MetastoreStatus.State)
}
private int bitField0_;
public static final int STATE_FIELD_NUMBER = 1;
private int state_ = 0;
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State getState() {
com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State result =
com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State.forNumber(state_);
return result == null
? com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State.UNRECOGNIZED
: result;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
*
*
* Additional information about the current status.
*
* The URI of the endpoint used to access the Metastore service.
*
*
* string endpoint = 4;
*
* @return The bytes for endpoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEndpointBytes() {
java.lang.Object ref = endpoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endpoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (state_
!= com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State.STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endpoint_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_
!= com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State.STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endpoint_);
}
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.dataplex.v1.Lake.MetastoreStatus)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Lake.MetastoreStatus other =
(com.google.cloud.dataplex.v1.Lake.MetastoreStatus) obj;
if (state_ != other.state_) return false;
if (!getMessage().equals(other.getMessage())) return false;
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!getEndpoint().equals(other.getEndpoint())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getEndpoint().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus 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.dataplex.v1.Lake.MetastoreStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus 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.dataplex.v1.Lake.MetastoreStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus 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.dataplex.v1.Lake.MetastoreStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus 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.dataplex.v1.Lake.MetastoreStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Lake.MetastoreStatus 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.dataplex.v1.Lake.MetastoreStatus 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;
}
/**
*
*
*
* Status of Lake and Dataproc Metastore service instance association.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Lake.MetastoreStatus}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Lake.MetastoreStatus)
com.google.cloud.dataplex.v1.Lake.MetastoreStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_MetastoreStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_MetastoreStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Lake.MetastoreStatus.class,
com.google.cloud.dataplex.v1.Lake.MetastoreStatus.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Lake.MetastoreStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getUpdateTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
state_ = 0;
message_ = "";
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
endpoint_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_MetastoreStatus_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.MetastoreStatus getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Lake.MetastoreStatus.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.MetastoreStatus build() {
com.google.cloud.dataplex.v1.Lake.MetastoreStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.MetastoreStatus buildPartial() {
com.google.cloud.dataplex.v1.Lake.MetastoreStatus result =
new com.google.cloud.dataplex.v1.Lake.MetastoreStatus(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Lake.MetastoreStatus result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.message_ = message_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.updateTime_ =
updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.endpoint_ = endpoint_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Lake.MetastoreStatus) {
return mergeFrom((com.google.cloud.dataplex.v1.Lake.MetastoreStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Lake.MetastoreStatus other) {
if (other == com.google.cloud.dataplex.v1.Lake.MetastoreStatus.getDefaultInstance())
return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (!other.getEndpoint().isEmpty()) {
endpoint_ = other.endpoint_;
bitField0_ |= 0x00000008;
onChanged();
}
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 8:
{
state_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
endpoint_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int state_ = 0;
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State getState() {
com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State result =
com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State.forNumber(state_);
return result == null
? com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.dataplex.v1.Lake.MetastoreStatus.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Current state of association.
*
*
* .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1;
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000001);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
*
*
* Additional information about the current status.
*
*
* string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
*
*
*
* Output only. System generated globally unique ID for the lake. This ID will
* be different if the lake is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the lake. This ID will
* be different if the lake is deleted and re-created with the same name.
*
*
* string uid = 3 [(.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 CREATE_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. The time when the lake was created.
*
*
* .google.protobuf.Timestamp create_time = 4 [(.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 lake was created.
*
*
* string description = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 8;
private int state_ = 0;
/**
*
*
*
* Output only. Current state of the lake.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.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. Current state of the lake.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.State getState() {
com.google.cloud.dataplex.v1.State result =
com.google.cloud.dataplex.v1.State.forNumber(state_);
return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result;
}
public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object serviceAccount_ = "";
/**
*
*
*
* Output only. Service account associated with this lake. This service
* account must be authorized to access or operate on resources managed by the
* lake.
*
* Output only. Service account associated with this lake. This service
* account must be authorized to access or operate on resources managed by the
* lake.
*
*
* string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for serviceAccount.
*/
@java.lang.Override
public com.google.protobuf.ByteString getServiceAccountBytes() {
java.lang.Object ref = serviceAccount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
serviceAccount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METASTORE_FIELD_NUMBER = 102;
private com.google.cloud.dataplex.v1.Lake.Metastore metastore_;
/**
*
*
*
* Optional. Settings to manage lake and Dataproc Metastore service instance
* association.
*
*
*
* .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the metastore field is set.
*/
@java.lang.Override
public boolean hasMetastore() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Optional. Settings to manage lake and Dataproc Metastore service instance
* association.
*
* A lake is a centralized repository for managing enterprise data across the
* organization distributed across many cloud projects, and stored in a variety
* of storage services such as Google Cloud Storage and BigQuery. The resources
* attached to a lake are referred to as managed resources. Data within these
* managed resources can be structured or unstructured. A lake provides data
* admins with tools to organize, secure and manage their data at scale, and
* provides data scientists and data engineers an integrated experience to
* easily search, discover, analyze and transform data and associated metadata.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Lake}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Lake)
com.google.cloud.dataplex.v1.LakeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 6:
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.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Lake.class,
com.google.cloud.dataplex.v1.Lake.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Lake.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();
getMetastoreFieldBuilder();
getAssetStatusFieldBuilder();
getMetastoreStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
displayName_ = "";
uid_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
internalGetMutableLabels().clear();
description_ = "";
state_ = 0;
serviceAccount_ = "";
metastore_ = null;
if (metastoreBuilder_ != null) {
metastoreBuilder_.dispose();
metastoreBuilder_ = null;
}
assetStatus_ = null;
if (assetStatusBuilder_ != null) {
assetStatusBuilder_.dispose();
assetStatusBuilder_ = null;
}
metastoreStatus_ = null;
if (metastoreStatusBuilder_ != null) {
metastoreStatusBuilder_.dispose();
metastoreStatusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Lake_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Lake.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake build() {
com.google.cloud.dataplex.v1.Lake result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Lake buildPartial() {
com.google.cloud.dataplex.v1.Lake result = new com.google.cloud.dataplex.v1.Lake(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Lake result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.uid_ = uid_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.serviceAccount_ = serviceAccount_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.metastore_ = metastoreBuilder_ == null ? metastore_ : metastoreBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.assetStatus_ =
assetStatusBuilder_ == null ? assetStatus_ : assetStatusBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.metastoreStatus_ =
metastoreStatusBuilder_ == null ? metastoreStatus_ : metastoreStatusBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Lake) {
return mergeFrom((com.google.cloud.dataplex.v1.Lake) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Lake other) {
if (other == com.google.cloud.dataplex.v1.Lake.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000020;
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getServiceAccount().isEmpty()) {
serviceAccount_ = other.serviceAccount_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasMetastore()) {
mergeMetastore(other.getMetastore());
}
if (other.hasAssetStatus()) {
mergeAssetStatus(other.getAssetStatus());
}
if (other.hasMetastoreStatus()) {
mergeMetastoreStatus(other.getMetastoreStatus());
}
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_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 64:
{
state_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 64
case 74:
{
serviceAccount_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
case 818:
{
input.readMessage(getMetastoreFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 818
case 826:
{
input.readMessage(getAssetStatusFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 826
case 834:
{
input.readMessage(getMetastoreStatusFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 834
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Output only. The relative resource name of the lake, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
*
* string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
*
*
*
* Output only. System generated globally unique ID for the lake. This ID will
* be different if the lake is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the lake. This ID will
* be different if the lake is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the lake. This ID will
* be different if the lake is deleted and re-created with the same name.
*
*
* string uid = 3 [(.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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. System generated globally unique ID for the lake. This ID will
* be different if the lake is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the lake. This ID will
* be different if the lake is deleted and re-created with the same name.
*
*
* string uid = 3 [(.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_ |= 0x00000004;
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 lake was created.
*
*
*
* .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The time when the lake was created.
*
*
* string description = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* Output only. Current state of the lake.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.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. Current state of the lake.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.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_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the lake.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.State getState() {
com.google.cloud.dataplex.v1.State result =
com.google.cloud.dataplex.v1.State.forNumber(state_);
return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. Current state of the lake.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.dataplex.v1.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Service account associated with this lake. This service
* account must be authorized to access or operate on resources managed by the
* lake.
*
* Output only. Service account associated with this lake. This service
* account must be authorized to access or operate on resources managed by the
* lake.
*
* Output only. Service account associated with this lake. This service
* account must be authorized to access or operate on resources managed by the
* lake.
*
*
* string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The serviceAccount to set.
* @return This builder for chaining.
*/
public Builder setServiceAccount(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccount_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Output only. Service account associated with this lake. This service
* account must be authorized to access or operate on resources managed by the
* lake.
*
* Output only. Service account associated with this lake. This service
* account must be authorized to access or operate on resources managed by the
* lake.
*
*
* string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for serviceAccount to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccount_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.Lake.Metastore metastore_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Lake.Metastore,
com.google.cloud.dataplex.v1.Lake.Metastore.Builder,
com.google.cloud.dataplex.v1.Lake.MetastoreOrBuilder>
metastoreBuilder_;
/**
*
*
*
* Optional. Settings to manage lake and Dataproc Metastore service instance
* association.
*
*
*
* .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the metastore field is set.
*/
public boolean hasMetastore() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*
*
* Optional. Settings to manage lake and Dataproc Metastore service instance
* association.
*