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 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.TeamDrivePermissionDetails
Model definition for PermissionTeamDrivePermissionDetails.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
clone() |
java.util.List<java.lang.String> |
getAdditionalRoles()
Additional roles for this user.
|
java.lang.String |
getAuthKey()
Deprecated.
|
java.lang.Boolean |
getDeleted()
Whether the account associated with this permission has been deleted.
|
java.lang.String |
getDomain()
The domain name of the entity this permission refers to.
|
java.lang.String |
getEmailAddress()
The email address of the user or group this permission refers to.
|
java.lang.String |
getEtag()
The ETag of the permission.
|
com.google.api.client.util.DateTime |
getExpirationDate()
The time at which this permission will expire (RFC 3339 date-time).
|
java.lang.String |
getId()
The ID of the user this permission refers to, and identical to the permissionId in the About
and Files resources.
|
java.lang.String |
getKind()
This is always drive#permission.
|
java.lang.String |
getName()
The name for this permission.
|
java.lang.String |
getPhotoLink()
A link to the profile photo, if available.
|
java.lang.String |
getRole()
The primary role for this user.
|
java.lang.String |
getSelfLink()
A link back to this permission.
|
java.util.List<Permission.TeamDrivePermissionDetails> |
getTeamDrivePermissionDetails()
Details of whether the permissions on this Team Drive item are inherited or directly on this
item.
|
java.lang.String |
getType()
The account type.
|
java.lang.String |
getValue()
The email address or domain name for the entity.
|
java.lang.Boolean |
getWithLink()
Whether the link is required for this permission.
|
Permission |
set(java.lang.String fieldName,
java.lang.Object value) |
Permission |
setAdditionalRoles(java.util.List<java.lang.String> additionalRoles)
Additional roles for this user.
|
Permission |
setAuthKey(java.lang.String authKey)
Deprecated.
|
Permission |
setDeleted(java.lang.Boolean deleted)
Whether the account associated with this permission has been deleted.
|
Permission |
setDomain(java.lang.String domain)
The domain name of the entity this permission refers to.
|
Permission |
setEmailAddress(java.lang.String emailAddress)
The email address of the user or group this permission refers to.
|
Permission |
setEtag(java.lang.String etag)
The ETag of the permission.
|
Permission |
setExpirationDate(com.google.api.client.util.DateTime expirationDate)
The time at which this permission will expire (RFC 3339 date-time).
|
Permission |
setId(java.lang.String id)
The ID of the user this permission refers to, and identical to the permissionId in the About
and Files resources.
|
Permission |
setKind(java.lang.String kind)
This is always drive#permission.
|
Permission |
setName(java.lang.String name)
The name for this permission.
|
Permission |
setPhotoLink(java.lang.String photoLink)
A link to the profile photo, if available.
|
Permission |
setRole(java.lang.String role)
The primary role for this user.
|
Permission |
setSelfLink(java.lang.String selfLink)
A link back to this permission.
|
Permission |
setTeamDrivePermissionDetails(java.util.List<Permission.TeamDrivePermissionDetails> teamDrivePermissionDetails)
Details of whether the permissions on this Team Drive item are inherited or directly on this
item.
|
Permission |
setType(java.lang.String type)
The account type.
|
Permission |
setValue(java.lang.String value)
The email address or domain name for the entity.
|
Permission |
setWithLink(java.lang.Boolean withLink)
Whether the link is required for this permission.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<java.lang.String> getAdditionalRoles()
null for nonepublic Permission setAdditionalRoles(java.util.List<java.lang.String> additionalRoles)
additionalRoles - additionalRoles or null for nonepublic java.lang.String getAuthKey()
null for nonepublic Permission setAuthKey(java.lang.String authKey)
authKey - authKey or null for nonepublic java.lang.Boolean getDeleted()
null for nonepublic Permission setDeleted(java.lang.Boolean deleted)
deleted - deleted or null for nonepublic java.lang.String getDomain()
null for nonepublic Permission setDomain(java.lang.String domain)
domain - domain or null for nonepublic java.lang.String getEmailAddress()
null for nonepublic Permission setEmailAddress(java.lang.String emailAddress)
emailAddress - emailAddress or null for nonepublic java.lang.String getEtag()
null for nonepublic Permission setEtag(java.lang.String etag)
etag - etag or null for nonepublic com.google.api.client.util.DateTime getExpirationDate()
null for nonepublic Permission setExpirationDate(com.google.api.client.util.DateTime expirationDate)
expirationDate - expirationDate or null for nonepublic java.lang.String getId()
null for nonepublic Permission setId(java.lang.String id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic Permission setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic Permission setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getPhotoLink()
null for nonepublic Permission setPhotoLink(java.lang.String photoLink)
photoLink - photoLink or null for nonepublic java.lang.String getRole()
null for nonepublic Permission setRole(java.lang.String role)
role - role or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Permission setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.util.List<Permission.TeamDrivePermissionDetails> getTeamDrivePermissionDetails()
null for nonepublic Permission setTeamDrivePermissionDetails(java.util.List<Permission.TeamDrivePermissionDetails> teamDrivePermissionDetails)
teamDrivePermissionDetails - teamDrivePermissionDetails or null for nonepublic java.lang.String getType()
null for nonepublic Permission setType(java.lang.String type)
type - type or null for nonepublic java.lang.String getValue()
null for nonepublic Permission setValue(java.lang.String value)
value - value or null for nonepublic java.lang.Boolean getWithLink()
null for nonepublic Permission setWithLink(java.lang.Boolean withLink)
withLink - withLink or null for nonepublic Permission set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Permission clone()
clone in class com.google.api.client.json.GenericJson