PageRenderTime 42ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/contrib/Google_OrkutService.php

https://bitbucket.org/synergylearning/campusconnect
PHP | 2554 lines | 1990 code | 90 blank | 474 comment | 56 complexity | d0cd466c78cd9c8dcd1e0cfef384696b MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0
  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "communityMembers" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $orkutService = new Google_OrkutService(...);
  20. * $communityMembers = $orkutService->communityMembers;
  21. * </code>
  22. */
  23. class Google_CommunityMembersServiceResource extends Google_ServiceResource {
  24. /**
  25. * Makes the user join a community. (communityMembers.insert)
  26. *
  27. * @param int $communityId ID of the community.
  28. * @param string $userId ID of the user.
  29. * @param array $optParams Optional parameters.
  30. * @return Google_CommunityMembers
  31. */
  32. public function insert($communityId, $userId, $optParams = array()) {
  33. $params = array('communityId' => $communityId, 'userId' => $userId);
  34. $params = array_merge($params, $optParams);
  35. $data = $this->__call('insert', array($params));
  36. if ($this->useObjects()) {
  37. return new Google_CommunityMembers($data);
  38. } else {
  39. return $data;
  40. }
  41. }
  42. /**
  43. * Retrieves the relationship between a user and a community. (communityMembers.get)
  44. *
  45. * @param int $communityId ID of the community.
  46. * @param string $userId ID of the user.
  47. * @param array $optParams Optional parameters.
  48. *
  49. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  50. * @return Google_CommunityMembers
  51. */
  52. public function get($communityId, $userId, $optParams = array()) {
  53. $params = array('communityId' => $communityId, 'userId' => $userId);
  54. $params = array_merge($params, $optParams);
  55. $data = $this->__call('get', array($params));
  56. if ($this->useObjects()) {
  57. return new Google_CommunityMembers($data);
  58. } else {
  59. return $data;
  60. }
  61. }
  62. /**
  63. * Lists members of a community. Use the pagination tokens to retrieve the full list; do not rely on
  64. * the member count available in the community profile information to know when to stop iterating,
  65. * as that count may be approximate. (communityMembers.list)
  66. *
  67. * @param int $communityId The ID of the community whose members will be listed.
  68. * @param array $optParams Optional parameters.
  69. *
  70. * @opt_param string pageToken A continuation token that allows pagination.
  71. * @opt_param bool friendsOnly Whether to list only community members who are friends of the user.
  72. * @opt_param string maxResults The maximum number of members to include in the response.
  73. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  74. * @return Google_CommunityMembersList
  75. */
  76. public function listCommunityMembers($communityId, $optParams = array()) {
  77. $params = array('communityId' => $communityId);
  78. $params = array_merge($params, $optParams);
  79. $data = $this->__call('list', array($params));
  80. if ($this->useObjects()) {
  81. return new Google_CommunityMembersList($data);
  82. } else {
  83. return $data;
  84. }
  85. }
  86. /**
  87. * Makes the user leave a community. (communityMembers.delete)
  88. *
  89. * @param int $communityId ID of the community.
  90. * @param string $userId ID of the user.
  91. * @param array $optParams Optional parameters.
  92. */
  93. public function delete($communityId, $userId, $optParams = array()) {
  94. $params = array('communityId' => $communityId, 'userId' => $userId);
  95. $params = array_merge($params, $optParams);
  96. $data = $this->__call('delete', array($params));
  97. return $data;
  98. }
  99. }
  100. /**
  101. * The "activities" collection of methods.
  102. * Typical usage is:
  103. * <code>
  104. * $orkutService = new Google_OrkutService(...);
  105. * $activities = $orkutService->activities;
  106. * </code>
  107. */
  108. class Google_ActivitiesServiceResource extends Google_ServiceResource {
  109. /**
  110. * Retrieves a list of activities. (activities.list)
  111. *
  112. * @param string $userId The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the authenticated user).
  113. * @param string $collection The collection of activities to list.
  114. * @param array $optParams Optional parameters.
  115. *
  116. * @opt_param string pageToken A continuation token that allows pagination.
  117. * @opt_param string maxResults The maximum number of activities to include in the response.
  118. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  119. * @return Google_ActivityList
  120. */
  121. public function listActivities($userId, $collection, $optParams = array()) {
  122. $params = array('userId' => $userId, 'collection' => $collection);
  123. $params = array_merge($params, $optParams);
  124. $data = $this->__call('list', array($params));
  125. if ($this->useObjects()) {
  126. return new Google_ActivityList($data);
  127. } else {
  128. return $data;
  129. }
  130. }
  131. /**
  132. * Deletes an existing activity, if the access controls allow it. (activities.delete)
  133. *
  134. * @param string $activityId ID of the activity to remove.
  135. * @param array $optParams Optional parameters.
  136. */
  137. public function delete($activityId, $optParams = array()) {
  138. $params = array('activityId' => $activityId);
  139. $params = array_merge($params, $optParams);
  140. $data = $this->__call('delete', array($params));
  141. return $data;
  142. }
  143. }
  144. /**
  145. * The "communityPollComments" collection of methods.
  146. * Typical usage is:
  147. * <code>
  148. * $orkutService = new Google_OrkutService(...);
  149. * $communityPollComments = $orkutService->communityPollComments;
  150. * </code>
  151. */
  152. class Google_CommunityPollCommentsServiceResource extends Google_ServiceResource {
  153. /**
  154. * Adds a comment on a community poll. (communityPollComments.insert)
  155. *
  156. * @param int $communityId The ID of the community whose poll is being commented.
  157. * @param string $pollId The ID of the poll being commented.
  158. * @param Google_CommunityPollComment $postBody
  159. * @param array $optParams Optional parameters.
  160. * @return Google_CommunityPollComment
  161. */
  162. public function insert($communityId, $pollId, Google_CommunityPollComment $postBody, $optParams = array()) {
  163. $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
  164. $params = array_merge($params, $optParams);
  165. $data = $this->__call('insert', array($params));
  166. if ($this->useObjects()) {
  167. return new Google_CommunityPollComment($data);
  168. } else {
  169. return $data;
  170. }
  171. }
  172. /**
  173. * Retrieves the comments of a community poll. (communityPollComments.list)
  174. *
  175. * @param int $communityId The ID of the community whose poll is having its comments listed.
  176. * @param string $pollId The ID of the community whose polls will be listed.
  177. * @param array $optParams Optional parameters.
  178. *
  179. * @opt_param string pageToken A continuation token that allows pagination.
  180. * @opt_param string maxResults The maximum number of comments to include in the response.
  181. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  182. * @return Google_CommunityPollCommentList
  183. */
  184. public function listCommunityPollComments($communityId, $pollId, $optParams = array()) {
  185. $params = array('communityId' => $communityId, 'pollId' => $pollId);
  186. $params = array_merge($params, $optParams);
  187. $data = $this->__call('list', array($params));
  188. if ($this->useObjects()) {
  189. return new Google_CommunityPollCommentList($data);
  190. } else {
  191. return $data;
  192. }
  193. }
  194. }
  195. /**
  196. * The "communityPolls" collection of methods.
  197. * Typical usage is:
  198. * <code>
  199. * $orkutService = new Google_OrkutService(...);
  200. * $communityPolls = $orkutService->communityPolls;
  201. * </code>
  202. */
  203. class Google_CommunityPollsServiceResource extends Google_ServiceResource {
  204. /**
  205. * Retrieves the polls of a community. (communityPolls.list)
  206. *
  207. * @param int $communityId The ID of the community which polls will be listed.
  208. * @param array $optParams Optional parameters.
  209. *
  210. * @opt_param string pageToken A continuation token that allows pagination.
  211. * @opt_param string maxResults The maximum number of polls to include in the response.
  212. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  213. * @return Google_CommunityPollList
  214. */
  215. public function listCommunityPolls($communityId, $optParams = array()) {
  216. $params = array('communityId' => $communityId);
  217. $params = array_merge($params, $optParams);
  218. $data = $this->__call('list', array($params));
  219. if ($this->useObjects()) {
  220. return new Google_CommunityPollList($data);
  221. } else {
  222. return $data;
  223. }
  224. }
  225. /**
  226. * Retrieves one specific poll of a community. (communityPolls.get)
  227. *
  228. * @param int $communityId The ID of the community for whose poll will be retrieved.
  229. * @param string $pollId The ID of the poll to get.
  230. * @param array $optParams Optional parameters.
  231. *
  232. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  233. * @return Google_CommunityPoll
  234. */
  235. public function get($communityId, $pollId, $optParams = array()) {
  236. $params = array('communityId' => $communityId, 'pollId' => $pollId);
  237. $params = array_merge($params, $optParams);
  238. $data = $this->__call('get', array($params));
  239. if ($this->useObjects()) {
  240. return new Google_CommunityPoll($data);
  241. } else {
  242. return $data;
  243. }
  244. }
  245. }
  246. /**
  247. * The "communityMessages" collection of methods.
  248. * Typical usage is:
  249. * <code>
  250. * $orkutService = new Google_OrkutService(...);
  251. * $communityMessages = $orkutService->communityMessages;
  252. * </code>
  253. */
  254. class Google_CommunityMessagesServiceResource extends Google_ServiceResource {
  255. /**
  256. * Adds a message to a given community topic. (communityMessages.insert)
  257. *
  258. * @param int $communityId The ID of the community the message should be added to.
  259. * @param string $topicId The ID of the topic the message should be added to.
  260. * @param Google_CommunityMessage $postBody
  261. * @param array $optParams Optional parameters.
  262. * @return Google_CommunityMessage
  263. */
  264. public function insert($communityId, $topicId, Google_CommunityMessage $postBody, $optParams = array()) {
  265. $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody);
  266. $params = array_merge($params, $optParams);
  267. $data = $this->__call('insert', array($params));
  268. if ($this->useObjects()) {
  269. return new Google_CommunityMessage($data);
  270. } else {
  271. return $data;
  272. }
  273. }
  274. /**
  275. * Retrieves the messages of a topic of a community. (communityMessages.list)
  276. *
  277. * @param int $communityId The ID of the community which messages will be listed.
  278. * @param string $topicId The ID of the topic which messages will be listed.
  279. * @param array $optParams Optional parameters.
  280. *
  281. * @opt_param string pageToken A continuation token that allows pagination.
  282. * @opt_param string maxResults The maximum number of messages to include in the response.
  283. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  284. * @return Google_CommunityMessageList
  285. */
  286. public function listCommunityMessages($communityId, $topicId, $optParams = array()) {
  287. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  288. $params = array_merge($params, $optParams);
  289. $data = $this->__call('list', array($params));
  290. if ($this->useObjects()) {
  291. return new Google_CommunityMessageList($data);
  292. } else {
  293. return $data;
  294. }
  295. }
  296. /**
  297. * Moves a message of the community to the trash folder. (communityMessages.delete)
  298. *
  299. * @param int $communityId The ID of the community whose message will be moved to the trash folder.
  300. * @param string $topicId The ID of the topic whose message will be moved to the trash folder.
  301. * @param string $messageId The ID of the message to be moved to the trash folder.
  302. * @param array $optParams Optional parameters.
  303. */
  304. public function delete($communityId, $topicId, $messageId, $optParams = array()) {
  305. $params = array('communityId' => $communityId, 'topicId' => $topicId, 'messageId' => $messageId);
  306. $params = array_merge($params, $optParams);
  307. $data = $this->__call('delete', array($params));
  308. return $data;
  309. }
  310. }
  311. /**
  312. * The "communityTopics" collection of methods.
  313. * Typical usage is:
  314. * <code>
  315. * $orkutService = new Google_OrkutService(...);
  316. * $communityTopics = $orkutService->communityTopics;
  317. * </code>
  318. */
  319. class Google_CommunityTopicsServiceResource extends Google_ServiceResource {
  320. /**
  321. * Adds a topic to a given community. (communityTopics.insert)
  322. *
  323. * @param int $communityId The ID of the community the topic should be added to.
  324. * @param Google_CommunityTopic $postBody
  325. * @param array $optParams Optional parameters.
  326. *
  327. * @opt_param bool isShout Whether this topic is a shout.
  328. * @return Google_CommunityTopic
  329. */
  330. public function insert($communityId, Google_CommunityTopic $postBody, $optParams = array()) {
  331. $params = array('communityId' => $communityId, 'postBody' => $postBody);
  332. $params = array_merge($params, $optParams);
  333. $data = $this->__call('insert', array($params));
  334. if ($this->useObjects()) {
  335. return new Google_CommunityTopic($data);
  336. } else {
  337. return $data;
  338. }
  339. }
  340. /**
  341. * Retrieves a topic of a community. (communityTopics.get)
  342. *
  343. * @param int $communityId The ID of the community whose topic will be retrieved.
  344. * @param string $topicId The ID of the topic to get.
  345. * @param array $optParams Optional parameters.
  346. *
  347. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  348. * @return Google_CommunityTopic
  349. */
  350. public function get($communityId, $topicId, $optParams = array()) {
  351. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  352. $params = array_merge($params, $optParams);
  353. $data = $this->__call('get', array($params));
  354. if ($this->useObjects()) {
  355. return new Google_CommunityTopic($data);
  356. } else {
  357. return $data;
  358. }
  359. }
  360. /**
  361. * Retrieves the topics of a community. (communityTopics.list)
  362. *
  363. * @param int $communityId The ID of the community which topics will be listed.
  364. * @param array $optParams Optional parameters.
  365. *
  366. * @opt_param string pageToken A continuation token that allows pagination.
  367. * @opt_param string maxResults The maximum number of topics to include in the response.
  368. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  369. * @return Google_CommunityTopicList
  370. */
  371. public function listCommunityTopics($communityId, $optParams = array()) {
  372. $params = array('communityId' => $communityId);
  373. $params = array_merge($params, $optParams);
  374. $data = $this->__call('list', array($params));
  375. if ($this->useObjects()) {
  376. return new Google_CommunityTopicList($data);
  377. } else {
  378. return $data;
  379. }
  380. }
  381. /**
  382. * Moves a topic of the community to the trash folder. (communityTopics.delete)
  383. *
  384. * @param int $communityId The ID of the community whose topic will be moved to the trash folder.
  385. * @param string $topicId The ID of the topic to be moved to the trash folder.
  386. * @param array $optParams Optional parameters.
  387. */
  388. public function delete($communityId, $topicId, $optParams = array()) {
  389. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  390. $params = array_merge($params, $optParams);
  391. $data = $this->__call('delete', array($params));
  392. return $data;
  393. }
  394. }
  395. /**
  396. * The "comments" collection of methods.
  397. * Typical usage is:
  398. * <code>
  399. * $orkutService = new Google_OrkutService(...);
  400. * $comments = $orkutService->comments;
  401. * </code>
  402. */
  403. class Google_CommentsServiceResource extends Google_ServiceResource {
  404. /**
  405. * Inserts a new comment to an activity. (comments.insert)
  406. *
  407. * @param string $activityId The ID of the activity to contain the new comment.
  408. * @param Google_Comment $postBody
  409. * @param array $optParams Optional parameters.
  410. * @return Google_Comment
  411. */
  412. public function insert($activityId, Google_Comment $postBody, $optParams = array()) {
  413. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  414. $params = array_merge($params, $optParams);
  415. $data = $this->__call('insert', array($params));
  416. if ($this->useObjects()) {
  417. return new Google_Comment($data);
  418. } else {
  419. return $data;
  420. }
  421. }
  422. /**
  423. * Retrieves an existing comment. (comments.get)
  424. *
  425. * @param string $commentId ID of the comment to get.
  426. * @param array $optParams Optional parameters.
  427. *
  428. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  429. * @return Google_Comment
  430. */
  431. public function get($commentId, $optParams = array()) {
  432. $params = array('commentId' => $commentId);
  433. $params = array_merge($params, $optParams);
  434. $data = $this->__call('get', array($params));
  435. if ($this->useObjects()) {
  436. return new Google_Comment($data);
  437. } else {
  438. return $data;
  439. }
  440. }
  441. /**
  442. * Retrieves a list of comments, possibly filtered. (comments.list)
  443. *
  444. * @param string $activityId The ID of the activity containing the comments.
  445. * @param array $optParams Optional parameters.
  446. *
  447. * @opt_param string orderBy Sort search results.
  448. * @opt_param string pageToken A continuation token that allows pagination.
  449. * @opt_param string maxResults The maximum number of activities to include in the response.
  450. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  451. * @return Google_CommentList
  452. */
  453. public function listComments($activityId, $optParams = array()) {
  454. $params = array('activityId' => $activityId);
  455. $params = array_merge($params, $optParams);
  456. $data = $this->__call('list', array($params));
  457. if ($this->useObjects()) {
  458. return new Google_CommentList($data);
  459. } else {
  460. return $data;
  461. }
  462. }
  463. /**
  464. * Deletes an existing comment. (comments.delete)
  465. *
  466. * @param string $commentId ID of the comment to remove.
  467. * @param array $optParams Optional parameters.
  468. */
  469. public function delete($commentId, $optParams = array()) {
  470. $params = array('commentId' => $commentId);
  471. $params = array_merge($params, $optParams);
  472. $data = $this->__call('delete', array($params));
  473. return $data;
  474. }
  475. }
  476. /**
  477. * The "acl" collection of methods.
  478. * Typical usage is:
  479. * <code>
  480. * $orkutService = new Google_OrkutService(...);
  481. * $acl = $orkutService->acl;
  482. * </code>
  483. */
  484. class Google_AclServiceResource extends Google_ServiceResource {
  485. /**
  486. * Excludes an element from the ACL of the activity. (acl.delete)
  487. *
  488. * @param string $activityId ID of the activity.
  489. * @param string $userId ID of the user to be removed from the activity.
  490. * @param array $optParams Optional parameters.
  491. */
  492. public function delete($activityId, $userId, $optParams = array()) {
  493. $params = array('activityId' => $activityId, 'userId' => $userId);
  494. $params = array_merge($params, $optParams);
  495. $data = $this->__call('delete', array($params));
  496. return $data;
  497. }
  498. }
  499. /**
  500. * The "communityRelated" collection of methods.
  501. * Typical usage is:
  502. * <code>
  503. * $orkutService = new Google_OrkutService(...);
  504. * $communityRelated = $orkutService->communityRelated;
  505. * </code>
  506. */
  507. class Google_CommunityRelatedServiceResource extends Google_ServiceResource {
  508. /**
  509. * Retrieves the communities related to another one. (communityRelated.list)
  510. *
  511. * @param int $communityId The ID of the community whose related communities will be listed.
  512. * @param array $optParams Optional parameters.
  513. *
  514. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  515. * @return Google_CommunityList
  516. */
  517. public function listCommunityRelated($communityId, $optParams = array()) {
  518. $params = array('communityId' => $communityId);
  519. $params = array_merge($params, $optParams);
  520. $data = $this->__call('list', array($params));
  521. if ($this->useObjects()) {
  522. return new Google_CommunityList($data);
  523. } else {
  524. return $data;
  525. }
  526. }
  527. }
  528. /**
  529. * The "scraps" collection of methods.
  530. * Typical usage is:
  531. * <code>
  532. * $orkutService = new Google_OrkutService(...);
  533. * $scraps = $orkutService->scraps;
  534. * </code>
  535. */
  536. class Google_ScrapsServiceResource extends Google_ServiceResource {
  537. /**
  538. * Creates a new scrap. (scraps.insert)
  539. *
  540. * @param Google_Activity $postBody
  541. * @param array $optParams Optional parameters.
  542. * @return Google_Activity
  543. */
  544. public function insert(Google_Activity $postBody, $optParams = array()) {
  545. $params = array('postBody' => $postBody);
  546. $params = array_merge($params, $optParams);
  547. $data = $this->__call('insert', array($params));
  548. if ($this->useObjects()) {
  549. return new Google_Activity($data);
  550. } else {
  551. return $data;
  552. }
  553. }
  554. }
  555. /**
  556. * The "communityPollVotes" collection of methods.
  557. * Typical usage is:
  558. * <code>
  559. * $orkutService = new Google_OrkutService(...);
  560. * $communityPollVotes = $orkutService->communityPollVotes;
  561. * </code>
  562. */
  563. class Google_CommunityPollVotesServiceResource extends Google_ServiceResource {
  564. /**
  565. * Votes on a community poll. (communityPollVotes.insert)
  566. *
  567. * @param int $communityId The ID of the community whose poll is being voted.
  568. * @param string $pollId The ID of the poll being voted.
  569. * @param Google_CommunityPollVote $postBody
  570. * @param array $optParams Optional parameters.
  571. * @return Google_CommunityPollVote
  572. */
  573. public function insert($communityId, $pollId, Google_CommunityPollVote $postBody, $optParams = array()) {
  574. $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
  575. $params = array_merge($params, $optParams);
  576. $data = $this->__call('insert', array($params));
  577. if ($this->useObjects()) {
  578. return new Google_CommunityPollVote($data);
  579. } else {
  580. return $data;
  581. }
  582. }
  583. }
  584. /**
  585. * The "communities" collection of methods.
  586. * Typical usage is:
  587. * <code>
  588. * $orkutService = new Google_OrkutService(...);
  589. * $communities = $orkutService->communities;
  590. * </code>
  591. */
  592. class Google_CommunitiesServiceResource extends Google_ServiceResource {
  593. /**
  594. * Retrieves the list of communities the current user is a member of. (communities.list)
  595. *
  596. * @param string $userId The ID of the user whose communities will be listed. Can be me to refer to caller.
  597. * @param array $optParams Optional parameters.
  598. *
  599. * @opt_param string orderBy How to order the communities by.
  600. * @opt_param string maxResults The maximum number of communities to include in the response.
  601. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  602. * @return Google_CommunityList
  603. */
  604. public function listCommunities($userId, $optParams = array()) {
  605. $params = array('userId' => $userId);
  606. $params = array_merge($params, $optParams);
  607. $data = $this->__call('list', array($params));
  608. if ($this->useObjects()) {
  609. return new Google_CommunityList($data);
  610. } else {
  611. return $data;
  612. }
  613. }
  614. /**
  615. * Retrieves the basic information (aka. profile) of a community. (communities.get)
  616. *
  617. * @param int $communityId The ID of the community to get.
  618. * @param array $optParams Optional parameters.
  619. *
  620. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  621. * @return Google_Community
  622. */
  623. public function get($communityId, $optParams = array()) {
  624. $params = array('communityId' => $communityId);
  625. $params = array_merge($params, $optParams);
  626. $data = $this->__call('get', array($params));
  627. if ($this->useObjects()) {
  628. return new Google_Community($data);
  629. } else {
  630. return $data;
  631. }
  632. }
  633. }
  634. /**
  635. * The "communityFollow" collection of methods.
  636. * Typical usage is:
  637. * <code>
  638. * $orkutService = new Google_OrkutService(...);
  639. * $communityFollow = $orkutService->communityFollow;
  640. * </code>
  641. */
  642. class Google_CommunityFollowServiceResource extends Google_ServiceResource {
  643. /**
  644. * Adds a user as a follower of a community. (communityFollow.insert)
  645. *
  646. * @param int $communityId ID of the community.
  647. * @param string $userId ID of the user.
  648. * @param array $optParams Optional parameters.
  649. * @return Google_CommunityMembers
  650. */
  651. public function insert($communityId, $userId, $optParams = array()) {
  652. $params = array('communityId' => $communityId, 'userId' => $userId);
  653. $params = array_merge($params, $optParams);
  654. $data = $this->__call('insert', array($params));
  655. if ($this->useObjects()) {
  656. return new Google_CommunityMembers($data);
  657. } else {
  658. return $data;
  659. }
  660. }
  661. /**
  662. * Removes a user from the followers of a community. (communityFollow.delete)
  663. *
  664. * @param int $communityId ID of the community.
  665. * @param string $userId ID of the user.
  666. * @param array $optParams Optional parameters.
  667. */
  668. public function delete($communityId, $userId, $optParams = array()) {
  669. $params = array('communityId' => $communityId, 'userId' => $userId);
  670. $params = array_merge($params, $optParams);
  671. $data = $this->__call('delete', array($params));
  672. return $data;
  673. }
  674. }
  675. /**
  676. * The "activityVisibility" collection of methods.
  677. * Typical usage is:
  678. * <code>
  679. * $orkutService = new Google_OrkutService(...);
  680. * $activityVisibility = $orkutService->activityVisibility;
  681. * </code>
  682. */
  683. class Google_ActivityVisibilityServiceResource extends Google_ServiceResource {
  684. /**
  685. * Updates the visibility of an existing activity. This method supports patch semantics.
  686. * (activityVisibility.patch)
  687. *
  688. * @param string $activityId ID of the activity.
  689. * @param Google_Visibility $postBody
  690. * @param array $optParams Optional parameters.
  691. * @return Google_Visibility
  692. */
  693. public function patch($activityId, Google_Visibility $postBody, $optParams = array()) {
  694. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  695. $params = array_merge($params, $optParams);
  696. $data = $this->__call('patch', array($params));
  697. if ($this->useObjects()) {
  698. return new Google_Visibility($data);
  699. } else {
  700. return $data;
  701. }
  702. }
  703. /**
  704. * Updates the visibility of an existing activity. (activityVisibility.update)
  705. *
  706. * @param string $activityId ID of the activity.
  707. * @param Google_Visibility $postBody
  708. * @param array $optParams Optional parameters.
  709. * @return Google_Visibility
  710. */
  711. public function update($activityId, Google_Visibility $postBody, $optParams = array()) {
  712. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  713. $params = array_merge($params, $optParams);
  714. $data = $this->__call('update', array($params));
  715. if ($this->useObjects()) {
  716. return new Google_Visibility($data);
  717. } else {
  718. return $data;
  719. }
  720. }
  721. /**
  722. * Gets the visibility of an existing activity. (activityVisibility.get)
  723. *
  724. * @param string $activityId ID of the activity to get the visibility.
  725. * @param array $optParams Optional parameters.
  726. * @return Google_Visibility
  727. */
  728. public function get($activityId, $optParams = array()) {
  729. $params = array('activityId' => $activityId);
  730. $params = array_merge($params, $optParams);
  731. $data = $this->__call('get', array($params));
  732. if ($this->useObjects()) {
  733. return new Google_Visibility($data);
  734. } else {
  735. return $data;
  736. }
  737. }
  738. }
  739. /**
  740. * The "badges" collection of methods.
  741. * Typical usage is:
  742. * <code>
  743. * $orkutService = new Google_OrkutService(...);
  744. * $badges = $orkutService->badges;
  745. * </code>
  746. */
  747. class Google_BadgesServiceResource extends Google_ServiceResource {
  748. /**
  749. * Retrieves the list of visible badges of a user. (badges.list)
  750. *
  751. * @param string $userId The id of the user whose badges will be listed. Can be me to refer to caller.
  752. * @param array $optParams Optional parameters.
  753. * @return Google_BadgeList
  754. */
  755. public function listBadges($userId, $optParams = array()) {
  756. $params = array('userId' => $userId);
  757. $params = array_merge($params, $optParams);
  758. $data = $this->__call('list', array($params));
  759. if ($this->useObjects()) {
  760. return new Google_BadgeList($data);
  761. } else {
  762. return $data;
  763. }
  764. }
  765. /**
  766. * Retrieves a badge from a user. (badges.get)
  767. *
  768. * @param string $userId The ID of the user whose badges will be listed. Can be me to refer to caller.
  769. * @param string $badgeId The ID of the badge that will be retrieved.
  770. * @param array $optParams Optional parameters.
  771. * @return Google_Badge
  772. */
  773. public function get($userId, $badgeId, $optParams = array()) {
  774. $params = array('userId' => $userId, 'badgeId' => $badgeId);
  775. $params = array_merge($params, $optParams);
  776. $data = $this->__call('get', array($params));
  777. if ($this->useObjects()) {
  778. return new Google_Badge($data);
  779. } else {
  780. return $data;
  781. }
  782. }
  783. }
  784. /**
  785. * The "counters" collection of methods.
  786. * Typical usage is:
  787. * <code>
  788. * $orkutService = new Google_OrkutService(...);
  789. * $counters = $orkutService->counters;
  790. * </code>
  791. */
  792. class Google_CountersServiceResource extends Google_ServiceResource {
  793. /**
  794. * Retrieves the counters of a user. (counters.list)
  795. *
  796. * @param string $userId The ID of the user whose counters will be listed. Can be me to refer to caller.
  797. * @param array $optParams Optional parameters.
  798. * @return Google_Counters
  799. */
  800. public function listCounters($userId, $optParams = array()) {
  801. $params = array('userId' => $userId);
  802. $params = array_merge($params, $optParams);
  803. $data = $this->__call('list', array($params));
  804. if ($this->useObjects()) {
  805. return new Google_Counters($data);
  806. } else {
  807. return $data;
  808. }
  809. }
  810. }
  811. /**
  812. * Service definition for Google_Orkut (v2).
  813. *
  814. * <p>
  815. * Lets you manage activities, comments and badges in Orkut. More stuff coming in time.
  816. * </p>
  817. *
  818. * <p>
  819. * For more information about this service, see the
  820. * <a href="http://code.google.com/apis/orkut/v2/reference.html" target="_blank">API Documentation</a>
  821. * </p>
  822. *
  823. * @author Google, Inc.
  824. */
  825. class Google_OrkutService extends Google_Service {
  826. public $communityMembers;
  827. public $activities;
  828. public $communityPollComments;
  829. public $communityPolls;
  830. public $communityMessages;
  831. public $communityTopics;
  832. public $comments;
  833. public $acl;
  834. public $communityRelated;
  835. public $scraps;
  836. public $communityPollVotes;
  837. public $communities;
  838. public $communityFollow;
  839. public $activityVisibility;
  840. public $badges;
  841. public $counters;
  842. /**
  843. * Constructs the internal representation of the Orkut service.
  844. *
  845. * @param Google_Client $client
  846. */
  847. public function __construct(Google_Client $client) {
  848. $this->servicePath = 'orkut/v2/';
  849. $this->version = 'v2';
  850. $this->serviceName = 'orkut';
  851. $client->addService($this->serviceName, $this->version);
  852. $this->communityMembers = new Google_CommunityMembersServiceResource($this, $this->serviceName, 'communityMembers', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMembers.insert", "httpMethod": "POST", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.get", "httpMethod": "GET", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "friendsOnly": {"type": "boolean", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.list", "httpMethod": "GET", "path": "communities/{communityId}/members", "response": {"$ref": "CommunityMembersList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/members/{userId}", "id": "orkut.communityMembers.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  853. $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["all", "scraps", "stream"]}}, "id": "orkut.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}", "id": "orkut.activities.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  854. $this->communityPollComments = new Google_CommunityPollCommentsServiceResource($this, $this->serviceName, 'communityPollComments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollComment"}, "response": {"$ref": "CommunityPollComment"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/comments", "id": "orkut.communityPollComments.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pollId": {"required": true, "type": "string", "location": "path"}, "pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPollComments.list", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollCommentList"}}}}', true));
  855. $this->communityPolls = new Google_CommunityPollsServiceResource($this, $this->serviceName, 'communityPolls', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPolls.list", "httpMethod": "GET", "path": "communities/{communityId}/polls", "response": {"$ref": "CommunityPollList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPolls.get", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}", "response": {"$ref": "CommunityPoll"}}}}', true));
  856. $this->communityMessages = new Google_CommunityMessagesServiceResource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityMessage"}, "response": {"$ref": "CommunityMessage"}, "httpMethod": "POST", "path": "communities/{communityId}/topics/{topicId}/messages", "id": "orkut.communityMessages.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}, "topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "orkut.communityMessages.list", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "id": "orkut.communityMessages.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "messageId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "httpMethod": "DELETE"}}}', true));
  857. $this->communityTopics = new Google_CommunityTopicsServiceResource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"isShout": {"type": "boolean", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityTopic"}, "response": {"$ref": "CommunityTopic"}, "httpMethod": "POST", "path": "communities/{communityId}/topics", "id": "orkut.communityTopics.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.get", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}", "response": {"$ref": "CommunityTopic"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.list", "httpMethod": "GET", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopicList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}", "id": "orkut.communityTopics.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
  858. $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "httpMethod": "POST", "path": "activities/{activityId}/comments", "id": "orkut.comments.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"default": "DESCENDING_SORT", "enum": ["ascending", "descending"], "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "comments/{commentId}", "id": "orkut.comments.delete", "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  859. $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}/acl/{userId}", "id": "orkut.acl.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  860. $this->communityRelated = new Google_CommunityRelatedServiceResource($this, $this->serviceName, 'communityRelated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityRelated.list", "httpMethod": "GET", "path": "communities/{communityId}/related", "response": {"$ref": "CommunityList"}}}}', true));
  861. $this->scraps = new Google_ScrapsServiceResource($this, $this->serviceName, 'scraps', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "httpMethod": "POST", "path": "activities/scraps", "id": "orkut.scraps.insert"}}}', true));
  862. $this->communityPollVotes = new Google_CommunityPollVotesServiceResource($this, $this->serviceName, 'communityPollVotes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollVote"}, "response": {"$ref": "CommunityPollVote"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/votes", "id": "orkut.communityPollVotes.insert"}}}', true));
  863. $this->communities = new Google_CommunitiesServiceResource($this, $this->serviceName, 'communities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"enum": ["id", "ranked"], "type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.list", "httpMethod": "GET", "path": "people/{userId}/communities", "response": {"$ref": "CommunityList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.get", "httpMethod": "GET", "path": "communities/{communityId}", "response": {"$ref": "Community"}}}}', true));
  864. $this->communityFollow = new Google_CommunityFollowServiceResource($this, $this->serviceName, 'communityFollow', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityFollow.insert", "httpMethod": "POST", "path": "communities/{communityId}/followers/{userId}", "response": {"$ref": "CommunityMembers"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/followers/{userId}", "id": "orkut.communityFollow.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  865. $this->activityVisibility = new Google_ActivityVisibilityServiceResource($this, $this->serviceName, 'activityVisibility', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "httpMethod": "PATCH", "path": "activities/{activityId}/visibility", "id": "orkut.activityVisibility.patch"}, "update": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "httpMethod": "PUT", "path": "activities/{activityId}/visibility", "id": "orkut.activityVisibility.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.activityVisibility.get", "httpMethod": "GET", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}}}', true));
  866. $this->badges = new Google_BadgesServiceResource($this, $this->serviceName, 'badges', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.badges.list", "httpMethod": "GET", "path": "people/{userId}/badges", "response": {"$ref": "BadgeList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "badgeId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "orkut.badges.get", "httpMethod": "GET", "path": "people/{userId}/badges/{badgeId}", "response": {"$ref": "Badge"}}}}', true));
  867. $this->counters = new Google_CountersServiceResource($this, $this->serviceName, 'counters', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.counters.list", "httpMethod": "GET", "path": "people/{userId}/counters", "response": {"$ref": "Counters"}}}}', true));
  868. }
  869. }
  870. class Google_Acl extends Google_Model {
  871. protected $__itemsType = 'Google_AclItems';
  872. protected $__itemsDataType = 'array';
  873. public $items;
  874. public $kind;
  875. public $description;
  876. public $totalParticipants;
  877. public function setItems(/* array(Google_AclItems) */ $items) {
  878. $this->assertIsArray($items, 'Google_AclItems', __METHOD__);
  879. $this->items = $items;
  880. }
  881. public function getItems() {
  882. return $this->items;
  883. }
  884. public function setKind($kind) {
  885. $this->kind = $kind;
  886. }
  887. public function getKind() {
  888. return $this->kind;
  889. }
  890. public function setDescription($description) {
  891. $this->description = $description;
  892. }
  893. public function getDescription() {
  894. return $this->description;
  895. }
  896. public function setTotalParticipants($totalParticipants) {
  897. $this->totalParticipants = $totalParticipants;
  898. }
  899. public function getTotalParticipants() {
  900. return $this->totalParticipants;
  901. }
  902. }
  903. class Google_AclItems extends Google_Model {
  904. public $type;
  905. public $id;
  906. public function setType($type) {
  907. $this->type = $type;
  908. }
  909. public function getType() {
  910. return $this->type;
  911. }
  912. public function setId($id) {
  913. $this->id = $id;
  914. }
  915. public function getId() {
  916. return $this->id;
  917. }
  918. }
  919. class Google_Activity extends Google_Model {
  920. public $kind;
  921. protected $__linksType = 'Google_OrkutLinkResource';
  922. protected $__linksDataType = 'array';
  923. public $links;
  924. public $title;
  925. protected $__objectType = 'Google_ActivityObject';
  926. protected $__objectDataType = '';
  927. public $object;
  928. public $updated;
  929. protected $__actorType = 'Google_OrkutAuthorResource';
  930. protected $__actorDataType = '';
  931. public $actor;
  932. protected $__accessType = 'Google_Acl';
  933. protected $__accessDataType = '';
  934. public $access;
  935. public $verb;
  936. public $published;
  937. public $id;
  938. public function setKind($kind) {
  939. $this->kind = $kind;
  940. }
  941. public function getKind() {
  942. return $this->kind;
  943. }
  944. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  945. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  946. $this->links = $links;
  947. }
  948. public function getLinks() {
  949. return $this->links;
  950. }
  951. public function setTitle($title) {
  952. $this->title = $title;
  953. }
  954. public function getTitle() {
  955. return $this->title;
  956. }
  957. public function setObject(Google_ActivityObject $object) {
  958. $this->object = $object;
  959. }
  960. public function getObject() {
  961. return $this->object;
  962. }
  963. public function setUpdated($updated) {
  964. $this->updated = $updated;
  965. }
  966. public function getUpdated() {
  967. return $this->updated;
  968. }
  969. public function setActor(Google_OrkutAuthorResource $actor) {
  970. $this->actor = $actor;
  971. }
  972. public function getActor() {
  973. return $this->actor;
  974. }
  975. public function setAccess(Google_Acl $access) {
  976. $this->access = $access;
  977. }
  978. public function getAccess() {
  979. return $this->access;
  980. }
  981. public function setVerb($verb) {
  982. $this->verb = $verb;
  983. }
  984. public function getVerb() {
  985. return $this->verb;
  986. }
  987. public function setPublished($published) {
  988. $this->published = $published;
  989. }
  990. public function getPublished() {
  991. return $this->published;
  992. }
  993. public function setId($id) {
  994. $this->id = $id;
  995. }
  996. public function getId() {
  997. return $this->id;
  998. }
  999. }
  1000. class Google_ActivityList extends Google_Model {
  1001. public $nextPageToken;
  1002. protected $__itemsType = 'Google_Activity';
  1003. protected $__itemsDataType = 'array';
  1004. public $items;
  1005. public $kind;
  1006. public function setNextPageToken($nextPageToken) {
  1007. $this->nextPageToken = $nextPageToken;
  1008. }
  1009. public function getNextPageToken() {
  1010. return $this->nextPageToken;
  1011. }
  1012. public function setItems(/* array(Google_Activity) */ $items) {
  1013. $this->assertIsArray($items, 'Google_Activity', __METHOD__);
  1014. $this->items = $items;
  1015. }
  1016. public function getItems() {
  1017. return $this->items;
  1018. }
  1019. public function setKind($kind) {
  1020. $this->kind = $kind;
  1021. }
  1022. public function getKind() {
  1023. return $this->kind;
  1024. }
  1025. }
  1026. class Google_ActivityObject extends Google_Model {
  1027. public $content;
  1028. protected $__itemsType = 'Google_OrkutActivityobjectsResource';
  1029. protected $__itemsDataType = 'array';
  1030. public $items;
  1031. protected $__repliesType = 'Google_ActivityObjectReplies';
  1032. protected $__repliesDataType = '';
  1033. public $replies;
  1034. public $objectType;
  1035. public function setContent($content) {
  1036. $this->content = $content;
  1037. }
  1038. public function getContent() {
  1039. return $this->content;
  1040. }
  1041. public function setItems(/* array(Google_OrkutActivityobjectsResource) */ $items) {
  1042. $this->assertIsArray($items, 'Google_OrkutActivityobjectsResource', __METHOD__);
  1043. $this->items = $items;
  1044. }
  1045. public function getItems() {
  1046. return $this->items;
  1047. }
  1048. public function setReplies(Google_ActivityObjectReplies $replies) {
  1049. $this->replies = $replies;
  1050. }
  1051. public function getReplies() {
  1052. return $this->replies;
  1053. }
  1054. public function setObjectType($objectType) {
  1055. $this->objectType = $objectType;
  1056. }
  1057. public function getObjectType() {
  1058. return $this->objectType;
  1059. }
  1060. }
  1061. class Google_ActivityObjectReplies extends Google_Model {
  1062. public $totalItems;
  1063. protected $__itemsType = 'Google_Comment';
  1064. protected $__itemsDataType = 'array';
  1065. public $items;
  1066. public $url;
  1067. public function setTotalItems($totalItems) {
  1068. $this->totalItems = $totalItems;
  1069. }
  1070. public function getTotalItems() {
  1071. return $this->totalItems;
  1072. }
  1073. public function setItems(/* array(Google_Comment) */ $items) {
  1074. $this->assertIsArray($items, 'Google_Comment', __METHOD__);
  1075. $this->items = $items;
  1076. }
  1077. public function getItems() {
  1078. return $this->items;
  1079. }
  1080. public function setUrl($url) {
  1081. $this->url = $url;
  1082. }
  1083. public function getUrl() {
  1084. return $this->url;
  1085. }
  1086. }
  1087. class Google_Badge extends Google_Model {
  1088. public $badgeSmallLogo;
  1089. public $kind;
  1090. public $description;
  1091. public $sponsorLogo;
  1092. public $sponsorName;
  1093. public $badgeLargeLogo;
  1094. public $caption;
  1095. public $sponsorUrl;
  1096. public $id;
  1097. public function setBadgeSmallLogo($badgeSmallLogo) {
  1098. $this->badgeSmallLogo = $badgeSmallLogo;
  1099. }
  1100. public function getBadgeSmallLogo() {
  1101. return $this->badgeSmallLogo;
  1102. }
  1103. public function setKind($kind) {
  1104. $this->kind = $kind;
  1105. }
  1106. public function getKind() {
  1107. return $this->kind;
  1108. }
  1109. public function setDescription($description) {
  1110. $this->description = $description;
  1111. }
  1112. public function getDescription() {
  1113. return $this->description;
  1114. }
  1115. public function setSponsorLogo($sponsorLogo) {
  1116. $this->sponsorLogo = $sponsorLogo;
  1117. }
  1118. public function getSponsorLogo() {
  1119. return $this->sponsorLogo;
  1120. }
  1121. public function setSponsorName($sponsorName) {
  1122. $this->sponsorName = $sponsorName;
  1123. }
  1124. public function getSponsorName() {
  1125. return $this->sponsorName;
  1126. }
  1127. public function setBadgeLargeLogo($badgeLargeLogo) {
  1128. $this->badgeLargeLogo = $badgeLargeLogo;
  1129. }
  1130. public function getBadgeLargeLogo() {
  1131. return $this->badgeLargeLogo;
  1132. }
  1133. public function setCaption($caption) {
  1134. $this->caption = $caption;
  1135. }
  1136. public function getCaption() {
  1137. return $this->caption;
  1138. }
  1139. public function setSponsorUrl($sponsorUrl) {
  1140. $this->sponsorUrl = $sponsorUrl;
  1141. }
  1142. public function getSponsorUrl() {
  1143. return $this->sponsorUrl;
  1144. }
  1145. public function setId($id) {
  1146. $this->id = $id;
  1147. }
  1148. public function getId() {
  1149. return $this->id;
  1150. }
  1151. }
  1152. class Google_BadgeList extends Google_Model {
  1153. protected $__itemsType = 'Google_Badge';
  1154. protected $__itemsDataType = 'array';
  1155. public $items;
  1156. public $kind;
  1157. public function setItems(/* array(Google_Badge) */ $items) {
  1158. $this->assertIsArray($items, 'Google_Badge', __METHOD__);
  1159. $this->items = $items;
  1160. }
  1161. public function getItems() {
  1162. return $this->items;
  1163. }
  1164. public function setKind($kind) {
  1165. $this->kind = $kind;
  1166. }
  1167. public function getKind() {
  1168. return $this->kind;
  1169. }
  1170. }
  1171. class Google_Comment extends Google_Model {
  1172. protected $__inReplyToType = 'Google_CommentInReplyTo';
  1173. protected $__inReplyToDataType = '';
  1174. public $inReplyTo;
  1175. public $kind;
  1176. protected $__linksType = 'Google_OrkutLinkResource';
  1177. protected $__linksDataType = 'array';
  1178. public $links;
  1179. protected $__actorType = 'Google_OrkutAuthorResource';
  1180. protected $__actorDataType = '';
  1181. public $actor;
  1182. public $content;
  1183. public $published;
  1184. public $id;
  1185. public function setInReplyTo(Google_CommentInReplyTo $inReplyTo) {
  1186. $this->inReplyTo = $inReplyTo;
  1187. }
  1188. public function getInReplyTo() {
  1189. return $this->inReplyTo;
  1190. }
  1191. public function setKind($kind) {
  1192. $this->kind = $kind;
  1193. }
  1194. public function getKind() {
  1195. return $this->kind;
  1196. }
  1197. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  1198. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  1199. $this->links = $links;
  1200. }
  1201. public function getLinks() {
  1202. return $this->links;
  1203. }
  1204. public function setActor(Google_OrkutAuthorResource $actor) {
  1205. $this->actor = $actor;
  1206. }
  1207. public function getActor() {
  1208. return $this->actor;
  1209. }
  1210. public function setContent($content) {
  1211. $this->content = $content;
  1212. }
  1213. public function getContent() {
  1214. return $this->content;
  1215. }
  1216. public function setPublished($published) {
  1217. $this->published = $published;
  1218. }
  1219. public function getPublished() {
  1220. return $this->published;
  1221. }
  1222. public function setId($id) {
  1223. $this->id = $id;
  1224. }
  1225. public function getId() {
  1226. return $this->id;
  1227. }
  1228. }
  1229. class Google_CommentInReplyTo extends Google_Model {
  1230. public $type;
  1231. public $href;
  1232. public $ref;
  1233. public $rel;
  1234. public function setType($type) {
  1235. $this->type = $type;
  1236. }
  1237. public function getType() {
  1238. return $this->type;
  1239. }
  1240. public function setHref($href) {
  1241. $this->href = $href;
  1242. }
  1243. public function getHref() {
  1244. return $this->href;
  1245. }
  1246. public function setRef($ref) {
  1247. $this->ref = $ref;
  1248. }
  1249. public function getRef() {
  1250. return $this->ref;
  1251. }
  1252. public function setRel($rel) {
  1253. $this->rel = $rel;
  1254. }
  1255. public function getRel() {
  1256. return $this->rel;
  1257. }
  1258. }
  1259. class Google_CommentList extends Google_Model {
  1260. public $nextPageToken;
  1261. protected $__itemsType = 'Google_Comment';
  1262. protected $__itemsDataType = 'array';
  1263. public $items;
  1264. public $kind;
  1265. public $previousPageToken;
  1266. public function setNextPageToken($nextPageToken) {
  1267. $this->nextPageToken = $nextPageToken;
  1268. }
  1269. public function getNextPageToken() {
  1270. return $this->nextPageToken;
  1271. }
  1272. public function setItems(/* array(Google_Comment) */ $items) {
  1273. $this->assertIsArray($items, 'Google_Comment', __METHOD__);
  1274. $this->items = $items;
  1275. }
  1276. public function getItems() {
  1277. return $this->items;
  1278. }
  1279. public function setKind($kind) {
  1280. $this->kind = $kind;
  1281. }
  1282. public function getKind() {
  1283. return $this->kind;
  1284. }
  1285. public function setPreviousPageToken($previousPageToken) {
  1286. $this->previousPageToken = $previousPageToken;
  1287. }
  1288. public function getPreviousPageToken() {
  1289. return $this->previousPageToken;
  1290. }
  1291. }
  1292. class Google_Community extends Google_Model {
  1293. public $category;
  1294. public $kind;
  1295. public $member_count;
  1296. public $description;
  1297. public $language;
  1298. protected $__linksType = 'Google_OrkutLinkResource';
  1299. protected $__linksDataType = 'array';
  1300. public $links;
  1301. public $creation_date;
  1302. protected $__ownerType = 'Google_OrkutAuthorResource';
  1303. protected $__ownerDataType = '';
  1304. public $owner;
  1305. protected $__moderatorsType = 'Google_OrkutAuthorResource';
  1306. protected $__moderatorsDataType = 'array';
  1307. public $moderators;
  1308. public $location;
  1309. protected $__co_ownersType = 'Google_OrkutAuthorResource';
  1310. protected $__co_ownersDataType = 'array';
  1311. public $co_owners;
  1312. public $photo_url;
  1313. public $id;
  1314. public $name;
  1315. public function setCategory($category) {
  1316. $this->category = $category;
  1317. }
  1318. public function getCategory() {
  1319. return $this->category;
  1320. }
  1321. public function setKind($kind) {
  1322. $this->kind = $kind;
  1323. }
  1324. public function getKind() {
  1325. return $this->kind;
  1326. }
  1327. public function setMember_count($member_count) {
  1328. $this->member_count = $member_count;
  1329. }
  1330. public function getMember_count() {
  1331. return $this->member_count;
  1332. }
  1333. public function setDescription($description) {
  1334. $this->description = $description;
  1335. }
  1336. public function getDescription() {
  1337. return $this->description;
  1338. }
  1339. public function setLanguage($language) {
  1340. $this->language = $language;
  1341. }
  1342. public function getLanguage() {
  1343. return $this->language;
  1344. }
  1345. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  1346. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  1347. $this->links = $links;
  1348. }
  1349. public function getLinks() {
  1350. return $this->links;
  1351. }
  1352. public function setCreation_date($creation_date) {
  1353. $this->creation_date = $creation_date;
  1354. }
  1355. public function getCreation_date() {
  1356. return $this->creation_date;
  1357. }
  1358. public function setOwner(Google_OrkutAuthorResource $owner) {
  1359. $this->owner = $owner;
  1360. }
  1361. public function getOwner() {
  1362. return $this->owner;
  1363. }
  1364. public function setModerators(/* array(Google_OrkutAuthorResource) */ $moderators) {
  1365. $this->assertIsArray($moderators, 'Google_OrkutAuthorResource', __METHOD__);
  1366. $this->moderators = $moderators;
  1367. }
  1368. public function getModerators() {
  1369. return $this->moderators;
  1370. }
  1371. public function setLocation($location) {
  1372. $this->location = $location;
  1373. }
  1374. public function getLocation() {
  1375. return $this->location;
  1376. }
  1377. public function setCo_owners(/* array(Google_OrkutAuthorResource) */ $co_owners) {
  1378. $this->assertIsArray($co_owners, 'Google_OrkutAuthorResource', __METHOD__);
  1379. $this->co_owners = $co_owners;
  1380. }
  1381. public function getCo_owners() {
  1382. return $this->co_owners;
  1383. }
  1384. public function setPhoto_url($photo_url) {
  1385. $this->photo_url = $photo_url;
  1386. }
  1387. public function getPhoto_url() {
  1388. return $this->photo_url;
  1389. }
  1390. public function setId($id) {
  1391. $this->id = $id;
  1392. }
  1393. public function getId() {
  1394. return $this->id;
  1395. }
  1396. public function setName($name) {
  1397. $this->name = $name;
  1398. }
  1399. public function getName() {
  1400. return $this->name;
  1401. }
  1402. }
  1403. class Google_CommunityList extends Google_Model {
  1404. protected $__itemsType = 'Google_Community';
  1405. protected $__itemsDataType = 'array';
  1406. public $items;
  1407. public $kind;
  1408. public function setItems(/* array(Google_Community) */ $items) {
  1409. $this->assertIsArray($items, 'Google_Community', __METHOD__);
  1410. $this->items = $items;
  1411. }
  1412. public function getItems() {
  1413. return $this->items;
  1414. }
  1415. public function setKind($kind) {
  1416. $this->kind = $kind;
  1417. }
  1418. public function getKind() {
  1419. return $this->kind;
  1420. }
  1421. }
  1422. class Google_CommunityMembers extends Google_Model {
  1423. protected $__communityMembershipStatusType = 'Google_CommunityMembershipStatus';
  1424. protected $__communityMembershipStatusDataType = '';
  1425. public $communityMembershipStatus;
  1426. protected $__personType = 'Google_OrkutActivitypersonResource';
  1427. protected $__personDataType = '';
  1428. public $person;
  1429. public $kind;
  1430. public function setCommunityMembershipStatus(Google_CommunityMembershipStatus $communityMembershipStatus) {
  1431. $this->communityMembershipStatus = $communityMembershipStatus;
  1432. }
  1433. public function getCommunityMembershipStatus() {
  1434. return $this->communityMembershipStatus;
  1435. }
  1436. public function setPerson(Google_OrkutActivitypersonResource $person) {
  1437. $this->person = $person;
  1438. }
  1439. public function getPerson() {
  1440. return $this->person;
  1441. }
  1442. public function setKind($kind) {
  1443. $this->kind = $kind;
  1444. }
  1445. public function getKind() {
  1446. return $this->kind;
  1447. }
  1448. }
  1449. class Google_CommunityMembersList extends Google_Model {
  1450. public $nextPageToken;
  1451. public $kind;
  1452. protected $__itemsType = 'Google_CommunityMembers';
  1453. protected $__itemsDataType = 'array';
  1454. public $items;
  1455. public $prevPageToken;
  1456. public $lastPageToken;
  1457. public $firstPageToken;
  1458. public function setNextPageToken($nextPageToken) {
  1459. $this->nextPageToken = $nextPageToken;
  1460. }
  1461. public function getNextPageToken() {
  1462. return $this->nextPageToken;
  1463. }
  1464. public function setKind($kind) {
  1465. $this->kind = $kind;
  1466. }
  1467. public function getKind() {
  1468. return $this->kind;
  1469. }
  1470. public function setItems(/* array(Google_CommunityMembers) */ $items) {
  1471. $this->assertIsArray($items, 'Google_CommunityMembers', __METHOD__);
  1472. $this->items = $items;
  1473. }
  1474. public function getItems() {
  1475. return $this->items;
  1476. }
  1477. public function setPrevPageToken($prevPageToken) {
  1478. $this->prevPageToken = $prevPageToken;
  1479. }
  1480. public function getPrevPageToken() {
  1481. return $this->prevPageToken;
  1482. }
  1483. public function setLastPageToken($lastPageToken) {
  1484. $this->lastPageToken = $lastPageToken;
  1485. }
  1486. public function getLastPageToken() {
  1487. return $this->lastPageToken;
  1488. }
  1489. public function setFirstPageToken($firstPageToken) {
  1490. $this->firstPageToken = $firstPageToken;
  1491. }
  1492. public function getFirstPageToken() {
  1493. return $this->firstPageToken;
  1494. }
  1495. }
  1496. class Google_CommunityMembershipStatus extends Google_Model {
  1497. public $status;
  1498. public $isFollowing;
  1499. public $isRestoreAvailable;
  1500. public $isModerator;
  1501. public $kind;
  1502. public $isCoOwner;
  1503. public $canCreatePoll;
  1504. public $canShout;
  1505. public $isOwner;
  1506. public $canCreateTopic;
  1507. public $isTakebackAvailable;
  1508. public function setStatus($status) {
  1509. $this->status = $status;
  1510. }
  1511. public function getStatus() {
  1512. return $this->status;
  1513. }
  1514. public function setIsFollowing($isFollowing) {
  1515. $this->isFollowing = $isFollowing;
  1516. }
  1517. public function getIsFollowing() {
  1518. return $this->isFollowing;
  1519. }
  1520. public function setIsRestoreAvailable($isRestoreAvailable) {
  1521. $this->isRestoreAvailable = $isRestoreAvailable;
  1522. }
  1523. public function getIsRestoreAvailable() {
  1524. return $this->isRestoreAvailable;
  1525. }
  1526. public function setIsModerator($isModerator) {
  1527. $this->isModerator = $isModerator;
  1528. }
  1529. public function getIsModerator() {
  1530. return $this->isModerator;
  1531. }
  1532. public function setKind($kind) {
  1533. $this->kind = $kind;
  1534. }
  1535. public function getKind() {
  1536. return $this->kind;
  1537. }
  1538. public function setIsCoOwner($isCoOwner) {
  1539. $this->isCoOwner = $isCoOwner;
  1540. }
  1541. public function getIsCoOwner() {
  1542. return $this->isCoOwner;
  1543. }
  1544. public function setCanCreatePoll($canCreatePoll) {
  1545. $this->canCreatePoll = $canCreatePoll;
  1546. }
  1547. public function getCanCreatePoll() {
  1548. return $this->canCreatePoll;
  1549. }
  1550. public function setCanShout($canShout) {
  1551. $this->canShout = $canShout;
  1552. }
  1553. public function getCanShout() {
  1554. return $this->canShout;
  1555. }
  1556. public function setIsOwner($isOwner) {
  1557. $this->isOwner = $isOwner;
  1558. }
  1559. public function getIsOwner() {
  1560. return $this->isOwner;
  1561. }
  1562. public function setCanCreateTopic($canCreateTopic) {
  1563. $this->canCreateTopic = $canCreateTopic;
  1564. }
  1565. public function getCanCreateTopic() {
  1566. return $this->canCreateTopic;
  1567. }
  1568. public function setIsTakebackAvailable($isTakebackAvailable) {
  1569. $this->isTakebackAvailable = $isTakebackAvailable;
  1570. }
  1571. public function getIsTakebackAvailable() {
  1572. return $this->isTakebackAvailable;
  1573. }
  1574. }
  1575. class Google_CommunityMessage extends Google_Model {
  1576. public $body;
  1577. public $kind;
  1578. protected $__linksType = 'Google_OrkutLinkResource';
  1579. protected $__linksDataType = 'array';
  1580. public $links;
  1581. protected $__authorType = 'Google_OrkutAuthorResource';
  1582. protected $__authorDataType = '';
  1583. public $author;
  1584. public $id;
  1585. public $addedDate;
  1586. public $isSpam;
  1587. public $subject;
  1588. public function setBody($body) {
  1589. $this->body = $body;
  1590. }
  1591. public function getBody() {
  1592. return $this->body;
  1593. }
  1594. public function setKind($kind) {
  1595. $this->kind = $kind;
  1596. }
  1597. public function getKind() {
  1598. return $this->kind;
  1599. }
  1600. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  1601. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  1602. $this->links = $links;
  1603. }
  1604. public function getLinks() {
  1605. return $this->links;
  1606. }
  1607. public function setAuthor(Google_OrkutAuthorResource $author) {
  1608. $this->author = $author;
  1609. }
  1610. public function getAuthor() {
  1611. return $this->author;
  1612. }
  1613. public function setId($id) {
  1614. $this->id = $id;
  1615. }
  1616. public function getId() {
  1617. return $this->id;
  1618. }
  1619. public function setAddedDate($addedDate) {
  1620. $this->addedDate = $addedDate;
  1621. }
  1622. public function getAddedDate() {
  1623. return $this->addedDate;
  1624. }
  1625. public function setIsSpam($isSpam) {
  1626. $this->isSpam = $isSpam;
  1627. }
  1628. public function getIsSpam() {
  1629. return $this->isSpam;
  1630. }
  1631. public function setSubject($subject) {
  1632. $this->subject = $subject;
  1633. }
  1634. public function getSubject() {
  1635. return $this->subject;
  1636. }
  1637. }
  1638. class Google_CommunityMessageList extends Google_Model {
  1639. public $nextPageToken;
  1640. public $kind;
  1641. protected $__itemsType = 'Google_CommunityMessage';
  1642. protected $__itemsDataType = 'array';
  1643. public $items;
  1644. public $prevPageToken;
  1645. public $lastPageToken;
  1646. public $firstPageToken;
  1647. public function setNextPageToken($nextPageToken) {
  1648. $this->nextPageToken = $nextPageToken;
  1649. }
  1650. public function getNextPageToken() {
  1651. return $this->nextPageToken;
  1652. }
  1653. public function setKind($kind) {
  1654. $this->kind = $kind;
  1655. }
  1656. public function getKind() {
  1657. return $this->kind;
  1658. }
  1659. public function setItems(/* array(Google_CommunityMessage) */ $items) {
  1660. $this->assertIsArray($items, 'Google_CommunityMessage', __METHOD__);
  1661. $this->items = $items;
  1662. }
  1663. public function getItems() {
  1664. return $this->items;
  1665. }
  1666. public function setPrevPageToken($prevPageToken) {
  1667. $this->prevPageToken = $prevPageToken;
  1668. }
  1669. public function getPrevPageToken() {
  1670. return $this->prevPageToken;
  1671. }
  1672. public function setLastPageToken($lastPageToken) {
  1673. $this->lastPageToken = $lastPageToken;
  1674. }
  1675. public function getLastPageToken() {
  1676. return $this->lastPageToken;
  1677. }
  1678. public function setFirstPageToken($firstPageToken) {
  1679. $this->firstPageToken = $firstPageToken;
  1680. }
  1681. public function getFirstPageToken() {
  1682. return $this->firstPageToken;
  1683. }
  1684. }
  1685. class Google_CommunityPoll extends Google_Model {
  1686. protected $__linksType = 'Google_OrkutLinkResource';
  1687. protected $__linksDataType = 'array';
  1688. public $links;
  1689. public $isMultipleAnswers;
  1690. protected $__imageType = 'Google_CommunityPollImage';
  1691. protected $__imageDataType = '';
  1692. public $image;
  1693. public $endingTime;
  1694. public $isVotingAllowedForNonMembers;
  1695. public $isSpam;
  1696. public $totalNumberOfVotes;
  1697. protected $__authorType = 'Google_OrkutAuthorResource';
  1698. protected $__authorDataType = '';
  1699. public $author;
  1700. public $question;
  1701. public $id;
  1702. public $isRestricted;
  1703. public $communityId;
  1704. public $isUsersVotePublic;
  1705. public $lastUpdate;
  1706. public $description;
  1707. public $votedOptions;
  1708. public $isOpenForVoting;
  1709. public $isClosed;
  1710. public $hasVoted;
  1711. public $kind;
  1712. public $creationTime;
  1713. protected $__optionsType = 'Google_OrkutCommunitypolloptionResource';
  1714. protected $__optionsDataType = 'array';
  1715. public $options;
  1716. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  1717. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  1718. $this->links = $links;
  1719. }
  1720. public function getLinks() {
  1721. return $this->links;
  1722. }
  1723. public function setIsMultipleAnswers($isMultipleAnswers) {
  1724. $this->isMultipleAnswers = $isMultipleAnswers;
  1725. }
  1726. public function getIsMultipleAnswers() {
  1727. return $this->isMultipleAnswers;
  1728. }
  1729. public function setImage(Google_CommunityPollImage $image) {
  1730. $this->image = $image;
  1731. }
  1732. public function getImage() {
  1733. return $this->image;
  1734. }
  1735. public function setEndingTime($endingTime) {
  1736. $this->endingTime = $endingTime;
  1737. }
  1738. public function getEndingTime() {
  1739. return $this->endingTime;
  1740. }
  1741. public function setIsVotingAllowedForNonMembers($isVotingAllowedForNonMembers) {
  1742. $this->isVotingAllowedForNonMembers = $isVotingAllowedForNonMembers;
  1743. }
  1744. public function getIsVotingAllowedForNonMembers() {
  1745. return $this->isVotingAllowedForNonMembers;
  1746. }
  1747. public function setIsSpam($isSpam) {
  1748. $this->isSpam = $isSpam;
  1749. }
  1750. public function getIsSpam() {
  1751. return $this->isSpam;
  1752. }
  1753. public function setTotalNumberOfVotes($totalNumberOfVotes) {
  1754. $this->totalNumberOfVotes = $totalNumberOfVotes;
  1755. }
  1756. public function getTotalNumberOfVotes() {
  1757. return $this->totalNumberOfVotes;
  1758. }
  1759. public function setAuthor(Google_OrkutAuthorResource $author) {
  1760. $this->author = $author;
  1761. }
  1762. public function getAuthor() {
  1763. return $this->author;
  1764. }
  1765. public function setQuestion($question) {
  1766. $this->question = $question;
  1767. }
  1768. public function getQuestion() {
  1769. return $this->question;
  1770. }
  1771. public function setId($id) {
  1772. $this->id = $id;
  1773. }
  1774. public function getId() {
  1775. return $this->id;
  1776. }
  1777. public function setIsRestricted($isRestricted) {
  1778. $this->isRestricted = $isRestricted;
  1779. }
  1780. public function getIsRestricted() {
  1781. return $this->isRestricted;
  1782. }
  1783. public function setCommunityId($communityId) {
  1784. $this->communityId = $communityId;
  1785. }
  1786. public function getCommunityId() {
  1787. return $this->communityId;
  1788. }
  1789. public function setIsUsersVotePublic($isUsersVotePublic) {
  1790. $this->isUsersVotePublic = $isUsersVotePublic;
  1791. }
  1792. public function getIsUsersVotePublic() {
  1793. return $this->isUsersVotePublic;
  1794. }
  1795. public function setLastUpdate($lastUpdate) {
  1796. $this->lastUpdate = $lastUpdate;
  1797. }
  1798. public function getLastUpdate() {
  1799. return $this->lastUpdate;
  1800. }
  1801. public function setDescription($description) {
  1802. $this->description = $description;
  1803. }
  1804. public function getDescription() {
  1805. return $this->description;
  1806. }
  1807. public function setVotedOptions(/* array(Google_int) */ $votedOptions) {
  1808. $this->assertIsArray($votedOptions, 'Google_int', __METHOD__);
  1809. $this->votedOptions = $votedOptions;
  1810. }
  1811. public function getVotedOptions() {
  1812. return $this->votedOptions;
  1813. }
  1814. public function setIsOpenForVoting($isOpenForVoting) {
  1815. $this->isOpenForVoting = $isOpenForVoting;
  1816. }
  1817. public function getIsOpenForVoting() {
  1818. return $this->isOpenForVoting;
  1819. }
  1820. public function setIsClosed($isClosed) {
  1821. $this->isClosed = $isClosed;
  1822. }
  1823. public function getIsClosed() {
  1824. return $this->isClosed;
  1825. }
  1826. public function setHasVoted($hasVoted) {
  1827. $this->hasVoted = $hasVoted;
  1828. }
  1829. public function getHasVoted() {
  1830. return $this->hasVoted;
  1831. }
  1832. public function setKind($kind) {
  1833. $this->kind = $kind;
  1834. }
  1835. public function getKind() {
  1836. return $this->kind;
  1837. }
  1838. public function setCreationTime($creationTime) {
  1839. $this->creationTime = $creationTime;
  1840. }
  1841. public function getCreationTime() {
  1842. return $this->creationTime;
  1843. }
  1844. public function setOptions(/* array(Google_OrkutCommunitypolloptionResource) */ $options) {
  1845. $this->assertIsArray($options, 'Google_OrkutCommunitypolloptionResource', __METHOD__);
  1846. $this->options = $options;
  1847. }
  1848. public function getOptions() {
  1849. return $this->options;
  1850. }
  1851. }
  1852. class Google_CommunityPollComment extends Google_Model {
  1853. public $body;
  1854. public $kind;
  1855. public $addedDate;
  1856. public $id;
  1857. protected $__authorType = 'Google_OrkutAuthorResource';
  1858. protected $__authorDataType = '';
  1859. public $author;
  1860. public function setBody($body) {
  1861. $this->body = $body;
  1862. }
  1863. public function getBody() {
  1864. return $this->body;
  1865. }
  1866. public function setKind($kind) {
  1867. $this->kind = $kind;
  1868. }
  1869. public function getKind() {
  1870. return $this->kind;
  1871. }
  1872. public function setAddedDate($addedDate) {
  1873. $this->addedDate = $addedDate;
  1874. }
  1875. public function getAddedDate() {
  1876. return $this->addedDate;
  1877. }
  1878. public function setId($id) {
  1879. $this->id = $id;
  1880. }
  1881. public function getId() {
  1882. return $this->id;
  1883. }
  1884. public function setAuthor(Google_OrkutAuthorResource $author) {
  1885. $this->author = $author;
  1886. }
  1887. public function getAuthor() {
  1888. return $this->author;
  1889. }
  1890. }
  1891. class Google_CommunityPollCommentList extends Google_Model {
  1892. public $nextPageToken;
  1893. public $kind;
  1894. protected $__itemsType = 'Google_CommunityPollComment';
  1895. protected $__itemsDataType = 'array';
  1896. public $items;
  1897. public $prevPageToken;
  1898. public $lastPageToken;
  1899. public $firstPageToken;
  1900. public function setNextPageToken($nextPageToken) {
  1901. $this->nextPageToken = $nextPageToken;
  1902. }
  1903. public function getNextPageToken() {
  1904. return $this->nextPageToken;
  1905. }
  1906. public function setKind($kind) {
  1907. $this->kind = $kind;
  1908. }
  1909. public function getKind() {
  1910. return $this->kind;
  1911. }
  1912. public function setItems(/* array(Google_CommunityPollComment) */ $items) {
  1913. $this->assertIsArray($items, 'Google_CommunityPollComment', __METHOD__);
  1914. $this->items = $items;
  1915. }
  1916. public function getItems() {
  1917. return $this->items;
  1918. }
  1919. public function setPrevPageToken($prevPageToken) {
  1920. $this->prevPageToken = $prevPageToken;
  1921. }
  1922. public function getPrevPageToken() {
  1923. return $this->prevPageToken;
  1924. }
  1925. public function setLastPageToken($lastPageToken) {
  1926. $this->lastPageToken = $lastPageToken;
  1927. }
  1928. public function getLastPageToken() {
  1929. return $this->lastPageToken;
  1930. }
  1931. public function setFirstPageToken($firstPageToken) {
  1932. $this->firstPageToken = $firstPageToken;
  1933. }
  1934. public function getFirstPageToken() {
  1935. return $this->firstPageToken;
  1936. }
  1937. }
  1938. class Google_CommunityPollImage extends Google_Model {
  1939. public $url;
  1940. public function setUrl($url) {
  1941. $this->url = $url;
  1942. }
  1943. public function getUrl() {
  1944. return $this->url;
  1945. }
  1946. }
  1947. class Google_CommunityPollList extends Google_Model {
  1948. public $nextPageToken;
  1949. public $kind;
  1950. protected $__itemsType = 'Google_CommunityPoll';
  1951. protected $__itemsDataType = 'array';
  1952. public $items;
  1953. public $prevPageToken;
  1954. public $lastPageToken;
  1955. public $firstPageToken;
  1956. public function setNextPageToken($nextPageToken) {
  1957. $this->nextPageToken = $nextPageToken;
  1958. }
  1959. public function getNextPageToken() {
  1960. return $this->nextPageToken;
  1961. }
  1962. public function setKind($kind) {
  1963. $this->kind = $kind;
  1964. }
  1965. public function getKind() {
  1966. return $this->kind;
  1967. }
  1968. public function setItems(/* array(Google_CommunityPoll) */ $items) {
  1969. $this->assertIsArray($items, 'Google_CommunityPoll', __METHOD__);
  1970. $this->items = $items;
  1971. }
  1972. public function getItems() {
  1973. return $this->items;
  1974. }
  1975. public function setPrevPageToken($prevPageToken) {
  1976. $this->prevPageToken = $prevPageToken;
  1977. }
  1978. public function getPrevPageToken() {
  1979. return $this->prevPageToken;
  1980. }
  1981. public function setLastPageToken($lastPageToken) {
  1982. $this->lastPageToken = $lastPageToken;
  1983. }
  1984. public function getLastPageToken() {
  1985. return $this->lastPageToken;
  1986. }
  1987. public function setFirstPageToken($firstPageToken) {
  1988. $this->firstPageToken = $firstPageToken;
  1989. }
  1990. public function getFirstPageToken() {
  1991. return $this->firstPageToken;
  1992. }
  1993. }
  1994. class Google_CommunityPollVote extends Google_Model {
  1995. public $kind;
  1996. public $optionIds;
  1997. public $isVotevisible;
  1998. public function setKind($kind) {
  1999. $this->kind = $kind;
  2000. }
  2001. public function getKind() {
  2002. return $this->kind;
  2003. }
  2004. public function setOptionIds(/* array(Google_int) */ $optionIds) {
  2005. $this->assertIsArray($optionIds, 'Google_int', __METHOD__);
  2006. $this->optionIds = $optionIds;
  2007. }
  2008. public function getOptionIds() {
  2009. return $this->optionIds;
  2010. }
  2011. public function setIsVotevisible($isVotevisible) {
  2012. $this->isVotevisible = $isVotevisible;
  2013. }
  2014. public function getIsVotevisible() {
  2015. return $this->isVotevisible;
  2016. }
  2017. }
  2018. class Google_CommunityTopic extends Google_Model {
  2019. public $body;
  2020. public $lastUpdate;
  2021. public $kind;
  2022. protected $__linksType = 'Google_OrkutLinkResource';
  2023. protected $__linksDataType = 'array';
  2024. public $links;
  2025. protected $__authorType = 'Google_OrkutAuthorResource';
  2026. protected $__authorDataType = '';
  2027. public $author;
  2028. public $title;
  2029. protected $__messagesType = 'Google_CommunityMessage';
  2030. protected $__messagesDataType = 'array';
  2031. public $messages;
  2032. public $latestMessageSnippet;
  2033. public $isClosed;
  2034. public $numberOfReplies;
  2035. public $id;
  2036. public function setBody($body) {
  2037. $this->body = $body;
  2038. }
  2039. public function getBody() {
  2040. return $this->body;
  2041. }
  2042. public function setLastUpdate($lastUpdate) {
  2043. $this->lastUpdate = $lastUpdate;
  2044. }
  2045. public function getLastUpdate() {
  2046. return $this->lastUpdate;
  2047. }
  2048. public function setKind($kind) {
  2049. $this->kind = $kind;
  2050. }
  2051. public function getKind() {
  2052. return $this->kind;
  2053. }
  2054. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  2055. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  2056. $this->links = $links;
  2057. }
  2058. public function getLinks() {
  2059. return $this->links;
  2060. }
  2061. public function setAuthor(Google_OrkutAuthorResource $author) {
  2062. $this->author = $author;
  2063. }
  2064. public function getAuthor() {
  2065. return $this->author;
  2066. }
  2067. public function setTitle($title) {
  2068. $this->title = $title;
  2069. }
  2070. public function getTitle() {
  2071. return $this->title;
  2072. }
  2073. public function setMessages(/* array(Google_CommunityMessage) */ $messages) {
  2074. $this->assertIsArray($messages, 'Google_CommunityMessage', __METHOD__);
  2075. $this->messages = $messages;
  2076. }
  2077. public function getMessages() {
  2078. return $this->messages;
  2079. }
  2080. public function setLatestMessageSnippet($latestMessageSnippet) {
  2081. $this->latestMessageSnippet = $latestMessageSnippet;
  2082. }
  2083. public function getLatestMessageSnippet() {
  2084. return $this->latestMessageSnippet;
  2085. }
  2086. public function setIsClosed($isClosed) {
  2087. $this->isClosed = $isClosed;
  2088. }
  2089. public function getIsClosed() {
  2090. return $this->isClosed;
  2091. }
  2092. public function setNumberOfReplies($numberOfReplies) {
  2093. $this->numberOfReplies = $numberOfReplies;
  2094. }
  2095. public function getNumberOfReplies() {
  2096. return $this->numberOfReplies;
  2097. }
  2098. public function setId($id) {
  2099. $this->id = $id;
  2100. }
  2101. public function getId() {
  2102. return $this->id;
  2103. }
  2104. }
  2105. class Google_CommunityTopicList extends Google_Model {
  2106. public $nextPageToken;
  2107. public $kind;
  2108. protected $__itemsType = 'Google_CommunityTopic';
  2109. protected $__itemsDataType = 'array';
  2110. public $items;
  2111. public $prevPageToken;
  2112. public $lastPageToken;
  2113. public $firstPageToken;
  2114. public function setNextPageToken($nextPageToken) {
  2115. $this->nextPageToken = $nextPageToken;
  2116. }
  2117. public function getNextPageToken() {
  2118. return $this->nextPageToken;
  2119. }
  2120. public function setKind($kind) {
  2121. $this->kind = $kind;
  2122. }
  2123. public function getKind() {
  2124. return $this->kind;
  2125. }
  2126. public function setItems(/* array(Google_CommunityTopic) */ $items) {
  2127. $this->assertIsArray($items, 'Google_CommunityTopic', __METHOD__);
  2128. $this->items = $items;
  2129. }
  2130. public function getItems() {
  2131. return $this->items;
  2132. }
  2133. public function setPrevPageToken($prevPageToken) {
  2134. $this->prevPageToken = $prevPageToken;
  2135. }
  2136. public function getPrevPageToken() {
  2137. return $this->prevPageToken;
  2138. }
  2139. public function setLastPageToken($lastPageToken) {
  2140. $this->lastPageToken = $lastPageToken;
  2141. }
  2142. public function getLastPageToken() {
  2143. return $this->lastPageToken;
  2144. }
  2145. public function setFirstPageToken($firstPageToken) {
  2146. $this->firstPageToken = $firstPageToken;
  2147. }
  2148. public function getFirstPageToken() {
  2149. return $this->firstPageToken;
  2150. }
  2151. }
  2152. class Google_Counters extends Google_Model {
  2153. protected $__itemsType = 'Google_OrkutCounterResource';
  2154. protected $__itemsDataType = 'array';
  2155. public $items;
  2156. public $kind;
  2157. public function setItems(/* array(Google_OrkutCounterResource) */ $items) {
  2158. $this->assertIsArray($items, 'Google_OrkutCounterResource', __METHOD__);
  2159. $this->items = $items;
  2160. }
  2161. public function getItems() {
  2162. return $this->items;
  2163. }
  2164. public function setKind($kind) {
  2165. $this->kind = $kind;
  2166. }
  2167. public function getKind() {
  2168. return $this->kind;
  2169. }
  2170. }
  2171. class Google_OrkutActivityobjectsResource extends Google_Model {
  2172. public $displayName;
  2173. protected $__linksType = 'Google_OrkutLinkResource';
  2174. protected $__linksDataType = 'array';
  2175. public $links;
  2176. protected $__communityType = 'Google_Community';
  2177. protected $__communityDataType = '';
  2178. public $community;
  2179. public $content;
  2180. protected $__personType = 'Google_OrkutActivitypersonResource';
  2181. protected $__personDataType = '';
  2182. public $person;
  2183. public $id;
  2184. public $objectType;
  2185. public function setDisplayName($displayName) {
  2186. $this->displayName = $displayName;
  2187. }
  2188. public function getDisplayName() {
  2189. return $this->displayName;
  2190. }
  2191. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  2192. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  2193. $this->links = $links;
  2194. }
  2195. public function getLinks() {
  2196. return $this->links;
  2197. }
  2198. public function setCommunity(Google_Community $community) {
  2199. $this->community = $community;
  2200. }
  2201. public function getCommunity() {
  2202. return $this->community;
  2203. }
  2204. public function setContent($content) {
  2205. $this->content = $content;
  2206. }
  2207. public function getContent() {
  2208. return $this->content;
  2209. }
  2210. public function setPerson(Google_OrkutActivitypersonResource $person) {
  2211. $this->person = $person;
  2212. }
  2213. public function getPerson() {
  2214. return $this->person;
  2215. }
  2216. public function setId($id) {
  2217. $this->id = $id;
  2218. }
  2219. public function getId() {
  2220. return $this->id;
  2221. }
  2222. public function setObjectType($objectType) {
  2223. $this->objectType = $objectType;
  2224. }
  2225. public function getObjectType() {
  2226. return $this->objectType;
  2227. }
  2228. }
  2229. class Google_OrkutActivitypersonResource extends Google_Model {
  2230. protected $__nameType = 'Google_OrkutActivitypersonResourceName';
  2231. protected $__nameDataType = '';
  2232. public $name;
  2233. public $url;
  2234. public $gender;
  2235. protected $__imageType = 'Google_OrkutActivitypersonResourceImage';
  2236. protected $__imageDataType = '';
  2237. public $image;
  2238. public $birthday;
  2239. public $id;
  2240. public function setName(Google_OrkutActivitypersonResourceName $name) {
  2241. $this->name = $name;
  2242. }
  2243. public function getName() {
  2244. return $this->name;
  2245. }
  2246. public function setUrl($url) {
  2247. $this->url = $url;
  2248. }
  2249. public function getUrl() {
  2250. return $this->url;
  2251. }
  2252. public function setGender($gender) {
  2253. $this->gender = $gender;
  2254. }
  2255. public function getGender() {
  2256. return $this->gender;
  2257. }
  2258. public function setImage(Google_OrkutActivitypersonResourceImage $image) {
  2259. $this->image = $image;
  2260. }
  2261. public function getImage() {
  2262. return $this->image;
  2263. }
  2264. public function setBirthday($birthday) {
  2265. $this->birthday = $birthday;
  2266. }
  2267. public function getBirthday() {
  2268. return $this->birthday;
  2269. }
  2270. public function setId($id) {
  2271. $this->id = $id;
  2272. }
  2273. public function getId() {
  2274. return $this->id;
  2275. }
  2276. }
  2277. class Google_OrkutActivitypersonResourceImage extends Google_Model {
  2278. public $url;
  2279. public function setUrl($url) {
  2280. $this->url = $url;
  2281. }
  2282. public function getUrl() {
  2283. return $this->url;
  2284. }
  2285. }
  2286. class Google_OrkutActivitypersonResourceName extends Google_Model {
  2287. public $givenName;
  2288. public $familyName;
  2289. public function setGivenName($givenName) {
  2290. $this->givenName = $givenName;
  2291. }
  2292. public function getGivenName() {
  2293. return $this->givenName;
  2294. }
  2295. public function setFamilyName($familyName) {
  2296. $this->familyName = $familyName;
  2297. }
  2298. public function getFamilyName() {
  2299. return $this->familyName;
  2300. }
  2301. }
  2302. class Google_OrkutAuthorResource extends Google_Model {
  2303. public $url;
  2304. protected $__imageType = 'Google_OrkutAuthorResourceImage';
  2305. protected $__imageDataType = '';
  2306. public $image;
  2307. public $displayName;
  2308. public $id;
  2309. public function setUrl($url) {
  2310. $this->url = $url;
  2311. }
  2312. public function getUrl() {
  2313. return $this->url;
  2314. }
  2315. public function setImage(Google_OrkutAuthorResourceImage $image) {
  2316. $this->image = $image;
  2317. }
  2318. public function getImage() {
  2319. return $this->image;
  2320. }
  2321. public function setDisplayName($displayName) {
  2322. $this->displayName = $displayName;
  2323. }
  2324. public function getDisplayName() {
  2325. return $this->displayName;
  2326. }
  2327. public function setId($id) {
  2328. $this->id = $id;
  2329. }
  2330. public function getId() {
  2331. return $this->id;
  2332. }
  2333. }
  2334. class Google_OrkutAuthorResourceImage extends Google_Model {
  2335. public $url;
  2336. public function setUrl($url) {
  2337. $this->url = $url;
  2338. }
  2339. public function getUrl() {
  2340. return $this->url;
  2341. }
  2342. }
  2343. class Google_OrkutCommunitypolloptionResource extends Google_Model {
  2344. protected $__imageType = 'Google_OrkutCommunitypolloptionResourceImage';
  2345. protected $__imageDataType = '';
  2346. public $image;
  2347. public $optionId;
  2348. public $description;
  2349. public $numberOfVotes;
  2350. public function setImage(Google_OrkutCommunitypolloptionResourceImage $image) {
  2351. $this->image = $image;
  2352. }
  2353. public function getImage() {
  2354. return $this->image;
  2355. }
  2356. public function setOptionId($optionId) {
  2357. $this->optionId = $optionId;
  2358. }
  2359. public function getOptionId() {
  2360. return $this->optionId;
  2361. }
  2362. public function setDescription($description) {
  2363. $this->description = $description;
  2364. }
  2365. public function getDescription() {
  2366. return $this->description;
  2367. }
  2368. public function setNumberOfVotes($numberOfVotes) {
  2369. $this->numberOfVotes = $numberOfVotes;
  2370. }
  2371. public function getNumberOfVotes() {
  2372. return $this->numberOfVotes;
  2373. }
  2374. }
  2375. class Google_OrkutCommunitypolloptionResourceImage extends Google_Model {
  2376. public $url;
  2377. public function setUrl($url) {
  2378. $this->url = $url;
  2379. }
  2380. public function getUrl() {
  2381. return $this->url;
  2382. }
  2383. }
  2384. class Google_OrkutCounterResource extends Google_Model {
  2385. public $total;
  2386. protected $__linkType = 'Google_OrkutLinkResource';
  2387. protected $__linkDataType = '';
  2388. public $link;
  2389. public $name;
  2390. public function setTotal($total) {
  2391. $this->total = $total;
  2392. }
  2393. public function getTotal() {
  2394. return $this->total;
  2395. }
  2396. public function setLink(Google_OrkutLinkResource $link) {
  2397. $this->link = $link;
  2398. }
  2399. public function getLink() {
  2400. return $this->link;
  2401. }
  2402. public function setName($name) {
  2403. $this->name = $name;
  2404. }
  2405. public function getName() {
  2406. return $this->name;
  2407. }
  2408. }
  2409. class Google_OrkutLinkResource extends Google_Model {
  2410. public $href;
  2411. public $type;
  2412. public $rel;
  2413. public $title;
  2414. public function setHref($href) {
  2415. $this->href = $href;
  2416. }
  2417. public function getHref() {
  2418. return $this->href;
  2419. }
  2420. public function setType($type) {
  2421. $this->type = $type;
  2422. }
  2423. public function getType() {
  2424. return $this->type;
  2425. }
  2426. public function setRel($rel) {
  2427. $this->rel = $rel;
  2428. }
  2429. public function getRel() {
  2430. return $this->rel;
  2431. }
  2432. public function setTitle($title) {
  2433. $this->title = $title;
  2434. }
  2435. public function getTitle() {
  2436. return $this->title;
  2437. }
  2438. }
  2439. class Google_Visibility extends Google_Model {
  2440. public $kind;
  2441. public $visibility;
  2442. protected $__linksType = 'Google_OrkutLinkResource';
  2443. protected $__linksDataType = 'array';
  2444. public $links;
  2445. public function setKind($kind) {
  2446. $this->kind = $kind;
  2447. }
  2448. public function getKind() {
  2449. return $this->kind;
  2450. }
  2451. public function setVisibility($visibility) {
  2452. $this->visibility = $visibility;
  2453. }
  2454. public function getVisibility() {
  2455. return $this->visibility;
  2456. }
  2457. public function setLinks(/* array(Google_OrkutLinkResource) */ $links) {
  2458. $this->assertIsArray($links, 'Google_OrkutLinkResource', __METHOD__);
  2459. $this->links = $links;
  2460. }
  2461. public function getLinks() {
  2462. return $this->links;
  2463. }
  2464. }