avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame] | 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: proto/gtfs.proto |
| 4 | |
| 5 | namespace Gtfs; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * Generated from protobuf message <code>gtfs.Trip</code> |
| 13 | */ |
| 14 | class Trip extends \Google\Protobuf\Internal\Message |
| 15 | { |
| 16 | /** |
| 17 | * The route_id field contains an ID that uniquely identifies a route. |
| 18 | * |
| 19 | * Generated from protobuf field <code>string route_id = 1;</code> |
| 20 | */ |
| 21 | protected $route_id = ''; |
| 22 | /** |
| 23 | * The service_id contains an ID that uniquely identifies a set of dates when service is available for one or more routes. |
| 24 | * |
| 25 | * Generated from protobuf field <code>string service_id = 2;</code> |
| 26 | */ |
| 27 | protected $service_id = ''; |
| 28 | /** |
| 29 | * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique. |
| 30 | * |
| 31 | * Generated from protobuf field <code>string trip_id = 3;</code> |
| 32 | */ |
| 33 | protected $trip_id = ''; |
| 34 | /** |
| 35 | * The trip_headsign field contains the text that appears on a sign that identifies the trip's destination to passengers. |
| 36 | * |
| 37 | * Generated from protobuf field <code>string trip_headsign = 4;</code> |
| 38 | */ |
| 39 | protected $trip_headsign = ''; |
| 40 | /** |
| 41 | * The trip_short_name field contains the text that appears in schedules and sign boards to identify the trip to passengers. |
| 42 | * |
| 43 | * Generated from protobuf field <code>string trip_short_name = 5;</code> |
| 44 | */ |
| 45 | protected $trip_short_name = ''; |
| 46 | /** |
| 47 | * Generated from protobuf field <code>.gtfs.Trip.Direction direction_id = 6;</code> |
| 48 | */ |
| 49 | protected $direction_id = 0; |
| 50 | /** |
| 51 | * The block_id field identifies the block to which the trip belongs. |
| 52 | * A block consists of two or more sequential trips made using the same vehicle, |
| 53 | * where a passenger can transfer from one trip to the next just by staying in the vehicle. |
| 54 | * |
| 55 | * Generated from protobuf field <code>string block_id = 7;</code> |
| 56 | */ |
| 57 | protected $block_id = ''; |
| 58 | /** |
| 59 | * The shape_id field contains an ID that defines a shape for the trip. |
| 60 | * |
| 61 | * Generated from protobuf field <code>string shape_id = 8;</code> |
| 62 | */ |
| 63 | protected $shape_id = ''; |
| 64 | /** |
| 65 | * The extensions namespace allows 3rd-party developers to extend the |
| 66 | * GTFS specification in order to add and evaluate new features and |
| 67 | * modifications to the spec. |
| 68 | * |
| 69 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 70 | */ |
| 71 | protected $extension = null; |
| 72 | |
| 73 | /** |
| 74 | * Constructor. |
| 75 | * |
| 76 | * @param array $data { |
| 77 | * Optional. Data for populating the Message object. |
| 78 | * |
| 79 | * @type string $route_id |
| 80 | * The route_id field contains an ID that uniquely identifies a route. |
| 81 | * @type string $service_id |
| 82 | * The service_id contains an ID that uniquely identifies a set of dates when service is available for one or more routes. |
| 83 | * @type string $trip_id |
| 84 | * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique. |
| 85 | * @type string $trip_headsign |
| 86 | * The trip_headsign field contains the text that appears on a sign that identifies the trip's destination to passengers. |
| 87 | * @type string $trip_short_name |
| 88 | * The trip_short_name field contains the text that appears in schedules and sign boards to identify the trip to passengers. |
| 89 | * @type int $direction_id |
| 90 | * @type string $block_id |
| 91 | * The block_id field identifies the block to which the trip belongs. |
| 92 | * A block consists of two or more sequential trips made using the same vehicle, |
| 93 | * where a passenger can transfer from one trip to the next just by staying in the vehicle. |
| 94 | * @type string $shape_id |
| 95 | * The shape_id field contains an ID that defines a shape for the trip. |
| 96 | * @type \Google\Protobuf\Any $extension |
| 97 | * The extensions namespace allows 3rd-party developers to extend the |
| 98 | * GTFS specification in order to add and evaluate new features and |
| 99 | * modifications to the spec. |
| 100 | * } |
| 101 | */ |
| 102 | public function __construct($data = NULL) { |
| 103 | \GPBMetadata\Proto\Gtfs::initOnce(); |
| 104 | parent::__construct($data); |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * The route_id field contains an ID that uniquely identifies a route. |
| 109 | * |
| 110 | * Generated from protobuf field <code>string route_id = 1;</code> |
| 111 | * @return string |
| 112 | */ |
| 113 | public function getRouteId() |
| 114 | { |
| 115 | return $this->route_id; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * The route_id field contains an ID that uniquely identifies a route. |
| 120 | * |
| 121 | * Generated from protobuf field <code>string route_id = 1;</code> |
| 122 | * @param string $var |
| 123 | * @return $this |
| 124 | */ |
| 125 | public function setRouteId($var) |
| 126 | { |
| 127 | GPBUtil::checkString($var, True); |
| 128 | $this->route_id = $var; |
| 129 | |
| 130 | return $this; |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * The service_id contains an ID that uniquely identifies a set of dates when service is available for one or more routes. |
| 135 | * |
| 136 | * Generated from protobuf field <code>string service_id = 2;</code> |
| 137 | * @return string |
| 138 | */ |
| 139 | public function getServiceId() |
| 140 | { |
| 141 | return $this->service_id; |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * The service_id contains an ID that uniquely identifies a set of dates when service is available for one or more routes. |
| 146 | * |
| 147 | * Generated from protobuf field <code>string service_id = 2;</code> |
| 148 | * @param string $var |
| 149 | * @return $this |
| 150 | */ |
| 151 | public function setServiceId($var) |
| 152 | { |
| 153 | GPBUtil::checkString($var, True); |
| 154 | $this->service_id = $var; |
| 155 | |
| 156 | return $this; |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique. |
| 161 | * |
| 162 | * Generated from protobuf field <code>string trip_id = 3;</code> |
| 163 | * @return string |
| 164 | */ |
| 165 | public function getTripId() |
| 166 | { |
| 167 | return $this->trip_id; |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique. |
| 172 | * |
| 173 | * Generated from protobuf field <code>string trip_id = 3;</code> |
| 174 | * @param string $var |
| 175 | * @return $this |
| 176 | */ |
| 177 | public function setTripId($var) |
| 178 | { |
| 179 | GPBUtil::checkString($var, True); |
| 180 | $this->trip_id = $var; |
| 181 | |
| 182 | return $this; |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * The trip_headsign field contains the text that appears on a sign that identifies the trip's destination to passengers. |
| 187 | * |
| 188 | * Generated from protobuf field <code>string trip_headsign = 4;</code> |
| 189 | * @return string |
| 190 | */ |
| 191 | public function getTripHeadsign() |
| 192 | { |
| 193 | return $this->trip_headsign; |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * The trip_headsign field contains the text that appears on a sign that identifies the trip's destination to passengers. |
| 198 | * |
| 199 | * Generated from protobuf field <code>string trip_headsign = 4;</code> |
| 200 | * @param string $var |
| 201 | * @return $this |
| 202 | */ |
| 203 | public function setTripHeadsign($var) |
| 204 | { |
| 205 | GPBUtil::checkString($var, True); |
| 206 | $this->trip_headsign = $var; |
| 207 | |
| 208 | return $this; |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * The trip_short_name field contains the text that appears in schedules and sign boards to identify the trip to passengers. |
| 213 | * |
| 214 | * Generated from protobuf field <code>string trip_short_name = 5;</code> |
| 215 | * @return string |
| 216 | */ |
| 217 | public function getTripShortName() |
| 218 | { |
| 219 | return $this->trip_short_name; |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * The trip_short_name field contains the text that appears in schedules and sign boards to identify the trip to passengers. |
| 224 | * |
| 225 | * Generated from protobuf field <code>string trip_short_name = 5;</code> |
| 226 | * @param string $var |
| 227 | * @return $this |
| 228 | */ |
| 229 | public function setTripShortName($var) |
| 230 | { |
| 231 | GPBUtil::checkString($var, True); |
| 232 | $this->trip_short_name = $var; |
| 233 | |
| 234 | return $this; |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Generated from protobuf field <code>.gtfs.Trip.Direction direction_id = 6;</code> |
| 239 | * @return int |
| 240 | */ |
| 241 | public function getDirectionId() |
| 242 | { |
| 243 | return $this->direction_id; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Generated from protobuf field <code>.gtfs.Trip.Direction direction_id = 6;</code> |
| 248 | * @param int $var |
| 249 | * @return $this |
| 250 | */ |
| 251 | public function setDirectionId($var) |
| 252 | { |
| 253 | GPBUtil::checkEnum($var, \Gtfs\Trip_Direction::class); |
| 254 | $this->direction_id = $var; |
| 255 | |
| 256 | return $this; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * The block_id field identifies the block to which the trip belongs. |
| 261 | * A block consists of two or more sequential trips made using the same vehicle, |
| 262 | * where a passenger can transfer from one trip to the next just by staying in the vehicle. |
| 263 | * |
| 264 | * Generated from protobuf field <code>string block_id = 7;</code> |
| 265 | * @return string |
| 266 | */ |
| 267 | public function getBlockId() |
| 268 | { |
| 269 | return $this->block_id; |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * The block_id field identifies the block to which the trip belongs. |
| 274 | * A block consists of two or more sequential trips made using the same vehicle, |
| 275 | * where a passenger can transfer from one trip to the next just by staying in the vehicle. |
| 276 | * |
| 277 | * Generated from protobuf field <code>string block_id = 7;</code> |
| 278 | * @param string $var |
| 279 | * @return $this |
| 280 | */ |
| 281 | public function setBlockId($var) |
| 282 | { |
| 283 | GPBUtil::checkString($var, True); |
| 284 | $this->block_id = $var; |
| 285 | |
| 286 | return $this; |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * The shape_id field contains an ID that defines a shape for the trip. |
| 291 | * |
| 292 | * Generated from protobuf field <code>string shape_id = 8;</code> |
| 293 | * @return string |
| 294 | */ |
| 295 | public function getShapeId() |
| 296 | { |
| 297 | return $this->shape_id; |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * The shape_id field contains an ID that defines a shape for the trip. |
| 302 | * |
| 303 | * Generated from protobuf field <code>string shape_id = 8;</code> |
| 304 | * @param string $var |
| 305 | * @return $this |
| 306 | */ |
| 307 | public function setShapeId($var) |
| 308 | { |
| 309 | GPBUtil::checkString($var, True); |
| 310 | $this->shape_id = $var; |
| 311 | |
| 312 | return $this; |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * The extensions namespace allows 3rd-party developers to extend the |
| 317 | * GTFS specification in order to add and evaluate new features and |
| 318 | * modifications to the spec. |
| 319 | * |
| 320 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 321 | * @return \Google\Protobuf\Any |
| 322 | */ |
| 323 | public function getExtension() |
| 324 | { |
| 325 | return $this->extension; |
| 326 | } |
| 327 | |
| 328 | /** |
| 329 | * The extensions namespace allows 3rd-party developers to extend the |
| 330 | * GTFS specification in order to add and evaluate new features and |
| 331 | * modifications to the spec. |
| 332 | * |
| 333 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 334 | * @param \Google\Protobuf\Any $var |
| 335 | * @return $this |
| 336 | */ |
| 337 | public function setExtension($var) |
| 338 | { |
| 339 | GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); |
| 340 | $this->extension = $var; |
| 341 | |
| 342 | return $this; |
| 343 | } |
| 344 | |
| 345 | } |
| 346 | |