Skip to content

Commit

Permalink
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
Browse files Browse the repository at this point in the history
…ator_java versions (#206)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 9, 2022
1 parent 5c43f5e commit 51d7f43
Show file tree
Hide file tree
Showing 14 changed files with 167 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
* calls that map to API methods. Sample code to get started:
*
* <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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
* AllocateQuotaRequest request =
* AllocateQuotaRequest.newBuilder()
Expand Down Expand Up @@ -78,8 +81,11 @@
* <p>To customize credentials:
*
* <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
* QuotaControllerSettings quotaControllerSettings =
* QuotaControllerSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -91,8 +97,11 @@
* <p>To customize the endpoint:
*
* <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
* QuotaControllerSettings quotaControllerSettings =
* QuotaControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
* QuotaControllerClient quotaControllerClient =
Expand All @@ -103,8 +112,11 @@
* the wire:
*
* <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
* QuotaControllerSettings quotaControllerSettings =
* QuotaControllerSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -181,8 +193,11 @@ public QuotaControllerStub getStub() {
* <p>Sample code:
*
* <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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
* AllocateQuotaRequest request =
* AllocateQuotaRequest.newBuilder()
Expand Down Expand Up @@ -216,8 +231,11 @@ public final AllocateQuotaResponse allocateQuota(AllocateQuotaRequest request) {
* <p>Sample code:
*
* <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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
* AllocateQuotaRequest request =
* AllocateQuotaRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@
* <p>For example, to set the total timeout of allocateQuota 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
* QuotaControllerSettings.Builder quotaControllerSettingsBuilder =
* QuotaControllerSettings.newBuilder();
* quotaControllerSettingsBuilder
* .allocateQuotaSettings()
* .setRetrySettings(
* quotaControllerSettingsBuilder
* .allocateQuotaSettings()
* .getRetrySettings()
* .toBuilder()
* quotaControllerSettingsBuilder.allocateQuotaSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* QuotaControllerSettings quotaControllerSettings = quotaControllerSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
* calls that map to API methods. Sample code to get started:
*
* <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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
* CheckRequest request =
* CheckRequest.newBuilder()
Expand Down Expand Up @@ -78,8 +81,11 @@
* <p>To customize credentials:
*
* <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
* ServiceControllerSettings serviceControllerSettings =
* ServiceControllerSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -91,8 +97,11 @@
* <p>To customize the endpoint:
*
* <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
* ServiceControllerSettings serviceControllerSettings =
* ServiceControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
* ServiceControllerClient serviceControllerClient =
Expand All @@ -103,8 +112,11 @@
* the wire:
*
* <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
* ServiceControllerSettings serviceControllerSettings =
* ServiceControllerSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -186,8 +198,11 @@ public ServiceControllerStub getStub() {
* <p>Sample code:
*
* <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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
* CheckRequest request =
* CheckRequest.newBuilder()
Expand Down Expand Up @@ -226,8 +241,11 @@ public final CheckResponse check(CheckRequest request) {
* <p>Sample code:
*
* <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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
* CheckRequest request =
* CheckRequest.newBuilder()
Expand Down Expand Up @@ -264,8 +282,11 @@ public final UnaryCallable<CheckRequest, CheckResponse> checkCallable() {
* <p>Sample code:
*
* <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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
* ReportRequest request =
* ReportRequest.newBuilder()
Expand Down Expand Up @@ -303,8 +324,11 @@ public final ReportResponse report(ReportRequest request) {
* <p>Sample code:
*
* <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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
* ReportRequest request =
* ReportRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@
* <p>For example, to set the total timeout of check 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
* ServiceControllerSettings.Builder serviceControllerSettingsBuilder =
* ServiceControllerSettings.newBuilder();
* serviceControllerSettingsBuilder
* .checkSettings()
* .setRetrySettings(
* serviceControllerSettingsBuilder
* .checkSettings()
* .getRetrySettings()
* .toBuilder()
* serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ServiceControllerSettings serviceControllerSettings = serviceControllerSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for QuotaControllerClient:
*
* <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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
* AllocateQuotaRequest request =
* AllocateQuotaRequest.newBuilder()
Expand All @@ -50,8 +53,11 @@
* <p>Sample for ServiceControllerClient:
*
* <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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
* CheckRequest request =
* CheckRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public class HttpJsonQuotaControllerStub extends QuotaControllerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearServiceName().build()))
.toBody(
"*", request.toBuilder().clearServiceName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<AllocateQuotaResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearServiceName().build()))
.toBody("*", request.toBuilder().clearServiceName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<CheckResponse>newBuilder()
Expand Down Expand Up @@ -111,7 +111,7 @@ public class HttpJsonServiceControllerStub extends ServiceControllerStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearServiceName().build()))
.toBody("*", request.toBuilder().clearServiceName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ReportResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@
* <p>For example, to set the total timeout of allocateQuota 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
* QuotaControllerStubSettings.Builder quotaControllerSettingsBuilder =
* QuotaControllerStubSettings.newBuilder();
* quotaControllerSettingsBuilder
* .allocateQuotaSettings()
* .setRetrySettings(
* quotaControllerSettingsBuilder
* .allocateQuotaSettings()
* .getRetrySettings()
* .toBuilder()
* quotaControllerSettingsBuilder.allocateQuotaSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* QuotaControllerStubSettings quotaControllerSettings = quotaControllerSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@
* <p>For example, to set the total timeout of check 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
* ServiceControllerStubSettings.Builder serviceControllerSettingsBuilder =
* ServiceControllerStubSettings.newBuilder();
* serviceControllerSettingsBuilder
* .checkSettings()
* .setRetrySettings(
* serviceControllerSettingsBuilder
* .checkSettings()
* .getRetrySettings()
* .toBuilder()
* serviceControllerSettingsBuilder.checkSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ServiceControllerStubSettings serviceControllerSettings =
Expand Down
Loading

0 comments on commit 51d7f43

Please sign in to comment.