Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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