Class TranslationDetails.Builder

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

public static final class TranslationDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<TranslationDetails.Builder> implements TranslationDetailsOrBuilder
 The translation details to capture the necessary settings for a translation
 job.
 
Protobuf type google.cloud.bigquery.migration.v2.TranslationDetails
  • 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<TranslationDetails.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<TranslationDetails.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<TranslationDetails.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TranslationDetails.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<TranslationDetails.Builder>
      Throws:
      IOException
    • getSourceTargetMappingList

      public List<SourceTargetMapping> getSourceTargetMappingList()
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
      Specified by:
      getSourceTargetMappingList in interface TranslationDetailsOrBuilder
    • getSourceTargetMappingCount

      public int getSourceTargetMappingCount()
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
      Specified by:
      getSourceTargetMappingCount in interface TranslationDetailsOrBuilder
    • getSourceTargetMapping

      public SourceTargetMapping getSourceTargetMapping(int index)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
      Specified by:
      getSourceTargetMapping in interface TranslationDetailsOrBuilder
    • setSourceTargetMapping

      public TranslationDetails.Builder setSourceTargetMapping(int index, SourceTargetMapping value)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • setSourceTargetMapping

      public TranslationDetails.Builder setSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • addSourceTargetMapping

      public TranslationDetails.Builder addSourceTargetMapping(SourceTargetMapping value)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • addSourceTargetMapping

      public TranslationDetails.Builder addSourceTargetMapping(int index, SourceTargetMapping value)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • addSourceTargetMapping

      public TranslationDetails.Builder addSourceTargetMapping(SourceTargetMapping.Builder builderForValue)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • addSourceTargetMapping

      public TranslationDetails.Builder addSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • addAllSourceTargetMapping

      public TranslationDetails.Builder addAllSourceTargetMapping(Iterable<? extends SourceTargetMapping> values)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • clearSourceTargetMapping

      public TranslationDetails.Builder clearSourceTargetMapping()
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • removeSourceTargetMapping

      public TranslationDetails.Builder removeSourceTargetMapping(int index)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • getSourceTargetMappingBuilder

      public SourceTargetMapping.Builder getSourceTargetMappingBuilder(int index)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • getSourceTargetMappingOrBuilder

      public SourceTargetMappingOrBuilder getSourceTargetMappingOrBuilder(int index)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
      Specified by:
      getSourceTargetMappingOrBuilder in interface TranslationDetailsOrBuilder
    • getSourceTargetMappingOrBuilderList

      public List<? extends SourceTargetMappingOrBuilder> getSourceTargetMappingOrBuilderList()
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
      Specified by:
      getSourceTargetMappingOrBuilderList in interface TranslationDetailsOrBuilder
    • addSourceTargetMappingBuilder

      public SourceTargetMapping.Builder addSourceTargetMappingBuilder()
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • addSourceTargetMappingBuilder

      public SourceTargetMapping.Builder addSourceTargetMappingBuilder(int index)
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • getSourceTargetMappingBuilderList

      public List<SourceTargetMapping.Builder> getSourceTargetMappingBuilderList()
       The mapping from source to target SQL.
       
      repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;
    • getTargetBaseUri

      public String getTargetBaseUri()
       The base URI for all writes to persistent storage.
       
      string target_base_uri = 2;
      Specified by:
      getTargetBaseUri in interface TranslationDetailsOrBuilder
      Returns:
      The targetBaseUri.
    • getTargetBaseUriBytes

      public com.google.protobuf.ByteString getTargetBaseUriBytes()
       The base URI for all writes to persistent storage.
       
      string target_base_uri = 2;
      Specified by:
      getTargetBaseUriBytes in interface TranslationDetailsOrBuilder
      Returns:
      The bytes for targetBaseUri.
    • setTargetBaseUri

      public TranslationDetails.Builder setTargetBaseUri(String value)
       The base URI for all writes to persistent storage.
       
      string target_base_uri = 2;
      Parameters:
      value - The targetBaseUri to set.
      Returns:
      This builder for chaining.
    • clearTargetBaseUri

      public TranslationDetails.Builder clearTargetBaseUri()
       The base URI for all writes to persistent storage.
       
      string target_base_uri = 2;
      Returns:
      This builder for chaining.
    • setTargetBaseUriBytes

      public TranslationDetails.Builder setTargetBaseUriBytes(com.google.protobuf.ByteString value)
       The base URI for all writes to persistent storage.
       
      string target_base_uri = 2;
      Parameters:
      value - The bytes for targetBaseUri to set.
      Returns:
      This builder for chaining.
    • hasSourceEnvironment

      public boolean hasSourceEnvironment()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
      Specified by:
      hasSourceEnvironment in interface TranslationDetailsOrBuilder
      Returns:
      Whether the sourceEnvironment field is set.
    • getSourceEnvironment

      public SourceEnvironment getSourceEnvironment()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
      Specified by:
      getSourceEnvironment in interface TranslationDetailsOrBuilder
      Returns:
      The sourceEnvironment.
    • setSourceEnvironment

      public TranslationDetails.Builder setSourceEnvironment(SourceEnvironment value)
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
    • setSourceEnvironment

      public TranslationDetails.Builder setSourceEnvironment(SourceEnvironment.Builder builderForValue)
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
    • mergeSourceEnvironment

      public TranslationDetails.Builder mergeSourceEnvironment(SourceEnvironment value)
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
    • clearSourceEnvironment

      public TranslationDetails.Builder clearSourceEnvironment()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
    • getSourceEnvironmentBuilder

      public SourceEnvironment.Builder getSourceEnvironmentBuilder()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
    • getSourceEnvironmentOrBuilder

      public SourceEnvironmentOrBuilder getSourceEnvironmentOrBuilder()
       The default source environment values for the translation.
       
      .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;
      Specified by:
      getSourceEnvironmentOrBuilder in interface TranslationDetailsOrBuilder
    • getTargetReturnLiteralsList

      public com.google.protobuf.ProtocolStringList getTargetReturnLiteralsList()
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Specified by:
      getTargetReturnLiteralsList in interface TranslationDetailsOrBuilder
      Returns:
      A list containing the targetReturnLiterals.
    • getTargetReturnLiteralsCount

      public int getTargetReturnLiteralsCount()
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Specified by:
      getTargetReturnLiteralsCount in interface TranslationDetailsOrBuilder
      Returns:
      The count of targetReturnLiterals.
    • getTargetReturnLiterals

      public String getTargetReturnLiterals(int index)
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Specified by:
      getTargetReturnLiterals in interface TranslationDetailsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetReturnLiterals at the given index.
    • getTargetReturnLiteralsBytes

      public com.google.protobuf.ByteString getTargetReturnLiteralsBytes(int index)
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Specified by:
      getTargetReturnLiteralsBytes in interface TranslationDetailsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetReturnLiterals at the given index.
    • setTargetReturnLiterals

      public TranslationDetails.Builder setTargetReturnLiterals(int index, String value)
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Parameters:
      index - The index to set the value at.
      value - The targetReturnLiterals to set.
      Returns:
      This builder for chaining.
    • addTargetReturnLiterals

      public TranslationDetails.Builder addTargetReturnLiterals(String value)
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Parameters:
      value - The targetReturnLiterals to add.
      Returns:
      This builder for chaining.
    • addAllTargetReturnLiterals

      public TranslationDetails.Builder addAllTargetReturnLiterals(Iterable<String> values)
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Parameters:
      values - The targetReturnLiterals to add.
      Returns:
      This builder for chaining.
    • clearTargetReturnLiterals

      public TranslationDetails.Builder clearTargetReturnLiterals()
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Returns:
      This builder for chaining.
    • addTargetReturnLiteralsBytes

      public TranslationDetails.Builder addTargetReturnLiteralsBytes(com.google.protobuf.ByteString value)
       The list of literal targets that will be directly returned to the response.
       Each entry consists of the constructed path, EXCLUDING the base path. Not
       providing a target_base_uri will prevent writing to persistent storage.
       
      repeated string target_return_literals = 4;
      Parameters:
      value - The bytes of the targetReturnLiterals to add.
      Returns:
      This builder for chaining.
    • getTargetTypesList

      public com.google.protobuf.ProtocolStringList getTargetTypesList()
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Specified by:
      getTargetTypesList in interface TranslationDetailsOrBuilder
      Returns:
      A list containing the targetTypes.
    • getTargetTypesCount

      public int getTargetTypesCount()
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Specified by:
      getTargetTypesCount in interface TranslationDetailsOrBuilder
      Returns:
      The count of targetTypes.
    • getTargetTypes

      public String getTargetTypes(int index)
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Specified by:
      getTargetTypes in interface TranslationDetailsOrBuilder
      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,
       lineage_from_sql_scripts, 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 = 5;
      Specified by:
      getTargetTypesBytes in interface TranslationDetailsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetTypes at the given index.
    • setTargetTypes

      public TranslationDetails.Builder setTargetTypes(int index, String value)
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Parameters:
      index - The index to set the value at.
      value - The targetTypes to set.
      Returns:
      This builder for chaining.
    • addTargetTypes

      public TranslationDetails.Builder addTargetTypes(String value)
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Parameters:
      value - The targetTypes to add.
      Returns:
      This builder for chaining.
    • addAllTargetTypes

      public TranslationDetails.Builder addAllTargetTypes(Iterable<String> values)
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Parameters:
      values - The targetTypes to add.
      Returns:
      This builder for chaining.
    • clearTargetTypes

      public TranslationDetails.Builder clearTargetTypes()
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Returns:
      This builder for chaining.
    • addTargetTypesBytes

      public TranslationDetails.Builder addTargetTypesBytes(com.google.protobuf.ByteString value)
       The types of output to generate, e.g. sql, metadata,
       lineage_from_sql_scripts, 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 = 5;
      Parameters:
      value - The bytes of the targetTypes to add.
      Returns:
      This builder for chaining.