From bb976f8c2f856a4e0161bdc75de223e60e0826a9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 13 Jun 2022 20:12:37 +0000 Subject: [PATCH] chore: Integrate new gapic-generator-java and rules_gapic (#762) - [ ] 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 --- .../com/google/cloud/scheduler/v1/CloudSchedulerClient.java | 6 +----- .../cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java | 1 - .../cloud/scheduler/v1beta1/CloudSchedulerClient.java | 5 +---- .../scheduler/v1beta1/stub/CloudSchedulerStubSettings.java | 1 - 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java index 8a9c46646b85..24efc245f33b 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.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.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -125,7 +124,6 @@ public static final CloudSchedulerClient create(CloudSchedulerSettings settings) * Constructs an instance of CloudSchedulerClient, using the given stub for making calls. This is * for advanced usage - prefer using create(CloudSchedulerSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final CloudSchedulerClient create(CloudSchedulerStub stub) { return new CloudSchedulerClient(stub); } @@ -140,7 +138,6 @@ protected CloudSchedulerClient(CloudSchedulerSettings settings) throws IOExcepti this.stub = ((CloudSchedulerStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudSchedulerClient(CloudSchedulerStub stub) { this.settings = null; this.stub = stub; @@ -150,7 +147,6 @@ public final CloudSchedulerSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudSchedulerStub getStub() { return stub; } @@ -283,7 +279,7 @@ public final UnaryCallable listJobsPaged * .build(); * while (true) { * ListJobsResponse response = cloudSchedulerClient.listJobsCallable().call(request); - * for (Job element : response.getResponsesList()) { + * for (Job element : response.getJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java index 274db55997b8..fd48d0bbb596 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java @@ -204,7 +204,6 @@ public UnaryCallSettings runJobSettings() { return runJobSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudSchedulerStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java index 4c22b99a6ac1..e8c28b1f9972 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java @@ -126,7 +126,6 @@ public static final CloudSchedulerClient create(CloudSchedulerSettings settings) * Constructs an instance of CloudSchedulerClient, using the given stub for making calls. This is * for advanced usage - prefer using create(CloudSchedulerSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final CloudSchedulerClient create(CloudSchedulerStub stub) { return new CloudSchedulerClient(stub); } @@ -141,7 +140,6 @@ protected CloudSchedulerClient(CloudSchedulerSettings settings) throws IOExcepti this.stub = ((CloudSchedulerStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudSchedulerClient(CloudSchedulerStub stub) { this.settings = null; this.stub = stub; @@ -151,7 +149,6 @@ public final CloudSchedulerSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudSchedulerStub getStub() { return stub; } @@ -284,7 +281,7 @@ public final UnaryCallable listJobsPaged * .build(); * while (true) { * ListJobsResponse response = cloudSchedulerClient.listJobsCallable().call(request); - * for (Job element : response.getResponsesList()) { + * for (Job element : response.getJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java index bef183819299..3d342c6208aa 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java @@ -205,7 +205,6 @@ public UnaryCallSettings runJobSettings() { return runJobSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudSchedulerStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName()