public final class Permission 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 Drive API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
clone() |
List<String> |
getAdditionalRoles()
Additional roles for this user.
|
String |
getAuthKey()
The authkey parameter required for this permission.
|
String |
getDomain()
The domain name of the entity this permission refers to.
|
String |
getEmailAddress()
The email address of the user this permission refers to.
|
String |
getEtag()
The ETag of the permission.
|
String |
getId()
The ID of the user this permission refers to, and identical to the permissionId in the About
and Files resources.
|
String |
getKind()
This is always drive#permission.
|
String |
getName()
The name for this permission.
|
String |
getPhotoLink()
A link to the profile photo, if available.
|
String |
getRole()
The primary role for this user.
|
String |
getSelfLink()
A link back to this permission.
|
String |
getType()
The account type.
|
String |
getValue()
The email address or domain name for the entity.
|
Boolean |
getWithLink()
Whether the link is required for this permission.
|
Permission |
set(String fieldName,
Object value) |
Permission |
setAdditionalRoles(List<String> additionalRoles)
Additional roles for this user.
|
Permission |
setAuthKey(String authKey)
The authkey parameter required for this permission.
|
Permission |
setDomain(String domain)
The domain name of the entity this permission refers to.
|
Permission |
setEmailAddress(String emailAddress)
The email address of the user this permission refers to.
|
Permission |
setEtag(String etag)
The ETag of the permission.
|
Permission |
setId(String id)
The ID of the user this permission refers to, and identical to the permissionId in the About
and Files resources.
|
Permission |
setKind(String kind)
This is always drive#permission.
|
Permission |
setName(String name)
The name for this permission.
|
Permission |
setPhotoLink(String photoLink)
A link to the profile photo, if available.
|
Permission |
setRole(String role)
The primary role for this user.
|
Permission |
setSelfLink(String selfLink)
A link back to this permission.
|
Permission |
setType(String type)
The account type.
|
Permission |
setValue(String value)
The email address or domain name for the entity.
|
Permission |
setWithLink(Boolean withLink)
Whether the link is required for this permission.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic List<String> getAdditionalRoles()
null for nonepublic Permission setAdditionalRoles(List<String> additionalRoles)
additionalRoles - additionalRoles or null for nonepublic String getAuthKey()
null for nonepublic Permission setAuthKey(String authKey)
authKey - authKey or null for nonepublic String getDomain()
null for nonepublic Permission setDomain(String domain)
domain - domain or null for nonepublic String getEmailAddress()
null for nonepublic Permission setEmailAddress(String emailAddress)
emailAddress - emailAddress or null for nonepublic String getEtag()
null for nonepublic Permission setEtag(String etag)
etag - etag or null for nonepublic String getId()
null for nonepublic Permission setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Permission setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic Permission setName(String name)
name - name or null for nonepublic String getPhotoLink()
null for nonepublic Permission setPhotoLink(String photoLink)
photoLink - photoLink or null for nonepublic String getRole()
null for nonepublic Permission setRole(String role)
role - role or null for nonepublic String getSelfLink()
null for nonepublic Permission setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getType()
null for nonepublic Permission setType(String type)
type - type or null for nonepublic String getValue()
null for nonepublic Permission setValue(String value)
value - value or null for nonepublic Boolean getWithLink()
null for nonepublic Permission setWithLink(Boolean withLink)
withLink - withLink or null for nonepublic Permission set(String fieldName, Object value)
set in class GenericJsonpublic Permission clone()
clone in class GenericJson