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 Activity API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
clone() |
String |
getName()
The name of the user or group the permission applies to.
|
String |
getPermissionId()
The ID for this permission.
|
String |
getRole()
Indicates the Google Drive permissions role.
|
String |
getType()
Indicates how widely permissions are granted.
|
User |
getUser()
The user's information if the type is USER.
|
Boolean |
getWithLink()
Whether the permission requires a link to the file.
|
Permission |
set(String fieldName,
Object value) |
Permission |
setName(String name)
The name of the user or group the permission applies to.
|
Permission |
setPermissionId(String permissionId)
The ID for this permission.
|
Permission |
setRole(String role)
Indicates the Google Drive permissions role.
|
Permission |
setType(String type)
Indicates how widely permissions are granted.
|
Permission |
setUser(User user)
The user's information if the type is USER.
|
Permission |
setWithLink(Boolean withLink)
Whether the permission requires a link to the file.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getName()
null for nonepublic Permission setName(String name)
name - name or null for nonepublic String getPermissionId()
null for nonepublic Permission setPermissionId(String permissionId)
permissionId - permissionId 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 User getUser()
null for nonepublic Permission setUser(User user)
user - user 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 GenericJsonCopyright © 2011–2020 Google. All rights reserved.