Entry
extends Message
in package
Represents an entry.
Generated from protobuf message google.api.expr.v1beta1.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
- $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
- 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.
- 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.
- 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 int32 id = 1 [json_name = "id"];
$key_kind
protected
mixed
$key_kind
$value
Required. The value assigned to the key.
protected
mixed
$value
= null
Generated from protobuf field .google.api.expr.v1beta1.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 $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\V1beta1\Expr $map_key The key expression for a map creation statement. @type \Google\Api\Expr\V1beta1\Expr $value Required. The value assigned to the key.}
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
Generated from protobuf field int32 id = 1 [json_name = "id"];
Return values
intgetKeyKind()
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.v1beta1.Expr map_key = 3 [json_name = "mapKey"];
Return values
Expr|nullgetValue()
Required. The value assigned to the key.
public
getValue() : Expr|null
Generated from protobuf field .google.api.expr.v1beta1.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 $var) : $this
Generated from protobuf field int32 id = 1 [json_name = "id"];
Parameters
- $var : int
Return values
$thissetMapKey()
The key expression for a map creation statement.
public
setMapKey(Expr $var) : $this
Generated from protobuf field .google.api.expr.v1beta1.Expr map_key = 3 [json_name = "mapKey"];
Parameters
- $var : Expr
Return values
$thissetValue()
Required. The value assigned to the key.
public
setValue(Expr $var) : $this
Generated from protobuf field .google.api.expr.v1beta1.Expr value = 4 [json_name = "value"];
Parameters
- $var : Expr