From 5665f8f430ff2b0a3a603cfca36015670b3b0234 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 27 Feb 2025 14:12:13 -0800 Subject: [PATCH] feat: [MapsFleetEngine] A new field `past_locations` is added to message `.maps.fleetengine.delivery.v1.DeliveryVehicle` (#8119) 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 Source-Link: https://github.com/googleapis/googleapis/commit/cdb9d3bb3418e9b8714826262fb1663abd8cc6be Source-Link: https://github.com/googleapis/googleapis-gen/commit/f22d67a24f5f7d56c3d089ca79727c3ba4eab06f Copy-Tag: eyJwIjoiTWFwc0ZsZWV0RW5naW5lLy5Pd2xCb3QueWFtbCIsImgiOiJmMjJkNjdhMjRmNWY3ZDU2YzNkMDg5Y2E3OTcyN2MzYmE0ZWFiMDZmIn0= --- MapsFleetEngine/metadata/V1/Fleetengine.php | Bin 4557 -> 4638 bytes MapsFleetEngine/metadata/V1/Vehicles.php | Bin 4391 -> 4458 bytes MapsFleetEngine/src/V1/Vehicle.php | 50 ++++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/MapsFleetEngine/metadata/V1/Fleetengine.php b/MapsFleetEngine/metadata/V1/Fleetengine.php index 11ab219baf22a4e85eda528d0b9885d9bf5540bd..084a95cc87774610d8e08d2ff9d88ea7fa4190a5 100644 GIT binary patch delta 70 zcmX@BJWpi?$Rho}Ztdld7Ls Vkf~n;Ri;-^lwXp+c_On79{@t#7wZ53 delta 34 qcmbQIa#nc*E7N9cCU-`btukCX6TNjNZ()R^ckz4<@0JRbnHmkJdC diff --git a/MapsFleetEngine/metadata/V1/Vehicles.php b/MapsFleetEngine/metadata/V1/Vehicles.php index e3dd430a3bf43572325505b3aa161cfa0b9862b7..6a04b1b5b3b7f955d928fb980975f7d5e899071a 100644 GIT binary patch delta 80 zcmZ3k^h#-i05eO!443BQd}is%`poN?mhw!#&-_->k&CY&vA85YCqFr{Br`v+SVB&L fS%ce1WwIih=wty_c3vN-j1%(%N0!Z}Sz>qq@U9qg delta 32 ocmaE*v|MR}05i)OX)evl`OMOj^_kZ(J>s5xpZV=(e%5Fn0JDn<$p8QV diff --git a/MapsFleetEngine/src/V1/Vehicle.php b/MapsFleetEngine/src/V1/Vehicle.php index cef7be90d471..f9c74ed528a6 100644 --- a/MapsFleetEngine/src/V1/Vehicle.php +++ b/MapsFleetEngine/src/V1/Vehicle.php @@ -47,6 +47,16 @@ class Vehicle extends \Google\Protobuf\Internal\Message * Generated from protobuf field .maps.fleetengine.v1.VehicleLocation last_location = 5; */ protected $last_location = null; + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleLocation past_locations = 30 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + private $past_locations; /** * 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. @@ -202,6 +212,12 @@ class Vehicle extends \Google\Protobuf\Internal\Message * vehicle. * @type \Google\Maps\FleetEngine\V1\VehicleLocation $last_location * Last reported location of the vehicle. + * @type array<\Google\Maps\FleetEngine\V1\VehicleLocation>|\Google\Protobuf\Internal\RepeatedField $past_locations + * 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. * @type int $maximum_capacity * 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. @@ -420,6 +436,40 @@ public function setLastLocation($var) return $this; } + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleLocation past_locations = 30 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPastLocations() + { + return $this->past_locations; + } + + /** + * 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. + * + * Generated from protobuf field repeated .maps.fleetengine.v1.VehicleLocation past_locations = 30 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param array<\Google\Maps\FleetEngine\V1\VehicleLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPastLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\V1\VehicleLocation::class); + $this->past_locations = $arr; + + return $this; + } + /** * 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.