CreateDeliveryTaskRequest.Builder

public static abstract class CreateDeliveryTaskRequest.Builder extends Object

Builder class for CreateDeliveryTaskRequest.

Public Method Summary

CreateDeliveryTaskRequest
build()
Returns new CreateDeliveryTaskRequest instance with the state set by the Builder.
final CreateDeliveryTaskRequest.Builder
setParentId(String parentId)
This method is deprecated. Instead call setTrackingId(String)
abstract CreateDeliveryTaskRequest.Builder
setPlannedWaypoint(Waypoint waypoint)
Sets the waypoint destination where the task will be completed.
abstract CreateDeliveryTaskRequest.Builder
setTaskDurationSeconds(long durationSeconds)
Sets the additional time to perform an action at this location, measured in seconds.
abstract CreateDeliveryTaskRequest.Builder
setTaskId(String taskId)
Sets the unique identifier for this task for this provider.
abstract CreateDeliveryTaskRequest.Builder
setTaskType(int taskType)
Sets the type of the task; for example, a pickup or scheduled stop.
abstract CreateDeliveryTaskRequest.Builder
setTrackingId(String trackingId)
Sets the tracking identifier for the set of related tasks that this task is part of.

Inherited Method Summary

Public Methods

public CreateDeliveryTaskRequest build ()

Returns new CreateDeliveryTaskRequest instance with the state set by the Builder.

Throws
IllegalArgumentException if the task
  • is set with an invalid delivery task type
  • is of type DELIVERY_UNAVAILABLE or DELIVERY_SCHEDULED_STOP and sets a parent id
  • is of type DELIVERY_PICKUP or DELIVERY_DELIVERY and does not have a planned waypoint
NullPointerException if any non-nullable values are not set.

public final CreateDeliveryTaskRequest.Builder setParentId (String parentId)

This method is deprecated.
Instead call setTrackingId(String)

Sets the unique identifier for the transaction (e.g. a trip id or tracking id) that this task is a part of.

public abstract CreateDeliveryTaskRequest.Builder setPlannedWaypoint (Waypoint waypoint)

Sets the waypoint destination where the task will be completed.

public abstract CreateDeliveryTaskRequest.Builder setTaskDurationSeconds (long durationSeconds)

Sets the additional time to perform an action at this location, measured in seconds.

public abstract CreateDeliveryTaskRequest.Builder setTaskId (String taskId)

Sets the unique identifier for this task for this provider.

public abstract CreateDeliveryTaskRequest.Builder setTaskType (int taskType)

Sets the type of the task; for example, a pickup or scheduled stop.

public abstract CreateDeliveryTaskRequest.Builder setTrackingId (String trackingId)

Sets the tracking identifier for the set of related tasks that this task is part of.