Google Business Performance
API has a NEW
API method that allows fetching multiple `DailyMetrics` in a single API request. Review the deprecation schedule
and instructions to migrate over from v4 reportInsights API method to Google Business Profile Performance API.
WriteRequest
Stay organized with collections
Save and categorize content based on your preferences.
Request object for ByteStream.Write.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eThe ByteStream.Write request object allows writing data to a cloud resource, potentially in chunks.\u003c/p\u003e\n"],["\u003cp\u003eIt requires specifying the resource name, data to write, and the write offset within the resource.\u003c/p\u003e\n"],["\u003cp\u003eFor the initial write request, the offset should typically be 0, and for subsequent requests, it should be the cumulative size of previous writes.\u003c/p\u003e\n"],["\u003cp\u003eSetting \u003ccode\u003efinishWrite\u003c/code\u003e to true signals completion of the write operation, and further requests will result in an error.\u003c/p\u003e\n"]]],["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"],null,["# WriteRequest\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRequest object for ByteStream.Write.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------|---|\n| ``` { \"resourceName\": string, \"writeOffset\": string, \"finishWrite\": boolean, \"data\": string } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `resourceName` | `string` The name of the resource to write. This **must** be set on the first `WriteRequest` of each `Write()` action. If it is set on subsequent calls, it **must** match the value of the first request. |\n| `writeOffset` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The offset from the beginning of the resource at which the data should be written. It is required on all `WriteRequest`s. In the first `WriteRequest` of a `Write()` action, it indicates the initial offset for the `Write()` call. The value **must** be equal to the `committedSize` that a call to `QueryWriteStatus()` would return. On subsequent calls, this value **must** be set and **must** be equal to the sum of the first `writeOffset` and the sizes of all `data` bundles sent previously on this stream. An incorrect value will cause an error. |\n| `finishWrite` | `boolean` If `true`, this indicates that the write is complete. Sending any `WriteRequest`s subsequent to one in which `finishWrite` is `true` will cause an error. |\n| `data` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` A portion of the data for the resource. The client **may** leave `data` empty for any given `WriteRequest`. This enables the client to inform the service that the request is still live while it is running an operation to generate more data. A base64-encoded string. |"]]