DeliveryVehicleLog

El registro de un recurso DeliveryVehicle en la API de Deliveries.

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

string

Es el nombre del recurso del vehículo de entrega en el formato providers/{providerId}/deliveryVehicles/{deliveryVehicleId}.

lastLocation

object (DeliveryVehicleLocationLog)

Es la última ubicación informada del vehículo.

navigationStatus

enum (DeliveryVehicleNavigationStatusLog)

Estado de navegación del vehículo de entrega

remainingDistanceMeters

integer

La distancia en automóvil restante para el currentRouteSegment.

remainingDuration

string (Duration format)

El tiempo de viaje restante del currentRouteSegment.

Es una duración en segundos con hasta nueve dígitos decimales que termina en "s". Ejemplo: "3.5s".

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

Es el conjunto restante de segmentos de recorrido asignados a este vehículo.

attributes[]

object (DeliveryVehicleAttributeLog)

Lista de atributos de vehículos de entrega personalizados. Cada atributo tiene una clave única.

DeliveryVehicleAttributeLog

Describe un atributo de vehículo como un par clave-valor.

Representación JSON
{
  "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.
}
Campos
key

string

La clave del atributo; por ejemplo, allowed_use_carpool_lane

value

string

El valor del atributo; por ejemplo, true

Campo de unión delivery_vehicle_attribute_value. El valor del atributo puede ser de tipo string, bool o doble. Las direcciones (delivery_vehicle_attribute_value) solo pueden ser una de las siguientes opciones:
stringValue

string

Valor del atributo escrito en cadena.

boolValue

boolean

Valor de atributo de tipo booleano.

numberValue

number

Valor de atributo de doble tipo.