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 1 commit
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
Prev Previous commit
Next Next commit
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 5, 2021
commit 68c656ef97e64530d3f84d7ade22f5f489b53fe5
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading