Class ImportedDataInfo.TableDefinition (2.45.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
Type Description
int

ENCODING_FIELD_NUMBER

public static final int ENCODING_FIELD_NUMBER
Field Value
Type Description
int

FORMAT_FIELD_NUMBER

public static final int FORMAT_FIELD_NUMBER
Field Value
Type Description
int

IGNORE_UNKNOWN_VALUES_FIELD_NUMBER

public static final int IGNORE_UNKNOWN_VALUES_FIELD_NUMBER
Field Value
Type Description
int

MAX_BAD_RECORDS_FIELD_NUMBER

public static final int MAX_BAD_RECORDS_FIELD_NUMBER
Field Value
Type Description
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_URIS_FIELD_NUMBER

public static final int SOURCE_URIS_FIELD_NUMBER
Field Value
Type Description
int

TABLE_ID_FIELD_NUMBER

public static final int TABLE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImportedDataInfo.TableDefinition getDefaultInstance()
Returns
Type Description
ImportedDataInfo.TableDefinition

getDescriptor()

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

newBuilder()

public static ImportedDataInfo.TableDefinition.Builder newBuilder()
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

newBuilder(ImportedDataInfo.TableDefinition prototype)

public static ImportedDataInfo.TableDefinition.Builder newBuilder(ImportedDataInfo.TableDefinition prototype)
Parameter
Name Description
prototype ImportedDataInfo.TableDefinition
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

parseDelimitedFrom(InputStream input)

public static ImportedDataInfo.TableDefinition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImportedDataInfo.TableDefinition parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportedDataInfo.TableDefinition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportedDataInfo.TableDefinition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImportedDataInfo.TableDefinition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImportedDataInfo.TableDefinition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo.TableDefinition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportedDataInfo.TableDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCsvOptions()

public ImportedDataInfo.TableDefinition.CsvOptions getCsvOptions()

CSV specific options.

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

Returns
Type Description
ImportedDataInfo.TableDefinition.CsvOptions

getCsvOptionsOrBuilder()

public ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder getCsvOptionsOrBuilder()

CSV specific options.

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

Returns
Type Description
ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder

getDefaultInstanceForType()

public ImportedDataInfo.TableDefinition getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
int

getParserForType()

public Parser<ImportedDataInfo.TableDefinition> getParserForType()
Returns
Type Description
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
Type Description
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
Type Description
ImportedDataInfo.RecordSchemaOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasCsvOptions()

public boolean hasCsvOptions()

CSV specific options.

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImportedDataInfo.TableDefinition.Builder newBuilderForType()
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportedDataInfo.TableDefinition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder
Overrides

toBuilder()

public ImportedDataInfo.TableDefinition.Builder toBuilder()
Returns
Type Description
ImportedDataInfo.TableDefinition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException