1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package roads
23
24 import (
25 context "context"
26 reflect "reflect"
27 sync "sync"
28
29 _ "google.golang.org/genproto/googleapis/api/annotations"
30 latlng "google.golang.org/genproto/googleapis/type/latlng"
31 grpc "google.golang.org/grpc"
32 codes "google.golang.org/grpc/codes"
33 status "google.golang.org/grpc/status"
34 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
35 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
36 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
37 )
38
39 const (
40
41 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42
43 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 )
45
46
47 type TravelMode int32
48
49 const (
50 TravelMode_TRAVEL_MODE_UNSPECIFIED TravelMode = 0
51 TravelMode_DRIVING TravelMode = 1
52 TravelMode_CYCLING TravelMode = 2
53 TravelMode_WALKING TravelMode = 3
54 )
55
56
57 var (
58 TravelMode_name = map[int32]string{
59 0: "TRAVEL_MODE_UNSPECIFIED",
60 1: "DRIVING",
61 2: "CYCLING",
62 3: "WALKING",
63 }
64 TravelMode_value = map[string]int32{
65 "TRAVEL_MODE_UNSPECIFIED": 0,
66 "DRIVING": 1,
67 "CYCLING": 2,
68 "WALKING": 3,
69 }
70 )
71
72 func (x TravelMode) Enum() *TravelMode {
73 p := new(TravelMode)
74 *p = x
75 return p
76 }
77
78 func (x TravelMode) String() string {
79 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
80 }
81
82 func (TravelMode) Descriptor() protoreflect.EnumDescriptor {
83 return file_google_maps_roads_v1op_roads_proto_enumTypes[0].Descriptor()
84 }
85
86 func (TravelMode) Type() protoreflect.EnumType {
87 return &file_google_maps_roads_v1op_roads_proto_enumTypes[0]
88 }
89
90 func (x TravelMode) Number() protoreflect.EnumNumber {
91 return protoreflect.EnumNumber(x)
92 }
93
94
95 func (TravelMode) EnumDescriptor() ([]byte, []int) {
96 return file_google_maps_roads_v1op_roads_proto_rawDescGZIP(), []int{0}
97 }
98
99
100
101 type SnapToRoadsRequest struct {
102 state protoimpl.MessageState
103 sizeCache protoimpl.SizeCache
104 unknownFields protoimpl.UnknownFields
105
106
107
108 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
109
110 Interpolate bool `protobuf:"varint,2,opt,name=interpolate,proto3" json:"interpolate,omitempty"`
111
112
113 AssetId string `protobuf:"bytes,3,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
114
115 TravelMode TravelMode `protobuf:"varint,4,opt,name=travel_mode,json=travelMode,proto3,enum=google.maps.roads.v1op.TravelMode" json:"travel_mode,omitempty"`
116 }
117
118 func (x *SnapToRoadsRequest) Reset() {
119 *x = SnapToRoadsRequest{}
120 if protoimpl.UnsafeEnabled {
121 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[0]
122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123 ms.StoreMessageInfo(mi)
124 }
125 }
126
127 func (x *SnapToRoadsRequest) String() string {
128 return protoimpl.X.MessageStringOf(x)
129 }
130
131 func (*SnapToRoadsRequest) ProtoMessage() {}
132
133 func (x *SnapToRoadsRequest) ProtoReflect() protoreflect.Message {
134 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[0]
135 if protoimpl.UnsafeEnabled && x != nil {
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 if ms.LoadMessageInfo() == nil {
138 ms.StoreMessageInfo(mi)
139 }
140 return ms
141 }
142 return mi.MessageOf(x)
143 }
144
145
146 func (*SnapToRoadsRequest) Descriptor() ([]byte, []int) {
147 return file_google_maps_roads_v1op_roads_proto_rawDescGZIP(), []int{0}
148 }
149
150 func (x *SnapToRoadsRequest) GetPath() string {
151 if x != nil {
152 return x.Path
153 }
154 return ""
155 }
156
157 func (x *SnapToRoadsRequest) GetInterpolate() bool {
158 if x != nil {
159 return x.Interpolate
160 }
161 return false
162 }
163
164 func (x *SnapToRoadsRequest) GetAssetId() string {
165 if x != nil {
166 return x.AssetId
167 }
168 return ""
169 }
170
171 func (x *SnapToRoadsRequest) GetTravelMode() TravelMode {
172 if x != nil {
173 return x.TravelMode
174 }
175 return TravelMode_TRAVEL_MODE_UNSPECIFIED
176 }
177
178
179 type SnappedPoint struct {
180 state protoimpl.MessageState
181 sizeCache protoimpl.SizeCache
182 unknownFields protoimpl.UnknownFields
183
184
185 Location *latlng.LatLng `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
186
187
188
189 OriginalIndex *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=original_index,json=originalIndex,proto3" json:"original_index,omitempty"`
190
191
192 PlaceId string `protobuf:"bytes,3,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
193 }
194
195 func (x *SnappedPoint) Reset() {
196 *x = SnappedPoint{}
197 if protoimpl.UnsafeEnabled {
198 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[1]
199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200 ms.StoreMessageInfo(mi)
201 }
202 }
203
204 func (x *SnappedPoint) String() string {
205 return protoimpl.X.MessageStringOf(x)
206 }
207
208 func (*SnappedPoint) ProtoMessage() {}
209
210 func (x *SnappedPoint) ProtoReflect() protoreflect.Message {
211 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[1]
212 if protoimpl.UnsafeEnabled && x != nil {
213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
214 if ms.LoadMessageInfo() == nil {
215 ms.StoreMessageInfo(mi)
216 }
217 return ms
218 }
219 return mi.MessageOf(x)
220 }
221
222
223 func (*SnappedPoint) Descriptor() ([]byte, []int) {
224 return file_google_maps_roads_v1op_roads_proto_rawDescGZIP(), []int{1}
225 }
226
227 func (x *SnappedPoint) GetLocation() *latlng.LatLng {
228 if x != nil {
229 return x.Location
230 }
231 return nil
232 }
233
234 func (x *SnappedPoint) GetOriginalIndex() *wrapperspb.UInt32Value {
235 if x != nil {
236 return x.OriginalIndex
237 }
238 return nil
239 }
240
241 func (x *SnappedPoint) GetPlaceId() string {
242 if x != nil {
243 return x.PlaceId
244 }
245 return ""
246 }
247
248
249
250 type SnapToRoadsResponse struct {
251 state protoimpl.MessageState
252 sizeCache protoimpl.SizeCache
253 unknownFields protoimpl.UnknownFields
254
255
256 SnappedPoints []*SnappedPoint `protobuf:"bytes,1,rep,name=snapped_points,json=snappedPoints,proto3" json:"snapped_points,omitempty"`
257
258
259 WarningMessage string `protobuf:"bytes,2,opt,name=warning_message,json=warningMessage,proto3" json:"warning_message,omitempty"`
260 }
261
262 func (x *SnapToRoadsResponse) Reset() {
263 *x = SnapToRoadsResponse{}
264 if protoimpl.UnsafeEnabled {
265 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[2]
266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
267 ms.StoreMessageInfo(mi)
268 }
269 }
270
271 func (x *SnapToRoadsResponse) String() string {
272 return protoimpl.X.MessageStringOf(x)
273 }
274
275 func (*SnapToRoadsResponse) ProtoMessage() {}
276
277 func (x *SnapToRoadsResponse) ProtoReflect() protoreflect.Message {
278 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[2]
279 if protoimpl.UnsafeEnabled && 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
290 func (*SnapToRoadsResponse) Descriptor() ([]byte, []int) {
291 return file_google_maps_roads_v1op_roads_proto_rawDescGZIP(), []int{2}
292 }
293
294 func (x *SnapToRoadsResponse) GetSnappedPoints() []*SnappedPoint {
295 if x != nil {
296 return x.SnappedPoints
297 }
298 return nil
299 }
300
301 func (x *SnapToRoadsResponse) GetWarningMessage() string {
302 if x != nil {
303 return x.WarningMessage
304 }
305 return ""
306 }
307
308
309
310 type ListNearestRoadsRequest struct {
311 state protoimpl.MessageState
312 sizeCache protoimpl.SizeCache
313 unknownFields protoimpl.UnknownFields
314
315
316
317 Points string `protobuf:"bytes,1,opt,name=points,proto3" json:"points,omitempty"`
318
319 TravelMode TravelMode `protobuf:"varint,2,opt,name=travel_mode,json=travelMode,proto3,enum=google.maps.roads.v1op.TravelMode" json:"travel_mode,omitempty"`
320 }
321
322 func (x *ListNearestRoadsRequest) Reset() {
323 *x = ListNearestRoadsRequest{}
324 if protoimpl.UnsafeEnabled {
325 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[3]
326 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
327 ms.StoreMessageInfo(mi)
328 }
329 }
330
331 func (x *ListNearestRoadsRequest) String() string {
332 return protoimpl.X.MessageStringOf(x)
333 }
334
335 func (*ListNearestRoadsRequest) ProtoMessage() {}
336
337 func (x *ListNearestRoadsRequest) ProtoReflect() protoreflect.Message {
338 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[3]
339 if protoimpl.UnsafeEnabled && x != nil {
340 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
341 if ms.LoadMessageInfo() == nil {
342 ms.StoreMessageInfo(mi)
343 }
344 return ms
345 }
346 return mi.MessageOf(x)
347 }
348
349
350 func (*ListNearestRoadsRequest) Descriptor() ([]byte, []int) {
351 return file_google_maps_roads_v1op_roads_proto_rawDescGZIP(), []int{3}
352 }
353
354 func (x *ListNearestRoadsRequest) GetPoints() string {
355 if x != nil {
356 return x.Points
357 }
358 return ""
359 }
360
361 func (x *ListNearestRoadsRequest) GetTravelMode() TravelMode {
362 if x != nil {
363 return x.TravelMode
364 }
365 return TravelMode_TRAVEL_MODE_UNSPECIFIED
366 }
367
368
369
370 type ListNearestRoadsResponse struct {
371 state protoimpl.MessageState
372 sizeCache protoimpl.SizeCache
373 unknownFields protoimpl.UnknownFields
374
375
376 SnappedPoints []*SnappedPoint `protobuf:"bytes,1,rep,name=snapped_points,json=snappedPoints,proto3" json:"snapped_points,omitempty"`
377 }
378
379 func (x *ListNearestRoadsResponse) Reset() {
380 *x = ListNearestRoadsResponse{}
381 if protoimpl.UnsafeEnabled {
382 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[4]
383 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
384 ms.StoreMessageInfo(mi)
385 }
386 }
387
388 func (x *ListNearestRoadsResponse) String() string {
389 return protoimpl.X.MessageStringOf(x)
390 }
391
392 func (*ListNearestRoadsResponse) ProtoMessage() {}
393
394 func (x *ListNearestRoadsResponse) ProtoReflect() protoreflect.Message {
395 mi := &file_google_maps_roads_v1op_roads_proto_msgTypes[4]
396 if protoimpl.UnsafeEnabled && x != nil {
397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
398 if ms.LoadMessageInfo() == nil {
399 ms.StoreMessageInfo(mi)
400 }
401 return ms
402 }
403 return mi.MessageOf(x)
404 }
405
406
407 func (*ListNearestRoadsResponse) Descriptor() ([]byte, []int) {
408 return file_google_maps_roads_v1op_roads_proto_rawDescGZIP(), []int{4}
409 }
410
411 func (x *ListNearestRoadsResponse) GetSnappedPoints() []*SnappedPoint {
412 if x != nil {
413 return x.SnappedPoints
414 }
415 return nil
416 }
417
418 var File_google_maps_roads_v1op_roads_proto protoreflect.FileDescriptor
419
420 var file_google_maps_roads_v1op_roads_proto_rawDesc = []byte{
421 0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f,
422 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x6f, 0x70, 0x2f, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x70,
423 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70,
424 0x73, 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f, 0x70, 0x1a, 0x17, 0x67, 0x6f,
425 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e,
426 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
427 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e,
428 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79,
429 0x70, 0x65, 0x2f, 0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
430 0xaa, 0x01, 0x0a, 0x12, 0x53, 0x6e, 0x61, 0x70, 0x54, 0x6f, 0x52, 0x6f, 0x61, 0x64, 0x73, 0x52,
431 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01,
432 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e,
433 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
434 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08,
435 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
436 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x76, 0x65,
437 0x6c, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67,
438 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73,
439 0x2e, 0x76, 0x31, 0x6f, 0x70, 0x2e, 0x54, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65,
440 0x52, 0x0a, 0x74, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x9f, 0x01, 0x0a,
441 0x0c, 0x53, 0x6e, 0x61, 0x70, 0x70, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2f, 0x0a,
442 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
443 0x13, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4c, 0x61,
444 0x74, 0x4c, 0x6e, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43,
445 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78,
446 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
447 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56,
448 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x49, 0x6e,
449 0x64, 0x65, 0x78, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18,
450 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0x8b,
451 0x01, 0x0a, 0x13, 0x53, 0x6e, 0x61, 0x70, 0x54, 0x6f, 0x52, 0x6f, 0x61, 0x64, 0x73, 0x52, 0x65,
452 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x73, 0x6e, 0x61, 0x70, 0x70, 0x65,
453 0x64, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
454 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x61,
455 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f, 0x70, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x70, 0x65, 0x64, 0x50,
456 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0d, 0x73, 0x6e, 0x61, 0x70, 0x70, 0x65, 0x64, 0x50, 0x6f, 0x69,
457 0x6e, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x6d,
458 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x61,
459 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x76, 0x0a, 0x17,
460 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x61, 0x64, 0x73,
461 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x69, 0x6e, 0x74,
462 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12,
463 0x43, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02,
464 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61,
465 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f, 0x70, 0x2e, 0x54, 0x72,
466 0x61, 0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x76, 0x65, 0x6c,
467 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x67, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x61, 0x72,
468 0x65, 0x73, 0x74, 0x52, 0x6f, 0x61, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
469 0x12, 0x4b, 0x0a, 0x0e, 0x73, 0x6e, 0x61, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x70, 0x6f, 0x69, 0x6e,
470 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
471 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f,
472 0x70, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x70, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0d,
473 0x73, 0x6e, 0x61, 0x70, 0x70, 0x65, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2a, 0x50, 0x0a,
474 0x0a, 0x54, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x54,
475 0x52, 0x41, 0x56, 0x45, 0x4c, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
476 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x52, 0x49, 0x56,
477 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x59, 0x43, 0x4c, 0x49, 0x4e, 0x47,
478 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x4c, 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x32,
479 0x9b, 0x02, 0x0a, 0x0c, 0x52, 0x6f, 0x61, 0x64, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
480 0x12, 0x6f, 0x0a, 0x0b, 0x53, 0x6e, 0x61, 0x70, 0x54, 0x6f, 0x52, 0x6f, 0x61, 0x64, 0x73, 0x12,
481 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f,
482 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f, 0x70, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x54, 0x6f, 0x52,
483 0x6f, 0x61, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f,
484 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e,
485 0x76, 0x31, 0x6f, 0x70, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x54, 0x6f, 0x52, 0x6f, 0x61, 0x64, 0x73,
486 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x07, 0xda, 0x41, 0x04, 0x70, 0x61, 0x74,
487 0x68, 0x12, 0x80, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73,
488 0x74, 0x52, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
489 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f, 0x70, 0x2e,
490 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x61, 0x64, 0x73,
491 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
492 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f, 0x70,
493 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x61, 0x64,
494 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x09, 0xda, 0x41, 0x06, 0x70, 0x6f,
495 0x69, 0x6e, 0x74, 0x73, 0x1a, 0x17, 0xca, 0x41, 0x14, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x67,
496 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x42, 0x67, 0x0a,
497 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73,
498 0x2e, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x6f, 0x70, 0x42, 0x0a, 0x52, 0x6f, 0x61,
499 0x64, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
500 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
501 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
502 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x6f, 0x70,
503 0x3b, 0x72, 0x6f, 0x61, 0x64, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
504 }
505
506 var (
507 file_google_maps_roads_v1op_roads_proto_rawDescOnce sync.Once
508 file_google_maps_roads_v1op_roads_proto_rawDescData = file_google_maps_roads_v1op_roads_proto_rawDesc
509 )
510
511 func file_google_maps_roads_v1op_roads_proto_rawDescGZIP() []byte {
512 file_google_maps_roads_v1op_roads_proto_rawDescOnce.Do(func() {
513 file_google_maps_roads_v1op_roads_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_roads_v1op_roads_proto_rawDescData)
514 })
515 return file_google_maps_roads_v1op_roads_proto_rawDescData
516 }
517
518 var file_google_maps_roads_v1op_roads_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
519 var file_google_maps_roads_v1op_roads_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
520 var file_google_maps_roads_v1op_roads_proto_goTypes = []interface{}{
521 (TravelMode)(0),
522 (*SnapToRoadsRequest)(nil),
523 (*SnappedPoint)(nil),
524 (*SnapToRoadsResponse)(nil),
525 (*ListNearestRoadsRequest)(nil),
526 (*ListNearestRoadsResponse)(nil),
527 (*latlng.LatLng)(nil),
528 (*wrapperspb.UInt32Value)(nil),
529 }
530 var file_google_maps_roads_v1op_roads_proto_depIdxs = []int32{
531 0,
532 6,
533 7,
534 2,
535 0,
536 2,
537 1,
538 4,
539 3,
540 5,
541 8,
542 6,
543 6,
544 6,
545 0,
546 }
547
548 func init() { file_google_maps_roads_v1op_roads_proto_init() }
549 func file_google_maps_roads_v1op_roads_proto_init() {
550 if File_google_maps_roads_v1op_roads_proto != nil {
551 return
552 }
553 if !protoimpl.UnsafeEnabled {
554 file_google_maps_roads_v1op_roads_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
555 switch v := v.(*SnapToRoadsRequest); i {
556 case 0:
557 return &v.state
558 case 1:
559 return &v.sizeCache
560 case 2:
561 return &v.unknownFields
562 default:
563 return nil
564 }
565 }
566 file_google_maps_roads_v1op_roads_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
567 switch v := v.(*SnappedPoint); i {
568 case 0:
569 return &v.state
570 case 1:
571 return &v.sizeCache
572 case 2:
573 return &v.unknownFields
574 default:
575 return nil
576 }
577 }
578 file_google_maps_roads_v1op_roads_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
579 switch v := v.(*SnapToRoadsResponse); i {
580 case 0:
581 return &v.state
582 case 1:
583 return &v.sizeCache
584 case 2:
585 return &v.unknownFields
586 default:
587 return nil
588 }
589 }
590 file_google_maps_roads_v1op_roads_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
591 switch v := v.(*ListNearestRoadsRequest); i {
592 case 0:
593 return &v.state
594 case 1:
595 return &v.sizeCache
596 case 2:
597 return &v.unknownFields
598 default:
599 return nil
600 }
601 }
602 file_google_maps_roads_v1op_roads_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
603 switch v := v.(*ListNearestRoadsResponse); i {
604 case 0:
605 return &v.state
606 case 1:
607 return &v.sizeCache
608 case 2:
609 return &v.unknownFields
610 default:
611 return nil
612 }
613 }
614 }
615 type x struct{}
616 out := protoimpl.TypeBuilder{
617 File: protoimpl.DescBuilder{
618 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
619 RawDescriptor: file_google_maps_roads_v1op_roads_proto_rawDesc,
620 NumEnums: 1,
621 NumMessages: 5,
622 NumExtensions: 0,
623 NumServices: 1,
624 },
625 GoTypes: file_google_maps_roads_v1op_roads_proto_goTypes,
626 DependencyIndexes: file_google_maps_roads_v1op_roads_proto_depIdxs,
627 EnumInfos: file_google_maps_roads_v1op_roads_proto_enumTypes,
628 MessageInfos: file_google_maps_roads_v1op_roads_proto_msgTypes,
629 }.Build()
630 File_google_maps_roads_v1op_roads_proto = out.File
631 file_google_maps_roads_v1op_roads_proto_rawDesc = nil
632 file_google_maps_roads_v1op_roads_proto_goTypes = nil
633 file_google_maps_roads_v1op_roads_proto_depIdxs = nil
634 }
635
636
637 var _ context.Context
638 var _ grpc.ClientConnInterface
639
640
641
642 const _ = grpc.SupportPackageIsVersion6
643
644
645
646
647 type RoadsServiceClient interface {
648
649
650
651 SnapToRoads(ctx context.Context, in *SnapToRoadsRequest, opts ...grpc.CallOption) (*SnapToRoadsResponse, error)
652
653
654 ListNearestRoads(ctx context.Context, in *ListNearestRoadsRequest, opts ...grpc.CallOption) (*ListNearestRoadsResponse, error)
655 }
656
657 type roadsServiceClient struct {
658 cc grpc.ClientConnInterface
659 }
660
661 func NewRoadsServiceClient(cc grpc.ClientConnInterface) RoadsServiceClient {
662 return &roadsServiceClient{cc}
663 }
664
665 func (c *roadsServiceClient) SnapToRoads(ctx context.Context, in *SnapToRoadsRequest, opts ...grpc.CallOption) (*SnapToRoadsResponse, error) {
666 out := new(SnapToRoadsResponse)
667 err := c.cc.Invoke(ctx, "/google.maps.roads.v1op.RoadsService/SnapToRoads", in, out, opts...)
668 if err != nil {
669 return nil, err
670 }
671 return out, nil
672 }
673
674 func (c *roadsServiceClient) ListNearestRoads(ctx context.Context, in *ListNearestRoadsRequest, opts ...grpc.CallOption) (*ListNearestRoadsResponse, error) {
675 out := new(ListNearestRoadsResponse)
676 err := c.cc.Invoke(ctx, "/google.maps.roads.v1op.RoadsService/ListNearestRoads", in, out, opts...)
677 if err != nil {
678 return nil, err
679 }
680 return out, nil
681 }
682
683
684 type RoadsServiceServer interface {
685
686
687
688 SnapToRoads(context.Context, *SnapToRoadsRequest) (*SnapToRoadsResponse, error)
689
690
691 ListNearestRoads(context.Context, *ListNearestRoadsRequest) (*ListNearestRoadsResponse, error)
692 }
693
694
695 type UnimplementedRoadsServiceServer struct {
696 }
697
698 func (*UnimplementedRoadsServiceServer) SnapToRoads(context.Context, *SnapToRoadsRequest) (*SnapToRoadsResponse, error) {
699 return nil, status.Errorf(codes.Unimplemented, "method SnapToRoads not implemented")
700 }
701 func (*UnimplementedRoadsServiceServer) ListNearestRoads(context.Context, *ListNearestRoadsRequest) (*ListNearestRoadsResponse, error) {
702 return nil, status.Errorf(codes.Unimplemented, "method ListNearestRoads not implemented")
703 }
704
705 func RegisterRoadsServiceServer(s *grpc.Server, srv RoadsServiceServer) {
706 s.RegisterService(&_RoadsService_serviceDesc, srv)
707 }
708
709 func _RoadsService_SnapToRoads_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
710 in := new(SnapToRoadsRequest)
711 if err := dec(in); err != nil {
712 return nil, err
713 }
714 if interceptor == nil {
715 return srv.(RoadsServiceServer).SnapToRoads(ctx, in)
716 }
717 info := &grpc.UnaryServerInfo{
718 Server: srv,
719 FullMethod: "/google.maps.roads.v1op.RoadsService/SnapToRoads",
720 }
721 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
722 return srv.(RoadsServiceServer).SnapToRoads(ctx, req.(*SnapToRoadsRequest))
723 }
724 return interceptor(ctx, in, info, handler)
725 }
726
727 func _RoadsService_ListNearestRoads_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
728 in := new(ListNearestRoadsRequest)
729 if err := dec(in); err != nil {
730 return nil, err
731 }
732 if interceptor == nil {
733 return srv.(RoadsServiceServer).ListNearestRoads(ctx, in)
734 }
735 info := &grpc.UnaryServerInfo{
736 Server: srv,
737 FullMethod: "/google.maps.roads.v1op.RoadsService/ListNearestRoads",
738 }
739 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
740 return srv.(RoadsServiceServer).ListNearestRoads(ctx, req.(*ListNearestRoadsRequest))
741 }
742 return interceptor(ctx, in, info, handler)
743 }
744
745 var _RoadsService_serviceDesc = grpc.ServiceDesc{
746 ServiceName: "google.maps.roads.v1op.RoadsService",
747 HandlerType: (*RoadsServiceServer)(nil),
748 Methods: []grpc.MethodDesc{
749 {
750 MethodName: "SnapToRoads",
751 Handler: _RoadsService_SnapToRoads_Handler,
752 },
753 {
754 MethodName: "ListNearestRoads",
755 Handler: _RoadsService_ListNearestRoads_Handler,
756 },
757 },
758 Streams: []grpc.StreamDesc{},
759 Metadata: "google/maps/roads/v1op/roads.proto",
760 }
761
View as plain text