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
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-24(UTC)
[null,null,["최종 업데이트: 2025-07-24(UTC)"],[],[],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` |"]]