PageRenderTime 48ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/src/Google/Service/Mirror.php

https://bitbucket.org/moodle/moodle
PHP | 1932 lines | 1543 code | 100 blank | 289 comment | 0 complexity | db746657a61a4f42b2305cfb42b5a9e2 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0
  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Mirror (v1).
  19. *
  20. * <p>
  21. * API for interacting with Glass users via the timeline.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/glass" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Mirror extends Google_Service
  31. {
  32. /** View your location. */
  33. const GLASS_LOCATION =
  34. "https://www.googleapis.com/auth/glass.location";
  35. /** View and manage your Glass timeline. */
  36. const GLASS_TIMELINE =
  37. "https://www.googleapis.com/auth/glass.timeline";
  38. public $accounts;
  39. public $contacts;
  40. public $locations;
  41. public $settings;
  42. public $subscriptions;
  43. public $timeline;
  44. public $timeline_attachments;
  45. /**
  46. * Constructs the internal representation of the Mirror service.
  47. *
  48. * @param Google_Client $client
  49. */
  50. public function __construct(Google_Client $client)
  51. {
  52. parent::__construct($client);
  53. $this->rootUrl = 'https://www.googleapis.com/';
  54. $this->servicePath = 'mirror/v1/';
  55. $this->version = 'v1';
  56. $this->serviceName = 'mirror';
  57. $this->accounts = new Google_Service_Mirror_Accounts_Resource(
  58. $this,
  59. $this->serviceName,
  60. 'accounts',
  61. array(
  62. 'methods' => array(
  63. 'insert' => array(
  64. 'path' => 'accounts/{userToken}/{accountType}/{accountName}',
  65. 'httpMethod' => 'POST',
  66. 'parameters' => array(
  67. 'userToken' => array(
  68. 'location' => 'path',
  69. 'type' => 'string',
  70. 'required' => true,
  71. ),
  72. 'accountType' => array(
  73. 'location' => 'path',
  74. 'type' => 'string',
  75. 'required' => true,
  76. ),
  77. 'accountName' => array(
  78. 'location' => 'path',
  79. 'type' => 'string',
  80. 'required' => true,
  81. ),
  82. ),
  83. ),
  84. )
  85. )
  86. );
  87. $this->contacts = new Google_Service_Mirror_Contacts_Resource(
  88. $this,
  89. $this->serviceName,
  90. 'contacts',
  91. array(
  92. 'methods' => array(
  93. 'delete' => array(
  94. 'path' => 'contacts/{id}',
  95. 'httpMethod' => 'DELETE',
  96. 'parameters' => array(
  97. 'id' => array(
  98. 'location' => 'path',
  99. 'type' => 'string',
  100. 'required' => true,
  101. ),
  102. ),
  103. ),'get' => array(
  104. 'path' => 'contacts/{id}',
  105. 'httpMethod' => 'GET',
  106. 'parameters' => array(
  107. 'id' => array(
  108. 'location' => 'path',
  109. 'type' => 'string',
  110. 'required' => true,
  111. ),
  112. ),
  113. ),'insert' => array(
  114. 'path' => 'contacts',
  115. 'httpMethod' => 'POST',
  116. 'parameters' => array(),
  117. ),'list' => array(
  118. 'path' => 'contacts',
  119. 'httpMethod' => 'GET',
  120. 'parameters' => array(),
  121. ),'patch' => array(
  122. 'path' => 'contacts/{id}',
  123. 'httpMethod' => 'PATCH',
  124. 'parameters' => array(
  125. 'id' => array(
  126. 'location' => 'path',
  127. 'type' => 'string',
  128. 'required' => true,
  129. ),
  130. ),
  131. ),'update' => array(
  132. 'path' => 'contacts/{id}',
  133. 'httpMethod' => 'PUT',
  134. 'parameters' => array(
  135. 'id' => array(
  136. 'location' => 'path',
  137. 'type' => 'string',
  138. 'required' => true,
  139. ),
  140. ),
  141. ),
  142. )
  143. )
  144. );
  145. $this->locations = new Google_Service_Mirror_Locations_Resource(
  146. $this,
  147. $this->serviceName,
  148. 'locations',
  149. array(
  150. 'methods' => array(
  151. 'get' => array(
  152. 'path' => 'locations/{id}',
  153. 'httpMethod' => 'GET',
  154. 'parameters' => array(
  155. 'id' => array(
  156. 'location' => 'path',
  157. 'type' => 'string',
  158. 'required' => true,
  159. ),
  160. ),
  161. ),'list' => array(
  162. 'path' => 'locations',
  163. 'httpMethod' => 'GET',
  164. 'parameters' => array(),
  165. ),
  166. )
  167. )
  168. );
  169. $this->settings = new Google_Service_Mirror_Settings_Resource(
  170. $this,
  171. $this->serviceName,
  172. 'settings',
  173. array(
  174. 'methods' => array(
  175. 'get' => array(
  176. 'path' => 'settings/{id}',
  177. 'httpMethod' => 'GET',
  178. 'parameters' => array(
  179. 'id' => array(
  180. 'location' => 'path',
  181. 'type' => 'string',
  182. 'required' => true,
  183. ),
  184. ),
  185. ),
  186. )
  187. )
  188. );
  189. $this->subscriptions = new Google_Service_Mirror_Subscriptions_Resource(
  190. $this,
  191. $this->serviceName,
  192. 'subscriptions',
  193. array(
  194. 'methods' => array(
  195. 'delete' => array(
  196. 'path' => 'subscriptions/{id}',
  197. 'httpMethod' => 'DELETE',
  198. 'parameters' => array(
  199. 'id' => array(
  200. 'location' => 'path',
  201. 'type' => 'string',
  202. 'required' => true,
  203. ),
  204. ),
  205. ),'insert' => array(
  206. 'path' => 'subscriptions',
  207. 'httpMethod' => 'POST',
  208. 'parameters' => array(),
  209. ),'list' => array(
  210. 'path' => 'subscriptions',
  211. 'httpMethod' => 'GET',
  212. 'parameters' => array(),
  213. ),'update' => array(
  214. 'path' => 'subscriptions/{id}',
  215. 'httpMethod' => 'PUT',
  216. 'parameters' => array(
  217. 'id' => array(
  218. 'location' => 'path',
  219. 'type' => 'string',
  220. 'required' => true,
  221. ),
  222. ),
  223. ),
  224. )
  225. )
  226. );
  227. $this->timeline = new Google_Service_Mirror_Timeline_Resource(
  228. $this,
  229. $this->serviceName,
  230. 'timeline',
  231. array(
  232. 'methods' => array(
  233. 'delete' => array(
  234. 'path' => 'timeline/{id}',
  235. 'httpMethod' => 'DELETE',
  236. 'parameters' => array(
  237. 'id' => array(
  238. 'location' => 'path',
  239. 'type' => 'string',
  240. 'required' => true,
  241. ),
  242. ),
  243. ),'get' => array(
  244. 'path' => 'timeline/{id}',
  245. 'httpMethod' => 'GET',
  246. 'parameters' => array(
  247. 'id' => array(
  248. 'location' => 'path',
  249. 'type' => 'string',
  250. 'required' => true,
  251. ),
  252. ),
  253. ),'insert' => array(
  254. 'path' => 'timeline',
  255. 'httpMethod' => 'POST',
  256. 'parameters' => array(),
  257. ),'list' => array(
  258. 'path' => 'timeline',
  259. 'httpMethod' => 'GET',
  260. 'parameters' => array(
  261. 'orderBy' => array(
  262. 'location' => 'query',
  263. 'type' => 'string',
  264. ),
  265. 'includeDeleted' => array(
  266. 'location' => 'query',
  267. 'type' => 'boolean',
  268. ),
  269. 'maxResults' => array(
  270. 'location' => 'query',
  271. 'type' => 'integer',
  272. ),
  273. 'pageToken' => array(
  274. 'location' => 'query',
  275. 'type' => 'string',
  276. ),
  277. 'sourceItemId' => array(
  278. 'location' => 'query',
  279. 'type' => 'string',
  280. ),
  281. 'pinnedOnly' => array(
  282. 'location' => 'query',
  283. 'type' => 'boolean',
  284. ),
  285. 'bundleId' => array(
  286. 'location' => 'query',
  287. 'type' => 'string',
  288. ),
  289. ),
  290. ),'patch' => array(
  291. 'path' => 'timeline/{id}',
  292. 'httpMethod' => 'PATCH',
  293. 'parameters' => array(
  294. 'id' => array(
  295. 'location' => 'path',
  296. 'type' => 'string',
  297. 'required' => true,
  298. ),
  299. ),
  300. ),'update' => array(
  301. 'path' => 'timeline/{id}',
  302. 'httpMethod' => 'PUT',
  303. 'parameters' => array(
  304. 'id' => array(
  305. 'location' => 'path',
  306. 'type' => 'string',
  307. 'required' => true,
  308. ),
  309. ),
  310. ),
  311. )
  312. )
  313. );
  314. $this->timeline_attachments = new Google_Service_Mirror_TimelineAttachments_Resource(
  315. $this,
  316. $this->serviceName,
  317. 'attachments',
  318. array(
  319. 'methods' => array(
  320. 'delete' => array(
  321. 'path' => 'timeline/{itemId}/attachments/{attachmentId}',
  322. 'httpMethod' => 'DELETE',
  323. 'parameters' => array(
  324. 'itemId' => array(
  325. 'location' => 'path',
  326. 'type' => 'string',
  327. 'required' => true,
  328. ),
  329. 'attachmentId' => array(
  330. 'location' => 'path',
  331. 'type' => 'string',
  332. 'required' => true,
  333. ),
  334. ),
  335. ),'get' => array(
  336. 'path' => 'timeline/{itemId}/attachments/{attachmentId}',
  337. 'httpMethod' => 'GET',
  338. 'parameters' => array(
  339. 'itemId' => array(
  340. 'location' => 'path',
  341. 'type' => 'string',
  342. 'required' => true,
  343. ),
  344. 'attachmentId' => array(
  345. 'location' => 'path',
  346. 'type' => 'string',
  347. 'required' => true,
  348. ),
  349. ),
  350. ),'insert' => array(
  351. 'path' => 'timeline/{itemId}/attachments',
  352. 'httpMethod' => 'POST',
  353. 'parameters' => array(
  354. 'itemId' => array(
  355. 'location' => 'path',
  356. 'type' => 'string',
  357. 'required' => true,
  358. ),
  359. ),
  360. ),'list' => array(
  361. 'path' => 'timeline/{itemId}/attachments',
  362. 'httpMethod' => 'GET',
  363. 'parameters' => array(
  364. 'itemId' => array(
  365. 'location' => 'path',
  366. 'type' => 'string',
  367. 'required' => true,
  368. ),
  369. ),
  370. ),
  371. )
  372. )
  373. );
  374. }
  375. }
  376. /**
  377. * The "accounts" collection of methods.
  378. * Typical usage is:
  379. * <code>
  380. * $mirrorService = new Google_Service_Mirror(...);
  381. * $accounts = $mirrorService->accounts;
  382. * </code>
  383. */
  384. class Google_Service_Mirror_Accounts_Resource extends Google_Service_Resource
  385. {
  386. /**
  387. * Inserts a new account for a user (accounts.insert)
  388. *
  389. * @param string $userToken The ID for the user.
  390. * @param string $accountType Account type to be passed to Android Account
  391. * Manager.
  392. * @param string $accountName The name of the account to be passed to the
  393. * Android Account Manager.
  394. * @param Google_Account $postBody
  395. * @param array $optParams Optional parameters.
  396. * @return Google_Service_Mirror_Account
  397. */
  398. public function insert($userToken, $accountType, $accountName, Google_Service_Mirror_Account $postBody, $optParams = array())
  399. {
  400. $params = array('userToken' => $userToken, 'accountType' => $accountType, 'accountName' => $accountName, 'postBody' => $postBody);
  401. $params = array_merge($params, $optParams);
  402. return $this->call('insert', array($params), "Google_Service_Mirror_Account");
  403. }
  404. }
  405. /**
  406. * The "contacts" collection of methods.
  407. * Typical usage is:
  408. * <code>
  409. * $mirrorService = new Google_Service_Mirror(...);
  410. * $contacts = $mirrorService->contacts;
  411. * </code>
  412. */
  413. class Google_Service_Mirror_Contacts_Resource extends Google_Service_Resource
  414. {
  415. /**
  416. * Deletes a contact. (contacts.delete)
  417. *
  418. * @param string $id The ID of the contact.
  419. * @param array $optParams Optional parameters.
  420. */
  421. public function delete($id, $optParams = array())
  422. {
  423. $params = array('id' => $id);
  424. $params = array_merge($params, $optParams);
  425. return $this->call('delete', array($params));
  426. }
  427. /**
  428. * Gets a single contact by ID. (contacts.get)
  429. *
  430. * @param string $id The ID of the contact.
  431. * @param array $optParams Optional parameters.
  432. * @return Google_Service_Mirror_Contact
  433. */
  434. public function get($id, $optParams = array())
  435. {
  436. $params = array('id' => $id);
  437. $params = array_merge($params, $optParams);
  438. return $this->call('get', array($params), "Google_Service_Mirror_Contact");
  439. }
  440. /**
  441. * Inserts a new contact. (contacts.insert)
  442. *
  443. * @param Google_Contact $postBody
  444. * @param array $optParams Optional parameters.
  445. * @return Google_Service_Mirror_Contact
  446. */
  447. public function insert(Google_Service_Mirror_Contact $postBody, $optParams = array())
  448. {
  449. $params = array('postBody' => $postBody);
  450. $params = array_merge($params, $optParams);
  451. return $this->call('insert', array($params), "Google_Service_Mirror_Contact");
  452. }
  453. /**
  454. * Retrieves a list of contacts for the authenticated user.
  455. * (contacts.listContacts)
  456. *
  457. * @param array $optParams Optional parameters.
  458. * @return Google_Service_Mirror_ContactsListResponse
  459. */
  460. public function listContacts($optParams = array())
  461. {
  462. $params = array();
  463. $params = array_merge($params, $optParams);
  464. return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse");
  465. }
  466. /**
  467. * Updates a contact in place. This method supports patch semantics.
  468. * (contacts.patch)
  469. *
  470. * @param string $id The ID of the contact.
  471. * @param Google_Contact $postBody
  472. * @param array $optParams Optional parameters.
  473. * @return Google_Service_Mirror_Contact
  474. */
  475. public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array())
  476. {
  477. $params = array('id' => $id, 'postBody' => $postBody);
  478. $params = array_merge($params, $optParams);
  479. return $this->call('patch', array($params), "Google_Service_Mirror_Contact");
  480. }
  481. /**
  482. * Updates a contact in place. (contacts.update)
  483. *
  484. * @param string $id The ID of the contact.
  485. * @param Google_Contact $postBody
  486. * @param array $optParams Optional parameters.
  487. * @return Google_Service_Mirror_Contact
  488. */
  489. public function update($id, Google_Service_Mirror_Contact $postBody, $optParams = array())
  490. {
  491. $params = array('id' => $id, 'postBody' => $postBody);
  492. $params = array_merge($params, $optParams);
  493. return $this->call('update', array($params), "Google_Service_Mirror_Contact");
  494. }
  495. }
  496. /**
  497. * The "locations" collection of methods.
  498. * Typical usage is:
  499. * <code>
  500. * $mirrorService = new Google_Service_Mirror(...);
  501. * $locations = $mirrorService->locations;
  502. * </code>
  503. */
  504. class Google_Service_Mirror_Locations_Resource extends Google_Service_Resource
  505. {
  506. /**
  507. * Gets a single location by ID. (locations.get)
  508. *
  509. * @param string $id The ID of the location or latest for the last known
  510. * location.
  511. * @param array $optParams Optional parameters.
  512. * @return Google_Service_Mirror_Location
  513. */
  514. public function get($id, $optParams = array())
  515. {
  516. $params = array('id' => $id);
  517. $params = array_merge($params, $optParams);
  518. return $this->call('get', array($params), "Google_Service_Mirror_Location");
  519. }
  520. /**
  521. * Retrieves a list of locations for the user. (locations.listLocations)
  522. *
  523. * @param array $optParams Optional parameters.
  524. * @return Google_Service_Mirror_LocationsListResponse
  525. */
  526. public function listLocations($optParams = array())
  527. {
  528. $params = array();
  529. $params = array_merge($params, $optParams);
  530. return $this->call('list', array($params), "Google_Service_Mirror_LocationsListResponse");
  531. }
  532. }
  533. /**
  534. * The "settings" collection of methods.
  535. * Typical usage is:
  536. * <code>
  537. * $mirrorService = new Google_Service_Mirror(...);
  538. * $settings = $mirrorService->settings;
  539. * </code>
  540. */
  541. class Google_Service_Mirror_Settings_Resource extends Google_Service_Resource
  542. {
  543. /**
  544. * Gets a single setting by ID. (settings.get)
  545. *
  546. * @param string $id The ID of the setting. The following IDs are valid: -
  547. * locale - The key to the user’s language/locale (BCP 47 identifier) that
  548. * Glassware should use to render localized content. - timezone - The key to
  549. * the user’s current time zone region as defined in the tz database. Example:
  550. * America/Los_Angeles.
  551. * @param array $optParams Optional parameters.
  552. * @return Google_Service_Mirror_Setting
  553. */
  554. public function get($id, $optParams = array())
  555. {
  556. $params = array('id' => $id);
  557. $params = array_merge($params, $optParams);
  558. return $this->call('get', array($params), "Google_Service_Mirror_Setting");
  559. }
  560. }
  561. /**
  562. * The "subscriptions" collection of methods.
  563. * Typical usage is:
  564. * <code>
  565. * $mirrorService = new Google_Service_Mirror(...);
  566. * $subscriptions = $mirrorService->subscriptions;
  567. * </code>
  568. */
  569. class Google_Service_Mirror_Subscriptions_Resource extends Google_Service_Resource
  570. {
  571. /**
  572. * Deletes a subscription. (subscriptions.delete)
  573. *
  574. * @param string $id The ID of the subscription.
  575. * @param array $optParams Optional parameters.
  576. */
  577. public function delete($id, $optParams = array())
  578. {
  579. $params = array('id' => $id);
  580. $params = array_merge($params, $optParams);
  581. return $this->call('delete', array($params));
  582. }
  583. /**
  584. * Creates a new subscription. (subscriptions.insert)
  585. *
  586. * @param Google_Subscription $postBody
  587. * @param array $optParams Optional parameters.
  588. * @return Google_Service_Mirror_Subscription
  589. */
  590. public function insert(Google_Service_Mirror_Subscription $postBody, $optParams = array())
  591. {
  592. $params = array('postBody' => $postBody);
  593. $params = array_merge($params, $optParams);
  594. return $this->call('insert', array($params), "Google_Service_Mirror_Subscription");
  595. }
  596. /**
  597. * Retrieves a list of subscriptions for the authenticated user and service.
  598. * (subscriptions.listSubscriptions)
  599. *
  600. * @param array $optParams Optional parameters.
  601. * @return Google_Service_Mirror_SubscriptionsListResponse
  602. */
  603. public function listSubscriptions($optParams = array())
  604. {
  605. $params = array();
  606. $params = array_merge($params, $optParams);
  607. return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse");
  608. }
  609. /**
  610. * Updates an existing subscription in place. (subscriptions.update)
  611. *
  612. * @param string $id The ID of the subscription.
  613. * @param Google_Subscription $postBody
  614. * @param array $optParams Optional parameters.
  615. * @return Google_Service_Mirror_Subscription
  616. */
  617. public function update($id, Google_Service_Mirror_Subscription $postBody, $optParams = array())
  618. {
  619. $params = array('id' => $id, 'postBody' => $postBody);
  620. $params = array_merge($params, $optParams);
  621. return $this->call('update', array($params), "Google_Service_Mirror_Subscription");
  622. }
  623. }
  624. /**
  625. * The "timeline" collection of methods.
  626. * Typical usage is:
  627. * <code>
  628. * $mirrorService = new Google_Service_Mirror(...);
  629. * $timeline = $mirrorService->timeline;
  630. * </code>
  631. */
  632. class Google_Service_Mirror_Timeline_Resource extends Google_Service_Resource
  633. {
  634. /**
  635. * Deletes a timeline item. (timeline.delete)
  636. *
  637. * @param string $id The ID of the timeline item.
  638. * @param array $optParams Optional parameters.
  639. */
  640. public function delete($id, $optParams = array())
  641. {
  642. $params = array('id' => $id);
  643. $params = array_merge($params, $optParams);
  644. return $this->call('delete', array($params));
  645. }
  646. /**
  647. * Gets a single timeline item by ID. (timeline.get)
  648. *
  649. * @param string $id The ID of the timeline item.
  650. * @param array $optParams Optional parameters.
  651. * @return Google_Service_Mirror_TimelineItem
  652. */
  653. public function get($id, $optParams = array())
  654. {
  655. $params = array('id' => $id);
  656. $params = array_merge($params, $optParams);
  657. return $this->call('get', array($params), "Google_Service_Mirror_TimelineItem");
  658. }
  659. /**
  660. * Inserts a new item into the timeline. (timeline.insert)
  661. *
  662. * @param Google_TimelineItem $postBody
  663. * @param array $optParams Optional parameters.
  664. * @return Google_Service_Mirror_TimelineItem
  665. */
  666. public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
  667. {
  668. $params = array('postBody' => $postBody);
  669. $params = array_merge($params, $optParams);
  670. return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem");
  671. }
  672. /**
  673. * Retrieves a list of timeline items for the authenticated user.
  674. * (timeline.listTimeline)
  675. *
  676. * @param array $optParams Optional parameters.
  677. *
  678. * @opt_param string orderBy Controls the order in which timeline items are
  679. * returned.
  680. * @opt_param bool includeDeleted If true, tombstone records for deleted items
  681. * will be returned.
  682. * @opt_param string maxResults The maximum number of items to include in the
  683. * response, used for paging.
  684. * @opt_param string pageToken Token for the page of results to return.
  685. * @opt_param string sourceItemId If provided, only items with the given
  686. * sourceItemId will be returned.
  687. * @opt_param bool pinnedOnly If true, only pinned items will be returned.
  688. * @opt_param string bundleId If provided, only items with the given bundleId
  689. * will be returned.
  690. * @return Google_Service_Mirror_TimelineListResponse
  691. */
  692. public function listTimeline($optParams = array())
  693. {
  694. $params = array();
  695. $params = array_merge($params, $optParams);
  696. return $this->call('list', array($params), "Google_Service_Mirror_TimelineListResponse");
  697. }
  698. /**
  699. * Updates a timeline item in place. This method supports patch semantics.
  700. * (timeline.patch)
  701. *
  702. * @param string $id The ID of the timeline item.
  703. * @param Google_TimelineItem $postBody
  704. * @param array $optParams Optional parameters.
  705. * @return Google_Service_Mirror_TimelineItem
  706. */
  707. public function patch($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
  708. {
  709. $params = array('id' => $id, 'postBody' => $postBody);
  710. $params = array_merge($params, $optParams);
  711. return $this->call('patch', array($params), "Google_Service_Mirror_TimelineItem");
  712. }
  713. /**
  714. * Updates a timeline item in place. (timeline.update)
  715. *
  716. * @param string $id The ID of the timeline item.
  717. * @param Google_TimelineItem $postBody
  718. * @param array $optParams Optional parameters.
  719. * @return Google_Service_Mirror_TimelineItem
  720. */
  721. public function update($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
  722. {
  723. $params = array('id' => $id, 'postBody' => $postBody);
  724. $params = array_merge($params, $optParams);
  725. return $this->call('update', array($params), "Google_Service_Mirror_TimelineItem");
  726. }
  727. }
  728. /**
  729. * The "attachments" collection of methods.
  730. * Typical usage is:
  731. * <code>
  732. * $mirrorService = new Google_Service_Mirror(...);
  733. * $attachments = $mirrorService->attachments;
  734. * </code>
  735. */
  736. class Google_Service_Mirror_TimelineAttachments_Resource extends Google_Service_Resource
  737. {
  738. /**
  739. * Deletes an attachment from a timeline item. (attachments.delete)
  740. *
  741. * @param string $itemId The ID of the timeline item the attachment belongs to.
  742. * @param string $attachmentId The ID of the attachment.
  743. * @param array $optParams Optional parameters.
  744. */
  745. public function delete($itemId, $attachmentId, $optParams = array())
  746. {
  747. $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
  748. $params = array_merge($params, $optParams);
  749. return $this->call('delete', array($params));
  750. }
  751. /**
  752. * Retrieves an attachment on a timeline item by item ID and attachment ID.
  753. * (attachments.get)
  754. *
  755. * @param string $itemId The ID of the timeline item the attachment belongs to.
  756. * @param string $attachmentId The ID of the attachment.
  757. * @param array $optParams Optional parameters.
  758. * @return Google_Service_Mirror_Attachment
  759. */
  760. public function get($itemId, $attachmentId, $optParams = array())
  761. {
  762. $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
  763. $params = array_merge($params, $optParams);
  764. return $this->call('get', array($params), "Google_Service_Mirror_Attachment");
  765. }
  766. /**
  767. * Adds a new attachment to a timeline item. (attachments.insert)
  768. *
  769. * @param string $itemId The ID of the timeline item the attachment belongs to.
  770. * @param array $optParams Optional parameters.
  771. * @return Google_Service_Mirror_Attachment
  772. */
  773. public function insert($itemId, $optParams = array())
  774. {
  775. $params = array('itemId' => $itemId);
  776. $params = array_merge($params, $optParams);
  777. return $this->call('insert', array($params), "Google_Service_Mirror_Attachment");
  778. }
  779. /**
  780. * Returns a list of attachments for a timeline item.
  781. * (attachments.listTimelineAttachments)
  782. *
  783. * @param string $itemId The ID of the timeline item whose attachments should be
  784. * listed.
  785. * @param array $optParams Optional parameters.
  786. * @return Google_Service_Mirror_AttachmentsListResponse
  787. */
  788. public function listTimelineAttachments($itemId, $optParams = array())
  789. {
  790. $params = array('itemId' => $itemId);
  791. $params = array_merge($params, $optParams);
  792. return $this->call('list', array($params), "Google_Service_Mirror_AttachmentsListResponse");
  793. }
  794. }
  795. class Google_Service_Mirror_Account extends Google_Collection
  796. {
  797. protected $collection_key = 'userData';
  798. protected $internal_gapi_mappings = array(
  799. );
  800. protected $authTokensType = 'Google_Service_Mirror_AuthToken';
  801. protected $authTokensDataType = 'array';
  802. public $features;
  803. public $password;
  804. protected $userDataType = 'Google_Service_Mirror_UserData';
  805. protected $userDataDataType = 'array';
  806. public function setAuthTokens($authTokens)
  807. {
  808. $this->authTokens = $authTokens;
  809. }
  810. public function getAuthTokens()
  811. {
  812. return $this->authTokens;
  813. }
  814. public function setFeatures($features)
  815. {
  816. $this->features = $features;
  817. }
  818. public function getFeatures()
  819. {
  820. return $this->features;
  821. }
  822. public function setPassword($password)
  823. {
  824. $this->password = $password;
  825. }
  826. public function getPassword()
  827. {
  828. return $this->password;
  829. }
  830. public function setUserData($userData)
  831. {
  832. $this->userData = $userData;
  833. }
  834. public function getUserData()
  835. {
  836. return $this->userData;
  837. }
  838. }
  839. class Google_Service_Mirror_Attachment extends Google_Model
  840. {
  841. protected $internal_gapi_mappings = array(
  842. );
  843. public $contentType;
  844. public $contentUrl;
  845. public $id;
  846. public $isProcessingContent;
  847. public function setContentType($contentType)
  848. {
  849. $this->contentType = $contentType;
  850. }
  851. public function getContentType()
  852. {
  853. return $this->contentType;
  854. }
  855. public function setContentUrl($contentUrl)
  856. {
  857. $this->contentUrl = $contentUrl;
  858. }
  859. public function getContentUrl()
  860. {
  861. return $this->contentUrl;
  862. }
  863. public function setId($id)
  864. {
  865. $this->id = $id;
  866. }
  867. public function getId()
  868. {
  869. return $this->id;
  870. }
  871. public function setIsProcessingContent($isProcessingContent)
  872. {
  873. $this->isProcessingContent = $isProcessingContent;
  874. }
  875. public function getIsProcessingContent()
  876. {
  877. return $this->isProcessingContent;
  878. }
  879. }
  880. class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection
  881. {
  882. protected $collection_key = 'items';
  883. protected $internal_gapi_mappings = array(
  884. );
  885. protected $itemsType = 'Google_Service_Mirror_Attachment';
  886. protected $itemsDataType = 'array';
  887. public $kind;
  888. public function setItems($items)
  889. {
  890. $this->items = $items;
  891. }
  892. public function getItems()
  893. {
  894. return $this->items;
  895. }
  896. public function setKind($kind)
  897. {
  898. $this->kind = $kind;
  899. }
  900. public function getKind()
  901. {
  902. return $this->kind;
  903. }
  904. }
  905. class Google_Service_Mirror_AuthToken extends Google_Model
  906. {
  907. protected $internal_gapi_mappings = array(
  908. );
  909. public $authToken;
  910. public $type;
  911. public function setAuthToken($authToken)
  912. {
  913. $this->authToken = $authToken;
  914. }
  915. public function getAuthToken()
  916. {
  917. return $this->authToken;
  918. }
  919. public function setType($type)
  920. {
  921. $this->type = $type;
  922. }
  923. public function getType()
  924. {
  925. return $this->type;
  926. }
  927. }
  928. class Google_Service_Mirror_Command extends Google_Model
  929. {
  930. protected $internal_gapi_mappings = array(
  931. );
  932. public $type;
  933. public function setType($type)
  934. {
  935. $this->type = $type;
  936. }
  937. public function getType()
  938. {
  939. return $this->type;
  940. }
  941. }
  942. class Google_Service_Mirror_Contact extends Google_Collection
  943. {
  944. protected $collection_key = 'sharingFeatures';
  945. protected $internal_gapi_mappings = array(
  946. );
  947. protected $acceptCommandsType = 'Google_Service_Mirror_Command';
  948. protected $acceptCommandsDataType = 'array';
  949. public $acceptTypes;
  950. public $displayName;
  951. public $id;
  952. public $imageUrls;
  953. public $kind;
  954. public $phoneNumber;
  955. public $priority;
  956. public $sharingFeatures;
  957. public $source;
  958. public $speakableName;
  959. public $type;
  960. public function setAcceptCommands($acceptCommands)
  961. {
  962. $this->acceptCommands = $acceptCommands;
  963. }
  964. public function getAcceptCommands()
  965. {
  966. return $this->acceptCommands;
  967. }
  968. public function setAcceptTypes($acceptTypes)
  969. {
  970. $this->acceptTypes = $acceptTypes;
  971. }
  972. public function getAcceptTypes()
  973. {
  974. return $this->acceptTypes;
  975. }
  976. public function setDisplayName($displayName)
  977. {
  978. $this->displayName = $displayName;
  979. }
  980. public function getDisplayName()
  981. {
  982. return $this->displayName;
  983. }
  984. public function setId($id)
  985. {
  986. $this->id = $id;
  987. }
  988. public function getId()
  989. {
  990. return $this->id;
  991. }
  992. public function setImageUrls($imageUrls)
  993. {
  994. $this->imageUrls = $imageUrls;
  995. }
  996. public function getImageUrls()
  997. {
  998. return $this->imageUrls;
  999. }
  1000. public function setKind($kind)
  1001. {
  1002. $this->kind = $kind;
  1003. }
  1004. public function getKind()
  1005. {
  1006. return $this->kind;
  1007. }
  1008. public function setPhoneNumber($phoneNumber)
  1009. {
  1010. $this->phoneNumber = $phoneNumber;
  1011. }
  1012. public function getPhoneNumber()
  1013. {
  1014. return $this->phoneNumber;
  1015. }
  1016. public function setPriority($priority)
  1017. {
  1018. $this->priority = $priority;
  1019. }
  1020. public function getPriority()
  1021. {
  1022. return $this->priority;
  1023. }
  1024. public function setSharingFeatures($sharingFeatures)
  1025. {
  1026. $this->sharingFeatures = $sharingFeatures;
  1027. }
  1028. public function getSharingFeatures()
  1029. {
  1030. return $this->sharingFeatures;
  1031. }
  1032. public function setSource($source)
  1033. {
  1034. $this->source = $source;
  1035. }
  1036. public function getSource()
  1037. {
  1038. return $this->source;
  1039. }
  1040. public function setSpeakableName($speakableName)
  1041. {
  1042. $this->speakableName = $speakableName;
  1043. }
  1044. public function getSpeakableName()
  1045. {
  1046. return $this->speakableName;
  1047. }
  1048. public function setType($type)
  1049. {
  1050. $this->type = $type;
  1051. }
  1052. public function getType()
  1053. {
  1054. return $this->type;
  1055. }
  1056. }
  1057. class Google_Service_Mirror_ContactsListResponse extends Google_Collection
  1058. {
  1059. protected $collection_key = 'items';
  1060. protected $internal_gapi_mappings = array(
  1061. );
  1062. protected $itemsType = 'Google_Service_Mirror_Contact';
  1063. protected $itemsDataType = 'array';
  1064. public $kind;
  1065. public function setItems($items)
  1066. {
  1067. $this->items = $items;
  1068. }
  1069. public function getItems()
  1070. {
  1071. return $this->items;
  1072. }
  1073. public function setKind($kind)
  1074. {
  1075. $this->kind = $kind;
  1076. }
  1077. public function getKind()
  1078. {
  1079. return $this->kind;
  1080. }
  1081. }
  1082. class Google_Service_Mirror_Location extends Google_Model
  1083. {
  1084. protected $internal_gapi_mappings = array(
  1085. );
  1086. public $accuracy;
  1087. public $address;
  1088. public $displayName;
  1089. public $id;
  1090. public $kind;
  1091. public $latitude;
  1092. public $longitude;
  1093. public $timestamp;
  1094. public function setAccuracy($accuracy)
  1095. {
  1096. $this->accuracy = $accuracy;
  1097. }
  1098. public function getAccuracy()
  1099. {
  1100. return $this->accuracy;
  1101. }
  1102. public function setAddress($address)
  1103. {
  1104. $this->address = $address;
  1105. }
  1106. public function getAddress()
  1107. {
  1108. return $this->address;
  1109. }
  1110. public function setDisplayName($displayName)
  1111. {
  1112. $this->displayName = $displayName;
  1113. }
  1114. public function getDisplayName()
  1115. {
  1116. return $this->displayName;
  1117. }
  1118. public function setId($id)
  1119. {
  1120. $this->id = $id;
  1121. }
  1122. public function getId()
  1123. {
  1124. return $this->id;
  1125. }
  1126. public function setKind($kind)
  1127. {
  1128. $this->kind = $kind;
  1129. }
  1130. public function getKind()
  1131. {
  1132. return $this->kind;
  1133. }
  1134. public function setLatitude($latitude)
  1135. {
  1136. $this->latitude = $latitude;
  1137. }
  1138. public function getLatitude()
  1139. {
  1140. return $this->latitude;
  1141. }
  1142. public function setLongitude($longitude)
  1143. {
  1144. $this->longitude = $longitude;
  1145. }
  1146. public function getLongitude()
  1147. {
  1148. return $this->longitude;
  1149. }
  1150. public function setTimestamp($timestamp)
  1151. {
  1152. $this->timestamp = $timestamp;
  1153. }
  1154. public function getTimestamp()
  1155. {
  1156. return $this->timestamp;
  1157. }
  1158. }
  1159. class Google_Service_Mirror_LocationsListResponse extends Google_Collection
  1160. {
  1161. protected $collection_key = 'items';
  1162. protected $internal_gapi_mappings = array(
  1163. );
  1164. protected $itemsType = 'Google_Service_Mirror_Location';
  1165. protected $itemsDataType = 'array';
  1166. public $kind;
  1167. public function setItems($items)
  1168. {
  1169. $this->items = $items;
  1170. }
  1171. public function getItems()
  1172. {
  1173. return $this->items;
  1174. }
  1175. public function setKind($kind)
  1176. {
  1177. $this->kind = $kind;
  1178. }
  1179. public function getKind()
  1180. {
  1181. return $this->kind;
  1182. }
  1183. }
  1184. class Google_Service_Mirror_MenuItem extends Google_Collection
  1185. {
  1186. protected $collection_key = 'values';
  1187. protected $internal_gapi_mappings = array(
  1188. "contextualCommand" => "contextual_command",
  1189. );
  1190. public $action;
  1191. public $contextualCommand;
  1192. public $id;
  1193. public $payload;
  1194. public $removeWhenSelected;
  1195. protected $valuesType = 'Google_Service_Mirror_MenuValue';
  1196. protected $valuesDataType = 'array';
  1197. public function setAction($action)
  1198. {
  1199. $this->action = $action;
  1200. }
  1201. public function getAction()
  1202. {
  1203. return $this->action;
  1204. }
  1205. public function setContextualCommand($contextualCommand)
  1206. {
  1207. $this->contextualCommand = $contextualCommand;
  1208. }
  1209. public function getContextualCommand()
  1210. {
  1211. return $this->contextualCommand;
  1212. }
  1213. public function setId($id)
  1214. {
  1215. $this->id = $id;
  1216. }
  1217. public function getId()
  1218. {
  1219. return $this->id;
  1220. }
  1221. public function setPayload($payload)
  1222. {
  1223. $this->payload = $payload;
  1224. }
  1225. public function getPayload()
  1226. {
  1227. return $this->payload;
  1228. }
  1229. public function setRemoveWhenSelected($removeWhenSelected)
  1230. {
  1231. $this->removeWhenSelected = $removeWhenSelected;
  1232. }
  1233. public function getRemoveWhenSelected()
  1234. {
  1235. return $this->removeWhenSelected;
  1236. }
  1237. public function setValues($values)
  1238. {
  1239. $this->values = $values;
  1240. }
  1241. public function getValues()
  1242. {
  1243. return $this->values;
  1244. }
  1245. }
  1246. class Google_Service_Mirror_MenuValue extends Google_Model
  1247. {
  1248. protected $internal_gapi_mappings = array(
  1249. );
  1250. public $displayName;
  1251. public $iconUrl;
  1252. public $state;
  1253. public function setDisplayName($displayName)
  1254. {
  1255. $this->displayName = $displayName;
  1256. }
  1257. public function getDisplayName()
  1258. {
  1259. return $this->displayName;
  1260. }
  1261. public function setIconUrl($iconUrl)
  1262. {
  1263. $this->iconUrl = $iconUrl;
  1264. }
  1265. public function getIconUrl()
  1266. {
  1267. return $this->iconUrl;
  1268. }
  1269. public function setState($state)
  1270. {
  1271. $this->state = $state;
  1272. }
  1273. public function getState()
  1274. {
  1275. return $this->state;
  1276. }
  1277. }
  1278. class Google_Service_Mirror_Notification extends Google_Collection
  1279. {
  1280. protected $collection_key = 'userActions';
  1281. protected $internal_gapi_mappings = array(
  1282. );
  1283. public $collection;
  1284. public $itemId;
  1285. public $operation;
  1286. protected $userActionsType = 'Google_Service_Mirror_UserAction';
  1287. protected $userActionsDataType = 'array';
  1288. public $userToken;
  1289. public $verifyToken;
  1290. public function setCollection($collection)
  1291. {
  1292. $this->collection = $collection;
  1293. }
  1294. public function getCollection()
  1295. {
  1296. return $this->collection;
  1297. }
  1298. public function setItemId($itemId)
  1299. {
  1300. $this->itemId = $itemId;
  1301. }
  1302. public function getItemId()
  1303. {
  1304. return $this->itemId;
  1305. }
  1306. public function setOperation($operation)
  1307. {
  1308. $this->operation = $operation;
  1309. }
  1310. public function getOperation()
  1311. {
  1312. return $this->operation;
  1313. }
  1314. public function setUserActions($userActions)
  1315. {
  1316. $this->userActions = $userActions;
  1317. }
  1318. public function getUserActions()
  1319. {
  1320. return $this->userActions;
  1321. }
  1322. public function setUserToken($userToken)
  1323. {
  1324. $this->userToken = $userToken;
  1325. }
  1326. public function getUserToken()
  1327. {
  1328. return $this->userToken;
  1329. }
  1330. public function setVerifyToken($verifyToken)
  1331. {
  1332. $this->verifyToken = $verifyToken;
  1333. }
  1334. public function getVerifyToken()
  1335. {
  1336. return $this->verifyToken;
  1337. }
  1338. }
  1339. class Google_Service_Mirror_NotificationConfig extends Google_Model
  1340. {
  1341. protected $internal_gapi_mappings = array(
  1342. );
  1343. public $deliveryTime;
  1344. public $level;
  1345. public function setDeliveryTime($deliveryTime)
  1346. {
  1347. $this->deliveryTime = $deliveryTime;
  1348. }
  1349. public function getDeliveryTime()
  1350. {
  1351. return $this->deliveryTime;
  1352. }
  1353. public function setLevel($level)
  1354. {
  1355. $this->level = $level;
  1356. }
  1357. public function getLevel()
  1358. {
  1359. return $this->level;
  1360. }
  1361. }
  1362. class Google_Service_Mirror_Setting extends Google_Model
  1363. {
  1364. protected $internal_gapi_mappings = array(
  1365. );
  1366. public $id;
  1367. public $kind;
  1368. public $value;
  1369. public function setId($id)
  1370. {
  1371. $this->id = $id;
  1372. }
  1373. public function getId()
  1374. {
  1375. return $this->id;
  1376. }
  1377. public function setKind($kind)
  1378. {
  1379. $this->kind = $kind;
  1380. }
  1381. public function getKind()
  1382. {
  1383. return $this->kind;
  1384. }
  1385. public function setValue($value)
  1386. {
  1387. $this->value = $value;
  1388. }
  1389. public function getValue()
  1390. {
  1391. return $this->value;
  1392. }
  1393. }
  1394. class Google_Service_Mirror_Subscription extends Google_Collection
  1395. {
  1396. protected $collection_key = 'operation';
  1397. protected $internal_gapi_mappings = array(
  1398. );
  1399. public $callbackUrl;
  1400. public $collection;
  1401. public $id;
  1402. public $kind;
  1403. protected $notificationType = 'Google_Service_Mirror_Notification';
  1404. protected $notificationDataType = '';
  1405. public $operation;
  1406. public $updated;
  1407. public $userToken;
  1408. public $verifyToken;
  1409. public function setCallbackUrl($callbackUrl)
  1410. {
  1411. $this->callbackUrl = $callbackUrl;
  1412. }
  1413. public function getCallbackUrl()
  1414. {
  1415. return $this->callbackUrl;
  1416. }
  1417. public function setCollection($collection)
  1418. {
  1419. $this->collection = $collection;
  1420. }
  1421. public function getCollection()
  1422. {
  1423. return $this->collection;
  1424. }
  1425. public function setId($id)
  1426. {
  1427. $this->id = $id;
  1428. }
  1429. public function getId()
  1430. {
  1431. return $this->id;
  1432. }
  1433. public function setKind($kind)
  1434. {
  1435. $this->kind = $kind;
  1436. }
  1437. public function getKind()
  1438. {
  1439. return $this->kind;
  1440. }
  1441. public function setNotification(Google_Service_Mirror_Notification $notification)
  1442. {
  1443. $this->notification = $notification;
  1444. }
  1445. public function getNotification()
  1446. {
  1447. return $this->notification;
  1448. }
  1449. public function setOperation($operation)
  1450. {
  1451. $this->operation = $operation;
  1452. }
  1453. public function getOperation()
  1454. {
  1455. return $this->operation;
  1456. }
  1457. public function setUpdated($updated)
  1458. {
  1459. $this->updated = $updated;
  1460. }
  1461. public function getUpdated()
  1462. {
  1463. return $this->updated;
  1464. }
  1465. public function setUserToken($userToken)
  1466. {
  1467. $this->userToken = $userToken;
  1468. }
  1469. public function getUserToken()
  1470. {
  1471. return $this->userToken;
  1472. }
  1473. public function setVerifyToken($verifyToken)
  1474. {
  1475. $this->verifyToken = $verifyToken;
  1476. }
  1477. public function getVerifyToken()
  1478. {
  1479. return $this->verifyToken;
  1480. }
  1481. }
  1482. class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection
  1483. {
  1484. protected $collection_key = 'items';
  1485. protected $internal_gapi_mappings = array(
  1486. );
  1487. protected $itemsType = 'Google_Service_Mirror_Subscription';
  1488. protected $itemsDataType = 'array';
  1489. public $kind;
  1490. public function setItems($items)
  1491. {
  1492. $this->items = $items;
  1493. }
  1494. public function getItems()
  1495. {
  1496. return $this->items;
  1497. }
  1498. public function setKind($kind)
  1499. {
  1500. $this->kind = $kind;
  1501. }
  1502. public function getKind()
  1503. {
  1504. return $this->kind;
  1505. }
  1506. }
  1507. class Google_Service_Mirror_TimelineItem extends Google_Collection
  1508. {
  1509. protected $collection_key = 'recipients';
  1510. protected $internal_gapi_mappings = array(
  1511. );
  1512. protected $attachmentsType = 'Google_Service_Mirror_Attachment';
  1513. protected $attachmentsDataType = 'array';
  1514. public $bundleId;
  1515. public $canonicalUrl;
  1516. public $created;
  1517. protected $creatorType = 'Google_Service_Mirror_Contact';
  1518. protected $creatorDataType = '';
  1519. public $displayTime;
  1520. public $etag;
  1521. public $html;
  1522. public $id;
  1523. public $inReplyTo;
  1524. public $isBundleCover;
  1525. public $isDeleted;
  1526. public $isPinned;
  1527. public $kind;
  1528. protected $locationType = 'Google_Service_Mirror_Location';
  1529. protected $locationDataType = '';
  1530. protected $menuItemsType = 'Google_Service_Mirror_MenuItem';
  1531. protected $menuItemsDataType = 'array';
  1532. protected $notificationType = 'Google_Service_Mirror_NotificationConfig';
  1533. protected $notificationDataType = '';
  1534. public $pinScore;
  1535. protected $recipientsType = 'Google_Service_Mirror_Contact';
  1536. protected $recipientsDataType = 'array';
  1537. public $selfLink;
  1538. public $sourceItemId;
  1539. public $speakableText;
  1540. public $speakableType;
  1541. public $text;
  1542. public $title;
  1543. public $updated;
  1544. public function setAttachments($attachments)
  1545. {
  1546. $this->attachments = $attachments;
  1547. }
  1548. public function getAttachments()
  1549. {
  1550. return $this->attachments;
  1551. }
  1552. public function setBundleId($bundleId)
  1553. {
  1554. $this->bundleId = $bundleId;
  1555. }
  1556. public function getBundleId()
  1557. {
  1558. return $this->bundleId;
  1559. }
  1560. public function setCanonicalUrl($canonicalUrl)
  1561. {
  1562. $this->canonicalUrl = $canonicalUrl;
  1563. }
  1564. public function getCanonicalUrl()
  1565. {
  1566. return $this->canonicalUrl;
  1567. }
  1568. public function setCreated($created)
  1569. {
  1570. $this->created = $created;
  1571. }
  1572. public function getCreated()
  1573. {
  1574. return $this->created;
  1575. }
  1576. public function setCreator(Google_Service_Mirror_Contact $creator)
  1577. {
  1578. $this->creator = $creator;
  1579. }
  1580. public function getCreator()
  1581. {
  1582. return $this->creator;
  1583. }
  1584. public function setDisplayTime($displayTime)
  1585. {
  1586. $this->displayTime = $displayTime;
  1587. }
  1588. public function getDisplayTime()
  1589. {
  1590. return $this->displayTime;
  1591. }
  1592. public function setEtag($etag)
  1593. {
  1594. $this->etag = $etag;
  1595. }
  1596. public function getEtag()
  1597. {
  1598. return $this->etag;
  1599. }
  1600. public function setHtml($html)
  1601. {
  1602. $this->html = $html;
  1603. }
  1604. public function getHtml()
  1605. {
  1606. return $this->html;
  1607. }
  1608. public function setId($id)
  1609. {
  1610. $this->id = $id;
  1611. }
  1612. public function getId()
  1613. {
  1614. return $this->id;
  1615. }
  1616. public function setInReplyTo($inReplyTo)
  1617. {
  1618. $this->inReplyTo = $inReplyTo;
  1619. }
  1620. public function getInReplyTo()
  1621. {
  1622. return $this->inReplyTo;
  1623. }
  1624. public function setIsBundleCover($isBundleCover)
  1625. {
  1626. $this->isBundleCover = $isBundleCover;
  1627. }
  1628. public function getIsBundleCover()
  1629. {
  1630. return $this->isBundleCover;
  1631. }
  1632. public function setIsDeleted($isDeleted)
  1633. {
  1634. $this->isDeleted = $isDeleted;
  1635. }
  1636. public function getIsDeleted()
  1637. {
  1638. return $this->isDeleted;
  1639. }
  1640. public function setIsPinned($isPinned)
  1641. {
  1642. $this->isPinned = $isPinned;
  1643. }
  1644. public function getIsPinned()
  1645. {
  1646. return $this->isPinned;
  1647. }
  1648. public function setKind($kind)
  1649. {
  1650. $this->kind = $kind;
  1651. }
  1652. public function getKind()
  1653. {
  1654. return $this->kind;
  1655. }
  1656. public function setLocation(Google_Service_Mirror_Location $location)
  1657. {
  1658. $this->location = $location;
  1659. }
  1660. public function getLocation()
  1661. {
  1662. return $this->location;
  1663. }
  1664. public function setMenuItems($menuItems)
  1665. {
  1666. $this->menuItems = $menuItems;
  1667. }
  1668. public function getMenuItems()
  1669. {
  1670. return $this->menuItems;
  1671. }
  1672. public function setNotification(Google_Service_Mirror_NotificationConfig $notification)
  1673. {
  1674. $this->notification = $notification;
  1675. }
  1676. public function getNotification()
  1677. {
  1678. return $this->notification;
  1679. }
  1680. public function setPinScore($pinScore)
  1681. {
  1682. $this->pinScore = $pinScore;
  1683. }
  1684. public function getPinScore()
  1685. {
  1686. return $this->pinScore;
  1687. }
  1688. public function setRecipients($recipients)
  1689. {
  1690. $this->recipients = $recipients;
  1691. }
  1692. public function getRecipients()
  1693. {
  1694. return $this->recipients;
  1695. }
  1696. public function setSelfLink($selfLink)
  1697. {
  1698. $this->selfLink = $selfLink;
  1699. }
  1700. public function getSelfLink()
  1701. {
  1702. return $this->selfLink;
  1703. }
  1704. public function setSourceItemId($sourceItemId)
  1705. {
  1706. $this->sourceItemId = $sourceItemId;
  1707. }
  1708. public function getSourceItemId()
  1709. {
  1710. return $this->sourceItemId;
  1711. }
  1712. public function setSpeakableText($speakableText)
  1713. {
  1714. $this->speakableText = $speakableText;
  1715. }
  1716. public function getSpeakableText()
  1717. {
  1718. return $this->speakableText;
  1719. }
  1720. public function setSpeakableType($speakableType)
  1721. {
  1722. $this->speakableType = $speakableType;
  1723. }
  1724. public function getSpeakableType()
  1725. {
  1726. return $this->speakableType;
  1727. }
  1728. public function setText($text)
  1729. {
  1730. $this->text = $text;
  1731. }
  1732. public function getText()
  1733. {
  1734. return $this->text;
  1735. }
  1736. public function setTitle($title)
  1737. {
  1738. $this->title = $title;
  1739. }
  1740. public function getTitle()
  1741. {
  1742. return $this->title;
  1743. }
  1744. public function setUpdated($updated)
  1745. {
  1746. $this->updated = $updated;
  1747. }
  1748. public function getUpdated()
  1749. {
  1750. return $this->updated;
  1751. }
  1752. }
  1753. class Google_Service_Mirror_TimelineListResponse extends Google_Collection
  1754. {
  1755. protected $collection_key = 'items';
  1756. protected $internal_gapi_mappings = array(
  1757. );
  1758. protected $itemsType = 'Google_Service_Mirror_TimelineItem';
  1759. protected $itemsDataType = 'array';
  1760. public $kind;
  1761. public $nextPageToken;
  1762. public function setItems($items)
  1763. {
  1764. $this->items = $items;
  1765. }
  1766. public function getItems()
  1767. {
  1768. return $this->items;
  1769. }
  1770. public function setKind($kind)
  1771. {
  1772. $this->kind = $kind;
  1773. }
  1774. public function getKind()
  1775. {
  1776. return $this->kind;
  1777. }
  1778. public function setNextPageToken($nextPageToken)
  1779. {
  1780. $this->nextPageToken = $nextPageToken;
  1781. }
  1782. public function getNextPageToken()
  1783. {
  1784. return $this->nextPageToken;
  1785. }
  1786. }
  1787. class Google_Service_Mirror_UserAction extends Google_Model
  1788. {
  1789. protected $internal_gapi_mappings = array(
  1790. );
  1791. public $payload;
  1792. public $type;
  1793. public function setPayload($payload)
  1794. {
  1795. $this->payload = $payload;
  1796. }
  1797. public function getPayload()
  1798. {
  1799. return $this->payload;
  1800. }
  1801. public function setType($type)
  1802. {
  1803. $this->type = $type;
  1804. }
  1805. public function getType()
  1806. {
  1807. return $this->type;
  1808. }
  1809. }
  1810. class Google_Service_Mirror_UserData extends Google_Model
  1811. {
  1812. protected $internal_gapi_mappings = array(
  1813. );
  1814. public $key;
  1815. public $value;
  1816. public function setKey($key)
  1817. {
  1818. $this->key = $key;
  1819. }
  1820. public function getKey()
  1821. {
  1822. return $this->key;
  1823. }
  1824. public function setValue($value)
  1825. {
  1826. $this->value = $value;
  1827. }
  1828. public function getValue()
  1829. {
  1830. return $this->value;
  1831. }
  1832. }