Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit c4f2381

Browse files
feat!: release gapic-generator-java v2.0.0 (#484)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/5976b7b3-c22d-4a71-a592-a8358d89311c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 PiperOrigin-RevId: 388499329 Source-Link: googleapis/googleapis@bb0a090
1 parent 0ab4700 commit c4f2381

File tree

13 files changed

+244
-439
lines changed

13 files changed

+244
-439
lines changed

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.tasks.v2;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -2277,14 +2276,7 @@ public static ApiFuture<ListQueuesPagedResponse> createAsync(
22772276
ApiFuture<ListQueuesPage> futurePage =
22782277
ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse);
22792278
return ApiFutures.transform(
2280-
futurePage,
2281-
new ApiFunction<ListQueuesPage, ListQueuesPagedResponse>() {
2282-
@Override
2283-
public ListQueuesPagedResponse apply(ListQueuesPage input) {
2284-
return new ListQueuesPagedResponse(input);
2285-
}
2286-
},
2287-
MoreExecutors.directExecutor());
2279+
futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor());
22882280
}
22892281

22902282
private ListQueuesPagedResponse(ListQueuesPage page) {
@@ -2353,14 +2345,7 @@ public static ApiFuture<ListTasksPagedResponse> createAsync(
23532345
ApiFuture<ListTasksPage> futurePage =
23542346
ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse);
23552347
return ApiFutures.transform(
2356-
futurePage,
2357-
new ApiFunction<ListTasksPage, ListTasksPagedResponse>() {
2358-
@Override
2359-
public ListTasksPagedResponse apply(ListTasksPage input) {
2360-
return new ListTasksPagedResponse(input);
2361-
}
2362-
},
2363-
MoreExecutors.directExecutor());
2348+
futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor());
23642349
}
23652350

23662351
private ListTasksPagedResponse(ListTasksPage page) {

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,13 @@ public CloudTasksStubSettings.Builder getStubSettingsBuilder() {
242242
return ((CloudTasksStubSettings.Builder) getStubSettings());
243243
}
244244

245-
// NEXT_MAJOR_VER: remove 'throws Exception'.
246245
/**
247246
* Applies the given settings updater function to all of the unary API methods in this service.
248247
*
249248
* <p>Note: This method does not support applying settings to streaming methods.
250249
*/
251250
public Builder applyToAllUnaryMethods(
252-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
251+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
253252
super.applyToAllUnaryMethods(
254253
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
255254
return this;

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,14 +660,13 @@ private static Builder initDefaults(Builder builder) {
660660
return builder;
661661
}
662662

663-
// NEXT_MAJOR_VER: remove 'throws Exception'.
664663
/**
665664
* Applies the given settings updater function to all of the unary API methods in this service.
666665
*
667666
* <p>Note: This method does not support applying settings to streaming methods.
668667
*/
669668
public Builder applyToAllUnaryMethods(
670-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
669+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
671670
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
672671
return this;
673672
}

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java

Lines changed: 71 additions & 115 deletions
Large diffs are not rendered by default.

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.tasks.v2beta2;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -2941,14 +2940,7 @@ public static ApiFuture<ListQueuesPagedResponse> createAsync(
29412940
ApiFuture<ListQueuesPage> futurePage =
29422941
ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse);
29432942
return ApiFutures.transform(
2944-
futurePage,
2945-
new ApiFunction<ListQueuesPage, ListQueuesPagedResponse>() {
2946-
@Override
2947-
public ListQueuesPagedResponse apply(ListQueuesPage input) {
2948-
return new ListQueuesPagedResponse(input);
2949-
}
2950-
},
2951-
MoreExecutors.directExecutor());
2943+
futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor());
29522944
}
29532945

29542946
private ListQueuesPagedResponse(ListQueuesPage page) {
@@ -3017,14 +3009,7 @@ public static ApiFuture<ListTasksPagedResponse> createAsync(
30173009
ApiFuture<ListTasksPage> futurePage =
30183010
ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse);
30193011
return ApiFutures.transform(
3020-
futurePage,
3021-
new ApiFunction<ListTasksPage, ListTasksPagedResponse>() {
3022-
@Override
3023-
public ListTasksPagedResponse apply(ListTasksPage input) {
3024-
return new ListTasksPagedResponse(input);
3025-
}
3026-
},
3027-
MoreExecutors.directExecutor());
3012+
futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor());
30283013
}
30293014

30303015
private ListTasksPagedResponse(ListTasksPage page) {

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,13 @@ public CloudTasksStubSettings.Builder getStubSettingsBuilder() {
263263
return ((CloudTasksStubSettings.Builder) getStubSettings());
264264
}
265265

266-
// NEXT_MAJOR_VER: remove 'throws Exception'.
267266
/**
268267
* Applies the given settings updater function to all of the unary API methods in this service.
269268
*
270269
* <p>Note: This method does not support applying settings to streaming methods.
271270
*/
272271
public Builder applyToAllUnaryMethods(
273-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
272+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
274273
super.applyToAllUnaryMethods(
275274
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
276275
return this;

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,14 +735,13 @@ private static Builder initDefaults(Builder builder) {
735735
return builder;
736736
}
737737

738-
// NEXT_MAJOR_VER: remove 'throws Exception'.
739738
/**
740739
* Applies the given settings updater function to all of the unary API methods in this service.
741740
*
742741
* <p>Note: This method does not support applying settings to streaming methods.
743742
*/
744743
public Builder applyToAllUnaryMethods(
745-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
744+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
746745
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
747746
return this;
748747
}

0 commit comments

Comments
 (0)