Class ImportedDataInfo.TableDefinition (2.13.0)

public static final class ImportedDataInfo.TableDefinition extends GeneratedMessageV3 implements ImportedDataInfo.TableDefinitionOrBuilder

External table definition. These tables can be referenced with 'name' in the query and can be read just like any other table.

Protobuf type google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ImportedDataInfo.TableDefinition

Static Fields

CSV_OPTIONS_FIELD_NUMBER

public static final int CSV_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

ENCODING_FIELD_NUMBER

public static final int ENCODING_FIELD_NUMBER
Field Value
TypeDescription
int

FORMAT_FIELD_NUMBER

public static final int FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

IGNORE_UNKNOWN_VALUES_FIELD_NUMBER

public static final int IGNORE_UNKNOWN_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_BAD_RECORDS_FIELD_NUMBER

public static final int MAX_BAD_RECORDS_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_URIS_FIELD_NUMBER

public static final int SOURCE_URIS_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_ID_FIELD_NUMBER

public static final int TABLE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImportedDataInfo.TableDefinition getDefaultInstance()
Returns
TypeDescription
ImportedDataInfo.TableDefinition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ImportedDataInfo.TableDefinition.Builder newBuilder()
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

newBuilder(ImportedDataInfo.TableDefinition prototype)

public static ImportedDataInfo.TableDefinition.Builder newBuilder(ImportedDataInfo.TableDefinition prototype)
Parameter
NameDescription
prototypeImportedDataInfo.TableDefinition
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

parseDelimitedFrom(InputStream input)

public static ImportedDataInfo.TableDefinition parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ImportedDataInfo.TableDefinition parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportedDataInfo.TableDefinition parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportedDataInfo.TableDefinition parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ImportedDataInfo.TableDefinition parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ImportedDataInfo.TableDefinition parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.TableDefinition
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ImportedDataInfo.TableDefinition> parser()
Returns
TypeDescription
Parser<TableDefinition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCsvOptions()

public ImportedDataInfo.TableDefinition.CsvOptions getCsvOptions()

CSV specific options.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;

Returns
TypeDescription
ImportedDataInfo.TableDefinition.CsvOptions

getCsvOptionsOrBuilder()

public ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder getCsvOptionsOrBuilder()

CSV specific options.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;

Returns
TypeDescription
ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder

getDefaultInstanceForType()

public ImportedDataInfo.TableDefinition getDefaultInstanceForType()
Returns
TypeDescription
ImportedDataInfo.TableDefinition

getEncoding()

public ImportedDataInfo.Encoding getEncoding()

Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;

Returns
TypeDescription
ImportedDataInfo.Encoding

getEncodingValue()

public int getEncodingValue()

Character encoding of the input when applicable (CSV, JSON). Defaults to UTF8.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Encoding encoding = 5;

Returns
TypeDescription
int

getFormat()

public ImportedDataInfo.Format getFormat()

Describes the format of the data in source_uri.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;

Returns
TypeDescription
ImportedDataInfo.Format

getFormatValue()

public int getFormatValue()

Describes the format of the data in source_uri.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;

Returns
TypeDescription
int

getIgnoreUnknownValues()

public BoolValue getIgnoreUnknownValues()

Indicates if extra values that are not represented in the table schema is allowed.

.google.protobuf.BoolValue ignore_unknown_values = 10;

Returns
TypeDescription
BoolValue

getIgnoreUnknownValuesOrBuilder()

public BoolValueOrBuilder getIgnoreUnknownValuesOrBuilder()

Indicates if extra values that are not represented in the table schema is allowed.

.google.protobuf.BoolValue ignore_unknown_values = 10;

Returns
TypeDescription
BoolValueOrBuilder

getMaxBadRecords()

public int getMaxBadRecords()

Specify the maximum number of bad records that can be ignored. If bad records exceed this threshold the query is aborted.

int32 max_bad_records = 4;

Returns
TypeDescription
int

getParserForType()

public Parser<ImportedDataInfo.TableDefinition> getParserForType()
Returns
TypeDescription
Parser<TableDefinition>
Overrides

getSchema()

public ImportedDataInfo.RecordSchema getSchema()

Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;

Returns
TypeDescription
ImportedDataInfo.RecordSchema

getSchemaOrBuilder()

public ImportedDataInfo.RecordSchemaOrBuilder getSchemaOrBuilder()

Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;

Returns
TypeDescription
ImportedDataInfo.RecordSchemaOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceUris(int index)

public String getSourceUris(int index)

URIs for the data to be imported. All URIs must be from the same storage system.

repeated string source_uris = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
String

getSourceUrisBytes(int index)

public ByteString getSourceUrisBytes(int index)

URIs for the data to be imported. All URIs must be from the same storage system.

repeated string source_uris = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ByteString

getSourceUrisCount()

public int getSourceUrisCount()

URIs for the data to be imported. All URIs must be from the same storage system.

repeated string source_uris = 2;

Returns
TypeDescription
int

getSourceUrisList()

public ProtocolStringList getSourceUrisList()

URIs for the data to be imported. All URIs must be from the same storage system.

repeated string source_uris = 2;

Returns
TypeDescription
ProtocolStringList

getTableId()

public String getTableId()

BigQuery table_id (required). This will be used to reference this table in the query.

string table_id = 1;

Returns
TypeDescription
String

getTableIdBytes()

public ByteString getTableIdBytes()

BigQuery table_id (required). This will be used to reference this table in the query.

string table_id = 1;

Returns
TypeDescription
ByteString

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCsvOptions()

public boolean hasCsvOptions()

CSV specific options.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;

Returns
TypeDescription
boolean

hasIgnoreUnknownValues()

public boolean hasIgnoreUnknownValues()

Indicates if extra values that are not represented in the table schema is allowed.

.google.protobuf.BoolValue ignore_unknown_values = 10;

Returns
TypeDescription
boolean

hasSchema()

public boolean hasSchema()

Optional schema for the data. When not specified for JSON and CSV formats we will try to detect it automatically.

.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 7;

Returns
TypeDescription
boolean

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ImportedDataInfo.TableDefinition.Builder newBuilderForType()
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportedDataInfo.TableDefinition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder
Overrides

toBuilder()

public ImportedDataInfo.TableDefinition.Builder toBuilder()
Returns
TypeDescription
ImportedDataInfo.TableDefinition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException