Class Action.Builder (3.28.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/dlp/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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Action.Builder
Overrides

build()

public Action build()
Returns
TypeDescription
Action

buildPartial()

public Action buildPartial()
Returns
TypeDescription
Action

clear()

public Action.Builder clear()
Returns
TypeDescription
Action.Builder
Overrides

clearAction()

public Action.Builder clearAction()
Returns
TypeDescription
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
TypeDescription
Action.Builder

clearField(Descriptors.FieldDescriptor field)

public Action.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Action.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Action.Builder

clearSaveFindings()

public Action.Builder clearSaveFindings()

Save resulting findings in a provided location.

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

Returns
TypeDescription
Action.Builder

clone()

public Action.Builder clone()
Returns
TypeDescription
Action.Builder
Overrides

getActionCase()

public Action.ActionCase getActionCase()
Returns
TypeDescription
Action.ActionCase

getDefaultInstanceForType()

public Action getDefaultInstanceForType()
Returns
TypeDescription
Action

getDeidentify()

public Action.Deidentify getDeidentify()

Create a de-identified copy of the input data.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Action.DeidentifyOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Action.PublishToStackdriverOrBuilder

getSaveFindings()

public Action.SaveFindings getSaveFindings()

Save resulting findings in a provided location.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Action.SaveFindingsOrBuilder

hasDeidentify()

public boolean hasDeidentify()

Create a de-identified copy of the input data.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the saveFindings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAction.Deidentify
Returns
TypeDescription
Action.Builder

mergeFrom(Action other)

public Action.Builder mergeFrom(Action other)
Parameter
NameDescription
otherAction
Returns
TypeDescription
Action.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Action.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Action.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAction.JobNotificationEmails
Returns
TypeDescription
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
NameDescription
valueAction.PublishToPubSub
Returns
TypeDescription
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
NameDescription
valueAction.PublishFindingsToCloudDataCatalog
Returns
TypeDescription
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
NameDescription
valueAction.PublishSummaryToCscc
Returns
TypeDescription
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
NameDescription
valueAction.PublishToStackdriver
Returns
TypeDescription
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
NameDescription
valueAction.SaveFindings
Returns
TypeDescription
Action.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAction.Deidentify
Returns
TypeDescription
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
NameDescription
builderForValueAction.Deidentify.Builder
Returns
TypeDescription
Action.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueAction.JobNotificationEmails
Returns
TypeDescription
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
NameDescription
builderForValueAction.JobNotificationEmails.Builder
Returns
TypeDescription
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
NameDescription
valueAction.PublishToPubSub
Returns
TypeDescription
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
NameDescription
builderForValueAction.PublishToPubSub.Builder
Returns
TypeDescription
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
NameDescription
valueAction.PublishFindingsToCloudDataCatalog
Returns
TypeDescription
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
NameDescription
builderForValueAction.PublishFindingsToCloudDataCatalog.Builder
Returns
TypeDescription
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
NameDescription
valueAction.PublishSummaryToCscc
Returns
TypeDescription
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
NameDescription
builderForValueAction.PublishSummaryToCscc.Builder
Returns
TypeDescription
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
NameDescription
valueAction.PublishToStackdriver
Returns
TypeDescription
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
NameDescription
builderForValueAction.PublishToStackdriver.Builder
Returns
TypeDescription
Action.Builder

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

public Action.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueAction.SaveFindings
Returns
TypeDescription
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
NameDescription
builderForValueAction.SaveFindings.Builder
Returns
TypeDescription
Action.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Action.Builder
Overrides