Class SourceTargetMapping.Builder (0.51.0)

public static final class SourceTargetMapping.Builder extends GeneratedMessageV3.Builder<SourceTargetMapping.Builder> implements SourceTargetMappingOrBuilder

Represents one mapping from a source SQL to a target SQL.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SourceTargetMapping build()
Returns
Type Description
SourceTargetMapping

buildPartial()

public SourceTargetMapping buildPartial()
Returns
Type Description
SourceTargetMapping

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceSpec()

public SourceTargetMapping.Builder clearSourceSpec()

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Returns
Type Description
SourceTargetMapping.Builder

clearTargetSpec()

public SourceTargetMapping.Builder clearTargetSpec()

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Returns
Type Description
SourceTargetMapping.Builder

clone()

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

getDefaultInstanceForType()

public SourceTargetMapping getDefaultInstanceForType()
Returns
Type Description
SourceTargetMapping

getDescriptorForType()

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

getSourceSpec()

public SourceSpec getSourceSpec()

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Returns
Type Description
SourceSpec

The sourceSpec.

getSourceSpecBuilder()

public SourceSpec.Builder getSourceSpecBuilder()

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Returns
Type Description
SourceSpec.Builder

getSourceSpecOrBuilder()

public SourceSpecOrBuilder getSourceSpecOrBuilder()

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Returns
Type Description
SourceSpecOrBuilder

getTargetSpec()

public TargetSpec getTargetSpec()

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Returns
Type Description
TargetSpec

The targetSpec.

getTargetSpecBuilder()

public TargetSpec.Builder getTargetSpecBuilder()

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Returns
Type Description
TargetSpec.Builder

getTargetSpecOrBuilder()

public TargetSpecOrBuilder getTargetSpecOrBuilder()

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Returns
Type Description
TargetSpecOrBuilder

hasSourceSpec()

public boolean hasSourceSpec()

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Returns
Type Description
boolean

Whether the sourceSpec field is set.

hasTargetSpec()

public boolean hasTargetSpec()

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Returns
Type Description
boolean

Whether the targetSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceTargetMapping other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSourceSpec(SourceSpec value)

public SourceTargetMapping.Builder mergeSourceSpec(SourceSpec value)

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Parameter
Name Description
value SourceSpec
Returns
Type Description
SourceTargetMapping.Builder

mergeTargetSpec(TargetSpec value)

public SourceTargetMapping.Builder mergeTargetSpec(TargetSpec value)

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Parameter
Name Description
value TargetSpec
Returns
Type Description
SourceTargetMapping.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceSpec(SourceSpec value)

public SourceTargetMapping.Builder setSourceSpec(SourceSpec value)

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Parameter
Name Description
value SourceSpec
Returns
Type Description
SourceTargetMapping.Builder

setSourceSpec(SourceSpec.Builder builderForValue)

public SourceTargetMapping.Builder setSourceSpec(SourceSpec.Builder builderForValue)

The source SQL or the path to it.

.google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1;

Parameter
Name Description
builderForValue SourceSpec.Builder
Returns
Type Description
SourceTargetMapping.Builder

setTargetSpec(TargetSpec value)

public SourceTargetMapping.Builder setTargetSpec(TargetSpec value)

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Parameter
Name Description
value TargetSpec
Returns
Type Description
SourceTargetMapping.Builder

setTargetSpec(TargetSpec.Builder builderForValue)

public SourceTargetMapping.Builder setTargetSpec(TargetSpec.Builder builderForValue)

The target SQL or the path for it.

.google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2;

Parameter
Name Description
builderForValue TargetSpec.Builder
Returns
Type Description
SourceTargetMapping.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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