Class Action (3.18.0)

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

DEIDENTIFY_FIELD_NUMBER

public static final int DEIDENTIFY_FIELD_NUMBER
Field Value
TypeDescription
int

JOB_NOTIFICATION_EMAILS_FIELD_NUMBER

public static final int JOB_NOTIFICATION_EMAILS_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER

public static final int PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER

public static final int PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLISH_TO_STACKDRIVER_FIELD_NUMBER

public static final int PUBLISH_TO_STACKDRIVER_FIELD_NUMBER
Field Value
TypeDescription
int

PUB_SUB_FIELD_NUMBER

public static final int PUB_SUB_FIELD_NUMBER
Field Value
TypeDescription
int

SAVE_FINDINGS_FIELD_NUMBER

public static final int SAVE_FINDINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Action getDefaultInstance()
Returns
TypeDescription
Action

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Action.Builder newBuilder()
Returns
TypeDescription
Action.Builder

newBuilder(Action prototype)

public static Action.Builder newBuilder(Action prototype)
Parameter
NameDescription
prototypeAction
Returns
TypeDescription
Action.Builder

parseDelimitedFrom(InputStream input)

public static Action parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Action
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Action parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Action
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Action parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Action
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Action parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Action
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Action parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Action
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Action parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Action
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Action parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Action> parser()
Returns
TypeDescription
Parser<Action>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

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

getParserForType()

public Parser<Action> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
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.

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.

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Action.Builder newBuilderForType()
Returns
TypeDescription
Action.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Action.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Action.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Action.Builder toBuilder()
Returns
TypeDescription
Action.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException