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

Commit 12389d0

Browse files
chore: update gapic-generator-java (#671)
- [ ] 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
1 parent aa671e7 commit 12389d0

File tree

2,091 files changed

+38485
-19237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,091 files changed

+38485
-19237
lines changed

Diff for: google-cloud-compute/pom.xml

-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151
<groupId>org.threeten</groupId>
5252
<artifactId>threetenbp</artifactId>
5353
</dependency>
54-
<dependency>
55-
<groupId>com.google.http-client</groupId>
56-
<artifactId>google-http-client</artifactId>
57-
</dependency>
5854
<dependency>
5955
<groupId>com.google.api.grpc</groupId>
6056
<artifactId>proto-google-common-protos</artifactId>

Diff for: google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesClient.java

+31-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
1818

1919
import com.google.api.core.ApiFuture;
2020
import com.google.api.core.ApiFutures;
21-
import com.google.api.core.BetaApi;
2221
import com.google.api.gax.core.BackgroundResource;
2322
import com.google.api.gax.paging.AbstractFixedSizeCollection;
2423
import com.google.api.gax.paging.AbstractPage;
@@ -44,6 +43,8 @@
4443
* calls that map to API methods. Sample code to get started:
4544
*
4645
* <pre>{@code
46+
* // This snippet has been automatically generated for illustrative purposes only.
47+
* // It may require modifications to work in your environment.
4748
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
4849
* String project = "project-309310695";
4950
* String zone = "zone3744684";
@@ -82,6 +83,8 @@
8283
* <p>To customize credentials:
8384
*
8485
* <pre>{@code
86+
* // This snippet has been automatically generated for illustrative purposes only.
87+
* // It may require modifications to work in your environment.
8588
* AcceleratorTypesSettings acceleratorTypesSettings =
8689
* AcceleratorTypesSettings.newBuilder()
8790
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,6 +96,8 @@
9396
* <p>To customize the endpoint:
9497
*
9598
* <pre>{@code
99+
* // This snippet has been automatically generated for illustrative purposes only.
100+
* // It may require modifications to work in your environment.
96101
* AcceleratorTypesSettings acceleratorTypesSettings =
97102
* AcceleratorTypesSettings.newBuilder().setEndpoint(myEndpoint).build();
98103
* AcceleratorTypesClient acceleratorTypesClient =
@@ -124,7 +129,6 @@ public static final AcceleratorTypesClient create(AcceleratorTypesSettings setti
124129
* Constructs an instance of AcceleratorTypesClient, using the given stub for making calls. This
125130
* is for advanced usage - prefer using create(AcceleratorTypesSettings).
126131
*/
127-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
128132
public static final AcceleratorTypesClient create(AcceleratorTypesStub stub) {
129133
return new AcceleratorTypesClient(stub);
130134
}
@@ -139,7 +143,6 @@ protected AcceleratorTypesClient(AcceleratorTypesSettings settings) throws IOExc
139143
this.stub = ((AcceleratorTypesStubSettings) settings.getStubSettings()).createStub();
140144
}
141145

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

152-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
153155
public AcceleratorTypesStub getStub() {
154156
return stub;
155157
}
@@ -161,6 +163,8 @@ public AcceleratorTypesStub getStub() {
161163
* <p>Sample code:
162164
*
163165
* <pre>{@code
166+
* // This snippet has been automatically generated for illustrative purposes only.
167+
* // It may require modifications to work in your environment.
164168
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
165169
* String project = "project-309310695";
166170
* for (Map.Entry<String, AcceleratorTypesScopedList> element :
@@ -186,6 +190,8 @@ public final AggregatedListPagedResponse aggregatedList(String project) {
186190
* <p>Sample code:
187191
*
188192
* <pre>{@code
193+
* // This snippet has been automatically generated for illustrative purposes only.
194+
* // It may require modifications to work in your environment.
189195
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
190196
* AggregatedListAcceleratorTypesRequest request =
191197
* AggregatedListAcceleratorTypesRequest.newBuilder()
@@ -219,6 +225,8 @@ public final AggregatedListPagedResponse aggregatedList(
219225
* <p>Sample code:
220226
*
221227
* <pre>{@code
228+
* // This snippet has been automatically generated for illustrative purposes only.
229+
* // It may require modifications to work in your environment.
222230
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
223231
* AggregatedListAcceleratorTypesRequest request =
224232
* AggregatedListAcceleratorTypesRequest.newBuilder()
@@ -251,6 +259,8 @@ public final AggregatedListPagedResponse aggregatedList(
251259
* <p>Sample code:
252260
*
253261
* <pre>{@code
262+
* // This snippet has been automatically generated for illustrative purposes only.
263+
* // It may require modifications to work in your environment.
254264
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
255265
* AggregatedListAcceleratorTypesRequest request =
256266
* AggregatedListAcceleratorTypesRequest.newBuilder()
@@ -265,7 +275,7 @@ public final AggregatedListPagedResponse aggregatedList(
265275
* while (true) {
266276
* AcceleratorTypeAggregatedList response =
267277
* acceleratorTypesClient.aggregatedListCallable().call(request);
268-
* for (Map.Entry<String, AcceleratorTypesScopedList> element : response.getResponsesList()) {
278+
* for (Map.Entry<String, AcceleratorTypesScopedList> element : response.getItemsList()) {
269279
* // doThingsWith(element);
270280
* }
271281
* String nextPageToken = response.getNextPageToken();
@@ -290,6 +300,8 @@ public final AggregatedListPagedResponse aggregatedList(
290300
* <p>Sample code:
291301
*
292302
* <pre>{@code
303+
* // This snippet has been automatically generated for illustrative purposes only.
304+
* // It may require modifications to work in your environment.
293305
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
294306
* String project = "project-309310695";
295307
* String zone = "zone3744684";
@@ -320,6 +332,8 @@ public final AcceleratorType get(String project, String zone, String accelerator
320332
* <p>Sample code:
321333
*
322334
* <pre>{@code
335+
* // This snippet has been automatically generated for illustrative purposes only.
336+
* // It may require modifications to work in your environment.
323337
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
324338
* GetAcceleratorTypeRequest request =
325339
* GetAcceleratorTypeRequest.newBuilder()
@@ -345,6 +359,8 @@ public final AcceleratorType get(GetAcceleratorTypeRequest request) {
345359
* <p>Sample code:
346360
*
347361
* <pre>{@code
362+
* // This snippet has been automatically generated for illustrative purposes only.
363+
* // It may require modifications to work in your environment.
348364
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
349365
* GetAcceleratorTypeRequest request =
350366
* GetAcceleratorTypeRequest.newBuilder()
@@ -369,6 +385,8 @@ public final UnaryCallable<GetAcceleratorTypeRequest, AcceleratorType> getCallab
369385
* <p>Sample code:
370386
*
371387
* <pre>{@code
388+
* // This snippet has been automatically generated for illustrative purposes only.
389+
* // It may require modifications to work in your environment.
372390
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
373391
* String project = "project-309310695";
374392
* String zone = "zone3744684";
@@ -395,6 +413,8 @@ public final ListPagedResponse list(String project, String zone) {
395413
* <p>Sample code:
396414
*
397415
* <pre>{@code
416+
* // This snippet has been automatically generated for illustrative purposes only.
417+
* // It may require modifications to work in your environment.
398418
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
399419
* ListAcceleratorTypesRequest request =
400420
* ListAcceleratorTypesRequest.newBuilder()
@@ -426,6 +446,8 @@ public final ListPagedResponse list(ListAcceleratorTypesRequest request) {
426446
* <p>Sample code:
427447
*
428448
* <pre>{@code
449+
* // This snippet has been automatically generated for illustrative purposes only.
450+
* // It may require modifications to work in your environment.
429451
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
430452
* ListAcceleratorTypesRequest request =
431453
* ListAcceleratorTypesRequest.newBuilder()
@@ -457,6 +479,8 @@ public final UnaryCallable<ListAcceleratorTypesRequest, ListPagedResponse> listP
457479
* <p>Sample code:
458480
*
459481
* <pre>{@code
482+
* // This snippet has been automatically generated for illustrative purposes only.
483+
* // It may require modifications to work in your environment.
460484
* try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
461485
* ListAcceleratorTypesRequest request =
462486
* ListAcceleratorTypesRequest.newBuilder()
@@ -470,7 +494,7 @@ public final UnaryCallable<ListAcceleratorTypesRequest, ListPagedResponse> listP
470494
* .build();
471495
* while (true) {
472496
* AcceleratorTypeList response = acceleratorTypesClient.listCallable().call(request);
473-
* for (AcceleratorType element : response.getResponsesList()) {
497+
* for (AcceleratorType element : response.getItemsList()) {
474498
* // doThingsWith(element);
475499
* }
476500
* String nextPageToken = response.getNextPageToken();

Diff for: google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -53,6 +53,8 @@
5353
* <p>For example, to set the total timeout of get to 30 seconds:
5454
*
5555
* <pre>{@code
56+
* // This snippet has been automatically generated for illustrative purposes only.
57+
* // It may require modifications to work in your environment.
5658
* AcceleratorTypesSettings.Builder acceleratorTypesSettingsBuilder =
5759
* AcceleratorTypesSettings.newBuilder();
5860
* acceleratorTypesSettingsBuilder

0 commit comments

Comments
 (0)