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

com.google.cloud.dataplex.v1.Entry 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/catalog.proto

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

/**
 *
 *
 * 
 * An entry is a representation of a data asset which can be described by
 * various metadata.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entry} */ public final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Entry) EntryOrBuilder { private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entry() { name_ = ""; entryType_ = ""; parentEntry_ = ""; fullyQualifiedName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Entry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_Entry_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetAspects(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entry.class, com.google.cloud.dataplex.v1.Entry.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Identifier. The relative resource name of the Entry, of the form:
   * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @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; } } /** * * *
   * Identifier. The relative resource name of the Entry, of the form:
   * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @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 ENTRY_TYPE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object entryType_ = ""; /** * * *
   * Required. Immutable. The resource name of the EntryType used to create this
   * Entry.
   * 
* * * string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The entryType. */ @java.lang.Override public java.lang.String getEntryType() { java.lang.Object ref = entryType_; 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(); entryType_ = s; return s; } } /** * * *
   * Required. Immutable. The resource name of the EntryType used to create this
   * Entry.
   * 
* * * string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for entryType. */ @java.lang.Override public com.google.protobuf.ByteString getEntryTypeBytes() { java.lang.Object ref = entryType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryType_ = 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 Entry 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 Entry 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 Entry 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 Entry 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 Entry 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 Entry 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 ASPECTS_FIELD_NUMBER = 9; private static final class AspectsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_Entry_AspectsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.cloud.dataplex.v1.Aspect.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField aspects_; private com.google.protobuf.MapField internalGetAspects() { if (aspects_ == null) { return com.google.protobuf.MapField.emptyMapField(AspectsDefaultEntryHolder.defaultEntry); } return aspects_; } public int getAspectsCount() { return internalGetAspects().getMap().size(); } /** * * *
   * Optional. The Aspects attached to the Entry.
   * The format for the key can be one of the following:
   * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
   * directly to the entry)
   * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
   * attached to an entry's path)
   * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public boolean containsAspects(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAspects().getMap().containsKey(key); } /** Use {@link #getAspectsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAspects() { return getAspectsMap(); } /** * * *
   * Optional. The Aspects attached to the Entry.
   * The format for the key can be one of the following:
   * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
   * directly to the entry)
   * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
   * attached to an entry's path)
   * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.Map getAspectsMap() { return internalGetAspects().getMap(); } /** * * *
   * Optional. The Aspects attached to the Entry.
   * The format for the key can be one of the following:
   * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
   * directly to the entry)
   * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
   * attached to an entry's path)
   * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public /* nullable */ com.google.cloud.dataplex.v1.Aspect getAspectsOrDefault( java.lang.String key, /* nullable */ com.google.cloud.dataplex.v1.Aspect defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAspects().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Optional. The Aspects attached to the Entry.
   * The format for the key can be one of the following:
   * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
   * directly to the entry)
   * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
   * attached to an entry's path)
   * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Aspect getAspectsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAspects().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PARENT_ENTRY_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object parentEntry_ = ""; /** * * *
   * Optional. Immutable. The resource name of the parent entry.
   * 
* * * string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The parentEntry. */ @java.lang.Override public java.lang.String getParentEntry() { java.lang.Object ref = parentEntry_; 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(); parentEntry_ = s; return s; } } /** * * *
   * Optional. Immutable. The resource name of the parent entry.
   * 
* * * string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for parentEntry. */ @java.lang.Override public com.google.protobuf.ByteString getParentEntryBytes() { java.lang.Object ref = parentEntry_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentEntry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FULLY_QUALIFIED_NAME_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object fullyQualifiedName_ = ""; /** * * *
   * Optional. A name for the entry that can reference it in an external system.
   * The maximum size of the field is 4000 characters.
   * 
* * string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fullyQualifiedName. */ @java.lang.Override public java.lang.String getFullyQualifiedName() { java.lang.Object ref = fullyQualifiedName_; 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(); fullyQualifiedName_ = s; return s; } } /** * * *
   * Optional. A name for the entry that can reference it in an external system.
   * The maximum size of the field is 4000 characters.
   * 
* * string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fullyQualifiedName. */ @java.lang.Override public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { java.lang.Object ref = fullyQualifiedName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullyQualifiedName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRY_SOURCE_FIELD_NUMBER = 15; private com.google.cloud.dataplex.v1.EntrySource entrySource_; /** * * *
   * Optional. Source system related information for an entry.
   * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the entrySource field is set. */ @java.lang.Override public boolean hasEntrySource() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Optional. Source system related information for an entry.
   * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The entrySource. */ @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource getEntrySource() { return entrySource_ == null ? com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance() : entrySource_; } /** * * *
   * Optional. Source system related information for an entry.
   * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.EntrySourceOrBuilder getEntrySourceOrBuilder() { return entrySource_ == null ? com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance() : entrySource_; } 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(entryType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, entryType_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getUpdateTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAspects(), AspectsDefaultEntryHolder.defaultEntry, 9); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEntry_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, parentEntry_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, fullyQualifiedName_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(15, getEntrySource()); } 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(entryType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, entryType_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } for (java.util.Map.Entry entry : internalGetAspects().getMap().entrySet()) { com.google.protobuf.MapEntry aspects__ = AspectsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, aspects__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEntry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, parentEntry_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, fullyQualifiedName_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEntrySource()); } 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.Entry)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Entry other = (com.google.cloud.dataplex.v1.Entry) obj; if (!getName().equals(other.getName())) return false; if (!getEntryType().equals(other.getEntryType())) 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 (!internalGetAspects().equals(other.internalGetAspects())) return false; if (!getParentEntry().equals(other.getParentEntry())) return false; if (!getFullyQualifiedName().equals(other.getFullyQualifiedName())) return false; if (hasEntrySource() != other.hasEntrySource()) return false; if (hasEntrySource()) { if (!getEntrySource().equals(other.getEntrySource())) 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) + ENTRY_TYPE_FIELD_NUMBER; hash = (53 * hash) + getEntryType().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } if (!internalGetAspects().getMap().isEmpty()) { hash = (37 * hash) + ASPECTS_FIELD_NUMBER; hash = (53 * hash) + internalGetAspects().hashCode(); } hash = (37 * hash) + PARENT_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getParentEntry().hashCode(); hash = (37 * hash) + FULLY_QUALIFIED_NAME_FIELD_NUMBER; hash = (53 * hash) + getFullyQualifiedName().hashCode(); if (hasEntrySource()) { hash = (37 * hash) + ENTRY_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getEntrySource().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Entry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entry 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.Entry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entry 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.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Entry 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.Entry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entry 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.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Entry 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.Entry 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.Entry 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.Entry 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; } /** * * *
   * An entry is a representation of a data asset which can be described by
   * various metadata.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Entry) com.google.cloud.dataplex.v1.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_Entry_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetAspects(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 9: return internalGetMutableAspects(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Entry.class, com.google.cloud.dataplex.v1.Entry.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Entry.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(); getEntrySourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; entryType_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableAspects().clear(); parentEntry_ = ""; fullyQualifiedName_ = ""; entrySource_ = null; if (entrySourceBuilder_ != null) { entrySourceBuilder_.dispose(); entrySourceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_Entry_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Entry getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Entry.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Entry build() { com.google.cloud.dataplex.v1.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Entry buildPartial() { com.google.cloud.dataplex.v1.Entry result = new com.google.cloud.dataplex.v1.Entry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.entryType_ = entryType_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.aspects_ = internalGetAspects().build(AspectsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000020) != 0)) { result.parentEntry_ = parentEntry_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.fullyQualifiedName_ = fullyQualifiedName_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.entrySource_ = entrySourceBuilder_ == null ? entrySource_ : entrySourceBuilder_.build(); to_bitField0_ |= 0x00000004; } 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.Entry) { return mergeFrom((com.google.cloud.dataplex.v1.Entry) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Entry other) { if (other == com.google.cloud.dataplex.v1.Entry.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getEntryType().isEmpty()) { entryType_ = other.entryType_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableAspects().mergeFrom(other.internalGetAspects()); bitField0_ |= 0x00000010; if (!other.getParentEntry().isEmpty()) { parentEntry_ = other.parentEntry_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getFullyQualifiedName().isEmpty()) { fullyQualifiedName_ = other.fullyQualifiedName_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasEntrySource()) { mergeEntrySource(other.getEntrySource()); } 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 34: { entryType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 34 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 42 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 50 case 74: { com.google.protobuf.MapEntry aspects__ = input.readMessage( AspectsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAspects() .ensureBuilderMap() .put(aspects__.getKey(), aspects__.getValue()); bitField0_ |= 0x00000010; break; } // case 74 case 82: { parentEntry_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 82 case 98: { fullyQualifiedName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 98 case 122: { input.readMessage(getEntrySourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 122 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_ = ""; /** * * *
     * Identifier. The relative resource name of the Entry, of the form:
     * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @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; } } /** * * *
     * Identifier. The relative resource name of the Entry, of the form:
     * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @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; } } /** * * *
     * Identifier. The relative resource name of the Entry, of the form:
     * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @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; } /** * * *
     * Identifier. The relative resource name of the Entry, of the form:
     * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Identifier. The relative resource name of the Entry, of the form:
     * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @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 entryType_ = ""; /** * * *
     * Required. Immutable. The resource name of the EntryType used to create this
     * Entry.
     * 
* * * string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The entryType. */ public java.lang.String getEntryType() { java.lang.Object ref = entryType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryType_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Immutable. The resource name of the EntryType used to create this
     * Entry.
     * 
* * * string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for entryType. */ public com.google.protobuf.ByteString getEntryTypeBytes() { java.lang.Object ref = entryType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Immutable. The resource name of the EntryType used to create this
     * Entry.
     * 
* * * string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The entryType to set. * @return This builder for chaining. */ public Builder setEntryType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } entryType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. Immutable. The resource name of the EntryType used to create this
     * Entry.
     * 
* * * string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearEntryType() { entryType_ = getDefaultInstance().getEntryType(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Required. Immutable. The resource name of the EntryType used to create this
     * Entry.
     * 
* * * string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The bytes for entryType to set. * @return This builder for chaining. */ public Builder setEntryTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entryType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. The time when the Entry 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_ & 0x00000004) != 0); } /** * * *
     * Output only. The time when the Entry 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 Entry 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_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The time when the Entry 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_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The time when the Entry 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_ & 0x00000004) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The time when the Entry was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the Entry was created.
     * 
* * * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the Entry 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 Entry 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 Entry 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_ & 0x00000008) != 0); } /** * * *
     * Output only. The time when the Entry 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 Entry 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_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the Entry 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_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the Entry 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_ & 0x00000008) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. The time when the Entry was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the Entry was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the Entry 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 Entry 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 static final class AspectsConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, com.google.cloud.dataplex.v1.AspectOrBuilder, com.google.cloud.dataplex.v1.Aspect> { @java.lang.Override public com.google.cloud.dataplex.v1.Aspect build( com.google.cloud.dataplex.v1.AspectOrBuilder val) { if (val instanceof com.google.cloud.dataplex.v1.Aspect) { return (com.google.cloud.dataplex.v1.Aspect) val; } return ((com.google.cloud.dataplex.v1.Aspect.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return AspectsDefaultEntryHolder.defaultEntry; } }; private static final AspectsConverter aspectsConverter = new AspectsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dataplex.v1.AspectOrBuilder, com.google.cloud.dataplex.v1.Aspect, com.google.cloud.dataplex.v1.Aspect.Builder> aspects_; private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dataplex.v1.AspectOrBuilder, com.google.cloud.dataplex.v1.Aspect, com.google.cloud.dataplex.v1.Aspect.Builder> internalGetAspects() { if (aspects_ == null) { return new com.google.protobuf.MapFieldBuilder<>(aspectsConverter); } return aspects_; } private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dataplex.v1.AspectOrBuilder, com.google.cloud.dataplex.v1.Aspect, com.google.cloud.dataplex.v1.Aspect.Builder> internalGetMutableAspects() { if (aspects_ == null) { aspects_ = new com.google.protobuf.MapFieldBuilder<>(aspectsConverter); } bitField0_ |= 0x00000010; onChanged(); return aspects_; } public int getAspectsCount() { return internalGetAspects().ensureBuilderMap().size(); } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public boolean containsAspects(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAspects().ensureBuilderMap().containsKey(key); } /** Use {@link #getAspectsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAspects() { return getAspectsMap(); } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.Map getAspectsMap() { return internalGetAspects().getImmutableMap(); } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public /* nullable */ com.google.cloud.dataplex.v1.Aspect getAspectsOrDefault( java.lang.String key, /* nullable */ com.google.cloud.dataplex.v1.Aspect defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableAspects().ensureBuilderMap(); return map.containsKey(key) ? aspectsConverter.build(map.get(key)) : defaultValue; } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Aspect getAspectsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableAspects().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return aspectsConverter.build(map.get(key)); } public Builder clearAspects() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAspects().clear(); return this; } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeAspects(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAspects().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAspects() { bitField0_ |= 0x00000010; return internalGetMutableAspects().ensureMessageMap(); } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putAspects(java.lang.String key, com.google.cloud.dataplex.v1.Aspect value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAspects().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putAllAspects( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableAspects().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000010; return this; } /** * * *
     * Optional. The Aspects attached to the Entry.
     * The format for the key can be one of the following:
     * 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
     * directly to the entry)
     * 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
     * attached to an entry's path)
     * 
* * * map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.Aspect.Builder putAspectsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableAspects().ensureBuilderMap(); com.google.cloud.dataplex.v1.AspectOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.cloud.dataplex.v1.Aspect.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.cloud.dataplex.v1.Aspect) { entry = ((com.google.cloud.dataplex.v1.Aspect) entry).toBuilder(); builderMap.put(key, entry); } return (com.google.cloud.dataplex.v1.Aspect.Builder) entry; } private java.lang.Object parentEntry_ = ""; /** * * *
     * Optional. Immutable. The resource name of the parent entry.
     * 
* * * string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The parentEntry. */ public java.lang.String getParentEntry() { java.lang.Object ref = parentEntry_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentEntry_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Immutable. The resource name of the parent entry.
     * 
* * * string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for parentEntry. */ public com.google.protobuf.ByteString getParentEntryBytes() { java.lang.Object ref = parentEntry_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentEntry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Immutable. The resource name of the parent entry.
     * 
* * * string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The parentEntry to set. * @return This builder for chaining. */ public Builder setParentEntry(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parentEntry_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. Immutable. The resource name of the parent entry.
     * 
* * * string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearParentEntry() { parentEntry_ = getDefaultInstance().getParentEntry(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Optional. Immutable. The resource name of the parent entry.
     * 
* * * string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The bytes for parentEntry to set. * @return This builder for chaining. */ public Builder setParentEntryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentEntry_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object fullyQualifiedName_ = ""; /** * * *
     * Optional. A name for the entry that can reference it in an external system.
     * The maximum size of the field is 4000 characters.
     * 
* * string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The fullyQualifiedName. */ public java.lang.String getFullyQualifiedName() { java.lang.Object ref = fullyQualifiedName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullyQualifiedName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. A name for the entry that can reference it in an external system.
     * The maximum size of the field is 4000 characters.
     * 
* * string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for fullyQualifiedName. */ public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { java.lang.Object ref = fullyQualifiedName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullyQualifiedName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. A name for the entry that can reference it in an external system.
     * The maximum size of the field is 4000 characters.
     * 
* * string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The fullyQualifiedName to set. * @return This builder for chaining. */ public Builder setFullyQualifiedName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } fullyQualifiedName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Optional. A name for the entry that can reference it in an external system.
     * The maximum size of the field is 4000 characters.
     * 
* * string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearFullyQualifiedName() { fullyQualifiedName_ = getDefaultInstance().getFullyQualifiedName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Optional. A name for the entry that can reference it in an external system.
     * The maximum size of the field is 4000 characters.
     * 
* * string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for fullyQualifiedName to set. * @return This builder for chaining. */ public Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fullyQualifiedName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.cloud.dataplex.v1.EntrySource entrySource_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.EntrySource, com.google.cloud.dataplex.v1.EntrySource.Builder, com.google.cloud.dataplex.v1.EntrySourceOrBuilder> entrySourceBuilder_; /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the entrySource field is set. */ public boolean hasEntrySource() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The entrySource. */ public com.google.cloud.dataplex.v1.EntrySource getEntrySource() { if (entrySourceBuilder_ == null) { return entrySource_ == null ? com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance() : entrySource_; } else { return entrySourceBuilder_.getMessage(); } } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setEntrySource(com.google.cloud.dataplex.v1.EntrySource value) { if (entrySourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entrySource_ = value; } else { entrySourceBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setEntrySource( com.google.cloud.dataplex.v1.EntrySource.Builder builderForValue) { if (entrySourceBuilder_ == null) { entrySource_ = builderForValue.build(); } else { entrySourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeEntrySource(com.google.cloud.dataplex.v1.EntrySource value) { if (entrySourceBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && entrySource_ != null && entrySource_ != com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance()) { getEntrySourceBuilder().mergeFrom(value); } else { entrySource_ = value; } } else { entrySourceBuilder_.mergeFrom(value); } if (entrySource_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearEntrySource() { bitField0_ = (bitField0_ & ~0x00000080); entrySource_ = null; if (entrySourceBuilder_ != null) { entrySourceBuilder_.dispose(); entrySourceBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.EntrySource.Builder getEntrySourceBuilder() { bitField0_ |= 0x00000080; onChanged(); return getEntrySourceFieldBuilder().getBuilder(); } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.EntrySourceOrBuilder getEntrySourceOrBuilder() { if (entrySourceBuilder_ != null) { return entrySourceBuilder_.getMessageOrBuilder(); } else { return entrySource_ == null ? com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance() : entrySource_; } } /** * * *
     * Optional. Source system related information for an entry.
     * 
* * * .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.EntrySource, com.google.cloud.dataplex.v1.EntrySource.Builder, com.google.cloud.dataplex.v1.EntrySourceOrBuilder> getEntrySourceFieldBuilder() { if (entrySourceBuilder_ == null) { entrySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.EntrySource, com.google.cloud.dataplex.v1.EntrySource.Builder, com.google.cloud.dataplex.v1.EntrySourceOrBuilder>( getEntrySource(), getParentForChildren(), isClean()); entrySource_ = null; } return entrySourceBuilder_; } @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.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Entry) private static final com.google.cloud.dataplex.v1.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Entry(); } public static com.google.cloud.dataplex.v1.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entry 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.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy