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