30 #ifndef GOOGLE_DATAFLOW_API_SNAPSHOT_JOB_REQUEST_H_ 31 #define GOOGLE_DATAFLOW_API_SNAPSHOT_JOB_REQUEST_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_dataflow_api::SnapshotJobRequest");
93 return Storage().isMember(
"description");
100 MutableStorage()->removeMember(
"description");
108 const Json::Value& v = Storage(
"description");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"description") = value.data();
130 return Storage().isMember(
"location");
137 MutableStorage()->removeMember(
"location");
145 const Json::Value& v = Storage(
"location");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"location") = value.data();
167 return Storage().isMember(
"snapshotSources");
174 MutableStorage()->removeMember(
"snapshotSources");
182 const Json::Value& storage = Storage(
"snapshotSources");
183 return client::JsonValueToCppValueHelper<bool >(storage);
194 client::SetJsonValueFromCppValueHelper<bool >(
195 value, MutableStorage(
"snapshotSources"));
204 return Storage().isMember(
"ttl");
211 MutableStorage()->removeMember(
"ttl");
219 const Json::Value& v = Storage(
"ttl");
220 if (v == Json::Value::null)
return StringPiece(
"");
221 return StringPiece(v.asCString());
232 *MutableStorage(
"ttl") = value.data();
239 #endif // GOOGLE_DATAFLOW_API_SNAPSHOT_JOB_REQUEST_H_ void clear_ttl()
Definition: snapshot_job_request.h:210
bool has_snapshot_sources() const
Definition: snapshot_job_request.h:166
bool has_ttl() const
Definition: snapshot_job_request.h:203
const StringPiece get_description() const
Definition: snapshot_job_request.h:107
const StringPiece get_ttl() const
Definition: snapshot_job_request.h:218
void set_snapshot_sources(bool value)
Definition: snapshot_job_request.h:193
bool get_snapshot_sources() const
Definition: snapshot_job_request.h:181
const StringPiece GetTypeName() const
Definition: snapshot_job_request.h:83
const StringPiece get_location() const
Definition: snapshot_job_request.h:144
void clear_description()
Definition: snapshot_job_request.h:99
Definition: approximate_progress.h:40
void clear_location()
Definition: snapshot_job_request.h:136
bool has_location() const
Definition: snapshot_job_request.h:129
void set_location(const StringPiece &value)
Definition: snapshot_job_request.h:157
bool has_description() const
Definition: snapshot_job_request.h:92
Definition: approximate_progress.cc:42
Definition: snapshot_job_request.h:50
void clear_snapshot_sources()
Definition: snapshot_job_request.h:173
void set_ttl(const StringPiece &value)
Definition: snapshot_job_request.h:231
void set_description(const StringPiece &value)
Definition: snapshot_job_request.h:120