Class KeyTrackingServiceGrpc.KeyTrackingServiceStub (0.43.0)

public static final class KeyTrackingServiceGrpc.KeyTrackingServiceStub extends AbstractAsyncStub<KeyTrackingServiceGrpc.KeyTrackingServiceStub>

A stub to allow clients to do asynchronous rpc calls to service KeyTrackingService.

Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > KeyTrackingServiceGrpc.KeyTrackingServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected KeyTrackingServiceGrpc.KeyTrackingServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
KeyTrackingServiceGrpc.KeyTrackingServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request, StreamObserver<ProtectedResourcesSummary> responseObserver)

public void getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request, StreamObserver<ProtectedResourcesSummary> responseObserver)

Returns aggregate information about the resources protected by the given Cloud KMS CryptoKey. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.

Parameters
Name Description
request GetProtectedResourcesSummaryRequest
responseObserver io.grpc.stub.StreamObserver<ProtectedResourcesSummary>

searchProtectedResources(SearchProtectedResourcesRequest request, StreamObserver<SearchProtectedResourcesResponse> responseObserver)

public void searchProtectedResources(SearchProtectedResourcesRequest request, StreamObserver<SearchProtectedResourcesResponse> responseObserver)

Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given Cloud organization.

Parameters
Name Description
request SearchProtectedResourcesRequest
responseObserver io.grpc.stub.StreamObserver<SearchProtectedResourcesResponse>