Class TranslationTaskDetails.Builder (0.49.0)

public static final class TranslationTaskDetails.Builder extends GeneratedMessageV3.Builder<TranslationTaskDetails.Builder> implements TranslationTaskDetailsOrBuilder

The translation task config to capture necessary settings for a translation task and subtask.

Protobuf type google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFilePaths(Iterable<? extends TranslationFileMapping> values)

public TranslationTaskDetails.Builder addAllFilePaths(Iterable<? extends TranslationFileMapping> values)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.migration.v2alpha.TranslationFileMapping>
Returns
Type Description
TranslationTaskDetails.Builder

addFilePaths(TranslationFileMapping value)

public TranslationTaskDetails.Builder addFilePaths(TranslationFileMapping value)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
value TranslationFileMapping
Returns
Type Description
TranslationTaskDetails.Builder

addFilePaths(TranslationFileMapping.Builder builderForValue)

public TranslationTaskDetails.Builder addFilePaths(TranslationFileMapping.Builder builderForValue)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
builderForValue TranslationFileMapping.Builder
Returns
Type Description
TranslationTaskDetails.Builder

addFilePaths(int index, TranslationFileMapping value)

public TranslationTaskDetails.Builder addFilePaths(int index, TranslationFileMapping value)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameters
Name Description
index int
value TranslationFileMapping
Returns
Type Description
TranslationTaskDetails.Builder

addFilePaths(int index, TranslationFileMapping.Builder builderForValue)

public TranslationTaskDetails.Builder addFilePaths(int index, TranslationFileMapping.Builder builderForValue)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameters
Name Description
index int
builderForValue TranslationFileMapping.Builder
Returns
Type Description
TranslationTaskDetails.Builder

addFilePathsBuilder()

public TranslationFileMapping.Builder addFilePathsBuilder()

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Returns
Type Description
TranslationFileMapping.Builder

addFilePathsBuilder(int index)

public TranslationFileMapping.Builder addFilePathsBuilder(int index)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
index int
Returns
Type Description
TranslationFileMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TranslationTaskDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

build()

public TranslationTaskDetails build()
Returns
Type Description
TranslationTaskDetails

buildPartial()

public TranslationTaskDetails buildPartial()
Returns
Type Description
TranslationTaskDetails

clear()

public TranslationTaskDetails.Builder clear()
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

clearBteqOptions()

public TranslationTaskDetails.Builder clearBteqOptions()

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Returns
Type Description
TranslationTaskDetails.Builder

clearField(Descriptors.FieldDescriptor field)

public TranslationTaskDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

clearFileEncoding()

public TranslationTaskDetails.Builder clearFileEncoding()

The file encoding type.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4;

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

clearFilePaths()

public TranslationTaskDetails.Builder clearFilePaths()

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Returns
Type Description
TranslationTaskDetails.Builder

clearFilter()

public TranslationTaskDetails.Builder clearFilter()

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Returns
Type Description
TranslationTaskDetails.Builder

clearIdentifierSettings()

public TranslationTaskDetails.Builder clearIdentifierSettings()

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Returns
Type Description
TranslationTaskDetails.Builder

clearInputPath()

public TranslationTaskDetails.Builder clearInputPath()

The Cloud Storage path for translation input files.

string input_path = 1;

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

clearLanguageOptions()

public TranslationTaskDetails.Builder clearLanguageOptions()
Returns
Type Description
TranslationTaskDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TranslationTaskDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

clearOutputPath()

public TranslationTaskDetails.Builder clearOutputPath()

The Cloud Storage path for translation output files.

string output_path = 2;

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

clearSchemaPath()

public TranslationTaskDetails.Builder clearSchemaPath()

The Cloud Storage path to DDL files as table schema to assist semantic translation.

string schema_path = 3;

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

clearSpecialTokenMap()

public TranslationTaskDetails.Builder clearSpecialTokenMap()
Returns
Type Description
TranslationTaskDetails.Builder

clearTeradataOptions()

public TranslationTaskDetails.Builder clearTeradataOptions()

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Returns
Type Description
TranslationTaskDetails.Builder

clearTranslationExceptionTable()

public TranslationTaskDetails.Builder clearTranslationExceptionTable()

Specifies the exact name of the bigquery table ("dataset.table") to be used for surfacing raw translation errors. If the table does not exist, we will create it. If it already exists and the schema is the same, we will re-use. If the table exists and the schema is different, we will throw an error.

