Class DlpServiceGrpc.DlpServiceFutureStub (3.50.0)

public static final class DlpServiceGrpc.DlpServiceFutureStub extends AbstractFutureStub<DlpServiceGrpc.DlpServiceFutureStub>

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > DlpServiceGrpc.DlpServiceFutureStub

Methods

activateJobTrigger(ActivateJobTriggerRequest request)

public ListenableFuture<DlpJob> activateJobTrigger(ActivateJobTriggerRequest request)

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

Parameter
Name Description
request ActivateJobTriggerRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DlpJob>

build(Channel channel, CallOptions callOptions)

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

cancelDlpJob(CancelDlpJobRequest request)

public ListenableFuture<Empty> cancelDlpJob(CancelDlpJobRequest request)

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.

Parameter
Name Description
request CancelDlpJobRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

createConnection(CreateConnectionRequest request)

public ListenableFuture<Connection> createConnection(CreateConnectionRequest request)

Create a Connection to an external data source.

Parameter
Name Description
request CreateConnectionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Connection>

createDeidentifyTemplate(CreateDeidentifyTemplateRequest request)

public ListenableFuture<DeidentifyTemplate> createDeidentifyTemplate(CreateDeidentifyTemplateRequest request)

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.

Parameter
Name Description
request CreateDeidentifyTemplateRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DeidentifyTemplate>

createDiscoveryConfig(CreateDiscoveryConfigRequest request)

public ListenableFuture<DiscoveryConfig> createDiscoveryConfig(CreateDiscoveryConfigRequest request)

Creates a config for discovery to scan and profile storage.

Parameter
Name Description
request CreateDiscoveryConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DiscoveryConfig>

createDlpJob(CreateDlpJobRequest request)

public ListenableFuture<DlpJob> createDlpJob(CreateDlpJobRequest request)

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.

Parameter
Name Description
request CreateDlpJobRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DlpJob>

createInspectTemplate(CreateInspectTemplateRequest request)

public ListenableFuture<InspectTemplate> createInspectTemplate(CreateInspectTemplateRequest request)

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.

Parameter
Name Description
request CreateInspectTemplateRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<InspectTemplate>

createJobTrigger(CreateJobTriggerRequest request)

public ListenableFuture<JobTrigger> createJobTrigger(CreateJobTriggerRequest request)

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.

Parameter
Name Description
request CreateJobTriggerRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<JobTrigger>

createStoredInfoType(CreateStoredInfoTypeRequest request)

public ListenableFuture<StoredInfoType> createStoredInfoType(CreateStoredInfoTypeRequest request)

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.

Parameter
Name Description
request CreateStoredInfoTypeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<StoredInfoType>

deidentifyContent(DeidentifyContentRequest request)

public ListenableFuture<DeidentifyContentResponse> deidentifyContent(DeidentifyContentRequest request)

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.

Parameter
Name Description
request DeidentifyContentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DeidentifyContentResponse>

deleteConnection(DeleteConnectionRequest request)

public ListenableFuture<Empty> deleteConnection(DeleteConnectionRequest request)

Delete a Connection.

Parameter
Name Description
request DeleteConnectionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request)

public ListenableFuture<Empty> deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request)
Parameter
Name Description
request DeleteDeidentifyTemplateRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request)

public ListenableFuture<Empty> deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request)

Deletes a discovery configuration.

Parameter
Name Description
request DeleteDiscoveryConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteDlpJob(DeleteDlpJobRequest request)

public ListenableFuture<Empty> deleteDlpJob(DeleteDlpJobRequest request)

Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. 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.

Parameter
Name Description
request DeleteDlpJobRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteInspectTemplate(DeleteInspectTemplateRequest request)

public ListenableFuture<Empty> deleteInspectTemplate(DeleteInspectTemplateRequest request)
Parameter
Name Description
request DeleteInspectTemplateRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteJobTrigger(DeleteJobTriggerRequest request)

public Liste