Required. The Task associated with the update. The following fields are maintained by Fleet Engine. Do not update them using Task.update. * * last_location. * * last_location_snappable. * * name. * * remaining_vehicle_journey_segments. * * task_outcome_location_source. Note: You cannot change the value of task_outcome once you set it. If the Task has been assigned to a delivery vehicle, then don't set the Task state to CLOSED using Task.update. Instead, remove the VehicleStop that contains the Task from the delivery vehicle, which automatically sets the Task state to CLOSED.
Required. The field mask that indicates which Task fields to update. Note: The update_mask must contain at least one field. This is a comma-separated list of fully qualified names of fields. Example: "task_outcome,task_outcome_time,task_outcome_location".
getHeader
Optional. The standard Delivery API request header.
The following fields are maintained by Fleet Engine. Do not update
them using Task.update.
last_location.
last_location_snappable.
name.
remaining_vehicle_journey_segments.
task_outcome_location_source.
Note: You cannot change the value of task_outcome once you set it.
If the Task has been assigned to a delivery vehicle, then don't set the
Task state to CLOSED using Task.update. Instead, remove the VehicleStop
that contains the Task from the delivery vehicle, which automatically sets
the Task state to CLOSED.
The following fields are maintained by Fleet Engine. Do not update
them using Task.update.
last_location.
last_location_snappable.
name.
remaining_vehicle_journey_segments.
task_outcome_location_source.
Note: You cannot change the value of task_outcome once you set it.
If the Task has been assigned to a delivery vehicle, then don't set the
Task state to CLOSED using Task.update. Instead, remove the VehicleStop
that contains the Task from the delivery vehicle, which automatically sets
the Task state to CLOSED.
Required. The field mask that indicates which Task fields to update.
Note: The update_mask must contain at least one field.
This is a comma-separated list of fully qualified names of fields. Example:
"task_outcome,task_outcome_time,task_outcome_location".
Required. The field mask that indicates which Task fields to update.
Note: The update_mask must contain at least one field.
This is a comma-separated list of fully qualified names of fields. Example:
"task_outcome,task_outcome_time,task_outcome_location".
Required. The Task associated with the update.
The following fields are maintained by Fleet Engine. Do not update
them using Task.update.
last_location.
last_location_snappable.
name.
remaining_vehicle_journey_segments.
task_outcome_location_source.
Note: You cannot change the value of task_outcome once you set it.
If the Task has been assigned to a delivery vehicle, then don't set the
Task state to CLOSED using Task.update. Instead, remove the VehicleStop
that contains the Task from the delivery vehicle, which automatically sets
the Task state to CLOSED.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps FleetEngine Delivery V1 Client - Class UpdateTaskRequest (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine-delivery/latest/V1.UpdateTaskRequest)\n- [0.4.0](/php/docs/reference/maps-fleetengine-delivery/0.4.0/V1.UpdateTaskRequest)\n- [0.3.1](/php/docs/reference/maps-fleetengine-delivery/0.3.1/V1.UpdateTaskRequest)\n- [0.2.0](/php/docs/reference/maps-fleetengine-delivery/0.2.0/V1.UpdateTaskRequest)\n- [0.1.8](/php/docs/reference/maps-fleetengine-delivery/0.1.8/V1.UpdateTaskRequest) \nReference documentation and code samples for the Google Maps FleetEngine Delivery V1 Client class UpdateTaskRequest.\n\nThe `UpdateTask` request message.\n\nGenerated from protobuf message `maps.fleetengine.delivery.v1.UpdateTaskRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ Delivery \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHeader\n\nOptional. The standard Delivery API request header.\n\n### hasHeader\n\n### clearHeader\n\n### setHeader\n\nOptional. The standard Delivery API request header.\n\n### getTask\n\nRequired. The Task associated with the update.\n\nThe following fields are maintained by Fleet Engine. Do not update\nthem using `Task.update`.\n\n- `last_location`.\n- `last_location_snappable`.\n- `name`.\n- `remaining_vehicle_journey_segments`.\n- `task_outcome_location_source`. Note: You cannot change the value of `task_outcome` once you set it. If the Task has been assigned to a delivery vehicle, then don't set the Task state to CLOSED using `Task.update`. Instead, remove the `VehicleStop` that contains the Task from the delivery vehicle, which automatically sets the Task state to CLOSED.\n\n### hasTask\n\n### clearTask\n\n### setTask\n\nRequired. The Task associated with the update.\n\nThe following fields are maintained by Fleet Engine. Do not update\nthem using `Task.update`.\n\n- `last_location`.\n- `last_location_snappable`.\n- `name`.\n- `remaining_vehicle_journey_segments`.\n- `task_outcome_location_source`. Note: You cannot change the value of `task_outcome` once you set it. If the Task has been assigned to a delivery vehicle, then don't set the Task state to CLOSED using `Task.update`. Instead, remove the `VehicleStop` that contains the Task from the delivery vehicle, which automatically sets the Task state to CLOSED.\n\n### getUpdateMask\n\nRequired. The field mask that indicates which Task fields to update.\n\nNote: The `update_mask` must contain at least one field.\nThis is a comma-separated list of fully qualified names of fields. Example:\n`\"task_outcome,task_outcome_time,task_outcome_location\"`.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nRequired. The field mask that indicates which Task fields to update.\n\nNote: The `update_mask` must contain at least one field.\nThis is a comma-separated list of fully qualified names of fields. Example:\n`\"task_outcome,task_outcome_time,task_outcome_location\"`.\n\n### static::build"]]