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

com.google.api.services.bigquery.model.TableFieldSchema 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-10-28 17:08:27 UTC)
 * on 2014-11-14 at 19:51:40 UTC 
 * Modify at your own risk.
 */

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

/**
 * Model definition for TableFieldSchema.
 *
 * 

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 TableFieldSchema extends com.google.api.client.json.GenericJson { /** * [Optional] The field description. The maximum length is 16K characters. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * [Optional] Describes the nested schema fields if the type property is set to RECORD. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List fields; /** * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default * value is NULLABLE. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mode; /** * [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or * underscores (_), and must start with a letter or underscore. The maximum length is 128 * characters. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, * TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** * [Optional] The field description. The maximum length is 16K characters. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * [Optional] The field description. The maximum length is 16K characters. * @param description description or {@code null} for none */ public TableFieldSchema setDescription(java.lang.String description) { this.description = description; return this; } /** * [Optional] Describes the nested schema fields if the type property is set to RECORD. * @return value or {@code null} for none */ public java.util.List getFields() { return fields; } /** * [Optional] Describes the nested schema fields if the type property is set to RECORD. * @param fields fields or {@code null} for none */ public TableFieldSchema setFields(java.util.List fields) { this.fields = fields; return this; } /** * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default * value is NULLABLE. * @return value or {@code null} for none */ public java.lang.String getMode() { return mode; } /** * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default * value is NULLABLE. * @param mode mode or {@code null} for none */ public TableFieldSchema setMode(java.lang.String mode) { this.mode = mode; return this; } /** * [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or * underscores (_), and must start with a letter or underscore. The maximum length is 128 * characters. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or * underscores (_), and must start with a letter or underscore. The maximum length is 128 * characters. * @param name name or {@code null} for none */ public TableFieldSchema setName(java.lang.String name) { this.name = name; return this; } /** * [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, * TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema). * @return value or {@code null} for none */ public java.lang.String getType() { return type; } /** * [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, * TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema). * @param type type or {@code null} for none */ public TableFieldSchema setType(java.lang.String type) { this.type = type; return this; } @Override public TableFieldSchema set(String fieldName, Object value) { return (TableFieldSchema) super.set(fieldName, value); } @Override public TableFieldSchema clone() { return (TableFieldSchema) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy