Skip to content

Commit cdb9d3b

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field past_locations is added to message .maps.fleetengine.delivery.v1.DeliveryVehicle
feat: A new field `past_locations` is added to message `.maps.fleetengine.v1.Vehicle` docs: Updated documentation for field `task` in message `.maps.fleetengine.delivery.v1.CreateTaskRequest` to clarify certain fields can be optionally set. PiperOrigin-RevId: 731478697
1 parent b7c1119 commit cdb9d3b

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@ message CreateTaskRequest {
406406
// * `planned_location` (optional for `UNAVAILABLE` tasks)
407407
// * `task_duration`
408408
//
409+
// The following fields can be optionally set:
410+
//
411+
// * `target_time_window`
412+
// * `task_tracking_view_config`
413+
// * `attributes`
414+
//
409415
// Note: The Task's `name` field is ignored. All other Task fields must not be
410416
// set; otherwise, an error is returned.
411417
Task task = 4 [(google.api.field_behavior) = REQUIRED];

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ message DeliveryVehicle {
7373
// The last reported location of the Delivery Vehicle.
7474
DeliveryVehicleLocation last_location = 2;
7575

76+
// Input only. Locations where this Delivery Vehicle has been in the past that
77+
// haven't yet been reported to Fleet Engine. This is used in
78+
// `UpdateDeliveryVehicleRequest` to record locations which were previously
79+
// unable to be sent to the server. Typically this happens when the Delivery
80+
// Vehicle does not have internet connectivity.
81+
repeated DeliveryVehicleLocation past_locations = 12
82+
[(google.api.field_behavior) = INPUT_ONLY];
83+
7684
// The Delivery Vehicle's navigation status.
7785
DeliveryVehicleNavigationStatus navigation_status = 3;
7886

google/maps/fleetengine/v1/fleetengine.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package maps.fleetengine.v1;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
2021
import "google/maps/fleetengine/v1/traffic.proto";
2122
import "google/protobuf/duration.proto";
2223
import "google/protobuf/timestamp.proto";

google/maps/fleetengine/v1/vehicles.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ message Vehicle {
8686
// Last reported location of the vehicle.
8787
VehicleLocation last_location = 5;
8888

89+
// Input only. Locations where this vehicle has been in the past that haven't
90+
// yet been reported to Fleet Engine. This is used in `UpdateVehicleRequest`
91+
// to record locations which were previously unable to be sent to the server.
92+
// Typically this happens when the vehicle does not have internet
93+
// connectivity.
94+
repeated VehicleLocation past_locations = 30
95+
[(google.api.field_behavior) = INPUT_ONLY];
96+
8997
// The total numbers of riders this vehicle can carry. The driver is not
9098
// considered in this value. This value must be greater than or equal to one.
9199
int32 maximum_capacity = 6;

0 commit comments

Comments
 (0)