GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTDCreateDeliveryTaskRequest
An immutable object representing a request to create a delivery task.
-
Declaration
Objective-C
- (null_unspecified instancetype)init;
-
Declaration
Swift
var taskID: String { get }
-
The tracking ID for the task.
Declaration
Swift
var trackingID: String? { get }
-
Deprecated
This property is obsolete and will be removed in a future release. Use the trackingID property instead.
The tracking ID for the task.
Declaration
Swift
var parentID: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *parentID;
-
Declaration
Objective-C
@property (nonatomic, readonly) GMTSTaskType taskType;
-
Declaration
Objective-C
@property (nonatomic, readonly) GMTSTaskState taskState;
-
The expected duration of the task in seconds.
Declaration
Swift
var taskDuration: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval taskDuration;
-
Optional waypoint where the task will be performed.
Declaration
Swift
var plannedWaypoint: GMSNavigationWaypoint? { get }
Objective-C
@property (nonatomic, readonly, nullable) GMSNavigationWaypoint *plannedWaypoint;
-
Initializes and returns a GMTDCreateDeliveryTaskRequest
object using the provided attributes.
Declaration
Swift
init(taskID: String, trackingID: String?, taskType: GMTSTaskType, taskState: GMTSTaskState, taskDuration: TimeInterval, plannedWaypoint: GMSNavigationWaypoint?)
Parameters
taskID
|
|
trackingID
|
An abitrary ID the client may find useful in tracking the task.
|
taskType
|
|
taskState
|
|
taskDuration
|
The expected duration of this task in seconds.
|
plannedWaypoint
|
The location where this task will be performed.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMTDCreateDeliveryTaskRequest\u003c/code\u003e is an immutable object used to define a request for creating a delivery task.\u003c/p\u003e\n"],["\u003cp\u003eThe object includes properties such as \u003ccode\u003etaskID\u003c/code\u003e (required), \u003ccode\u003etrackingID\u003c/code\u003e (optional), \u003ccode\u003etaskType\u003c/code\u003e, \u003ccode\u003etaskState\u003c/code\u003e, \u003ccode\u003etaskDuration\u003c/code\u003e, and an optional \u003ccode\u003eplannedWaypoint\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eparentID\u003c/code\u003e is a deprecated property that is replaced by the \u003ccode\u003etrackingID\u003c/code\u003e property for tracking the task.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003einitWithTaskID:trackingID:taskType:taskState:taskDuration:plannedWaypoint:\u003c/code\u003e to initialize a new \u003ccode\u003eGMTDCreateDeliveryTaskRequest\u003c/code\u003e object with specific task details.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einit\u003c/code\u003e method is unavailable and should not be used to create an instance of \u003ccode\u003eGMTDCreateDeliveryTaskRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["GMTDCreateDeliveryTaskRequest \n\n @interface GMTDCreateDeliveryTaskRequest : ../Classes/GMTSImmutableData.html\n\nAn immutable object representing a request to create a delivery task.\n- `\n ``\n ``\n `\n\n [-init](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(im)init)`\n ` \n Unavailable \n Use [-initWithTaskID:trackingID:taskType:taskState:taskDuration:plannedWaypoint:](../Classes/GMTDCreateDeliveryTaskRequest.html#/c:objc(cs)GMTDCreateDeliveryTaskRequest(im)initWithTaskID:trackingID:taskType:taskState:taskDuration:plannedWaypoint:) instead. \n\n Declaration \n Objective-C \n\n - (null_unspecified instancetype)init;\n\n- `\n ``\n ``\n `\n\n [taskID](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(py)taskID)`\n ` \n The ID of the task. \n\n Declaration \n Swift \n\n var taskID: String { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Type-Definitions/GMTDFleetEngineIDString.html *_Nonnull taskID;\n\n- `\n ``\n ``\n `\n\n [trackingID](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(py)trackingID)`\n ` \n The tracking ID for the task. \n\n Declaration \n Swift \n\n var trackingID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Type-Definitions/GMTDFleetEngineIDString.html *trackingID;\n\n- `\n ``\n ``\n `\n\n [parentID](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(py)parentID)`\n ` \n Deprecated\n\n This property is obsolete and will be removed in a future release. Use the trackingID property instead. \n The tracking ID for the task. \n\n Declaration \n Swift \n\n var parentID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *parentID;\n\n- `\n ``\n ``\n `\n\n [taskType](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(py)taskType)`\n ` \n The type of the task. \n\n Declaration \n Swift \n\n var taskType: ../Enums/GMTSTaskType.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMTSTaskType.html taskType;\n\n- `\n ``\n ``\n `\n\n [taskState](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(py)taskState)`\n ` \n The state of the task. \n\n Declaration \n Swift \n\n var taskState: ../Enums/GMTSTaskState.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMTSTaskState.html taskState;\n\n- `\n ``\n ``\n `\n\n [taskDuration](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(py)taskDuration)`\n ` \n The expected duration of the task in seconds. \n\n Declaration \n Swift \n\n var taskDuration: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval taskDuration;\n\n- `\n ``\n ``\n `\n\n [plannedWaypoint](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(py)plannedWaypoint)`\n ` \n Optional waypoint where the task will be performed. \n\n Declaration \n Swift \n\n var plannedWaypoint: GMSNavigationWaypoint? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) GMSNavigationWaypoint *plannedWaypoint;\n\n- `\n ``\n ``\n `\n\n [-initWithTaskID:trackingID:taskType:taskState:taskDuration:plannedWaypoint:](#/c:objc(cs)GMTDCreateDeliveryTaskRequest(im)initWithTaskID:trackingID:taskType:taskState:taskDuration:plannedWaypoint:)`\n ` \n Initializes and returns a `GMTDCreateDeliveryTaskRequest` object using the provided attributes. \n\n Declaration \n Swift \n\n init(taskID: String, trackingID: String?, taskType: ../Enums/GMTSTaskType.html, taskState: ../Enums/GMTSTaskState.html, taskDuration: TimeInterval, plannedWaypoint: GMSNavigationWaypoint?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithTaskID:(nonnull ../Type-Definitions/GMTDFleetEngineIDString.html *)taskID\n trackingID:(nullable ../Type-Definitions/GMTDFleetEngineIDString.html *)trackingID\n taskType:(../Enums/GMTSTaskType.html)taskType\n taskState:(../Enums/GMTSTaskState.html)taskState\n taskDuration:(NSTimeInterval)taskDuration\n plannedWaypoint:(nullable GMSNavigationWaypoint *)plannedWaypoint;\n\n Parameters\n\n |-------------------------|-----------------------------------------------------------------|\n | ` `*taskID*` ` | The ID of the task. |\n | ` `*trackingID*` ` | An abitrary ID the client may find useful in tracking the task. |\n | ` `*taskType*` ` | The type of this task. |\n | ` `*taskState*` ` | The state of this task. |\n | ` `*taskDuration*` ` | The expected duration of this task in seconds. |\n | ` `*plannedWaypoint*` ` | The location where this task will be performed. |"]]