| 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 |
|
| 17 |
/** |
| 18 |
* The "moments" collection of methods. |
| 19 |
* Typical usage is: |
| 20 |
* <code> |
| 21 |
* $plusService = new Google_PlusMomentsService(...); |
| 22 |
* $moments = $plusService->moments; |
| 23 |
* </code> |
| 24 |
*/ |
| 25 |
class Google_MomentsServiceResource extends Google_ServiceResource { |
| 26 |
|
| 27 |
|
| 28 |
/** |
| 29 |
* Record a user activity (e.g Bill watched a video on Youtube) (moments.insert) |
| 30 |
* |
| 31 |
* @param string $userId The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user. |
| 32 |
* @param string $collection The collection to which to write moments. |
| 33 |
* @param Google_Moment $postBody |
| 34 |
* @param array $optParams Optional parameters. |
| 35 |
* |
| 36 |
* @opt_param bool debug Return the moment as written. Should be used only for debugging. |
| 37 |
* @return Google_Moment |
| 38 |
*/ |
| 39 |
public function insert($userId, $collection, Google_Moment $postBody, $optParams = array()) { |
| 40 |
$params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody); |
| 41 |
$params = array_merge($params, $optParams); |
| 42 |
$data = $this->__call('insert', array($params)); |
| 43 |
if ($this->useObjects()) { |
| 44 |
return new Google_Moment($data); |
| 45 |
} else { |
| 46 |
return $data; |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* Service definition for Google_Plus (v1moments). |
| 53 |
* |
| 54 |
* <p> |
| 55 |
* The Google+ API enables developers to build on top of the Google+ platform. |
| 56 |
* </p> |
| 57 |
* |
| 58 |
* <p> |
| 59 |
* For more information about this service, see the |
| 60 |
* <a href="https://developers.google.com/+/history/" target="_blank">API Documentation</a> |
| 61 |
* </p> |
| 62 |
* |
| 63 |
* @author Google, Inc. |
| 64 |
*/ |
| 65 |
class Google_PlusMomentsService extends Google_Service { |
| 66 |
public $moments; |
| 67 |
/** |
| 68 |
* Constructs the internal representation of the Plus service. |
| 69 |
* |
| 70 |
* @param Google_Client $client |
| 71 |
*/ |
| 72 |
public function __construct(Google_Client $client) { |
| 73 |
$this->servicePath = 'plus/v1moments/people/'; |
| 74 |
$this->version = 'v1moments'; |
| 75 |
$this->serviceName = 'plus'; |
| 76 |
|
| 77 |
$client->addService($this->serviceName, $this->version); |
| 78 |
$this->moments = new Google_MomentsServiceResource($this, $this->serviceName, 'moments', |
| 79 |
json_decode('{"methods": {"insert": {"parameters": {"debug": {"type": "boolean", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["vault"]}}, "request": {"$ref": "Moment"}, "response": {"$ref": "Moment"}, "httpMethod": "POST", "path": "{userId}/moments/{collection}", "id": "plus.moments.insert"}}}', true)); |
| 80 |
|
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
class Google_ItemScope extends Google_Model { |
| 85 |
public $startDate; |
| 86 |
public $endDate; |
| 87 |
public $text; |
| 88 |
public $image; |
| 89 |
protected $__addressType = 'Google_ItemScope'; |
| 90 |
protected $__addressDataType = ''; |
| 91 |
public $address; |
| 92 |
public $birthDate; |
| 93 |
public $datePublished; |
| 94 |
public $addressLocality; |
| 95 |
public $duration; |
| 96 |
public $additionalName; |
| 97 |
public $worstRating; |
| 98 |
protected $__contributorType = 'Google_ItemScope'; |
| 99 |
protected $__contributorDataType = 'array'; |
| 100 |
public $contributor; |
| 101 |
public $thumbnailUrl; |
| 102 |
public $id; |
| 103 |
public $postOfficeBoxNumber; |
| 104 |
protected $__attendeesType = 'Google_ItemScope'; |
| 105 |
protected $__attendeesDataType = 'array'; |
| 106 |
public $attendees; |
| 107 |
protected $__authorType = 'Google_ItemScope'; |
| 108 |
protected $__authorDataType = 'array'; |
| 109 |
public $author; |
| 110 |
protected $__associated_mediaType = 'Google_ItemScope'; |
| 111 |
protected $__associated_mediaDataType = 'array'; |
| 112 |
public $associated_media; |
| 113 |
public $bestRating; |
| 114 |
public $addressCountry; |
| 115 |
public $width; |
| 116 |
public $streetAddress; |
| 117 |
protected $__locationType = 'Google_ItemScope'; |
| 118 |
protected $__locationDataType = ''; |
| 119 |
public $location; |
| 120 |
public $latitude; |
| 121 |
protected $__byArtistType = 'Google_ItemScope'; |
| 122 |
protected $__byArtistDataType = ''; |
| 123 |
public $byArtist; |
| 124 |
public $type; |
| 125 |
public $dateModified; |
| 126 |
public $contentSize; |
| 127 |
public $contentUrl; |
| 128 |
protected $__partOfTVSeriesType = 'Google_ItemScope'; |
| 129 |
protected $__partOfTVSeriesDataType = ''; |
| 130 |
public $partOfTVSeries; |
| 131 |
public $description; |
| 132 |
public $familyName; |
| 133 |
public $kind; |
| 134 |
public $dateCreated; |
| 135 |
public $postalCode; |
| 136 |
public $attendeeCount; |
| 137 |
protected $__inAlbumType = 'Google_ItemScope'; |
| 138 |
protected $__inAlbumDataType = ''; |
| 139 |
public $inAlbum; |
| 140 |
public $addressRegion; |
| 141 |
public $height; |
| 142 |
protected $__geoType = 'Google_ItemScope'; |
| 143 |
protected $__geoDataType = ''; |
| 144 |
public $geo; |
| 145 |
public $embedUrl; |
| 146 |
public $tickerSymbol; |
| 147 |
public $playerType; |
| 148 |
protected $__aboutType = 'Google_ItemScope'; |
| 149 |
protected $__aboutDataType = ''; |
| 150 |
public $about; |
| 151 |
public $givenName; |
| 152 |
public $name; |
| 153 |
protected $__performersType = 'Google_ItemScope'; |
| 154 |
protected $__performersDataType = 'array'; |
| 155 |
public $performers; |
| 156 |
public $url; |
| 157 |
public $gender; |
| 158 |
public $longitude; |
| 159 |
protected $__thumbnailType = 'Google_ItemScope'; |
| 160 |
protected $__thumbnailDataType = ''; |
| 161 |
public $thumbnail; |
| 162 |
public $caption; |
| 163 |
public $ratingValue; |
| 164 |
protected $__reviewRatingType = 'Google_ItemScope'; |
| 165 |
protected $__reviewRatingDataType = ''; |
| 166 |
public $reviewRating; |
| 167 |
protected $__audioType = 'Google_ItemScope'; |
| 168 |
protected $__audioDataType = ''; |
| 169 |
public $audio; |
| 170 |
public function setStartDate($startDate) { |
| 171 |
$this->startDate = $startDate; |
| 172 |
} |
| 173 |
public function getStartDate() { |
| 174 |
return $this->startDate; |
| 175 |
} |
| 176 |
public function setEndDate($endDate) { |
| 177 |
$this->endDate = $endDate; |
| 178 |
} |
| 179 |
public function getEndDate() { |
| 180 |
return $this->endDate; |
| 181 |
} |
| 182 |
public function setText($text) { |
| 183 |
$this->text = $text; |
| 184 |
} |
| 185 |
public function getText() { |
| 186 |
return $this->text; |
| 187 |
} |
| 188 |
public function setImage($image) { |
| 189 |
$this->image = $image; |
| 190 |
} |
| 191 |
public function getImage() { |
| 192 |
return $this->image; |
| 193 |
} |
| 194 |
public function setAddress(Google_ItemScope $address) { |
| 195 |
$this->address = $address; |
| 196 |
} |
| 197 |
public function getAddress() { |
| 198 |
return $this->address; |
| 199 |
} |
| 200 |
public function setBirthDate($birthDate) { |
| 201 |
$this->birthDate = $birthDate; |
| 202 |
} |
| 203 |
public function getBirthDate() { |
| 204 |
return $this->birthDate; |
| 205 |
} |
| 206 |
public function setDatePublished($datePublished) { |
| 207 |
$this->datePublished = $datePublished; |
| 208 |
} |
| 209 |
public function getDatePublished() { |
| 210 |
return $this->datePublished; |
| 211 |
} |
| 212 |
public function setAddressLocality($addressLocality) { |
| 213 |
$this->addressLocality = $addressLocality; |
| 214 |
} |
| 215 |
public function getAddressLocality() { |
| 216 |
return $this->addressLocality; |
| 217 |
} |
| 218 |
public function setDuration($duration) { |
| 219 |
$this->duration = $duration; |
| 220 |
} |
| 221 |
public function getDuration() { |
| 222 |
return $this->duration; |
| 223 |
} |
| 224 |
public function setAdditionalName(/* array(Google_string) */ $additionalName) { |
| 225 |
$this->assertIsArray($additionalName, 'Google_string', __METHOD__); |
| 226 |
$this->additionalName = $additionalName; |
| 227 |
} |
| 228 |
public function getAdditionalName() { |
| 229 |
return $this->additionalName; |
| 230 |
} |
| 231 |
public function setWorstRating($worstRating) { |
| 232 |
$this->worstRating = $worstRating; |
| 233 |
} |
| 234 |
public function getWorstRating() { |
| 235 |
return $this->worstRating; |
| 236 |
} |
| 237 |
public function setContributor(/* array(Google_ItemScope) */ $contributor) { |
| 238 |
$this->assertIsArray($contributor, 'Google_ItemScope', __METHOD__); |
| 239 |
$this->contributor = $contributor; |
| 240 |
} |
| 241 |
public function getContributor() { |
| 242 |
return $this->contributor; |
| 243 |
} |
| 244 |
public function setThumbnailUrl($thumbnailUrl) { |
| 245 |
$this->thumbnailUrl = $thumbnailUrl; |
| 246 |
} |
| 247 |
public function getThumbnailUrl() { |
| 248 |
return $this->thumbnailUrl; |
| 249 |
} |
| 250 |
public function setId($id) { |
| 251 |
$this->id = $id; |
| 252 |
} |
| 253 |
public function getId() { |
| 254 |
return $this->id; |
| 255 |
} |
| 256 |
public function setPostOfficeBoxNumber($postOfficeBoxNumber) { |
| 257 |
$this->postOfficeBoxNumber = $postOfficeBoxNumber; |
| 258 |
} |
| 259 |
public function getPostOfficeBoxNumber() { |
| 260 |
return $this->postOfficeBoxNumber; |
| 261 |
} |
| 262 |
public function setAttendees(/* array(Google_ItemScope) */ $attendees) { |
| 263 |
$this->assertIsArray($attendees, 'Google_ItemScope', __METHOD__); |
| 264 |
$this->attendees = $attendees; |
| 265 |
} |
| 266 |
public function getAttendees() { |
| 267 |
return $this->attendees; |
| 268 |
} |
| 269 |
public function setAuthor(/* array(Google_ItemScope) */ $author) { |
| 270 |
$this->assertIsArray($author, 'Google_ItemScope', __METHOD__); |
| 271 |
$this->author = $author; |
| 272 |
} |
| 273 |
public function getAuthor() { |
| 274 |
return $this->author; |
| 275 |
} |
| 276 |
public function setAssociated_media(/* array(Google_ItemScope) */ $associated_media) { |
| 277 |
$this->assertIsArray($associated_media, 'Google_ItemScope', __METHOD__); |
| 278 |
$this->associated_media = $associated_media; |
| 279 |
} |
| 280 |
public function getAssociated_media() { |
| 281 |
return $this->associated_media; |
| 282 |
} |
| 283 |
public function setBestRating($bestRating) { |
| 284 |
$this->bestRating = $bestRating; |
| 285 |
} |
| 286 |
public function getBestRating() { |
| 287 |
return $this->bestRating; |
| 288 |
} |
| 289 |
public function setAddressCountry($addressCountry) { |
| 290 |
$this->addressCountry = $addressCountry; |
| 291 |
} |
| 292 |
public function getAddressCountry() { |
| 293 |
return $this->addressCountry; |
| 294 |
} |
| 295 |
public function setWidth($width) { |
| 296 |
$this->width = $width; |
| 297 |
} |
| 298 |
public function getWidth() { |
| 299 |
return $this->width; |
| 300 |
} |
| 301 |
public function setStreetAddress($streetAddress) { |
| 302 |
$this->streetAddress = $streetAddress; |
| 303 |
} |
| 304 |
public function getStreetAddress() { |
| 305 |
return $this->streetAddress; |
| 306 |
} |
| 307 |
public function setLocation(Google_ItemScope $location) { |
| 308 |
$this->location = $location; |
| 309 |
} |
| 310 |
public function getLocation() { |
| 311 |
return $this->location; |
| 312 |
} |
| 313 |
public function setLatitude($latitude) { |
| 314 |
$this->latitude = $latitude; |
| 315 |
} |
| 316 |
public function getLatitude() { |
| 317 |
return $this->latitude; |
| 318 |
} |
| 319 |
public function setByArtist(Google_ItemScope $byArtist) { |
| 320 |
$this->byArtist = $byArtist; |
| 321 |
} |
| 322 |
public function getByArtist() { |
| 323 |
return $this->byArtist; |
| 324 |
} |
| 325 |
public function setType($type) { |
| 326 |
$this->type = $type; |
| 327 |
} |
| 328 |
public function getType() { |
| 329 |
return $this->type; |
| 330 |
} |
| 331 |
public function setDateModified($dateModified) { |
| 332 |
$this->dateModified = $dateModified; |
| 333 |
} |
| 334 |
public function getDateModified() { |
| 335 |
return $this->dateModified; |
| 336 |
} |
| 337 |
public function setContentSize($contentSize) { |
| 338 |
$this->contentSize = $contentSize; |
| 339 |
} |
| 340 |
public function getContentSize() { |
| 341 |
return $this->contentSize; |
| 342 |
} |
| 343 |
public function setContentUrl($contentUrl) { |
| 344 |
$this->contentUrl = $contentUrl; |
| 345 |
} |
| 346 |
public function getContentUrl() { |
| 347 |
return $this->contentUrl; |
| 348 |
} |
| 349 |
public function setPartOfTVSeries(Google_ItemScope $partOfTVSeries) { |
| 350 |
$this->partOfTVSeries = $partOfTVSeries; |
| 351 |
} |
| 352 |
public function getPartOfTVSeries() { |
| 353 |
return $this->partOfTVSeries; |
| 354 |
} |
| 355 |
public function setDescription($description) { |
| 356 |
$this->description = $description; |
| 357 |
} |
| 358 |
public function getDescription() { |
| 359 |
return $this->description; |
| 360 |
} |
| 361 |
public function setFamilyName($familyName) { |
| 362 |
$this->familyName = $familyName; |
| 363 |
} |
| 364 |
public function getFamilyName() { |
| 365 |
return $this->familyName; |
| 366 |
} |
| 367 |
public function setKind($kind) { |
| 368 |
$this->kind = $kind; |
| 369 |
} |
| 370 |
public function getKind() { |
| 371 |
return $this->kind; |
| 372 |
} |
| 373 |
public function setDateCreated($dateCreated) { |
| 374 |
$this->dateCreated = $dateCreated; |
| 375 |
} |
| 376 |
public function getDateCreated() { |
| 377 |
return $this->dateCreated; |
| 378 |
} |
| 379 |
public function setPostalCode($postalCode) { |
| 380 |
$this->postalCode = $postalCode; |
| 381 |
} |
| 382 |
public function getPostalCode() { |
| 383 |
return $this->postalCode; |
| 384 |
} |
| 385 |
public function setAttendeeCount($attendeeCount) { |
| 386 |
$this->attendeeCount = $attendeeCount; |
| 387 |
} |
| 388 |
public function getAttendeeCount() { |
| 389 |
return $this->attendeeCount; |
| 390 |
} |
| 391 |
public function setInAlbum(Google_ItemScope $inAlbum) { |
| 392 |
$this->inAlbum = $inAlbum; |
| 393 |
} |
| 394 |
public function getInAlbum() { |
| 395 |
return $this->inAlbum; |
| 396 |
} |
| 397 |
public function setAddressRegion($addressRegion) { |
| 398 |
$this->addressRegion = $addressRegion; |
| 399 |
} |
| 400 |
public function getAddressRegion() { |
| 401 |
return $this->addressRegion; |
| 402 |
} |
| 403 |
public function setHeight($height) { |
| 404 |
$this->height = $height; |
| 405 |
} |
| 406 |
public function getHeight() { |
| 407 |
return $this->height; |
| 408 |
} |
| 409 |
public function setGeo(Google_ItemScope $geo) { |
| 410 |
$this->geo = $geo; |
| 411 |
} |
| 412 |
public function getGeo() { |
| 413 |
return $this->geo; |
| 414 |
} |
| 415 |
public function setEmbedUrl($embedUrl) { |
| 416 |
$this->embedUrl = $embedUrl; |
| 417 |
} |
| 418 |
public function getEmbedUrl() { |
| 419 |
return $this->embedUrl; |
| 420 |
} |
| 421 |
public function setTickerSymbol($tickerSymbol) { |
| 422 |
$this->tickerSymbol = $tickerSymbol; |
| 423 |
} |
| 424 |
public function getTickerSymbol() { |
| 425 |
return $this->tickerSymbol; |
| 426 |
} |
| 427 |
public function setPlayerType($playerType) { |
| 428 |
$this->playerType = $playerType; |
| 429 |
} |
| 430 |
public function getPlayerType() { |
| 431 |
return $this->playerType; |
| 432 |
} |
| 433 |
public function setAbout(Google_ItemScope $about) { |
| 434 |
$this->about = $about; |
| 435 |
} |
| 436 |
public function getAbout() { |
| 437 |
return $this->about; |
| 438 |
} |
| 439 |
public function setGivenName($givenName) { |
| 440 |
$this->givenName = $givenName; |
| 441 |
} |
| 442 |
public function getGivenName() { |
| 443 |
return $this->givenName; |
| 444 |
} |
| 445 |
public function setName($name) { |
| 446 |
$this->name = $name; |
| 447 |
} |
| 448 |
public function getName() { |
| 449 |
return $this->name; |
| 450 |
} |
| 451 |
public function setPerformers(/* array(Google_ItemScope) */ $performers) { |
| 452 |
$this->assertIsArray($performers, 'Google_ItemScope', __METHOD__); |
| 453 |
$this->performers = $performers; |
| 454 |
} |
| 455 |
public function getPerformers() { |
| 456 |
return $this->performers; |
| 457 |
} |
| 458 |
public function setUrl($url) { |
| 459 |
$this->url = $url; |
| 460 |
} |
| 461 |
public function getUrl() { |
| 462 |
return $this->url; |
| 463 |
} |
| 464 |
public function setGender($gender) { |
| 465 |
$this->gender = $gender; |
| 466 |
} |
| 467 |
public function getGender() { |
| 468 |
return $this->gender; |
| 469 |
} |
| 470 |
public function setLongitude($longitude) { |
| 471 |
$this->longitude = $longitude; |
| 472 |
} |
| 473 |
public function getLongitude() { |
| 474 |
return $this->longitude; |
| 475 |
} |
| 476 |
public function setThumbnail(Google_ItemScope $thumbnail) { |
| 477 |
$this->thumbnail = $thumbnail; |
| 478 |
} |
| 479 |
public function getThumbnail() { |
| 480 |
return $this->thumbnail; |
| 481 |
} |
| 482 |
public function setCaption($caption) { |
| 483 |
$this->caption = $caption; |
| 484 |
} |
| 485 |
public function getCaption() { |
| 486 |
return $this->caption; |
| 487 |
} |
| 488 |
public function setRatingValue($ratingValue) { |
| 489 |
$this->ratingValue = $ratingValue; |
| 490 |
} |
| 491 |
public function getRatingValue() { |
| 492 |
return $this->ratingValue; |
| 493 |
} |
| 494 |
public function setReviewRating(Google_ItemScope $reviewRating) { |
| 495 |
$this->reviewRating = $reviewRating; |
| 496 |
} |
| 497 |
public function getReviewRating() { |
| 498 |
return $this->reviewRating; |
| 499 |
} |
| 500 |
public function setAudio(Google_ItemScope $audio) { |
| 501 |
$this->audio = $audio; |
| 502 |
} |
| 503 |
public function getAudio() { |
| 504 |
return $this->audio; |
| 505 |
} |
| 506 |
} |
| 507 |
|
| 508 |
class Google_Moment extends Google_Model { |
| 509 |
public $startDate; |
| 510 |
public $kind; |
| 511 |
protected $__targetType = 'Google_ItemScope'; |
| 512 |
protected $__targetDataType = ''; |
| 513 |
public $target; |
| 514 |
protected $__verbType = 'Google_MomentVerb'; |
| 515 |
protected $__verbDataType = ''; |
| 516 |
public $verb; |
| 517 |
protected $__resultType = 'Google_ItemScope'; |
| 518 |
protected $__resultDataType = ''; |
| 519 |
public $result; |
| 520 |
public $type; |
| 521 |
public function setStartDate($startDate) { |
| 522 |
$this->startDate = $startDate; |
| 523 |
} |
| 524 |
public function getStartDate() { |
| 525 |
return $this->startDate; |
| 526 |
} |
| 527 |
public function setKind($kind) { |
| 528 |
$this->kind = $kind; |
| 529 |
} |
| 530 |
public function getKind() { |
| 531 |
return $this->kind; |
| 532 |
} |
| 533 |
public function setTarget(Google_ItemScope $target) { |
| 534 |
$this->target = $target; |
| 535 |
} |
| 536 |
public function getTarget() { |
| 537 |
return $this->target; |
| 538 |
} |
| 539 |
public function setVerb(Google_MomentVerb $verb) { |
| 540 |
$this->verb = $verb; |
| 541 |
} |
| 542 |
public function getVerb() { |
| 543 |
return $this->verb; |
| 544 |
} |
| 545 |
public function setResult(Google_ItemScope $result) { |
| 546 |
$this->result = $result; |
| 547 |
} |
| 548 |
public function getResult() { |
| 549 |
return $this->result; |
| 550 |
} |
| 551 |
public function setType($type) { |
| 552 |
$this->type = $type; |
| 553 |
} |
| 554 |
public function getType() { |
| 555 |
return $this->type; |
| 556 |
} |
| 557 |
} |
| 558 |
|
| 559 |
class Google_MomentVerb extends Google_Model { |
| 560 |
public $url; |
| 561 |
public function setUrl($url) { |
| 562 |
$this->url = $url; |
| 563 |
} |
| 564 |
public function getUrl() { |
| 565 |
return $this->url; |
| 566 |
} |
| 567 |
} |
| 568 |
|