CreateStruct
class CreateStruct extends Message
A map or message creation expression.
Maps are constructed as {'key_name': 'value'}
. Message construction is
similar, but prefixed with a type name and composed of field ids:
types.MyType{field_id: 'value'}
.
Generated from protobuf message google.api.expr.v1beta1.Expr.CreateStruct
Methods
Constructor.
The type name of the message to be created, empty when creating map literals.
The type name of the message to be created, empty when creating map literals.
The entries in the creation expression.
Details
at line 48
__construct(array $data = NULL)
Constructor.
at line 60
string
getType()
The type name of the message to be created, empty when creating map literals.
Generated from protobuf field string type = 1;
at line 73
$this
setType(string $var)
The type name of the message to be created, empty when creating map literals.
Generated from protobuf field string type = 1;
at line 87
RepeatedField
getEntries()
The entries in the creation expression.
Generated from protobuf field repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2;
at line 99
$this
setEntries(Entry[]|RepeatedField $var)
The entries in the creation expression.
Generated from protobuf field repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2;