Class Action

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.Action
All Implemented Interfaces:
ActionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Action extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • SAVE_FINDINGS_FIELD_NUMBER

      public static final int SAVE_FINDINGS_FIELD_NUMBER
      See Also:
    • PUB_SUB_FIELD_NUMBER

      public static final int PUB_SUB_FIELD_NUMBER
      See Also:
    • PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER

      public static final int PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER
      See Also:
    • PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER

      public static final int PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER
      See Also:
    • PUBLISH_FINDINGS_TO_DATAPLEX_CATALOG_FIELD_NUMBER

      public static final int PUBLISH_FINDINGS_TO_DATAPLEX_CATALOG_FIELD_NUMBER
      See Also:
    • DEIDENTIFY_FIELD_NUMBER

      public static final int DEIDENTIFY_FIELD_NUMBER
      See Also:
    • JOB_NOTIFICATION_EMAILS_FIELD_NUMBER

      public static final int JOB_NOTIFICATION_EMAILS_FIELD_NUMBER
      See Also:
    • PUBLISH_TO_STACKDRIVER_FIELD_NUMBER

      public static final int PUBLISH_TO_STACKDRIVER_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getActionCase

      public Action.ActionCase getActionCase()
      Specified by:
      getActionCase in interface ActionOrBuilder
    • 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.
    • getSaveFindingsOrBuilder

      public Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder()
       Save resulting findings in a provided location.
       
      .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
      Specified by:
      getSaveFindingsOrBuilder in interface ActionOrBuilder
    • 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.
    • getPubSubOrBuilder

      public Action.PublishToPubSubOrBuilder getPubSubOrBuilder()
       Publish a notification to a Pub/Sub topic.
       
      .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
      Specified by:
      getPubSubOrBuilder in interface ActionOrBuilder
    • 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.
    • getPublishSummaryToCsccOrBuilder

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

      @Deprecated public boolean hasPublishFindingsToCloudDataCatalog()
      Deprecated.
      google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is deprecated. See google/privacy/dlp/v2/dlp.proto;l=4561
       Deprecated because Data Catalog is being turned down. Use
       publish_findings_to_dataplex_catalog to publish findings to Dataplex
       Universal Catalog.
       
      .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true];
      Specified by:
      hasPublishFindingsToCloudDataCatalog in interface ActionOrBuilder
      Returns:
      Whether the publishFindingsToCloudDataCatalog field is set.
    • getPublishFindingsToCloudDataCatalog

      @Deprecated public Action.PublishFindingsToCloudDataCatalog getPublishFindingsToCloudDataCatalog()
      Deprecated.
      google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is deprecated. See google/privacy/dlp/v2/dlp.proto;l=4561
       Deprecated because Data Catalog is being turned down. Use
       publish_findings_to_dataplex_catalog to publish findings to Dataplex
       Universal Catalog.
       
      .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true];
      Specified by:
      getPublishFindingsToCloudDataCatalog in interface ActionOrBuilder
      Returns:
      The publishFindingsToCloudDataCatalog.
    • getPublishFindingsToCloudDataCatalogOrBuilder

      @Deprecated public Action.PublishFindingsToCloudDataCatalogOrBuilder getPublishFindingsToCloudDataCatalogOrBuilder()
      Deprecated.
       Deprecated because Data Catalog is being turned down. Use
       publish_findings_to_dataplex_catalog to publish findings to Dataplex
       Universal Catalog.
       
      .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true];
      Specified by:
      getPublishFindingsToCloudDataCatalogOrBuilder in interface ActionOrBuilder
    • hasPublishFindingsToDataplexCatalog

      public boolean hasPublishFindingsToDataplexCatalog()
       Publish findings as an aspect to Dataplex Universal Catalog.
       
      .google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10;
      Specified by:
      hasPublishFindingsToDataplexCatalog in interface ActionOrBuilder
      Returns:
      Whether the publishFindingsToDataplexCatalog field is set.
    • getPublishFindingsToDataplexCatalog

      public Action.PublishFindingsToDataplexCatalog getPublishFindingsToDataplexCatalog()
       Publish findings as an aspect to Dataplex Universal Catalog.
       
      .google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10;
      Specified by:
      getPublishFindingsToDataplexCatalog in interface ActionOrBuilder
      Returns:
      The publishFindingsToDataplexCatalog.
    • getPublishFindingsToDataplexCatalogOrBuilder

      public Action.PublishFindingsToDataplexCatalogOrBuilder getPublishFindingsToDataplexCatalogOrBuilder()
       Publish findings as an aspect to Dataplex Universal Catalog.
       
      .google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10;
      Specified by:
      getPublishFindingsToDataplexCatalogOrBuilder in interface ActionOrBuilder
    • 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.
    • getDeidentifyOrBuilder

      public Action.DeidentifyOrBuilder getDeidentifyOrBuilder()
       Create a de-identified copy of the input data.
       
      .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
      Specified by:
      getDeidentifyOrBuilder in interface ActionOrBuilder
    • 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.
    • getPublishToStackdriverOrBuilder

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Action parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Action parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Action parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Action parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static Action.Builder newBuilder()
    • newBuilder

      public static Action.Builder newBuilder(Action prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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