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