PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / protobuf / src / Google / Protobuf / EnumValue.php
googleanalytics / lib / analytics-admin / vendor / google / protobuf / src / Google / Protobuf Last commit date
Field 3 years ago Internal 2 years ago Any.php 2 years ago Api.php 3 years ago BoolValue.php 3 years ago BytesValue.php 3 years ago Descriptor.php 2 years ago DescriptorPool.php 2 years ago DoubleValue.php 3 years ago Duration.php 3 years ago Enum.php 3 years ago EnumDescriptor.php 2 years ago EnumValue.php 3 years ago EnumValueDescriptor.php 2 years ago Field.php 3 years ago FieldDescriptor.php 2 years ago FieldMask.php 3 years ago Field_Cardinality.php 3 years ago Field_Kind.php 3 years ago FloatValue.php 3 years ago GPBEmpty.php 3 years ago Int32Value.php 3 years ago Int64Value.php 3 years ago ListValue.php 3 years ago Method.php 3 years ago Mixin.php 3 years ago NullValue.php 3 years ago OneofDescriptor.php 2 years ago Option.php 3 years ago SourceContext.php 3 years ago StringValue.php 3 years ago Struct.php 3 years ago Syntax.php 3 years ago Timestamp.php 3 years ago Type.php 3 years ago UInt32Value.php 3 years ago UInt64Value.php 3 years ago Value.php 3 years ago
EnumValue.php
136 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/protobuf/type.proto
4
5 namespace Google\Protobuf;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * Enum value definition.
13 *
14 * Generated from protobuf message <code>google.protobuf.EnumValue</code>
15 */
16 class EnumValue extends \Google\Protobuf\Internal\Message
17 {
18 /**
19 * Enum value name.
20 *
21 * Generated from protobuf field <code>string name = 1;</code>
22 */
23 protected $name = '';
24 /**
25 * Enum value number.
26 *
27 * Generated from protobuf field <code>int32 number = 2;</code>
28 */
29 protected $number = 0;
30 /**
31 * Protocol buffer options.
32 *
33 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
34 */
35 private $options;
36
37 /**
38 * Constructor.
39 *
40 * @param array $data {
41 * Optional. Data for populating the Message object.
42 *
43 * @type string $name
44 * Enum value name.
45 * @type int $number
46 * Enum value number.
47 * @type array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $options
48 * Protocol buffer options.
49 * }
50 */
51 public function __construct($data = NULL) {
52 \GPBMetadata\Google\Protobuf\Type::initOnce();
53 parent::__construct($data);
54 }
55
56 /**
57 * Enum value name.
58 *
59 * Generated from protobuf field <code>string name = 1;</code>
60 * @return string
61 */
62 public function getName()
63 {
64 return $this->name;
65 }
66
67 /**
68 * Enum value name.
69 *
70 * Generated from protobuf field <code>string name = 1;</code>
71 * @param string $var
72 * @return $this
73 */
74 public function setName($var)
75 {
76 GPBUtil::checkString($var, True);
77 $this->name = $var;
78
79 return $this;
80 }
81
82 /**
83 * Enum value number.
84 *
85 * Generated from protobuf field <code>int32 number = 2;</code>
86 * @return int
87 */
88 public function getNumber()
89 {
90 return $this->number;
91 }
92
93 /**
94 * Enum value number.
95 *
96 * Generated from protobuf field <code>int32 number = 2;</code>
97 * @param int $var
98 * @return $this
99 */
100 public function setNumber($var)
101 {
102 GPBUtil::checkInt32($var);
103 $this->number = $var;
104
105 return $this;
106 }
107
108 /**
109 * Protocol buffer options.
110 *
111 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
112 * @return \Google\Protobuf\Internal\RepeatedField
113 */
114 public function getOptions()
115 {
116 return $this->options;
117 }
118
119 /**
120 * Protocol buffer options.
121 *
122 * Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>
123 * @param array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $var
124 * @return $this
125 */
126 public function setOptions($var)
127 {
128 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Option::class);
129 $this->options = $arr;
130
131 return $this;
132 }
133
134 }
135
136