Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

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 (#37)

- [ ] 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 10, 2022
1 parent ff1f62a commit bb7c4b1
Show file tree
Hide file tree
Showing 10 changed files with 442 additions and 194 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@
* <p>For example, to set the total timeout of createJob 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
* BatchServiceSettings.Builder batchServiceSettingsBuilder = BatchServiceSettings.newBuilder();
* batchServiceSettingsBuilder
* .createJobSettings()
* .setRetrySettings(
* batchServiceSettingsBuilder
* .createJobSettings()
* .getRetrySettings()
* .toBuilder()
* batchServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BatchServiceSettings batchServiceSettings = batchServiceSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for BatchServiceClient:
*
* <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 (BatchServiceClient batchServiceClient = BatchServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Job job = Job.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@
* <p>For example, to set the total timeout of createJob 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
* BatchServiceStubSettings.Builder batchServiceSettingsBuilder =
* BatchServiceStubSettings.newBuilder();
* batchServiceSettingsBuilder
* .createJobSettings()
* .setRetrySettings(
* batchServiceSettingsBuilder
* .createJobSettings()
* .getRetrySettings()
* .toBuilder()
* batchServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BatchServiceStubSettings batchServiceSettings = batchServiceSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public class HttpJsonBatchServiceStub extends BatchServiceStub {
return fields;
})
.setRequestBodyExtractor(
request -> ProtoRestSerializer.create().toBody("job", request.getJob()))
request ->
ProtoRestSerializer.create().toBody("job", request.getJob(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Job>newBuilder()
Expand Down Expand Up @@ -385,7 +386,7 @@ public class HttpJsonBatchServiceStub extends BatchServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -460,7 +461,7 @@ public class HttpJsonBatchServiceStub extends BatchServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Loading

0 comments on commit bb7c4b1

Please sign in to comment.