This repository was archived by the owner on Sep 9, 2023. It is now read-only.

File tree

6 files changed

+298
-739
lines changed

6 files changed

+298
-739
lines changed
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStub;
2020
import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings;
21-
import com.google.api.core.ApiFunction;
2221
import com.google.api.core.ApiFuture;
2322
import com.google.api.core.ApiFutures;
2423
import com.google.api.core.BetaApi;
@@ -7349,12 +7348,7 @@ public static ApiFuture<ListAccountsPagedResponse> createAsync(
73497348
ListAccountsPage.createEmptyPage().createPageAsync(context, futureResponse);
73507349
return ApiFutures.transform(
73517350
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),
73587352
MoreExecutors.directExecutor());
73597353
}
73607354

@@ -7430,12 +7424,7 @@ public static ApiFuture<ListAccountSummariesPagedResponse> createAsync(
74307424
ListAccountSummariesPage.createEmptyPage().createPageAsync(context, futureResponse);
74317425
return ApiFutures.transform(
74327426
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),
74397428
MoreExecutors.directExecutor());
74407429
}
74417430

@@ -7518,12 +7507,7 @@ public static ApiFuture<ListPropertiesPagedResponse> createAsync(
75187507
ListPropertiesPage.createEmptyPage().createPageAsync(context, futureResponse);
75197508
return ApiFutures.transform(
75207509
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),
75277511
MoreExecutors.directExecutor());
75287512
}
75297513

@@ -7599,12 +7583,7 @@ public static ApiFuture<ListUserLinksPagedResponse> createAsync(
75997583
ListUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
76007584
return ApiFutures.transform(
76017585
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),
76087587
MoreExecutors.directExecutor());
76097588
}
76107589

@@ -7680,12 +7659,7 @@ public static ApiFuture<AuditUserLinksPagedResponse> createAsync(
76807659
AuditUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
76817660
return ApiFutures.transform(
76827661
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),
76897663
MoreExecutors.directExecutor());
76907664
}
76917665

@@ -7761,12 +7735,7 @@ public static ApiFuture<ListWebDataStreamsPagedResponse> createAsync(
77617735
ListWebDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
77627736
return ApiFutures.transform(
77637737
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),
77707739
MoreExecutors.directExecutor());
77717740
}
77727741

@@ -7847,12 +7816,7 @@ public static ApiFuture<ListIosAppDataStreamsPagedResponse> createAsync(
78477816
ListIosAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
78487817
return ApiFutures.transform(
78497818
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),
78567820
MoreExecutors.directExecutor());
78577821
}
78587822

@@ -7939,13 +7903,7 @@ public static ApiFuture<ListAndroidAppDataStreamsPagedResponse> createAsync(
79397903
ListAndroidAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
79407904
return ApiFutures.transform(
79417905
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),
79497907
MoreExecutors.directExecutor());
79507908
}
79517909

@@ -8037,12 +7995,7 @@ public static ApiFuture<ListFirebaseLinksPagedResponse> createAsync(
80377995
ListFirebaseLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
80387996
return ApiFutures.transform(
80397997
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),
80467999
MoreExecutors.directExecutor());
80478000
}
80488001

@@ -8122,12 +8075,7 @@ public static ApiFuture<ListGoogleAdsLinksPagedResponse> createAsync(
81228075
ListGoogleAdsLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
81238076
return ApiFutures.transform(
81248077
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),
81318079
MoreExecutors.directExecutor());
81328080
}
81338081

@@ -8212,14 +8160,7 @@ public static ApiFuture<ListMeasurementProtocolSecretsPagedResponse> createAsync
82128160
.createPageAsync(context, futureResponse);
82138161
return ApiFutures.transform(
82148162
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),
82238164
MoreExecutors.directExecutor());
82248165
}
82258166

@@ -8315,13 +8256,7 @@ public static ApiFuture<SearchChangeHistoryEventsPagedResponse> createAsync(
83158256
SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
83168257
return ApiFutures.transform(
83178258
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),
83258260
MoreExecutors.directExecutor());
83268261
}
83278262

@@ -8414,12 +8349,7 @@ public static ApiFuture<ListConversionEventsPagedResponse> createAsync(
84148349
ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
84158350
return ApiFutures.transform(
84168351
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),
84238353
MoreExecutors.directExecutor());
84248354
}
84258355

@@ -8503,12 +8433,7 @@ public static ApiFuture<ListCustomDimensionsPagedResponse> createAsync(
85038433
ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse);
85048434
return ApiFutures.transform(
85058435
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),
85128437
MoreExecutors.directExecutor());
85138438
}
85148439

@@ -8591,12 +8516,7 @@ public static ApiFuture<ListCustomMetricsPagedResponse> createAsync(
85918516
ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse);
85928517
return ApiFutures.transform(
85938518
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),
86008520
MoreExecutors.directExecutor());
86018521
}
86028522

Original file line numberDiff line numberDiff line change
@@ -596,14 +596,13 @@ public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() {
596596
return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings());
597597
}
598598

599-
// NEXT_MAJOR_VER: remove 'throws Exception'.
600599
/**
601600
* Applies the given settings updater function to all of the unary API methods in this service.
602601
*
603602
* <p>Note: This method does not support applying settings to methods.
604603
*/
605604
public Builder applyToAllUnaryMethods(
606-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
605+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
607606
super.applyToAllUnaryMethods(
608607
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
609608
return this;
Original file line numberDiff line numberDiff line change
@@ -2757,14 +2757,13 @@ private static Builder initDefaults(Builder builder) {
27572757
return builder;
27582758
}
27592759

2760-
// NEXT_MAJOR_VER: remove 'throws Exception'.
27612760
/**
27622761
* Applies the given settings updater function to all of the unary API methods in this service.
27632762
*
27642763
* <p>Note: This method does not support applying settings to methods.
27652764
*/
27662765
public Builder applyToAllUnaryMethods(
2767-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
2766+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
27682767
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
27692768
return this;
27702769
}

0 commit comments

Comments
 (0)