public final class Dataset extends GenericJson
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: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
Dataset.Access
Model definition for DatasetAccess.
|
static class |
Dataset.Tags
Model definition for DatasetTags.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Dataset() |
Modifier and Type | Method and Description |
---|---|
Dataset |
clone() |
List<Dataset.Access> |
getAccess()
[Optional] An array of objects that define dataset access for one or more entities.
|
Long |
getCreationTime()
[Output-only] The time when this dataset was created, in milliseconds since the epoch.
|
DatasetReference |
getDatasetReference()
[Required] A reference that identifies the dataset.
|
String |
getDefaultCollation()
[Output-only] The default collation of the dataset.
|
EncryptionConfiguration |
getDefaultEncryptionConfiguration() |
Long |
getDefaultPartitionExpirationMs()
[Optional] The default partition expiration for all partitioned tables in the dataset, in
milliseconds.
|
Long |
getDefaultTableExpirationMs()
[Optional] The default lifetime of all tables in the dataset, in milliseconds.
|
String |
getDescription()
[Optional] A user-friendly description of the dataset.
|
String |
getEtag()
[Output-only] A hash of the resource.
|
String |
getFriendlyName()
[Optional] A descriptive name for the dataset.
|
String |
getId()
[Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId.
|
Boolean |
getIsCaseInsensitive()
[Optional] Indicates if table names are case insensitive in the dataset.
|
String |
getKind()
[Output-only] The resource type.
|
Map<String,String> |
getLabels()
The labels associated with this dataset.
|
Long |
getLastModifiedTime()
[Output-only] The date when this dataset or any of its tables was last modified, in
milliseconds since the epoch.
|
String |
getLocation()
The geographic location where the dataset should reside.
|
Long |
getMaxTimeTravelHours()
[Optional] Number of hours for the max time travel for all tables in the dataset.
|
Boolean |
getSatisfiesPzs()
[Output-only] Reserved for future use.
|
String |
getSelfLink()
[Output-only] A URL that can be used to access the resource again.
|
String |
getStorageBillingModel()
[Optional] Storage billing model to be used for all tables in the dataset.
|
List<Dataset.Tags> |
getTags()
[Optional]The tags associated with this dataset.
|
Dataset |
set(String fieldName,
Object value) |
Dataset |
setAccess(List<Dataset.Access> access)
[Optional] An array of objects that define dataset access for one or more entities.
|
Dataset |
setCreationTime(Long creationTime)
[Output-only] The time when this dataset was created, in milliseconds since the epoch.
|
Dataset |
setDatasetReference(DatasetReference datasetReference)
[Required] A reference that identifies the dataset.
|
Dataset |
setDefaultCollation(String defaultCollation)
[Output-only] The default collation of the dataset.
|
Dataset |
setDefaultEncryptionConfiguration(EncryptionConfiguration defaultEncryptionConfiguration) |
Dataset |
setDefaultPartitionExpirationMs(Long defaultPartitionExpirationMs)
[Optional] The default partition expiration for all partitioned tables in the dataset, in
milliseconds.
|
Dataset |
setDefaultTableExpirationMs(Long defaultTableExpirationMs)
[Optional] The default lifetime of all tables in the dataset, in milliseconds.
|
Dataset |
setDescription(String description)
[Optional] A user-friendly description of the dataset.
|
Dataset |
setEtag(String etag)
[Output-only] A hash of the resource.
|
Dataset |
setFriendlyName(String friendlyName)
[Optional] A descriptive name for the dataset.
|
Dataset |
setId(String id)
[Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId.
|
Dataset |
setIsCaseInsensitive(Boolean isCaseInsensitive)
[Optional] Indicates if table names are case insensitive in the dataset.
|
Dataset |
setKind(String kind)
[Output-only] The resource type.
|
Dataset |
setLabels(Map<String,String> labels)
The labels associated with this dataset.
|
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 |
setLocation(String location)
The geographic location where the dataset should reside.
|
Dataset |
setMaxTimeTravelHours(Long maxTimeTravelHours)
[Optional] Number of hours for the max time travel for all tables in the dataset.
|
Dataset |
setSatisfiesPzs(Boolean satisfiesPzs)
[Output-only] Reserved for future use.
|
Dataset |
setSelfLink(String selfLink)
[Output-only] A URL that can be used to access the resource again.
|
Dataset |
setStorageBillingModel(String storageBillingModel)
[Optional] Storage billing model to be used for all tables in the dataset.
|
Dataset |
setTags(List<Dataset.Tags> tags)
[Optional]The tags associated with this dataset.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<Dataset.Access> getAccess()
null
for nonepublic Dataset setAccess(List<Dataset.Access> access)
access
- access or null
for nonepublic Long getCreationTime()
null
for nonepublic Dataset setCreationTime(Long creationTime)
creationTime
- creationTime or null
for nonepublic DatasetReference getDatasetReference()
null
for nonepublic Dataset setDatasetReference(DatasetReference datasetReference)
datasetReference
- datasetReference or null
for nonepublic String getDefaultCollation()
null
for nonepublic Dataset setDefaultCollation(String defaultCollation)
defaultCollation
- defaultCollation or null
for nonepublic EncryptionConfiguration getDefaultEncryptionConfiguration()
null
for nonepublic Dataset setDefaultEncryptionConfiguration(EncryptionConfiguration defaultEncryptionConfiguration)
defaultEncryptionConfiguration
- defaultEncryptionConfiguration or null
for nonepublic Long getDefaultPartitionExpirationMs()
null
for nonepublic Dataset setDefaultPartitionExpirationMs(Long defaultPartitionExpirationMs)
defaultPartitionExpirationMs
- defaultPartitionExpirationMs or null
for nonepublic Long getDefaultTableExpirationMs()
null
for nonepublic Dataset setDefaultTableExpirationMs(Long defaultTableExpirationMs)
defaultTableExpirationMs
- defaultTableExpirationMs or null
for nonepublic String getDescription()
null
for nonepublic Dataset setDescription(String description)
description
- description or null
for nonepublic String getEtag()
null
for nonepublic Dataset setEtag(String etag)
etag
- etag or null
for nonepublic String getFriendlyName()
null
for nonepublic Dataset setFriendlyName(String friendlyName)
friendlyName
- friendlyName or null
for nonepublic String getId()
null
for nonepublic Dataset setId(String id)
id
- id or null
for nonepublic Boolean getIsCaseInsensitive()
null
for nonepublic Dataset setIsCaseInsensitive(Boolean isCaseInsensitive)
isCaseInsensitive
- isCaseInsensitive or null
for nonepublic String getKind()
null
for nonepublic Dataset setKind(String kind)
kind
- kind or null
for nonepublic Map<String,String> getLabels()
null
for nonepublic Dataset setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic Long getLastModifiedTime()
null
for nonepublic Dataset setLastModifiedTime(Long lastModifiedTime)
lastModifiedTime
- lastModifiedTime or null
for nonepublic String getLocation()
null
for nonepublic Dataset setLocation(String location)
location
- location or null
for nonepublic Long getMaxTimeTravelHours()
null
for nonepublic Dataset setMaxTimeTravelHours(Long maxTimeTravelHours)
maxTimeTravelHours
- maxTimeTravelHours or null
for nonepublic Boolean getSatisfiesPzs()
null
for nonepublic Dataset setSatisfiesPzs(Boolean satisfiesPzs)
satisfiesPzs
- satisfiesPzs or null
for nonepublic String getSelfLink()
null
for nonepublic Dataset setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getStorageBillingModel()
null
for nonepublic Dataset setStorageBillingModel(String storageBillingModel)
storageBillingModel
- storageBillingModel or null
for nonepublic List<Dataset.Tags> getTags()
null
for nonepublic Dataset setTags(List<Dataset.Tags> tags)
tags
- tags or null
for nonepublic Dataset set(String fieldName, Object value)
set
in class GenericJson
public Dataset clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.