Class Action (3.51.0)

public final class Action extends GeneratedMessageV3 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 Fields

DEIDENTIFY_FIELD_NUMBER

public static final int DEIDENTIFY_FIELD_NUMBER
Field Value
Type Description
int

JOB_NOTIFICATION_EMAILS_FIELD_NUMBER

public static final int JOB_NOTIFICATION_EMAILS_FIELD_NUMBER
Field Value
Type Description
int

PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER

public static final int PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER
Field Value
Type Description
int

PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER

public static final int PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER
Field Value
Type Description
int

PUBLISH_TO_STACKDRIVER_FIELD_NUMBER

public static final int PUBLISH_TO_STACKDRIVER_FIELD_NUMBER
Field Value
Type Description
int

PUB_SUB_FIELD_NUMBER

public static final int PUB_SUB_FIELD_NUMBER
Field Value
Type Description
int

SAVE_FINDINGS_FIELD_NUMBER

public static final int SAVE_FINDINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Action getDefaultInstance()
Returns
Type Description
Action

getDescriptor()

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

newBuilder()

public static Action.Builder newBuilder()
Returns
Type Description
Action.Builder

newBuilder(Action prototype)

public static Action.Builder newBuilder(Action prototype)
Parameter
Name Description
prototype Action
Returns
Type Description
Action.Builder

parseDelimitedFrom(InputStream input)

public static Action parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Action parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Action parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Action parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Action parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Action parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Action> parser()
Returns
Type Description
Parser<Action>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

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

getParserForType()

public Parser<Action> getParserForType()
Returns
Type Description
Parser<Action>
Overrides

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.

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.

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.

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Action.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Action.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException