-
Notifications
You must be signed in to change notification settings - Fork 1
/
nyct-subway.pb.go
322 lines (292 loc) · 13.7 KB
/
nyct-subway.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
// Code generated by protoc-gen-go.
// source: nyct-subway.proto
// DO NOT EDIT!
package main
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// The direction the train is moving.
type NyctTripDescriptor_Direction int32
const (
NyctTripDescriptor_NORTH NyctTripDescriptor_Direction = 1
NyctTripDescriptor_EAST NyctTripDescriptor_Direction = 2
NyctTripDescriptor_SOUTH NyctTripDescriptor_Direction = 3
NyctTripDescriptor_WEST NyctTripDescriptor_Direction = 4
)
var NyctTripDescriptor_Direction_name = map[int32]string{
1: "NORTH",
2: "EAST",
3: "SOUTH",
4: "WEST",
}
var NyctTripDescriptor_Direction_value = map[string]int32{
"NORTH": 1,
"EAST": 2,
"SOUTH": 3,
"WEST": 4,
}
func (x NyctTripDescriptor_Direction) Enum() *NyctTripDescriptor_Direction {
p := new(NyctTripDescriptor_Direction)
*p = x
return p
}
func (x NyctTripDescriptor_Direction) String() string {
return proto.EnumName(NyctTripDescriptor_Direction_name, int32(x))
}
func (x *NyctTripDescriptor_Direction) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(NyctTripDescriptor_Direction_value, data, "NyctTripDescriptor_Direction")
if err != nil {
return err
}
*x = NyctTripDescriptor_Direction(value)
return nil
}
func (NyctTripDescriptor_Direction) EnumDescriptor() ([]byte, []int) {
return fileDescriptor1, []int{2, 0}
}
type TripReplacementPeriod struct {
// The replacement period is for this route
RouteId *string `protobuf:"bytes,1,opt,name=route_id" json:"route_id,omitempty"`
// The start time is omitted, the end time is currently now + 30 minutes for
// all routes of the A division
ReplacementPeriod *TimeRange `protobuf:"bytes,2,opt,name=replacement_period" json:"replacement_period,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *TripReplacementPeriod) Reset() { *m = TripReplacementPeriod{} }
func (m *TripReplacementPeriod) String() string { return proto.CompactTextString(m) }
func (*TripReplacementPeriod) ProtoMessage() {}
func (*TripReplacementPeriod) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *TripReplacementPeriod) GetRouteId() string {
if m != nil && m.RouteId != nil {
return *m.RouteId
}
return ""
}
func (m *TripReplacementPeriod) GetReplacementPeriod() *TimeRange {
if m != nil {
return m.ReplacementPeriod
}
return nil
}
// NYCT Subway extensions for the feed header
type NyctFeedHeader struct {
// Version of the NYCT Subway extensions
// The current version is 1.0
NyctSubwayVersion *string `protobuf:"bytes,1,req,name=nyct_subway_version" json:"nyct_subway_version,omitempty"`
// For the NYCT Subway, the GTFS-realtime feed replaces any scheduled
// trip within the trip_replacement_period.
// This feed is a full dataset, it contains all trips starting
// in the trip_replacement_period. If a trip from the static GTFS is not
// found in the GTFS-realtime feed, it should be considered as cancelled.
// The replacement period can be different for each route, so here is
// a list of the routes where the trips in the feed replace all
// scheduled trips within the replacement period.
TripReplacementPeriod []*TripReplacementPeriod `protobuf:"bytes,2,rep,name=trip_replacement_period" json:"trip_replacement_period,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *NyctFeedHeader) Reset() { *m = NyctFeedHeader{} }
func (m *NyctFeedHeader) String() string { return proto.CompactTextString(m) }
func (*NyctFeedHeader) ProtoMessage() {}
func (*NyctFeedHeader) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *NyctFeedHeader) GetNyctSubwayVersion() string {
if m != nil && m.NyctSubwayVersion != nil {
return *m.NyctSubwayVersion
}
return ""
}
func (m *NyctFeedHeader) GetTripReplacementPeriod() []*TripReplacementPeriod {
if m != nil {
return m.TripReplacementPeriod
}
return nil
}
// NYCT Subway extensions for the trip descriptor
type NyctTripDescriptor struct {
// The nyct_train_id is meant for internal use only. It provides an
// easy way to associated GTFS-realtime trip identifiers with NYCT rail
// operations identifier
//
// The ATS office system assigns unique train identification (Train ID) to
// each train operating within or ready to enter the mainline of the
// monitored territory. An example of this is 06 0123+ PEL/BBR and is decoded
// as follows:
//
// The first character represents the trip type designator. 0 identifies a
// scheduled revenue trip. Other revenue trip values that are a result of a
// change to the base schedule include; [= reroute], [/ skip stop], [$ turn
// train] also known as shortly lined service.
//
// The second character 6 represents the trip line i.e. number 6 train The
// third set of characters identify the decoded origin time. The last
// character may be blank "on the whole minute" or + "30 seconds"
//
// Note: Origin times will not change when there is a trip type change. This
// is followed by a three character "Origin Location" / "Destination
// Location"
TrainId *string `protobuf:"bytes,1,opt,name=train_id" json:"train_id,omitempty"`
// This trip has been assigned to a physical train. If true, this trip is
// already underway or most likely will depart shortly.
//
// Train Assignment is a function of the Automatic Train Supervision (ATS)
// office system used by NYCT Rail Operations to monitor and track train
// movements. ATS provides the ability to "assign" the nyct_train_id
// attribute when a physical train is at its origin terminal. These assigned
// trips have the is_assigned field set in the TripDescriptor.
//
// When a train is at a terminal but has not been given a work program it is
// declared unassigned and is tagged as such. Unassigned trains can be moved
// to a storage location or assigned a nyct_train_id when a determination for
// service is made.
IsAssigned *bool `protobuf:"varint,2,opt,name=is_assigned" json:"is_assigned,omitempty"`
// Uptown and Bronx-bound trains are moving NORTH.
// Times Square Shuttle to Grand Central is also northbound.
//
// Downtown and Brooklyn-bound trains are moving SOUTH.
// Times Square Shuttle to Times Square is also southbound.
//
// EAST and WEST are not used currently.
Direction *NyctTripDescriptor_Direction `protobuf:"varint,3,opt,name=direction,enum=transit_realtime.NyctTripDescriptor_Direction" json:"direction,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *NyctTripDescriptor) Reset() { *m = NyctTripDescriptor{} }
func (m *NyctTripDescriptor) String() string { return proto.CompactTextString(m) }
func (*NyctTripDescriptor) ProtoMessage() {}
func (*NyctTripDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *NyctTripDescriptor) GetTrainId() string {
if m != nil && m.TrainId != nil {
return *m.TrainId
}
return ""
}
func (m *NyctTripDescriptor) GetIsAssigned() bool {
if m != nil && m.IsAssigned != nil {
return *m.IsAssigned
}
return false
}
func (m *NyctTripDescriptor) GetDirection() NyctTripDescriptor_Direction {
if m != nil && m.Direction != nil {
return *m.Direction
}
return NyctTripDescriptor_NORTH
}
// NYCT Subway extensions for the stop time update
type NyctStopTimeUpdate struct {
// Provides the planned station arrival track. The following is the Manhattan
// track configurations:
// 1: southbound local
// 2: southbound express
// 3: northbound express
// 4: northbound local
//
// In the Bronx (except Dyre Ave line)
// M: bi-directional express (in the AM express to Manhattan, in the PM
// express away).
//
// The Dyre Ave line is configured:
// 1: southbound
// 2: northbound
// 3: bi-directional
ScheduledTrack *string `protobuf:"bytes,1,opt,name=scheduled_track" json:"scheduled_track,omitempty"`
// This is the actual track that the train is operating on and can be used to
// determine if a train is operating according to its current schedule
// (plan).
//
// The actual track is known only shortly before the train reaches a station,
// typically not before it leaves the previous station. Therefore, the NYCT
// feed sets this field only for the first station of the remaining trip.
//
// Different actual and scheduled track is the result of manually rerouting a
// train off it scheduled path. When this occurs, prediction data may become
// unreliable since the train is no longer operating in accordance to its
// schedule. The rules engine for the 'countdown' clocks will remove this
// train from all schedule stations.
ActualTrack *string `protobuf:"bytes,2,opt,name=actual_track" json:"actual_track,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *NyctStopTimeUpdate) Reset() { *m = NyctStopTimeUpdate{} }
func (m *NyctStopTimeUpdate) String() string { return proto.CompactTextString(m) }
func (*NyctStopTimeUpdate) ProtoMessage() {}
func (*NyctStopTimeUpdate) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *NyctStopTimeUpdate) GetScheduledTrack() string {
if m != nil && m.ScheduledTrack != nil {
return *m.ScheduledTrack
}
return ""
}
func (m *NyctStopTimeUpdate) GetActualTrack() string {
if m != nil && m.ActualTrack != nil {
return *m.ActualTrack
}
return ""
}
var E_NyctFeedHeader = &proto.ExtensionDesc{
ExtendedType: (*FeedHeader)(nil),
ExtensionType: (*NyctFeedHeader)(nil),
Field: 1001,
Name: "transit_realtime.nyct_feed_header",
Tag: "bytes,1001,opt,name=nyct_feed_header",
Filename: "nyct-subway.proto",
}
var E_NyctTripDescriptor = &proto.ExtensionDesc{
ExtendedType: (*TripDescriptor)(nil),
ExtensionType: (*NyctTripDescriptor)(nil),
Field: 1001,
Name: "transit_realtime.nyct_trip_descriptor",
Tag: "bytes,1001,opt,name=nyct_trip_descriptor",
Filename: "nyct-subway.proto",
}
var E_NyctStopTimeUpdate = &proto.ExtensionDesc{
ExtendedType: (*TripUpdate_StopTimeUpdate)(nil),
ExtensionType: (*NyctStopTimeUpdate)(nil),
Field: 1001,
Name: "transit_realtime.nyct_stop_time_update",
Tag: "bytes,1001,opt,name=nyct_stop_time_update",
Filename: "nyct-subway.proto",
}
func init() {
proto.RegisterType((*TripReplacementPeriod)(nil), "transit_realtime.TripReplacementPeriod")
proto.RegisterType((*NyctFeedHeader)(nil), "transit_realtime.NyctFeedHeader")
proto.RegisterType((*NyctTripDescriptor)(nil), "transit_realtime.NyctTripDescriptor")
proto.RegisterType((*NyctStopTimeUpdate)(nil), "transit_realtime.NyctStopTimeUpdate")
proto.RegisterEnum("transit_realtime.NyctTripDescriptor_Direction", NyctTripDescriptor_Direction_name, NyctTripDescriptor_Direction_value)
proto.RegisterExtension(E_NyctFeedHeader)
proto.RegisterExtension(E_NyctTripDescriptor)
proto.RegisterExtension(E_NyctStopTimeUpdate)
}
func init() { proto.RegisterFile("nyct-subway.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 440 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x52, 0xd1, 0x6a, 0xd4, 0x40,
0x14, 0x65, 0x77, 0x2b, 0x6e, 0x6e, 0xa5, 0xc6, 0xd9, 0x96, 0x2e, 0xae, 0xc2, 0x12, 0x04, 0x05,
0x69, 0x1e, 0x0a, 0x22, 0xec, 0x5b, 0xb5, 0x95, 0x7d, 0x6a, 0x65, 0x37, 0x45, 0x7c, 0x1a, 0xa6,
0x33, 0xb7, 0xe9, 0x60, 0x36, 0x13, 0x67, 0x26, 0x96, 0x7e, 0x98, 0x1f, 0xe5, 0x5f, 0x38, 0x93,
0x69, 0x0c, 0x75, 0x03, 0xfa, 0x92, 0x30, 0x67, 0xce, 0xbd, 0xe7, 0xdc, 0x73, 0x07, 0x9e, 0x95,
0x77, 0xdc, 0x1e, 0x99, 0xfa, 0xea, 0x96, 0xdd, 0xa5, 0x95, 0x56, 0x56, 0x91, 0xd8, 0x6a, 0x56,
0x1a, 0x69, 0xa9, 0x46, 0x56, 0x58, 0xb9, 0xc1, 0xe7, 0x93, 0xdc, 0x5e, 0x9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