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 Google Drive API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
Permission.PermissionDetails
Model definition for PermissionPermissionDetails.
|
static class |
Permission.TeamDrivePermissionDetails
Model definition for PermissionTeamDrivePermissionDetails.
|
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 |
getAllowFileDiscovery()
Whether the permission allows the file to be discovered through search.
|
Boolean |
getDeleted()
Output only.
|
String |
getDisplayName()
Output only.
|
String |
getDomain()
The domain to which this permission refers.
|
String |
getEmailAddress()
The email address of the user or group to which this permission refers.
|
com.google.api.client.util.DateTime |
getExpirationTime()
The time at which this permission will expire (RFC 3339 date-time).
|
String |
getId()
Output only.
|
String |
getKind()
Output only.
|
Boolean |
getPendingOwner()
Whether the account associated with this permission is a pending owner.
|
List<Permission.PermissionDetails> |
getPermissionDetails()
Output only.
|
String |
getPhotoLink()
Output only.
|
String |
getRole()
The role granted by this permission.
|
List<Permission.TeamDrivePermissionDetails> |
getTeamDrivePermissionDetails()
Output only.
|
String |
getType()
The type of the grantee.
|
String |
getView()
Indicates the view for this permission.
|
Permission |
set(String fieldName,
Object value) |
Permission |
setAllowFileDiscovery(Boolean allowFileDiscovery)
Whether the permission allows the file to be discovered through search.
|
Permission |
setDeleted(Boolean deleted)
Output only.
|
Permission |
setDisplayName(String displayName)
Output only.
|
Permission |
setDomain(String domain)
The domain to which this permission refers.
|
Permission |
setEmailAddress(String emailAddress)
The email address of the user or group to which this permission refers.
|
Permission |
setExpirationTime(com.google.api.client.util.DateTime expirationTime)
The time at which this permission will expire (RFC 3339 date-time).
|
Permission |
setId(String id)
Output only.
|
Permission |
setKind(String kind)
Output only.
|
Permission |
setPendingOwner(Boolean pendingOwner)
Whether the account associated with this permission is a pending owner.
|
Permission |
setPermissionDetails(List<Permission.PermissionDetails> permissionDetails)
Output only.
|
Permission |
setPhotoLink(String photoLink)
Output only.
|
Permission |
setRole(String role)
The role granted by this permission.
|
Permission |
setTeamDrivePermissionDetails(List<Permission.TeamDrivePermissionDetails> teamDrivePermissionDetails)
Output only.
|
Permission |
setType(String type)
The type of the grantee.
|
Permission |
setView(String view)
Indicates the view for this permission.
|
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 getAllowFileDiscovery()
null
for nonepublic Permission setAllowFileDiscovery(Boolean allowFileDiscovery)
allowFileDiscovery
- allowFileDiscovery or null
for nonepublic Boolean getDeleted()
null
for nonepublic Permission setDeleted(Boolean deleted)
deleted
- deleted or null
for nonepublic String getDisplayName()
null
for nonepublic Permission setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getDomain()
null
for nonepublic Permission setDomain(String domain)
domain
- domain or null
for nonepublic String getEmailAddress()
null
for nonepublic Permission setEmailAddress(String emailAddress)
emailAddress
- emailAddress or null
for nonepublic com.google.api.client.util.DateTime getExpirationTime()
null
for nonepublic Permission setExpirationTime(com.google.api.client.util.DateTime expirationTime)
expirationTime
- expirationTime or null
for nonepublic String getId()
null
for nonepublic Permission setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic Permission setKind(String kind)
kind
- kind or null
for nonepublic Boolean getPendingOwner()
null
for nonepublic Permission setPendingOwner(Boolean pendingOwner)
pendingOwner
- pendingOwner or null
for nonepublic List<Permission.PermissionDetails> getPermissionDetails()
null
for nonepublic Permission setPermissionDetails(List<Permission.PermissionDetails> permissionDetails)
permissionDetails
- permissionDetails or null
for nonepublic String getPhotoLink()
null
for nonepublic Permission setPhotoLink(String photoLink)
photoLink
- photoLink or null
for nonepublic String getRole()
null
for nonepublic Permission setRole(String role)
role
- role or null
for nonepublic List<Permission.TeamDrivePermissionDetails> getTeamDrivePermissionDetails()
null
for nonepublic Permission setTeamDrivePermissionDetails(List<Permission.TeamDrivePermissionDetails> teamDrivePermissionDetails)
teamDrivePermissionDetails
- teamDrivePermissionDetails or null
for nonepublic String getType()
null
for nonepublic Permission setType(String type)
type
- type or null
for nonepublic String getView()
null
for nonepublic Permission setView(String view)
view
- view 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–2024 Google. All rights reserved.