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

com.google.cloud.bigquery.migration.v2.ObjectNameMapping Maven / Gradle / Ivy

/*
 * Copyright 2020 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/bigquery/migration/v2/translation_config.proto

package com.google.cloud.bigquery.migration.v2;

/**
 *
 *
 * 
 * Represents a key-value pair of NameMappingKey to NameMappingValue to
 * represent the mapping of SQL names from the input value to desired output.
 * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ObjectNameMapping} */ public final class ObjectNameMapping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.ObjectNameMapping) ObjectNameMappingOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectNameMapping.newBuilder() to construct. private ObjectNameMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectNameMapping() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectNameMapping(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.bigquery.migration.v2.TranslationConfigProto .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.migration.v2.TranslationConfigProto .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.bigquery.migration.v2.ObjectNameMapping.class, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.cloud.bigquery.migration.v2.NameMappingKey source_; /** * * *
   * The name of the object in source that is being mapped.
   * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; * * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return source_ != null; } /** * * *
   * The name of the object in source that is being mapped.
   * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; * * @return The source. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingKey getSource() { return source_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; } /** * * *
   * The name of the object in source that is being mapped.
   * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder getSourceOrBuilder() { return source_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; } public static final int TARGET_FIELD_NUMBER = 2; private com.google.cloud.bigquery.migration.v2.NameMappingValue target_; /** * * *
   * The desired target name of the object that is being mapped.
   * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; * * @return Whether the target field is set. */ @java.lang.Override public boolean hasTarget() { return target_ != null; } /** * * *
   * The desired target name of the object that is being mapped.
   * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; * * @return The target. */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingValue getTarget() { return target_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; } /** * * *
   * The desired target name of the object that is being mapped.
   * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ @java.lang.Override public com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder getTargetOrBuilder() { return target_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; } 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 (source_ != null) { output.writeMessage(1, getSource()); } if (target_ != null) { output.writeMessage(2, getTarget()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (source_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTarget()); } 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.bigquery.migration.v2.ObjectNameMapping)) { return super.equals(obj); } com.google.cloud.bigquery.migration.v2.ObjectNameMapping other = (com.google.cloud.bigquery.migration.v2.ObjectNameMapping) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource().equals(other.getSource())) return false; } if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { if (!getTarget().equals(other.getTarget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping 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.bigquery.migration.v2.ObjectNameMapping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping 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.bigquery.migration.v2.ObjectNameMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping 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.bigquery.migration.v2.ObjectNameMapping parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping 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.bigquery.migration.v2.ObjectNameMapping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping 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.bigquery.migration.v2.ObjectNameMapping prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Represents a key-value pair of NameMappingKey to NameMappingValue to
   * represent the mapping of SQL names from the input value to desired output.
   * 
* * Protobuf type {@code google.cloud.bigquery.migration.v2.ObjectNameMapping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.migration.v2.ObjectNameMapping) com.google.cloud.bigquery.migration.v2.ObjectNameMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.bigquery.migration.v2.TranslationConfigProto .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.migration.v2.TranslationConfigProto .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.bigquery.migration.v2.ObjectNameMapping.class, com.google.cloud.bigquery.migration.v2.ObjectNameMapping.Builder.class); } // Construct using com.google.cloud.bigquery.migration.v2.ObjectNameMapping.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } target_ = null; if (targetBuilder_ != null) { targetBuilder_.dispose(); targetBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.migration.v2.TranslationConfigProto .internal_static_google_cloud_bigquery_migration_v2_ObjectNameMapping_descriptor; } @java.lang.Override public com.google.cloud.bigquery.migration.v2.ObjectNameMapping getDefaultInstanceForType() { return com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.migration.v2.ObjectNameMapping build() { com.google.cloud.bigquery.migration.v2.ObjectNameMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.bigquery.migration.v2.ObjectNameMapping buildPartial() { com.google.cloud.bigquery.migration.v2.ObjectNameMapping result = new com.google.cloud.bigquery.migration.v2.ObjectNameMapping(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.bigquery.migration.v2.ObjectNameMapping result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.migration.v2.ObjectNameMapping) { return mergeFrom((com.google.cloud.bigquery.migration.v2.ObjectNameMapping) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.bigquery.migration.v2.ObjectNameMapping other) { if (other == com.google.cloud.bigquery.migration.v2.ObjectNameMapping.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.cloud.bigquery.migration.v2.NameMappingKey source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.migration.v2.NameMappingKey, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder> sourceBuilder_; /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; * * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; * * @return The source. */ public com.google.cloud.bigquery.migration.v2.NameMappingKey getSource() { if (sourceBuilder_ == null) { return source_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ public Builder setSource(com.google.cloud.bigquery.migration.v2.NameMappingKey value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ public Builder setSource( com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ public Builder mergeSource(com.google.cloud.bigquery.migration.v2.NameMappingKey value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && source_ != null && source_ != com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance()) { getSourceBuilder().mergeFrom(value); } else { source_ = value; } } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000001); source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } onChanged(); return this; } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ public com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder getSourceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ public com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingKey.getDefaultInstance() : source_; } } /** * * *
     * The name of the object in source that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.migration.v2.NameMappingKey, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.migration.v2.NameMappingKey, com.google.cloud.bigquery.migration.v2.NameMappingKey.Builder, com.google.cloud.bigquery.migration.v2.NameMappingKeyOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private com.google.cloud.bigquery.migration.v2.NameMappingValue target_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.migration.v2.NameMappingValue, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder> targetBuilder_; /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; * * @return Whether the target field is set. */ public boolean hasTarget() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; * * @return The target. */ public com.google.cloud.bigquery.migration.v2.NameMappingValue getTarget() { if (targetBuilder_ == null) { return target_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ public Builder setTarget(com.google.cloud.bigquery.migration.v2.NameMappingValue value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; } else { targetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ public Builder setTarget( com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); } else { targetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ public Builder mergeTarget(com.google.cloud.bigquery.migration.v2.NameMappingValue value) { if (targetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && target_ != null && target_ != com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance()) { getTargetBuilder().mergeFrom(value); } else { target_ = value; } } else { targetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000002); target_ = null; if (targetBuilder_ != null) { targetBuilder_.dispose(); targetBuilder_ = null; } onChanged(); return this; } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ public com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder getTargetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ public com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_ == null ? com.google.cloud.bigquery.migration.v2.NameMappingValue.getDefaultInstance() : target_; } } /** * * *
     * The desired target name of the object that is being mapped.
     * 
* * .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.migration.v2.NameMappingValue, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.migration.v2.NameMappingValue, com.google.cloud.bigquery.migration.v2.NameMappingValue.Builder, com.google.cloud.bigquery.migration.v2.NameMappingValueOrBuilder>( getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } @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.bigquery.migration.v2.ObjectNameMapping) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.ObjectNameMapping) private static final com.google.cloud.bigquery.migration.v2.ObjectNameMapping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.ObjectNameMapping(); } public static com.google.cloud.bigquery.migration.v2.ObjectNameMapping getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectNameMapping 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.bigquery.migration.v2.ObjectNameMapping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy