Skip to content

Commit cc8acfd

Browse files
Google APIscopybara-github
authored andcommitted
feat: add DeliveryVehicleType
feat: add BICYCLE and PEDESTRIAN to VehicleType PiperOrigin-RevId: 558179840
1 parent ad329f8 commit cc8acfd

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

google/maps/fleetengine/delivery/v1/delivery_vehicles.proto

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,25 @@ message DeliveryVehicle {
4444
pattern: "providers/{provider}/deliveryVehicles/{vehicle}"
4545
};
4646

47+
// The type of delivery vehicle.
48+
enum DeliveryVehicleType {
49+
// The value is unused.
50+
DELIVERY_VEHICLE_TYPE_UNSPECIFIED = 0;
51+
52+
// An automobile.
53+
AUTO = 1;
54+
55+
// A motorcycle, moped, or other two-wheeled vehicle
56+
TWO_WHEELER = 2;
57+
58+
// Human-powered transport.
59+
BICYCLE = 3;
60+
61+
// A human transporter, typically walking or running, traveling along
62+
// pedestrian pathways.
63+
PEDESTRIAN = 4;
64+
}
65+
4766
// The unique name of this Delivery Vehicle.
4867
// The format is `providers/{provider}/deliveryVehicles/{vehicle}`.
4968
string name = 1;
@@ -129,6 +148,9 @@ message DeliveryVehicle {
129148
// A list of custom Delivery Vehicle attributes. A Delivery Vehicle can have
130149
// at most 50 attributes, and each attribute must have a unique key.
131150
repeated DeliveryVehicleAttribute attributes = 9;
151+
152+
// The type of this delivery vehicle. If unset, this will default to `AUTO`.
153+
DeliveryVehicleType type = 10;
132154
}
133155

134156
// A location with any additional identifiers.

google/maps/fleetengine/v1/vehicles.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ message Vehicle {
5353

5454
// A motorcycle, moped, or other two-wheeled vehicle
5555
TWO_WHEELER = 4;
56+
57+
// Human-powered transport.
58+
BICYCLE = 5;
59+
60+
// A human transporter, typically walking or running, traveling along
61+
// pedestrian pathways.
62+
PEDESTRIAN = 6;
5663
}
5764

5865
// Vehicle type category

0 commit comments

Comments
 (0)