@vectora/contracts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +25 -0
- package/dist/events/auth/index.d.ts +1 -0
- package/dist/events/auth/index.js +17 -0
- package/dist/events/auth/verification-request.interface.d.ts +5 -0
- package/dist/events/auth/verification-request.interface.js +2 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +17 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/proto/index.d.ts +1 -0
- package/dist/proto/index.js +17 -0
- package/dist/proto/paths.d.ts +18 -0
- package/dist/proto/paths.js +27 -0
- package/dist/utils/data-transformer.util.d.ts +55 -0
- package/dist/utils/data-transformer.util.js +141 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/gen/go/mapbox-direction-v1.pb.go +621 -0
- package/gen/go/mapbox-geocode-v1.pb.go +473 -0
- package/gen/go/mapbox-matrix-v1.pb.go +337 -0
- package/gen/go/mapbox-optimization-v1.pb.go +422 -0
- package/gen/go/mapbox-search-v1.pb.go +699 -0
- package/gen/ts/common-geocode-v1.ts +368 -0
- package/gen/ts/common-pagination-v1.ts +713 -0
- package/gen/ts/fleet-truck-v1.ts +1102 -0
- package/gen/ts/fleet-unit-v1.ts +9 -0
- package/gen/ts/google/protobuf/field_mask.ts +295 -0
- package/gen/ts/google/protobuf/wrappers.ts +544 -0
- package/gen/ts/identify-account-v1.ts +9 -0
- package/gen/ts/identify-auth-v1.ts +9 -0
- package/gen/ts/identify-company-v1.ts +1025 -0
- package/gen/ts/identify-role-v1.ts +9 -0
- package/gen/ts/identify-user-v1.ts +9 -0
- package/gen/ts/mapbox-direction-v1.ts +718 -0
- package/gen/ts/mapbox-geocode-v1.ts +511 -0
- package/gen/ts/mapbox-matrix-v1.ts +369 -0
- package/gen/ts/mapbox-optimization-v1.ts +472 -0
- package/gen/ts/mapbox-search-v1.ts +803 -0
- package/gen/ts/shipments-freight-v1.ts +9 -0
- package/gen/ts/shipments-loads-v1.ts +9 -0
- package/gen/ts/shipments-rate-v1.ts +9 -0
- package/gen/ts/shipments-stop-v1.ts +9 -0
- package/package.json +40 -0
- package/proto/common-geocode-v1.proto +10 -0
- package/proto/common-pagination-v1.proto +39 -0
- package/proto/fleet-truck-v1.proto +145 -0
- package/proto/fleet-unit-v1.proto +3 -0
- package/proto/identify-account-v1.proto +3 -0
- package/proto/identify-auth-v1.proto +3 -0
- package/proto/identify-company-v1.proto +114 -0
- package/proto/identify-role-v1.proto +3 -0
- package/proto/identify-user-v1.proto +3 -0
- package/proto/mapbox-direction-v1.proto +61 -0
- package/proto/mapbox-geocode-v1.proto +47 -0
- package/proto/mapbox-matrix-v1.proto +34 -0
- package/proto/mapbox-optimization-v1.proto +43 -0
- package/proto/mapbox-search-v1.proto +68 -0
- package/proto/shipments-freight-v1.proto +3 -0
- package/proto/shipments-loads-v1.proto +3 -0
- package/proto/shipments-rate-v1.proto +3 -0
- package/proto/shipments-stop-v1.proto +3 -0
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-go v1.36.11
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: mapbox-direction-v1.proto
|
|
6
|
+
|
|
7
|
+
package directions_v1
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
common "github.com/vectora-os/contracts/gen/go/common"
|
|
11
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
12
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
13
|
+
reflect "reflect"
|
|
14
|
+
sync "sync"
|
|
15
|
+
unsafe "unsafe"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
const (
|
|
19
|
+
// Verify that this generated code is sufficiently up-to-date.
|
|
20
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
21
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
22
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
type DirectionsRequest struct {
|
|
26
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
27
|
+
Coordinates []*common.Point `protobuf:"bytes,1,rep,name=coordinates,proto3" json:"coordinates,omitempty"`
|
|
28
|
+
Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
|
|
29
|
+
Steps bool `protobuf:"varint,3,opt,name=steps,proto3" json:"steps,omitempty"`
|
|
30
|
+
Geometries string `protobuf:"bytes,4,opt,name=geometries,proto3" json:"geometries,omitempty"`
|
|
31
|
+
unknownFields protoimpl.UnknownFields
|
|
32
|
+
sizeCache protoimpl.SizeCache
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
func (x *DirectionsRequest) Reset() {
|
|
36
|
+
*x = DirectionsRequest{}
|
|
37
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[0]
|
|
38
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
39
|
+
ms.StoreMessageInfo(mi)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
func (x *DirectionsRequest) String() string {
|
|
43
|
+
return protoimpl.X.MessageStringOf(x)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
func (*DirectionsRequest) ProtoMessage() {}
|
|
47
|
+
|
|
48
|
+
func (x *DirectionsRequest) ProtoReflect() protoreflect.Message {
|
|
49
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[0]
|
|
50
|
+
if x != nil {
|
|
51
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
52
|
+
if ms.LoadMessageInfo() == nil {
|
|
53
|
+
ms.StoreMessageInfo(mi)
|
|
54
|
+
}
|
|
55
|
+
return ms
|
|
56
|
+
}
|
|
57
|
+
return mi.MessageOf(x)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Deprecated: Use DirectionsRequest.ProtoReflect.Descriptor instead.
|
|
61
|
+
func (*DirectionsRequest) Descriptor() ([]byte, []int) {
|
|
62
|
+
return file_mapbox_direction_v1_proto_rawDescGZIP(), []int{0}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
func (x *DirectionsRequest) GetCoordinates() []*common.Point {
|
|
66
|
+
if x != nil {
|
|
67
|
+
return x.Coordinates
|
|
68
|
+
}
|
|
69
|
+
return nil
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
func (x *DirectionsRequest) GetProfile() string {
|
|
73
|
+
if x != nil {
|
|
74
|
+
return x.Profile
|
|
75
|
+
}
|
|
76
|
+
return ""
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
func (x *DirectionsRequest) GetSteps() bool {
|
|
80
|
+
if x != nil {
|
|
81
|
+
return x.Steps
|
|
82
|
+
}
|
|
83
|
+
return false
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
func (x *DirectionsRequest) GetGeometries() string {
|
|
87
|
+
if x != nil {
|
|
88
|
+
return x.Geometries
|
|
89
|
+
}
|
|
90
|
+
return ""
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type DirectionsResponse struct {
|
|
94
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
95
|
+
Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
|
|
96
|
+
Waypoints []*Waypoint `protobuf:"bytes,2,rep,name=waypoints,proto3" json:"waypoints,omitempty"`
|
|
97
|
+
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
|
|
98
|
+
Uuid string `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"`
|
|
99
|
+
unknownFields protoimpl.UnknownFields
|
|
100
|
+
sizeCache protoimpl.SizeCache
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
func (x *DirectionsResponse) Reset() {
|
|
104
|
+
*x = DirectionsResponse{}
|
|
105
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[1]
|
|
106
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
107
|
+
ms.StoreMessageInfo(mi)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
func (x *DirectionsResponse) String() string {
|
|
111
|
+
return protoimpl.X.MessageStringOf(x)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
func (*DirectionsResponse) ProtoMessage() {}
|
|
115
|
+
|
|
116
|
+
func (x *DirectionsResponse) ProtoReflect() protoreflect.Message {
|
|
117
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[1]
|
|
118
|
+
if x != nil {
|
|
119
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
120
|
+
if ms.LoadMessageInfo() == nil {
|
|
121
|
+
ms.StoreMessageInfo(mi)
|
|
122
|
+
}
|
|
123
|
+
return ms
|
|
124
|
+
}
|
|
125
|
+
return mi.MessageOf(x)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Deprecated: Use DirectionsResponse.ProtoReflect.Descriptor instead.
|
|
129
|
+
func (*DirectionsResponse) Descriptor() ([]byte, []int) {
|
|
130
|
+
return file_mapbox_direction_v1_proto_rawDescGZIP(), []int{1}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
func (x *DirectionsResponse) GetRoutes() []*Route {
|
|
134
|
+
if x != nil {
|
|
135
|
+
return x.Routes
|
|
136
|
+
}
|
|
137
|
+
return nil
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
func (x *DirectionsResponse) GetWaypoints() []*Waypoint {
|
|
141
|
+
if x != nil {
|
|
142
|
+
return x.Waypoints
|
|
143
|
+
}
|
|
144
|
+
return nil
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
func (x *DirectionsResponse) GetCode() string {
|
|
148
|
+
if x != nil {
|
|
149
|
+
return x.Code
|
|
150
|
+
}
|
|
151
|
+
return ""
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
func (x *DirectionsResponse) GetUuid() string {
|
|
155
|
+
if x != nil {
|
|
156
|
+
return x.Uuid
|
|
157
|
+
}
|
|
158
|
+
return ""
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
type Route struct {
|
|
162
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
163
|
+
Legs []*RouteLeg `protobuf:"bytes,1,rep,name=legs,proto3" json:"legs,omitempty"`
|
|
164
|
+
Distance float64 `protobuf:"fixed64,2,opt,name=distance,proto3" json:"distance,omitempty"`
|
|
165
|
+
Duration float64 `protobuf:"fixed64,3,opt,name=duration,proto3" json:"duration,omitempty"`
|
|
166
|
+
Geometry *common.LineString `protobuf:"bytes,4,opt,name=geometry,proto3" json:"geometry,omitempty"`
|
|
167
|
+
WeightName string `protobuf:"bytes,5,opt,name=weight_name,json=weightName,proto3" json:"weight_name,omitempty"`
|
|
168
|
+
unknownFields protoimpl.UnknownFields
|
|
169
|
+
sizeCache protoimpl.SizeCache
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
func (x *Route) Reset() {
|
|
173
|
+
*x = Route{}
|
|
174
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[2]
|
|
175
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
176
|
+
ms.StoreMessageInfo(mi)
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
func (x *Route) String() string {
|
|
180
|
+
return protoimpl.X.MessageStringOf(x)
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
func (*Route) ProtoMessage() {}
|
|
184
|
+
|
|
185
|
+
func (x *Route) ProtoReflect() protoreflect.Message {
|
|
186
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[2]
|
|
187
|
+
if x != nil {
|
|
188
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
189
|
+
if ms.LoadMessageInfo() == nil {
|
|
190
|
+
ms.StoreMessageInfo(mi)
|
|
191
|
+
}
|
|
192
|
+
return ms
|
|
193
|
+
}
|
|
194
|
+
return mi.MessageOf(x)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Deprecated: Use Route.ProtoReflect.Descriptor instead.
|
|
198
|
+
func (*Route) Descriptor() ([]byte, []int) {
|
|
199
|
+
return file_mapbox_direction_v1_proto_rawDescGZIP(), []int{2}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
func (x *Route) GetLegs() []*RouteLeg {
|
|
203
|
+
if x != nil {
|
|
204
|
+
return x.Legs
|
|
205
|
+
}
|
|
206
|
+
return nil
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
func (x *Route) GetDistance() float64 {
|
|
210
|
+
if x != nil {
|
|
211
|
+
return x.Distance
|
|
212
|
+
}
|
|
213
|
+
return 0
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
func (x *Route) GetDuration() float64 {
|
|
217
|
+
if x != nil {
|
|
218
|
+
return x.Duration
|
|
219
|
+
}
|
|
220
|
+
return 0
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
func (x *Route) GetGeometry() *common.LineString {
|
|
224
|
+
if x != nil {
|
|
225
|
+
return x.Geometry
|
|
226
|
+
}
|
|
227
|
+
return nil
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
func (x *Route) GetWeightName() string {
|
|
231
|
+
if x != nil {
|
|
232
|
+
return x.WeightName
|
|
233
|
+
}
|
|
234
|
+
return ""
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
type RouteLeg struct {
|
|
238
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
239
|
+
Steps []*RouteStep `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"`
|
|
240
|
+
Distance float64 `protobuf:"fixed64,2,opt,name=distance,proto3" json:"distance,omitempty"`
|
|
241
|
+
Duration float64 `protobuf:"fixed64,3,opt,name=duration,proto3" json:"duration,omitempty"`
|
|
242
|
+
Summary string `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty"`
|
|
243
|
+
unknownFields protoimpl.UnknownFields
|
|
244
|
+
sizeCache protoimpl.SizeCache
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
func (x *RouteLeg) Reset() {
|
|
248
|
+
*x = RouteLeg{}
|
|
249
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[3]
|
|
250
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
251
|
+
ms.StoreMessageInfo(mi)
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
func (x *RouteLeg) String() string {
|
|
255
|
+
return protoimpl.X.MessageStringOf(x)
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
func (*RouteLeg) ProtoMessage() {}
|
|
259
|
+
|
|
260
|
+
func (x *RouteLeg) ProtoReflect() protoreflect.Message {
|
|
261
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[3]
|
|
262
|
+
if x != nil {
|
|
263
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
264
|
+
if ms.LoadMessageInfo() == nil {
|
|
265
|
+
ms.StoreMessageInfo(mi)
|
|
266
|
+
}
|
|
267
|
+
return ms
|
|
268
|
+
}
|
|
269
|
+
return mi.MessageOf(x)
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// Deprecated: Use RouteLeg.ProtoReflect.Descriptor instead.
|
|
273
|
+
func (*RouteLeg) Descriptor() ([]byte, []int) {
|
|
274
|
+
return file_mapbox_direction_v1_proto_rawDescGZIP(), []int{3}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
func (x *RouteLeg) GetSteps() []*RouteStep {
|
|
278
|
+
if x != nil {
|
|
279
|
+
return x.Steps
|
|
280
|
+
}
|
|
281
|
+
return nil
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
func (x *RouteLeg) GetDistance() float64 {
|
|
285
|
+
if x != nil {
|
|
286
|
+
return x.Distance
|
|
287
|
+
}
|
|
288
|
+
return 0
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
func (x *RouteLeg) GetDuration() float64 {
|
|
292
|
+
if x != nil {
|
|
293
|
+
return x.Duration
|
|
294
|
+
}
|
|
295
|
+
return 0
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
func (x *RouteLeg) GetSummary() string {
|
|
299
|
+
if x != nil {
|
|
300
|
+
return x.Summary
|
|
301
|
+
}
|
|
302
|
+
return ""
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
type RouteStep struct {
|
|
306
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
307
|
+
Maneuver *Maneuver `protobuf:"bytes,1,opt,name=maneuver,proto3" json:"maneuver,omitempty"`
|
|
308
|
+
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
309
|
+
Distance float64 `protobuf:"fixed64,3,opt,name=distance,proto3" json:"distance,omitempty"`
|
|
310
|
+
Duration float64 `protobuf:"fixed64,4,opt,name=duration,proto3" json:"duration,omitempty"`
|
|
311
|
+
Mode string `protobuf:"bytes,5,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
312
|
+
DrivingSide string `protobuf:"bytes,6,opt,name=driving_side,json=drivingSide,proto3" json:"driving_side,omitempty"`
|
|
313
|
+
unknownFields protoimpl.UnknownFields
|
|
314
|
+
sizeCache protoimpl.SizeCache
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
func (x *RouteStep) Reset() {
|
|
318
|
+
*x = RouteStep{}
|
|
319
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[4]
|
|
320
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
321
|
+
ms.StoreMessageInfo(mi)
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
func (x *RouteStep) String() string {
|
|
325
|
+
return protoimpl.X.MessageStringOf(x)
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
func (*RouteStep) ProtoMessage() {}
|
|
329
|
+
|
|
330
|
+
func (x *RouteStep) ProtoReflect() protoreflect.Message {
|
|
331
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[4]
|
|
332
|
+
if x != nil {
|
|
333
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
334
|
+
if ms.LoadMessageInfo() == nil {
|
|
335
|
+
ms.StoreMessageInfo(mi)
|
|
336
|
+
}
|
|
337
|
+
return ms
|
|
338
|
+
}
|
|
339
|
+
return mi.MessageOf(x)
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// Deprecated: Use RouteStep.ProtoReflect.Descriptor instead.
|
|
343
|
+
func (*RouteStep) Descriptor() ([]byte, []int) {
|
|
344
|
+
return file_mapbox_direction_v1_proto_rawDescGZIP(), []int{4}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
func (x *RouteStep) GetManeuver() *Maneuver {
|
|
348
|
+
if x != nil {
|
|
349
|
+
return x.Maneuver
|
|
350
|
+
}
|
|
351
|
+
return nil
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
func (x *RouteStep) GetName() string {
|
|
355
|
+
if x != nil {
|
|
356
|
+
return x.Name
|
|
357
|
+
}
|
|
358
|
+
return ""
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
func (x *RouteStep) GetDistance() float64 {
|
|
362
|
+
if x != nil {
|
|
363
|
+
return x.Distance
|
|
364
|
+
}
|
|
365
|
+
return 0
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
func (x *RouteStep) GetDuration() float64 {
|
|
369
|
+
if x != nil {
|
|
370
|
+
return x.Duration
|
|
371
|
+
}
|
|
372
|
+
return 0
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
func (x *RouteStep) GetMode() string {
|
|
376
|
+
if x != nil {
|
|
377
|
+
return x.Mode
|
|
378
|
+
}
|
|
379
|
+
return ""
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
func (x *RouteStep) GetDrivingSide() string {
|
|
383
|
+
if x != nil {
|
|
384
|
+
return x.DrivingSide
|
|
385
|
+
}
|
|
386
|
+
return ""
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
type Maneuver struct {
|
|
390
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
391
|
+
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
392
|
+
Instruction string `protobuf:"bytes,2,opt,name=instruction,proto3" json:"instruction,omitempty"`
|
|
393
|
+
Location []float64 `protobuf:"fixed64,3,rep,packed,name=location,proto3" json:"location,omitempty"`
|
|
394
|
+
Modifier *string `protobuf:"bytes,4,opt,name=modifier,proto3,oneof" json:"modifier,omitempty"`
|
|
395
|
+
unknownFields protoimpl.UnknownFields
|
|
396
|
+
sizeCache protoimpl.SizeCache
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
func (x *Maneuver) Reset() {
|
|
400
|
+
*x = Maneuver{}
|
|
401
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[5]
|
|
402
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
403
|
+
ms.StoreMessageInfo(mi)
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
func (x *Maneuver) String() string {
|
|
407
|
+
return protoimpl.X.MessageStringOf(x)
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
func (*Maneuver) ProtoMessage() {}
|
|
411
|
+
|
|
412
|
+
func (x *Maneuver) ProtoReflect() protoreflect.Message {
|
|
413
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[5]
|
|
414
|
+
if x != nil {
|
|
415
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
416
|
+
if ms.LoadMessageInfo() == nil {
|
|
417
|
+
ms.StoreMessageInfo(mi)
|
|
418
|
+
}
|
|
419
|
+
return ms
|
|
420
|
+
}
|
|
421
|
+
return mi.MessageOf(x)
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
// Deprecated: Use Maneuver.ProtoReflect.Descriptor instead.
|
|
425
|
+
func (*Maneuver) Descriptor() ([]byte, []int) {
|
|
426
|
+
return file_mapbox_direction_v1_proto_rawDescGZIP(), []int{5}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
func (x *Maneuver) GetType() string {
|
|
430
|
+
if x != nil {
|
|
431
|
+
return x.Type
|
|
432
|
+
}
|
|
433
|
+
return ""
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
func (x *Maneuver) GetInstruction() string {
|
|
437
|
+
if x != nil {
|
|
438
|
+
return x.Instruction
|
|
439
|
+
}
|
|
440
|
+
return ""
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
func (x *Maneuver) GetLocation() []float64 {
|
|
444
|
+
if x != nil {
|
|
445
|
+
return x.Location
|
|
446
|
+
}
|
|
447
|
+
return nil
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
func (x *Maneuver) GetModifier() string {
|
|
451
|
+
if x != nil && x.Modifier != nil {
|
|
452
|
+
return *x.Modifier
|
|
453
|
+
}
|
|
454
|
+
return ""
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
type Waypoint struct {
|
|
458
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
459
|
+
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
460
|
+
Location []float64 `protobuf:"fixed64,2,rep,packed,name=location,proto3" json:"location,omitempty"`
|
|
461
|
+
unknownFields protoimpl.UnknownFields
|
|
462
|
+
sizeCache protoimpl.SizeCache
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
func (x *Waypoint) Reset() {
|
|
466
|
+
*x = Waypoint{}
|
|
467
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[6]
|
|
468
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
469
|
+
ms.StoreMessageInfo(mi)
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
func (x *Waypoint) String() string {
|
|
473
|
+
return protoimpl.X.MessageStringOf(x)
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
func (*Waypoint) ProtoMessage() {}
|
|
477
|
+
|
|
478
|
+
func (x *Waypoint) ProtoReflect() protoreflect.Message {
|
|
479
|
+
mi := &file_mapbox_direction_v1_proto_msgTypes[6]
|
|
480
|
+
if x != nil {
|
|
481
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
482
|
+
if ms.LoadMessageInfo() == nil {
|
|
483
|
+
ms.StoreMessageInfo(mi)
|
|
484
|
+
}
|
|
485
|
+
return ms
|
|
486
|
+
}
|
|
487
|
+
return mi.MessageOf(x)
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// Deprecated: Use Waypoint.ProtoReflect.Descriptor instead.
|
|
491
|
+
func (*Waypoint) Descriptor() ([]byte, []int) {
|
|
492
|
+
return file_mapbox_direction_v1_proto_rawDescGZIP(), []int{6}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
func (x *Waypoint) GetName() string {
|
|
496
|
+
if x != nil {
|
|
497
|
+
return x.Name
|
|
498
|
+
}
|
|
499
|
+
return ""
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
func (x *Waypoint) GetLocation() []float64 {
|
|
503
|
+
if x != nil {
|
|
504
|
+
return x.Location
|
|
505
|
+
}
|
|
506
|
+
return nil
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
var File_mapbox_direction_v1_proto protoreflect.FileDescriptor
|
|
510
|
+
|
|
511
|
+
const file_mapbox_direction_v1_proto_rawDesc = "" +
|
|
512
|
+
"\n" +
|
|
513
|
+
"\x19mapbox-direction-v1.proto\x12\rdirections.v1\x1a\x17common-geocode-v1.proto\"\x9f\x01\n" +
|
|
514
|
+
"\x11DirectionsRequest\x12:\n" +
|
|
515
|
+
"\vcoordinates\x18\x01 \x03(\v2\x18.common_geocode.v1.PointR\vcoordinates\x12\x18\n" +
|
|
516
|
+
"\aprofile\x18\x02 \x01(\tR\aprofile\x12\x14\n" +
|
|
517
|
+
"\x05steps\x18\x03 \x01(\bR\x05steps\x12\x1e\n" +
|
|
518
|
+
"\n" +
|
|
519
|
+
"geometries\x18\x04 \x01(\tR\n" +
|
|
520
|
+
"geometries\"\xa1\x01\n" +
|
|
521
|
+
"\x12DirectionsResponse\x12,\n" +
|
|
522
|
+
"\x06routes\x18\x01 \x03(\v2\x14.directions.v1.RouteR\x06routes\x125\n" +
|
|
523
|
+
"\twaypoints\x18\x02 \x03(\v2\x17.directions.v1.WaypointR\twaypoints\x12\x12\n" +
|
|
524
|
+
"\x04code\x18\x03 \x01(\tR\x04code\x12\x12\n" +
|
|
525
|
+
"\x04uuid\x18\x04 \x01(\tR\x04uuid\"\xc8\x01\n" +
|
|
526
|
+
"\x05Route\x12+\n" +
|
|
527
|
+
"\x04legs\x18\x01 \x03(\v2\x17.directions.v1.RouteLegR\x04legs\x12\x1a\n" +
|
|
528
|
+
"\bdistance\x18\x02 \x01(\x01R\bdistance\x12\x1a\n" +
|
|
529
|
+
"\bduration\x18\x03 \x01(\x01R\bduration\x129\n" +
|
|
530
|
+
"\bgeometry\x18\x04 \x01(\v2\x1d.common_geocode.v1.LineStringR\bgeometry\x12\x1f\n" +
|
|
531
|
+
"\vweight_name\x18\x05 \x01(\tR\n" +
|
|
532
|
+
"weightName\"\x8c\x01\n" +
|
|
533
|
+
"\bRouteLeg\x12.\n" +
|
|
534
|
+
"\x05steps\x18\x01 \x03(\v2\x18.directions.v1.RouteStepR\x05steps\x12\x1a\n" +
|
|
535
|
+
"\bdistance\x18\x02 \x01(\x01R\bdistance\x12\x1a\n" +
|
|
536
|
+
"\bduration\x18\x03 \x01(\x01R\bduration\x12\x18\n" +
|
|
537
|
+
"\asummary\x18\x04 \x01(\tR\asummary\"\xc3\x01\n" +
|
|
538
|
+
"\tRouteStep\x123\n" +
|
|
539
|
+
"\bmaneuver\x18\x01 \x01(\v2\x17.directions.v1.ManeuverR\bmaneuver\x12\x12\n" +
|
|
540
|
+
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
|
|
541
|
+
"\bdistance\x18\x03 \x01(\x01R\bdistance\x12\x1a\n" +
|
|
542
|
+
"\bduration\x18\x04 \x01(\x01R\bduration\x12\x12\n" +
|
|
543
|
+
"\x04mode\x18\x05 \x01(\tR\x04mode\x12!\n" +
|
|
544
|
+
"\fdriving_side\x18\x06 \x01(\tR\vdrivingSide\"\x8a\x01\n" +
|
|
545
|
+
"\bManeuver\x12\x12\n" +
|
|
546
|
+
"\x04type\x18\x01 \x01(\tR\x04type\x12 \n" +
|
|
547
|
+
"\vinstruction\x18\x02 \x01(\tR\vinstruction\x12\x1a\n" +
|
|
548
|
+
"\blocation\x18\x03 \x03(\x01R\blocation\x12\x1f\n" +
|
|
549
|
+
"\bmodifier\x18\x04 \x01(\tH\x00R\bmodifier\x88\x01\x01B\v\n" +
|
|
550
|
+
"\t_modifier\":\n" +
|
|
551
|
+
"\bWaypoint\x12\x12\n" +
|
|
552
|
+
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" +
|
|
553
|
+
"\blocation\x18\x02 \x03(\x01R\blocation2d\n" +
|
|
554
|
+
"\x11DirectionsService\x12O\n" +
|
|
555
|
+
"\bGetRoute\x12 .directions.v1.DirectionsRequest\x1a!.directions.v1.DirectionsResponseBAZ?github.com/vectora-os/contracts/gen/go/directions;directions_v1b\x06proto3"
|
|
556
|
+
|
|
557
|
+
var (
|
|
558
|
+
file_mapbox_direction_v1_proto_rawDescOnce sync.Once
|
|
559
|
+
file_mapbox_direction_v1_proto_rawDescData []byte
|
|
560
|
+
)
|
|
561
|
+
|
|
562
|
+
func file_mapbox_direction_v1_proto_rawDescGZIP() []byte {
|
|
563
|
+
file_mapbox_direction_v1_proto_rawDescOnce.Do(func() {
|
|
564
|
+
file_mapbox_direction_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mapbox_direction_v1_proto_rawDesc), len(file_mapbox_direction_v1_proto_rawDesc)))
|
|
565
|
+
})
|
|
566
|
+
return file_mapbox_direction_v1_proto_rawDescData
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
var file_mapbox_direction_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
570
|
+
var file_mapbox_direction_v1_proto_goTypes = []any{
|
|
571
|
+
(*DirectionsRequest)(nil), // 0: directions.v1.DirectionsRequest
|
|
572
|
+
(*DirectionsResponse)(nil), // 1: directions.v1.DirectionsResponse
|
|
573
|
+
(*Route)(nil), // 2: directions.v1.Route
|
|
574
|
+
(*RouteLeg)(nil), // 3: directions.v1.RouteLeg
|
|
575
|
+
(*RouteStep)(nil), // 4: directions.v1.RouteStep
|
|
576
|
+
(*Maneuver)(nil), // 5: directions.v1.Maneuver
|
|
577
|
+
(*Waypoint)(nil), // 6: directions.v1.Waypoint
|
|
578
|
+
(*common.Point)(nil), // 7: common_geocode.v1.Point
|
|
579
|
+
(*common.LineString)(nil), // 8: common_geocode.v1.LineString
|
|
580
|
+
}
|
|
581
|
+
var file_mapbox_direction_v1_proto_depIdxs = []int32{
|
|
582
|
+
7, // 0: directions.v1.DirectionsRequest.coordinates:type_name -> common_geocode.v1.Point
|
|
583
|
+
2, // 1: directions.v1.DirectionsResponse.routes:type_name -> directions.v1.Route
|
|
584
|
+
6, // 2: directions.v1.DirectionsResponse.waypoints:type_name -> directions.v1.Waypoint
|
|
585
|
+
3, // 3: directions.v1.Route.legs:type_name -> directions.v1.RouteLeg
|
|
586
|
+
8, // 4: directions.v1.Route.geometry:type_name -> common_geocode.v1.LineString
|
|
587
|
+
4, // 5: directions.v1.RouteLeg.steps:type_name -> directions.v1.RouteStep
|
|
588
|
+
5, // 6: directions.v1.RouteStep.maneuver:type_name -> directions.v1.Maneuver
|
|
589
|
+
0, // 7: directions.v1.DirectionsService.GetRoute:input_type -> directions.v1.DirectionsRequest
|
|
590
|
+
1, // 8: directions.v1.DirectionsService.GetRoute:output_type -> directions.v1.DirectionsResponse
|
|
591
|
+
8, // [8:9] is the sub-list for method output_type
|
|
592
|
+
7, // [7:8] is the sub-list for method input_type
|
|
593
|
+
7, // [7:7] is the sub-list for extension type_name
|
|
594
|
+
7, // [7:7] is the sub-list for extension extendee
|
|
595
|
+
0, // [0:7] is the sub-list for field type_name
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
func init() { file_mapbox_direction_v1_proto_init() }
|
|
599
|
+
func file_mapbox_direction_v1_proto_init() {
|
|
600
|
+
if File_mapbox_direction_v1_proto != nil {
|
|
601
|
+
return
|
|
602
|
+
}
|
|
603
|
+
file_mapbox_direction_v1_proto_msgTypes[5].OneofWrappers = []any{}
|
|
604
|
+
type x struct{}
|
|
605
|
+
out := protoimpl.TypeBuilder{
|
|
606
|
+
File: protoimpl.DescBuilder{
|
|
607
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
608
|
+
RawDescriptor: unsafe.Slice(unsafe.StringData(file_mapbox_direction_v1_proto_rawDesc), len(file_mapbox_direction_v1_proto_rawDesc)),
|
|
609
|
+
NumEnums: 0,
|
|
610
|
+
NumMessages: 7,
|
|
611
|
+
NumExtensions: 0,
|
|
612
|
+
NumServices: 1,
|
|
613
|
+
},
|
|
614
|
+
GoTypes: file_mapbox_direction_v1_proto_goTypes,
|
|
615
|
+
DependencyIndexes: file_mapbox_direction_v1_proto_depIdxs,
|
|
616
|
+
MessageInfos: file_mapbox_direction_v1_proto_msgTypes,
|
|
617
|
+
}.Build()
|
|
618
|
+
File_mapbox_direction_v1_proto = out.File
|
|
619
|
+
file_mapbox_direction_v1_proto_goTypes = nil
|
|
620
|
+
file_mapbox_direction_v1_proto_depIdxs = nil
|
|
621
|
+
}
|