Class SourceSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SourceSpec.Builder>
com.google.cloud.bigquery.migration.v2.SourceSpec.Builder
- All Implemented Interfaces:
SourceSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SourceSpec
public static final class SourceSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SourceSpec.Builder>
implements SourceSpecOrBuilder
Represents one path to the location that holds source data.Protobuf type
google.cloud.bigquery.migration.v2.SourceSpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The base URI for all files to be read in as sources for translation.Optional.Source literal.The base URI for all files to be read in as sources for translation.com.google.protobuf.ByteStringThe base URI for all files to be read in as sources for translation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Source literal.Source literal.Source literal.booleanThe base URI for all files to be read in as sources for translation.booleanSource literal.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SourceSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLiteral(Literal value) Source literal.setBaseUri(String value) The base URI for all files to be read in as sources for translation.setBaseUriBytes(com.google.protobuf.ByteString value) The base URI for all files to be read in as sources for translation.setEncoding(String value) Optional.setEncodingBytes(com.google.protobuf.ByteString value) Optional.setLiteral(Literal value) Source literal.setLiteral(Literal.Builder builderForValue) Source literal.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SourceSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SourceSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SourceSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SourceSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SourceSpec.Builder>
-
mergeFrom
public SourceSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SourceSpec.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceSourceSpecOrBuilder
-
clearSource
-
hasBaseUri
public boolean hasBaseUri()The base URI for all files to be read in as sources for translation.
string base_uri = 1;- Specified by:
hasBaseUriin interfaceSourceSpecOrBuilder- Returns:
- Whether the baseUri field is set.
-
getBaseUri
The base URI for all files to be read in as sources for translation.
string base_uri = 1;- Specified by:
getBaseUriin interfaceSourceSpecOrBuilder- Returns:
- The baseUri.
-
getBaseUriBytes
public com.google.protobuf.ByteString getBaseUriBytes()The base URI for all files to be read in as sources for translation.
string base_uri = 1;- Specified by:
getBaseUriBytesin interfaceSourceSpecOrBuilder- Returns:
- The bytes for baseUri.
-
setBaseUri
The base URI for all files to be read in as sources for translation.
string base_uri = 1;- Parameters:
value- The baseUri to set.- Returns:
- This builder for chaining.
-
clearBaseUri
The base URI for all files to be read in as sources for translation.
string base_uri = 1;- Returns:
- This builder for chaining.
-
setBaseUriBytes
The base URI for all files to be read in as sources for translation.
string base_uri = 1;- Parameters:
value- The bytes for baseUri to set.- Returns:
- This builder for chaining.
-
hasLiteral
public boolean hasLiteral()Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2;- Specified by:
hasLiteralin interfaceSourceSpecOrBuilder- Returns:
- Whether the literal field is set.
-
getLiteral
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2;- Specified by:
getLiteralin interfaceSourceSpecOrBuilder- Returns:
- The literal.
-
setLiteral
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2; -
setLiteral
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2; -
mergeLiteral
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2; -
clearLiteral
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2; -
getLiteralBuilder
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2; -
getLiteralOrBuilder
Source literal.
.google.cloud.bigquery.migration.v2.Literal literal = 2;- Specified by:
getLiteralOrBuilderin interfaceSourceSpecOrBuilder
-
getEncoding
Optional. The optional field to specify the encoding of the sql bytes.
string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncodingin interfaceSourceSpecOrBuilder- Returns:
- The encoding.
-
getEncodingBytes
public com.google.protobuf.ByteString getEncodingBytes()Optional. The optional field to specify the encoding of the sql bytes.
string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncodingBytesin interfaceSourceSpecOrBuilder- Returns:
- The bytes for encoding.
-
setEncoding
Optional. The optional field to specify the encoding of the sql bytes.
string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The encoding to set.- Returns:
- This builder for chaining.
-
clearEncoding
Optional. The optional field to specify the encoding of the sql bytes.
string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEncodingBytes
Optional. The optional field to specify the encoding of the sql bytes.
string encoding = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for encoding to set.- Returns:
- This builder for chaining.
-