Google Cloud Model Armor V1 Client - Class ExclusionRule (0.10.0)

Reference documentation and code samples for the Google Cloud Model Armor V1 Client class ExclusionRule.

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

Generated from protobuf message google.cloud.modelarmor.v1.ExclusionRule

Namespace

Google \ Cloud \ ModelArmor \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ dictionary Dictionary

Dictionary which defines the rule.

↳ regex Regex

Regular expression which defines the rule.

↳ matching_scope int

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

getDictionary

Dictionary which defines the rule.

Returns
Type Description
Dictionary|null

hasDictionary

setDictionary

Dictionary which defines the rule.

Parameter
Name Description
var Dictionary
Returns
Type Description
$this

getRegex

Regular expression which defines the rule.

Returns
Type Description
Regex|null

hasRegex

setRegex

Regular expression which defines the rule.

Parameter
Name Description
var Regex
Returns
Type Description
$this

getMatchingScope

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

Returns
Type Description
int

hasMatchingScope

clearMatchingScope

setMatchingScope

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

Parameter
Name Description
var int
Returns
Type Description
$this

getType

Returns
Type Description
string