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

Commit

Permalink
chore: update gapic-generator-java (#671)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 454939894

Source-Link: googleapis/googleapis@519ca44

Source-Link: https://github.com/googleapis/googleapis-gen/commit/fc639d21a7cbc30aa0a9b862586942a0fb46c5c8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmM2MzlkMjFhN2NiYzMwYWEwYTliODYyNTg2OTQyYTBmYjQ2YzVjOCJ9

chore: Integrate new gapic-generator-java and rules_gapic
PiperOrigin-RevId: 454027580

Source-Link: googleapis/googleapis@1b22277

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9

feat: Update Compute Engine API to revision 20220526 (#722)
Source-Link: googleapis/googleapis@950dd73

Source-Link: https://github.com/googleapis/googleapis-gen/commit/57ace178c8543c44627823045917820d67b490c1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTdhY2UxNzhjODU0M2M0NDYyNzgyMzA0NTkxNzgyMGQ2N2I0OTBjMSJ9

chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1
PiperOrigin-RevId: 450543911

Source-Link: googleapis/googleapis@5528344

Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9

chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0
PiperOrigin-RevId: 446250659

Source-Link: googleapis/googleapis@dc4ef31

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9

chore(bazel): update version of Protobuf to v3.20.1
PiperOrigin-RevId: 444328399

Source-Link: googleapis/googleapis@c7ca416

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9

fix(compute): revert proto3_optional, required removal on parent_id (#714)
Source-Link: googleapis/googleapis@6b3fdce

Source-Link: https://github.com/googleapis/googleapis-gen/commit/832dbe998878d8619d6b40fe57c6d2cc6e7dc90c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODMyZGJlOTk4ODc4ZDg2MTlkNmI0MGZlNTdjNmQyY2M2ZTdkYzkwYyJ9

fix(compute): remove proto3_optional from parent_id (#712)
Source-Link: googleapis/googleapis@fd16b6a

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d935b9847a1b708ab4e696320ba60ce0341c5d7a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDkzNWI5ODQ3YTFiNzA4YWI0ZTY5NjMyMGJhNjBjZTAzNDFjNWQ3YSJ9

fix(compute): replace missing REQUIRED for parent_id (#711)
Source-Link: googleapis/googleapis@4bb6fd6

Source-Link: https://github.com/googleapis/googleapis-gen/commit/c7d06533be6e2470e36b9f351ae4ff479a47dc53
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzdkMDY1MzNiZTZlMjQ3MGUzNmI5ZjM1MWFlNGZmNDc5YTQ3ZGM1MyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jun 21, 2022
1 parent aa671e7 commit 12389d0
Show file tree
Hide file tree
Showing 2,091 changed files with 38,485 additions and 19,237 deletions.
4 changes: 0 additions & 4 deletions google-cloud-compute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
<groupId>org.threeten</groupId>
<artifactId>threetenbp</artifactId>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-common-protos</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
Expand All @@ -44,6 +43,8 @@
* 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
Expand Down Expand Up @@ -82,6 +83,8 @@
* <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.
* AcceleratorTypesSettings acceleratorTypesSettings =
* AcceleratorTypesSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -93,6 +96,8 @@
* <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.
* AcceleratorTypesSettings acceleratorTypesSettings =
* AcceleratorTypesSettings.newBuilder().setEndpoint(myEndpoint).build();
* AcceleratorTypesClient acceleratorTypesClient =
Expand Down Expand Up @@ -124,7 +129,6 @@ public static final AcceleratorTypesClient create(AcceleratorTypesSettings setti
* Constructs an instance of AcceleratorTypesClient, using the given stub for making calls. This
* is for advanced usage - prefer using create(AcceleratorTypesSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final AcceleratorTypesClient create(AcceleratorTypesStub stub) {
return new AcceleratorTypesClient(stub);
}
Expand All @@ -139,7 +143,6 @@ protected AcceleratorTypesClient(AcceleratorTypesSettings settings) throws IOExc
this.stub = ((AcceleratorTypesStubSettings) settings.getStubSettings()).createStub();
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected AcceleratorTypesClient(AcceleratorTypesStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -149,7 +152,6 @@ public final AcceleratorTypesSettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AcceleratorTypesStub getStub() {
return stub;
}
Expand All @@ -161,6 +163,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* for (Map.Entry<String, AcceleratorTypesScopedList> element :
Expand All @@ -186,6 +190,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* AggregatedListAcceleratorTypesRequest request =
* AggregatedListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -219,6 +225,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* AggregatedListAcceleratorTypesRequest request =
* AggregatedListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -251,6 +259,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* AggregatedListAcceleratorTypesRequest request =
* AggregatedListAcceleratorTypesRequest.newBuilder()
Expand All @@ -265,7 +275,7 @@ public final AggregatedListPagedResponse aggregatedList(
* while (true) {
* AcceleratorTypeAggregatedList response =
* acceleratorTypesClient.aggregatedListCallable().call(request);
* for (Map.Entry<String, AcceleratorTypesScopedList> element : response.getResponsesList()) {
* for (Map.Entry<String, AcceleratorTypesScopedList> element : response.getItemsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand All @@ -290,6 +300,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
Expand Down Expand Up @@ -320,6 +332,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* GetAcceleratorTypeRequest request =
* GetAcceleratorTypeRequest.newBuilder()
Expand All @@ -345,6 +359,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* GetAcceleratorTypeRequest request =
* GetAcceleratorTypeRequest.newBuilder()
Expand All @@ -369,6 +385,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
Expand All @@ -395,6 +413,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* ListAcceleratorTypesRequest request =
* ListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -426,6 +446,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* ListAcceleratorTypesRequest request =
* ListAcceleratorTypesRequest.newBuilder()
Expand Down Expand Up @@ -457,6 +479,8 @@ 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.
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
* ListAcceleratorTypesRequest request =
* ListAcceleratorTypesRequest.newBuilder()
Expand All @@ -470,7 +494,7 @@ public final UnaryCallable<ListAcceleratorTypesRequest, ListPagedResponse> listP
* .build();
* while (true) {
* AcceleratorTypeList response = acceleratorTypesClient.listCallable().call(request);
* for (AcceleratorType element : response.getResponsesList()) {
* for (AcceleratorType element : response.getItemsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -53,6 +53,8 @@
* <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.
* AcceleratorTypesSettings.Builder acceleratorTypesSettingsBuilder =
* AcceleratorTypesSettings.newBuilder();
* acceleratorTypesSettingsBuilder
Expand Down
Loading

0 comments on commit 12389d0

Please sign in to comment.