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
Static Fields
CSV_OPTIONS_FIELD_NUMBER
public static final int CSV_OPTIONS_FIELD_NUMBER
Field Value
ENCODING_FIELD_NUMBER
public static final int ENCODING_FIELD_NUMBER
Field Value
public static final int FORMAT_FIELD_NUMBER
Field Value
IGNORE_UNKNOWN_VALUES_FIELD_NUMBER
public static final int IGNORE_UNKNOWN_VALUES_FIELD_NUMBER
Field Value
MAX_BAD_RECORDS_FIELD_NUMBER
public static final int MAX_BAD_RECORDS_FIELD_NUMBER
Field Value
SCHEMA_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER
Field Value
SOURCE_URIS_FIELD_NUMBER
public static final int SOURCE_URIS_FIELD_NUMBER
Field Value
TABLE_ID_FIELD_NUMBER
public static final int TABLE_ID_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ImportedDataInfo.TableDefinition getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ImportedDataInfo.TableDefinition.Builder newBuilder()
Returns
newBuilder(ImportedDataInfo.TableDefinition prototype)
public static ImportedDataInfo.TableDefinition.Builder newBuilder(ImportedDataInfo.TableDefinition prototype)
Parameter
Returns
public static ImportedDataInfo.TableDefinition parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImportedDataInfo.TableDefinition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ImportedDataInfo.TableDefinition parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImportedDataInfo.TableDefinition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ImportedDataInfo.TableDefinition parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImportedDataInfo.TableDefinition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportedDataInfo.TableDefinition parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ImportedDataInfo.TableDefinition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportedDataInfo.TableDefinition parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImportedDataInfo.TableDefinition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ImportedDataInfo.TableDefinition parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ImportedDataInfo.TableDefinition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ImportedDataInfo.TableDefinition> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCsvOptions()
public ImportedDataInfo.TableDefinition.CsvOptions getCsvOptions()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns
getCsvOptionsOrBuilder()
public ImportedDataInfo.TableDefinition.CsvOptionsOrBuilder getCsvOptionsOrBuilder()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns
getDefaultInstanceForType()
public ImportedDataInfo.TableDefinition getDefaultInstanceForType()
Returns
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
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
public ImportedDataInfo.Format getFormat()
Describes the format of the data in source_uri.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
Returns
public int getFormatValue()
Describes the format of the data in source_uri.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.Format format = 3;
Returns
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
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
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
getParserForType()
public Parser<ImportedDataInfo.TableDefinition> getParserForType()
Returns
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
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
getSerializedSize()
public int getSerializedSize()
Returns
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
Returns
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
Returns
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
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
getTableId()
public String getTableId()
BigQuery table_id (required). This will be used to reference this
table in the query.
string table_id = 1;
Returns
getTableIdBytes()
public ByteString getTableIdBytes()
BigQuery table_id (required). This will be used to reference this
table in the query.
string table_id = 1;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCsvOptions()
public boolean hasCsvOptions()
CSV specific options.
.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions csv_options = 6;
Returns
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
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
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ImportedDataInfo.TableDefinition.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ImportedDataInfo.TableDefinition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
toBuilder()
public ImportedDataInfo.TableDefinition.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions