Class SourceTargetMapping.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SourceTargetMapping.Builder>
com.google.cloud.bigquery.migration.v2.SourceTargetMapping.Builder
All Implemented Interfaces:
SourceTargetMappingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SourceTargetMapping

public static final class SourceTargetMapping.Builder extends com.google.protobuf.GeneratedMessage.Builder<SourceTargetMapping.Builder> implements SourceTargetMappingOrBuilder
 Represents one mapping from a source SQL to a target SQL.
 
Protobuf type google.cloud.bigquery.migration.v2.SourceTargetMapping
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SourceTargetMapping.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SourceTargetMapping.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SourceTargetMapping.Builder>
    • getDefaultInstanceForType

      public SourceTargetMapping getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SourceTargetMapping build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SourceTargetMapping buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SourceTargetMapping.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceTargetMapping.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SourceTargetMapping.Builder>
    • mergeFrom

      public SourceTargetMapping.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceTargetMapping.Builder>
      Throws:
      IOException
    • hasSourceSpec

      public boolean hasSourceSpec()
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
      Specified by:
      hasSourceSpec in interface SourceTargetMappingOrBuilder
      Returns:
      Whether the sourceSpec field is set.
    • getSourceSpec

      public SourceSpec getSourceSpec()
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
      Specified by:
      getSourceSpec in interface SourceTargetMappingOrBuilder
      Returns:
      The sourceSpec.
    • setSourceSpec

      public SourceTargetMapping.Builder setSourceSpec(SourceSpec value)
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
    • setSourceSpec

      public SourceTargetMapping.Builder setSourceSpec(SourceSpec.Builder builderForValue)
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
    • mergeSourceSpec

      public SourceTargetMapping.Builder mergeSourceSpec(SourceSpec value)
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
    • clearSourceSpec

      public SourceTargetMapping.Builder clearSourceSpec()
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
    • getSourceSpecBuilder

      public SourceSpec.Builder getSourceSpecBuilder()
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
    • getSourceSpecOrBuilder

      public SourceSpecOrBuilder getSourceSpecOrBuilder()
       The source SQL or the path to it.
       
      .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;
      Specified by:
      getSourceSpecOrBuilder in interface SourceTargetMappingOrBuilder
    • hasTargetSpec

      public boolean hasTargetSpec()
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
      Specified by:
      hasTargetSpec in interface SourceTargetMappingOrBuilder
      Returns:
      Whether the targetSpec field is set.
    • getTargetSpec

      public TargetSpec getTargetSpec()
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
      Specified by:
      getTargetSpec in interface SourceTargetMappingOrBuilder
      Returns:
      The targetSpec.
    • setTargetSpec

      public SourceTargetMapping.Builder setTargetSpec(TargetSpec value)
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
    • setTargetSpec

      public SourceTargetMapping.Builder setTargetSpec(TargetSpec.Builder builderForValue)
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
    • mergeTargetSpec

      public SourceTargetMapping.Builder mergeTargetSpec(TargetSpec value)
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
    • clearTargetSpec

      public SourceTargetMapping.Builder clearTargetSpec()
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
    • getTargetSpecBuilder

      public TargetSpec.Builder getTargetSpecBuilder()
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
    • getTargetSpecOrBuilder

      public TargetSpecOrBuilder getTargetSpecOrBuilder()
       The target SQL or the path for it.
       
      .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;
      Specified by:
      getTargetSpecOrBuilder in interface SourceTargetMappingOrBuilder