|
16 | 16 |
|
17 | 17 | package com.google.cloud.channel.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; |
@@ -4328,12 +4327,7 @@ public static ApiFuture<ListCustomersPagedResponse> createAsync( |
4328 | 4327 | ListCustomersPage.createEmptyPage().createPageAsync(context, futureResponse); |
4329 | 4328 | return ApiFutures.transform( |
4330 | 4329 | futurePage, |
4331 | | - new ApiFunction<ListCustomersPage, ListCustomersPagedResponse>() { |
4332 | | - @Override |
4333 | | - public ListCustomersPagedResponse apply(ListCustomersPage input) { |
4334 | | - return new ListCustomersPagedResponse(input); |
4335 | | - } |
4336 | | - }, |
| 4330 | + input -> new ListCustomersPagedResponse(input), |
4337 | 4331 | MoreExecutors.directExecutor()); |
4338 | 4332 | } |
4339 | 4333 |
|
@@ -4409,12 +4403,7 @@ public static ApiFuture<ListEntitlementsPagedResponse> createAsync( |
4409 | 4403 | ListEntitlementsPage.createEmptyPage().createPageAsync(context, futureResponse); |
4410 | 4404 | return ApiFutures.transform( |
4411 | 4405 | futurePage, |
4412 | | - new ApiFunction<ListEntitlementsPage, ListEntitlementsPagedResponse>() { |
4413 | | - @Override |
4414 | | - public ListEntitlementsPagedResponse apply(ListEntitlementsPage input) { |
4415 | | - return new ListEntitlementsPagedResponse(input); |
4416 | | - } |
4417 | | - }, |
| 4406 | + input -> new ListEntitlementsPagedResponse(input), |
4418 | 4407 | MoreExecutors.directExecutor()); |
4419 | 4408 | } |
4420 | 4409 |
|
@@ -4492,12 +4481,7 @@ public static ApiFuture<ListTransferableSkusPagedResponse> createAsync( |
4492 | 4481 | ListTransferableSkusPage.createEmptyPage().createPageAsync(context, futureResponse); |
4493 | 4482 | return ApiFutures.transform( |
4494 | 4483 | futurePage, |
4495 | | - new ApiFunction<ListTransferableSkusPage, ListTransferableSkusPagedResponse>() { |
4496 | | - @Override |
4497 | | - public ListTransferableSkusPagedResponse apply(ListTransferableSkusPage input) { |
4498 | | - return new ListTransferableSkusPagedResponse(input); |
4499 | | - } |
4500 | | - }, |
| 4484 | + input -> new ListTransferableSkusPagedResponse(input), |
4501 | 4485 | MoreExecutors.directExecutor()); |
4502 | 4486 | } |
4503 | 4487 |
|
@@ -4582,12 +4566,7 @@ public static ApiFuture<ListTransferableOffersPagedResponse> createAsync( |
4582 | 4566 | ListTransferableOffersPage.createEmptyPage().createPageAsync(context, futureResponse); |
4583 | 4567 | return ApiFutures.transform( |
4584 | 4568 | futurePage, |
4585 | | - new ApiFunction<ListTransferableOffersPage, ListTransferableOffersPagedResponse>() { |
4586 | | - @Override |
4587 | | - public ListTransferableOffersPagedResponse apply(ListTransferableOffersPage input) { |
4588 | | - return new ListTransferableOffersPagedResponse(input); |
4589 | | - } |
4590 | | - }, |
| 4569 | + input -> new ListTransferableOffersPagedResponse(input), |
4591 | 4570 | MoreExecutors.directExecutor()); |
4592 | 4571 | } |
4593 | 4572 |
|
@@ -4675,12 +4654,7 @@ public static ApiFuture<ListChannelPartnerLinksPagedResponse> createAsync( |
4675 | 4654 | ListChannelPartnerLinksPage.createEmptyPage().createPageAsync(context, futureResponse); |
4676 | 4655 | return ApiFutures.transform( |
4677 | 4656 | futurePage, |
4678 | | - new ApiFunction<ListChannelPartnerLinksPage, ListChannelPartnerLinksPagedResponse>() { |
4679 | | - @Override |
4680 | | - public ListChannelPartnerLinksPagedResponse apply(ListChannelPartnerLinksPage input) { |
4681 | | - return new ListChannelPartnerLinksPagedResponse(input); |
4682 | | - } |
4683 | | - }, |
| 4657 | + input -> new ListChannelPartnerLinksPagedResponse(input), |
4684 | 4658 | MoreExecutors.directExecutor()); |
4685 | 4659 | } |
4686 | 4660 |
|
@@ -4766,12 +4740,7 @@ public static ApiFuture<ListProductsPagedResponse> createAsync( |
4766 | 4740 | ListProductsPage.createEmptyPage().createPageAsync(context, futureResponse); |
4767 | 4741 | return ApiFutures.transform( |
4768 | 4742 | futurePage, |
4769 | | - new ApiFunction<ListProductsPage, ListProductsPagedResponse>() { |
4770 | | - @Override |
4771 | | - public ListProductsPagedResponse apply(ListProductsPage input) { |
4772 | | - return new ListProductsPagedResponse(input); |
4773 | | - } |
4774 | | - }, |
| 4743 | + input -> new ListProductsPagedResponse(input), |
4775 | 4744 | MoreExecutors.directExecutor()); |
4776 | 4745 | } |
4777 | 4746 |
|
@@ -4841,14 +4810,7 @@ public static ApiFuture<ListSkusPagedResponse> createAsync( |
4841 | 4810 | ApiFuture<ListSkusPage> futurePage = |
4842 | 4811 | ListSkusPage.createEmptyPage().createPageAsync(context, futureResponse); |
4843 | 4812 | return ApiFutures.transform( |
4844 | | - futurePage, |
4845 | | - new ApiFunction<ListSkusPage, ListSkusPagedResponse>() { |
4846 | | - @Override |
4847 | | - public ListSkusPagedResponse apply(ListSkusPage input) { |
4848 | | - return new ListSkusPagedResponse(input); |
4849 | | - } |
4850 | | - }, |
4851 | | - MoreExecutors.directExecutor()); |
| 4813 | + futurePage, input -> new ListSkusPagedResponse(input), MoreExecutors.directExecutor()); |
4852 | 4814 | } |
4853 | 4815 |
|
4854 | 4816 | private ListSkusPagedResponse(ListSkusPage page) { |
@@ -4915,14 +4877,7 @@ public static ApiFuture<ListOffersPagedResponse> createAsync( |
4915 | 4877 | ApiFuture<ListOffersPage> futurePage = |
4916 | 4878 | ListOffersPage.createEmptyPage().createPageAsync(context, futureResponse); |
4917 | 4879 | return ApiFutures.transform( |
4918 | | - futurePage, |
4919 | | - new ApiFunction<ListOffersPage, ListOffersPagedResponse>() { |
4920 | | - @Override |
4921 | | - public ListOffersPagedResponse apply(ListOffersPage input) { |
4922 | | - return new ListOffersPagedResponse(input); |
4923 | | - } |
4924 | | - }, |
4925 | | - MoreExecutors.directExecutor()); |
| 4880 | + futurePage, input -> new ListOffersPagedResponse(input), MoreExecutors.directExecutor()); |
4926 | 4881 | } |
4927 | 4882 |
|
4928 | 4883 | private ListOffersPagedResponse(ListOffersPage page) { |
@@ -4997,12 +4952,7 @@ public static ApiFuture<ListPurchasableSkusPagedResponse> createAsync( |
4997 | 4952 | ListPurchasableSkusPage.createEmptyPage().createPageAsync(context, futureResponse); |
4998 | 4953 | return ApiFutures.transform( |
4999 | 4954 | futurePage, |
5000 | | - new ApiFunction<ListPurchasableSkusPage, ListPurchasableSkusPagedResponse>() { |
5001 | | - @Override |
5002 | | - public ListPurchasableSkusPagedResponse apply(ListPurchasableSkusPage input) { |
5003 | | - return new ListPurchasableSkusPagedResponse(input); |
5004 | | - } |
5005 | | - }, |
| 4955 | + input -> new ListPurchasableSkusPagedResponse(input), |
5006 | 4956 | MoreExecutors.directExecutor()); |
5007 | 4957 | } |
5008 | 4958 |
|
@@ -5086,12 +5036,7 @@ public static ApiFuture<ListPurchasableOffersPagedResponse> createAsync( |
5086 | 5036 | ListPurchasableOffersPage.createEmptyPage().createPageAsync(context, futureResponse); |
5087 | 5037 | return ApiFutures.transform( |
5088 | 5038 | futurePage, |
5089 | | - new ApiFunction<ListPurchasableOffersPage, ListPurchasableOffersPagedResponse>() { |
5090 | | - @Override |
5091 | | - public ListPurchasableOffersPagedResponse apply(ListPurchasableOffersPage input) { |
5092 | | - return new ListPurchasableOffersPagedResponse(input); |
5093 | | - } |
5094 | | - }, |
| 5039 | + input -> new ListPurchasableOffersPagedResponse(input), |
5095 | 5040 | MoreExecutors.directExecutor()); |
5096 | 5041 | } |
5097 | 5042 |
|
@@ -5174,12 +5119,7 @@ public static ApiFuture<ListSubscribersPagedResponse> createAsync( |
5174 | 5119 | ListSubscribersPage.createEmptyPage().createPageAsync(context, futureResponse); |
5175 | 5120 | return ApiFutures.transform( |
5176 | 5121 | futurePage, |
5177 | | - new ApiFunction<ListSubscribersPage, ListSubscribersPagedResponse>() { |
5178 | | - @Override |
5179 | | - public ListSubscribersPagedResponse apply(ListSubscribersPage input) { |
5180 | | - return new ListSubscribersPagedResponse(input); |
5181 | | - } |
5182 | | - }, |
| 5122 | + input -> new ListSubscribersPagedResponse(input), |
5183 | 5123 | MoreExecutors.directExecutor()); |
5184 | 5124 | } |
5185 | 5125 |
|
|
0 commit comments