Class BteqOptions.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BteqOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BteqOptions.Builder
Overrides

build()

public BteqOptions build()
Returns
TypeDescription
BteqOptions

buildPartial()

public BteqOptions buildPartial()
Returns
TypeDescription
BteqOptions

clear()

public BteqOptions.Builder clear()
Returns
TypeDescription
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
TypeDescription
BteqOptions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BteqOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BteqOptions.Builder
Overrides

clearFileReplacementMap()

public BteqOptions.Builder clearFileReplacementMap()
Returns
TypeDescription
BteqOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BteqOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BteqOptions.Builder

clone()

public BteqOptions.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public BteqOptions getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultPathUri.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileReplacementMap()

public Map<String,String> getFileReplacementMap()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableFileReplacementMap()

public Map<String,String> getMutableFileReplacementMap()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the projectDataset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BteqOptions other)

public BteqOptions.Builder mergeFrom(BteqOptions other)
Parameter
NameDescription
otherBteqOptions
Returns
TypeDescription
BteqOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BteqOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BteqOptions.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BteqOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDatasetReference
Returns
TypeDescription
BteqOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BteqOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueString

The defaultPathUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for defaultPathUri to set.

Returns
TypeDescription
BteqOptions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BteqOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDatasetReference
Returns
TypeDescription
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
NameDescription
builderForValueDatasetReference.Builder
Returns
TypeDescription
BteqOptions.Builder

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

public BteqOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BteqOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BteqOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BteqOptions.Builder
Overrides