BigQuery API v2 (revision 86)



com.google.api.services.bigquery.model
Class TableFieldSchema

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.bigquery.model.TableFieldSchema
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class TableFieldSchema
extends GenericJson

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-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
TableFieldSchema()
           
 
Method Summary
 List<TableFieldSchema> getFields()
          [Optional] Describes the nested schema fields if the type property is set to RECORD.
 String getMode()
          [Optional] The field mode.
 String getName()
          [Required] The field name.
 String getType()
          [Required] The field data type.
 TableFieldSchema setFields(List<TableFieldSchema> fields)
          [Optional] Describes the nested schema fields if the type property is set to RECORD.
 TableFieldSchema setMode(String mode)
          [Optional] The field mode.
 TableFieldSchema setName(String name)
          [Required] The field name.
 TableFieldSchema setType(String type)
          [Required] The field data type.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableFieldSchema

public TableFieldSchema()
Method Detail

getFields

public List<TableFieldSchema> getFields()
[Optional] Describes the nested schema fields if the type property is set to RECORD. The value returned may be null.


setFields

public TableFieldSchema setFields(List<TableFieldSchema> fields)
[Optional] Describes the nested schema fields if the type property is set to RECORD. The value set may be null.


getMode

public String getMode()
[Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. The value returned may be null.


setMode

public TableFieldSchema setMode(String mode)
[Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. The value set may be null.


getName

public String getName()
[Required] The field name. The value returned may be null.


setName

public TableFieldSchema setName(String name)
[Required] The field name. The value set may be null.


getType

public String getType()
[Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates a nested schema). The value returned may be null.


setType

public TableFieldSchema setType(String type)
[Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates a nested schema). The value set may be null.