/
vehicles.pb.go
executable file
·1583 lines (1425 loc) · 71.6 KB
/
vehicles.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/maps/fleetengine/v1/vehicles.proto
package fleetenginepb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The state of a `Vehicle`.
type VehicleState int32
const (
// Default, used for unspecified or unrecognized vehicle states.
VehicleState_UNKNOWN_VEHICLE_STATE VehicleState = 0
// The vehicle is not accepting new trips. Note: the vehicle may continue to
// operate in this state while completing a trip assigned to it.
VehicleState_OFFLINE VehicleState = 1
// The vehicle is accepting new trips.
VehicleState_ONLINE VehicleState = 2
)
// Enum value maps for VehicleState.
var (
VehicleState_name = map[int32]string{
0: "UNKNOWN_VEHICLE_STATE",
1: "OFFLINE",
2: "ONLINE",
}
VehicleState_value = map[string]int32{
"UNKNOWN_VEHICLE_STATE": 0,
"OFFLINE": 1,
"ONLINE": 2,
}
)
func (x VehicleState) Enum() *VehicleState {
p := new(VehicleState)
*p = x
return p
}
func (x VehicleState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VehicleState) Descriptor() protoreflect.EnumDescriptor {
return file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[0].Descriptor()
}
func (VehicleState) Type() protoreflect.EnumType {
return &file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[0]
}
func (x VehicleState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VehicleState.Descriptor instead.
func (VehicleState) EnumDescriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{0}
}
// How location features are configured to behave on the mobile device when the
// devices "battery saver" feature is on.
// (https://developer.android.com/reference/android/os/PowerManager#getLocationPowerSaveMode())
type LocationPowerSaveMode int32
const (
// Undefined LocationPowerSaveMode
LocationPowerSaveMode_UNKNOWN_LOCATION_POWER_SAVE_MODE LocationPowerSaveMode = 0
// Either the location providers shouldn't be affected by battery saver, or
// battery saver is off.
LocationPowerSaveMode_LOCATION_MODE_NO_CHANGE LocationPowerSaveMode = 1
// The GPS based location provider should be disabled when battery saver is on
// and the device is non-interactive.
LocationPowerSaveMode_LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF LocationPowerSaveMode = 2
// All location providers should be disabled when battery saver is on and the
// device is non-interactive.
LocationPowerSaveMode_LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF LocationPowerSaveMode = 3
// All the location providers will be kept available, but location fixes
// should only be provided to foreground apps.
LocationPowerSaveMode_LOCATION_MODE_FOREGROUND_ONLY LocationPowerSaveMode = 4
// Location will not be turned off, but LocationManager will throttle all
// requests to providers when the device is non-interactive.
LocationPowerSaveMode_LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF LocationPowerSaveMode = 5
)
// Enum value maps for LocationPowerSaveMode.
var (
LocationPowerSaveMode_name = map[int32]string{
0: "UNKNOWN_LOCATION_POWER_SAVE_MODE",
1: "LOCATION_MODE_NO_CHANGE",
2: "LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF",
3: "LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF",
4: "LOCATION_MODE_FOREGROUND_ONLY",
5: "LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF",
}
LocationPowerSaveMode_value = map[string]int32{
"UNKNOWN_LOCATION_POWER_SAVE_MODE": 0,
"LOCATION_MODE_NO_CHANGE": 1,
"LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF": 2,
"LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF": 3,
"LOCATION_MODE_FOREGROUND_ONLY": 4,
"LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF": 5,
}
)
func (x LocationPowerSaveMode) Enum() *LocationPowerSaveMode {
p := new(LocationPowerSaveMode)
*p = x
return p
}
func (x LocationPowerSaveMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LocationPowerSaveMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[1].Descriptor()
}
func (LocationPowerSaveMode) Type() protoreflect.EnumType {
return &file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[1]
}
func (x LocationPowerSaveMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LocationPowerSaveMode.Descriptor instead.
func (LocationPowerSaveMode) EnumDescriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{1}
}
// Status of the battery, whether full or charging etc.
type BatteryStatus int32
const (
// Battery status unknown.
BatteryStatus_UNKNOWN_BATTERY_STATUS BatteryStatus = 0
// Battery is being charged.
BatteryStatus_BATTERY_STATUS_CHARGING BatteryStatus = 1
// Battery is discharging.
BatteryStatus_BATTERY_STATUS_DISCHARGING BatteryStatus = 2
// Battery is full.
BatteryStatus_BATTERY_STATUS_FULL BatteryStatus = 3
// Battery is not charging.
BatteryStatus_BATTERY_STATUS_NOT_CHARGING BatteryStatus = 4
// Battery is low on power.
BatteryStatus_BATTERY_STATUS_POWER_LOW BatteryStatus = 5
)
// Enum value maps for BatteryStatus.
var (
BatteryStatus_name = map[int32]string{
0: "UNKNOWN_BATTERY_STATUS",
1: "BATTERY_STATUS_CHARGING",
2: "BATTERY_STATUS_DISCHARGING",
3: "BATTERY_STATUS_FULL",
4: "BATTERY_STATUS_NOT_CHARGING",
5: "BATTERY_STATUS_POWER_LOW",
}
BatteryStatus_value = map[string]int32{
"UNKNOWN_BATTERY_STATUS": 0,
"BATTERY_STATUS_CHARGING": 1,
"BATTERY_STATUS_DISCHARGING": 2,
"BATTERY_STATUS_FULL": 3,
"BATTERY_STATUS_NOT_CHARGING": 4,
"BATTERY_STATUS_POWER_LOW": 5,
}
)
func (x BatteryStatus) Enum() *BatteryStatus {
p := new(BatteryStatus)
*p = x
return p
}
func (x BatteryStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BatteryStatus) Descriptor() protoreflect.EnumDescriptor {
return file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[2].Descriptor()
}
func (BatteryStatus) Type() protoreflect.EnumType {
return &file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[2]
}
func (x BatteryStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BatteryStatus.Descriptor instead.
func (BatteryStatus) EnumDescriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{2}
}
// Type of the charger being used to charge the battery.
type PowerSource int32
const (
// Power source unknown.
PowerSource_UNKNOWN_POWER_SOURCE PowerSource = 0
// Power source is an AC charger.
PowerSource_POWER_SOURCE_AC PowerSource = 1
// Power source is a USB port.
PowerSource_POWER_SOURCE_USB PowerSource = 2
// Power source is wireless.
PowerSource_POWER_SOURCE_WIRELESS PowerSource = 3
// Battery is unplugged.
PowerSource_POWER_SOURCE_UNPLUGGED PowerSource = 4
)
// Enum value maps for PowerSource.
var (
PowerSource_name = map[int32]string{
0: "UNKNOWN_POWER_SOURCE",
1: "POWER_SOURCE_AC",
2: "POWER_SOURCE_USB",
3: "POWER_SOURCE_WIRELESS",
4: "POWER_SOURCE_UNPLUGGED",
}
PowerSource_value = map[string]int32{
"UNKNOWN_POWER_SOURCE": 0,
"POWER_SOURCE_AC": 1,
"POWER_SOURCE_USB": 2,
"POWER_SOURCE_WIRELESS": 3,
"POWER_SOURCE_UNPLUGGED": 4,
}
)
func (x PowerSource) Enum() *PowerSource {
p := new(PowerSource)
*p = x
return p
}
func (x PowerSource) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PowerSource) Descriptor() protoreflect.EnumDescriptor {
return file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[3].Descriptor()
}
func (PowerSource) Type() protoreflect.EnumType {
return &file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[3]
}
func (x PowerSource) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PowerSource.Descriptor instead.
func (PowerSource) EnumDescriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{3}
}
// Vehicle type categories
type Vehicle_VehicleType_Category int32
const (
// Default, used for unspecified or unrecognized vehicle categories.
Vehicle_VehicleType_UNKNOWN Vehicle_VehicleType_Category = 0
// An automobile.
Vehicle_VehicleType_AUTO Vehicle_VehicleType_Category = 1
// Any vehicle that acts as a taxi (typically licensed or regulated).
Vehicle_VehicleType_TAXI Vehicle_VehicleType_Category = 2
// Generally, a vehicle with a large storage capacity.
Vehicle_VehicleType_TRUCK Vehicle_VehicleType_Category = 3
// A motorcycle, moped, or other two-wheeled vehicle
Vehicle_VehicleType_TWO_WHEELER Vehicle_VehicleType_Category = 4
// Human-powered transport.
Vehicle_VehicleType_BICYCLE Vehicle_VehicleType_Category = 5
// A human transporter, typically walking or running, traveling along
// pedestrian pathways.
Vehicle_VehicleType_PEDESTRIAN Vehicle_VehicleType_Category = 6
)
// Enum value maps for Vehicle_VehicleType_Category.
var (
Vehicle_VehicleType_Category_name = map[int32]string{
0: "UNKNOWN",
1: "AUTO",
2: "TAXI",
3: "TRUCK",
4: "TWO_WHEELER",
5: "BICYCLE",
6: "PEDESTRIAN",
}
Vehicle_VehicleType_Category_value = map[string]int32{
"UNKNOWN": 0,
"AUTO": 1,
"TAXI": 2,
"TRUCK": 3,
"TWO_WHEELER": 4,
"BICYCLE": 5,
"PEDESTRIAN": 6,
}
)
func (x Vehicle_VehicleType_Category) Enum() *Vehicle_VehicleType_Category {
p := new(Vehicle_VehicleType_Category)
*p = x
return p
}
func (x Vehicle_VehicleType_Category) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Vehicle_VehicleType_Category) Descriptor() protoreflect.EnumDescriptor {
return file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[4].Descriptor()
}
func (Vehicle_VehicleType_Category) Type() protoreflect.EnumType {
return &file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[4]
}
func (x Vehicle_VehicleType_Category) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Vehicle_VehicleType_Category.Descriptor instead.
func (Vehicle_VehicleType_Category) EnumDescriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{0, 0, 0}
}
// The traffic style, indicating traffic speed.
type VisualTrafficReportPolylineRendering_RoadStretch_Style int32
const (
// No style selected.
VisualTrafficReportPolylineRendering_RoadStretch_STYLE_UNSPECIFIED VisualTrafficReportPolylineRendering_RoadStretch_Style = 0
// Traffic is slowing down.
VisualTrafficReportPolylineRendering_RoadStretch_SLOWER_TRAFFIC VisualTrafficReportPolylineRendering_RoadStretch_Style = 1
// There is a traffic jam.
VisualTrafficReportPolylineRendering_RoadStretch_TRAFFIC_JAM VisualTrafficReportPolylineRendering_RoadStretch_Style = 2
)
// Enum value maps for VisualTrafficReportPolylineRendering_RoadStretch_Style.
var (
VisualTrafficReportPolylineRendering_RoadStretch_Style_name = map[int32]string{
0: "STYLE_UNSPECIFIED",
1: "SLOWER_TRAFFIC",
2: "TRAFFIC_JAM",
}
VisualTrafficReportPolylineRendering_RoadStretch_Style_value = map[string]int32{
"STYLE_UNSPECIFIED": 0,
"SLOWER_TRAFFIC": 1,
"TRAFFIC_JAM": 2,
}
)
func (x VisualTrafficReportPolylineRendering_RoadStretch_Style) Enum() *VisualTrafficReportPolylineRendering_RoadStretch_Style {
p := new(VisualTrafficReportPolylineRendering_RoadStretch_Style)
*p = x
return p
}
func (x VisualTrafficReportPolylineRendering_RoadStretch_Style) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VisualTrafficReportPolylineRendering_RoadStretch_Style) Descriptor() protoreflect.EnumDescriptor {
return file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[5].Descriptor()
}
func (VisualTrafficReportPolylineRendering_RoadStretch_Style) Type() protoreflect.EnumType {
return &file_google_maps_fleetengine_v1_vehicles_proto_enumTypes[5]
}
func (x VisualTrafficReportPolylineRendering_RoadStretch_Style) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VisualTrafficReportPolylineRendering_RoadStretch_Style.Descriptor instead.
func (VisualTrafficReportPolylineRendering_RoadStretch_Style) EnumDescriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{4, 0, 0}
}
// Vehicle metadata.
type Vehicle struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The unique name for this vehicle.
// The format is `providers/{provider}/vehicles/{vehicle}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The vehicle state.
VehicleState VehicleState `protobuf:"varint,2,opt,name=vehicle_state,json=vehicleState,proto3,enum=maps.fleetengine.v1.VehicleState" json:"vehicle_state,omitempty"`
// Trip types supported by this vehicle.
SupportedTripTypes []TripType `protobuf:"varint,3,rep,packed,name=supported_trip_types,json=supportedTripTypes,proto3,enum=maps.fleetengine.v1.TripType" json:"supported_trip_types,omitempty"`
// Output only. List of `trip_id`'s for trips currently assigned to this
// vehicle.
CurrentTrips []string `protobuf:"bytes,4,rep,name=current_trips,json=currentTrips,proto3" json:"current_trips,omitempty"`
// Last reported location of the vehicle.
LastLocation *VehicleLocation `protobuf:"bytes,5,opt,name=last_location,json=lastLocation,proto3" json:"last_location,omitempty"`
// The total numbers of riders this vehicle can carry. The driver is not
// considered in this value. This value must be greater than or equal to one.
MaximumCapacity int32 `protobuf:"varint,6,opt,name=maximum_capacity,json=maximumCapacity,proto3" json:"maximum_capacity,omitempty"`
// List of vehicle attributes. A vehicle can have at most 100
// attributes, and each attribute must have a unique key.
Attributes []*VehicleAttribute `protobuf:"bytes,8,rep,name=attributes,proto3" json:"attributes,omitempty"`
// Required. The type of this vehicle. Can be used to filter vehicles in
// `SearchVehicles` results. Also influences ETA and route calculations.
VehicleType *Vehicle_VehicleType `protobuf:"bytes,9,opt,name=vehicle_type,json=vehicleType,proto3" json:"vehicle_type,omitempty"`
// License plate information for the vehicle.
LicensePlate *LicensePlate `protobuf:"bytes,10,opt,name=license_plate,json=licensePlate,proto3" json:"license_plate,omitempty"`
// Deprecated: Use `Vehicle.waypoints` instead.
//
// Deprecated: Marked as deprecated in google/maps/fleetengine/v1/vehicles.proto.
Route []*TerminalLocation `protobuf:"bytes,12,rep,name=route,proto3" json:"route,omitempty"`
// The polyline specifying the route the driver app intends to take to
// the next waypoint. This list is also returned in
// `Trip.current_route_segment` for all active trips assigned to the vehicle.
//
// Note: This field is intended only for use by the Driver SDK. Decoding is
// not yet supported.
CurrentRouteSegment string `protobuf:"bytes,20,opt,name=current_route_segment,json=currentRouteSegment,proto3" json:"current_route_segment,omitempty"`
// Input only. Fleet Engine uses this information to improve journey sharing.
// Note: This field is intended only for use by the Driver SDK.
CurrentRouteSegmentTraffic *TrafficPolylineData `protobuf:"bytes,28,opt,name=current_route_segment_traffic,json=currentRouteSegmentTraffic,proto3" json:"current_route_segment_traffic,omitempty"`
// Output only. Time when `current_route_segment` was set. It can be stored by
// the client and passed in future `GetVehicle` requests to prevent returning
// routes that haven't changed.
CurrentRouteSegmentVersion *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=current_route_segment_version,json=currentRouteSegmentVersion,proto3" json:"current_route_segment_version,omitempty"`
// The waypoint where `current_route_segment` ends. This can be supplied by
// drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint
// `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet
// Engine will then do its best to interpolate to an actual waypoint if it is
// not fully specified. This field is ignored in `UpdateVehicle` calls unless
// `current_route_segment` is also specified.
CurrentRouteSegmentEndPoint *TripWaypoint `protobuf:"bytes,24,opt,name=current_route_segment_end_point,json=currentRouteSegmentEndPoint,proto3" json:"current_route_segment_end_point,omitempty"`
// The remaining driving distance for the `current_route_segment`.
// This value is also returned in `Trip.remaining_distance_meters` for all
// active trips assigned to the vehicle. The value is unspecified if the
// `current_route_segment` field is empty.
RemainingDistanceMeters *wrapperspb.Int32Value `protobuf:"bytes,18,opt,name=remaining_distance_meters,json=remainingDistanceMeters,proto3" json:"remaining_distance_meters,omitempty"`
// The ETA to the first entry in the `waypoints` field. The value is
// unspecified if the `waypoints` field is empty or the
// `Vehicle.current_route_segment` field is empty.
//
// When updating a vehicle, `remaining_time_seconds` takes precedence over
// `eta_to_first_waypoint` in the same request.
EtaToFirstWaypoint *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=eta_to_first_waypoint,json=etaToFirstWaypoint,proto3" json:"eta_to_first_waypoint,omitempty"`
// Input only. The remaining driving time for the `current_route_segment`. The
// value is unspecified if the `waypoints` field is empty or the
// `Vehicle.current_route_segment` field is empty. This value should match
// `eta_to_first_waypoint` - `current_time` if all parties are using the same
// clock.
//
// When updating a vehicle, `remaining_time_seconds` takes precedence over
// `eta_to_first_waypoint` in the same request.
RemainingTimeSeconds *wrapperspb.Int32Value `protobuf:"bytes,25,opt,name=remaining_time_seconds,json=remainingTimeSeconds,proto3" json:"remaining_time_seconds,omitempty"`
// The remaining waypoints assigned to this Vehicle.
Waypoints []*TripWaypoint `protobuf:"bytes,22,rep,name=waypoints,proto3" json:"waypoints,omitempty"`
// Output only. Last time the `waypoints` field was updated. Clients should
// cache this value and pass it in `GetVehicleRequest` to ensure the
// `waypoints` field is only returned if it is updated.
WaypointsVersion *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=waypoints_version,json=waypointsVersion,proto3" json:"waypoints_version,omitempty"`
// Indicates if the driver accepts back-to-back trips. If `true`,
// `SearchVehicles` may include the vehicle even if it is currently assigned
// to a trip. The default value is `false`.
BackToBackEnabled bool `protobuf:"varint,23,opt,name=back_to_back_enabled,json=backToBackEnabled,proto3" json:"back_to_back_enabled,omitempty"`
// The vehicle's navigation status.
NavigationStatus NavigationStatus `protobuf:"varint,26,opt,name=navigation_status,json=navigationStatus,proto3,enum=maps.fleetengine.v1.NavigationStatus" json:"navigation_status,omitempty"`
// Input only. Information about settings in the mobile device being used by
// the driver.
DeviceSettings *DeviceSettings `protobuf:"bytes,27,opt,name=device_settings,json=deviceSettings,proto3" json:"device_settings,omitempty"`
}
func (x *Vehicle) Reset() {
*x = Vehicle{}
if protoimpl.UnsafeEnabled {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Vehicle) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Vehicle) ProtoMessage() {}
func (x *Vehicle) ProtoReflect() protoreflect.Message {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.
func (*Vehicle) Descriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{0}
}
func (x *Vehicle) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Vehicle) GetVehicleState() VehicleState {
if x != nil {
return x.VehicleState
}
return VehicleState_UNKNOWN_VEHICLE_STATE
}
func (x *Vehicle) GetSupportedTripTypes() []TripType {
if x != nil {
return x.SupportedTripTypes
}
return nil
}
func (x *Vehicle) GetCurrentTrips() []string {
if x != nil {
return x.CurrentTrips
}
return nil
}
func (x *Vehicle) GetLastLocation() *VehicleLocation {
if x != nil {
return x.LastLocation
}
return nil
}
func (x *Vehicle) GetMaximumCapacity() int32 {
if x != nil {
return x.MaximumCapacity
}
return 0
}
func (x *Vehicle) GetAttributes() []*VehicleAttribute {
if x != nil {
return x.Attributes
}
return nil
}
func (x *Vehicle) GetVehicleType() *Vehicle_VehicleType {
if x != nil {
return x.VehicleType
}
return nil
}
func (x *Vehicle) GetLicensePlate() *LicensePlate {
if x != nil {
return x.LicensePlate
}
return nil
}
// Deprecated: Marked as deprecated in google/maps/fleetengine/v1/vehicles.proto.
func (x *Vehicle) GetRoute() []*TerminalLocation {
if x != nil {
return x.Route
}
return nil
}
func (x *Vehicle) GetCurrentRouteSegment() string {
if x != nil {
return x.CurrentRouteSegment
}
return ""
}
func (x *Vehicle) GetCurrentRouteSegmentTraffic() *TrafficPolylineData {
if x != nil {
return x.CurrentRouteSegmentTraffic
}
return nil
}
func (x *Vehicle) GetCurrentRouteSegmentVersion() *timestamppb.Timestamp {
if x != nil {
return x.CurrentRouteSegmentVersion
}
return nil
}
func (x *Vehicle) GetCurrentRouteSegmentEndPoint() *TripWaypoint {
if x != nil {
return x.CurrentRouteSegmentEndPoint
}
return nil
}
func (x *Vehicle) GetRemainingDistanceMeters() *wrapperspb.Int32Value {
if x != nil {
return x.RemainingDistanceMeters
}
return nil
}
func (x *Vehicle) GetEtaToFirstWaypoint() *timestamppb.Timestamp {
if x != nil {
return x.EtaToFirstWaypoint
}
return nil
}
func (x *Vehicle) GetRemainingTimeSeconds() *wrapperspb.Int32Value {
if x != nil {
return x.RemainingTimeSeconds
}
return nil
}
func (x *Vehicle) GetWaypoints() []*TripWaypoint {
if x != nil {
return x.Waypoints
}
return nil
}
func (x *Vehicle) GetWaypointsVersion() *timestamppb.Timestamp {
if x != nil {
return x.WaypointsVersion
}
return nil
}
func (x *Vehicle) GetBackToBackEnabled() bool {
if x != nil {
return x.BackToBackEnabled
}
return false
}
func (x *Vehicle) GetNavigationStatus() NavigationStatus {
if x != nil {
return x.NavigationStatus
}
return NavigationStatus_UNKNOWN_NAVIGATION_STATUS
}
func (x *Vehicle) GetDeviceSettings() *DeviceSettings {
if x != nil {
return x.DeviceSettings
}
return nil
}
// Information about the device's battery.
type BatteryInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Status of the battery, whether full or charging etc.
BatteryStatus BatteryStatus `protobuf:"varint,1,opt,name=battery_status,json=batteryStatus,proto3,enum=maps.fleetengine.v1.BatteryStatus" json:"battery_status,omitempty"`
// Status of battery power source.
PowerSource PowerSource `protobuf:"varint,2,opt,name=power_source,json=powerSource,proto3,enum=maps.fleetengine.v1.PowerSource" json:"power_source,omitempty"`
// Current battery percentage [0-100].
BatteryPercentage float32 `protobuf:"fixed32,3,opt,name=battery_percentage,json=batteryPercentage,proto3" json:"battery_percentage,omitempty"`
}
func (x *BatteryInfo) Reset() {
*x = BatteryInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatteryInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatteryInfo) ProtoMessage() {}
func (x *BatteryInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatteryInfo.ProtoReflect.Descriptor instead.
func (*BatteryInfo) Descriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{1}
}
func (x *BatteryInfo) GetBatteryStatus() BatteryStatus {
if x != nil {
return x.BatteryStatus
}
return BatteryStatus_UNKNOWN_BATTERY_STATUS
}
func (x *BatteryInfo) GetPowerSource() PowerSource {
if x != nil {
return x.PowerSource
}
return PowerSource_UNKNOWN_POWER_SOURCE
}
func (x *BatteryInfo) GetBatteryPercentage() float32 {
if x != nil {
return x.BatteryPercentage
}
return 0
}
// Information about various settings on the mobile device.
type DeviceSettings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// How location features are set to behave on the device when battery saver is
// on.
LocationPowerSaveMode LocationPowerSaveMode `protobuf:"varint,1,opt,name=location_power_save_mode,json=locationPowerSaveMode,proto3,enum=maps.fleetengine.v1.LocationPowerSaveMode" json:"location_power_save_mode,omitempty"`
// Whether the device is currently in power save mode.
IsPowerSaveMode bool `protobuf:"varint,2,opt,name=is_power_save_mode,json=isPowerSaveMode,proto3" json:"is_power_save_mode,omitempty"`
// Whether the device is in an interactive state.
IsInteractive bool `protobuf:"varint,3,opt,name=is_interactive,json=isInteractive,proto3" json:"is_interactive,omitempty"`
// Information about the battery state.
BatteryInfo *BatteryInfo `protobuf:"bytes,4,opt,name=battery_info,json=batteryInfo,proto3" json:"battery_info,omitempty"`
}
func (x *DeviceSettings) Reset() {
*x = DeviceSettings{}
if protoimpl.UnsafeEnabled {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeviceSettings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceSettings) ProtoMessage() {}
func (x *DeviceSettings) ProtoReflect() protoreflect.Message {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeviceSettings.ProtoReflect.Descriptor instead.
func (*DeviceSettings) Descriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{2}
}
func (x *DeviceSettings) GetLocationPowerSaveMode() LocationPowerSaveMode {
if x != nil {
return x.LocationPowerSaveMode
}
return LocationPowerSaveMode_UNKNOWN_LOCATION_POWER_SAVE_MODE
}
func (x *DeviceSettings) GetIsPowerSaveMode() bool {
if x != nil {
return x.IsPowerSaveMode
}
return false
}
func (x *DeviceSettings) GetIsInteractive() bool {
if x != nil {
return x.IsInteractive
}
return false
}
func (x *DeviceSettings) GetBatteryInfo() *BatteryInfo {
if x != nil {
return x.BatteryInfo
}
return nil
}
// The license plate information of the Vehicle. To avoid storing
// personally-identifiable information, only the minimum information
// about the license plate is stored as part of the entity.
type LicensePlate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. CLDR Country/Region Code. For example, `US` for United States,
// or `IN` for India.
CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// The last digit of the license plate or "-1" to denote no numeric value
// is present in the license plate.
//
// * "ABC 1234" -> "4"
// * "AB 123 CD" -> "3"
// * "ABCDEF" -> "-1"
LastCharacter string `protobuf:"bytes,2,opt,name=last_character,json=lastCharacter,proto3" json:"last_character,omitempty"`
}
func (x *LicensePlate) Reset() {
*x = LicensePlate{}
if protoimpl.UnsafeEnabled {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LicensePlate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LicensePlate) ProtoMessage() {}
func (x *LicensePlate) ProtoReflect() protoreflect.Message {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LicensePlate.ProtoReflect.Descriptor instead.
func (*LicensePlate) Descriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{3}
}
func (x *LicensePlate) GetCountryCode() string {
if x != nil {
return x.CountryCode
}
return ""
}
func (x *LicensePlate) GetLastCharacter() string {
if x != nil {
return x.LastCharacter
}
return ""
}
// Describes how clients should color one portion of the polyline along the
// route.
type VisualTrafficReportPolylineRendering struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Road stretches that should be rendered along the polyline.
// Stretches are guaranteed to not overlap, and do not necessarily span the
// full route.
//
// In the absence of a road stretch to style, the client should apply the
// default for the route.
RoadStretch []*VisualTrafficReportPolylineRendering_RoadStretch `protobuf:"bytes,1,rep,name=road_stretch,json=roadStretch,proto3" json:"road_stretch,omitempty"`
}
func (x *VisualTrafficReportPolylineRendering) Reset() {
*x = VisualTrafficReportPolylineRendering{}
if protoimpl.UnsafeEnabled {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VisualTrafficReportPolylineRendering) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VisualTrafficReportPolylineRendering) ProtoMessage() {}
func (x *VisualTrafficReportPolylineRendering) ProtoReflect() protoreflect.Message {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VisualTrafficReportPolylineRendering.ProtoReflect.Descriptor instead.
func (*VisualTrafficReportPolylineRendering) Descriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{4}
}
func (x *VisualTrafficReportPolylineRendering) GetRoadStretch() []*VisualTrafficReportPolylineRendering_RoadStretch {
if x != nil {
return x.RoadStretch
}
return nil
}
// Traffic conditions along the expected vehicle route.
type TrafficPolylineData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A polyline rendering of how fast traffic is for all regions along
// one stretch of a customer ride.
TrafficRendering *VisualTrafficReportPolylineRendering `protobuf:"bytes,1,opt,name=traffic_rendering,json=trafficRendering,proto3" json:"traffic_rendering,omitempty"`
}
func (x *TrafficPolylineData) Reset() {
*x = TrafficPolylineData{}
if protoimpl.UnsafeEnabled {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TrafficPolylineData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrafficPolylineData) ProtoMessage() {}
func (x *TrafficPolylineData) ProtoReflect() protoreflect.Message {
mi := &file_google_maps_fleetengine_v1_vehicles_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TrafficPolylineData.ProtoReflect.Descriptor instead.
func (*TrafficPolylineData) Descriptor() ([]byte, []int) {
return file_google_maps_fleetengine_v1_vehicles_proto_rawDescGZIP(), []int{5}