Class HttpJsonKeyManagementServiceStub (2.46.0)

public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub

REST stub implementation for the KeyManagementService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > KeyManagementServiceStub > HttpJsonKeyManagementServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonKeyManagementServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonKeyManagementServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonKeyManagementServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonKeyManagementServiceStub
Exceptions
Type Description
IOException

create(KeyManagementServiceStubSettings settings)

public static final HttpJsonKeyManagementServiceStub create(KeyManagementServiceStubSettings settings)
Parameter
Name Description
settings KeyManagementServiceStubSettings
Returns
Type Description
HttpJsonKeyManagementServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonKeyManagementServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings KeyManagementServiceStubSettings
clientContext ClientContext

HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonKeyManagementServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings KeyManagementServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

asymmetricDecryptCallable()

public UnaryCallable<AsymmetricDecryptRequest,AsymmetricDecryptResponse> asymmetricDecryptCallable()
Returns
Type Description
UnaryCallable<AsymmetricDecryptRequest,AsymmetricDecryptResponse>
Overrides

asymmetricSignCallable()

public UnaryCallable<AsymmetricSignRequest,AsymmetricSignResponse> asymmetricSignCallable()
Returns
Type Description
UnaryCallable<AsymmetricSignRequest,AsymmetricSignResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createCryptoKeyCallable()

public UnaryCallable<CreateCryptoKeyRequest,CryptoKey> createCryptoKeyCallable()
Returns
Type Description
UnaryCallable<CreateCryptoKeyRequest,CryptoKey>
Overrides

createCryptoKeyVersionCallable()

public UnaryCallable<CreateCryptoKeyVersionRequest,CryptoKeyVersion> createCryptoKeyVersionCallable()
Returns
Type Description
UnaryCallable<CreateCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

createImportJobCallable()

public UnaryCallable<CreateImportJobRequest,ImportJob> createImportJobCallable()
Returns
Type Description
UnaryCallable<CreateImportJobRequest,ImportJob>
Overrides

createKeyRingCallable()

public UnaryCallable<CreateKeyRingRequest,KeyRing> createKeyRingCallable()
Returns
Type Description
UnaryCallable<CreateKeyRingRequest,KeyRing>
Overrides

decryptCallable()

public UnaryCallable<DecryptRequest,DecryptResponse> decryptCallable()
Returns
Type Description
UnaryCallable<DecryptRequest,DecryptResponse>
Overrides

destroyCryptoKeyVersionCallable()

public UnaryCallable<DestroyCryptoKeyVersionRequest,CryptoKeyVersion> destroyCryptoKeyVersionCallable()
Returns
Type Description
UnaryCallable<DestroyCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

encryptCallable()

public UnaryCallable<EncryptRequest,EncryptResponse> encryptCallable()
Returns
Type Description
UnaryCallable<EncryptRequest,EncryptResponse>
Overrides

generateRandomBytesCallable()

public UnaryCallable<GenerateRandomBytesRequest,GenerateRandomBytesResponse> generateRandomBytesCallable()
Returns
Type Description
UnaryCallable<GenerateRandomBytesRequest,GenerateRandomBytesResponse>
Overrides

getCryptoKeyCallable()

public UnaryCallable<GetCryptoKeyRequest,CryptoKey> getCryptoKeyCallable()
Returns
Type Description
UnaryCallable<GetCryptoKeyRequest,CryptoKey>
Overrides

getCryptoKeyVersionCallable()

public UnaryCallable<GetCryptoKeyVersionRequest,CryptoKeyVersion> getCryptoKeyVersionCallable()
Returns
Type Description
UnaryCallable<GetCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getImportJobCallable()

public UnaryCallable<GetImportJobRequest,ImportJob> getImportJobCallable()
Returns
Type Description
UnaryCallable<GetImportJobRequest,ImportJob>
Overrides

getKeyRingCallable()

public UnaryCallable<GetKeyRingRequest,KeyRing> getKeyRingCallable()
Returns
Type Description
UnaryCallable<GetKeyRingRequest,KeyRing>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getPublicKeyCallable()

