Drive API v2 (revision 47)



com.google.api.services.drive.model
Class Permission

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.drive.model.Permission
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class Permission
extends GenericJson

A single permission for a file.

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: http://code.google.com/p/google-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
Permission()
           
 
Method Summary
 java.util.List<java.lang.String> getAdditionalRoles()
          Additional roles for this user.
 java.lang.String getAuthKey()
          The authkey parameter required for this permission.
 java.lang.String getEtag()
          The ETag of the permission.
 java.lang.String getId()
          The ID of the permission.
 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.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 setAdditionalRoles(java.util.List<java.lang.String> additionalRoles)
          Additional roles for this user.
 Permission setAuthKey(java.lang.String authKey)
          The authkey parameter required for this permission.
 Permission setEtag(java.lang.String etag)
          The ETag of the permission.
 Permission setId(java.lang.String id)
          The ID of the permission.
 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 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.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Permission

public Permission()
Method Detail

getAdditionalRoles

public java.util.List<java.lang.String> getAdditionalRoles()
Additional roles for this user. Only commenter is currently allowed. The value returned may be null.


setAdditionalRoles

public Permission setAdditionalRoles(java.util.List<java.lang.String> additionalRoles)
Additional roles for this user. Only commenter is currently allowed. The value set may be null.


getAuthKey

public java.lang.String getAuthKey()
The authkey parameter required for this permission. The value returned may be null.


setAuthKey

public Permission setAuthKey(java.lang.String authKey)
The authkey parameter required for this permission. The value set may be null.


getEtag

public java.lang.String getEtag()
The ETag of the permission. The value returned may be null.


setEtag

public Permission setEtag(java.lang.String etag)
The ETag of the permission. The value set may be null.


getId

public java.lang.String getId()
The ID of the permission. The value returned may be null.


setId

public Permission setId(java.lang.String id)
The ID of the permission. The value set may be null.


getKind

public java.lang.String getKind()
This is always drive#permission. The value returned may be null.


setKind

public Permission setKind(java.lang.String kind)
This is always drive#permission. The value set may be null.


getName

public java.lang.String getName()
The name for this permission. The value returned may be null.


setName

public Permission setName(java.lang.String name)
The name for this permission. The value set may be null.


getPhotoLink

public java.lang.String getPhotoLink()
A link to the profile photo, if available. The value returned may be null.


setPhotoLink

public Permission setPhotoLink(java.lang.String photoLink)
A link to the profile photo, if available. The value set may be null.


getRole

public java.lang.String getRole()
The primary role for this user. Allowed values are: - owner - reader - writer The value returned may be null.


setRole

public Permission setRole(java.lang.String role)
The primary role for this user. Allowed values are: - owner - reader - writer The value set may be null.


getSelfLink

public java.lang.String getSelfLink()
A link back to this permission. The value returned may be null.


setSelfLink

public Permission setSelfLink(java.lang.String selfLink)
A link back to this permission. The value set may be null.


getType

public java.lang.String getType()
The account type. Allowed values are: - user - group - domain - anyone The value returned may be null.


setType

public Permission setType(java.lang.String type)
The account type. Allowed values are: - user - group - domain - anyone The value set may be null.


getValue

public java.lang.String getValue()
The email address or domain name for the entity. This is not populated in responses. The value returned may be null.


setValue

public Permission setValue(java.lang.String value)
The email address or domain name for the entity. This is not populated in responses. The value set may be null.


getWithLink

public java.lang.Boolean getWithLink()
Whether the link is required for this permission. The value returned may be null.


setWithLink

public Permission setWithLink(java.lang.Boolean withLink)
Whether the link is required for this permission. The value set may be null.