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.FareRule</code> |
| 13 | */ |
| 14 | class FareRule extends \Google\Protobuf\Internal\Message |
| 15 | { |
| 16 | /** |
| 17 | * Generated from protobuf field <code>string fare_id = 1;</code> |
| 18 | */ |
| 19 | protected $fare_id = ''; |
| 20 | /** |
| 21 | * Generated from protobuf field <code>string route_id = 2;</code> |
| 22 | */ |
| 23 | protected $route_id = ''; |
| 24 | /** |
| 25 | * Generated from protobuf field <code>string origin_id = 3;</code> |
| 26 | */ |
| 27 | protected $origin_id = ''; |
| 28 | /** |
| 29 | * Generated from protobuf field <code>string destination_id = 4;</code> |
| 30 | */ |
| 31 | protected $destination_id = ''; |
| 32 | /** |
| 33 | * Generated from protobuf field <code>string contains_id = 5;</code> |
| 34 | */ |
| 35 | protected $contains_id = ''; |
| 36 | /** |
| 37 | * The extensions namespace allows 3rd-party developers to extend the |
| 38 | * GTFS specification in order to add and evaluate new features and |
| 39 | * modifications to the spec. |
| 40 | * |
| 41 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 42 | */ |
| 43 | protected $extension = null; |
| 44 | |
| 45 | /** |
| 46 | * Constructor. |
| 47 | * |
| 48 | * @param array $data { |
| 49 | * Optional. Data for populating the Message object. |
| 50 | * |
| 51 | * @type string $fare_id |
| 52 | * @type string $route_id |
| 53 | * @type string $origin_id |
| 54 | * @type string $destination_id |
| 55 | * @type string $contains_id |
| 56 | * @type \Google\Protobuf\Any $extension |
| 57 | * The extensions namespace allows 3rd-party developers to extend the |
| 58 | * GTFS specification in order to add and evaluate new features and |
| 59 | * modifications to the spec. |
| 60 | * } |
| 61 | */ |
| 62 | public function __construct($data = NULL) { |
| 63 | \GPBMetadata\Proto\Gtfs::initOnce(); |
| 64 | parent::__construct($data); |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Generated from protobuf field <code>string fare_id = 1;</code> |
| 69 | * @return string |
| 70 | */ |
| 71 | public function getFareId() |
| 72 | { |
| 73 | return $this->fare_id; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Generated from protobuf field <code>string fare_id = 1;</code> |
| 78 | * @param string $var |
| 79 | * @return $this |
| 80 | */ |
| 81 | public function setFareId($var) |
| 82 | { |
| 83 | GPBUtil::checkString($var, True); |
| 84 | $this->fare_id = $var; |
| 85 | |
| 86 | return $this; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Generated from protobuf field <code>string route_id = 2;</code> |
| 91 | * @return string |
| 92 | */ |
| 93 | public function getRouteId() |
| 94 | { |
| 95 | return $this->route_id; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Generated from protobuf field <code>string route_id = 2;</code> |
| 100 | * @param string $var |
| 101 | * @return $this |
| 102 | */ |
| 103 | public function setRouteId($var) |
| 104 | { |
| 105 | GPBUtil::checkString($var, True); |
| 106 | $this->route_id = $var; |
| 107 | |
| 108 | return $this; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Generated from protobuf field <code>string origin_id = 3;</code> |
| 113 | * @return string |
| 114 | */ |
| 115 | public function getOriginId() |
| 116 | { |
| 117 | return $this->origin_id; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Generated from protobuf field <code>string origin_id = 3;</code> |
| 122 | * @param string $var |
| 123 | * @return $this |
| 124 | */ |
| 125 | public function setOriginId($var) |
| 126 | { |
| 127 | GPBUtil::checkString($var, True); |
| 128 | $this->origin_id = $var; |
| 129 | |
| 130 | return $this; |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Generated from protobuf field <code>string destination_id = 4;</code> |
| 135 | * @return string |
| 136 | */ |
| 137 | public function getDestinationId() |
| 138 | { |
| 139 | return $this->destination_id; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Generated from protobuf field <code>string destination_id = 4;</code> |
| 144 | * @param string $var |
| 145 | * @return $this |
| 146 | */ |
| 147 | public function setDestinationId($var) |
| 148 | { |
| 149 | GPBUtil::checkString($var, True); |
| 150 | $this->destination_id = $var; |
| 151 | |
| 152 | return $this; |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Generated from protobuf field <code>string contains_id = 5;</code> |
| 157 | * @return string |
| 158 | */ |
| 159 | public function getContainsId() |
| 160 | { |
| 161 | return $this->contains_id; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Generated from protobuf field <code>string contains_id = 5;</code> |
| 166 | * @param string $var |
| 167 | * @return $this |
| 168 | */ |
| 169 | public function setContainsId($var) |
| 170 | { |
| 171 | GPBUtil::checkString($var, True); |
| 172 | $this->contains_id = $var; |
| 173 | |
| 174 | return $this; |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * The extensions namespace allows 3rd-party developers to extend the |
| 179 | * GTFS specification in order to add and evaluate new features and |
| 180 | * modifications to the spec. |
| 181 | * |
| 182 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 183 | * @return \Google\Protobuf\Any |
| 184 | */ |
| 185 | public function getExtension() |
| 186 | { |
| 187 | return $this->extension; |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * The extensions namespace allows 3rd-party developers to extend the |
| 192 | * GTFS specification in order to add and evaluate new features and |
| 193 | * modifications to the spec. |
| 194 | * |
| 195 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 196 | * @param \Google\Protobuf\Any $var |
| 197 | * @return $this |
| 198 | */ |
| 199 | public function setExtension($var) |
| 200 | { |
| 201 | GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); |
| 202 | $this->extension = $var; |
| 203 | |
| 204 | return $this; |
| 205 | } |
| 206 | |
| 207 | } |
| 208 | |