|
16 | 16 |
|
17 | 17 | package com.google.cloud.bigquery.reservation.v1; |
18 | 18 |
|
19 | | -import com.google.api.core.ApiFunction; |
20 | 19 | import com.google.api.core.ApiFuture; |
21 | 20 | import com.google.api.core.ApiFutures; |
22 | 21 | import com.google.api.core.BetaApi; |
@@ -2838,12 +2837,7 @@ public static ApiFuture<ListReservationsPagedResponse> createAsync( |
2838 | 2837 | ListReservationsPage.createEmptyPage().createPageAsync(context, futureResponse); |
2839 | 2838 | return ApiFutures.transform( |
2840 | 2839 | futurePage, |
2841 | | - new ApiFunction<ListReservationsPage, ListReservationsPagedResponse>() { |
2842 | | - @Override |
2843 | | - public ListReservationsPagedResponse apply(ListReservationsPage input) { |
2844 | | - return new ListReservationsPagedResponse(input); |
2845 | | - } |
2846 | | - }, |
| 2840 | + input -> new ListReservationsPagedResponse(input), |
2847 | 2841 | MoreExecutors.directExecutor()); |
2848 | 2842 | } |
2849 | 2843 |
|
@@ -2922,12 +2916,7 @@ public static ApiFuture<ListCapacityCommitmentsPagedResponse> createAsync( |
2922 | 2916 | ListCapacityCommitmentsPage.createEmptyPage().createPageAsync(context, futureResponse); |
2923 | 2917 | return ApiFutures.transform( |
2924 | 2918 | futurePage, |
2925 | | - new ApiFunction<ListCapacityCommitmentsPage, ListCapacityCommitmentsPagedResponse>() { |
2926 | | - @Override |
2927 | | - public ListCapacityCommitmentsPagedResponse apply(ListCapacityCommitmentsPage input) { |
2928 | | - return new ListCapacityCommitmentsPagedResponse(input); |
2929 | | - } |
2930 | | - }, |
| 2919 | + input -> new ListCapacityCommitmentsPagedResponse(input), |
2931 | 2920 | MoreExecutors.directExecutor()); |
2932 | 2921 | } |
2933 | 2922 |
|
@@ -3013,12 +3002,7 @@ public static ApiFuture<ListAssignmentsPagedResponse> createAsync( |
3013 | 3002 | ListAssignmentsPage.createEmptyPage().createPageAsync(context, futureResponse); |
3014 | 3003 | return ApiFutures.transform( |
3015 | 3004 | futurePage, |
3016 | | - new ApiFunction<ListAssignmentsPage, ListAssignmentsPagedResponse>() { |
3017 | | - @Override |
3018 | | - public ListAssignmentsPagedResponse apply(ListAssignmentsPage input) { |
3019 | | - return new ListAssignmentsPagedResponse(input); |
3020 | | - } |
3021 | | - }, |
| 3005 | + input -> new ListAssignmentsPagedResponse(input), |
3022 | 3006 | MoreExecutors.directExecutor()); |
3023 | 3007 | } |
3024 | 3008 |
|
@@ -3095,12 +3079,7 @@ public static ApiFuture<SearchAssignmentsPagedResponse> createAsync( |
3095 | 3079 | SearchAssignmentsPage.createEmptyPage().createPageAsync(context, futureResponse); |
3096 | 3080 | return ApiFutures.transform( |
3097 | 3081 | futurePage, |
3098 | | - new ApiFunction<SearchAssignmentsPage, SearchAssignmentsPagedResponse>() { |
3099 | | - @Override |
3100 | | - public SearchAssignmentsPagedResponse apply(SearchAssignmentsPage input) { |
3101 | | - return new SearchAssignmentsPagedResponse(input); |
3102 | | - } |
3103 | | - }, |
| 3082 | + input -> new SearchAssignmentsPagedResponse(input), |
3104 | 3083 | MoreExecutors.directExecutor()); |
3105 | 3084 | } |
3106 | 3085 |
|
|
0 commit comments