PageRenderTime 52ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/Lib/google-api-php-client/contrib/Google_CalendarService.php

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