1<?php 2/* 3 * Copyright 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/** 19 * Service definition for Pubsub (v1beta1). 20 * 21 * <p> 22 * Provides reliable, many-to-many, asynchronous messaging between applications.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/pubsub/v1beta1" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_Pubsub extends Google_Service 32{ 33 /** View and manage your data across Google Cloud Platform services. */ 34 const CLOUD_PLATFORM = 35 "https://www.googleapis.com/auth/cloud-platform"; 36 /** View and manage Pub/Sub topics and subscriptions. */ 37 const PUBSUB = 38 "https://www.googleapis.com/auth/pubsub"; 39 40 public $subscriptions; 41 public $topics; 42 43 44 /** 45 * Constructs the internal representation of the Pubsub service. 46 * 47 * @param Google_Client $client 48 */ 49 public function __construct(Google_Client $client) 50 { 51 parent::__construct($client); 52 $this->servicePath = 'pubsub/v1beta1/'; 53 $this->version = 'v1beta1'; 54 $this->serviceName = 'pubsub'; 55 56 $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( 57 $this, 58 $this->serviceName, 59 'subscriptions', 60 array( 61 'methods' => array( 62 'acknowledge' => array( 63 'path' => 'subscriptions/acknowledge', 64 'httpMethod' => 'POST', 65 'parameters' => array(), 66 ),'create' => array( 67 'path' => 'subscriptions', 68 'httpMethod' => 'POST', 69 'parameters' => array(), 70 ),'delete' => array( 71 'path' => 'subscriptions/{+subscription}', 72 'httpMethod' => 'DELETE', 73 'parameters' => array( 74 'subscription' => array( 75 'location' => 'path', 76 'type' => 'string', 77 'required' => true, 78 ), 79 ), 80 ),'get' => array( 81 'path' => 'subscriptions/{+subscription}', 82 'httpMethod' => 'GET', 83 'parameters' => array( 84 'subscription' => array( 85 'location' => 'path', 86 'type' => 'string', 87 'required' => true, 88 ), 89 ), 90 ),'list' => array( 91 'path' => 'subscriptions', 92 'httpMethod' => 'GET', 93 'parameters' => array( 94 'pageToken' => array( 95 'location' => 'query', 96 'type' => 'string', 97 ), 98 'maxResults' => array( 99 'location' => 'query', 100 'type' => 'integer', 101 ), 102 'query' => array( 103 'location' => 'query', 104 'type' => 'string', 105 ), 106 ), 107 ),'modifyAckDeadline' => array( 108 'path' => 'subscriptions/modifyAckDeadline', 109 'httpMethod' => 'POST', 110 'parameters' => array(), 111 ),'modifyPushConfig' => array( 112 'path' => 'subscriptions/modifyPushConfig', 113 'httpMethod' => 'POST', 114 'parameters' => array(), 115 ),'pull' => array( 116 'path' => 'subscriptions/pull', 117 'httpMethod' => 'POST', 118 'parameters' => array(), 119 ),'pullBatch' => array( 120 'path' => 'subscriptions/pullBatch', 121 'httpMethod' => 'POST', 122 'parameters' => array(), 123 ), 124 ) 125 ) 126 ); 127 $this->topics = new Google_Service_Pubsub_Topics_Resource( 128 $this, 129 $this->serviceName, 130 'topics', 131 array( 132 'methods' => array( 133 'create' => array( 134 'path' => 'topics', 135 'httpMethod' => 'POST', 136 'parameters' => array(), 137 ),'delete' => array( 138 'path' => 'topics/{+topic}', 139 'httpMethod' => 'DELETE', 140 'parameters' => array( 141 'topic' => array( 142 'location' => 'path', 143 'type' => 'string', 144 'required' => true, 145 ), 146 ), 147 ),'get' => array( 148 'path' => 'topics/{+topic}', 149 'httpMethod' => 'GET', 150 'parameters' => array( 151 'topic' => array( 152 'location' => 'path', 153 'type' => 'string', 154 'required' => true, 155 ), 156 ), 157 ),'list' => array( 158 'path' => 'topics', 159 'httpMethod' => 'GET', 160 'parameters' => array( 161 'pageToken' => array( 162 'location' => 'query', 163 'type' => 'string', 164 ), 165 'maxResults' => array( 166 'location' => 'query', 167 'type' => 'integer', 168 ), 169 'query' => array( 170 'location' => 'query', 171 'type' => 'string', 172 ), 173 ), 174 ),'publish' => array( 175 'path' => 'topics/publish', 176 'httpMethod' => 'POST', 177 'parameters' => array(), 178 ),'publishBatch' => array( 179 'path' => 'topics/publishBatch', 180 'httpMethod' => 'POST', 181 'parameters' => array(), 182 ), 183 ) 184 ) 185 ); 186 } 187} 188 189 190/** 191 * The "subscriptions" collection of methods. 192 * Typical usage is: 193 * <code> 194 * $pubsubService = new Google_Service_Pubsub(...); 195 * $subscriptions = $pubsubService->subscriptions; 196 * </code> 197 */ 198class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource 199{ 200 201 /** 202 * Acknowledges a particular received message: the Pub/Sub system can remove the 203 * given message from the subscription. Acknowledging a message whose Ack 204 * deadline has expired may succeed, but the message could have been already 205 * redelivered. Acknowledging a message more than once will not result in an 206 * error. This is only used for messages received via pull. 207 * (subscriptions.acknowledge) 208 * 209 * @param Google_AcknowledgeRequest $postBody 210 * @param array $optParams Optional parameters. 211 */ 212 public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) 213 { 214 $params = array('postBody' => $postBody); 215 $params = array_merge($params, $optParams); 216 return $this->call('acknowledge', array($params)); 217 } 218 219 /** 220 * Creates a subscription on a given topic for a given subscriber. If the 221 * subscription already exists, returns ALREADY_EXISTS. If the corresponding 222 * topic doesn't exist, returns NOT_FOUND. 223 * 224 * If the name is not provided in the request, the server will assign a random 225 * name for this subscription on the same project as the topic. 226 * (subscriptions.create) 227 * 228 * @param Google_Subscription $postBody 229 * @param array $optParams Optional parameters. 230 * @return Google_Service_Pubsub_Subscription 231 */ 232 public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) 233 { 234 $params = array('postBody' => $postBody); 235 $params = array_merge($params, $optParams); 236 return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); 237 } 238 239 /** 240 * Deletes an existing subscription. All pending messages in the subscription 241 * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. 242 * (subscriptions.delete) 243 * 244 * @param string $subscription The subscription to delete. 245 * @param array $optParams Optional parameters. 246 */ 247 public function delete($subscription, $optParams = array()) 248 { 249 $params = array('subscription' => $subscription); 250 $params = array_merge($params, $optParams); 251 return $this->call('delete', array($params)); 252 } 253 254 /** 255 * Gets the configuration details of a subscription. (subscriptions.get) 256 * 257 * @param string $subscription The name of the subscription to get. 258 * @param array $optParams Optional parameters. 259 * @return Google_Service_Pubsub_Subscription 260 */ 261 public function get($subscription, $optParams = array()) 262 { 263 $params = array('subscription' => $subscription); 264 $params = array_merge($params, $optParams); 265 return $this->call('get', array($params), "Google_Service_Pubsub_Subscription"); 266 } 267 268 /** 269 * Lists matching subscriptions. (subscriptions.listSubscriptions) 270 * 271 * @param array $optParams Optional parameters. 272 * 273 * @opt_param string pageToken The value obtained in the last 274 * ListSubscriptionsResponse for continuation. 275 * @opt_param int maxResults Maximum number of subscriptions to return. 276 * @opt_param string query A valid label query expression. 277 * @return Google_Service_Pubsub_ListSubscriptionsResponse 278 */ 279 public function listSubscriptions($optParams = array()) 280 { 281 $params = array(); 282 $params = array_merge($params, $optParams); 283 return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); 284 } 285 286 /** 287 * Modifies the Ack deadline for a message received from a pull request. 288 * (subscriptions.modifyAckDeadline) 289 * 290 * @param Google_ModifyAckDeadlineRequest $postBody 291 * @param array $optParams Optional parameters. 292 */ 293 public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) 294 { 295 $params = array('postBody' => $postBody); 296 $params = array_merge($params, $optParams); 297 return $this->call('modifyAckDeadline', array($params)); 298 } 299 300 /** 301 * Modifies the PushConfig for a specified subscription. This method can be used 302 * to suspend the flow of messages to an end point by clearing the PushConfig 303 * field in the request. Messages will be accumulated for delivery even if no 304 * push configuration is defined or while the configuration is modified. 305 * (subscriptions.modifyPushConfig) 306 * 307 * @param Google_ModifyPushConfigRequest $postBody 308 * @param array $optParams Optional parameters. 309 */ 310 public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) 311 { 312 $params = array('postBody' => $postBody); 313 $params = array_merge($params, $optParams); 314 return $this->call('modifyPushConfig', array($params)); 315 } 316 317 /** 318 * Pulls a single message from the server. If return_immediately is true, and no 319 * messages are available in the subscription, this method returns 320 * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no 321 * messages are available in a reasonable amount of time (to reduce system 322 * load). (subscriptions.pull) 323 * 324 * @param Google_PullRequest $postBody 325 * @param array $optParams Optional parameters. 326 * @return Google_Service_Pubsub_PullResponse 327 */ 328 public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) 329 { 330 $params = array('postBody' => $postBody); 331 $params = array_merge($params, $optParams); 332 return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); 333 } 334 335 /** 336 * Pulls messages from the server. Returns an empty list if there are no 337 * messages available in the backlog. The system is free to return UNAVAILABLE 338 * if there too many pull requests outstanding for a given subscription. 339 * (subscriptions.pullBatch) 340 * 341 * @param Google_PullBatchRequest $postBody 342 * @param array $optParams Optional parameters. 343 * @return Google_Service_Pubsub_PullBatchResponse 344 */ 345 public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) 346 { 347 $params = array('postBody' => $postBody); 348 $params = array_merge($params, $optParams); 349 return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); 350 } 351} 352 353/** 354 * The "topics" collection of methods. 355 * Typical usage is: 356 * <code> 357 * $pubsubService = new Google_Service_Pubsub(...); 358 * $topics = $pubsubService->topics; 359 * </code> 360 */ 361class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource 362{ 363 364 /** 365 * Creates the given topic with the given name. (topics.create) 366 * 367 * @param Google_Topic $postBody 368 * @param array $optParams Optional parameters. 369 * @return Google_Service_Pubsub_Topic 370 */ 371 public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) 372 { 373 $params = array('postBody' => $postBody); 374 $params = array_merge($params, $optParams); 375 return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); 376 } 377 378 /** 379 * Deletes the topic with the given name. All subscriptions to this topic are 380 * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is 381 * deleted, a new topic may be created with the same name. (topics.delete) 382 * 383 * @param string $topic Name of the topic to delete. 384 * @param array $optParams Optional parameters. 385 */ 386 public function delete($topic, $optParams = array()) 387 { 388 $params = array('topic' => $topic); 389 $params = array_merge($params, $optParams); 390 return $this->call('delete', array($params)); 391 } 392 393 /** 394 * Gets the configuration of a topic. Since the topic only has the name 395 * attribute, this method is only useful to check the existence of a topic. If 396 * other attributes are added in the future, they will be returned here. 397 * (topics.get) 398 * 399 * @param string $topic The name of the topic to get. 400 * @param array $optParams Optional parameters. 401 * @return Google_Service_Pubsub_Topic 402 */ 403 public function get($topic, $optParams = array()) 404 { 405 $params = array('topic' => $topic); 406 $params = array_merge($params, $optParams); 407 return $this->call('get', array($params), "Google_Service_Pubsub_Topic"); 408 } 409 410 /** 411 * Lists matching topics. (topics.listTopics) 412 * 413 * @param array $optParams Optional parameters. 414 * 415 * @opt_param string pageToken The value obtained in the last ListTopicsResponse 416 * for continuation. 417 * @opt_param int maxResults Maximum number of topics to return. 418 * @opt_param string query A valid label query expression. 419 * @return Google_Service_Pubsub_ListTopicsResponse 420 */ 421 public function listTopics($optParams = array()) 422 { 423 $params = array(); 424 $params = array_merge($params, $optParams); 425 return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); 426 } 427 428 /** 429 * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. 430 * (topics.publish) 431 * 432 * @param Google_PublishRequest $postBody 433 * @param array $optParams Optional parameters. 434 */ 435 public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) 436 { 437 $params = array('postBody' => $postBody); 438 $params = array_merge($params, $optParams); 439 return $this->call('publish', array($params)); 440 } 441 442 /** 443 * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does 444 * not exist. (topics.publishBatch) 445 * 446 * @param Google_PublishBatchRequest $postBody 447 * @param array $optParams Optional parameters. 448 * @return Google_Service_Pubsub_PublishBatchResponse 449 */ 450 public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) 451 { 452 $params = array('postBody' => $postBody); 453 $params = array_merge($params, $optParams); 454 return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); 455 } 456} 457 458 459 460 461class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection 462{ 463 protected $collection_key = 'ackId'; 464 protected $internal_gapi_mappings = array( 465 ); 466 public $ackId; 467 public $subscription; 468 469 470 public function setAckId($ackId) 471 { 472 $this->ackId = $ackId; 473 } 474 public function getAckId() 475 { 476 return $this->ackId; 477 } 478 public function setSubscription($subscription) 479 { 480 $this->subscription = $subscription; 481 } 482 public function getSubscription() 483 { 484 return $this->subscription; 485 } 486} 487 488class Google_Service_Pubsub_Label extends Google_Model 489{ 490 protected $internal_gapi_mappings = array( 491 ); 492 public $key; 493 public $numValue; 494 public $strValue; 495 496 497 public function setKey($key) 498 { 499 $this->key = $key; 500 } 501 public function getKey() 502 { 503 return $this->key; 504 } 505 public function setNumValue($numValue) 506 { 507 $this->numValue = $numValue; 508 } 509 public function getNumValue() 510 { 511 return $this->numValue; 512 } 513 public function setStrValue($strValue) 514 { 515 $this->strValue = $strValue; 516 } 517 public function getStrValue() 518 { 519 return $this->strValue; 520 } 521} 522 523class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection 524{ 525 protected $collection_key = 'subscription'; 526 protected $internal_gapi_mappings = array( 527 ); 528 public $nextPageToken; 529 protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; 530 protected $subscriptionDataType = 'array'; 531 532 533 public function setNextPageToken($nextPageToken) 534 { 535 $this->nextPageToken = $nextPageToken; 536 } 537 public function getNextPageToken() 538 { 539 return $this->nextPageToken; 540 } 541 public function setSubscription($subscription) 542 { 543 $this->subscription = $subscription; 544 } 545 public function getSubscription() 546 { 547 return $this->subscription; 548 } 549} 550 551class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection 552{ 553 protected $collection_key = 'topic'; 554 protected $internal_gapi_mappings = array( 555 ); 556 public $nextPageToken; 557 protected $topicType = 'Google_Service_Pubsub_Topic'; 558 protected $topicDataType = 'array'; 559 560 561 public function setNextPageToken($nextPageToken) 562 { 563 $this->nextPageToken = $nextPageToken; 564 } 565 public function getNextPageToken() 566 { 567 return $this->nextPageToken; 568 } 569 public function setTopic($topic) 570 { 571 $this->topic = $topic; 572 } 573 public function getTopic() 574 { 575 return $this->topic; 576 } 577} 578 579class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model 580{ 581 protected $internal_gapi_mappings = array( 582 ); 583 public $ackDeadlineSeconds; 584 public $ackId; 585 public $subscription; 586 587 588 public function setAckDeadlineSeconds($ackDeadlineSeconds) 589 { 590 $this->ackDeadlineSeconds = $ackDeadlineSeconds; 591 } 592 public function getAckDeadlineSeconds() 593 { 594 return $this->ackDeadlineSeconds; 595 } 596 public function setAckId($ackId) 597 { 598 $this->ackId = $ackId; 599 } 600 public function getAckId() 601 { 602 return $this->ackId; 603 } 604 public function setSubscription($subscription) 605 { 606 $this->subscription = $subscription; 607 } 608 public function getSubscription() 609 { 610 return $this->subscription; 611 } 612} 613 614class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model 615{ 616 protected $internal_gapi_mappings = array( 617 ); 618 protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; 619 protected $pushConfigDataType = ''; 620 public $subscription; 621 622 623 public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) 624 { 625 $this->pushConfig = $pushConfig; 626 } 627 public function getPushConfig() 628 { 629 return $this->pushConfig; 630 } 631 public function setSubscription($subscription) 632 { 633 $this->subscription = $subscription; 634 } 635 public function getSubscription() 636 { 637 return $this->subscription; 638 } 639} 640 641class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection 642{ 643 protected $collection_key = 'messages'; 644 protected $internal_gapi_mappings = array( 645 ); 646 protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; 647 protected $messagesDataType = 'array'; 648 public $topic; 649 650 651 public function setMessages($messages) 652 { 653 $this->messages = $messages; 654 } 655 public function getMessages() 656 { 657 return $this->messages; 658 } 659 public function setTopic($topic) 660 { 661 $this->topic = $topic; 662 } 663 public function getTopic() 664 { 665 return $this->topic; 666 } 667} 668 669class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection 670{ 671 protected $collection_key = 'messageIds'; 672 protected $internal_gapi_mappings = array( 673 ); 674 public $messageIds; 675 676 677 public function setMessageIds($messageIds) 678 { 679 $this->messageIds = $messageIds; 680 } 681 public function getMessageIds() 682 { 683 return $this->messageIds; 684 } 685} 686 687class Google_Service_Pubsub_PublishRequest extends Google_Model 688{ 689 protected $internal_gapi_mappings = array( 690 ); 691 protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; 692 protected $messageDataType = ''; 693 public $topic; 694 695 696 public function setMessage(Google_Service_Pubsub_PubsubMessage $message) 697 { 698 $this->message = $message; 699 } 700 public function getMessage() 701 { 702 return $this->message; 703 } 704 public function setTopic($topic) 705 { 706 $this->topic = $topic; 707 } 708 public function getTopic() 709 { 710 return $this->topic; 711 } 712} 713 714class Google_Service_Pubsub_PubsubEvent extends Google_Model 715{ 716 protected $internal_gapi_mappings = array( 717 ); 718 public $deleted; 719 protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; 720 protected $messageDataType = ''; 721 public $subscription; 722 public $truncated; 723 724 725 public function setDeleted($deleted) 726 { 727 $this->deleted = $deleted; 728 } 729 public function getDeleted() 730 { 731 return $this->deleted; 732 } 733 public function setMessage(Google_Service_Pubsub_PubsubMessage $message) 734 { 735 $this->message = $message; 736 } 737 public function getMessage() 738 { 739 return $this->message; 740 } 741 public function setSubscription($subscription) 742 { 743 $this->subscription = $subscription; 744 } 745 public function getSubscription() 746 { 747 return $this->subscription; 748 } 749 public function setTruncated($truncated) 750 { 751 $this->truncated = $truncated; 752 } 753 public function getTruncated() 754 { 755 return $this->truncated; 756 } 757} 758 759class Google_Service_Pubsub_PubsubMessage extends Google_Collection 760{ 761 protected $collection_key = 'label'; 762 protected $internal_gapi_mappings = array( 763 ); 764 public $data; 765 protected $labelType = 'Google_Service_Pubsub_Label'; 766 protected $labelDataType = 'array'; 767 public $messageId; 768 769 770 public function setData($data) 771 { 772 $this->data = $data; 773 } 774 public function getData() 775 { 776 return $this->data; 777 } 778 public function setLabel($label) 779 { 780 $this->label = $label; 781 } 782 public function getLabel() 783 { 784 return $this->label; 785 } 786 public function setMessageId($messageId) 787 { 788 $this->messageId = $messageId; 789 } 790 public function getMessageId() 791 { 792 return $this->messageId; 793 } 794} 795 796class Google_Service_Pubsub_PullBatchRequest extends Google_Model 797{ 798 protected $internal_gapi_mappings = array( 799 ); 800 public $maxEvents; 801 public $returnImmediately; 802 public $subscription; 803 804 805 public function setMaxEvents($maxEvents) 806 { 807 $this->maxEvents = $maxEvents; 808 } 809 public function getMaxEvents() 810 { 811 return $this->maxEvents; 812 } 813 public function setReturnImmediately($returnImmediately) 814 { 815 $this->returnImmediately = $returnImmediately; 816 } 817 public function getReturnImmediately() 818 { 819 return $this->returnImmediately; 820 } 821 public function setSubscription($subscription) 822 { 823 $this->subscription = $subscription; 824 } 825 public function getSubscription() 826 { 827 return $this->subscription; 828 } 829} 830 831class Google_Service_Pubsub_PullBatchResponse extends Google_Collection 832{ 833 protected $collection_key = 'pullResponses'; 834 protected $internal_gapi_mappings = array( 835 ); 836 protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; 837 protected $pullResponsesDataType = 'array'; 838 839 840 public function setPullResponses($pullResponses) 841 { 842 $this->pullResponses = $pullResponses; 843 } 844 public function getPullResponses() 845 { 846 return $this->pullResponses; 847 } 848} 849 850class Google_Service_Pubsub_PullRequest extends Google_Model 851{ 852 protected $internal_gapi_mappings = array( 853 ); 854 public $returnImmediately; 855 public $subscription; 856 857 858 public function setReturnImmediately($returnImmediately) 859 { 860 $this->returnImmediately = $returnImmediately; 861 } 862 public function getReturnImmediately() 863 { 864 return $this->returnImmediately; 865 } 866 public function setSubscription($subscription) 867 { 868 $this->subscription = $subscription; 869 } 870 public function getSubscription() 871 { 872 return $this->subscription; 873 } 874} 875 876class Google_Service_Pubsub_PullResponse extends Google_Model 877{ 878 protected $internal_gapi_mappings = array( 879 ); 880 public $ackId; 881 protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; 882 protected $pubsubEventDataType = ''; 883 884 885 public function setAckId($ackId) 886 { 887 $this->ackId = $ackId; 888 } 889 public function getAckId() 890 { 891 return $this->ackId; 892 } 893 public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) 894 { 895 $this->pubsubEvent = $pubsubEvent; 896 } 897 public function getPubsubEvent() 898 { 899 return $this->pubsubEvent; 900 } 901} 902 903class Google_Service_Pubsub_PushConfig extends Google_Model 904{ 905 protected $internal_gapi_mappings = array( 906 ); 907 public $pushEndpoint; 908 909 910 public function setPushEndpoint($pushEndpoint) 911 { 912 $this->pushEndpoint = $pushEndpoint; 913 } 914 public function getPushEndpoint() 915 { 916 return $this->pushEndpoint; 917 } 918} 919 920class Google_Service_Pubsub_Subscription extends Google_Model 921{ 922 protected $internal_gapi_mappings = array( 923 ); 924 public $ackDeadlineSeconds; 925 public $name; 926 protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; 927 protected $pushConfigDataType = ''; 928 public $topic; 929 930 931 public function setAckDeadlineSeconds($ackDeadlineSeconds) 932 { 933 $this->ackDeadlineSeconds = $ackDeadlineSeconds; 934 } 935 public function getAckDeadlineSeconds() 936 { 937 return $this->ackDeadlineSeconds; 938 } 939 public function setName($name) 940 { 941 $this->name = $name; 942 } 943 public function getName() 944 { 945 return $this->name; 946 } 947 public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) 948 { 949 $this->pushConfig = $pushConfig; 950 } 951 public function getPushConfig() 952 { 953 return $this->pushConfig; 954 } 955 public function setTopic($topic) 956 { 957 $this->topic = $topic; 958 } 959 public function getTopic() 960 { 961 return $this->topic; 962 } 963} 964 965class Google_Service_Pubsub_Topic extends Google_Model 966{ 967 protected $internal_gapi_mappings = array( 968 ); 969 public $name; 970 971 972 public function setName($name) 973 { 974 $this->name = $name; 975 } 976 public function getName() 977 { 978 return $this->name; 979 } 980} 981