Class BteqOptions.Builder (0.50.0)

public static final class BteqOptions.Builder extends GeneratedMessageV3.Builder<BteqOptions.Builder> implements BteqOptionsOrBuilder

BTEQ translation task related settings.

Protobuf type google.cloud.bigquery.migration.v2alpha.BteqOptions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BteqOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BteqOptions.Builder
Overrides

build()

public BteqOptions build()
Returns
Type Description
BteqOptions

buildPartial()

public BteqOptions buildPartial()
Returns
Type Description
BteqOptions

clear()

public BteqOptions.Builder clear()
Returns
Type Description
BteqOptions.Builder
Overrides

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
Type Description
BteqOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BteqOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BteqOptions.Builder
Overrides

clearFileReplacementMap()

public BteqOptions.Builder clearFileReplacementMap()
Returns
Type Description
BteqOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BteqOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BteqOptions.Builder
Overrides

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;

Returns
Type Description
BteqOptions.Builder

clone()

public BteqOptions.Builder clone()
Returns
Type Description
BteqOptions.Builder
Overrides

containsFileReplacementMap(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public BteqOptions getDefaultInstanceForType()
Returns
Type Description
BteqOptions

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;

Returns
Type Description
String

The defaultPathUri.

getDefaultPathUriBytes()

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

Returns
Type Description
ByteString

The bytes for defaultPathUri.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileReplacementMap() (deprecated)

public Map<String,String> getFileReplacementMap()
Returns
Type Description
Map<String,String>

getFileReplacementMapCount()

public int getFileReplacementMapCount()

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;

Returns
Type Description
int

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;

Returns
Type Description
Map<String,String>

getFileReplacementMapOrDefault(String key, String defaultValue)

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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getFileReplacementMapOrThrow(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableFileReplacementMap() (deprecated)

public Map<String,String> getMutableFileReplacementMap()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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;

Returns
Type Description
DatasetReference

The projectDataset.

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;

Returns
Type Description
DatasetReference.Builder

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;

Returns
Type Description
DatasetReferenceOrBuilder

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;

Returns
Type Description
boolean

Whether the projectDataset field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BteqOptions other)

public BteqOptions.Builder mergeFrom(BteqOptions other)
Parameter
Name Description
other BteqOptions
Returns
Type Description
BteqOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BteqOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BteqOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BteqOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BteqOptions.Builder
Overrides

mergeProjectDataset(DatasetReference value)

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;

Parameter
Name Description
value DatasetReference
Returns
Type Description
BteqOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BteqOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BteqOptions.Builder
Overrides

putAllFileReplacementMap(Map<String,String> values)

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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
BteqOptions.Builder

putFileReplacementMap(String key, String value)

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;

Parameters
Name Description
key String
value String
Returns
Type Description
BteqOptions.Builder

removeFileReplacementMap(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
BteqOptions.Builder

setDefaultPathUri(String value)

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;

Parameter
Name Description
value String

The defaultPathUri to set.

Returns
Type Description
BteqOptions.Builder

This builder for chaining.

setDefaultPathUriBytes(ByteString value)

public BteqOptions.Builder setDefaultPathUriBytes(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;

Parameter
Name Description
value ByteString

The bytes for defaultPathUri to set.

Returns
Type Description
BteqOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BteqOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BteqOptions.Builder
Overrides

setProjectDataset(DatasetReference value)

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;

Parameter
Name Description
value DatasetReference
Returns
Type Description
BteqOptions.Builder

setProjectDataset(DatasetReference.Builder builderForValue)

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;

Parameter
Name Description
builderForValue DatasetReference.Builder
Returns
Type Description
BteqOptions.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BteqOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BteqOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BteqOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BteqOptions.Builder
Overrides