Search in sources :

Example 1 with KeyManagementServiceStubSettings

use of com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings in project gapic-generator-java by googleapis.

the class SyncGetKeyRing method syncGetKeyRing.

public static void syncGetKeyRing() throws Exception {
    // This snippet has been automatically generated for illustrative purposes only.
    // It may require modifications to work in your environment.
    KeyManagementServiceStubSettings.Builder keyManagementServiceSettingsBuilder = KeyManagementServiceStubSettings.newBuilder();
    keyManagementServiceSettingsBuilder.getKeyRingSettings().setRetrySettings(keyManagementServiceSettingsBuilder.getKeyRingSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
    KeyManagementServiceStubSettings keyManagementServiceSettings = keyManagementServiceSettingsBuilder.build();
}
Also used : KeyManagementServiceStubSettings(com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings)

Aggregations

KeyManagementServiceStubSettings (com.google.cloud.kms.v1.stub.KeyManagementServiceStubSettings)1