google.protobuf.Struct */ class Struct extends \Google\Protobuf\Internal\Message { /** * Unordered map of dynamically typed values. * * Generated from protobuf field map fields = 1; */ private $fields; public function __construct() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); parent::__construct(); } /** * Unordered map of dynamically typed values. * * Generated from protobuf field map fields = 1; * @return \Google\Protobuf\Internal\MapField */ public function getFields() { return $this->fields; } /** * Unordered map of dynamically typed values. * * Generated from protobuf field map fields = 1; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setFields($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); $this->fields = $arr; return $this; } }