對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
Method: projects.draft.read
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
POST https://actions.googleapis.com/v2/{name=projects/*/draft}:read
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
name |
string
必要欄位。資源名稱,格式為 projects/{project}/draft 。{project} 是與專案相關聯的雲端專案 ID。
|
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"clientSecretEncryptionKeyVersion": string
} |
欄位 |
clientSecretEncryptionKeyVersion |
string
選用設定。用於加密帳戶連結 OAuth 用戶端密鑰的加密編譯金鑰版本。如未指定,則會使用主要金鑰版本進行加密。僅適用於連結用戶端密鑰的專案。
|
回應主體
如果成功,回應主體會含有以下結構的資料:
針對 draft.read 的串流 RPC 回應。
JSON 表示法 |
{
"files": {
object (Files )
}
} |
欄位 |
files |
object (Files )
一次從伺服器傳送的檔案清單。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis documentation outlines how to read the entire content of a project draft using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the project name as a path parameter and optionally providing an encryption key version for account linking client secrets.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides a stream of files contained within the project draft.\u003c/p\u003e\n"],["\u003cp\u003eThe content is structured using JSON for both request and response bodies, with detailed descriptions of their respective fields.\u003c/p\u003e\n"]]],[],null,["# Method: projects.draft.read\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ReadDraftResponse.SCHEMA_REPRESENTATION)\n\nReads the entire content of the project draft.\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2/{name=projects/*/draft}:read`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the resource in the format `projects/{project}/draft`. The `{project}` is the cloud project ID associated with the project. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|--------------------------------------------------------|---|\n| ``` { \"clientSecretEncryptionKeyVersion\": string } ``` |\n\n| Fields ||\n|------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `clientSecretEncryptionKeyVersion` | `string` Optional. The version of the crypto key used to encrypt the account linking OAuth client secret. If not specified, the primary key version is used for encryption. Only relevant for projects with account linking with client secret. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nStreaming RPC response for draft.read.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------|---|\n| ``` { \"files\": { object (/assistant/actions/api/reference/rest/v2/Files) } } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------------------------------------------|\n| `files` | `object (`[Files](/assistant/actions/api/reference/rest/v2/Files)`)` List of files sent from the server at a time. |"]]