Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions #723

Merged
merged 4 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
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
* AcceleratorTypesSettings acceleratorTypesSettings =
* AcceleratorTypesSettings.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
* AcceleratorTypesSettings acceleratorTypesSettings =
* AcceleratorTypesSettings.newBuilder().setEndpoint(myEndpoint).build();
* AcceleratorTypesClient acceleratorTypesClient =
Expand Down Expand Up @@ -163,8 +172,11 @@ public AcceleratorTypesStub 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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* for (Map.Entry<String, AcceleratorTypesScopedList> element :
Expand All @@ -190,8 +202,11 @@ public final AggregatedListPagedResponse aggregatedList(String project) {
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* AggregatedListAcceleratorTypesRequest request =
* AggregatedListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -225,8 +240,11 @@ public final AggregatedListPagedResponse aggregatedList(
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* AggregatedListAcceleratorTypesRequest request =
* AggregatedListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -259,8 +277,11 @@ public final AggregatedListPagedResponse aggregatedList(
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* AggregatedListAcceleratorTypesRequest request =
* AggregatedListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -300,8 +321,11 @@ public final AggregatedListPagedResponse aggregatedList(
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
Expand Down Expand Up @@ -332,8 +356,11 @@ public final AcceleratorType get(String project, String zone, String accelerator
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* GetAcceleratorTypeRequest request =
* GetAcceleratorTypeRequest.newBuilder()
Expand All @@ -359,8 +386,11 @@ public final AcceleratorType get(GetAcceleratorTypeRequest 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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* GetAcceleratorTypeRequest request =
* GetAcceleratorTypeRequest.newBuilder()
Expand All @@ -385,8 +415,11 @@ public final UnaryCallable<GetAcceleratorTypeRequest, AcceleratorType> getCallab
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
Expand All @@ -413,8 +446,11 @@ public final ListPagedResponse list(String project, String zone) {
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* ListAcceleratorTypesRequest request =
* ListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -446,8 +482,11 @@ public final ListPagedResponse list(ListAcceleratorTypesRequest 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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* ListAcceleratorTypesRequest request =
* ListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -479,8 +518,11 @@ public final UnaryCallable<ListAcceleratorTypesRequest, ListPagedResponse> listP
* <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 (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* ListAcceleratorTypesRequest request =
* ListAcceleratorTypesRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
* <p>For example, to set the total timeout of get 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
* AcceleratorTypesSettings.Builder acceleratorTypesSettingsBuilder =
* AcceleratorTypesSettings.newBuilder();
* acceleratorTypesSettingsBuilder
* .getSettings()
* .setRetrySettings(
* acceleratorTypesSettingsBuilder
* .getSettings()
* .getRetrySettings()
* .toBuilder()
* acceleratorTypesSettingsBuilder.getSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AcceleratorTypesSettings acceleratorTypesSettings = acceleratorTypesSettingsBuilder.build();
Expand Down
Loading