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

com.google.cloud.dataplex.v1.EntrySource 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.3
package com.google.cloud.dataplex.v1;

/**
 *
 *
 * 
 * EntrySource contains source system related information for the
 * entry.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.EntrySource} */ public final class EntrySource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.EntrySource) EntrySourceOrBuilder { private static final long serialVersionUID = 0L; // Use EntrySource.newBuilder() to construct. private EntrySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EntrySource() { resource_ = ""; system_ = ""; platform_ = ""; displayName_ = ""; description_ = ""; ancestors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EntrySource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 7: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.EntrySource.class, com.google.cloud.dataplex.v1.EntrySource.Builder.class); } public interface AncestorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.EntrySource.Ancestor) com.google.protobuf.MessageOrBuilder { /** * * *
     * Optional. The name of the ancestor resource.
     * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ java.lang.String getName(); /** * * *
     * Optional. The name of the ancestor resource.
     * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Optional. The type of the ancestor resource.
     * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The type. */ java.lang.String getType(); /** * * *
     * Optional. The type of the ancestor resource.
     * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); } /** * * *
   * Ancestor contains information about individual items in the hierarchy of
   * an Entry.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.EntrySource.Ancestor} */ public static final class Ancestor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.EntrySource.Ancestor) AncestorOrBuilder { private static final long serialVersionUID = 0L; // Use Ancestor.newBuilder() to construct. private Ancestor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Ancestor() { name_ = ""; type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Ancestor(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_Ancestor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_Ancestor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.EntrySource.Ancestor.class, com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
     * Optional. The name of the ancestor resource.
     * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @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; } } /** * * *
     * Optional. The name of the ancestor resource.
     * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @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 TYPE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * * *
     * Optional. The type of the ancestor resource.
     * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** * * *
     * Optional. The type of the ancestor resource.
     * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } 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(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } 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.EntrySource.Ancestor)) { return super.equals(obj); } com.google.cloud.dataplex.v1.EntrySource.Ancestor other = (com.google.cloud.dataplex.v1.EntrySource.Ancestor) obj; if (!getName().equals(other.getName())) return false; if (!getType().equals(other.getType())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.EntrySource.Ancestor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.EntrySource.Ancestor 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.EntrySource.Ancestor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.EntrySource.Ancestor 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.EntrySource.Ancestor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.EntrySource.Ancestor 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.EntrySource.Ancestor parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.EntrySource.Ancestor 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.EntrySource.Ancestor parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.EntrySource.Ancestor 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.EntrySource.Ancestor 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.EntrySource.Ancestor 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.EntrySource.Ancestor 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; } /** * * *
     * Ancestor contains information about individual items in the hierarchy of
     * an Entry.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.EntrySource.Ancestor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.EntrySource.Ancestor) com.google.cloud.dataplex.v1.EntrySource.AncestorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_Ancestor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_Ancestor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.EntrySource.Ancestor.class, com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder.class); } // Construct using com.google.cloud.dataplex.v1.EntrySource.Ancestor.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; type_ = ""; 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_EntrySource_Ancestor_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource.Ancestor getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.EntrySource.Ancestor.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource.Ancestor build() { com.google.cloud.dataplex.v1.EntrySource.Ancestor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource.Ancestor buildPartial() { com.google.cloud.dataplex.v1.EntrySource.Ancestor result = new com.google.cloud.dataplex.v1.EntrySource.Ancestor(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.EntrySource.Ancestor result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } } @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.EntrySource.Ancestor) { return mergeFrom((com.google.cloud.dataplex.v1.EntrySource.Ancestor) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.EntrySource.Ancestor other) { if (other == com.google.cloud.dataplex.v1.EntrySource.Ancestor.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; 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 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { type_ = 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 java.lang.Object name_ = ""; /** * * *
       * Optional. The name of the ancestor resource.
       * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @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; } } /** * * *
       * Optional. The name of the ancestor resource.
       * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @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; } } /** * * *
       * Optional. The name of the ancestor resource.
       * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @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; } /** * * *
       * Optional. The name of the ancestor resource.
       * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Optional. The name of the ancestor resource.
       * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @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 type_ = ""; /** * * *
       * Optional. The type of the ancestor resource.
       * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional. The type of the ancestor resource.
       * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional. The type of the ancestor resource.
       * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Optional. The type of the ancestor resource.
       * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Optional. The type of the ancestor resource.
       * 
* * string type = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = 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.EntrySource.Ancestor) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.EntrySource.Ancestor) private static final com.google.cloud.dataplex.v1.EntrySource.Ancestor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.EntrySource.Ancestor(); } public static com.google.cloud.dataplex.v1.EntrySource.Ancestor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Ancestor 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.EntrySource.Ancestor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** * * *
   * The name of the resource in the source system.
   * The maximum size of the field is 4000 characters.
   * 
* * string resource = 1; * * @return The resource. */ @java.lang.Override public java.lang.String getResource() { java.lang.Object ref = resource_; 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(); resource_ = s; return s; } } /** * * *
   * The name of the resource in the source system.
   * The maximum size of the field is 4000 characters.
   * 
* * string resource = 1; * * @return The bytes for resource. */ @java.lang.Override public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYSTEM_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object system_ = ""; /** * * *
   * The name of the source system.
   * The maximum size of the field is 64 characters.
   * 
* * string system = 2; * * @return The system. */ @java.lang.Override public java.lang.String getSystem() { java.lang.Object ref = system_; 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(); system_ = s; return s; } } /** * * *
   * The name of the source system.
   * The maximum size of the field is 64 characters.
   * 
* * string system = 2; * * @return The bytes for system. */ @java.lang.Override public com.google.protobuf.ByteString getSystemBytes() { java.lang.Object ref = system_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); system_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLATFORM_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object platform_ = ""; /** * * *
   * The platform containing the source system.
   * The maximum size of the field is 64 characters.
   * 
* * string platform = 3; * * @return The platform. */ @java.lang.Override public java.lang.String getPlatform() { java.lang.Object ref = platform_; 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(); platform_ = s; return s; } } /** * * *
   * The platform containing the source system.
   * The maximum size of the field is 64 characters.
   * 
* * string platform = 3; * * @return The bytes for platform. */ @java.lang.Override public com.google.protobuf.ByteString getPlatformBytes() { java.lang.Object ref = platform_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); platform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
   * User friendly display name.
   * The maximum size of the field is 500 characters.
   * 
