com.google.api.services.bigquery.model.TableDataInsertAllRequest 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-06-09 16:41:44 UTC)
* on 2014-07-02 at 14:03:09 UTC
* Modify at your own risk.
*/
package com.google.api.services.bigquery.model;
/**
* Model definition for TableDataInsertAllRequest.
*
* 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-api-java-client/wiki/Json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TableDataInsertAllRequest extends com.google.api.client.json.GenericJson {
/**
* The resource type of the response.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* The rows to insert.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List rows;
static {
// hack to force ProGuard to consider Rows used, since otherwise it would be stripped out
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
com.google.api.client.util.Data.nullOf(Rows.class);
}
/**
* The resource type of the response.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* The resource type of the response.
* @param kind kind or {@code null} for none
*/
public TableDataInsertAllRequest setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* The rows to insert.
* @return value or {@code null} for none
*/
public java.util.List getRows() {
return rows;
}
/**
* The rows to insert.
* @param rows rows or {@code null} for none
*/
public TableDataInsertAllRequest setRows(java.util.List rows) {
this.rows = rows;
return this;
}
@Override
public TableDataInsertAllRequest set(String fieldName, Object value) {
return (TableDataInsertAllRequest) super.set(fieldName, value);
}
@Override
public TableDataInsertAllRequest clone() {
return (TableDataInsertAllRequest) super.clone();
}
/**
* Model definition for TableDataInsertAllRequestRows.
*/
public static final class Rows extends com.google.api.client.json.GenericJson {
/**
* [Optional] A unique ID for each row. BigQuery uses this property to detect duplicate insertion
* requests on a best-effort basis.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String insertId;
/**
* [Required] A JSON object that contains a row of data. The object's properties and values must
* match the destination table's schema.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map json;
/**
* [Optional] A unique ID for each row. BigQuery uses this property to detect duplicate insertion
* requests on a best-effort basis.
* @return value or {@code null} for none
*/
public java.lang.String getInsertId() {
return insertId;
}
/**
* [Optional] A unique ID for each row. BigQuery uses this property to detect duplicate insertion
* requests on a best-effort basis.
* @param insertId insertId or {@code null} for none
*/
public Rows setInsertId(java.lang.String insertId) {
this.insertId = insertId;
return this;
}
/**
* [Required] A JSON object that contains a row of data. The object's properties and values must
* match the destination table's schema.
* @return value or {@code null} for none
*/
public java.util.Map getJson() {
return json;
}
/**
* [Required] A JSON object that contains a row of data. The object's properties and values must
* match the destination table's schema.
* @param json json or {@code null} for none
*/
public Rows setJson(java.util.Map json) {
this.json = json;
return this;
}
@Override
public Rows set(String fieldName, Object value) {
return (Rows) super.set(fieldName, value);
}
@Override
public Rows clone() {
return (Rows) super.clone();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy