Class Action.Builder

  • All Implemented Interfaces:
    ActionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Action

    public static final class Action.Builder
    extends com.google.protobuf.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
    • Method Detail

      • 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.Builder<Action.Builder>
      • clear

        public Action.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • getDefaultInstanceForType

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

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

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

        public Action.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • setField

        public Action.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • clearField

        public Action.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • clearOneof

        public Action.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • setRepeatedField

        public Action.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • addRepeatedField

        public Action.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • mergeFrom

        public Action.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Action.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • mergeFrom

        public Action.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Action.Builder>
        Throws:
        IOException
      • 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.
      • setSaveFindings

        public Action.Builder setSaveFindings​(Action.SaveFindings value)
         Save resulting findings in a provided location.
         
        .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
      • setSaveFindings

        public Action.Builder setSaveFindings​(Action.SaveFindings.Builder builderForValue)
         Save resulting findings in a provided location.
         
        .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
      • mergeSaveFindings

        public Action.Builder mergeSaveFindings​(Action.SaveFindings value)
         Save resulting findings in a provided location.
         
        .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
      • clearSaveFindings

        public Action.Builder clearSaveFindings()
         Save resulting findings in a provided location.
         
        .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
      • getSaveFindingsBuilder

        public Action.SaveFindings.Builder getSaveFindingsBuilder()
         Save resulting findings in a provided location.
         
        .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;
      • 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.
      • setPubSub

        public Action.Builder setPubSub​(Action.PublishToPubSub value)
         Publish a notification to a Pub/Sub topic.
         
        .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
      • mergePubSub

        public Action.Builder mergePubSub​(Action.PublishToPubSub value)
         Publish a notification to a Pub/Sub topic.
         
        .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
      • clearPubSub

        public Action.Builder clearPubSub()
         Publish a notification to a Pub/Sub topic.
         
        .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
      • getPubSubBuilder

        public Action.PublishToPubSub.Builder getPubSubBuilder()
         Publish a notification to a Pub/Sub topic.
         
        .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
      • 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.
      • setPublishSummaryToCscc

        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;
      • setPublishSummaryToCscc

        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;
      • mergePublishSummaryToCscc

        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;
      • clearPublishSummaryToCscc

        public Action.Builder clearPublishSummaryToCscc()
         Publish summary to Cloud Security Command Center (Alpha).
         
        .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;
      • 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;
      • 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.
      • setPublishFindingsToCloudDataCatalog

        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;
      • setPublishFindingsToCloudDataCatalog

        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;
      • mergePublishFindingsToCloudDataCatalog

        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;
      • clearPublishFindingsToCloudDataCatalog

        public Action.Builder clearPublishFindingsToCloudDataCatalog()
         Publish findings to Cloud Datahub.
         
        .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;
      • getPublishFindingsToCloudDataCatalogBuilder

        public Action.PublishFindingsToCloudDataCatalog.Builder getPublishFindingsToCloudDataCatalogBuilder()
         Publish findings to Cloud Datahub.
         
        .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;
      • 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.
      • setDeidentify

        public Action.Builder setDeidentify​(Action.Deidentify value)
         Create a de-identified copy of the input data.
         
        .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
      • setDeidentify

        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;
      • mergeDeidentify

        public Action.Builder mergeDeidentify​(Action.Deidentify value)
         Create a de-identified copy of the input data.
         
        .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
      • clearDeidentify

        public Action.Builder clearDeidentify()
         Create a de-identified copy of the input data.
         
        .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
      • getDeidentifyBuilder

        public Action.Deidentify.Builder getDeidentifyBuilder()
         Create a de-identified copy of the input data.
         
        .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
      • 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.
      • setJobNotificationEmails

        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](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
         
        .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;
      • setJobNotificationEmails

        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](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
         
        .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;
      • mergeJobNotificationEmails

        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](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
         
        .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8;
      • clearJobNotificationEmails

        public Action.Builder clearJobNotificationEmails()
         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;
      • getJobNotificationEmailsBuilder

        public Action.JobNotificationEmails.Builder getJobNotificationEmailsBuilder()
         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;
      • 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.
      • setPublishToStackdriver

        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;
      • setPublishToStackdriver

        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;
      • mergePublishToStackdriver

        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;
      • clearPublishToStackdriver

        public Action.Builder clearPublishToStackdriver()
         Enable Stackdriver metric dlp.googleapis.com/finding_count.
         
        .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;
      • getPublishToStackdriverBuilder

        public Action.PublishToStackdriver.Builder getPublishToStackdriverBuilder()
         Enable Stackdriver metric dlp.googleapis.com/finding_count.
         
        .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9;
      • setUnknownFields

        public final Action.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
      • mergeUnknownFields

        public final Action.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>