1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package fleetengine
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type RequestHeader_SdkType int32
41
42 const (
43
44 RequestHeader_SDK_TYPE_UNSPECIFIED RequestHeader_SdkType = 0
45
46 RequestHeader_CONSUMER RequestHeader_SdkType = 1
47
48 RequestHeader_DRIVER RequestHeader_SdkType = 2
49
50 RequestHeader_JAVASCRIPT RequestHeader_SdkType = 3
51 )
52
53
54 var (
55 RequestHeader_SdkType_name = map[int32]string{
56 0: "SDK_TYPE_UNSPECIFIED",
57 1: "CONSUMER",
58 2: "DRIVER",
59 3: "JAVASCRIPT",
60 }
61 RequestHeader_SdkType_value = map[string]int32{
62 "SDK_TYPE_UNSPECIFIED": 0,
63 "CONSUMER": 1,
64 "DRIVER": 2,
65 "JAVASCRIPT": 3,
66 }
67 )
68
69 func (x RequestHeader_SdkType) Enum() *RequestHeader_SdkType {
70 p := new(RequestHeader_SdkType)
71 *p = x
72 return p
73 }
74
75 func (x RequestHeader_SdkType) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (RequestHeader_SdkType) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_maps_fleetengine_v1_header_proto_enumTypes[0].Descriptor()
81 }
82
83 func (RequestHeader_SdkType) Type() protoreflect.EnumType {
84 return &file_google_maps_fleetengine_v1_header_proto_enumTypes[0]
85 }
86
87 func (x RequestHeader_SdkType) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91
92 func (RequestHeader_SdkType) EnumDescriptor() ([]byte, []int) {
93 return file_google_maps_fleetengine_v1_header_proto_rawDescGZIP(), []int{0, 0}
94 }
95
96
97 type RequestHeader_Platform int32
98
99 const (
100
101 RequestHeader_PLATFORM_UNSPECIFIED RequestHeader_Platform = 0
102
103 RequestHeader_ANDROID RequestHeader_Platform = 1
104
105 RequestHeader_IOS RequestHeader_Platform = 2
106
107 RequestHeader_WEB RequestHeader_Platform = 3
108 )
109
110
111 var (
112 RequestHeader_Platform_name = map[int32]string{
113 0: "PLATFORM_UNSPECIFIED",
114 1: "ANDROID",
115 2: "IOS",
116 3: "WEB",
117 }
118 RequestHeader_Platform_value = map[string]int32{
119 "PLATFORM_UNSPECIFIED": 0,
120 "ANDROID": 1,
121 "IOS": 2,
122 "WEB": 3,
123 }
124 )
125
126 func (x RequestHeader_Platform) Enum() *RequestHeader_Platform {
127 p := new(RequestHeader_Platform)
128 *p = x
129 return p
130 }
131
132 func (x RequestHeader_Platform) String() string {
133 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
134 }
135
136 func (RequestHeader_Platform) Descriptor() protoreflect.EnumDescriptor {
137 return file_google_maps_fleetengine_v1_header_proto_enumTypes[1].Descriptor()
138 }
139
140 func (RequestHeader_Platform) Type() protoreflect.EnumType {
141 return &file_google_maps_fleetengine_v1_header_proto_enumTypes[1]
142 }
143
144 func (x RequestHeader_Platform) Number() protoreflect.EnumNumber {
145 return protoreflect.EnumNumber(x)
146 }
147
148
149 func (RequestHeader_Platform) EnumDescriptor() ([]byte, []int) {
150 return file_google_maps_fleetengine_v1_header_proto_rawDescGZIP(), []int{0, 1}
151 }
152
153
154 type RequestHeader struct {
155 state protoimpl.MessageState
156 sizeCache protoimpl.SizeCache
157 unknownFields protoimpl.UnknownFields
158
159
160
161
162
163 LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
164
165
166 RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
167
168
169 SdkVersion string `protobuf:"bytes,3,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"`
170
171
172 OsVersion string `protobuf:"bytes,4,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
173
174
175 DeviceModel string `protobuf:"bytes,5,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"`
176
177 SdkType RequestHeader_SdkType `protobuf:"varint,6,opt,name=sdk_type,json=sdkType,proto3,enum=maps.fleetengine.v1.RequestHeader_SdkType" json:"sdk_type,omitempty"`
178
179
180 MapsSdkVersion string `protobuf:"bytes,7,opt,name=maps_sdk_version,json=mapsSdkVersion,proto3" json:"maps_sdk_version,omitempty"`
181
182
183 NavSdkVersion string `protobuf:"bytes,8,opt,name=nav_sdk_version,json=navSdkVersion,proto3" json:"nav_sdk_version,omitempty"`
184
185 Platform RequestHeader_Platform `protobuf:"varint,9,opt,name=platform,proto3,enum=maps.fleetengine.v1.RequestHeader_Platform" json:"platform,omitempty"`
186
187
188
189 Manufacturer string `protobuf:"bytes,10,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
190
191
192 AndroidApiLevel int32 `protobuf:"varint,11,opt,name=android_api_level,json=androidApiLevel,proto3" json:"android_api_level,omitempty"`
193 }
194
195 func (x *RequestHeader) Reset() {
196 *x = RequestHeader{}
197 if protoimpl.UnsafeEnabled {
198 mi := &file_google_maps_fleetengine_v1_header_proto_msgTypes[0]
199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200 ms.StoreMessageInfo(mi)
201 }
202 }
203
204 func (x *RequestHeader) String() string {
205 return protoimpl.X.MessageStringOf(x)
206 }
207
208 func (*RequestHeader) ProtoMessage() {}
209
210 func (x *RequestHeader) ProtoReflect() protoreflect.Message {
211 mi := &file_google_maps_fleetengine_v1_header_proto_msgTypes[0]
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 (*RequestHeader) Descriptor() ([]byte, []int) {
224 return file_google_maps_fleetengine_v1_header_proto_rawDescGZIP(), []int{0}
225 }
226
227 func (x *RequestHeader) GetLanguageCode() string {
228 if x != nil {
229 return x.LanguageCode
230 }
231 return ""
232 }
233
234 func (x *RequestHeader) GetRegionCode() string {
235 if x != nil {
236 return x.RegionCode
237 }
238 return ""
239 }
240
241 func (x *RequestHeader) GetSdkVersion() string {
242 if x != nil {
243 return x.SdkVersion
244 }
245 return ""
246 }
247
248 func (x *RequestHeader) GetOsVersion() string {
249 if x != nil {
250 return x.OsVersion
251 }
252 return ""
253 }
254
255 func (x *RequestHeader) GetDeviceModel() string {
256 if x != nil {
257 return x.DeviceModel
258 }
259 return ""
260 }
261
262 func (x *RequestHeader) GetSdkType() RequestHeader_SdkType {
263 if x != nil {
264 return x.SdkType
265 }
266 return RequestHeader_SDK_TYPE_UNSPECIFIED
267 }
268
269 func (x *RequestHeader) GetMapsSdkVersion() string {
270 if x != nil {
271 return x.MapsSdkVersion
272 }
273 return ""
274 }
275
276 func (x *RequestHeader) GetNavSdkVersion() string {
277 if x != nil {
278 return x.NavSdkVersion
279 }
280 return ""
281 }
282
283 func (x *RequestHeader) GetPlatform() RequestHeader_Platform {
284 if x != nil {
285 return x.Platform
286 }
287 return RequestHeader_PLATFORM_UNSPECIFIED
288 }
289
290 func (x *RequestHeader) GetManufacturer() string {
291 if x != nil {
292 return x.Manufacturer
293 }
294 return ""
295 }
296
297 func (x *RequestHeader) GetAndroidApiLevel() int32 {
298 if x != nil {
299 return x.AndroidApiLevel
300 }
301 return 0
302 }
303
304 var File_google_maps_fleetengine_v1_header_proto protoreflect.FileDescriptor
305
306 var file_google_maps_fleetengine_v1_header_proto_rawDesc = []byte{
307 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x66, 0x6c,
308 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x65, 0x61,
309 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2e,
310 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f,
311 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,
312 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
313 0x83, 0x05, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65,
314 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f,
315 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
316 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
317 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
318 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
319 0x73, 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
320 0x09, 0x52, 0x0a, 0x73, 0x64, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a,
321 0x0a, 0x6f, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
322 0x09, 0x52, 0x09, 0x6f, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c,
323 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01,
324 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12,
325 0x45, 0x0a, 0x08, 0x73, 0x64, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
326 0x0e, 0x32, 0x2a, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e,
327 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48,
328 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x53, 0x64, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x73,
329 0x64, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x70, 0x73, 0x5f, 0x73,
330 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
331 0x52, 0x0e, 0x6d, 0x61, 0x70, 0x73, 0x53, 0x64, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
332 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x61, 0x76, 0x5f, 0x73, 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73,
333 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x61, 0x76, 0x53, 0x64,
334 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74,
335 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x6d, 0x61, 0x70,
336 0x73, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31,
337 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x50,
338 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
339 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 0x75, 0x72, 0x65,
340 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63,
341 0x74, 0x75, 0x72, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64,
342 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05,
343 0x52, 0x0f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x41, 0x70, 0x69, 0x4c, 0x65, 0x76, 0x65,
344 0x6c, 0x22, 0x4d, 0x0a, 0x07, 0x53, 0x64, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14,
345 0x53, 0x44, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
346 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4e, 0x53, 0x55, 0x4d,
347 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x52, 0x49, 0x56, 0x45, 0x52, 0x10, 0x02,
348 0x12, 0x0e, 0x0a, 0x0a, 0x4a, 0x41, 0x56, 0x41, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x10, 0x03,
349 0x22, 0x43, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x18, 0x0a, 0x14,
350 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
351 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49,
352 0x44, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03,
353 0x57, 0x45, 0x42, 0x10, 0x03, 0x42, 0x74, 0x0a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
354 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
355 0x2e, 0x76, 0x31, 0x42, 0x07, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x50, 0x01, 0x5a, 0x45,
356 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
357 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
358 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74,
359 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65,
360 0x6e, 0x67, 0x69, 0x6e, 0x65, 0xa2, 0x02, 0x03, 0x43, 0x46, 0x45, 0x62, 0x06, 0x70, 0x72, 0x6f,
361 0x74, 0x6f, 0x33,
362 }
363
364 var (
365 file_google_maps_fleetengine_v1_header_proto_rawDescOnce sync.Once
366 file_google_maps_fleetengine_v1_header_proto_rawDescData = file_google_maps_fleetengine_v1_header_proto_rawDesc
367 )
368
369 func file_google_maps_fleetengine_v1_header_proto_rawDescGZIP() []byte {
370 file_google_maps_fleetengine_v1_header_proto_rawDescOnce.Do(func() {
371 file_google_maps_fleetengine_v1_header_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_fleetengine_v1_header_proto_rawDescData)
372 })
373 return file_google_maps_fleetengine_v1_header_proto_rawDescData
374 }
375
376 var file_google_maps_fleetengine_v1_header_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
377 var file_google_maps_fleetengine_v1_header_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
378 var file_google_maps_fleetengine_v1_header_proto_goTypes = []interface{}{
379 (RequestHeader_SdkType)(0),
380 (RequestHeader_Platform)(0),
381 (*RequestHeader)(nil),
382 }
383 var file_google_maps_fleetengine_v1_header_proto_depIdxs = []int32{
384 0,
385 1,
386 2,
387 2,
388 2,
389 2,
390 0,
391 }
392
393 func init() { file_google_maps_fleetengine_v1_header_proto_init() }
394 func file_google_maps_fleetengine_v1_header_proto_init() {
395 if File_google_maps_fleetengine_v1_header_proto != nil {
396 return
397 }
398 if !protoimpl.UnsafeEnabled {
399 file_google_maps_fleetengine_v1_header_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
400 switch v := v.(*RequestHeader); i {
401 case 0:
402 return &v.state
403 case 1:
404 return &v.sizeCache
405 case 2:
406 return &v.unknownFields
407 default:
408 return nil
409 }
410 }
411 }
412 type x struct{}
413 out := protoimpl.TypeBuilder{
414 File: protoimpl.DescBuilder{
415 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
416 RawDescriptor: file_google_maps_fleetengine_v1_header_proto_rawDesc,
417 NumEnums: 2,
418 NumMessages: 1,
419 NumExtensions: 0,
420 NumServices: 0,
421 },
422 GoTypes: file_google_maps_fleetengine_v1_header_proto_goTypes,
423 DependencyIndexes: file_google_maps_fleetengine_v1_header_proto_depIdxs,
424 EnumInfos: file_google_maps_fleetengine_v1_header_proto_enumTypes,
425 MessageInfos: file_google_maps_fleetengine_v1_header_proto_msgTypes,
426 }.Build()
427 File_google_maps_fleetengine_v1_header_proto = out.File
428 file_google_maps_fleetengine_v1_header_proto_rawDesc = nil
429 file_google_maps_fleetengine_v1_header_proto_goTypes = nil
430 file_google_maps_fleetengine_v1_header_proto_depIdxs = nil
431 }
432
View as plain text