Class BteqOptions.Builder

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

public static final class BteqOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<BteqOptions.Builder> implements BteqOptionsOrBuilder
 BTEQ translation task related settings.
 
Protobuf type google.cloud.bigquery.migration.v2alpha.BteqOptions
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BteqOptions.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BteqOptions.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public BteqOptions.Builder mergeFrom(BteqOptions other)
    • isInitialized

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

      public BteqOptions.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<BteqOptions.Builder>
      Throws:
      IOException
    • hasProjectDataset

      public boolean hasProjectDataset()
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      Specified by:
      hasProjectDataset in interface BteqOptionsOrBuilder
      Returns:
      Whether the projectDataset field is set.
    • getProjectDataset

      public DatasetReference getProjectDataset()
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      Specified by:
      getProjectDataset in interface BteqOptionsOrBuilder
      Returns:
      The projectDataset.
    • setProjectDataset

      public BteqOptions.Builder setProjectDataset(DatasetReference value)
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
    • setProjectDataset

      public BteqOptions.Builder setProjectDataset(DatasetReference.Builder builderForValue)
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
    • mergeProjectDataset

      public BteqOptions.Builder mergeProjectDataset(DatasetReference value)
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
    • clearProjectDataset

      public BteqOptions.Builder clearProjectDataset()
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
    • getProjectDatasetBuilder

      public DatasetReference.Builder getProjectDatasetBuilder()
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
    • getProjectDatasetOrBuilder

      public DatasetReferenceOrBuilder getProjectDatasetOrBuilder()
       Specifies the project and dataset in BigQuery that will be used for
       external table creation during the translation.
       
      .google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
      Specified by:
      getProjectDatasetOrBuilder in interface BteqOptionsOrBuilder
    • getDefaultPathUri

      public String getDefaultPathUri()
       The Cloud Storage location to be used as the default path for files that
       are not otherwise specified in the file replacement map.
       
      string default_path_uri = 2;
      Specified by:
      getDefaultPathUri in interface BteqOptionsOrBuilder
      Returns:
      The defaultPathUri.
    • getDefaultPathUriBytes

      public com.google.protobuf.ByteString getDefaultPathUriBytes()
       The Cloud Storage location to be used as the default path for files that
       are not otherwise specified in the file replacement map.
       
      string default_path_uri = 2;
      Specified by:
      getDefaultPathUriBytes in interface BteqOptionsOrBuilder
      Returns:
      The bytes for defaultPathUri.
    • setDefaultPathUri

      public BteqOptions.Builder setDefaultPathUri(String value)
       The Cloud Storage location to be used as the default path for files that
       are not otherwise specified in the file replacement map.
       
      string default_path_uri = 2;
      Parameters:
      value - The defaultPathUri to set.
      Returns:
      This builder for chaining.
    • clearDefaultPathUri

      public BteqOptions.Builder clearDefaultPathUri()
       The Cloud Storage location to be used as the default path for files that
       are not otherwise specified in the file replacement map.
       
      string default_path_uri = 2;
      Returns:
      This builder for chaining.
    • setDefaultPathUriBytes

      public BteqOptions.Builder setDefaultPathUriBytes(com.google.protobuf.ByteString value)
       The Cloud Storage location to be used as the default path for files that
       are not otherwise specified in the file replacement map.
       
      string default_path_uri = 2;
      Parameters:
      value - The bytes for defaultPathUri to set.
      Returns:
      This builder for chaining.
    • getFileReplacementMapCount

      public int getFileReplacementMapCount()
      Description copied from interface: BteqOptionsOrBuilder
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;
      Specified by:
      getFileReplacementMapCount in interface BteqOptionsOrBuilder
    • containsFileReplacementMap

      public boolean containsFileReplacementMap(String key)
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;
      Specified by:
      containsFileReplacementMap in interface BteqOptionsOrBuilder
    • getFileReplacementMap

      @Deprecated public Map<String,String> getFileReplacementMap()
      Deprecated.
      Specified by:
      getFileReplacementMap in interface BteqOptionsOrBuilder
    • getFileReplacementMapMap

      public Map<String,String> getFileReplacementMapMap()
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;
      Specified by:
      getFileReplacementMapMap in interface BteqOptionsOrBuilder
    • getFileReplacementMapOrDefault

      public String getFileReplacementMapOrDefault(String key, String defaultValue)
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;
      Specified by:
      getFileReplacementMapOrDefault in interface BteqOptionsOrBuilder
    • getFileReplacementMapOrThrow

      public String getFileReplacementMapOrThrow(String key)
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;
      Specified by:
      getFileReplacementMapOrThrow in interface BteqOptionsOrBuilder
    • clearFileReplacementMap

      public BteqOptions.Builder clearFileReplacementMap()
    • removeFileReplacementMap

      public BteqOptions.Builder removeFileReplacementMap(String key)
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;
    • getMutableFileReplacementMap

      @Deprecated public Map<String,String> getMutableFileReplacementMap()
      Deprecated.
      Use alternate mutation accessors instead.
    • putFileReplacementMap

      public BteqOptions.Builder putFileReplacementMap(String key, String value)
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;
    • putAllFileReplacementMap

      public BteqOptions.Builder putAllFileReplacementMap(Map<String,String> values)
       Maps the local paths that are used in BTEQ scripts (the keys) to the paths
       in Cloud Storage that should be used in their stead in the translation (the
       value).
       
      map<string, string> file_replacement_map = 3;