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 formato providers/{providerId}/deliveryVehicles/{deliveryVehicleId}.

lastLocation

object (DeliveryVehicleLocationLog)

La última ubicación informada del vehículo.

navigationStatus

enum (DeliveryVehicleNavigationStatusLog)

El estado de navegación del vehículo de entrega

remainingDistanceMeters

integer

La distancia en automóvil restante para el currentRouteSegment.

remainingDuration

string (Duration format)

Tiempo de conducción restante: currentRouteSegment.

Una duración en segundos con hasta nueve dígitos decimales, que terminan en “s”. Ejemplo: "3.5s".

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

Es el conjunto restante de segmentos de viaje 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 estar en cadena, en booleano o en tipo doble. Las direcciones (delivery_vehicle_attribute_value) solo pueden ser una de las siguientes opciones:
stringValue

string

Valor del atributo de tipo de cadena.

boolValue

boolean

Valor de atributo de tipo booleano.

numberValue

number

Valor de atributo de doble tipo.