Class NameMappingKey (0.48.0)

public final class NameMappingKey extends GeneratedMessageV3 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 Fields

ATTRIBUTE_FIELD_NUMBER

public static final int ATTRIBUTE_FIELD_NUMBER
Field Value
Type Description
int

DATABASE_FIELD_NUMBER

public static final int DATABASE_FIELD_NUMBER
Field Value
Type Description
int

RELATION_FIELD_NUMBER

public static final int RELATION_FIELD_NUMBER
Field Value
Type Description
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NameMappingKey getDefaultInstance()
Returns
Type Description
NameMappingKey

getDescriptor()

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

newBuilder()

public static NameMappingKey.Builder newBuilder()
Returns
Type Description
NameMappingKey.Builder

newBuilder(NameMappingKey prototype)

public static NameMappingKey.Builder newBuilder(NameMappingKey prototype)
Parameter
Name Description
prototype NameMappingKey
Returns
Type Description
NameMappingKey.Builder

parseDelimitedFrom(InputStream input)

public static NameMappingKey parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NameMappingKey
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NameMappingKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NameMappingKey
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NameMappingKey parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NameMappingKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NameMappingKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NameMappingKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NameMappingKey parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NameMappingKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NameMappingKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NameMappingKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NameMappingKey parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NameMappingKey
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NameMappingKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NameMappingKey
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NameMappingKey parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NameMappingKey
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NameMappingKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NameMappingKey
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NameMappingKey parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NameMappingKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NameMappingKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NameMappingKey
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NameMappingKey> parser()
Returns
Type Description
Parser<NameMappingKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<NameMappingKey> getParserForType()
Returns
Type Description
Parser<NameMappingKey>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NameMappingKey.Builder newBuilderForType()
Returns
Type Description
NameMappingKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NameMappingKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NameMappingKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NameMappingKey.Builder toBuilder()
Returns
Type Description
NameMappingKey.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException