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

__construct(array $data = NULL)

Constructor.

string
getType()

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

$this
setType(string $var)

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

RepeatedField
getEntries()

The entries in the creation expression.

$this
setEntries(Entry[]|RepeatedField $var)

The entries in the creation expression.

Details

at line 48
__construct(array $data = NULL)

Constructor.

Parameters

array $data { 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 \Google\Api\Expr\V1beta1\Expr\CreateStruct\Entry[]|\Google\Protobuf\Internal\RepeatedField $entries
      The entries in the creation expression.

}

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;

Return Value

string

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;

Parameters

string $var

Return Value

$this

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;

Return Value

RepeatedField

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;

Parameters

Entry[]|RepeatedField $var

Return Value

$this