Entry
extends Message
in package
Represents an entry.
Generated from protobuf message google.api.expr.v1alpha1.Expr.CreateStruct.Entry
Table of Contents
Properties
- $id : mixed
- Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
- $key_kind : mixed
- $optional_entry : mixed
- Whether the key-value pair is optional.
- $value : mixed
- Required. The value assigned to the key.
Methods
- __construct() : mixed
- Constructor.
- clearValue() : mixed
- getFieldKey() : string
- The field key for a message creator statement.
- getId() : int|string
- Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
- getKeyKind() : string
- getMapKey() : Expr|null
- The key expression for a map creation statement.
- getOptionalEntry() : bool
- Whether the key-value pair is optional.
- getValue() : Expr|null
- Required. The value assigned to the key.
- hasFieldKey() : mixed
- hasMapKey() : mixed
- hasValue() : mixed
- setFieldKey() : $this
- The field key for a message creator statement.
- setId() : $this
- Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
- setMapKey() : $this
- The key expression for a map creation statement.
- setOptionalEntry() : $this
- Whether the key-value pair is optional.
- setValue() : $this
- Required. The value assigned to the key.
Properties
$id
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
protected
mixed
$id
= 0
Generated from protobuf field int64 id = 1 [json_name = "id"];
$key_kind
protected
mixed
$key_kind
$optional_entry
Whether the key-value pair is optional.
protected
mixed
$optional_entry
= false
Generated from protobuf field bool optional_entry = 5 [json_name = "optionalEntry"];
$value
Required. The value assigned to the key.
protected
mixed
$value
= null
If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
Generated from protobuf field .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
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 int|string $id Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node. @type string $field_key The field key for a message creator statement. @type \Google\Api\Expr\V1alpha1\Expr $map_key The key expression for a map creation statement. @type \Google\Api\Expr\V1alpha1\Expr $value Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset. @type bool $optional_entry Whether the key-value pair is optional.}
clearValue()
public
clearValue() : mixed
getFieldKey()
The field key for a message creator statement.
public
getFieldKey() : string
Generated from protobuf field string field_key = 2 [json_name = "fieldKey"];
Return values
stringgetId()
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
public
getId() : int|string
Generated from protobuf field int64 id = 1 [json_name = "id"];
Return values
int|stringgetKeyKind()
public
getKeyKind() : string
Return values
stringgetMapKey()
The key expression for a map creation statement.
public
getMapKey() : Expr|null
Generated from protobuf field .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
Return values
Expr|nullgetOptionalEntry()
Whether the key-value pair is optional.
public
getOptionalEntry() : bool
Generated from protobuf field bool optional_entry = 5 [json_name = "optionalEntry"];
Return values
boolgetValue()
Required. The value assigned to the key.
public
getValue() : Expr|null
If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
Generated from protobuf field .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
Return values
Expr|nullhasFieldKey()
public
hasFieldKey() : mixed
hasMapKey()
public
hasMapKey() : mixed
hasValue()
public
hasValue() : mixed
setFieldKey()
The field key for a message creator statement.
public
setFieldKey(string $var) : $this
Generated from protobuf field string field_key = 2 [json_name = "fieldKey"];
Parameters
- $var : string
Return values
$thissetId()
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
public
setId(int|string $var) : $this
Generated from protobuf field int64 id = 1 [json_name = "id"];
Parameters
- $var : int|string
Return values
$thissetMapKey()
The key expression for a map creation statement.
public
setMapKey(Expr $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
Parameters
- $var : Expr
Return values
$thissetOptionalEntry()
Whether the key-value pair is optional.
public
setOptionalEntry(bool $var) : $this
Generated from protobuf field bool optional_entry = 5 [json_name = "optionalEntry"];
Parameters
- $var : bool
Return values
$thissetValue()
Required. The value assigned to the key.
public
setValue(Expr $var) : $this
If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
Generated from protobuf field .google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
Parameters
- $var : Expr