TaskAttribute
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Opisuje atrybut zadania w postaci pary klucz-wartość. Pole „klucz:wartość” Długość ciągu znaków nie może przekraczać 256 znaków.
Zapis 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 .
} |
Pola |
key |
string
Klucz atrybutu. Klucze nie mogą zawierać znaku dwukropka (:).
|
Pole sumy task_attribute_value . Wartość atrybutu może być ciągiem znaków, wartością logiczną lub liczbą zmiennoprzecinkową. Jeśli nie ustawisz żadnej wartości, atrybut string_value będzie przechowywany jako pusty ciąg „”. task_attribute_value może mieć tylko jedną z tych wartości: |
stringValue |
string
Wartość atrybutu z ciągiem znaków.
|
boolValue |
boolean
Wartość atrybutu wpisanego z użyciem wartości logicznej.
|
numberValue |
number
Wartość atrybutu została wpisana dwukrotnie.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-31 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]