Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStub;
import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings;
import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -7349,12 +7348,7 @@ public static ApiFuture<ListAccountsPagedResponse> createAsync(
ListAccountsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAccountsPage, ListAccountsPagedResponse>() {
@Override
public ListAccountsPagedResponse apply(ListAccountsPage input) {
return new ListAccountsPagedResponse(input);
}
},
input -> new ListAccountsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -7430,12 +7424,7 @@ public static ApiFuture<ListAccountSummariesPagedResponse> createAsync(
ListAccountSummariesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAccountSummariesPage, ListAccountSummariesPagedResponse>() {
@Override
public ListAccountSummariesPagedResponse apply(ListAccountSummariesPage input) {
return new ListAccountSummariesPagedResponse(input);
}
},
input -> new ListAccountSummariesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -7518,12 +7507,7 @@ public static ApiFuture<ListPropertiesPagedResponse> createAsync(
ListPropertiesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPropertiesPage, ListPropertiesPagedResponse>() {
@Override
public ListPropertiesPagedResponse apply(ListPropertiesPage input) {
return new ListPropertiesPagedResponse(input);
}
},
input -> new ListPropertiesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -7599,12 +7583,7 @@ public static ApiFuture<ListUserLinksPagedResponse> createAsync(
ListUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListUserLinksPage, ListUserLinksPagedResponse>() {
@Override
public ListUserLinksPagedResponse apply(ListUserLinksPage input) {
return new ListUserLinksPagedResponse(input);
}
},
input -> new ListUserLinksPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -7680,12 +7659,7 @@ public static ApiFuture<AuditUserLinksPagedResponse> createAsync(
AuditUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<AuditUserLinksPage, AuditUserLinksPagedResponse>() {
@Override
public AuditUserLinksPagedResponse apply(AuditUserLinksPage input) {
return new AuditUserLinksPagedResponse(input);
}
},
input -> new AuditUserLinksPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -7761,12 +7735,7 @@ public static ApiFuture<ListWebDataStreamsPagedResponse> createAsync(
ListWebDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListWebDataStreamsPage, ListWebDataStreamsPagedResponse>() {
@Override
public ListWebDataStreamsPagedResponse apply(ListWebDataStreamsPage input) {
return new ListWebDataStreamsPagedResponse(input);
}
},
input -> new ListWebDataStreamsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -7847,12 +7816,7 @@ public static ApiFuture<ListIosAppDataStreamsPagedResponse> createAsync(
ListIosAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListIosAppDataStreamsPage, ListIosAppDataStreamsPagedResponse>() {
@Override
public ListIosAppDataStreamsPagedResponse apply(ListIosAppDataStreamsPage input) {
return new ListIosAppDataStreamsPagedResponse(input);
}
},
input -> new ListIosAppDataStreamsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -7939,13 +7903,7 @@ public static ApiFuture<ListAndroidAppDataStreamsPagedResponse> createAsync(
ListAndroidAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAndroidAppDataStreamsPage, ListAndroidAppDataStreamsPagedResponse>() {
@Override
public ListAndroidAppDataStreamsPagedResponse apply(
ListAndroidAppDataStreamsPage input) {
return new ListAndroidAppDataStreamsPagedResponse(input);
}
},
input -> new ListAndroidAppDataStreamsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -8037,12 +7995,7 @@ public static ApiFuture<ListFirebaseLinksPagedResponse> createAsync(
ListFirebaseLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListFirebaseLinksPage, ListFirebaseLinksPagedResponse>() {
@Override
public ListFirebaseLinksPagedResponse apply(ListFirebaseLinksPage input) {
return new ListFirebaseLinksPagedResponse(input);
}
},
input -> new ListFirebaseLinksPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -8122,12 +8075,7 @@ public static ApiFuture<ListGoogleAdsLinksPagedResponse> createAsync(
ListGoogleAdsLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListGoogleAdsLinksPage, ListGoogleAdsLinksPagedResponse>() {
@Override
public ListGoogleAdsLinksPagedResponse apply(ListGoogleAdsLinksPage input) {
return new ListGoogleAdsLinksPagedResponse(input);
}
},
input -> new ListGoogleAdsLinksPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -8212,14 +8160,7 @@ public static ApiFuture<ListMeasurementProtocolSecretsPagedResponse> createAsync
.createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<
ListMeasurementProtocolSecretsPage, ListMeasurementProtocolSecretsPagedResponse>() {
@Override
public ListMeasurementProtocolSecretsPagedResponse apply(
ListMeasurementProtocolSecretsPage input) {
return new ListMeasurementProtocolSecretsPagedResponse(input);
}
},
input -> new ListMeasurementProtocolSecretsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -8315,13 +8256,7 @@ public static ApiFuture<SearchChangeHistoryEventsPagedResponse> createAsync(
SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<SearchChangeHistoryEventsPage, SearchChangeHistoryEventsPagedResponse>() {
@Override
public SearchChangeHistoryEventsPagedResponse apply(
SearchChangeHistoryEventsPage input) {
return new SearchChangeHistoryEventsPagedResponse(input);
}
},
input -> new SearchChangeHistoryEventsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -8414,12 +8349,7 @@ public static ApiFuture<ListConversionEventsPagedResponse> createAsync(
ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListConversionEventsPage, ListConversionEventsPagedResponse>() {
@Override
public ListConversionEventsPagedResponse apply(ListConversionEventsPage input) {
return new ListConversionEventsPagedResponse(input);
}
},
input -> new ListConversionEventsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -8503,12 +8433,7 @@ public static ApiFuture<ListCustomDimensionsPagedResponse> createAsync(
ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListCustomDimensionsPage, ListCustomDimensionsPagedResponse>() {
@Override
public ListCustomDimensionsPagedResponse apply(ListCustomDimensionsPage input) {
return new ListCustomDimensionsPagedResponse(input);
}
},
input -> new ListCustomDimensionsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -8591,12 +8516,7 @@ public static ApiFuture<ListCustomMetricsPagedResponse> createAsync(
ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListCustomMetricsPage, ListCustomMetricsPagedResponse>() {
@Override
public ListCustomMetricsPagedResponse apply(ListCustomMetricsPage input) {
return new ListCustomMetricsPagedResponse(input);
}
},
input -> new ListCustomMetricsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,13 @@ public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() {
return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2757,14 +2757,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
Expand Down
Loading