Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
|
Represents the response from reading a subset of an object. More...
#include <google/cloud/storage/async_object_responses.h>
Public Attributes | |
Status | status |
The final status of the download. More... | |
absl::optional< storage::ObjectMetadata > | object_metadata |
If available, the full object metadata. More... | |
std::vector< std::string > | contents |
The object contents. More... | |
std::multimap< std::string, std::string > | request_metadata |
Per-request metadata and annotations. More... | |
Represents the response from reading a subset of an object.
std::vector<std::string> google::cloud::storage_experimental::AsyncReadObjectRangeResponse::contents |
The object contents.
The library receives the object contents as a sequence of std::string
. To avoid copies the library returns the sequence to the application. If you need to consolidate the contents use something like:
absl::optional<storage::ObjectMetadata> google::cloud::storage_experimental::AsyncReadObjectRangeResponse::object_metadata |
If available, the full object metadata.
std::multimap<std::string, std::string> google::cloud::storage_experimental::AsyncReadObjectRangeResponse::request_metadata |
Per-request metadata and annotations.
These are intended as debugging tools. They are subject to change without notice.
Status google::cloud::storage_experimental::AsyncReadObjectRangeResponse::status |
The final status of the download.
Downloads can have partial failures, where only a subset of the data is successfully downloaded, and then the connection is interrupted. With the default configuration, the client library resumes the download. If, however, the storage::RetryPolicy
is exhausted, only the partial results are returned, and the last error status is returned here.