@Generated(value="by gapic-generator-java") public class KeyManagementServiceSettings extends ClientSettings<KeyManagementServiceSettings>
KeyManagementServiceClient
.
The default instance has everything set to sensible defaults:
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getKeyRing to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder =
KeyManagementServiceSettings.newBuilder();
keyManagementServiceSettingsBuilder
.getKeyRingSettings()
.setRetrySettings(
keyManagementServiceSettingsBuilder.getKeyRingSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
KeyManagementServiceSettings keyManagementServiceSettings =
keyManagementServiceSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
KeyManagementServiceSettings.Builder
Builder for KeyManagementServiceSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
KeyManagementServiceSettings(KeyManagementServiceSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings<AsymmetricDecryptRequest,AsymmetricDecryptResponse> |
asymmetricDecryptSettings()
Returns the object with the settings used for calls to asymmetricDecrypt.
|
UnaryCallSettings<AsymmetricSignRequest,AsymmetricSignResponse> |
asymmetricSignSettings()
Returns the object with the settings used for calls to asymmetricSign.
|
static KeyManagementServiceSettings |
create(KeyManagementServiceStubSettings stub) |
UnaryCallSettings<CreateCryptoKeyRequest,CryptoKey> |
createCryptoKeySettings()
Returns the object with the settings used for calls to createCryptoKey.
|
UnaryCallSettings<CreateCryptoKeyVersionRequest,CryptoKeyVersion> |
createCryptoKeyVersionSettings()
Returns the object with the settings used for calls to createCryptoKeyVersion.
|
UnaryCallSettings<CreateImportJobRequest,ImportJob> |
createImportJobSettings()
Returns the object with the settings used for calls to createImportJob.
|
UnaryCallSettings<CreateKeyRingRequest,KeyRing> |
createKeyRingSettings()
Returns the object with the settings used for calls to createKeyRing.
|
UnaryCallSettings<DecryptRequest,DecryptResponse> |
decryptSettings()
Returns the object with the settings used for calls to decrypt.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<DestroyCryptoKeyVersionRequest,CryptoKeyVersion> |
destroyCryptoKeyVersionSettings()
Returns the object with the settings used for calls to destroyCryptoKeyVersion.
|
UnaryCallSettings<EncryptRequest,EncryptResponse> |
encryptSettings()
Returns the object with the settings used for calls to encrypt.
|
UnaryCallSettings<GenerateRandomBytesRequest,GenerateRandomBytesResponse> |
generateRandomBytesSettings()
Returns the object with the settings used for calls to generateRandomBytes.
|
UnaryCallSettings<GetCryptoKeyRequest,CryptoKey> |
getCryptoKeySettings()
Returns the object with the settings used for calls to getCryptoKey.
|
UnaryCallSettings<GetCryptoKeyVersionRequest,CryptoKeyVersion> |
getCryptoKeyVersionSettings()
Returns the object with the settings used for calls to getCryptoKeyVersion.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
UnaryCallSettings<GetImportJobRequest,ImportJob> |
getImportJobSettings()
Returns the object with the settings used for calls to getImportJob.
|
UnaryCallSettings<GetKeyRingRequest,KeyRing> |
getKeyRingSettings()
Returns the object with the settings used for calls to getKeyRing.
|
UnaryCallSettings<GetPublicKeyRequest,PublicKey> |
getPublicKeySettings()
Returns the object with the settings used for calls to getPublicKey.
|
UnaryCallSettings<ImportCryptoKeyVersionRequest,CryptoKeyVersion> |
importCryptoKeyVersionSettings()
Returns the object with the settings used for calls to importCryptoKeyVersion.
|
PagedCallSettings<ListCryptoKeysRequest,ListCryptoKeysResponse,KeyManagementServiceClient.ListCryptoKeysPagedResponse> |
listCryptoKeysSettings()
Returns the object with the settings used for calls to listCryptoKeys.
|
PagedCallSettings<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse,KeyManagementServiceClient.ListCryptoKeyVersionsPagedResponse> |
listCryptoKeyVersionsSettings()
Returns the object with the settings used for calls to listCryptoKeyVersions.
|
PagedCallSettings<ListImportJobsRequest,ListImportJobsResponse,KeyManagementServiceClient.ListImportJobsPagedResponse> |
listImportJobsSettings()
Returns the object with the settings used for calls to listImportJobs.
|
PagedCallSettings<ListKeyRingsRequest,ListKeyRingsResponse,KeyManagementServiceClient.ListKeyRingsPagedResponse> |
listKeyRingsSettings()
Returns the object with the settings used for calls to listKeyRings.
|
UnaryCallSettings<MacSignRequest,MacSignResponse> |
macSignSettings()
Returns the object with the settings used for calls to macSign.
|
UnaryCallSettings<MacVerifyRequest,MacVerifyResponse> |
macVerifySettings()
Returns the object with the settings used for calls to macVerify.
|
static KeyManagementServiceSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static KeyManagementServiceSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
static KeyManagementServiceSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
UnaryCallSettings<RestoreCryptoKeyVersionRequest,CryptoKeyVersion> |
restoreCryptoKeyVersionSettings()
Returns the object with the settings used for calls to restoreCryptoKeyVersion.
|
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
KeyManagementServiceSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey> |
updateCryptoKeyPrimaryVersionSettings()
Returns the object with the settings used for calls to updateCryptoKeyPrimaryVersion.
|
UnaryCallSettings<UpdateCryptoKeyRequest,CryptoKey> |
updateCryptoKeySettings()
Returns the object with the settings used for calls to updateCryptoKey.
|
UnaryCallSettings<UpdateCryptoKeyVersionRequest,CryptoKeyVersion> |
updateCryptoKeyVersionSettings()
Returns the object with the settings used for calls to updateCryptoKeyVersion.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected KeyManagementServiceSettings(KeyManagementServiceSettings.Builder settingsBuilder) throws IOException
IOException
public PagedCallSettings<ListKeyRingsRequest,ListKeyRingsResponse,KeyManagementServiceClient.ListKeyRingsPagedResponse> listKeyRingsSettings()
public PagedCallSettings<ListCryptoKeysRequest,ListCryptoKeysResponse,KeyManagementServiceClient.ListCryptoKeysPagedResponse> listCryptoKeysSettings()
public PagedCallSettings<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse,KeyManagementServiceClient.ListCryptoKeyVersionsPagedResponse> listCryptoKeyVersionsSettings()
public PagedCallSettings<ListImportJobsRequest,ListImportJobsResponse,KeyManagementServiceClient.ListImportJobsPagedResponse> listImportJobsSettings()
public UnaryCallSettings<GetKeyRingRequest,KeyRing> getKeyRingSettings()
public UnaryCallSettings<GetCryptoKeyRequest,CryptoKey> getCryptoKeySettings()
public UnaryCallSettings<GetCryptoKeyVersionRequest,CryptoKeyVersion> getCryptoKeyVersionSettings()
public UnaryCallSettings<GetPublicKeyRequest,PublicKey> getPublicKeySettings()
public UnaryCallSettings<GetImportJobRequest,ImportJob> getImportJobSettings()
public UnaryCallSettings<CreateKeyRingRequest,KeyRing> createKeyRingSettings()
public UnaryCallSettings<CreateCryptoKeyRequest,CryptoKey> createCryptoKeySettings()
public UnaryCallSettings<CreateCryptoKeyVersionRequest,CryptoKeyVersion> createCryptoKeyVersionSettings()
public UnaryCallSettings<ImportCryptoKeyVersionRequest,CryptoKeyVersion> importCryptoKeyVersionSettings()
public UnaryCallSettings<CreateImportJobRequest,ImportJob> createImportJobSettings()
public UnaryCallSettings<UpdateCryptoKeyRequest,CryptoKey> updateCryptoKeySettings()
public UnaryCallSettings<UpdateCryptoKeyVersionRequest,CryptoKeyVersion> updateCryptoKeyVersionSettings()
public UnaryCallSettings<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey> updateCryptoKeyPrimaryVersionSettings()
public UnaryCallSettings<DestroyCryptoKeyVersionRequest,CryptoKeyVersion> destroyCryptoKeyVersionSettings()
public UnaryCallSettings<RestoreCryptoKeyVersionRequest,CryptoKeyVersion> restoreCryptoKeyVersionSettings()
public UnaryCallSettings<EncryptRequest,EncryptResponse> encryptSettings()
public UnaryCallSettings<DecryptRequest,DecryptResponse> decryptSettings()
public UnaryCallSettings<AsymmetricSignRequest,AsymmetricSignResponse> asymmetricSignSettings()
public UnaryCallSettings<AsymmetricDecryptRequest,AsymmetricDecryptResponse> asymmetricDecryptSettings()
public UnaryCallSettings<MacSignRequest,MacSignResponse> macSignSettings()
public UnaryCallSettings<MacVerifyRequest,MacVerifyResponse> macVerifySettings()
public UnaryCallSettings<GenerateRandomBytesRequest,GenerateRandomBytesResponse> generateRandomBytesSettings()
public UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public static final KeyManagementServiceSettings create(KeyManagementServiceStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static KeyManagementServiceSettings.Builder newBuilder()
@BetaApi public static KeyManagementServiceSettings.Builder newHttpJsonBuilder()
public static KeyManagementServiceSettings.Builder newBuilder(ClientContext clientContext)
public KeyManagementServiceSettings.Builder toBuilder()
toBuilder
in class ClientSettings<KeyManagementServiceSettings>
Copyright © 2022 Google LLC. All rights reserved.