public class KeyManagementServiceStubSettings extends StubSettings<KeyManagementServiceStubSettings>
Settings class to configure an instance of KeyManagementServiceStub .
The default instance has everything set to sensible defaults:
The default service address (cloudkms.googleapis.com) and default port (443) are used.
Credentials are acquired automatically through Application Default Credentials.
Retries are configured for idempotent methods but not for non-idempotent methods.
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
KeyManagementServiceStubSettings . Builder keyManagementServiceSettingsBuilder =
KeyManagementServiceStubSettings . newBuilder ();
keyManagementServiceSettingsBuilder
. getKeyRingSettings ()
. setRetrySettings (
keyManagementServiceSettingsBuilder
. getKeyRingSettings ()
. getRetrySettings ()
. toBuilder ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
KeyManagementServiceStubSettings keyManagementServiceSettings =
keyManagementServiceSettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider ()
getDefaultEndpoint()
public static String getDefaultEndpoint ()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
newBuilder()
public static KeyManagementServiceStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static KeyManagementServiceStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
newHttpJsonBuilder()
public static KeyManagementServiceStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
KeyManagementServiceStubSettings(KeyManagementServiceStubSettings.Builder settingsBuilder)
protected KeyManagementServiceStubSettings ( KeyManagementServiceStubSettings . Builder settingsBuilder )
Methods
asymmetricDecryptSettings()
public UnaryCallSettings<AsymmetricDecryptRequest , AsymmetricDecryptResponse > asymmetricDecryptSettings ()
Returns the object with the settings used for calls to asymmetricDecrypt.
asymmetricSignSettings()
public UnaryCallSettings<AsymmetricSignRequest , AsymmetricSignResponse > asymmetricSignSettings ()
Returns the object with the settings used for calls to asymmetricSign.
createCryptoKeySettings()
public UnaryCallSettings<CreateCryptoKeyRequest , CryptoKey > createCryptoKeySettings ()
Returns the object with the settings used for calls to createCryptoKey.
createCryptoKeyVersionSettings()
public UnaryCallSettings<CreateCryptoKeyVersionRequest , CryptoKeyVersion > createCryptoKeyVersionSettings ()
Returns the object with the settings used for calls to createCryptoKeyVersion.
createImportJobSettings()
public UnaryCallSettings<CreateImportJobRequest , ImportJob > createImportJobSettings ()
Returns the object with the settings used for calls to createImportJob.
createKeyRingSettings()
public UnaryCallSettings<CreateKeyRingRequest , KeyRing > createKeyRingSettings ()
Returns the object with the settings used for calls to createKeyRing.
createStub()
public KeyManagementServiceStub createStub ()
decryptSettings()
public UnaryCallSettings<DecryptRequest , DecryptResponse > decryptSettings ()
Returns the object with the settings used for calls to decrypt.
destroyCryptoKeyVersionSettings()
public UnaryCallSettings<DestroyCryptoKeyVersionRequest , CryptoKeyVersion > destroyCryptoKeyVersionSettings ()
Returns the object with the settings used for calls to destroyCryptoKeyVersion.
encryptSettings()
public UnaryCallSettings<EncryptRequest , EncryptResponse > encryptSettings ()
Returns the object with the settings used for calls to encrypt.
generateRandomBytesSettings()
public UnaryCallSettings<GenerateRandomBytesRequest , GenerateRandomBytesResponse > generateRandomBytesSettings ()
Returns the object with the settings used for calls to generateRandomBytes.
getCryptoKeySettings()
public UnaryCallSettings<GetCryptoKeyRequest , CryptoKey > getCryptoKeySettings ()
Returns the object with the settings used for calls to getCryptoKey.
getCryptoKeyVersionSettings()
public UnaryCallSettings<GetCryptoKeyVersionRequest , CryptoKeyVersion > getCryptoKeyVersionSettings ()
Returns the object with the settings used for calls to getCryptoKeyVersion.
getEndpoint()
public String getEndpoint ()
Returns the endpoint set by the user or the the service's default endpoint.
Overrides
getIamPolicySettings()
public UnaryCallSettings<GetIamPolicyRequest , Policy > getIamPolicySettings ()
Returns the object with the settings used for calls to getIamPolicy.
Returns Type Description UnaryCallSettings <com.google.iam.v1.GetIamPolicyRequest ,com.google.iam.v1.Policy >
getImportJobSettings()
public UnaryCallSettings<GetImportJobRequest , ImportJob > getImportJobSettings ()
Returns the object with the settings used for calls to getImportJob.
getKeyRingSettings()
public UnaryCallSettings<GetKeyRingRequest , KeyRing > getKeyRingSettings ()
Returns the object with the settings used for calls to getKeyRing.
getLocationSettings()
public UnaryCallSettings<GetLocationRequest , Location > getLocationSettings ()
Returns the object with the settings used for calls to getLocation.
Returns Type Description UnaryCallSettings <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location >
getPublicKeySettings()
public UnaryCallSettings<GetPublicKeyRequest , PublicKey > getPublicKeySettings ()
Returns the object with the settings used for calls to getPublicKey.
getServiceName()
public String getServiceName ()
Returns the default service name.
Overrides
importCryptoKeyVersionSettings()
public UnaryCallSettings<ImportCryptoKeyVersionRequest , CryptoKeyVersion > importCryptoKeyVersionSettings ()
Returns the object with the settings used for calls to importCryptoKeyVersion.
listCryptoKeyVersionsSettings()
public PagedCallSettings<ListCryptoKeyVersionsRequest , ListCryptoKeyVersionsResponse , KeyManagementServiceClient . ListCryptoKeyVersionsPagedResponse > listCryptoKeyVersionsSettings ()
Returns the object with the settings used for calls to listCryptoKeyVersions.
listCryptoKeysSettings()
public PagedCallSettings<ListCryptoKeysRequest , ListCryptoKeysResponse , KeyManagementServiceClient . ListCryptoKeysPagedResponse > listCryptoKeysSettings ()
Returns the object with the settings used for calls to listCryptoKeys.
listImportJobsSettings()
public PagedCallSettings<ListImportJobsRequest , ListImportJobsResponse , KeyManagementServiceClient . ListImportJobsPagedResponse > listImportJobsSettings ()
Returns the object with the settings used for calls to listImportJobs.
listKeyRingsSettings()
public PagedCallSettings<ListKeyRingsRequest , ListKeyRingsResponse , KeyManagementServiceClient . ListKeyRingsPagedResponse > listKeyRingsSettings ()
Returns the object with the settings used for calls to listKeyRings.
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest , ListLocationsResponse , KeyManagementServiceClient . ListLocationsPagedResponse > listLocationsSettings ()
Returns the object with the settings used for calls to listLocations.
macSignSettings()
public UnaryCallSettings<MacSignRequest , MacSignResponse > macSignSettings ()
Returns the object with the settings used for calls to macSign.
macVerifySettings()
public UnaryCallSettings<MacVerifyRequest , MacVerifyResponse > macVerifySettings ()
Returns the object with the settings used for calls to macVerify.
rawDecryptSettings()
public UnaryCallSettings<RawDecryptRequest , RawDecryptResponse > rawDecryptSettings ()
Returns the object with the settings used for calls to rawDecrypt.
rawEncryptSettings()
public UnaryCallSettings<RawEncryptRequest , RawEncryptResponse > rawEncryptSettings ()
Returns the object with the settings used for calls to rawEncrypt.
restoreCryptoKeyVersionSettings()
public UnaryCallSettings<RestoreCryptoKeyVersionRequest , CryptoKeyVersion > restoreCryptoKeyVersionSettings ()
Returns the object with the settings used for calls to restoreCryptoKeyVersion.
setIamPolicySettings()
public UnaryCallSettings<SetIamPolicyRequest , Policy > setIamPolicySettings ()
Returns the object with the settings used for calls to setIamPolicy.
Returns Type Description UnaryCallSettings <com.google.iam.v1.SetIamPolicyRequest ,com.google.iam.v1.Policy >
testIamPermissionsSettings()
public UnaryCallSettings<TestIamPermissionsRequest , TestIamPermissionsResponse > testIamPermissionsSettings ()
Returns the object with the settings used for calls to testIamPermissions.
Returns Type Description UnaryCallSettings <com.google.iam.v1.TestIamPermissionsRequest ,com.google.iam.v1.TestIamPermissionsResponse >
toBuilder()
public KeyManagementServiceStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
updateCryptoKeyPrimaryVersionSettings()
public UnaryCallSettings<UpdateCryptoKeyPrimaryVersionRequest , CryptoKey > updateCryptoKeyPrimaryVersionSettings ()
Returns the object with the settings used for calls to updateCryptoKeyPrimaryVersion.
updateCryptoKeySettings()
public UnaryCallSettings<UpdateCryptoKeyRequest , CryptoKey > updateCryptoKeySettings ()
Returns the object with the settings used for calls to updateCryptoKey.
updateCryptoKeyVersionSettings()
public UnaryCallSettings<UpdateCryptoKeyVersionRequest , CryptoKeyVersion > updateCryptoKeyVersionSettings ()
Returns the object with the settings used for calls to updateCryptoKeyVersion.