class Expr extends Message

Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"

Generated from protobuf message google.type.Expr

Methods

__construct(array $data = NULL)

Constructor.

string
getExpression()

Textual representation of an expression in Common Expression Language syntax.

$this
setExpression(string $var)

Textual representation of an expression in Common Expression Language syntax.

string
getTitle()

An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

$this
setTitle(string $var)

An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

string
getDescription()

An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

$this
setDescription(string $var)

An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

string
getLocation()

An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

$this
setLocation(string $var)

An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Details

at line 76
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $expression
      Textual representation of an expression in
      Common Expression Language syntax.
      The application context of the containing message determines which
      well-known feature set of CEL is supported.
@type string $title
      An optional title for the expression, i.e. a short string describing
      its purpose. This can be used e.g. in UIs which allow to enter the
      expression.
@type string $description
      An optional description of the expression. This is a longer text which
      describes the expression, e.g. when hovered over it in a UI.
@type string $location
      An optional string indicating the location of the expression for error
      reporting, e.g. a file name and a position in the file.

}

at line 90
string getExpression()

Textual representation of an expression in Common Expression Language syntax.

The application context of the containing message determines which well-known feature set of CEL is supported.

Generated from protobuf field string expression = 1;

Return Value

string

at line 105
$this setExpression(string $var)

Textual representation of an expression in Common Expression Language syntax.

The application context of the containing message determines which well-known feature set of CEL is supported.

Generated from protobuf field string expression = 1;

Parameters

string $var

Return Value

$this

at line 121
string getTitle()

An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

Generated from protobuf field string title = 2;

Return Value

string

at line 135
$this setTitle(string $var)

An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

Generated from protobuf field string title = 2;

Parameters

string $var

Return Value

$this

at line 150
string getDescription()

An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Generated from protobuf field string description = 3;

Return Value

string

at line 163
$this setDescription(string $var)

An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Generated from protobuf field string description = 3;

Parameters

string $var

Return Value

$this

at line 178
string getLocation()

An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Generated from protobuf field string location = 4;

Return Value

string

at line 191
$this setLocation(string $var)

An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Generated from protobuf field string location = 4;

Parameters

string $var

Return Value

$this