pub async fn update_vehicle(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateVehicleRequest>,
        ) -> Result<tonic::Response<super::Vehicle>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/maps.fleetengine.v1.VehicleService/UpdateVehicle",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// Writes updated vehicle data to the Fleet Engine.
///
/// When updating a `Vehicle`, the following fields cannot be updated since
/// they are managed by the server:
///
/// * `currentTrips`
/// * `availableCapacity`
/// * `current_route_segment_version`
/// * `waypoints_version`
///
/// The vehicle `name` also cannot be updated.
///
/// 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.
Writes updated vehicle data to the Fleet Engine.
When updating a `Vehicle`, the following fields cannot be updated since
they are managed by the server.



The vehicle `name` also cannot be updated.

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.
Writes updated vehicle data to the Fleet Engine . When updating a ` Vehicle ` the following fields cannot be updated since they are managed by the server . The vehicle ` name ` also cannot be updated . 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 .
pub async fn update_vehicle(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateVehicleRequest>,
        ) -> Result<tonic::Response<super::Vehicle>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/maps.fleetengine.v1.VehicleService/UpdateVehicle",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn update_vehicle ( & mut self , request : impl tonic :: IntoRequest < super :: UpdateVehicleRequest > , ) -> Result < tonic :: Response < super :: Vehicle > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Writes updated vehicle data to the Fleet Engine.
Writes updated vehicle data to the Fleet Engine .
&mut self
request
impl tonic::IntoRequest<super::UpdateVehicleRequest>
&mut self
request
impl tonic::IntoRequest<super::UpdateVehicleRequest>