Get desktop application:
View/edit binary Protocol Buffers messages
An upload process starts by calling Begin, which issues a TransferState message. The TransferState will be incrementally updated by some number of calls to Transfer. A final call to Commit will attach the transferred data to the requested file path. The BeginResponse will include a maximum chunk size that is enforced by the server. Clients may upload smaller chunks, but this will decrease overall efficiency. Calls to Transfer and Commit are idempotent. A client need only retry a call to Transfer or to Commit in order to recover from an interrupted connection. After a file has been uploaded, it may be retrieved with a regular HTTP GET call to the tenant's virtual host, or a signed URI path may be generated with the Retrieve endpoint.
For trivially small (or empty) files, we'd like to be able to effect the transfer in a single request.
The contents of the file. This should generally be under 1 MiB. If the contents exceed the server's configured maximum, an error may be returned.
If true, an empty file will be committed.
Continuation data to provide to TransferRequest.
The maximum number of bytes to include in a single transfer.
If this field is true, the contents in the BeginRequest were committed successfully and the transfer is finished. If false, the client can use the returned TransferState to perform the file transfer as usual.
Continuation data from a previous TransferRequest.
Additional metadata to be returned when subsequently fetching the file. The metadata is placed on the CommitRequest so that stream- based operations (e.g. computing a checksum) may be performed during the transfer process.
(message has no fields)
The URL to fetch.
Additional headers to append to the request, (e.g. Authorization).
The HTTP method to make the request with. Defaults to GET if unspecified.
This state must be provided from either BeginResponse or a previous TransferResponse.
The size of data must not exceed BeginResponse.max_chunk_size.
The state to pass into the next TransferRequest.
Used in:
TransferState should be treated as an opaque value by the client. The structure of the message is not guaranteed by any API compatibility policy.
Used in: , , ,