Class TranslationConfigDetails.Builder

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

public static final class TranslationConfigDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<TranslationConfigDetails.Builder> implements TranslationConfigDetailsOrBuilder
 The translation config to capture necessary settings for a translation task
 and subtask.
 
Protobuf type google.cloud.bigquery.migration.v2.TranslationConfigDetails
  • 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<TranslationConfigDetails.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<TranslationConfigDetails.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<TranslationConfigDetails.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TranslationConfigDetails.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<TranslationConfigDetails.Builder>
      Throws:
      IOException
    • getSourceLocationCase

      public TranslationConfigDetails.SourceLocationCase getSourceLocationCase()
      Specified by:
      getSourceLocationCase in interface TranslationConfigDetailsOrBuilder
    • clearSourceLocation

      public TranslationConfigDetails.Builder clearSourceLocation()
    • getTargetLocationCase

      public TranslationConfigDetails.TargetLocationCase getTargetLocationCase()
      Specified by:
      getTargetLocationCase in interface TranslationConfigDetailsOrBuilder
    • clearTargetLocation

      public TranslationConfigDetails.Builder clearTargetLocation()
    • getOutputNameMappingCase

      public TranslationConfigDetails.OutputNameMappingCase getOutputNameMappingCase()
      Specified by:
      getOutputNameMappingCase in interface TranslationConfigDetailsOrBuilder
    • clearOutputNameMapping

      public TranslationConfigDetails.Builder clearOutputNameMapping()
    • hasGcsSourcePath

      public boolean hasGcsSourcePath()
       The Cloud Storage path for a directory of files to translate in a task.
       
      string gcs_source_path = 1;
      Specified by:
      hasGcsSourcePath in interface TranslationConfigDetailsOrBuilder
      Returns:
      Whether the gcsSourcePath field is set.
    • getGcsSourcePath

      public String getGcsSourcePath()
       The Cloud Storage path for a directory of files to translate in a task.
       
      string gcs_source_path = 1;
      Specified by:
      getGcsSourcePath in interface TranslationConfigDetailsOrBuilder
      Returns:
      The gcsSourcePath.
    • getGcsSourcePathBytes

      public com.google.protobuf.ByteString getGcsSourcePathBytes()
       The Cloud Storage path for a directory of files to translate in a task.
       
      string gcs_source_path = 1;
      Specified by:
      getGcsSourcePathBytes in interface TranslationConfigDetailsOrBuilder
      Returns:
      The bytes for gcsSourcePath.
    • setGcsSourcePath

      public TranslationConfigDetails.Builder setGcsSourcePath(String value)
       The Cloud Storage path for a directory of files to translate in a task.
       
      string gcs_source_path = 1;
      Parameters:
      value - The gcsSourcePath to set.
      Returns:
      This builder for chaining.
    • clearGcsSourcePath

      public TranslationConfigDetails.Builder clearGcsSourcePath()
       The Cloud Storage path for a directory of files to translate in a task.
       
      string gcs_source_path = 1;
      Returns:
      This builder for chaining.
    • setGcsSourcePathBytes

      public TranslationConfigDetails.Builder setGcsSourcePathBytes(com.google.protobuf.ByteString value)
       The Cloud Storage path for a directory of files to translate in a task.
       
      string gcs_source_path = 1;
      Parameters:
      value - The bytes for gcsSourcePath to set.
      Returns:
      This builder for chaining.
    • hasGcsTargetPath

      public boolean hasGcsTargetPath()
       The Cloud Storage path to write back the corresponding input files to.
       
      string gcs_target_path = 2;
      Specified by:
      hasGcsTargetPath in interface TranslationConfigDetailsOrBuilder
      Returns:
      Whether the gcsTargetPath field is set.
    • getGcsTargetPath

      public String getGcsTargetPath()
       The Cloud Storage path to write back the corresponding input files to.
       
      string gcs_target_path = 2;
      Specified by:
      getGcsTargetPath in interface TranslationConfigDetailsOrBuilder
      Returns:
      The gcsTargetPath.
    • getGcsTargetPathBytes

      public com.google.protobuf.ByteString getGcsTargetPathBytes()
       The Cloud Storage path to write back the corresponding input files to.
       
      string gcs_target_path = 2;
      Specified by:
      getGcsTargetPathBytes in interface TranslationConfigDetailsOrBuilder
      Returns:
      The bytes for gcsTargetPath.
    • setGcsTargetPath

      public TranslationConfigDetails.Builder setGcsTargetPath(String value)
       The Cloud Storage path to write back the corresponding input files to.
       
      string gcs_target_path = 2;
      Parameters:
      value - The gcsTargetPath to set.
      Returns:
      This builder for chaining.
    • clearGcsTargetPath

      public TranslationConfigDetails.Builder clearGcsTargetPath()
       The Cloud Storage path to write back the corresponding input files to.
       
      string gcs_target_path = 2;
      Returns:
      This builder for chaining.
    • setGcsTargetPathBytes

      public TranslationConfigDetails.Builder setGcsTargetPathBytes(com.google.protobuf.ByteString value)
       The Cloud Storage path to write back the corresponding input files to.
       
      string gcs_target_path = 2;
      Parameters:
      value - The bytes for gcsTargetPath to set.
      Returns:
      This builder for chaining.
    • hasNameMappingList

      public boolean hasNameMappingList()
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
      Specified by:
      hasNameMappingList in interface TranslationConfigDetailsOrBuilder
      Returns:
      Whether the nameMappingList field is set.
    • getNameMappingList

      public ObjectNameMappingList getNameMappingList()
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
      Specified by:
      getNameMappingList in interface TranslationConfigDetailsOrBuilder
      Returns:
      The nameMappingList.
    • setNameMappingList

      public TranslationConfigDetails.Builder setNameMappingList(ObjectNameMappingList value)
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
    • setNameMappingList

      public TranslationConfigDetails.Builder setNameMappingList(ObjectNameMappingList.Builder builderForValue)
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
    • mergeNameMappingList

      public TranslationConfigDetails.Builder mergeNameMappingList(ObjectNameMappingList value)
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
    • clearNameMappingList

      public TranslationConfigDetails.Builder clearNameMappingList()
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
    • getNameMappingListBuilder

      public ObjectNameMappingList.Builder getNameMappingListBuilder()
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
    • getNameMappingListOrBuilder

      public ObjectNameMappingListOrBuilder getNameMappingListOrBuilder()
       The mapping of objects to their desired output names in list form.
       
      .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;
      Specified by:
      getNameMappingListOrBuilder in interface TranslationConfigDetailsOrBuilder
    • hasSourceDialect

      public boolean hasSourceDialect()
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
      Specified by:
      hasSourceDialect in interface TranslationConfigDetailsOrBuilder
      Returns:
      Whether the sourceDialect field is set.
    • getSourceDialect

      public Dialect getSourceDialect()
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
      Specified by:
      getSourceDialect in interface TranslationConfigDetailsOrBuilder
      Returns:
      The sourceDialect.
    • setSourceDialect

      public TranslationConfigDetails.Builder setSourceDialect(Dialect value)
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
    • setSourceDialect

      public TranslationConfigDetails.Builder setSourceDialect(Dialect.Builder builderForValue)
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
    • mergeSourceDialect

      public TranslationConfigDetails.Builder mergeSourceDialect(Dialect value)
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
    • clearSourceDialect

      public TranslationConfigDetails.Builder clearSourceDialect()
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
    • getSourceDialectBuilder

      public Dialect.Builder getSourceDialectBuilder()
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
    • getSourceDialectOrBuilder

      public DialectOrBuilder getSourceDialectOrBuilder()
       The dialect of the input files.
       
      .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;
      Specified by:
      getSourceDialectOrBuilder in interface TranslationConfigDetailsOrBuilder
    • hasTargetDialect

      public boolean hasTargetDialect()
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
      Specified by:
      hasTargetDialect in interface TranslationConfigDetailsOrBuilder
      Returns:
      Whether the targetDialect field is set.
    • getTargetDialect

      public Dialect getTargetDialect()
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
      Specified by:
      getTargetDialect in interface TranslationConfigDetailsOrBuilder
      Returns:
      The targetDialect.
    • setTargetDialect

      public TranslationConfigDetails.Builder setTargetDialect(Dialect value)
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
    • setTargetDialect

      public TranslationConfigDetails.Builder setTargetDialect(Dialect.Builder builderForValue)
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
    • mergeTargetDialect

      public TranslationConfigDetails.Builder mergeTargetDialect(Dialect value)
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
    • clearTargetDialect

      public TranslationConfigDetails.Builder clearTargetDialect()
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
    • getTargetDialectBuilder

      public Dialect.Builder getTargetDialectBuilder()
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
    • getTargetDialectOrBuilder

      public DialectOrBuilder getTargetDialectOrBuilder()
       The target dialect for the engine to translate the input to.
       
      .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;
      Specified by:
      getTargetDialectOrBuilder in interface TranslationConfigDetailsOrBuilder
    • hasSourceEnv

      public boolean hasSourceEnv()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
      Specified by:
      hasSourceEnv in interface TranslationConfigDetailsOrBuilder
      Returns:
      Whether the sourceEnv field is set.
    • getSourceEnv

      public SourceEnv getSourceEnv()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
      Specified by:
      getSourceEnv in interface TranslationConfigDetailsOrBuilder
      Returns:
      The sourceEnv.
    • setSourceEnv

      public TranslationConfigDetails.Builder setSourceEnv(SourceEnv value)
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
    • setSourceEnv

      public TranslationConfigDetails.Builder setSourceEnv(SourceEnv.Builder builderForValue)
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
    • mergeSourceEnv

      public TranslationConfigDetails.Builder mergeSourceEnv(SourceEnv value)
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
    • clearSourceEnv

      public TranslationConfigDetails.Builder clearSourceEnv()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
    • getSourceEnvBuilder

      public SourceEnv.Builder getSourceEnvBuilder()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
    • getSourceEnvOrBuilder

      public SourceEnvOrBuilder getSourceEnvOrBuilder()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;
      Specified by:
      getSourceEnvOrBuilder in interface TranslationConfigDetailsOrBuilder
    • getRequestSource

      public String getRequestSource()
       The indicator to show translation request initiator.
       
      string request_source = 8;
      Specified by:
      getRequestSource in interface TranslationConfigDetailsOrBuilder
      Returns:
      The requestSource.
    • getRequestSourceBytes

      public com.google.protobuf.ByteString getRequestSourceBytes()
       The indicator to show translation request initiator.
       
      string request_source = 8;
      Specified by:
      getRequestSourceBytes in interface TranslationConfigDetailsOrBuilder
      Returns:
      The bytes for requestSource.
    • setRequestSource

      public TranslationConfigDetails.Builder setRequestSource(String value)
       The indicator to show translation request initiator.
       
      string request_source = 8;
      Parameters:
      value - The requestSource to set.
      Returns:
      This builder for chaining.
    • clearRequestSource

      public TranslationConfigDetails.Builder clearRequestSource()
       The indicator to show translation request initiator.
       
      string request_source = 8;
      Returns:
      This builder for chaining.
    • setRequestSourceBytes

      public TranslationConfigDetails.Builder setRequestSourceBytes(com.google.protobuf.ByteString value)
       The indicator to show translation request initiator.
       
      string request_source = 8;
      Parameters:
      value - The bytes for requestSource to set.
      Returns:
      This builder for chaining.
    • getTargetTypesList

      public com.google.protobuf.ProtocolStringList getTargetTypesList()
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Specified by:
      getTargetTypesList in interface TranslationConfigDetailsOrBuilder
      Returns:
      A list containing the targetTypes.
    • getTargetTypesCount

      public int getTargetTypesCount()
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Specified by:
      getTargetTypesCount in interface TranslationConfigDetailsOrBuilder
      Returns:
      The count of targetTypes.
    • getTargetTypes

      public String getTargetTypes(int index)
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Specified by:
      getTargetTypes in interface TranslationConfigDetailsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetTypes at the given index.
    • getTargetTypesBytes

      public com.google.protobuf.ByteString getTargetTypesBytes(int index)
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Specified by:
      getTargetTypesBytes in interface TranslationConfigDetailsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetTypes at the given index.
    • setTargetTypes

      public TranslationConfigDetails.Builder setTargetTypes(int index, String value)
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Parameters:
      index - The index to set the value at.
      value - The targetTypes to set.
      Returns:
      This builder for chaining.
    • addTargetTypes

      public TranslationConfigDetails.Builder addTargetTypes(String value)
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Parameters:
      value - The targetTypes to add.
      Returns:
      This builder for chaining.
    • addAllTargetTypes

      public TranslationConfigDetails.Builder addAllTargetTypes(Iterable<String> values)
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Parameters:
      values - The targetTypes to add.
      Returns:
      This builder for chaining.
    • clearTargetTypes

      public TranslationConfigDetails.Builder clearTargetTypes()
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Returns:
      This builder for chaining.
    • addTargetTypesBytes

      public TranslationConfigDetails.Builder addTargetTypesBytes(com.google.protobuf.ByteString value)
       The types of output to generate, e.g. sql, metadata etc. If not specified,
       a default set of targets will be generated. Some additional target types
       may be slower to generate. See the documentation for the set of available
       target types.
       
      repeated string target_types = 9;
      Parameters:
      value - The bytes of the targetTypes to add.
      Returns:
      This builder for chaining.