Class SourceSpec.Builder (0.51.0)

public static final class SourceSpec.Builder extends GeneratedMessageV3.Builder<SourceSpec.Builder> implements SourceSpecOrBuilder

Represents one path to the location that holds source data.

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

Implements

SourceSpecOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SourceSpec build()
Returns
Type Description
SourceSpec

buildPartial()

public SourceSpec buildPartial()
Returns
Type Description
SourceSpec

clear()

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

clearBaseUri()

public SourceSpec.Builder clearBaseUri()

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

string base_uri = 1;

Returns
Type Description
SourceSpec.Builder

This builder for chaining.

clearEncoding()

public SourceSpec.Builder clearEncoding()

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

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

Returns
Type Description
SourceSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLiteral()

public SourceSpec.Builder clearLiteral()

Source literal.

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

Returns
Type Description
SourceSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

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

clone()

public SourceSpec.Builder clone()
Returns
Type Description
SourceSpec.Builder
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

getDescriptorForType()

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

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.

getLiteralBuilder()

public Literal.Builder getLiteralBuilder()

Source literal.

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

Returns
Type Description
Literal.Builder

getLiteralOrBuilder()

public LiteralOrBuilder getLiteralOrBuilder()

Source literal.

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

Returns
Type Description
LiteralOrBuilder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLiteral(Literal value)

public SourceSpec.Builder mergeLiteral(Literal value)

Source literal.

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

Parameter
Name Description
value Literal
Returns
Type Description
SourceSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBaseUri(String value)

public SourceSpec.Builder setBaseUri(String value)

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

string base_uri = 1;

Parameter
Name Description
value String

The baseUri to set.

Returns
Type Description
SourceSpec.Builder

This builder for chaining.

setBaseUriBytes(ByteString value)

public SourceSpec.Builder setBaseUriBytes(ByteString value)

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

string base_uri = 1;

Parameter
Name Description
value ByteString

The bytes for baseUri to set.

Returns
Type Description
SourceSpec.Builder

This builder for chaining.

setEncoding(String value)

public SourceSpec.Builder setEncoding(String value)

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

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

Parameter
Name Description
value String

The encoding to set.

Returns
Type Description
SourceSpec.Builder

This builder for chaining.

setEncodingBytes(ByteString value)

public SourceSpec.Builder setEncodingBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for encoding to set.

Returns
Type Description
SourceSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLiteral(Literal value)

public SourceSpec.Builder setLiteral(Literal value)

Source literal.

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

Parameter
Name Description
value Literal
Returns
Type Description
SourceSpec.Builder

setLiteral(Literal.Builder builderForValue)

public SourceSpec.Builder setLiteral(Literal.Builder builderForValue)

Source literal.

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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