Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

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