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

- [ ] 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 e1e049f commit 46af2e4
Show file tree
Hide file tree
Showing 118 changed files with 1,172 additions and 580 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@
* <p>For example, to set the total timeout of getInsight 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
* RecommenderSettings.Builder recommenderSettingsBuilder = RecommenderSettings.newBuilder();
* recommenderSettingsBuilder
* .getInsightSettings()
* .setRetrySettings(
* recommenderSettingsBuilder
* .getInsightSettings()
* .getRetrySettings()
* .toBuilder()
* recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* RecommenderSettings recommenderSettings = recommenderSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
* <p>Sample for RecommenderClient:
*
* <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 (RecommenderClient recommenderClient = RecommenderClient.create()) {
* InsightName name =
* InsightName.ofProjectLocationInsightTypeInsightName(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Insight>newBuilder()
Expand Down Expand Up @@ -294,7 +294,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Recommendation>newBuilder()
Expand Down Expand Up @@ -335,7 +335,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Recommendation>newBuilder()
Expand Down Expand Up @@ -375,7 +375,7 @@ public class HttpJsonRecommenderStub extends RecommenderStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Recommendation>newBuilder()
Expand Down Expand Up @@ -454,7 +454,8 @@ public class HttpJsonRecommenderStub extends RecommenderStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("recommenderConfig", request.getRecommenderConfig()))
.toBody(
"recommenderConfig", request.getRecommenderConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<RecommenderConfig>newBuilder()
Expand Down Expand Up @@ -533,7 +534,8 @@ public class HttpJsonRecommenderStub extends RecommenderStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("insightTypeConfig", request.getInsightTypeConfig()))
.toBody(
"insightTypeConfig", request.getInsightTypeConfig(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<InsightTypeConfig>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@
* <p>For example, to set the total timeout of getInsight 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
* RecommenderStubSettings.Builder recommenderSettingsBuilder =
* RecommenderStubSettings.newBuilder();
* recommenderSettingsBuilder
* .getInsightSettings()
* .setRetrySettings(
* recommenderSettingsBuilder
* .getInsightSettings()
* .getRetrySettings()
* .toBuilder()
* recommenderSettingsBuilder.getInsightSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* RecommenderStubSettings recommenderSettings = recommenderSettingsBuilder.build();
Expand Down
Loading

0 comments on commit 46af2e4

Please sign in to comment.