Skip to content

Commit

Permalink
chore(bazel): update protobuf to v3.21.7 (#1262)
Browse files Browse the repository at this point in the history
* chore(bazel): update protobuf to v3.21.7

PiperOrigin-RevId: 477955264

Source-Link: googleapis/googleapis@a724450

Source-Link: googleapis/googleapis-gen@4abcbca
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: googleapis/googleapis-gen@230a558
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Oct 4, 2022
1 parent 682d873 commit 7c3ea60
Show file tree
Hide file tree
Showing 68 changed files with 4,189 additions and 5,410 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@
* <p>For example, to set the total timeout of createSchema to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
* schemaServiceSettingsBuilder
* .createSchemaSettings()
* .setRetrySettings(
* schemaServiceSettingsBuilder
* .createSchemaSettings()
* .getRetrySettings()
* .toBuilder()
* schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@
* <p>For example, to set the total timeout of createSubscription to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
* SubscriptionAdminSettings.newBuilder();
* subscriptionAdminSettingsBuilder
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@
* <p>For example, to set the total timeout of createTopic to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
* topicAdminSettingsBuilder
* .createTopicSettings()
* .setRetrySettings(
* topicAdminSettingsBuilder
* .createTopicSettings()
* .getRetrySettings()
* .toBuilder()
* topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for TopicAdminClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
* TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
* Topic response = topicAdminClient.createTopic(name);
Expand All @@ -44,8 +47,11 @@
* <p>Sample for SubscriptionAdminClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
* SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
* TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
Expand All @@ -63,8 +69,11 @@
* <p>Sample for SchemaServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* Schema schema = Schema.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Topic>newBuilder()
Expand Down Expand Up @@ -130,7 +130,8 @@ public class HttpJsonPublisherStub extends PublisherStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Topic>newBuilder()
Expand Down Expand Up @@ -166,7 +167,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearTopic().build()))
.toBody("*", request.toBuilder().clearTopic().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<PublishResponse>newBuilder()
Expand Down Expand Up @@ -411,7 +412,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -488,7 +489,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("schema", request.getSchema()))
ProtoRestSerializer.create()
.toBody("schema", request.getSchema(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Schema>newBuilder()
Expand Down Expand Up @@ -231,7 +232,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ValidateSchemaResponse>newBuilder()
Expand Down Expand Up @@ -267,7 +268,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ValidateMessageResponse>newBuilder()
Expand Down Expand Up @@ -307,7 +308,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -384,7 +385,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Subscription>newBuilder()
Expand Down Expand Up @@ -174,7 +174,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Subscription>newBuilder()
Expand Down Expand Up @@ -280,7 +281,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearSubscription().build()))
.toBody(
"*", request.toBuilder().clearSubscription().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Empty>newBuilder()
Expand Down Expand Up @@ -315,7 +317,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearSubscription().build()))
.toBody("*", request.toBuilder().clearSubscription().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Empty>newBuilder()
Expand Down Expand Up @@ -348,7 +350,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearSubscription().build()))
.toBody("*", request.toBuilder().clearSubscription().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<PullResponse>newBuilder()
Expand Down Expand Up @@ -385,7 +387,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearSubscription().build()))
.toBody(
"*", request.toBuilder().clearSubscription().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Empty>newBuilder()
Expand Down Expand Up @@ -489,7 +492,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Snapshot>newBuilder()
Expand Down Expand Up @@ -525,7 +528,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Snapshot>newBuilder()
Expand Down Expand Up @@ -591,7 +595,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearSubscription().build()))
.toBody("*", request.toBuilder().clearSubscription().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<SeekResponse>newBuilder()
Expand Down Expand Up @@ -631,7 +635,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -708,7 +712,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@
* <p>For example, to set the total timeout of createTopic to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
* topicAdminSettingsBuilder
* .createTopicSettings()
* .setRetrySettings(
* topicAdminSettingsBuilder
* .createTopicSettings()
* .getRetrySettings()
* .toBuilder()
* topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@
* <p>For example, to set the total timeout of createSchema to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
* SchemaServiceStubSettings.newBuilder();
* schemaServiceSettingsBuilder
* .createSchemaSettings()
* .setRetrySettings(
* schemaServiceSettingsBuilder
* .createSchemaSettings()
* .getRetrySettings()
* .toBuilder()
* schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
Expand Down

0 comments on commit 7c3ea60

Please sign in to comment.