DeliveryVehicleLog

The log of a DeliveryVehicle resource in the Deliveries API.

JSON representation
{
  "name": string,
  "lastLocation": {
    object (DeliveryVehicleLocationLog)
  },
  "navigationStatus": enum (DeliveryVehicleNavigationStatusLog),
  "remainingDistanceMeters": integer,
  "remainingDuration": string,
  "remainingVehicleJourneySegments": [
    {
      object (VehicleJourneySegmentLog)
    }
  ],
  "attributes": [
    {
      object (DeliveryVehicleAttributeLog)
    }
  ]
}
Fields
name

string

The delivery vehicle resource name in the format of providers/{providerId}/deliveryVehicles/{deliveryVehicleId}.

lastLocation

object (DeliveryVehicleLocationLog)

The last reported location of the vehicle.

navigationStatus

enum (DeliveryVehicleNavigationStatusLog)

The delivery vehicle's navigation status.

remainingDistanceMeters

integer

The remaining driving distance for the currentRouteSegment.

remainingDuration

string (Duration format)

The remaining driving time for the currentRouteSegment.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

The remaining set of journey segments assigned to this Vehicle.

attributes[]

object (DeliveryVehicleAttributeLog)

List of custom delivery vehicle attributes. Each attribute has a unique key.

DeliveryVehicleAttributeLog

Describes a vehicle attribute as a key-value pair.

JSON representation
{
  "key": string,
  "value": string,

  // Union field delivery_vehicle_attribute_value can be only one of the
  // following:
  "stringValue": string,
  "boolValue": boolean,
  "numberValue": number
  // End of list of possible types for union field
  // delivery_vehicle_attribute_value.
}
Fields
key

string

The attribute's key; for example, allowed_use_carpool_lane.

value

string

The attribute's value; for example, true.

Union field delivery_vehicle_attribute_value. The attribute's value, can be in string, bool, or double type. delivery_vehicle_attribute_value can be only one of the following:
stringValue

string

String typed attribute value.

boolValue

boolean

Boolean typed attribute value.

numberValue

number

Double typed attribute value.