30 #ifndef GOOGLE_DATAFLOW_API_GET_TEMPLATE_RESPONSE_H_ 31 #define GOOGLE_DATAFLOW_API_GET_TEMPLATE_RESPONSE_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_metadata.h" 39 #include "google/dataflow_api/status.h" 40 #include "google/dataflow_api/template_metadata.h" 88 return StringPiece(
"google_dataflow_api::GetTemplateResponse");
97 return Storage().isMember(
"metadata");
104 MutableStorage()->removeMember(
"metadata");
130 return Storage().isMember(
"runtimeMetadata");
137 MutableStorage()->removeMember(
"runtimeMetadata");
163 return Storage().isMember(
"status");
170 MutableStorage()->removeMember(
"status");
177 const Status get_status()
const;
195 return Storage().isMember(
"templateType");
202 MutableStorage()->removeMember(
"templateType");
210 const Json::Value& v = Storage(
"templateType");
211 if (v == Json::Value::null)
return StringPiece(
"");
212 return StringPiece(v.asCString());
223 *MutableStorage(
"templateType") = value.data();
230 #endif // GOOGLE_DATAFLOW_API_GET_TEMPLATE_RESPONSE_H_ bool has_metadata() const
Definition: get_template_response.h:96
const StringPiece get_template_type() const
Definition: get_template_response.h:209
const StringPiece GetTypeName() const
Definition: get_template_response.h:87
void clear_template_type()
Definition: get_template_response.h:201
bool has_status() const
Definition: get_template_response.h:162
void clear_metadata()
Definition: get_template_response.h:103
Definition: get_template_response.h:54
void clear_status()
Definition: get_template_response.h:169
Definition: approximate_progress.h:40
void clear_runtime_metadata()
Definition: get_template_response.h:136
void set_template_type(const StringPiece &value)
Definition: get_template_response.h:222
bool has_template_type() const
Definition: get_template_response.h:194
bool has_runtime_metadata() const
Definition: get_template_response.h:129
Definition: approximate_progress.cc:42