string translation_exception_table = 13;

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

clone()

public TranslationTaskDetails.Builder clone()
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

containsSpecialTokenMap(String key)

public boolean containsSpecialTokenMap(String key)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBteqOptions()

public BteqOptions getBteqOptions()

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Returns
Type Description
BteqOptions

The bteqOptions.

getBteqOptionsBuilder()

public BteqOptions.Builder getBteqOptionsBuilder()

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Returns
Type Description
BteqOptions.Builder

getBteqOptionsOrBuilder()

public BteqOptionsOrBuilder getBteqOptionsOrBuilder()

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Returns
Type Description
BteqOptionsOrBuilder

getDefaultInstanceForType()

public TranslationTaskDetails getDefaultInstanceForType()
Returns
Type Description
TranslationTaskDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileEncoding()

public TranslationTaskDetails.FileEncoding getFileEncoding()

The file encoding type.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4;

Returns
Type Description
TranslationTaskDetails.FileEncoding

The fileEncoding.

getFileEncodingValue()

public int getFileEncodingValue()

The file encoding type.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4;

Returns
Type Description
int

The enum numeric value on the wire for fileEncoding.

getFilePaths(int index)

public TranslationFileMapping getFilePaths(int index)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
index int
Returns
Type Description
TranslationFileMapping

getFilePathsBuilder(int index)

public TranslationFileMapping.Builder getFilePathsBuilder(int index)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
index int
Returns
Type Description
TranslationFileMapping.Builder

getFilePathsBuilderList()

public List<TranslationFileMapping.Builder> getFilePathsBuilderList()

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Returns
Type Description
List<Builder>

getFilePathsCount()

public int getFilePathsCount()

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Returns
Type Description
int

getFilePathsList()

public List<TranslationFileMapping> getFilePathsList()

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Returns
Type Description
List<TranslationFileMapping>

getFilePathsOrBuilder(int index)

public TranslationFileMappingOrBuilder getFilePathsOrBuilder(int index)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
index int
Returns
Type Description
TranslationFileMappingOrBuilder

getFilePathsOrBuilderList()

public List<? extends TranslationFileMappingOrBuilder> getFilePathsOrBuilderList()

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Returns
Type Description
List<? extends com.google.cloud.bigquery.migration.v2alpha.TranslationFileMappingOrBuilder>

getFilter()

public Filter getFilter()

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Returns
Type Description
Filter

The filter.

getFilterBuilder()

public Filter.Builder getFilterBuilder()

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Returns
Type Description
Filter.Builder

getFilterOrBuilder()

public FilterOrBuilder getFilterOrBuilder()

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Returns
Type Description
FilterOrBuilder

getIdentifierSettings()

public IdentifierSettings getIdentifierSettings()

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Returns
Type Description
IdentifierSettings

The identifierSettings.

getIdentifierSettingsBuilder()

public IdentifierSettings.Builder getIdentifierSettingsBuilder()

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Returns
Type Description
IdentifierSettings.Builder

getIdentifierSettingsOrBuilder()

public IdentifierSettingsOrBuilder getIdentifierSettingsOrBuilder()

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Returns
Type Description
IdentifierSettingsOrBuilder

getInputPath()

public String getInputPath()

The Cloud Storage path for translation input files.

string input_path = 1;

Returns
Type Description
String

The inputPath.

getInputPathBytes()

public ByteString getInputPathBytes()

The Cloud Storage path for translation input files.

string input_path = 1;

Returns
Type Description
ByteString

The bytes for inputPath.

getLanguageOptionsCase()

public TranslationTaskDetails.LanguageOptionsCase getLanguageOptionsCase()
Returns
Type Description
TranslationTaskDetails.LanguageOptionsCase

getMutableSpecialTokenMap() (deprecated)

public Map<String,TranslationTaskDetails.TokenType> getMutableSpecialTokenMap()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,TokenType>

getMutableSpecialTokenMapValue() (deprecated)

public Map<String,Integer> getMutableSpecialTokenMapValue()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,java.lang.Integer>

getOutputPath()

public String getOutputPath()

The Cloud Storage path for translation output files.

string output_path = 2;

Returns
Type Description
String

The outputPath.

getOutputPathBytes()

public ByteString getOutputPathBytes()

The Cloud Storage path for translation output files.

string output_path = 2;

Returns
Type Description
ByteString

The bytes for outputPath.

getSchemaPath()

public String getSchemaPath()

