Class BteqOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
- com.google.cloud.bigquery.migration.v2alpha.BteqOptions.Builder
-
- All Implemented Interfaces:
BteqOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BteqOptions
public static final class BteqOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder> implements BteqOptionsOrBuilder
BTEQ translation task related settings.
Protobuf typegoogle.cloud.bigquery.migration.v2alpha.BteqOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BteqOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BteqOptionsbuild()BteqOptionsbuildPartial()BteqOptions.Builderclear()BteqOptions.BuilderclearDefaultPathUri()The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.BteqOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BteqOptions.BuilderclearFileReplacementMap()BteqOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BteqOptions.BuilderclearProjectDataset()Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.BteqOptions.Builderclone()booleancontainsFileReplacementMap(String key)Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).BteqOptionsgetDefaultInstanceForType()StringgetDefaultPathUri()The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.com.google.protobuf.ByteStringgetDefaultPathUriBytes()The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getFileReplacementMap()Deprecated.intgetFileReplacementMapCount()Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).Map<String,String>getFileReplacementMapMap()Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).StringgetFileReplacementMapOrDefault(String key, String defaultValue)Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).StringgetFileReplacementMapOrThrow(String key)Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).Map<String,String>getMutableFileReplacementMap()Deprecated.DatasetReferencegetProjectDataset()Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.DatasetReference.BuildergetProjectDatasetBuilder()Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.DatasetReferenceOrBuildergetProjectDatasetOrBuilder()Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.booleanhasProjectDataset()Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()BteqOptions.BuildermergeFrom(BteqOptions other)BteqOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BteqOptions.BuildermergeFrom(com.google.protobuf.Message other)BteqOptions.BuildermergeProjectDataset(DatasetReference value)Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.BteqOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BteqOptions.BuilderputAllFileReplacementMap(Map<String,String> values)Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).BteqOptions.BuilderputFileReplacementMap(String key, String value)Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).BteqOptions.BuilderremoveFileReplacementMap(String key)Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).BteqOptions.BuildersetDefaultPathUri(String value)The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.BteqOptions.BuildersetDefaultPathUriBytes(com.google.protobuf.ByteString value)The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.BteqOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BteqOptions.BuildersetProjectDataset(DatasetReference value)Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.BteqOptions.BuildersetProjectDataset(DatasetReference.Builder builderForValue)Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.BteqOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BteqOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
clear
public BteqOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.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.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
getDefaultInstanceForType
public BteqOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BteqOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BteqOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BteqOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
setField
public BteqOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
clearField
public BteqOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
clearOneof
public BteqOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
setRepeatedField
public BteqOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
addRepeatedField
public BteqOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
mergeFrom
public BteqOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BteqOptions.Builder>
-
mergeFrom
public BteqOptions.Builder mergeFrom(BteqOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
mergeFrom
public BteqOptions.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<BteqOptions.Builder>- Throws:
IOException
-
hasProjectDataset
public boolean hasProjectDataset()
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;- Specified by:
hasProjectDatasetin interfaceBteqOptionsOrBuilder- Returns:
- Whether the projectDataset field is set.
-
getProjectDataset
public DatasetReference getProjectDataset()
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;- Specified by:
getProjectDatasetin interfaceBteqOptionsOrBuilder- Returns:
- The projectDataset.
-
setProjectDataset
public BteqOptions.Builder setProjectDataset(DatasetReference value)
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
-
setProjectDataset
public BteqOptions.Builder setProjectDataset(DatasetReference.Builder builderForValue)
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
-
mergeProjectDataset
public BteqOptions.Builder mergeProjectDataset(DatasetReference value)
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
-
clearProjectDataset
public BteqOptions.Builder clearProjectDataset()
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
-
getProjectDatasetBuilder
public DatasetReference.Builder getProjectDatasetBuilder()
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;
-
getProjectDatasetOrBuilder
public DatasetReferenceOrBuilder getProjectDatasetOrBuilder()
Specifies the project and dataset in BigQuery that will be used for external table creation during the translation.
.google.cloud.bigquery.migration.v2alpha.DatasetReference project_dataset = 1;- Specified by:
getProjectDatasetOrBuilderin interfaceBteqOptionsOrBuilder
-
getDefaultPathUri
public String getDefaultPathUri()
The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.
string default_path_uri = 2;- Specified by:
getDefaultPathUriin interfaceBteqOptionsOrBuilder- Returns:
- The defaultPathUri.
-
getDefaultPathUriBytes
public com.google.protobuf.ByteString getDefaultPathUriBytes()
The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.
string default_path_uri = 2;- Specified by:
getDefaultPathUriBytesin interfaceBteqOptionsOrBuilder- Returns:
- The bytes for defaultPathUri.
-
setDefaultPathUri
public BteqOptions.Builder setDefaultPathUri(String value)
The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.
string default_path_uri = 2;- Parameters:
value- The defaultPathUri to set.- Returns:
- This builder for chaining.
-
clearDefaultPathUri
public BteqOptions.Builder clearDefaultPathUri()
The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.
string default_path_uri = 2;- Returns:
- This builder for chaining.
-
setDefaultPathUriBytes
public BteqOptions.Builder setDefaultPathUriBytes(com.google.protobuf.ByteString value)
The Cloud Storage location to be used as the default path for files that are not otherwise specified in the file replacement map.
string default_path_uri = 2;- Parameters:
value- The bytes for defaultPathUri to set.- Returns:
- This builder for chaining.
-
getFileReplacementMapCount
public int getFileReplacementMapCount()
Description copied from interface:BteqOptionsOrBuilderMaps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;- Specified by:
getFileReplacementMapCountin interfaceBteqOptionsOrBuilder
-
containsFileReplacementMap
public boolean containsFileReplacementMap(String key)
Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;- Specified by:
containsFileReplacementMapin interfaceBteqOptionsOrBuilder
-
getFileReplacementMap
@Deprecated public Map<String,String> getFileReplacementMap()
Deprecated.UsegetFileReplacementMapMap()instead.- Specified by:
getFileReplacementMapin interfaceBteqOptionsOrBuilder
-
getFileReplacementMapMap
public Map<String,String> getFileReplacementMapMap()
Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;- Specified by:
getFileReplacementMapMapin interfaceBteqOptionsOrBuilder
-
getFileReplacementMapOrDefault
public String getFileReplacementMapOrDefault(String key, String defaultValue)
Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;- Specified by:
getFileReplacementMapOrDefaultin interfaceBteqOptionsOrBuilder
-
getFileReplacementMapOrThrow
public String getFileReplacementMapOrThrow(String key)
Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;- Specified by:
getFileReplacementMapOrThrowin interfaceBteqOptionsOrBuilder
-
clearFileReplacementMap
public BteqOptions.Builder clearFileReplacementMap()
-
removeFileReplacementMap
public BteqOptions.Builder removeFileReplacementMap(String key)
Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;
-
getMutableFileReplacementMap
@Deprecated public Map<String,String> getMutableFileReplacementMap()
Deprecated.Use alternate mutation accessors instead.
-
putFileReplacementMap
public BteqOptions.Builder putFileReplacementMap(String key, String value)
Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;
-
putAllFileReplacementMap
public BteqOptions.Builder putAllFileReplacementMap(Map<String,String> values)
Maps the local paths that are used in BTEQ scripts (the keys) to the paths in Cloud Storage that should be used in their stead in the translation (the value).
map<string, string> file_replacement_map = 3;
-
setUnknownFields
public final BteqOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
mergeUnknownFields
public final BteqOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BteqOptions.Builder>
-
-