Class SourceEnv.Builder (0.57.0)

public static final class SourceEnv.Builder extends GeneratedMessageV3.Builder<SourceEnv.Builder> implements SourceEnvOrBuilder

Represents the default source environment values for the translation.

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

Implements

SourceEnvOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSchemaSearchPath(Iterable<String> values)

public SourceEnv.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
SourceEnv.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSchemaSearchPath(String value)

public SourceEnv.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
SourceEnv.Builder

This builder for chaining.

addSchemaSearchPathBytes(ByteString value)

public SourceEnv.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
SourceEnv.Builder

This builder for chaining.

build()

public SourceEnv build()
Returns
Type Description
SourceEnv

buildPartial()

public SourceEnv buildPartial()
Returns
Type Description
SourceEnv

clear()

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

clearDefaultDatabase()

public SourceEnv.Builder clearDefaultDatabase()

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

string default_database = 1;

Returns
Type Description
SourceEnv.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMetadataStoreDataset()

public SourceEnv.Builder clearMetadataStoreDataset()

Optional. Expects a valid 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
SourceEnv.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSchemaSearchPath()

public SourceEnv.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
SourceEnv.Builder

This builder for chaining.

clone()

public SourceEnv.Builder clone()
Returns
Type Description
SourceEnv.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 SourceEnv getDefaultInstanceForType()
Returns
Type Description
SourceEnv

getDescriptorForType()

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

getMetadataStoreDataset()

public String getMetadataStoreDataset()

Optional. Expects a valid 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 valid 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(SourceEnv other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDefaultDatabase(String value)

public SourceEnv.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
SourceEnv.Builder

This builder for chaining.

setDefaultDatabaseBytes(ByteString value)

public SourceEnv.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
SourceEnv.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadataStoreDataset(String value)

public SourceEnv.Builder setMetadataStoreDataset(String value)

Optional. Expects a valid 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
SourceEnv.Builder

This builder for chaining.

setMetadataStoreDatasetBytes(ByteString value)

public SourceEnv.Builder setMetadataStoreDatasetBytes(ByteString value)

Optional. Expects a valid 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
SourceEnv.Builder

This builder for chaining.

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

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

setSchemaSearchPath(int index, String value)

public SourceEnv.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
SourceEnv.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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