Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

feat!: Java 8 breaking generator changes #453

Merged
merged 2 commits into from Aug 4, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.bigquery.reservation.v1;

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 @@ -2838,12 +2837,7 @@ public static ApiFuture<ListReservationsPagedResponse> createAsync(
ListReservationsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListReservationsPage, ListReservationsPagedResponse>() {
@Override
public ListReservationsPagedResponse apply(ListReservationsPage input) {
return new ListReservationsPagedResponse(input);
}
},
input -> new ListReservationsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

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

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

Expand Down
Expand Up @@ -272,14 +272,13 @@ public ReservationServiceStubSettings.Builder getStubSettingsBuilder() {
return ((ReservationServiceStubSettings.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