Documentation

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.v1beta1.Expr.CreateStruct

Table of Contents

Properties

$type  : 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.
getType()  : string
The type name of the message to be created, empty when creating map literals.
setEntries()  : $this
The entries in the creation expression.
setType()  : $this
The type name of the message to be created, empty when creating map literals.

Properties

$type

The type name of the message to be created, empty when creating map literals.

protected mixed $type = ''

Generated from protobuf field string type = 1 [json_name = "type"];

$entries

The entries in the creation expression.

private mixed $entries

Generated from protobuf field repeated .google.api.expr.v1beta1.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 $type
      The type name of the message to be created, empty when creating map
      literals.
@type array<\Google\Api\Expr\V1beta1\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.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];

Return values
RepeatedField

getType()

The type name of the message to be created, empty when creating map literals.

public getType() : string

Generated from protobuf field string type = 1 [json_name = "type"];

Return values
string

setEntries()

The entries in the creation expression.

public setEntries(array<string|int, Entry>|RepeatedField $var) : $this

Generated from protobuf field repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];

Parameters
$var : array<string|int, Entry>|RepeatedField
Return values
$this

setType()

The type name of the message to be created, empty when creating map literals.

public setType(string $var) : $this

Generated from protobuf field string type = 1 [json_name = "type"];

Parameters
$var : string
Return values
$this

        
On this page

Search results