public final class Permission
extends com.google.api.client.json.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 Drive API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
Permission |
clone() |
java.lang.Boolean |
getAllowFileDiscovery()
Whether the permission allows the file to be discovered through search.
|
java.lang.String |
getDisplayName()
A displayable name for users, groups or domains.
|
java.lang.String |
getDomain()
The domain to which this permission refers.
|
java.lang.String |
getEmailAddress()
The email address of the user or group to which this permission refers.
|
com.google.api.client.util.DateTime |
getExpirationTime()
The time at which this permission will expire (RFC 3339 date-time).
|
java.lang.String |
getId()
The ID of this permission.
|
java.lang.String |
getKind()
Identifies what kind of resource this is.
|
java.lang.String |
getPhotoLink()
A link to the user's profile photo, if available.
|
java.lang.String |
getRole()
The role granted by this permission.
|
java.lang.String |
getType()
The type of the grantee.
|
Permission |
set(java.lang.String fieldName,
java.lang.Object value) |
Permission |
setAllowFileDiscovery(java.lang.Boolean allowFileDiscovery)
Whether the permission allows the file to be discovered through search.
|
Permission |
setDisplayName(java.lang.String displayName)
A displayable name for users, groups or domains.
|
Permission |
setDomain(java.lang.String domain)
The domain to which this permission refers.
|
Permission |
setEmailAddress(java.lang.String emailAddress)
The email address of the user or group to which this permission refers.
|
Permission |
setExpirationTime(com.google.api.client.util.DateTime expirationTime)
The time at which this permission will expire (RFC 3339 date-time).
|
Permission |
setId(java.lang.String id)
The ID of this permission.
|
Permission |
setKind(java.lang.String kind)
Identifies what kind of resource this is.
|
Permission |
setPhotoLink(java.lang.String photoLink)
A link to the user's profile photo, if available.
|
Permission |
setRole(java.lang.String role)
The role granted by this permission.
|
Permission |
setType(java.lang.String type)
The type of the grantee.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Boolean getAllowFileDiscovery()
null
for nonepublic Permission setAllowFileDiscovery(java.lang.Boolean allowFileDiscovery)
allowFileDiscovery
- allowFileDiscovery or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic Permission setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.lang.String getDomain()
null
for nonepublic Permission setDomain(java.lang.String domain)
domain
- domain or null
for nonepublic java.lang.String getEmailAddress()
null
for nonepublic Permission setEmailAddress(java.lang.String emailAddress)
emailAddress
- emailAddress or null
for nonepublic com.google.api.client.util.DateTime getExpirationTime()
null
for nonepublic Permission setExpirationTime(com.google.api.client.util.DateTime expirationTime)
expirationTime
- expirationTime or null
for nonepublic java.lang.String getId()
null
for nonepublic Permission setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Permission setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getPhotoLink()
null
for nonepublic Permission setPhotoLink(java.lang.String photoLink)
photoLink
- photoLink or null
for nonepublic java.lang.String getRole()
null
for nonepublic Permission setRole(java.lang.String role)
role
- role or null
for nonepublic java.lang.String getType()
null
for nonepublic Permission setType(java.lang.String type)
type
- type or null
for nonepublic Permission set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Permission clone()
clone
in class com.google.api.client.json.GenericJson