/includes/api-libs/Google/Service/Pubsub.php

  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. */ 
  31. class Google_Service_Pubsub extends Google_Service 
  32. /** View and manage your data across Google Cloud Platform services. */ 
  33. const CLOUD_PLATFORM = 
  34. "https://www.googleapis.com/auth/cloud-platform"; 
  35. /** View and manage Pub/Sub topics and subscriptions. */ 
  36. const PUBSUB = 
  37. "https://www.googleapis.com/auth/pubsub"; 
  38.  
  39. public $subscriptions; 
  40. public $topics; 
  41.  
  42.  
  43. /** 
  44. * Constructs the internal representation of the Pubsub service. 
  45. * 
  46. * @param Google_Client $client 
  47. */ 
  48. public function __construct(Google_Client $client) 
  49. parent::__construct($client); 
  50. $this->servicePath = 'pubsub/v1beta1/'; 
  51. $this->version = 'v1beta1'; 
  52. $this->serviceName = 'pubsub'; 
  53.  
  54. $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( 
  55. $this,  
  56. $this->serviceName,  
  57. 'subscriptions',  
  58. array( 
  59. 'methods' => array( 
  60. 'acknowledge' => array( 
  61. 'path' => 'subscriptions/acknowledge',  
  62. 'httpMethod' => 'POST',  
  63. 'parameters' => array(),  
  64. ), 'create' => array( 
  65. 'path' => 'subscriptions',  
  66. 'httpMethod' => 'POST',  
  67. 'parameters' => array(),  
  68. ), 'delete' => array( 
  69. 'path' => 'subscriptions/{+subscription}',  
  70. 'httpMethod' => 'DELETE',  
  71. 'parameters' => array( 
  72. 'subscription' => array( 
  73. 'location' => 'path',  
  74. 'type' => 'string',  
  75. 'required' => true,  
  76. ),  
  77. ),  
  78. ), 'get' => array( 
  79. 'path' => 'subscriptions/{+subscription}',  
  80. 'httpMethod' => 'GET',  
  81. 'parameters' => array( 
  82. 'subscription' => array( 
  83. 'location' => 'path',  
  84. 'type' => 'string',  
  85. 'required' => true,  
  86. ),  
  87. ),  
  88. ), 'list' => array( 
  89. 'path' => 'subscriptions',  
  90. 'httpMethod' => 'GET',  
  91. 'parameters' => array( 
  92. 'pageToken' => array( 
  93. 'location' => 'query',  
  94. 'type' => 'string',  
  95. ),  
  96. 'maxResults' => array( 
  97. 'location' => 'query',  
  98. 'type' => 'integer',  
  99. ),  
  100. 'query' => array( 
  101. 'location' => 'query',  
  102. 'type' => 'string',  
  103. ),  
  104. ),  
  105. ), 'modifyAckDeadline' => array( 
  106. 'path' => 'subscriptions/modifyAckDeadline',  
  107. 'httpMethod' => 'POST',  
  108. 'parameters' => array(),  
  109. ), 'modifyPushConfig' => array( 
  110. 'path' => 'subscriptions/modifyPushConfig',  
  111. 'httpMethod' => 'POST',  
  112. 'parameters' => array(),  
  113. ), 'pull' => array( 
  114. 'path' => 'subscriptions/pull',  
  115. 'httpMethod' => 'POST',  
  116. 'parameters' => array(),  
  117. ), 'pullBatch' => array( 
  118. 'path' => 'subscriptions/pullBatch',  
  119. 'httpMethod' => 'POST',  
  120. 'parameters' => array(),  
  121. ),  
  122. ); 
  123. $this->topics = new Google_Service_Pubsub_Topics_Resource( 
  124. $this,  
  125. $this->serviceName,  
  126. 'topics',  
  127. array( 
  128. 'methods' => array( 
  129. 'create' => array( 
  130. 'path' => 'topics',  
  131. 'httpMethod' => 'POST',  
  132. 'parameters' => array(),  
  133. ), 'delete' => array( 
  134. 'path' => 'topics/{+topic}',  
  135. 'httpMethod' => 'DELETE',  
  136. 'parameters' => array( 
  137. 'topic' => array( 
  138. 'location' => 'path',  
  139. 'type' => 'string',  
  140. 'required' => true,  
  141. ),  
  142. ),  
  143. ), 'get' => array( 
  144. 'path' => 'topics/{+topic}',  
  145. 'httpMethod' => 'GET',  
  146. 'parameters' => array( 
  147. 'topic' => array( 
  148. 'location' => 'path',  
  149. 'type' => 'string',  
  150. 'required' => true,  
  151. ),  
  152. ),  
  153. ), 'list' => array( 
  154. 'path' => 'topics',  
  155. 'httpMethod' => 'GET',  
  156. 'parameters' => array( 
  157. 'pageToken' => array( 
  158. 'location' => 'query',  
  159. 'type' => 'string',  
  160. ),  
  161. 'maxResults' => array( 
  162. 'location' => 'query',  
  163. 'type' => 'integer',  
  164. ),  
  165. 'query' => array( 
  166. 'location' => 'query',  
  167. 'type' => 'string',  
  168. ),  
  169. ),  
  170. ), 'publish' => array( 
  171. 'path' => 'topics/publish',  
  172. 'httpMethod' => 'POST',  
  173. 'parameters' => array(),  
  174. ), 'publishBatch' => array( 
  175. 'path' => 'topics/publishBatch',  
  176. 'httpMethod' => 'POST',  
  177. 'parameters' => array(),  
  178. ),  
  179. ); 
  180.  
  181.  
  182. /** 
  183. * The "subscriptions" collection of methods. 
  184. * Typical usage is: 
  185. * <code> 
  186. * $pubsubService = new Google_Service_Pubsub(...); 
  187. * $subscriptions = $pubsubService->subscriptions; 
  188. * </code> 
  189. */ 
  190. class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource 
  191.  
  192. /** 
  193. * Acknowledges a particular received message: the Pub/Sub system can remove the 
  194. * given message from the subscription. Acknowledging a message whose Ack 
  195. * deadline has expired may succeed, but the message could have been already 
  196. * redelivered. Acknowledging a message more than once will not result in an 
  197. * error. This is only used for messages received via pull. 
  198. * (subscriptions.acknowledge) 
  199. * 
  200. * @param Google_AcknowledgeRequest $postBody 
  201. * @param array $optParams Optional parameters. 
  202. */ 
  203. public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) 
  204. $params = array('postBody' => $postBody); 
  205. $params = array_merge($params, $optParams); 
  206. return $this->call('acknowledge', array($params)); 
  207.  
  208. /** 
  209. * Creates a subscription on a given topic for a given subscriber. If the 
  210. * subscription already exists, returns ALREADY_EXISTS. If the corresponding 
  211. * topic doesn't exist, returns NOT_FOUND. 
  212. * 
  213. * If the name is not provided in the request, the server will assign a random 
  214. * name for this subscription on the same project as the topic. 
  215. * (subscriptions.create) 
  216. * 
  217. * @param Google_Subscription $postBody 
  218. * @param array $optParams Optional parameters. 
  219. * @return Google_Service_Pubsub_Subscription 
  220. */ 
  221. public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) 
  222. $params = array('postBody' => $postBody); 
  223. $params = array_merge($params, $optParams); 
  224. return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); 
  225.  
  226. /** 
  227. * Deletes an existing subscription. All pending messages in the subscription 
  228. * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. 
  229. * (subscriptions.delete) 
  230. * 
  231. * @param string $subscription The subscription to delete. 
  232. * @param array $optParams Optional parameters. 
  233. */ 
  234. public function delete($subscription, $optParams = array()) 
  235. $params = array('subscription' => $subscription); 
  236. $params = array_merge($params, $optParams); 
  237. return $this->call('delete', array($params)); 
  238.  
  239. /** 
  240. * Gets the configuration details of a subscription. (subscriptions.get) 
  241. * 
  242. * @param string $subscription The name of the subscription to get. 
  243. * @param array $optParams Optional parameters. 
  244. * @return Google_Service_Pubsub_Subscription 
  245. */ 
  246. public function get($subscription, $optParams = array()) 
  247. $params = array('subscription' => $subscription); 
  248. $params = array_merge($params, $optParams); 
  249. return $this->call('get', array($params), "Google_Service_Pubsub_Subscription"); 
  250.  
  251. /** 
  252. * Lists matching subscriptions. (subscriptions.listSubscriptions) 
  253. * 
  254. * @param array $optParams Optional parameters. 
  255. * 
  256. * @opt_param string pageToken The value obtained in the last 
  257. * ListSubscriptionsResponse for continuation. 
  258. * @opt_param int maxResults Maximum number of subscriptions to return. 
  259. * @opt_param string query A valid label query expression. 
  260. * @return Google_Service_Pubsub_ListSubscriptionsResponse 
  261. */ 
  262. public function listSubscriptions($optParams = array()) 
  263. $params = array(); 
  264. $params = array_merge($params, $optParams); 
  265. return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); 
  266.  
  267. /** 
  268. * Modifies the Ack deadline for a message received from a pull request. 
  269. * (subscriptions.modifyAckDeadline) 
  270. * 
  271. * @param Google_ModifyAckDeadlineRequest $postBody 
  272. * @param array $optParams Optional parameters. 
  273. */ 
  274. public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) 
  275. $params = array('postBody' => $postBody); 
  276. $params = array_merge($params, $optParams); 
  277. return $this->call('modifyAckDeadline', array($params)); 
  278.  
  279. /** 
  280. * Modifies the PushConfig for a specified subscription. This method can be used 
  281. * to suspend the flow of messages to an endpoint by clearing the PushConfig 
  282. * field in the request. Messages will be accumulated for delivery even if no 
  283. * push configuration is defined or while the configuration is modified. 
  284. * (subscriptions.modifyPushConfig) 
  285. * 
  286. * @param Google_ModifyPushConfigRequest $postBody 
  287. * @param array $optParams Optional parameters. 
  288. */ 
  289. public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) 
  290. $params = array('postBody' => $postBody); 
  291. $params = array_merge($params, $optParams); 
  292. return $this->call('modifyPushConfig', array($params)); 
  293.  
  294. /** 
  295. * Pulls a single message from the server. If return_immediately is true, and no 
  296. * messages are available in the subscription, this method returns 
  297. * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no 
  298. * messages are available in a reasonable amount of time (to reduce system 
  299. * load). (subscriptions.pull) 
  300. * 
  301. * @param Google_PullRequest $postBody 
  302. * @param array $optParams Optional parameters. 
  303. * @return Google_Service_Pubsub_PullResponse 
  304. */ 
  305. public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) 
  306. $params = array('postBody' => $postBody); 
  307. $params = array_merge($params, $optParams); 
  308. return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); 
  309.  
  310. /** 
  311. * Pulls messages from the server. Returns an empty list if there are no 
  312. * messages available in the backlog. The system is free to return UNAVAILABLE 
  313. * if there are too many pull requests outstanding for the given subscription. 
  314. * (subscriptions.pullBatch) 
  315. * 
  316. * @param Google_PullBatchRequest $postBody 
  317. * @param array $optParams Optional parameters. 
  318. * @return Google_Service_Pubsub_PullBatchResponse 
  319. */ 
  320. public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) 
  321. $params = array('postBody' => $postBody); 
  322. $params = array_merge($params, $optParams); 
  323. return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); 
  324.  
  325. /** 
  326. * The "topics" collection of methods. 
  327. * Typical usage is: 
  328. * <code> 
  329. * $pubsubService = new Google_Service_Pubsub(...); 
  330. * $topics = $pubsubService->topics; 
  331. * </code> 
  332. */ 
  333. class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource 
  334.  
  335. /** 
  336. * Creates the given topic with the given name. (topics.create) 
  337. * 
  338. * @param Google_Topic $postBody 
  339. * @param array $optParams Optional parameters. 
  340. * @return Google_Service_Pubsub_Topic 
  341. */ 
  342. public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) 
  343. $params = array('postBody' => $postBody); 
  344. $params = array_merge($params, $optParams); 
  345. return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); 
  346.  
  347. /** 
  348. * Deletes the topic with the given name. All subscriptions to this topic are 
  349. * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is 
  350. * deleted, a new topic may be created with the same name. (topics.delete) 
  351. * 
  352. * @param string $topic Name of the topic to delete. 
  353. * @param array $optParams Optional parameters. 
  354. */ 
  355. public function delete($topic, $optParams = array()) 
  356. $params = array('topic' => $topic); 
  357. $params = array_merge($params, $optParams); 
  358. return $this->call('delete', array($params)); 
  359.  
  360. /** 
  361. * Gets the configuration of a topic. Since the topic only has the name 
  362. * attribute, this method is only useful to check the existence of a topic. If 
  363. * other attributes are added in the future, they will be returned here. 
  364. * (topics.get) 
  365. * 
  366. * @param string $topic The name of the topic to get. 
  367. * @param array $optParams Optional parameters. 
  368. * @return Google_Service_Pubsub_Topic 
  369. */ 
  370. public function get($topic, $optParams = array()) 
  371. $params = array('topic' => $topic); 
  372. $params = array_merge($params, $optParams); 
  373. return $this->call('get', array($params), "Google_Service_Pubsub_Topic"); 
  374.  
  375. /** 
  376. * Lists matching topics. (topics.listTopics) 
  377. * 
  378. * @param array $optParams Optional parameters. 
  379. * 
  380. * @opt_param string pageToken The value obtained in the last ListTopicsResponse 
  381. * for continuation. 
  382. * @opt_param int maxResults Maximum number of topics to return. 
  383. * @opt_param string query A valid label query expression. 
  384. * @return Google_Service_Pubsub_ListTopicsResponse 
  385. */ 
  386. public function listTopics($optParams = array()) 
  387. $params = array(); 
  388. $params = array_merge($params, $optParams); 
  389. return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); 
  390.  
  391. /** 
  392. * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. 
  393. * (topics.publish) 
  394. * 
  395. * @param Google_PublishRequest $postBody 
  396. * @param array $optParams Optional parameters. 
  397. */ 
  398. public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) 
  399. $params = array('postBody' => $postBody); 
  400. $params = array_merge($params, $optParams); 
  401. return $this->call('publish', array($params)); 
  402.  
  403. /** 
  404. * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does 
  405. * not exist. (topics.publishBatch) 
  406. * 
  407. * @param Google_PublishBatchRequest $postBody 
  408. * @param array $optParams Optional parameters. 
  409. * @return Google_Service_Pubsub_PublishBatchResponse 
  410. */ 
  411. public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) 
  412. $params = array('postBody' => $postBody); 
  413. $params = array_merge($params, $optParams); 
  414. return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); 
  415.  
  416.  
  417.  
  418.  
  419. class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection 
  420. protected $collection_key = 'ackId'; 
  421. protected $internal_gapi_mappings = array( 
  422. ); 
  423. public $ackId; 
  424. public $subscription; 
  425.  
  426.  
  427. public function setAckId($ackId) 
  428. $this->ackId = $ackId; 
  429. public function getAckId() 
  430. return $this->ackId; 
  431. public function setSubscription($subscription) 
  432. $this->subscription = $subscription; 
  433. public function getSubscription() 
  434. return $this->subscription; 
  435.  
  436. class Google_Service_Pubsub_Label extends Google_Model 
  437. protected $internal_gapi_mappings = array( 
  438. ); 
  439. public $key; 
  440. public $numValue; 
  441. public $strValue; 
  442.  
  443.  
  444. public function setKey($key) 
  445. $this->key = $key; 
  446. public function getKey() 
  447. return $this->key; 
  448. public function setNumValue($numValue) 
  449. $this->numValue = $numValue; 
  450. public function getNumValue() 
  451. return $this->numValue; 
  452. public function setStrValue($strValue) 
  453. $this->strValue = $strValue; 
  454. public function getStrValue() 
  455. return $this->strValue; 
  456.  
  457. class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection 
  458. protected $collection_key = 'subscription'; 
  459. protected $internal_gapi_mappings = array( 
  460. ); 
  461. public $nextPageToken; 
  462. protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; 
  463. protected $subscriptionDataType = 'array'; 
  464.  
  465.  
  466. public function setNextPageToken($nextPageToken) 
  467. $this->nextPageToken = $nextPageToken; 
  468. public function getNextPageToken() 
  469. return $this->nextPageToken; 
  470. public function setSubscription($subscription) 
  471. $this->subscription = $subscription; 
  472. public function getSubscription() 
  473. return $this->subscription; 
  474.  
  475. class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection 
  476. protected $collection_key = 'topic'; 
  477. protected $internal_gapi_mappings = array( 
  478. ); 
  479. public $nextPageToken; 
  480. protected $topicType = 'Google_Service_Pubsub_Topic'; 
  481. protected $topicDataType = 'array'; 
  482.  
  483.  
  484. public function setNextPageToken($nextPageToken) 
  485. $this->nextPageToken = $nextPageToken; 
  486. public function getNextPageToken() 
  487. return $this->nextPageToken; 
  488. public function setTopic($topic) 
  489. $this->topic = $topic; 
  490. public function getTopic() 
  491. return $this->topic; 
  492.  
  493. class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model 
  494. protected $internal_gapi_mappings = array( 
  495. ); 
  496. public $ackDeadlineSeconds; 
  497. public $ackId; 
  498. public $subscription; 
  499.  
  500.  
  501. public function setAckDeadlineSeconds($ackDeadlineSeconds) 
  502. $this->ackDeadlineSeconds = $ackDeadlineSeconds; 
  503. public function getAckDeadlineSeconds() 
  504. return $this->ackDeadlineSeconds; 
  505. public function setAckId($ackId) 
  506. $this->ackId = $ackId; 
  507. public function getAckId() 
  508. return $this->ackId; 
  509. public function setSubscription($subscription) 
  510. $this->subscription = $subscription; 
  511. public function getSubscription() 
  512. return $this->subscription; 
  513.  
  514. class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model 
  515. protected $internal_gapi_mappings = array( 
  516. ); 
  517. protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; 
  518. protected $pushConfigDataType = ''; 
  519. public $subscription; 
  520.  
  521.  
  522. public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) 
  523. $this->pushConfig = $pushConfig; 
  524. public function getPushConfig() 
  525. return $this->pushConfig; 
  526. public function setSubscription($subscription) 
  527. $this->subscription = $subscription; 
  528. public function getSubscription() 
  529. return $this->subscription; 
  530.  
  531. class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection 
  532. protected $collection_key = 'messages'; 
  533. protected $internal_gapi_mappings = array( 
  534. ); 
  535. protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; 
  536. protected $messagesDataType = 'array'; 
  537. public $topic; 
  538.  
  539.  
  540. public function setMessages($messages) 
  541. $this->messages = $messages; 
  542. public function getMessages() 
  543. return $this->messages; 
  544. public function setTopic($topic) 
  545. $this->topic = $topic; 
  546. public function getTopic() 
  547. return $this->topic; 
  548.  
  549. class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection 
  550. protected $collection_key = 'messageIds'; 
  551. protected $internal_gapi_mappings = array( 
  552. ); 
  553. public $messageIds; 
  554.  
  555.  
  556. public function setMessageIds($messageIds) 
  557. $this->messageIds = $messageIds; 
  558. public function getMessageIds() 
  559. return $this->messageIds; 
  560.  
  561. class Google_Service_Pubsub_PublishRequest extends Google_Model 
  562. protected $internal_gapi_mappings = array( 
  563. ); 
  564. protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; 
  565. protected $messageDataType = ''; 
  566. public $topic; 
  567.  
  568.  
  569. public function setMessage(Google_Service_Pubsub_PubsubMessage $message) 
  570. $this->message = $message; 
  571. public function getMessage() 
  572. return $this->message; 
  573. public function setTopic($topic) 
  574. $this->topic = $topic; 
  575. public function getTopic() 
  576. return $this->topic; 
  577.  
  578. class Google_Service_Pubsub_PubsubEvent extends Google_Model 
  579. protected $internal_gapi_mappings = array( 
  580. ); 
  581. public $deleted; 
  582. protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; 
  583. protected $messageDataType = ''; 
  584. public $subscription; 
  585. public $truncated; 
  586.  
  587.  
  588. public function setDeleted($deleted) 
  589. $this->deleted = $deleted; 
  590. public function getDeleted() 
  591. return $this->deleted; 
  592. public function setMessage(Google_Service_Pubsub_PubsubMessage $message) 
  593. $this->message = $message; 
  594. public function getMessage() 
  595. return $this->message; 
  596. public function setSubscription($subscription) 
  597. $this->subscription = $subscription; 
  598. public function getSubscription() 
  599. return $this->subscription; 
  600. public function setTruncated($truncated) 
  601. $this->truncated = $truncated; 
  602. public function getTruncated() 
  603. return $this->truncated; 
  604.  
  605. class Google_Service_Pubsub_PubsubMessage extends Google_Collection 
  606. protected $collection_key = 'label'; 
  607. protected $internal_gapi_mappings = array( 
  608. ); 
  609. public $data; 
  610. protected $labelType = 'Google_Service_Pubsub_Label'; 
  611. protected $labelDataType = 'array'; 
  612. public $messageId; 
  613.  
  614.  
  615. public function setData($data) 
  616. $this->data = $data; 
  617. public function getData() 
  618. return $this->data; 
  619. public function setLabel($label) 
  620. $this->label = $label; 
  621. public function getLabel() 
  622. return $this->label; 
  623. public function setMessageId($messageId) 
  624. $this->messageId = $messageId; 
  625. public function getMessageId() 
  626. return $this->messageId; 
  627.  
  628. class Google_Service_Pubsub_PullBatchRequest extends Google_Model 
  629. protected $internal_gapi_mappings = array( 
  630. ); 
  631. public $maxEvents; 
  632. public $returnImmediately; 
  633. public $subscription; 
  634.  
  635.  
  636. public function setMaxEvents($maxEvents) 
  637. $this->maxEvents = $maxEvents; 
  638. public function getMaxEvents() 
  639. return $this->maxEvents; 
  640. public function setReturnImmediately($returnImmediately) 
  641. $this->returnImmediately = $returnImmediately; 
  642. public function getReturnImmediately() 
  643. return $this->returnImmediately; 
  644. public function setSubscription($subscription) 
  645. $this->subscription = $subscription; 
  646. public function getSubscription() 
  647. return $this->subscription; 
  648.  
  649. class Google_Service_Pubsub_PullBatchResponse extends Google_Collection 
  650. protected $collection_key = 'pullResponses'; 
  651. protected $internal_gapi_mappings = array( 
  652. ); 
  653. protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; 
  654. protected $pullResponsesDataType = 'array'; 
  655.  
  656.  
  657. public function setPullResponses($pullResponses) 
  658. $this->pullResponses = $pullResponses; 
  659. public function getPullResponses() 
  660. return $this->pullResponses; 
  661.  
  662. class Google_Service_Pubsub_PullRequest extends Google_Model 
  663. protected $internal_gapi_mappings = array( 
  664. ); 
  665. public $returnImmediately; 
  666. public $subscription; 
  667.  
  668.  
  669. public function setReturnImmediately($returnImmediately) 
  670. $this->returnImmediately = $returnImmediately; 
  671. public function getReturnImmediately() 
  672. return $this->returnImmediately; 
  673. public function setSubscription($subscription) 
  674. $this->subscription = $subscription; 
  675. public function getSubscription() 
  676. return $this->subscription; 
  677.  
  678. class Google_Service_Pubsub_PullResponse extends Google_Model 
  679. protected $internal_gapi_mappings = array( 
  680. ); 
  681. public $ackId; 
  682. protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; 
  683. protected $pubsubEventDataType = ''; 
  684.  
  685.  
  686. public function setAckId($ackId) 
  687. $this->ackId = $ackId; 
  688. public function getAckId() 
  689. return $this->ackId; 
  690. public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) 
  691. $this->pubsubEvent = $pubsubEvent; 
  692. public function getPubsubEvent() 
  693. return $this->pubsubEvent; 
  694.  
  695. class Google_Service_Pubsub_PushConfig extends Google_Model 
  696. protected $internal_gapi_mappings = array( 
  697. ); 
  698. public $pushEndpoint; 
  699.  
  700.  
  701. public function setPushEndpoint($pushEndpoint) 
  702. $this->pushEndpoint = $pushEndpoint; 
  703. public function getPushEndpoint() 
  704. return $this->pushEndpoint; 
  705.  
  706. class Google_Service_Pubsub_Subscription extends Google_Model 
  707. protected $internal_gapi_mappings = array( 
  708. ); 
  709. public $ackDeadlineSeconds; 
  710. public $name; 
  711. protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; 
  712. protected $pushConfigDataType = ''; 
  713. public $topic; 
  714.  
  715.  
  716. public function setAckDeadlineSeconds($ackDeadlineSeconds) 
  717. $this->ackDeadlineSeconds = $ackDeadlineSeconds; 
  718. public function getAckDeadlineSeconds() 
  719. return $this->ackDeadlineSeconds; 
  720. public function setName($name) 
  721. $this->name = $name; 
  722. public function getName() 
  723. return $this->name; 
  724. public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) 
  725. $this->pushConfig = $pushConfig; 
  726. public function getPushConfig() 
  727. return $this->pushConfig; 
  728. public function setTopic($topic) 
  729. $this->topic = $topic; 
  730. public function getTopic() 
  731. return $this->topic; 
  732.  
  733. class Google_Service_Pubsub_Topic extends Google_Model 
  734. protected $internal_gapi_mappings = array( 
  735. ); 
  736. public $name; 
  737.  
  738.  
  739. public function setName($name) 
  740. $this->name = $name; 
  741. public function getName() 
  742. return $this->name; 
.