The Cloud Storage path to DDL files as table schema to assist semantic translation.

string schema_path = 3;

Returns
Type Description
String

The schemaPath.

getSchemaPathBytes()

public ByteString getSchemaPathBytes()

The Cloud Storage path to DDL files as table schema to assist semantic translation.

string schema_path = 3;

Returns
Type Description
ByteString

The bytes for schemaPath.

getSpecialTokenMap() (deprecated)

public Map<String,TranslationTaskDetails.TokenType> getSpecialTokenMap()
Returns
Type Description
Map<String,TokenType>

getSpecialTokenMapCount()

public int getSpecialTokenMapCount()

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Returns
Type Description
int

getSpecialTokenMapMap()

public Map<String,TranslationTaskDetails.TokenType> getSpecialTokenMapMap()

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Returns
Type Description
Map<String,TokenType>

getSpecialTokenMapOrDefault(String key, TranslationTaskDetails.TokenType defaultValue)

public TranslationTaskDetails.TokenType getSpecialTokenMapOrDefault(String key, TranslationTaskDetails.TokenType defaultValue)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameters
Name Description
key String
defaultValue TranslationTaskDetails.TokenType
Returns
Type Description
TranslationTaskDetails.TokenType

getSpecialTokenMapOrThrow(String key)

public TranslationTaskDetails.TokenType getSpecialTokenMapOrThrow(String key)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameter
Name Description
key String
Returns
Type Description
TranslationTaskDetails.TokenType

getSpecialTokenMapValue() (deprecated)

public Map<String,Integer> getSpecialTokenMapValue()
Returns
Type Description
Map<String,java.lang.Integer>

getSpecialTokenMapValueMap()

public Map<String,Integer> getSpecialTokenMapValueMap()

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Returns
Type Description
Map<String,java.lang.Integer>

getSpecialTokenMapValueOrDefault(String key, int defaultValue)

public int getSpecialTokenMapValueOrDefault(String key, int defaultValue)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameters
Name Description
key String
defaultValue int
Returns
Type Description
int

getSpecialTokenMapValueOrThrow(String key)

public int getSpecialTokenMapValueOrThrow(String key)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameter
Name Description
key String
Returns
Type Description
int

getTeradataOptions()

public TeradataOptions getTeradataOptions()

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Returns
Type Description
TeradataOptions

The teradataOptions.

getTeradataOptionsBuilder()

public TeradataOptions.Builder getTeradataOptionsBuilder()

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Returns
Type Description
TeradataOptions.Builder

getTeradataOptionsOrBuilder()

public TeradataOptionsOrBuilder getTeradataOptionsOrBuilder()

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Returns
Type Description
TeradataOptionsOrBuilder

getTranslationExceptionTable()

public String getTranslationExceptionTable()

Specifies the exact name of the bigquery table ("dataset.table") to be used for surfacing raw translation errors. If the table does not exist, we will create it. If it already exists and the schema is the same, we will re-use. If the table exists and the schema is different, we will throw an error.

string translation_exception_table = 13;

Returns
Type Description
String

The translationExceptionTable.

getTranslationExceptionTableBytes()

public ByteString getTranslationExceptionTableBytes()

Specifies the exact name of the bigquery table ("dataset.table") to be used for surfacing raw translation errors. If the table does not exist, we will create it. If it already exists and the schema is the same, we will re-use. If the table exists and the schema is different, we will throw an error.

string translation_exception_table = 13;

Returns
Type Description
ByteString

The bytes for translationExceptionTable.

hasBteqOptions()

public boolean hasBteqOptions()

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Returns
Type Description
boolean

Whether the bteqOptions field is set.

hasFilter()

public boolean hasFilter()

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Returns
Type Description
boolean

Whether the filter field is set.

hasIdentifierSettings()

public boolean hasIdentifierSettings()

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Returns
Type Description
boolean

Whether the identifierSettings field is set.

hasTeradataOptions()

public boolean hasTeradataOptions()

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Returns
Type Description
boolean

Whether the teradataOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBteqOptions(BteqOptions value)

public TranslationTaskDetails.Builder mergeBteqOptions(BteqOptions value)

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Parameter
Name Description
value BteqOptions
Returns
Type Description
TranslationTaskDetails.Builder

mergeFilter(Filter value)

public TranslationTaskDetails.Builder mergeFilter(Filter value)

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Parameter
Name Description
value Filter
Returns
Type Description
TranslationTaskDetails.Builder

