15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_DOWNLOAD_OPTIONS_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_DOWNLOAD_OPTIONS_H
18#include "google/cloud/storage/internal/complex_option.h"
19#include "google/cloud/storage/version.h"
26GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
33
34
35
36
37
40 explicit ReadRange(std::int64_t begin, std::int64_t end)
42 static char const*
name() {
return "read-range"; }
45inline std::ostream& operator<<(std::ostream& os,
ReadRangeData const& rhs) {
46 return os <<
"ReadRangeData={begin=" << rhs
.begin <<
", end=" << rhs
.end
51
52
55 using ComplexOption::ComplexOption;
59 static char const*
name() {
return "read-offset"; }
63
64
66 using ComplexOption::ComplexOption;
70 static char const*
name() {
return "read-last"; }
73GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Contains all the Google Cloud Storage C++ client APIs.
Definition: auto_finalize.h:24
Download all the data from the GCS object starting at the given offset.
Definition: download_options.h:54
static char const * name()
Definition: download_options.h:59
Read last N bytes from the GCS object.
Definition: download_options.h:65
static char const * name()
Definition: download_options.h:70
Definition: download_options.h:27
std::int64_t begin
Definition: download_options.h:28
std::int64_t end
Definition: download_options.h:29
Request only a portion of the GCS object in a ReadObject operation.
Definition: download_options.h:38
ReadRange(std::int64_t begin, std::int64_t end)
Definition: download_options.h:40
static char const * name()
Definition: download_options.h:42