Class TranslationConfigDetails (0.58.0)

public final class TranslationConfigDetails extends GeneratedMessageV3 implements TranslationConfigDetailsOrBuilder

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

Protobuf type google.cloud.bigquery.migration.v2.TranslationConfigDetails

Static Fields

GCS_SOURCE_PATH_FIELD_NUMBER

public static final int GCS_SOURCE_PATH_FIELD_NUMBER
Field Value
Type Description
int

GCS_TARGET_PATH_FIELD_NUMBER

public static final int GCS_TARGET_PATH_FIELD_NUMBER
Field Value
Type Description
int

NAME_MAPPING_LIST_FIELD_NUMBER

public static final int NAME_MAPPING_LIST_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_SOURCE_FIELD_NUMBER

public static final int REQUEST_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_DIALECT_FIELD_NUMBER

public static final int SOURCE_DIALECT_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_ENV_FIELD_NUMBER

public static final int SOURCE_ENV_FIELD_NUMBER
Field Value
Type Description
int

TARGET_DIALECT_FIELD_NUMBER

public static final int TARGET_DIALECT_FIELD_NUMBER
Field Value
Type Description
int

TARGET_TYPES_FIELD_NUMBER

public static final int TARGET_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TranslationConfigDetails getDefaultInstance()
Returns
Type Description
TranslationConfigDetails

getDescriptor()

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

newBuilder()

public static TranslationConfigDetails.Builder newBuilder()
Returns
Type Description
TranslationConfigDetails.Builder

newBuilder(TranslationConfigDetails prototype)

public static TranslationConfigDetails.Builder newBuilder(TranslationConfigDetails prototype)
Parameter
Name Description
prototype TranslationConfigDetails
Returns
Type Description
TranslationConfigDetails.Builder

parseDelimitedFrom(InputStream input)

public static TranslationConfigDetails parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationConfigDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TranslationConfigDetails parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TranslationConfigDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TranslationConfigDetails parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TranslationConfigDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TranslationConfigDetails parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationConfigDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TranslationConfigDetails parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationConfigDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TranslationConfigDetails parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TranslationConfigDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranslationConfigDetails
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TranslationConfigDetails> parser()
Returns
Type Description
Parser<TranslationConfigDetails>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TranslationConfigDetails getDefaultInstanceForType()
Returns
Type Description
TranslationConfigDetails

getGcsSourcePath()

public String getGcsSourcePath()

The Cloud Storage path for a directory of files to translate in a task.

string gcs_source_path = 1;

Returns
Type Description
String

The gcsSourcePath.

getGcsSourcePathBytes()

public ByteString getGcsSourcePathBytes()

The Cloud Storage path for a directory of files to translate in a task.

string gcs_source_path = 1;

Returns
Type Description
ByteString

The bytes for gcsSourcePath.

getGcsTargetPath()

public String getGcsTargetPath()

The Cloud Storage path to write back the corresponding input files to.

string gcs_target_path = 2;

Returns
Type Description
String

The gcsTargetPath.

getGcsTargetPathBytes()

public ByteString getGcsTargetPathBytes()

The Cloud Storage path to write back the corresponding input files to.

string gcs_target_path = 2;

Returns
Type Description
ByteString

The bytes for gcsTargetPath.

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;

Returns
Type Description
ObjectNameMappingList

The nameMappingList.

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;

Returns
Type Description
ObjectNameMappingListOrBuilder

getOutputNameMappingCase()

public TranslationConfigDetails.OutputNameMappingCase getOutputNameMappingCase()
Returns
Type Description
TranslationConfigDetails.OutputNameMappingCase

getParserForType()

public Parser<TranslationConfigDetails> getParserForType()
Returns
Type Description
Parser<TranslationConfigDetails>
Overrides

getRequestSource()

public String getRequestSource()

The indicator to show translation request initiator.

string request_source = 8;

Returns
Type Description
String

The requestSource.

getRequestSourceBytes()

public ByteString getRequestSourceBytes()

The indicator to show translation request initiator.

string request_source = 8;

Returns
Type Description
ByteString

The bytes for requestSource.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceDialect()

public Dialect getSourceDialect()

The dialect of the input files.

.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;

Returns
Type Description
Dialect

The sourceDialect.

getSourceDialectOrBuilder()

public DialectOrBuilder getSourceDialectOrBuilder()

The dialect of the input files.

.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;

Returns
Type Description
DialectOrBuilder

getSourceEnv()

public SourceEnv getSourceEnv()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;

Returns
Type Description
SourceEnv

The sourceEnv.

getSourceEnvOrBuilder()

public SourceEnvOrBuilder getSourceEnvOrBuilder()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;

Returns
Type Description
SourceEnvOrBuilder

getSourceLocationCase()

public TranslationConfigDetails.SourceLocationCase getSourceLocationCase()
Returns
Type Description
TranslationConfigDetails.SourceLocationCase

getTargetDialect()

public Dialect getTargetDialect()

The target dialect for the engine to translate the input to.

.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;

Returns
Type Description
Dialect

The targetDialect.

getTargetDialectOrBuilder()

public DialectOrBuilder getTargetDialectOrBuilder()

The target dialect for the engine to translate the input to.

.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;

Returns
Type Description
DialectOrBuilder

getTargetLocationCase()

public TranslationConfigDetails.TargetLocationCase getTargetLocationCase()
Returns
Type Description
TranslationConfigDetails.TargetLocationCase

getTargetTypes(int index)

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;

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

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 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
Type Description
int

The count of targetTypes.

getTargetTypesList()

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

Returns
Type Description
ProtocolStringList

A list containing the targetTypes.

hasGcsSourcePath()

public boolean hasGcsSourcePath()

The Cloud Storage path for a directory of files to translate in a task.

string gcs_source_path = 1;

Returns
Type Description
boolean

Whether the gcsSourcePath field is set.

hasGcsTargetPath()

public boolean hasGcsTargetPath()

The Cloud Storage path to write back the corresponding input files to.

string gcs_target_path = 2;

Returns
Type Description
boolean

Whether the gcsTargetPath field is set.

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;

Returns
Type Description
boolean

Whether the nameMappingList field is set.

hasSourceDialect()

public boolean hasSourceDialect()

The dialect of the input files.

.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;

Returns
Type Description
boolean

Whether the sourceDialect field is set.

hasSourceEnv()

public boolean hasSourceEnv()

The default source environment values for the translation.

.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;

Returns
Type Description
boolean

Whether the sourceEnv field is set.

hasTargetDialect()

public boolean hasTargetDialect()

The target dialect for the engine to translate the input to.

.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;

Returns
Type Description
boolean

Whether the targetDialect field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TranslationConfigDetails.Builder newBuilderForType()
Returns
Type Description
TranslationConfigDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TranslationConfigDetails.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TranslationConfigDetails.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TranslationConfigDetails.Builder toBuilder()
Returns
Type Description
TranslationConfigDetails.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException