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.Shape</code> |
| 13 | */ |
| 14 | class Shape extends \Google\Protobuf\Internal\Message |
| 15 | { |
| 16 | /** |
| 17 | * Generated from protobuf field <code>string shape_id = 1;</code> |
| 18 | */ |
| 19 | protected $shape_id = ''; |
| 20 | /** |
| 21 | * Generated from protobuf field <code>float shape_pt_lat = 2;</code> |
| 22 | */ |
| 23 | protected $shape_pt_lat = 0.0; |
| 24 | /** |
| 25 | * Generated from protobuf field <code>float shape_pt_lon = 3;</code> |
| 26 | */ |
| 27 | protected $shape_pt_lon = 0.0; |
| 28 | /** |
| 29 | * Generated from protobuf field <code>int32 shape_pt_sequence = 4;</code> |
| 30 | */ |
| 31 | protected $shape_pt_sequence = 0; |
| 32 | /** |
| 33 | * Generated from protobuf field <code>float shape_dist_traveled = 5;</code> |
| 34 | */ |
| 35 | protected $shape_dist_traveled = 0.0; |
| 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 $shape_id |
| 52 | * @type float $shape_pt_lat |
| 53 | * @type float $shape_pt_lon |
| 54 | * @type int $shape_pt_sequence |
| 55 | * @type float $shape_dist_traveled |
| 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 shape_id = 1;</code> |
| 69 | * @return string |
| 70 | */ |
| 71 | public function getShapeId() |
| 72 | { |
| 73 | return $this->shape_id; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Generated from protobuf field <code>string shape_id = 1;</code> |
| 78 | * @param string $var |
| 79 | * @return $this |
| 80 | */ |
| 81 | public function setShapeId($var) |
| 82 | { |
| 83 | GPBUtil::checkString($var, True); |
| 84 | $this->shape_id = $var; |
| 85 | |
| 86 | return $this; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Generated from protobuf field <code>float shape_pt_lat = 2;</code> |
| 91 | * @return float |
| 92 | */ |
| 93 | public function getShapePtLat() |
| 94 | { |
| 95 | return $this->shape_pt_lat; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Generated from protobuf field <code>float shape_pt_lat = 2;</code> |
| 100 | * @param float $var |
| 101 | * @return $this |
| 102 | */ |
| 103 | public function setShapePtLat($var) |
| 104 | { |
| 105 | GPBUtil::checkFloat($var); |
| 106 | $this->shape_pt_lat = $var; |
| 107 | |
| 108 | return $this; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Generated from protobuf field <code>float shape_pt_lon = 3;</code> |
| 113 | * @return float |
| 114 | */ |
| 115 | public function getShapePtLon() |
| 116 | { |
| 117 | return $this->shape_pt_lon; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Generated from protobuf field <code>float shape_pt_lon = 3;</code> |
| 122 | * @param float $var |
| 123 | * @return $this |
| 124 | */ |
| 125 | public function setShapePtLon($var) |
| 126 | { |
| 127 | GPBUtil::checkFloat($var); |
| 128 | $this->shape_pt_lon = $var; |
| 129 | |
| 130 | return $this; |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Generated from protobuf field <code>int32 shape_pt_sequence = 4;</code> |
| 135 | * @return int |
| 136 | */ |
| 137 | public function getShapePtSequence() |
| 138 | { |
| 139 | return $this->shape_pt_sequence; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Generated from protobuf field <code>int32 shape_pt_sequence = 4;</code> |
| 144 | * @param int $var |
| 145 | * @return $this |
| 146 | */ |
| 147 | public function setShapePtSequence($var) |
| 148 | { |
| 149 | GPBUtil::checkInt32($var); |
| 150 | $this->shape_pt_sequence = $var; |
| 151 | |
| 152 | return $this; |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Generated from protobuf field <code>float shape_dist_traveled = 5;</code> |
| 157 | * @return float |
| 158 | */ |
| 159 | public function getShapeDistTraveled() |
| 160 | { |
| 161 | return $this->shape_dist_traveled; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Generated from protobuf field <code>float shape_dist_traveled = 5;</code> |
| 166 | * @param float $var |
| 167 | * @return $this |
| 168 | */ |
| 169 | public function setShapeDistTraveled($var) |
| 170 | { |
| 171 | GPBUtil::checkFloat($var); |
| 172 | $this->shape_dist_traveled = $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 | |