Class ObjectNameMapping.Builder (0.86.0)

public static final class ObjectNameMapping.Builder extends GeneratedMessage.Builder<ObjectNameMapping.Builder> implements ObjectNameMappingOrBuilder

Represents a key-value pair of NameMappingKey to NameMappingValue to represent the mapping of SQL names from the input value to desired output.

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

Static Methods

getDescriptor()

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

Methods

build()

public ObjectNameMapping build()
Returns
Type Description
ObjectNameMapping

buildPartial()

public ObjectNameMapping buildPartial()
Returns
Type Description
ObjectNameMapping

clear()

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

clearSource()

public ObjectNameMapping.Builder clearSource()

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Returns
Type Description
ObjectNameMapping.Builder

clearTarget()

public ObjectNameMapping.Builder clearTarget()

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Returns
Type Description
ObjectNameMapping.Builder

getDefaultInstanceForType()

public ObjectNameMapping getDefaultInstanceForType()
Returns
Type Description
ObjectNameMapping

getDescriptorForType()

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

getSource()

public NameMappingKey getSource()

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Returns
Type Description
NameMappingKey

The source.

getSourceBuilder()

public NameMappingKey.Builder getSourceBuilder()

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Returns
Type Description
NameMappingKey.Builder

getSourceOrBuilder()

public NameMappingKeyOrBuilder getSourceOrBuilder()

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Returns
Type Description
NameMappingKeyOrBuilder

getTarget()

public NameMappingValue getTarget()

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Returns
Type Description
NameMappingValue

The target.

getTargetBuilder()

public NameMappingValue.Builder getTargetBuilder()

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Returns
Type Description
NameMappingValue.Builder

getTargetOrBuilder()

public NameMappingValueOrBuilder getTargetOrBuilder()

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Returns
Type Description
NameMappingValueOrBuilder

hasSource()

public boolean hasSource()

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Returns
Type Description
boolean

Whether the source field is set.

hasTarget()

public boolean hasTarget()

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Returns
Type Description
boolean

Whether the target field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ObjectNameMapping other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSource(NameMappingKey value)

public ObjectNameMapping.Builder mergeSource(NameMappingKey value)

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Parameter
Name Description
value NameMappingKey
Returns
Type Description
ObjectNameMapping.Builder

mergeTarget(NameMappingValue value)

public ObjectNameMapping.Builder mergeTarget(NameMappingValue value)

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Parameter
Name Description
value NameMappingValue
Returns
Type Description
ObjectNameMapping.Builder

setSource(NameMappingKey value)

public ObjectNameMapping.Builder setSource(NameMappingKey value)

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Parameter
Name Description
value NameMappingKey
Returns
Type Description
ObjectNameMapping.Builder

setSource(NameMappingKey.Builder builderForValue)

public ObjectNameMapping.Builder setSource(NameMappingKey.Builder builderForValue)

The name of the object in source that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingKey source = 1;

Parameter
Name Description
builderForValue NameMappingKey.Builder
Returns
Type Description
ObjectNameMapping.Builder

setTarget(NameMappingValue value)

public ObjectNameMapping.Builder setTarget(NameMappingValue value)

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Parameter
Name Description
value NameMappingValue
Returns
Type Description
ObjectNameMapping.Builder

setTarget(NameMappingValue.Builder builderForValue)

public ObjectNameMapping.Builder setTarget(NameMappingValue.Builder builderForValue)

The desired target name of the object that is being mapped.

.google.cloud.bigquery.migration.v2.NameMappingValue target = 2;

Parameter
Name Description
builderForValue NameMappingValue.Builder
Returns
Type Description
ObjectNameMapping.Builder