Class InspectionRule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.InspectionRule
All Implemented Interfaces:
InspectionRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class InspectionRule extends com.google.protobuf.GeneratedMessage implements InspectionRuleOrBuilder
 A single inspection rule to be applied to infoTypes, specified in
 `InspectionRuleSet`.
 
Protobuf type google.privacy.dlp.v2.InspectionRule
See Also:
  • Field Details

    • HOTWORD_RULE_FIELD_NUMBER

      public static final int HOTWORD_RULE_FIELD_NUMBER
      See Also:
    • EXCLUSION_RULE_FIELD_NUMBER

      public static final int EXCLUSION_RULE_FIELD_NUMBER
      See Also:
    • ADJUSTMENT_RULE_FIELD_NUMBER

      public static final int ADJUSTMENT_RULE_FIELD_NUMBER
      See Also:
  • 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
    • getTypeCase

      public InspectionRule.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface InspectionRuleOrBuilder
    • hasHotwordRule

      public boolean hasHotwordRule()
       Hotword-based detection rule.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;
      Specified by:
      hasHotwordRule in interface InspectionRuleOrBuilder
      Returns:
      Whether the hotwordRule field is set.
    • getHotwordRule

       Hotword-based detection rule.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;
      Specified by:
      getHotwordRule in interface InspectionRuleOrBuilder
      Returns:
      The hotwordRule.
    • getHotwordRuleOrBuilder

      public CustomInfoType.DetectionRule.HotwordRuleOrBuilder getHotwordRuleOrBuilder()
       Hotword-based detection rule.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;
      Specified by:
      getHotwordRuleOrBuilder in interface InspectionRuleOrBuilder
    • hasExclusionRule

      public boolean hasExclusionRule()
       Exclusion rule.
       
      .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;
      Specified by:
      hasExclusionRule in interface InspectionRuleOrBuilder
      Returns:
      Whether the exclusionRule field is set.
    • getExclusionRule

      public ExclusionRule getExclusionRule()
       Exclusion rule.
       
      .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;
      Specified by:
      getExclusionRule in interface InspectionRuleOrBuilder
      Returns:
      The exclusionRule.
    • getExclusionRuleOrBuilder

      public ExclusionRuleOrBuilder getExclusionRuleOrBuilder()
       Exclusion rule.
       
      .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;
      Specified by:
      getExclusionRuleOrBuilder in interface InspectionRuleOrBuilder
    • hasAdjustmentRule

      public boolean hasAdjustmentRule()
       Adjustment rule.
       
      .google.privacy.dlp.v2.AdjustmentRule adjustment_rule = 3;
      Specified by:
      hasAdjustmentRule in interface InspectionRuleOrBuilder
      Returns:
      Whether the adjustmentRule field is set.
    • getAdjustmentRule

      public AdjustmentRule getAdjustmentRule()
       Adjustment rule.
       
      .google.privacy.dlp.v2.AdjustmentRule adjustment_rule = 3;
      Specified by:
      getAdjustmentRule in interface InspectionRuleOrBuilder
      Returns:
      The adjustmentRule.
    • getAdjustmentRuleOrBuilder

      public AdjustmentRuleOrBuilder getAdjustmentRuleOrBuilder()
       Adjustment rule.
       
      .google.privacy.dlp.v2.AdjustmentRule adjustment_rule = 3;
      Specified by:
      getAdjustmentRuleOrBuilder in interface InspectionRuleOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 InspectionRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static InspectionRule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InspectionRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InspectionRule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InspectionRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InspectionRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InspectionRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public InspectionRule.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static InspectionRule.Builder newBuilder()
    • newBuilder

      public static InspectionRule.Builder newBuilder(InspectionRule prototype)
    • toBuilder

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

      protected InspectionRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static InspectionRule getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<InspectionRule> parser()
    • getParserForType

      public com.google.protobuf.Parser<InspectionRule> 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.GeneratedMessage
    • getDefaultInstanceForType

      public InspectionRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder