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.CalendarDate</code> |
| 13 | */ |
| 14 | class CalendarDate 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>string date = 2;</code> |
| 24 | */ |
| 25 | protected $date = ''; |
| 26 | /** |
| 27 | * Generated from protobuf field <code>.gtfs.CalendarDate.ExceptionType exception_type = 3;</code> |
| 28 | */ |
| 29 | protected $exception_type = 0; |
| 30 | /** |
| 31 | * The extensions namespace allows 3rd-party developers to extend the |
| 32 | * GTFS specification in order to add and evaluate new features and |
| 33 | * modifications to the spec. |
| 34 | * |
| 35 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 36 | */ |
| 37 | protected $extension = null; |
| 38 | |
| 39 | /** |
| 40 | * Constructor. |
| 41 | * |
| 42 | * @param array $data { |
| 43 | * Optional. Data for populating the Message object. |
| 44 | * |
| 45 | * @type string $service_id |
| 46 | * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique. |
| 47 | * @type string $date |
| 48 | * @type int $exception_type |
| 49 | * @type \Google\Protobuf\Any $extension |
| 50 | * The extensions namespace allows 3rd-party developers to extend the |
| 51 | * GTFS specification in order to add and evaluate new features and |
| 52 | * modifications to the spec. |
| 53 | * } |
| 54 | */ |
| 55 | public function __construct($data = NULL) { |
| 56 | \GPBMetadata\Proto\Gtfs::initOnce(); |
| 57 | parent::__construct($data); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique. |
| 62 | * |
| 63 | * Generated from protobuf field <code>string service_id = 1;</code> |
| 64 | * @return string |
| 65 | */ |
| 66 | public function getServiceId() |
| 67 | { |
| 68 | return $this->service_id; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique. |
| 73 | * |
| 74 | * Generated from protobuf field <code>string service_id = 1;</code> |
| 75 | * @param string $var |
| 76 | * @return $this |
| 77 | */ |
| 78 | public function setServiceId($var) |
| 79 | { |
| 80 | GPBUtil::checkString($var, True); |
| 81 | $this->service_id = $var; |
| 82 | |
| 83 | return $this; |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Generated from protobuf field <code>string date = 2;</code> |
| 88 | * @return string |
| 89 | */ |
| 90 | public function getDate() |
| 91 | { |
| 92 | return $this->date; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Generated from protobuf field <code>string date = 2;</code> |
| 97 | * @param string $var |
| 98 | * @return $this |
| 99 | */ |
| 100 | public function setDate($var) |
| 101 | { |
| 102 | GPBUtil::checkString($var, True); |
| 103 | $this->date = $var; |
| 104 | |
| 105 | return $this; |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Generated from protobuf field <code>.gtfs.CalendarDate.ExceptionType exception_type = 3;</code> |
| 110 | * @return int |
| 111 | */ |
| 112 | public function getExceptionType() |
| 113 | { |
| 114 | return $this->exception_type; |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Generated from protobuf field <code>.gtfs.CalendarDate.ExceptionType exception_type = 3;</code> |
| 119 | * @param int $var |
| 120 | * @return $this |
| 121 | */ |
| 122 | public function setExceptionType($var) |
| 123 | { |
| 124 | GPBUtil::checkEnum($var, \Gtfs\CalendarDate_ExceptionType::class); |
| 125 | $this->exception_type = $var; |
| 126 | |
| 127 | return $this; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * The extensions namespace allows 3rd-party developers to extend the |
| 132 | * GTFS specification in order to add and evaluate new features and |
| 133 | * modifications to the spec. |
| 134 | * |
| 135 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 136 | * @return \Google\Protobuf\Any |
| 137 | */ |
| 138 | public function getExtension() |
| 139 | { |
| 140 | return $this->extension; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * The extensions namespace allows 3rd-party developers to extend the |
| 145 | * GTFS specification in order to add and evaluate new features and |
| 146 | * modifications to the spec. |
| 147 | * |
| 148 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 149 | * @param \Google\Protobuf\Any $var |
| 150 | * @return $this |
| 151 | */ |
| 152 | public function setExtension($var) |
| 153 | { |
| 154 | GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); |
| 155 | $this->extension = $var; |
| 156 | |
| 157 | return $this; |
| 158 | } |
| 159 | |
| 160 | } |
| 161 | |