From 4f2e8a5c47b2cefa470882f1a07fc76a56844bb1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 14 Jun 2022 21:22:11 +0000 Subject: [PATCH] chore: Integrate new gapic-generator-java and rules_gapic (#748) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 454027580 Source-Link: https://github.com/googleapis/googleapis/commit/1b222777baa702e7135610355706570ed2b56318 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9 chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1 PiperOrigin-RevId: 450543911 Source-Link: https://github.com/googleapis/googleapis/commit/55283447ab72f10b6c2571d770af0498b593e84f Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9 --- .../cloud/devtools/cloudbuild/v1/CloudBuildClient.java | 10 +++------- .../cloudbuild/v1/stub/CloudBuildStubSettings.java | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java index a195d827da4c..69d42cc62a71 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java @@ -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.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; @@ -168,7 +167,6 @@ public static final CloudBuildClient create(CloudBuildSettings settings) throws * Constructs an instance of CloudBuildClient, using the given stub for making calls. This is for * advanced usage - prefer using create(CloudBuildSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final CloudBuildClient create(CloudBuildStub stub) { return new CloudBuildClient(stub); } @@ -183,7 +181,6 @@ protected CloudBuildClient(CloudBuildSettings settings) throws IOException { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudBuildClient(CloudBuildStub stub) { this.settings = null; this.stub = stub; @@ -194,7 +191,6 @@ public final CloudBuildSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudBuildStub getStub() { return stub; } @@ -537,7 +533,7 @@ public final UnaryCallable listBuild * .build(); * while (true) { * ListBuildsResponse response = cloudBuildClient.listBuildsCallable().call(request); - * for (Build element : response.getResponsesList()) { + * for (Build element : response.getBuildsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1272,7 +1268,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR * while (true) { * ListBuildTriggersResponse response = * cloudBuildClient.listBuildTriggersCallable().call(request); - * for (BuildTrigger element : response.getResponsesList()) { + * for (BuildTrigger element : response.getTriggersList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2292,7 +2288,7 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest * .build(); * while (true) { * ListWorkerPoolsResponse response = cloudBuildClient.listWorkerPoolsCallable().call(request); - * for (WorkerPool element : response.getResponsesList()) { + * for (WorkerPool element : response.getWorkerPoolsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java index 8d38ce1a4797..58d8bbd8c3e0 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java @@ -479,7 +479,6 @@ public UnaryCallSettings updateWorkerPoolSet return listWorkerPoolsSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudBuildStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName()