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

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: googleapis/googleapis-gen@230a558
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 9, 2022
1 parent 5f2df61 commit 824e72b
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* CreateProfileRequest request =
* CreateProfileRequest.newBuilder()
Expand Down Expand Up @@ -83,8 +86,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
* ProfilerServiceSettings profilerServiceSettings =
* ProfilerServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -96,8 +102,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
* ProfilerServiceSettings profilerServiceSettings =
* ProfilerServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* ProfilerServiceClient profilerServiceClient =
Expand All @@ -108,8 +117,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
* ProfilerServiceSettings profilerServiceSettings =
* ProfilerServiceSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -187,8 +199,11 @@ public ProfilerServiceStub 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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* CreateProfileRequest request =
* CreateProfileRequest.newBuilder()
Expand Down Expand Up @@ -223,8 +238,11 @@ public final Profile createProfile(CreateProfileRequest 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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* CreateProfileRequest request =
* CreateProfileRequest.newBuilder()
Expand All @@ -250,8 +268,11 @@ public final UnaryCallable<CreateProfileRequest, Profile> createProfileCallable(
* <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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* CreateOfflineProfileRequest request =
* CreateOfflineProfileRequest.newBuilder()
Expand All @@ -277,8 +298,11 @@ public final Profile createOfflineProfile(CreateOfflineProfileRequest 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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* CreateOfflineProfileRequest request =
* CreateOfflineProfileRequest.newBuilder()
Expand All @@ -305,8 +329,11 @@ public final UnaryCallable<CreateOfflineProfileRequest, Profile> createOfflinePr
* <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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* UpdateProfileRequest request =
* UpdateProfileRequest.newBuilder()
Expand All @@ -333,8 +360,11 @@ public final Profile updateProfile(UpdateProfileRequest 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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* UpdateProfileRequest request =
* UpdateProfileRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@
* <p>For example, to set the total timeout of createProfile 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
* ProfilerServiceSettings.Builder profilerServiceSettingsBuilder =
* ProfilerServiceSettings.newBuilder();
* profilerServiceSettingsBuilder
* .createProfileSettings()
* .setRetrySettings(
* profilerServiceSettingsBuilder
* .createProfileSettings()
* .getRetrySettings()
* .toBuilder()
* profilerServiceSettingsBuilder.createProfileSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ProfilerServiceSettings profilerServiceSettings = profilerServiceSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
* <p>Sample for ProfilerServiceClient:
*
* <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 (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
* CreateProfileRequest request =
* CreateProfileRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class HttpJsonProfilerServiceStub extends ProfilerServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Profile>newBuilder()
Expand Down Expand Up @@ -115,7 +115,8 @@ public class HttpJsonProfilerServiceStub extends ProfilerServiceStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("profile", request.getProfile()))
ProtoRestSerializer.create()
.toBody("profile", request.getProfile(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Profile>newBuilder()
Expand Down Expand Up @@ -152,7 +153,8 @@ public class HttpJsonProfilerServiceStub extends ProfilerServiceStub {
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("profile", request.getProfile()))
ProtoRestSerializer.create()
.toBody("profile", request.getProfile(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Profile>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@
* <p>For example, to set the total timeout of createProfile 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
* ProfilerServiceStubSettings.Builder profilerServiceSettingsBuilder =
* ProfilerServiceStubSettings.newBuilder();
* profilerServiceSettingsBuilder
* .createProfileSettings()
* .setRetrySettings(
* profilerServiceSettingsBuilder
* .createProfileSettings()
* .getRetrySettings()
* .toBuilder()
* profilerServiceSettingsBuilder.createProfileSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ProfilerServiceStubSettings profilerServiceSettings = profilerServiceSettingsBuilder.build();
Expand Down

0 comments on commit 824e72b

Please sign in to comment.