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.Route</code> |
| 13 | */ |
| 14 | class Route extends \Google\Protobuf\Internal\Message |
| 15 | { |
| 16 | /** |
| 17 | * The route_id field contains an ID that uniquely identifies a route. |
| 18 | * The route_id is dataset unique. |
| 19 | * |
| 20 | * Generated from protobuf field <code>string route_id = 1;</code> |
| 21 | */ |
| 22 | protected $route_id = ''; |
| 23 | /** |
| 24 | * The agency_id field defines an agency for the specified route. |
| 25 | * |
| 26 | * Generated from protobuf field <code>string agency_id = 2;</code> |
| 27 | */ |
| 28 | protected $agency_id = ''; |
| 29 | /** |
| 30 | * The route_short_name contains the short name of a route. |
| 31 | * |
| 32 | * Generated from protobuf field <code>string route_short_name = 3;</code> |
| 33 | */ |
| 34 | protected $route_short_name = ''; |
| 35 | /** |
| 36 | * The route_long_name contains the full name of a route. |
| 37 | * |
| 38 | * Generated from protobuf field <code>string route_long_name = 4;</code> |
| 39 | */ |
| 40 | protected $route_long_name = ''; |
| 41 | /** |
| 42 | * The route_desc field contains a description of a route. |
| 43 | * |
| 44 | * Generated from protobuf field <code>string route_desc = 5;</code> |
| 45 | */ |
| 46 | protected $route_desc = ''; |
| 47 | /** |
| 48 | * Generated from protobuf field <code>.gtfs.Route.RouteType route_type = 6;</code> |
| 49 | */ |
| 50 | protected $route_type = 0; |
| 51 | /** |
| 52 | * The route_url field contains the URL of a web page about that particular route. |
| 53 | * |
| 54 | * Generated from protobuf field <code>string route_url = 7;</code> |
| 55 | */ |
| 56 | protected $route_url = ''; |
| 57 | /** |
| 58 | * In systems that have colors assigned to routes, the route_color field defines a color that corresponds to a route. |
| 59 | * The color must be provided as a six-character hexadecimal number, for example, 00FFFF. |
| 60 | * |
| 61 | * Generated from protobuf field <code>string route_color = 8;</code> |
| 62 | */ |
| 63 | protected $route_color = ''; |
| 64 | /** |
| 65 | * The route_text_color field can be used to specify a legible color to use for text drawn against a background of route_color. |
| 66 | * |
| 67 | * Generated from protobuf field <code>string route_text_color = 9;</code> |
| 68 | */ |
| 69 | protected $route_text_color = ''; |
| 70 | /** |
| 71 | * The extensions namespace allows 3rd-party developers to extend the |
| 72 | * GTFS specification in order to add and evaluate new features and |
| 73 | * modifications to the spec. |
| 74 | * |
| 75 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 76 | */ |
| 77 | protected $extension = null; |
| 78 | |
| 79 | /** |
| 80 | * Constructor. |
| 81 | * |
| 82 | * @param array $data { |
| 83 | * Optional. Data for populating the Message object. |
| 84 | * |
| 85 | * @type string $route_id |
| 86 | * The route_id field contains an ID that uniquely identifies a route. |
| 87 | * The route_id is dataset unique. |
| 88 | * @type string $agency_id |
| 89 | * The agency_id field defines an agency for the specified route. |
| 90 | * @type string $route_short_name |
| 91 | * The route_short_name contains the short name of a route. |
| 92 | * @type string $route_long_name |
| 93 | * The route_long_name contains the full name of a route. |
| 94 | * @type string $route_desc |
| 95 | * The route_desc field contains a description of a route. |
| 96 | * @type int $route_type |
| 97 | * @type string $route_url |
| 98 | * The route_url field contains the URL of a web page about that particular route. |
| 99 | * @type string $route_color |
| 100 | * In systems that have colors assigned to routes, the route_color field defines a color that corresponds to a route. |
| 101 | * The color must be provided as a six-character hexadecimal number, for example, 00FFFF. |
| 102 | * @type string $route_text_color |
| 103 | * The route_text_color field can be used to specify a legible color to use for text drawn against a background of route_color. |
| 104 | * @type \Google\Protobuf\Any $extension |
| 105 | * The extensions namespace allows 3rd-party developers to extend the |
| 106 | * GTFS specification in order to add and evaluate new features and |
| 107 | * modifications to the spec. |
| 108 | * } |
| 109 | */ |
| 110 | public function __construct($data = NULL) { |
| 111 | \GPBMetadata\Proto\Gtfs::initOnce(); |
| 112 | parent::__construct($data); |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * The route_id field contains an ID that uniquely identifies a route. |
| 117 | * The route_id is dataset unique. |
| 118 | * |
| 119 | * Generated from protobuf field <code>string route_id = 1;</code> |
| 120 | * @return string |
| 121 | */ |
| 122 | public function getRouteId() |
| 123 | { |
| 124 | return $this->route_id; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * The route_id field contains an ID that uniquely identifies a route. |
| 129 | * The route_id is dataset unique. |
| 130 | * |
| 131 | * Generated from protobuf field <code>string route_id = 1;</code> |
| 132 | * @param string $var |
| 133 | * @return $this |
| 134 | */ |
| 135 | public function setRouteId($var) |
| 136 | { |
| 137 | GPBUtil::checkString($var, True); |
| 138 | $this->route_id = $var; |
| 139 | |
| 140 | return $this; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * The agency_id field defines an agency for the specified route. |
| 145 | * |
| 146 | * Generated from protobuf field <code>string agency_id = 2;</code> |
| 147 | * @return string |
| 148 | */ |
| 149 | public function getAgencyId() |
| 150 | { |
| 151 | return $this->agency_id; |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * The agency_id field defines an agency for the specified route. |
| 156 | * |
| 157 | * Generated from protobuf field <code>string agency_id = 2;</code> |
| 158 | * @param string $var |
| 159 | * @return $this |
| 160 | */ |
| 161 | public function setAgencyId($var) |
| 162 | { |
| 163 | GPBUtil::checkString($var, True); |
| 164 | $this->agency_id = $var; |
| 165 | |
| 166 | return $this; |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * The route_short_name contains the short name of a route. |
| 171 | * |
| 172 | * Generated from protobuf field <code>string route_short_name = 3;</code> |
| 173 | * @return string |
| 174 | */ |
| 175 | public function getRouteShortName() |
| 176 | { |
| 177 | return $this->route_short_name; |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * The route_short_name contains the short name of a route. |
| 182 | * |
| 183 | * Generated from protobuf field <code>string route_short_name = 3;</code> |
| 184 | * @param string $var |
| 185 | * @return $this |
| 186 | */ |
| 187 | public function setRouteShortName($var) |
| 188 | { |
| 189 | GPBUtil::checkString($var, True); |
| 190 | $this->route_short_name = $var; |
| 191 | |
| 192 | return $this; |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * The route_long_name contains the full name of a route. |
| 197 | * |
| 198 | * Generated from protobuf field <code>string route_long_name = 4;</code> |
| 199 | * @return string |
| 200 | */ |
| 201 | public function getRouteLongName() |
| 202 | { |
| 203 | return $this->route_long_name; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * The route_long_name contains the full name of a route. |
| 208 | * |
| 209 | * Generated from protobuf field <code>string route_long_name = 4;</code> |
| 210 | * @param string $var |
| 211 | * @return $this |
| 212 | */ |
| 213 | public function setRouteLongName($var) |
| 214 | { |
| 215 | GPBUtil::checkString($var, True); |
| 216 | $this->route_long_name = $var; |
| 217 | |
| 218 | return $this; |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * The route_desc field contains a description of a route. |
| 223 | * |
| 224 | * Generated from protobuf field <code>string route_desc = 5;</code> |
| 225 | * @return string |
| 226 | */ |
| 227 | public function getRouteDesc() |
| 228 | { |
| 229 | return $this->route_desc; |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * The route_desc field contains a description of a route. |
| 234 | * |
| 235 | * Generated from protobuf field <code>string route_desc = 5;</code> |
| 236 | * @param string $var |
| 237 | * @return $this |
| 238 | */ |
| 239 | public function setRouteDesc($var) |
| 240 | { |
| 241 | GPBUtil::checkString($var, True); |
| 242 | $this->route_desc = $var; |
| 243 | |
| 244 | return $this; |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Generated from protobuf field <code>.gtfs.Route.RouteType route_type = 6;</code> |
| 249 | * @return int |
| 250 | */ |
| 251 | public function getRouteType() |
| 252 | { |
| 253 | return $this->route_type; |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Generated from protobuf field <code>.gtfs.Route.RouteType route_type = 6;</code> |
| 258 | * @param int $var |
| 259 | * @return $this |
| 260 | */ |
| 261 | public function setRouteType($var) |
| 262 | { |
| 263 | GPBUtil::checkEnum($var, \Gtfs\Route_RouteType::class); |
| 264 | $this->route_type = $var; |
| 265 | |
| 266 | return $this; |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * The route_url field contains the URL of a web page about that particular route. |
| 271 | * |
| 272 | * Generated from protobuf field <code>string route_url = 7;</code> |
| 273 | * @return string |
| 274 | */ |
| 275 | public function getRouteUrl() |
| 276 | { |
| 277 | return $this->route_url; |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * The route_url field contains the URL of a web page about that particular route. |
| 282 | * |
| 283 | * Generated from protobuf field <code>string route_url = 7;</code> |
| 284 | * @param string $var |
| 285 | * @return $this |
| 286 | */ |
| 287 | public function setRouteUrl($var) |
| 288 | { |
| 289 | GPBUtil::checkString($var, True); |
| 290 | $this->route_url = $var; |
| 291 | |
| 292 | return $this; |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * In systems that have colors assigned to routes, the route_color field defines a color that corresponds to a route. |
| 297 | * The color must be provided as a six-character hexadecimal number, for example, 00FFFF. |
| 298 | * |
| 299 | * Generated from protobuf field <code>string route_color = 8;</code> |
| 300 | * @return string |
| 301 | */ |
| 302 | public function getRouteColor() |
| 303 | { |
| 304 | return $this->route_color; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * In systems that have colors assigned to routes, the route_color field defines a color that corresponds to a route. |
| 309 | * The color must be provided as a six-character hexadecimal number, for example, 00FFFF. |
| 310 | * |
| 311 | * Generated from protobuf field <code>string route_color = 8;</code> |
| 312 | * @param string $var |
| 313 | * @return $this |
| 314 | */ |
| 315 | public function setRouteColor($var) |
| 316 | { |
| 317 | GPBUtil::checkString($var, True); |
| 318 | $this->route_color = $var; |
| 319 | |
| 320 | return $this; |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * The route_text_color field can be used to specify a legible color to use for text drawn against a background of route_color. |
| 325 | * |
| 326 | * Generated from protobuf field <code>string route_text_color = 9;</code> |
| 327 | * @return string |
| 328 | */ |
| 329 | public function getRouteTextColor() |
| 330 | { |
| 331 | return $this->route_text_color; |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * The route_text_color field can be used to specify a legible color to use for text drawn against a background of route_color. |
| 336 | * |
| 337 | * Generated from protobuf field <code>string route_text_color = 9;</code> |
| 338 | * @param string $var |
| 339 | * @return $this |
| 340 | */ |
| 341 | public function setRouteTextColor($var) |
| 342 | { |
| 343 | GPBUtil::checkString($var, True); |
| 344 | $this->route_text_color = $var; |
| 345 | |
| 346 | return $this; |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * The extensions namespace allows 3rd-party developers to extend the |
| 351 | * GTFS specification in order to add and evaluate new features and |
| 352 | * modifications to the spec. |
| 353 | * |
| 354 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 355 | * @return \Google\Protobuf\Any |
| 356 | */ |
| 357 | public function getExtension() |
| 358 | { |
| 359 | return $this->extension; |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * The extensions namespace allows 3rd-party developers to extend the |
| 364 | * GTFS specification in order to add and evaluate new features and |
| 365 | * modifications to the spec. |
| 366 | * |
| 367 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 368 | * @param \Google\Protobuf\Any $var |
| 369 | * @return $this |
| 370 | */ |
| 371 | public function setExtension($var) |
| 372 | { |
| 373 | GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); |
| 374 | $this->extension = $var; |
| 375 | |
| 376 | return $this; |
| 377 | } |
| 378 | |
| 379 | } |
| 380 | |