@@ -382,8 +382,8 @@ public static final String extractSubscriptionFromSubscriptionPath(String subscr
382
382
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
383
383
/**
384
384
* Creates a subscription to a given topic for a given subscriber.
385
- * If the subscription already exists, returns `ALREADY_EXISTS`.
386
- * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
385
+ * If the subscription already exists, generates `ALREADY_EXISTS`.
386
+ * If the corresponding topic doesn't exist, generates `NOT_FOUND`.
387
387
*
388
388
* If the name is not provided in the request, the server will assign a random
389
389
* name for this subscription on the same project as the topic.
@@ -398,8 +398,6 @@ public static final String extractSubscriptionFromSubscriptionPath(String subscr
398
398
* plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
399
399
* in length, and it must not start with `"goog"`.
400
400
* @param topic The name of the topic from which this subscription is receiving messages.
401
- * The value of this field will be `_deleted-topic_` if the topic has been
402
- * deleted.
403
401
* @param pushConfig If push delivery is used with this subscription, this field is
404
402
* used to configure it. An empty `pushConfig` signifies that the subscriber
405
403
* will pull and ack messages using API methods.
@@ -438,8 +436,8 @@ public Subscription createSubscription(
438
436
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
439
437
/**
440
438
* Creates a subscription to a given topic for a given subscriber.
441
- * If the subscription already exists, returns `ALREADY_EXISTS`.
442
- * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
439
+ * If the subscription already exists, generates `ALREADY_EXISTS`.
440
+ * If the corresponding topic doesn't exist, generates `NOT_FOUND`.
443
441
*
444
442
* If the name is not provided in the request, the server will assign a random
445
443
* name for this subscription on the same project as the topic.
@@ -456,8 +454,8 @@ public Subscription createSubscription(Subscription request) {
456
454
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
457
455
/**
458
456
* Creates a subscription to a given topic for a given subscriber.
459
- * If the subscription already exists, returns `ALREADY_EXISTS`.
460
- * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
457
+ * If the subscription already exists, generates `ALREADY_EXISTS`.
458
+ * If the corresponding topic doesn't exist, generates `NOT_FOUND`.
461
459
*
462
460
* If the name is not provided in the request, the server will assign a random
463
461
* name for this subscription on the same project as the topic.
@@ -481,6 +479,9 @@ public ApiCallable<Subscription, Subscription> createSubscriptionCallable() {
481
479
/**
482
480
* Gets the configuration details of a subscription.
483
481
*
482
+ * If the topic of a subscription has been deleted, the subscription itself is
483
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
484
+ *
484
485
* <!-- manual edit -->
485
486
* <!-- end manual edit -->
486
487
*
@@ -497,6 +498,9 @@ public Subscription getSubscription(String subscription) {
497
498
/**
498
499
* Gets the configuration details of a subscription.
499
500
*
501
+ * If the topic of a subscription has been deleted, the subscription itself is
502
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
503
+ *
500
504
* <!-- manual edit -->
501
505
* <!-- end manual edit -->
502
506
*
@@ -510,6 +514,9 @@ public Subscription getSubscription(GetSubscriptionRequest request) {
510
514
/**
511
515
* Gets the configuration details of a subscription.
512
516
*
517
+ * If the topic of a subscription has been deleted, the subscription itself is
518
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
519
+ *
513
520
* <!-- manual edit -->
514
521
* <!-- end manual edit -->
515
522
*/
@@ -529,6 +536,9 @@ public ApiCallable<GetSubscriptionRequest, Subscription> getSubscriptionCallable
529
536
/**
530
537
* Lists matching subscriptions.
531
538
*
539
+ * If the topic of a subscription has been deleted, the subscription itself is
540
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
541
+ *
532
542
* <!-- manual edit -->
533
543
* <!-- end manual edit -->
534
544
*/
@@ -542,6 +552,9 @@ public Iterable<Subscription> listSubscriptions(String project) {
542
552
/**
543
553
* Lists matching subscriptions.
544
554
*
555
+ * If the topic of a subscription has been deleted, the subscription itself is
556
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
557
+ *
545
558
* <!-- manual edit -->
546
559
* <!-- end manual edit -->
547
560
*
@@ -555,6 +568,9 @@ public Iterable<Subscription> listSubscriptions(ListSubscriptionsRequest request
555
568
/**
556
569
* Lists matching subscriptions.
557
570
*
571
+ * If the topic of a subscription has been deleted, the subscription itself is
572
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
573
+ *
558
574
* <!-- manual edit -->
559
575
* <!-- end manual edit -->
560
576
*/
@@ -567,6 +583,9 @@ public Iterable<Subscription> listSubscriptions(ListSubscriptionsRequest request
567
583
/**
568
584
* Lists matching subscriptions.
569
585
*
586
+ * If the topic of a subscription has been deleted, the subscription itself is
587
+ * not deleted, but the value of the `topic` field is set to `_deleted-topic_`.
588
+ *
570
589
* <!-- manual edit -->
571
590
* <!-- end manual edit -->
572
591
*/
@@ -586,7 +605,7 @@ public Iterable<Subscription> listSubscriptions(ListSubscriptionsRequest request
586
605
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
587
606
/**
588
607
* Deletes an existing subscription. All pending messages in the subscription
589
- * are immediately dropped. Calls to `Pull` after deletion will return
608
+ * are immediately dropped. Calls to `Pull` after deletion will generate
590
609
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
591
610
* the same name, but the new one has no association with the old
592
611
* subscription, or its topic unless the same topic is specified.
@@ -606,7 +625,7 @@ public void deleteSubscription(String subscription) {
606
625
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
607
626
/**
608
627
* Deletes an existing subscription. All pending messages in the subscription
609
- * are immediately dropped. Calls to `Pull` after deletion will return
628
+ * are immediately dropped. Calls to `Pull` after deletion will generate
610
629
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
611
630
* the same name, but the new one has no association with the old
612
631
* subscription, or its topic unless the same topic is specified.
@@ -623,7 +642,7 @@ public void deleteSubscription(DeleteSubscriptionRequest request) {
623
642
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
624
643
/**
625
644
* Deletes an existing subscription. All pending messages in the subscription
626
- * are immediately dropped. Calls to `Pull` after deletion will return
645
+ * are immediately dropped. Calls to `Pull` after deletion will generate
627
646
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
628
647
* the same name, but the new one has no association with the old
629
648
* subscription, or its topic unless the same topic is specified.
@@ -780,7 +799,7 @@ public ApiCallable<AcknowledgeRequest, Empty> acknowledgeCallable() {
780
799
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
781
800
/**
782
801
* Pulls messages from the server. Returns an empty list if there are no
783
- * messages available in the backlog. The server may return `UNAVAILABLE` if
802
+ * messages available in the backlog. The server may generate `UNAVAILABLE` if
784
803
* there are too many concurrent pull requests pending for the given
785
804
* subscription.
786
805
*
@@ -791,8 +810,7 @@ public ApiCallable<AcknowledgeRequest, Empty> acknowledgeCallable() {
791
810
* @param returnImmediately If this is specified as true the system will respond immediately even if
792
811
* it is not able to return a message in the `Pull` response. Otherwise the
793
812
* system is allowed to wait until at least one message is available rather
794
- * than returning no messages. The client may cancel the request if it does
795
- * not wish to wait any longer for the response.
813
+ * than returning no messages.
796
814
* @param maxMessages The maximum number of messages returned for this request. The Pub/Sub
797
815
* system may return fewer than the number specified.
798
816
*/
@@ -810,7 +828,7 @@ public PullResponse pull(String subscription, boolean returnImmediately, int max
810
828
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
811
829
/**
812
830
* Pulls messages from the server. Returns an empty list if there are no
813
- * messages available in the backlog. The server may return `UNAVAILABLE` if
831
+ * messages available in the backlog. The server may generate `UNAVAILABLE` if
814
832
* there are too many concurrent pull requests pending for the given
815
833
* subscription.
816
834
*
@@ -826,7 +844,7 @@ public PullResponse pull(PullRequest request) {
826
844
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing.
827
845
/**
828
846
* Pulls messages from the server. Returns an empty list if there are no
829
- * messages available in the backlog. The server may return `UNAVAILABLE` if
847
+ * messages available in the backlog. The server may generate `UNAVAILABLE` if
830
848
* there are too many concurrent pull requests pending for the given
831
849
* subscription.
832
850
*
0 commit comments