BigQuery API v2 (revision 77)



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

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.Table
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Table
extends GenericJson

Model definition for Table.

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.

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
Table()
           
 
Method Summary
 Table clone()
           
 Long getCreationTime()
          [Output-only] The time when this table was created, in milliseconds since the epoch.
 String getDescription()
          [Optional] A user-friendly description of this table.
 String getEtag()
          [Output-only] A hash of this resource.
 Long getExpirationTime()
          [Optional] The time when this table expires, in milliseconds since the epoch.
 String getFriendlyName()
          [Optional] A descriptive name for this table.
 String getId()
          [Output-only] An opaque ID uniquely identifying the table.
 String getKind()
          [Output-only] The type of the resource.
 Long getLastModifiedTime()
          [Output-only] The time when this table was last modified, in milliseconds since the epoch.
 Long getNumBytes()
          [Output-only] The size of the table in bytes.
 BigInteger getNumRows()
          [Output-only] The number of rows of data in this table.
 TableSchema getSchema()
          [Optional] Describes the schema of this table.
 String getSelfLink()
          [Output-only] A URL that can be used to access this resource again.
 TableReference getTableReference()
          [Required] Reference describing the ID of this table.
 Table set(String fieldName, Object value)
           
 Table setCreationTime(Long creationTime)
          [Output-only] The time when this table was created, in milliseconds since the epoch.
 Table setDescription(String description)
          [Optional] A user-friendly description of this table.
 Table setEtag(String etag)
          [Output-only] A hash of this resource.
 Table setExpirationTime(Long expirationTime)
          [Optional] The time when this table expires, in milliseconds since the epoch.
 Table setFriendlyName(String friendlyName)
          [Optional] A descriptive name for this table.
 Table setId(String id)
          [Output-only] An opaque ID uniquely identifying the table.
 Table setKind(String kind)
          [Output-only] The type of the resource.
 Table setLastModifiedTime(Long lastModifiedTime)
          [Output-only] The time when this table was last modified, in milliseconds since the epoch.
 Table setNumBytes(Long numBytes)
          [Output-only] The size of the table in bytes.
 Table setNumRows(BigInteger numRows)
          [Output-only] The number of rows of data in this table.
 Table setSchema(TableSchema schema)
          [Optional] Describes the schema of this table.
 Table setSelfLink(String selfLink)
          [Output-only] A URL that can be used to access this resource again.
 Table setTableReference(TableReference tableReference)
          [Required] Reference describing the ID of this table.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, 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

Table

public Table()
Method Detail

getCreationTime

public Long getCreationTime()
[Output-only] The time when this table was created, in milliseconds since the epoch.

Returns:
value or null for none

setCreationTime

public Table setCreationTime(Long creationTime)
[Output-only] The time when this table was created, in milliseconds since the epoch.

Parameters:
creationTime - creationTime or null for none

getDescription

public String getDescription()
[Optional] A user-friendly description of this table.

Returns:
value or null for none

setDescription

public Table setDescription(String description)
[Optional] A user-friendly description of this table.

Parameters:
description - description or null for none

getEtag

public String getEtag()
[Output-only] A hash of this resource.

Returns:
value or null for none

setEtag

public Table setEtag(String etag)
[Output-only] A hash of this resource.

Parameters:
etag - etag or null for none

getExpirationTime

public Long getExpirationTime()
[Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.

Returns:
value or null for none

setExpirationTime

public Table setExpirationTime(Long expirationTime)
[Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.

Parameters:
expirationTime - expirationTime or null for none

getFriendlyName

public String getFriendlyName()
[Optional] A descriptive name for this table.

Returns:
value or null for none

setFriendlyName

public Table setFriendlyName(String friendlyName)
[Optional] A descriptive name for this table.

Parameters:
friendlyName - friendlyName or null for none

getId

public String getId()
[Output-only] An opaque ID uniquely identifying the table.

Returns:
value or null for none

setId

public Table setId(String id)
[Output-only] An opaque ID uniquely identifying the table.

Parameters:
id - id or null for none

getKind

public String getKind()
[Output-only] The type of the resource.

Returns:
value or null for none

setKind

public Table setKind(String kind)
[Output-only] The type of the resource.

Parameters:
kind - kind or null for none

getLastModifiedTime

public Long getLastModifiedTime()
[Output-only] The time when this table was last modified, in milliseconds since the epoch.

Returns:
value or null for none

setLastModifiedTime

public Table setLastModifiedTime(Long lastModifiedTime)
[Output-only] The time when this table was last modified, in milliseconds since the epoch.

Parameters:
lastModifiedTime - lastModifiedTime or null for none

getNumBytes

public Long getNumBytes()
[Output-only] The size of the table in bytes.

Returns:
value or null for none

setNumBytes

public Table setNumBytes(Long numBytes)
[Output-only] The size of the table in bytes.

Parameters:
numBytes - numBytes or null for none

getNumRows

public BigInteger getNumRows()
[Output-only] The number of rows of data in this table.

Returns:
value or null for none

setNumRows

public Table setNumRows(BigInteger numRows)
[Output-only] The number of rows of data in this table.

Parameters:
numRows - numRows or null for none

getSchema

public TableSchema getSchema()
[Optional] Describes the schema of this table.

Returns:
value or null for none

setSchema

public Table setSchema(TableSchema schema)
[Optional] Describes the schema of this table.

Parameters:
schema - schema or null for none

getSelfLink

public String getSelfLink()
[Output-only] A URL that can be used to access this resource again.

Returns:
value or null for none

setSelfLink

public Table setSelfLink(String selfLink)
[Output-only] A URL that can be used to access this resource again.

Parameters:
selfLink - selfLink or null for none

getTableReference

public TableReference getTableReference()
[Required] Reference describing the ID of this table.

Returns:
value or null for none

setTableReference

public Table setTableReference(TableReference tableReference)
[Required] Reference describing the ID of this table.

Parameters:
tableReference - tableReference or null for none

set

public Table set(String fieldName,
                 Object value)
Overrides:
set in class GenericJson

clone

public Table clone()
Overrides:
clone in class GenericJson