Class Action

  • All Implemented Interfaces:
    ActionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Action
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Field Detail

      • SAVE_FINDINGS_FIELD_NUMBER

        public static final int SAVE_FINDINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER

        public static final int PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER

        public static final int PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEIDENTIFY_FIELD_NUMBER

        public static final int DEIDENTIFY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • JOB_NOTIFICATION_EMAILS_FIELD_NUMBER

        public static final int JOB_NOTIFICATION_EMAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PUBLISH_TO_STACKDRIVER_FIELD_NUMBER

        public static final int PUBLISH_TO_STACKDRIVER_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasSaveFindings

        public boolean hasSaveFindings()
         Save resulting findings in a provided location.
         
        .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
        Specified by:
        hasSaveFindings in interface ActionOrBuilder
        Returns:
        Whether the saveFindings field is set.
      • getSaveFindings

        public Action.SaveFindings getSaveFindings()
         Save resulting findings in a provided location.
         
        .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
        Specified by:
        getSaveFindings in interface ActionOrBuilder
        Returns:
        The saveFindings.
      • hasPubSub

        public boolean hasPubSub()
         Publish a notification to a Pub/Sub topic.
         
        .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
        Specified by:
        hasPubSub in interface ActionOrBuilder
        Returns:
        Whether the pubSub field is set.
      • getPubSub

        public Action.PublishToPubSub getPubSub()
         Publish a notification to a Pub/Sub topic.
         
        .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
        Specified by:
        getPubSub in interface ActionOrBuilder
        Returns:
        The pubSub.
      • hasPublishSummaryToCscc

        public boolean hasPublishSummaryToCscc()
         Publish summary to Cloud Security Command Center (Alpha).
         
        .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;
        Specified by:
        hasPublishSummaryToCscc in interface ActionOrBuilder
        Returns:
        Whether the publishSummaryToCscc field is set.
      • getPublishSummaryToCscc

        public Action.PublishSummaryToCscc getPublishSummaryToCscc()
         Publish summary to Cloud Security Command Center (Alpha).
         
        .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;
        Specified by:
        getPublishSummaryToCscc in interface ActionOrBuilder
        Returns:
        The publishSummaryToCscc.
      • hasPublishFindingsToCloudDataCatalog

        public boolean hasPublishFindingsToCloudDataCatalog()
         Publish findings to Cloud Datahub.
         
        .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;
        Specified by:
        hasPublishFindingsToCloudDataCatalog in interface ActionOrBuilder
        Returns:
        Whether the publishFindingsToCloudDataCatalog field is set.
      • hasDeidentify

        public boolean hasDeidentify()
         Create a de-identified copy of the input data.
         
        .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
        Specified by:
        hasDeidentify in interface ActionOrBuilder
        Returns:
        Whether the deidentify field is set.
      • getDeidentify

        public Action.Deidentify getDeidentify()
         Create a de-identified copy of the input data.
         
        .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
        Specified by:
        getDeidentify in interface ActionOrBuilder
        Returns:
        The deidentify.
      • hasJobNotificationEmails

        public boolean hasJobNotificationEmails()
         Sends an email when the job completes. The email goes to IAM project
         owners and technical [Essential
         Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
         
        .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;
        Specified by:
        hasJobNotificationEmails in interface ActionOrBuilder
        Returns:
        Whether the jobNotificationEmails field is set.
      • getJobNotificationEmails

        public Action.JobNotificationEmails getJobNotificationEmails()
         Sends an email when the job completes. The email goes to IAM project
         owners and technical [Essential
         Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
         
        .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;
        Specified by:
        getJobNotificationEmails in interface ActionOrBuilder
        Returns:
        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](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
         
        .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;
        Specified by:
        getJobNotificationEmailsOrBuilder in interface ActionOrBuilder
      • hasPublishToStackdriver

        public boolean hasPublishToStackdriver()
         Enable Stackdriver metric dlp.googleapis.com/finding_count.
         
        .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;
        Specified by:
        hasPublishToStackdriver in interface ActionOrBuilder
        Returns:
        Whether the publishToStackdriver field is set.
      • getPublishToStackdriver

        public Action.PublishToStackdriver getPublishToStackdriver()
         Enable Stackdriver metric dlp.googleapis.com/finding_count.
         
        .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;
        Specified by:
        getPublishToStackdriver in interface ActionOrBuilder
        Returns:
        The publishToStackdriver.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Action parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(ByteBuffer data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Action parseFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Action.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Action.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Action.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Action getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Action> parser()
      • getParserForType

        public com.google.protobuf.Parser<Action> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Action getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder