Label
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"fields": {
string: {
object (Field )
},
...
},
"id": string,
"revisionId": string,
"kind": string
} |
字段 |
fields |
map (key: string, value: object (Field ))
标签上字段的映射,以字段的 ID 为键。 包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
id |
string
标签的 ID。
|
revisionId |
string
标签的修订版本 ID。
|
kind |
string
始终为 drive#label
|
字段
JSON 表示法 |
{
"dateString": [
string
],
"integer": [
string
],
"selection": [
string
],
"text": [
string
],
"user": [
{
object (User )
}
],
"kind": string,
"id": string,
"valueType": string
} |
字段 |
dateString[] |
string
仅当 valueType 为 dateString 时才会存在。RFC 3339 格式的日期:YYYY-MM-DD。
|
integer[] |
string (int64 format)
仅当 valueType 为 integer 时才会存在。
|
selection[] |
string
仅当 valueType 为 selection 时才存在
|
text[] |
string
仅当 valueType 为 text 时才会存在。
|
user[] |
object (User )
仅当 valueType 为 user 时才会存在。
|
kind |
string
始终为 drive#labelField 。
|
id |
string
相应标签字段的标识符。
|
valueType |
string
字段类型。虽然未来可能会支持新值,但目前允许使用以下值:
dateString
integer
selection
text
user
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-24。
[null,null,["最后更新时间 (UTC):2025-07-24。"],[],[],null,["# Label\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Field](#Field)\n - [JSON representation](#Field.SCHEMA_REPRESENTATION)\n\nRepresentation of a label and label fields.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"fields\": { string: { object (/workspace/drive/api/reference/rest/v2/Label#Field) }, ... }, \"id\": string, \"revisionId\": string, \"kind\": string } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fields` | `map (key: string, value: object (`[Field](/workspace/drive/api/reference/rest/v2/Label#Field)`))` A map of the fields on the label, keyed by the field's ID. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `id` | `string` The ID of the label. |\n| `revisionId` | `string` The revision ID of the label. |\n| `kind` | `string` This is always `drive#label` |\n\nField\n-----\n\nRepresentation of field, which is a typed key-value pair.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dateString\": [ string ], \"integer\": [ string ], \"selection\": [ string ], \"text\": [ string ], \"user\": [ { object (/workspace/drive/api/reference/rest/v2/User) } ], \"kind\": string, \"id\": string, \"valueType\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dateString[]` | `string` Only present if `valueType` is `dateString`. RFC 3339 formatted date: YYYY-MM-DD. |\n| `integer[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Only present if `valueType` is `integer`. |\n| `selection[]` | `string` Only present if `valueType` is `selection` |\n| `text[]` | `string` Only present if `valueType` is `text`. |\n| `user[]` | `object (`[User](/workspace/drive/api/reference/rest/v2/User)`)` Only present if `valueType` is `user`. |\n| `kind` | `string` This is always `drive#labelField`. |\n| `id` | `string` The identifier of this label field. |\n| `valueType` | `string` The field type. While new values may be supported in the future, the following are currently allowed: - `dateString` - `integer` - `selection` - `text` - `user` |"]]