# TaskAttribute

- [JSON representation](https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/TaskAttribute#SCHEMA_REPRESENTATION)

Describes a task attribute as a key-value pair. The "key:value" string length cannot exceed 256 characters.

| JSON representation |
|---|
| ``` { "key": string, // Union field `task_attribute_value` can be only one of the following: "stringValue": string, "boolValue": boolean, "numberValue": number // End of list of possible types for union field `task_attribute_value`. } ``` |

| Fields ||
|---|---|
| `key` | `string` 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_value` can be only one of the following: ||
| `stringValue` | `string` String typed attribute value. |
| `boolValue` | `boolean` Boolean typed attribute value. |
| `numberValue` | `number` Double typed attribute value. |