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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SourceSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SourceSpec build()
buildPartial()
public SourceSpec buildPartial()
clear()
public SourceSpec.Builder clear()
Overrides
clearBaseUri()
public SourceSpec.Builder clearBaseUri()
The base URI for all files to be read in as sources for translation.
string base_uri = 1;
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];
clearField(Descriptors.FieldDescriptor field)
public SourceSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLiteral()
public SourceSpec.Builder clearLiteral()
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public SourceSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSource()
public SourceSpec.Builder clearSource()
clone()
public SourceSpec.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getLiteralOrBuilder()
public LiteralOrBuilder getLiteralOrBuilder()
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2;
getSourceCase()
public SourceSpec.SourceCase getSourceCase()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SourceSpec other)
public SourceSpec.Builder mergeFrom(SourceSpec other)
public SourceSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SourceSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SourceSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SourceSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
setLiteral(Literal.Builder builderForValue)
public SourceSpec.Builder setLiteral(Literal.Builder builderForValue)
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SourceSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SourceSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides