Class InspectConfig.FindingLimits

  • All Implemented Interfaces:
    InspectConfig.FindingLimitsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    InspectConfig

    public static final class InspectConfig.FindingLimits
    extends com.google.protobuf.GeneratedMessageV3
    implements InspectConfig.FindingLimitsOrBuilder
     Configuration to control the number of findings returned for inspection.
     This is not used for de-identification or data profiling.
    
     When redacting sensitive data from images, finding limits don't apply. They
     can cause unexpected or inconsistent results, where only some data is
     redacted. Don't include finding limits in
     [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
     requests. Otherwise, Cloud DLP returns an error.
     
    Protobuf type google.privacy.dlp.v2.InspectConfig.FindingLimits
    See Also:
    Serialized Form
    • Field Detail

      • MAX_FINDINGS_PER_ITEM_FIELD_NUMBER

        public static final int MAX_FINDINGS_PER_ITEM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_FINDINGS_PER_REQUEST_FIELD_NUMBER

        public static final int MAX_FINDINGS_PER_REQUEST_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_FINDINGS_PER_INFO_TYPE_FIELD_NUMBER

        public static final int MAX_FINDINGS_PER_INFO_TYPE_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
      • getMaxFindingsPerItem

        public int getMaxFindingsPerItem()
         Max number of findings that will be returned for each item scanned.
         When set within `InspectJobConfig`,
         the maximum returned is 2000 regardless if this is set higher.
         When set within `InspectContentRequest`, this field is ignored.
         
        int32 max_findings_per_item = 1;
        Specified by:
        getMaxFindingsPerItem in interface InspectConfig.FindingLimitsOrBuilder
        Returns:
        The maxFindingsPerItem.
      • getMaxFindingsPerRequest

        public int getMaxFindingsPerRequest()
         Max number of findings that will be returned per request/job.
         When set within `InspectContentRequest`, the maximum returned is 2000
         regardless if this is set higher.
         
        int32 max_findings_per_request = 2;
        Specified by:
        getMaxFindingsPerRequest in interface InspectConfig.FindingLimitsOrBuilder
        Returns:
        The maxFindingsPerRequest.
      • getMaxFindingsPerInfoTypeCount

        public int getMaxFindingsPerInfoTypeCount()
         Configuration of findings limit given for specified infoTypes.
         
        repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
        Specified by:
        getMaxFindingsPerInfoTypeCount in interface InspectConfig.FindingLimitsOrBuilder
      • 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 InspectConfig.FindingLimits parseFrom​(ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected InspectConfig.FindingLimits.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<InspectConfig.FindingLimits> 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 InspectConfig.FindingLimits getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder