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

feat!: release gapic-generator-java v2.0.0 #561

Merged
merged 4 commits into from Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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.kms.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 @@ -3576,12 +3575,7 @@ public static ApiFuture<ListKeyRingsPagedResponse> createAsync(
ListKeyRingsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListKeyRingsPage, ListKeyRingsPagedResponse>() {
@Override
public ListKeyRingsPagedResponse apply(ListKeyRingsPage input) {
return new ListKeyRingsPagedResponse(input);
}
},
input -> new ListKeyRingsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

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

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

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