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 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.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

Large diffs are not rendered by default.

Expand Up @@ -1030,14 +1030,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// 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(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
Expand Down
Expand Up @@ -744,14 +744,7 @@ public void getPublicKeyTest() throws Exception {
PublicKey.newBuilder()
.setPem("pem110872")
.setPemCrc32C(Int64Value.newBuilder().build())
.setName(
PublicKeyName.of(
"[PROJECT]",
"[LOCATION]",
"[KEY_RING]",
"[CRYPTO_KEY]",
"[CRYPTO_KEY_VERSION]")
.toString())
.setName("name3373707")
.build();
mockKeyManagementService.addResponse(expectedResponse);

Expand Down Expand Up @@ -795,14 +788,7 @@ public void getPublicKeyTest2() throws Exception {
PublicKey.newBuilder()
.setPem("pem110872")
.setPemCrc32C(Int64Value.newBuilder().build())
.setName(
PublicKeyName.of(
"[PROJECT]",
"[LOCATION]",
"[KEY_RING]",
"[CRYPTO_KEY]",
"[CRYPTO_KEY_VERSION]")
.toString())
.setName("name3373707")
.build();
mockKeyManagementService.addResponse(expectedResponse);

Expand Down
4 changes: 4 additions & 0 deletions proto-google-cloud-kms-v1/clirr-ignored-differences.xml
Expand Up @@ -16,4 +16,8 @@
<className>com/google/cloud/kms/v1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
<difference>
<differenceType>8001</differenceType>
<className>com/google/cloud/kms/v1/PublicKeyName*</className>
</difference>
</differences>