1ffe3c632Sopenharmony_ci<?php
2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci# source: google/protobuf/struct.proto
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_cinamespace Google\Protobuf;
6ffe3c632Sopenharmony_ci
7ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBType;
8ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\RepeatedField;
9ffe3c632Sopenharmony_ciuse Google\Protobuf\Internal\GPBUtil;
10ffe3c632Sopenharmony_ci
11ffe3c632Sopenharmony_ci/**
12ffe3c632Sopenharmony_ci * `Struct` represents a structured data value, consisting of fields
13ffe3c632Sopenharmony_ci * which map to dynamically typed values. In some languages, `Struct`
14ffe3c632Sopenharmony_ci * might be supported by a native representation. For example, in
15ffe3c632Sopenharmony_ci * scripting languages like JS a struct is represented as an
16ffe3c632Sopenharmony_ci * object. The details of that representation are described together
17ffe3c632Sopenharmony_ci * with the proto support for the language.
18ffe3c632Sopenharmony_ci * The JSON representation for `Struct` is JSON object.
19ffe3c632Sopenharmony_ci *
20ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.Struct</code>
21ffe3c632Sopenharmony_ci */
22ffe3c632Sopenharmony_ciclass Struct extends \Google\Protobuf\Internal\Message
23ffe3c632Sopenharmony_ci{
24ffe3c632Sopenharmony_ci    /**
25ffe3c632Sopenharmony_ci     * Unordered map of dynamically typed values.
26ffe3c632Sopenharmony_ci     *
27ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>map<string, .google.protobuf.Value> fields = 1;</code>
28ffe3c632Sopenharmony_ci     */
29ffe3c632Sopenharmony_ci    private $fields;
30ffe3c632Sopenharmony_ci
31ffe3c632Sopenharmony_ci    /**
32ffe3c632Sopenharmony_ci     * Constructor.
33ffe3c632Sopenharmony_ci     *
34ffe3c632Sopenharmony_ci     * @param array $data {
35ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
36ffe3c632Sopenharmony_ci     *
37ffe3c632Sopenharmony_ci     *     @type array|\Google\Protobuf\Internal\MapField $fields
38ffe3c632Sopenharmony_ci     *           Unordered map of dynamically typed values.
39ffe3c632Sopenharmony_ci     * }
40ffe3c632Sopenharmony_ci     */
41ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
42ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Struct::initOnce();
43ffe3c632Sopenharmony_ci        parent::__construct($data);
44ffe3c632Sopenharmony_ci    }
45ffe3c632Sopenharmony_ci
46ffe3c632Sopenharmony_ci    /**
47ffe3c632Sopenharmony_ci     * Unordered map of dynamically typed values.
48ffe3c632Sopenharmony_ci     *
49ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>map<string, .google.protobuf.Value> fields = 1;</code>
50ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\MapField
51ffe3c632Sopenharmony_ci     */
52ffe3c632Sopenharmony_ci    public function getFields()
53ffe3c632Sopenharmony_ci    {
54ffe3c632Sopenharmony_ci        return $this->fields;
55ffe3c632Sopenharmony_ci    }
56ffe3c632Sopenharmony_ci
57ffe3c632Sopenharmony_ci    /**
58ffe3c632Sopenharmony_ci     * Unordered map of dynamically typed values.
59ffe3c632Sopenharmony_ci     *
60ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>map<string, .google.protobuf.Value> fields = 1;</code>
61ffe3c632Sopenharmony_ci     * @param array|\Google\Protobuf\Internal\MapField $var
62ffe3c632Sopenharmony_ci     * @return $this
63ffe3c632Sopenharmony_ci     */
64ffe3c632Sopenharmony_ci    public function setFields($var)
65ffe3c632Sopenharmony_ci    {
66ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
67ffe3c632Sopenharmony_ci        $this->fields = $arr;
68ffe3c632Sopenharmony_ci
69ffe3c632Sopenharmony_ci        return $this;
70ffe3c632Sopenharmony_ci    }
71ffe3c632Sopenharmony_ci
72ffe3c632Sopenharmony_ci}
73ffe3c632Sopenharmony_ci
74