BigQuery API v2 (revision 88)



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

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

public static final class Dataset.Access
extends GenericJson

Model definition for DatasetAccess.


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
Dataset.Access()
           
 
Method Summary
 Dataset.Access clone()
           
 String getDomain()
          [Pick one] A domain to grant access to.
 String getGroupByEmail()
          [Pick one] A fully-qualified email address of a mailing list to grant access to.
 String getRole()
          [Required] Describes the rights granted to the user specified by the other member of the access object.
 String getSpecialGroup()
          [Pick one] A special group to grant access to.
 String getUserByEmail()
          [Pick one] A fully qualified email address of a user to grant access to.
 Dataset.Access set(String fieldName, Object value)
           
 Dataset.Access setDomain(String domain)
          [Pick one] A domain to grant access to.
 Dataset.Access setGroupByEmail(String groupByEmail)
          [Pick one] A fully-qualified email address of a mailing list to grant access to.
 Dataset.Access setRole(String role)
          [Required] Describes the rights granted to the user specified by the other member of the access object.
 Dataset.Access setSpecialGroup(String specialGroup)
          [Pick one] A special group to grant access to.
 Dataset.Access setUserByEmail(String userByEmail)
          [Pick one] A fully qualified email address of a user to grant access to.
 
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

Dataset.Access

public Dataset.Access()
Method Detail

getDomain

public String getDomain()
[Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".

Returns:
value or null for none

setDomain

public Dataset.Access setDomain(String domain)
[Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".

Parameters:
domain - domain or null for none

getGroupByEmail

public String getGroupByEmail()
[Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.

Returns:
value or null for none

setGroupByEmail

public Dataset.Access setGroupByEmail(String groupByEmail)
[Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.

Parameters:
groupByEmail - groupByEmail or null for none

getRole

public String getRole()
[Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READ - User can call any list() or get() method on any collection or resource. WRITE - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.

Returns:
value or null for none

setRole

public Dataset.Access setRole(String role)
[Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READ - User can call any list() or get() method on any collection or resource. WRITE - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.

Parameters:
role - role or null for none

getSpecialGroup

public String getSpecialGroup()
[Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.

Returns:
value or null for none

setSpecialGroup

public Dataset.Access setSpecialGroup(String specialGroup)
[Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.

Parameters:
specialGroup - specialGroup or null for none

getUserByEmail

public String getUserByEmail()
[Pick one] A fully qualified email address of a user to grant access to. For example: [email protected].

Returns:
value or null for none

setUserByEmail

public Dataset.Access setUserByEmail(String userByEmail)
[Pick one] A fully qualified email address of a user to grant access to. For example: [email protected].

Parameters:
userByEmail - userByEmail or null for none

set

public Dataset.Access set(String fieldName,
                          Object value)
Overrides:
set in class GenericJson

clone

public Dataset.Access clone()
Overrides:
clone in class GenericJson