Class InspectConfig.FindingLimits.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InspectConfig.FindingLimits.Builder>
com.google.privacy.dlp.v2.InspectConfig.FindingLimits.Builder
All Implemented Interfaces:
InspectConfig.FindingLimitsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InspectConfig.FindingLimits

public static final class InspectConfig.FindingLimits.Builder extends com.google.protobuf.GeneratedMessage.Builder<InspectConfig.FindingLimits.Builder> 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
  • 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.Builder<InspectConfig.FindingLimits.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.GeneratedMessage.Builder<InspectConfig.FindingLimits.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.GeneratedMessage.Builder<InspectConfig.FindingLimits.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public InspectConfig.FindingLimits.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<InspectConfig.FindingLimits.Builder>
      Throws:
      IOException
    • getMaxFindingsPerItem

      public int getMaxFindingsPerItem()
       Max number of findings that are returned for each item scanned.
      
       When set within an
       [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest],
       this field is ignored.
      
       This value isn't a hard limit. If the number of findings for an item
       reaches this limit, the inspection of that item ends gradually, not
       abruptly. Therefore, the actual number of findings that Cloud DLP returns
       for the item can be multiple times higher than this value.
       
      int32 max_findings_per_item = 1;
      Specified by:
      getMaxFindingsPerItem in interface InspectConfig.FindingLimitsOrBuilder
      Returns:
      The maxFindingsPerItem.
    • setMaxFindingsPerItem

      public InspectConfig.FindingLimits.Builder setMaxFindingsPerItem(int value)
       Max number of findings that are returned for each item scanned.
      
       When set within an
       [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest],
       this field is ignored.
      
       This value isn't a hard limit. If the number of findings for an item
       reaches this limit, the inspection of that item ends gradually, not
       abruptly. Therefore, the actual number of findings that Cloud DLP returns
       for the item can be multiple times higher than this value.
       
      int32 max_findings_per_item = 1;
      Parameters:
      value - The maxFindingsPerItem to set.
      Returns:
      This builder for chaining.
    • clearMaxFindingsPerItem

      public InspectConfig.FindingLimits.Builder clearMaxFindingsPerItem()
       Max number of findings that are returned for each item scanned.
      
       When set within an
       [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest],
       this field is ignored.
      
       This value isn't a hard limit. If the number of findings for an item
       reaches this limit, the inspection of that item ends gradually, not
       abruptly. Therefore, the actual number of findings that Cloud DLP returns
       for the item can be multiple times higher than this value.
       
      int32 max_findings_per_item = 1;
      Returns:
      This builder for chaining.
    • getMaxFindingsPerRequest

      public int getMaxFindingsPerRequest()
       Max number of findings that are returned per request or job.
      
       If you set this field in an
       [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the
       resulting maximum value is the value that you set or 3,000, whichever is
       lower.
      
       This value isn't a hard limit. If an inspection reaches this limit, the
       inspection ends gradually, not abruptly. Therefore, the actual number of
       findings that Cloud DLP returns can be multiple times higher than this
       value.
       
      int32 max_findings_per_request = 2;
      Specified by:
      getMaxFindingsPerRequest in interface InspectConfig.FindingLimitsOrBuilder
      Returns:
      The maxFindingsPerRequest.
    • setMaxFindingsPerRequest

      public InspectConfig.FindingLimits.Builder setMaxFindingsPerRequest(int value)
       Max number of findings that are returned per request or job.
      
       If you set this field in an
       [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the
       resulting maximum value is the value that you set or 3,000, whichever is
       lower.
      
       This value isn't a hard limit. If an inspection reaches this limit, the
       inspection ends gradually, not abruptly. Therefore, the actual number of
       findings that Cloud DLP returns can be multiple times higher than this
       value.
       
      int32 max_findings_per_request = 2;
      Parameters:
      value - The maxFindingsPerRequest to set.
      Returns:
      This builder for chaining.
    • clearMaxFindingsPerRequest

      public InspectConfig.FindingLimits.Builder clearMaxFindingsPerRequest()
       Max number of findings that are returned per request or job.
      
       If you set this field in an
       [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the
       resulting maximum value is the value that you set or 3,000, whichever is
       lower.
      
       This value isn't a hard limit. If an inspection reaches this limit, the
       inspection ends gradually, not abruptly. Therefore, the actual number of
       findings that Cloud DLP returns can be multiple times higher than this
       value.
       
      int32 max_findings_per_request = 2;
      Returns:
      This builder for chaining.
    • getMaxFindingsPerInfoTypeList

      public List<InspectConfig.FindingLimits.InfoTypeLimit> getMaxFindingsPerInfoTypeList()
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
      Specified by:
      getMaxFindingsPerInfoTypeList in interface InspectConfig.FindingLimitsOrBuilder
    • 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
    • getMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.InfoTypeLimit getMaxFindingsPerInfoType(int index)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
      Specified by:
      getMaxFindingsPerInfoType in interface InspectConfig.FindingLimitsOrBuilder
    • setMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.Builder setMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit value)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • setMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.Builder setMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • addMaxFindingsPerInfoType

       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • addMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.Builder addMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit value)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • addMaxFindingsPerInfoType

       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • addMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.Builder addMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • addAllMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.Builder addAllMaxFindingsPerInfoType(Iterable<? extends InspectConfig.FindingLimits.InfoTypeLimit> values)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • clearMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.Builder clearMaxFindingsPerInfoType()
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • removeMaxFindingsPerInfoType

      public InspectConfig.FindingLimits.Builder removeMaxFindingsPerInfoType(int index)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • getMaxFindingsPerInfoTypeBuilder

      public InspectConfig.FindingLimits.InfoTypeLimit.Builder getMaxFindingsPerInfoTypeBuilder(int index)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • getMaxFindingsPerInfoTypeOrBuilder

      public InspectConfig.FindingLimits.InfoTypeLimitOrBuilder getMaxFindingsPerInfoTypeOrBuilder(int index)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
      Specified by:
      getMaxFindingsPerInfoTypeOrBuilder in interface InspectConfig.FindingLimitsOrBuilder
    • getMaxFindingsPerInfoTypeOrBuilderList

      public List<? extends InspectConfig.FindingLimits.InfoTypeLimitOrBuilder> getMaxFindingsPerInfoTypeOrBuilderList()
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
      Specified by:
      getMaxFindingsPerInfoTypeOrBuilderList in interface InspectConfig.FindingLimitsOrBuilder
    • addMaxFindingsPerInfoTypeBuilder

      public InspectConfig.FindingLimits.InfoTypeLimit.Builder addMaxFindingsPerInfoTypeBuilder()
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • addMaxFindingsPerInfoTypeBuilder

      public InspectConfig.FindingLimits.InfoTypeLimit.Builder addMaxFindingsPerInfoTypeBuilder(int index)
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
    • getMaxFindingsPerInfoTypeBuilderList

      public List<InspectConfig.FindingLimits.InfoTypeLimit.Builder> getMaxFindingsPerInfoTypeBuilderList()
       Configuration of findings limit given for specified infoTypes.
       
      repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;