Skip to content

Commit 0e366c3

Browse files
fix: Re-generated to pick up changes in the API or client library generator. (#104)
1 parent 8d4b27a commit 0e366c3

20 files changed

+612
-549
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,10 +1071,12 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
10711071
*
10721072
* @param subscription Required. The subscription from which messages should be pulled. Format is
10731073
* `projects/{project}/subscriptions/{sub}`.
1074-
* @param returnImmediately If this field set to true, the system will respond immediately even if
1075-
* it there are no messages available to return in the `Pull` response. Otherwise, the system
1076-
* may wait (for a bounded amount of time) until at least one message is available, rather
1077-
* than returning no messages.
1074+
* @param returnImmediately Optional. If this field set to true, the system will respond
1075+
* immediately even if it there are no messages available to return in the `Pull` response.
1076+
* Otherwise, the system may wait (for a bounded amount of time) until at least one message is
1077+
* available, rather than returning no messages. Warning: setting this field to `true` is
1078+
* discouraged because it adversely impacts the performance of `Pull` operations. We recommend
1079+
* that users do not set this field.
10781080
* @param maxMessages Required. The maximum number of messages to return for this request. Must be
10791081
* a positive integer. The Pub/Sub system may return fewer than the number specified.
10801082
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1108,10 +1110,12 @@ public final UnaryCallable<DeleteSubscriptionRequest, Empty> deleteSubscriptionC
11081110
*
11091111
* @param subscription Required. The subscription from which messages should be pulled. Format is
11101112
* `projects/{project}/subscriptions/{sub}`.
1111-
* @param returnImmediately If this field set to true, the system will respond immediately even if
1112-
* it there are no messages available to return in the `Pull` response. Otherwise, the system
1113-
* may wait (for a bounded amount of time) until at least one message is available, rather
1114-
* than returning no messages.
1113+
* @param returnImmediately Optional. If this field set to true, the system will respond
1114+
* immediately even if it there are no messages available to return in the `Pull` response.
1115+
* Otherwise, the system may wait (for a bounded amount of time) until at least one message is
1116+
* available, rather than returning no messages. Warning: setting this field to `true` is
1117+
* discouraged because it adversely impacts the performance of `Pull` operations. We recommend
1118+
* that users do not set this field.
11151119
* @param maxMessages Required. The maximum number of messages to return for this request. Must be
11161120
* a positive integer. The Pub/Sub system may return fewer than the number specified.
11171121
* @throws com.google.api.gax.rpc.ApiException if the remote call fails

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
185185
*
186186
*
187187
* <pre>
188-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
189-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
188+
* Required. The acknowledgment ID for the messages being acknowledged that
189+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
190+
* empty.
190191
* </pre>
191192
*
192193
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -200,8 +201,9 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
200201
*
201202
*
202203
* <pre>
203-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
204-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
204+
* Required. The acknowledgment ID for the messages being acknowledged that
205+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
206+
* empty.
205207
* </pre>
206208
*
207209
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -215,8 +217,9 @@ public int getAckIdsCount() {
215217
*
216218
*
217219
* <pre>
218-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
219-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
220+
* Required. The acknowledgment ID for the messages being acknowledged that
221+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
222+
* empty.
220223
* </pre>
221224
*
222225
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -231,8 +234,9 @@ public java.lang.String getAckIds(int index) {
231234
*
232235
*
233236
* <pre>
234-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
235-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
237+
* Required. The acknowledgment ID for the messages being acknowledged that
238+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
239+
* empty.
236240
* </pre>
237241
*
238242
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -729,8 +733,9 @@ private void ensureAckIdsIsMutable() {
729733
*
730734
*
731735
* <pre>
732-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
733-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
736+
* Required. The acknowledgment ID for the messages being acknowledged that
737+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
738+
* empty.
734739
* </pre>
735740
*
736741
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -744,8 +749,9 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
744749
*
745750
*
746751
* <pre>
747-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
748-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
752+
* Required. The acknowledgment ID for the messages being acknowledged that
753+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
754+
* empty.
749755
* </pre>
750756
*
751757
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -759,8 +765,9 @@ public int getAckIdsCount() {
759765
*
760766
*
761767
* <pre>
762-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
763-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
768+
* Required. The acknowledgment ID for the messages being acknowledged that
769+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
770+
* empty.
764771
* </pre>
765772
*
766773
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -775,8 +782,9 @@ public java.lang.String getAckIds(int index) {
775782
*
776783
*
777784
* <pre>
778-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
779-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
785+
* Required. The acknowledgment ID for the messages being acknowledged that
786+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
787+
* empty.
780788
* </pre>
781789
*
782790
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -791,8 +799,9 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
791799
*
792800
*
793801
* <pre>
794-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
795-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
802+
* Required. The acknowledgment ID for the messages being acknowledged that
803+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
804+
* empty.
796805
* </pre>
797806
*
798807
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -814,8 +823,9 @@ public Builder setAckIds(int index, java.lang.String value) {
814823
*
815824
*
816825
* <pre>
817-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
818-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
826+
* Required. The acknowledgment ID for the messages being acknowledged that
827+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
828+
* empty.
819829
* </pre>
820830
*
821831
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -836,8 +846,9 @@ public Builder addAckIds(java.lang.String value) {
836846
*
837847
*
838848
* <pre>
839-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
840-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
849+
* Required. The acknowledgment ID for the messages being acknowledged that
850+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
851+
* empty.
841852
* </pre>
842853
*
843854
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -855,8 +866,9 @@ public Builder addAllAckIds(java.lang.Iterable<java.lang.String> values) {
855866
*
856867
*
857868
* <pre>
858-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
859-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
869+
* Required. The acknowledgment ID for the messages being acknowledged that
870+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
871+
* empty.
860872
* </pre>
861873
*
862874
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -873,8 +885,9 @@ public Builder clearAckIds() {
873885
*
874886
*
875887
* <pre>
876-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
877-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
888+
* Required. The acknowledgment ID for the messages being acknowledged that
889+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
890+
* empty.
878891
* </pre>
879892
*
880893
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public interface AcknowledgeRequestOrBuilder
5858
*
5959
*
6060
* <pre>
61-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
62-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
61+
* Required. The acknowledgment ID for the messages being acknowledged that
62+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
63+
* empty.
6364
* </pre>
6465
*
6566
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -71,8 +72,9 @@ public interface AcknowledgeRequestOrBuilder
7172
*
7273
*
7374
* <pre>
74-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
75-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
75+
* Required. The acknowledgment ID for the messages being acknowledged that
76+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
77+
* empty.
7678
* </pre>
7779
*
7880
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -84,8 +86,9 @@ public interface AcknowledgeRequestOrBuilder
8486
*
8587
*
8688
* <pre>
87-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
88-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
89+
* Required. The acknowledgment ID for the messages being acknowledged that
90+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
91+
* empty.
8992
* </pre>
9093
*
9194
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -98,8 +101,9 @@ public interface AcknowledgeRequestOrBuilder
98101
*
99102
*
100103
* <pre>
101-
* Required. The acknowledgment ID for the messages being acknowledged that was returned
102-
* by the Pub/Sub system in the `Pull` response. Must not be empty.
104+
* Required. The acknowledgment ID for the messages being acknowledged that
105+
* was returned by the Pub/Sub system in the `Pull` response. Must not be
106+
* empty.
103107
* </pre>
104108
*
105109
* <code>repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
150150
*
151151
*
152152
* <pre>
153-
* Required. User-provided name for this snapshot. If the name is not provided in the
154-
* request, the server will assign a random name for this snapshot on the same
155-
* project as the subscription. Note that for REST API requests, you must
156-
* specify a name. See the &lt;a
153+
* Required. User-provided name for this snapshot. If the name is not provided
154+
* in the request, the server will assign a random name for this snapshot on
155+
* the same project as the subscription. Note that for REST API requests, you
156+
* must specify a name. See the &lt;a
157157
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
158158
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
159159
* </pre>
@@ -179,10 +179,10 @@ public java.lang.String getName() {
179179
*
180180
*
181181
* <pre>
182-
* Required. User-provided name for this snapshot. If the name is not provided in the
183-
* request, the server will assign a random name for this snapshot on the same
184-
* project as the subscription. Note that for REST API requests, you must
185-
* specify a name. See the &lt;a
182+
* Required. User-provided name for this snapshot. If the name is not provided
183+
* in the request, the server will assign a random name for this snapshot on
184+
* the same project as the subscription. Note that for REST API requests, you
185+
* must specify a name. See the &lt;a
186186
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
187187
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
188188
* </pre>
@@ -750,10 +750,10 @@ public Builder mergeFrom(
750750
*
751751
*
752752
* <pre>
753-
* Required. User-provided name for this snapshot. If the name is not provided in the
754-
* request, the server will assign a random name for this snapshot on the same
755-
* project as the subscription. Note that for REST API requests, you must
756-
* specify a name. See the &lt;a
753+
* Required. User-provided name for this snapshot. If the name is not provided
754+
* in the request, the server will assign a random name for this snapshot on
755+
* the same project as the subscription. Note that for REST API requests, you
756+
* must specify a name. See the &lt;a
757757
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
758758
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
759759
* </pre>
@@ -779,10 +779,10 @@ public java.lang.String getName() {
779779
*
780780
*
781781
* <pre>
782-
* Required. User-provided name for this snapshot. If the name is not provided in the
783-
* request, the server will assign a random name for this snapshot on the same
784-
* project as the subscription. Note that for REST API requests, you must
785-
* specify a name. See the &lt;a
782+
* Required. User-provided name for this snapshot. If the name is not provided
783+
* in the request, the server will assign a random name for this snapshot on
784+
* the same project as the subscription. Note that for REST API requests, you
785+
* must specify a name. See the &lt;a
786786
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
787787
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
788788
* </pre>
@@ -808,10 +808,10 @@ public com.google.protobuf.ByteString getNameBytes() {
808808
*
809809
*
810810
* <pre>
811-
* Required. User-provided name for this snapshot. If the name is not provided in the
812-
* request, the server will assign a random name for this snapshot on the same
813-
* project as the subscription. Note that for REST API requests, you must
814-
* specify a name. See the &lt;a
811+
* Required. User-provided name for this snapshot. If the name is not provided
812+
* in the request, the server will assign a random name for this snapshot on
813+
* the same project as the subscription. Note that for REST API requests, you
814+
* must specify a name. See the &lt;a
815815
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
816816
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
817817
* </pre>
@@ -836,10 +836,10 @@ public Builder setName(java.lang.String value) {
836836
*
837837
*
838838
* <pre>
839-
* Required. User-provided name for this snapshot. If the name is not provided in the
840-
* request, the server will assign a random name for this snapshot on the same
841-
* project as the subscription. Note that for REST API requests, you must
842-
* specify a name. See the &lt;a
839+
* Required. User-provided name for this snapshot. If the name is not provided
840+
* in the request, the server will assign a random name for this snapshot on
841+
* the same project as the subscription. Note that for REST API requests, you
842+
* must specify a name. See the &lt;a
843843
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
844844
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
845845
* </pre>
@@ -860,10 +860,10 @@ public Builder clearName() {
860860
*
861861
*
862862
* <pre>
863-
* Required. User-provided name for this snapshot. If the name is not provided in the
864-
* request, the server will assign a random name for this snapshot on the same
865-
* project as the subscription. Note that for REST API requests, you must
866-
* specify a name. See the &lt;a
863+
* Required. User-provided name for this snapshot. If the name is not provided
864+
* in the request, the server will assign a random name for this snapshot on
865+
* the same project as the subscription. Note that for REST API requests, you
866+
* must specify a name. See the &lt;a
867867
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
868868
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
869869
* </pre>

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public interface CreateSnapshotRequestOrBuilder
2727
*
2828
*
2929
* <pre>
30-
* Required. User-provided name for this snapshot. If the name is not provided in the
31-
* request, the server will assign a random name for this snapshot on the same
32-
* project as the subscription. Note that for REST API requests, you must
33-
* specify a name. See the &lt;a
30+
* Required. User-provided name for this snapshot. If the name is not provided
31+
* in the request, the server will assign a random name for this snapshot on
32+
* the same project as the subscription. Note that for REST API requests, you
33+
* must specify a name. See the &lt;a
3434
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
3535
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
3636
* </pre>
@@ -46,10 +46,10 @@ public interface CreateSnapshotRequestOrBuilder
4646
*
4747
*
4848
* <pre>
49-
* Required. User-provided name for this snapshot. If the name is not provided in the
50-
* request, the server will assign a random name for this snapshot on the same
51-
* project as the subscription. Note that for REST API requests, you must
52-
* specify a name. See the &lt;a
49+
* Required. User-provided name for this snapshot. If the name is not provided
50+
* in the request, the server will assign a random name for this snapshot on
51+
* the same project as the subscription. Note that for REST API requests, you
52+
* must specify a name. See the &lt;a
5353
* href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource
5454
* name rules&lt;/a&gt;. Format is `projects/{project}/snapshots/{snap}`.
5555
* </pre>

0 commit comments

Comments
 (0)