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
This commit is contained in:
Google APIs 2025-02-26 15:31:53 -08:00 committed by Copybara-Service
parent b7c1119f8e
commit cdb9d3bb34
4 changed files with 23 additions and 0 deletions

View file

@ -406,6 +406,12 @@ message CreateTaskRequest {
// * `planned_location` (optional for `UNAVAILABLE` tasks)
// * `task_duration`
//
// The following fields can be optionally set:
//
// * `target_time_window`
// * `task_tracking_view_config`
// * `attributes`
//
// Note: The Task's `name` field is ignored. All other Task fields must not be
// set; otherwise, an error is returned.
Task task = 4 [(google.api.field_behavior) = REQUIRED];

View file

@ -73,6 +73,14 @@ message DeliveryVehicle {
// The last reported location of the Delivery Vehicle.
DeliveryVehicleLocation last_location = 2;
// Input only. Locations where this Delivery Vehicle has been in the past that
// haven't yet been reported to Fleet Engine. This is used in
// `UpdateDeliveryVehicleRequest` to record locations which were previously
// unable to be sent to the server. Typically this happens when the Delivery
// Vehicle does not have internet connectivity.
repeated DeliveryVehicleLocation past_locations = 12
[(google.api.field_behavior) = INPUT_ONLY];
// The Delivery Vehicle's navigation status.
DeliveryVehicleNavigationStatus navigation_status = 3;

View file

@ -17,6 +17,7 @@ syntax = "proto3";
package maps.fleetengine.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/maps/fleetengine/v1/traffic.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

View file

@ -86,6 +86,14 @@ message Vehicle {
// Last reported location of the vehicle.
VehicleLocation last_location = 5;
// Input only. Locations where this vehicle has been in the past that haven't
// yet been reported to Fleet Engine. This is used in `UpdateVehicleRequest`
// to record locations which were previously unable to be sent to the server.
// Typically this happens when the vehicle does not have internet
// connectivity.
repeated VehicleLocation past_locations = 30
[(google.api.field_behavior) = INPUT_ONLY];
// 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.
int32 maximum_capacity = 6;