Class DlpServiceGrpc.DlpServiceStub (3.43.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
NameDescription
requestActivateJobTriggerRequest
responseObserverio.grpc.stub.StreamObserver<DlpJob>

build(Channel channel, CallOptions callOptions)

protected DlpServiceGrpc.DlpServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCancelDlpJobRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

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
NameDescription
requestCreateDeidentifyTemplateRequest
responseObserverio.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
NameDescription
requestCreateDiscoveryConfigRequest
responseObserverio.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
NameDescription
requestCreateDlpJobRequest
responseObserverio.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
NameDescription
requestCreateInspectTemplateRequest
responseObserverio.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
NameDescription
requestCreateJobTriggerRequest
responseObserverio.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
NameDescription
requestCreateStoredInfoTypeRequest
responseObserverio.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
NameDescription
requestDeidentifyContentRequest
responseObserverio.grpc.stub.StreamObserver<DeidentifyContentResponse>

deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request, StreamObserver<Empty> responseObserver)

public void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request, StreamObserver<Empty> responseObserver)
Parameters
NameDescription
requestDeleteDeidentifyTemplateRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request, StreamObserver<Empty> responseObserver)

public void deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request, StreamObserver<Empty> responseObserver)

Deletes a discovery configuration.

Parameters
NameDescription
requestDeleteDiscoveryConfigRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteDlpJob(DeleteDlpJobRequest request, StreamObserver<Empty> responseObserver)

public void deleteDlpJob(DeleteDlpJobRequest request, StreamObserver<Empty> responseObserver)

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.

Parameters
NameDescription
requestDeleteDlpJobRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteInspectTemplate(DeleteInspectTemplateRequest request, StreamObserver<Empty> responseObserver)

public void deleteInspectTemplate(DeleteInspectTemplateRequest request, StreamObserver<Empty> responseObserver)
Parameters
NameDescription
requestDeleteInspectTemplateRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteJobTrigger(DeleteJobTriggerRequest request, StreamObserver<Empty> responseObserver)

public void deleteJobTrigger(DeleteJobTriggerRequest request, StreamObserver<Empty> responseObserver)
Parameters
NameDescription
requestDeleteJobTriggerRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteStoredInfoType(DeleteStoredInfoTypeRequest request, StreamObserver<Empty> responseObserver)

public void deleteStoredInfoType(DeleteStoredInfoTypeRequest request, StreamObserver<Empty> responseObserver)
Parameters
NameDescription
requestDeleteStoredInfoTypeRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

finishDlpJob(FinishDlpJobRequest request, StreamObserver<Empty> responseObserver)

public void finishDlpJob(FinishDlpJobRequest request, StreamObserver<Empty> responseObserver)

Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.

Parameters
NameDescription
requestFinishDlpJobRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getColumnDataProfile(GetColumnDataProfileRequest request, StreamObserver<ColumnDataProfile> responseObserver)

public void getColumnDataProfile(GetColumnDataProfileRequest request, StreamObserver<ColumnDataProfile> responseObserver)

Gets a column data profile.

Parameters
NameDescription
requestGetColumnDataProfileRequest
responseObserverio.grpc.stub.StreamObserver<ColumnDataProfile>

getDeidentifyTemplate(GetDeidentifyTemplateRequest request, StreamObserver<DeidentifyTemplate> responseObserver)

public void getDeidentifyTemplate(GetDeidentifyTemplateRequest request, StreamObserver<DeidentifyTemplate> responseObserver)
Parameters
NameDescription
requestGetDeidentifyTemplateRequest
responseObserverio.grpc.stub.StreamObserver<DeidentifyTemplate>

getDiscoveryConfig(GetDiscoveryConfigRequest request, StreamObserver<DiscoveryConfig> responseObserver)

public void getDiscoveryConfig(GetDiscoveryConfigRequest request, StreamObserver<DiscoveryConfig> responseObserver)

Gets a discovery configuration.

Parameters
NameDescription
requestGetDiscoveryConfigRequest
responseObserverio.grpc.stub.StreamObserver<DiscoveryConfig>

getDlpJob(GetDlpJobRequest request, StreamObserver<DlpJob> responseObserver)

public void getDlpJob(GetDlpJobRequest request, StreamObserver<DlpJob> responseObserver)
Parameters
NameDescription
requestGetDlpJobRequest
responseObserverio.grpc.stub.StreamObserver<DlpJob>

getInspectTemplate(GetInspectTemplateRequest request, StreamObserver<InspectTemplate> responseObserver)

public void getInspectTemplate(GetInspectTemplateRequest request, StreamObserver<InspectTemplate> responseObserver)
Parameters
NameDescription
requestGetInspectTemplateRequest
responseObserverio.grpc.stub.StreamObserver<InspectTemplate>

getJobTrigger(GetJobTriggerRequest request, StreamObserver<JobTrigger> responseObserver)

