Data Loss Prevention V2 Client - Class Expressions (1.11.0)

Reference documentation and code samples for the Data Loss Prevention V2 Client class Expressions.

An expression, consisting of an operator and conditions.

Generated from protobuf message google.privacy.dlp.v2.RecordCondition.Expressions

Namespace

Google \ Cloud \ Dlp \ V2 \ RecordCondition

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ logical_operator int

The operator to apply to the result of conditions. Default and currently only supported value is AND.

↳ conditions Google\Cloud\Dlp\V2\RecordCondition\Conditions

Conditions to apply to the expression.

getLogicalOperator

The operator to apply to the result of conditions. Default and currently only supported value is AND.

Returns
TypeDescription
int

setLogicalOperator

The operator to apply to the result of conditions. Default and currently only supported value is AND.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getConditions

Conditions to apply to the expression.

Returns
TypeDescription
Google\Cloud\Dlp\V2\RecordCondition\Conditions|null

hasConditions

setConditions

Conditions to apply to the expression.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\RecordCondition\Conditions
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string