DeliveryVehicleLog

O registro de um recurso DeliveryVehicle na API Deliveries.

Representação JSON
{
  "name": string,
  "lastLocation": {
    object (DeliveryVehicleLocationLog)
  },
  "navigationStatus": enum (DeliveryVehicleNavigationStatusLog),
  "remainingDistanceMeters": integer,
  "remainingDuration": string,
  "remainingVehicleJourneySegments": [
    {
      object (VehicleJourneySegmentLog)
    }
  ],
  "attributes": [
    {
      object (DeliveryVehicleAttributeLog)
    }
  ]
}
Campos
name

string

O nome do recurso do veículo de entrega no formato providers/{providerId}/deliveryVehicles/{deliveryVehicleId}.

lastLocation

object (DeliveryVehicleLocationLog)

O último local informado do veículo.

navigationStatus

enum (DeliveryVehicleNavigationStatusLog)

Status de navegação do veículo de entrega.

remainingDistanceMeters

integer

A distância de carro restante do currentRouteSegment.

remainingDuration

string (Duration format)

O tempo de viagem restante para o currentRouteSegment.

Duração em segundos com até nove dígitos fracionários, terminando em "s". Exemplo: "3.5s".

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

O conjunto restante de trechos da viagem atribuídos a este veículo.

attributes[]

object (DeliveryVehicleAttributeLog)

Lista de atributos personalizados do veículo de entrega. Cada atributo tem uma chave exclusiva.

DeliveryVehicleAttributeLog

Descreve um atributo de veículo como um par de chave-valor.

Representação 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

A chave do atributo, por exemplo, allowed_use_carpool_lane.

value

string

O valor do atributo, por exemplo, true.

Campo de união delivery_vehicle_attribute_value. O valor do atributo, pode estar em string, bool ou tipo duplo. delivery_vehicle_attribute_value pode ser apenas de um dos tipos a seguir:
stringValue

string

Valor do atributo do tipo string.

boolValue

boolean

Valor de atributo tipo booleano.

numberValue

number

Valor de atributo de dois tipos.