@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,699 @@
|
|
|
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-search-v1.proto
|
|
6
|
+
|
|
7
|
+
package search_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 SearchSuggestRequest struct {
|
|
26
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
27
|
+
Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"`
|
|
28
|
+
SessionToken *string `protobuf:"bytes,2,opt,name=session_token,json=sessionToken,proto3,oneof" json:"session_token,omitempty"`
|
|
29
|
+
Limit *int32 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
|
|
30
|
+
unknownFields protoimpl.UnknownFields
|
|
31
|
+
sizeCache protoimpl.SizeCache
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
func (x *SearchSuggestRequest) Reset() {
|
|
35
|
+
*x = SearchSuggestRequest{}
|
|
36
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[0]
|
|
37
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
38
|
+
ms.StoreMessageInfo(mi)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
func (x *SearchSuggestRequest) String() string {
|
|
42
|
+
return protoimpl.X.MessageStringOf(x)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
func (*SearchSuggestRequest) ProtoMessage() {}
|
|
46
|
+
|
|
47
|
+
func (x *SearchSuggestRequest) ProtoReflect() protoreflect.Message {
|
|
48
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[0]
|
|
49
|
+
if x != nil {
|
|
50
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
51
|
+
if ms.LoadMessageInfo() == nil {
|
|
52
|
+
ms.StoreMessageInfo(mi)
|
|
53
|
+
}
|
|
54
|
+
return ms
|
|
55
|
+
}
|
|
56
|
+
return mi.MessageOf(x)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Deprecated: Use SearchSuggestRequest.ProtoReflect.Descriptor instead.
|
|
60
|
+
func (*SearchSuggestRequest) Descriptor() ([]byte, []int) {
|
|
61
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{0}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
func (x *SearchSuggestRequest) GetQ() string {
|
|
65
|
+
if x != nil {
|
|
66
|
+
return x.Q
|
|
67
|
+
}
|
|
68
|
+
return ""
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
func (x *SearchSuggestRequest) GetSessionToken() string {
|
|
72
|
+
if x != nil && x.SessionToken != nil {
|
|
73
|
+
return *x.SessionToken
|
|
74
|
+
}
|
|
75
|
+
return ""
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
func (x *SearchSuggestRequest) GetLimit() int32 {
|
|
79
|
+
if x != nil && x.Limit != nil {
|
|
80
|
+
return *x.Limit
|
|
81
|
+
}
|
|
82
|
+
return 0
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
type SearchSuggestResponse struct {
|
|
86
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
87
|
+
Suggestions []*SearchSuggestion `protobuf:"bytes,1,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
|
|
88
|
+
Attribution string `protobuf:"bytes,2,opt,name=attribution,proto3" json:"attribution,omitempty"`
|
|
89
|
+
unknownFields protoimpl.UnknownFields
|
|
90
|
+
sizeCache protoimpl.SizeCache
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
func (x *SearchSuggestResponse) Reset() {
|
|
94
|
+
*x = SearchSuggestResponse{}
|
|
95
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[1]
|
|
96
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
97
|
+
ms.StoreMessageInfo(mi)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
func (x *SearchSuggestResponse) String() string {
|
|
101
|
+
return protoimpl.X.MessageStringOf(x)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
func (*SearchSuggestResponse) ProtoMessage() {}
|
|
105
|
+
|
|
106
|
+
func (x *SearchSuggestResponse) ProtoReflect() protoreflect.Message {
|
|
107
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[1]
|
|
108
|
+
if x != nil {
|
|
109
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
110
|
+
if ms.LoadMessageInfo() == nil {
|
|
111
|
+
ms.StoreMessageInfo(mi)
|
|
112
|
+
}
|
|
113
|
+
return ms
|
|
114
|
+
}
|
|
115
|
+
return mi.MessageOf(x)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Deprecated: Use SearchSuggestResponse.ProtoReflect.Descriptor instead.
|
|
119
|
+
func (*SearchSuggestResponse) Descriptor() ([]byte, []int) {
|
|
120
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{1}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
func (x *SearchSuggestResponse) GetSuggestions() []*SearchSuggestion {
|
|
124
|
+
if x != nil {
|
|
125
|
+
return x.Suggestions
|
|
126
|
+
}
|
|
127
|
+
return nil
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
func (x *SearchSuggestResponse) GetAttribution() string {
|
|
131
|
+
if x != nil {
|
|
132
|
+
return x.Attribution
|
|
133
|
+
}
|
|
134
|
+
return ""
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
type SearchSuggestion struct {
|
|
138
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
139
|
+
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
140
|
+
MapboxId string `protobuf:"bytes,2,opt,name=mapbox_id,json=mapboxId,proto3" json:"mapbox_id,omitempty"`
|
|
141
|
+
FeatureType string `protobuf:"bytes,3,opt,name=feature_type,json=featureType,proto3" json:"feature_type,omitempty"`
|
|
142
|
+
PlaceName string `protobuf:"bytes,4,opt,name=place_name,json=placeName,proto3" json:"place_name,omitempty"`
|
|
143
|
+
Context *SearchContext `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
|
|
144
|
+
Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"`
|
|
145
|
+
Maki *string `protobuf:"bytes,7,opt,name=maki,proto3,oneof" json:"maki,omitempty"`
|
|
146
|
+
unknownFields protoimpl.UnknownFields
|
|
147
|
+
sizeCache protoimpl.SizeCache
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
func (x *SearchSuggestion) Reset() {
|
|
151
|
+
*x = SearchSuggestion{}
|
|
152
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[2]
|
|
153
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
154
|
+
ms.StoreMessageInfo(mi)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
func (x *SearchSuggestion) String() string {
|
|
158
|
+
return protoimpl.X.MessageStringOf(x)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
func (*SearchSuggestion) ProtoMessage() {}
|
|
162
|
+
|
|
163
|
+
func (x *SearchSuggestion) ProtoReflect() protoreflect.Message {
|
|
164
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[2]
|
|
165
|
+
if x != nil {
|
|
166
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
167
|
+
if ms.LoadMessageInfo() == nil {
|
|
168
|
+
ms.StoreMessageInfo(mi)
|
|
169
|
+
}
|
|
170
|
+
return ms
|
|
171
|
+
}
|
|
172
|
+
return mi.MessageOf(x)
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Deprecated: Use SearchSuggestion.ProtoReflect.Descriptor instead.
|
|
176
|
+
func (*SearchSuggestion) Descriptor() ([]byte, []int) {
|
|
177
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{2}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
func (x *SearchSuggestion) GetName() string {
|
|
181
|
+
if x != nil {
|
|
182
|
+
return x.Name
|
|
183
|
+
}
|
|
184
|
+
return ""
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
func (x *SearchSuggestion) GetMapboxId() string {
|
|
188
|
+
if x != nil {
|
|
189
|
+
return x.MapboxId
|
|
190
|
+
}
|
|
191
|
+
return ""
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
func (x *SearchSuggestion) GetFeatureType() string {
|
|
195
|
+
if x != nil {
|
|
196
|
+
return x.FeatureType
|
|
197
|
+
}
|
|
198
|
+
return ""
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
func (x *SearchSuggestion) GetPlaceName() string {
|
|
202
|
+
if x != nil {
|
|
203
|
+
return x.PlaceName
|
|
204
|
+
}
|
|
205
|
+
return ""
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
func (x *SearchSuggestion) GetContext() *SearchContext {
|
|
209
|
+
if x != nil {
|
|
210
|
+
return x.Context
|
|
211
|
+
}
|
|
212
|
+
return nil
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
func (x *SearchSuggestion) GetLanguage() string {
|
|
216
|
+
if x != nil {
|
|
217
|
+
return x.Language
|
|
218
|
+
}
|
|
219
|
+
return ""
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
func (x *SearchSuggestion) GetMaki() string {
|
|
223
|
+
if x != nil && x.Maki != nil {
|
|
224
|
+
return *x.Maki
|
|
225
|
+
}
|
|
226
|
+
return ""
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
type SearchRetrieveResponse struct {
|
|
230
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
231
|
+
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
232
|
+
Features []*SearchFeature `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
|
|
233
|
+
Attribution string `protobuf:"bytes,3,opt,name=attribution,proto3" json:"attribution,omitempty"`
|
|
234
|
+
unknownFields protoimpl.UnknownFields
|
|
235
|
+
sizeCache protoimpl.SizeCache
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
func (x *SearchRetrieveResponse) Reset() {
|
|
239
|
+
*x = SearchRetrieveResponse{}
|
|
240
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[3]
|
|
241
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
242
|
+
ms.StoreMessageInfo(mi)
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
func (x *SearchRetrieveResponse) String() string {
|
|
246
|
+
return protoimpl.X.MessageStringOf(x)
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
func (*SearchRetrieveResponse) ProtoMessage() {}
|
|
250
|
+
|
|
251
|
+
func (x *SearchRetrieveResponse) ProtoReflect() protoreflect.Message {
|
|
252
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[3]
|
|
253
|
+
if x != nil {
|
|
254
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
255
|
+
if ms.LoadMessageInfo() == nil {
|
|
256
|
+
ms.StoreMessageInfo(mi)
|
|
257
|
+
}
|
|
258
|
+
return ms
|
|
259
|
+
}
|
|
260
|
+
return mi.MessageOf(x)
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Deprecated: Use SearchRetrieveResponse.ProtoReflect.Descriptor instead.
|
|
264
|
+
func (*SearchRetrieveResponse) Descriptor() ([]byte, []int) {
|
|
265
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{3}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
func (x *SearchRetrieveResponse) GetType() string {
|
|
269
|
+
if x != nil {
|
|
270
|
+
return x.Type
|
|
271
|
+
}
|
|
272
|
+
return ""
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
func (x *SearchRetrieveResponse) GetFeatures() []*SearchFeature {
|
|
276
|
+
if x != nil {
|
|
277
|
+
return x.Features
|
|
278
|
+
}
|
|
279
|
+
return nil
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
func (x *SearchRetrieveResponse) GetAttribution() string {
|
|
283
|
+
if x != nil {
|
|
284
|
+
return x.Attribution
|
|
285
|
+
}
|
|
286
|
+
return ""
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
type SearchFeature struct {
|
|
290
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
291
|
+
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
292
|
+
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
293
|
+
Geometry *common.Geometry `protobuf:"bytes,3,opt,name=geometry,proto3" json:"geometry,omitempty"`
|
|
294
|
+
Properties *FeatureProperties `protobuf:"bytes,4,opt,name=properties,proto3" json:"properties,omitempty"`
|
|
295
|
+
unknownFields protoimpl.UnknownFields
|
|
296
|
+
sizeCache protoimpl.SizeCache
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
func (x *SearchFeature) Reset() {
|
|
300
|
+
*x = SearchFeature{}
|
|
301
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[4]
|
|
302
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
303
|
+
ms.StoreMessageInfo(mi)
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
func (x *SearchFeature) String() string {
|
|
307
|
+
return protoimpl.X.MessageStringOf(x)
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
func (*SearchFeature) ProtoMessage() {}
|
|
311
|
+
|
|
312
|
+
func (x *SearchFeature) ProtoReflect() protoreflect.Message {
|
|
313
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[4]
|
|
314
|
+
if x != nil {
|
|
315
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
316
|
+
if ms.LoadMessageInfo() == nil {
|
|
317
|
+
ms.StoreMessageInfo(mi)
|
|
318
|
+
}
|
|
319
|
+
return ms
|
|
320
|
+
}
|
|
321
|
+
return mi.MessageOf(x)
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// Deprecated: Use SearchFeature.ProtoReflect.Descriptor instead.
|
|
325
|
+
func (*SearchFeature) Descriptor() ([]byte, []int) {
|
|
326
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{4}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
func (x *SearchFeature) GetId() string {
|
|
330
|
+
if x != nil {
|
|
331
|
+
return x.Id
|
|
332
|
+
}
|
|
333
|
+
return ""
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
func (x *SearchFeature) GetType() string {
|
|
337
|
+
if x != nil {
|
|
338
|
+
return x.Type
|
|
339
|
+
}
|
|
340
|
+
return ""
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
func (x *SearchFeature) GetGeometry() *common.Geometry {
|
|
344
|
+
if x != nil {
|
|
345
|
+
return x.Geometry
|
|
346
|
+
}
|
|
347
|
+
return nil
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
func (x *SearchFeature) GetProperties() *FeatureProperties {
|
|
351
|
+
if x != nil {
|
|
352
|
+
return x.Properties
|
|
353
|
+
}
|
|
354
|
+
return nil
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
type FeatureProperties struct {
|
|
358
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
359
|
+
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
360
|
+
MapboxId string `protobuf:"bytes,2,opt,name=mapbox_id,json=mapboxId,proto3" json:"mapbox_id,omitempty"`
|
|
361
|
+
FullAddress string `protobuf:"bytes,3,opt,name=full_address,json=fullAddress,proto3" json:"full_address,omitempty"`
|
|
362
|
+
Context *SearchContext `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
|
|
363
|
+
Coordinates *common.Coordinates `protobuf:"bytes,5,opt,name=coordinates,proto3" json:"coordinates,omitempty"`
|
|
364
|
+
unknownFields protoimpl.UnknownFields
|
|
365
|
+
sizeCache protoimpl.SizeCache
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
func (x *FeatureProperties) Reset() {
|
|
369
|
+
*x = FeatureProperties{}
|
|
370
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[5]
|
|
371
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
372
|
+
ms.StoreMessageInfo(mi)
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
func (x *FeatureProperties) String() string {
|
|
376
|
+
return protoimpl.X.MessageStringOf(x)
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
func (*FeatureProperties) ProtoMessage() {}
|
|
380
|
+
|
|
381
|
+
func (x *FeatureProperties) ProtoReflect() protoreflect.Message {
|
|
382
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[5]
|
|
383
|
+
if x != nil {
|
|
384
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
385
|
+
if ms.LoadMessageInfo() == nil {
|
|
386
|
+
ms.StoreMessageInfo(mi)
|
|
387
|
+
}
|
|
388
|
+
return ms
|
|
389
|
+
}
|
|
390
|
+
return mi.MessageOf(x)
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// Deprecated: Use FeatureProperties.ProtoReflect.Descriptor instead.
|
|
394
|
+
func (*FeatureProperties) Descriptor() ([]byte, []int) {
|
|
395
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{5}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
func (x *FeatureProperties) GetName() string {
|
|
399
|
+
if x != nil {
|
|
400
|
+
return x.Name
|
|
401
|
+
}
|
|
402
|
+
return ""
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
func (x *FeatureProperties) GetMapboxId() string {
|
|
406
|
+
if x != nil {
|
|
407
|
+
return x.MapboxId
|
|
408
|
+
}
|
|
409
|
+
return ""
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
func (x *FeatureProperties) GetFullAddress() string {
|
|
413
|
+
if x != nil {
|
|
414
|
+
return x.FullAddress
|
|
415
|
+
}
|
|
416
|
+
return ""
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
func (x *FeatureProperties) GetContext() *SearchContext {
|
|
420
|
+
if x != nil {
|
|
421
|
+
return x.Context
|
|
422
|
+
}
|
|
423
|
+
return nil
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
func (x *FeatureProperties) GetCoordinates() *common.Coordinates {
|
|
427
|
+
if x != nil {
|
|
428
|
+
return x.Coordinates
|
|
429
|
+
}
|
|
430
|
+
return nil
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
type SearchContext struct {
|
|
434
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
435
|
+
Country *common.ContextItem `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
|
|
436
|
+
Region *common.ContextItem `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
|
|
437
|
+
Postcode *common.ContextItem `protobuf:"bytes,3,opt,name=postcode,proto3" json:"postcode,omitempty"`
|
|
438
|
+
Place *common.ContextItem `protobuf:"bytes,4,opt,name=place,proto3" json:"place,omitempty"`
|
|
439
|
+
Neighborhood *common.ContextItem `protobuf:"bytes,5,opt,name=neighborhood,proto3" json:"neighborhood,omitempty"`
|
|
440
|
+
Street *common.ContextItem `protobuf:"bytes,6,opt,name=street,proto3" json:"street,omitempty"`
|
|
441
|
+
unknownFields protoimpl.UnknownFields
|
|
442
|
+
sizeCache protoimpl.SizeCache
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
func (x *SearchContext) Reset() {
|
|
446
|
+
*x = SearchContext{}
|
|
447
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[6]
|
|
448
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
449
|
+
ms.StoreMessageInfo(mi)
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
func (x *SearchContext) String() string {
|
|
453
|
+
return protoimpl.X.MessageStringOf(x)
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
func (*SearchContext) ProtoMessage() {}
|
|
457
|
+
|
|
458
|
+
func (x *SearchContext) ProtoReflect() protoreflect.Message {
|
|
459
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[6]
|
|
460
|
+
if x != nil {
|
|
461
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
462
|
+
if ms.LoadMessageInfo() == nil {
|
|
463
|
+
ms.StoreMessageInfo(mi)
|
|
464
|
+
}
|
|
465
|
+
return ms
|
|
466
|
+
}
|
|
467
|
+
return mi.MessageOf(x)
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// Deprecated: Use SearchContext.ProtoReflect.Descriptor instead.
|
|
471
|
+
func (*SearchContext) Descriptor() ([]byte, []int) {
|
|
472
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{6}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
func (x *SearchContext) GetCountry() *common.ContextItem {
|
|
476
|
+
if x != nil {
|
|
477
|
+
return x.Country
|
|
478
|
+
}
|
|
479
|
+
return nil
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
func (x *SearchContext) GetRegion() *common.ContextItem {
|
|
483
|
+
if x != nil {
|
|
484
|
+
return x.Region
|
|
485
|
+
}
|
|
486
|
+
return nil
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
func (x *SearchContext) GetPostcode() *common.ContextItem {
|
|
490
|
+
if x != nil {
|
|
491
|
+
return x.Postcode
|
|
492
|
+
}
|
|
493
|
+
return nil
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
func (x *SearchContext) GetPlace() *common.ContextItem {
|
|
497
|
+
if x != nil {
|
|
498
|
+
return x.Place
|
|
499
|
+
}
|
|
500
|
+
return nil
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
func (x *SearchContext) GetNeighborhood() *common.ContextItem {
|
|
504
|
+
if x != nil {
|
|
505
|
+
return x.Neighborhood
|
|
506
|
+
}
|
|
507
|
+
return nil
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
func (x *SearchContext) GetStreet() *common.ContextItem {
|
|
511
|
+
if x != nil {
|
|
512
|
+
return x.Street
|
|
513
|
+
}
|
|
514
|
+
return nil
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
type SearchRetrieveRequest struct {
|
|
518
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
519
|
+
MapboxId string `protobuf:"bytes,1,opt,name=mapbox_id,json=mapboxId,proto3" json:"mapbox_id,omitempty"`
|
|
520
|
+
SessionToken string `protobuf:"bytes,2,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
|
|
521
|
+
unknownFields protoimpl.UnknownFields
|
|
522
|
+
sizeCache protoimpl.SizeCache
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
func (x *SearchRetrieveRequest) Reset() {
|
|
526
|
+
*x = SearchRetrieveRequest{}
|
|
527
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[7]
|
|
528
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
529
|
+
ms.StoreMessageInfo(mi)
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
func (x *SearchRetrieveRequest) String() string {
|
|
533
|
+
return protoimpl.X.MessageStringOf(x)
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
func (*SearchRetrieveRequest) ProtoMessage() {}
|
|
537
|
+
|
|
538
|
+
func (x *SearchRetrieveRequest) ProtoReflect() protoreflect.Message {
|
|
539
|
+
mi := &file_mapbox_search_v1_proto_msgTypes[7]
|
|
540
|
+
if x != nil {
|
|
541
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
542
|
+
if ms.LoadMessageInfo() == nil {
|
|
543
|
+
ms.StoreMessageInfo(mi)
|
|
544
|
+
}
|
|
545
|
+
return ms
|
|
546
|
+
}
|
|
547
|
+
return mi.MessageOf(x)
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// Deprecated: Use SearchRetrieveRequest.ProtoReflect.Descriptor instead.
|
|
551
|
+
func (*SearchRetrieveRequest) Descriptor() ([]byte, []int) {
|
|
552
|
+
return file_mapbox_search_v1_proto_rawDescGZIP(), []int{7}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
func (x *SearchRetrieveRequest) GetMapboxId() string {
|
|
556
|
+
if x != nil {
|
|
557
|
+
return x.MapboxId
|
|
558
|
+
}
|
|
559
|
+
return ""
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
func (x *SearchRetrieveRequest) GetSessionToken() string {
|
|
563
|
+
if x != nil {
|
|
564
|
+
return x.SessionToken
|
|
565
|
+
}
|
|
566
|
+
return ""
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
var File_mapbox_search_v1_proto protoreflect.FileDescriptor
|
|
570
|
+
|
|
571
|
+
const file_mapbox_search_v1_proto_rawDesc = "" +
|
|
572
|
+
"\n" +
|
|
573
|
+
"\x16mapbox-search-v1.proto\x12\tsearch.v1\x1a\x17common-geocode-v1.proto\"\x85\x01\n" +
|
|
574
|
+
"\x14SearchSuggestRequest\x12\f\n" +
|
|
575
|
+
"\x01q\x18\x01 \x01(\tR\x01q\x12(\n" +
|
|
576
|
+
"\rsession_token\x18\x02 \x01(\tH\x00R\fsessionToken\x88\x01\x01\x12\x19\n" +
|
|
577
|
+
"\x05limit\x18\x03 \x01(\x05H\x01R\x05limit\x88\x01\x01B\x10\n" +
|
|
578
|
+
"\x0e_session_tokenB\b\n" +
|
|
579
|
+
"\x06_limit\"x\n" +
|
|
580
|
+
"\x15SearchSuggestResponse\x12=\n" +
|
|
581
|
+
"\vsuggestions\x18\x01 \x03(\v2\x1b.search.v1.SearchSuggestionR\vsuggestions\x12 \n" +
|
|
582
|
+
"\vattribution\x18\x02 \x01(\tR\vattribution\"\xf7\x01\n" +
|
|
583
|
+
"\x10SearchSuggestion\x12\x12\n" +
|
|
584
|
+
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n" +
|
|
585
|
+
"\tmapbox_id\x18\x02 \x01(\tR\bmapboxId\x12!\n" +
|
|
586
|
+
"\ffeature_type\x18\x03 \x01(\tR\vfeatureType\x12\x1d\n" +
|
|
587
|
+
"\n" +
|
|
588
|
+
"place_name\x18\x04 \x01(\tR\tplaceName\x122\n" +
|
|
589
|
+
"\acontext\x18\x05 \x01(\v2\x18.search.v1.SearchContextR\acontext\x12\x1a\n" +
|
|
590
|
+
"\blanguage\x18\x06 \x01(\tR\blanguage\x12\x17\n" +
|
|
591
|
+
"\x04maki\x18\a \x01(\tH\x00R\x04maki\x88\x01\x01B\a\n" +
|
|
592
|
+
"\x05_maki\"\x84\x01\n" +
|
|
593
|
+
"\x16SearchRetrieveResponse\x12\x12\n" +
|
|
594
|
+
"\x04type\x18\x01 \x01(\tR\x04type\x124\n" +
|
|
595
|
+
"\bfeatures\x18\x02 \x03(\v2\x18.search.v1.SearchFeatureR\bfeatures\x12 \n" +
|
|
596
|
+
"\vattribution\x18\x03 \x01(\tR\vattribution\"\xaa\x01\n" +
|
|
597
|
+
"\rSearchFeature\x12\x0e\n" +
|
|
598
|
+
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
599
|
+
"\x04type\x18\x02 \x01(\tR\x04type\x127\n" +
|
|
600
|
+
"\bgeometry\x18\x03 \x01(\v2\x1b.common_geocode.v1.GeometryR\bgeometry\x12<\n" +
|
|
601
|
+
"\n" +
|
|
602
|
+
"properties\x18\x04 \x01(\v2\x1c.search.v1.FeaturePropertiesR\n" +
|
|
603
|
+
"properties\"\xdd\x01\n" +
|
|
604
|
+
"\x11FeatureProperties\x12\x12\n" +
|
|
605
|
+
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n" +
|
|
606
|
+
"\tmapbox_id\x18\x02 \x01(\tR\bmapboxId\x12!\n" +
|
|
607
|
+
"\ffull_address\x18\x03 \x01(\tR\vfullAddress\x122\n" +
|
|
608
|
+
"\acontext\x18\x04 \x01(\v2\x18.search.v1.SearchContextR\acontext\x12@\n" +
|
|
609
|
+
"\vcoordinates\x18\x05 \x01(\v2\x1e.common_geocode.v1.CoordinatesR\vcoordinates\"\xef\x02\n" +
|
|
610
|
+
"\rSearchContext\x128\n" +
|
|
611
|
+
"\acountry\x18\x01 \x01(\v2\x1e.common_geocode.v1.ContextItemR\acountry\x126\n" +
|
|
612
|
+
"\x06region\x18\x02 \x01(\v2\x1e.common_geocode.v1.ContextItemR\x06region\x12:\n" +
|
|
613
|
+
"\bpostcode\x18\x03 \x01(\v2\x1e.common_geocode.v1.ContextItemR\bpostcode\x124\n" +
|
|
614
|
+
"\x05place\x18\x04 \x01(\v2\x1e.common_geocode.v1.ContextItemR\x05place\x12B\n" +
|
|
615
|
+
"\fneighborhood\x18\x05 \x01(\v2\x1e.common_geocode.v1.ContextItemR\fneighborhood\x126\n" +
|
|
616
|
+
"\x06street\x18\x06 \x01(\v2\x1e.common_geocode.v1.ContextItemR\x06street\"Y\n" +
|
|
617
|
+
"\x15SearchRetrieveRequest\x12\x1b\n" +
|
|
618
|
+
"\tmapbox_id\x18\x01 \x01(\tR\bmapboxId\x12#\n" +
|
|
619
|
+
"\rsession_token\x18\x02 \x01(\tR\fsessionToken2\xae\x01\n" +
|
|
620
|
+
"\rSearchService\x12L\n" +
|
|
621
|
+
"\aSuggest\x12\x1f.search.v1.SearchSuggestRequest\x1a .search.v1.SearchSuggestResponse\x12O\n" +
|
|
622
|
+
"\bRetrieve\x12 .search.v1.SearchRetrieveRequest\x1a!.search.v1.SearchRetrieveResponseB9Z7github.com/vectora-os/contracts/gen/go/search;search_v1b\x06proto3"
|
|
623
|
+
|
|
624
|
+
var (
|
|
625
|
+
file_mapbox_search_v1_proto_rawDescOnce sync.Once
|
|
626
|
+
file_mapbox_search_v1_proto_rawDescData []byte
|
|
627
|
+
)
|
|
628
|
+
|
|
629
|
+
func file_mapbox_search_v1_proto_rawDescGZIP() []byte {
|
|
630
|
+
file_mapbox_search_v1_proto_rawDescOnce.Do(func() {
|
|
631
|
+
file_mapbox_search_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mapbox_search_v1_proto_rawDesc), len(file_mapbox_search_v1_proto_rawDesc)))
|
|
632
|
+
})
|
|
633
|
+
return file_mapbox_search_v1_proto_rawDescData
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
var file_mapbox_search_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
637
|
+
var file_mapbox_search_v1_proto_goTypes = []any{
|
|
638
|
+
(*SearchSuggestRequest)(nil), // 0: search.v1.SearchSuggestRequest
|
|
639
|
+
(*SearchSuggestResponse)(nil), // 1: search.v1.SearchSuggestResponse
|
|
640
|
+
(*SearchSuggestion)(nil), // 2: search.v1.SearchSuggestion
|
|
641
|
+
(*SearchRetrieveResponse)(nil), // 3: search.v1.SearchRetrieveResponse
|
|
642
|
+
(*SearchFeature)(nil), // 4: search.v1.SearchFeature
|
|
643
|
+
(*FeatureProperties)(nil), // 5: search.v1.FeatureProperties
|
|
644
|
+
(*SearchContext)(nil), // 6: search.v1.SearchContext
|
|
645
|
+
(*SearchRetrieveRequest)(nil), // 7: search.v1.SearchRetrieveRequest
|
|
646
|
+
(*common.Geometry)(nil), // 8: common_geocode.v1.Geometry
|
|
647
|
+
(*common.Coordinates)(nil), // 9: common_geocode.v1.Coordinates
|
|
648
|
+
(*common.ContextItem)(nil), // 10: common_geocode.v1.ContextItem
|
|
649
|
+
}
|
|
650
|
+
var file_mapbox_search_v1_proto_depIdxs = []int32{
|
|
651
|
+
2, // 0: search.v1.SearchSuggestResponse.suggestions:type_name -> search.v1.SearchSuggestion
|
|
652
|
+
6, // 1: search.v1.SearchSuggestion.context:type_name -> search.v1.SearchContext
|
|
653
|
+
4, // 2: search.v1.SearchRetrieveResponse.features:type_name -> search.v1.SearchFeature
|
|
654
|
+
8, // 3: search.v1.SearchFeature.geometry:type_name -> common_geocode.v1.Geometry
|
|
655
|
+
5, // 4: search.v1.SearchFeature.properties:type_name -> search.v1.FeatureProperties
|
|
656
|
+
6, // 5: search.v1.FeatureProperties.context:type_name -> search.v1.SearchContext
|
|
657
|
+
9, // 6: search.v1.FeatureProperties.coordinates:type_name -> common_geocode.v1.Coordinates
|
|
658
|
+
10, // 7: search.v1.SearchContext.country:type_name -> common_geocode.v1.ContextItem
|
|
659
|
+
10, // 8: search.v1.SearchContext.region:type_name -> common_geocode.v1.ContextItem
|
|
660
|
+
10, // 9: search.v1.SearchContext.postcode:type_name -> common_geocode.v1.ContextItem
|
|
661
|
+
10, // 10: search.v1.SearchContext.place:type_name -> common_geocode.v1.ContextItem
|
|
662
|
+
10, // 11: search.v1.SearchContext.neighborhood:type_name -> common_geocode.v1.ContextItem
|
|
663
|
+
10, // 12: search.v1.SearchContext.street:type_name -> common_geocode.v1.ContextItem
|
|
664
|
+
0, // 13: search.v1.SearchService.Suggest:input_type -> search.v1.SearchSuggestRequest
|
|
665
|
+
7, // 14: search.v1.SearchService.Retrieve:input_type -> search.v1.SearchRetrieveRequest
|
|
666
|
+
1, // 15: search.v1.SearchService.Suggest:output_type -> search.v1.SearchSuggestResponse
|
|
667
|
+
3, // 16: search.v1.SearchService.Retrieve:output_type -> search.v1.SearchRetrieveResponse
|
|
668
|
+
15, // [15:17] is the sub-list for method output_type
|
|
669
|
+
13, // [13:15] is the sub-list for method input_type
|
|
670
|
+
13, // [13:13] is the sub-list for extension type_name
|
|
671
|
+
13, // [13:13] is the sub-list for extension extendee
|
|
672
|
+
0, // [0:13] is the sub-list for field type_name
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
func init() { file_mapbox_search_v1_proto_init() }
|
|
676
|
+
func file_mapbox_search_v1_proto_init() {
|
|
677
|
+
if File_mapbox_search_v1_proto != nil {
|
|
678
|
+
return
|
|
679
|
+
}
|
|
680
|
+
file_mapbox_search_v1_proto_msgTypes[0].OneofWrappers = []any{}
|
|
681
|
+
file_mapbox_search_v1_proto_msgTypes[2].OneofWrappers = []any{}
|
|
682
|
+
type x struct{}
|
|
683
|
+
out := protoimpl.TypeBuilder{
|
|
684
|
+
File: protoimpl.DescBuilder{
|
|
685
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
686
|
+
RawDescriptor: unsafe.Slice(unsafe.StringData(file_mapbox_search_v1_proto_rawDesc), len(file_mapbox_search_v1_proto_rawDesc)),
|
|
687
|
+
NumEnums: 0,
|
|
688
|
+
NumMessages: 8,
|
|
689
|
+
NumExtensions: 0,
|
|
690
|
+
NumServices: 1,
|
|
691
|
+
},
|
|
692
|
+
GoTypes: file_mapbox_search_v1_proto_goTypes,
|
|
693
|
+
DependencyIndexes: file_mapbox_search_v1_proto_depIdxs,
|
|
694
|
+
MessageInfos: file_mapbox_search_v1_proto_msgTypes,
|
|
695
|
+
}.Build()
|
|
696
|
+
File_mapbox_search_v1_proto = out.File
|
|
697
|
+
file_mapbox_search_v1_proto_goTypes = nil
|
|
698
|
+
file_mapbox_search_v1_proto_depIdxs = nil
|
|
699
|
+
}
|