Skip to content
Permalink
Browse files
feat!: Java 8 breaking generator changes (#453)
* chore: release gapic-generator-java v1.0.17

Committer: @miraleung
PiperOrigin-RevId: 388499329

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Aug 3 11:12:29 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: bb0a090d9204110042ab5dee2ce9e06e8071ce54
Source-Link: googleapis/googleapis@bb0a090

* feat!: release gapic-generator-java v2.0.0

Committer: @miraleung
PiperOrigin-RevId: 388535346

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Aug 3 13:48:38 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: d9eaf41de44d953458b18712a3f240bb4c564e48
Source-Link: googleapis/googleapis@d9eaf41
  • Loading branch information
yoshi-automation committed Aug 4, 2021
1 parent 3ab6abc commit abe0325237930fed2d53f6b065fba965f13d5be7
@@ -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;
@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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());
}

@@ -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;

0 comments on commit abe0325

Please sign in to comment.