Class SourceSpec.Builder

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

public static final class SourceSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<SourceSpec.Builder> implements SourceSpecOrBuilder
 Represents one path to the location that holds source data.
 
Protobuf type google.cloud.bigquery.migration.v2.SourceSpec
  • 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<SourceSpec.Builder>
    • clear

      public SourceSpec.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<SourceSpec.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<SourceSpec.Builder>
    • getDefaultInstanceForType

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

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

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

      public SourceSpec.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<SourceSpec.Builder>
    • mergeFrom

      public SourceSpec.Builder mergeFrom(SourceSpec other)
    • isInitialized

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

      public SourceSpec.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<SourceSpec.Builder>
      Throws:
      IOException
    • getSourceCase

      public SourceSpec.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface SourceSpecOrBuilder
    • clearSource

      public SourceSpec.Builder clearSource()
    • hasBaseUri

      public boolean hasBaseUri()
       The base URI for all files to be read in as sources for translation.
       
      string base_uri = 1;
      Specified by:
      hasBaseUri in interface SourceSpecOrBuilder
      Returns:
      Whether the baseUri field is set.
    • getBaseUri

      public String getBaseUri()
       The base URI for all files to be read in as sources for translation.
       
      string base_uri = 1;
      Specified by:
      getBaseUri in interface SourceSpecOrBuilder
      Returns:
      The baseUri.
    • getBaseUriBytes

      public com.google.protobuf.ByteString getBaseUriBytes()
       The base URI for all files to be read in as sources for translation.
       
      string base_uri = 1;
      Specified by:
      getBaseUriBytes in interface SourceSpecOrBuilder
      Returns:
      The bytes for baseUri.
    • setBaseUri

      public SourceSpec.Builder setBaseUri(String value)
       The base URI for all files to be read in as sources for translation.
       
      string base_uri = 1;
      Parameters:
      value - The baseUri to set.
      Returns:
      This builder for chaining.
    • clearBaseUri

      public SourceSpec.Builder clearBaseUri()
       The base URI for all files to be read in as sources for translation.
       
      string base_uri = 1;
      Returns:
      This builder for chaining.
    • setBaseUriBytes

      public SourceSpec.Builder setBaseUriBytes(com.google.protobuf.ByteString value)
       The base URI for all files to be read in as sources for translation.
       
      string base_uri = 1;
      Parameters:
      value - The bytes for baseUri to set.
      Returns:
      This builder for chaining.
    • hasLiteral

      public boolean hasLiteral()
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
      Specified by:
      hasLiteral in interface SourceSpecOrBuilder
      Returns:
      Whether the literal field is set.
    • getLiteral

      public Literal getLiteral()
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
      Specified by:
      getLiteral in interface SourceSpecOrBuilder
      Returns:
      The literal.
    • setLiteral

      public SourceSpec.Builder setLiteral(Literal value)
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
    • setLiteral

      public SourceSpec.Builder setLiteral(Literal.Builder builderForValue)
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
    • mergeLiteral

      public SourceSpec.Builder mergeLiteral(Literal value)
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
    • clearLiteral

      public SourceSpec.Builder clearLiteral()
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
    • getLiteralBuilder

      public Literal.Builder getLiteralBuilder()
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
    • getLiteralOrBuilder

      public LiteralOrBuilder getLiteralOrBuilder()
       Source literal.
       
      .google.cloud.bigquery.migration.v2.Literal literal = 2;
      Specified by:
      getLiteralOrBuilder in interface SourceSpecOrBuilder
    • getEncoding

      public String getEncoding()
       Optional. The optional field to specify the encoding of the sql bytes.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncoding in interface SourceSpecOrBuilder
      Returns:
      The encoding.
    • getEncodingBytes

      public com.google.protobuf.ByteString getEncodingBytes()
       Optional. The optional field to specify the encoding of the sql bytes.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncodingBytes in interface SourceSpecOrBuilder
      Returns:
      The bytes for encoding.
    • setEncoding

      public SourceSpec.Builder setEncoding(String value)
       Optional. The optional field to specify the encoding of the sql bytes.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encoding to set.
      Returns:
      This builder for chaining.
    • clearEncoding

      public SourceSpec.Builder clearEncoding()
       Optional. The optional field to specify the encoding of the sql bytes.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEncodingBytes

      public SourceSpec.Builder setEncodingBytes(com.google.protobuf.ByteString value)
       Optional. The optional field to specify the encoding of the sql bytes.
       
      string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for encoding to set.
      Returns:
      This builder for chaining.