public void getJobTrigger(GetJobTriggerRequest request, StreamObserver<JobTrigger> responseObserver)
Parameters
NameDescription
requestGetJobTriggerRequest
responseObserverio.grpc.stub.StreamObserver<JobTrigger>

getProjectDataProfile(GetProjectDataProfileRequest request, StreamObserver<ProjectDataProfile> responseObserver)

public void getProjectDataProfile(GetProjectDataProfileRequest request, StreamObserver<ProjectDataProfile> responseObserver)

Gets a project data profile.

Parameters
NameDescription
requestGetProjectDataProfileRequest
responseObserverio.grpc.stub.StreamObserver<ProjectDataProfile>

getStoredInfoType(GetStoredInfoTypeRequest request, StreamObserver<StoredInfoType> responseObserver)

public void getStoredInfoType(GetStoredInfoTypeRequest request, StreamObserver<StoredInfoType> responseObserver)
Parameters
NameDescription
requestGetStoredInfoTypeRequest
responseObserverio.grpc.stub.StreamObserver<StoredInfoType>

getTableDataProfile(GetTableDataProfileRequest request, StreamObserver<TableDataProfile> responseObserver)

public void getTableDataProfile(GetTableDataProfileRequest request, StreamObserver<TableDataProfile> responseObserver)

Gets a table data profile.

Parameters
NameDescription
requestGetTableDataProfileRequest
responseObserverio.grpc.stub.StreamObserver<TableDataProfile>

hybridInspectDlpJob(HybridInspectDlpJobRequest request, StreamObserver<HybridInspectResponse> responseObserver)

public void hybridInspectDlpJob(HybridInspectDlpJobRequest request, StreamObserver<HybridInspectResponse> responseObserver)

Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.

Parameters
NameDescription
requestHybridInspectDlpJobRequest
responseObserverio.grpc.stub.StreamObserver<HybridInspectResponse>

hybridInspectJobTrigger(HybridInspectJobTriggerRequest request, StreamObserver<HybridInspectResponse> responseObserver)

public void hybridInspectJobTrigger(HybridInspectJobTriggerRequest request, StreamObserver<HybridInspectResponse> responseObserver)

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters
NameDescription
requestHybridInspectJobTriggerRequest
responseObserverio.grpc.stub.StreamObserver<HybridInspectResponse>

inspectContent(InspectContentRequest request, StreamObserver<InspectContentResponse> responseObserver)

public void inspectContent(InspectContentRequest request, StreamObserver<InspectContentResponse> responseObserver)

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. 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. For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,

Parameters
NameDescription
requestInspectContentRequest
responseObserverio.grpc.stub.StreamObserver<InspectContentResponse>

listColumnDataProfiles(ListColumnDataProfilesRequest request, StreamObserver<ListColumnDataProfilesResponse> responseObserver)

public void listColumnDataProfiles(ListColumnDataProfilesRequest request, StreamObserver<ListColumnDataProfilesResponse> responseObserver)

Lists data profiles for an organization.

Parameters
NameDescription
requestListColumnDataProfilesRequest
responseObserverio.grpc.stub.StreamObserver<ListColumnDataProfilesResponse>

listDeidentifyTemplates(ListDeidentifyTemplatesRequest request, StreamObserver<ListDeidentifyTemplatesResponse> responseObserver)

public void listDeidentifyTemplates(ListDeidentifyTemplatesRequest request, StreamObserver<ListDeidentifyTemplatesResponse> responseObserver)
Parameters
NameDescription
requestListDeidentifyTemplatesRequest
responseObserverio.grpc.stub.StreamObserver<ListDeidentifyTemplatesResponse>

listDiscoveryConfigs(ListDiscoveryConfigsRequest request, StreamObserver<ListDiscoveryConfigsResponse> responseObserver)

public void listDiscoveryConfigs(ListDiscoveryConfigsRequest request, StreamObserver<ListDiscoveryConfigsResponse> responseObserver)

Lists discovery configurations.

Parameters
NameDescription
requestListDiscoveryConfigsRequest
responseObserverio.grpc.stub.StreamObserver<ListDiscoveryConfigsResponse>

listDlpJobs(ListDlpJobsRequest request, StreamObserver<ListDlpJobsResponse> responseObserver)

public void listDlpJobs(ListDlpJobsRequest request, StreamObserver<ListDlpJobsResponse> responseObserver)
Parameters
NameDescription
requestListDlpJobsRequest
responseObserverio.grpc.stub.StreamObserver<ListDlpJobsResponse>

listInfoTypes(ListInfoTypesRequest request, StreamObserver<ListInfoTypesResponse> responseObserver)

public void listInfoTypes(ListInfoTypesRequest request, StreamObserver<ListInfoTypesResponse> responseObserver)

Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.

Parameters
NameDescription
requestListInfoTypesRequest
responseObserverio.grpc.stub.StreamObserver<ListInfoTypesResponse>

