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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0
Browse files Browse the repository at this point in the history
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 5, 2021
1 parent af015a7 commit 68c656e
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 533 deletions.
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

0 comments on commit 68c656e

Please sign in to comment.