blob: c1605c9418844a5a0bf5e1e7ba27b55edec513a8 [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.StopTime</code>
13 */
14class StopTime extends \Google\Protobuf\Internal\Message
15{
16 /**
17 * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique.
18 *
19 * Generated from protobuf field <code>string trip_id = 1;</code>
20 */
21 protected $trip_id = '';
22 /**
23 * Generated from protobuf field <code>string arrival_time = 2;</code>
24 */
25 protected $arrival_time = '';
26 /**
27 * Generated from protobuf field <code>string departure_time = 3;</code>
28 */
29 protected $departure_time = '';
30 /**
31 * Generated from protobuf field <code>string stop_id = 4;</code>
32 */
33 protected $stop_id = '';
34 /**
35 * Generated from protobuf field <code>string stop_sequence = 5;</code>
36 */
37 protected $stop_sequence = '';
38 /**
39 * Generated from protobuf field <code>string stop_headsign = 6;</code>
40 */
41 protected $stop_headsign = '';
42 /**
43 * Generated from protobuf field <code>.gtfs.StopTime.AvailabilityType pickup_type = 7;</code>
44 */
45 protected $pickup_type = 0;
46 /**
47 * Generated from protobuf field <code>.gtfs.StopTime.AvailabilityType drop_off_type = 8;</code>
48 */
49 protected $drop_off_type = 0;
50 /**
51 * Generated from protobuf field <code>float shape_dist_traveled = 9;</code>
52 */
53 protected $shape_dist_traveled = 0.0;
54 /**
55 * The extensions namespace allows 3rd-party developers to extend the
56 * GTFS specification in order to add and evaluate new features and
57 * modifications to the spec.
58 *
59 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
60 */
61 protected $extension = null;
62
63 /**
64 * Constructor.
65 *
66 * @param array $data {
67 * Optional. Data for populating the Message object.
68 *
69 * @type string $trip_id
70 * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique.
71 * @type string $arrival_time
72 * @type string $departure_time
73 * @type string $stop_id
74 * @type string $stop_sequence
75 * @type string $stop_headsign
76 * @type int $pickup_type
77 * @type int $drop_off_type
78 * @type float $shape_dist_traveled
79 * @type \Google\Protobuf\Any $extension
80 * The extensions namespace allows 3rd-party developers to extend the
81 * GTFS specification in order to add and evaluate new features and
82 * modifications to the spec.
83 * }
84 */
85 public function __construct($data = NULL) {
86 \GPBMetadata\Proto\Gtfs::initOnce();
87 parent::__construct($data);
88 }
89
90 /**
91 * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique.
92 *
93 * Generated from protobuf field <code>string trip_id = 1;</code>
94 * @return string
95 */
96 public function getTripId()
97 {
98 return $this->trip_id;
99 }
100
101 /**
102 * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique.
103 *
104 * Generated from protobuf field <code>string trip_id = 1;</code>
105 * @param string $var
106 * @return $this
107 */
108 public function setTripId($var)
109 {
110 GPBUtil::checkString($var, True);
111 $this->trip_id = $var;
112
113 return $this;
114 }
115
116 /**
117 * Generated from protobuf field <code>string arrival_time = 2;</code>
118 * @return string
119 */
120 public function getArrivalTime()
121 {
122 return $this->arrival_time;
123 }
124
125 /**
126 * Generated from protobuf field <code>string arrival_time = 2;</code>
127 * @param string $var
128 * @return $this
129 */
130 public function setArrivalTime($var)
131 {
132 GPBUtil::checkString($var, True);
133 $this->arrival_time = $var;
134
135 return $this;
136 }
137
138 /**
139 * Generated from protobuf field <code>string departure_time = 3;</code>
140 * @return string
141 */
142 public function getDepartureTime()
143 {
144 return $this->departure_time;
145 }
146
147 /**
148 * Generated from protobuf field <code>string departure_time = 3;</code>
149 * @param string $var
150 * @return $this
151 */
152 public function setDepartureTime($var)
153 {
154 GPBUtil::checkString($var, True);
155 $this->departure_time = $var;
156
157 return $this;
158 }
159
160 /**
161 * Generated from protobuf field <code>string stop_id = 4;</code>
162 * @return string
163 */
164 public function getStopId()
165 {
166 return $this->stop_id;
167 }
168
169 /**
170 * Generated from protobuf field <code>string stop_id = 4;</code>
171 * @param string $var
172 * @return $this
173 */
174 public function setStopId($var)
175 {
176 GPBUtil::checkString($var, True);
177 $this->stop_id = $var;
178
179 return $this;
180 }
181
182 /**
183 * Generated from protobuf field <code>string stop_sequence = 5;</code>
184 * @return string
185 */
186 public function getStopSequence()
187 {
188 return $this->stop_sequence;
189 }
190
191 /**
192 * Generated from protobuf field <code>string stop_sequence = 5;</code>
193 * @param string $var
194 * @return $this
195 */
196 public function setStopSequence($var)
197 {
198 GPBUtil::checkString($var, True);
199 $this->stop_sequence = $var;
200
201 return $this;
202 }
203
204 /**
205 * Generated from protobuf field <code>string stop_headsign = 6;</code>
206 * @return string
207 */
208 public function getStopHeadsign()
209 {
210 return $this->stop_headsign;
211 }
212
213 /**
214 * Generated from protobuf field <code>string stop_headsign = 6;</code>
215 * @param string $var
216 * @return $this
217 */
218 public function setStopHeadsign($var)
219 {
220 GPBUtil::checkString($var, True);
221 $this->stop_headsign = $var;
222
223 return $this;
224 }
225
226 /**
227 * Generated from protobuf field <code>.gtfs.StopTime.AvailabilityType pickup_type = 7;</code>
228 * @return int
229 */
230 public function getPickupType()
231 {
232 return $this->pickup_type;
233 }
234
235 /**
236 * Generated from protobuf field <code>.gtfs.StopTime.AvailabilityType pickup_type = 7;</code>
237 * @param int $var
238 * @return $this
239 */
240 public function setPickupType($var)
241 {
242 GPBUtil::checkEnum($var, \Gtfs\StopTime_AvailabilityType::class);
243 $this->pickup_type = $var;
244
245 return $this;
246 }
247
248 /**
249 * Generated from protobuf field <code>.gtfs.StopTime.AvailabilityType drop_off_type = 8;</code>
250 * @return int
251 */
252 public function getDropOffType()
253 {
254 return $this->drop_off_type;
255 }
256
257 /**
258 * Generated from protobuf field <code>.gtfs.StopTime.AvailabilityType drop_off_type = 8;</code>
259 * @param int $var
260 * @return $this
261 */
262 public function setDropOffType($var)
263 {
264 GPBUtil::checkEnum($var, \Gtfs\StopTime_AvailabilityType::class);
265 $this->drop_off_type = $var;
266
267 return $this;
268 }
269
270 /**
271 * Generated from protobuf field <code>float shape_dist_traveled = 9;</code>
272 * @return float
273 */
274 public function getShapeDistTraveled()
275 {
276 return $this->shape_dist_traveled;
277 }
278
279 /**
280 * Generated from protobuf field <code>float shape_dist_traveled = 9;</code>
281 * @param float $var
282 * @return $this
283 */
284 public function setShapeDistTraveled($var)
285 {
286 GPBUtil::checkFloat($var);
287 $this->shape_dist_traveled = $var;
288
289 return $this;
290 }
291
292 /**
293 * The extensions namespace allows 3rd-party developers to extend the
294 * GTFS specification in order to add and evaluate new features and
295 * modifications to the spec.
296 *
297 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
298 * @return \Google\Protobuf\Any
299 */
300 public function getExtension()
301 {
302 return $this->extension;
303 }
304
305 /**
306 * The extensions namespace allows 3rd-party developers to extend the
307 * GTFS specification in order to add and evaluate new features and
308 * modifications to the spec.
309 *
310 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
311 * @param \Google\Protobuf\Any $var
312 * @return $this
313 */
314 public function setExtension($var)
315 {
316 GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
317 $this->extension = $var;
318
319 return $this;
320 }
321
322}
323