30 #ifndef GOOGLE_DATAFLOW_API_STATE_FAMILY_CONFIG_H_ 31 #define GOOGLE_DATAFLOW_API_STATE_FAMILY_CONFIG_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::StateFamilyConfig");
93 return Storage().isMember(
"isRead");
100 MutableStorage()->removeMember(
"isRead");
108 const Json::Value& storage = Storage(
"isRead");
109 return client::JsonValueToCppValueHelper<bool >(storage);
120 client::SetJsonValueFromCppValueHelper<bool >(
121 value, MutableStorage(
"isRead"));
130 return Storage().isMember(
"stateFamily");
137 MutableStorage()->removeMember(
"stateFamily");
145 const Json::Value& v = Storage(
"stateFamily");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"stateFamily") = value.data();
165 #endif // GOOGLE_DATAFLOW_API_STATE_FAMILY_CONFIG_H_ Definition: state_family_config.h:50
void clear_is_read()
Definition: state_family_config.h:99
bool get_is_read() const
Definition: state_family_config.h:107
const StringPiece GetTypeName() const
Definition: state_family_config.h:83
void clear_state_family()
Definition: state_family_config.h:136
void set_is_read(bool value)
Definition: state_family_config.h:119
Definition: approximate_progress.h:40
void set_state_family(const StringPiece &value)
Definition: state_family_config.h:157
bool has_state_family() const
Definition: state_family_config.h:129
const StringPiece get_state_family() const
Definition: state_family_config.h:144
bool has_is_read() const
Definition: state_family_config.h:92
Definition: approximate_progress.cc:42