blob: 43f1f3c6629e21f6427f2c6a8b46467ffaba10da [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: proto/gtfs.proto
4
5namespace Gtfs;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Generated from protobuf message <code>gtfs.Agency</code>
13 */
14class Agency extends \Google\Protobuf\Internal\Message
15{
16 /**
17 * The agency_id field is an ID that uniquely identifies a transit agency.
18 *
19 * Generated from protobuf field <code>string agency_id = 1;</code>
20 */
21 protected $agency_id = '';
22 /**
23 * The agency_name field contains the full name of the transit agency.
24 *
25 * Generated from protobuf field <code>string agency_name = 2;</code>
26 */
27 protected $agency_name = '';
28 /**
29 * The agency_url field contains the URL of the transit agency.
30 *
31 * Generated from protobuf field <code>string agency_url = 3;</code>
32 */
33 protected $agency_url = '';
34 /**
35 * The agency_timezone field contains the timezone where the transit agency is located.
36 *
37 * Generated from protobuf field <code>string agency_timezone = 4;</code>
38 */
39 protected $agency_timezone = '';
40 /**
41 * The agency_lang field contains a two-letter ISO 639-1 code for the primary language used by this transit agency.
42 *
43 * Generated from protobuf field <code>string agency_lang = 5;</code>
44 */
45 protected $agency_lang = '';
46 /**
47 * The agency_phone field contains a single voice telephone number for the specified agency.
48 *
49 * Generated from protobuf field <code>string agency_phone = 6;</code>
50 */
51 protected $agency_phone = '';
52 /**
53 * The agency_fare_url specifies the URL of a web page that allows a rider to purchase tickets or other fare instruments for that agency online.
54 *
55 * Generated from protobuf field <code>string agency_fare_url = 7;</code>
56 */
57 protected $agency_fare_url = '';
58 /**
59 * GTFS specification in order to add and evaluate new features and
60 * modifications to the spec.
61 *
62 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
63 */
64 protected $extension = null;
65
66 /**
67 * Constructor.
68 *
69 * @param array $data {
70 * Optional. Data for populating the Message object.
71 *
72 * @type string $agency_id
73 * The agency_id field is an ID that uniquely identifies a transit agency.
74 * @type string $agency_name
75 * The agency_name field contains the full name of the transit agency.
76 * @type string $agency_url
77 * The agency_url field contains the URL of the transit agency.
78 * @type string $agency_timezone
79 * The agency_timezone field contains the timezone where the transit agency is located.
80 * @type string $agency_lang
81 * The agency_lang field contains a two-letter ISO 639-1 code for the primary language used by this transit agency.
82 * @type string $agency_phone
83 * The agency_phone field contains a single voice telephone number for the specified agency.
84 * @type string $agency_fare_url
85 * The agency_fare_url specifies the URL of a web page that allows a rider to purchase tickets or other fare instruments for that agency online.
86 * @type \Google\Protobuf\Any $extension
87 * GTFS specification in order to add and evaluate new features and
88 * modifications to the spec.
89 * }
90 */
91 public function __construct($data = NULL) {
92 \GPBMetadata\Proto\Gtfs::initOnce();
93 parent::__construct($data);
94 }
95
96 /**
97 * The agency_id field is an ID that uniquely identifies a transit agency.
98 *
99 * Generated from protobuf field <code>string agency_id = 1;</code>
100 * @return string
101 */
102 public function getAgencyId()
103 {
104 return $this->agency_id;
105 }
106
107 /**
108 * The agency_id field is an ID that uniquely identifies a transit agency.
109 *
110 * Generated from protobuf field <code>string agency_id = 1;</code>
111 * @param string $var
112 * @return $this
113 */
114 public function setAgencyId($var)
115 {
116 GPBUtil::checkString($var, True);
117 $this->agency_id = $var;
118
119 return $this;
120 }
121
122 /**
123 * The agency_name field contains the full name of the transit agency.
124 *
125 * Generated from protobuf field <code>string agency_name = 2;</code>
126 * @return string
127 */
128 public function getAgencyName()
129 {
130 return $this->agency_name;
131 }
132
133 /**
134 * The agency_name field contains the full name of the transit agency.
135 *
136 * Generated from protobuf field <code>string agency_name = 2;</code>
137 * @param string $var
138 * @return $this
139 */
140 public function setAgencyName($var)
141 {
142 GPBUtil::checkString($var, True);
143 $this->agency_name = $var;
144
145 return $this;
146 }
147
148 /**
149 * The agency_url field contains the URL of the transit agency.
150 *
151 * Generated from protobuf field <code>string agency_url = 3;</code>
152 * @return string
153 */
154 public function getAgencyUrl()
155 {
156 return $this->agency_url;
157 }
158
159 /**
160 * The agency_url field contains the URL of the transit agency.
161 *
162 * Generated from protobuf field <code>string agency_url = 3;</code>
163 * @param string $var
164 * @return $this
165 */
166 public function setAgencyUrl($var)
167 {
168 GPBUtil::checkString($var, True);
169 $this->agency_url = $var;
170
171 return $this;
172 }
173
174 /**
175 * The agency_timezone field contains the timezone where the transit agency is located.
176 *
177 * Generated from protobuf field <code>string agency_timezone = 4;</code>
178 * @return string
179 */
180 public function getAgencyTimezone()
181 {
182 return $this->agency_timezone;
183 }
184
185 /**
186 * The agency_timezone field contains the timezone where the transit agency is located.
187 *
188 * Generated from protobuf field <code>string agency_timezone = 4;</code>
189 * @param string $var
190 * @return $this
191 */
192 public function setAgencyTimezone($var)
193 {
194 GPBUtil::checkString($var, True);
195 $this->agency_timezone = $var;
196
197 return $this;
198 }
199
200 /**
201 * The agency_lang field contains a two-letter ISO 639-1 code for the primary language used by this transit agency.
202 *
203 * Generated from protobuf field <code>string agency_lang = 5;</code>
204 * @return string
205 */
206 public function getAgencyLang()
207 {
208 return $this->agency_lang;
209 }
210
211 /**
212 * The agency_lang field contains a two-letter ISO 639-1 code for the primary language used by this transit agency.
213 *
214 * Generated from protobuf field <code>string agency_lang = 5;</code>
215 * @param string $var
216 * @return $this
217 */
218 public function setAgencyLang($var)
219 {
220 GPBUtil::checkString($var, True);
221 $this->agency_lang = $var;
222
223 return $this;
224 }
225
226 /**
227 * The agency_phone field contains a single voice telephone number for the specified agency.
228 *
229 * Generated from protobuf field <code>string agency_phone = 6;</code>
230 * @return string
231 */
232 public function getAgencyPhone()
233 {
234 return $this->agency_phone;
235 }
236
237 /**
238 * The agency_phone field contains a single voice telephone number for the specified agency.
239 *
240 * Generated from protobuf field <code>string agency_phone = 6;</code>
241 * @param string $var
242 * @return $this
243 */
244 public function setAgencyPhone($var)
245 {
246 GPBUtil::checkString($var, True);
247 $this->agency_phone = $var;
248
249 return $this;
250 }
251
252 /**
253 * The agency_fare_url specifies the URL of a web page that allows a rider to purchase tickets or other fare instruments for that agency online.
254 *
255 * Generated from protobuf field <code>string agency_fare_url = 7;</code>
256 * @return string
257 */
258 public function getAgencyFareUrl()
259 {
260 return $this->agency_fare_url;
261 }
262
263 /**
264 * The agency_fare_url specifies the URL of a web page that allows a rider to purchase tickets or other fare instruments for that agency online.
265 *
266 * Generated from protobuf field <code>string agency_fare_url = 7;</code>
267 * @param string $var
268 * @return $this
269 */
270 public function setAgencyFareUrl($var)
271 {
272 GPBUtil::checkString($var, True);
273 $this->agency_fare_url = $var;
274
275 return $this;
276 }
277
278 /**
279 * GTFS specification in order to add and evaluate new features and
280 * modifications to the spec.
281 *
282 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
283 * @return \Google\Protobuf\Any
284 */
285 public function getExtension()
286 {
287 return $this->extension;
288 }
289
290 /**
291 * GTFS specification in order to add and evaluate new features and
292 * modifications to the spec.
293 *
294 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
295 * @param \Google\Protobuf\Any $var
296 * @return $this
297 */
298 public function setExtension($var)
299 {
300 GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
301 $this->extension = $var;
302
303 return $this;
304 }
305
306}
307