public sealed class CustomInfoType.Types.DetectionRule : IMessage<CustomInfoType.Types.DetectionRule>, IEquatable<CustomInfoType.Types.DetectionRule>, IDeepCloneable<CustomInfoType.Types.DetectionRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class CustomInfoType.Types.DetectionRule.
Deprecated; use InspectionRuleSet instead. Rule for modifying a
CustomInfoType to alter behavior under certain circumstances, depending
on the specific details of the rule. Not supported for the surrogate_type
custom infoType.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-24 UTC."],[[["The latest version available for `CustomInfoType.Types.DetectionRule` is 4.16.0, part of the Google Cloud Data Loss Prevention v2 API."],["This class, `CustomInfoType.Types.DetectionRule`, is used to define rules that modify the behavior of a `CustomInfoType`, and is now deprecated in favor of `InspectionRuleSet`."],["It implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing it to interact with various systems and perform operations like deep cloning."],["The class offers a constructor, `DetectionRule()`, to create an instance, as well as another `DetectionRule(CustomInfoType.Types.DetectionRule other)` to copy an instance, and has properties like `HotwordRule` and `TypeCase` for handling specific rule types."],["The `DetectionRule` supports hotword-based detection rules, as shown by its `HotwordRule` property."]]],[]]