public final class ExternalDataConfiguration
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the BigQuery API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ExternalDataConfiguration() |
Modifier and Type | Method and Description |
---|---|
ExternalDataConfiguration |
clone() |
java.lang.Boolean |
getAutodetect()
[Experimental] Try to detect schema and format options automatically.
|
BigtableOptions |
getBigtableOptions()
[Optional] Additional options if sourceFormat is set to BIGTABLE.
|
java.lang.String |
getCompression()
[Optional] The compression type of the data source.
|
CsvOptions |
getCsvOptions()
Additional properties to set if sourceFormat is set to CSV.
|
GoogleSheetsOptions |
getGoogleSheetsOptions()
[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
java.lang.Boolean |
getIgnoreUnknownValues()
[Optional] Indicates if BigQuery should allow extra values that are not represented in the
table schema.
|
java.lang.Integer |
getMaxBadRecords()
[Optional] The maximum number of bad records that BigQuery can ignore when reading data.
|
TableSchema |
getSchema()
[Optional] The schema for the data.
|
java.lang.String |
getSourceFormat()
[Required] The data format.
|
java.util.List<java.lang.String> |
getSourceUris()
[Required] The fully-qualified URIs that point to your data in Google Cloud.
|
ExternalDataConfiguration |
set(java.lang.String fieldName,
java.lang.Object value) |
ExternalDataConfiguration |
setAutodetect(java.lang.Boolean autodetect)
[Experimental] Try to detect schema and format options automatically.
|
ExternalDataConfiguration |
setBigtableOptions(BigtableOptions bigtableOptions)
[Optional] Additional options if sourceFormat is set to BIGTABLE.
|
ExternalDataConfiguration |
setCompression(java.lang.String compression)
[Optional] The compression type of the data source.
|
ExternalDataConfiguration |
setCsvOptions(CsvOptions csvOptions)
Additional properties to set if sourceFormat is set to CSV.
|
ExternalDataConfiguration |
setGoogleSheetsOptions(GoogleSheetsOptions googleSheetsOptions)
[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
ExternalDataConfiguration |
setIgnoreUnknownValues(java.lang.Boolean ignoreUnknownValues)
[Optional] Indicates if BigQuery should allow extra values that are not represented in the
table schema.
|
ExternalDataConfiguration |
setMaxBadRecords(java.lang.Integer maxBadRecords)
[Optional] The maximum number of bad records that BigQuery can ignore when reading data.
|
ExternalDataConfiguration |
setSchema(TableSchema schema)
[Optional] The schema for the data.
|
ExternalDataConfiguration |
setSourceFormat(java.lang.String sourceFormat)
[Required] The data format.
|
ExternalDataConfiguration |
setSourceUris(java.util.List<java.lang.String> sourceUris)
[Required] The fully-qualified URIs that point to your data in Google Cloud.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Boolean getAutodetect()
null
for nonepublic ExternalDataConfiguration setAutodetect(java.lang.Boolean autodetect)
autodetect
- autodetect or null
for nonepublic BigtableOptions getBigtableOptions()
null
for nonepublic ExternalDataConfiguration setBigtableOptions(BigtableOptions bigtableOptions)
bigtableOptions
- bigtableOptions or null
for nonepublic java.lang.String getCompression()
null
for nonepublic ExternalDataConfiguration setCompression(java.lang.String compression)
compression
- compression or null
for nonepublic CsvOptions getCsvOptions()
null
for nonepublic ExternalDataConfiguration setCsvOptions(CsvOptions csvOptions)
csvOptions
- csvOptions or null
for nonepublic GoogleSheetsOptions getGoogleSheetsOptions()
null
for nonepublic ExternalDataConfiguration setGoogleSheetsOptions(GoogleSheetsOptions googleSheetsOptions)
googleSheetsOptions
- googleSheetsOptions or null
for nonepublic java.lang.Boolean getIgnoreUnknownValues()
null
for nonepublic ExternalDataConfiguration setIgnoreUnknownValues(java.lang.Boolean ignoreUnknownValues)
ignoreUnknownValues
- ignoreUnknownValues or null
for nonepublic java.lang.Integer getMaxBadRecords()
null
for nonepublic ExternalDataConfiguration setMaxBadRecords(java.lang.Integer maxBadRecords)
maxBadRecords
- maxBadRecords or null
for nonepublic TableSchema getSchema()
null
for nonepublic ExternalDataConfiguration setSchema(TableSchema schema)
schema
- schema or null
for nonepublic java.lang.String getSourceFormat()
null
for nonepublic ExternalDataConfiguration setSourceFormat(java.lang.String sourceFormat)
sourceFormat
- sourceFormat or null
for nonepublic java.util.List<java.lang.String> getSourceUris()
null
for nonepublic ExternalDataConfiguration setSourceUris(java.util.List<java.lang.String> sourceUris)
sourceUris
- sourceUris or null
for nonepublic ExternalDataConfiguration set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ExternalDataConfiguration clone()
clone
in class com.google.api.client.json.GenericJson