Skip to content

Commit c4a9ff8

Browse files
chore(bazel): update protobuf to v3.21.7 (#1201)
* chore(bazel): update protobuf to v3.21.7 PiperOrigin-RevId: 477955264 Source-Link: googleapis/googleapis@a724450 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions PiperOrigin-RevId: 472750037 Source-Link: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 08032ea commit c4a9ff8

File tree

208 files changed

+5402
-7072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+5402
-7072
lines changed

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java

Lines changed: 400 additions & 160 deletions
Large diffs are not rendered by default.

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@
8989
* <p>For example, to set the total timeout of createTopic to 30 seconds:
9090
*
9191
* <pre>{@code
92-
* // This snippet has been automatically generated for illustrative purposes only.
93-
* // It may require modifications to work in your environment.
92+
* // This snippet has been automatically generated and should be regarded as a code template only.
93+
* // It will require modifications to work:
94+
* // - It may require correct/in-range values for request initialization.
95+
* // - It may require specifying regional endpoints when creating the service client as shown in
96+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9497
* AdminServiceSettings.Builder adminServiceSettingsBuilder = AdminServiceSettings.newBuilder();
9598
* adminServiceSettingsBuilder
9699
* .createTopicSettings()
97100
* .setRetrySettings(
98-
* adminServiceSettingsBuilder
99-
* .createTopicSettings()
100-
* .getRetrySettings()
101-
* .toBuilder()
101+
* adminServiceSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
102102
* .setTotalTimeout(Duration.ofSeconds(30))
103103
* .build());
104104
* AdminServiceSettings adminServiceSettings = adminServiceSettingsBuilder.build();

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java

Lines changed: 55 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
* calls that map to API methods. Sample code to get started:
5252
*
5353
* <pre>{@code
54-
* // This snippet has been automatically generated for illustrative purposes only.
55-
* // It may require modifications to work in your environment.
54+
* // This snippet has been automatically generated and should be regarded as a code template only.
55+
* // It will require modifications to work:
56+
* // - It may require correct/in-range values for request initialization.
57+
* // - It may require specifying regional endpoints when creating the service client as shown in
58+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5659
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
5760
* CommitCursorRequest request =
5861
* CommitCursorRequest.newBuilder()
@@ -93,8 +96,11 @@
9396
* <p>To customize credentials:
9497
*
9598
* <pre>{@code
96-
* // This snippet has been automatically generated for illustrative purposes only.
97-
* // It may require modifications to work in your environment.
99+
* // This snippet has been automatically generated and should be regarded as a code template only.
100+
* // It will require modifications to work:
101+
* // - It may require correct/in-range values for request initialization.
102+
* // - It may require specifying regional endpoints when creating the service client as shown in
103+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
98104
* CursorServiceSettings cursorServiceSettings =
99105
* CursorServiceSettings.newBuilder()
100106
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -105,8 +111,11 @@
105111
* <p>To customize the endpoint:
106112
*
107113
* <pre>{@code
108-
* // This snippet has been automatically generated for illustrative purposes only.
109-
* // It may require modifications to work in your environment.
114+
* // This snippet has been automatically generated and should be regarded as a code template only.
115+
* // It will require modifications to work:
116+
* // - It may require correct/in-range values for request initialization.
117+
* // - It may require specifying regional endpoints when creating the service client as shown in
118+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
110119
* CursorServiceSettings cursorServiceSettings =
111120
* CursorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
112121
* CursorServiceClient cursorServiceClient = CursorServiceClient.create(cursorServiceSettings);
@@ -171,8 +180,11 @@ public CursorServiceStub getStub() {
171180
* <p>Sample code:
172181
*
173182
* <pre>{@code
174-
* // This snippet has been automatically generated for illustrative purposes only.
175-
* // It may require modifications to work in your environment.
183+
* // This snippet has been automatically generated and should be regarded as a code template only.
184+
* // It will require modifications to work:
185+
* // - It may require correct/in-range values for request initialization.
186+
* // - It may require specifying regional endpoints when creating the service client as shown in
187+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
176188
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
177189
* BidiStream<StreamingCommitCursorRequest, StreamingCommitCursorResponse> bidiStream =
178190
* cursorServiceClient.streamingCommitCursorCallable().call();
@@ -196,8 +208,11 @@ public CursorServiceStub getStub() {
196208
* <p>Sample code:
197209
*
198210
* <pre>{@code
199-
* // This snippet has been automatically generated for illustrative purposes only.
200-
* // It may require modifications to work in your environment.
211+
* // This snippet has been automatically generated and should be regarded as a code template only.
212+
* // It will require modifications to work:
213+
* // - It may require correct/in-range values for request initialization.
214+
* // - It may require specifying regional endpoints when creating the service client as shown in
215+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
201216
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
202217
* CommitCursorRequest request =
203218
* CommitCursorRequest.newBuilder()
@@ -223,8 +238,11 @@ public final CommitCursorResponse commitCursor(CommitCursorRequest request) {
223238
* <p>Sample code:
224239
*
225240
* <pre>{@code
226-
* // This snippet has been automatically generated for illustrative purposes only.
227-
* // It may require modifications to work in your environment.
241+
* // This snippet has been automatically generated and should be regarded as a code template only.
242+
* // It will require modifications to work:
243+
* // - It may require correct/in-range values for request initialization.
244+
* // - It may require specifying regional endpoints when creating the service client as shown in
245+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
228246
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
229247
* CommitCursorRequest request =
230248
* CommitCursorRequest.newBuilder()
@@ -250,8 +268,11 @@ public final UnaryCallable<CommitCursorRequest, CommitCursorResponse> commitCurs
250268
* <p>Sample code:
251269
*
252270
* <pre>{@code
253-
* // This snippet has been automatically generated for illustrative purposes only.
254-
* // It may require modifications to work in your environment.
271+
* // This snippet has been automatically generated and should be regarded as a code template only.
272+
* // It will require modifications to work:
273+
* // - It may require correct/in-range values for request initialization.
274+
* // - It may require specifying regional endpoints when creating the service client as shown in
275+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
255276
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
256277
* SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
257278
* for (PartitionCursor element :
@@ -280,8 +301,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(Subscription
280301
* <p>Sample code:
281302
*
282303
* <pre>{@code
283-
* // This snippet has been automatically generated for illustrative purposes only.
284-
* // It may require modifications to work in your environment.
304+
* // This snippet has been automatically generated and should be regarded as a code template only.
305+
* // It will require modifications to work:
306+
* // - It may require correct/in-range values for request initialization.
307+
* // - It may require specifying regional endpoints when creating the service client as shown in
308+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
285309
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
286310
* String parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString();
287311
* for (PartitionCursor element :
@@ -308,8 +332,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(String paren
308332
* <p>Sample code:
309333
*
310334
* <pre>{@code
311-
* // This snippet has been automatically generated for illustrative purposes only.
312-
* // It may require modifications to work in your environment.
335+
* // This snippet has been automatically generated and should be regarded as a code template only.
336+
* // It will require modifications to work:
337+
* // - It may require correct/in-range values for request initialization.
338+
* // - It may require specifying regional endpoints when creating the service client as shown in
339+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
313340
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
314341
* ListPartitionCursorsRequest request =
315342
* ListPartitionCursorsRequest.newBuilder()
@@ -340,8 +367,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(
340367
* <p>Sample code:
341368
*
342369
* <pre>{@code
343-
* // This snippet has been automatically generated for illustrative purposes only.
344-
* // It may require modifications to work in your environment.
370+
* // This snippet has been automatically generated and should be regarded as a code template only.
371+
* // It will require modifications to work:
372+
* // - It may require correct/in-range values for request initialization.
373+
* // - It may require specifying regional endpoints when creating the service client as shown in
374+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
345375
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
346376
* ListPartitionCursorsRequest request =
347377
* ListPartitionCursorsRequest.newBuilder()
@@ -371,8 +401,11 @@ public final ListPartitionCursorsPagedResponse listPartitionCursors(
371401
* <p>Sample code:
372402
*
373403
* <pre>{@code
374-
* // This snippet has been automatically generated for illustrative purposes only.
375-
* // It may require modifications to work in your environment.
404+
* // This snippet has been automatically generated and should be regarded as a code template only.
405+
* // It will require modifications to work:
406+
* // - It may require correct/in-range values for request initialization.
407+
* // - It may require specifying regional endpoints when creating the service client as shown in
408+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
376409
* try (CursorServiceClient cursorServiceClient = CursorServiceClient.create()) {
377410
* ListPartitionCursorsRequest request =
378411
* ListPartitionCursorsRequest.newBuilder()

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@
5959
* <p>For example, to set the total timeout of commitCursor to 30 seconds:
6060
*
6161
* <pre>{@code
62-
* // This snippet has been automatically generated for illustrative purposes only.
63-
* // It may require modifications to work in your environment.
62+
* // This snippet has been automatically generated and should be regarded as a code template only.
63+
* // It will require modifications to work:
64+
* // - It may require correct/in-range values for request initialization.
65+
* // - It may require specifying regional endpoints when creating the service client as shown in
66+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6467
* CursorServiceSettings.Builder cursorServiceSettingsBuilder = CursorServiceSettings.newBuilder();
6568
* cursorServiceSettingsBuilder
6669
* .commitCursorSettings()
6770
* .setRetrySettings(
68-
* cursorServiceSettingsBuilder
69-
* .commitCursorSettings()
70-
* .getRetrySettings()
71-
* .toBuilder()
71+
* cursorServiceSettingsBuilder.commitCursorSettings().getRetrySettings().toBuilder()
7272
* .setTotalTimeout(Duration.ofSeconds(30))
7373
* .build());
7474
* CursorServiceSettings cursorServiceSettings = cursorServiceSettingsBuilder.build();

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
* calls that map to API methods. Sample code to get started:
3636
*
3737
* <pre>{@code
38-
* // This snippet has been automatically generated for illustrative purposes only.
39-
* // It may require modifications to work in your environment.
38+
* // This snippet has been automatically generated and should be regarded as a code template only.
39+
* // It will require modifications to work:
40+
* // - It may require correct/in-range values for request initialization.
41+
* // - It may require specifying regional endpoints when creating the service client as shown in
42+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4043
* try (PartitionAssignmentServiceClient partitionAssignmentServiceClient =
4144
* PartitionAssignmentServiceClient.create()) {
4245
* BidiStream<PartitionAssignmentRequest, PartitionAssignment> bidiStream =
@@ -79,8 +82,11 @@
7982
* <p>To customize credentials:
8083
*
8184
* <pre>{@code
82-
* // This snippet has been automatically generated for illustrative purposes only.
83-
* // It may require modifications to work in your environment.
85+
* // This snippet has been automatically generated and should be regarded as a code template only.
86+
* // It will require modifications to work:
87+
* // - It may require correct/in-range values for request initialization.
88+
* // - It may require specifying regional endpoints when creating the service client as shown in
89+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8490
* PartitionAssignmentServiceSettings partitionAssignmentServiceSettings =
8591
* PartitionAssignmentServiceSettings.newBuilder()
8692
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,8 +98,11 @@
9298
* <p>To customize the endpoint:
9399
*
94100
* <pre>{@code
95-
* // This snippet has been automatically generated for illustrative purposes only.
96-
* // It may require modifications to work in your environment.
101+
* // This snippet has been automatically generated and should be regarded as a code template only.
102+
* // It will require modifications to work:
103+
* // - It may require correct/in-range values for request initialization.
104+
* // - It may require specifying regional endpoints when creating the service client as shown in
105+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
97106
* PartitionAssignmentServiceSettings partitionAssignmentServiceSettings =
98107
* PartitionAssignmentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
99108
* PartitionAssignmentServiceClient partitionAssignmentServiceClient =
@@ -166,8 +175,11 @@ public PartitionAssignmentServiceStub getStub() {
166175
* <p>Sample code:
167176
*
168177
* <pre>{@code
169-
* // This snippet has been automatically generated for illustrative purposes only.
170-
* // It may require modifications to work in your environment.
178+
* // This snippet has been automatically generated and should be regarded as a code template only.
179+
* // It will require modifications to work:
180+
* // - It may require correct/in-range values for request initialization.
181+
* // - It may require specifying regional endpoints when creating the service client as shown in
182+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
171183
* try (PartitionAssignmentServiceClient partitionAssignmentServiceClient =
172184
* PartitionAssignmentServiceClient.create()) {
173185
* BidiStream<PartitionAssignmentRequest, PartitionAssignment> bidiStream =

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
* <p>For example, to set the total timeout of assignPartitions to 30 seconds:
5353
*
5454
* <pre>{@code
55-
* // This snippet has been automatically generated for illustrative purposes only.
56-
* // It may require modifications to work in your environment.
55+
* // This snippet has been automatically generated and should be regarded as a code template only.
56+
* // It will require modifications to work:
57+
* // - It may require correct/in-range values for request initialization.
58+
* // - It may require specifying regional endpoints when creating the service client as shown in
59+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5760
* PartitionAssignmentServiceSettings.Builder partitionAssignmentServiceSettingsBuilder =
5861
* PartitionAssignmentServiceSettings.newBuilder();
5962
* partitionAssignmentServiceSettingsBuilder

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@
3737
* calls that map to API methods. Sample code to get started:
3838
*
3939
* <pre>{@code
40-
* // This snippet has been automatically generated for illustrative purposes only.
41-
* // It may require modifications to work in your environment.
40+
* // This snippet has been automatically generated and should be regarded as a code template only.
41+
* // It will require modifications to work:
42+
* // - It may require correct/in-range values for request initialization.
43+
* // - It may require specifying regional endpoints when creating the service client as shown in
44+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4245
* try (PublisherServiceClient publisherServiceClient = PublisherServiceClient.create()) {
4346
* BidiStream<PublishRequest, PublishResponse> bidiStream =
4447
* publisherServiceClient.publishCallable().call();
@@ -80,8 +83,11 @@
8083
* <p>To customize credentials:
8184
*
8285
* <pre>{@code
83-
* // This snippet has been automatically generated for illustrative purposes only.
84-
* // It may require modifications to work in your environment.
86+
* // This snippet has been automatically generated and should be regarded as a code template only.
87+
* // It will require modifications to work:
88+
* // - It may require correct/in-range values for request initialization.
89+
* // - It may require specifying regional endpoints when creating the service client as shown in
90+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8591
* PublisherServiceSettings publisherServiceSettings =
8692
* PublisherServiceSettings.newBuilder()
8793
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,8 +99,11 @@
9399
* <p>To customize the endpoint:
94100
*
95101
* <pre>{@code
96-
* // This snippet has been automatically generated for illustrative purposes only.
97-
* // It may require modifications to work in your environment.
102+
* // This snippet has been automatically generated and should be regarded as a code template only.
103+
* // It will require modifications to work:
104+
* // - It may require correct/in-range values for request initialization.
105+
* // - It may require specifying regional endpoints when creating the service client as shown in
106+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
98107
* PublisherServiceSettings publisherServiceSettings =
99108
* PublisherServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
100109
* PublisherServiceClient publisherServiceClient =
@@ -165,8 +174,11 @@ public PublisherServiceStub getStub() {
165174
* <p>Sample code:
166175
*
167176
* <pre>{@code
168-
* // This snippet has been automatically generated for illustrative purposes only.
169-
* // It may require modifications to work in your environment.
177+
* // This snippet has been automatically generated and should be regarded as a code template only.
178+
* // It will require modifications to work:
179+
* // - It may require correct/in-range values for request initialization.
180+
* // - It may require specifying regional endpoints when creating the service client as shown in
181+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
170182
* try (PublisherServiceClient publisherServiceClient = PublisherServiceClient.create()) {
171183
* BidiStream<PublishRequest, PublishResponse> bidiStream =
172184
* publisherServiceClient.publishCallable().call();

0 commit comments

Comments
 (0)