Class SourceEnv.Builder (0.27.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
TypeDescription
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
NameDescription
valuesIterable<String>

The schemaSearchPath to add.

Returns
TypeDescription
SourceEnv.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SourceEnv.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The schemaSearchPath to add.

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

The bytes of the schemaSearchPath to add.

Returns
TypeDescription
SourceEnv.Builder

This builder for chaining.

build()

public SourceEnv build()
Returns
TypeDescription
SourceEnv

buildPartial()

public SourceEnv buildPartial()
Returns
TypeDescription
SourceEnv

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public SourceEnv.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultDatabase.

getDefaultInstanceForType()

public SourceEnv getDefaultInstanceForType()
Returns
TypeDescription
SourceEnv

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

A list containing the schemaSearchPath.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SourceEnv other)

public SourceEnv.Builder mergeFrom(SourceEnv other)
Parameter
NameDescription
otherSourceEnv
Returns
TypeDescription
SourceEnv.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SourceEnv.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SourceEnv.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceEnv.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The defaultDatabase to set.

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

The bytes for defaultDatabase to set.

Returns
TypeDescription
SourceEnv.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SourceEnv.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The schemaSearchPath to set.

Returns
TypeDescription
SourceEnv.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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