推出全新商家檔案 API 功能
現在您可以在
Reviews API 中,查看遭拒評論回覆的具體違規事項。如要查看所有最新的 Google 商家檔案 API 更新,請前往「
最新消息」頁面。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
WriteRequest
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
| JSON 表示法 |
{
"resourceName": string,
"writeOffset": string,
"finishWrite": boolean,
"data": string
} |
| 欄位 |
resourceName |
string
要寫入的資源名稱。每個 Write() 動作的第一個 WriteRequest 必須設定此項目。如果您在後續呼叫上設定這個參數,則必須與第一個要求的值相符。
|
writeOffset |
string (int64 format)
從應寫入資料的資源開頭的偏移值。所有 WriteRequest 都必須具備這個屬性。 在 Write() 動作的第一個 WriteRequest 中,表示 Write() 呼叫的初始偏移。這個值必須等於呼叫 QueryWriteStatus() 會傳回的 committedSize。 在後續的呼叫中,您必須設定這個值,且必須等於先前在這個串流中傳送的所有 data 組合大小總和。writeOffset 不正確的值會導致錯誤發生。
|
finishWrite |
boolean
如果值為 true,則表示寫入作業已完成。將後續的任何 WriteRequest 傳送至 finishWrite 為 true 的情況下,就會發生錯誤。
|
data |
string (bytes format)
資源資料的一部分。用戶端可針對任何指定的 WriteRequest 將 data 留空。當要求在執行作業以產生更多資料時,用戶端會通知服務這項要求仍在運作中。 Base64 編碼字串。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The ByteStream.Write request requires `resourceName` (set initially, and consistent thereafter), `writeOffset` (indicating data position, increasing cumulatively), `finishWrite` (a boolean flag signaling completion), and `data` (a base64-encoded string of resource data). The `writeOffset` must match the `committedSize`. Setting `finishWrite` to true prevents further writes. The `data` field can be empty to keep the request active. All the parameters are required unless otherwise specified.\n"]]