TaskAttribute
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Décrit un attribut de tâche en tant que paire clé-valeur. La valeur "key:value" La chaîne ne doit pas dépasser 256 caractères.
Représentation JSON |
{
"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 .
} |
Champs |
key |
string
Clé de l'attribut. Les clés ne doivent pas contenir le caractère deux-points (:).
|
Champ d'union task_attribute_value . Valeur de l'attribut. Elle peut être de type "string", "bool" ou "double". Si aucune valeur n'est définie, la chaîne "string_value" de l'attribut TaskAttribute sera stockée en tant que chaîne vide "". task_attribute_value ne peut être que l'un des éléments suivants: |
stringValue |
string
Valeur d'attribut de type chaîne.
|
boolValue |
boolean
Valeur d'attribut de type booléen.
|
numberValue |
number
Valeur d'attribut saisie en double.
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/31 (UTC).
[null,null,["Dernière mise à jour le 2025/08/31 (UTC)."],[[["\u003cp\u003eTask attributes are represented as key-value pairs in JSON format, with a maximum length of 256 characters for the "key:value" string.\u003c/p\u003e\n"],["\u003cp\u003eAttribute keys cannot contain colons and values can be strings, booleans, or numbers.\u003c/p\u003e\n"],["\u003cp\u003eIf no specific value type is set, the attribute will be stored as an empty string.\u003c/p\u003e\n"]]],["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"],null,["# TaskAttribute\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDescribes a task attribute as a key-value pair. The \"key:value\" string length cannot exceed 256 characters.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"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`. } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------|\n| `key` | `string` The attribute's key. Keys may not contain the colon character (:). |\n| 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: ||\n| `stringValue` | `string` String typed attribute value. |\n| `boolValue` | `boolean` Boolean typed attribute value. |\n| `numberValue` | `number` Double typed attribute value. |"]]