Class DlpServiceGrpc.DlpServiceStub (3.50.0)

public static final class DlpServiceGrpc.DlpServiceStub extends AbstractAsyncStub<DlpServiceGrpc.DlpServiceStub>

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

The Cloud Data Loss Prevention (DLP) API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. The service also includes methods for sensitive data redaction and scheduling of data scans on Google Cloud Platform based data sets. To learn more about concepts and find how-to guides see https://cloud.google.com/sensitive-data-protection/docs/.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > DlpServiceGrpc.DlpServiceStub

Methods

activateJobTrigger(ActivateJobTriggerRequest request, StreamObserver<DlpJob> responseObserver)

public void activateJobTrigger(ActivateJobTriggerRequest request, StreamObserver<DlpJob> responseObserver)

Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.

Parameters
Name Description
request ActivateJobTriggerRequest
responseObserver io.grpc.stub.StreamObserver<DlpJob>

build(Channel channel, CallOptions callOptions)

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

cancelDlpJob(CancelDlpJobRequest request, StreamObserver<Empty> responseObserver)

public void cancelDlpJob(CancelDlpJobRequest request, StreamObserver<Empty> responseObserver)

Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters
Name Description
request CancelDlpJobRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

createConnection(CreateConnectionRequest request, StreamObserver<Connection> responseObserver)

public void createConnection(CreateConnectionRequest request, StreamObserver<Connection> responseObserver)

Create a Connection to an external data source.

Parameters
Name Description
request CreateConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Connection>

createDeidentifyTemplate(CreateDeidentifyTemplateRequest request, StreamObserver<DeidentifyTemplate> responseObserver)

public void createDeidentifyTemplate(CreateDeidentifyTemplateRequest request, StreamObserver<DeidentifyTemplate> responseObserver)

Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
Name Description
request CreateDeidentifyTemplateRequest
responseObserver io.grpc.stub.StreamObserver<DeidentifyTemplate>

createDiscoveryConfig(CreateDiscoveryConfigRequest request, StreamObserver<DiscoveryConfig> responseObserver)

public void createDiscoveryConfig(CreateDiscoveryConfigRequest request, StreamObserver<DiscoveryConfig> responseObserver)

Creates a config for discovery to scan and profile storage.

Parameters
Name Description
request CreateDiscoveryConfigRequest
responseObserver io.grpc.stub.StreamObserver<DiscoveryConfig>

createDlpJob(CreateDlpJobRequest request, StreamObserver<DlpJob> responseObserver)

public void createDlpJob(CreateDlpJobRequest request, StreamObserver<DlpJob> responseObserver)

Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
Name Description
request CreateDlpJobRequest
responseObserver io.grpc.stub.StreamObserver<DlpJob>

createInspectTemplate(CreateInspectTemplateRequest request, StreamObserver<InspectTemplate> responseObserver)

public void createInspectTemplate(CreateInspectTemplateRequest request, StreamObserver<InspectTemplate> responseObserver)

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

Parameters
Name Description
request CreateInspectTemplateRequest
responseObserver io.grpc.stub.StreamObserver<InspectTemplate>

createJobTrigger(CreateJobTriggerRequest request, StreamObserver<JobTrigger> responseObserver)

public void createJobTrigger(CreateJobTriggerRequest request, StreamObserver<JobTrigger> responseObserver)

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.

Parameters
Name Description
request CreateJobTriggerRequest
responseObserver io.grpc.stub.StreamObserver<JobTrigger>

createStoredInfoType(CreateStoredInfoTypeRequest request, StreamObserver<StoredInfoType> responseObserver)

public void createStoredInfoType(CreateStoredInfoTypeRequest request, StreamObserver<StoredInfoType> responseObserver)

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
Name Description
request CreateStoredInfoTypeRequest
responseObserver io.grpc.stub.StreamObserver<StoredInfoType>

deidentifyContent(DeidentifyContentRequest request, StreamObserver<DeidentifyContentResponse> responseObserver)

public void deidentifyContent(DeidentifyContentRequest request, StreamObserver<DeidentifyContentResponse> responseObserver)

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters
Name Description
request DeidentifyContentRequest
responseObserver io.grpc.stub.StreamObserver<DeidentifyContentResponse>

deleteConnection(DeleteConnectionRequest request, StreamObserver<Empty> responseObserver)

public void