Model Armor v1 API - Class ExclusionRule (1.2.0)

public sealed class ExclusionRule : IMessage<ExclusionRule>, IEquatable<ExclusionRule>, IDeepCloneable<ExclusionRule>, IBufferMessage, IMessage

Reference documentation and code samples for the Model Armor v1 API class ExclusionRule.

The rule that specifies conditions when filter detections are excluded from results.

Inheritance

object > ExclusionRule

Namespace

Google.Cloud.ModelArmor.V1

Assembly

Google.Cloud.ModelArmor.V1.dll

Constructors

ExclusionRule()

public ExclusionRule()

ExclusionRule(ExclusionRule)

public ExclusionRule(ExclusionRule other)
Parameter
Name Description
other ExclusionRule

Properties

Dictionary

public Dictionary Dictionary { get; set; }

Dictionary which defines the rule.

Property Value
Type Description
Dictionary

HasMatchingScope

public bool HasMatchingScope { get; }

Gets whether the "matching_scope" field is set

Property Value
Type Description
bool

MatchingScope

public MatchingScope MatchingScope { get; set; }

Optional. Specifies the scope of the input that should be matched against the exclusion rule. If unspecified, defaults to MATCHING_SCOPE_PARTIAL_MATCH.

Property Value
Type Description
MatchingScope

Regex

public Regex Regex { get; set; }

Regular expression which defines the rule.

Property Value
Type Description
Regex

TypeCase

public ExclusionRule.TypeOneofCase TypeCase { get; }
Property Value
Type Description
ExclusionRuleTypeOneofCase