|
18 | 18 |
|
19 | 19 | import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStub;
|
20 | 20 | import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings;
|
21 |
| -import com.google.api.core.ApiFunction; |
22 | 21 | import com.google.api.core.ApiFuture;
|
23 | 22 | import com.google.api.core.ApiFutures;
|
24 | 23 | import com.google.api.core.BetaApi;
|
@@ -7349,12 +7348,7 @@ public static ApiFuture<ListAccountsPagedResponse> createAsync(
|
7349 | 7348 | ListAccountsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7350 | 7349 | return ApiFutures.transform(
|
7351 | 7350 | futurePage,
|
7352 |
| -new ApiFunction<ListAccountsPage, ListAccountsPagedResponse>() { |
7353 |
| -@Override |
7354 |
| -public ListAccountsPagedResponse apply(ListAccountsPage input) { |
7355 |
| -return new ListAccountsPagedResponse(input); |
7356 |
| -} |
7357 |
| -}, |
| 7351 | +input -> new ListAccountsPagedResponse(input), |
7358 | 7352 | MoreExecutors.directExecutor());
|
7359 | 7353 | }
|
7360 | 7354 |
|
@@ -7430,12 +7424,7 @@ public static ApiFuture<ListAccountSummariesPagedResponse> createAsync(
|
7430 | 7424 | ListAccountSummariesPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7431 | 7425 | return ApiFutures.transform(
|
7432 | 7426 | futurePage,
|
7433 |
| -new ApiFunction<ListAccountSummariesPage, ListAccountSummariesPagedResponse>() { |
7434 |
| -@Override |
7435 |
| -public ListAccountSummariesPagedResponse apply(ListAccountSummariesPage input) { |
7436 |
| -return new ListAccountSummariesPagedResponse(input); |
7437 |
| -} |
7438 |
| -}, |
| 7427 | +input -> new ListAccountSummariesPagedResponse(input), |
7439 | 7428 | MoreExecutors.directExecutor());
|
7440 | 7429 | }
|
7441 | 7430 |
|
@@ -7518,12 +7507,7 @@ public static ApiFuture<ListPropertiesPagedResponse> createAsync(
|
7518 | 7507 | ListPropertiesPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7519 | 7508 | return ApiFutures.transform(
|
7520 | 7509 | futurePage,
|
7521 |
| -new ApiFunction<ListPropertiesPage, ListPropertiesPagedResponse>() { |
7522 |
| -@Override |
7523 |
| -public ListPropertiesPagedResponse apply(ListPropertiesPage input) { |
7524 |
| -return new ListPropertiesPagedResponse(input); |
7525 |
| -} |
7526 |
| -}, |
| 7510 | +input -> new ListPropertiesPagedResponse(input), |
7527 | 7511 | MoreExecutors.directExecutor());
|
7528 | 7512 | }
|
7529 | 7513 |
|
@@ -7599,12 +7583,7 @@ public static ApiFuture<ListUserLinksPagedResponse> createAsync(
|
7599 | 7583 | ListUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7600 | 7584 | return ApiFutures.transform(
|
7601 | 7585 | futurePage,
|
7602 |
| -new ApiFunction<ListUserLinksPage, ListUserLinksPagedResponse>() { |
7603 |
| -@Override |
7604 |
| -public ListUserLinksPagedResponse apply(ListUserLinksPage input) { |
7605 |
| -return new ListUserLinksPagedResponse(input); |
7606 |
| -} |
7607 |
| -}, |
| 7586 | +input -> new ListUserLinksPagedResponse(input), |
7608 | 7587 | MoreExecutors.directExecutor());
|
7609 | 7588 | }
|
7610 | 7589 |
|
@@ -7680,12 +7659,7 @@ public static ApiFuture<AuditUserLinksPagedResponse> createAsync(
|
7680 | 7659 | AuditUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7681 | 7660 | return ApiFutures.transform(
|
7682 | 7661 | futurePage,
|
7683 |
| -new ApiFunction<AuditUserLinksPage, AuditUserLinksPagedResponse>() { |
7684 |
| -@Override |
7685 |
| -public AuditUserLinksPagedResponse apply(AuditUserLinksPage input) { |
7686 |
| -return new AuditUserLinksPagedResponse(input); |
7687 |
| -} |
7688 |
| -}, |
| 7662 | +input -> new AuditUserLinksPagedResponse(input), |
7689 | 7663 | MoreExecutors.directExecutor());
|
7690 | 7664 | }
|
7691 | 7665 |
|
@@ -7761,12 +7735,7 @@ public static ApiFuture<ListWebDataStreamsPagedResponse> createAsync(
|
7761 | 7735 | ListWebDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7762 | 7736 | return ApiFutures.transform(
|
7763 | 7737 | futurePage,
|
7764 |
| -new ApiFunction<ListWebDataStreamsPage, ListWebDataStreamsPagedResponse>() { |
7765 |
| -@Override |
7766 |
| -public ListWebDataStreamsPagedResponse apply(ListWebDataStreamsPage input) { |
7767 |
| -return new ListWebDataStreamsPagedResponse(input); |
7768 |
| -} |
7769 |
| -}, |
| 7738 | +input -> new ListWebDataStreamsPagedResponse(input), |
7770 | 7739 | MoreExecutors.directExecutor());
|
7771 | 7740 | }
|
7772 | 7741 |
|
@@ -7847,12 +7816,7 @@ public static ApiFuture<ListIosAppDataStreamsPagedResponse> createAsync(
|
7847 | 7816 | ListIosAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7848 | 7817 | return ApiFutures.transform(
|
7849 | 7818 | futurePage,
|
7850 |
| -new ApiFunction<ListIosAppDataStreamsPage, ListIosAppDataStreamsPagedResponse>() { |
7851 |
| -@Override |
7852 |
| -public ListIosAppDataStreamsPagedResponse apply(ListIosAppDataStreamsPage input) { |
7853 |
| -return new ListIosAppDataStreamsPagedResponse(input); |
7854 |
| -} |
7855 |
| -}, |
| 7819 | +input -> new ListIosAppDataStreamsPagedResponse(input), |
7856 | 7820 | MoreExecutors.directExecutor());
|
7857 | 7821 | }
|
7858 | 7822 |
|
@@ -7939,13 +7903,7 @@ public static ApiFuture<ListAndroidAppDataStreamsPagedResponse> createAsync(
|
7939 | 7903 | ListAndroidAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
7940 | 7904 | return ApiFutures.transform(
|
7941 | 7905 | futurePage,
|
7942 |
| -new ApiFunction<ListAndroidAppDataStreamsPage, ListAndroidAppDataStreamsPagedResponse>() { |
7943 |
| -@Override |
7944 |
| -public ListAndroidAppDataStreamsPagedResponse apply( |
7945 |
| -ListAndroidAppDataStreamsPage input) { |
7946 |
| -return new ListAndroidAppDataStreamsPagedResponse(input); |
7947 |
| -} |
7948 |
| -}, |
| 7906 | +input -> new ListAndroidAppDataStreamsPagedResponse(input), |
7949 | 7907 | MoreExecutors.directExecutor());
|
7950 | 7908 | }
|
7951 | 7909 |
|
@@ -8037,12 +7995,7 @@ public static ApiFuture<ListFirebaseLinksPagedResponse> createAsync(
|
8037 | 7995 | ListFirebaseLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
|
8038 | 7996 | return ApiFutures.transform(
|
8039 | 7997 | futurePage,
|
8040 |
| -new ApiFunction<ListFirebaseLinksPage, ListFirebaseLinksPagedResponse>() { |
8041 |
| -@Override |
8042 |
| -public ListFirebaseLinksPagedResponse apply(ListFirebaseLinksPage input) { |
8043 |
| -return new ListFirebaseLinksPagedResponse(input); |
8044 |
| -} |
8045 |
| -}, |
| 7998 | +input -> new ListFirebaseLinksPagedResponse(input), |
8046 | 7999 | MoreExecutors.directExecutor());
|
8047 | 8000 | }
|
8048 | 8001 |
|
@@ -8122,12 +8075,7 @@ public static ApiFuture<ListGoogleAdsLinksPagedResponse> createAsync(
|
8122 | 8075 | ListGoogleAdsLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
|
8123 | 8076 | return ApiFutures.transform(
|
8124 | 8077 | futurePage,
|
8125 |
| -new ApiFunction<ListGoogleAdsLinksPage, ListGoogleAdsLinksPagedResponse>() { |
8126 |
| -@Override |
8127 |
| -public ListGoogleAdsLinksPagedResponse apply(ListGoogleAdsLinksPage input) { |
8128 |
| -return new ListGoogleAdsLinksPagedResponse(input); |
8129 |
| -} |
8130 |
| -}, |
| 8078 | +input -> new ListGoogleAdsLinksPagedResponse(input), |
8131 | 8079 | MoreExecutors.directExecutor());
|
8132 | 8080 | }
|
8133 | 8081 |
|
@@ -8212,14 +8160,7 @@ public static ApiFuture<ListMeasurementProtocolSecretsPagedResponse> createAsync
|
8212 | 8160 | .createPageAsync(context, futureResponse);
|
8213 | 8161 | return ApiFutures.transform(
|
8214 | 8162 | futurePage,
|
8215 |
| -new ApiFunction< |
8216 |
| -ListMeasurementProtocolSecretsPage, ListMeasurementProtocolSecretsPagedResponse>() { |
8217 |
| -@Override |
8218 |
| -public ListMeasurementProtocolSecretsPagedResponse apply( |
8219 |
| -ListMeasurementProtocolSecretsPage input) { |
8220 |
| -return new ListMeasurementProtocolSecretsPagedResponse(input); |
8221 |
| -} |
8222 |
| -}, |
| 8163 | +input -> new ListMeasurementProtocolSecretsPagedResponse(input), |
8223 | 8164 | MoreExecutors.directExecutor());
|
8224 | 8165 | }
|
8225 | 8166 |
|
@@ -8315,13 +8256,7 @@ public static ApiFuture<SearchChangeHistoryEventsPagedResponse> createAsync(
|
8315 | 8256 | SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
8316 | 8257 | return ApiFutures.transform(
|
8317 | 8258 | futurePage,
|
8318 |
| -new ApiFunction<SearchChangeHistoryEventsPage, SearchChangeHistoryEventsPagedResponse>() { |
8319 |
| -@Override |
8320 |
| -public SearchChangeHistoryEventsPagedResponse apply( |
8321 |
| -SearchChangeHistoryEventsPage input) { |
8322 |
| -return new SearchChangeHistoryEventsPagedResponse(input); |
8323 |
| -} |
8324 |
| -}, |
| 8259 | +input -> new SearchChangeHistoryEventsPagedResponse(input), |
8325 | 8260 | MoreExecutors.directExecutor());
|
8326 | 8261 | }
|
8327 | 8262 |
|
@@ -8414,12 +8349,7 @@ public static ApiFuture<ListConversionEventsPagedResponse> createAsync(
|
8414 | 8349 | ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
8415 | 8350 | return ApiFutures.transform(
|
8416 | 8351 | futurePage,
|
8417 |
| -new ApiFunction<ListConversionEventsPage, ListConversionEventsPagedResponse>() { |
8418 |
| -@Override |
8419 |
| -public ListConversionEventsPagedResponse apply(ListConversionEventsPage input) { |
8420 |
| -return new ListConversionEventsPagedResponse(input); |
8421 |
| -} |
8422 |
| -}, |
| 8352 | +input -> new ListConversionEventsPagedResponse(input), |
8423 | 8353 | MoreExecutors.directExecutor());
|
8424 | 8354 | }
|
8425 | 8355 |
|
@@ -8503,12 +8433,7 @@ public static ApiFuture<ListCustomDimensionsPagedResponse> createAsync(
|
8503 | 8433 | ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
8504 | 8434 | return ApiFutures.transform(
|
8505 | 8435 | futurePage,
|
8506 |
| -new ApiFunction<ListCustomDimensionsPage, ListCustomDimensionsPagedResponse>() { |
8507 |
| -@Override |
8508 |
| -public ListCustomDimensionsPagedResponse apply(ListCustomDimensionsPage input) { |
8509 |
| -return new ListCustomDimensionsPagedResponse(input); |
8510 |
| -} |
8511 |
| -}, |
| 8436 | +input -> new ListCustomDimensionsPagedResponse(input), |
8512 | 8437 | MoreExecutors.directExecutor());
|
8513 | 8438 | }
|
8514 | 8439 |
|
@@ -8591,12 +8516,7 @@ public static ApiFuture<ListCustomMetricsPagedResponse> createAsync(
|
8591 | 8516 | ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse);
|
8592 | 8517 | return ApiFutures.transform(
|
8593 | 8518 | futurePage,
|
8594 |
| -new ApiFunction<ListCustomMetricsPage, ListCustomMetricsPagedResponse>() { |
8595 |
| -@Override |
8596 |
| -public ListCustomMetricsPagedResponse apply(ListCustomMetricsPage input) { |
8597 |
| -return new ListCustomMetricsPagedResponse(input); |
8598 |
| -} |
8599 |
| -}, |
| 8519 | +input -> new ListCustomMetricsPagedResponse(input), |
8600 | 8520 | MoreExecutors.directExecutor());
|
8601 | 8521 | }
|
8602 | 8522 |
|
|
0 commit comments