30 #ifndef GOOGLE_DATAFLOW_API_GET_DEBUG_CONFIG_REQUEST_H_ 31 #define GOOGLE_DATAFLOW_API_GET_DEBUG_CONFIG_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::GetDebugConfigRequest");
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());
122 *MutableStorage(
"componentId") = value.data();
131 return Storage().isMember(
"location");
138 MutableStorage()->removeMember(
"location");
146 const Json::Value& v = Storage(
"location");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
161 *MutableStorage(
"location") = value.data();
170 return Storage().isMember(
"workerId");
177 MutableStorage()->removeMember(
"workerId");
185 const Json::Value& v = Storage(
"workerId");
186 if (v == Json::Value::null)
return StringPiece(
"");
187 return StringPiece(v.asCString());
198 *MutableStorage(
"workerId") = value.data();
205 #endif // GOOGLE_DATAFLOW_API_GET_DEBUG_CONFIG_REQUEST_H_ void set_location(const StringPiece &value)
Definition: get_debug_config_request.h:160
bool has_component_id() const
Definition: get_debug_config_request.h:92
const StringPiece get_worker_id() const
Definition: get_debug_config_request.h:184
const StringPiece GetTypeName() const
Definition: get_debug_config_request.h:83
void clear_component_id()
Definition: get_debug_config_request.h:99
Definition: approximate_progress.h:40
void clear_location()
Definition: get_debug_config_request.h:137
const StringPiece get_location() const
Definition: get_debug_config_request.h:145
void set_component_id(const StringPiece &value)
Definition: get_debug_config_request.h:121
Definition: get_debug_config_request.h:50
bool has_worker_id() const
Definition: get_debug_config_request.h:169
const StringPiece get_component_id() const
Definition: get_debug_config_request.h:107
Definition: approximate_progress.cc:42
void set_worker_id(const StringPiece &value)
Definition: get_debug_config_request.h:197
void clear_worker_id()
Definition: get_debug_config_request.h:176
bool has_location() const
Definition: get_debug_config_request.h:130