30 #ifndef GOOGLE_DATAFLOW_API_HOT_KEY_DETECTION_H_ 31 #define GOOGLE_DATAFLOW_API_HOT_KEY_DETECTION_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::HotKeyDetection");
93 return Storage().isMember(
"hotKeyAge");
100 MutableStorage()->removeMember(
"hotKeyAge");
108 const Json::Value& v = Storage(
"hotKeyAge");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"hotKeyAge") = value.data();
130 return Storage().isMember(
"systemName");
137 MutableStorage()->removeMember(
"systemName");
145 const Json::Value& v = Storage(
"systemName");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
159 *MutableStorage(
"systemName") = value.data();
168 return Storage().isMember(
"userStepName");
175 MutableStorage()->removeMember(
"userStepName");
183 const Json::Value& v = Storage(
"userStepName");
184 if (v == Json::Value::null)
return StringPiece(
"");
185 return StringPiece(v.asCString());
196 *MutableStorage(
"userStepName") = value.data();
203 #endif // GOOGLE_DATAFLOW_API_HOT_KEY_DETECTION_H_ void set_system_name(const StringPiece &value)
Definition: hot_key_detection.h:158
void clear_user_step_name()
Definition: hot_key_detection.h:174
void set_user_step_name(const StringPiece &value)
Definition: hot_key_detection.h:195
bool has_system_name() const
Definition: hot_key_detection.h:129
void set_hot_key_age(const StringPiece &value)
Definition: hot_key_detection.h:120
void clear_system_name()
Definition: hot_key_detection.h:136
bool has_hot_key_age() const
Definition: hot_key_detection.h:92
Definition: hot_key_detection.h:50
void clear_hot_key_age()
Definition: hot_key_detection.h:99
const StringPiece get_system_name() const
Definition: hot_key_detection.h:144
Definition: approximate_progress.h:40
const StringPiece get_hot_key_age() const
Definition: hot_key_detection.h:107
Definition: approximate_progress.cc:42
const StringPiece get_user_step_name() const
Definition: hot_key_detection.h:182
bool has_user_step_name() const
Definition: hot_key_detection.h:167
const StringPiece GetTypeName() const
Definition: hot_key_detection.h:83