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

com.google.api.services.bigquery.model.JobConfigurationQuery 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: 2014-06-09 16:41:44 UTC)
 * on 2014-06-19 at 06:47:02 UTC 
 * Modify at your own risk.
 */

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

/**
 * Model definition for JobConfigurationQuery.
 *
 * 

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 JobConfigurationQuery extends com.google.api.client.json.GenericJson { /** * If true, allows the query to produce arbitrarily large result tables at a slight cost in * performance. Requires destinationTable to be set. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean allowLargeResults; /** * [Optional] Specifies whether the job is allowed to create new tables. The following values are * supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in * the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions * occur as one atomic update upon job completion. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String createDisposition; /** * [Optional] Specifies the default dataset to use for unqualified table names in the query. * The value may be {@code null}. */ @com.google.api.client.util.Key private DatasetReference defaultDataset; /** * [Optional] Describes the table where the query results should be stored. If not present, a new * table will be created to store the results. * The value may be {@code null}. */ @com.google.api.client.util.Key private TableReference destinationTable; /** * [Experimental] Flattens all nested and repeated fields in the query results. The default value * is true. allowLargeResults must be true if this is set to false. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean flattenResults; /** * [Deprecated] This property is deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean preserveNulls; /** * [Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. * The default value is INTERACTIVE. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String priority; /** * [Required] BigQuery SQL query to execute. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String query; /** * [Optional] Whether to look for the result in the query cache. The query cache is a best-effort * cache that will be flushed whenever tables in the query are modified. Moreover, the query cache * is only available when a query does not have a destination table specified. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean useQueryCache; /** * [Optional] Specifies the action that occurs if the destination table already exists. The * following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery * overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data * to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error * is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only * occurs if BigQuery is able to complete the job successfully. Creation, truncation and append * actions occur as one atomic update upon job completion. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String writeDisposition; /** * If true, allows the query to produce arbitrarily large result tables at a slight cost in * performance. Requires destinationTable to be set. * @return value or {@code null} for none */ public java.lang.Boolean getAllowLargeResults() { return allowLargeResults; } /** * If true, allows the query to produce arbitrarily large result tables at a slight cost in * performance. Requires destinationTable to be set. * @param allowLargeResults allowLargeResults or {@code null} for none */ public JobConfigurationQuery setAllowLargeResults(java.lang.Boolean allowLargeResults) { this.allowLargeResults = allowLargeResults; return this; } /** * [Optional] Specifies whether the job is allowed to create new tables. The following values are * supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in * the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions * occur as one atomic update upon job completion. * @return value or {@code null} for none */ public java.lang.String getCreateDisposition() { return createDisposition; } /** * [Optional] Specifies whether the job is allowed to create new tables. The following values are * supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in * the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions * occur as one atomic update upon job completion. * @param createDisposition createDisposition or {@code null} for none */ public JobConfigurationQuery setCreateDisposition(java.lang.String createDisposition) { this.createDisposition = createDisposition; return this; } /** * [Optional] Specifies the default dataset to use for unqualified table names in the query. * @return value or {@code null} for none */ public DatasetReference getDefaultDataset() { return defaultDataset; } /** * [Optional] Specifies the default dataset to use for unqualified table names in the query. * @param defaultDataset defaultDataset or {@code null} for none */ public JobConfigurationQuery setDefaultDataset(DatasetReference defaultDataset) { this.defaultDataset = defaultDataset; return this; } /** * [Optional] Describes the table where the query results should be stored. If not present, a new * table will be created to store the results. * @return value or {@code null} for none */ public TableReference getDestinationTable() { return destinationTable; } /** * [Optional] Describes the table where the query results should be stored. If not present, a new * table will be created to store the results. * @param destinationTable destinationTable or {@code null} for none */ public JobConfigurationQuery setDestinationTable(TableReference destinationTable) { this.destinationTable = destinationTable; return this; } /** * [Experimental] Flattens all nested and repeated fields in the query results. The default value * is true. allowLargeResults must be true if this is set to false. * @return value or {@code null} for none */ public java.lang.Boolean getFlattenResults() { return flattenResults; } /** * [Experimental] Flattens all nested and repeated fields in the query results. The default value * is true. allowLargeResults must be true if this is set to false. * @param flattenResults flattenResults or {@code null} for none */ public JobConfigurationQuery setFlattenResults(java.lang.Boolean flattenResults) { this.flattenResults = flattenResults; return this; } /** * [Deprecated] This property is deprecated. * @return value or {@code null} for none */ public java.lang.Boolean getPreserveNulls() { return preserveNulls; } /** * [Deprecated] This property is deprecated. * @param preserveNulls preserveNulls or {@code null} for none */ public JobConfigurationQuery setPreserveNulls(java.lang.Boolean preserveNulls) { this.preserveNulls = preserveNulls; return this; } /** * [Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. * The default value is INTERACTIVE. * @return value or {@code null} for none */ public java.lang.String getPriority() { return priority; } /** * [Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. * The default value is INTERACTIVE. * @param priority priority or {@code null} for none */ public JobConfigurationQuery setPriority(java.lang.String priority) { this.priority = priority; return this; } /** * [Required] BigQuery SQL query to execute. * @return value or {@code null} for none */ public java.lang.String getQuery() { return query; } /** * [Required] BigQuery SQL query to execute. * @param query query or {@code null} for none */ public JobConfigurationQuery setQuery(java.lang.String query) { this.query = query; return this; } /** * [Optional] Whether to look for the result in the query cache. The query cache is a best-effort * cache that will be flushed whenever tables in the query are modified. Moreover, the query cache * is only available when a query does not have a destination table specified. * @return value or {@code null} for none */ public java.lang.Boolean getUseQueryCache() { return useQueryCache; } /** * [Optional] Whether to look for the result in the query cache. The query cache is a best-effort * cache that will be flushed whenever tables in the query are modified. Moreover, the query cache * is only available when a query does not have a destination table specified. * @param useQueryCache useQueryCache or {@code null} for none */ public JobConfigurationQuery setUseQueryCache(java.lang.Boolean useQueryCache) { this.useQueryCache = useQueryCache; return this; } /** * [Optional] Specifies the action that occurs if the destination table already exists. The * following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery * overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data * to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error * is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only * occurs if BigQuery is able to complete the job successfully. Creation, truncation and append * actions occur as one atomic update upon job completion. * @return value or {@code null} for none */ public java.lang.String getWriteDisposition() { return writeDisposition; } /** * [Optional] Specifies the action that occurs if the destination table already exists. The * following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery * overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data * to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error * is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only * occurs if BigQuery is able to complete the job successfully. Creation, truncation and append * actions occur as one atomic update upon job completion. * @param writeDisposition writeDisposition or {@code null} for none */ public JobConfigurationQuery setWriteDisposition(java.lang.String writeDisposition) { this.writeDisposition = writeDisposition; return this; } @Override public JobConfigurationQuery set(String fieldName, Object value) { return (JobConfigurationQuery) super.set(fieldName, value); } @Override public JobConfigurationQuery clone() { return (JobConfigurationQuery) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy