HostApp
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google Workspace アドオンまたは Google Chat アプリの Google Workspace アプリケーション。
アドオンの場合は、Google Workspace アドオンを起動する Workspace アプリケーション。Chat アプリの場合、ホストアプリは常に CHAT
です。
列挙型 |
UNSPECIFIED_HOST_APP |
ホストアプリを特定できない。 |
GMAIL |
アドオンは Gmail から起動します。 |
CALENDAR |
アドオンは Google カレンダーから起動します。 |
DRIVE |
アドオンは Google ドライブから起動されます。 |
DEMO |
使用されません。 |
DOCS |
アドオンは Google ドキュメントから起動されます。 |
MEET |
アドオンは Google Meet から起動します。 |
SHEETS |
アドオンは Google スプレッドシートから起動します。 |
SLIDES |
アドオンは Google スライドから起動します。 |
DRAWINGS |
アドオンは Google 図形描画から起動します。 |
CHAT |
Google Chat アプリ。Google Workspace アドオンには使用されません。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003eHostApp\u003c/code\u003e enum indicates the Google Workspace application from which a Google Workspace Add-on or Google Chat app launches.\u003c/p\u003e\n"],["\u003cp\u003eFor add-ons, the \u003ccode\u003eHostApp\u003c/code\u003e specifies the originating application like Gmail, Calendar, or Drive, while for Chat apps, it's always \u003ccode\u003eCHAT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUNSPECIFIED_HOST_APP\u003c/code\u003e is used when Google cannot identify the host app, and \u003ccode\u003eDEMO\u003c/code\u003e is not utilized.\u003c/p\u003e\n"]]],["The content defines the host applications for Google Workspace add-ons and Google Chat apps. For add-ons, host apps include Gmail, Calendar, Drive, Docs, Meet, Sheets, Slides, and Drawings. Each of these indicates where the add-on is launched from. For Chat apps, the host app is always `CHAT`. An `UNSPECIFIED_HOST_APP` means Google can't identify the host. `DEMO` is listed but not used for either add-ons or Chat apps.\n"],null,["# HostApp\n\nThe Google Workspace application for a Google Workspace add-on or Google Chat app.\n\nFor add-ons, the Workspace application from which a Google Workspace add-on launches. For Chat apps, the host app is always `CHAT`.\n\n| Enums ||\n|------------------------|-----------------------------------------------------------|\n| `UNSPECIFIED_HOST_APP` | Google can't identify a host app. |\n| `GMAIL` | The add-on launches from Gmail. |\n| `CALENDAR` | The add-on launches from Google Calendar. |\n| `DRIVE` | The add-on launches from Google Drive. |\n| `DEMO` | Not used. |\n| `DOCS` | The add-on launches from Google Docs. |\n| `MEET` | The add-on launches from Google Meet. |\n| `SHEETS` | The add-on launches from Google Sheets. |\n| `SLIDES` | The add-on launches from Google Slides. |\n| `DRAWINGS` | The add-on launches from Google Drawings. |\n| `CHAT` | A Google Chat app. Not used for Google Workspace add-ons. |"]]