public UnaryCallable<GetPublicKeyRequest,PublicKey> getPublicKeyCallable()
Returns
Type Description
UnaryCallable<GetPublicKeyRequest,PublicKey>
Overrides

importCryptoKeyVersionCallable()

public UnaryCallable<ImportCryptoKeyVersionRequest,CryptoKeyVersion> importCryptoKeyVersionCallable()
Returns
Type Description
UnaryCallable<ImportCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCryptoKeyVersionsCallable()

public UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse> listCryptoKeyVersionsCallable()
Returns
Type Description
UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse>
Overrides

listCryptoKeyVersionsPagedCallable()

public UnaryCallable<ListCryptoKeyVersionsRequest,KeyManagementServiceClient.ListCryptoKeyVersionsPagedResponse> listCryptoKeyVersionsPagedCallable()
Returns
Type Description
UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsPagedResponse>
Overrides

listCryptoKeysCallable()

public UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysResponse> listCryptoKeysCallable()
Returns
Type Description
UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysResponse>
Overrides

listCryptoKeysPagedCallable()

public UnaryCallable<ListCryptoKeysRequest,KeyManagementServiceClient.ListCryptoKeysPagedResponse> listCryptoKeysPagedCallable()
Returns
Type Description
UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysPagedResponse>
Overrides

listImportJobsCallable()

public UnaryCallable<ListImportJobsRequest,ListImportJobsResponse> listImportJobsCallable()
Returns
Type Description
UnaryCallable<ListImportJobsRequest,ListImportJobsResponse>
Overrides

listImportJobsPagedCallable()

public UnaryCallable<ListImportJobsRequest,KeyManagementServiceClient.ListImportJobsPagedResponse> listImportJobsPagedCallable()
Returns
Type Description
UnaryCallable<ListImportJobsRequest,ListImportJobsPagedResponse>
Overrides

listKeyRingsCallable()

public UnaryCallable<ListKeyRingsRequest,ListKeyRingsResponse> listKeyRingsCallable()
Returns
Type Description
UnaryCallable<ListKeyRingsRequest,ListKeyRingsResponse>
Overrides

listKeyRingsPagedCallable()

public UnaryCallable<ListKeyRingsRequest,KeyManagementServiceClient.ListKeyRingsPagedResponse> listKeyRingsPagedCallable()
Returns
Type Description
UnaryCallable<ListKeyRingsRequest,ListKeyRingsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,KeyManagementServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

macSignCallable()

public UnaryCallable<MacSignRequest,MacSignResponse> macSignCallable()
Returns
Type Description
UnaryCallable<MacSignRequest,MacSignResponse>
Overrides

macVerifyCallable()

public UnaryCallable<MacVerifyRequest,MacVerifyResponse> macVerifyCallable()
Returns
Type Description
UnaryCallable<MacVerifyRequest,MacVerifyResponse>
Overrides

rawDecryptCallable()

public UnaryCallable<RawDecryptRequest,RawDecryptResponse> rawDecryptCallable()
Returns
Type Description
UnaryCallable<RawDecryptRequest,RawDecryptResponse>
Overrides

rawEncryptCallable()

public UnaryCallable<RawEncryptRequest,RawEncryptResponse> rawEncryptCallable()
Returns
Type Description
UnaryCallable<RawEncryptRequest,RawEncryptResponse>
Overrides

restoreCryptoKeyVersionCallable()

public UnaryCallable<RestoreCryptoKeyVersionRequest,CryptoKeyVersion> restoreCryptoKeyVersionCallable()
Returns
Type Description
UnaryCallable<RestoreCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateCryptoKeyCallable()

public UnaryCallable<UpdateCryptoKeyRequest,CryptoKey> updateCryptoKeyCallable()
Returns
Type Description
UnaryCallable<UpdateCryptoKeyRequest,CryptoKey>
Overrides

updateCryptoKeyPrimaryVersionCallable()

public UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey> updateCryptoKeyPrimaryVersionCallable()
Returns
Type Description
UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey>
Overrides

updateCryptoKeyVersionCallable()

public UnaryCallable<UpdateCryptoKeyVersionRequest,CryptoKeyVersion> updateCryptoKeyVersionCallable()
Returns
Type Description
UnaryCallable<UpdateCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides