AI-generated Key Takeaways
- 
          The Task resource log in the Deliveries API records the progression and outcome of a task, including its type, state, outcome, location, and timing details. 
- 
          It also includes journey sharing information like remaining vehicle journey segments, last location, and task tracking view configuration for data visibility. 
- 
          The task tracking view configuration determines when certain data points, such as route polyline points and estimated arrival time, are visible to end-users based on predefined thresholds or settings. 
- 
          Task attributes can be included as key-value pairs with string, boolean, or number values for customization and tracking specific task details. 
- JSON representation
- JourneySharingInfoLog
- TaskTrackingViewConfigLog
- VisibilityOptionLog
- TaskAttributeLog
The log of a Task resource in the Deliveries API.
| JSON representation | 
|---|
| { "name": string, "type": enum ( | 
| Fields | |
|---|---|
| name | 
 The task resource name in the format of  | 
| type | 
 The task type. | 
| state | 
 The state of a Task indicating its progression. | 
| taskOutcome | 
 The outcome of attempting to execute a task. When TaskState is closed, this indicates whether it was completed successfully. | 
| taskOutcomeTime | 
 The timestamp of when the task's outcome was set (from provider). Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| taskOutcomeLocation | 
 Location where the task's outcome was set. | 
| taskOutcomeLocationSource | 
 Indicates where the value of the  | 
| trackingId | 
 This field facilitates the storing of an ID for the customer to avoid unnecessary or complicated mapping. | 
| deliveryVehicleId | 
 The ID of the vehicle performing this Task. | 
| plannedLocation | 
 The location where the task is completed. | 
| taskDuration | 
 Additional time to perform an action at this location. A duration in seconds with up to nine fractional digits, ending with ' | 
| targetTimeWindow | 
 The time window during which the task should be completed. | 
| journeySharingInfo | 
 Journey sharing specific fields. | 
| taskTrackingViewConfig | 
 The configuration for task tracking that specifies which data elements are visible to the end users under what circumstances. | 
| attributes[] | 
 A list of custom Task attributes. Each attribute must have a unique key. | 
JourneySharingInfoLog
Journey sharing specific fields.
| JSON representation | 
|---|
| { "remainingVehicleJourneySegments": [ { object ( | 
| Fields | |
|---|---|
| remainingVehicleJourneySegments[] | 
 Tracking information for each stop that the assigned vehicle will travel to before completing this task. This list may contain stops from other tasks. | 
| lastLocation | 
 The last reported location of the vehicle. | 
| lastLocationSnappable | 
 Indicates whether the vehicle's  | 
TaskTrackingViewConfigLog
The configuration message that defines when a data element of a Task should be visible to the end users.
| JSON representation | 
|---|
| { "routePolylinePointsVisibility": { object ( | 
| Fields | |
|---|---|
| routePolylinePointsVisibility | 
 The field that specifies when route polyline points can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. | 
| estimatedArrivalTimeVisibility | 
 The field that specifies when estimated arrival time can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. | 
| estimatedTaskCompletionTimeVisibility | 
 The field that specifies when estimated task completion time can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. | 
| remainingDrivingDistanceVisibility | 
 The field that specifies when remaining driving distance can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. | 
| remainingStopCountVisibility | 
 The field that specifies when remaining stop count can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. | 
| vehicleLocationVisibility | 
 The field that specifies when vehicle location can be visible. If this field is not specified, the project level default visibility configuration for this data will be used. | 
VisibilityOptionLog
The option message that defines when a data element should be visible to the end users.
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field  
 | |
| remainingStopCountThreshold | 
 This data element is visible to the end users if the remaining stop count <= remainingStopCountThreshold. | 
| durationUntilEstimatedArrivalTimeThreshold | 
 This data element is visible to the end users if the ETA to the stop <= durationUntilEstimatedArrivalTimeThreshold. A duration in seconds with up to nine fractional digits, ending with ' | 
| remainingDrivingDistanceMetersThreshold | 
 This data element is visible to the end users if the remaining driving distance in meters <= remainingDrivingDistanceMetersThreshold. | 
| always | 
 If set to true, this data element is always visible to the end users with no thresholds. | 
| never | 
 If set to true, this data element is always hidden from the end users with no thresholds. | 
TaskAttributeLog
Describes a task attribute as a key-value pair. The "key:value" string length cannot exceed 256 characters.
| JSON representation | 
|---|
| { "key": string, // Union field | 
| Fields | |
|---|---|
| key | 
 The attribute's key. Keys may not contain the colon character (:). | 
| Union field task_attribute_value. The attribute's value, can be in string, bool, or double type. If none are set the TaskAttribute string_value will be stored as the empty string "".task_attribute_valuecan be only one of the following: | |
| stringValue | 
 String typed attribute value. | 
| boolValue | 
 Boolean typed attribute value. | 
| numberValue | 
 Double typed attribute value. |