Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#561)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/02ec5bf1-4572-42f3-886b-b70c16b17f2f/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 388535346
Source-Link: googleapis/googleapis@d9eaf41
PiperOrigin-RevId: 388499329
Source-Link: googleapis/googleapis@bb0a090
  • Loading branch information
yoshi-automation committed Aug 6, 2021
1 parent 4938124 commit 49661d3d2601a7a628ad56a1ae136a23a60994a9
@@ -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;
@@ -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());
}

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

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

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

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

Large diffs are not rendered by default.

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

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

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

0 comments on commit 49661d3

Please sign in to comment.