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

- [ ] 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 68931ca commit fcc508b
Show file tree
Hide file tree
Showing 15 changed files with 1,191 additions and 507 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@
* <p>For example, to set the total timeout of getService 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
* DataprocMetastoreSettings.Builder dataprocMetastoreSettingsBuilder =
* DataprocMetastoreSettings.newBuilder();
* dataprocMetastoreSettingsBuilder
* .getServiceSettings()
* .setRetrySettings(
* dataprocMetastoreSettingsBuilder
* .getServiceSettings()
* .getRetrySettings()
* .toBuilder()
* dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DataprocMetastoreSettings dataprocMetastoreSettings = dataprocMetastoreSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@
* <p>Sample for DataprocMetastoreClient:
*
* <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 (DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.create()) {
* ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
* Service response = dataprocMetastoreClient.getService(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@
* <p>For example, to set the total timeout of getService 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
* DataprocMetastoreStubSettings.Builder dataprocMetastoreSettingsBuilder =
* DataprocMetastoreStubSettings.newBuilder();
* dataprocMetastoreSettingsBuilder
* .getServiceSettings()
* .setRetrySettings(
* dataprocMetastoreSettingsBuilder
* .getServiceSettings()
* .getRetrySettings()
* .toBuilder()
* dataprocMetastoreSettingsBuilder.getServiceSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DataprocMetastoreStubSettings dataprocMetastoreSettings =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("service", request.getService()))
ProtoRestSerializer.create()
.toBody("service", request.getService(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -228,7 +229,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("service", request.getService()))
ProtoRestSerializer.create()
.toBody("service", request.getService(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -377,7 +379,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("metadataImport", request.getMetadataImport()))
.toBody("metadataImport", request.getMetadataImport(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -421,7 +423,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("metadataImport", request.getMetadataImport()))
.toBody("metadataImport", request.getMetadataImport(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -460,7 +462,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearService().build()))
.toBody("*", request.toBuilder().clearService().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -499,7 +501,7 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearService().build()))
.toBody("*", request.toBuilder().clearService().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -608,7 +610,8 @@ public class HttpJsonDataprocMetastoreStub extends DataprocMetastoreStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("backup", request.getBackup()))
ProtoRestSerializer.create()
.toBody("backup", request.getBackup(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down
Loading

0 comments on commit fcc508b

Please sign in to comment.