use of com.google.cloud.kms.v1.KeyManagementServiceSettings in project gapic-generator-java by googleapis.
the class SyncCreateSetEndpoint method syncCreateSetEndpoint.
public static void syncCreateSetEndpoint() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
KeyManagementServiceSettings keyManagementServiceSettings = KeyManagementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create(keyManagementServiceSettings);
}
use of com.google.cloud.kms.v1.KeyManagementServiceSettings in project gapic-generator-java by googleapis.
the class SyncCreateSetCredentialsProvider method syncCreateSetCredentialsProvider.
public static void syncCreateSetCredentialsProvider() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
KeyManagementServiceSettings keyManagementServiceSettings = KeyManagementServiceSettings.newBuilder().setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)).build();
KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create(keyManagementServiceSettings);
}
use of com.google.cloud.kms.v1.KeyManagementServiceSettings 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.
KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder = KeyManagementServiceSettings.newBuilder();
keyManagementServiceSettingsBuilder.getKeyRingSettings().setRetrySettings(keyManagementServiceSettingsBuilder.getKeyRingSettings().getRetrySettings().toBuilder().setTotalTimeout(Duration.ofSeconds(30)).build());
KeyManagementServiceSettings keyManagementServiceSettings = keyManagementServiceSettingsBuilder.build();
}
use of com.google.cloud.kms.v1.KeyManagementServiceSettings 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();
}
Aggregations