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 Activity API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
clone() |
Boolean |
getAllowDiscovery()
If true, the item can be discovered (e.g.
|
Anyone |
getAnyone()
If set, this permission applies to anyone, even logged out users.
|
Domain |
getDomain()
The domain to whom this permission applies.
|
Group |
getGroup()
The group to whom this permission applies.
|
String |
getRole()
Indicates the [Google Drive permissions
role](https://developers.google.com/workspace/drive/web/manage-sharing#roles).
|
User |
getUser()
The user to whom this permission applies.
|
Permission |
set(String fieldName,
Object value) |
Permission |
setAllowDiscovery(Boolean allowDiscovery)
If true, the item can be discovered (e.g.
|
Permission |
setAnyone(Anyone anyone)
If set, this permission applies to anyone, even logged out users.
|
Permission |
setDomain(Domain domain)
The domain to whom this permission applies.
|
Permission |
setGroup(Group group)
The group to whom this permission applies.
|
Permission |
setRole(String role)
Indicates the [Google Drive permissions
role](https://developers.google.com/workspace/drive/web/manage-sharing#roles).
|
Permission |
setUser(User user)
The user to whom this permission applies.
|
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 Boolean getAllowDiscovery()
null for nonepublic Permission setAllowDiscovery(Boolean allowDiscovery)
allowDiscovery - allowDiscovery or null for nonepublic Anyone getAnyone()
null for nonepublic Permission setAnyone(Anyone anyone)
anyone - anyone or null for nonepublic Domain getDomain()
null for nonepublic Permission setDomain(Domain domain)
domain - domain or null for nonepublic Group getGroup()
null for nonepublic Permission setGroup(Group group)
group - group or null for nonepublic String getRole()
null for nonepublic Permission setRole(String role)
role - role or null for nonepublic User getUser()
null for nonepublic Permission setUser(User user)
user - user or null for nonepublic Permission set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Permission clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.