Class DlpServiceGrpc.DlpServiceBlockingStub (3.45.0)

public static final class DlpServiceGrpc.DlpServiceBlockingStub extends AbstractBlockingStub<DlpServiceGrpc.DlpServiceBlockingStub>

A stub to allow clients to do synchronous 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.AbstractBlockingStub > DlpServiceGrpc.DlpServiceBlockingStub

Methods

activateJobTrigger(ActivateJobTriggerRequest request)

public 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
NameDescription
requestActivateJobTriggerRequest
Returns
TypeDescription
DlpJob

build(Channel channel, CallOptions callOptions)

protected DlpServiceGrpc.DlpServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
DlpServiceGrpc.DlpServiceBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelDlpJob(CancelDlpJobRequest request)

public 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
NameDescription
requestCancelDlpJobRequest
Returns
TypeDescription
Empty

createDeidentifyTemplate(CreateDeidentifyTemplateRequest request)

public 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
NameDescription
requestCreateDeidentifyTemplateRequest
Returns
TypeDescription
DeidentifyTemplate

createDiscoveryConfig(CreateDiscoveryConfigRequest request)

public DiscoveryConfig createDiscoveryConfig(CreateDiscoveryConfigRequest request)

Creates a config for discovery to scan and profile storage.

Parameter
NameDescription
requestCreateDiscoveryConfigRequest
Returns
TypeDescription
DiscoveryConfig

createDlpJob(CreateDlpJobRequest request)

public 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
NameDescription
requestCreateDlpJobRequest
Returns
TypeDescription
DlpJob

createInspectTemplate(CreateInspectTemplateRequest request)

public 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
NameDescription
requestCreateInspectTemplateRequest
Returns
TypeDescription
InspectTemplate

createJobTrigger(CreateJobTriggerRequest request)

public 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
NameDescription
requestCreateJobTriggerRequest
Returns
TypeDescription
JobTrigger

createStoredInfoType(CreateStoredInfoTypeRequest request)

public 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
NameDescription
requestCreateStoredInfoTypeRequest
Returns
TypeDescription
StoredInfoType

deidentifyContent(DeidentifyContentRequest request)

public 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
NameDescription
requestDeidentifyContentRequest
Returns
TypeDescription
DeidentifyContentResponse

deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request)

public Empty deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request)
Parameter
NameDescription
requestDeleteDeidentifyTemplateRequest
Returns
TypeDescription
Empty

deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request)

public Empty deleteDiscoveryConfig(DeleteDiscoveryConfigRequest request)

Deletes a discovery configuration.

Parameter
NameDescription
requestDeleteDiscoveryConfigRequest
Returns
TypeDescription
Empty

deleteDlpJob(DeleteDlpJobRequest request)

public 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
NameDescription
requestDeleteDlpJobRequest
Returns
TypeDescription
Empty

deleteInspectTemplate(DeleteInspectTemplateRequest request)

public Empty deleteInspectTemplate(DeleteInspectTemplateRequest request)
Parameter
NameDescription
requestDeleteInspectTemplateRequest
Returns
TypeDescription
Empty

deleteJobTrigger(DeleteJobTriggerRequest request)

public Empty deleteJobTrigger(DeleteJobTriggerRequest request)
Parameter
NameDescription
requestDeleteJobTriggerRequest
Returns
TypeDescription
Empty

deleteStoredInfoType(DeleteStoredInfoTypeRequest request)

public Empty deleteStoredInfoType(DeleteStoredInfoTypeRequest request)
Parameter
NameDescription
requestDeleteStoredInfoTypeRequest
Returns
TypeDescription
Empty

finishDlpJob(FinishDlpJobRequest request)

public Empty finishDlpJob(FinishDlpJobRequest request)

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

Parameter
NameDescription
requestFinishDlpJobRequest
Returns
TypeDescription
Empty

getColumnDataProfile(GetColumnDataProfileRequest request)

