|
16 | 16 |
|
17 | 17 | package com.google.cloud.aiplatform.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;
|
@@ -2658,12 +2657,7 @@ public static ApiFuture<ListCustomJobsPagedResponse> createAsync(
|
2658 | 2657 | ListCustomJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
2659 | 2658 | return ApiFutures.transform(
|
2660 | 2659 | futurePage,
|
2661 |
| - new ApiFunction<ListCustomJobsPage, ListCustomJobsPagedResponse>() { |
2662 |
| - @Override |
2663 |
| - public ListCustomJobsPagedResponse apply(ListCustomJobsPage input) { |
2664 |
| - return new ListCustomJobsPagedResponse(input); |
2665 |
| - } |
2666 |
| - }, |
| 2660 | + input -> new ListCustomJobsPagedResponse(input), |
2667 | 2661 | MoreExecutors.directExecutor());
|
2668 | 2662 | }
|
2669 | 2663 |
|
@@ -2740,12 +2734,7 @@ public static ApiFuture<ListDataLabelingJobsPagedResponse> createAsync(
|
2740 | 2734 | ListDataLabelingJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
2741 | 2735 | return ApiFutures.transform(
|
2742 | 2736 | futurePage,
|
2743 |
| - new ApiFunction<ListDataLabelingJobsPage, ListDataLabelingJobsPagedResponse>() { |
2744 |
| - @Override |
2745 |
| - public ListDataLabelingJobsPagedResponse apply(ListDataLabelingJobsPage input) { |
2746 |
| - return new ListDataLabelingJobsPagedResponse(input); |
2747 |
| - } |
2748 |
| - }, |
| 2737 | + input -> new ListDataLabelingJobsPagedResponse(input), |
2749 | 2738 | MoreExecutors.directExecutor());
|
2750 | 2739 | }
|
2751 | 2740 |
|
@@ -2833,14 +2822,7 @@ public static ApiFuture<ListHyperparameterTuningJobsPagedResponse> createAsync(
|
2833 | 2822 | .createPageAsync(context, futureResponse);
|
2834 | 2823 | return ApiFutures.transform(
|
2835 | 2824 | futurePage,
|
2836 |
| - new ApiFunction< |
2837 |
| - ListHyperparameterTuningJobsPage, ListHyperparameterTuningJobsPagedResponse>() { |
2838 |
| - @Override |
2839 |
| - public ListHyperparameterTuningJobsPagedResponse apply( |
2840 |
| - ListHyperparameterTuningJobsPage input) { |
2841 |
| - return new ListHyperparameterTuningJobsPagedResponse(input); |
2842 |
| - } |
2843 |
| - }, |
| 2825 | + input -> new ListHyperparameterTuningJobsPagedResponse(input), |
2844 | 2826 | MoreExecutors.directExecutor());
|
2845 | 2827 | }
|
2846 | 2828 |
|
@@ -2934,12 +2916,7 @@ public static ApiFuture<ListBatchPredictionJobsPagedResponse> createAsync(
|
2934 | 2916 | ListBatchPredictionJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
2935 | 2917 | return ApiFutures.transform(
|
2936 | 2918 | futurePage,
|
2937 |
| - new ApiFunction<ListBatchPredictionJobsPage, ListBatchPredictionJobsPagedResponse>() { |
2938 |
| - @Override |
2939 |
| - public ListBatchPredictionJobsPagedResponse apply(ListBatchPredictionJobsPage input) { |
2940 |
| - return new ListBatchPredictionJobsPagedResponse(input); |
2941 |
| - } |
2942 |
| - }, |
| 2919 | + input -> new ListBatchPredictionJobsPagedResponse(input), |
2943 | 2920 | MoreExecutors.directExecutor());
|
2944 | 2921 | }
|
2945 | 2922 |
|
|
0 commit comments