30 #ifndef GOOGLE_DATAFLOW_API_METRIC_SHORT_ID_H_ 31 #define GOOGLE_DATAFLOW_API_METRIC_SHORT_ID_H_ 33 #include "googleapis/base/integral_types.h" 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_dataflow_api::MetricShortId");
94 return Storage().isMember(
"metricIndex");
101 MutableStorage()->removeMember(
"metricIndex");
109 const Json::Value& storage = Storage(
"metricIndex");
110 return client::JsonValueToCppValueHelper<int32 >(storage);
122 client::SetJsonValueFromCppValueHelper<int32 >(
123 value, MutableStorage(
"metricIndex"));
132 return Storage().isMember(
"shortId");
139 MutableStorage()->removeMember(
"shortId");
147 const Json::Value& storage = Storage(
"shortId");
148 return client::JsonValueToCppValueHelper<int64 >(storage);
159 client::SetJsonValueFromCppValueHelper<int64 >(
160 value, MutableStorage(
"shortId"));
167 #endif // GOOGLE_DATAFLOW_API_METRIC_SHORT_ID_H_ Definition: metric_short_id.h:51
bool has_metric_index() const
Definition: metric_short_id.h:93
void set_short_id(int64 value)
Definition: metric_short_id.h:158
const StringPiece GetTypeName() const
Definition: metric_short_id.h:84
void clear_short_id()
Definition: metric_short_id.h:138
Definition: approximate_progress.h:40
void clear_metric_index()
Definition: metric_short_id.h:100
bool has_short_id() const
Definition: metric_short_id.h:131
Definition: approximate_progress.cc:42
void set_metric_index(int32 value)
Definition: metric_short_id.h:121
int32 get_metric_index() const
Definition: metric_short_id.h:108
int64 get_short_id() const
Definition: metric_short_id.h:146