* * string display_name = 5; * * @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; } } /** * * *
   * User friendly display name.
   * The maximum size of the field is 500 characters.
   * 
* * string display_name = 5; * * @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 = 6; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Description of the Entry.
   * The maximum size of the field is 2000 characters.
   * 
* * string description = 6; * * @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; } } /** * * *
   * Description of the Entry.
   * The maximum size of the field is 2000 characters.
   * 
* * string description = 6; * * @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 LABELS_FIELD_NUMBER = 7; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * User-defined labels.
   * The maximum size of keys and values is 128 characters each.
   * 
* * map<string, string> labels = 7; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * User-defined labels.
   * The maximum size of keys and values is 128 characters each.
   * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * User-defined labels.
   * The maximum size of keys and values is 128 characters each.
   * 
* * map<string, string> labels = 7; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * User-defined labels.
   * The maximum size of keys and values is 128 characters each.
   * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ANCESTORS_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List ancestors_; /** * * *
   * Immutable. The ancestors of the Entry in the source system.
   * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override public java.util.List getAncestorsList() { return ancestors_; } /** * * *
   * Immutable. The ancestors of the Entry in the source system.
   * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override public java.util.List getAncestorsOrBuilderList() { return ancestors_; } /** * * *
   * Immutable. The ancestors of the Entry in the source system.
   * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override public int getAncestorsCount() { return ancestors_.size(); } /** * * *
   * Immutable. The ancestors of the Entry in the source system.
   * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource.Ancestor getAncestors(int index) { return ancestors_.get(index); } /** * * *
   * Immutable. The ancestors of the Entry in the source system.
   * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource.AncestorOrBuilder getAncestorsOrBuilder( int index) { return ancestors_.get(index); } public static final int CREATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp createTime_; /** * * *
   * The create time of the resource in the source system.
   * 
* * .google.protobuf.Timestamp create_time = 10; * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The create time of the resource in the source system.
   * 
* * .google.protobuf.Timestamp create_time = 10; * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * The create time of the resource in the source system.
   * 
* * .google.protobuf.Timestamp create_time = 10; */ @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 = 11; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * The update time of the resource in the source system.
   * 
* * .google.protobuf.Timestamp update_time = 11; * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The update time of the resource in the source system.
   * 
* * .google.protobuf.Timestamp update_time = 11; * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * The update time of the resource in the source system.
   * 
