30 #ifndef GOOGLE_DATAFLOW_API_INTEGER_GAUGE_H_ 31 #define GOOGLE_DATAFLOW_API_INTEGER_GAUGE_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/split_int64.h" 86 return StringPiece(
"google_dataflow_api::IntegerGauge");
95 return Storage().isMember(
"timestamp");
102 MutableStorage()->removeMember(
"timestamp");
110 const Json::Value& v = Storage(
"timestamp");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"timestamp") = value.data();
132 return Storage().isMember(
"value");
139 MutableStorage()->removeMember(
"value");
161 #endif // GOOGLE_DATAFLOW_API_INTEGER_GAUGE_H_ const StringPiece get_timestamp() const
Definition: integer_gauge.h:109
const StringPiece GetTypeName() const
Definition: integer_gauge.h:85
Definition: split_int64.h:51
bool has_timestamp() const
Definition: integer_gauge.h:94
void set_timestamp(const StringPiece &value)
Definition: integer_gauge.h:122
void clear_timestamp()
Definition: integer_gauge.h:101
void clear_value()
Definition: integer_gauge.h:138
Definition: approximate_progress.h:40
Definition: integer_gauge.h:52
bool has_value() const
Definition: integer_gauge.h:131
Definition: approximate_progress.cc:42