1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package routes
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 structpb "google.golang.org/protobuf/types/known/structpb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type PolylineQuality int32
41
42 const (
43
44 PolylineQuality_POLYLINE_QUALITY_UNSPECIFIED PolylineQuality = 0
45
46
47
48 PolylineQuality_HIGH_QUALITY PolylineQuality = 1
49
50
51
52
53 PolylineQuality_OVERVIEW PolylineQuality = 2
54 )
55
56
57 var (
58 PolylineQuality_name = map[int32]string{
59 0: "POLYLINE_QUALITY_UNSPECIFIED",
60 1: "HIGH_QUALITY",
61 2: "OVERVIEW",
62 }
63 PolylineQuality_value = map[string]int32{
64 "POLYLINE_QUALITY_UNSPECIFIED": 0,
65 "HIGH_QUALITY": 1,
66 "OVERVIEW": 2,
67 }
68 )
69
70 func (x PolylineQuality) Enum() *PolylineQuality {
71 p := new(PolylineQuality)
72 *p = x
73 return p
74 }
75
76 func (x PolylineQuality) String() string {
77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
78 }
79
80 func (PolylineQuality) Descriptor() protoreflect.EnumDescriptor {
81 return file_google_maps_routes_v1_polyline_proto_enumTypes[0].Descriptor()
82 }
83
84 func (PolylineQuality) Type() protoreflect.EnumType {
85 return &file_google_maps_routes_v1_polyline_proto_enumTypes[0]
86 }
87
88 func (x PolylineQuality) Number() protoreflect.EnumNumber {
89 return protoreflect.EnumNumber(x)
90 }
91
92
93 func (PolylineQuality) EnumDescriptor() ([]byte, []int) {
94 return file_google_maps_routes_v1_polyline_proto_rawDescGZIP(), []int{0}
95 }
96
97
98 type PolylineEncoding int32
99
100 const (
101
102 PolylineEncoding_POLYLINE_ENCODING_UNSPECIFIED PolylineEncoding = 0
103
104
105 PolylineEncoding_ENCODED_POLYLINE PolylineEncoding = 1
106
107
108 PolylineEncoding_GEO_JSON_LINESTRING PolylineEncoding = 2
109 )
110
111
112 var (
113 PolylineEncoding_name = map[int32]string{
114 0: "POLYLINE_ENCODING_UNSPECIFIED",
115 1: "ENCODED_POLYLINE",
116 2: "GEO_JSON_LINESTRING",
117 }
118 PolylineEncoding_value = map[string]int32{
119 "POLYLINE_ENCODING_UNSPECIFIED": 0,
120 "ENCODED_POLYLINE": 1,
121 "GEO_JSON_LINESTRING": 2,
122 }
123 )
124
125 func (x PolylineEncoding) Enum() *PolylineEncoding {
126 p := new(PolylineEncoding)
127 *p = x
128 return p
129 }
130
131 func (x PolylineEncoding) String() string {
132 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
133 }
134
135 func (PolylineEncoding) Descriptor() protoreflect.EnumDescriptor {
136 return file_google_maps_routes_v1_polyline_proto_enumTypes[1].Descriptor()
137 }
138
139 func (PolylineEncoding) Type() protoreflect.EnumType {
140 return &file_google_maps_routes_v1_polyline_proto_enumTypes[1]
141 }
142
143 func (x PolylineEncoding) Number() protoreflect.EnumNumber {
144 return protoreflect.EnumNumber(x)
145 }
146
147
148 func (PolylineEncoding) EnumDescriptor() ([]byte, []int) {
149 return file_google_maps_routes_v1_polyline_proto_rawDescGZIP(), []int{1}
150 }
151
152
153 type Polyline struct {
154 state protoimpl.MessageState
155 sizeCache protoimpl.SizeCache
156 unknownFields protoimpl.UnknownFields
157
158
159
160
161
162
163 PolylineType isPolyline_PolylineType `protobuf_oneof:"polyline_type"`
164 }
165
166 func (x *Polyline) Reset() {
167 *x = Polyline{}
168 if protoimpl.UnsafeEnabled {
169 mi := &file_google_maps_routes_v1_polyline_proto_msgTypes[0]
170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
171 ms.StoreMessageInfo(mi)
172 }
173 }
174
175 func (x *Polyline) String() string {
176 return protoimpl.X.MessageStringOf(x)
177 }
178
179 func (*Polyline) ProtoMessage() {}
180
181 func (x *Polyline) ProtoReflect() protoreflect.Message {
182 mi := &file_google_maps_routes_v1_polyline_proto_msgTypes[0]
183 if protoimpl.UnsafeEnabled && x != nil {
184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
185 if ms.LoadMessageInfo() == nil {
186 ms.StoreMessageInfo(mi)
187 }
188 return ms
189 }
190 return mi.MessageOf(x)
191 }
192
193
194 func (*Polyline) Descriptor() ([]byte, []int) {
195 return file_google_maps_routes_v1_polyline_proto_rawDescGZIP(), []int{0}
196 }
197
198 func (m *Polyline) GetPolylineType() isPolyline_PolylineType {
199 if m != nil {
200 return m.PolylineType
201 }
202 return nil
203 }
204
205 func (x *Polyline) GetEncodedPolyline() string {
206 if x, ok := x.GetPolylineType().(*Polyline_EncodedPolyline); ok {
207 return x.EncodedPolyline
208 }
209 return ""
210 }
211
212 func (x *Polyline) GetGeoJsonLinestring() *structpb.Struct {
213 if x, ok := x.GetPolylineType().(*Polyline_GeoJsonLinestring); ok {
214 return x.GeoJsonLinestring
215 }
216 return nil
217 }
218
219 type isPolyline_PolylineType interface {
220 isPolyline_PolylineType()
221 }
222
223 type Polyline_EncodedPolyline struct {
224
225
226 EncodedPolyline string `protobuf:"bytes,1,opt,name=encoded_polyline,json=encodedPolyline,proto3,oneof"`
227 }
228
229 type Polyline_GeoJsonLinestring struct {
230
231
232 GeoJsonLinestring *structpb.Struct `protobuf:"bytes,2,opt,name=geo_json_linestring,json=geoJsonLinestring,proto3,oneof"`
233 }
234
235 func (*Polyline_EncodedPolyline) isPolyline_PolylineType() {}
236
237 func (*Polyline_GeoJsonLinestring) isPolyline_PolylineType() {}
238
239 var File_google_maps_routes_v1_polyline_proto protoreflect.FileDescriptor
240
241 var file_google_maps_routes_v1_polyline_proto_rawDesc = []byte{
242 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f,
243 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65,
244 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
245 0x61, 0x70, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67,
246 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73,
247 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x01, 0x0a, 0x08,
248 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x2b, 0x0a, 0x10, 0x65, 0x6e, 0x63, 0x6f,
249 0x64, 0x65, 0x64, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01,
250 0x28, 0x09, 0x48, 0x00, 0x52, 0x0f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x50, 0x6f, 0x6c,
251 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x49, 0x0a, 0x13, 0x67, 0x65, 0x6f, 0x5f, 0x6a, 0x73, 0x6f,
252 0x6e, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01,
253 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
254 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x11, 0x67,
255 0x65, 0x6f, 0x4a, 0x73, 0x6f, 0x6e, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
256 0x42, 0x0f, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70,
257 0x65, 0x2a, 0x53, 0x0a, 0x0f, 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x51, 0x75, 0x61,
258 0x6c, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x4f, 0x4c, 0x59, 0x4c, 0x49, 0x4e, 0x45,
259 0x5f, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
260 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x48, 0x49, 0x47, 0x48, 0x5f, 0x51,
261 0x55, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x56, 0x45, 0x52,
262 0x56, 0x49, 0x45, 0x57, 0x10, 0x02, 0x2a, 0x64, 0x0a, 0x10, 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69,
263 0x6e, 0x65, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x4f,
264 0x4c, 0x59, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f,
265 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a,
266 0x10, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x44, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4c, 0x49, 0x4e,
267 0x45, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x47, 0x45, 0x4f, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x5f,
268 0x4c, 0x49, 0x4e, 0x45, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x42, 0xa3, 0x01, 0x0a,
269 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73,
270 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x50, 0x6f, 0x6c, 0x79,
271 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x6f, 0x6f,
272 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
273 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
274 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x76,
275 0x31, 0x3b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x4d,
276 0x52, 0x53, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73,
277 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f,
278 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x5c,
279 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
280 }
281
282 var (
283 file_google_maps_routes_v1_polyline_proto_rawDescOnce sync.Once
284 file_google_maps_routes_v1_polyline_proto_rawDescData = file_google_maps_routes_v1_polyline_proto_rawDesc
285 )
286
287 func file_google_maps_routes_v1_polyline_proto_rawDescGZIP() []byte {
288 file_google_maps_routes_v1_polyline_proto_rawDescOnce.Do(func() {
289 file_google_maps_routes_v1_polyline_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_routes_v1_polyline_proto_rawDescData)
290 })
291 return file_google_maps_routes_v1_polyline_proto_rawDescData
292 }
293
294 var file_google_maps_routes_v1_polyline_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
295 var file_google_maps_routes_v1_polyline_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
296 var file_google_maps_routes_v1_polyline_proto_goTypes = []interface{}{
297 (PolylineQuality)(0),
298 (PolylineEncoding)(0),
299 (*Polyline)(nil),
300 (*structpb.Struct)(nil),
301 }
302 var file_google_maps_routes_v1_polyline_proto_depIdxs = []int32{
303 3,
304 1,
305 1,
306 1,
307 1,
308 0,
309 }
310
311 func init() { file_google_maps_routes_v1_polyline_proto_init() }
312 func file_google_maps_routes_v1_polyline_proto_init() {
313 if File_google_maps_routes_v1_polyline_proto != nil {
314 return
315 }
316 if !protoimpl.UnsafeEnabled {
317 file_google_maps_routes_v1_polyline_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
318 switch v := v.(*Polyline); i {
319 case 0:
320 return &v.state
321 case 1:
322 return &v.sizeCache
323 case 2:
324 return &v.unknownFields
325 default:
326 return nil
327 }
328 }
329 }
330 file_google_maps_routes_v1_polyline_proto_msgTypes[0].OneofWrappers = []interface{}{
331 (*Polyline_EncodedPolyline)(nil),
332 (*Polyline_GeoJsonLinestring)(nil),
333 }
334 type x struct{}
335 out := protoimpl.TypeBuilder{
336 File: protoimpl.DescBuilder{
337 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
338 RawDescriptor: file_google_maps_routes_v1_polyline_proto_rawDesc,
339 NumEnums: 2,
340 NumMessages: 1,
341 NumExtensions: 0,
342 NumServices: 0,
343 },
344 GoTypes: file_google_maps_routes_v1_polyline_proto_goTypes,
345 DependencyIndexes: file_google_maps_routes_v1_polyline_proto_depIdxs,
346 EnumInfos: file_google_maps_routes_v1_polyline_proto_enumTypes,
347 MessageInfos: file_google_maps_routes_v1_polyline_proto_msgTypes,
348 }.Build()
349 File_google_maps_routes_v1_polyline_proto = out.File
350 file_google_maps_routes_v1_polyline_proto_rawDesc = nil
351 file_google_maps_routes_v1_polyline_proto_goTypes = nil
352 file_google_maps_routes_v1_polyline_proto_depIdxs = nil
353 }
354
View as plain text