public ColumnDataProfile getColumnDataProfile(GetColumnDataProfileRequest request)

Gets a column data profile.

Parameter
NameDescription
requestGetColumnDataProfileRequest
Returns
TypeDescription
ColumnDataProfile

getDeidentifyTemplate(GetDeidentifyTemplateRequest request)

public DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateRequest request)
Parameter
NameDescription
requestGetDeidentifyTemplateRequest
Returns
TypeDescription
DeidentifyTemplate

getDiscoveryConfig(GetDiscoveryConfigRequest request)

public DiscoveryConfig getDiscoveryConfig(GetDiscoveryConfigRequest request)

Gets a discovery configuration.

Parameter
NameDescription
requestGetDiscoveryConfigRequest
Returns
TypeDescription
DiscoveryConfig

getDlpJob(GetDlpJobRequest request)

public DlpJob getDlpJob(GetDlpJobRequest request)
Parameter
NameDescription
requestGetDlpJobRequest
Returns
TypeDescription
DlpJob

getInspectTemplate(GetInspectTemplateRequest request)

public InspectTemplate getInspectTemplate(GetInspectTemplateRequest request)
Parameter
NameDescription
requestGetInspectTemplateRequest
Returns
TypeDescription
InspectTemplate

getJobTrigger(GetJobTriggerRequest request)

public JobTrigger getJobTrigger(GetJobTriggerRequest request)
Parameter
NameDescription
requestGetJobTriggerRequest
Returns
TypeDescription
JobTrigger

getProjectDataProfile(GetProjectDataProfileRequest request)

public ProjectDataProfile getProjectDataProfile(GetProjectDataProfileRequest request)

Gets a project data profile.

Parameter
NameDescription
requestGetProjectDataProfileRequest
Returns
TypeDescription
ProjectDataProfile

getStoredInfoType(GetStoredInfoTypeRequest request)

public StoredInfoType getStoredInfoType(GetStoredInfoTypeRequest request)
Parameter
NameDescription
requestGetStoredInfoTypeRequest
Returns
TypeDescription
StoredInfoType

getTableDataProfile(GetTableDataProfileRequest request)

public TableDataProfile getTableDataProfile(GetTableDataProfileRequest request)

Gets a table data profile.

Parameter
NameDescription
requestGetTableDataProfileRequest
Returns
TypeDescription
TableDataProfile

hybridInspectDlpJob(HybridInspectDlpJobRequest request)

public HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobRequest request)

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

Parameter
NameDescription
requestHybridInspectDlpJobRequest
Returns
TypeDescription
HybridInspectResponse

hybridInspectJobTrigger(HybridInspectJobTriggerRequest request)

public HybridInspectResponse hybridInspectJobTrigger(HybridInspectJobTriggerRequest request)

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.

Parameter
NameDescription
requestHybridInspectJobTriggerRequest
Returns
TypeDescription
HybridInspectResponse

inspectContent(InspectContentRequest request)

public InspectContentResponse inspectContent(InspectContentRequest request)

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,

Parameter
NameDescription
requestInspectContentRequest
Returns
TypeDescription
InspectContentResponse

listColumnDataProfiles(ListColumnDataProfilesRequest request)

public ListColumnDataProfilesResponse listColumnDataProfiles(ListColumnDataProfilesRequest request)

Lists data profiles for an organization.

Parameter
NameDescription
requestListColumnDataProfilesRequest
Returns
TypeDescription
ListColumnDataProfilesResponse

listDeidentifyTemplates(ListDeidentifyTemplatesRequest request)

public ListDeidentifyTemplatesResponse listDeidentifyTemplates(ListDeidentifyTemplatesRequest request)
Parameter
NameDescription
requestListDeidentifyTemplatesRequest
Returns
TypeDescription
ListDeidentifyTemplatesResponse

listDiscoveryConfigs(ListDiscoveryConfigsRequest request)

public ListDiscoveryConfigsResponse listDiscoveryConfigs(ListDiscoveryConfigsRequest request)

