@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,422 @@
|
|
|
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-optimization-v1.proto
|
|
6
|
+
|
|
7
|
+
package optimization_v1
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
common "github.com/vectora-os/contracts/gen/go/common"
|
|
11
|
+
directions "github.com/vectora-os/contracts/gen/go/directions"
|
|
12
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
13
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
14
|
+
reflect "reflect"
|
|
15
|
+
sync "sync"
|
|
16
|
+
unsafe "unsafe"
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
const (
|
|
20
|
+
// Verify that this generated code is sufficiently up-to-date.
|
|
21
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
22
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
23
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
type OptimizationRequest struct {
|
|
27
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
28
|
+
Coordinates []*common.Point `protobuf:"bytes,1,rep,name=coordinates,proto3" json:"coordinates,omitempty"`
|
|
29
|
+
Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
|
|
30
|
+
Roundtrip *bool `protobuf:"varint,3,opt,name=roundtrip,proto3,oneof" json:"roundtrip,omitempty"`
|
|
31
|
+
Source *string `protobuf:"bytes,4,opt,name=source,proto3,oneof" json:"source,omitempty"`
|
|
32
|
+
Destination *string `protobuf:"bytes,5,opt,name=destination,proto3,oneof" json:"destination,omitempty"`
|
|
33
|
+
Geometries *string `protobuf:"bytes,6,opt,name=geometries,proto3,oneof" json:"geometries,omitempty"`
|
|
34
|
+
Steps *bool `protobuf:"varint,7,opt,name=steps,proto3,oneof" json:"steps,omitempty"`
|
|
35
|
+
unknownFields protoimpl.UnknownFields
|
|
36
|
+
sizeCache protoimpl.SizeCache
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
func (x *OptimizationRequest) Reset() {
|
|
40
|
+
*x = OptimizationRequest{}
|
|
41
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[0]
|
|
42
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
43
|
+
ms.StoreMessageInfo(mi)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
func (x *OptimizationRequest) String() string {
|
|
47
|
+
return protoimpl.X.MessageStringOf(x)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
func (*OptimizationRequest) ProtoMessage() {}
|
|
51
|
+
|
|
52
|
+
func (x *OptimizationRequest) ProtoReflect() protoreflect.Message {
|
|
53
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[0]
|
|
54
|
+
if x != nil {
|
|
55
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
56
|
+
if ms.LoadMessageInfo() == nil {
|
|
57
|
+
ms.StoreMessageInfo(mi)
|
|
58
|
+
}
|
|
59
|
+
return ms
|
|
60
|
+
}
|
|
61
|
+
return mi.MessageOf(x)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Deprecated: Use OptimizationRequest.ProtoReflect.Descriptor instead.
|
|
65
|
+
func (*OptimizationRequest) Descriptor() ([]byte, []int) {
|
|
66
|
+
return file_mapbox_optimization_v1_proto_rawDescGZIP(), []int{0}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
func (x *OptimizationRequest) GetCoordinates() []*common.Point {
|
|
70
|
+
if x != nil {
|
|
71
|
+
return x.Coordinates
|
|
72
|
+
}
|
|
73
|
+
return nil
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
func (x *OptimizationRequest) GetProfile() string {
|
|
77
|
+
if x != nil {
|
|
78
|
+
return x.Profile
|
|
79
|
+
}
|
|
80
|
+
return ""
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
func (x *OptimizationRequest) GetRoundtrip() bool {
|
|
84
|
+
if x != nil && x.Roundtrip != nil {
|
|
85
|
+
return *x.Roundtrip
|
|
86
|
+
}
|
|
87
|
+
return false
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
func (x *OptimizationRequest) GetSource() string {
|
|
91
|
+
if x != nil && x.Source != nil {
|
|
92
|
+
return *x.Source
|
|
93
|
+
}
|
|
94
|
+
return ""
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
func (x *OptimizationRequest) GetDestination() string {
|
|
98
|
+
if x != nil && x.Destination != nil {
|
|
99
|
+
return *x.Destination
|
|
100
|
+
}
|
|
101
|
+
return ""
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
func (x *OptimizationRequest) GetGeometries() string {
|
|
105
|
+
if x != nil && x.Geometries != nil {
|
|
106
|
+
return *x.Geometries
|
|
107
|
+
}
|
|
108
|
+
return ""
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
func (x *OptimizationRequest) GetSteps() bool {
|
|
112
|
+
if x != nil && x.Steps != nil {
|
|
113
|
+
return *x.Steps
|
|
114
|
+
}
|
|
115
|
+
return false
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
type OptimizationResponse struct {
|
|
119
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
120
|
+
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
121
|
+
Waypoints []*OptimizationWaypoint `protobuf:"bytes,2,rep,name=waypoints,proto3" json:"waypoints,omitempty"`
|
|
122
|
+
Trips []*OptimizationTrip `protobuf:"bytes,3,rep,name=trips,proto3" json:"trips,omitempty"`
|
|
123
|
+
unknownFields protoimpl.UnknownFields
|
|
124
|
+
sizeCache protoimpl.SizeCache
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
func (x *OptimizationResponse) Reset() {
|
|
128
|
+
*x = OptimizationResponse{}
|
|
129
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[1]
|
|
130
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
131
|
+
ms.StoreMessageInfo(mi)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
func (x *OptimizationResponse) String() string {
|
|
135
|
+
return protoimpl.X.MessageStringOf(x)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
func (*OptimizationResponse) ProtoMessage() {}
|
|
139
|
+
|
|
140
|
+
func (x *OptimizationResponse) ProtoReflect() protoreflect.Message {
|
|
141
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[1]
|
|
142
|
+
if x != nil {
|
|
143
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
144
|
+
if ms.LoadMessageInfo() == nil {
|
|
145
|
+
ms.StoreMessageInfo(mi)
|
|
146
|
+
}
|
|
147
|
+
return ms
|
|
148
|
+
}
|
|
149
|
+
return mi.MessageOf(x)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Deprecated: Use OptimizationResponse.ProtoReflect.Descriptor instead.
|
|
153
|
+
func (*OptimizationResponse) Descriptor() ([]byte, []int) {
|
|
154
|
+
return file_mapbox_optimization_v1_proto_rawDescGZIP(), []int{1}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
func (x *OptimizationResponse) GetCode() string {
|
|
158
|
+
if x != nil {
|
|
159
|
+
return x.Code
|
|
160
|
+
}
|
|
161
|
+
return ""
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
func (x *OptimizationResponse) GetWaypoints() []*OptimizationWaypoint {
|
|
165
|
+
if x != nil {
|
|
166
|
+
return x.Waypoints
|
|
167
|
+
}
|
|
168
|
+
return nil
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
func (x *OptimizationResponse) GetTrips() []*OptimizationTrip {
|
|
172
|
+
if x != nil {
|
|
173
|
+
return x.Trips
|
|
174
|
+
}
|
|
175
|
+
return nil
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
type OptimizationTrip struct {
|
|
179
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
180
|
+
Geometry *common.LineString `protobuf:"bytes,1,opt,name=geometry,proto3" json:"geometry,omitempty"`
|
|
181
|
+
Legs []*directions.RouteLeg `protobuf:"bytes,2,rep,name=legs,proto3" json:"legs,omitempty"`
|
|
182
|
+
Distance float64 `protobuf:"fixed64,3,opt,name=distance,proto3" json:"distance,omitempty"`
|
|
183
|
+
Duration float64 `protobuf:"fixed64,4,opt,name=duration,proto3" json:"duration,omitempty"`
|
|
184
|
+
Weight float64 `protobuf:"fixed64,5,opt,name=weight,proto3" json:"weight,omitempty"`
|
|
185
|
+
unknownFields protoimpl.UnknownFields
|
|
186
|
+
sizeCache protoimpl.SizeCache
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
func (x *OptimizationTrip) Reset() {
|
|
190
|
+
*x = OptimizationTrip{}
|
|
191
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[2]
|
|
192
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
193
|
+
ms.StoreMessageInfo(mi)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
func (x *OptimizationTrip) String() string {
|
|
197
|
+
return protoimpl.X.MessageStringOf(x)
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
func (*OptimizationTrip) ProtoMessage() {}
|
|
201
|
+
|
|
202
|
+
func (x *OptimizationTrip) ProtoReflect() protoreflect.Message {
|
|
203
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[2]
|
|
204
|
+
if x != nil {
|
|
205
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
206
|
+
if ms.LoadMessageInfo() == nil {
|
|
207
|
+
ms.StoreMessageInfo(mi)
|
|
208
|
+
}
|
|
209
|
+
return ms
|
|
210
|
+
}
|
|
211
|
+
return mi.MessageOf(x)
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Deprecated: Use OptimizationTrip.ProtoReflect.Descriptor instead.
|
|
215
|
+
func (*OptimizationTrip) Descriptor() ([]byte, []int) {
|
|
216
|
+
return file_mapbox_optimization_v1_proto_rawDescGZIP(), []int{2}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
func (x *OptimizationTrip) GetGeometry() *common.LineString {
|
|
220
|
+
if x != nil {
|
|
221
|
+
return x.Geometry
|
|
222
|
+
}
|
|
223
|
+
return nil
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
func (x *OptimizationTrip) GetLegs() []*directions.RouteLeg {
|
|
227
|
+
if x != nil {
|
|
228
|
+
return x.Legs
|
|
229
|
+
}
|
|
230
|
+
return nil
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
func (x *OptimizationTrip) GetDistance() float64 {
|
|
234
|
+
if x != nil {
|
|
235
|
+
return x.Distance
|
|
236
|
+
}
|
|
237
|
+
return 0
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
func (x *OptimizationTrip) GetDuration() float64 {
|
|
241
|
+
if x != nil {
|
|
242
|
+
return x.Duration
|
|
243
|
+
}
|
|
244
|
+
return 0
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
func (x *OptimizationTrip) GetWeight() float64 {
|
|
248
|
+
if x != nil {
|
|
249
|
+
return x.Weight
|
|
250
|
+
}
|
|
251
|
+
return 0
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
type OptimizationWaypoint struct {
|
|
255
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
256
|
+
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
257
|
+
Location []float64 `protobuf:"fixed64,2,rep,packed,name=location,proto3" json:"location,omitempty"`
|
|
258
|
+
WaypointIndex int32 `protobuf:"varint,3,opt,name=waypoint_index,json=waypointIndex,proto3" json:"waypoint_index,omitempty"`
|
|
259
|
+
TripsIndex int32 `protobuf:"varint,4,opt,name=trips_index,json=tripsIndex,proto3" json:"trips_index,omitempty"`
|
|
260
|
+
unknownFields protoimpl.UnknownFields
|
|
261
|
+
sizeCache protoimpl.SizeCache
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
func (x *OptimizationWaypoint) Reset() {
|
|
265
|
+
*x = OptimizationWaypoint{}
|
|
266
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[3]
|
|
267
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
268
|
+
ms.StoreMessageInfo(mi)
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
func (x *OptimizationWaypoint) String() string {
|
|
272
|
+
return protoimpl.X.MessageStringOf(x)
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
func (*OptimizationWaypoint) ProtoMessage() {}
|
|
276
|
+
|
|
277
|
+
func (x *OptimizationWaypoint) ProtoReflect() protoreflect.Message {
|
|
278
|
+
mi := &file_mapbox_optimization_v1_proto_msgTypes[3]
|
|
279
|
+
if x != nil {
|
|
280
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
281
|
+
if ms.LoadMessageInfo() == nil {
|
|
282
|
+
ms.StoreMessageInfo(mi)
|
|
283
|
+
}
|
|
284
|
+
return ms
|
|
285
|
+
}
|
|
286
|
+
return mi.MessageOf(x)
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// Deprecated: Use OptimizationWaypoint.ProtoReflect.Descriptor instead.
|
|
290
|
+
func (*OptimizationWaypoint) Descriptor() ([]byte, []int) {
|
|
291
|
+
return file_mapbox_optimization_v1_proto_rawDescGZIP(), []int{3}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
func (x *OptimizationWaypoint) GetName() string {
|
|
295
|
+
if x != nil {
|
|
296
|
+
return x.Name
|
|
297
|
+
}
|
|
298
|
+
return ""
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
func (x *OptimizationWaypoint) GetLocation() []float64 {
|
|
302
|
+
if x != nil {
|
|
303
|
+
return x.Location
|
|
304
|
+
}
|
|
305
|
+
return nil
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
func (x *OptimizationWaypoint) GetWaypointIndex() int32 {
|
|
309
|
+
if x != nil {
|
|
310
|
+
return x.WaypointIndex
|
|
311
|
+
}
|
|
312
|
+
return 0
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
func (x *OptimizationWaypoint) GetTripsIndex() int32 {
|
|
316
|
+
if x != nil {
|
|
317
|
+
return x.TripsIndex
|
|
318
|
+
}
|
|
319
|
+
return 0
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
var File_mapbox_optimization_v1_proto protoreflect.FileDescriptor
|
|
323
|
+
|
|
324
|
+
const file_mapbox_optimization_v1_proto_rawDesc = "" +
|
|
325
|
+
"\n" +
|
|
326
|
+
"\x1cmapbox-optimization-v1.proto\x12\x0foptimization.v1\x1a\x17common-geocode-v1.proto\x1a\x19mapbox-direction-v1.proto\"\xd4\x02\n" +
|
|
327
|
+
"\x13OptimizationRequest\x12:\n" +
|
|
328
|
+
"\vcoordinates\x18\x01 \x03(\v2\x18.common_geocode.v1.PointR\vcoordinates\x12\x18\n" +
|
|
329
|
+
"\aprofile\x18\x02 \x01(\tR\aprofile\x12!\n" +
|
|
330
|
+
"\troundtrip\x18\x03 \x01(\bH\x00R\troundtrip\x88\x01\x01\x12\x1b\n" +
|
|
331
|
+
"\x06source\x18\x04 \x01(\tH\x01R\x06source\x88\x01\x01\x12%\n" +
|
|
332
|
+
"\vdestination\x18\x05 \x01(\tH\x02R\vdestination\x88\x01\x01\x12#\n" +
|
|
333
|
+
"\n" +
|
|
334
|
+
"geometries\x18\x06 \x01(\tH\x03R\n" +
|
|
335
|
+
"geometries\x88\x01\x01\x12\x19\n" +
|
|
336
|
+
"\x05steps\x18\a \x01(\bH\x04R\x05steps\x88\x01\x01B\f\n" +
|
|
337
|
+
"\n" +
|
|
338
|
+
"_roundtripB\t\n" +
|
|
339
|
+
"\a_sourceB\x0e\n" +
|
|
340
|
+
"\f_destinationB\r\n" +
|
|
341
|
+
"\v_geometriesB\b\n" +
|
|
342
|
+
"\x06_steps\"\xa8\x01\n" +
|
|
343
|
+
"\x14OptimizationResponse\x12\x12\n" +
|
|
344
|
+
"\x04code\x18\x01 \x01(\tR\x04code\x12C\n" +
|
|
345
|
+
"\twaypoints\x18\x02 \x03(\v2%.optimization.v1.OptimizationWaypointR\twaypoints\x127\n" +
|
|
346
|
+
"\x05trips\x18\x03 \x03(\v2!.optimization.v1.OptimizationTripR\x05trips\"\xca\x01\n" +
|
|
347
|
+
"\x10OptimizationTrip\x129\n" +
|
|
348
|
+
"\bgeometry\x18\x01 \x01(\v2\x1d.common_geocode.v1.LineStringR\bgeometry\x12+\n" +
|
|
349
|
+
"\x04legs\x18\x02 \x03(\v2\x17.directions.v1.RouteLegR\x04legs\x12\x1a\n" +
|
|
350
|
+
"\bdistance\x18\x03 \x01(\x01R\bdistance\x12\x1a\n" +
|
|
351
|
+
"\bduration\x18\x04 \x01(\x01R\bduration\x12\x16\n" +
|
|
352
|
+
"\x06weight\x18\x05 \x01(\x01R\x06weight\"\x8e\x01\n" +
|
|
353
|
+
"\x14OptimizationWaypoint\x12\x12\n" +
|
|
354
|
+
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" +
|
|
355
|
+
"\blocation\x18\x02 \x03(\x01R\blocation\x12%\n" +
|
|
356
|
+
"\x0ewaypoint_index\x18\x03 \x01(\x05R\rwaypointIndex\x12\x1f\n" +
|
|
357
|
+
"\vtrips_index\x18\x04 \x01(\x05R\n" +
|
|
358
|
+
"tripsIndex2w\n" +
|
|
359
|
+
"\x13OptimizationService\x12`\n" +
|
|
360
|
+
"\x11GetOptimizedRoute\x12$.optimization.v1.OptimizationRequest\x1a%.optimization.v1.OptimizationResponseBEZCgithub.com/vectora-os/contracts/gen/go/optimization;optimization_v1b\x06proto3"
|
|
361
|
+
|
|
362
|
+
var (
|
|
363
|
+
file_mapbox_optimization_v1_proto_rawDescOnce sync.Once
|
|
364
|
+
file_mapbox_optimization_v1_proto_rawDescData []byte
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
func file_mapbox_optimization_v1_proto_rawDescGZIP() []byte {
|
|
368
|
+
file_mapbox_optimization_v1_proto_rawDescOnce.Do(func() {
|
|
369
|
+
file_mapbox_optimization_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mapbox_optimization_v1_proto_rawDesc), len(file_mapbox_optimization_v1_proto_rawDesc)))
|
|
370
|
+
})
|
|
371
|
+
return file_mapbox_optimization_v1_proto_rawDescData
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
var file_mapbox_optimization_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
375
|
+
var file_mapbox_optimization_v1_proto_goTypes = []any{
|
|
376
|
+
(*OptimizationRequest)(nil), // 0: optimization.v1.OptimizationRequest
|
|
377
|
+
(*OptimizationResponse)(nil), // 1: optimization.v1.OptimizationResponse
|
|
378
|
+
(*OptimizationTrip)(nil), // 2: optimization.v1.OptimizationTrip
|
|
379
|
+
(*OptimizationWaypoint)(nil), // 3: optimization.v1.OptimizationWaypoint
|
|
380
|
+
(*common.Point)(nil), // 4: common_geocode.v1.Point
|
|
381
|
+
(*common.LineString)(nil), // 5: common_geocode.v1.LineString
|
|
382
|
+
(*directions.RouteLeg)(nil), // 6: directions.v1.RouteLeg
|
|
383
|
+
}
|
|
384
|
+
var file_mapbox_optimization_v1_proto_depIdxs = []int32{
|
|
385
|
+
4, // 0: optimization.v1.OptimizationRequest.coordinates:type_name -> common_geocode.v1.Point
|
|
386
|
+
3, // 1: optimization.v1.OptimizationResponse.waypoints:type_name -> optimization.v1.OptimizationWaypoint
|
|
387
|
+
2, // 2: optimization.v1.OptimizationResponse.trips:type_name -> optimization.v1.OptimizationTrip
|
|
388
|
+
5, // 3: optimization.v1.OptimizationTrip.geometry:type_name -> common_geocode.v1.LineString
|
|
389
|
+
6, // 4: optimization.v1.OptimizationTrip.legs:type_name -> directions.v1.RouteLeg
|
|
390
|
+
0, // 5: optimization.v1.OptimizationService.GetOptimizedRoute:input_type -> optimization.v1.OptimizationRequest
|
|
391
|
+
1, // 6: optimization.v1.OptimizationService.GetOptimizedRoute:output_type -> optimization.v1.OptimizationResponse
|
|
392
|
+
6, // [6:7] is the sub-list for method output_type
|
|
393
|
+
5, // [5:6] is the sub-list for method input_type
|
|
394
|
+
5, // [5:5] is the sub-list for extension type_name
|
|
395
|
+
5, // [5:5] is the sub-list for extension extendee
|
|
396
|
+
0, // [0:5] is the sub-list for field type_name
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
func init() { file_mapbox_optimization_v1_proto_init() }
|
|
400
|
+
func file_mapbox_optimization_v1_proto_init() {
|
|
401
|
+
if File_mapbox_optimization_v1_proto != nil {
|
|
402
|
+
return
|
|
403
|
+
}
|
|
404
|
+
file_mapbox_optimization_v1_proto_msgTypes[0].OneofWrappers = []any{}
|
|
405
|
+
type x struct{}
|
|
406
|
+
out := protoimpl.TypeBuilder{
|
|
407
|
+
File: protoimpl.DescBuilder{
|
|
408
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
409
|
+
RawDescriptor: unsafe.Slice(unsafe.StringData(file_mapbox_optimization_v1_proto_rawDesc), len(file_mapbox_optimization_v1_proto_rawDesc)),
|
|
410
|
+
NumEnums: 0,
|
|
411
|
+
NumMessages: 4,
|
|
412
|
+
NumExtensions: 0,
|
|
413
|
+
NumServices: 1,
|
|
414
|
+
},
|
|
415
|
+
GoTypes: file_mapbox_optimization_v1_proto_goTypes,
|
|
416
|
+
DependencyIndexes: file_mapbox_optimization_v1_proto_depIdxs,
|
|
417
|
+
MessageInfos: file_mapbox_optimization_v1_proto_msgTypes,
|
|
418
|
+
}.Build()
|
|
419
|
+
File_mapbox_optimization_v1_proto = out.File
|
|
420
|
+
file_mapbox_optimization_v1_proto_goTypes = nil
|
|
421
|
+
file_mapbox_optimization_v1_proto_depIdxs = nil
|
|
422
|
+
}
|