PageRenderTime 66ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/src/contrib/apiPlusService.php

https://bitbucket.org/stitchlabs/google-api-php-client
PHP | 1523 lines | 1347 code | 45 blank | 131 comment | 16 complexity | b2016ef9f496f71bdeca2a6df8f36d31 MD5 | raw file
Possible License(s): Apache-2.0
  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "activities" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $plusService = new apiPlusService(...);
  20. * $activities = $plusService->activities;
  21. * </code>
  22. */
  23. class ActivitiesServiceResource extends apiServiceResource {
  24. /**
  25. * Search public activities. (activities.search)
  26. *
  27. * @param string $query Full-text search query string.
  28. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  29. *
  30. * @opt_param string orderBy Specifies how to order search results.
  31. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token may be of any length.
  32. * @opt_param string maxResults The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  33. * @opt_param string language Specify the preferred language to search with. See search language codes for available values.
  34. * @return ActivityFeed
  35. */
  36. public function search($query, $optParams = array()) {
  37. $params = array('query' => $query);
  38. $params = array_merge($params, $optParams);
  39. $data = $this->__call('search', array($params));
  40. if ($this->useObjects()) {
  41. return new ActivityFeed($data);
  42. } else {
  43. return $data;
  44. }
  45. }
  46. /**
  47. * List all of the activities in the specified collection for a particular user. (activities.list)
  48. *
  49. * @param string $userId The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user.
  50. * @param string $collection The collection of activities to list.
  51. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  52. *
  53. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
  54. * @opt_param string maxResults The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  55. * @return ActivityFeed
  56. */
  57. public function listActivities($userId, $collection, $optParams = array()) {
  58. $params = array('userId' => $userId, 'collection' => $collection);
  59. $params = array_merge($params, $optParams);
  60. $data = $this->__call('list', array($params));
  61. if ($this->useObjects()) {
  62. return new ActivityFeed($data);
  63. } else {
  64. return $data;
  65. }
  66. }
  67. /**
  68. * Get an activity. (activities.get)
  69. *
  70. * @param string $activityId The ID of the activity to get.
  71. * @return Activity
  72. */
  73. public function get($activityId, $optParams = array()) {
  74. $params = array('activityId' => $activityId);
  75. $params = array_merge($params, $optParams);
  76. $data = $this->__call('get', array($params));
  77. if ($this->useObjects()) {
  78. return new Activity($data);
  79. } else {
  80. return $data;
  81. }
  82. }
  83. }
  84. /**
  85. * The "comments" collection of methods.
  86. * Typical usage is:
  87. * <code>
  88. * $plusService = new apiPlusService(...);
  89. * $comments = $plusService->comments;
  90. * </code>
  91. */
  92. class CommentsServiceResource extends apiServiceResource {
  93. /**
  94. * List all of the comments for an activity. (comments.list)
  95. *
  96. * @param string $activityId The ID of the activity to get comments for.
  97. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  98. *
  99. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
  100. * @opt_param string maxResults The maximum number of comments to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  101. * @opt_param string sortOrder The order in which to sort the list of comments.
  102. * @return CommentFeed
  103. */
  104. public function listComments($activityId, $optParams = array()) {
  105. $params = array('activityId' => $activityId);
  106. $params = array_merge($params, $optParams);
  107. $data = $this->__call('list', array($params));
  108. if ($this->useObjects()) {
  109. return new CommentFeed($data);
  110. } else {
  111. return $data;
  112. }
  113. }
  114. /**
  115. * Get a comment. (comments.get)
  116. *
  117. * @param string $commentId The ID of the comment to get.
  118. * @return Comment
  119. */
  120. public function get($commentId, $optParams = array()) {
  121. $params = array('commentId' => $commentId);
  122. $params = array_merge($params, $optParams);
  123. $data = $this->__call('get', array($params));
  124. if ($this->useObjects()) {
  125. return new Comment($data);
  126. } else {
  127. return $data;
  128. }
  129. }
  130. }
  131. /**
  132. * The "people" collection of methods.
  133. * Typical usage is:
  134. * <code>
  135. * $plusService = new apiPlusService(...);
  136. * $people = $plusService->people;
  137. * </code>
  138. */
  139. class PeopleServiceResource extends apiServiceResource {
  140. /**
  141. * List all of the people in the specified collection for a particular activity.
  142. * (people.listByActivity)
  143. *
  144. * @param string $activityId The ID of the activity to get the list of people for.
  145. * @param string $collection The collection of people to list.
  146. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  147. *
  148. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
  149. * @opt_param string maxResults The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  150. * @return PeopleFeed
  151. */
  152. public function listByActivity($activityId, $collection, $optParams = array()) {
  153. $params = array('activityId' => $activityId, 'collection' => $collection);
  154. $params = array_merge($params, $optParams);
  155. $data = $this->__call('listByActivity', array($params));
  156. if ($this->useObjects()) {
  157. return new PeopleFeed($data);
  158. } else {
  159. return $data;
  160. }
  161. }
  162. /**
  163. * Search all public profiles. (people.search)
  164. *
  165. * @param string $query Specify a query string for full text search of public text in all profiles.
  166. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  167. *
  168. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token may be of any length.
  169. * @opt_param string maxResults The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  170. * @opt_param string language Specify the preferred language to search with. See search language codes for available values.
  171. * @return PeopleFeed
  172. */
  173. public function search($query, $optParams = array()) {
  174. $params = array('query' => $query);
  175. $params = array_merge($params, $optParams);
  176. $data = $this->__call('search', array($params));
  177. if ($this->useObjects()) {
  178. return new PeopleFeed($data);
  179. } else {
  180. return $data;
  181. }
  182. }
  183. /**
  184. * Get a person's profile. (people.get)
  185. *
  186. * @param string $userId The ID of the person to get the profile for. The special value "me" can be used to indicate the authenticated user.
  187. * @return Person
  188. */
  189. public function get($userId, $optParams = array()) {
  190. $params = array('userId' => $userId);
  191. $params = array_merge($params, $optParams);
  192. $data = $this->__call('get', array($params));
  193. if ($this->useObjects()) {
  194. return new Person($data);
  195. } else {
  196. return $data;
  197. }
  198. }
  199. }
  200. /**
  201. * Service definition for Plus (v1).
  202. *
  203. * <p>
  204. * The Google+ API enables developers to build on top of the Google+ platform.
  205. * </p>
  206. *
  207. * <p>
  208. * For more information about this service, see the
  209. * <a href="http://developers.google.com/+/api/" target="_blank">API Documentation</a>
  210. * </p>
  211. *
  212. * @author Google, Inc.
  213. */
  214. class apiPlusService extends apiService {
  215. public $activities;
  216. public $comments;
  217. public $people;
  218. /**
  219. * Constructs the internal representation of the Plus service.
  220. *
  221. * @param apiClient apiClient
  222. */
  223. public function __construct(apiClient $apiClient) {
  224. $this->restBasePath = '/plus/v1/';
  225. $this->version = 'v1';
  226. $this->serviceName = 'plus';
  227. $apiClient->addService($this->serviceName, $this->version);
  228. $this->activities = new ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"orderBy": {"default": "recent", "enum": ["best", "recent"], "location": "query", "type": "string"}, "pageToken": {"type": "string", "location": "query"}, "language": {"default": "", "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.activities.search", "httpMethod": "GET", "path": "activities", "response": {"$ref": "ActivityFeed"}}, "list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "alt": {"default": "json", "enum": ["json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "collection": {"required": true, "enum": ["public"], "location": "path", "type": "string"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "plus.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "location": "query", "type": "string"}}, "id": "plus.activities.get", "httpMethod": "GET", "path": "activities/{activityId}", "response": {"$ref": "Activity"}}}}', true));
  229. $this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "location": "query", "type": "string"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}, "sortOrder": {"default": "ascending", "enum": ["ascending", "descending"], "location": "query", "type": "string"}}, "id": "plus.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
  230. $this->people = new PeopleServiceResource($this, $this->serviceName, 'people', json_decode('{"methods": {"listByActivity": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "collection": {"required": true, "enum": ["plusoners", "resharers"], "location": "path", "type": "string"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "plus.people.listByActivity", "httpMethod": "GET", "path": "activities/{activityId}/people/{collection}", "response": {"$ref": "PeopleFeed"}}, "search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "language": {"default": "", "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.people.search", "httpMethod": "GET", "path": "people", "response": {"$ref": "PeopleFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.people.get", "httpMethod": "GET", "path": "people/{userId}", "response": {"$ref": "Person"}}}}', true));
  231. }
  232. }
  233. class Acl extends apiModel {
  234. protected $__itemsType = 'PlusAclentryResource';
  235. protected $__itemsDataType = 'array';
  236. public $items;
  237. public $kind;
  238. public $description;
  239. public function setItems(/* array(PlusAclentryResource) */ $items) {
  240. $this->assertIsArray($items, 'PlusAclentryResource', __METHOD__);
  241. $this->items = $items;
  242. }
  243. public function getItems() {
  244. return $this->items;
  245. }
  246. public function setKind($kind) {
  247. $this->kind = $kind;
  248. }
  249. public function getKind() {
  250. return $this->kind;
  251. }
  252. public function setDescription($description) {
  253. $this->description = $description;
  254. }
  255. public function getDescription() {
  256. return $this->description;
  257. }
  258. }
  259. class Activity extends apiModel {
  260. public $placeName;
  261. public $kind;
  262. public $updated;
  263. protected $__providerType = 'ActivityProvider';
  264. protected $__providerDataType = '';
  265. public $provider;
  266. public $title;
  267. public $url;
  268. public $geocode;
  269. protected $__objectType = 'ActivityObject';
  270. protected $__objectDataType = '';
  271. public $object;
  272. public $placeId;
  273. protected $__actorType = 'ActivityActor';
  274. protected $__actorDataType = '';
  275. public $actor;
  276. public $id;
  277. protected $__accessType = 'Acl';
  278. protected $__accessDataType = '';
  279. public $access;
  280. public $verb;
  281. public $etag;
  282. public $radius;
  283. public $address;
  284. public $crosspostSource;
  285. public $annotation;
  286. public $published;
  287. public function setPlaceName($placeName) {
  288. $this->placeName = $placeName;
  289. }
  290. public function getPlaceName() {
  291. return $this->placeName;
  292. }
  293. public function setKind($kind) {
  294. $this->kind = $kind;
  295. }
  296. public function getKind() {
  297. return $this->kind;
  298. }
  299. public function setUpdated($updated) {
  300. $this->updated = $updated;
  301. }
  302. public function getUpdated() {
  303. return $this->updated;
  304. }
  305. public function setProvider(ActivityProvider $provider) {
  306. $this->provider = $provider;
  307. }
  308. public function getProvider() {
  309. return $this->provider;
  310. }
  311. public function setTitle($title) {
  312. $this->title = $title;
  313. }
  314. public function getTitle() {
  315. return $this->title;
  316. }
  317. public function setUrl($url) {
  318. $this->url = $url;
  319. }
  320. public function getUrl() {
  321. return $this->url;
  322. }
  323. public function setGeocode($geocode) {
  324. $this->geocode = $geocode;
  325. }
  326. public function getGeocode() {
  327. return $this->geocode;
  328. }
  329. public function setObject(ActivityObject $object) {
  330. $this->object = $object;
  331. }
  332. public function getObject() {
  333. return $this->object;
  334. }
  335. public function setPlaceId($placeId) {
  336. $this->placeId = $placeId;
  337. }
  338. public function getPlaceId() {
  339. return $this->placeId;
  340. }
  341. public function setActor(ActivityActor $actor) {
  342. $this->actor = $actor;
  343. }
  344. public function getActor() {
  345. return $this->actor;
  346. }
  347. public function setId($id) {
  348. $this->id = $id;
  349. }
  350. public function getId() {
  351. return $this->id;
  352. }
  353. public function setAccess(Acl $access) {
  354. $this->access = $access;
  355. }
  356. public function getAccess() {
  357. return $this->access;
  358. }
  359. public function setVerb($verb) {
  360. $this->verb = $verb;
  361. }
  362. public function getVerb() {
  363. return $this->verb;
  364. }
  365. public function setEtag($etag) {
  366. $this->etag = $etag;
  367. }
  368. public function getEtag() {
  369. return $this->etag;
  370. }
  371. public function setRadius($radius) {
  372. $this->radius = $radius;
  373. }
  374. public function getRadius() {
  375. return $this->radius;
  376. }
  377. public function setAddress($address) {
  378. $this->address = $address;
  379. }
  380. public function getAddress() {
  381. return $this->address;
  382. }
  383. public function setCrosspostSource($crosspostSource) {
  384. $this->crosspostSource = $crosspostSource;
  385. }
  386. public function getCrosspostSource() {
  387. return $this->crosspostSource;
  388. }
  389. public function setAnnotation($annotation) {
  390. $this->annotation = $annotation;
  391. }
  392. public function getAnnotation() {
  393. return $this->annotation;
  394. }
  395. public function setPublished($published) {
  396. $this->published = $published;
  397. }
  398. public function getPublished() {
  399. return $this->published;
  400. }
  401. }
  402. class ActivityActor extends apiModel {
  403. public $url;
  404. protected $__imageType = 'ActivityActorImage';
  405. protected $__imageDataType = '';
  406. public $image;
  407. public $displayName;
  408. public $id;
  409. protected $__nameType = 'ActivityActorName';
  410. protected $__nameDataType = '';
  411. public $name;
  412. public function setUrl($url) {
  413. $this->url = $url;
  414. }
  415. public function getUrl() {
  416. return $this->url;
  417. }
  418. public function setImage(ActivityActorImage $image) {
  419. $this->image = $image;
  420. }
  421. public function getImage() {
  422. return $this->image;
  423. }
  424. public function setDisplayName($displayName) {
  425. $this->displayName = $displayName;
  426. }
  427. public function getDisplayName() {
  428. return $this->displayName;
  429. }
  430. public function setId($id) {
  431. $this->id = $id;
  432. }
  433. public function getId() {
  434. return $this->id;
  435. }
  436. public function setName(ActivityActorName $name) {
  437. $this->name = $name;
  438. }
  439. public function getName() {
  440. return $this->name;
  441. }
  442. }
  443. class ActivityActorImage extends apiModel {
  444. public $url;
  445. public function setUrl($url) {
  446. $this->url = $url;
  447. }
  448. public function getUrl() {
  449. return $this->url;
  450. }
  451. }
  452. class ActivityActorName extends apiModel {
  453. public $givenName;
  454. public $familyName;
  455. public function setGivenName($givenName) {
  456. $this->givenName = $givenName;
  457. }
  458. public function getGivenName() {
  459. return $this->givenName;
  460. }
  461. public function setFamilyName($familyName) {
  462. $this->familyName = $familyName;
  463. }
  464. public function getFamilyName() {
  465. return $this->familyName;
  466. }
  467. }
  468. class ActivityFeed extends apiModel {
  469. public $nextPageToken;
  470. public $kind;
  471. public $title;
  472. protected $__itemsType = 'Activity';
  473. protected $__itemsDataType = 'array';
  474. public $items;
  475. public $updated;
  476. public $nextLink;
  477. public $etag;
  478. public $id;
  479. public $selfLink;
  480. public function setNextPageToken($nextPageToken) {
  481. $this->nextPageToken = $nextPageToken;
  482. }
  483. public function getNextPageToken() {
  484. return $this->nextPageToken;
  485. }
  486. public function setKind($kind) {
  487. $this->kind = $kind;
  488. }
  489. public function getKind() {
  490. return $this->kind;
  491. }
  492. public function setTitle($title) {
  493. $this->title = $title;
  494. }
  495. public function getTitle() {
  496. return $this->title;
  497. }
  498. public function setItems(/* array(Activity) */ $items) {
  499. $this->assertIsArray($items, 'Activity', __METHOD__);
  500. $this->items = $items;
  501. }
  502. public function getItems() {
  503. return $this->items;
  504. }
  505. public function setUpdated($updated) {
  506. $this->updated = $updated;
  507. }
  508. public function getUpdated() {
  509. return $this->updated;
  510. }
  511. public function setNextLink($nextLink) {
  512. $this->nextLink = $nextLink;
  513. }
  514. public function getNextLink() {
  515. return $this->nextLink;
  516. }
  517. public function setEtag($etag) {
  518. $this->etag = $etag;
  519. }
  520. public function getEtag() {
  521. return $this->etag;
  522. }
  523. public function setId($id) {
  524. $this->id = $id;
  525. }
  526. public function getId() {
  527. return $this->id;
  528. }
  529. public function setSelfLink($selfLink) {
  530. $this->selfLink = $selfLink;
  531. }
  532. public function getSelfLink() {
  533. return $this->selfLink;
  534. }
  535. }
  536. class ActivityObject extends apiModel {
  537. protected $__resharersType = 'ActivityObjectResharers';
  538. protected $__resharersDataType = '';
  539. public $resharers;
  540. protected $__attachmentsType = 'ActivityObjectAttachments';
  541. protected $__attachmentsDataType = 'array';
  542. public $attachments;
  543. public $originalContent;
  544. protected $__plusonersType = 'ActivityObjectPlusoners';
  545. protected $__plusonersDataType = '';
  546. public $plusoners;
  547. protected $__actorType = 'ActivityObjectActor';
  548. protected $__actorDataType = '';
  549. public $actor;
  550. public $content;
  551. public $url;
  552. protected $__repliesType = 'ActivityObjectReplies';
  553. protected $__repliesDataType = '';
  554. public $replies;
  555. public $id;
  556. public $objectType;
  557. public function setResharers(ActivityObjectResharers $resharers) {
  558. $this->resharers = $resharers;
  559. }
  560. public function getResharers() {
  561. return $this->resharers;
  562. }
  563. public function setAttachments(/* array(ActivityObjectAttachments) */ $attachments) {
  564. $this->assertIsArray($attachments, 'ActivityObjectAttachments', __METHOD__);
  565. $this->attachments = $attachments;
  566. }
  567. public function getAttachments() {
  568. return $this->attachments;
  569. }
  570. public function setOriginalContent($originalContent) {
  571. $this->originalContent = $originalContent;
  572. }
  573. public function getOriginalContent() {
  574. return $this->originalContent;
  575. }
  576. public function setPlusoners(ActivityObjectPlusoners $plusoners) {
  577. $this->plusoners = $plusoners;
  578. }
  579. public function getPlusoners() {
  580. return $this->plusoners;
  581. }
  582. public function setActor(ActivityObjectActor $actor) {
  583. $this->actor = $actor;
  584. }
  585. public function getActor() {
  586. return $this->actor;
  587. }
  588. public function setContent($content) {
  589. $this->content = $content;
  590. }
  591. public function getContent() {
  592. return $this->content;
  593. }
  594. public function setUrl($url) {
  595. $this->url = $url;
  596. }
  597. public function getUrl() {
  598. return $this->url;
  599. }
  600. public function setReplies(ActivityObjectReplies $replies) {
  601. $this->replies = $replies;
  602. }
  603. public function getReplies() {
  604. return $this->replies;
  605. }
  606. public function setId($id) {
  607. $this->id = $id;
  608. }
  609. public function getId() {
  610. return $this->id;
  611. }
  612. public function setObjectType($objectType) {
  613. $this->objectType = $objectType;
  614. }
  615. public function getObjectType() {
  616. return $this->objectType;
  617. }
  618. }
  619. class ActivityObjectActor extends apiModel {
  620. public $url;
  621. protected $__imageType = 'ActivityObjectActorImage';
  622. protected $__imageDataType = '';
  623. public $image;
  624. public $displayName;
  625. public $id;
  626. public function setUrl($url) {
  627. $this->url = $url;
  628. }
  629. public function getUrl() {
  630. return $this->url;
  631. }
  632. public function setImage(ActivityObjectActorImage $image) {
  633. $this->image = $image;
  634. }
  635. public function getImage() {
  636. return $this->image;
  637. }
  638. public function setDisplayName($displayName) {
  639. $this->displayName = $displayName;
  640. }
  641. public function getDisplayName() {
  642. return $this->displayName;
  643. }
  644. public function setId($id) {
  645. $this->id = $id;
  646. }
  647. public function getId() {
  648. return $this->id;
  649. }
  650. }
  651. class ActivityObjectActorImage extends apiModel {
  652. public $url;
  653. public function setUrl($url) {
  654. $this->url = $url;
  655. }
  656. public function getUrl() {
  657. return $this->url;
  658. }
  659. }
  660. class ActivityObjectAttachments extends apiModel {
  661. public $displayName;
  662. protected $__fullImageType = 'ActivityObjectAttachmentsFullImage';
  663. protected $__fullImageDataType = '';
  664. public $fullImage;
  665. public $url;
  666. protected $__imageType = 'ActivityObjectAttachmentsImage';
  667. protected $__imageDataType = '';
  668. public $image;
  669. public $content;
  670. protected $__embedType = 'ActivityObjectAttachmentsEmbed';
  671. protected $__embedDataType = '';
  672. public $embed;
  673. public $id;
  674. public $objectType;
  675. public function setDisplayName($displayName) {
  676. $this->displayName = $displayName;
  677. }
  678. public function getDisplayName() {
  679. return $this->displayName;
  680. }
  681. public function setFullImage(ActivityObjectAttachmentsFullImage $fullImage) {
  682. $this->fullImage = $fullImage;
  683. }
  684. public function getFullImage() {
  685. return $this->fullImage;
  686. }
  687. public function setUrl($url) {
  688. $this->url = $url;
  689. }
  690. public function getUrl() {
  691. return $this->url;
  692. }
  693. public function setImage(ActivityObjectAttachmentsImage $image) {
  694. $this->image = $image;
  695. }
  696. public function getImage() {
  697. return $this->image;
  698. }
  699. public function setContent($content) {
  700. $this->content = $content;
  701. }
  702. public function getContent() {
  703. return $this->content;
  704. }
  705. public function setEmbed(ActivityObjectAttachmentsEmbed $embed) {
  706. $this->embed = $embed;
  707. }
  708. public function getEmbed() {
  709. return $this->embed;
  710. }
  711. public function setId($id) {
  712. $this->id = $id;
  713. }
  714. public function getId() {
  715. return $this->id;
  716. }
  717. public function setObjectType($objectType) {
  718. $this->objectType = $objectType;
  719. }
  720. public function getObjectType() {
  721. return $this->objectType;
  722. }
  723. }
  724. class ActivityObjectAttachmentsEmbed extends apiModel {
  725. public $url;
  726. public $type;
  727. public function setUrl($url) {
  728. $this->url = $url;
  729. }
  730. public function getUrl() {
  731. return $this->url;
  732. }
  733. public function setType($type) {
  734. $this->type = $type;
  735. }
  736. public function getType() {
  737. return $this->type;
  738. }
  739. }
  740. class ActivityObjectAttachmentsFullImage extends apiModel {
  741. public $url;
  742. public $width;
  743. public $type;
  744. public $height;
  745. public function setUrl($url) {
  746. $this->url = $url;
  747. }
  748. public function getUrl() {
  749. return $this->url;
  750. }
  751. public function setWidth($width) {
  752. $this->width = $width;
  753. }
  754. public function getWidth() {
  755. return $this->width;
  756. }
  757. public function setType($type) {
  758. $this->type = $type;
  759. }
  760. public function getType() {
  761. return $this->type;
  762. }
  763. public function setHeight($height) {
  764. $this->height = $height;
  765. }
  766. public function getHeight() {
  767. return $this->height;
  768. }
  769. }
  770. class ActivityObjectAttachmentsImage extends apiModel {
  771. public $url;
  772. public $width;
  773. public $type;
  774. public $height;
  775. public function setUrl($url) {
  776. $this->url = $url;
  777. }
  778. public function getUrl() {
  779. return $this->url;
  780. }
  781. public function setWidth($width) {
  782. $this->width = $width;
  783. }
  784. public function getWidth() {
  785. return $this->width;
  786. }
  787. public function setType($type) {
  788. $this->type = $type;
  789. }
  790. public function getType() {
  791. return $this->type;
  792. }
  793. public function setHeight($height) {
  794. $this->height = $height;
  795. }
  796. public function getHeight() {
  797. return $this->height;
  798. }
  799. }
  800. class ActivityObjectPlusoners extends apiModel {
  801. public $totalItems;
  802. public $selfLink;
  803. public function setTotalItems($totalItems) {
  804. $this->totalItems = $totalItems;
  805. }
  806. public function getTotalItems() {
  807. return $this->totalItems;
  808. }
  809. public function setSelfLink($selfLink) {
  810. $this->selfLink = $selfLink;
  811. }
  812. public function getSelfLink() {
  813. return $this->selfLink;
  814. }
  815. }
  816. class ActivityObjectReplies extends apiModel {
  817. public $totalItems;
  818. public $selfLink;
  819. public function setTotalItems($totalItems) {
  820. $this->totalItems = $totalItems;
  821. }
  822. public function getTotalItems() {
  823. return $this->totalItems;
  824. }
  825. public function setSelfLink($selfLink) {
  826. $this->selfLink = $selfLink;
  827. }
  828. public function getSelfLink() {
  829. return $this->selfLink;
  830. }
  831. }
  832. class ActivityObjectResharers extends apiModel {
  833. public $totalItems;
  834. public $selfLink;
  835. public function setTotalItems($totalItems) {
  836. $this->totalItems = $totalItems;
  837. }
  838. public function getTotalItems() {
  839. return $this->totalItems;
  840. }
  841. public function setSelfLink($selfLink) {
  842. $this->selfLink = $selfLink;
  843. }
  844. public function getSelfLink() {
  845. return $this->selfLink;
  846. }
  847. }
  848. class ActivityProvider extends apiModel {
  849. public $title;
  850. public function setTitle($title) {
  851. $this->title = $title;
  852. }
  853. public function getTitle() {
  854. return $this->title;
  855. }
  856. }
  857. class Comment extends apiModel {
  858. protected $__inReplyToType = 'CommentInReplyTo';
  859. protected $__inReplyToDataType = 'array';
  860. public $inReplyTo;
  861. public $kind;
  862. protected $__objectType = 'CommentObject';
  863. protected $__objectDataType = '';
  864. public $object;
  865. public $updated;
  866. protected $__actorType = 'CommentActor';
  867. protected $__actorDataType = '';
  868. public $actor;
  869. public $verb;
  870. public $etag;
  871. public $published;
  872. public $id;
  873. public $selfLink;
  874. public function setInReplyTo(/* array(CommentInReplyTo) */ $inReplyTo) {
  875. $this->assertIsArray($inReplyTo, 'CommentInReplyTo', __METHOD__);
  876. $this->inReplyTo = $inReplyTo;
  877. }
  878. public function getInReplyTo() {
  879. return $this->inReplyTo;
  880. }
  881. public function setKind($kind) {
  882. $this->kind = $kind;
  883. }
  884. public function getKind() {
  885. return $this->kind;
  886. }
  887. public function setObject(CommentObject $object) {
  888. $this->object = $object;
  889. }
  890. public function getObject() {
  891. return $this->object;
  892. }
  893. public function setUpdated($updated) {
  894. $this->updated = $updated;
  895. }
  896. public function getUpdated() {
  897. return $this->updated;
  898. }
  899. public function setActor(CommentActor $actor) {
  900. $this->actor = $actor;
  901. }
  902. public function getActor() {
  903. return $this->actor;
  904. }
  905. public function setVerb($verb) {
  906. $this->verb = $verb;
  907. }
  908. public function getVerb() {
  909. return $this->verb;
  910. }
  911. public function setEtag($etag) {
  912. $this->etag = $etag;
  913. }
  914. public function getEtag() {
  915. return $this->etag;
  916. }
  917. public function setPublished($published) {
  918. $this->published = $published;
  919. }
  920. public function getPublished() {
  921. return $this->published;
  922. }
  923. public function setId($id) {
  924. $this->id = $id;
  925. }
  926. public function getId() {
  927. return $this->id;
  928. }
  929. public function setSelfLink($selfLink) {
  930. $this->selfLink = $selfLink;
  931. }
  932. public function getSelfLink() {
  933. return $this->selfLink;
  934. }
  935. }
  936. class CommentActor extends apiModel {
  937. public $url;
  938. protected $__imageType = 'CommentActorImage';
  939. protected $__imageDataType = '';
  940. public $image;
  941. public $displayName;
  942. public $id;
  943. public function setUrl($url) {
  944. $this->url = $url;
  945. }
  946. public function getUrl() {
  947. return $this->url;
  948. }
  949. public function setImage(CommentActorImage $image) {
  950. $this->image = $image;
  951. }
  952. public function getImage() {
  953. return $this->image;
  954. }
  955. public function setDisplayName($displayName) {
  956. $this->displayName = $displayName;
  957. }
  958. public function getDisplayName() {
  959. return $this->displayName;
  960. }
  961. public function setId($id) {
  962. $this->id = $id;
  963. }
  964. public function getId() {
  965. return $this->id;
  966. }
  967. }
  968. class CommentActorImage extends apiModel {
  969. public $url;
  970. public function setUrl($url) {
  971. $this->url = $url;
  972. }
  973. public function getUrl() {
  974. return $this->url;
  975. }
  976. }
  977. class CommentFeed extends apiModel {
  978. public $nextPageToken;
  979. public $kind;
  980. public $title;
  981. protected $__itemsType = 'Comment';
  982. protected $__itemsDataType = 'array';
  983. public $items;
  984. public $updated;
  985. public $nextLink;
  986. public $etag;
  987. public $id;
  988. public function setNextPageToken($nextPageToken) {
  989. $this->nextPageToken = $nextPageToken;
  990. }
  991. public function getNextPageToken() {
  992. return $this->nextPageToken;
  993. }
  994. public function setKind($kind) {
  995. $this->kind = $kind;
  996. }
  997. public function getKind() {
  998. return $this->kind;
  999. }
  1000. public function setTitle($title) {
  1001. $this->title = $title;
  1002. }
  1003. public function getTitle() {
  1004. return $this->title;
  1005. }
  1006. public function setItems(/* array(Comment) */ $items) {
  1007. $this->assertIsArray($items, 'Comment', __METHOD__);
  1008. $this->items = $items;
  1009. }
  1010. public function getItems() {
  1011. return $this->items;
  1012. }
  1013. public function setUpdated($updated) {
  1014. $this->updated = $updated;
  1015. }
  1016. public function getUpdated() {
  1017. return $this->updated;
  1018. }
  1019. public function setNextLink($nextLink) {
  1020. $this->nextLink = $nextLink;
  1021. }
  1022. public function getNextLink() {
  1023. return $this->nextLink;
  1024. }
  1025. public function setEtag($etag) {
  1026. $this->etag = $etag;
  1027. }
  1028. public function getEtag() {
  1029. return $this->etag;
  1030. }
  1031. public function setId($id) {
  1032. $this->id = $id;
  1033. }
  1034. public function getId() {
  1035. return $this->id;
  1036. }
  1037. }
  1038. class CommentInReplyTo extends apiModel {
  1039. public $url;
  1040. public $id;
  1041. public function setUrl($url) {
  1042. $this->url = $url;
  1043. }
  1044. public function getUrl() {
  1045. return $this->url;
  1046. }
  1047. public function setId($id) {
  1048. $this->id = $id;
  1049. }
  1050. public function getId() {
  1051. return $this->id;
  1052. }
  1053. }
  1054. class CommentObject extends apiModel {
  1055. public $content;
  1056. public $objectType;
  1057. public function setContent($content) {
  1058. $this->content = $content;
  1059. }
  1060. public function getContent() {
  1061. return $this->content;
  1062. }
  1063. public function setObjectType($objectType) {
  1064. $this->objectType = $objectType;
  1065. }
  1066. public function getObjectType() {
  1067. return $this->objectType;
  1068. }
  1069. }
  1070. class PeopleFeed extends apiModel {
  1071. public $nextPageToken;
  1072. public $kind;
  1073. public $title;
  1074. protected $__itemsType = 'Person';
  1075. protected $__itemsDataType = 'array';
  1076. public $items;
  1077. public $etag;
  1078. public $selfLink;
  1079. public function setNextPageToken($nextPageToken) {
  1080. $this->nextPageToken = $nextPageToken;
  1081. }
  1082. public function getNextPageToken() {
  1083. return $this->nextPageToken;
  1084. }
  1085. public function setKind($kind) {
  1086. $this->kind = $kind;
  1087. }
  1088. public function getKind() {
  1089. return $this->kind;
  1090. }
  1091. public function setTitle($title) {
  1092. $this->title = $title;
  1093. }
  1094. public function getTitle() {
  1095. return $this->title;
  1096. }
  1097. public function setItems(/* array(Person) */ $items) {
  1098. $this->assertIsArray($items, 'Person', __METHOD__);
  1099. $this->items = $items;
  1100. }
  1101. public function getItems() {
  1102. return $this->items;
  1103. }
  1104. public function setEtag($etag) {
  1105. $this->etag = $etag;
  1106. }
  1107. public function getEtag() {
  1108. return $this->etag;
  1109. }
  1110. public function setSelfLink($selfLink) {
  1111. $this->selfLink = $selfLink;
  1112. }
  1113. public function getSelfLink() {
  1114. return $this->selfLink;
  1115. }
  1116. }
  1117. class Person extends apiModel {
  1118. public $relationshipStatus;
  1119. protected $__organizationsType = 'PersonOrganizations';
  1120. protected $__organizationsDataType = 'array';
  1121. public $organizations;
  1122. public $kind;
  1123. public $displayName;
  1124. protected $__nameType = 'PersonName';
  1125. protected $__nameDataType = '';
  1126. public $name;
  1127. public $url;
  1128. public $gender;
  1129. public $aboutMe;
  1130. public $tagline;
  1131. protected $__urlsType = 'PersonUrls';
  1132. protected $__urlsDataType = 'array';
  1133. public $urls;
  1134. protected $__placesLivedType = 'PersonPlacesLived';
  1135. protected $__placesLivedDataType = 'array';
  1136. public $placesLived;
  1137. protected $__emailsType = 'PersonEmails';
  1138. protected $__emailsDataType = 'array';
  1139. public $emails;
  1140. public $nickname;
  1141. public $birthday;
  1142. public $etag;
  1143. protected $__imageType = 'PersonImage';
  1144. protected $__imageDataType = '';
  1145. public $image;
  1146. public $hasApp;
  1147. public $id;
  1148. public $languagesSpoken;
  1149. public $currentLocation;
  1150. public $objectType;
  1151. public function setRelationshipStatus($relationshipStatus) {
  1152. $this->relationshipStatus = $relationshipStatus;
  1153. }
  1154. public function getRelationshipStatus() {
  1155. return $this->relationshipStatus;
  1156. }
  1157. public function setOrganizations(/* array(PersonOrganizations) */ $organizations) {
  1158. $this->assertIsArray($organizations, 'PersonOrganizations', __METHOD__);
  1159. $this->organizations = $organizations;
  1160. }
  1161. public function getOrganizations() {
  1162. return $this->organizations;
  1163. }
  1164. public function setKind($kind) {
  1165. $this->kind = $kind;
  1166. }
  1167. public function getKind() {
  1168. return $this->kind;
  1169. }
  1170. public function setDisplayName($displayName) {
  1171. $this->displayName = $displayName;
  1172. }
  1173. public function getDisplayName() {
  1174. return $this->displayName;
  1175. }
  1176. public function setName(PersonName $name) {
  1177. $this->name = $name;
  1178. }
  1179. public function getName() {
  1180. return $this->name;
  1181. }
  1182. public function setUrl($url) {
  1183. $this->url = $url;
  1184. }
  1185. public function getUrl() {
  1186. return $this->url;
  1187. }
  1188. public function setGender($gender) {
  1189. $this->gender = $gender;
  1190. }
  1191. public function getGender() {
  1192. return $this->gender;
  1193. }
  1194. public function setAboutMe($aboutMe) {
  1195. $this->aboutMe = $aboutMe;
  1196. }
  1197. public function getAboutMe() {
  1198. return $this->aboutMe;
  1199. }
  1200. public function setTagline($tagline) {
  1201. $this->tagline = $tagline;
  1202. }
  1203. public function getTagline() {
  1204. return $this->tagline;
  1205. }
  1206. public function setUrls(/* array(PersonUrls) */ $urls) {
  1207. $this->assertIsArray($urls, 'PersonUrls', __METHOD__);
  1208. $this->urls = $urls;
  1209. }
  1210. public function getUrls() {
  1211. return $this->urls;
  1212. }
  1213. public function setPlacesLived(/* array(PersonPlacesLived) */ $placesLived) {
  1214. $this->assertIsArray($placesLived, 'PersonPlacesLived', __METHOD__);
  1215. $this->placesLived = $placesLived;
  1216. }
  1217. public function getPlacesLived() {
  1218. return $this->placesLived;
  1219. }
  1220. public function setEmails(/* array(PersonEmails) */ $emails) {
  1221. $this->assertIsArray($emails, 'PersonEmails', __METHOD__);
  1222. $this->emails = $emails;
  1223. }
  1224. public function getEmails() {
  1225. return $this->emails;
  1226. }
  1227. public function setNickname($nickname) {
  1228. $this->nickname = $nickname;
  1229. }
  1230. public function getNickname() {
  1231. return $this->nickname;
  1232. }
  1233. public function setBirthday($birthday) {
  1234. $this->birthday = $birthday;
  1235. }
  1236. public function getBirthday() {
  1237. return $this->birthday;
  1238. }
  1239. public function setEtag($etag) {
  1240. $this->etag = $etag;
  1241. }
  1242. public function getEtag() {
  1243. return $this->etag;
  1244. }
  1245. public function setImage(PersonImage $image) {
  1246. $this->image = $image;
  1247. }
  1248. public function getImage() {
  1249. return $this->image;
  1250. }
  1251. public function setHasApp($hasApp) {
  1252. $this->hasApp = $hasApp;
  1253. }
  1254. public function getHasApp() {
  1255. return $this->hasApp;
  1256. }
  1257. public function setId($id) {
  1258. $this->id = $id;
  1259. }
  1260. public function getId() {
  1261. return $this->id;
  1262. }
  1263. public function setLanguagesSpoken(/* array(string) */ $languagesSpoken) {
  1264. $this->assertIsArray($languagesSpoken, 'string', __METHOD__);
  1265. $this->languagesSpoken = $languagesSpoken;
  1266. }
  1267. public function getLanguagesSpoken() {
  1268. return $this->languagesSpoken;
  1269. }
  1270. public function setCurrentLocation($currentLocation) {
  1271. $this->currentLocation = $currentLocation;
  1272. }
  1273. public function getCurrentLocation() {
  1274. return $this->currentLocation;
  1275. }
  1276. public function setObjectType($objectType) {
  1277. $this->objectType = $objectType;
  1278. }
  1279. public function getObjectType() {
  1280. return $this->objectType;
  1281. }
  1282. }
  1283. class PersonEmails extends apiModel {
  1284. public $type;
  1285. public $primary;
  1286. public $value;
  1287. public function setType($type) {
  1288. $this->type = $type;
  1289. }
  1290. public function getType() {
  1291. return $this->type;
  1292. }
  1293. public function setPrimary($primary) {
  1294. $this->primary = $primary;
  1295. }
  1296. public function getPrimary() {
  1297. return $this->primary;
  1298. }
  1299. public function setValue($value) {
  1300. $this->value = $value;
  1301. }
  1302. public function getValue() {
  1303. return $this->value;
  1304. }
  1305. }
  1306. class PersonImage extends apiModel {
  1307. public $url;
  1308. public function setUrl($url) {
  1309. $this->url = $url;
  1310. }
  1311. public function getUrl() {
  1312. return $this->url;
  1313. }
  1314. }
  1315. class PersonName extends apiModel {
  1316. public $honorificPrefix;
  1317. public $middleName;
  1318. public $familyName;
  1319. public $formatted;
  1320. public $givenName;
  1321. public $honorificSuffix;
  1322. public function setHonorificPrefix($honorificPrefix) {
  1323. $this->honorificPrefix = $honorificPrefix;
  1324. }
  1325. public function getHonorificPrefix() {
  1326. return $this->honorificPrefix;
  1327. }
  1328. public function setMiddleName($middleName) {
  1329. $this->middleName = $middleName;
  1330. }
  1331. public function getMiddleName() {
  1332. return $this->middleName;
  1333. }
  1334. public function setFamilyName($familyName) {
  1335. $this->familyName = $familyName;
  1336. }
  1337. public function getFamilyName() {
  1338. return $this->familyName;
  1339. }
  1340. public function setFormatted($formatted) {
  1341. $this->formatted = $formatted;
  1342. }
  1343. public function getFormatted() {
  1344. return $this->formatted;
  1345. }
  1346. public function setGivenName($givenName) {
  1347. $this->givenName = $givenName;
  1348. }
  1349. public function getGivenName() {
  1350. return $this->givenName;
  1351. }
  1352. public function setHonorificSuffix($honorificSuffix) {
  1353. $this->honorificSuffix = $honorificSuffix;
  1354. }
  1355. public function getHonorificSuffix() {
  1356. return $this->honorificSuffix;
  1357. }
  1358. }
  1359. class PersonOrganizations extends apiModel {
  1360. public $startDate;
  1361. public $endDate;
  1362. public $description;
  1363. public $title;
  1364. public $primary;
  1365. public $location;
  1366. public $department;
  1367. public $type;
  1368. public $name;
  1369. public function setStartDate($startDate) {
  1370. $this->startDate = $startDate;
  1371. }
  1372. public function getStartDate() {
  1373. return $this->startDate;
  1374. }
  1375. public function setEndDate($endDate) {
  1376. $this->endDate = $endDate;
  1377. }
  1378. public function getEndDate() {
  1379. return $this->endDate;
  1380. }
  1381. public function setDescription($description) {
  1382. $this->description = $description;
  1383. }
  1384. public function getDescription() {
  1385. return $this->description;
  1386. }
  1387. public function setTitle($title) {
  1388. $this->title = $title;
  1389. }
  1390. public function getTitle() {
  1391. return $this->title;
  1392. }
  1393. public function setPrimary($primary) {
  1394. $this->primary = $primary;
  1395. }
  1396. public function getPrimary() {
  1397. return $this->primary;
  1398. }
  1399. public function setLocation($location) {
  1400. $this->location = $location;
  1401. }
  1402. public function getLocation() {
  1403. return $this->location;
  1404. }
  1405. public function setDepartment($department) {
  1406. $this->department = $department;
  1407. }
  1408. public function getDepartment() {
  1409. return $this->department;
  1410. }
  1411. public function setType($type) {
  1412. $this->type = $type;
  1413. }
  1414. public function getType() {
  1415. return $this->type;
  1416. }
  1417. public function setName($name) {
  1418. $this->name = $name;
  1419. }
  1420. public function getName() {
  1421. return $this->name;
  1422. }
  1423. }
  1424. class PersonPlacesLived extends apiModel {
  1425. public $primary;
  1426. public $value;
  1427. public function setPrimary($primary) {
  1428. $this->primary = $primary;
  1429. }
  1430. public function getPrimary() {
  1431. return $this->primary;
  1432. }
  1433. public function setValue($value) {
  1434. $this->value = $value;
  1435. }
  1436. public function getValue() {
  1437. return $this->value;
  1438. }
  1439. }
  1440. class PersonUrls extends apiModel {
  1441. public $type;
  1442. public $primary;
  1443. public $value;
  1444. public function setType($type) {
  1445. $this->type = $type;
  1446. }
  1447. public function getType() {
  1448. return $this->type;
  1449. }
  1450. public function setPrimary($primary) {
  1451. $this->primary = $primary;
  1452. }
  1453. public function getPrimary() {
  1454. return $this->primary;
  1455. }
  1456. public function setValue($value) {
  1457. $this->value = $value;
  1458. }
  1459. public function getValue() {
  1460. return $this->value;
  1461. }
  1462. }
  1463. class PlusAclentryResource extends apiModel {
  1464. public $type;
  1465. public $id;
  1466. public function setType($type) {
  1467. $this->type = $type;
  1468. }
  1469. public function getType() {
  1470. return $this->type;
  1471. }
  1472. public function setId($id) {
  1473. $this->id = $id;
  1474. }
  1475. public function getId() {
  1476. return $this->id;
  1477. }
  1478. }