Class SourceTargetMapping (0.52.0)

public final class SourceTargetMapping extends GeneratedMessageV3 implements SourceTargetMappingOrBuilder

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

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

Static Fields

SOURCE_SPEC_FIELD_NUMBER

public static final int SOURCE_SPEC_FIELD_NUMBER
Field Value
Type Description
int

TARGET_SPEC_FIELD_NUMBER

public static final int TARGET_SPEC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SourceTargetMapping getDefaultInstance()
Returns
Type Description
SourceTargetMapping

getDescriptor()

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

newBuilder()

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

newBuilder(SourceTargetMapping prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SourceTargetMapping getDefaultInstanceForType()
Returns
Type Description
SourceTargetMapping

getParserForType()

public Parser<SourceTargetMapping> getParserForType()
Returns
Type Description
Parser<SourceTargetMapping>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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.

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.

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 SourceTargetMapping.Builder newBuilderForType()
Returns
Type Description
SourceTargetMapping.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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