class Struct extends Message

Struct represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, Struct might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language.

The JSON representation for Struct is JSON object.

Protobuf type Google\Protobuf\Struct

Methods

__construct()

No description

RepeatedField
getFields()

Unordered map of dynamically typed values.

setFields(array|RepeatedField $var)

Unordered map of dynamically typed values.

Details

at line 31
__construct()

at line 42
RepeatedField getFields()

Unordered map of dynamically typed values.

Generated from protobuf field map<string, .google.protobuf.Value> fields = 1;

Return Value

RepeatedField

at line 53
setFields(array|RepeatedField $var)

Unordered map of dynamically typed values.

Generated from protobuf field map<string, .google.protobuf.Value> fields = 1;

Parameters

array|RepeatedField $var