30 #ifndef GOOGLE_DATAFLOW_API_SEND_DEBUG_CAPTURE_REQUEST_H_ 31 #define GOOGLE_DATAFLOW_API_SEND_DEBUG_CAPTURE_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::SendDebugCaptureRequest");
93 return Storage().isMember(
"componentId");
100 MutableStorage()->removeMember(
"componentId");
108 const Json::Value& v = Storage(
"componentId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"componentId") = value.data();
130 return Storage().isMember(
"data");
137 MutableStorage()->removeMember(
"data");
145 const Json::Value& v = Storage(
"data");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"data") = value.data();
167 return Storage().isMember(
"location");
174 MutableStorage()->removeMember(
"location");
182 const Json::Value& v = Storage(
"location");
183 if (v == Json::Value::null)
return StringPiece(
"");
184 return StringPiece(v.asCString());
197 *MutableStorage(
"location") = value.data();
206 return Storage().isMember(
"workerId");
213 MutableStorage()->removeMember(
"workerId");
221 const Json::Value& v = Storage(
"workerId");
222 if (v == Json::Value::null)
return StringPiece(
"");
223 return StringPiece(v.asCString());
234 *MutableStorage(
"workerId") = value.data();
241 #endif // GOOGLE_DATAFLOW_API_SEND_DEBUG_CAPTURE_REQUEST_H_ const StringPiece get_data() const
Definition: send_debug_capture_request.h:144
void clear_data()
Definition: send_debug_capture_request.h:136
bool has_component_id() const
Definition: send_debug_capture_request.h:92
const StringPiece GetTypeName() const
Definition: send_debug_capture_request.h:83
bool has_worker_id() const
Definition: send_debug_capture_request.h:205
const StringPiece get_location() const
Definition: send_debug_capture_request.h:181
void set_data(const StringPiece &value)
Definition: send_debug_capture_request.h:157
void clear_worker_id()
Definition: send_debug_capture_request.h:212
bool has_location() const
Definition: send_debug_capture_request.h:166
const StringPiece get_worker_id() const
Definition: send_debug_capture_request.h:220
const StringPiece get_component_id() const
Definition: send_debug_capture_request.h:107
bool has_data() const
Definition: send_debug_capture_request.h:129
Definition: send_debug_capture_request.h:50
Definition: approximate_progress.h:40
void clear_location()
Definition: send_debug_capture_request.h:173
void set_component_id(const StringPiece &value)
Definition: send_debug_capture_request.h:120
void set_location(const StringPiece &value)
Definition: send_debug_capture_request.h:196
Definition: approximate_progress.cc:42
void set_worker_id(const StringPiece &value)
Definition: send_debug_capture_request.h:233
void clear_component_id()
Definition: send_debug_capture_request.h:99