1<?php
2/*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16
17  /**
18   * The "acl" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $calendarService = new Google_CalendarService(...);
22   *   $acl = $calendarService->acl;
23   *  </code>
24   */
25  class Google_AclServiceResource extends Google_ServiceResource {
26
27    /**
28     * Deletes an access control rule. (acl.delete)
29     *
30     * @param string $calendarId Calendar identifier.
31     * @param string $ruleId ACL rule identifier.
32     * @param array $optParams Optional parameters.
33     */
34    public function delete($calendarId, $ruleId, $optParams = array()) {
35      $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
36      $params = array_merge($params, $optParams);
37      $data = $this->__call('delete', array($params));
38      return $data;
39    }
40    /**
41     * Returns an access control rule. (acl.get)
42     *
43     * @param string $calendarId Calendar identifier.
44     * @param string $ruleId ACL rule identifier.
45     * @param array $optParams Optional parameters.
46     * @return Google_AclRule
47     */
48    public function get($calendarId, $ruleId, $optParams = array()) {
49      $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
50      $params = array_merge($params, $optParams);
51      $data = $this->__call('get', array($params));
52      if ($this->useObjects()) {
53        return new Google_AclRule($data);
54      } else {
55        return $data;
56      }
57    }
58    /**
59     * Creates an access control rule. (acl.insert)
60     *
61     * @param string $calendarId Calendar identifier.
62     * @param Google_AclRule $postBody
63     * @param array $optParams Optional parameters.
64     * @return Google_AclRule
65     */
66    public function insert($calendarId, Google_AclRule $postBody, $optParams = array()) {
67      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
68      $params = array_merge($params, $optParams);
69      $data = $this->__call('insert', array($params));
70      if ($this->useObjects()) {
71        return new Google_AclRule($data);
72      } else {
73        return $data;
74      }
75    }
76    /**
77     * Returns the rules in the access control list for the calendar. (acl.list)
78     *
79     * @param string $calendarId Calendar identifier.
80     * @param array $optParams Optional parameters.
81     * @return Google_Acl
82     */
83    public function listAcl($calendarId, $optParams = array()) {
84      $params = array('calendarId' => $calendarId);
85      $params = array_merge($params, $optParams);
86      $data = $this->__call('list', array($params));
87      if ($this->useObjects()) {
88        return new Google_Acl($data);
89      } else {
90        return $data;
91      }
92    }
93    /**
94     * Updates an access control rule. This method supports patch semantics. (acl.patch)
95     *
96     * @param string $calendarId Calendar identifier.
97     * @param string $ruleId ACL rule identifier.
98     * @param Google_AclRule $postBody
99     * @param array $optParams Optional parameters.
100     * @return Google_AclRule
101     */
102    public function patch($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
103      $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
104      $params = array_merge($params, $optParams);
105      $data = $this->__call('patch', array($params));
106      if ($this->useObjects()) {
107        return new Google_AclRule($data);
108      } else {
109        return $data;
110      }
111    }
112    /**
113     * Updates an access control rule. (acl.update)
114     *
115     * @param string $calendarId Calendar identifier.
116     * @param string $ruleId ACL rule identifier.
117     * @param Google_AclRule $postBody
118     * @param array $optParams Optional parameters.
119     * @return Google_AclRule
120     */
121    public function update($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
122      $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
123      $params = array_merge($params, $optParams);
124      $data = $this->__call('update', array($params));
125      if ($this->useObjects()) {
126        return new Google_AclRule($data);
127      } else {
128        return $data;
129      }
130    }
131  }
132
133  /**
134   * The "calendarList" collection of methods.
135   * Typical usage is:
136   *  <code>
137   *   $calendarService = new Google_CalendarService(...);
138   *   $calendarList = $calendarService->calendarList;
139   *  </code>
140   */
141  class Google_CalendarListServiceResource extends Google_ServiceResource {
142
143    /**
144     * Deletes an entry on the user's calendar list. (calendarList.delete)
145     *
146     * @param string $calendarId Calendar identifier.
147     * @param array $optParams Optional parameters.
148     */
149    public function delete($calendarId, $optParams = array()) {
150      $params = array('calendarId' => $calendarId);
151      $params = array_merge($params, $optParams);
152      $data = $this->__call('delete', array($params));
153      return $data;
154    }
155    /**
156     * Returns an entry on the user's calendar list. (calendarList.get)
157     *
158     * @param string $calendarId Calendar identifier.
159     * @param array $optParams Optional parameters.
160     * @return Google_CalendarListEntry
161     */
162    public function get($calendarId, $optParams = array()) {
163      $params = array('calendarId' => $calendarId);
164      $params = array_merge($params, $optParams);
165      $data = $this->__call('get', array($params));
166      if ($this->useObjects()) {
167        return new Google_CalendarListEntry($data);
168      } else {
169        return $data;
170      }
171    }
172    /**
173     * Adds an entry to the user's calendar list. (calendarList.insert)
174     *
175     * @param Google_CalendarListEntry $postBody
176     * @param array $optParams Optional parameters.
177     *
178     * @opt_param bool colorRgbFormat Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
179     * @return Google_CalendarListEntry
180     */
181    public function insert(Google_CalendarListEntry $postBody, $optParams = array()) {
182      $params = array('postBody' => $postBody);
183      $params = array_merge($params, $optParams);
184      $data = $this->__call('insert', array($params));
185      if ($this->useObjects()) {
186        return new Google_CalendarListEntry($data);
187      } else {
188        return $data;
189      }
190    }
191    /**
192     * Returns entries on the user's calendar list. (calendarList.list)
193     *
194     * @param array $optParams Optional parameters.
195     *
196     * @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
197     * @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
198     * @opt_param string pageToken Token specifying which result page to return. Optional.
199     * @opt_param bool showHidden Whether to show hidden entries. Optional. The default is False.
200     * @return Google_CalendarList
201     */
202    public function listCalendarList($optParams = array()) {
203      $params = array();
204      $params = array_merge($params, $optParams);
205      $data = $this->__call('list', array($params));
206      if ($this->useObjects()) {
207        return new Google_CalendarList($data);
208      } else {
209        return $data;
210      }
211    }
212    /**
213     * Updates an entry on the user's calendar list. This method supports patch semantics.
214     * (calendarList.patch)
215     *
216     * @param string $calendarId Calendar identifier.
217     * @param Google_CalendarListEntry $postBody
218     * @param array $optParams Optional parameters.
219     *
220     * @opt_param bool colorRgbFormat Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
221     * @return Google_CalendarListEntry
222     */
223    public function patch($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
224      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
225      $params = array_merge($params, $optParams);
226      $data = $this->__call('patch', array($params));
227      if ($this->useObjects()) {
228        return new Google_CalendarListEntry($data);
229      } else {
230        return $data;
231      }
232    }
233    /**
234     * Updates an entry on the user's calendar list. (calendarList.update)
235     *
236     * @param string $calendarId Calendar identifier.
237     * @param Google_CalendarListEntry $postBody
238     * @param array $optParams Optional parameters.
239     *
240     * @opt_param bool colorRgbFormat Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
241     * @return Google_CalendarListEntry
242     */
243    public function update($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
244      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
245      $params = array_merge($params, $optParams);
246      $data = $this->__call('update', array($params));
247      if ($this->useObjects()) {
248        return new Google_CalendarListEntry($data);
249      } else {
250        return $data;
251      }
252    }
253  }
254
255  /**
256   * The "calendars" collection of methods.
257   * Typical usage is:
258   *  <code>
259   *   $calendarService = new Google_CalendarService(...);
260   *   $calendars = $calendarService->calendars;
261   *  </code>
262   */
263  class Google_CalendarsServiceResource extends Google_ServiceResource {
264
265    /**
266     * Clears a primary calendar. This operation deletes all data associated with the primary calendar
267     * of an account and cannot be undone. (calendars.clear)
268     *
269     * @param string $calendarId Calendar identifier.
270     * @param array $optParams Optional parameters.
271     */
272    public function clear($calendarId, $optParams = array()) {
273      $params = array('calendarId' => $calendarId);
274      $params = array_merge($params, $optParams);
275      $data = $this->__call('clear', array($params));
276      return $data;
277    }
278    /**
279     * Deletes a secondary calendar. (calendars.delete)
280     *
281     * @param string $calendarId Calendar identifier.
282     * @param array $optParams Optional parameters.
283     */
284    public function delete($calendarId, $optParams = array()) {
285      $params = array('calendarId' => $calendarId);
286      $params = array_merge($params, $optParams);
287      $data = $this->__call('delete', array($params));
288      return $data;
289    }
290    /**
291     * Returns metadata for a calendar. (calendars.get)
292     *
293     * @param string $calendarId Calendar identifier.
294     * @param array $optParams Optional parameters.
295     * @return Google_Calendar
296     */
297    public function get($calendarId, $optParams = array()) {
298      $params = array('calendarId' => $calendarId);
299      $params = array_merge($params, $optParams);
300      $data = $this->__call('get', array($params));
301      if ($this->useObjects()) {
302        return new Google_Calendar($data);
303      } else {
304        return $data;
305      }
306    }
307    /**
308     * Creates a secondary calendar. (calendars.insert)
309     *
310     * @param Google_Calendar $postBody
311     * @param array $optParams Optional parameters.
312     * @return Google_Calendar
313     */
314    public function insert(Google_Calendar $postBody, $optParams = array()) {
315      $params = array('postBody' => $postBody);
316      $params = array_merge($params, $optParams);
317      $data = $this->__call('insert', array($params));
318      if ($this->useObjects()) {
319        return new Google_Calendar($data);
320      } else {
321        return $data;
322      }
323    }
324    /**
325     * Updates metadata for a calendar. This method supports patch semantics. (calendars.patch)
326     *
327     * @param string $calendarId Calendar identifier.
328     * @param Google_Calendar $postBody
329     * @param array $optParams Optional parameters.
330     * @return Google_Calendar
331     */
332    public function patch($calendarId, Google_Calendar $postBody, $optParams = array()) {
333      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
334      $params = array_merge($params, $optParams);
335      $data = $this->__call('patch', array($params));
336      if ($this->useObjects()) {
337        return new Google_Calendar($data);
338      } else {
339        return $data;
340      }
341    }
342    /**
343     * Updates metadata for a calendar. (calendars.update)
344     *
345     * @param string $calendarId Calendar identifier.
346     * @param Google_Calendar $postBody
347     * @param array $optParams Optional parameters.
348     * @return Google_Calendar
349     */
350    public function update($calendarId, Google_Calendar $postBody, $optParams = array()) {
351      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
352      $params = array_merge($params, $optParams);
353      $data = $this->__call('update', array($params));
354      if ($this->useObjects()) {
355        return new Google_Calendar($data);
356      } else {
357        return $data;
358      }
359    }
360  }
361
362  /**
363   * The "colors" collection of methods.
364   * Typical usage is:
365   *  <code>
366   *   $calendarService = new Google_CalendarService(...);
367   *   $colors = $calendarService->colors;
368   *  </code>
369   */
370  class Google_ColorsServiceResource extends Google_ServiceResource {
371
372    /**
373     * Returns the color definitions for calendars and events. (colors.get)
374     *
375     * @param array $optParams Optional parameters.
376     * @return Google_Colors
377     */
378    public function get($optParams = array()) {
379      $params = array();
380      $params = array_merge($params, $optParams);
381      $data = $this->__call('get', array($params));
382      if ($this->useObjects()) {
383        return new Google_Colors($data);
384      } else {
385        return $data;
386      }
387    }
388  }
389
390  /**
391   * The "events" collection of methods.
392   * Typical usage is:
393   *  <code>
394   *   $calendarService = new Google_CalendarService(...);
395   *   $events = $calendarService->events;
396   *  </code>
397   */
398  class Google_EventsServiceResource extends Google_ServiceResource {
399
400    /**
401     * Deletes an event. (events.delete)
402     *
403     * @param string $calendarId Calendar identifier.
404     * @param string $eventId Event identifier.
405     * @param array $optParams Optional parameters.
406     *
407     * @opt_param bool sendNotifications Whether to send notifications about the deletion of the event. Optional. The default is False.
408     */
409    public function delete($calendarId, $eventId, $optParams = array()) {
410      $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
411      $params = array_merge($params, $optParams);
412      $data = $this->__call('delete', array($params));
413      return $data;
414    }
415    /**
416     * Returns an event. (events.get)
417     *
418     * @param string $calendarId Calendar identifier.
419     * @param string $eventId Event identifier.
420     * @param array $optParams Optional parameters.
421     *
422     * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
423     * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
424     * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
425     * @return Google_Event
426     */
427    public function get($calendarId, $eventId, $optParams = array()) {
428      $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
429      $params = array_merge($params, $optParams);
430      $data = $this->__call('get', array($params));
431      if ($this->useObjects()) {
432        return new Google_Event($data);
433      } else {
434        return $data;
435      }
436    }
437    /**
438     * Imports an event. (events.import)
439     *
440     * @param string $calendarId Calendar identifier.
441     * @param Google_Event $postBody
442     * @param array $optParams Optional parameters.
443     * @return Google_Event
444     */
445    public function import($calendarId, Google_Event $postBody, $optParams = array()) {
446      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
447      $params = array_merge($params, $optParams);
448      $data = $this->__call('import', array($params));
449      if ($this->useObjects()) {
450        return new Google_Event($data);
451      } else {
452        return $data;
453      }
454    }
455    /**
456     * Creates an event. (events.insert)
457     *
458     * @param string $calendarId Calendar identifier.
459     * @param Google_Event $postBody
460     * @param array $optParams Optional parameters.
461     *
462     * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
463     * @opt_param bool sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False.
464     * @return Google_Event
465     */
466    public function insert($calendarId, Google_Event $postBody, $optParams = array()) {
467      $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
468      $params = array_merge($params, $optParams);
469      $data = $this->__call('insert', array($params));
470      if ($this->useObjects()) {
471        return new Google_Event($data);
472      } else {
473        return $data;
474      }
475    }
476    /**
477     * Returns instances of the specified recurring event. (events.instances)
478     *
479     * @param string $calendarId Calendar identifier.
480     * @param string $eventId Recurring event identifier.
481     * @param array $optParams Optional parameters.
482     *
483     * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
484     * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
485     * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
486     * @opt_param string originalStart The original start time of the instance in the result. Optional.
487     * @opt_param string pageToken Token specifying which result page to return. Optional.
488     * @opt_param bool showDeleted Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled instances of recurring events will still be included if 'singleEvents' is False. Optional. The default is False.
489     * @opt_param string timeMax Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
490     * @opt_param string timeMin Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
491     * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
492     * @return Google_Events
493     */
494    public function instances($calendarId, $eventId, $optParams = array()) {
495      $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
496      $params = array_merge($params, $optParams);
497      $data = $this->__call('instances', array($params));
498      if ($this->useObjects()) {
499        return new Google_Events($data);
500      } else {
501        return $data;
502      }
503    }
504    /**
505     * Returns events on the specified calendar. (events.list)
506     *
507     * @param string $calendarId Calendar identifier.
508     * @param array $optParams Optional parameters.
509     *
510     * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
511     * @opt_param string iCalUID Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
512     * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
513     * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
514     * @opt_param string orderBy The order of the events returned in the result. Optional. The default is an unspecified, stable order.
515     * @opt_param string pageToken Token specifying which result page to return. Optional.
516     * @opt_param string q Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
517     * @opt_param bool showDeleted Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if 'showDeleted' and 'singleEvents' are both False. If 'showDeleted' and 'singleEvents' are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
518     * @opt_param bool showHiddenInvitations Whether to include hidden invitations in the result. Optional. The default is False.
519     * @opt_param bool singleEvents Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
520     * @opt_param string timeMax Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
521     * @opt_param string timeMin Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
522     * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
523     * @opt_param string updatedMin Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
524     * @return Google_Events
525     */
526    public function listEvents($calendarId, $optParams = array()) {
527      $params = array('calendarId' => $calendarId);
528      $params = array_merge($params, $optParams);
529      $data = $this->__call('list', array($params));
530      if ($this->useObjects()) {
531        return new Google_Events($data);
532      } else {
533        return $data;
534      }
535    }
536    /**
537     * Moves an event to another calendar, i.e. changes an event's organizer. (events.move)
538     *
539     * @param string $calendarId Calendar identifier of the source calendar where the event currently is on.
540     * @param string $eventId Event identifier.
541     * @param string $destination Calendar identifier of the target calendar where the event is to be moved to.
542     * @param array $optParams Optional parameters.
543     *
544     * @opt_param bool sendNotifications Whether to send notifications about the change of the event's organizer. Optional. The default is False.
545     * @return Google_Event
546     */
547    public function move($calendarId, $eventId, $destination, $optParams = array()) {
548      $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
549      $params = array_merge($params, $optParams);
550      $data = $this->__call('move', array($params));
551      if ($this->useObjects()) {
552        return new Google_Event($data);
553      } else {
554        return $data;
555      }
556    }
557    /**
558     * Updates an event. This method supports patch semantics. (events.patch)
559     *
560     * @param string $calendarId Calendar identifier.
561     * @param string $eventId Event identifier.
562     * @param Google_Event $postBody
563     * @param array $optParams Optional parameters.
564     *
565     * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
566     * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
567     * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
568     * @return Google_Event
569     */
570    public function patch($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
571      $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
572      $params = array_merge($params, $optParams);
573      $data = $this->__call('patch', array($params));
574      if ($this->useObjects()) {
575        return new Google_Event($data);
576      } else {
577        return $data;
578      }
579    }
580    /**
581     * Creates an event based on a simple text string. (events.quickAdd)
582     *
583     * @param string $calendarId Calendar identifier.
584     * @param string $text The text describing the event to be created.
585     * @param array $optParams Optional parameters.
586     *
587     * @opt_param bool sendNotifications Whether to send notifications about the creation of the event. Optional. The default is False.
588     * @return Google_Event
589     */
590    public function quickAdd($calendarId, $text, $optParams = array()) {
591      $params = array('calendarId' => $calendarId, 'text' => $text);
592      $params = array_merge($params, $optParams);
593      $data = $this->__call('quickAdd', array($params));
594      if ($this->useObjects()) {
595        return new Google_Event($data);
596      } else {
597        return $data;
598      }
599    }
600    /**
601     * Updates an event. (events.update)
602     *
603     * @param string $calendarId Calendar identifier.
604     * @param string $eventId Event identifier.
605     * @param Google_Event $postBody
606     * @param array $optParams Optional parameters.
607     *
608     * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
609     * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
610     * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
611     * @return Google_Event
612     */
613    public function update($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
614      $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
615      $params = array_merge($params, $optParams);
616      $data = $this->__call('update', array($params));
617      if ($this->useObjects()) {
618        return new Google_Event($data);
619      } else {
620        return $data;
621      }
622    }
623  }
624
625  /**
626   * The "freebusy" collection of methods.
627   * Typical usage is:
628   *  <code>
629   *   $calendarService = new Google_CalendarService(...);
630   *   $freebusy = $calendarService->freebusy;
631   *  </code>
632   */
633  class Google_FreebusyServiceResource extends Google_ServiceResource {
634
635    /**
636     * Returns free/busy information for a set of calendars. (freebusy.query)
637     *
638     * @param Google_FreeBusyRequest $postBody
639     * @param array $optParams Optional parameters.
640     * @return Google_FreeBusyResponse
641     */
642    public function query(Google_FreeBusyRequest $postBody, $optParams = array()) {
643      $params = array('postBody' => $postBody);
644      $params = array_merge($params, $optParams);
645      $data = $this->__call('query', array($params));
646      if ($this->useObjects()) {
647        return new Google_FreeBusyResponse($data);
648      } else {
649        return $data;
650      }
651    }
652  }
653
654  /**
655   * The "settings" collection of methods.
656   * Typical usage is:
657   *  <code>
658   *   $calendarService = new Google_CalendarService(...);
659   *   $settings = $calendarService->settings;
660   *  </code>
661   */
662  class Google_SettingsServiceResource extends Google_ServiceResource {
663
664    /**
665     * Returns a single user setting. (settings.get)
666     *
667     * @param string $setting Name of the user setting.
668     * @param array $optParams Optional parameters.
669     * @return Google_Setting
670     */
671    public function get($setting, $optParams = array()) {
672      $params = array('setting' => $setting);
673      $params = array_merge($params, $optParams);
674      $data = $this->__call('get', array($params));
675      if ($this->useObjects()) {
676        return new Google_Setting($data);
677      } else {
678        return $data;
679      }
680    }
681    /**
682     * Returns all user settings for the authenticated user. (settings.list)
683     *
684     * @param array $optParams Optional parameters.
685     * @return Google_Settings
686     */
687    public function listSettings($optParams = array()) {
688      $params = array();
689      $params = array_merge($params, $optParams);
690      $data = $this->__call('list', array($params));
691      if ($this->useObjects()) {
692        return new Google_Settings($data);
693      } else {
694        return $data;
695      }
696    }
697  }
698
699/**
700 * Service definition for Google_Calendar (v3).
701 *
702 * <p>
703 * Lets you manipulate events and other calendar data.
704 * </p>
705 *
706 * <p>
707 * For more information about this service, see the
708 * <a href="https://developers.google.com/google-apps/calendar/firstapp" target="_blank">API Documentation</a>
709 * </p>
710 *
711 * @author Google, Inc.
712 */
713class Google_CalendarService extends Google_Service {
714  public $acl;
715  public $calendarList;
716  public $calendars;
717  public $colors;
718  public $events;
719  public $freebusy;
720  public $settings;
721  /**
722   * Constructs the internal representation of the Calendar service.
723   *
724   * @param Google_Client $client
725   */
726  public function __construct(Google_Client $client) {
727    $this->servicePath = 'calendar/v3/';
728    $this->version = 'v3';
729    $this->serviceName = 'calendar';
730
731    $client->addService($this->serviceName, $this->version);
732    $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"id": "calendar.acl.delete", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.acl.get", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.acl.insert", "path": "calendars/{calendarId}/acl", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "list": {"id": "calendar.acl.list", "path": "calendars/{calendarId}/acl", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Acl"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.acl.patch", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.acl.update", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
733    $this->calendarList = new Google_CalendarListServiceResource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"delete": {"id": "calendar.calendarList.delete", "path": "users/me/calendarList/{calendarId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.calendarList.get", "path": "users/me/calendarList/{calendarId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.calendarList.insert", "path": "users/me/calendarList", "httpMethod": "POST", "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "list": {"id": "calendar.calendarList.list", "path": "users/me/calendarList", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "minAccessRole": {"type": "string", "enum": ["freeBusyReader", "owner", "reader", "writer"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}}, "response": {"$ref": "CalendarList"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "patch": {"id": "calendar.calendarList.patch", "path": "users/me/calendarList/{calendarId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.calendarList.update", "path": "users/me/calendarList/{calendarId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
734    $this->calendars = new Google_CalendarsServiceResource($this, $this->serviceName, 'calendars', json_decode('{"methods": {"clear": {"id": "calendar.calendars.clear", "path": "calendars/{calendarId}/clear", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "delete": {"id": "calendar.calendars.delete", "path": "calendars/{calendarId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.calendars.get", "path": "calendars/{calendarId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.calendars.insert", "path": "calendars", "httpMethod": "POST", "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.calendars.patch", "path": "calendars/{calendarId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.calendars.update", "path": "calendars/{calendarId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
735    $this->colors = new Google_ColorsServiceResource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"id": "calendar.colors.get", "path": "colors", "httpMethod": "GET", "response": {"$ref": "Colors"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true));
736    $this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"delete": {"id": "calendar.events.delete", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.events.get", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "timeZone": {"type": "string", "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "import": {"id": "calendar.events.import", "path": "calendars/{calendarId}/events/import", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "insert": {"id": "calendar.events.insert", "path": "calendars/{calendarId}/events", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "instances": {"id": "calendar.events.instances", "path": "calendars/{calendarId}/events/{eventId}/instances", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "timeMax": {"type": "string", "format": "date-time", "location": "query"}, "timeMin": {"type": "string", "format": "date-time", "location": "query"}, "timeZone": {"type": "string", "location": "query"}}, "response": {"$ref": "Events"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "supportsSubscription": true}, "list": {"id": "calendar.events.list", "path": "calendars/{calendarId}/events", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "iCalUID": {"type": "string", "location": "query"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "orderBy": {"type": "string", "enum": ["startTime", "updated"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "showHiddenInvitations": {"type": "boolean", "location": "query"}, "singleEvents": {"type": "boolean", "location": "query"}, "timeMax": {"type": "string", "format": "date-time", "location": "query"}, "timeMin": {"type": "string", "format": "date-time", "location": "query"}, "timeZone": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "Events"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "supportsSubscription": true}, "move": {"id": "calendar.events.move", "path": "calendars/{calendarId}/events/{eventId}/move", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "destination": {"type": "string", "required": true, "location": "query"}, "eventId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.events.patch", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "PATCH", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "quickAdd": {"id": "calendar.events.quickAdd", "path": "calendars/{calendarId}/events/quickAdd", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}, "text": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.events.update", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "PUT", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
737    $this->freebusy = new Google_FreebusyServiceResource($this, $this->serviceName, 'freebusy', json_decode('{"methods": {"query": {"id": "calendar.freebusy.query", "path": "freeBusy", "httpMethod": "POST", "request": {"$ref": "FreeBusyRequest"}, "response": {"$ref": "FreeBusyResponse"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true));
738    $this->settings = new Google_SettingsServiceResource($this, $this->serviceName, 'settings', json_decode('{"methods": {"get": {"id": "calendar.settings.get", "path": "users/me/settings/{setting}", "httpMethod": "GET", "parameters": {"setting": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Setting"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "list": {"id": "calendar.settings.list", "path": "users/me/settings", "httpMethod": "GET", "response": {"$ref": "Settings"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true));
739
740  }
741}
742
743
744
745class Google_Acl extends Google_Model {
746  public $etag;
747  protected $__itemsType = 'Google_AclRule';
748  protected $__itemsDataType = 'array';
749  public $items;
750  public $kind;
751  public $nextPageToken;
752  public function setEtag( $etag) {
753    $this->etag = $etag;
754  }
755  public function getEtag() {
756    return $this->etag;
757  }
758  public function setItems(/* array(Google_AclRule) */ $items) {
759    $this->assertIsArray($items, 'Google_AclRule', __METHOD__);
760    $this->items = $items;
761  }
762  public function getItems() {
763    return $this->items;
764  }
765  public function setKind( $kind) {
766    $this->kind = $kind;
767  }
768  public function getKind() {
769    return $this->kind;
770  }
771  public function setNextPageToken( $nextPageToken) {
772    $this->nextPageToken = $nextPageToken;
773  }
774  public function getNextPageToken() {
775    return $this->nextPageToken;
776  }
777}
778
779class Google_AclRule extends Google_Model {
780  public $etag;
781  public $id;
782  public $kind;
783  public $role;
784  protected $__scopeType = 'Google_AclRuleScope';
785  protected $__scopeDataType = '';
786  public $scope;
787  public function setEtag( $etag) {
788    $this->etag = $etag;
789  }
790  public function getEtag() {
791    return $this->etag;
792  }
793  public function setId( $id) {
794    $this->id = $id;
795  }
796  public function getId() {
797    return $this->id;
798  }
799  public function setKind( $kind) {
800    $this->kind = $kind;
801  }
802  public function getKind() {
803    return $this->kind;
804  }
805  public function setRole( $role) {
806    $this->role = $role;
807  }
808  public function getRole() {
809    return $this->role;
810  }
811  public function setScope(Google_AclRuleScope $scope) {
812    $this->scope = $scope;
813  }
814  public function getScope() {
815    return $this->scope;
816  }
817}
818
819class Google_AclRuleScope extends Google_Model {
820  public $type;
821  public $value;
822  public function setType( $type) {
823    $this->type = $type;
824  }
825  public function getType() {
826    return $this->type;
827  }
828  public function setValue( $value) {
829    $this->value = $value;
830  }
831  public function getValue() {
832    return $this->value;
833  }
834}
835
836class Google_Calendar extends Google_Model {
837  public $description;
838  public $etag;
839  public $id;
840  public $kind;
841  public $location;
842  public $summary;
843  public $timeZone;
844  public function setDescription( $description) {
845    $this->description = $description;
846  }
847  public function getDescription() {
848    return $this->description;
849  }
850  public function setEtag( $etag) {
851    $this->etag = $etag;
852  }
853  public function getEtag() {
854    return $this->etag;
855  }
856  public function setId( $id) {
857    $this->id = $id;
858  }
859  public function getId() {
860    return $this->id;
861  }
862  public function setKind( $kind) {
863    $this->kind = $kind;
864  }
865  public function getKind() {
866    return $this->kind;
867  }
868  public function setLocation( $location) {
869    $this->location = $location;
870  }
871  public function getLocation() {
872    return $this->location;
873  }
874  public function setSummary( $summary) {
875    $this->summary = $summary;
876  }
877  public function getSummary() {
878    return $this->summary;
879  }
880  public function setTimeZone( $timeZone) {
881    $this->timeZone = $timeZone;
882  }
883  public function getTimeZone() {
884    return $this->timeZone;
885  }
886}
887
888class Google_CalendarList extends Google_Model {
889  public $etag;
890  protected $__itemsType = 'Google_CalendarListEntry';
891  protected $__itemsDataType = 'array';
892  public $items;
893  public $kind;
894  public $nextPageToken;
895  public function setEtag( $etag) {
896    $this->etag = $etag;
897  }
898  public function getEtag() {
899    return $this->etag;
900  }
901  public function setItems(/* array(Google_CalendarListEntry) */ $items) {
902    $this->assertIsArray($items, 'Google_CalendarListEntry', __METHOD__);
903    $this->items = $items;
904  }
905  public function getItems() {
906    return $this->items;
907  }
908  public function setKind( $kind) {
909    $this->kind = $kind;
910  }
911  public function getKind() {
912    return $this->kind;
913  }
914  public function setNextPageToken( $nextPageToken) {
915    $this->nextPageToken = $nextPageToken;
916  }
917  public function getNextPageToken() {
918    return $this->nextPageToken;
919  }
920}
921
922class Google_CalendarListEntry extends Google_Model {
923  public $accessRole;
924  public $backgroundColor;
925  public $colorId;
926  protected $__defaultRemindersType = 'Google_EventReminder';
927  protected $__defaultRemindersDataType = 'array';
928  public $defaultReminders;
929  public $description;
930  public $etag;
931  public $foregroundColor;
932  public $hidden;
933  public $id;
934  public $kind;
935  public $location;
936  public $primary;
937  public $selected;
938  public $summary;
939  public $summaryOverride;
940  public $timeZone;
941  public function setAccessRole( $accessRole) {
942    $this->accessRole = $accessRole;
943  }
944  public function getAccessRole() {
945    return $this->accessRole;
946  }
947  public function setBackgroundColor( $backgroundColor) {
948    $this->backgroundColor = $backgroundColor;
949  }
950  public function getBackgroundColor() {
951    return $this->backgroundColor;
952  }
953  public function setColorId( $colorId) {
954    $this->colorId = $colorId;
955  }
956  public function getColorId() {
957    return $this->colorId;
958  }
959  public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
960    $this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
961    $this->defaultReminders = $defaultReminders;
962  }
963  public function getDefaultReminders() {
964    return $this->defaultReminders;
965  }
966  public function setDescription( $description) {
967    $this->description = $description;
968  }
969  public function getDescription() {
970    return $this->description;
971  }
972  public function setEtag( $etag) {
973    $this->etag = $etag;
974  }
975  public function getEtag() {
976    return $this->etag;
977  }
978  public function setForegroundColor( $foregroundColor) {
979    $this->foregroundColor = $foregroundColor;
980  }
981  public function getForegroundColor() {
982    return $this->foregroundColor;
983  }
984  public function setHidden( $hidden) {
985    $this->hidden = $hidden;
986  }
987  public function getHidden() {
988    return $this->hidden;
989  }
990  public function setId( $id) {
991    $this->id = $id;
992  }
993  public function getId() {
994    return $this->id;
995  }
996  public function setKind( $kind) {
997    $this->kind = $kind;
998  }
999  public function getKind() {
1000    return $this->kind;
1001  }
1002  public function setLocation( $location) {
1003    $this->location = $location;
1004  }
1005  public function getLocation() {
1006    return $this->location;
1007  }
1008  public function setPrimary( $primary) {
1009    $this->primary = $primary;
1010  }
1011  public function getPrimary() {
1012    return $this->primary;
1013  }
1014  public function setSelected( $selected) {
1015    $this->selected = $selected;
1016  }
1017  public function getSelected() {
1018    return $this->selected;
1019  }
1020  public function setSummary( $summary) {
1021    $this->summary = $summary;
1022  }
1023  public function getSummary() {
1024    return $this->summary;
1025  }
1026  public function setSummaryOverride( $summaryOverride) {
1027    $this->summaryOverride = $summaryOverride;
1028  }
1029  public function getSummaryOverride() {
1030    return $this->summaryOverride;
1031  }
1032  public function setTimeZone( $timeZone) {
1033    $this->timeZone = $timeZone;
1034  }
1035  public function getTimeZone() {
1036    return $this->timeZone;
1037  }
1038}
1039
1040class Google_ColorDefinition extends Google_Model {
1041  public $background;
1042  public $foreground;
1043  public function setBackground( $background) {
1044    $this->background = $background;
1045  }
1046  public function getBackground() {
1047    return $this->background;
1048  }
1049  public function setForeground( $foreground) {
1050    $this->foreground = $foreground;
1051  }
1052  public function getForeground() {
1053    return $this->foreground;
1054  }
1055}
1056
1057class Google_Colors extends Google_Model {
1058  protected $__calendarType = 'Google_ColorDefinition';
1059  protected $__calendarDataType = 'map';
1060  public $calendar;
1061  protected $__eventType = 'Google_ColorDefinition';
1062  protected $__eventDataType = 'map';
1063  public $event;
1064  public $kind;
1065  public $updated;
1066  public function setCalendar(Google_ColorDefinition $calendar) {
1067    $this->calendar = $calendar;
1068  }
1069  public function getCalendar() {
1070    return $this->calendar;
1071  }
1072  public function setEvent(Google_ColorDefinition $event) {
1073    $this->event = $event;
1074  }
1075  public function getEvent() {
1076    return $this->event;
1077  }
1078  public function setKind( $kind) {
1079    $this->kind = $kind;
1080  }
1081  public function getKind() {
1082    return $this->kind;
1083  }
1084  public function setUpdated( $updated) {
1085    $this->updated = $updated;
1086  }
1087  public function getUpdated() {
1088    return $this->updated;
1089  }
1090}
1091
1092class Google_Error extends Google_Model {
1093  public $domain;
1094  public $reason;
1095  public function setDomain( $domain) {
1096    $this->domain = $domain;
1097  }
1098  public function getDomain() {
1099    return $this->domain;
1100  }
1101  public function setReason( $reason) {
1102    $this->reason = $reason;
1103  }
1104  public function getReason() {
1105    return $this->reason;
1106  }
1107}
1108
1109class Google_Event extends Google_Model {
1110  public $anyoneCanAddSelf;
1111  protected $__attendeesType = 'Google_EventAttendee';
1112  protected $__attendeesDataType = 'array';
1113  public $attendees;
1114  public $attendeesOmitted;
1115  public $colorId;
1116  public $created;
1117  protected $__creatorType = 'Google_EventCreator';
1118  protected $__creatorDataType = '';
1119  public $creator;
1120  public $description;
1121  protected $__endType = 'Google_EventDateTime';
1122  protected $__endDataType = '';
1123  public $end;
1124  public $endTimeUnspecified;
1125  public $etag;
1126  protected $__extendedPropertiesType = 'Google_EventExtendedProperties';
1127  protected $__extendedPropertiesDataType = '';
1128  public $extendedProperties;
1129  protected $__gadgetType = 'Google_EventGadget';
1130  protected $__gadgetDataType = '';
1131  public $gadget;
1132  public $guestsCanInviteOthers;
1133  public $guestsCanModify;
1134  public $guestsCanSeeOtherGuests;
1135  public $hangoutLink;
1136  public $htmlLink;
1137  public $iCalUID;
1138  public $id;
1139  public $kind;
1140  public $location;
1141  public $locked;
1142  protected $__organizerType = 'Google_EventOrganizer';
1143  protected $__organizerDataType = '';
1144  public $organizer;
1145  protected $__originalStartTimeType = 'Google_EventDateTime';
1146  protected $__originalStartTimeDataType = '';
1147  public $originalStartTime;
1148  public $privateCopy;
1149  public $recurrence;
1150  public $recurringEventId;
1151  protected $__remindersType = 'Google_EventReminders';
1152  protected $__remindersDataType = '';
1153  public $reminders;
1154  public $sequence;
1155  protected $__sourceType = 'Google_EventSource';
1156  protected $__sourceDataType = '';
1157  public $source;
1158  protected $__startType = 'Google_EventDateTime';
1159  protected $__startDataType = '';
1160  public $start;
1161  public $status;
1162  public $summary;
1163  public $transparency;
1164  public $updated;
1165  public $visibility;
1166  public function setAnyoneCanAddSelf( $anyoneCanAddSelf) {
1167    $this->anyoneCanAddSelf = $anyoneCanAddSelf;
1168  }
1169  public function getAnyoneCanAddSelf() {
1170    return $this->anyoneCanAddSelf;
1171  }
1172  public function setAttendees(/* array(Google_EventAttendee) */ $attendees) {
1173    $this->assertIsArray($attendees, 'Google_EventAttendee', __METHOD__);
1174    $this->attendees = $attendees;
1175  }
1176  public function getAttendees() {
1177    return $this->attendees;
1178  }
1179  public function setAttendeesOmitted( $attendeesOmitted) {
1180    $this->attendeesOmitted = $attendeesOmitted;
1181  }
1182  public function getAttendeesOmitted() {
1183    return $this->attendeesOmitted;
1184  }
1185  public function setColorId( $colorId) {
1186    $this->colorId = $colorId;
1187  }
1188  public function getColorId() {
1189    return $this->colorId;
1190  }
1191  public function setCreated( $created) {
1192    $this->created = $created;
1193  }
1194  public function getCreated() {
1195    return $this->created;
1196  }
1197  public function setCreator(Google_EventCreator $creator) {
1198    $this->creator = $creator;
1199  }
1200  public function getCreator() {
1201    return $this->creator;
1202  }
1203  public function setDescription( $description) {
1204    $this->description = $description;
1205  }
1206  public function getDescription() {
1207    return $this->description;
1208  }
1209  public function setEnd(Google_EventDateTime $end) {
1210    $this->end = $end;
1211  }
1212  public function getEnd() {
1213    return $this->end;
1214  }
1215  public function setEndTimeUnspecified( $endTimeUnspecified) {
1216    $this->endTimeUnspecified = $endTimeUnspecified;
1217  }
1218  public function getEndTimeUnspecified() {
1219    return $this->endTimeUnspecified;
1220  }
1221  public function setEtag( $etag) {
1222    $this->etag = $etag;
1223  }
1224  public function getEtag() {
1225    return $this->etag;
1226  }
1227  public function setExtendedProperties(Google_EventExtendedProperties $extendedProperties) {
1228    $this->extendedProperties = $extendedProperties;
1229  }
1230  public function getExtendedProperties() {
1231    return $this->extendedProperties;
1232  }
1233  public function setGadget(Google_EventGadget $gadget) {
1234    $this->gadget = $gadget;
1235  }
1236  public function getGadget() {
1237    return $this->gadget;
1238  }
1239  public function setGuestsCanInviteOthers( $guestsCanInviteOthers) {
1240    $this->guestsCanInviteOthers = $guestsCanInviteOthers;
1241  }
1242  public function getGuestsCanInviteOthers() {
1243    return $this->guestsCanInviteOthers;
1244  }
1245  public function setGuestsCanModify( $guestsCanModify) {
1246    $this->guestsCanModify = $guestsCanModify;
1247  }
1248  public function getGuestsCanModify() {
1249    return $this->guestsCanModify;
1250  }
1251  public function setGuestsCanSeeOtherGuests( $guestsCanSeeOtherGuests) {
1252    $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests;
1253  }
1254  public function getGuestsCanSeeOtherGuests() {
1255    return $this->guestsCanSeeOtherGuests;
1256  }
1257  public function setHangoutLink( $hangoutLink) {
1258    $this->hangoutLink = $hangoutLink;
1259  }
1260  public function getHangoutLink() {
1261    return $this->hangoutLink;
1262  }
1263  public function setHtmlLink( $htmlLink) {
1264    $this->htmlLink = $htmlLink;
1265  }
1266  public function getHtmlLink() {
1267    return $this->htmlLink;
1268  }
1269  public function setICalUID( $iCalUID) {
1270    $this->iCalUID = $iCalUID;
1271  }
1272  public function getICalUID() {
1273    return $this->iCalUID;
1274  }
1275  public function setId( $id) {
1276    $this->id = $id;
1277  }
1278  public function getId() {
1279    return $this->id;
1280  }
1281  public function setKind( $kind) {
1282    $this->kind = $kind;
1283  }
1284  public function getKind() {
1285    return $this->kind;
1286  }
1287  public function setLocation( $location) {
1288    $this->location = $location;
1289  }
1290  public function getLocation() {
1291    return $this->location;
1292  }
1293  public function setLocked( $locked) {
1294    $this->locked = $locked;
1295  }
1296  public function getLocked() {
1297    return $this->locked;
1298  }
1299  public function setOrganizer(Google_EventOrganizer $organizer) {
1300    $this->organizer = $organizer;
1301  }
1302  public function getOrganizer() {
1303    return $this->organizer;
1304  }
1305  public function setOriginalStartTime(Google_EventDateTime $originalStartTime) {
1306    $this->originalStartTime = $originalStartTime;
1307  }
1308  public function getOriginalStartTime() {
1309    return $this->originalStartTime;
1310  }
1311  public function setPrivateCopy( $privateCopy) {
1312    $this->privateCopy = $privateCopy;
1313  }
1314  public function getPrivateCopy() {
1315    return $this->privateCopy;
1316  }
1317  public function setRecurrence(/* array(Google_string) */ $recurrence) {
1318    $this->assertIsArray($recurrence, 'Google_string', __METHOD__);
1319    $this->recurrence = $recurrence;
1320  }
1321  public function getRecurrence() {
1322    return $this->recurrence;
1323  }
1324  public function setRecurringEventId( $recurringEventId) {
1325    $this->recurringEventId = $recurringEventId;
1326  }
1327  public function getRecurringEventId() {
1328    return $this->recurringEventId;
1329  }
1330  public function setReminders(Google_EventReminders $reminders) {
1331    $this->reminders = $reminders;
1332  }
1333  public function getReminders() {
1334    return $this->reminders;
1335  }
1336  public function setSequence( $sequence) {
1337    $this->sequence = $sequence;
1338  }
1339  public function getSequence() {
1340    return $this->sequence;
1341  }
1342  public function setSource(Google_EventSource $source) {
1343    $this->source = $source;
1344  }
1345  public function getSource() {
1346    return $this->source;
1347  }
1348  public function setStart(Google_EventDateTime $start) {
1349    $this->start = $start;
1350  }
1351  public function getStart() {
1352    return $this->start;
1353  }
1354  public function setStatus( $status) {
1355    $this->status = $status;
1356  }
1357  public function getStatus() {
1358    return $this->status;
1359  }
1360  public function setSummary( $summary) {
1361    $this->summary = $summary;
1362  }
1363  public function getSummary() {
1364    return $this->summary;
1365  }
1366  public function setTransparency( $transparency) {
1367    $this->transparency = $transparency;
1368  }
1369  public function getTransparency() {
1370    return $this->transparency;
1371  }
1372  public function setUpdated( $updated) {
1373    $this->updated = $updated;
1374  }
1375  public function getUpdated() {
1376    return $this->updated;
1377  }
1378  public function setVisibility( $visibility) {
1379    $this->visibility = $visibility;
1380  }
1381  public function getVisibility() {
1382    return $this->visibility;
1383  }
1384}
1385
1386class Google_EventAttendee extends Google_Model {
1387  public $additionalGuests;
1388  public $comment;
1389  public $displayName;
1390  public $email;
1391  public $id;
1392  public $optional;
1393  public $organizer;
1394  public $resource;
1395  public $responseStatus;
1396  public $self;
1397  public function setAdditionalGuests( $additionalGuests) {
1398    $this->additionalGuests = $additionalGuests;
1399  }
1400  public function getAdditionalGuests() {
1401    return $this->additionalGuests;
1402  }
1403  public function setComment( $comment) {
1404    $this->comment = $comment;
1405  }
1406  public function getComment() {
1407    return $this->comment;
1408  }
1409  public function setDisplayName( $displayName) {
1410    $this->displayName = $displayName;
1411  }
1412  public function getDisplayName() {
1413    return $this->displayName;
1414  }
1415  public function setEmail( $email) {
1416    $this->email = $email;
1417  }
1418  public function getEmail() {
1419    return $this->email;
1420  }
1421  public function setId( $id) {
1422    $this->id = $id;
1423  }
1424  public function getId() {
1425    return $this->id;
1426  }
1427  public function setOptional( $optional) {
1428    $this->optional = $optional;
1429  }
1430  public function getOptional() {
1431    return $this->optional;
1432  }
1433  public function setOrganizer( $organizer) {
1434    $this->organizer = $organizer;
1435  }
1436  public function getOrganizer() {
1437    return $this->organizer;
1438  }
1439  public function setResource( $resource) {
1440    $this->resource = $resource;
1441  }
1442  public function getResource() {
1443    return $this->resource;
1444  }
1445  public function setResponseStatus( $responseStatus) {
1446    $this->responseStatus = $responseStatus;
1447  }
1448  public function getResponseStatus() {
1449    return $this->responseStatus;
1450  }
1451  public function setSelf( $self) {
1452    $this->self = $self;
1453  }
1454  public function getSelf() {
1455    return $this->self;
1456  }
1457}
1458
1459class Google_EventCreator extends Google_Model {
1460  public $displayName;
1461  public $email;
1462  public $id;
1463  public $self;
1464  public function setDisplayName( $displayName) {
1465    $this->displayName = $displayName;
1466  }
1467  public function getDisplayName() {
1468    return $this->displayName;
1469  }
1470  public function setEmail( $email) {
1471    $this->email = $email;
1472  }
1473  public function getEmail() {
1474    return $this->email;
1475  }
1476  public function setId( $id) {
1477    $this->id = $id;
1478  }
1479  public function getId() {
1480    return $this->id;
1481  }
1482  public function setSelf( $self) {
1483    $this->self = $self;
1484  }
1485  public function getSelf() {
1486    return $this->self;
1487  }
1488}
1489
1490class Google_EventDateTime extends Google_Model {
1491  public $date;
1492  public $dateTime;
1493  public $timeZone;
1494  public function setDate( $date) {
1495    $this->date = $date;
1496  }
1497  public function getDate() {
1498    return $this->date;
1499  }
1500  public function setDateTime( $dateTime) {
1501    $this->dateTime = $dateTime;
1502  }
1503  public function getDateTime() {
1504    return $this->dateTime;
1505  }
1506  public function setTimeZone( $timeZone) {
1507    $this->timeZone = $timeZone;
1508  }
1509  public function getTimeZone() {
1510    return $this->timeZone;
1511  }
1512}
1513
1514class Google_EventExtendedProperties extends Google_Model {
1515  public $private;
1516  public $shared;
1517  public function setPrivate( $private) {
1518    $this->private = $private;
1519  }
1520  public function getPrivate() {
1521    return $this->private;
1522  }
1523  public function setShared( $shared) {
1524    $this->shared = $shared;
1525  }
1526  public function getShared() {
1527    return $this->shared;
1528  }
1529}
1530
1531class Google_EventGadget extends Google_Model {
1532  public $display;
1533  public $height;
1534  public $iconLink;
1535  public $link;
1536  public $preferences;
1537  public $title;
1538  public $type;
1539  public $width;
1540  public function setDisplay( $display) {
1541    $this->display = $display;
1542  }
1543  public function getDisplay() {
1544    return $this->display;
1545  }
1546  public function setHeight( $height) {
1547    $this->height = $height;
1548  }
1549  public function getHeight() {
1550    return $this->height;
1551  }
1552  public function setIconLink( $iconLink) {
1553    $this->iconLink = $iconLink;
1554  }
1555  public function getIconLink() {
1556    return $this->iconLink;
1557  }
1558  public function setLink( $link) {
1559    $this->link = $link;
1560  }
1561  public function getLink() {
1562    return $this->link;
1563  }
1564  public function setPreferences( $preferences) {
1565    $this->preferences = $preferences;
1566  }
1567  public function getPreferences() {
1568    return $this->preferences;
1569  }
1570  public function setTitle( $title) {
1571    $this->title = $title;
1572  }
1573  public function getTitle() {
1574    return $this->title;
1575  }
1576  public function setType( $type) {
1577    $this->type = $type;
1578  }
1579  public function getType() {
1580    return $this->type;
1581  }
1582  public function setWidth( $width) {
1583    $this->width = $width;
1584  }
1585  public function getWidth() {
1586    return $this->width;
1587  }
1588}
1589
1590class Google_EventOrganizer extends Google_Model {
1591  public $displayName;
1592  public $email;
1593  public $id;
1594  public $self;
1595  public function setDisplayName( $displayName) {
1596    $this->displayName = $displayName;
1597  }
1598  public function getDisplayName() {
1599    return $this->displayName;
1600  }
1601  public function setEmail( $email) {
1602    $this->email = $email;
1603  }
1604  public function getEmail() {
1605    return $this->email;
1606  }
1607  public function setId( $id) {
1608    $this->id = $id;
1609  }
1610  public function getId() {
1611    return $this->id;
1612  }
1613  public function setSelf( $self) {
1614    $this->self = $self;
1615  }
1616  public function getSelf() {
1617    return $this->self;
1618  }
1619}
1620
1621class Google_EventReminder extends Google_Model {
1622  public $method;
1623  public $minutes;
1624  public function setMethod( $method) {
1625    $this->method = $method;
1626  }
1627  public function getMethod() {
1628    return $this->method;
1629  }
1630  public function setMinutes( $minutes) {
1631    $this->minutes = $minutes;
1632  }
1633  public function getMinutes() {
1634    return $this->minutes;
1635  }
1636}
1637
1638class Google_EventReminders extends Google_Model {
1639  protected $__overridesType = 'Google_EventReminder';
1640  protected $__overridesDataType = 'array';
1641  public $overrides;
1642  public $useDefault;
1643  public function setOverrides(/* array(Google_EventReminder) */ $overrides) {
1644    $this->assertIsArray($overrides, 'Google_EventReminder', __METHOD__);
1645    $this->overrides = $overrides;
1646  }
1647  public function getOverrides() {
1648    return $this->overrides;
1649  }
1650  public function setUseDefault( $useDefault) {
1651    $this->useDefault = $useDefault;
1652  }
1653  public function getUseDefault() {
1654    return $this->useDefault;
1655  }
1656}
1657
1658class Google_EventSource extends Google_Model {
1659  public $title;
1660  public $url;
1661  public function setTitle( $title) {
1662    $this->title = $title;
1663  }
1664  public function getTitle() {
1665    return $this->title;
1666  }
1667  public function setUrl( $url) {
1668    $this->url = $url;
1669  }
1670  public function getUrl() {
1671    return $this->url;
1672  }
1673}
1674
1675class Google_Events extends Google_Model {
1676  public $accessRole;
1677  protected $__defaultRemindersType = 'Google_EventReminder';
1678  protected $__defaultRemindersDataType = 'array';
1679  public $defaultReminders;
1680  public $description;
1681  public $etag;
1682  protected $__itemsType = 'Google_Event';
1683  protected $__itemsDataType = 'array';
1684  public $items;
1685  public $kind;
1686  public $nextPageToken;
1687  public $summary;
1688  public $timeZone;
1689  public $updated;
1690  public function setAccessRole( $accessRole) {
1691    $this->accessRole = $accessRole;
1692  }
1693  public function getAccessRole() {
1694    return $this->accessRole;
1695  }
1696  public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
1697    $this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
1698    $this->defaultReminders = $defaultReminders;
1699  }
1700  public function getDefaultReminders() {
1701    return $this->defaultReminders;
1702  }
1703  public function setDescription( $description) {
1704    $this->description = $description;
1705  }
1706  public function getDescription() {
1707    return $this->description;
1708  }
1709  public function setEtag( $etag) {
1710    $this->etag = $etag;
1711  }
1712  public function getEtag() {
1713    return $this->etag;
1714  }
1715  public function setItems(/* array(Google_Event) */ $items) {
1716    $this->assertIsArray($items, 'Google_Event', __METHOD__);
1717    $this->items = $items;
1718  }
1719  public function getItems() {
1720    return $this->items;
1721  }
1722  public function setKind( $kind) {
1723    $this->kind = $kind;
1724  }
1725  public function getKind() {
1726    return $this->kind;
1727  }
1728  public function setNextPageToken( $nextPageToken) {
1729    $this->nextPageToken = $nextPageToken;
1730  }
1731  public function getNextPageToken() {
1732    return $this->nextPageToken;
1733  }
1734  public function setSummary( $summary) {
1735    $this->summary = $summary;
1736  }
1737  public function getSummary() {
1738    return $this->summary;
1739  }
1740  public function setTimeZone( $timeZone) {
1741    $this->timeZone = $timeZone;
1742  }
1743  public function getTimeZone() {
1744    return $this->timeZone;
1745  }
1746  public function setUpdated( $updated) {
1747    $this->updated = $updated;
1748  }
1749  public function getUpdated() {
1750    return $this->updated;
1751  }
1752}
1753
1754class Google_FreeBusyCalendar extends Google_Model {
1755  protected $__busyType = 'Google_TimePeriod';
1756  protected $__busyDataType = 'array';
1757  public $busy;
1758  protected $__errorsType = 'Google_Error';
1759  protected $__errorsDataType = 'array';
1760  public $errors;
1761  public function setBusy(/* array(Google_TimePeriod) */ $busy) {
1762    $this->assertIsArray($busy, 'Google_TimePeriod', __METHOD__);
1763    $this->busy = $busy;
1764  }
1765  public function getBusy() {
1766    return $this->busy;
1767  }
1768  public function setErrors(/* array(Google_Error) */ $errors) {
1769    $this->assertIsArray($errors, 'Google_Error', __METHOD__);
1770    $this->errors = $errors;
1771  }
1772  public function getErrors() {
1773    return $this->errors;
1774  }
1775}
1776
1777class Google_FreeBusyGroup extends Google_Model {
1778  public $calendars;
1779  protected $__errorsType = 'Google_Error';
1780  protected $__errorsDataType = 'array';
1781  public $errors;
1782  public function setCalendars(/* array(Google_string) */ $calendars) {
1783    $this->assertIsArray($calendars, 'Google_string', __METHOD__);
1784    $this->calendars = $calendars;
1785  }
1786  public function getCalendars() {
1787    return $this->calendars;
1788  }
1789  public function setErrors(/* array(Google_Error) */ $errors) {
1790    $this->assertIsArray($errors, 'Google_Error', __METHOD__);
1791    $this->errors = $errors;
1792  }
1793  public function getErrors() {
1794    return $this->errors;
1795  }
1796}
1797
1798class Google_FreeBusyRequest extends Google_Model {
1799  public $calendarExpansionMax;
1800  public $groupExpansionMax;
1801  protected $__itemsType = 'Google_FreeBusyRequestItem';
1802  protected $__itemsDataType = 'array';
1803  public $items;
1804  public $timeMax;
1805  public $timeMin;
1806  public $timeZone;
1807  public function setCalendarExpansionMax( $calendarExpansionMax) {
1808    $this->calendarExpansionMax = $calendarExpansionMax;
1809  }
1810  public function getCalendarExpansionMax() {
1811    return $this->calendarExpansionMax;
1812  }
1813  public function setGroupExpansionMax( $groupExpansionMax) {
1814    $this->groupExpansionMax = $groupExpansionMax;
1815  }
1816  public function getGroupExpansionMax() {
1817    return $this->groupExpansionMax;
1818  }
1819  public function setItems(/* array(Google_FreeBusyRequestItem) */ $items) {
1820    $this->assertIsArray($items, 'Google_FreeBusyRequestItem', __METHOD__);
1821    $this->items = $items;
1822  }
1823  public function getItems() {
1824    return $this->items;
1825  }
1826  public function setTimeMax( $timeMax) {
1827    $this->timeMax = $timeMax;
1828  }
1829  public function getTimeMax() {
1830    return $this->timeMax;
1831  }
1832  public function setTimeMin( $timeMin) {
1833    $this->timeMin = $timeMin;
1834  }
1835  public function getTimeMin() {
1836    return $this->timeMin;
1837  }
1838  public function setTimeZone( $timeZone) {
1839    $this->timeZone = $timeZone;
1840  }
1841  public function getTimeZone() {
1842    return $this->timeZone;
1843  }
1844}
1845
1846class Google_FreeBusyRequestItem extends Google_Model {
1847  public $id;
1848  public function setId( $id) {
1849    $this->id = $id;
1850  }
1851  public function getId() {
1852    return $this->id;
1853  }
1854}
1855
1856class Google_FreeBusyResponse extends Google_Model {
1857  protected $__calendarsType = 'Google_FreeBusyCalendar';
1858  protected $__calendarsDataType = 'map';
1859  public $calendars;
1860  protected $__groupsType = 'Google_FreeBusyGroup';
1861  protected $__groupsDataType = 'map';
1862  public $groups;
1863  public $kind;
1864  public $timeMax;
1865  public $timeMin;
1866  public function setCalendars(Google_FreeBusyCalendar $calendars) {
1867    $this->calendars = $calendars;
1868  }
1869  public function getCalendars() {
1870    return $this->calendars;
1871  }
1872  public function setGroups(Google_FreeBusyGroup $groups) {
1873    $this->groups = $groups;
1874  }
1875  public function getGroups() {
1876    return $this->groups;
1877  }
1878  public function setKind( $kind) {
1879    $this->kind = $kind;
1880  }
1881  public function getKind() {
1882    return $this->kind;
1883  }
1884  public function setTimeMax( $timeMax) {
1885    $this->timeMax = $timeMax;
1886  }
1887  public function getTimeMax() {
1888    return $this->timeMax;
1889  }
1890  public function setTimeMin( $timeMin) {
1891    $this->timeMin = $timeMin;
1892  }
1893  public function getTimeMin() {
1894    return $this->timeMin;
1895  }
1896}
1897
1898class Google_Setting extends Google_Model {
1899  public $etag;
1900  public $id;
1901  public $kind;
1902  public $value;
1903  public function setEtag( $etag) {
1904    $this->etag = $etag;
1905  }
1906  public function getEtag() {
1907    return $this->etag;
1908  }
1909  public function setId( $id) {
1910    $this->id = $id;
1911  }
1912  public function getId() {
1913    return $this->id;
1914  }
1915  public function setKind( $kind) {
1916    $this->kind = $kind;
1917  }
1918  public function getKind() {
1919    return $this->kind;
1920  }
1921  public function setValue( $value) {
1922    $this->value = $value;
1923  }
1924  public function getValue() {
1925    return $this->value;
1926  }
1927}
1928
1929class Google_Settings extends Google_Model {
1930  public $etag;
1931  protected $__itemsType = 'Google_Setting';
1932  protected $__itemsDataType = 'array';
1933  public $items;
1934  public $kind;
1935  public function setEtag( $etag) {
1936    $this->etag = $etag;
1937  }
1938  public function getEtag() {
1939    return $this->etag;
1940  }
1941  public function setItems(/* array(Google_Setting) */ $items) {
1942    $this->assertIsArray($items, 'Google_Setting', __METHOD__);
1943    $this->items = $items;
1944  }
1945  public function getItems() {
1946    return $this->items;
1947  }
1948  public function setKind( $kind) {
1949    $this->kind = $kind;
1950  }
1951  public function getKind() {
1952    return $this->kind;
1953  }
1954}
1955
1956class Google_TimePeriod extends Google_Model {
1957  public $end;
1958  public $start;
1959  public function setEnd( $end) {
1960    $this->end = $end;
1961  }
1962  public function getEnd() {
1963    return $this->end;
1964  }
1965  public function setStart( $start) {
1966    $this->start = $start;
1967  }
1968  public function getStart() {
1969    return $this->start;
1970  }
1971}
1972