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

- [ ] 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 b6fb62a commit 190b006
Show file tree
Hide file tree
Showing 88 changed files with 783 additions and 374 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@
* <p>For example, to set the total timeout of getEnvironment 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
* EnvironmentsSettings.Builder environmentsSettingsBuilder = EnvironmentsSettings.newBuilder();
* environmentsSettingsBuilder
* .getEnvironmentSettings()
* .setRetrySettings(
* environmentsSettingsBuilder
* .getEnvironmentSettings()
* .getRetrySettings()
* .toBuilder()
* environmentsSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* EnvironmentsSettings environmentsSettings = environmentsSettingsBuilder.build();
Expand Down
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 (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
* String parent = "parent-995424086";
* for (ImageVersion element : imageVersionsClient.listImageVersions(parent).iterateAll()) {
Expand Down Expand Up @@ -79,8 +82,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
* ImageVersionsSettings imageVersionsSettings =
* ImageVersionsSettings.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
* ImageVersionsSettings imageVersionsSettings =
* ImageVersionsSettings.newBuilder().setEndpoint(myEndpoint).build();
* ImageVersionsClient imageVersionsClient = ImageVersionsClient.create(imageVersionsSettings);
Expand All @@ -102,8 +111,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
* ImageVersionsSettings imageVersionsSettings =
* ImageVersionsSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -171,8 +183,11 @@ public ImageVersionsStub 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 (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
* String parent = "parent-995424086";
* for (ImageVersion element : imageVersionsClient.listImageVersions(parent).iterateAll()) {
Expand All @@ -198,8 +213,11 @@ public final ListImageVersionsPagedResponse listImageVersions(String parent) {
* <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 (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
* ListImageVersionsRequest request =
* ListImageVersionsRequest.newBuilder()
Expand Down Expand Up @@ -228,8 +246,11 @@ public final ListImageVersionsPagedResponse listImageVersions(ListImageVersionsR
* <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 (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
* ListImageVersionsRequest request =
* ListImageVersionsRequest.newBuilder()
Expand Down Expand Up @@ -259,8 +280,11 @@ public final ListImageVersionsPagedResponse listImageVersions(ListImageVersionsR
* <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 (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
* ListImageVersionsRequest request =
* ListImageVersionsRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@
* <p>For example, to set the total timeout of listImageVersions 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
* ImageVersionsSettings.Builder imageVersionsSettingsBuilder = ImageVersionsSettings.newBuilder();
* imageVersionsSettingsBuilder
* .listImageVersionsSettings()
* .setRetrySettings(
* imageVersionsSettingsBuilder
* .listImageVersionsSettings()
* .getRetrySettings()
* .toBuilder()
* imageVersionsSettingsBuilder.listImageVersionsSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ImageVersionsSettings imageVersionsSettings = imageVersionsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
* <p>Sample for EnvironmentsClient:
*
* <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 (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
* String name = "name3373707";
* Environment response = environmentsClient.getEnvironment(name);
Expand All @@ -39,8 +42,11 @@
* <p>Sample for ImageVersionsClient:
*
* <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 (ImageVersionsClient imageVersionsClient = ImageVersionsClient.create()) {
* String parent = "parent-995424086";
* for (ImageVersion element : imageVersionsClient.listImageVersions(parent).iterateAll()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@
* <p>For example, to set the total timeout of getEnvironment 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
* EnvironmentsStubSettings.Builder environmentsSettingsBuilder =
* EnvironmentsStubSettings.newBuilder();
* environmentsSettingsBuilder
* .getEnvironmentSettings()
* .setRetrySettings(
* environmentsSettingsBuilder
* .getEnvironmentSettings()
* .getRetrySettings()
* .toBuilder()
* environmentsSettingsBuilder.getEnvironmentSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* EnvironmentsStubSettings environmentsSettings = environmentsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class HttpJsonEnvironmentsStub extends EnvironmentsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("environment", request.getEnvironment()))
.toBody("environment", request.getEnvironment(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -207,7 +207,7 @@ public class HttpJsonEnvironmentsStub extends EnvironmentsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("environment", request.getEnvironment()))
.toBody("environment", request.getEnvironment(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@
* <p>For example, to set the total timeout of listImageVersions 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
* ImageVersionsStubSettings.Builder imageVersionsSettingsBuilder =
* ImageVersionsStubSettings.newBuilder();
* imageVersionsSettingsBuilder
* .listImageVersionsSettings()
* .setRetrySettings(
* imageVersionsSettingsBuilder
* .listImageVersionsSettings()
* .getRetrySettings()
* .toBuilder()
* imageVersionsSettingsBuilder.listImageVersionsSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ImageVersionsStubSettings imageVersionsSettings = imageVersionsSettingsBuilder.build();
Expand Down
Loading

0 comments on commit 190b006

Please sign in to comment.