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 * `ListValue` is a wrapper around a repeated field of values.
13ffe3c632Sopenharmony_ci * The JSON representation for `ListValue` is JSON array.
14ffe3c632Sopenharmony_ci *
15ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.ListValue</code>
16ffe3c632Sopenharmony_ci */
17ffe3c632Sopenharmony_ciclass ListValue extends \Google\Protobuf\Internal\Message
18ffe3c632Sopenharmony_ci{
19ffe3c632Sopenharmony_ci    /**
20ffe3c632Sopenharmony_ci     * Repeated field of dynamically typed values.
21ffe3c632Sopenharmony_ci     *
22ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>
23ffe3c632Sopenharmony_ci     */
24ffe3c632Sopenharmony_ci    private $values;
25ffe3c632Sopenharmony_ci
26ffe3c632Sopenharmony_ci    /**
27ffe3c632Sopenharmony_ci     * Constructor.
28ffe3c632Sopenharmony_ci     *
29ffe3c632Sopenharmony_ci     * @param array $data {
30ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
31ffe3c632Sopenharmony_ci     *
32ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Value[]|\Google\Protobuf\Internal\RepeatedField $values
33ffe3c632Sopenharmony_ci     *           Repeated field of dynamically typed values.
34ffe3c632Sopenharmony_ci     * }
35ffe3c632Sopenharmony_ci     */
36ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
37ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Struct::initOnce();
38ffe3c632Sopenharmony_ci        parent::__construct($data);
39ffe3c632Sopenharmony_ci    }
40ffe3c632Sopenharmony_ci
41ffe3c632Sopenharmony_ci    /**
42ffe3c632Sopenharmony_ci     * Repeated field of dynamically typed values.
43ffe3c632Sopenharmony_ci     *
44ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>
45ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
46ffe3c632Sopenharmony_ci     */
47ffe3c632Sopenharmony_ci    public function getValues()
48ffe3c632Sopenharmony_ci    {
49ffe3c632Sopenharmony_ci        return $this->values;
50ffe3c632Sopenharmony_ci    }
51ffe3c632Sopenharmony_ci
52ffe3c632Sopenharmony_ci    /**
53ffe3c632Sopenharmony_ci     * Repeated field of dynamically typed values.
54ffe3c632Sopenharmony_ci     *
55ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>
56ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Value[]|\Google\Protobuf\Internal\RepeatedField $var
57ffe3c632Sopenharmony_ci     * @return $this
58ffe3c632Sopenharmony_ci     */
59ffe3c632Sopenharmony_ci    public function setValues($var)
60ffe3c632Sopenharmony_ci    {
61ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
62ffe3c632Sopenharmony_ci        $this->values = $arr;
63ffe3c632Sopenharmony_ci
64ffe3c632Sopenharmony_ci        return $this;
65ffe3c632Sopenharmony_ci    }
66ffe3c632Sopenharmony_ci
67ffe3c632Sopenharmony_ci}
68ffe3c632Sopenharmony_ci
69