Class ObjectNameMapping.Builder (0.25.0)

public static final class ObjectNameMapping.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ObjectNameMapping build()
Returns
TypeDescription
ObjectNameMapping

buildPartial()

public ObjectNameMapping buildPartial()
Returns
TypeDescription
ObjectNameMapping

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ObjectNameMapping getDefaultInstanceForType()
Returns
TypeDescription
ObjectNameMapping

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the target field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ObjectNameMapping other)

public ObjectNameMapping.Builder mergeFrom(ObjectNameMapping other)
Parameter
NameDescription
otherObjectNameMapping
Returns
TypeDescription
ObjectNameMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ObjectNameMapping.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNameMappingKey
Returns
TypeDescription
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
NameDescription
valueNameMappingValue
Returns
TypeDescription
ObjectNameMapping.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectNameMapping.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectNameMapping.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ObjectNameMapping.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ObjectNameMapping.Builder
Overrides

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
NameDescription
valueNameMappingKey
Returns
TypeDescription
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
NameDescription
builderForValueNameMappingKey.Builder
Returns
TypeDescription
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
NameDescription
valueNameMappingValue
Returns
TypeDescription
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
NameDescription
builderForValueNameMappingValue.Builder
Returns
TypeDescription
ObjectNameMapping.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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