30 #ifndef GOOGLE_DATAFLOW_API_CREATE_JOB_FROM_TEMPLATE_REQUEST_H_ 31 #define GOOGLE_DATAFLOW_API_CREATE_JOB_FROM_TEMPLATE_REQUEST_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/dataflow_api/runtime_environment.h" 86 return StringPiece(
"google_dataflow_api::CreateJobFromTemplateRequest");
95 return Storage().isMember(
"environment");
102 MutableStorage()->removeMember(
"environment");
127 return Storage().isMember(
"gcsPath");
134 MutableStorage()->removeMember(
"gcsPath");
142 const Json::Value& v = Storage(
"gcsPath");
143 if (v == Json::Value::null)
return StringPiece(
"");
144 return StringPiece(v.asCString());
157 *MutableStorage(
"gcsPath") = value.data();
166 return Storage().isMember(
"jobName");
173 MutableStorage()->removeMember(
"jobName");
181 const Json::Value& v = Storage(
"jobName");
182 if (v == Json::Value::null)
return StringPiece(
"");
183 return StringPiece(v.asCString());
194 *MutableStorage(
"jobName") = value.data();
203 return Storage().isMember(
"location");
210 MutableStorage()->removeMember(
"location");
218 const Json::Value& v = Storage(
"location");
219 if (v == Json::Value::null)
return StringPiece(
"");
220 return StringPiece(v.asCString());
233 *MutableStorage(
"location") = value.data();
242 return Storage().isMember(
"parameters");
249 MutableStorage()->removeMember(
"parameters");
257 const Json::Value& storage = Storage(
"parameters");
258 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
270 Json::Value* storage = MutableStorage(
"parameters");
271 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
278 #endif // GOOGLE_DATAFLOW_API_CREATE_JOB_FROM_TEMPLATE_REQUEST_H_ bool has_environment() const
Definition: create_job_from_template_request.h:94
Definition: create_job_from_template_request.h:52
void clear_parameters()
Definition: create_job_from_template_request.h:248
void set_job_name(const StringPiece &value)
Definition: create_job_from_template_request.h:193
const client::JsonCppAssociativeArray< string > get_parameters() const
Definition: create_job_from_template_request.h:256
bool has_gcs_path() const
Definition: create_job_from_template_request.h:126
void clear_location()
Definition: create_job_from_template_request.h:209
void clear_gcs_path()
Definition: create_job_from_template_request.h:133
const StringPiece get_location() const
Definition: create_job_from_template_request.h:217
bool has_parameters() const
Definition: create_job_from_template_request.h:241
const StringPiece get_job_name() const
Definition: create_job_from_template_request.h:180
bool has_job_name() const
Definition: create_job_from_template_request.h:165
Definition: approximate_progress.h:40
Definition: runtime_environment.h:51
void clear_environment()
Definition: create_job_from_template_request.h:101
void clear_job_name()
Definition: create_job_from_template_request.h:172
const StringPiece get_gcs_path() const
Definition: create_job_from_template_request.h:141
void set_location(const StringPiece &value)
Definition: create_job_from_template_request.h:232
client::JsonCppAssociativeArray< string > mutable_parameters()
Definition: create_job_from_template_request.h:269
const StringPiece GetTypeName() const
Definition: create_job_from_template_request.h:85
void set_gcs_path(const StringPiece &value)
Definition: create_job_from_template_request.h:156
bool has_location() const
Definition: create_job_from_template_request.h:202
Definition: approximate_progress.cc:42