Class KeyManagementServiceSettings.Builder (2.47.0)

public static class KeyManagementServiceSettings.Builder extends ClientSettings.Builder<KeyManagementServiceSettings,KeyManagementServiceSettings.Builder>

Builder for KeyManagementServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > KeyManagementServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(KeyManagementServiceSettings settings)

protected Builder(KeyManagementServiceSettings settings)
Parameter
Name Description
settings KeyManagementServiceSettings

Builder(KeyManagementServiceStubSettings.Builder stubSettings)

protected Builder(KeyManagementServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings KeyManagementServiceStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public KeyManagementServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
KeyManagementServiceSettings.Builder

asymmetricDecryptSettings()

public UnaryCallSettings.Builder<AsymmetricDecryptRequest,AsymmetricDecryptResponse> asymmetricDecryptSettings()

Returns the builder for the settings used for calls to asymmetricDecrypt.

Returns
Type Description
Builder<AsymmetricDecryptRequest,AsymmetricDecryptResponse>

asymmetricSignSettings()

public UnaryCallSettings.Builder<AsymmetricSignRequest,AsymmetricSignResponse> asymmetricSignSettings()

Returns the builder for the settings used for calls to asymmetricSign.

Returns
Type Description
Builder<AsymmetricSignRequest,AsymmetricSignResponse>

build()

public KeyManagementServiceSettings build()
Returns
Type Description
KeyManagementServiceSettings
Overrides
Exceptions
Type Description
IOException

createCryptoKeySettings()

public UnaryCallSettings.Builder<CreateCryptoKeyRequest,CryptoKey> createCryptoKeySettings()

Returns the builder for the settings used for calls to createCryptoKey.

Returns
Type Description
Builder<CreateCryptoKeyRequest,CryptoKey>

createCryptoKeyVersionSettings()

public UnaryCallSettings.Builder<CreateCryptoKeyVersionRequest,CryptoKeyVersion> createCryptoKeyVersionSettings()

Returns the builder for the settings used for calls to createCryptoKeyVersion.

Returns
Type Description
Builder<CreateCryptoKeyVersionRequest,CryptoKeyVersion>

createImportJobSettings()

public UnaryCallSettings.Builder<CreateImportJobRequest,ImportJob> createImportJobSettings()

Returns the builder for the settings used for calls to createImportJob.

Returns
Type Description
Builder<CreateImportJobRequest,ImportJob>

createKeyRingSettings()

public UnaryCallSettings.Builder<CreateKeyRingRequest,KeyRing> createKeyRingSettings()

Returns the builder for the settings used for calls to createKeyRing.

Returns
Type Description
Builder<CreateKeyRingRequest,KeyRing>

decryptSettings()

public UnaryCallSettings.Builder<DecryptRequest,DecryptResponse> decryptSettings()

Returns the builder for the settings used for calls to decrypt.

Returns
Type Description
Builder<DecryptRequest,DecryptResponse>

destroyCryptoKeyVersionSettings()

public UnaryCallSettings.Builder<DestroyCryptoKeyVersionRequest,CryptoKeyVersion> destroyCryptoKeyVersionSettings()

Returns the builder for the settings used for calls to destroyCryptoKeyVersion.

Returns
Type Description
Builder<DestroyCryptoKeyVersionRequest,CryptoKeyVersion>

encryptSettings()

public UnaryCallSettings.Builder<EncryptRequest,EncryptResponse> encryptSettings()

Returns the builder for the settings used for calls to encrypt.

Returns
Type Description
Builder<EncryptRequest,EncryptResponse>

generateRandomBytesSettings()

public UnaryCallSettings.Builder<GenerateRandomBytesRequest,GenerateRandomBytesResponse> generateRandomBytesSettings()

Returns the builder for the settings used for calls to generateRandomBytes.

Returns
Type Description
Builder<GenerateRandomBytesRequest,GenerateRandomBytesResponse>

getCryptoKeySettings()

public UnaryCallSettings.Builder<GetCryptoKeyRequest,CryptoKey> getCryptoKeySettings()

Returns the builder for the settings used for calls to getCryptoKey.

Returns
Type Description
Builder<GetCryptoKeyRequest,CryptoKey>

getCryptoKeyVersionSettings()

public UnaryCallSettings.Builder<GetCryptoKeyVersionRequest,CryptoKeyVersion> getCryptoKeyVersionSettings()

Returns the builder for the settings used for calls to getCryptoKeyVersion.

Returns
Type Description
Builder<GetCryptoKeyVersionRequest,CryptoKeyVersion>

getIamPolicySettings()

public UnaryCallSettings.Builder<GetIamPolicyRequest,Policy> getIamPolicySettings()

Returns the builder for the settings used for calls to getIamPolicy.

Returns
Type Description
Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getImportJobSettings()

public UnaryCallSettings.Builder<GetImportJobRequest,ImportJob> getImportJobSettings()

Returns the builder for the settings used for calls to getImportJob.

Returns
Type Description
Builder<GetImportJobRequest,ImportJob>

getKeyRingSettings()

public UnaryCallSettings.Builder<GetKeyRingRequest,KeyRing> getKeyRingSettings()

Returns the builder for the settings used for calls to getKeyRing.

Returns
Type Description
Builder<GetKeyRingRequest,KeyRing>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

Returns the builder for the settings used for calls to getLocation.

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getPublicKeySettings()

public UnaryCallSettings.Builder<GetPublicKeyRequest,PublicKey> getPublicKeySettings()

Returns the builder for the settings used for calls to getPublicKey.

Returns
Type Description
Builder<GetPublicKeyRequest,PublicKey>

getStubSettingsBuilder()

public KeyManagementServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
KeyManagementServiceStubSettings.Builder

importCryptoKeyVersionSettings()

public UnaryCallSettings.Builder<ImportCryptoKeyVersionRequest,CryptoKeyVersion> importCryptoKeyVersionSettings()

Returns the builder for the settings used for calls to importCryptoKeyVersion.

Returns
Type Description
Builder<ImportCryptoKeyVersionRequest,CryptoKeyVersion>

listCryptoKeyVersionsSettings()

public PagedCallSettings.Builder<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse,KeyManagementServiceClient.ListCryptoKeyVersionsPagedResponse> listCryptoKeyVersionsSettings()

Returns the builder for the settings used for calls to listCryptoKeyVersions.

Returns
Type Description
Builder<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse,ListCryptoKeyVersionsPagedResponse>

listCryptoKeysSettings()

public PagedCallSettings.Builder<ListCryptoKeysRequest,ListCryptoKeysResponse,KeyManagementServiceClient.ListCryptoKeysPagedResponse> listCryptoKeysSettings()

Returns the builder for the settings used for calls to listCryptoKeys.

Returns
Type Description
Builder<ListCryptoKeysRequest,ListCryptoKeysResponse,ListCryptoKeysPagedResponse>

listImportJobsSettings()

public PagedCallSettings.Builder<ListImportJobsRequest,ListImportJobsResponse,KeyManagementServiceClient.ListImportJobsPagedResponse> listImportJobsSettings()

Returns the builder for the settings used for calls to listImportJobs.

Returns
Type Description
Builder<ListImportJobsRequest,ListImportJobsResponse,ListImportJobsPagedResponse>

listKeyRingsSettings()

public PagedCallSettings.Builder<ListKeyRingsRequest,ListKeyRingsResponse,KeyManagementServiceClient.ListKeyRingsPagedResponse> listKeyRingsSettings()

Returns the builder for the settings used for calls to listKeyRings.

Returns
Type Description
Builder<ListKeyRingsRequest,ListKeyRingsResponse,ListKeyRingsPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,KeyManagementServiceClient.ListLocationsPagedResponse> listLocationsSettings()

Returns the builder for the settings used for calls to listLocations.

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

macSignSettings()

public UnaryCallSettings.Builder<MacSignRequest,MacSignResponse> macSignSettings()

Returns the builder for the settings used for calls to macSign.

Returns
Type Description
Builder<MacSignRequest,MacSignResponse>

macVerifySettings()

public UnaryCallSettings.Builder<MacVerifyRequest,MacVerifyResponse> macVerifySettings()

Returns the builder for the settings used for calls to macVerify.

Returns
Type Description
Builder<MacVerifyRequest,MacVerifyResponse>

rawDecryptSettings()

public UnaryCallSettings.Builder<RawDecryptRequest,RawDecryptResponse> rawDecryptSettings()

Returns the builder for the settings used for calls to rawDecrypt.

Returns
Type Description
Builder<RawDecryptRequest,RawDecryptResponse>

rawEncryptSettings()

public UnaryCallSettings.Builder<RawEncryptRequest,RawEncryptResponse> rawEncryptSettings()

Returns the builder for the settings used for calls to rawEncrypt.

Returns
Type Description
Builder<RawEncryptRequest,RawEncryptResponse>

restoreCryptoKeyVersionSettings()

public UnaryCallSettings.Builder<RestoreCryptoKeyVersionRequest,CryptoKeyVersion> restoreCryptoKeyVersionSettings()

Returns the builder for the settings used for calls to restoreCryptoKeyVersion.

Returns
Type Description
Builder<RestoreCryptoKeyVersionRequest,CryptoKeyVersion>

setIamPolicySettings()

public UnaryCallSettings.Builder<SetIamPolicyRequest,Policy> setIamPolicySettings()

Returns the builder for the settings used for calls to setIamPolicy.

Returns
Type Description
Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

Returns the builder for the settings used for calls to testIamPermissions.

Returns
Type Description
Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

updateCryptoKeyPrimaryVersionSettings()

public UnaryCallSettings.Builder<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey> updateCryptoKeyPrimaryVersionSettings()

Returns the builder for the settings used for calls to updateCryptoKeyPrimaryVersion.

Returns
Type Description
Builder<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey>

updateCryptoKeySettings()

public UnaryCallSettings.Builder<UpdateCryptoKeyRequest,CryptoKey> updateCryptoKeySettings()

Returns the builder for the settings used for calls to updateCryptoKey.

Returns
Type Description
Builder<UpdateCryptoKeyRequest,CryptoKey>

updateCryptoKeyVersionSettings()

public UnaryCallSettings.Builder<UpdateCryptoKeyVersionRequest,CryptoKeyVersion> updateCryptoKeyVersionSettings()

Returns the builder for the settings used for calls to updateCryptoKeyVersion.

Returns
Type Description
Builder<UpdateCryptoKeyVersionRequest,CryptoKeyVersion>