/lib/google/contrib/Google_ModeratorService.php

https://bitbucket.org/kudutest1/moodlegit · PHP · 1039 lines · 487 code · 63 blank · 489 comment · 60 complexity · 0cfd9ab8a4969cc140281f2e4821faf6 MD5 · raw file

  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "votes" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $moderatorService = new Google_ModeratorService(...);
  20. * $votes = $moderatorService->votes;
  21. * </code>
  22. */
  23. class Google_VotesServiceResource extends Google_ServiceResource {
  24. /**
  25. * Inserts a new vote by the authenticated user for the specified submission within the specified
  26. * series. (votes.insert)
  27. *
  28. * @param string $seriesId The decimal ID of the Series.
  29. * @param string $submissionId The decimal ID of the Submission within the Series.
  30. * @param Google_Vote $postBody
  31. * @param array $optParams Optional parameters.
  32. *
  33. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  34. * @return Google_Vote
  35. */
  36. public function insert($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
  37. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  38. $params = array_merge($params, $optParams);
  39. $data = $this->__call('insert', array($params));
  40. if ($this->useObjects()) {
  41. return new Google_Vote($data);
  42. } else {
  43. return $data;
  44. }
  45. }
  46. /**
  47. * Updates the votes by the authenticated user for the specified submission within the specified
  48. * series. This method supports patch semantics. (votes.patch)
  49. *
  50. * @param string $seriesId The decimal ID of the Series.
  51. * @param string $submissionId The decimal ID of the Submission within the Series.
  52. * @param Google_Vote $postBody
  53. * @param array $optParams Optional parameters.
  54. *
  55. * @opt_param string userId
  56. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  57. * @return Google_Vote
  58. */
  59. public function patch($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
  60. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  61. $params = array_merge($params, $optParams);
  62. $data = $this->__call('patch', array($params));
  63. if ($this->useObjects()) {
  64. return new Google_Vote($data);
  65. } else {
  66. return $data;
  67. }
  68. }
  69. /**
  70. * Lists the votes by the authenticated user for the given series. (votes.list)
  71. *
  72. * @param string $seriesId The decimal ID of the Series.
  73. * @param array $optParams Optional parameters.
  74. *
  75. * @opt_param string max-results Maximum number of results to return.
  76. * @opt_param string start-index Index of the first result to be retrieved.
  77. * @return Google_VoteList
  78. */
  79. public function listVotes($seriesId, $optParams = array()) {
  80. $params = array('seriesId' => $seriesId);
  81. $params = array_merge($params, $optParams);
  82. $data = $this->__call('list', array($params));
  83. if ($this->useObjects()) {
  84. return new Google_VoteList($data);
  85. } else {
  86. return $data;
  87. }
  88. }
  89. /**
  90. * Updates the votes by the authenticated user for the specified submission within the specified
  91. * series. (votes.update)
  92. *
  93. * @param string $seriesId The decimal ID of the Series.
  94. * @param string $submissionId The decimal ID of the Submission within the Series.
  95. * @param Google_Vote $postBody
  96. * @param array $optParams Optional parameters.
  97. *
  98. * @opt_param string userId
  99. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  100. * @return Google_Vote
  101. */
  102. public function update($seriesId, $submissionId, Google_Vote $postBody, $optParams = array()) {
  103. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  104. $params = array_merge($params, $optParams);
  105. $data = $this->__call('update', array($params));
  106. if ($this->useObjects()) {
  107. return new Google_Vote($data);
  108. } else {
  109. return $data;
  110. }
  111. }
  112. /**
  113. * Returns the votes by the authenticated user for the specified submission within the specified
  114. * series. (votes.get)
  115. *
  116. * @param string $seriesId The decimal ID of the Series.
  117. * @param string $submissionId The decimal ID of the Submission within the Series.
  118. * @param array $optParams Optional parameters.
  119. *
  120. * @opt_param string userId
  121. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  122. * @return Google_Vote
  123. */
  124. public function get($seriesId, $submissionId, $optParams = array()) {
  125. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  126. $params = array_merge($params, $optParams);
  127. $data = $this->__call('get', array($params));
  128. if ($this->useObjects()) {
  129. return new Google_Vote($data);
  130. } else {
  131. return $data;
  132. }
  133. }
  134. }
  135. /**
  136. * The "responses" collection of methods.
  137. * Typical usage is:
  138. * <code>
  139. * $moderatorService = new Google_ModeratorService(...);
  140. * $responses = $moderatorService->responses;
  141. * </code>
  142. */
  143. class Google_ResponsesServiceResource extends Google_ServiceResource {
  144. /**
  145. * Inserts a response for the specified submission in the specified topic within the specified
  146. * series. (responses.insert)
  147. *
  148. * @param string $seriesId The decimal ID of the Series.
  149. * @param string $topicId The decimal ID of the Topic within the Series.
  150. * @param string $parentSubmissionId The decimal ID of the parent Submission within the Series.
  151. * @param Google_Submission $postBody
  152. * @param array $optParams Optional parameters.
  153. *
  154. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  155. * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
  156. * @return Google_Submission
  157. */
  158. public function insert($seriesId, $topicId, $parentSubmissionId, Google_Submission $postBody, $optParams = array()) {
  159. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'parentSubmissionId' => $parentSubmissionId, 'postBody' => $postBody);
  160. $params = array_merge($params, $optParams);
  161. $data = $this->__call('insert', array($params));
  162. if ($this->useObjects()) {
  163. return new Google_Submission($data);
  164. } else {
  165. return $data;
  166. }
  167. }
  168. /**
  169. * Lists or searches the responses for the specified submission within the specified series and
  170. * returns the search results. (responses.list)
  171. *
  172. * @param string $seriesId The decimal ID of the Series.
  173. * @param string $submissionId The decimal ID of the Submission within the Series.
  174. * @param array $optParams Optional parameters.
  175. *
  176. * @opt_param string max-results Maximum number of results to return.
  177. * @opt_param string sort Sort order.
  178. * @opt_param string author Restricts the results to submissions by a specific author.
  179. * @opt_param string start-index Index of the first result to be retrieved.
  180. * @opt_param string q Search query.
  181. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  182. * @return Google_SubmissionList
  183. */
  184. public function listResponses($seriesId, $submissionId, $optParams = array()) {
  185. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  186. $params = array_merge($params, $optParams);
  187. $data = $this->__call('list', array($params));
  188. if ($this->useObjects()) {
  189. return new Google_SubmissionList($data);
  190. } else {
  191. return $data;
  192. }
  193. }
  194. }
  195. /**
  196. * The "tags" collection of methods.
  197. * Typical usage is:
  198. * <code>
  199. * $moderatorService = new Google_ModeratorService(...);
  200. * $tags = $moderatorService->tags;
  201. * </code>
  202. */
  203. class Google_TagsServiceResource extends Google_ServiceResource {
  204. /**
  205. * Inserts a new tag for the specified submission within the specified series. (tags.insert)
  206. *
  207. * @param string $seriesId The decimal ID of the Series.
  208. * @param string $submissionId The decimal ID of the Submission within the Series.
  209. * @param Google_Tag $postBody
  210. * @param array $optParams Optional parameters.
  211. * @return Google_Tag
  212. */
  213. public function insert($seriesId, $submissionId, Google_Tag $postBody, $optParams = array()) {
  214. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
  215. $params = array_merge($params, $optParams);
  216. $data = $this->__call('insert', array($params));
  217. if ($this->useObjects()) {
  218. return new Google_Tag($data);
  219. } else {
  220. return $data;
  221. }
  222. }
  223. /**
  224. * Lists all tags for the specified submission within the specified series. (tags.list)
  225. *
  226. * @param string $seriesId The decimal ID of the Series.
  227. * @param string $submissionId The decimal ID of the Submission within the Series.
  228. * @param array $optParams Optional parameters.
  229. * @return Google_TagList
  230. */
  231. public function listTags($seriesId, $submissionId, $optParams = array()) {
  232. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  233. $params = array_merge($params, $optParams);
  234. $data = $this->__call('list', array($params));
  235. if ($this->useObjects()) {
  236. return new Google_TagList($data);
  237. } else {
  238. return $data;
  239. }
  240. }
  241. /**
  242. * Deletes the specified tag from the specified submission within the specified series.
  243. * (tags.delete)
  244. *
  245. * @param string $seriesId The decimal ID of the Series.
  246. * @param string $submissionId The decimal ID of the Submission within the Series.
  247. * @param string $tagId
  248. * @param array $optParams Optional parameters.
  249. */
  250. public function delete($seriesId, $submissionId, $tagId, $optParams = array()) {
  251. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'tagId' => $tagId);
  252. $params = array_merge($params, $optParams);
  253. $data = $this->__call('delete', array($params));
  254. return $data;
  255. }
  256. }
  257. /**
  258. * The "series" collection of methods.
  259. * Typical usage is:
  260. * <code>
  261. * $moderatorService = new Google_ModeratorService(...);
  262. * $series = $moderatorService->series;
  263. * </code>
  264. */
  265. class Google_SeriesServiceResource extends Google_ServiceResource {
  266. /**
  267. * Inserts a new series. (series.insert)
  268. *
  269. * @param Google_Series $postBody
  270. * @param array $optParams Optional parameters.
  271. * @return Google_Series
  272. */
  273. public function insert(Google_Series $postBody, $optParams = array()) {
  274. $params = array('postBody' => $postBody);
  275. $params = array_merge($params, $optParams);
  276. $data = $this->__call('insert', array($params));
  277. if ($this->useObjects()) {
  278. return new Google_Series($data);
  279. } else {
  280. return $data;
  281. }
  282. }
  283. /**
  284. * Updates the specified series. This method supports patch semantics. (series.patch)
  285. *
  286. * @param string $seriesId The decimal ID of the Series.
  287. * @param Google_Series $postBody
  288. * @param array $optParams Optional parameters.
  289. * @return Google_Series
  290. */
  291. public function patch($seriesId, Google_Series $postBody, $optParams = array()) {
  292. $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
  293. $params = array_merge($params, $optParams);
  294. $data = $this->__call('patch', array($params));
  295. if ($this->useObjects()) {
  296. return new Google_Series($data);
  297. } else {
  298. return $data;
  299. }
  300. }
  301. /**
  302. * Searches the series and returns the search results. (series.list)
  303. *
  304. * @param array $optParams Optional parameters.
  305. *
  306. * @opt_param string max-results Maximum number of results to return.
  307. * @opt_param string q Search query.
  308. * @opt_param string start-index Index of the first result to be retrieved.
  309. * @return Google_SeriesList
  310. */
  311. public function listSeries($optParams = array()) {
  312. $params = array();
  313. $params = array_merge($params, $optParams);
  314. $data = $this->__call('list', array($params));
  315. if ($this->useObjects()) {
  316. return new Google_SeriesList($data);
  317. } else {
  318. return $data;
  319. }
  320. }
  321. /**
  322. * Updates the specified series. (series.update)
  323. *
  324. * @param string $seriesId The decimal ID of the Series.
  325. * @param Google_Series $postBody
  326. * @param array $optParams Optional parameters.
  327. * @return Google_Series
  328. */
  329. public function update($seriesId, Google_Series $postBody, $optParams = array()) {
  330. $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
  331. $params = array_merge($params, $optParams);
  332. $data = $this->__call('update', array($params));
  333. if ($this->useObjects()) {
  334. return new Google_Series($data);
  335. } else {
  336. return $data;
  337. }
  338. }
  339. /**
  340. * Returns the specified series. (series.get)
  341. *
  342. * @param string $seriesId The decimal ID of the Series.
  343. * @param array $optParams Optional parameters.
  344. * @return Google_Series
  345. */
  346. public function get($seriesId, $optParams = array()) {
  347. $params = array('seriesId' => $seriesId);
  348. $params = array_merge($params, $optParams);
  349. $data = $this->__call('get', array($params));
  350. if ($this->useObjects()) {
  351. return new Google_Series($data);
  352. } else {
  353. return $data;
  354. }
  355. }
  356. }
  357. /**
  358. * The "submissions" collection of methods.
  359. * Typical usage is:
  360. * <code>
  361. * $moderatorService = new Google_ModeratorService(...);
  362. * $submissions = $moderatorService->submissions;
  363. * </code>
  364. */
  365. class Google_SeriesSubmissionsServiceResource extends Google_ServiceResource {
  366. /**
  367. * Searches the submissions for the specified series and returns the search results.
  368. * (submissions.list)
  369. *
  370. * @param string $seriesId The decimal ID of the Series.
  371. * @param array $optParams Optional parameters.
  372. *
  373. * @opt_param string lang The language code for the language the client prefers resuls in.
  374. * @opt_param string max-results Maximum number of results to return.
  375. * @opt_param bool includeVotes Specifies whether to include the current user's vote
  376. * @opt_param string start-index Index of the first result to be retrieved.
  377. * @opt_param string author Restricts the results to submissions by a specific author.
  378. * @opt_param string sort Sort order.
  379. * @opt_param string q Search query.
  380. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  381. * @return Google_SubmissionList
  382. */
  383. public function listSeriesSubmissions($seriesId, $optParams = array()) {
  384. $params = array('seriesId' => $seriesId);
  385. $params = array_merge($params, $optParams);
  386. $data = $this->__call('list', array($params));
  387. if ($this->useObjects()) {
  388. return new Google_SubmissionList($data);
  389. } else {
  390. return $data;
  391. }
  392. }
  393. }
  394. /**
  395. * The "responses" collection of methods.
  396. * Typical usage is:
  397. * <code>
  398. * $moderatorService = new Google_ModeratorService(...);
  399. * $responses = $moderatorService->responses;
  400. * </code>
  401. */
  402. class Google_SeriesResponsesServiceResource extends Google_ServiceResource {
  403. /**
  404. * Searches the responses for the specified series and returns the search results. (responses.list)
  405. *
  406. * @param string $seriesId The decimal ID of the Series.
  407. * @param array $optParams Optional parameters.
  408. *
  409. * @opt_param string max-results Maximum number of results to return.
  410. * @opt_param string sort Sort order.
  411. * @opt_param string author Restricts the results to submissions by a specific author.
  412. * @opt_param string start-index Index of the first result to be retrieved.
  413. * @opt_param string q Search query.
  414. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  415. * @return Google_SeriesList
  416. */
  417. public function listSeriesResponses($seriesId, $optParams = array()) {
  418. $params = array('seriesId' => $seriesId);
  419. $params = array_merge($params, $optParams);
  420. $data = $this->__call('list', array($params));
  421. if ($this->useObjects()) {
  422. return new Google_SeriesList($data);
  423. } else {
  424. return $data;
  425. }
  426. }
  427. }
  428. /**
  429. * The "topics" collection of methods.
  430. * Typical usage is:
  431. * <code>
  432. * $moderatorService = new Google_ModeratorService(...);
  433. * $topics = $moderatorService->topics;
  434. * </code>
  435. */
  436. class Google_TopicsServiceResource extends Google_ServiceResource {
  437. /**
  438. * Inserts a new topic into the specified series. (topics.insert)
  439. *
  440. * @param string $seriesId The decimal ID of the Series.
  441. * @param Google_Topic $postBody
  442. * @param array $optParams Optional parameters.
  443. * @return Google_Topic
  444. */
  445. public function insert($seriesId, Google_Topic $postBody, $optParams = array()) {
  446. $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
  447. $params = array_merge($params, $optParams);
  448. $data = $this->__call('insert', array($params));
  449. if ($this->useObjects()) {
  450. return new Google_Topic($data);
  451. } else {
  452. return $data;
  453. }
  454. }
  455. /**
  456. * Searches the topics within the specified series and returns the search results. (topics.list)
  457. *
  458. * @param string $seriesId The decimal ID of the Series.
  459. * @param array $optParams Optional parameters.
  460. *
  461. * @opt_param string max-results Maximum number of results to return.
  462. * @opt_param string q Search query.
  463. * @opt_param string start-index Index of the first result to be retrieved.
  464. * @opt_param string mode
  465. * @return Google_TopicList
  466. */
  467. public function listTopics($seriesId, $optParams = array()) {
  468. $params = array('seriesId' => $seriesId);
  469. $params = array_merge($params, $optParams);
  470. $data = $this->__call('list', array($params));
  471. if ($this->useObjects()) {
  472. return new Google_TopicList($data);
  473. } else {
  474. return $data;
  475. }
  476. }
  477. /**
  478. * Updates the specified topic within the specified series. (topics.update)
  479. *
  480. * @param string $seriesId The decimal ID of the Series.
  481. * @param string $topicId The decimal ID of the Topic within the Series.
  482. * @param Google_Topic $postBody
  483. * @param array $optParams Optional parameters.
  484. * @return Google_Topic
  485. */
  486. public function update($seriesId, $topicId, Google_Topic $postBody, $optParams = array()) {
  487. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
  488. $params = array_merge($params, $optParams);
  489. $data = $this->__call('update', array($params));
  490. if ($this->useObjects()) {
  491. return new Google_Topic($data);
  492. } else {
  493. return $data;
  494. }
  495. }
  496. /**
  497. * Returns the specified topic from the specified series. (topics.get)
  498. *
  499. * @param string $seriesId The decimal ID of the Series.
  500. * @param string $topicId The decimal ID of the Topic within the Series.
  501. * @param array $optParams Optional parameters.
  502. * @return Google_Topic
  503. */
  504. public function get($seriesId, $topicId, $optParams = array()) {
  505. $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
  506. $params = array_merge($params, $optParams);
  507. $data = $this->__call('get', array($params));
  508. if ($this->useObjects()) {
  509. return new Google_Topic($data);
  510. } else {
  511. return $data;
  512. }
  513. }
  514. }
  515. /**
  516. * The "submissions" collection of methods.
  517. * Typical usage is:
  518. * <code>
  519. * $moderatorService = new Google_ModeratorService(...);
  520. * $submissions = $moderatorService->submissions;
  521. * </code>
  522. */
  523. class Google_TopicsSubmissionsServiceResource extends Google_ServiceResource {
  524. /**
  525. * Searches the submissions for the specified topic within the specified series and returns the
  526. * search results. (submissions.list)
  527. *
  528. * @param string $seriesId The decimal ID of the Series.
  529. * @param string $topicId The decimal ID of the Topic within the Series.
  530. * @param array $optParams Optional parameters.
  531. *
  532. * @opt_param string max-results Maximum number of results to return.
  533. * @opt_param bool includeVotes Specifies whether to include the current user's vote
  534. * @opt_param string start-index Index of the first result to be retrieved.
  535. * @opt_param string author Restricts the results to submissions by a specific author.
  536. * @opt_param string sort Sort order.
  537. * @opt_param string q Search query.
  538. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
  539. * @return Google_SubmissionList
  540. */
  541. public function listTopicsSubmissions($seriesId, $topicId, $optParams = array()) {
  542. $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
  543. $params = array_merge($params, $optParams);
  544. $data = $this->__call('list', array($params));
  545. if ($this->useObjects()) {
  546. return new Google_SubmissionList($data);
  547. } else {
  548. return $data;
  549. }
  550. }
  551. }
  552. /**
  553. * The "global" collection of methods.
  554. * Typical usage is:
  555. * <code>
  556. * $moderatorService = new Google_ModeratorService(...);
  557. * $global = $moderatorService->global;
  558. * </code>
  559. */
  560. class Google_ModeratorGlobalServiceResource extends Google_ServiceResource {
  561. }
  562. /**
  563. * The "series" collection of methods.
  564. * Typical usage is:
  565. * <code>
  566. * $moderatorService = new Google_ModeratorService(...);
  567. * $series = $moderatorService->series;
  568. * </code>
  569. */
  570. class Google_ModeratorGlobalSeriesServiceResource extends Google_ServiceResource {
  571. /**
  572. * Searches the public series and returns the search results. (series.list)
  573. *
  574. * @param array $optParams Optional parameters.
  575. *
  576. * @opt_param string max-results Maximum number of results to return.
  577. * @opt_param string q Search query.
  578. * @opt_param string start-index Index of the first result to be retrieved.
  579. * @return Google_SeriesList
  580. */
  581. public function listModeratorGlobalSeries($optParams = array()) {
  582. $params = array();
  583. $params = array_merge($params, $optParams);
  584. $data = $this->__call('list', array($params));
  585. if ($this->useObjects()) {
  586. return new Google_SeriesList($data);
  587. } else {
  588. return $data;
  589. }
  590. }
  591. }
  592. /**
  593. * The "profiles" collection of methods.
  594. * Typical usage is:
  595. * <code>
  596. * $moderatorService = new Google_ModeratorService(...);
  597. * $profiles = $moderatorService->profiles;
  598. * </code>
  599. */
  600. class Google_ProfilesServiceResource extends Google_ServiceResource {
  601. /**
  602. * Updates the profile information for the authenticated user. This method supports patch semantics.
  603. * (profiles.patch)
  604. *
  605. * @param Google_Profile $postBody
  606. * @param array $optParams Optional parameters.
  607. * @return Google_Profile
  608. */
  609. public function patch(Google_Profile $postBody, $optParams = array()) {
  610. $params = array('postBody' => $postBody);
  611. $params = array_merge($params, $optParams);
  612. $data = $this->__call('patch', array($params));
  613. if ($this->useObjects()) {
  614. return new Google_Profile($data);
  615. } else {
  616. return $data;
  617. }
  618. }
  619. /**
  620. * Updates the profile information for the authenticated user. (profiles.update)
  621. *
  622. * @param Google_Profile $postBody
  623. * @param array $optParams Optional parameters.
  624. * @return Google_Profile
  625. */
  626. public function update(Google_Profile $postBody, $optParams = array()) {
  627. $params = array('postBody' => $postBody);
  628. $params = array_merge($params, $optParams);
  629. $data = $this->__call('update', array($params));
  630. if ($this->useObjects()) {
  631. return new Google_Profile($data);
  632. } else {
  633. return $data;
  634. }
  635. }
  636. /**
  637. * Returns the profile information for the authenticated user. (profiles.get)
  638. *
  639. * @param array $optParams Optional parameters.
  640. * @return Google_Profile
  641. */
  642. public function get($optParams = array()) {
  643. $params = array();
  644. $params = array_merge($params, $optParams);
  645. $data = $this->__call('get', array($params));
  646. if ($this->useObjects()) {
  647. return new Google_Profile($data);
  648. } else {
  649. return $data;
  650. }
  651. }
  652. }
  653. /**
  654. * The "featured" collection of methods.
  655. * Typical usage is:
  656. * <code>
  657. * $moderatorService = new Google_ModeratorService(...);
  658. * $featured = $moderatorService->featured;
  659. * </code>
  660. */
  661. class Google_FeaturedServiceResource extends Google_ServiceResource {
  662. }
  663. /**
  664. * The "series" collection of methods.
  665. * Typical usage is:
  666. * <code>
  667. * $moderatorService = new Google_ModeratorService(...);
  668. * $series = $moderatorService->series;
  669. * </code>
  670. */
  671. class Google_FeaturedSeriesServiceResource extends Google_ServiceResource {
  672. /**
  673. * Lists the featured series. (series.list)
  674. *
  675. * @param array $optParams Optional parameters.
  676. * @return Google_SeriesList
  677. */
  678. public function listFeaturedSeries($optParams = array()) {
  679. $params = array();
  680. $params = array_merge($params, $optParams);
  681. $data = $this->__call('list', array($params));
  682. if ($this->useObjects()) {
  683. return new Google_SeriesList($data);
  684. } else {
  685. return $data;
  686. }
  687. }
  688. }
  689. /**
  690. * The "myrecent" collection of methods.
  691. * Typical usage is:
  692. * <code>
  693. * $moderatorService = new Google_ModeratorService(...);
  694. * $myrecent = $moderatorService->myrecent;
  695. * </code>
  696. */
  697. class Google_MyrecentServiceResource extends Google_ServiceResource {
  698. }
  699. /**
  700. * The "series" collection of methods.
  701. * Typical usage is:
  702. * <code>
  703. * $moderatorService = new Google_ModeratorService(...);
  704. * $series = $moderatorService->series;
  705. * </code>
  706. */
  707. class Google_MyrecentSeriesServiceResource extends Google_ServiceResource {
  708. /**
  709. * Lists the series the authenticated user has visited. (series.list)
  710. *
  711. * @param array $optParams Optional parameters.
  712. * @return Google_SeriesList
  713. */
  714. public function listMyrecentSeries($optParams = array()) {
  715. $params = array();
  716. $params = array_merge($params, $optParams);
  717. $data = $this->__call('list', array($params));
  718. if ($this->useObjects()) {
  719. return new Google_SeriesList($data);
  720. } else {
  721. return $data;
  722. }
  723. }
  724. }
  725. /**
  726. * The "my" collection of methods.
  727. * Typical usage is:
  728. * <code>
  729. * $moderatorService = new Google_ModeratorService(...);
  730. * $my = $moderatorService->my;
  731. * </code>
  732. */
  733. class Google_MyServiceResource extends Google_ServiceResource {
  734. }
  735. /**
  736. * The "series" collection of methods.
  737. * Typical usage is:
  738. * <code>
  739. * $moderatorService = new Google_ModeratorService(...);
  740. * $series = $moderatorService->series;
  741. * </code>
  742. */
  743. class Google_MySeriesServiceResource extends Google_ServiceResource {
  744. /**
  745. * Lists all series created by the authenticated user. (series.list)
  746. *
  747. * @param array $optParams Optional parameters.
  748. * @return Google_SeriesList
  749. */
  750. public function listMySeries($optParams = array()) {
  751. $params = array();
  752. $params = array_merge($params, $optParams);
  753. $data = $this->__call('list', array($params));
  754. if ($this->useObjects()) {
  755. return new Google_SeriesList($data);
  756. } else {
  757. return $data;
  758. }
  759. }
  760. }
  761. /**
  762. * The "submissions" collection of methods.
  763. * Typical usage is:
  764. * <code>
  765. * $moderatorService = new Google_ModeratorService(...);
  766. * $submissions = $moderatorService->submissions;
  767. * </code>
  768. */
  769. class Google_SubmissionsServiceResource extends Google_ServiceResource {
  770. /**
  771. * Inserts a new submission in the specified topic within the specified series. (submissions.insert)
  772. *
  773. * @param string $seriesId The decimal ID of the Series.
  774. * @param string $topicId The decimal ID of the Topic within the Series.
  775. * @param Google_Submission $postBody
  776. * @param array $optParams Optional parameters.
  777. *
  778. * @opt_param string unauthToken User identifier for unauthenticated usage mode
  779. * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
  780. * @return Google_Submission
  781. */
  782. public function insert($seriesId, $topicId, Google_Submission $postBody, $optParams = array()) {
  783. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
  784. $params = array_merge($params, $optParams);
  785. $data = $this->__call('insert', array($params));
  786. if ($this->useObjects()) {
  787. return new Google_Submission($data);
  788. } else {
  789. return $data;
  790. }
  791. }
  792. /**
  793. * Returns the specified submission within the specified series. (submissions.get)
  794. *
  795. * @param string $seriesId The decimal ID of the Series.
  796. * @param string $submissionId The decimal ID of the Submission within the Series.
  797. * @param array $optParams Optional parameters.
  798. *
  799. * @opt_param string lang The language code for the language the client prefers resuls in.
  800. * @opt_param bool includeVotes Specifies whether to include the current user's vote
  801. * @return Google_Submission
  802. */
  803. public function get($seriesId, $submissionId, $optParams = array()) {
  804. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
  805. $params = array_merge($params, $optParams);
  806. $data = $this->__call('get', array($params));
  807. if ($this->useObjects()) {
  808. return new Google_Submission($data);
  809. } else {
  810. return $data;
  811. }
  812. }
  813. }
  814. /**
  815. * Service definition for Google_Moderator (v1).
  816. *
  817. * <p>
  818. * Moderator API
  819. * </p>
  820. *
  821. * <p>
  822. * For more information about this service, see the
  823. * <a href="http://code.google.com/apis/moderator/v1/using_rest.html" target="_blank">API Documentation</a>
  824. * </p>
  825. *
  826. * @author Google, Inc.
  827. */
  828. class Google_ModeratorService extends Google_Service {
  829. public $votes;
  830. public $responses;
  831. public $tags;
  832. public $series;
  833. public $series_submissions;
  834. public $series_responses;
  835. public $topics;
  836. public $topics_submissions;
  837. public $global_series;
  838. public $profiles;
  839. public $featured_series;
  840. public $myrecent_series;
  841. public $my_series;
  842. public $submissions;
  843. /**
  844. * Constructs the internal representation of the Moderator service.
  845. *
  846. * @param Google_Client $client
  847. */
  848. public function __construct(Google_Client $client) {
  849. $this->servicePath = 'moderator/v1/';
  850. $this->version = 'v1';
  851. $this->serviceName = 'moderator';
  852. $client->addService($this->serviceName, $this->version);
  853. $this->votes = new Google_VotesServiceResource($this, $this->serviceName, 'votes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.insert"}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "PATCH", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.patch"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "moderator.votes.list", "httpMethod": "GET", "path": "series/{seriesId}/votes/@me", "response": {"$ref": "VoteList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "PUT", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.votes.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}}}', true));
  854. $this->responses = new Google_ResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "parentSubmissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Submission"}, "response": {"$ref": "Submission"}, "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions/{parentSubmissionId}/responses", "id": "moderator.responses.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/responses", "response": {"$ref": "SubmissionList"}}}}', true));
  855. $this->tags = new Google_TagsServiceResource($this, $this->serviceName, 'tags', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Tag"}, "response": {"$ref": "Tag"}, "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/tags", "id": "moderator.tags.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.tags.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/tags", "response": {"$ref": "TagList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/{seriesId}/submissions/{submissionId}/tags/{tagId}", "id": "moderator.tags.delete", "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "tagId": {"required": true, "type": "string", "location": "path"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "httpMethod": "DELETE"}}}', true));
  856. $this->series = new Google_SeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "POST", "path": "series", "id": "moderator.series.insert"}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "PATCH", "path": "series/{seriesId}", "id": "moderator.series.patch"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "series", "id": "moderator.series.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Series"}, "response": {"$ref": "Series"}, "httpMethod": "PUT", "path": "series/{seriesId}", "id": "moderator.series.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.series.get", "httpMethod": "GET", "path": "series/{seriesId}", "response": {"$ref": "Series"}}}}', true));
  857. $this->series_submissions = new Google_SeriesSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "max-results": {"type": "integer", "location": "query", "format": "uint32"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "includeVotes": {"type": "boolean", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
  858. $this->series_responses = new Google_SeriesResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.series.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/responses", "response": {"$ref": "SeriesList"}}}}', true));
  859. $this->topics = new Google_TopicsServiceResource($this, $this->serviceName, 'topics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Topic"}, "response": {"$ref": "Topic"}, "httpMethod": "POST", "path": "series/{seriesId}/topics", "id": "moderator.topics.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "mode": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.topics.list", "httpMethod": "GET", "path": "series/{seriesId}/topics", "response": {"$ref": "TopicList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Topic"}, "response": {"$ref": "Topic"}, "httpMethod": "PUT", "path": "series/{seriesId}/topics/{topicId}", "id": "moderator.topics.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.topics.get", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}", "response": {"$ref": "Topic"}}}}', true));
  860. $this->topics_submissions = new Google_TopicsSubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "includeVotes": {"type": "boolean", "location": "query"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.topics.submissions.list", "httpMethod": "GET", "path": "series/{seriesId}/topics/{topicId}/submissions", "response": {"$ref": "SubmissionList"}}}}', true));
  861. $this->global_series = new Google_ModeratorGlobalSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "SeriesList"}, "httpMethod": "GET", "path": "search", "id": "moderator.global.series.list"}}}', true));
  862. $this->profiles = new Google_ProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PATCH", "path": "profiles/@me", "id": "moderator.profiles.patch"}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "httpMethod": "PUT", "path": "profiles/@me", "id": "moderator.profiles.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "profiles/@me", "response": {"$ref": "Profile"}, "id": "moderator.profiles.get", "httpMethod": "GET"}}}', true));
  863. $this->featured_series = new Google_FeaturedSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/featured", "response": {"$ref": "SeriesList"}, "id": "moderator.featured.series.list", "httpMethod": "GET"}}}', true));
  864. $this->myrecent_series = new Google_MyrecentSeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/@me/recent", "response": {"$ref": "SeriesList"}, "id": "moderator.myrecent.series.list", "httpMethod": "GET"}}}', true));
  865. $this->my_series = new Google_MySeriesServiceResource($this, $this->serviceName, 'series', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/@me/mine", "response": {"$ref": "SeriesList"}, "id": "moderator.my.series.list", "httpMethod": "GET"}}}', true));
  866. $this->submissions = new Google_SubmissionsServiceResource($this, $this->serviceName, 'submissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Submission"}, "response": {"$ref": "Submission"}, "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions", "id": "moderator.submissions.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"lang": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "includeVotes": {"type": "boolean", "location": "query"}}, "id": "moderator.submissions.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}", "response": {"$ref": "Submission"}}}}', true));
  867. }
  868. }
  869. class Google_ModeratorTopicsResourcePartial extends Google_Model {
  870. protected $__idType = 'Google_ModeratorTopicsResourcePartialId';
  871. protected $__idDataType = '';
  872. public $id;
  873. public function setId(Google_ModeratorTopicsResourcePartialId $id) {
  874. $this->id = $id;
  875. }
  876. public function getId() {
  877. return $this->id;
  878. }
  879. }
  880. class Google_ModeratorTopicsResourcePartialId extends Google_Model {
  881. public $seriesId;
  882. public $topicId;
  883. public function setSeriesId($seriesId) {
  884. $this->seriesId = $seriesId;
  885. }
  886. public function getSeriesId() {
  887. return $this->seriesId;
  888. }
  889. public function setTopicId($topicId) {
  890. $this->topicId = $topicId;
  891. }
  892. public function getTopicId() {
  893. return $this->topicId;
  894. }
  895. }
  896. class Google_ModeratorVotesResourcePartial extends Google_Model {
  897. public $vote;
  898. public $flag;
  899. public function setVote($vote) {
  900. $this->vote = $vote;
  901. }
  902. public function getVote() {
  903. return $this->vote;
  904. }
  905. public function setFlag($flag) {
  906. $this->flag = $flag;
  907. }
  908. public function getFlag() {
  909. return $this->flag;
  910. }
  911. }
  912. class Google_Profile extends Google_Model {
  913. public $kind;
  914. protected $__attributionType = 'Google_ProfileAttribution';
  915. protected $__attributionDataType = '';
  916. public $attribution;
  917. protected $__idType = 'Google_ProfileId';
  918. protected $__idDataType = '';
  919. public $id;
  920. public function setKind($kind) {
  921. $this->kind = $kind;
  922. }
  923. public function getKind() {
  924. return $this->kind;
  925. }
  926. public function setAttribution(Google_ProfileAttribution $attribution) {
  927. $this->attribution = $attribution;
  928. }
  929. public function getAttribution() {
  930. return $this->attribution;
  931. }
  932. public function setId(Google_ProfileId $id) {
  933. $this->id = $id;
  934. }
  935. public function getId() {
  936. return $this->id;
  937. }
  938. }
  939. class Google_ProfileAttribution extends Google_Model {
  940. protected $__geoType = 'Google_ProfileAttributionGeo';
  941. protected $__geoDataType = '';
  942. public $geo;
  943. public $displayName;
  944. public $location;
  945. public $avatarUrl;
  946. public function setGeo(Google_ProfileAttributionGeo $geo) {
  947. $this->geo = $geo;
  948. }
  949. public function getGeo() {
  950. return $this->geo;
  951. }
  952. public function setDisplayName($displayName) {
  953. $this->displayName = $displayName;
  954. }
  955. public function getDisplayName() {
  956. return $this->displayName;
  957. }
  958. public function setLocation($location) {
  959. $this->location = $location;
  960. }
  961. public function getLocation() {
  962. return $this->location;
  963. }
  964. public function setAvatarUrl($avatarUrl) {
  965. $this->avatarUrl = $avatarUrl;
  966. }
  967. public function getAvatarUrl() {
  968. return $this->avatarUrl;
  969. }
  970. }
  971. class Google_ProfileAttributionGeo extends Google_Model {
  972. public $latitude;
  973. public $location;
  974. public $longitude;
  975. public function setLatitude($latitude) {
  976. $this->latitude = $lat