mergeFrom(TranslationTaskDetails other)

public TranslationTaskDetails.Builder mergeFrom(TranslationTaskDetails other)
Parameter
Name Description
other TranslationTaskDetails
Returns
Type Description
TranslationTaskDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TranslationTaskDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslationTaskDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TranslationTaskDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

mergeIdentifierSettings(IdentifierSettings value)

public TranslationTaskDetails.Builder mergeIdentifierSettings(IdentifierSettings value)

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Parameter
Name Description
value IdentifierSettings
Returns
Type Description
TranslationTaskDetails.Builder

mergeTeradataOptions(TeradataOptions value)

public TranslationTaskDetails.Builder mergeTeradataOptions(TeradataOptions value)

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Parameter
Name Description
value TeradataOptions
Returns
Type Description
TranslationTaskDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TranslationTaskDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

putAllSpecialTokenMap(Map<String,TranslationTaskDetails.TokenType> values)

public TranslationTaskDetails.Builder putAllSpecialTokenMap(Map<String,TranslationTaskDetails.TokenType> values)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameter
Name Description
values Map<String,TokenType>
Returns
Type Description
TranslationTaskDetails.Builder

putAllSpecialTokenMapValue(Map<String,Integer> values)

public TranslationTaskDetails.Builder putAllSpecialTokenMapValue(Map<String,Integer> values)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameter
Name Description
values Map<String,java.lang.Integer>
Returns
Type Description
TranslationTaskDetails.Builder

putSpecialTokenMap(String key, TranslationTaskDetails.TokenType value)

public TranslationTaskDetails.Builder putSpecialTokenMap(String key, TranslationTaskDetails.TokenType value)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameters
Name Description
key String
value TranslationTaskDetails.TokenType
Returns
Type Description
TranslationTaskDetails.Builder

putSpecialTokenMapValue(String key, int value)

public TranslationTaskDetails.Builder putSpecialTokenMapValue(String key, int value)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameters
Name Description
key String
value int
Returns
Type Description
TranslationTaskDetails.Builder

removeFilePaths(int index)

public TranslationTaskDetails.Builder removeFilePaths(int index)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameter
Name Description
index int
Returns
Type Description
TranslationTaskDetails.Builder

removeSpecialTokenMap(String key)

public TranslationTaskDetails.Builder removeSpecialTokenMap(String key)

The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.

map<string, .google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType> special_token_map = 6;

Parameter
Name Description
key String
Returns
Type Description
TranslationTaskDetails.Builder

setBteqOptions(BteqOptions value)

public TranslationTaskDetails.Builder setBteqOptions(BteqOptions value)

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Parameter
Name Description
value BteqOptions
Returns
Type Description
TranslationTaskDetails.Builder

setBteqOptions(BteqOptions.Builder builderForValue)

public TranslationTaskDetails.Builder setBteqOptions(BteqOptions.Builder builderForValue)

The BTEQ specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.BteqOptions bteq_options = 11;

Parameter
Name Description
builderForValue BteqOptions.Builder
Returns
Type Description
TranslationTaskDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TranslationTaskDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

setFileEncoding(TranslationTaskDetails.FileEncoding value)

public TranslationTaskDetails.Builder setFileEncoding(TranslationTaskDetails.FileEncoding value)

The file encoding type.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4;

Parameter
Name Description
value TranslationTaskDetails.FileEncoding

The fileEncoding to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setFileEncodingValue(int value)

public TranslationTaskDetails.Builder setFileEncodingValue(int value)

The file encoding type.

.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.FileEncoding file_encoding = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for fileEncoding to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setFilePaths(int index, TranslationFileMapping value)

public TranslationTaskDetails.Builder setFilePaths(int index, TranslationFileMapping value)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameters
Name Description
index int
value TranslationFileMapping
Returns
Type Description
TranslationTaskDetails.Builder

setFilePaths(int index, TranslationFileMapping.Builder builderForValue)

public TranslationTaskDetails.Builder setFilePaths(int index, TranslationFileMapping.Builder builderForValue)

Cloud Storage files to be processed for translation.

repeated .google.cloud.bigquery.migration.v2alpha.TranslationFileMapping file_paths = 12;

Parameters
Name Description
index int
builderForValue TranslationFileMapping.Builder
Returns
Type Description
TranslationTaskDetails.Builder

setFilter(Filter value)

