Skip to content

Commit 4f2e8a5

Browse files
chore: Integrate new gapic-generator-java and rules_gapic (#748)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 454027580 Source-Link: googleapis/googleapis@1b22277 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: googleapis/googleapis@5528344 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9
1 parent 7c15b12 commit 4f2e8a5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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.longrunning.OperationFuture;
2423
import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -168,7 +167,6 @@ public static final CloudBuildClient create(CloudBuildSettings settings) throws
168167
* Constructs an instance of CloudBuildClient, using the given stub for making calls. This is for
169168
* advanced usage - prefer using create(CloudBuildSettings).
170169
*/
171-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
172170
public static final CloudBuildClient create(CloudBuildStub stub) {
173171
return new CloudBuildClient(stub);
174172
}
@@ -183,7 +181,6 @@ protected CloudBuildClient(CloudBuildSettings settings) throws IOException {
183181
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
184182
}
185183

186-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
187184
protected CloudBuildClient(CloudBuildStub stub) {
188185
this.settings = null;
189186
this.stub = stub;
@@ -194,7 +191,6 @@ public final CloudBuildSettings getSettings() {
194191
return settings;
195192
}
196193

197-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
198194
public CloudBuildStub getStub() {
199195
return stub;
200196
}
@@ -537,7 +533,7 @@ public final UnaryCallable<ListBuildsRequest, ListBuildsPagedResponse> listBuild
537533
* .build();
538534
* while (true) {
539535
* ListBuildsResponse response = cloudBuildClient.listBuildsCallable().call(request);
540-
* for (Build element : response.getResponsesList()) {
536+
* for (Build element : response.getBuildsList()) {
541537
* // doThingsWith(element);
542538
* }
543539
* String nextPageToken = response.getNextPageToken();
@@ -1272,7 +1268,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
12721268
* while (true) {
12731269
* ListBuildTriggersResponse response =
12741270
* cloudBuildClient.listBuildTriggersCallable().call(request);
1275-
* for (BuildTrigger element : response.getResponsesList()) {
1271+
* for (BuildTrigger element : response.getTriggersList()) {
12761272
* // doThingsWith(element);
12771273
* }
12781274
* String nextPageToken = response.getNextPageToken();
@@ -2292,7 +2288,7 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest
22922288
* .build();
22932289
* while (true) {
22942290
* ListWorkerPoolsResponse response = cloudBuildClient.listWorkerPoolsCallable().call(request);
2295-
* for (WorkerPool element : response.getResponsesList()) {
2291+
* for (WorkerPool element : response.getWorkerPoolsList()) {
22962292
* // doThingsWith(element);
22972293
* }
22982294
* String nextPageToken = response.getNextPageToken();

java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ public UnaryCallSettings<UpdateWorkerPoolRequest, Operation> updateWorkerPoolSet
479479
return listWorkerPoolsSettings;
480480
}
481481

482-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
483482
public CloudBuildStub createStub() throws IOException {
484483
if (getTransportChannelProvider()
485484
.getTransportName()

0 commit comments

Comments
 (0)