1ffe3c632Sopenharmony_ci<?php
2ffe3c632Sopenharmony_ci# Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci# source: google/protobuf/type.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 * Enum value definition.
13ffe3c632Sopenharmony_ci *
14ffe3c632Sopenharmony_ci * Generated from protobuf message <code>google.protobuf.EnumValue</code>
15ffe3c632Sopenharmony_ci */
16ffe3c632Sopenharmony_ciclass EnumValue extends \Google\Protobuf\Internal\Message
17ffe3c632Sopenharmony_ci{
18ffe3c632Sopenharmony_ci    /**
19ffe3c632Sopenharmony_ci     * Enum value name.
20ffe3c632Sopenharmony_ci     *
21ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
22ffe3c632Sopenharmony_ci     */
23ffe3c632Sopenharmony_ci    private $name = '';
24ffe3c632Sopenharmony_ci    /**
25ffe3c632Sopenharmony_ci     * Enum value number.
26ffe3c632Sopenharmony_ci     *
27ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>int32 number = 2;</code>
28ffe3c632Sopenharmony_ci     */
29ffe3c632Sopenharmony_ci    private $number = 0;
30ffe3c632Sopenharmony_ci    /**
31ffe3c632Sopenharmony_ci     * Protocol buffer options.
32ffe3c632Sopenharmony_ci     *
33ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
34ffe3c632Sopenharmony_ci     */
35ffe3c632Sopenharmony_ci    private $options;
36ffe3c632Sopenharmony_ci
37ffe3c632Sopenharmony_ci    /**
38ffe3c632Sopenharmony_ci     * Constructor.
39ffe3c632Sopenharmony_ci     *
40ffe3c632Sopenharmony_ci     * @param array $data {
41ffe3c632Sopenharmony_ci     *     Optional. Data for populating the Message object.
42ffe3c632Sopenharmony_ci     *
43ffe3c632Sopenharmony_ci     *     @type string $name
44ffe3c632Sopenharmony_ci     *           Enum value name.
45ffe3c632Sopenharmony_ci     *     @type int $number
46ffe3c632Sopenharmony_ci     *           Enum value number.
47ffe3c632Sopenharmony_ci     *     @type \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $options
48ffe3c632Sopenharmony_ci     *           Protocol buffer options.
49ffe3c632Sopenharmony_ci     * }
50ffe3c632Sopenharmony_ci     */
51ffe3c632Sopenharmony_ci    public function __construct($data = NULL) {
52ffe3c632Sopenharmony_ci        \GPBMetadata\Google\Protobuf\Type::initOnce();
53ffe3c632Sopenharmony_ci        parent::__construct($data);
54ffe3c632Sopenharmony_ci    }
55ffe3c632Sopenharmony_ci
56ffe3c632Sopenharmony_ci    /**
57ffe3c632Sopenharmony_ci     * Enum value name.
58ffe3c632Sopenharmony_ci     *
59ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
60ffe3c632Sopenharmony_ci     * @return string
61ffe3c632Sopenharmony_ci     */
62ffe3c632Sopenharmony_ci    public function getName()
63ffe3c632Sopenharmony_ci    {
64ffe3c632Sopenharmony_ci        return $this->name;
65ffe3c632Sopenharmony_ci    }
66ffe3c632Sopenharmony_ci
67ffe3c632Sopenharmony_ci    /**
68ffe3c632Sopenharmony_ci     * Enum value name.
69ffe3c632Sopenharmony_ci     *
70ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>string name = 1;</code>
71ffe3c632Sopenharmony_ci     * @param string $var
72ffe3c632Sopenharmony_ci     * @return $this
73ffe3c632Sopenharmony_ci     */
74ffe3c632Sopenharmony_ci    public function setName($var)
75ffe3c632Sopenharmony_ci    {
76ffe3c632Sopenharmony_ci        GPBUtil::checkString($var, True);
77ffe3c632Sopenharmony_ci        $this->name = $var;
78ffe3c632Sopenharmony_ci
79ffe3c632Sopenharmony_ci        return $this;
80ffe3c632Sopenharmony_ci    }
81ffe3c632Sopenharmony_ci
82ffe3c632Sopenharmony_ci    /**
83ffe3c632Sopenharmony_ci     * Enum value number.
84ffe3c632Sopenharmony_ci     *
85ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>int32 number = 2;</code>
86ffe3c632Sopenharmony_ci     * @return int
87ffe3c632Sopenharmony_ci     */
88ffe3c632Sopenharmony_ci    public function getNumber()
89ffe3c632Sopenharmony_ci    {
90ffe3c632Sopenharmony_ci        return $this->number;
91ffe3c632Sopenharmony_ci    }
92ffe3c632Sopenharmony_ci
93ffe3c632Sopenharmony_ci    /**
94ffe3c632Sopenharmony_ci     * Enum value number.
95ffe3c632Sopenharmony_ci     *
96ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>int32 number = 2;</code>
97ffe3c632Sopenharmony_ci     * @param int $var
98ffe3c632Sopenharmony_ci     * @return $this
99ffe3c632Sopenharmony_ci     */
100ffe3c632Sopenharmony_ci    public function setNumber($var)
101ffe3c632Sopenharmony_ci    {
102ffe3c632Sopenharmony_ci        GPBUtil::checkInt32($var);
103ffe3c632Sopenharmony_ci        $this->number = $var;
104ffe3c632Sopenharmony_ci
105ffe3c632Sopenharmony_ci        return $this;
106ffe3c632Sopenharmony_ci    }
107ffe3c632Sopenharmony_ci
108ffe3c632Sopenharmony_ci    /**
109ffe3c632Sopenharmony_ci     * Protocol buffer options.
110ffe3c632Sopenharmony_ci     *
111ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
112ffe3c632Sopenharmony_ci     * @return \Google\Protobuf\Internal\RepeatedField
113ffe3c632Sopenharmony_ci     */
114ffe3c632Sopenharmony_ci    public function getOptions()
115ffe3c632Sopenharmony_ci    {
116ffe3c632Sopenharmony_ci        return $this->options;
117ffe3c632Sopenharmony_ci    }
118ffe3c632Sopenharmony_ci
119ffe3c632Sopenharmony_ci    /**
120ffe3c632Sopenharmony_ci     * Protocol buffer options.
121ffe3c632Sopenharmony_ci     *
122ffe3c632Sopenharmony_ci     * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
123ffe3c632Sopenharmony_ci     * @param \Google\Protobuf\Option[]|\Google\Protobuf\Internal\RepeatedField $var
124ffe3c632Sopenharmony_ci     * @return $this
125ffe3c632Sopenharmony_ci     */
126ffe3c632Sopenharmony_ci    public function setOptions($var)
127ffe3c632Sopenharmony_ci    {
128ffe3c632Sopenharmony_ci        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Option::class);
129ffe3c632Sopenharmony_ci        $this->options = $arr;
130ffe3c632Sopenharmony_ci
131ffe3c632Sopenharmony_ci        return $this;
132ffe3c632Sopenharmony_ci    }
133ffe3c632Sopenharmony_ci
134ffe3c632Sopenharmony_ci}
135ffe3c632Sopenharmony_ci
136