blob: 88ae19e9b0f051f728eb87a1cd462588c5286fc6 [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 * Metadata about a feed, included in feed messages.
13 *
14 * Generated from protobuf message <code>gtfs.FeedHeader</code>
15 */
16class FeedHeader extends \Google\Protobuf\Internal\Message
17{
18 /**
19 * Version of the feed specification.
20 * The current version is 1.0.
21 *
22 * Generated from protobuf field <code>string gtfs_version = 1;</code>
23 */
24 protected $gtfs_version = '';
25 /**
26 * The feed_publisher_name field contains the full name of the organization that publishes the feed.
27 *
28 * Generated from protobuf field <code>string feed_publisher_name = 2;</code>
29 */
30 protected $feed_publisher_name = '';
31 /**
32 * The feed_publisher_url field contains the URL of the feed publishing organization's website.
33 *
34 * Generated from protobuf field <code>string feed_publisher_url = 3;</code>
35 */
36 protected $feed_publisher_url = '';
37 /**
38 * The feed_lang field contains a IETF BCP 47 language code specifying the default language used for the text in this feed.
39 *
40 * Generated from protobuf field <code>string feed_lang = 4;</code>
41 */
42 protected $feed_lang = '';
43 /**
44 * The feed provides complete and reliable schedule information for service in the period from the beginning of the
45 * feed_start_date day to the end of the feed_end_date day in YYYYMMDD
46 *
47 * Generated from protobuf field <code>string feed_start_date = 5;</code>
48 */
49 protected $feed_start_date = '';
50 /**
51 * Generated from protobuf field <code>string feed_end_date = 6;</code>
52 */
53 protected $feed_end_date = '';
54 /**
55 * The feed publisher can specify a string here that indicates the current version of their GTFS feed.
56 *
57 * Generated from protobuf field <code>string feed_version = 7;</code>
58 */
59 protected $feed_version = '';
60 /**
61 * The extensions namespace allows 3rd-party developers to extend the
62 * GTFS specification in order to add and evaluate new features and
63 * modifications to the spec.
64 *
65 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
66 */
67 protected $extension = null;
68
69 /**
70 * Constructor.
71 *
72 * @param array $data {
73 * Optional. Data for populating the Message object.
74 *
75 * @type string $gtfs_version
76 * Version of the feed specification.
77 * The current version is 1.0.
78 * @type string $feed_publisher_name
79 * The feed_publisher_name field contains the full name of the organization that publishes the feed.
80 * @type string $feed_publisher_url
81 * The feed_publisher_url field contains the URL of the feed publishing organization's website.
82 * @type string $feed_lang
83 * The feed_lang field contains a IETF BCP 47 language code specifying the default language used for the text in this feed.
84 * @type string $feed_start_date
85 * The feed provides complete and reliable schedule information for service in the period from the beginning of the
86 * feed_start_date day to the end of the feed_end_date day in YYYYMMDD
87 * @type string $feed_end_date
88 * @type string $feed_version
89 * The feed publisher can specify a string here that indicates the current version of their GTFS feed.
90 * @type \Google\Protobuf\Any $extension
91 * The extensions namespace allows 3rd-party developers to extend the
92 * GTFS specification in order to add and evaluate new features and
93 * modifications to the spec.
94 * }
95 */
96 public function __construct($data = NULL) {
97 \GPBMetadata\Proto\Gtfs::initOnce();
98 parent::__construct($data);
99 }
100
101 /**
102 * Version of the feed specification.
103 * The current version is 1.0.
104 *
105 * Generated from protobuf field <code>string gtfs_version = 1;</code>
106 * @return string
107 */
108 public function getGtfsVersion()
109 {
110 return $this->gtfs_version;
111 }
112
113 /**
114 * Version of the feed specification.
115 * The current version is 1.0.
116 *
117 * Generated from protobuf field <code>string gtfs_version = 1;</code>
118 * @param string $var
119 * @return $this
120 */
121 public function setGtfsVersion($var)
122 {
123 GPBUtil::checkString($var, True);
124 $this->gtfs_version = $var;
125
126 return $this;
127 }
128
129 /**
130 * The feed_publisher_name field contains the full name of the organization that publishes the feed.
131 *
132 * Generated from protobuf field <code>string feed_publisher_name = 2;</code>
133 * @return string
134 */
135 public function getFeedPublisherName()
136 {
137 return $this->feed_publisher_name;
138 }
139
140 /**
141 * The feed_publisher_name field contains the full name of the organization that publishes the feed.
142 *
143 * Generated from protobuf field <code>string feed_publisher_name = 2;</code>
144 * @param string $var
145 * @return $this
146 */
147 public function setFeedPublisherName($var)
148 {
149 GPBUtil::checkString($var, True);
150 $this->feed_publisher_name = $var;
151
152 return $this;
153 }
154
155 /**
156 * The feed_publisher_url field contains the URL of the feed publishing organization's website.
157 *
158 * Generated from protobuf field <code>string feed_publisher_url = 3;</code>
159 * @return string
160 */
161 public function getFeedPublisherUrl()
162 {
163 return $this->feed_publisher_url;
164 }
165
166 /**
167 * The feed_publisher_url field contains the URL of the feed publishing organization's website.
168 *
169 * Generated from protobuf field <code>string feed_publisher_url = 3;</code>
170 * @param string $var
171 * @return $this
172 */
173 public function setFeedPublisherUrl($var)
174 {
175 GPBUtil::checkString($var, True);
176 $this->feed_publisher_url = $var;
177
178 return $this;
179 }
180
181 /**
182 * The feed_lang field contains a IETF BCP 47 language code specifying the default language used for the text in this feed.
183 *
184 * Generated from protobuf field <code>string feed_lang = 4;</code>
185 * @return string
186 */
187 public function getFeedLang()
188 {
189 return $this->feed_lang;
190 }
191
192 /**
193 * The feed_lang field contains a IETF BCP 47 language code specifying the default language used for the text in this feed.
194 *
195 * Generated from protobuf field <code>string feed_lang = 4;</code>
196 * @param string $var
197 * @return $this
198 */
199 public function setFeedLang($var)
200 {
201 GPBUtil::checkString($var, True);
202 $this->feed_lang = $var;
203
204 return $this;
205 }
206
207 /**
208 * The feed provides complete and reliable schedule information for service in the period from the beginning of the
209 * feed_start_date day to the end of the feed_end_date day in YYYYMMDD
210 *
211 * Generated from protobuf field <code>string feed_start_date = 5;</code>
212 * @return string
213 */
214 public function getFeedStartDate()
215 {
216 return $this->feed_start_date;
217 }
218
219 /**
220 * The feed provides complete and reliable schedule information for service in the period from the beginning of the
221 * feed_start_date day to the end of the feed_end_date day in YYYYMMDD
222 *
223 * Generated from protobuf field <code>string feed_start_date = 5;</code>
224 * @param string $var
225 * @return $this
226 */
227 public function setFeedStartDate($var)
228 {
229 GPBUtil::checkString($var, True);
230 $this->feed_start_date = $var;
231
232 return $this;
233 }
234
235 /**
236 * Generated from protobuf field <code>string feed_end_date = 6;</code>
237 * @return string
238 */
239 public function getFeedEndDate()
240 {
241 return $this->feed_end_date;
242 }
243
244 /**
245 * Generated from protobuf field <code>string feed_end_date = 6;</code>
246 * @param string $var
247 * @return $this
248 */
249 public function setFeedEndDate($var)
250 {
251 GPBUtil::checkString($var, True);
252 $this->feed_end_date = $var;
253
254 return $this;
255 }
256
257 /**
258 * The feed publisher can specify a string here that indicates the current version of their GTFS feed.
259 *
260 * Generated from protobuf field <code>string feed_version = 7;</code>
261 * @return string
262 */
263 public function getFeedVersion()
264 {
265 return $this->feed_version;
266 }
267
268 /**
269 * The feed publisher can specify a string here that indicates the current version of their GTFS feed.
270 *
271 * Generated from protobuf field <code>string feed_version = 7;</code>
272 * @param string $var
273 * @return $this
274 */
275 public function setFeedVersion($var)
276 {
277 GPBUtil::checkString($var, True);
278 $this->feed_version = $var;
279
280 return $this;
281 }
282
283 /**
284 * The extensions namespace allows 3rd-party developers to extend the
285 * GTFS specification in order to add and evaluate new features and
286 * modifications to the spec.
287 *
288 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
289 * @return \Google\Protobuf\Any
290 */
291 public function getExtension()
292 {
293 return $this->extension;
294 }
295
296 /**
297 * The extensions namespace allows 3rd-party developers to extend the
298 * GTFS specification in order to add and evaluate new features and
299 * modifications to the spec.
300 *
301 * Generated from protobuf field <code>.google.protobuf.Any extension = 2000;</code>
302 * @param \Google\Protobuf\Any $var
303 * @return $this
304 */
305 public function setExtension($var)
306 {
307 GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
308 $this->extension = $var;
309
310 return $this;
311 }
312
313}
314