Class GrpcKeyManagementServiceStub (2.19.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()
Overrides

asymmetricSignCallable()

public UnaryCallable<AsymmetricSignRequest,AsymmetricSignResponse> asymmetricSignCallable()
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()
Overrides

createCryptoKeyVersionCallable()

public UnaryCallable<CreateCryptoKeyVersionRequest,CryptoKeyVersion> createCryptoKeyVersionCallable()
Overrides

createImportJobCallable()

public UnaryCallable<CreateImportJobRequest,ImportJob> createImportJobCallable()
Overrides

createKeyRingCallable()

public UnaryCallable<CreateKeyRingRequest,KeyRing> createKeyRingCallable()
Overrides

decryptCallable()

public UnaryCallable<DecryptRequest,DecryptResponse> decryptCallable()
Overrides

destroyCryptoKeyVersionCallable()

public UnaryCallable<DestroyCryptoKeyVersionRequest,CryptoKeyVersion> destroyCryptoKeyVersionCallable()
Overrides

encryptCallable()

public UnaryCallable<EncryptRequest,EncryptResponse> encryptCallable()
Overrides

generateRandomBytesCallable()

public UnaryCallable<GenerateRandomBytesRequest,GenerateRandomBytesResponse> generateRandomBytesCallable()
Overrides

getCryptoKeyCallable()

public UnaryCallable<GetCryptoKeyRequest,CryptoKey> getCryptoKeyCallable()
Overrides

getCryptoKeyVersionCallable()

public UnaryCallable<GetCryptoKeyVersionRequest,CryptoKeyVersion> getCryptoKeyVersionCallable()
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()
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()
Overrides

importCryptoKeyVersionCallable()

public UnaryCallable<ImportCryptoKeyVersionRequest,CryptoKeyVersion> importCryptoKeyVersionCallable()
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCryptoKeyVersionsCallable()

public UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse> listCryptoKeyVersionsCallable()
Overrides

listCryptoKeyVersionsPagedCallable()

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

listCryptoKeysCallable()

public UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysResponse> listCryptoKeysCallable()
Overrides

listCryptoKeysPagedCallable()

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

listImportJobsCallable()

public UnaryCallable<ListImportJobsRequest,ListImportJobsResponse> listImportJobsCallable()
Overrides

listImportJobsPagedCallable()

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

listKeyRingsCallable()

public UnaryCallable<ListKeyRingsRequest,ListKeyRingsResponse> listKeyRingsCallable()
Overrides

listKeyRingsPagedCallable()

public UnaryCallable<ListKeyRingsRequest,KeyManagementServiceClient.ListKeyRingsPagedResponse> listKeyRingsPagedCallable()
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()
Overrides

macVerifyCallable()

public UnaryCallable<MacVerifyRequest,MacVerifyResponse> macVerifyCallable()
Overrides

restoreCryptoKeyVersionCallable()

public UnaryCallable<RestoreCryptoKeyVersionRequest,CryptoKeyVersion> restoreCryptoKeyVersionCallable()
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()
Overrides

updateCryptoKeyPrimaryVersionCallable()

public UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey> updateCryptoKeyPrimaryVersionCallable()
Overrides

updateCryptoKeyVersionCallable()

public UnaryCallable<UpdateCryptoKeyVersionRequest,CryptoKeyVersion> updateCryptoKeyVersionCallable()
Overrides