Reference documentation and code samples for the Google Maps FleetEngine V1 Client class UpdateVehicleRequest.
`UpdateVehicle request message.
Generated from protobuf message maps.fleetengine.v1.UpdateVehicleRequest
Namespace
Google \ Maps \ FleetEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ header
↳ name
string
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.
↳ vehicle
Vehicle
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, allthe 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.
↳ update_mask
Google\Protobuf\FieldMask
Required. A field mask indicating which fields of the Vehicle
to update. At least one field name must be provided.
getHeader
The standard Fleet Engine request header.
hasHeader
clearHeader
setHeader
The standard Fleet Engine request header.
$this
getName
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.
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.
var
string
$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 theattributes
field is updated, allthe vehicle's attributes are replaced with the attributes provided in the request. If you want to update only some attributes, see theUpdateVehicleAttributes
method. Likewise, thewaypoints
field can be updated, but must contain all the waypoints currently on the vehicle, and no other waypoints.
hasVehicle
clearVehicle
setVehicle
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 theattributes
field is updated, allthe vehicle's attributes are replaced with the attributes provided in the request. If you want to update only some attributes, see theUpdateVehicleAttributes
method. Likewise, thewaypoints
field can be updated, but must contain all the waypoints currently on the vehicle, and no other waypoints.
$this
getUpdateMask
Required. A field mask indicating which fields of the Vehicle
to update.
At least one field name must be provided.
hasUpdateMask
clearUpdateMask
setUpdateMask
Required. A field mask indicating which fields of the Vehicle
to update.
At least one field name must be provided.
$this