public TranslationTaskDetails.Builder setFilter(Filter value)

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Parameter
Name Description
value Filter
Returns
Type Description
TranslationTaskDetails.Builder

setFilter(Filter.Builder builderForValue)

public TranslationTaskDetails.Builder setFilter(Filter.Builder builderForValue)

The filter applied to translation details.

.google.cloud.bigquery.migration.v2alpha.Filter filter = 7;

Parameter
Name Description
builderForValue Filter.Builder
Returns
Type Description
TranslationTaskDetails.Builder

setIdentifierSettings(IdentifierSettings value)

public TranslationTaskDetails.Builder setIdentifierSettings(IdentifierSettings value)

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Parameter
Name Description
value IdentifierSettings
Returns
Type Description
TranslationTaskDetails.Builder

setIdentifierSettings(IdentifierSettings.Builder builderForValue)

public TranslationTaskDetails.Builder setIdentifierSettings(IdentifierSettings.Builder builderForValue)

The settings for SQL identifiers.

.google.cloud.bigquery.migration.v2alpha.IdentifierSettings identifier_settings = 5;

Parameter
Name Description
builderForValue IdentifierSettings.Builder
Returns
Type Description
TranslationTaskDetails.Builder

setInputPath(String value)

public TranslationTaskDetails.Builder setInputPath(String value)

The Cloud Storage path for translation input files.

string input_path = 1;

Parameter
Name Description
value String

The inputPath to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setInputPathBytes(ByteString value)

public TranslationTaskDetails.Builder setInputPathBytes(ByteString value)

The Cloud Storage path for translation input files.

string input_path = 1;

Parameter
Name Description
value ByteString

The bytes for inputPath to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setOutputPath(String value)

public TranslationTaskDetails.Builder setOutputPath(String value)

The Cloud Storage path for translation output files.

string output_path = 2;

Parameter
Name Description
value String

The outputPath to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setOutputPathBytes(ByteString value)

public TranslationTaskDetails.Builder setOutputPathBytes(ByteString value)

The Cloud Storage path for translation output files.

string output_path = 2;

Parameter
Name Description
value ByteString

The bytes for outputPath to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TranslationTaskDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TranslationTaskDetails.Builder
Overrides

setSchemaPath(String value)

public TranslationTaskDetails.Builder setSchemaPath(String value)

The Cloud Storage path to DDL files as table schema to assist semantic translation.

string schema_path = 3;

Parameter
Name Description
value String

The schemaPath to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setSchemaPathBytes(ByteString value)

public TranslationTaskDetails.Builder setSchemaPathBytes(ByteString value)

The Cloud Storage path to DDL files as table schema to assist semantic translation.

string schema_path = 3;

Parameter
Name Description
value ByteString

The bytes for schemaPath to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setTeradataOptions(TeradataOptions value)

public TranslationTaskDetails.Builder setTeradataOptions(TeradataOptions value)

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Parameter
Name Description
value TeradataOptions
Returns
Type Description
TranslationTaskDetails.Builder

setTeradataOptions(TeradataOptions.Builder builderForValue)

public TranslationTaskDetails.Builder setTeradataOptions(TeradataOptions.Builder builderForValue)

The Teradata SQL specific settings for the translation task.

.google.cloud.bigquery.migration.v2alpha.TeradataOptions teradata_options = 10;

Parameter
Name Description
builderForValue TeradataOptions.Builder
Returns
Type Description
TranslationTaskDetails.Builder

setTranslationExceptionTable(String value)

public TranslationTaskDetails.Builder setTranslationExceptionTable(String value)

Specifies the exact name of the bigquery table ("dataset.table") to be used for surfacing raw translation errors. If the table does not exist, we will create it. If it already exists and the schema is the same, we will re-use. If the table exists and the schema is different, we will throw an error.

string translation_exception_table = 13;

Parameter
Name Description
value String

The translationExceptionTable to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setTranslationExceptionTableBytes(ByteString value)

public TranslationTaskDetails.Builder setTranslationExceptionTableBytes(ByteString value)

Specifies the exact name of the bigquery table ("dataset.table") to be used for surfacing raw translation errors. If the table does not exist, we will create it. If it already exists and the schema is the same, we will re-use. If the table exists and the schema is different, we will throw an error.

string translation_exception_table = 13;

Parameter
Name Description
value ByteString

The bytes for translationExceptionTable to set.

Returns
Type Description
TranslationTaskDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TranslationTaskDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TranslationTaskDetails.Builder
Overrides