WriteRequest
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ByteStream.Write のリクエスト オブジェクト。
JSON 表現 |
{
"resourceName": string,
"writeOffset": string,
"finishWrite": boolean,
"data": string
} |
フィールド |
resourceName |
string
書き込むリソースの名前。これは、各 Write() アクションの最初の WriteRequest で設定する必要があります。後続の呼び出しで設定する場合は、最初のリクエストの値と一致する必要があります。
|
writeOffset |
string (int64 format)
データを書き込むリソースの先頭からのオフセット。すべての WriteRequest で必須です。 Write() アクションの最初の WriteRequest では、Write() 呼び出しの初期オフセットを示します。値は、QueryWriteStatus() の呼び出しで返される committedSize と同じである必要があります。
後続の呼び出しでは、この値を設定する必要があります。また、最初の writeOffset と、このストリームで以前に送信したすべての data バンドルのサイズの合計と等しい必要があります。 値が正しくないとエラーが発生します。
|
finishWrite |
boolean
true の場合は、書き込みが完了したことを示します。finishWrite が true であるものの後に WriteRequest を送信すると、エラーが発生します。
|
data |
string (bytes format)
リソースのデータの一部。クライアントは、どの WriteRequest でも data を空のままにすることはできます。これにより、クライアントは、追加のデータを生成するオペレーションの実行中に、リクエストがまだ有効であることをサービスに通知できます。 Base64 でエンコードされた文字列。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","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 UTC。"],[],["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"]]