blob: ae0170be61cde744d9589cfefaea8758fb7f25ca [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: proto/gtfs.proto
4
5namespace Gtfs;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Generated from protobuf message <code>gtfs.Stop</code>
13 */
14class Stop extends \Google\Protobuf\Internal\Message
15{
16 /**
17 * The stop_id field contains an ID that uniquely identifies a stop or station.
18 * Multiple routes may use the same stop. stop_id is dataset unique.
19 *
20 * Generated from protobuf field <code>string stop_id = 1;</code>
21 */
22 protected $stop_id = '';
23 /**
24 * The stop_code field contains short text or a number that uniquely identifies the stop for passengers.
25 *
26 * Generated from protobuf field <code>string stop_code = 2;</code>
27 */
28 protected $stop_code = '';
29 /**
30 * The stop_name field contains the name of a stop or station.
31 *
32 * Generated from protobuf field <code>string stop_name = 3;</code>
33 */
34 protected $stop_name = '';
35 /**
36 * The stop_desc field contains a description of a stop.
37 *
38 * Generated from protobuf field <code>string stop_desc = 4;</code>
39 */
40 protected $stop_desc = '';
41 /**
42 * Degrees North, in the WGS-84 coordinate system.
43 *
44 * Generated from protobuf field <code>float latitude = 5;</code>
45 */
46 protected $latitude = 0.0;
47 /**
48 * Degrees East, in the WGS-84 coordinate system.
49 *
50 * Generated from protobuf field <code>float longitude = 6;</code>
51 */
52 protected $longitude = 0.0;
53 /**
54 * Generated from protobuf field <code>string zone_id = 7;</code>
55 */
56 protected $zone_id = '';
57 /**
58 * Generated from protobuf field <code>string stop_url = 8;</code>
59 */
60 protected $stop_url = '';
61 /**
62 * Generated from protobuf field <code>.gtfs.Stop.LocationType location_type = 9;</code>
63 */
64 protected $location_type = 0;
65 /**
66 * Generated from protobuf field <code>string parent_station = 10;</code>
67 */
68 protected $parent_station = '';
69 /**
70 * Generated from protobuf field <code>string agency_timezone = 11;</code>
71 */
72 protected $agency_timezone = '';
73 /**
74 * The exact status of the vehicle with respect to the current stop.
75 * Ignored if current_stop_sequence is missing.
76 *
77 * Generated from protobuf field <code>.gtfs.Stop.WheelchairBoarding wheelchair_boarding = 12;</code>
78 */
79 protected $wheelchair_boarding = 0;
80 /**
81 * The extensions namespace allows 3rd-party developers to extend the
82 * GTFS specification in order to add and evaluate new features and
83 * modifications to the spec.
84 *
85 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
86 */
87 protected $extension = null;
88
89 /**
90 * Constructor.
91 *
92 * @param array $data {
93 * Optional. Data for populating the Message object.
94 *
95 * @type string $stop_id
96 * The stop_id field contains an ID that uniquely identifies a stop or station.
97 * Multiple routes may use the same stop. stop_id is dataset unique.
98 * @type string $stop_code
99 * The stop_code field contains short text or a number that uniquely identifies the stop for passengers.
100 * @type string $stop_name
101 * The stop_name field contains the name of a stop or station.
102 * @type string $stop_desc
103 * The stop_desc field contains a description of a stop.
104 * @type float $latitude
105 * Degrees North, in the WGS-84 coordinate system.
106 * @type float $longitude
107 * Degrees East, in the WGS-84 coordinate system.
108 * @type string $zone_id
109 * @type string $stop_url
110 * @type int $location_type
111 * @type string $parent_station
112 * @type string $agency_timezone
113 * @type int $wheelchair_boarding
114 * The exact status of the vehicle with respect to the current stop.
115 * Ignored if current_stop_sequence is missing.
116 * @type \Google\Protobuf\Any $extension
117 * The extensions namespace allows 3rd-party developers to extend the
118 * GTFS specification in order to add and evaluate new features and
119 * modifications to the spec.
120 * }
121 */
122 public function __construct($data = NULL) {
123 \GPBMetadata\Proto\Gtfs::initOnce();
124 parent::__construct($data);
125 }
126
127 /**
128 * The stop_id field contains an ID that uniquely identifies a stop or station.
129 * Multiple routes may use the same stop. stop_id is dataset unique.
130 *
131 * Generated from protobuf field <code>string stop_id = 1;</code>
132 * @return string
133 */
134 public function getStopId()
135 {
136 return $this->stop_id;
137 }
138
139 /**
140 * The stop_id field contains an ID that uniquely identifies a stop or station.
141 * Multiple routes may use the same stop. stop_id is dataset unique.
142 *
143 * Generated from protobuf field <code>string stop_id = 1;</code>
144 * @param string $var
145 * @return $this
146 */
147 public function setStopId($var)
148 {
149 GPBUtil::checkString($var, True);
150 $this->stop_id = $var;
151
152 return $this;
153 }
154
155 /**
156 * The stop_code field contains short text or a number that uniquely identifies the stop for passengers.
157 *
158 * Generated from protobuf field <code>string stop_code = 2;</code>
159 * @return string
160 */
161 public function getStopCode()
162 {
163 return $this->stop_code;
164 }
165
166 /**
167 * The stop_code field contains short text or a number that uniquely identifies the stop for passengers.
168 *
169 * Generated from protobuf field <code>string stop_code = 2;</code>
170 * @param string $var
171 * @return $this
172 */
173 public function setStopCode($var)
174 {
175 GPBUtil::checkString($var, True);
176 $this->stop_code = $var;
177
178 return $this;
179 }
180
181 /**
182 * The stop_name field contains the name of a stop or station.
183 *
184 * Generated from protobuf field <code>string stop_name = 3;</code>
185 * @return string
186 */
187 public function getStopName()
188 {
189 return $this->stop_name;
190 }
191
192 /**
193 * The stop_name field contains the name of a stop or station.
194 *
195 * Generated from protobuf field <code>string stop_name = 3;</code>
196 * @param string $var
197 * @return $this
198 */
199 public function setStopName($var)
200 {
201 GPBUtil::checkString($var, True);
202 $this->stop_name = $var;
203
204 return $this;
205 }
206
207 /**
208 * The stop_desc field contains a description of a stop.
209 *
210 * Generated from protobuf field <code>string stop_desc = 4;</code>
211 * @return string
212 */
213 public function getStopDesc()
214 {
215 return $this->stop_desc;
216 }
217
218 /**
219 * The stop_desc field contains a description of a stop.
220 *
221 * Generated from protobuf field <code>string stop_desc = 4;</code>
222 * @param string $var
223 * @return $this
224 */
225 public function setStopDesc($var)
226 {
227 GPBUtil::checkString($var, True);
228 $this->stop_desc = $var;
229
230 return $this;
231 }
232
233 /**
234 * Degrees North, in the WGS-84 coordinate system.
235 *
236 * Generated from protobuf field <code>float latitude = 5;</code>
237 * @return float
238 */
239 public function getLatitude()
240 {
241 return $this->latitude;
242 }
243
244 /**
245 * Degrees North, in the WGS-84 coordinate system.
246 *
247 * Generated from protobuf field <code>float latitude = 5;</code>
248 * @param float $var
249 * @return $this
250 */
251 public function setLatitude($var)
252 {
253 GPBUtil::checkFloat($var);
254 $this->latitude = $var;
255
256 return $this;
257 }
258
259 /**
260 * Degrees East, in the WGS-84 coordinate system.
261 *
262 * Generated from protobuf field <code>float longitude = 6;</code>
263 * @return float
264 */
265 public function getLongitude()
266 {
267 return $this->longitude;
268 }
269
270 /**
271 * Degrees East, in the WGS-84 coordinate system.
272 *
273 * Generated from protobuf field <code>float longitude = 6;</code>
274 * @param float $var
275 * @return $this
276 */
277 public function setLongitude($var)
278 {
279 GPBUtil::checkFloat($var);
280 $this->longitude = $var;
281
282 return $this;
283 }
284
285 /**
286 * Generated from protobuf field <code>string zone_id = 7;</code>
287 * @return string
288 */
289 public function getZoneId()
290 {
291 return $this->zone_id;
292 }
293
294 /**
295 * Generated from protobuf field <code>string zone_id = 7;</code>
296 * @param string $var
297 * @return $this
298 */
299 public function setZoneId($var)
300 {
301 GPBUtil::checkString($var, True);
302 $this->zone_id = $var;
303
304 return $this;
305 }
306
307 /**
308 * Generated from protobuf field <code>string stop_url = 8;</code>
309 * @return string
310 */
311 public function getStopUrl()
312 {
313 return $this->stop_url;
314 }
315
316 /**
317 * Generated from protobuf field <code>string stop_url = 8;</code>
318 * @param string $var
319 * @return $this
320 */
321 public function setStopUrl($var)
322 {
323 GPBUtil::checkString($var, True);
324 $this->stop_url = $var;
325
326 return $this;
327 }
328
329 /**
330 * Generated from protobuf field <code>.gtfs.Stop.LocationType location_type = 9;</code>
331 * @return int
332 */
333 public function getLocationType()
334 {
335 return $this->location_type;
336 }
337
338 /**
339 * Generated from protobuf field <code>.gtfs.Stop.LocationType location_type = 9;</code>
340 * @param int $var
341 * @return $this
342 */
343 public function setLocationType($var)
344 {
345 GPBUtil::checkEnum($var, \Gtfs\Stop_LocationType::class);
346 $this->location_type = $var;
347
348 return $this;
349 }
350
351 /**
352 * Generated from protobuf field <code>string parent_station = 10;</code>
353 * @return string
354 */
355 public function getParentStation()
356 {
357 return $this->parent_station;
358 }
359
360 /**
361 * Generated from protobuf field <code>string parent_station = 10;</code>
362 * @param string $var
363 * @return $this
364 */
365 public function setParentStation($var)
366 {
367 GPBUtil::checkString($var, True);
368 $this->parent_station = $var;
369
370 return $this;
371 }
372
373 /**
374 * Generated from protobuf field <code>string agency_timezone = 11;</code>
375 * @return string
376 */
377 public function getAgencyTimezone()
378 {
379 return $this->agency_timezone;
380 }
381
382 /**
383 * Generated from protobuf field <code>string agency_timezone = 11;</code>
384 * @param string $var
385 * @return $this
386 */
387 public function setAgencyTimezone($var)
388 {
389 GPBUtil::checkString($var, True);
390 $this->agency_timezone = $var;
391
392 return $this;
393 }
394
395 /**
396 * The exact status of the vehicle with respect to the current stop.
397 * Ignored if current_stop_sequence is missing.
398 *
399 * Generated from protobuf field <code>.gtfs.Stop.WheelchairBoarding wheelchair_boarding = 12;</code>
400 * @return int
401 */
402 public function getWheelchairBoarding()
403 {
404 return $this->wheelchair_boarding;
405 }
406
407 /**
408 * The exact status of the vehicle with respect to the current stop.
409 * Ignored if current_stop_sequence is missing.
410 *
411 * Generated from protobuf field <code>.gtfs.Stop.WheelchairBoarding wheelchair_boarding = 12;</code>
412 * @param int $var
413 * @return $this
414 */
415 public function setWheelchairBoarding($var)
416 {
417 GPBUtil::checkEnum($var, \Gtfs\Stop_WheelchairBoarding::class);
418 $this->wheelchair_boarding = $var;
419
420 return $this;
421 }
422
423 /**
424 * The extensions namespace allows 3rd-party developers to extend the
425 * GTFS specification in order to add and evaluate new features and
426 * modifications to the spec.
427 *
428 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
429 * @return \Google\Protobuf\Any
430 */
431 public function getExtension()
432 {
433 return $this->extension;
434 }
435
436 /**
437 * The extensions namespace allows 3rd-party developers to extend the
438 * GTFS specification in order to add and evaluate new features and
439 * modifications to the spec.
440 *
441 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
442 * @param \Google\Protobuf\Any $var
443 * @return $this
444 */
445 public function setExtension($var)
446 {
447 GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
448 $this->extension = $var;
449
450 return $this;
451 }
452
453}
454