Condition

Represents a predicate.

JSON representation
{
  "type": enum (ConditionType),
  "parameter": [
    {
      object (Parameter)
    }
  ]
}
Fields
type

enum (ConditionType)

The type of operator for this condition.

parameter[]

object (Parameter)

A list of named parameters (key/value), depending on the condition's type. Notes:

  • For binary operators, include parameters named

    arg0

    and

    arg1

    for specifying the left and right operands, respectively.

  • At this time, the left operand (

    arg0

    ) must be a reference to a variable.

  • For case-insensitive Regex matching, include a boolean parameter named

    ignore_case

    that is set to

    true

    . If not specified or set to any other value, the matching will be case sensitive.

  • To negate an operator, include a boolean parameter named

    negate

    boolean parameter that is set to

    true

    .

ConditionType

Enums
equals
contains
startsWith
endsWith
matchRegex
greater
greaterOrEquals
less
lessOrEquals
cssSelector
urlMatches