VacationSettings
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
アカウントの休暇中の自動返信の設定。これらの設定は、ウェブ インターフェースの不在通知機能に対応しています。
JSON 表現 |
{
"enableAutoReply": boolean,
"responseSubject": string,
"responseBodyPlainText": string,
"responseBodyHtml": string,
"restrictToContacts": boolean,
"restrictToDomain": boolean,
"startTime": string,
"endTime": string
} |
フィールド |
enableAutoReply |
boolean
Gmail がメールに自動的に返信するかどうかを制御するフラグ。
|
responseSubject |
string
休暇中の返信の件名の前に追加するテキスト(省略可)。自動返信を有効にするには、レスポンスの件名またはレスポンスの本文が空でないこと。
|
responseBodyPlainText |
string
レスポンスの本文(プレーン テキスト形式)。responseBodyPlainText と responseBodyHtml の両方が指定されている場合は、responseBodyHtml が使用されます。
|
responseBodyHtml |
string
HTML 形式のレスポンス本文。Gmail では、HTML を保存する前にサニタイズされます。responseBodyPlainText と responseBodyHtml の両方が指定されている場合は、responseBodyHtml が使用されます。
|
restrictToContacts |
boolean
ユーザーの連絡先リストに登録されていない受信者に返信を送信するかどうかを決定するフラグ。
|
restrictToDomain |
boolean
ユーザーのドメイン外の受信者に返信を送信するかどうかを決定するフラグ。この機能は Google Workspace ユーザーのみが利用できます。
|
startTime |
string (int64 format)
自動返信の送信開始時間(エポック ms)。省略可。開始時間を指定すると、開始時間以降に受信したメールにのみ自動返信が送信されます。startTime と endTime の両方が指定されている場合は、startTime を endTime の前に配置する必要があります。
|
endTime |
string (int64 format)
自動返信の送信終了時間(エポック ms)。省略可。終了時間を指定すると、終了時間より前に受信したメッセージにのみ自動返信が送信されます。startTime と endTime の両方が指定されている場合は、startTime を endTime の前に配置する必要があります。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# VacationSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nVacation auto-reply settings for an account. These settings correspond to the [\"Vacation responder\"](https://support.google.com/mail/answer/25922) feature in the web interface.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"enableAutoReply\": boolean, \"responseSubject\": string, \"responseBodyPlainText\": string, \"responseBodyHtml\": string, \"restrictToContacts\": boolean, \"restrictToDomain\": boolean, \"startTime\": string, \"endTime\": string } ``` |\n\n| Fields ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enableAutoReply` | `boolean` Flag that controls whether Gmail automatically replies to messages. |\n| `responseSubject` | `string` Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty. |\n| `responseBodyPlainText` | `string` Response body in plain text format. If both `responseBodyPlainText` and `responseBodyHtml` are specified, `responseBodyHtml` will be used. |\n| `responseBodyHtml` | `string` Response body in HTML format. Gmail will sanitize the HTML before storing it. If both `responseBodyPlainText` and `responseBodyHtml` are specified, `responseBodyHtml` will be used. |\n| `restrictToContacts` | `boolean` Flag that determines whether responses are sent to recipients who are not in the user's list of contacts. |\n| `restrictToDomain` | `boolean` Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users. |\n| `startTime` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both `startTime` and `endTime` are specified, `startTime` must precede `endTime`. |\n| `endTime` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both `startTime` and `endTime` are specified, `startTime` must precede `endTime`. |"]]