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.FareAttribute</code> |
| 13 | */ |
| 14 | class FareAttribute 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>float price = 2;</code> |
| 22 | */ |
| 23 | protected $price = 0.0; |
| 24 | /** |
| 25 | * Generated from protobuf field <code>string currency_type = 3;</code> |
| 26 | */ |
| 27 | protected $currency_type = ''; |
| 28 | /** |
| 29 | * Generated from protobuf field <code>.gtfs.FareAttribute.PaymentMethod payment_method = 4;</code> |
| 30 | */ |
| 31 | protected $payment_method = 0; |
| 32 | /** |
| 33 | * Generated from protobuf field <code>.gtfs.FareAttribute.Transfers transfers = 5;</code> |
| 34 | */ |
| 35 | protected $transfers = 0; |
| 36 | /** |
| 37 | * Generated from protobuf field <code>int32 transfer_duration = 6;</code> |
| 38 | */ |
| 39 | protected $transfer_duration = 0; |
| 40 | /** |
| 41 | * The extensions namespace allows 3rd-party developers to extend the |
| 42 | * GTFS specification in order to add and evaluate new features and |
| 43 | * modifications to the spec. |
| 44 | * |
| 45 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 46 | */ |
| 47 | protected $extension = null; |
| 48 | |
| 49 | /** |
| 50 | * Constructor. |
| 51 | * |
| 52 | * @param array $data { |
| 53 | * Optional. Data for populating the Message object. |
| 54 | * |
| 55 | * @type string $fare_id |
| 56 | * @type float $price |
| 57 | * @type string $currency_type |
| 58 | * @type int $payment_method |
| 59 | * @type int $transfers |
| 60 | * @type int $transfer_duration |
| 61 | * @type \Google\Protobuf\Any $extension |
| 62 | * The extensions namespace allows 3rd-party developers to extend the |
| 63 | * GTFS specification in order to add and evaluate new features and |
| 64 | * modifications to the spec. |
| 65 | * } |
| 66 | */ |
| 67 | public function __construct($data = NULL) { |
| 68 | \GPBMetadata\Proto\Gtfs::initOnce(); |
| 69 | parent::__construct($data); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Generated from protobuf field <code>string fare_id = 1;</code> |
| 74 | * @return string |
| 75 | */ |
| 76 | public function getFareId() |
| 77 | { |
| 78 | return $this->fare_id; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Generated from protobuf field <code>string fare_id = 1;</code> |
| 83 | * @param string $var |
| 84 | * @return $this |
| 85 | */ |
| 86 | public function setFareId($var) |
| 87 | { |
| 88 | GPBUtil::checkString($var, True); |
| 89 | $this->fare_id = $var; |
| 90 | |
| 91 | return $this; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Generated from protobuf field <code>float price = 2;</code> |
| 96 | * @return float |
| 97 | */ |
| 98 | public function getPrice() |
| 99 | { |
| 100 | return $this->price; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Generated from protobuf field <code>float price = 2;</code> |
| 105 | * @param float $var |
| 106 | * @return $this |
| 107 | */ |
| 108 | public function setPrice($var) |
| 109 | { |
| 110 | GPBUtil::checkFloat($var); |
| 111 | $this->price = $var; |
| 112 | |
| 113 | return $this; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Generated from protobuf field <code>string currency_type = 3;</code> |
| 118 | * @return string |
| 119 | */ |
| 120 | public function getCurrencyType() |
| 121 | { |
| 122 | return $this->currency_type; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Generated from protobuf field <code>string currency_type = 3;</code> |
| 127 | * @param string $var |
| 128 | * @return $this |
| 129 | */ |
| 130 | public function setCurrencyType($var) |
| 131 | { |
| 132 | GPBUtil::checkString($var, True); |
| 133 | $this->currency_type = $var; |
| 134 | |
| 135 | return $this; |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Generated from protobuf field <code>.gtfs.FareAttribute.PaymentMethod payment_method = 4;</code> |
| 140 | * @return int |
| 141 | */ |
| 142 | public function getPaymentMethod() |
| 143 | { |
| 144 | return $this->payment_method; |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Generated from protobuf field <code>.gtfs.FareAttribute.PaymentMethod payment_method = 4;</code> |
| 149 | * @param int $var |
| 150 | * @return $this |
| 151 | */ |
| 152 | public function setPaymentMethod($var) |
| 153 | { |
| 154 | GPBUtil::checkEnum($var, \Gtfs\FareAttribute_PaymentMethod::class); |
| 155 | $this->payment_method = $var; |
| 156 | |
| 157 | return $this; |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Generated from protobuf field <code>.gtfs.FareAttribute.Transfers transfers = 5;</code> |
| 162 | * @return int |
| 163 | */ |
| 164 | public function getTransfers() |
| 165 | { |
| 166 | return $this->transfers; |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Generated from protobuf field <code>.gtfs.FareAttribute.Transfers transfers = 5;</code> |
| 171 | * @param int $var |
| 172 | * @return $this |
| 173 | */ |
| 174 | public function setTransfers($var) |
| 175 | { |
| 176 | GPBUtil::checkEnum($var, \Gtfs\FareAttribute_Transfers::class); |
| 177 | $this->transfers = $var; |
| 178 | |
| 179 | return $this; |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Generated from protobuf field <code>int32 transfer_duration = 6;</code> |
| 184 | * @return int |
| 185 | */ |
| 186 | public function getTransferDuration() |
| 187 | { |
| 188 | return $this->transfer_duration; |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Generated from protobuf field <code>int32 transfer_duration = 6;</code> |
| 193 | * @param int $var |
| 194 | * @return $this |
| 195 | */ |
| 196 | public function setTransferDuration($var) |
| 197 | { |
| 198 | GPBUtil::checkInt32($var); |
| 199 | $this->transfer_duration = $var; |
| 200 | |
| 201 | return $this; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * The extensions namespace allows 3rd-party developers to extend the |
| 206 | * GTFS specification in order to add and evaluate new features and |
| 207 | * modifications to the spec. |
| 208 | * |
| 209 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 210 | * @return \Google\Protobuf\Any |
| 211 | */ |
| 212 | public function getExtension() |
| 213 | { |
| 214 | return $this->extension; |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * The extensions namespace allows 3rd-party developers to extend the |
| 219 | * GTFS specification in order to add and evaluate new features and |
| 220 | * modifications to the spec. |
| 221 | * |
| 222 | * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code> |
| 223 | * @param \Google\Protobuf\Any $var |
| 224 | * @return $this |
| 225 | */ |
| 226 | public function setExtension($var) |
| 227 | { |
| 228 | GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); |
| 229 | $this->extension = $var; |
| 230 | |
| 231 | return $this; |
| 232 | } |
| 233 | |
| 234 | } |
| 235 | |