Class SourceSpec (0.51.0)

public final class SourceSpec extends GeneratedMessageV3 implements SourceSpecOrBuilder

Represents one path to the location that holds source data.

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

Implements

SourceSpecOrBuilder

Static Fields

BASE_URI_FIELD_NUMBER

public static final int BASE_URI_FIELD_NUMBER
Field Value
Type Description
int

ENCODING_FIELD_NUMBER

public static final int ENCODING_FIELD_NUMBER
Field Value
Type Description
int

LITERAL_FIELD_NUMBER

public static final int LITERAL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SourceSpec getDefaultInstance()
Returns
Type Description
SourceSpec

getDescriptor()

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

newBuilder()

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

newBuilder(SourceSpec prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBaseUri()

public String getBaseUri()

The base URI for all files to be read in as sources for translation.

string base_uri = 1;

Returns
Type Description
String

The baseUri.

getBaseUriBytes()

public ByteString getBaseUriBytes()

The base URI for all files to be read in as sources for translation.

string base_uri = 1;

Returns
Type Description
ByteString

The bytes for baseUri.

getDefaultInstanceForType()

public SourceSpec getDefaultInstanceForType()
Returns
Type Description
SourceSpec

getEncoding()

public String getEncoding()

Optional. The optional field to specify the encoding of the sql bytes.

string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The encoding.

getEncodingBytes()

public ByteString getEncodingBytes()

Optional. The optional field to specify the encoding of the sql bytes.

string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for encoding.

getLiteral()

public Literal getLiteral()

Source literal.

.google.cloud.bigquery.migration.v2.Literal literal = 2;

Returns
Type Description
Literal

The literal.

getLiteralOrBuilder()

public LiteralOrBuilder getLiteralOrBuilder()

Source literal.

.google.cloud.bigquery.migration.v2.Literal literal = 2;

Returns
Type Description
LiteralOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceCase()

public SourceSpec.SourceCase getSourceCase()
Returns
Type Description
SourceSpec.SourceCase

hasBaseUri()

public boolean hasBaseUri()

The base URI for all files to be read in as sources for translation.

string base_uri = 1;

Returns
Type Description
boolean

Whether the baseUri field is set.

hasLiteral()

public boolean hasLiteral()

Source literal.

.google.cloud.bigquery.migration.v2.Literal literal = 2;

Returns
Type Description
boolean

Whether the literal 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 SourceSpec.Builder newBuilderForType()
Returns
Type Description
SourceSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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