class Select extends Message

A field selection expression. e.g. request.auth.

Generated from protobuf message google.api.expr.v1alpha1.Expr.Select

Methods

__construct(array $data = NULL)

Constructor.

getOperand()

Required. The target of the selection expression.

$this
setOperand(Expr $var)

Required. The target of the selection expression.

string
getField()

Required. The name of the field to select.

$this
setField(string $var)

Required. The name of the field to select.

bool
getTestOnly()

Whether the select is to be interpreted as a field presence test.

$this
setTestOnly(bool $var)

Whether the select is to be interpreted as a field presence test.

Details

at line 61
__construct(array $data = NULL)

Constructor.

Parameters

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

@type \Google\Api\Expr\V1alpha1\Expr $operand
      Required. The target of the selection expression.
      For example, in the select expression `request.auth`, the `request`
      portion of the expression is the `operand`.
@type string $field
      Required. The name of the field to select.
      For example, in the select expression `request.auth`, the `auth` portion
      of the expression would be the `field`.
@type bool $test_only
      Whether the select is to be interpreted as a field presence test.
      This results from the macro `has(request.auth)`.

}

at line 74
Expr getOperand()

Required. The target of the selection expression.

For example, in the select expression request.auth, the request portion of the expression is the operand.

Generated from protobuf field .google.api.expr.v1alpha1.Expr operand = 1;

Return Value

Expr

at line 88
$this setOperand(Expr $var)

Required. The target of the selection expression.

For example, in the select expression request.auth, the request portion of the expression is the operand.

Generated from protobuf field .google.api.expr.v1alpha1.Expr operand = 1;

Parameters

Expr $var

Return Value

$this

at line 104
string getField()

Required. The name of the field to select.

For example, in the select expression request.auth, the auth portion of the expression would be the field.

Generated from protobuf field string field = 2;

Return Value

string

at line 118
$this setField(string $var)

Required. The name of the field to select.

For example, in the select expression request.auth, the auth portion of the expression would be the field.

Generated from protobuf field string field = 2;

Parameters

string $var

Return Value

$this

at line 133
bool getTestOnly()

Whether the select is to be interpreted as a field presence test.

This results from the macro has(request.auth).

Generated from protobuf field bool test_only = 3;

Return Value

bool

at line 146
$this setTestOnly(bool $var)

Whether the select is to be interpreted as a field presence test.

This results from the macro has(request.auth).

Generated from protobuf field bool test_only = 3;

Parameters

bool $var

Return Value

$this