Class NameMappingKey.Builder (0.45.0)

public static final class NameMappingKey.Builder extends GeneratedMessageV3.Builder<NameMappingKey.Builder> implements NameMappingKeyOrBuilder

The potential components of a full name mapping that will be mapped during translation in the source data warehouse.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NameMappingKey build()
Returns
Type Description
NameMappingKey

buildPartial()

public NameMappingKey buildPartial()
Returns
Type Description
NameMappingKey

clear()

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

clearAttribute()

public NameMappingKey.Builder clearAttribute()

The attribute name (BigQuery column equivalent in the source data warehouse).

string attribute = 5;

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

clearDatabase()

public NameMappingKey.Builder clearDatabase()

The database name (BigQuery project ID equivalent in the source data warehouse).

string database = 2;

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRelation()

public NameMappingKey.Builder clearRelation()

The relation name (BigQuery table or view equivalent in the source data warehouse).

string relation = 4;

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

clearSchema()

public NameMappingKey.Builder clearSchema()

The schema name (BigQuery dataset equivalent in the source data warehouse).

string schema = 3;

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

clearType()

public NameMappingKey.Builder clearType()

The type of object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1;

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

clone()

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

getAttribute()

public String getAttribute()

The attribute name (BigQuery column equivalent in the source data warehouse).

string attribute = 5;

Returns
Type Description
String

The attribute.

getAttributeBytes()

public ByteString getAttributeBytes()

The attribute name (BigQuery column equivalent in the source data warehouse).

string attribute = 5;

Returns
Type Description
ByteString

The bytes for attribute.

getDatabase()

public String getDatabase()

The database name (BigQuery project ID equivalent in the source data warehouse).

string database = 2;

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

The database name (BigQuery project ID equivalent in the source data warehouse).

string database = 2;

Returns
Type Description
ByteString

The bytes for database.

getDefaultInstanceForType()

public NameMappingKey getDefaultInstanceForType()
Returns
Type Description
NameMappingKey

getDescriptorForType()

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

getRelation()

public String getRelation()

The relation name (BigQuery table or view equivalent in the source data warehouse).

string relation = 4;

Returns
Type Description
String

The relation.

getRelationBytes()

public ByteString getRelationBytes()

The relation name (BigQuery table or view equivalent in the source data warehouse).

string relation = 4;

Returns
Type Description
ByteString

The bytes for relation.

getSchema()

public String getSchema()

The schema name (BigQuery dataset equivalent in the source data warehouse).

string schema = 3;

Returns
Type Description
String

The schema.

getSchemaBytes()

public ByteString getSchemaBytes()

The schema name (BigQuery dataset equivalent in the source data warehouse).

string schema = 3;

Returns
Type Description
ByteString

The bytes for schema.

getType()

public NameMappingKey.Type getType()

The type of object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1;

Returns
Type Description
NameMappingKey.Type

The type.

getTypeValue()

public int getTypeValue()

The type of object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NameMappingKey other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttribute(String value)

public NameMappingKey.Builder setAttribute(String value)

The attribute name (BigQuery column equivalent in the source data warehouse).

string attribute = 5;

Parameter
Name Description
value String

The attribute to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setAttributeBytes(ByteString value)

public NameMappingKey.Builder setAttributeBytes(ByteString value)

The attribute name (BigQuery column equivalent in the source data warehouse).

string attribute = 5;

Parameter
Name Description
value ByteString

The bytes for attribute to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setDatabase(String value)

public NameMappingKey.Builder setDatabase(String value)

The database name (BigQuery project ID equivalent in the source data warehouse).

string database = 2;

Parameter
Name Description
value String

The database to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public NameMappingKey.Builder setDatabaseBytes(ByteString value)

The database name (BigQuery project ID equivalent in the source data warehouse).

string database = 2;

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRelation(String value)

public NameMappingKey.Builder setRelation(String value)

The relation name (BigQuery table or view equivalent in the source data warehouse).

string relation = 4;

Parameter
Name Description
value String

The relation to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setRelationBytes(ByteString value)

public NameMappingKey.Builder setRelationBytes(ByteString value)

The relation name (BigQuery table or view equivalent in the source data warehouse).

string relation = 4;

Parameter
Name Description
value ByteString

The bytes for relation to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

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

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

setSchema(String value)

public NameMappingKey.Builder setSchema(String value)

The schema name (BigQuery dataset equivalent in the source data warehouse).

string schema = 3;

Parameter
Name Description
value String

The schema to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setSchemaBytes(ByteString value)

public NameMappingKey.Builder setSchemaBytes(ByteString value)

The schema name (BigQuery dataset equivalent in the source data warehouse).

string schema = 3;

Parameter
Name Description
value ByteString

The bytes for schema to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setType(NameMappingKey.Type value)

public NameMappingKey.Builder setType(NameMappingKey.Type value)

The type of object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1;

Parameter
Name Description
value NameMappingKey.Type

The type to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setTypeValue(int value)

public NameMappingKey.Builder setTypeValue(int value)

The type of object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
NameMappingKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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