72
72
* String topic = "";
73
73
* PushConfig pushConfig = PushConfig.newBuilder().build();
74
74
* int ackDeadlineSeconds = 0;
75
- *
76
75
* Subscription callResult = subscriberApi.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
77
76
* }
78
77
* </code>
@@ -316,8 +315,8 @@ public void close() throws IOException {
316
315
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
317
316
/**
318
317
* Creates a subscription to a given topic for a given subscriber.
319
- * If the subscription already exists, returns `ALREADY_EXISTS`.
320
- * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
318
+ * If the subscription already exists, generates `ALREADY_EXISTS`.
319
+ * If the corresponding topic doesn't exist, generates `NOT_FOUND`.
321
320
*
322
321
* If the name is not provided in the request, the server will assign a random
323
322
* name for this subscription on the same project as the topic.
@@ -332,8 +331,6 @@ public void close() throws IOException {
332
331
* plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
333
332
* in length, and it must not start with `"goog"`.
334
333
* @param topic The name of the topic from which this subscription is receiving messages.
335
- * The value of this field will be `_deleted-topic_` if the topic has been
336
- * deleted.
337
334
* @param pushConfig If push delivery is used with this subscription, this field is
338
335
* used to configure it. An empty `pushConfig` signifies that the subscriber
339
336
* will pull and ack messages using API methods.
@@ -373,8 +370,8 @@ public final Subscription createSubscription(
373
370
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
374
371
/**
375
372
* Creates a subscription to a given topic for a given subscriber.
376
- * If the subscription already exists, returns `ALREADY_EXISTS`.
377
- * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
373
+ * If the subscription already exists, generates `ALREADY_EXISTS`.
374
+ * If the corresponding topic doesn't exist, generates `NOT_FOUND`.
378
375
*
379
376
* If the name is not provided in the request, the server will assign a random
380
377
* name for this subscription on the same project as the topic.
@@ -392,8 +389,8 @@ public Subscription createSubscription(Subscription request) {
392
389
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
393
390
/**
394
391
* Creates a subscription to a given topic for a given subscriber.
395
- * If the subscription already exists, returns `ALREADY_EXISTS`.
396
- * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
392
+ * If the subscription already exists, generates `ALREADY_EXISTS`.
393
+ * If the corresponding topic doesn't exist, generates `NOT_FOUND`.
397
394
*
398
395
* If the name is not provided in the request, the server will assign a random
399
396
* name for this subscription on the same project as the topic.
@@ -411,6 +408,9 @@ public final ApiCallable<Subscription, Subscription> createSubscriptionCallable(
411
408
/**
412
409
* Gets the configuration details of a subscription.
413
410
*
411
+ * If the topic of a subscription has been deleted, the subscription itself is
412
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
413
+ *
414
414
* <!-- manual edit -->
415
415
* <!-- end manual edit -->
416
416
*
@@ -428,6 +428,9 @@ public final Subscription getSubscription(String subscription) {
428
428
/**
429
429
* Gets the configuration details of a subscription.
430
430
*
431
+ * If the topic of a subscription has been deleted, the subscription itself is
432
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
433
+ *
431
434
* <!-- manual edit -->
432
435
* <!-- end manual edit -->
433
436
*
@@ -442,6 +445,9 @@ private Subscription getSubscription(GetSubscriptionRequest request) {
442
445
/**
443
446
* Gets the configuration details of a subscription.
444
447
*
448
+ * If the topic of a subscription has been deleted, the subscription itself is
449
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
450
+ *
445
451
* <!-- manual edit -->
446
452
* <!-- end manual edit -->
447
453
*/
@@ -455,6 +461,9 @@ public final ApiCallable<GetSubscriptionRequest, Subscription> getSubscriptionCa
455
461
/**
456
462
* Lists matching subscriptions.
457
463
*
464
+ * If the topic of a subscription has been deleted, the subscription itself is
465
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
466
+ *
458
467
* <!-- manual edit -->
459
468
* <!-- end manual edit -->
460
469
*
@@ -471,6 +480,9 @@ public final PageAccessor<Subscription> listSubscriptions(String project) {
471
480
/**
472
481
* Lists matching subscriptions.
473
482
*
483
+ * If the topic of a subscription has been deleted, the subscription itself is
484
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
485
+ *
474
486
* <!-- manual edit -->
475
487
* <!-- end manual edit -->
476
488
*
@@ -485,6 +497,9 @@ public final PageAccessor<Subscription> listSubscriptions(ListSubscriptionsReque
485
497
/**
486
498
* Lists matching subscriptions.
487
499
*
500
+ * If the topic of a subscription has been deleted, the subscription itself is
501
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
502
+ *
488
503
* <!-- manual edit -->
489
504
* <!-- end manual edit -->
490
505
*/
@@ -497,6 +512,9 @@ public final PageAccessor<Subscription> listSubscriptions(ListSubscriptionsReque
497
512
/**
498
513
* Lists matching subscriptions.
499
514
*
515
+ * If the topic of a subscription has been deleted, the subscription itself is
516
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
517
+ *
500
518
* <!-- manual edit -->
501
519
* <!-- end manual edit -->
502
520
*/
@@ -510,7 +528,7 @@ public final PageAccessor<Subscription> listSubscriptions(ListSubscriptionsReque
510
528
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
511
529
/**
512
530
* Deletes an existing subscription. All pending messages in the subscription
513
- * are immediately dropped. Calls to `Pull` after deletion will return
531
+ * are immediately dropped. Calls to `Pull` after deletion will generate
514
532
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
515
533
* the same name, but the new one has no association with the old
516
534
* subscription, or its topic unless the same topic is specified.
@@ -531,7 +549,7 @@ public final void deleteSubscription(String subscription) {
531
549
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
532
550
/**
533
551
* Deletes an existing subscription. All pending messages in the subscription
534
- * are immediately dropped. Calls to `Pull` after deletion will return
552
+ * are immediately dropped. Calls to `Pull` after deletion will generate
535
553
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
536
554
* the same name, but the new one has no association with the old
537
555
* subscription, or its topic unless the same topic is specified.
@@ -549,7 +567,7 @@ private void deleteSubscription(DeleteSubscriptionRequest request) {
549
567
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
550
568
/**
551
569
* Deletes an existing subscription. All pending messages in the subscription
552
- * are immediately dropped. Calls to `Pull` after deletion will return
570
+ * are immediately dropped. Calls to `Pull` after deletion will generate
553
571
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
554
572
* the same name, but the new one has no association with the old
555
573
* subscription, or its topic unless the same topic is specified.
@@ -694,7 +712,7 @@ public final ApiCallable<AcknowledgeRequest, Empty> acknowledgeCallable() {
694
712
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
695
713
/**
696
714
* Pulls messages from the server. Returns an empty list if there are no
697
- * messages available in the backlog. The server may return `UNAVAILABLE` if
715
+ * messages available in the backlog. The server may generate `UNAVAILABLE` if
698
716
* there are too many concurrent pull requests pending for the given
699
717
* subscription.
700
718
*
@@ -705,8 +723,7 @@ public final ApiCallable<AcknowledgeRequest, Empty> acknowledgeCallable() {
705
723
* @param returnImmediately If this is specified as true the system will respond immediately even if
706
724
* it is not able to return a message in the `Pull` response. Otherwise the
707
725
* system is allowed to wait until at least one message is available rather
708
- * than returning no messages. The client may cancel the request if it does
709
- * not wish to wait any longer for the response.
726
+ * than returning no messages.
710
727
* @param maxMessages The maximum number of messages returned for this request. The Pub/Sub
711
728
* system may return fewer than the number specified.
712
729
* @throws com.google.api.gax.grpc.ApiException if the remote call fails
@@ -725,7 +742,7 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
725
742
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
726
743
/**
727
744
* Pulls messages from the server. Returns an empty list if there are no
728
- * messages available in the backlog. The server may return `UNAVAILABLE` if
745
+ * messages available in the backlog. The server may generate `UNAVAILABLE` if
729
746
* there are too many concurrent pull requests pending for the given
730
747
* subscription.
731
748
*
@@ -742,7 +759,7 @@ public PullResponse pull(PullRequest request) {
742
759
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
743
760
/**
744
761
* Pulls messages from the server. Returns an empty list if there are no
745
- * messages available in the backlog. The server may return `UNAVAILABLE` if
762
+ * messages available in the backlog. The server may generate `UNAVAILABLE` if
746
763
* there are too many concurrent pull requests pending for the given
747
764
* subscription.
748
765
*
0 commit comments