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.String |
getCompression()
[Optional] The compression type of the data source.
|
CsvOptions |
getCsvOptions()
Additional properties to set if sourceFormat is set to CSV.
|
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 Storage.
|
ExternalDataConfiguration |
set(java.lang.String fieldName,
java.lang.Object value) |
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 |
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 Storage.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public 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 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