Calendar API v3 (revision 41)



com.google.api.services.calendar.model
Class AclRule.Scope

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.calendar.model.AclRule.Scope
All Implemented Interfaces:
Cloneable, Map<String,Object>
Enclosing class:
AclRule

public static final class AclRule.Scope
extends GenericJson

The scope of the rule.


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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AclRule.Scope()
           
 
Method Summary
 AclRule.Scope clone()
           
 String getType()
          The type of the scope.
 String getValue()
          The email address of a user or group, or the name of a domain, depending on the scope type.
 AclRule.Scope set(String fieldName, Object value)
           
 AclRule.Scope setType(String type)
          The type of the scope.
 AclRule.Scope setValue(String value)
          The email address of a user or group, or the name of a domain, depending on the scope type.
 
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, 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

AclRule.Scope

public AclRule.Scope()
Method Detail

getType

public String getType()
The type of the scope. Possible values are: - "default" - The public scope. This is the default value. - "user" - Limits the scope to a single user. - "group" - Limits the scope to a group. - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.

Returns:
value or null for none

setType

public AclRule.Scope setType(String type)
The type of the scope. Possible values are: - "default" - The public scope. This is the default value. - "user" - Limits the scope to a single user. - "group" - Limits the scope to a group. - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.

Parameters:
type - type or null for none

getValue

public String getValue()
The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".

Returns:
value or null for none

setValue

public AclRule.Scope setValue(String value)
The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".

Parameters:
value - value or null for none

set

public AclRule.Scope set(String fieldName,
                         Object value)
Overrides:
set in class GenericJson

clone

public AclRule.Scope clone()
Overrides:
clone in class GenericJson