Class AdjustmentRule.Builder

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

public static final class AdjustmentRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdjustmentRule.Builder> implements AdjustmentRuleOrBuilder
 Rule that specifies conditions when a certain infoType's finding details
 should be adjusted.
 
Protobuf type google.privacy.dlp.v2.AdjustmentRule
  • 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<AdjustmentRule.Builder>
    • clear

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

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

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

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

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

      public AdjustmentRule.Builder mergeFrom(AdjustmentRule other)
    • isInitialized

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

      public AdjustmentRule.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<AdjustmentRule.Builder>
      Throws:
      IOException
    • getConditionsCase

      public AdjustmentRule.ConditionsCase getConditionsCase()
      Specified by:
      getConditionsCase in interface AdjustmentRuleOrBuilder
    • clearConditions

      public AdjustmentRule.Builder clearConditions()
    • hasAdjustByMatchingInfoTypes

      public boolean hasAdjustByMatchingInfoTypes()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
      Specified by:
      hasAdjustByMatchingInfoTypes in interface AdjustmentRuleOrBuilder
      Returns:
      Whether the adjustByMatchingInfoTypes field is set.
    • getAdjustByMatchingInfoTypes

      public AdjustByMatchingInfoTypes getAdjustByMatchingInfoTypes()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
      Specified by:
      getAdjustByMatchingInfoTypes in interface AdjustmentRuleOrBuilder
      Returns:
      The adjustByMatchingInfoTypes.
    • setAdjustByMatchingInfoTypes

      public AdjustmentRule.Builder setAdjustByMatchingInfoTypes(AdjustByMatchingInfoTypes value)
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
    • setAdjustByMatchingInfoTypes

      public AdjustmentRule.Builder setAdjustByMatchingInfoTypes(AdjustByMatchingInfoTypes.Builder builderForValue)
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
    • mergeAdjustByMatchingInfoTypes

      public AdjustmentRule.Builder mergeAdjustByMatchingInfoTypes(AdjustByMatchingInfoTypes value)
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
    • clearAdjustByMatchingInfoTypes

      public AdjustmentRule.Builder clearAdjustByMatchingInfoTypes()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
    • getAdjustByMatchingInfoTypesBuilder

      public AdjustByMatchingInfoTypes.Builder getAdjustByMatchingInfoTypesBuilder()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
    • getAdjustByMatchingInfoTypesOrBuilder

      public AdjustByMatchingInfoTypesOrBuilder getAdjustByMatchingInfoTypesOrBuilder()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;
      Specified by:
      getAdjustByMatchingInfoTypesOrBuilder in interface AdjustmentRuleOrBuilder
    • hasAdjustByImageFindings

      public boolean hasAdjustByImageFindings()
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
      Specified by:
      hasAdjustByImageFindings in interface AdjustmentRuleOrBuilder
      Returns:
      Whether the adjustByImageFindings field is set.
    • getAdjustByImageFindings

      public AdjustByImageFindings getAdjustByImageFindings()
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
      Specified by:
      getAdjustByImageFindings in interface AdjustmentRuleOrBuilder
      Returns:
      The adjustByImageFindings.
    • setAdjustByImageFindings

      public AdjustmentRule.Builder setAdjustByImageFindings(AdjustByImageFindings value)
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
    • setAdjustByImageFindings

      public AdjustmentRule.Builder setAdjustByImageFindings(AdjustByImageFindings.Builder builderForValue)
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
    • mergeAdjustByImageFindings

      public AdjustmentRule.Builder mergeAdjustByImageFindings(AdjustByImageFindings value)
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
    • clearAdjustByImageFindings

      public AdjustmentRule.Builder clearAdjustByImageFindings()
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
    • getAdjustByImageFindingsBuilder

      public AdjustByImageFindings.Builder getAdjustByImageFindingsBuilder()
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
    • getAdjustByImageFindingsOrBuilder

      public AdjustByImageFindingsOrBuilder getAdjustByImageFindingsOrBuilder()
       AdjustmentRule condition for image findings.
       
      .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;
      Specified by:
      getAdjustByImageFindingsOrBuilder in interface AdjustmentRuleOrBuilder
    • hasLikelihoodAdjustment

      public boolean hasLikelihoodAdjustment()
       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
      Specified by:
      hasLikelihoodAdjustment in interface AdjustmentRuleOrBuilder
      Returns:
      Whether the likelihoodAdjustment field is set.
    • getLikelihoodAdjustment

      public CustomInfoType.DetectionRule.LikelihoodAdjustment getLikelihoodAdjustment()
       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
      Specified by:
      getLikelihoodAdjustment in interface AdjustmentRuleOrBuilder
      Returns:
      The likelihoodAdjustment.
    • setLikelihoodAdjustment

       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
    • setLikelihoodAdjustment

       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
    • mergeLikelihoodAdjustment

       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
    • clearLikelihoodAdjustment

      public AdjustmentRule.Builder clearLikelihoodAdjustment()
       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
    • getLikelihoodAdjustmentBuilder

      public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder getLikelihoodAdjustmentBuilder()
       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
    • getLikelihoodAdjustmentOrBuilder

      public CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder getLikelihoodAdjustmentOrBuilder()
       Likelihood adjustment to apply to the infoType.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;
      Specified by:
      getLikelihoodAdjustmentOrBuilder in interface AdjustmentRuleOrBuilder