blob: 369fea4892932891fe399df8a3b180dd3c531062 [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: google/protobuf/descriptor.proto
4
5namespace Google\Protobuf\Internal\GeneratedCodeInfo;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\GPBWire;
9use Google\Protobuf\Internal\RepeatedField;
10use Google\Protobuf\Internal\InputStream;
11use Google\Protobuf\Internal\GPBUtil;
12
13/**
14 * Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo.Annotation</code>
15 */
16class Annotation extends \Google\Protobuf\Internal\Message
17{
18 /**
19 * Identifies the element in the original source .proto file. This field
20 * is formatted the same as SourceCodeInfo.Location.path.
21 *
22 * Generated from protobuf field <code>repeated int32 path = 1 [packed = true];</code>
23 */
24 private $path;
25 private $has_path = false;
26 /**
27 * Identifies the filesystem path to the original source .proto.
28 *
29 * Generated from protobuf field <code>optional string source_file = 2;</code>
30 */
31 protected $source_file = '';
32 private $has_source_file = false;
33 /**
34 * Identifies the starting offset in bytes in the generated code
35 * that relates to the identified object.
36 *
37 * Generated from protobuf field <code>optional int32 begin = 3;</code>
38 */
39 protected $begin = 0;
40 private $has_begin = false;
41 /**
42 * Identifies the ending offset in bytes in the generated code that
43 * relates to the identified offset. The end offset should be one past
44 * the last relevant byte (so the length of the text = end - begin).
45 *
46 * Generated from protobuf field <code>optional int32 end = 4;</code>
47 */
48 protected $end = 0;
49 private $has_end = false;
50
51 /**
52 * Constructor.
53 *
54 * @param array $data {
55 * Optional. Data for populating the Message object.
56 *
57 * @type int[]|\Google\Protobuf\Internal\RepeatedField $path
58 * Identifies the element in the original source .proto file. This field
59 * is formatted the same as SourceCodeInfo.Location.path.
60 * @type string $source_file
61 * Identifies the filesystem path to the original source .proto.
62 * @type int $begin
63 * Identifies the starting offset in bytes in the generated code
64 * that relates to the identified object.
65 * @type int $end
66 * Identifies the ending offset in bytes in the generated code that
67 * relates to the identified offset. The end offset should be one past
68 * the last relevant byte (so the length of the text = end - begin).
69 * }
70 */
71 public function __construct($data = NULL) {
72 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
73 parent::__construct($data);
74 }
75
76 /**
77 * Identifies the element in the original source .proto file. This field
78 * is formatted the same as SourceCodeInfo.Location.path.
79 *
80 * Generated from protobuf field <code>repeated int32 path = 1 [packed = true];</code>
81 * @return \Google\Protobuf\Internal\RepeatedField
82 */
83 public function getPath()
84 {
85 return $this->path;
86 }
87
88 /**
89 * Identifies the element in the original source .proto file. This field
90 * is formatted the same as SourceCodeInfo.Location.path.
91 *
92 * Generated from protobuf field <code>repeated int32 path = 1 [packed = true];</code>
93 * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
94 * @return $this
95 */
96 public function setPath($var)
97 {
98 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
99 $this->path = $arr;
100 $this->has_path = true;
101
102 return $this;
103 }
104
105 public function hasPath()
106 {
107 return $this->has_path;
108 }
109
110 /**
111 * Identifies the filesystem path to the original source .proto.
112 *
113 * Generated from protobuf field <code>optional string source_file = 2;</code>
114 * @return string
115 */
116 public function getSourceFile()
117 {
118 return $this->source_file;
119 }
120
121 /**
122 * Identifies the filesystem path to the original source .proto.
123 *
124 * Generated from protobuf field <code>optional string source_file = 2;</code>
125 * @param string $var
126 * @return $this
127 */
128 public function setSourceFile($var)
129 {
130 GPBUtil::checkString($var, True);
131 $this->source_file = $var;
132 $this->has_source_file = true;
133
134 return $this;
135 }
136
137 public function hasSourceFile()
138 {
139 return $this->has_source_file;
140 }
141
142 /**
143 * Identifies the starting offset in bytes in the generated code
144 * that relates to the identified object.
145 *
146 * Generated from protobuf field <code>optional int32 begin = 3;</code>
147 * @return int
148 */
149 public function getBegin()
150 {
151 return $this->begin;
152 }
153
154 /**
155 * Identifies the starting offset in bytes in the generated code
156 * that relates to the identified object.
157 *
158 * Generated from protobuf field <code>optional int32 begin = 3;</code>
159 * @param int $var
160 * @return $this
161 */
162 public function setBegin($var)
163 {
164 GPBUtil::checkInt32($var);
165 $this->begin = $var;
166 $this->has_begin = true;
167
168 return $this;
169 }
170
171 public function hasBegin()
172 {
173 return $this->has_begin;
174 }
175
176 /**
177 * Identifies the ending offset in bytes in the generated code that
178 * relates to the identified offset. The end offset should be one past
179 * the last relevant byte (so the length of the text = end - begin).
180 *
181 * Generated from protobuf field <code>optional int32 end = 4;</code>
182 * @return int
183 */
184 public function getEnd()
185 {
186 return $this->end;
187 }
188
189 /**
190 * Identifies the ending offset in bytes in the generated code that
191 * relates to the identified offset. The end offset should be one past
192 * the last relevant byte (so the length of the text = end - begin).
193 *
194 * Generated from protobuf field <code>optional int32 end = 4;</code>
195 * @param int $var
196 * @return $this
197 */
198 public function setEnd($var)
199 {
200 GPBUtil::checkInt32($var);
201 $this->end = $var;
202 $this->has_end = true;
203
204 return $this;
205 }
206
207 public function hasEnd()
208 {
209 return $this->has_end;
210 }
211
212}
213
214// Adding a class alias for backwards compatibility with the previous class name.
215class_alias(Annotation::class, \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation::class);
216