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