listInspectTemplates(ListInspectTemplatesRequest request, StreamObserver<ListInspectTemplatesResponse> responseObserver)

public void listInspectTemplates(ListInspectTemplatesRequest request, StreamObserver<ListInspectTemplatesResponse> responseObserver)
Parameters
NameDescription
requestListInspectTemplatesRequest
responseObserverio.grpc.stub.StreamObserver<ListInspectTemplatesResponse>

listJobTriggers(ListJobTriggersRequest request, StreamObserver<ListJobTriggersResponse> responseObserver)

public void listJobTriggers(ListJobTriggersRequest request, StreamObserver<ListJobTriggersResponse> responseObserver)
Parameters
NameDescription
requestListJobTriggersRequest
responseObserverio.grpc.stub.StreamObserver<ListJobTriggersResponse>

listProjectDataProfiles(ListProjectDataProfilesRequest request, StreamObserver<ListProjectDataProfilesResponse> responseObserver)

public void listProjectDataProfiles(ListProjectDataProfilesRequest request, StreamObserver<ListProjectDataProfilesResponse> responseObserver)

Lists data profiles for an organization.

Parameters
NameDescription
requestListProjectDataProfilesRequest
responseObserverio.grpc.stub.StreamObserver<ListProjectDataProfilesResponse>

listStoredInfoTypes(ListStoredInfoTypesRequest request, StreamObserver<ListStoredInfoTypesResponse> responseObserver)

public void listStoredInfoTypes(ListStoredInfoTypesRequest request, StreamObserver<ListStoredInfoTypesResponse> responseObserver)
Parameters
NameDescription
requestListStoredInfoTypesRequest
responseObserverio.grpc.stub.StreamObserver<ListStoredInfoTypesResponse>

listTableDataProfiles(ListTableDataProfilesRequest request, StreamObserver<ListTableDataProfilesResponse> responseObserver)

public void listTableDataProfiles(ListTableDataProfilesRequest request, StreamObserver<ListTableDataProfilesResponse> responseObserver)

Lists data profiles for an organization.

Parameters
NameDescription
requestListTableDataProfilesRequest
responseObserverio.grpc.stub.StreamObserver<ListTableDataProfilesResponse>

redactImage(RedactImageRequest request, StreamObserver<RedactImageResponse> responseObserver)

public void redactImage(RedactImageRequest request, StreamObserver<RedactImageResponse> responseObserver)

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images 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
NameDescription
requestRedactImageRequest
responseObserverio.grpc.stub.StreamObserver<RedactImageResponse>

reidentifyContent(ReidentifyContentRequest request, StreamObserver<ReidentifyContentResponse> responseObserver)

public void reidentifyContent(ReidentifyContentRequest request, StreamObserver<ReidentifyContentResponse> responseObserver)
Parameters
NameDescription
requestReidentifyContentRequest
responseObserverio.grpc.stub.StreamObserver<ReidentifyContentResponse>

updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request, StreamObserver<DeidentifyTemplate> responseObserver)

public void updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request, StreamObserver<DeidentifyTemplate> responseObserver)

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters
NameDescription
requestUpdateDeidentifyTemplateRequest
responseObserverio.grpc.stub.StreamObserver<DeidentifyTemplate>

updateDiscoveryConfig(UpdateDiscoveryConfigRequest request, StreamObserver<DiscoveryConfig> responseObserver)

public void updateDiscoveryConfig(UpdateDiscoveryConfigRequest request, StreamObserver<DiscoveryConfig> responseObserver)

Updates a discovery configuration.

Parameters
NameDescription
requestUpdateDiscoveryConfigRequest
responseObserverio.grpc.stub.StreamObserver<DiscoveryConfig>

updateInspectTemplate(UpdateInspectTemplateRequest request, StreamObserver<InspectTemplate> responseObserver)

public void updateInspectTemplate(UpdateInspectTemplateRequest request, StreamObserver<InspectTemplate> responseObserver)

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.

Parameters
NameDescription
requestUpdateInspectTemplateRequest
responseObserverio.grpc.stub.StreamObserver<InspectTemplate>

updateJobTrigger(UpdateJobTriggerRequest request, StreamObserver<JobTrigger> responseObserver)

public void updateJobTrigger(UpdateJobTriggerRequest request, StreamObserver<JobTrigger> responseObserver)
Parameters
NameDescription
requestUpdateJobTriggerRequest
responseObserverio.grpc.stub.StreamObserver<JobTrigger>

updateStoredInfoType(UpdateStoredInfoTypeRequest request, StreamObserver<StoredInfoType> responseObserver)

public void updateStoredInfoType(UpdateStoredInfoTypeRequest request, StreamObserver<StoredInfoType> responseObserver)

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters
NameDescription
requestUpdateStoredInfoTypeRequest
responseObserverio.grpc.stub.StreamObserver<StoredInfoType>