com.google.api.services.bigquery.model.JobConfiguration Maven / Gradle / Ivy
/*
* 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-04-15 19:10:39 UTC)
* on 2014-04-29 at 15:08:55 UTC
* Modify at your own risk.
*/
package com.google.api.services.bigquery.model;
/**
* Model definition for JobConfiguration.
*
* 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 JobConfiguration extends com.google.api.client.json.GenericJson {
/**
* [Pick one] Copies a table.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JobConfigurationTableCopy copy;
/**
* [Optional] If set, don't actually run this job. A valid query will return a mostly empty
* response with some processing statistics, while an invalid query will return the same error it
* would if it wasn't a dry run. Behavior of non-query jobs is undefined.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean dryRun;
/**
* [Pick one] Configures an extract job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JobConfigurationExtract extract;
/**
* [Pick one] Configures a link job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JobConfigurationLink link;
/**
* [Pick one] Configures a load job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JobConfigurationLoad load;
/**
* [Pick one] Configures a query job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private JobConfigurationQuery query;
/**
* [Pick one] Copies a table.
* @return value or {@code null} for none
*/
public JobConfigurationTableCopy getCopy() {
return copy;
}
/**
* [Pick one] Copies a table.
* @param copy copy or {@code null} for none
*/
public JobConfiguration setCopy(JobConfigurationTableCopy copy) {
this.copy = copy;
return this;
}
/**
* [Optional] If set, don't actually run this job. A valid query will return a mostly empty
* response with some processing statistics, while an invalid query will return the same error it
* would if it wasn't a dry run. Behavior of non-query jobs is undefined.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDryRun() {
return dryRun;
}
/**
* [Optional] If set, don't actually run this job. A valid query will return a mostly empty
* response with some processing statistics, while an invalid query will return the same error it
* would if it wasn't a dry run. Behavior of non-query jobs is undefined.
* @param dryRun dryRun or {@code null} for none
*/
public JobConfiguration setDryRun(java.lang.Boolean dryRun) {
this.dryRun = dryRun;
return this;
}
/**
* [Pick one] Configures an extract job.
* @return value or {@code null} for none
*/
public JobConfigurationExtract getExtract() {
return extract;
}
/**
* [Pick one] Configures an extract job.
* @param extract extract or {@code null} for none
*/
public JobConfiguration setExtract(JobConfigurationExtract extract) {
this.extract = extract;
return this;
}
/**
* [Pick one] Configures a link job.
* @return value or {@code null} for none
*/
public JobConfigurationLink getLink() {
return link;
}
/**
* [Pick one] Configures a link job.
* @param link link or {@code null} for none
*/
public JobConfiguration setLink(JobConfigurationLink link) {
this.link = link;
return this;
}
/**
* [Pick one] Configures a load job.
* @return value or {@code null} for none
*/
public JobConfigurationLoad getLoad() {
return load;
}
/**
* [Pick one] Configures a load job.
* @param load load or {@code null} for none
*/
public JobConfiguration setLoad(JobConfigurationLoad load) {
this.load = load;
return this;
}
/**
* [Pick one] Configures a query job.
* @return value or {@code null} for none
*/
public JobConfigurationQuery getQuery() {
return query;
}
/**
* [Pick one] Configures a query job.
* @param query query or {@code null} for none
*/
public JobConfiguration setQuery(JobConfigurationQuery query) {
this.query = query;
return this;
}
@Override
public JobConfiguration set(String fieldName, Object value) {
return (JobConfiguration) super.set(fieldName, value);
}
@Override
public JobConfiguration clone() {
return (JobConfiguration) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy