Class NameMappingKey.Builder (0.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NameMappingKey build()
Returns
TypeDescription
NameMappingKey

buildPartial()

public NameMappingKey buildPartial()
Returns
TypeDescription
NameMappingKey

clear()

public NameMappingKey.Builder clear()
Returns
TypeDescription
NameMappingKey.Builder
Overrides

clearAttribute()

public NameMappingKey.Builder clearAttribute()

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

string attribute = 5;

Returns
TypeDescription
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
TypeDescription
NameMappingKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public NameMappingKey.Builder clone()
Returns
TypeDescription
NameMappingKey.Builder
Overrides

getAttribute()

public String getAttribute()

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

string attribute = 5;

Returns
TypeDescription
String

The attribute.

getAttributeBytes()

public ByteString getAttributeBytes()

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

string attribute = 5;

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

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

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

string database = 2;

Returns
TypeDescription
ByteString

The bytes for database.

getDefaultInstanceForType()

public NameMappingKey getDefaultInstanceForType()
Returns
TypeDescription
NameMappingKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRelation()

public String getRelation()

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

string relation = 4;

Returns
TypeDescription
String

The relation.

getRelationBytes()

public ByteString getRelationBytes()

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

string relation = 4;

Returns
TypeDescription
ByteString

The bytes for relation.

getSchema()

public String getSchema()

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

string schema = 3;

Returns
TypeDescription
String

The schema.

getSchemaBytes()

public ByteString getSchemaBytes()

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

string schema = 3;

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

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NameMappingKey other)

public NameMappingKey.Builder mergeFrom(NameMappingKey other)
Parameter
NameDescription
otherNameMappingKey
Returns
TypeDescription
NameMappingKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The attribute to set.

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

The bytes for attribute to set.

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

The database to set.

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

The bytes for database to set.

Returns
TypeDescription
NameMappingKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The relation to set.

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

The bytes for relation to set.

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

The schema to set.

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

The bytes for schema to set.

Returns
TypeDescription
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
NameDescription
valueNameMappingKey.Type

The type to set.

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

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

Returns
TypeDescription
NameMappingKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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