CreateList
extends Message
in package
A list creation expression.
Lists may either be homogenous, e.g. [1, 2, 3], or heterogeneous, e.g.
dyn([1, 'hello', 2.0])
Generated from protobuf message google.api.expr.v1alpha1.Expr.CreateList
Table of Contents
Properties
- $elements : mixed
- The elements part of the list.
- $optional_indices : mixed
- The indices within the elements list which are marked as optional elements.
Methods
- __construct() : mixed
- Constructor.
- getElements() : RepeatedField
- The elements part of the list.
- getOptionalIndices() : RepeatedField
- The indices within the elements list which are marked as optional elements.
- setElements() : $this
- The elements part of the list.
- setOptionalIndices() : $this
- The indices within the elements list which are marked as optional elements.
Properties
$elements
The elements part of the list.
private
mixed
$elements
Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
$optional_indices
The indices within the elements list which are marked as optional elements.
private
mixed
$optional_indices
When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
Generated from protobuf field repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type array<\Google\Api\Expr\V1alpha1\Expr>|\Google\Protobuf\Internal\RepeatedField $elements The elements part of the list. @type array<int>|\Google\Protobuf\Internal\RepeatedField $optional_indices The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.}
getElements()
The elements part of the list.
public
getElements() : RepeatedField
Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
Return values
RepeatedFieldgetOptionalIndices()
The indices within the elements list which are marked as optional elements.
public
getOptionalIndices() : RepeatedField
When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
Generated from protobuf field repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
Return values
RepeatedFieldsetElements()
The elements part of the list.
public
setElements(array<string|int, Expr>|RepeatedField $var) : $this
Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
Parameters
- $var : array<string|int, Expr>|RepeatedField
Return values
$thissetOptionalIndices()
The indices within the elements list which are marked as optional elements.
public
setOptionalIndices(array<string|int, int>|RepeatedField $var) : $this
When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
Generated from protobuf field repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
Parameters
- $var : array<string|int, int>|RepeatedField