Class TranslationDetails (0.58.0)

public final class TranslationDetails extends GeneratedMessageV3 implements TranslationDetailsOrBuilder

The translation details to capture the necessary settings for a translation job.

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

Static Fields

SOURCE_ENVIRONMENT_FIELD_NUMBER

public static final int SOURCE_ENVIRONMENT_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_TARGET_MAPPING_FIELD_NUMBER

public static final int SOURCE_TARGET_MAPPING_FIELD_NUMBER
Field Value
Type Description
int

TARGET_BASE_URI_FIELD_NUMBER

public static final int TARGET_BASE_URI_FIELD_NUMBER
Field Value
Type Description
int

TARGET_RETURN_LITERALS_FIELD_NUMBER

public static final int TARGET_RETURN_LITERALS_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 TranslationDetails getDefaultInstance()
Returns
Type Description
TranslationDetails

getDescriptor()

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

newBuilder()

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

newBuilder(TranslationDetails prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TranslationDetails getDefaultInstanceForType()
Returns
Type Description
TranslationDetails

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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

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.

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 TranslationDetails.Builder newBuilderForType()
Returns
Type Description
TranslationDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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