Class TranslationDetails.Builder (0.52.0)

public static final class TranslationDetails.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

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

Methods

addAllSourceTargetMapping(Iterable<? extends SourceTargetMapping> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.migration.v2.SourceTargetMapping>
Returns
Type Description
TranslationDetails.Builder

addAllTargetReturnLiterals(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The targetReturnLiterals to add.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

addAllTargetTypes(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The targetTypes to add.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSourceTargetMapping(SourceTargetMapping value)

public TranslationDetails.Builder addSourceTargetMapping(SourceTargetMapping value)

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Parameter
Name Description
value SourceTargetMapping
Returns
Type Description
TranslationDetails.Builder

addSourceTargetMapping(SourceTargetMapping.Builder builderForValue)

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;

Parameter
Name Description
builderForValue SourceTargetMapping.Builder
Returns
Type Description
TranslationDetails.Builder

addSourceTargetMapping(int index, SourceTargetMapping value)

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;

Parameters
Name Description
index int
value SourceTargetMapping
Returns
Type Description
TranslationDetails.Builder

addSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue SourceTargetMapping.Builder
Returns
Type Description
TranslationDetails.Builder

addSourceTargetMappingBuilder()

public SourceTargetMapping.Builder addSourceTargetMappingBuilder()

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Returns
Type Description
SourceTargetMapping.Builder

addSourceTargetMappingBuilder(int index)

public SourceTargetMapping.Builder addSourceTargetMappingBuilder(int index)

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Parameter
Name Description
index int
Returns
Type Description
SourceTargetMapping.Builder

addTargetReturnLiterals(String value)

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;

Parameter
Name Description
value String

The targetReturnLiterals to add.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

addTargetReturnLiteralsBytes(ByteString value)

public TranslationDetails.Builder addTargetReturnLiteralsBytes(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;

Parameter
Name Description
value ByteString

The bytes of the targetReturnLiterals to add.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

addTargetTypes(String value)

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;

Parameter
Name Description
value String

The targetTypes to add.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

addTargetTypesBytes(ByteString value)

public TranslationDetails.Builder addTargetTypesBytes(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;

Parameter
Name Description
value ByteString

The bytes of the targetTypes to add.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

build()

public TranslationDetails build()
Returns
Type Description
TranslationDetails

buildPartial()

public TranslationDetails buildPartial()
Returns
Type Description
TranslationDetails

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceEnvironment()

public TranslationDetails.Builder clearSourceEnvironment()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Returns
Type Description
TranslationDetails.Builder

clearSourceTargetMapping()

public TranslationDetails.Builder clearSourceTargetMapping()

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Returns
Type Description
TranslationDetails.Builder

clearTargetBaseUri()

public TranslationDetails.Builder clearTargetBaseUri()

The base URI for all writes to persistent storage.

string target_base_uri = 2;

Returns
Type Description
TranslationDetails.Builder

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
Type Description
TranslationDetails.Builder

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
Type Description
TranslationDetails.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TranslationDetails getDefaultInstanceForType()
Returns
Type Description
TranslationDetails

getDescriptorForType()

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

getSourceEnvironment()

public SourceEnvironment getSourceEnvironment()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Returns
Type Description
SourceEnvironment

The sourceEnvironment.

getSourceEnvironmentBuilder()

public SourceEnvironment.Builder getSourceEnvironmentBuilder()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Returns
Type Description
SourceEnvironment.Builder

getSourceEnvironmentOrBuilder()

public SourceEnvironmentOrBuilder getSourceEnvironmentOrBuilder()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Returns
Type Description
SourceEnvironmentOrBuilder

getSourceTargetMapping(int index)

public SourceTargetMapping getSourceTargetMapping(int index)

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Parameter
Name Description
index int
Returns
Type Description
SourceTargetMapping

getSourceTargetMappingBuilder(int index)

public SourceTargetMapping.Builder getSourceTargetMappingBuilder(int index)

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Parameter
Name Description
index int
Returns
Type Description
SourceTargetMapping.Builder

getSourceTargetMappingBuilderList()

public List<SourceTargetMapping.Builder> getSourceTargetMappingBuilderList()

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Returns
Type Description
List<Builder>

getSourceTargetMappingCount()

public int getSourceTargetMappingCount()

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Returns
Type Description
int

getSourceTargetMappingList()

public List<SourceTargetMapping> getSourceTargetMappingList()

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Returns
Type Description
List<SourceTargetMapping>

getSourceTargetMappingOrBuilder(int index)

public SourceTargetMappingOrBuilder getSourceTargetMappingOrBuilder(int index)

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Parameter
Name Description
index int
Returns
Type Description
SourceTargetMappingOrBuilder

getSourceTargetMappingOrBuilderList()

public List<? extends SourceTargetMappingOrBuilder> getSourceTargetMappingOrBuilderList()

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Returns
Type Description
List<? extends com.google.cloud.bigquery.migration.v2.SourceTargetMappingOrBuilder>

getTargetBaseUri()

public String getTargetBaseUri()

The base URI for all writes to persistent storage.

string target_base_uri = 2;

Returns
Type Description
String

The targetBaseUri.

getTargetBaseUriBytes()

public ByteString getTargetBaseUriBytes()

The base URI for all writes to persistent storage.

string target_base_uri = 2;

Returns
Type Description
ByteString

The bytes for targetBaseUri.

getTargetReturnLiterals(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetReturnLiterals at the given index.

getTargetReturnLiteralsBytes(int index)

public 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetReturnLiterals at the given index.

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;

Returns
Type Description
int

The count of targetReturnLiterals.

getTargetReturnLiteralsList()

public 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;

Returns
Type Description
ProtocolStringList

A list containing the targetReturnLiterals.

getTargetTypes(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetTypes at the given index.

getTargetTypesBytes(int index)

public 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetTypes at the given index.

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;

Returns
Type Description
int

The count of targetTypes.

getTargetTypesList()

public 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;

Returns
Type Description
ProtocolStringList

A list containing the targetTypes.

hasSourceEnvironment()

public boolean hasSourceEnvironment()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Returns
Type Description
boolean

Whether the sourceEnvironment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TranslationDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSourceEnvironment(SourceEnvironment value)

public TranslationDetails.Builder mergeSourceEnvironment(SourceEnvironment value)

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Parameter
Name Description
value SourceEnvironment
Returns
Type Description
TranslationDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSourceTargetMapping(int index)

public TranslationDetails.Builder removeSourceTargetMapping(int index)

The mapping from source to target SQL.

repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;

Parameter
Name Description
index int
Returns
Type Description
TranslationDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceEnvironment(SourceEnvironment value)

public TranslationDetails.Builder setSourceEnvironment(SourceEnvironment value)

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Parameter
Name Description
value SourceEnvironment
Returns
Type Description
TranslationDetails.Builder

setSourceEnvironment(SourceEnvironment.Builder builderForValue)

public TranslationDetails.Builder setSourceEnvironment(SourceEnvironment.Builder builderForValue)

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;

Parameter
Name Description
builderForValue SourceEnvironment.Builder
Returns
Type Description
TranslationDetails.Builder

setSourceTargetMapping(int index, SourceTargetMapping value)

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;

Parameters
Name Description
index int
value SourceTargetMapping
Returns
Type Description
TranslationDetails.Builder

setSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue SourceTargetMapping.Builder
Returns
Type Description
TranslationDetails.Builder

setTargetBaseUri(String value)

public TranslationDetails.Builder setTargetBaseUri(String value)

The base URI for all writes to persistent storage.

string target_base_uri = 2;

Parameter
Name Description
value String

The targetBaseUri to set.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

setTargetBaseUriBytes(ByteString value)

public TranslationDetails.Builder setTargetBaseUriBytes(ByteString value)

The base URI for all writes to persistent storage.

string target_base_uri = 2;

Parameter
Name Description
value ByteString

The bytes for targetBaseUri to set.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

setTargetReturnLiterals(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The targetReturnLiterals to set.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

setTargetTypes(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The targetTypes to set.

Returns
Type Description
TranslationDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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