PageRenderTime 57ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Google/Service/Mirror.php

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