Class KeyManagementServiceSettings.Builder (2.44.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
NameDescription
clientContextClientContext

Builder(KeyManagementServiceSettings settings)

protected Builder(KeyManagementServiceSettings settings)
Parameter
NameDescription
settingsKeyManagementServiceSettings

Builder(KeyManagementServiceStubSettings.Builder stubSettings)

protected Builder(KeyManagementServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsKeyManagementServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
KeyManagementServiceSettings.Builder

asymmetricDecryptSettings()

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

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

Returns
TypeDescription
Builder<AsymmetricDecryptRequest,AsymmetricDecryptResponse>

asymmetricSignSettings()

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

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

Returns
TypeDescription
Builder<AsymmetricSignRequest,AsymmetricSignResponse>

build()

public KeyManagementServiceSettings build()
Returns
TypeDescription
KeyManagementServiceSettings
Overrides
Exceptions
TypeDescription
IOException

createCryptoKeySettings()

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

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

Returns
TypeDescription
Builder<CreateCryptoKeyRequest,CryptoKey>

createCryptoKeyVersionSettings()

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

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

Returns
TypeDescription
Builder<CreateCryptoKeyVersionRequest,CryptoKeyVersion>

createImportJobSettings()

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

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

Returns
TypeDescription
Builder<CreateImportJobRequest,ImportJob>

createKeyRingSettings()

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

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

Returns
TypeDescription
Builder<CreateKeyRingRequest,KeyRing>

decryptSettings()

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

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

Returns
TypeDescription
Builder<DecryptRequest,DecryptResponse>

destroyCryptoKeyVersionSettings()

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

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

Returns
TypeDescription
Builder<DestroyCryptoKeyVersionRequest,CryptoKeyVersion>

encryptSettings()

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

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

Returns
TypeDescription
Builder<EncryptRequest,EncryptResponse>

generateRandomBytesSettings()

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

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

Returns
TypeDescription
Builder<GenerateRandomBytesRequest,GenerateRandomBytesResponse>

getCryptoKeySettings()

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

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

Returns
TypeDescription
Builder<GetCryptoKeyRequest,CryptoKey>

getCryptoKeyVersionSettings()

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

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

Returns
TypeDescription
Builder<GetCryptoKeyVersionRequest,CryptoKeyVersion>

getIamPolicySettings()

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

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

Returns
TypeDescription
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
TypeDescription
Builder<GetImportJobRequest,ImportJob>

getKeyRingSettings()

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

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

Returns
TypeDescription
Builder<GetKeyRingRequest,KeyRing>

getLocationSettings()

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

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

Returns
TypeDescription
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
TypeDescription
Builder<GetPublicKeyRequest,PublicKey>

getStubSettingsBuilder()

public KeyManagementServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
KeyManagementServiceStubSettings.Builder

importCryptoKeyVersionSettings()

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

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

Returns
TypeDescription
Builder<ImportCryptoKeyVersionRequest,CryptoKeyVersion>

listCryptoKeyVersionsSettings()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Builder<MacSignRequest,MacSignResponse>

macVerifySettings()

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

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

Returns
TypeDescription
Builder<MacVerifyRequest,MacVerifyResponse>

rawDecryptSettings()

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

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

Returns
TypeDescription
Builder<RawDecryptRequest,RawDecryptResponse>

rawEncryptSettings()

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

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

Returns
TypeDescription
Builder<RawEncryptRequest,RawEncryptResponse>

restoreCryptoKeyVersionSettings()

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

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

Returns
TypeDescription
Builder<RestoreCryptoKeyVersionRequest,CryptoKeyVersion>

setIamPolicySettings()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Builder<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey>

updateCryptoKeySettings()

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

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

Returns
TypeDescription
Builder<UpdateCryptoKeyRequest,CryptoKey>

updateCryptoKeyVersionSettings()

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

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

Returns
TypeDescription
Builder<UpdateCryptoKeyVersionRequest,CryptoKeyVersion>