* * .google.protobuf.Timestamp update_time = 11; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } 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(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(system_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, system_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, platform_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); for (int i = 0; i < ancestors_.size(); i++) { output.writeMessage(9, ancestors_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(10, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getUpdateTime()); } 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(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(system_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, system_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, platform_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } for (int i = 0; i < ancestors_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, ancestors_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); } 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.EntrySource)) { return super.equals(obj); } com.google.cloud.dataplex.v1.EntrySource other = (com.google.cloud.dataplex.v1.EntrySource) obj; if (!getResource().equals(other.getResource())) return false; if (!getSystem().equals(other.getSystem())) return false; if (!getPlatform().equals(other.getPlatform())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getAncestorsList().equals(other.getAncestorsList())) 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 (!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) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); hash = (37 * hash) + SYSTEM_FIELD_NUMBER; hash = (53 * hash) + getSystem().hashCode(); hash = (37 * hash) + PLATFORM_FIELD_NUMBER; hash = (53 * hash) + getPlatform().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 (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (getAncestorsCount() > 0) { hash = (37 * hash) + ANCESTORS_FIELD_NUMBER; hash = (53 * hash) + getAncestorsList().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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.EntrySource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource 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.EntrySource 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.EntrySource 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; } /** * * *
   * EntrySource contains source system related information for the
   * entry.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.EntrySource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.EntrySource) com.google.cloud.dataplex.v1.EntrySourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 7: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 7: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.CatalogProto .internal_static_google_cloud_dataplex_v1_EntrySource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.EntrySource.class, com.google.cloud.dataplex.v1.EntrySource.Builder.class); } // Construct using com.google.cloud.dataplex.v1.EntrySource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAncestorsFieldBuilder(); getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resource_ = ""; system_ = ""; platform_ = ""; displayName_ = ""; description_ = ""; internalGetMutableLabels().clear(); if (ancestorsBuilder_ == null) { ancestors_ = java.util.Collections.emptyList(); } else { ancestors_ = null; ancestorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = 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_EntrySource_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource build() { com.google.cloud.dataplex.v1.EntrySource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.EntrySource buildPartial() { com.google.cloud.dataplex.v1.EntrySource result = new com.google.cloud.dataplex.v1.EntrySource(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.dataplex.v1.EntrySource result) { if (ancestorsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { ancestors_ = java.util.Collections.unmodifiableList(ancestors_); bitField0_ = (bitField0_ & ~0x00000040); } result.ancestors_ = ancestors_; } else { result.ancestors_ = ancestorsBuilder_.build(); } } private void buildPartial0(com.google.cloud.dataplex.v1.EntrySource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resource_ = resource_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.system_ = system_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.platform_ = platform_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.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.EntrySource) { return mergeFrom((com.google.cloud.dataplex.v1.EntrySource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.EntrySource other) { if (other == com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getSystem().isEmpty()) { system_ = other.system_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getPlatform().isEmpty()) { platform_ = other.platform_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000010; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000020; if (ancestorsBuilder_ == null) { if (!other.ancestors_.isEmpty()) { if (ancestors_.isEmpty()) { ancestors_ = other.ancestors_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAncestorsIsMutable(); ancestors_.addAll(other.ancestors_); } onChanged(); } } else { if (!other.ancestors_.isEmpty()) { if (ancestorsBuilder_.isEmpty()) { ancestorsBuilder_.dispose(); ancestorsBuilder_ = null; ancestors_ = other.ancestors_; bitField0_ = (bitField0_ & ~0x00000040); ancestorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAncestorsFieldBuilder() : null; } else { ancestorsBuilder_.addAllMessages(other.ancestors_); } } } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } 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: { resource_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { system_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { platform_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 42: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 50 case 58: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000020; break; } // case 58 case 74: { com.google.cloud.dataplex.v1.EntrySource.Ancestor m = input.readMessage( com.google.cloud.dataplex.v1.EntrySource.Ancestor.parser(), extensionRegistry); if (ancestorsBuilder_ == null) { ensureAncestorsIsMutable(); ancestors_.add(m); } else { ancestorsBuilder_.addMessage(m); } break; } // case 74 case 82: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 82 case 90: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 90 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 resource_ = ""; /** * * *
     * The name of the resource in the source system.
     * The maximum size of the field is 4000 characters.
     * 
* * string resource = 1; * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the resource in the source system.
     * The maximum size of the field is 4000 characters.
     * 
* * string resource = 1; * * @return The bytes for resource. */ public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the resource in the source system.
     * The maximum size of the field is 4000 characters.
     * 
* * string resource = 1; * * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The name of the resource in the source system.
     * The maximum size of the field is 4000 characters.
     * 
* * string resource = 1; * * @return This builder for chaining. */ public Builder clearResource() { resource_ = getDefaultInstance().getResource(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The name of the resource in the source system.
     * The maximum size of the field is 4000 characters.
     * 
* * string resource = 1; * * @param value The bytes for resource to set. * @return This builder for chaining. */ public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object system_ = ""; /** * * *
     * The name of the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string system = 2; * * @return The system. */ public java.lang.String getSystem() { java.lang.Object ref = system_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); system_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string system = 2; * * @return The bytes for system. */ public com.google.protobuf.ByteString getSystemBytes() { java.lang.Object ref = system_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); system_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string system = 2; * * @param value The system to set. * @return This builder for chaining. */ public Builder setSystem(java.lang.String value) { if (value == null) { throw new NullPointerException(); } system_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The name of the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string system = 2; * * @return This builder for chaining. */ public Builder clearSystem() { system_ = getDefaultInstance().getSystem(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The name of the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string system = 2; * * @param value The bytes for system to set. * @return This builder for chaining. */ public Builder setSystemBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); system_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object platform_ = ""; /** * * *
     * The platform containing the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string platform = 3; * * @return The platform. */ public java.lang.String getPlatform() { java.lang.Object ref = platform_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); platform_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The platform containing the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string platform = 3; * * @return The bytes for platform. */ public com.google.protobuf.ByteString getPlatformBytes() { java.lang.Object ref = platform_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); platform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The platform containing the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string platform = 3; * * @param value The platform to set. * @return This builder for chaining. */ public Builder setPlatform(java.lang.String value) { if (value == null) { throw new NullPointerException(); } platform_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The platform containing the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string platform = 3; * * @return This builder for chaining. */ public Builder clearPlatform() { platform_ = getDefaultInstance().getPlatform(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The platform containing the source system.
     * The maximum size of the field is 64 characters.
     * 
* * string platform = 3; * * @param value The bytes for platform to set. * @return This builder for chaining. */ public Builder setPlatformBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); platform_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
     * User friendly display name.
     * The maximum size of the field is 500 characters.
     * 
* * string display_name = 5; * * @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; } } /** * * *
     * User friendly display name.
     * The maximum size of the field is 500 characters.
     * 
* * string display_name = 5; * * @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; } } /** * * *
     * User friendly display name.
     * The maximum size of the field is 500 characters.
     * 
* * string display_name = 5; * * @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_ |= 0x00000008; onChanged(); return this; } /** * * *
     * User friendly display name.
     * The maximum size of the field is 500 characters.
     * 
* * string display_name = 5; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * User friendly display name.
     * The maximum size of the field is 500 characters.
     * 
* * string display_name = 5; * * @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_ |= 0x00000008; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * Description of the Entry.
     * The maximum size of the field is 2000 characters.
     * 
* * string description = 6; * * @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; } } /** * * *
     * Description of the Entry.
     * The maximum size of the field is 2000 characters.
     * 
* * string description = 6; * * @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; } } /** * * *
     * Description of the Entry.
     * The maximum size of the field is 2000 characters.
     * 
* * string description = 6; * * @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_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Description of the Entry.
     * The maximum size of the field is 2000 characters.
     * 
* * string description = 6; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * Description of the Entry.
     * The maximum size of the field is 2000 characters.
     * 
* * string description = 6; * * @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_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000020; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * User-defined labels.
     * The maximum size of keys and values is 128 characters each.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * User-defined labels.
     * The maximum size of keys and values is 128 characters each.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * User-defined labels.
     * The maximum size of keys and values is 128 characters each.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * User-defined labels.
     * The maximum size of keys and values is 128 characters each.
     * 
* * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * User-defined labels.
     * The maximum size of keys and values is 128 characters each.
     * 
* * map<string, string> labels = 7; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * User-defined labels.
     * The maximum size of keys and values is 128 characters each.
     * 
* * map<string, string> labels = 7; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000020; return this; } /** * * *
     * User-defined labels.
     * The maximum size of keys and values is 128 characters each.
     * 
* * map<string, string> labels = 7; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000020; return this; } private java.util.List ancestors_ = java.util.Collections.emptyList(); private void ensureAncestorsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { ancestors_ = new java.util.ArrayList(ancestors_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dataplex.v1.EntrySource.Ancestor, com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder, com.google.cloud.dataplex.v1.EntrySource.AncestorOrBuilder> ancestorsBuilder_; /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public java.util.List getAncestorsList() { if (ancestorsBuilder_ == null) { return java.util.Collections.unmodifiableList(ancestors_); } else { return ancestorsBuilder_.getMessageList(); } } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public int getAncestorsCount() { if (ancestorsBuilder_ == null) { return ancestors_.size(); } else { return ancestorsBuilder_.getCount(); } } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public com.google.cloud.dataplex.v1.EntrySource.Ancestor getAncestors(int index) { if (ancestorsBuilder_ == null) { return ancestors_.get(index); } else { return ancestorsBuilder_.getMessage(index); } } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder setAncestors( int index, com.google.cloud.dataplex.v1.EntrySource.Ancestor value) { if (ancestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); } else { ancestorsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder setAncestors( int index, com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder builderForValue) { if (ancestorsBuilder_ == null) { ensureAncestorsIsMutable(); ancestors_.set(index, builderForValue.build()); onChanged(); } else { ancestorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder addAncestors(com.google.cloud.dataplex.v1.EntrySource.Ancestor value) { if (ancestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); } else { ancestorsBuilder_.addMessage(value); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder addAncestors( int index, com.google.cloud.dataplex.v1.EntrySource.Ancestor value) { if (ancestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAncestorsIsMutable(); ancestors_.add(index, value); onChanged(); } else { ancestorsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder addAncestors( com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder builderForValue) { if (ancestorsBuilder_ == null) { ensureAncestorsIsMutable(); ancestors_.add(builderForValue.build()); onChanged(); } else { ancestorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder addAncestors( int index, com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder builderForValue) { if (ancestorsBuilder_ == null) { ensureAncestorsIsMutable(); ancestors_.add(index, builderForValue.build()); onChanged(); } else { ancestorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder addAllAncestors( java.lang.Iterable values) { if (ancestorsBuilder_ == null) { ensureAncestorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); onChanged(); } else { ancestorsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder clearAncestors() { if (ancestorsBuilder_ == null) { ancestors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { ancestorsBuilder_.clear(); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public Builder removeAncestors(int index) { if (ancestorsBuilder_ == null) { ensureAncestorsIsMutable(); ancestors_.remove(index); onChanged(); } else { ancestorsBuilder_.remove(index); } return this; } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder getAncestorsBuilder( int index) { return getAncestorsFieldBuilder().getBuilder(index); } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public com.google.cloud.dataplex.v1.EntrySource.AncestorOrBuilder getAncestorsOrBuilder( int index) { if (ancestorsBuilder_ == null) { return ancestors_.get(index); } else { return ancestorsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public java.util.List getAncestorsOrBuilderList() { if (ancestorsBuilder_ != null) { return ancestorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ancestors_); } } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder addAncestorsBuilder() { return getAncestorsFieldBuilder() .addBuilder(com.google.cloud.dataplex.v1.EntrySource.Ancestor.getDefaultInstance()); } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder addAncestorsBuilder( int index) { return getAncestorsFieldBuilder() .addBuilder( index, com.google.cloud.dataplex.v1.EntrySource.Ancestor.getDefaultInstance()); } /** * * *
     * Immutable. The ancestors of the Entry in the source system.
     * 
* * * repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; * */ public java.util.List getAncestorsBuilderList() { return getAncestorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dataplex.v1.EntrySource.Ancestor, com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder, com.google.cloud.dataplex.v1.EntrySource.AncestorOrBuilder> getAncestorsFieldBuilder() { if (ancestorsBuilder_ == null) { ancestorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dataplex.v1.EntrySource.Ancestor, com.google.cloud.dataplex.v1.EntrySource.Ancestor.Builder, com.google.cloud.dataplex.v1.EntrySource.AncestorOrBuilder>( ancestors_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); ancestors_ = null; } return ancestorsBuilder_; } 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_; /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; * * @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(); } } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000080); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * The create time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp create_time = 10; */ 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_; /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; * * @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(); } } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000100); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * The update time of the resource in the source system.
     * 
* * .google.protobuf.Timestamp update_time = 11; */ 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_; } @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.EntrySource) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.EntrySource) private static final com.google.cloud.dataplex.v1.EntrySource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.EntrySource(); } public static com.google.cloud.dataplex.v1.EntrySource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EntrySource 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.EntrySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy