Class Action.Builder (3.49.0)

public static final class Action.Builder extends GeneratedMessageV3.Builder<Action.Builder> implements ActionOrBuilder

A task to execute on the completion of a job. See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions to learn more.

Protobuf type google.privacy.dlp.v2.Action

Implements

ActionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Action.Builder
Overrides

build()

public Action build()
Returns
Type Description
Action

buildPartial()

public Action buildPartial()
Returns
Type Description
Action

clear()

public Action.Builder clear()
Returns
Type Description
Action.Builder
Overrides

clearAction()

public Action.Builder clearAction()
Returns
Type Description
Action.Builder

clearDeidentify()

public Action.Builder clearDeidentify()

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Returns
Type Description
Action.Builder

clearField(Descriptors.FieldDescriptor field)

public Action.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Action.Builder
Overrides

clearJobNotificationEmails()

public Action.Builder clearJobNotificationEmails()

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Returns
Type Description
Action.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Action.Builder
Overrides

clearPubSub()

public Action.Builder clearPubSub()

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Returns
Type Description
Action.Builder

clearPublishFindingsToCloudDataCatalog()

public Action.Builder clearPublishFindingsToCloudDataCatalog()

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Returns
Type Description
Action.Builder

clearPublishSummaryToCscc()

public Action.Builder clearPublishSummaryToCscc()

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Returns
Type Description
Action.Builder

clearPublishToStackdriver()

public Action.Builder clearPublishToStackdriver()

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Returns
Type Description
Action.Builder

clearSaveFindings()

public Action.Builder clearSaveFindings()

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Returns
Type Description
Action.Builder

clone()

public Action.Builder clone()
Returns
Type Description
Action.Builder
Overrides

getActionCase()

public Action.ActionCase getActionCase()
Returns
Type Description
Action.ActionCase

getDefaultInstanceForType()

public Action getDefaultInstanceForType()
Returns
Type Description
Action

getDeidentify()

public Action.Deidentify getDeidentify()

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Returns
Type Description
Action.Deidentify

The deidentify.

getDeidentifyBuilder()

public Action.Deidentify.Builder getDeidentifyBuilder()

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Returns
Type Description
Action.Deidentify.Builder

getDeidentifyOrBuilder()

public Action.DeidentifyOrBuilder getDeidentifyOrBuilder()

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Returns
Type Description
Action.DeidentifyOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJobNotificationEmails()

public Action.JobNotificationEmails getJobNotificationEmails()

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Returns
Type Description
Action.JobNotificationEmails

The jobNotificationEmails.

getJobNotificationEmailsBuilder()

public Action.JobNotificationEmails.Builder getJobNotificationEmailsBuilder()

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Returns
Type Description
Action.JobNotificationEmails.Builder

getJobNotificationEmailsOrBuilder()

public Action.JobNotificationEmailsOrBuilder getJobNotificationEmailsOrBuilder()

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Returns
Type Description
Action.JobNotificationEmailsOrBuilder

getPubSub()

public Action.PublishToPubSub getPubSub()

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Returns
Type Description
Action.PublishToPubSub

The pubSub.

getPubSubBuilder()

public Action.PublishToPubSub.Builder getPubSubBuilder()

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Returns
Type Description
Action.PublishToPubSub.Builder

getPubSubOrBuilder()

public Action.PublishToPubSubOrBuilder getPubSubOrBuilder()

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Returns
Type Description
Action.PublishToPubSubOrBuilder

getPublishFindingsToCloudDataCatalog()

public Action.PublishFindingsToCloudDataCatalog getPublishFindingsToCloudDataCatalog()

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Returns
Type Description
Action.PublishFindingsToCloudDataCatalog

The publishFindingsToCloudDataCatalog.

getPublishFindingsToCloudDataCatalogBuilder()

public Action.PublishFindingsToCloudDataCatalog.Builder getPublishFindingsToCloudDataCatalogBuilder()

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Returns
Type Description
Action.PublishFindingsToCloudDataCatalog.Builder

getPublishFindingsToCloudDataCatalogOrBuilder()

public Action.PublishFindingsToCloudDataCatalogOrBuilder getPublishFindingsToCloudDataCatalogOrBuilder()

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Returns
Type Description
Action.PublishFindingsToCloudDataCatalogOrBuilder

getPublishSummaryToCscc()

public Action.PublishSummaryToCscc getPublishSummaryToCscc()

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Returns
Type Description
Action.PublishSummaryToCscc

The publishSummaryToCscc.

