Package com.google.cloud.kms.v1.stub
Class GrpcKeyManagementServiceStub
- java.lang.Object
-
- com.google.cloud.kms.v1.stub.KeyManagementServiceStub
-
- com.google.cloud.kms.v1.stub.GrpcKeyManagementServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcKeyManagementServiceStub, using the given settings.protected
GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcKeyManagementServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcKeyManagementServiceStub
protected GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcKeyManagementServiceStub
protected GrpcKeyManagementServiceStub(KeyManagementServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcKeyManagementServiceStub create(KeyManagementServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcKeyManagementServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcKeyManagementServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
listKeyRingsCallable
public com.google.api.gax.rpc.UnaryCallable<ListKeyRingsRequest,ListKeyRingsResponse> listKeyRingsCallable()
- Overrides:
listKeyRingsCallable
in classKeyManagementServiceStub
-
listKeyRingsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListKeyRingsRequest,KeyManagementServiceClient.ListKeyRingsPagedResponse> listKeyRingsPagedCallable()
- Overrides:
listKeyRingsPagedCallable
in classKeyManagementServiceStub
-
listCryptoKeysCallable
public com.google.api.gax.rpc.UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysResponse> listCryptoKeysCallable()
- Overrides:
listCryptoKeysCallable
in classKeyManagementServiceStub
-
listCryptoKeysPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCryptoKeysRequest,KeyManagementServiceClient.ListCryptoKeysPagedResponse> listCryptoKeysPagedCallable()
- Overrides:
listCryptoKeysPagedCallable
in classKeyManagementServiceStub
-
listCryptoKeyVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse> listCryptoKeyVersionsCallable()
- Overrides:
listCryptoKeyVersionsCallable
in classKeyManagementServiceStub
-
listCryptoKeyVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCryptoKeyVersionsRequest,KeyManagementServiceClient.ListCryptoKeyVersionsPagedResponse> listCryptoKeyVersionsPagedCallable()
- Overrides:
listCryptoKeyVersionsPagedCallable
in classKeyManagementServiceStub
-
listImportJobsCallable
public com.google.api.gax.rpc.UnaryCallable<ListImportJobsRequest,ListImportJobsResponse> listImportJobsCallable()
- Overrides:
listImportJobsCallable
in classKeyManagementServiceStub
-
listImportJobsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListImportJobsRequest,KeyManagementServiceClient.ListImportJobsPagedResponse> listImportJobsPagedCallable()
- Overrides:
listImportJobsPagedCallable
in classKeyManagementServiceStub
-
getKeyRingCallable
public com.google.api.gax.rpc.UnaryCallable<GetKeyRingRequest,KeyRing> getKeyRingCallable()
- Overrides:
getKeyRingCallable
in classKeyManagementServiceStub
-
getCryptoKeyCallable
public com.google.api.gax.rpc.UnaryCallable<GetCryptoKeyRequest,CryptoKey> getCryptoKeyCallable()
- Overrides:
getCryptoKeyCallable
in classKeyManagementServiceStub
-
getCryptoKeyVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetCryptoKeyVersionRequest,CryptoKeyVersion> getCryptoKeyVersionCallable()
- Overrides:
getCryptoKeyVersionCallable
in classKeyManagementServiceStub
-
getPublicKeyCallable
public com.google.api.gax.rpc.UnaryCallable<GetPublicKeyRequest,PublicKey> getPublicKeyCallable()
- Overrides:
getPublicKeyCallable
in classKeyManagementServiceStub
-
getImportJobCallable
public com.google.api.gax.rpc.UnaryCallable<GetImportJobRequest,ImportJob> getImportJobCallable()
- Overrides:
getImportJobCallable
in classKeyManagementServiceStub
-
createKeyRingCallable
public com.google.api.gax.rpc.UnaryCallable<CreateKeyRingRequest,KeyRing> createKeyRingCallable()
- Overrides:
createKeyRingCallable
in classKeyManagementServiceStub
-
createCryptoKeyCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCryptoKeyRequest,CryptoKey> createCryptoKeyCallable()
- Overrides:
createCryptoKeyCallable
in classKeyManagementServiceStub
-
createCryptoKeyVersionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCryptoKeyVersionRequest,CryptoKeyVersion> createCryptoKeyVersionCallable()
- Overrides:
createCryptoKeyVersionCallable
in classKeyManagementServiceStub
-
importCryptoKeyVersionCallable
public com.google.api.gax.rpc.UnaryCallable<ImportCryptoKeyVersionRequest,CryptoKeyVersion> importCryptoKeyVersionCallable()
- Overrides:
importCryptoKeyVersionCallable
in classKeyManagementServiceStub
-
createImportJobCallable
public com.google.api.gax.rpc.UnaryCallable<CreateImportJobRequest,ImportJob> createImportJobCallable()
- Overrides:
createImportJobCallable
in classKeyManagementServiceStub
-
updateCryptoKeyCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCryptoKeyRequest,CryptoKey> updateCryptoKeyCallable()
- Overrides:
updateCryptoKeyCallable
in classKeyManagementServiceStub
-
updateCryptoKeyVersionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCryptoKeyVersionRequest,CryptoKeyVersion> updateCryptoKeyVersionCallable()
- Overrides:
updateCryptoKeyVersionCallable
in classKeyManagementServiceStub
-
updateCryptoKeyPrimaryVersionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey> updateCryptoKeyPrimaryVersionCallable()
- Overrides:
updateCryptoKeyPrimaryVersionCallable
in classKeyManagementServiceStub
-
destroyCryptoKeyVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DestroyCryptoKeyVersionRequest,CryptoKeyVersion> destroyCryptoKeyVersionCallable()
- Overrides:
destroyCryptoKeyVersionCallable
in classKeyManagementServiceStub
-
restoreCryptoKeyVersionCallable
public com.google.api.gax.rpc.UnaryCallable<RestoreCryptoKeyVersionRequest,CryptoKeyVersion> restoreCryptoKeyVersionCallable()
- Overrides:
restoreCryptoKeyVersionCallable
in classKeyManagementServiceStub
-
encryptCallable
public com.google.api.gax.rpc.UnaryCallable<EncryptRequest,EncryptResponse> encryptCallable()
- Overrides:
encryptCallable
in classKeyManagementServiceStub
-
decryptCallable
public com.google.api.gax.rpc.UnaryCallable<DecryptRequest,DecryptResponse> decryptCallable()
- Overrides:
decryptCallable
in classKeyManagementServiceStub
-
rawEncryptCallable
public com.google.api.gax.rpc.UnaryCallable<RawEncryptRequest,RawEncryptResponse> rawEncryptCallable()
- Overrides:
rawEncryptCallable
in classKeyManagementServiceStub
-
rawDecryptCallable
public com.google.api.gax.rpc.UnaryCallable<RawDecryptRequest,RawDecryptResponse> rawDecryptCallable()
- Overrides:
rawDecryptCallable
in classKeyManagementServiceStub
-
asymmetricSignCallable
public com.google.api.gax.rpc.UnaryCallable<AsymmetricSignRequest,AsymmetricSignResponse> asymmetricSignCallable()
- Overrides:
asymmetricSignCallable
in classKeyManagementServiceStub
-
asymmetricDecryptCallable
public com.google.api.gax.rpc.UnaryCallable<AsymmetricDecryptRequest,AsymmetricDecryptResponse> asymmetricDecryptCallable()
- Overrides:
asymmetricDecryptCallable
in classKeyManagementServiceStub
-
macSignCallable
public com.google.api.gax.rpc.UnaryCallable<MacSignRequest,MacSignResponse> macSignCallable()
- Overrides:
macSignCallable
in classKeyManagementServiceStub
-
macVerifyCallable
public com.google.api.gax.rpc.UnaryCallable<MacVerifyRequest,MacVerifyResponse> macVerifyCallable()
- Overrides:
macVerifyCallable
in classKeyManagementServiceStub
-
generateRandomBytesCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateRandomBytesRequest,GenerateRandomBytesResponse> generateRandomBytesCallable()
- Overrides:
generateRandomBytesCallable
in classKeyManagementServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classKeyManagementServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,KeyManagementServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classKeyManagementServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classKeyManagementServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classKeyManagementServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classKeyManagementServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classKeyManagementServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classKeyManagementServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-