Labels
Query Labels in Gmail.
テーブル固有の情報
利用可能なLabels をクエリします。
Select
ドライバーはGmail REST API を使用して、Id カラムを参照する検索条件を処理します。ドライバーは他のフィルタを、ドライバー内のクライアントサイドで処理します。
- Id '=' 演算子をサポート。
例えば、次のクエリはサーバーサイドで処理されます。
SELECT * FROM Labels WHERE Id = 'abc'
Insert
簡単なラベルを挿入します。
INSERT INTO [Labels] (Name) VALUES ('LabelName')
Update
ラベルを更新します。
UPDATE Labels SET Name = 'new name' WHERE Id = 'abc'
Delete
ラベルを削除します。
DELETE FROM [Labels] WHERE Id = 'LabelId'
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
The immutable ID of the label. | |
| Name | String | False |
The display name of the label. | |
| MessageListVisibility | String | False |
The visibility of messages with this label in the message list in the Gmail web interface. Acceptable values: HIDE, SHOW. | |
| LabelListVisibility | String | False |
The visibility of the label in the label list in the Gmail web interface. Acceptable values: LabelHide, LabelShow, LabelShowIfUnread. | |
| Type | String | True |
The owner type for the label. | |
| MessagesTotal | Long | True |
The total number of messages with the label. | |
| ThreadsTotal | Long | True |
The total number of threads with the label. | |
| MessagesUnread | Long | True |
The number of unread messages with the label. | |
| ThreadsUnread | Long | True |
The number of unread threads with the label. |