BigQuery API v2 (revision 84)



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

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

public final class Dataset
extends GenericJson

Model definition for Dataset.

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
static class Dataset.Access
          Model definition for DatasetAccess.
 
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
Dataset()
           
 
Method Summary
 List<Dataset.Access> getAccess()
          [Optional] Describes users' rights on the dataset.
 Long getCreationTime()
          [Output-only] The time when this dataset was created, in milliseconds since the epoch.
 DatasetReference getDatasetReference()
          [Required] Reference identifying dataset.
 String getDescription()
          [Optional] A user-friendly string description for the dataset.
 String getEtag()
          [Output-only] A hash of this resource.
 String getFriendlyName()
          [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset.
 String getId()
          [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId.
 String getKind()
          [Output-only] The resource type.
 Long getLastModifiedTime()
          [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
 String getSelfLink()
          [Output-only] An URL that can be used to access this resource again.
 Dataset setAccess(List<Dataset.Access> access)
          [Optional] Describes users' rights on the dataset.
 Dataset setCreationTime(Long creationTime)
          [Output-only] The time when this dataset was created, in milliseconds since the epoch.
 Dataset setDatasetReference(DatasetReference datasetReference)
          [Required] Reference identifying dataset.
 Dataset setDescription(String description)
          [Optional] A user-friendly string description for the dataset.
 Dataset setEtag(String etag)
          [Output-only] A hash of this resource.
 Dataset setFriendlyName(String friendlyName)
          [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset.
 Dataset setId(String id)
          [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId.
 Dataset setKind(String kind)
          [Output-only] The resource type.
 Dataset setLastModifiedTime(Long lastModifiedTime)
          [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
 Dataset setSelfLink(String selfLink)
          [Output-only] An URL that can be used to access this resource again.
 
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

Dataset

public Dataset()
Method Detail

getAccess

public List<Dataset.Access> getAccess()
[Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user. Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READ - Project readers WRITE - Project writers See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above. To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role. Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers. The value returned may be null.


setAccess

public Dataset setAccess(List<Dataset.Access> access)
[Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user. Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READ - Project readers WRITE - Project writers See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above. To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role. Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers. The value set may be null.


getCreationTime

public Long getCreationTime()
[Output-only] The time when this dataset was created, in milliseconds since the epoch. The value returned may be null.


setCreationTime

public Dataset setCreationTime(Long creationTime)
[Output-only] The time when this dataset was created, in milliseconds since the epoch. The value set may be null.


getDatasetReference

public DatasetReference getDatasetReference()
[Required] Reference identifying dataset. The value returned may be null.


setDatasetReference

public Dataset setDatasetReference(DatasetReference datasetReference)
[Required] Reference identifying dataset. The value set may be null.


getDescription

public String getDescription()
[Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset. The value returned may be null.


setDescription

public Dataset setDescription(String description)
[Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset. The value set may be null.


getEtag

public String getEtag()
[Output-only] A hash of this resource. The value returned may be null.


setEtag

public Dataset setEtag(String etag)
[Output-only] A hash of this resource. The value set may be null.


getFriendlyName

public String getFriendlyName()
[Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls. The value returned may be null.


setFriendlyName

public Dataset setFriendlyName(String friendlyName)
[Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls. The value set may be null.


getId

public String getId()
[Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field. The value returned may be null.


setId

public Dataset setId(String id)
[Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field. The value set may be null.


getKind

public String getKind()
[Output-only] The resource type. The value returned may be null.


setKind

public Dataset setKind(String kind)
[Output-only] The resource type. The value set may be null.


getLastModifiedTime

public Long getLastModifiedTime()
[Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch. The value returned may be null.


setLastModifiedTime

public Dataset setLastModifiedTime(Long lastModifiedTime)
[Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch. The value set may be null.


getSelfLink

public String getSelfLink()
[Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource. The value returned may be null.


setSelfLink

public Dataset setSelfLink(String selfLink)
[Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource. The value set may be null.