Class TranslationDetails.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TranslationDetails.Builder>
com.google.cloud.bigquery.migration.v2.TranslationDetails.Builder
- All Implemented Interfaces:
TranslationDetailsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TranslationDetails
public static final class TranslationDetails.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TranslationDetails.Builder>
implements TranslationDetailsOrBuilder
The translation details to capture the necessary settings for a translation job.Protobuf type
google.cloud.bigquery.migration.v2.TranslationDetails-
Method Summary
Modifier and TypeMethodDescriptionaddAllSourceTargetMapping(Iterable<? extends SourceTargetMapping> values) The mapping from source to target SQL.addAllTargetReturnLiterals(Iterable<String> values) The list of literal targets that will be directly returned to the response.addAllTargetTypes(Iterable<String> values) The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.addSourceTargetMapping(int index, SourceTargetMapping value) The mapping from source to target SQL.addSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue) The mapping from source to target SQL.The mapping from source to target SQL.addSourceTargetMapping(SourceTargetMapping.Builder builderForValue) The mapping from source to target SQL.The mapping from source to target SQL.addSourceTargetMappingBuilder(int index) The mapping from source to target SQL.addTargetReturnLiterals(String value) The list of literal targets that will be directly returned to the response.addTargetReturnLiteralsBytes(com.google.protobuf.ByteString value) The list of literal targets that will be directly returned to the response.addTargetTypes(String value) The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.addTargetTypesBytes(com.google.protobuf.ByteString value) The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.build()clear()The default source environment values for the translation.The mapping from source to target SQL.The base URI for all writes to persistent storage.The list of literal targets that will be directly returned to the response.The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe default source environment values for the translation.The default source environment values for the translation.The default source environment values for the translation.getSourceTargetMapping(int index) The mapping from source to target SQL.getSourceTargetMappingBuilder(int index) The mapping from source to target SQL.The mapping from source to target SQL.intThe mapping from source to target SQL.The mapping from source to target SQL.getSourceTargetMappingOrBuilder(int index) The mapping from source to target SQL.List<? extends SourceTargetMappingOrBuilder>The mapping from source to target SQL.The base URI for all writes to persistent storage.com.google.protobuf.ByteStringThe base URI for all writes to persistent storage.getTargetReturnLiterals(int index) The list of literal targets that will be directly returned to the response.com.google.protobuf.ByteStringgetTargetReturnLiteralsBytes(int index) The list of literal targets that will be directly returned to the response.intThe list of literal targets that will be directly returned to the response.com.google.protobuf.ProtocolStringListThe list of literal targets that will be directly returned to the response.getTargetTypes(int index) The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.com.google.protobuf.ByteStringgetTargetTypesBytes(int index) The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.intThe types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.com.google.protobuf.ProtocolStringListThe types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.booleanThe default source environment values for the translation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TranslationDetails other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The default source environment values for the translation.removeSourceTargetMapping(int index) The mapping from source to target SQL.The default source environment values for the translation.setSourceEnvironment(SourceEnvironment.Builder builderForValue) The default source environment values for the translation.setSourceTargetMapping(int index, SourceTargetMapping value) The mapping from source to target SQL.setSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue) The mapping from source to target SQL.setTargetBaseUri(String value) The base URI for all writes to persistent storage.setTargetBaseUriBytes(com.google.protobuf.ByteString value) The base URI for all writes to persistent storage.setTargetReturnLiterals(int index, String value) The list of literal targets that will be directly returned to the response.setTargetTypes(int index, String value) The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TranslationDetails.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TranslationDetails.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TranslationDetails.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TranslationDetails.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TranslationDetails.Builder>
-
mergeFrom
public TranslationDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TranslationDetails.Builder>- Throws:
IOException
-
getSourceTargetMappingList
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;- Specified by:
getSourceTargetMappingListin interfaceTranslationDetailsOrBuilder
-
getSourceTargetMappingCount
public int getSourceTargetMappingCount()The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;- Specified by:
getSourceTargetMappingCountin interfaceTranslationDetailsOrBuilder
-
getSourceTargetMapping
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;- Specified by:
getSourceTargetMappingin interfaceTranslationDetailsOrBuilder
-
setSourceTargetMapping
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
setSourceTargetMapping
public TranslationDetails.Builder setSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue) The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
addSourceTargetMapping
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
addSourceTargetMapping
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
addSourceTargetMapping
public TranslationDetails.Builder addSourceTargetMapping(SourceTargetMapping.Builder builderForValue) The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
addSourceTargetMapping
public TranslationDetails.Builder addSourceTargetMapping(int index, SourceTargetMapping.Builder builderForValue) The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
addAllSourceTargetMapping
public TranslationDetails.Builder addAllSourceTargetMapping(Iterable<? extends SourceTargetMapping> values) The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
clearSourceTargetMapping
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
removeSourceTargetMapping
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
getSourceTargetMappingBuilder
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
getSourceTargetMappingOrBuilder
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;- Specified by:
getSourceTargetMappingOrBuilderin interfaceTranslationDetailsOrBuilder
-
getSourceTargetMappingOrBuilderList
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1;- Specified by:
getSourceTargetMappingOrBuilderListin interfaceTranslationDetailsOrBuilder
-
addSourceTargetMappingBuilder
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
addSourceTargetMappingBuilder
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
getSourceTargetMappingBuilderList
The mapping from source to target SQL.
repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; -
getTargetBaseUri
The base URI for all writes to persistent storage.
string target_base_uri = 2;- Specified by:
getTargetBaseUriin interfaceTranslationDetailsOrBuilder- Returns:
- The targetBaseUri.
-
getTargetBaseUriBytes
public com.google.protobuf.ByteString getTargetBaseUriBytes()The base URI for all writes to persistent storage.
string target_base_uri = 2;- Specified by:
getTargetBaseUriBytesin interfaceTranslationDetailsOrBuilder- Returns:
- The bytes for targetBaseUri.
-
setTargetBaseUri
The base URI for all writes to persistent storage.
string target_base_uri = 2;- Parameters:
value- The targetBaseUri to set.- Returns:
- This builder for chaining.
-
clearTargetBaseUri
The base URI for all writes to persistent storage.
string target_base_uri = 2;- Returns:
- This builder for chaining.
-
setTargetBaseUriBytes
The base URI for all writes to persistent storage.
string target_base_uri = 2;- Parameters:
value- The bytes for targetBaseUri to set.- Returns:
- This builder for chaining.
-
hasSourceEnvironment
public boolean hasSourceEnvironment()The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;- Specified by:
hasSourceEnvironmentin interfaceTranslationDetailsOrBuilder- Returns:
- Whether the sourceEnvironment field is set.
-
getSourceEnvironment
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;- Specified by:
getSourceEnvironmentin interfaceTranslationDetailsOrBuilder- Returns:
- The sourceEnvironment.
-
setSourceEnvironment
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; -
setSourceEnvironment
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; -
mergeSourceEnvironment
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; -
clearSourceEnvironment
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; -
getSourceEnvironmentBuilder
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; -
getSourceEnvironmentOrBuilder
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3;- Specified by:
getSourceEnvironmentOrBuilderin interfaceTranslationDetailsOrBuilder
-
getTargetReturnLiteralsList
public com.google.protobuf.ProtocolStringList getTargetReturnLiteralsList()The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Specified by:
getTargetReturnLiteralsListin interfaceTranslationDetailsOrBuilder- Returns:
- A list containing the targetReturnLiterals.
-
getTargetReturnLiteralsCount
public int getTargetReturnLiteralsCount()The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Specified by:
getTargetReturnLiteralsCountin interfaceTranslationDetailsOrBuilder- Returns:
- The count of targetReturnLiterals.
-
getTargetReturnLiterals
The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Specified by:
getTargetReturnLiteralsin interfaceTranslationDetailsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetReturnLiterals at the given index.
-
getTargetReturnLiteralsBytes
public com.google.protobuf.ByteString getTargetReturnLiteralsBytes(int index) The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Specified by:
getTargetReturnLiteralsBytesin interfaceTranslationDetailsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetReturnLiterals at the given index.
-
setTargetReturnLiterals
The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Parameters:
index- The index to set the value at.value- The targetReturnLiterals to set.- Returns:
- This builder for chaining.
-
addTargetReturnLiterals
The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Parameters:
value- The targetReturnLiterals to add.- Returns:
- This builder for chaining.
-
addAllTargetReturnLiterals
The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Parameters:
values- The targetReturnLiterals to add.- Returns:
- This builder for chaining.
-
clearTargetReturnLiterals
The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Returns:
- This builder for chaining.
-
addTargetReturnLiteralsBytes
public TranslationDetails.Builder addTargetReturnLiteralsBytes(com.google.protobuf.ByteString value) The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
repeated string target_return_literals = 4;- Parameters:
value- The bytes of the targetReturnLiterals to add.- Returns:
- This builder for chaining.
-
getTargetTypesList
public com.google.protobuf.ProtocolStringList getTargetTypesList()The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Specified by:
getTargetTypesListin interfaceTranslationDetailsOrBuilder- Returns:
- A list containing the targetTypes.
-
getTargetTypesCount
public int getTargetTypesCount()The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Specified by:
getTargetTypesCountin interfaceTranslationDetailsOrBuilder- Returns:
- The count of targetTypes.
-
getTargetTypes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Specified by:
getTargetTypesin interfaceTranslationDetailsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetTypes at the given index.
-
getTargetTypesBytes
public com.google.protobuf.ByteString getTargetTypesBytes(int index) The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Specified by:
getTargetTypesBytesin interfaceTranslationDetailsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetTypes at the given index.
-
setTargetTypes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Parameters:
index- The index to set the value at.value- The targetTypes to set.- Returns:
- This builder for chaining.
-
addTargetTypes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Parameters:
value- The targetTypes to add.- Returns:
- This builder for chaining.
-
addAllTargetTypes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Parameters:
values- The targetTypes to add.- Returns:
- This builder for chaining.
-
clearTargetTypes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Returns:
- This builder for chaining.
-
addTargetTypesBytes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
repeated string target_types = 5;- Parameters:
value- The bytes of the targetTypes to add.- Returns:
- This builder for chaining.
-