CreateStruct
extends Message
in package
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.v1alpha1.Expr.CreateStruct
Table of Contents
Properties
- $message_name : mixed
- The type name of the message to be created, empty when creating map literals.
- $entries : mixed
- The entries in the creation expression.
Methods
- __construct() : mixed
- Constructor.
- getEntries() : RepeatedField
- The entries in the creation expression.
- getMessageName() : string
- The type name of the message to be created, empty when creating map literals.
- setEntries() : $this
- The entries in the creation expression.
- setMessageName() : $this
- The type name of the message to be created, empty when creating map literals.
Properties
$message_name
The type name of the message to be created, empty when creating map literals.
protected
mixed
$message_name
= ''
Generated from protobuf field string message_name = 1 [json_name = "messageName"];
$entries
The entries in the creation expression.
private
mixed
$entries
Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
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 string $message_name The type name of the message to be created, empty when creating map literals. @type array<\Google\Api\Expr\V1alpha1\Expr\CreateStruct\Entry>|\Google\Protobuf\Internal\RepeatedField $entries The entries in the creation expression.}
getEntries()
The entries in the creation expression.
public
getEntries() : RepeatedField
Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
Return values
RepeatedFieldgetMessageName()
The type name of the message to be created, empty when creating map literals.
public
getMessageName() : string
Generated from protobuf field string message_name = 1 [json_name = "messageName"];
Return values
stringsetEntries()
The entries in the creation expression.
public
setEntries(array<string|int, Entry>|RepeatedField $var) : $this
Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
Parameters
- $var : array<string|int, Entry>|RepeatedField
Return values
$thissetMessageName()
The type name of the message to be created, empty when creating map literals.
public
setMessageName(string $var) : $this
Generated from protobuf field string message_name = 1 [json_name = "messageName"];
Parameters
- $var : string