All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.bigquery.model.ExternalDataConfiguration Maven / Gradle / Ivy

There is a newer version: v2-rev20241027-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
 * (build: 2015-11-16 19:10:01 UTC)
 * on 2015-12-18 at 04:11:56 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.bigquery.model;

/**
 * Model definition for ExternalDataConfiguration.
 *
 * 

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: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class ExternalDataConfiguration extends com.google.api.client.json.GenericJson { /** * [Optional] The compression type of the data source. Possible values include GZIP and NONE. The * default value is NONE. This setting is ignored for Google Cloud Datastore backups. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String compression; /** * Additional properties to set if sourceFormat is set to CSV. * The value may be {@code null}. */ @com.google.api.client.util.Key private CsvOptions csvOptions; /** * [Optional] Indicates if BigQuery should allow extra values that are not represented in the * table schema. If true, the extra values are ignored. If false, records with extra columns are * treated as bad records, and if there are too many bad records, an invalid error is returned in * the job result. The default value is false. The sourceFormat property determines what BigQuery * treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column * names Google Cloud Datastore backups: This setting is ignored. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean ignoreUnknownValues; /** * [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the * number of bad records exceeds this value, an invalid error is returned in the job result. The * default value is 0, which requires that all records are valid. This setting is ignored for * Google Cloud Datastore backups. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxBadRecords; /** * [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is * disallowed for Google Cloud Datastore backups. * The value may be {@code null}. */ @com.google.api.client.util.Key private TableSchema schema; /** * [Required] The data format. For CSV files, specify "CSV". For newline-delimited JSON, specify * "NEWLINE_DELIMITED_JSON". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceFormat; /** * [Required] The fully-qualified URIs that point to your data in Google Cloud Storage. Each URI * can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits * related to load jobs apply to external data sources, plus an additional limit of 10 GB maximum * size across all URIs. For Google Cloud Datastore backups, exactly one URI can be specified, and * it must end with '.backup_info'. Also, the '*' wildcard character is not allowed. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List sourceUris; /** * [Optional] The compression type of the data source. Possible values include GZIP and NONE. The * default value is NONE. This setting is ignored for Google Cloud Datastore backups. * @return value or {@code null} for none */ public java.lang.String getCompression() { return compression; } /** * [Optional] The compression type of the data source. Possible values include GZIP and NONE. The * default value is NONE. This setting is ignored for Google Cloud Datastore backups. * @param compression compression or {@code null} for none */ public ExternalDataConfiguration setCompression(java.lang.String compression) { this.compression = compression; return this; } /** * Additional properties to set if sourceFormat is set to CSV. * @return value or {@code null} for none */ public CsvOptions getCsvOptions() { return csvOptions; } /** * Additional properties to set if sourceFormat is set to CSV. * @param csvOptions csvOptions or {@code null} for none */ public ExternalDataConfiguration setCsvOptions(CsvOptions csvOptions) { this.csvOptions = csvOptions; return this; } /** * [Optional] Indicates if BigQuery should allow extra values that are not represented in the * table schema. If true, the extra values are ignored. If false, records with extra columns are * treated as bad records, and if there are too many bad records, an invalid error is returned in * the job result. The default value is false. The sourceFormat property determines what BigQuery * treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column * names Google Cloud Datastore backups: This setting is ignored. * @return value or {@code null} for none */ public java.lang.Boolean getIgnoreUnknownValues() { return ignoreUnknownValues; } /** * [Optional] Indicates if BigQuery should allow extra values that are not represented in the * table schema. If true, the extra values are ignored. If false, records with extra columns are * treated as bad records, and if there are too many bad records, an invalid error is returned in * the job result. The default value is false. The sourceFormat property determines what BigQuery * treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column * names Google Cloud Datastore backups: This setting is ignored. * @param ignoreUnknownValues ignoreUnknownValues or {@code null} for none */ public ExternalDataConfiguration setIgnoreUnknownValues(java.lang.Boolean ignoreUnknownValues) { this.ignoreUnknownValues = ignoreUnknownValues; return this; } /** * [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the * number of bad records exceeds this value, an invalid error is returned in the job result. The * default value is 0, which requires that all records are valid. This setting is ignored for * Google Cloud Datastore backups. * @return value or {@code null} for none */ public java.lang.Integer getMaxBadRecords() { return maxBadRecords; } /** * [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the * number of bad records exceeds this value, an invalid error is returned in the job result. The * default value is 0, which requires that all records are valid. This setting is ignored for * Google Cloud Datastore backups. * @param maxBadRecords maxBadRecords or {@code null} for none */ public ExternalDataConfiguration setMaxBadRecords(java.lang.Integer maxBadRecords) { this.maxBadRecords = maxBadRecords; return this; } /** * [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is * disallowed for Google Cloud Datastore backups. * @return value or {@code null} for none */ public TableSchema getSchema() { return schema; } /** * [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is * disallowed for Google Cloud Datastore backups. * @param schema schema or {@code null} for none */ public ExternalDataConfiguration setSchema(TableSchema schema) { this.schema = schema; return this; } /** * [Required] The data format. For CSV files, specify "CSV". For newline-delimited JSON, specify * "NEWLINE_DELIMITED_JSON". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". * @return value or {@code null} for none */ public java.lang.String getSourceFormat() { return sourceFormat; } /** * [Required] The data format. For CSV files, specify "CSV". For newline-delimited JSON, specify * "NEWLINE_DELIMITED_JSON". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". * @param sourceFormat sourceFormat or {@code null} for none */ public ExternalDataConfiguration setSourceFormat(java.lang.String sourceFormat) { this.sourceFormat = sourceFormat; return this; } /** * [Required] The fully-qualified URIs that point to your data in Google Cloud Storage. Each URI * can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits * related to load jobs apply to external data sources, plus an additional limit of 10 GB maximum * size across all URIs. For Google Cloud Datastore backups, exactly one URI can be specified, and * it must end with '.backup_info'. Also, the '*' wildcard character is not allowed. * @return value or {@code null} for none */ public java.util.List getSourceUris() { return sourceUris; } /** * [Required] The fully-qualified URIs that point to your data in Google Cloud Storage. Each URI * can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits * related to load jobs apply to external data sources, plus an additional limit of 10 GB maximum * size across all URIs. For Google Cloud Datastore backups, exactly one URI can be specified, and * it must end with '.backup_info'. Also, the '*' wildcard character is not allowed. * @param sourceUris sourceUris or {@code null} for none */ public ExternalDataConfiguration setSourceUris(java.util.List sourceUris) { this.sourceUris = sourceUris; return this; } @Override public ExternalDataConfiguration set(String fieldName, Object value) { return (ExternalDataConfiguration) super.set(fieldName, value); } @Override public ExternalDataConfiguration clone() { return (ExternalDataConfiguration) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy