Skip to content

Commit 4d83870

Browse files
dpebotchingor13
authored andcommitted
Re-generate library using google-cloud-clients/google-cloud-pubsub/synth.py (#3824)
1 parent 0541d6e commit 4d83870

29 files changed

Lines changed: 1720 additions & 548 deletions

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java

Lines changed: 46 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ public final UnaryCallable<UpdateSubscriptionRequest, Subscription> updateSubscr
567567
* }
568568
* </code></pre>
569569
*
570-
* @param project The name of the cloud project that subscriptions belong to. Format is
571-
* `projects/{project}`.
570+
* @param project The name of the project in which to list subscriptions. Format is
571+
* `projects/{project-id}`.
572572
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
573573
*/
574574
public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) {
@@ -594,8 +594,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec
594594
* }
595595
* </code></pre>
596596
*
597-
* @param project The name of the cloud project that subscriptions belong to. Format is
598-
* `projects/{project}`.
597+
* @param project The name of the project in which to list subscriptions. Format is
598+
* `projects/{project-id}`.
599599
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
600600
*/
601601
public final ListSubscriptionsPagedResponse listSubscriptions(String project) {
@@ -1058,9 +1058,8 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
10581058

10591059
// AUTO-GENERATED DOCUMENTATION AND METHOD
10601060
/**
1061-
* Pulls messages from the server. Returns an empty list if there are no messages available in the
1062-
* backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests
1063-
* pending for the given subscription.
1061+
* Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many
1062+
* concurrent pull requests pending for the given subscription.
10641063
*
10651064
* <p>Sample code:
10661065
*
@@ -1078,8 +1077,7 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
10781077
* @param returnImmediately If this field set to true, the system will respond immediately even if
10791078
* it there are no messages available to return in the `Pull` response. Otherwise, the system
10801079
* may wait (for a bounded amount of time) until at least one message is available, rather
1081-
* than returning no messages. The client may cancel the request if it does not wish to wait
1082-
* any longer for the response.
1080+
* than returning no messages.
10831081
* @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system
10841082
* may return fewer than the number specified.
10851083
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1098,9 +1096,8 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
10981096

10991097
// AUTO-GENERATED DOCUMENTATION AND METHOD
11001098
/**
1101-
* Pulls messages from the server. Returns an empty list if there are no messages available in the
1102-
* backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests
1103-
* pending for the given subscription.
1099+
* Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many
1100+
* concurrent pull requests pending for the given subscription.
11041101
*
11051102
* <p>Sample code:
11061103
*
@@ -1118,8 +1115,7 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
11181115
* @param returnImmediately If this field set to true, the system will respond immediately even if
11191116
* it there are no messages available to return in the `Pull` response. Otherwise, the system
11201117
* may wait (for a bounded amount of time) until at least one message is available, rather
1121-
* than returning no messages. The client may cancel the request if it does not wish to wait
1122-
* any longer for the response.
1118+
* than returning no messages.
11231119
* @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system
11241120
* may return fewer than the number specified.
11251121
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1138,9 +1134,8 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
11381134

11391135
// AUTO-GENERATED DOCUMENTATION AND METHOD
11401136
/**
1141-
* Pulls messages from the server. Returns an empty list if there are no messages available in the
1142-
* backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests
1143-
* pending for the given subscription.
1137+
* Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many
1138+
* concurrent pull requests pending for the given subscription.
11441139
*
11451140
* <p>Sample code:
11461141
*
@@ -1165,9 +1160,8 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
11651160

11661161
// AUTO-GENERATED DOCUMENTATION AND METHOD
11671162
/**
1168-
* Pulls messages from the server. Returns an empty list if there are no messages available in the
1169-
* backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests
1170-
* pending for the given subscription.
1163+
* Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many
1164+
* concurrent pull requests pending for the given subscription.
11711165
*
11721166
* <p>Sample code:
11731167
*
@@ -1373,8 +1367,8 @@ public final UnaryCallable<ModifyPushConfigRequest, Empty> modifyPushConfigCalla
13731367
* }
13741368
* </code></pre>
13751369
*
1376-
* @param project The name of the cloud project that snapshots belong to. Format is
1377-
* `projects/{project}`.
1370+
* @param project The name of the project in which to list snapshots. Format is
1371+
* `projects/{project-id}`.
13781372
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13791373
*/
13801374
public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
@@ -1402,8 +1396,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
14021396
* }
14031397
* </code></pre>
14041398
*
1405-
* @param project The name of the cloud project that snapshots belong to. Format is
1406-
* `projects/{project}`.
1399+
* @param project The name of the project in which to list snapshots. Format is
1400+
* `projects/{project-id}`.
14071401
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
14081402
*/
14091403
public final ListSnapshotsPagedResponse listSnapshots(String project) {
@@ -1503,12 +1497,12 @@ public final UnaryCallable<ListSnapshotsRequest, ListSnapshotsResponse> listSnap
15031497
* Creates a snapshot from the requested subscription.&lt;br&gt;&lt;br&gt;
15041498
* &lt;b&gt;ALPHA:&lt;/b&gt; This feature is part of an alpha release. This API might be changed
15051499
* in backward-incompatible ways and is not recommended for production use. It is not subject to
1506-
* any SLA or deprecation policy. If the snapshot already exists, returns `ALREADY_EXISTS`. If the
1507-
* requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription
1508-
* is too old -- and the resulting snapshot would expire in less than 1 hour -- then
1509-
* `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is
1510-
* not provided in the request, the server will assign a random name for this snapshot on the same
1511-
* project as the subscription, conforming to the [resource name
1500+
* any SLA or deprecation policy.&lt;br&gt;&lt;br&gt; If the snapshot already exists, returns
1501+
* `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the
1502+
* backlog in the subscription is too old -- and the resulting snapshot would expire in less than
1503+
* 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If
1504+
* the name is not provided in the request, the server will assign a random name for this snapshot
1505+
* on the same project as the subscription, conforming to the [resource name
15121506
* format](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated
15131507
* in the returned Snapshot object. Note that for REST API requests, you must specify a name in
15141508
* the request.
@@ -1525,7 +1519,8 @@ public final UnaryCallable<ListSnapshotsRequest, ListSnapshotsResponse> listSnap
15251519
*
15261520
* @param name Optional user-provided name for this snapshot. If the name is not provided in the
15271521
* request, the server will assign a random name for this snapshot on the same project as the
1528-
* subscription. Note that for REST API requests, you must specify a name. Format is
1522+
* subscription. Note that for REST API requests, you must specify a name. See the &lt;a
1523+
* href="/pubsub/docs/admin#resource_names"&gt;resource name rules&lt;/a&gt;. Format is
15291524
* `projects/{project}/snapshots/{snap}`.
15301525
* @param subscription The subscription whose backlog the snapshot retains. Specifically, the
15311526
* created snapshot is guaranteed to retain: (a) The existing backlog on the subscription.
@@ -1551,12 +1546,12 @@ public final Snapshot createSnapshot(
15511546
* Creates a snapshot from the requested subscription.&lt;br&gt;&lt;br&gt;
15521547
* &lt;b&gt;ALPHA:&lt;/b&gt; This feature is part of an alpha release. This API might be changed
15531548
* in backward-incompatible ways and is not recommended for production use. It is not subject to
1554-
* any SLA or deprecation policy. If the snapshot already exists, returns `ALREADY_EXISTS`. If the
1555-
* requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription
1556-
* is too old -- and the resulting snapshot would expire in less than 1 hour -- then
1557-
* `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is
1558-
* not provided in the request, the server will assign a random name for this snapshot on the same
1559-
* project as the subscription, conforming to the [resource name
1549+
* any SLA or deprecation policy.&lt;br&gt;&lt;br&gt; If the snapshot already exists, returns
1550+
* `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the
1551+
* backlog in the subscription is too old -- and the resulting snapshot would expire in less than
1552+
* 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If
1553+
* the name is not provided in the request, the server will assign a random name for this snapshot
1554+
* on the same project as the subscription, conforming to the [resource name
15601555
* format](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated
15611556
* in the returned Snapshot object. Note that for REST API requests, you must specify a name in
15621557
* the request.
@@ -1573,7 +1568,8 @@ public final Snapshot createSnapshot(
15731568
*
15741569
* @param name Optional user-provided name for this snapshot. If the name is not provided in the
15751570
* request, the server will assign a random name for this snapshot on the same project as the
1576-
* subscription. Note that for REST API requests, you must specify a name. Format is
1571+
* subscription. Note that for REST API requests, you must specify a name. See the &lt;a
1572+
* href="/pubsub/docs/admin#resource_names"&gt;resource name rules&lt;/a&gt;. Format is
15771573
* `projects/{project}/snapshots/{snap}`.
15781574
* @param subscription The subscription whose backlog the snapshot retains. Specifically, the
15791575
* created snapshot is guaranteed to retain: (a) The existing backlog on the subscription.
@@ -1595,12 +1591,12 @@ public final Snapshot createSnapshot(String name, String subscription) {
15951591
* Creates a snapshot from the requested subscription.&lt;br&gt;&lt;br&gt;
15961592
* &lt;b&gt;ALPHA:&lt;/b&gt; This feature is part of an alpha release. This API might be changed
15971593
* in backward-incompatible ways and is not recommended for production use. It is not subject to
1598-
* any SLA or deprecation policy. If the snapshot already exists, returns `ALREADY_EXISTS`. If the
1599-
* requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription
1600-
* is too old -- and the resulting snapshot would expire in less than 1 hour -- then
1601-
* `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is
1602-
* not provided in the request, the server will assign a random name for this snapshot on the same
1603-
* project as the subscription, conforming to the [resource name
1594+
* any SLA or deprecation policy.&lt;br&gt;&lt;br&gt; If the snapshot already exists, returns
1595+
* `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the
1596+
* backlog in the subscription is too old -- and the resulting snapshot would expire in less than
1597+
* 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If
1598+
* the name is not provided in the request, the server will assign a random name for this snapshot
1599+
* on the same project as the subscription, conforming to the [resource name
16041600
* format](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated
16051601
* in the returned Snapshot object. Note that for REST API requests, you must specify a name in
16061602
* the request.
@@ -1631,12 +1627,12 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) {
16311627
* Creates a snapshot from the requested subscription.&lt;br&gt;&lt;br&gt;
16321628
* &lt;b&gt;ALPHA:&lt;/b&gt; This feature is part of an alpha release. This API might be changed
16331629
* in backward-incompatible ways and is not recommended for production use. It is not subject to
1634-
* any SLA or deprecation policy. If the snapshot already exists, returns `ALREADY_EXISTS`. If the
1635-
* requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription
1636-
* is too old -- and the resulting snapshot would expire in less than 1 hour -- then
1637-
* `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is
1638-
* not provided in the request, the server will assign a random name for this snapshot on the same
1639-
* project as the subscription, conforming to the [resource name
1630+
* any SLA or deprecation policy.&lt;br&gt;&lt;br&gt; If the snapshot already exists, returns
1631+
* `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the
1632+
* backlog in the subscription is too old -- and the resulting snapshot would expire in less than
1633+
* 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If
1634+
* the name is not provided in the request, the server will assign a random name for this snapshot
1635+
* on the same project as the subscription, conforming to the [resource name
16401636
* format](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated
16411637
* in the returned Snapshot object. Note that for REST API requests, you must specify a name in
16421638
* the request.

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,7 @@ public final UnaryCallable<UpdateTopicRequest, Topic> updateTopicCallable() {
326326

327327
// AUTO-GENERATED DOCUMENTATION AND METHOD
328328
/**
329-
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The
330-
* message payload must not be empty; it must contain either a non-empty data field, or at least
331-
* one attribute.
329+
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.
332330
*
333331
* <p>Sample code:
334332
*
@@ -362,9 +360,7 @@ public final UnaryCallable<UpdateTopicRequest, Topic> updateTopicCallable() {
362360

363361
// AUTO-GENERATED DOCUMENTATION AND METHOD
364362
/**
365-
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The
366-
* message payload must not be empty; it must contain either a non-empty data field, or at least
367-
* one attribute.
363+
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.
368364
*
369365
* <p>Sample code:
370366
*
@@ -394,9 +390,7 @@ public final UnaryCallable<UpdateTopicRequest, Topic> updateTopicCallable() {
394390

395391
// AUTO-GENERATED DOCUMENTATION AND METHOD
396392
/**
397-
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The
398-
* message payload must not be empty; it must contain either a non-empty data field, or at least
399-
* one attribute.
393+
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.
400394
*
401395
* <p>Sample code:
402396
*
@@ -425,9 +419,7 @@ public final UnaryCallable<UpdateTopicRequest, Topic> updateTopicCallable() {
425419

426420
// AUTO-GENERATED DOCUMENTATION AND METHOD
427421
/**
428-
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The
429-
* message payload must not be empty; it must contain either a non-empty data field, or at least
430-
* one attribute.
422+
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.
431423
*
432424
* <p>Sample code:
433425
*
@@ -558,8 +550,8 @@ public final UnaryCallable<GetTopicRequest, Topic> getTopicCallable() {
558550
* }
559551
* </code></pre>
560552
*
561-
* @param project The name of the cloud project that topics belong to. Format is
562-
* `projects/{project}`.
553+
* @param project The name of the project in which to list topics. Format is
554+
* `projects/{project-id}`.
563555
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
564556
*/
565557
public final ListTopicsPagedResponse listTopics(ProjectName project) {
@@ -585,8 +577,8 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) {
585577
* }
586578
* </code></pre>
587579
*
588-
* @param project The name of the cloud project that topics belong to. Format is
589-
* `projects/{project}`.
580+
* @param project The name of the project in which to list topics. Format is
581+
* `projects/{project-id}`.
590582
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
591583
*/
592584
public final ListTopicsPagedResponse listTopics(String project) {

grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,7 @@ public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request,
384384
/**
385385
* <pre>
386386
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
387-
* does not exist. The message payload must not be empty; it must contain
388-
* either a non-empty data field, or at least one attribute.
387+
* does not exist.
389388
* </pre>
390389
*/
391390
public void publish(com.google.pubsub.v1.PublishRequest request,
@@ -561,8 +560,7 @@ public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request,
561560
/**
562561
* <pre>
563562
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
564-
* does not exist. The message payload must not be empty; it must contain
565-
* either a non-empty data field, or at least one attribute.
563+
* does not exist.
566564
* </pre>
567565
*/
568566
public void publish(com.google.pubsub.v1.PublishRequest request,
@@ -681,8 +679,7 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe
681679
/**
682680
* <pre>
683681
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
684-
* does not exist. The message payload must not be empty; it must contain
685-
* either a non-empty data field, or at least one attribute.
682+
* does not exist.
686683
* </pre>
687684
*/
688685
public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) {
@@ -797,8 +794,7 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.pubsub.v1.T
797794
/**
798795
* <pre>
799796
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
800-
* does not exist. The message payload must not be empty; it must contain
801-
* either a non-empty data field, or at least one attribute.
797+
* does not exist.
802798
* </pre>
803799
*/
804800
public com.google.common.util.concurrent.ListenableFuture<com.google.pubsub.v1.PublishResponse> publish(

0 commit comments

Comments
 (0)