getPublishSummaryToCsccBuilder()

public Action.PublishSummaryToCscc.Builder getPublishSummaryToCsccBuilder()

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Returns
Type Description
Action.PublishSummaryToCscc.Builder

getPublishSummaryToCsccOrBuilder()

public Action.PublishSummaryToCsccOrBuilder getPublishSummaryToCsccOrBuilder()

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Returns
Type Description
Action.PublishSummaryToCsccOrBuilder

getPublishToStackdriver()

public Action.PublishToStackdriver getPublishToStackdriver()

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Returns
Type Description
Action.PublishToStackdriver

The publishToStackdriver.

getPublishToStackdriverBuilder()

public Action.PublishToStackdriver.Builder getPublishToStackdriverBuilder()

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Returns
Type Description
Action.PublishToStackdriver.Builder

getPublishToStackdriverOrBuilder()

public Action.PublishToStackdriverOrBuilder getPublishToStackdriverOrBuilder()

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Returns
Type Description
Action.PublishToStackdriverOrBuilder

getSaveFindings()

public Action.SaveFindings getSaveFindings()

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Returns
Type Description
Action.SaveFindings

The saveFindings.

getSaveFindingsBuilder()

public Action.SaveFindings.Builder getSaveFindingsBuilder()

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Returns
Type Description
Action.SaveFindings.Builder

getSaveFindingsOrBuilder()

public Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder()

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Returns
Type Description
Action.SaveFindingsOrBuilder

hasDeidentify()

public boolean hasDeidentify()

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Returns
Type Description
boolean

Whether the deidentify field is set.

hasJobNotificationEmails()

public boolean hasJobNotificationEmails()

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Returns
Type Description
boolean

Whether the jobNotificationEmails field is set.

hasPubSub()

public boolean hasPubSub()

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Returns
Type Description
boolean

Whether the pubSub field is set.

hasPublishFindingsToCloudDataCatalog()

public boolean hasPublishFindingsToCloudDataCatalog()

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Returns
Type Description
boolean

Whether the publishFindingsToCloudDataCatalog field is set.

hasPublishSummaryToCscc()

public boolean hasPublishSummaryToCscc()

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Returns
Type Description
boolean

Whether the publishSummaryToCscc field is set.

hasPublishToStackdriver()

public boolean hasPublishToStackdriver()

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Returns
Type Description
boolean

Whether the publishToStackdriver field is set.

hasSaveFindings()

public boolean hasSaveFindings()

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Returns
Type Description
boolean

Whether the saveFindings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeidentify(Action.Deidentify value)

public Action.Builder mergeDeidentify(Action.Deidentify value)

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Parameter
Name Description
value Action.Deidentify
Returns
Type Description
Action.Builder

mergeFrom(Action other)

public Action.Builder mergeFrom(Action other)
Parameter
Name Description
other Action
Returns
Type Description
Action.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Action.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Action.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Action.Builder
Overrides

mergeJobNotificationEmails(Action.JobNotificationEmails value)

public Action.Builder mergeJobNotificationEmails(Action.JobNotificationEmails value)

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Parameter
Name Description
value Action.JobNotificationEmails
Returns
Type Description
Action.Builder

mergePubSub(Action.PublishToPubSub value)

public Action.Builder mergePubSub(Action.PublishToPubSub value)

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Parameter
Name Description
value Action.PublishToPubSub
Returns
Type Description
Action.Builder

mergePublishFindingsToCloudDataCatalog(Action.PublishFindingsToCloudDataCatalog value)

public Action.Builder mergePublishFindingsToCloudDataCatalog(Action.PublishFindingsToCloudDataCatalog value)

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Parameter
Name Description
value Action.PublishFindingsToCloudDataCatalog
Returns
Type Description
Action.Builder

mergePublishSummaryToCscc(Action.PublishSummaryToCscc value)

public Action.Builder mergePublishSummaryToCscc(Action.PublishSummaryToCscc value)

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Parameter
Name Description
value Action.PublishSummaryToCscc
Returns
Type Description
Action.Builder

mergePublishToStackdriver(Action.PublishToStackdriver value)

public Action.Builder mergePublishToStackdriver(Action.PublishToStackdriver value)

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Parameter
Name Description
value Action.PublishToStackdriver
Returns
Type Description
Action.Builder

mergeSaveFindings(Action.SaveFindings value)

public Action.Builder mergeSaveFindings(Action.SaveFindings value)

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Parameter
Name Description
value Action.SaveFindings
Returns
Type Description
Action.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.Builder
Overrides

