Skip to content

Commit 7643454

Browse files
chore: generate libraries at Thu Feb 12 03:02:29 UTC 2026
1 parent d7dc56d commit 7643454

55 files changed

Lines changed: 12670 additions & 429 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java-kms/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
4242
<dependency>
4343
<groupId>com.google.cloud</groupId>
4444
<artifactId>google-cloud-kms</artifactId>
45-
<version>2.86.0</version>
45+
<version>2.87.0</version>
4646
</dependency>
4747
```
4848

4949
If you are using Gradle without BOM, add this to your dependencies:
5050

5151
```Groovy
52-
implementation 'com.google.cloud:google-cloud-kms:2.86.0'
52+
implementation 'com.google.cloud:google-cloud-kms:2.87.0'
5353
```
5454

5555
If you are using SBT, add this to your dependencies:
5656

5757
```Scala
58-
libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.86.0"
58+
libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.87.0"
5959
```
6060

6161
## Authentication
@@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
175175
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kms/latest/overview
176176
[stability-image]: https://img.shields.io/badge/stability-stable-green
177177
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg
178-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.86.0
178+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.87.0
179179
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
180180
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
181181
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java

Lines changed: 1135 additions & 225 deletions
Large diffs are not rendered by default.

java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse;
2222
import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse;
2323
import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse;
24+
import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse;
2425

2526
import com.google.api.core.ApiFunction;
2627
import com.google.api.core.BetaApi;
@@ -31,6 +32,7 @@
3132
import com.google.api.gax.rpc.ApiClientHeaderProvider;
3233
import com.google.api.gax.rpc.ClientContext;
3334
import com.google.api.gax.rpc.ClientSettings;
35+
import com.google.api.gax.rpc.OperationCallSettings;
3436
import com.google.api.gax.rpc.PagedCallSettings;
3537
import com.google.api.gax.rpc.TransportChannelProvider;
3638
import com.google.api.gax.rpc.UnaryCallSettings;
@@ -44,6 +46,8 @@
4446
import com.google.iam.v1.SetIamPolicyRequest;
4547
import com.google.iam.v1.TestIamPermissionsRequest;
4648
import com.google.iam.v1.TestIamPermissionsResponse;
49+
import com.google.longrunning.Operation;
50+
import com.google.protobuf.Empty;
4751
import java.io.IOException;
4852
import java.util.List;
4953
import javax.annotation.Generated;
@@ -98,6 +102,32 @@
98102
* Please refer to the [Client Side Retry
99103
* Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
100104
* retries.
105+
*
106+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
107+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
108+
* configure the RetrySettings for deleteCryptoKey:
109+
*
110+
* <pre>{@code
111+
* // This snippet has been automatically generated and should be regarded as a code template only.
112+
* // It will require modifications to work:
113+
* // - It may require correct/in-range values for request initialization.
114+
* // - It may require specifying regional endpoints when creating the service client as shown in
115+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
116+
* KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder =
117+
* KeyManagementServiceSettings.newBuilder();
118+
* TimedRetryAlgorithm timedRetryAlgorithm =
119+
* OperationalTimedPollAlgorithm.create(
120+
* RetrySettings.newBuilder()
121+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
122+
* .setRetryDelayMultiplier(1.5)
123+
* .setMaxRetryDelayDuration(Duration.ofMillis(5000))
124+
* .setTotalTimeoutDuration(Duration.ofHours(24))
125+
* .build());
126+
* keyManagementServiceSettingsBuilder
127+
* .createClusterOperationSettings()
128+
* .setPollingAlgorithm(timedRetryAlgorithm)
129+
* .build();
130+
* }</pre>
101131
*/
102132
@Generated("by gapic-generator-java")
103133
public class KeyManagementServiceSettings extends ClientSettings<KeyManagementServiceSettings> {
@@ -131,6 +161,15 @@ public class KeyManagementServiceSettings extends ClientSettings<KeyManagementSe
131161
return ((KeyManagementServiceStubSettings) getStubSettings()).listImportJobsSettings();
132162
}
133163

164+
/** Returns the object with the settings used for calls to listRetiredResources. */
165+
public PagedCallSettings<
166+
ListRetiredResourcesRequest,
167+
ListRetiredResourcesResponse,
168+
ListRetiredResourcesPagedResponse>
169+
listRetiredResourcesSettings() {
170+
return ((KeyManagementServiceStubSettings) getStubSettings()).listRetiredResourcesSettings();
171+
}
172+
134173
/** Returns the object with the settings used for calls to getKeyRing. */
135174
public UnaryCallSettings<GetKeyRingRequest, KeyRing> getKeyRingSettings() {
136175
return ((KeyManagementServiceStubSettings) getStubSettings()).getKeyRingSettings();
@@ -157,6 +196,12 @@ public UnaryCallSettings<GetImportJobRequest, ImportJob> getImportJobSettings()
157196
return ((KeyManagementServiceStubSettings) getStubSettings()).getImportJobSettings();
158197
}
159198

199+
/** Returns the object with the settings used for calls to getRetiredResource. */
200+
public UnaryCallSettings<GetRetiredResourceRequest, RetiredResource>
201+
getRetiredResourceSettings() {
202+
return ((KeyManagementServiceStubSettings) getStubSettings()).getRetiredResourceSettings();
203+
}
204+
160205
/** Returns the object with the settings used for calls to createKeyRing. */
161206
public UnaryCallSettings<CreateKeyRingRequest, KeyRing> createKeyRingSettings() {
162207
return ((KeyManagementServiceStubSettings) getStubSettings()).createKeyRingSettings();
@@ -173,6 +218,31 @@ public UnaryCallSettings<CreateCryptoKeyRequest, CryptoKey> createCryptoKeySetti
173218
return ((KeyManagementServiceStubSettings) getStubSettings()).createCryptoKeyVersionSettings();
174219
}
175220

221+
/** Returns the object with the settings used for calls to deleteCryptoKey. */
222+
public UnaryCallSettings<DeleteCryptoKeyRequest, Operation> deleteCryptoKeySettings() {
223+
return ((KeyManagementServiceStubSettings) getStubSettings()).deleteCryptoKeySettings();
224+
}
225+
226+
/** Returns the object with the settings used for calls to deleteCryptoKey. */
227+
public OperationCallSettings<DeleteCryptoKeyRequest, Empty, DeleteCryptoKeyMetadata>
228+
deleteCryptoKeyOperationSettings() {
229+
return ((KeyManagementServiceStubSettings) getStubSettings())
230+
.deleteCryptoKeyOperationSettings();
231+
}
232+
233+
/** Returns the object with the settings used for calls to deleteCryptoKeyVersion. */
234+
public UnaryCallSettings<DeleteCryptoKeyVersionRequest, Operation>
235+
deleteCryptoKeyVersionSettings() {
236+
return ((KeyManagementServiceStubSettings) getStubSettings()).deleteCryptoKeyVersionSettings();
237+
}
238+
239+
/** Returns the object with the settings used for calls to deleteCryptoKeyVersion. */
240+
public OperationCallSettings<DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata>
241+
deleteCryptoKeyVersionOperationSettings() {
242+
return ((KeyManagementServiceStubSettings) getStubSettings())
243+
.deleteCryptoKeyVersionOperationSettings();
244+
}
245+
176246
/** Returns the object with the settings used for calls to importCryptoKeyVersion. */
177247
public UnaryCallSettings<ImportCryptoKeyVersionRequest, CryptoKeyVersion>
178248
importCryptoKeyVersionSettings() {
@@ -436,6 +506,15 @@ public Builder applyToAllUnaryMethods(
436506
return getStubSettingsBuilder().listImportJobsSettings();
437507
}
438508

509+
/** Returns the builder for the settings used for calls to listRetiredResources. */
510+
public PagedCallSettings.Builder<
511+
ListRetiredResourcesRequest,
512+
ListRetiredResourcesResponse,
513+
ListRetiredResourcesPagedResponse>
514+
listRetiredResourcesSettings() {
515+
return getStubSettingsBuilder().listRetiredResourcesSettings();
516+
}
517+
439518
/** Returns the builder for the settings used for calls to getKeyRing. */
440519
public UnaryCallSettings.Builder<GetKeyRingRequest, KeyRing> getKeyRingSettings() {
441520
return getStubSettingsBuilder().getKeyRingSettings();
@@ -462,6 +541,12 @@ public UnaryCallSettings.Builder<GetImportJobRequest, ImportJob> getImportJobSet
462541
return getStubSettingsBuilder().getImportJobSettings();
463542
}
464543

544+
/** Returns the builder for the settings used for calls to getRetiredResource. */
545+
public UnaryCallSettings.Builder<GetRetiredResourceRequest, RetiredResource>
546+
getRetiredResourceSettings() {
547+
return getStubSettingsBuilder().getRetiredResourceSettings();
548+
}
549+
465550
/** Returns the builder for the settings used for calls to createKeyRing. */
466551
public UnaryCallSettings.Builder<CreateKeyRingRequest, KeyRing> createKeyRingSettings() {
467552
return getStubSettingsBuilder().createKeyRingSettings();
@@ -478,6 +563,30 @@ public UnaryCallSettings.Builder<CreateCryptoKeyRequest, CryptoKey> createCrypto
478563
return getStubSettingsBuilder().createCryptoKeyVersionSettings();
479564
}
480565

566+
/** Returns the builder for the settings used for calls to deleteCryptoKey. */
567+
public UnaryCallSettings.Builder<DeleteCryptoKeyRequest, Operation> deleteCryptoKeySettings() {
568+
return getStubSettingsBuilder().deleteCryptoKeySettings();
569+
}
570+
571+
/** Returns the builder for the settings used for calls to deleteCryptoKey. */
572+
public OperationCallSettings.Builder<DeleteCryptoKeyRequest, Empty, DeleteCryptoKeyMetadata>
573+
deleteCryptoKeyOperationSettings() {
574+
return getStubSettingsBuilder().deleteCryptoKeyOperationSettings();
575+
}
576+
577+
/** Returns the builder for the settings used for calls to deleteCryptoKeyVersion. */
578+
public UnaryCallSettings.Builder<DeleteCryptoKeyVersionRequest, Operation>
579+
deleteCryptoKeyVersionSettings() {
580+
return getStubSettingsBuilder().deleteCryptoKeyVersionSettings();
581+
}
582+
583+
/** Returns the builder for the settings used for calls to deleteCryptoKeyVersion. */
584+
public OperationCallSettings.Builder<
585+
DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata>
586+
deleteCryptoKeyVersionOperationSettings() {
587+
return getStubSettingsBuilder().deleteCryptoKeyVersionOperationSettings();
588+
}
589+
481590
/** Returns the builder for the settings used for calls to importCryptoKeyVersion. */
482591
public UnaryCallSettings.Builder<ImportCryptoKeyVersionRequest, CryptoKeyVersion>
483592
importCryptoKeyVersionSettings() {

java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@
196196
"Decrypt": {
197197
"methods": ["decrypt", "decrypt", "decrypt", "decryptCallable"]
198198
},
199+
"DeleteCryptoKey": {
200+
"methods": ["deleteCryptoKeyAsync", "deleteCryptoKeyAsync", "deleteCryptoKeyAsync", "deleteCryptoKeyOperationCallable", "deleteCryptoKeyCallable"]
201+
},
202+
"DeleteCryptoKeyVersion": {
203+
"methods": ["deleteCryptoKeyVersionAsync", "deleteCryptoKeyVersionAsync", "deleteCryptoKeyVersionAsync", "deleteCryptoKeyVersionOperationCallable", "deleteCryptoKeyVersionCallable"]
204+
},
199205
"DestroyCryptoKeyVersion": {
200206
"methods": ["destroyCryptoKeyVersion", "destroyCryptoKeyVersion", "destroyCryptoKeyVersion", "destroyCryptoKeyVersionCallable"]
201207
},
@@ -226,6 +232,9 @@
226232
"GetPublicKey": {
227233
"methods": ["getPublicKey", "getPublicKey", "getPublicKey", "getPublicKeyCallable"]
228234
},
235+
"GetRetiredResource": {
236+
"methods": ["getRetiredResource", "getRetiredResource", "getRetiredResource", "getRetiredResourceCallable"]
237+
},
229238
"ImportCryptoKeyVersion": {
230239
"methods": ["importCryptoKeyVersion", "importCryptoKeyVersionCallable"]
231240
},
@@ -244,6 +253,9 @@
244253
"ListLocations": {
245254
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
246255
},
256+
"ListRetiredResources": {
257+
"methods": ["listRetiredResources", "listRetiredResources", "listRetiredResources", "listRetiredResourcesPagedCallable", "listRetiredResourcesCallable"]
258+
},
247259
"MacSign": {
248260
"methods": ["macSign", "macSign", "macSign", "macSignCallable"]
249261
},

0 commit comments

Comments
 (0)