TaskAttribute
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.
|
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-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["Task attributes are represented as key-value pairs in JSON format, with a maximum length of 256 characters for the \"key:value\" string."],["Attribute keys cannot contain colons and values can be strings, booleans, or numbers."],["If no specific value type is set, the attribute will be stored as an empty string."]]],["A task attribute is represented as a key-value pair with a maximum string length of 256 characters. The `key` is a string that cannot include colons. The `task_attribute_value` can be a string, boolean, or number. If no value is provided, the string value defaults to an empty string. Only one value type can be set for the `task_attribute_value`.\n"]]