setDeidentify(Action.Deidentify value)

public Action.Builder setDeidentify(Action.Deidentify value)

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Parameter
Name Description
value Action.Deidentify
Returns
Type Description
Action.Builder

setDeidentify(Action.Deidentify.Builder builderForValue)

public Action.Builder setDeidentify(Action.Deidentify.Builder builderForValue)

Create a de-identified copy of the input data.

.google.privacy.dlp.v2.Action.Deidentify deidentify = 7;

Parameter
Name Description
builderForValue Action.Deidentify.Builder
Returns
Type Description
Action.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Action.Builder
Overrides

setJobNotificationEmails(Action.JobNotificationEmails value)

public Action.Builder setJobNotificationEmails(Action.JobNotificationEmails value)

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Parameter
Name Description
value Action.JobNotificationEmails
Returns
Type Description
Action.Builder

setJobNotificationEmails(Action.JobNotificationEmails.Builder builderForValue)

public Action.Builder setJobNotificationEmails(Action.JobNotificationEmails.Builder builderForValue)

Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.

.google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;

Parameter
Name Description
builderForValue Action.JobNotificationEmails.Builder
Returns
Type Description
Action.Builder

setPubSub(Action.PublishToPubSub value)

public Action.Builder setPubSub(Action.PublishToPubSub value)

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Parameter
Name Description
value Action.PublishToPubSub
Returns
Type Description
Action.Builder

setPubSub(Action.PublishToPubSub.Builder builderForValue)

public Action.Builder setPubSub(Action.PublishToPubSub.Builder builderForValue)

Publish a notification to a Pub/Sub topic.

.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;

Parameter
Name Description
builderForValue Action.PublishToPubSub.Builder
Returns
Type Description
Action.Builder

setPublishFindingsToCloudDataCatalog(Action.PublishFindingsToCloudDataCatalog value)

public Action.Builder setPublishFindingsToCloudDataCatalog(Action.PublishFindingsToCloudDataCatalog value)

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Parameter
Name Description
value Action.PublishFindingsToCloudDataCatalog
Returns
Type Description
Action.Builder

setPublishFindingsToCloudDataCatalog(Action.PublishFindingsToCloudDataCatalog.Builder builderForValue)

public Action.Builder setPublishFindingsToCloudDataCatalog(Action.PublishFindingsToCloudDataCatalog.Builder builderForValue)

Publish findings to Cloud Datahub.

.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;

Parameter
Name Description
builderForValue Action.PublishFindingsToCloudDataCatalog.Builder
Returns
Type Description
Action.Builder

setPublishSummaryToCscc(Action.PublishSummaryToCscc value)

public Action.Builder setPublishSummaryToCscc(Action.PublishSummaryToCscc value)

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Parameter
Name Description
value Action.PublishSummaryToCscc
Returns
Type Description
Action.Builder

setPublishSummaryToCscc(Action.PublishSummaryToCscc.Builder builderForValue)

public Action.Builder setPublishSummaryToCscc(Action.PublishSummaryToCscc.Builder builderForValue)

Publish summary to Cloud Security Command Center (Alpha).

.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;

Parameter
Name Description
builderForValue Action.PublishSummaryToCscc.Builder
Returns
Type Description
Action.Builder

setPublishToStackdriver(Action.PublishToStackdriver value)

public Action.Builder setPublishToStackdriver(Action.PublishToStackdriver value)

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Parameter
Name Description
value Action.PublishToStackdriver
Returns
Type Description
Action.Builder

setPublishToStackdriver(Action.PublishToStackdriver.Builder builderForValue)

public Action.Builder setPublishToStackdriver(Action.PublishToStackdriver.Builder builderForValue)

Enable Stackdriver metric dlp.googleapis.com/finding_count.

.google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;

Parameter
Name Description
builderForValue Action.PublishToStackdriver.Builder
Returns
Type Description
Action.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Action.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Action.Builder
Overrides

setSaveFindings(Action.SaveFindings value)

public Action.Builder setSaveFindings(Action.SaveFindings value)

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Parameter
Name Description
value Action.SaveFindings
Returns
Type Description
Action.Builder

setSaveFindings(Action.SaveFindings.Builder builderForValue)

public Action.Builder setSaveFindings(Action.SaveFindings.Builder builderForValue)

Save resulting findings in a provided location.

.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;

Parameter
Name Description
builderForValue Action.SaveFindings.Builder
Returns
Type Description
Action.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.Builder
Overrides