function Struct::__construct
Constructor.
Parameters
array $data {: Optional. Data for populating the Message object.
@type array|\Google\Protobuf\Internal\MapField $fields Unordered map of dynamically typed values. }
Overrides Message::__construct
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Struct.php, line 41
Class
- Struct
- `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…
Namespace
Google\ProtobufCode
public function __construct($data = NULL) {
\GPBMetadata\Google\Protobuf\Struct::initOnce();
parent::__construct($data);
}