PluginProbe
Gianism / 1.0
Gianism v1.0
4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.4.0 5.0.0 5.0.1 5.0.2 5.1.0 5.2.1 5.2.2 5.3.0 6.0.0 6.0.1 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 65 releases
gianism / sdks / google / contrib / apiPlusService.php

apiPlusService.php in Gianism 1.0, at sdks/google/contrib/apiPlusService.php

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