TaskInfo
Stay organized with collections
Save and categorize content based on your preferences.
Describes a task that the driver will perform.
Public Constructor Summary
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
Returns a new default Builder instance.
public abstract long getTaskDurationSeconds ()
Returns the time required to perform the task.
public abstract String getTaskId ()
Returns the unique identifier of the task.
Returns a new Builder instance set with current task ID and duration.
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-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eTaskInfo\u003c/code\u003e is an abstract class that describes a task performed by a driver.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to get the task's duration, unique ID, and create a builder for new instances.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the \u003ccode\u003ebuilder()\u003c/code\u003e method to create new \u003ccode\u003eTaskInfo\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTaskInfo\u003c/code\u003e provides information crucial for managing and tracking driver tasks within an application.\u003c/p\u003e\n"]]],[],null,["# TaskInfo\n\npublic abstract class **TaskInfo** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nDescribes a task that the driver will perform. \n\n### Nested Class Summary\n\n|-------|---|---|----------------------------|\n| class | [TaskInfo.Builder](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo.Builder) || Builder class for TaskInfo |\n\n### Public Constructor Summary\n\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [TaskInfo](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo#TaskInfo())() |\n\n### Public Method Summary\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [TaskInfo.Builder](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo.Builder) | [builder](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo#builder())() Returns a new default Builder instance. |\n| abstract long | [getTaskDurationSeconds](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo#getTaskDurationSeconds())() Returns the time required to perform the task. |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getTaskId](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo#getTaskId())() Returns the unique identifier of the task. |\n| abstract [TaskInfo.Builder](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo.Builder) | [toBuilder](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo#toBuilder())() Returns a new Builder instance set with current task ID and duration. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public **TaskInfo** ()\n\nPublic Methods\n--------------\n\n#### public static [TaskInfo.Builder](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo.Builder) **builder**\n()\n\nReturns a new default Builder instance. \n\n#### public abstract long **getTaskDurationSeconds** ()\n\nReturns the time required to perform the task. \n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getTaskId** ()\n\nReturns the unique identifier of the task. \n\n#### public abstract [TaskInfo.Builder](/maps/documentation/mobility/driver-sdk/scheduled/reference/driver_6/android/reference/com/google/android/libraries/mapsplatform/transportation/driver/api/base/data/TaskInfo.Builder) **toBuilder**\n()\n\nReturns a new Builder instance set with current task ID and duration."]]