Class CloudDlpInspection.Builder

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

    public static final class CloudDlpInspection.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CloudDlpInspection.Builder>
    implements CloudDlpInspectionOrBuilder
     Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection
     job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced
     the finding.
     
    Protobuf type google.cloud.securitycenter.v1.CloudDlpInspection
    • 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<CloudDlpInspection.Builder>
      • clear

        public CloudDlpInspection.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<CloudDlpInspection.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<CloudDlpInspection.Builder>
      • getDefaultInstanceForType

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

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

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

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
      • setField

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
      • clearField

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
      • clearOneof

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
      • setRepeatedField

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
      • addRepeatedField

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
      • mergeFrom

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
      • isInitialized

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

        public CloudDlpInspection.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<CloudDlpInspection.Builder>
        Throws:
        IOException
      • getInspectJob

        public String getInspectJob()
         Name of the inspection job, for example,
         `projects/123/locations/europe/dlpJobs/i-8383929`.
         
        string inspect_job = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getInspectJob in interface CloudDlpInspectionOrBuilder
        Returns:
        The inspectJob.
      • getInspectJobBytes

        public com.google.protobuf.ByteString getInspectJobBytes()
         Name of the inspection job, for example,
         `projects/123/locations/europe/dlpJobs/i-8383929`.
         
        string inspect_job = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getInspectJobBytes in interface CloudDlpInspectionOrBuilder
        Returns:
        The bytes for inspectJob.
      • setInspectJob

        public CloudDlpInspection.Builder setInspectJob​(String value)
         Name of the inspection job, for example,
         `projects/123/locations/europe/dlpJobs/i-8383929`.
         
        string inspect_job = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The inspectJob to set.
        Returns:
        This builder for chaining.
      • clearInspectJob

        public CloudDlpInspection.Builder clearInspectJob()
         Name of the inspection job, for example,
         `projects/123/locations/europe/dlpJobs/i-8383929`.
         
        string inspect_job = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setInspectJobBytes

        public CloudDlpInspection.Builder setInspectJobBytes​(com.google.protobuf.ByteString value)
         Name of the inspection job, for example,
         `projects/123/locations/europe/dlpJobs/i-8383929`.
         
        string inspect_job = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for inspectJob to set.
        Returns:
        This builder for chaining.
      • getInfoType

        public String getInfoType()
         The type of information (or
         *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
         for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
         
        string info_type = 2;
        Specified by:
        getInfoType in interface CloudDlpInspectionOrBuilder
        Returns:
        The infoType.
      • getInfoTypeBytes

        public com.google.protobuf.ByteString getInfoTypeBytes()
         The type of information (or
         *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
         for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
         
        string info_type = 2;
        Specified by:
        getInfoTypeBytes in interface CloudDlpInspectionOrBuilder
        Returns:
        The bytes for infoType.
      • setInfoType

        public CloudDlpInspection.Builder setInfoType​(String value)
         The type of information (or
         *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
         for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
         
        string info_type = 2;
        Parameters:
        value - The infoType to set.
        Returns:
        This builder for chaining.
      • clearInfoType

        public CloudDlpInspection.Builder clearInfoType()
         The type of information (or
         *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
         for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
         
        string info_type = 2;
        Returns:
        This builder for chaining.
      • setInfoTypeBytes

        public CloudDlpInspection.Builder setInfoTypeBytes​(com.google.protobuf.ByteString value)
         The type of information (or
         *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
         for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
         
        string info_type = 2;
        Parameters:
        value - The bytes for infoType to set.
        Returns:
        This builder for chaining.
      • getInfoTypeCount

        public long getInfoTypeCount()
         The number of times Cloud DLP found this infoType within this job
         and resource.
         
        int64 info_type_count = 3;
        Specified by:
        getInfoTypeCount in interface CloudDlpInspectionOrBuilder
        Returns:
        The infoTypeCount.
      • setInfoTypeCount

        public CloudDlpInspection.Builder setInfoTypeCount​(long value)
         The number of times Cloud DLP found this infoType within this job
         and resource.
         
        int64 info_type_count = 3;
        Parameters:
        value - The infoTypeCount to set.
        Returns:
        This builder for chaining.
      • clearInfoTypeCount

        public CloudDlpInspection.Builder clearInfoTypeCount()
         The number of times Cloud DLP found this infoType within this job
         and resource.
         
        int64 info_type_count = 3;
        Returns:
        This builder for chaining.
      • getFullScan

        public boolean getFullScan()
         Whether Cloud DLP scanned the complete resource or a sampled subset.
         
        bool full_scan = 4;
        Specified by:
        getFullScan in interface CloudDlpInspectionOrBuilder
        Returns:
        The fullScan.
      • setFullScan

        public CloudDlpInspection.Builder setFullScan​(boolean value)
         Whether Cloud DLP scanned the complete resource or a sampled subset.
         
        bool full_scan = 4;
        Parameters:
        value - The fullScan to set.
        Returns:
        This builder for chaining.
      • clearFullScan

        public CloudDlpInspection.Builder clearFullScan()
         Whether Cloud DLP scanned the complete resource or a sampled subset.
         
        bool full_scan = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CloudDlpInspection.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<CloudDlpInspection.Builder>
      • mergeUnknownFields

        public final CloudDlpInspection.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<CloudDlpInspection.Builder>