All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.Entity Maven / Gradle / Ivy

/*
 * 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/metadata.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;

/**
 *
 *
 * 
 * Represents tables and fileset metadata contained within a zone.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entity} */ public final class Entity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Entity) EntityOrBuilder { private static final long serialVersionUID = 0L; // Use Entity.newBuilder() to construct. private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entity() { name_ = ""; displayName_ = ""; description_ = ""; id_ = ""; etag_ = ""; type_ = 0; asset_ = ""; dataPath_ = ""; dataPathPattern_ = ""; catalogEntry_ = ""; system_ = 0; uid_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Entity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entity.class, com.google.cloud.dataplex.v1.Entity.Builder.class); } /** * * *
   * The type of entity.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.Entity.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Type unspecified.
     * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * * *
     * Structured and semi-structured data.
     * 
* * TABLE = 1; */ TABLE(1), /** * * *
     * Unstructured data.
     * 
* * FILESET = 2; */ FILESET(2), UNRECOGNIZED(-1), ; /** * * *
     * Type unspecified.
     * 
* * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Structured and semi-structured data.
     * 
* * TABLE = 1; */ public static final int TABLE_VALUE = 1; /** * * *
     * Unstructured data.
     * 
* * FILESET = 2; */ public static final int FILESET_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 Type 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 Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return TABLE; case 2: return FILESET; 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 Type findValueByNumber(int number) { return Type.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.Entity.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type 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 Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Entity.Type) } public interface CompatibilityStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Entity.CompatibilityStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. Whether this entity is compatible with Hive Metastore.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the hiveMetastore field is set. */ boolean hasHiveMetastore(); /** * * *
     * Output only. Whether this entity is compatible with Hive Metastore.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The hiveMetastore. */ com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getHiveMetastore(); /** * * *
     * Output only. Whether this entity is compatible with Hive Metastore.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder getHiveMetastoreOrBuilder(); /** * * *
     * Output only. Whether this entity is compatible with BigQuery.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigquery field is set. */ boolean hasBigquery(); /** * * *
     * Output only. Whether this entity is compatible with BigQuery.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigquery. */ com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getBigquery(); /** * * *
     * Output only. Whether this entity is compatible with BigQuery.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder getBigqueryOrBuilder(); } /** * * *
   * Provides compatibility information for various metadata stores.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entity.CompatibilityStatus} */ public static final class CompatibilityStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Entity.CompatibilityStatus) CompatibilityStatusOrBuilder { private static final long serialVersionUID = 0L; // Use CompatibilityStatus.newBuilder() to construct. private CompatibilityStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompatibilityStatus() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CompatibilityStatus(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.class, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Builder.class); } public interface CompatibilityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility) com.google.protobuf.MessageOrBuilder { /** * * *
       * Output only. Whether the entity is compatible and can be represented in
       * the metadata store.
       * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The compatible. */ boolean getCompatible(); /** * * *
       * Output only. Provides additional detail if the entity is incompatible
       * with the metadata store.
       * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reason. */ java.lang.String getReason(); /** * * *
       * Output only. Provides additional detail if the entity is incompatible
       * with the metadata store.
       * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for reason. */ com.google.protobuf.ByteString getReasonBytes(); } /** * * *
     * Provides compatibility information for a specific metadata store.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility} */ public static final class Compatibility extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility) CompatibilityOrBuilder { private static final long serialVersionUID = 0L; // Use Compatibility.newBuilder() to construct. private Compatibility(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Compatibility() { reason_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Compatibility(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_Compatibility_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_Compatibility_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.class, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder .class); } public static final int COMPATIBLE_FIELD_NUMBER = 1; private boolean compatible_ = false; /** * * *
       * Output only. Whether the entity is compatible and can be represented in
       * the metadata store.
       * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The compatible. */ @java.lang.Override public boolean getCompatible() { return compatible_; } public static final int REASON_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** * * *
       * Output only. Provides additional detail if the entity is incompatible
       * with the metadata store.
       * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reason. */ @java.lang.Override public java.lang.String getReason() { java.lang.Object ref = reason_; 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(); reason_ = s; return s; } } /** * * *
       * Output only. Provides additional detail if the entity is incompatible
       * with the metadata store.
       * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for reason. */ @java.lang.Override public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = 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 (compatible_ != false) { output.writeBool(1, compatible_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reason_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (compatible_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, compatible_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); } 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.Entity.CompatibilityStatus.Compatibility)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility other = (com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility) obj; if (getCompatible() != other.getCompatible()) return false; if (!getReason().equals(other.getReason())) 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) + COMPATIBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCompatible()); hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility 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.Entity.CompatibilityStatus.Compatibility parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility 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.Entity.CompatibilityStatus.Compatibility parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility 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.Entity.CompatibilityStatus.Compatibility parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility 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.Entity.CompatibilityStatus.Compatibility parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility 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.Entity.CompatibilityStatus.Compatibility 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.Entity.CompatibilityStatus.Compatibility 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.Entity.CompatibilityStatus.Compatibility 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; } /** * * *
       * Provides compatibility information for a specific metadata store.
       * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility) com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_Compatibility_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_Compatibility_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.class, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder .class); } // Construct using // com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; compatible_ = false; reason_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_Compatibility_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility build() { com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility buildPartial() { com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility result = new com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.compatible_ = compatible_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.reason_ = reason_; } } @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.Entity.CompatibilityStatus.Compatibility) { return mergeFrom( (com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility other) { if (other == com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance()) return this; if (other.getCompatible() != false) { setCompatible(other.getCompatible()); } if (!other.getReason().isEmpty()) { reason_ = other.reason_; bitField0_ |= 0x00000002; 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: { compatible_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { reason_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 boolean compatible_; /** * * *
         * Output only. Whether the entity is compatible and can be represented in
         * the metadata store.
         * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The compatible. */ @java.lang.Override public boolean getCompatible() { return compatible_; } /** * * *
         * Output only. Whether the entity is compatible and can be represented in
         * the metadata store.
         * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The compatible to set. * @return This builder for chaining. */ public Builder setCompatible(boolean value) { compatible_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Output only. Whether the entity is compatible and can be represented in
         * the metadata store.
         * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearCompatible() { bitField0_ = (bitField0_ & ~0x00000001); compatible_ = false; onChanged(); return this; } private java.lang.Object reason_ = ""; /** * * *
         * Output only. Provides additional detail if the entity is incompatible
         * with the metadata store.
         * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * Output only. Provides additional detail if the entity is incompatible
         * with the metadata store.
         * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for reason. */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * Output only. Provides additional detail if the entity is incompatible
         * with the metadata store.
         * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The reason to set. * @return This builder for chaining. */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } reason_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Output only. Provides additional detail if the entity is incompatible
         * with the metadata store.
         * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearReason() { reason_ = getDefaultInstance().getReason(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
         * Output only. Provides additional detail if the entity is incompatible
         * with the metadata store.
         * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for reason to set. * @return This builder for chaining. */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000002; 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.Entity.CompatibilityStatus.Compatibility) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility) private static final com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility(); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Compatibility 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.Entity.CompatibilityStatus.Compatibility getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int HIVE_METASTORE_FIELD_NUMBER = 1; private com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hiveMetastore_; /** * * *
     * Output only. Whether this entity is compatible with Hive Metastore.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the hiveMetastore field is set. */ @java.lang.Override public boolean hasHiveMetastore() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Output only. Whether this entity is compatible with Hive Metastore.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The hiveMetastore. */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getHiveMetastore() { return hiveMetastore_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : hiveMetastore_; } /** * * *
     * Output only. Whether this entity is compatible with Hive Metastore.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder getHiveMetastoreOrBuilder() { return hiveMetastore_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : hiveMetastore_; } public static final int BIGQUERY_FIELD_NUMBER = 2; private com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery_; /** * * *
     * Output only. Whether this entity is compatible with BigQuery.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigquery field is set. */ @java.lang.Override public boolean hasBigquery() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. Whether this entity is compatible with BigQuery.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigquery. */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getBigquery() { return bigquery_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : bigquery_; } /** * * *
     * Output only. Whether this entity is compatible with BigQuery.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder getBigqueryOrBuilder() { return bigquery_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : bigquery_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getHiveMetastore()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBigquery()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHiveMetastore()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBigquery()); } 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.Entity.CompatibilityStatus)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Entity.CompatibilityStatus other = (com.google.cloud.dataplex.v1.Entity.CompatibilityStatus) obj; if (hasHiveMetastore() != other.hasHiveMetastore()) return false; if (hasHiveMetastore()) { if (!getHiveMetastore().equals(other.getHiveMetastore())) return false; } if (hasBigquery() != other.hasBigquery()) return false; if (hasBigquery()) { if (!getBigquery().equals(other.getBigquery())) 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(); if (hasHiveMetastore()) { hash = (37 * hash) + HIVE_METASTORE_FIELD_NUMBER; hash = (53 * hash) + getHiveMetastore().hashCode(); } if (hasBigquery()) { hash = (37 * hash) + BIGQUERY_FIELD_NUMBER; hash = (53 * hash) + getBigquery().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus 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.Entity.CompatibilityStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus 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.Entity.CompatibilityStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus 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.Entity.CompatibilityStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus 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.Entity.CompatibilityStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus 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.Entity.CompatibilityStatus 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.Entity.CompatibilityStatus 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.Entity.CompatibilityStatus 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; } /** * * *
     * Provides compatibility information for various metadata stores.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entity.CompatibilityStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Entity.CompatibilityStatus) com.google.cloud.dataplex.v1.Entity.CompatibilityStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.class, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHiveMetastoreFieldBuilder(); getBigqueryFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; hiveMetastore_ = null; if (hiveMetastoreBuilder_ != null) { hiveMetastoreBuilder_.dispose(); hiveMetastoreBuilder_ = null; } bigquery_ = null; if (bigqueryBuilder_ != null) { bigqueryBuilder_.dispose(); bigqueryBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_CompatibilityStatus_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus build() { com.google.cloud.dataplex.v1.Entity.CompatibilityStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus buildPartial() { com.google.cloud.dataplex.v1.Entity.CompatibilityStatus result = new com.google.cloud.dataplex.v1.Entity.CompatibilityStatus(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Entity.CompatibilityStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.hiveMetastore_ = hiveMetastoreBuilder_ == null ? hiveMetastore_ : hiveMetastoreBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.bigquery_ = bigqueryBuilder_ == null ? bigquery_ : bigqueryBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.Entity.CompatibilityStatus) { return mergeFrom((com.google.cloud.dataplex.v1.Entity.CompatibilityStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Entity.CompatibilityStatus other) { if (other == com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.getDefaultInstance()) return this; if (other.hasHiveMetastore()) { mergeHiveMetastore(other.getHiveMetastore()); } if (other.hasBigquery()) { mergeBigquery(other.getBigquery()); } 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: { input.readMessage(getHiveMetastoreFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getBigqueryFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hiveMetastore_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder> hiveMetastoreBuilder_; /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the hiveMetastore field is set. */ public boolean hasHiveMetastore() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The hiveMetastore. */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getHiveMetastore() { if (hiveMetastoreBuilder_ == null) { return hiveMetastore_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : hiveMetastore_; } else { return hiveMetastoreBuilder_.getMessage(); } } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setHiveMetastore( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility value) { if (hiveMetastoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hiveMetastore_ = value; } else { hiveMetastoreBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setHiveMetastore( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder builderForValue) { if (hiveMetastoreBuilder_ == null) { hiveMetastore_ = builderForValue.build(); } else { hiveMetastoreBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeHiveMetastore( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility value) { if (hiveMetastoreBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && hiveMetastore_ != null && hiveMetastore_ != com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance()) { getHiveMetastoreBuilder().mergeFrom(value); } else { hiveMetastore_ = value; } } else { hiveMetastoreBuilder_.mergeFrom(value); } if (hiveMetastore_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearHiveMetastore() { bitField0_ = (bitField0_ & ~0x00000001); hiveMetastore_ = null; if (hiveMetastoreBuilder_ != null) { hiveMetastoreBuilder_.dispose(); hiveMetastoreBuilder_ = null; } onChanged(); return this; } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder getHiveMetastoreBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHiveMetastoreFieldBuilder().getBuilder(); } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder getHiveMetastoreOrBuilder() { if (hiveMetastoreBuilder_ != null) { return hiveMetastoreBuilder_.getMessageOrBuilder(); } else { return hiveMetastore_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : hiveMetastore_; } } /** * * *
       * Output only. Whether this entity is compatible with Hive Metastore.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder> getHiveMetastoreFieldBuilder() { if (hiveMetastoreBuilder_ == null) { hiveMetastoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder>( getHiveMetastore(), getParentForChildren(), isClean()); hiveMetastore_ = null; } return hiveMetastoreBuilder_; } private com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder> bigqueryBuilder_; /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the bigquery field is set. */ public boolean hasBigquery() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The bigquery. */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility getBigquery() { if (bigqueryBuilder_ == null) { return bigquery_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : bigquery_; } else { return bigqueryBuilder_.getMessage(); } } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigquery( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility value) { if (bigqueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bigquery_ = value; } else { bigqueryBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setBigquery( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder builderForValue) { if (bigqueryBuilder_ == null) { bigquery_ = builderForValue.build(); } else { bigqueryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeBigquery( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility value) { if (bigqueryBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && bigquery_ != null && bigquery_ != com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance()) { getBigqueryBuilder().mergeFrom(value); } else { bigquery_ = value; } } else { bigqueryBuilder_.mergeFrom(value); } if (bigquery_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearBigquery() { bitField0_ = (bitField0_ & ~0x00000002); bigquery_ = null; if (bigqueryBuilder_ != null) { bigqueryBuilder_.dispose(); bigqueryBuilder_ = null; } onChanged(); return this; } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder getBigqueryBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBigqueryFieldBuilder().getBuilder(); } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder getBigqueryOrBuilder() { if (bigqueryBuilder_ != null) { return bigqueryBuilder_.getMessageOrBuilder(); } else { return bigquery_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility .getDefaultInstance() : bigquery_; } } /** * * *
       * Output only. Whether this entity is compatible with BigQuery.
       * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder> getBigqueryFieldBuilder() { if (bigqueryBuilder_ == null) { bigqueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityOrBuilder>( getBigquery(), getParentForChildren(), isClean()); bigquery_ = null; } return bigqueryBuilder_; } @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.Entity.CompatibilityStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Entity.CompatibilityStatus) private static final com.google.cloud.dataplex.v1.Entity.CompatibilityStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Entity.CompatibilityStatus(); } public static com.google.cloud.dataplex.v1.Entity.CompatibilityStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CompatibilityStatus 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.Entity.CompatibilityStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Output only. The resource name of the entity, of the form:
   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.
   * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @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; } } /** * * *
   * Output only. The resource name of the entity, of the form:
   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.
   * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @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 DISPLAY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
   * Optional. Display name must be shorter than or equal to 256 characters.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** * * *
   * Optional. Display name must be shorter than or equal to 256 characters.
   * 
* * 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 DESCRIPTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Optional. User friendly longer description text. Must be shorter than or
   * equal to 1024 characters.
   * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * Optional. User friendly longer description text. Must be shorter than or
   * equal to 1024 characters.
   * 
* * string description = 3 [(.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 CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. The time when the entity was created.
   * 
* * .google.protobuf.Timestamp create_time = 5 [(.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 entity was created.
   * 
* * .google.protobuf.Timestamp create_time = 5 [(.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 entity was created.
   * 
* * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. The time when the entity was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 6 [(.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 entity was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 6 [(.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 entity was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 6 [(.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 ID_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
   * Required. A user-provided entity ID. It is mutable, and will be used as the
   * published table name. Specifying a new ID in an update entity
   * request will override the existing value.
   * The ID must contain only letters (a-z, A-Z), numbers (0-9), and
   * underscores, and consist of 256 or fewer characters.
   * 
* * string id = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * * *
   * Required. A user-provided entity ID. It is mutable, and will be used as the
   * published table name. Specifying a new ID in an update entity
   * request will override the existing value.
   * The ID must contain only letters (a-z, A-Z), numbers (0-9), and
   * underscores, and consist of 256 or fewer characters.
   * 
* * string id = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ETAG_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** * * *
   * Optional. The etag associated with the entity, which can be retrieved with
   * a [GetEntity][] request. Required for update and delete requests.
   * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @java.lang.Override public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; } } /** * * *
   * Optional. The etag associated with the entity, which can be retrieved with
   * a [GetEntity][] request. Required for update and delete requests.
   * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @java.lang.Override public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 10; private int type_ = 0; /** * * *
   * Required. Immutable. The type of entity.
   * 
* * * .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * Required. Immutable. The type of entity.
   * 
* * * .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.Type getType() { com.google.cloud.dataplex.v1.Entity.Type result = com.google.cloud.dataplex.v1.Entity.Type.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.Entity.Type.UNRECOGNIZED : result; } public static final int ASSET_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object asset_ = ""; /** * * *
   * Required. Immutable. The ID of the asset associated with the storage
   * location containing the entity data. The entity must be with in the same
   * zone with the asset.
   * 
* * * string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The asset. */ @java.lang.Override public java.lang.String getAsset() { java.lang.Object ref = asset_; 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(); asset_ = s; return s; } } /** * * *
   * Required. Immutable. The ID of the asset associated with the storage
   * location containing the entity data. The entity must be with in the same
   * zone with the asset.
   * 
* * * string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for asset. */ @java.lang.Override public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_PATH_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object dataPath_ = ""; /** * * *
   * Required. Immutable. The storage path of the entity data.
   * For Cloud Storage data, this is the fully-qualified path to the entity,
   * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
   * the table resource, such as
   * `projects/project_id/datasets/dataset_id/tables/table_id`.
   * 
* * * string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The dataPath. */ @java.lang.Override public java.lang.String getDataPath() { java.lang.Object ref = dataPath_; 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(); dataPath_ = s; return s; } } /** * * *
   * Required. Immutable. The storage path of the entity data.
   * For Cloud Storage data, this is the fully-qualified path to the entity,
   * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
   * the table resource, such as
   * `projects/project_id/datasets/dataset_id/tables/table_id`.
   * 
* * * string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for dataPath. */ @java.lang.Override public com.google.protobuf.ByteString getDataPathBytes() { java.lang.Object ref = dataPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_PATH_PATTERN_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object dataPathPattern_ = ""; /** * * *
   * Optional. The set of items within the data path constituting the data in
   * the entity, represented as a glob path. Example:
   * `gs://bucket/path/to/data/**/*.csv`.
   * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dataPathPattern. */ @java.lang.Override public java.lang.String getDataPathPattern() { java.lang.Object ref = dataPathPattern_; 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(); dataPathPattern_ = s; return s; } } /** * * *
   * Optional. The set of items within the data path constituting the data in
   * the entity, represented as a glob path. Example:
   * `gs://bucket/path/to/data/**/*.csv`.
   * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dataPathPattern. */ @java.lang.Override public com.google.protobuf.ByteString getDataPathPatternBytes() { java.lang.Object ref = dataPathPattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataPathPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CATALOG_ENTRY_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object catalogEntry_ = ""; /** * * *
   * Output only. The name of the associated Data Catalog entry.
   * 
* * string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The catalogEntry. */ @java.lang.Override public java.lang.String getCatalogEntry() { java.lang.Object ref = catalogEntry_; 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(); catalogEntry_ = s; return s; } } /** * * *
   * Output only. The name of the associated Data Catalog entry.
   * 
* * string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for catalogEntry. */ @java.lang.Override public com.google.protobuf.ByteString getCatalogEntryBytes() { java.lang.Object ref = catalogEntry_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); catalogEntry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYSTEM_FIELD_NUMBER = 15; private int system_ = 0; /** * * *
   * Required. Immutable. Identifies the storage system of the entity data.
   * 
* * * .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for system. */ @java.lang.Override public int getSystemValue() { return system_; } /** * * *
   * Required. Immutable. Identifies the storage system of the entity data.
   * 
* * * .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The system. */ @java.lang.Override public com.google.cloud.dataplex.v1.StorageSystem getSystem() { com.google.cloud.dataplex.v1.StorageSystem result = com.google.cloud.dataplex.v1.StorageSystem.forNumber(system_); return result == null ? com.google.cloud.dataplex.v1.StorageSystem.UNRECOGNIZED : result; } public static final int FORMAT_FIELD_NUMBER = 16; private com.google.cloud.dataplex.v1.StorageFormat format_; /** * * *
   * Required. Identifies the storage format of the entity data.
   * It does not apply to entities with data stored in BigQuery.
   * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the format field is set. */ @java.lang.Override public boolean hasFormat() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Required. Identifies the storage format of the entity data.
   * It does not apply to entities with data stored in BigQuery.
   * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * * * @return The format. */ @java.lang.Override public com.google.cloud.dataplex.v1.StorageFormat getFormat() { return format_ == null ? com.google.cloud.dataplex.v1.StorageFormat.getDefaultInstance() : format_; } /** * * *
   * Required. Identifies the storage format of the entity data.
   * It does not apply to entities with data stored in BigQuery.
   * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.StorageFormatOrBuilder getFormatOrBuilder() { return format_ == null ? com.google.cloud.dataplex.v1.StorageFormat.getDefaultInstance() : format_; } public static final int COMPATIBILITY_FIELD_NUMBER = 19; private com.google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility_; /** * * *
   * Output only. Metadata stores that the entity is compatible with.
   * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the compatibility field is set. */ @java.lang.Override public boolean hasCompatibility() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Output only. Metadata stores that the entity is compatible with.
   * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The compatibility. */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus getCompatibility() { return compatibility_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.getDefaultInstance() : compatibility_; } /** * * *
   * Output only. Metadata stores that the entity is compatible with.
   * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.CompatibilityStatusOrBuilder getCompatibilityOrBuilder() { return compatibility_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.getDefaultInstance() : compatibility_; } public static final int ACCESS_FIELD_NUMBER = 21; private com.google.cloud.dataplex.v1.StorageAccess access_; /** * * *
   * Output only. Identifies the access mechanism to the entity. Not user
   * settable.
   * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the access field is set. */ @java.lang.Override public boolean hasAccess() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Output only. Identifies the access mechanism to the entity. Not user
   * settable.
   * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The access. */ @java.lang.Override public com.google.cloud.dataplex.v1.StorageAccess getAccess() { return access_ == null ? com.google.cloud.dataplex.v1.StorageAccess.getDefaultInstance() : access_; } /** * * *
   * Output only. Identifies the access mechanism to the entity. Not user
   * settable.
   * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.StorageAccessOrBuilder getAccessOrBuilder() { return access_ == null ? com.google.cloud.dataplex.v1.StorageAccess.getDefaultInstance() : access_; } public static final int UID_FIELD_NUMBER = 22; @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** * * *
   * Output only. System generated unique ID for the Entity. This ID will be
   * different if the Entity is deleted and re-created with the same name.
   * 
* * string uid = 22 [(.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. System generated unique ID for the Entity. This ID will be
   * different if the Entity is deleted and re-created with the same name.
   * 
* * string uid = 22 [(.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 SCHEMA_FIELD_NUMBER = 50; private com.google.cloud.dataplex.v1.Schema schema_; /** * * *
   * Required. The description of the data structure and layout.
   * The schema is not included in list responses. It is only included in
   * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
   * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the schema field is set. */ @java.lang.Override public boolean hasSchema() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Required. The description of the data structure and layout.
   * The schema is not included in list responses. It is only included in
   * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
   * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * * * @return The schema. */ @java.lang.Override public com.google.cloud.dataplex.v1.Schema getSchema() { return schema_ == null ? com.google.cloud.dataplex.v1.Schema.getDefaultInstance() : schema_; } /** * * *
   * Required. The description of the data structure and layout.
   * The schema is not included in list responses. It is only included in
   * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
   * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? com.google.cloud.dataplex.v1.Schema.getDefaultInstance() : schema_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_); } if (type_ != com.google.cloud.dataplex.v1.Entity.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(10, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, asset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dataPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPathPattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, dataPathPattern_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogEntry_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, catalogEntry_); } if (system_ != com.google.cloud.dataplex.v1.StorageSystem.STORAGE_SYSTEM_UNSPECIFIED.getNumber()) { output.writeEnum(15, system_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(16, getFormat()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(19, getCompatibility()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(21, getAccess()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, uid_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(50, getSchema()); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); } if (type_ != com.google.cloud.dataplex.v1.Entity.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, asset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, dataPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPathPattern_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, dataPathPattern_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogEntry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, catalogEntry_); } if (system_ != com.google.cloud.dataplex.v1.StorageSystem.STORAGE_SYSTEM_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, system_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getFormat()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCompatibility()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getAccess()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, uid_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getSchema()); } 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.Entity)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Entity other = (com.google.cloud.dataplex.v1.Entity) obj; if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) 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 (!getId().equals(other.getId())) return false; if (!getEtag().equals(other.getEtag())) return false; if (type_ != other.type_) return false; if (!getAsset().equals(other.getAsset())) return false; if (!getDataPath().equals(other.getDataPath())) return false; if (!getDataPathPattern().equals(other.getDataPathPattern())) return false; if (!getCatalogEntry().equals(other.getCatalogEntry())) return false; if (system_ != other.system_) return false; if (hasFormat() != other.hasFormat()) return false; if (hasFormat()) { if (!getFormat().equals(other.getFormat())) return false; } if (hasCompatibility() != other.hasCompatibility()) return false; if (hasCompatibility()) { if (!getCompatibility().equals(other.getCompatibility())) return false; } if (hasAccess() != other.hasAccess()) return false; if (hasAccess()) { if (!getAccess().equals(other.getAccess())) return false; } if (!getUid().equals(other.getUid())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { if (!getSchema().equals(other.getSchema())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().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(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); hash = (37 * hash) + DATA_PATH_FIELD_NUMBER; hash = (53 * hash) + getDataPath().hashCode(); hash = (37 * hash) + DATA_PATH_PATTERN_FIELD_NUMBER; hash = (53 * hash) + getDataPathPattern().hashCode(); hash = (37 * hash) + CATALOG_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getCatalogEntry().hashCode(); hash = (37 * hash) + SYSTEM_FIELD_NUMBER; hash = (53 * hash) + system_; if (hasFormat()) { hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + getFormat().hashCode(); } if (hasCompatibility()) { hash = (37 * hash) + COMPATIBILITY_FIELD_NUMBER; hash = (53 * hash) + getCompatibility().hashCode(); } if (hasAccess()) { hash = (37 * hash) + ACCESS_FIELD_NUMBER; hash = (53 * hash) + getAccess().hashCode(); } hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); if (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Entity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity 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.Entity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity 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.Entity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entity 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.Entity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entity 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.Entity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entity 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.Entity 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.Entity 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.Entity 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; } /** * * *
   * Represents tables and fileset metadata contained within a zone.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Entity) com.google.cloud.dataplex.v1.EntityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entity.class, com.google.cloud.dataplex.v1.Entity.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Entity.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(); getFormatFieldBuilder(); getCompatibilityFieldBuilder(); getAccessFieldBuilder(); getSchemaFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; displayName_ = ""; description_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } id_ = ""; etag_ = ""; type_ = 0; asset_ = ""; dataPath_ = ""; dataPathPattern_ = ""; catalogEntry_ = ""; system_ = 0; format_ = null; if (formatBuilder_ != null) { formatBuilder_.dispose(); formatBuilder_ = null; } compatibility_ = null; if (compatibilityBuilder_ != null) { compatibilityBuilder_.dispose(); compatibilityBuilder_ = null; } access_ = null; if (accessBuilder_ != null) { accessBuilder_.dispose(); accessBuilder_ = null; } uid_ = ""; schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.MetadataProto .internal_static_google_cloud_dataplex_v1_Entity_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Entity getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Entity.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Entity build() { com.google.cloud.dataplex.v1.Entity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Entity buildPartial() { com.google.cloud.dataplex.v1.Entity result = new com.google.cloud.dataplex.v1.Entity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Entity 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.description_ = description_; } 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.id_ = id_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.etag_ = etag_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.asset_ = asset_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.dataPath_ = dataPath_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.dataPathPattern_ = dataPathPattern_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.catalogEntry_ = catalogEntry_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.system_ = system_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.format_ = formatBuilder_ == null ? format_ : formatBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00004000) != 0)) { result.compatibility_ = compatibilityBuilder_ == null ? compatibility_ : compatibilityBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00008000) != 0)) { result.access_ = accessBuilder_ == null ? access_ : accessBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00010000) != 0)) { result.uid_ = uid_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000020; } 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.Entity) { return mergeFrom((com.google.cloud.dataplex.v1.Entity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Entity other) { if (other == com.google.cloud.dataplex.v1.Entity.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.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; bitField0_ |= 0x00000040; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getAsset().isEmpty()) { asset_ = other.asset_; bitField0_ |= 0x00000100; onChanged(); } if (!other.getDataPath().isEmpty()) { dataPath_ = other.dataPath_; bitField0_ |= 0x00000200; onChanged(); } if (!other.getDataPathPattern().isEmpty()) { dataPathPattern_ = other.dataPathPattern_; bitField0_ |= 0x00000400; onChanged(); } if (!other.getCatalogEntry().isEmpty()) { catalogEntry_ = other.catalogEntry_; bitField0_ |= 0x00000800; onChanged(); } if (other.system_ != 0) { setSystemValue(other.getSystemValue()); } if (other.hasFormat()) { mergeFormat(other.getFormat()); } if (other.hasCompatibility()) { mergeCompatibility(other.getCompatibility()); } if (other.hasAccess()) { mergeAccess(other.getAccess()); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; bitField0_ |= 0x00010000; onChanged(); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } 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: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 50 case 58: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 58 case 66: { etag_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 66 case 80: { type_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 80 case 90: { asset_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 90 case 98: { dataPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 98 case 106: { dataPathPattern_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 106 case 114: { catalogEntry_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 114 case 120: { system_ = input.readEnum(); bitField0_ |= 0x00001000; break; } // case 120 case 130: { input.readMessage(getFormatFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 130 case 154: { input.readMessage(getCompatibilityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 154 case 170: { input.readMessage(getAccessFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 170 case 178: { uid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00010000; break; } // case 178 case 402: { input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 402 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 resource name of the entity, of the form:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @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; } } /** * * *
     * Output only. The resource name of the entity, of the form:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @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; } } /** * * *
     * Output only. The resource name of the entity, of the form:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @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_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. The resource name of the entity, of the form:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. The resource name of the entity, of the form:
     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @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_ |= 0x00000001; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
     * Optional. Display name must be shorter than or equal to 256 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Display name must be shorter than or equal to 256 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof 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; } } /** * * *
     * Optional. Display name must be shorter than or equal to 256 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. Display name must be shorter than or equal to 256 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Optional. Display name must be shorter than or equal to 256 characters.
     * 
* * 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 description_ = ""; /** * * *
     * Optional. User friendly longer description text. Must be shorter than or
     * equal to 1024 characters.
     * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. User friendly longer description text. Must be shorter than or
     * equal to 1024 characters.
     * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof 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; } } /** * * *
     * Optional. User friendly longer description text. Must be shorter than or
     * equal to 1024 characters.
     * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Optional. User friendly longer description text. Must be shorter than or
     * equal to 1024 characters.
     * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Optional. User friendly longer description text. Must be shorter than or
     * equal to 1024 characters.
     * 
* * string description = 3 [(.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_ |= 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 entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.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 entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.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 entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.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_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. The time when the entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.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 entity was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.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 entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Output only. The time when the entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.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 entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. The time when the entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. The time when the entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Output only. The time when the entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.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 entity was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.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 java.lang.Object id_ = ""; /** * * *
     * Required. A user-provided entity ID. It is mutable, and will be used as the
     * published table name. Specifying a new ID in an update entity
     * request will override the existing value.
     * The ID must contain only letters (a-z, A-Z), numbers (0-9), and
     * underscores, and consist of 256 or fewer characters.
     * 
* * string id = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. A user-provided entity ID. It is mutable, and will be used as the
     * published table name. Specifying a new ID in an update entity
     * request will override the existing value.
     * The ID must contain only letters (a-z, A-Z), numbers (0-9), and
     * underscores, and consist of 256 or fewer characters.
     * 
* * string id = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. A user-provided entity ID. It is mutable, and will be used as the
     * published table name. Specifying a new ID in an update entity
     * request will override the existing value.
     * The ID must contain only letters (a-z, A-Z), numbers (0-9), and
     * underscores, and consist of 256 or fewer characters.
     * 
* * string id = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Required. A user-provided entity ID. It is mutable, and will be used as the
     * published table name. Specifying a new ID in an update entity
     * request will override the existing value.
     * The ID must contain only letters (a-z, A-Z), numbers (0-9), and
     * underscores, and consist of 256 or fewer characters.
     * 
* * string id = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Required. A user-provided entity ID. It is mutable, and will be used as the
     * published table name. Specifying a new ID in an update entity
     * request will override the existing value.
     * The ID must contain only letters (a-z, A-Z), numbers (0-9), and
     * underscores, and consist of 256 or fewer characters.
     * 
* * string id = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object etag_ = ""; /** * * *
     * Optional. The etag associated with the entity, which can be retrieved with
     * a [GetEntity][] request. Required for update and delete requests.
     * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The etag associated with the entity, which can be retrieved with
     * a [GetEntity][] request. Required for update and delete requests.
     * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The etag associated with the entity, which can be retrieved with
     * a [GetEntity][] request. Required for update and delete requests.
     * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The etag to set. * @return This builder for chaining. */ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Optional. The etag associated with the entity, which can be retrieved with
     * a [GetEntity][] request. Required for update and delete requests.
     * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Optional. The etag associated with the entity, which can be retrieved with
     * a [GetEntity][] request. Required for update and delete requests.
     * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for etag to set. * @return This builder for chaining. */ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private int type_ = 0; /** * * *
     * Required. Immutable. The type of entity.
     * 
* * * .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * Required. Immutable. The type of entity.
     * 
* * * .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Required. Immutable. The type of entity.
     * 
* * * .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.Entity.Type getType() { com.google.cloud.dataplex.v1.Entity.Type result = com.google.cloud.dataplex.v1.Entity.Type.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.Entity.Type.UNRECOGNIZED : result; } /** * * *
     * Required. Immutable. The type of entity.
     * 
* * * .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.dataplex.v1.Entity.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Required. Immutable. The type of entity.
     * 
* * * .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000080); type_ = 0; onChanged(); return this; } private java.lang.Object asset_ = ""; /** * * *
     * Required. Immutable. The ID of the asset associated with the storage
     * location containing the entity data. The entity must be with in the same
     * zone with the asset.
     * 
* * * string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The asset. */ public java.lang.String getAsset() { java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Immutable. The ID of the asset associated with the storage
     * location containing the entity data. The entity must be with in the same
     * zone with the asset.
     * 
* * * string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for asset. */ public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Immutable. The ID of the asset associated with the storage
     * location containing the entity data. The entity must be with in the same
     * zone with the asset.
     * 
* * * string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The asset to set. * @return This builder for chaining. */ public Builder setAsset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } asset_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Required. Immutable. The ID of the asset associated with the storage
     * location containing the entity data. The entity must be with in the same
     * zone with the asset.
     * 
* * * string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearAsset() { asset_ = getDefaultInstance().getAsset(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * Required. Immutable. The ID of the asset associated with the storage
     * location containing the entity data. The entity must be with in the same
     * zone with the asset.
     * 
* * * string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The bytes for asset to set. * @return This builder for chaining. */ public Builder setAssetBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); asset_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private java.lang.Object dataPath_ = ""; /** * * *
     * Required. Immutable. The storage path of the entity data.
     * For Cloud Storage data, this is the fully-qualified path to the entity,
     * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
     * the table resource, such as
     * `projects/project_id/datasets/dataset_id/tables/table_id`.
     * 
* * * string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The dataPath. */ public java.lang.String getDataPath() { java.lang.Object ref = dataPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Immutable. The storage path of the entity data.
     * For Cloud Storage data, this is the fully-qualified path to the entity,
     * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
     * the table resource, such as
     * `projects/project_id/datasets/dataset_id/tables/table_id`.
     * 
* * * string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for dataPath. */ public com.google.protobuf.ByteString getDataPathBytes() { java.lang.Object ref = dataPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Immutable. The storage path of the entity data.
     * For Cloud Storage data, this is the fully-qualified path to the entity,
     * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
     * the table resource, such as
     * `projects/project_id/datasets/dataset_id/tables/table_id`.
     * 
* * * string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The dataPath to set. * @return This builder for chaining. */ public Builder setDataPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } dataPath_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Required. Immutable. The storage path of the entity data.
     * For Cloud Storage data, this is the fully-qualified path to the entity,
     * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
     * the table resource, such as
     * `projects/project_id/datasets/dataset_id/tables/table_id`.
     * 
* * * string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearDataPath() { dataPath_ = getDefaultInstance().getDataPath(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * * *
     * Required. Immutable. The storage path of the entity data.
     * For Cloud Storage data, this is the fully-qualified path to the entity,
     * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of
     * the table resource, such as
     * `projects/project_id/datasets/dataset_id/tables/table_id`.
     * 
* * * string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The bytes for dataPath to set. * @return This builder for chaining. */ public Builder setDataPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataPath_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object dataPathPattern_ = ""; /** * * *
     * Optional. The set of items within the data path constituting the data in
     * the entity, represented as a glob path. Example:
     * `gs://bucket/path/to/data/**/*.csv`.
     * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dataPathPattern. */ public java.lang.String getDataPathPattern() { java.lang.Object ref = dataPathPattern_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataPathPattern_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The set of items within the data path constituting the data in
     * the entity, represented as a glob path. Example:
     * `gs://bucket/path/to/data/**/*.csv`.
     * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dataPathPattern. */ public com.google.protobuf.ByteString getDataPathPatternBytes() { java.lang.Object ref = dataPathPattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataPathPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The set of items within the data path constituting the data in
     * the entity, represented as a glob path. Example:
     * `gs://bucket/path/to/data/**/*.csv`.
     * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The dataPathPattern to set. * @return This builder for chaining. */ public Builder setDataPathPattern(java.lang.String value) { if (value == null) { throw new NullPointerException(); } dataPathPattern_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Optional. The set of items within the data path constituting the data in
     * the entity, represented as a glob path. Example:
     * `gs://bucket/path/to/data/**/*.csv`.
     * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDataPathPattern() { dataPathPattern_ = getDefaultInstance().getDataPathPattern(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * Optional. The set of items within the data path constituting the data in
     * the entity, represented as a glob path. Example:
     * `gs://bucket/path/to/data/**/*.csv`.
     * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for dataPathPattern to set. * @return This builder for chaining. */ public Builder setDataPathPatternBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataPathPattern_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object catalogEntry_ = ""; /** * * *
     * Output only. The name of the associated Data Catalog entry.
     * 
* * string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The catalogEntry. */ public java.lang.String getCatalogEntry() { java.lang.Object ref = catalogEntry_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); catalogEntry_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The name of the associated Data Catalog entry.
     * 
* * string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for catalogEntry. */ public com.google.protobuf.ByteString getCatalogEntryBytes() { java.lang.Object ref = catalogEntry_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); catalogEntry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The name of the associated Data Catalog entry.
     * 
* * string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The catalogEntry to set. * @return This builder for chaining. */ public Builder setCatalogEntry(java.lang.String value) { if (value == null) { throw new NullPointerException(); } catalogEntry_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. The name of the associated Data Catalog entry.
     * 
* * string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearCatalogEntry() { catalogEntry_ = getDefaultInstance().getCatalogEntry(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
     * Output only. The name of the associated Data Catalog entry.
     * 
* * string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for catalogEntry to set. * @return This builder for chaining. */ public Builder setCatalogEntryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); catalogEntry_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private int system_ = 0; /** * * *
     * Required. Immutable. Identifies the storage system of the entity data.
     * 
* * * .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The enum numeric value on the wire for system. */ @java.lang.Override public int getSystemValue() { return system_; } /** * * *
     * Required. Immutable. Identifies the storage system of the entity data.
     * 
* * * .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The enum numeric value on the wire for system to set. * @return This builder for chaining. */ public Builder setSystemValue(int value) { system_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Required. Immutable. Identifies the storage system of the entity data.
     * 
* * * .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The system. */ @java.lang.Override public com.google.cloud.dataplex.v1.StorageSystem getSystem() { com.google.cloud.dataplex.v1.StorageSystem result = com.google.cloud.dataplex.v1.StorageSystem.forNumber(system_); return result == null ? com.google.cloud.dataplex.v1.StorageSystem.UNRECOGNIZED : result; } /** * * *
     * Required. Immutable. Identifies the storage system of the entity data.
     * 
* * * .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The system to set. * @return This builder for chaining. */ public Builder setSystem(com.google.cloud.dataplex.v1.StorageSystem value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; system_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Required. Immutable. Identifies the storage system of the entity data.
     * 
* * * .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearSystem() { bitField0_ = (bitField0_ & ~0x00001000); system_ = 0; onChanged(); return this; } private com.google.cloud.dataplex.v1.StorageFormat format_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.StorageFormat, com.google.cloud.dataplex.v1.StorageFormat.Builder, com.google.cloud.dataplex.v1.StorageFormatOrBuilder> formatBuilder_; /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the format field is set. */ public boolean hasFormat() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * * * @return The format. */ public com.google.cloud.dataplex.v1.StorageFormat getFormat() { if (formatBuilder_ == null) { return format_ == null ? com.google.cloud.dataplex.v1.StorageFormat.getDefaultInstance() : format_; } else { return formatBuilder_.getMessage(); } } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setFormat(com.google.cloud.dataplex.v1.StorageFormat value) { if (formatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } format_ = value; } else { formatBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setFormat(com.google.cloud.dataplex.v1.StorageFormat.Builder builderForValue) { if (formatBuilder_ == null) { format_ = builderForValue.build(); } else { formatBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeFormat(com.google.cloud.dataplex.v1.StorageFormat value) { if (formatBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && format_ != null && format_ != com.google.cloud.dataplex.v1.StorageFormat.getDefaultInstance()) { getFormatBuilder().mergeFrom(value); } else { format_ = value; } } else { formatBuilder_.mergeFrom(value); } if (format_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearFormat() { bitField0_ = (bitField0_ & ~0x00002000); format_ = null; if (formatBuilder_ != null) { formatBuilder_.dispose(); formatBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.StorageFormat.Builder getFormatBuilder() { bitField0_ |= 0x00002000; onChanged(); return getFormatFieldBuilder().getBuilder(); } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.StorageFormatOrBuilder getFormatOrBuilder() { if (formatBuilder_ != null) { return formatBuilder_.getMessageOrBuilder(); } else { return format_ == null ? com.google.cloud.dataplex.v1.StorageFormat.getDefaultInstance() : format_; } } /** * * *
     * Required. Identifies the storage format of the entity data.
     * It does not apply to entities with data stored in BigQuery.
     * 
* * * .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.StorageFormat, com.google.cloud.dataplex.v1.StorageFormat.Builder, com.google.cloud.dataplex.v1.StorageFormatOrBuilder> getFormatFieldBuilder() { if (formatBuilder_ == null) { formatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.StorageFormat, com.google.cloud.dataplex.v1.StorageFormat.Builder, com.google.cloud.dataplex.v1.StorageFormatOrBuilder>( getFormat(), getParentForChildren(), isClean()); format_ = null; } return formatBuilder_; } private com.google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatusOrBuilder> compatibilityBuilder_; /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the compatibility field is set. */ public boolean hasCompatibility() { return ((bitField0_ & 0x00004000) != 0); } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The compatibility. */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus getCompatibility() { if (compatibilityBuilder_ == null) { return compatibility_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.getDefaultInstance() : compatibility_; } else { return compatibilityBuilder_.getMessage(); } } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCompatibility(com.google.cloud.dataplex.v1.Entity.CompatibilityStatus value) { if (compatibilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compatibility_ = value; } else { compatibilityBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCompatibility( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Builder builderForValue) { if (compatibilityBuilder_ == null) { compatibility_ = builderForValue.build(); } else { compatibilityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCompatibility( com.google.cloud.dataplex.v1.Entity.CompatibilityStatus value) { if (compatibilityBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && compatibility_ != null && compatibility_ != com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.getDefaultInstance()) { getCompatibilityBuilder().mergeFrom(value); } else { compatibility_ = value; } } else { compatibilityBuilder_.mergeFrom(value); } if (compatibility_ != null) { bitField0_ |= 0x00004000; onChanged(); } return this; } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCompatibility() { bitField0_ = (bitField0_ & ~0x00004000); compatibility_ = null; if (compatibilityBuilder_ != null) { compatibilityBuilder_.dispose(); compatibilityBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Builder getCompatibilityBuilder() { bitField0_ |= 0x00004000; onChanged(); return getCompatibilityFieldBuilder().getBuilder(); } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.Entity.CompatibilityStatusOrBuilder getCompatibilityOrBuilder() { if (compatibilityBuilder_ != null) { return compatibilityBuilder_.getMessageOrBuilder(); } else { return compatibility_ == null ? com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.getDefaultInstance() : compatibility_; } } /** * * *
     * Output only. Metadata stores that the entity is compatible with.
     * 
* * * .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatusOrBuilder> getCompatibilityFieldBuilder() { if (compatibilityBuilder_ == null) { compatibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entity.CompatibilityStatus, com.google.cloud.dataplex.v1.Entity.CompatibilityStatus.Builder, com.google.cloud.dataplex.v1.Entity.CompatibilityStatusOrBuilder>( getCompatibility(), getParentForChildren(), isClean()); compatibility_ = null; } return compatibilityBuilder_; } private com.google.cloud.dataplex.v1.StorageAccess access_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.StorageAccess, com.google.cloud.dataplex.v1.StorageAccess.Builder, com.google.cloud.dataplex.v1.StorageAccessOrBuilder> accessBuilder_; /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the access field is set. */ public boolean hasAccess() { return ((bitField0_ & 0x00008000) != 0); } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The access. */ public com.google.cloud.dataplex.v1.StorageAccess getAccess() { if (accessBuilder_ == null) { return access_ == null ? com.google.cloud.dataplex.v1.StorageAccess.getDefaultInstance() : access_; } else { return accessBuilder_.getMessage(); } } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAccess(com.google.cloud.dataplex.v1.StorageAccess value) { if (accessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } access_ = value; } else { accessBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAccess(com.google.cloud.dataplex.v1.StorageAccess.Builder builderForValue) { if (accessBuilder_ == null) { access_ = builderForValue.build(); } else { accessBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeAccess(com.google.cloud.dataplex.v1.StorageAccess value) { if (accessBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && access_ != null && access_ != com.google.cloud.dataplex.v1.StorageAccess.getDefaultInstance()) { getAccessBuilder().mergeFrom(value); } else { access_ = value; } } else { accessBuilder_.mergeFrom(value); } if (access_ != null) { bitField0_ |= 0x00008000; onChanged(); } return this; } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearAccess() { bitField0_ = (bitField0_ & ~0x00008000); access_ = null; if (accessBuilder_ != null) { accessBuilder_.dispose(); accessBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.StorageAccess.Builder getAccessBuilder() { bitField0_ |= 0x00008000; onChanged(); return getAccessFieldBuilder().getBuilder(); } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.StorageAccessOrBuilder getAccessOrBuilder() { if (accessBuilder_ != null) { return accessBuilder_.getMessageOrBuilder(); } else { return access_ == null ? com.google.cloud.dataplex.v1.StorageAccess.getDefaultInstance() : access_; } } /** * * *
     * Output only. Identifies the access mechanism to the entity. Not user
     * settable.
     * 
* * * .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.StorageAccess, com.google.cloud.dataplex.v1.StorageAccess.Builder, com.google.cloud.dataplex.v1.StorageAccessOrBuilder> getAccessFieldBuilder() { if (accessBuilder_ == null) { accessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.StorageAccess, com.google.cloud.dataplex.v1.StorageAccess.Builder, com.google.cloud.dataplex.v1.StorageAccessOrBuilder>( getAccess(), getParentForChildren(), isClean()); access_ = null; } return accessBuilder_; } private java.lang.Object uid_ = ""; /** * * *
     * Output only. System generated unique ID for the Entity. This ID will be
     * different if the Entity is deleted and re-created with the same name.
     * 
* * string uid = 22 [(.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. System generated unique ID for the Entity. This ID will be
     * different if the Entity is deleted and re-created with the same name.
     * 
* * string uid = 22 [(.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. System generated unique ID for the Entity. This ID will be
     * different if the Entity is deleted and re-created with the same name.
     * 
* * string uid = 22 [(.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_ |= 0x00010000; onChanged(); return this; } /** * * *
     * Output only. System generated unique ID for the Entity. This ID will be
     * different if the Entity is deleted and re-created with the same name.
     * 
* * string uid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** * * *
     * Output only. System generated unique ID for the Entity. This ID will be
     * different if the Entity is deleted and re-created with the same name.
     * 
* * string uid = 22 [(.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_ |= 0x00010000; onChanged(); return this; } private com.google.cloud.dataplex.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Schema, com.google.cloud.dataplex.v1.Schema.Builder, com.google.cloud.dataplex.v1.SchemaOrBuilder> schemaBuilder_; /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00020000) != 0); } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * * * @return The schema. */ public com.google.cloud.dataplex.v1.Schema getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? com.google.cloud.dataplex.v1.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setSchema(com.google.cloud.dataplex.v1.Schema value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setSchema(com.google.cloud.dataplex.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeSchema(com.google.cloud.dataplex.v1.Schema value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && schema_ != null && schema_ != com.google.cloud.dataplex.v1.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; } } else { schemaBuilder_.mergeFrom(value); } if (schema_ != null) { bitField0_ |= 0x00020000; onChanged(); } return this; } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00020000); schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00020000; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? com.google.cloud.dataplex.v1.Schema.getDefaultInstance() : schema_; } } /** * * *
     * Required. The description of the data structure and layout.
     * The schema is not included in list responses. It is only included in
     * `SCHEMA` and `FULL` entity views of a `GetEntity` response.
     * 
* * .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Schema, com.google.cloud.dataplex.v1.Schema.Builder, com.google.cloud.dataplex.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Schema, com.google.cloud.dataplex.v1.Schema.Builder, com.google.cloud.dataplex.v1.SchemaOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } @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.Entity) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Entity) private static final com.google.cloud.dataplex.v1.Entity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Entity(); } public static com.google.cloud.dataplex.v1.Entity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entity 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.Entity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy