Class GrpcKeyManagementServiceStub (2.40.0)

public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub

gRPC stub implementation for the KeyManagementService service API.

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

Inheritance

java.lang.Object > KeyManagementServiceStub > GrpcKeyManagementServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcKeyManagementServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcKeyManagementServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcKeyManagementServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcKeyManagementServiceStub
Exceptions
TypeDescription
IOException

create(KeyManagementServiceStubSettings settings)

public static final GrpcKeyManagementServiceStub create(KeyManagementServiceStubSettings settings)
Parameter
NameDescription
settingsKeyManagementServiceStubSettings
Returns
TypeDescription
GrpcKeyManagementServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext)

protected GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcKeyManagementServiceStub, 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
NameDescription
settingsKeyManagementServiceStubSettings
clientContextClientContext

GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcKeyManagementServiceStub, 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
NameDescription
settingsKeyManagementServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

asymmetricDecryptCallable()

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

asymmetricSignCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createCryptoKeyCallable()

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

createCryptoKeyVersionCallable()

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

createImportJobCallable()

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

createKeyRingCallable()

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

decryptCallable()

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

destroyCryptoKeyVersionCallable()

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

encryptCallable()

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

generateRandomBytesCallable()

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

getCryptoKeyCallable()

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

getCryptoKeyVersionCallable()

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

getIamPolicyCallable()

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

getImportJobCallable()

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

getKeyRingCallable()

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getPublicKeyCallable()

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

importCryptoKeyVersionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCryptoKeyVersionsCallable()

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

listCryptoKeyVersionsPagedCallable()

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

listCryptoKeysCallable()

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

listCryptoKeysPagedCallable()

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

listImportJobsCallable()

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

listImportJobsPagedCallable()

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

listKeyRingsCallable()

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

listKeyRingsPagedCallable()

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

listLocationsCallable()

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

listLocationsPagedCallable()

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

macSignCallable()

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

macVerifyCallable()

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

rawDecryptCallable()

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

rawEncryptCallable()

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

restoreCryptoKeyVersionCallable()

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

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
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
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateCryptoKeyCallable()

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

updateCryptoKeyPrimaryVersionCallable()

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

updateCryptoKeyVersionCallable()

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