Lists discovery configurations.

Parameter
NameDescription
requestListDiscoveryConfigsRequest
Returns
TypeDescription
ListDiscoveryConfigsResponse

listDlpJobs(ListDlpJobsRequest request)

public ListDlpJobsResponse listDlpJobs(ListDlpJobsRequest request)
Parameter
NameDescription
requestListDlpJobsRequest
Returns
TypeDescription
ListDlpJobsResponse

listInfoTypes(ListInfoTypesRequest request)

public ListInfoTypesResponse listInfoTypes(ListInfoTypesRequest request)

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.

Parameter
NameDescription
requestListInfoTypesRequest
Returns
TypeDescription
ListInfoTypesResponse

listInspectTemplates(ListInspectTemplatesRequest request)

public ListInspectTemplatesResponse listInspectTemplates(ListInspectTemplatesRequest request)
Parameter
NameDescription
requestListInspectTemplatesRequest
Returns
TypeDescription
ListInspectTemplatesResponse

listJobTriggers(ListJobTriggersRequest request)

public ListJobTriggersResponse listJobTriggers(ListJobTriggersRequest request)
Parameter
NameDescription
requestListJobTriggersRequest
Returns
TypeDescription
ListJobTriggersResponse

listProjectDataProfiles(ListProjectDataProfilesRequest request)

public ListProjectDataProfilesResponse listProjectDataProfiles(ListProjectDataProfilesRequest request)

Lists data profiles for an organization.

Parameter
NameDescription
requestListProjectDataProfilesRequest
Returns
TypeDescription
ListProjectDataProfilesResponse

listStoredInfoTypes(ListStoredInfoTypesRequest request)

public ListStoredInfoTypesResponse listStoredInfoTypes(ListStoredInfoTypesRequest request)
Parameter
NameDescription
requestListStoredInfoTypesRequest
Returns
TypeDescription
ListStoredInfoTypesResponse

listTableDataProfiles(ListTableDataProfilesRequest request)

public ListTableDataProfilesResponse listTableDataProfiles(ListTableDataProfilesRequest request)

Lists data profiles for an organization.

Parameter
NameDescription
requestListTableDataProfilesRequest
Returns
TypeDescription
ListTableDataProfilesResponse

redactImage(RedactImageRequest request)

public RedactImageResponse redactImage(RedactImageRequest request)

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.

Parameter
NameDescription
requestRedactImageRequest
Returns
TypeDescription
RedactImageResponse

reidentifyContent(ReidentifyContentRequest request)

public ReidentifyContentResponse reidentifyContent(ReidentifyContentRequest request)
Parameter
NameDescription
requestReidentifyContentRequest
Returns
TypeDescription
ReidentifyContentResponse

updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request)

public DeidentifyTemplate updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest request)

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

Parameter
NameDescription
requestUpdateDeidentifyTemplateRequest
Returns
TypeDescription
DeidentifyTemplate

updateDiscoveryConfig(UpdateDiscoveryConfigRequest request)

public DiscoveryConfig updateDiscoveryConfig(UpdateDiscoveryConfigRequest request)

Updates a discovery configuration.

Parameter
NameDescription
requestUpdateDiscoveryConfigRequest
Returns
TypeDescription
DiscoveryConfig

updateInspectTemplate(UpdateInspectTemplateRequest request)

public InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest request)

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

Parameter
NameDescription
requestUpdateInspectTemplateRequest
Returns
TypeDescription
InspectTemplate

updateJobTrigger(UpdateJobTriggerRequest request)

public JobTrigger updateJobTrigger(UpdateJobTriggerRequest request)
Parameter
NameDescription
requestUpdateJobTriggerRequest
Returns
TypeDescription
JobTrigger

updateStoredInfoType(UpdateStoredInfoTypeRequest request)

public StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest request)

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.

Parameter
NameDescription
requestUpdateStoredInfoTypeRequest
Returns
TypeDescription
StoredInfoType