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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SourceSpec.Builder newBuilder()
newBuilder(SourceSpec prototype)
public static SourceSpec.Builder newBuilder(SourceSpec prototype)
public static SourceSpec parseDelimitedFrom(InputStream input)
public static SourceSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SourceSpec parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SourceSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SourceSpec parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SourceSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SourceSpec parseFrom(CodedInputStream input)
public static SourceSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SourceSpec parseFrom(InputStream input)
public static SourceSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SourceSpec parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SourceSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SourceSpec> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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()
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;
getParserForType()
public Parser<SourceSpec> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SourceSpec.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SourceSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SourceSpec.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides