Class TranslationConfigDetails.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TranslationConfigDetails.Builder>
com.google.cloud.bigquery.migration.v2.TranslationConfigDetails.Builder
- All Implemented Interfaces:
TranslationConfigDetailsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TranslationConfigDetails
public static final class TranslationConfigDetails.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TranslationConfigDetails.Builder>
implements TranslationConfigDetailsOrBuilder
The translation config to capture necessary settings for a translation task and subtask.Protobuf type
google.cloud.bigquery.migration.v2.TranslationConfigDetails-
Method Summary
Modifier and TypeMethodDescriptionaddAllTargetTypes(Iterable<String> values) The types of output to generate, e.g. sql, metadata etc.addTargetTypes(String value) The types of output to generate, e.g. sql, metadata etc.addTargetTypesBytes(com.google.protobuf.ByteString value) The types of output to generate, e.g. sql, metadata etc.build()clear()The Cloud Storage path for a directory of files to translate in a task.The Cloud Storage path to write back the corresponding input files to.The mapping of objects to their desired output names in list form.The indicator to show translation request initiator.The dialect of the input files.The default source environment values for the translation.The target dialect for the engine to translate the input to.The types of output to generate, e.g. sql, metadata etc.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Cloud Storage path for a directory of files to translate in a task.com.google.protobuf.ByteStringThe Cloud Storage path for a directory of files to translate in a task.The Cloud Storage path to write back the corresponding input files to.com.google.protobuf.ByteStringThe Cloud Storage path to write back the corresponding input files to.The mapping of objects to their desired output names in list form.The mapping of objects to their desired output names in list form.The mapping of objects to their desired output names in list form.The indicator to show translation request initiator.com.google.protobuf.ByteStringThe indicator to show translation request initiator.The dialect of the input files.The dialect of the input files.The dialect of the input files.The default source environment values for the translation.The default source environment values for the translation.The default source environment values for the translation.The target dialect for the engine to translate the input to.The target dialect for the engine to translate the input to.The target dialect for the engine to translate the input to.getTargetTypes(int index) The types of output to generate, e.g. sql, metadata etc.com.google.protobuf.ByteStringgetTargetTypesBytes(int index) The types of output to generate, e.g. sql, metadata etc.intThe types of output to generate, e.g. sql, metadata etc.com.google.protobuf.ProtocolStringListThe types of output to generate, e.g. sql, metadata etc.booleanThe Cloud Storage path for a directory of files to translate in a task.booleanThe Cloud Storage path to write back the corresponding input files to.booleanThe mapping of objects to their desired output names in list form.booleanThe dialect of the input files.booleanThe default source environment values for the translation.booleanThe target dialect for the engine to translate the input to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The mapping of objects to their desired output names in list form.mergeSourceDialect(Dialect value) The dialect of the input files.mergeSourceEnv(SourceEnv value) The default source environment values for the translation.mergeTargetDialect(Dialect value) The target dialect for the engine to translate the input to.setGcsSourcePath(String value) The Cloud Storage path for a directory of files to translate in a task.setGcsSourcePathBytes(com.google.protobuf.ByteString value) The Cloud Storage path for a directory of files to translate in a task.setGcsTargetPath(String value) The Cloud Storage path to write back the corresponding input files to.setGcsTargetPathBytes(com.google.protobuf.ByteString value) The Cloud Storage path to write back the corresponding input files to.The mapping of objects to their desired output names in list form.setNameMappingList(ObjectNameMappingList.Builder builderForValue) The mapping of objects to their desired output names in list form.setRequestSource(String value) The indicator to show translation request initiator.setRequestSourceBytes(com.google.protobuf.ByteString value) The indicator to show translation request initiator.setSourceDialect(Dialect value) The dialect of the input files.setSourceDialect(Dialect.Builder builderForValue) The dialect of the input files.setSourceEnv(SourceEnv value) The default source environment values for the translation.setSourceEnv(SourceEnv.Builder builderForValue) The default source environment values for the translation.setTargetDialect(Dialect value) The target dialect for the engine to translate the input to.setTargetDialect(Dialect.Builder builderForValue) The target dialect for the engine to translate the input to.setTargetTypes(int index, String value) The types of output to generate, e.g. sql, metadata 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<TranslationConfigDetails.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<TranslationConfigDetails.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<TranslationConfigDetails.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<TranslationConfigDetails.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TranslationConfigDetails.Builder>
-
mergeFrom
public TranslationConfigDetails.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<TranslationConfigDetails.Builder>- Throws:
IOException
-
getSourceLocationCase
- Specified by:
getSourceLocationCasein interfaceTranslationConfigDetailsOrBuilder
-
clearSourceLocation
-
getTargetLocationCase
- Specified by:
getTargetLocationCasein interfaceTranslationConfigDetailsOrBuilder
-
clearTargetLocation
-
getOutputNameMappingCase
- Specified by:
getOutputNameMappingCasein interfaceTranslationConfigDetailsOrBuilder
-
clearOutputNameMapping
-
hasGcsSourcePath
public boolean hasGcsSourcePath()The Cloud Storage path for a directory of files to translate in a task.
string gcs_source_path = 1;- Specified by:
hasGcsSourcePathin interfaceTranslationConfigDetailsOrBuilder- Returns:
- Whether the gcsSourcePath field is set.
-
getGcsSourcePath
The Cloud Storage path for a directory of files to translate in a task.
string gcs_source_path = 1;- Specified by:
getGcsSourcePathin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The gcsSourcePath.
-
getGcsSourcePathBytes
public com.google.protobuf.ByteString getGcsSourcePathBytes()The Cloud Storage path for a directory of files to translate in a task.
string gcs_source_path = 1;- Specified by:
getGcsSourcePathBytesin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The bytes for gcsSourcePath.
-
setGcsSourcePath
The Cloud Storage path for a directory of files to translate in a task.
string gcs_source_path = 1;- Parameters:
value- The gcsSourcePath to set.- Returns:
- This builder for chaining.
-
clearGcsSourcePath
The Cloud Storage path for a directory of files to translate in a task.
string gcs_source_path = 1;- Returns:
- This builder for chaining.
-
setGcsSourcePathBytes
The Cloud Storage path for a directory of files to translate in a task.
string gcs_source_path = 1;- Parameters:
value- The bytes for gcsSourcePath to set.- Returns:
- This builder for chaining.
-
hasGcsTargetPath
public boolean hasGcsTargetPath()The Cloud Storage path to write back the corresponding input files to.
string gcs_target_path = 2;- Specified by:
hasGcsTargetPathin interfaceTranslationConfigDetailsOrBuilder- Returns:
- Whether the gcsTargetPath field is set.
-
getGcsTargetPath
The Cloud Storage path to write back the corresponding input files to.
string gcs_target_path = 2;- Specified by:
getGcsTargetPathin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The gcsTargetPath.
-
getGcsTargetPathBytes
public com.google.protobuf.ByteString getGcsTargetPathBytes()The Cloud Storage path to write back the corresponding input files to.
string gcs_target_path = 2;- Specified by:
getGcsTargetPathBytesin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The bytes for gcsTargetPath.
-
setGcsTargetPath
The Cloud Storage path to write back the corresponding input files to.
string gcs_target_path = 2;- Parameters:
value- The gcsTargetPath to set.- Returns:
- This builder for chaining.
-
clearGcsTargetPath
The Cloud Storage path to write back the corresponding input files to.
string gcs_target_path = 2;- Returns:
- This builder for chaining.
-
setGcsTargetPathBytes
The Cloud Storage path to write back the corresponding input files to.
string gcs_target_path = 2;- Parameters:
value- The bytes for gcsTargetPath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasNameMappingListin interfaceTranslationConfigDetailsOrBuilder- Returns:
- Whether the nameMappingList field is set.
-
getNameMappingList
The mapping of objects to their desired output names in list form.
.google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;- Specified by:
getNameMappingListin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The nameMappingList.
-
setNameMappingList
The mapping of objects to their desired output names in list form.
.google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; -
setNameMappingList
public TranslationConfigDetails.Builder setNameMappingList(ObjectNameMappingList.Builder builderForValue) The mapping of objects to their desired output names in list form.
.google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; -
mergeNameMappingList
The mapping of objects to their desired output names in list form.
.google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; -
clearNameMappingList
The mapping of objects to their desired output names in list form.
.google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; -
getNameMappingListBuilder
The mapping of objects to their desired output names in list form.
.google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; -
getNameMappingListOrBuilder
The mapping of objects to their desired output names in list form.
.google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5;- Specified by:
getNameMappingListOrBuilderin interfaceTranslationConfigDetailsOrBuilder
-
hasSourceDialect
public boolean hasSourceDialect()The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;- Specified by:
hasSourceDialectin interfaceTranslationConfigDetailsOrBuilder- Returns:
- Whether the sourceDialect field is set.
-
getSourceDialect
The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;- Specified by:
getSourceDialectin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The sourceDialect.
-
setSourceDialect
The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; -
setSourceDialect
The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; -
mergeSourceDialect
The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; -
clearSourceDialect
The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; -
getSourceDialectBuilder
The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; -
getSourceDialectOrBuilder
The dialect of the input files.
.google.cloud.bigquery.migration.v2.Dialect source_dialect = 3;- Specified by:
getSourceDialectOrBuilderin interfaceTranslationConfigDetailsOrBuilder
-
hasTargetDialect
public boolean hasTargetDialect()The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;- Specified by:
hasTargetDialectin interfaceTranslationConfigDetailsOrBuilder- Returns:
- Whether the targetDialect field is set.
-
getTargetDialect
The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;- Specified by:
getTargetDialectin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The targetDialect.
-
setTargetDialect
The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; -
setTargetDialect
The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; -
mergeTargetDialect
The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; -
clearTargetDialect
The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; -
getTargetDialectBuilder
The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; -
getTargetDialectOrBuilder
The target dialect for the engine to translate the input to.
.google.cloud.bigquery.migration.v2.Dialect target_dialect = 4;- Specified by:
getTargetDialectOrBuilderin interfaceTranslationConfigDetailsOrBuilder
-
hasSourceEnv
public boolean hasSourceEnv()The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;- Specified by:
hasSourceEnvin interfaceTranslationConfigDetailsOrBuilder- Returns:
- Whether the sourceEnv field is set.
-
getSourceEnv
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;- Specified by:
getSourceEnvin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The sourceEnv.
-
setSourceEnv
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; -
setSourceEnv
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; -
mergeSourceEnv
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; -
clearSourceEnv
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; -
getSourceEnvBuilder
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; -
getSourceEnvOrBuilder
The default source environment values for the translation.
.google.cloud.bigquery.migration.v2.SourceEnv source_env = 6;- Specified by:
getSourceEnvOrBuilderin interfaceTranslationConfigDetailsOrBuilder
-
getRequestSource
The indicator to show translation request initiator.
string request_source = 8;- Specified by:
getRequestSourcein interfaceTranslationConfigDetailsOrBuilder- Returns:
- The requestSource.
-
getRequestSourceBytes
public com.google.protobuf.ByteString getRequestSourceBytes()The indicator to show translation request initiator.
string request_source = 8;- Specified by:
getRequestSourceBytesin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The bytes for requestSource.
-
setRequestSource
The indicator to show translation request initiator.
string request_source = 8;- Parameters:
value- The requestSource to set.- Returns:
- This builder for chaining.
-
clearRequestSource
The indicator to show translation request initiator.
string request_source = 8;- Returns:
- This builder for chaining.
-
setRequestSourceBytes
The indicator to show translation request initiator.
string request_source = 8;- Parameters:
value- The bytes for requestSource to set.- Returns:
- This builder for chaining.
-
getTargetTypesList
public com.google.protobuf.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;- Specified by:
getTargetTypesListin interfaceTranslationConfigDetailsOrBuilder- Returns:
- A list containing the targetTypes.
-
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;- Specified by:
getTargetTypesCountin interfaceTranslationConfigDetailsOrBuilder- Returns:
- The count of targetTypes.
-
getTargetTypes
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;- Specified by:
getTargetTypesin interfaceTranslationConfigDetailsOrBuilder- 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 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;- Specified by:
getTargetTypesBytesin interfaceTranslationConfigDetailsOrBuilder- 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 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;- 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 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;- Parameters:
value- The targetTypes to add.- Returns:
- This builder for chaining.
-
addAllTargetTypes
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;- Parameters:
values- The targetTypes to add.- Returns:
- This builder for chaining.
-
clearTargetTypes
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:
- This builder for chaining.
-
addTargetTypesBytes
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;- Parameters:
value- The bytes of the targetTypes to add.- Returns:
- This builder for chaining.
-