Class SourceEnvironment.Builder (0.51.0)

public static final class SourceEnvironment.Builder extends GeneratedMessageV3.Builder<SourceEnvironment.Builder> implements SourceEnvironmentOrBuilder

Represents the default source environment values for the translation.

Protobuf type google.cloud.bigquery.migration.v2.SourceEnvironment

Static Methods

getDescriptor()

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

Methods

addAllSchemaSearchPath(Iterable<String> values)

public SourceEnvironment.Builder addAllSchemaSearchPath(Iterable<String> values)

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Parameter
Name Description
values Iterable<String>

The schemaSearchPath to add.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSchemaSearchPath(String value)

public SourceEnvironment.Builder addSchemaSearchPath(String value)

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Parameter
Name Description
value String

The schemaSearchPath to add.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

addSchemaSearchPathBytes(ByteString value)

public SourceEnvironment.Builder addSchemaSearchPathBytes(ByteString value)

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Parameter
Name Description
value ByteString

The bytes of the schemaSearchPath to add.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

build()

public SourceEnvironment build()
Returns
Type Description
SourceEnvironment

buildPartial()

public SourceEnvironment buildPartial()
Returns
Type Description
SourceEnvironment

clear()

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

clearDefaultDatabase()

public SourceEnvironment.Builder clearDefaultDatabase()

The default database name to fully qualify SQL objects when their database name is missing.

string default_database = 1;

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMetadataStoreDataset()

public SourceEnvironment.Builder clearMetadataStoreDataset()

Optional. Expects a validQ BigQuery dataset ID that exists, e.g., project-123.metadata_store_123. If specified, translation will search and read the required schema information from a metadata store in this dataset. If metadata store doesn't exist, translation will parse the metadata file and upload the schema info to a temp table in the dataset to speed up future translation jobs.

string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchemaSearchPath()

public SourceEnvironment.Builder clearSchemaSearchPath()

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

clone()

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

getDefaultDatabase()

public String getDefaultDatabase()

The default database name to fully qualify SQL objects when their database name is missing.

string default_database = 1;

Returns
Type Description
String

The defaultDatabase.

getDefaultDatabaseBytes()

public ByteString getDefaultDatabaseBytes()

The default database name to fully qualify SQL objects when their database name is missing.

string default_database = 1;

Returns
Type Description
ByteString

The bytes for defaultDatabase.

getDefaultInstanceForType()

public SourceEnvironment getDefaultInstanceForType()
Returns
Type Description
SourceEnvironment

getDescriptorForType()

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

getMetadataStoreDataset()

public String getMetadataStoreDataset()

Optional. Expects a validQ BigQuery dataset ID that exists, e.g., project-123.metadata_store_123. If specified, translation will search and read the required schema information from a metadata store in this dataset. If metadata store doesn't exist, translation will parse the metadata file and upload the schema info to a temp table in the dataset to speed up future translation jobs.

string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The metadataStoreDataset.

getMetadataStoreDatasetBytes()

public ByteString getMetadataStoreDatasetBytes()

Optional. Expects a validQ BigQuery dataset ID that exists, e.g., project-123.metadata_store_123. If specified, translation will search and read the required schema information from a metadata store in this dataset. If metadata store doesn't exist, translation will parse the metadata file and upload the schema info to a temp table in the dataset to speed up future translation jobs.

string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for metadataStoreDataset.

getSchemaSearchPath(int index)

public String getSchemaSearchPath(int index)

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The schemaSearchPath at the given index.

getSchemaSearchPathBytes(int index)

public ByteString getSchemaSearchPathBytes(int index)

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the schemaSearchPath at the given index.

getSchemaSearchPathCount()

public int getSchemaSearchPathCount()

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Returns
Type Description
int

The count of schemaSearchPath.

getSchemaSearchPathList()

public ProtocolStringList getSchemaSearchPathList()

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Returns
Type Description
ProtocolStringList

A list containing the schemaSearchPath.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceEnvironment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDefaultDatabase(String value)

public SourceEnvironment.Builder setDefaultDatabase(String value)

The default database name to fully qualify SQL objects when their database name is missing.

string default_database = 1;

Parameter
Name Description
value String

The defaultDatabase to set.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

setDefaultDatabaseBytes(ByteString value)

public SourceEnvironment.Builder setDefaultDatabaseBytes(ByteString value)

The default database name to fully qualify SQL objects when their database name is missing.

string default_database = 1;

Parameter
Name Description
value ByteString

The bytes for defaultDatabase to set.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadataStoreDataset(String value)

public SourceEnvironment.Builder setMetadataStoreDataset(String value)

Optional. Expects a validQ BigQuery dataset ID that exists, e.g., project-123.metadata_store_123. If specified, translation will search and read the required schema information from a metadata store in this dataset. If metadata store doesn't exist, translation will parse the metadata file and upload the schema info to a temp table in the dataset to speed up future translation jobs.

string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The metadataStoreDataset to set.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

setMetadataStoreDatasetBytes(ByteString value)

public SourceEnvironment.Builder setMetadataStoreDatasetBytes(ByteString value)

Optional. Expects a validQ BigQuery dataset ID that exists, e.g., project-123.metadata_store_123. If specified, translation will search and read the required schema information from a metadata store in this dataset. If metadata store doesn't exist, translation will parse the metadata file and upload the schema info to a temp table in the dataset to speed up future translation jobs.

string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for metadataStoreDataset to set.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

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

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

setSchemaSearchPath(int index, String value)

public SourceEnvironment.Builder setSchemaSearchPath(int index, String value)

The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

repeated string schema_search_path = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The schemaSearchPath to set.

Returns
Type Description
SourceEnvironment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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