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.Flags
AbstractMap.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/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/drive/web/manage-
sharing#roles).
|
Permission |
setUser(User user)
The user to whom this permission applies.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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.GenericJson
public Permission clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.