target.apidocs.com.google.api.services.drive.model.Permission.PermissionDetails.html Maven / Gradle / Ivy
Permission.PermissionDetails (Google Drive API v2-rev20240521-2.0.0)
com.google.api.services.drive.model
Class Permission.PermissionDetails
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.Permission.PermissionDetails
-
- Enclosing class:
- Permission
public static final class Permission.PermissionDetails
extends com.google.api.client.json.GenericJson
Model definition for PermissionPermissionDetails.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
PermissionDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Permission.PermissionDetails
clone()
List<String>
getAdditionalRoles()
Output only.
Boolean
getInherited()
Output only.
String
getInheritedFrom()
Output only.
String
getPermissionType()
Output only.
String
getRole()
Output only.
Permission.PermissionDetails
set(String fieldName,
Object value)
Permission.PermissionDetails
setAdditionalRoles(List<String> additionalRoles)
Output only.
Permission.PermissionDetails
setInherited(Boolean inherited)
Output only.
Permission.PermissionDetails
setInheritedFrom(String inheritedFrom)
Output only.
Permission.PermissionDetails
setPermissionType(String permissionType)
Output only.
Permission.PermissionDetails
setRole(String role)
Output only.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAdditionalRoles
public List<String> getAdditionalRoles()
Output only. Additional roles for this user. Only `commenter` is currently possible, though
more may be supported in the future.
- Returns:
- value or
null
for none
-
setAdditionalRoles
public Permission.PermissionDetails setAdditionalRoles(List<String> additionalRoles)
Output only. Additional roles for this user. Only `commenter` is currently possible, though
more may be supported in the future.
- Parameters:
additionalRoles
- additionalRoles or null
for none
-
getInherited
public Boolean getInherited()
Output only. Whether this permission is inherited. This field is always populated. This is an
output-only field.
- Returns:
- value or
null
for none
-
setInherited
public Permission.PermissionDetails setInherited(Boolean inherited)
Output only. Whether this permission is inherited. This field is always populated. This is an
output-only field.
- Parameters:
inherited
- inherited or null
for none
-
getInheritedFrom
public String getInheritedFrom()
Output only. The ID of the item from which this permission is inherited. This is an output-only
field.
- Returns:
- value or
null
for none
-
setInheritedFrom
public Permission.PermissionDetails setInheritedFrom(String inheritedFrom)
Output only. The ID of the item from which this permission is inherited. This is an output-only
field.
- Parameters:
inheritedFrom
- inheritedFrom or null
for none
-
getPermissionType
public String getPermissionType()
Output only. The permission type for this user. While new values may be added in future, the
following are currently possible: * `file` * `member`
- Returns:
- value or
null
for none
-
setPermissionType
public Permission.PermissionDetails setPermissionType(String permissionType)
Output only. The permission type for this user. While new values may be added in future, the
following are currently possible: * `file` * `member`
- Parameters:
permissionType
- permissionType or null
for none
-
getRole
public String getRole()
Output only. The primary role for this user. While new values may be added in the future, the
following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
- Returns:
- value or
null
for none
-
setRole
public Permission.PermissionDetails setRole(String role)
Output only. The primary role for this user. While new values may be added in the future, the
following are currently possible: * `organizer` * `fileOrganizer` * `writer` * `reader`
- Parameters:
role
- role or null
for none
-
set
public Permission.PermissionDetails set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Permission.PermissionDetails clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.