15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_UPLOAD_OPTIONS_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_UPLOAD_OPTIONS_H
18#include "google/cloud/storage/internal/complex_option.h"
19#include "google/cloud/storage/version.h"
20#include "google/cloud/storage/well_known_headers.h"
26GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
28
29
30
31
32
33
34
35
36
44 static char const*
name() {
return "resumable-upload"; }
49 std::string session_id) {
59
60
61
62
63
64
68 std::uintmax_t>::WellKnownHeader;
69 static char const*
header_name() {
return "X-Upload-Content-Length"; }
73
74
77 using ComplexOption::ComplexOption;
81 static char const*
name() {
return "upload-offset"; }
85
86
88 :
public internal::ComplexOption<
UploadLimit, std::uint64_t> {
89 using ComplexOption::ComplexOption;
93 static char const*
name() {
return "upload-limit"; }
97
98
99
100
101
102
109 static char const*
name() {
return "upload-buffer-size"; }
112GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Contains all the Google Cloud Storage C++ client APIs.
Definition: auto_finalize.h:24
UseResumableUploadSession RestoreResumableUploadSession(std::string session_id)
Create a UseResumableUploadSession option that restores previous sessions.
Definition: upload_options.h:48
UseResumableUploadSession NewResumableUploadSession()
Create a UseResumableUploadSession option that requests new sessions.
Definition: upload_options.h:54
Set the buffer size for a stream created in Client::WriteObject().
Definition: upload_options.h:104
UploadBufferSize()=default
static char const * name()
Definition: upload_options.h:109
Provide an expected final length of an uploaded object.
Definition: upload_options.h:66
static char const * header_name()
Definition: upload_options.h:69
Upload the local file to GCS server starting at the given offset.
Definition: upload_options.h:76
static char const * name()
Definition: upload_options.h:81
UploadFromOffset()=default
The maximum length of the local file to upload to GCS server.
Definition: upload_options.h:88
static char const * name()
Definition: upload_options.h:93
Request a resumable upload, restoring a previous session if necessary.
Definition: upload_options.h:38
UseResumableUploadSession()=default
static char const * name()
Definition: upload_options.h:44