Calendar API v3 (revision 30)



com.google.api.services.calendar.model
Class Colors

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.calendar.model.Colors
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class Colors
extends GenericJson

Model definition for Colors.

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 Calendar 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
Colors()
           
 
Method Summary
 java.util.Map<java.lang.String,ColorDefinition> getCalendar()
          Palette of calendar colors, mapping from the color ID to its definition.
 java.util.Map<java.lang.String,ColorDefinition> getEvent()
          Palette of event colors, mapping from the color ID to its definition.
 java.lang.String getKind()
          Type of the resource ("calendar#colors").
 DateTime getUpdated()
          Last modification time of the color palette (as a RFC 3339 timestamp).
 Colors setCalendar(java.util.Map<java.lang.String,ColorDefinition> calendar)
          Palette of calendar colors, mapping from the color ID to its definition.
 Colors setEvent(java.util.Map<java.lang.String,ColorDefinition> event)
          Palette of event colors, mapping from the color ID to its definition.
 Colors setKind(java.lang.String kind)
          Type of the resource ("calendar#colors").
 Colors setUpdated(DateTime updated)
          Last modification time of the color palette (as a RFC 3339 timestamp).
 
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

Colors

public Colors()
Method Detail

getCalendar

public java.util.Map<java.lang.String,ColorDefinition> getCalendar()
Palette of calendar colors, mapping from the color ID to its definition. An 'calendarListEntry' resource refers to one of these color IDs in its 'color' field. Read-only. The value returned may be null.


setCalendar

public Colors setCalendar(java.util.Map<java.lang.String,ColorDefinition> calendar)
Palette of calendar colors, mapping from the color ID to its definition. An 'calendarListEntry' resource refers to one of these color IDs in its 'color' field. Read-only. The value set may be null.


getEvent

public java.util.Map<java.lang.String,ColorDefinition> getEvent()
Palette of event colors, mapping from the color ID to its definition. An 'event' resource may refer to one of these color IDs in its 'color' field. Read-only. The value returned may be null.


setEvent

public Colors setEvent(java.util.Map<java.lang.String,ColorDefinition> event)
Palette of event colors, mapping from the color ID to its definition. An 'event' resource may refer to one of these color IDs in its 'color' field. Read-only. The value set may be null.


getKind

public java.lang.String getKind()
Type of the resource ("calendar#colors"). The value returned may be null.


setKind

public Colors setKind(java.lang.String kind)
Type of the resource ("calendar#colors"). The value set may be null.


getUpdated

public DateTime getUpdated()
Last modification time of the color palette (as a RFC 3339 timestamp). Read-only. The value returned may be null.


setUpdated

public Colors setUpdated(DateTime updated)
Last modification time of the color palette (as a RFC 3339 timestamp). Read-only. The value set may be null.