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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
Permission |
clone() |
List<String> |
getAdditionalRoles()
Any additional roles that this permission describes.
|
String |
getEtag()
An etag for this permission.
|
String |
getKind()
The kind of this permission.
|
String |
getRole()
The role that this permission describes.
|
String |
getType()
The type of permission (For example: user, group etc).
|
Permission |
set(String fieldName,
Object value) |
Permission |
setAdditionalRoles(List<String> additionalRoles)
Any additional roles that this permission describes.
|
Permission |
setEtag(String etag)
An etag for this permission.
|
Permission |
setKind(String kind)
The kind of this permission.
|
Permission |
setRole(String role)
The role that this permission describes.
|
Permission |
setType(String type)
The type of permission (For example: user, group etc).
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<String> getAdditionalRoles()
null
for nonepublic Permission setAdditionalRoles(List<String> additionalRoles)
additionalRoles
- additionalRoles or null
for nonepublic String getEtag()
null
for nonepublic Permission setEtag(String etag)
etag
- etag or null
for nonepublic String getKind()
null
for nonepublic Permission setKind(String kind)
kind
- kind or null
for nonepublic String getRole()
null
for nonepublic Permission setRole(String role)
role
- role or null
for nonepublic String getType()
null
for nonepublic Permission setType(String type)
type
- type or null
for nonepublic Permission set(String fieldName, Object value)
set
in class GenericJson
public Permission clone()
clone
in class GenericJson