Required. Must be in the format providers/{provider}/vehicles/{vehicle}. The {provider} must be the Project ID (for example, sample-cloud-project) of the Google Cloud Project of which the service account making this call is a member.
Required. The Vehicle entity values to apply. When updating a Vehicle, the following fields may not be updated as they are managed by the server. * * available_capacity * * current_route_segment_version * * current_trips * * name * * waypoints_version If the attributes field is updated, all the vehicle's attributes are replaced with the attributes provided in the request. If you want to update only some attributes, see the UpdateVehicleAttributes method. Likewise, the waypoints field can be updated, but must contain all the waypoints currently on the vehicle, and no other waypoints.
Required. Must be in the format
providers/{provider}/vehicles/{vehicle}.
The {provider} must be the Project ID (for example, sample-cloud-project)
of the Google Cloud Project of which the service account making
this call is a member.
Returns
Type
Description
string
setName
Required. Must be in the format
providers/{provider}/vehicles/{vehicle}.
The {provider} must be the Project ID (for example, sample-cloud-project)
of the Google Cloud Project of which the service account making
this call is a member.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getVehicle
Required. The Vehicle entity values to apply. When updating a Vehicle,
the following fields may not be updated as they are managed by the
server.
available_capacity
current_route_segment_version
current_trips
name
waypoints_version
If the attributes field is updated, all the vehicle's attributes are
replaced with the attributes provided in the request. If you want to update
only some attributes, see the UpdateVehicleAttributes method.
Likewise, the waypoints field can be updated, but must contain all the
waypoints currently on the vehicle, and no other waypoints.
Required. The Vehicle entity values to apply. When updating a Vehicle,
the following fields may not be updated as they are managed by the
server.
available_capacity
current_route_segment_version
current_trips
name
waypoints_version
If the attributes field is updated, all the vehicle's attributes are
replaced with the attributes provided in the request. If you want to update
only some attributes, see the UpdateVehicleAttributes method.
Likewise, the waypoints field can be updated, but must contain all the
waypoints currently on the vehicle, and no other waypoints.
[[["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 V1 Client - Class UpdateVehicleRequest (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.UpdateVehicleRequest)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.UpdateVehicleRequest)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.UpdateVehicleRequest)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.UpdateVehicleRequest)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.UpdateVehicleRequest) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class UpdateVehicleRequest.\n\n\\`UpdateVehicle request message.\n\nGenerated from protobuf message `maps.fleetengine.v1.UpdateVehicleRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHeader\n\nThe standard Fleet Engine request header.\n\n### hasHeader\n\n### clearHeader\n\n### setHeader\n\nThe standard Fleet Engine request header.\n\n### getName\n\nRequired. Must be in the format\n`providers/{provider}/vehicles/{vehicle}`.\n\nThe {provider} must be the Project ID (for example, `sample-cloud-project`)\nof the Google Cloud Project of which the service account making\nthis call is a member.\n\n### setName\n\nRequired. Must be in the format\n`providers/{provider}/vehicles/{vehicle}`.\n\nThe {provider} must be the Project ID (for example, `sample-cloud-project`)\nof the Google Cloud Project of which the service account making\nthis call is a member.\n\n### getVehicle\n\nRequired. The `Vehicle` entity values to apply. When updating a `Vehicle`,\nthe following fields may not be updated as they are managed by the\nserver.\n\n- `available_capacity`\n- `current_route_segment_version`\n- `current_trips`\n- `name`\n- `waypoints_version` If the `attributes` field is updated, **all** the vehicle's attributes are replaced with the attributes provided in the request. If you want to update only some attributes, see the `UpdateVehicleAttributes` method. Likewise, the `waypoints` field can be updated, but must contain all the waypoints currently on the vehicle, and no other waypoints.\n\n### hasVehicle\n\n### clearVehicle\n\n### setVehicle\n\nRequired. The `Vehicle` entity values to apply. When updating a `Vehicle`,\nthe following fields may not be updated as they are managed by the\nserver.\n\n- `available_capacity`\n- `current_route_segment_version`\n- `current_trips`\n- `name`\n- `waypoints_version` If the `attributes` field is updated, **all** the vehicle's attributes are replaced with the attributes provided in the request. If you want to update only some attributes, see the `UpdateVehicleAttributes` method. Likewise, the `waypoints` field can be updated, but must contain all the waypoints currently on the vehicle, and no other waypoints.\n\n### getUpdateMask\n\nRequired. A field mask indicating which fields of the `Vehicle` to update.\n\nAt least one field name must be provided.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nRequired. A field mask indicating which fields of the `Vehicle` to update.\n\nAt least one field name must be provided."]]