30 #ifndef GOOGLE_DATAFLOW_API_CUSTOM_SOURCE_LOCATION_H_ 31 #define GOOGLE_DATAFLOW_API_CUSTOM_SOURCE_LOCATION_H_ 33 #include "googleapis/base/macros.h" 34 #include "googleapis/client/data/jsoncpp_data.h" 35 #include "googleapis/strings/stringpiece.h" 83 return StringPiece(
"google_dataflow_api::CustomSourceLocation");
92 return Storage().isMember(
"stateful");
99 MutableStorage()->removeMember(
"stateful");
107 const Json::Value& storage = Storage(
"stateful");
108 return client::JsonValueToCppValueHelper<bool >(storage);
119 client::SetJsonValueFromCppValueHelper<bool >(
120 value, MutableStorage(
"stateful"));
127 #endif // GOOGLE_DATAFLOW_API_CUSTOM_SOURCE_LOCATION_H_ Definition: custom_source_location.h:49
Definition: approximate_progress.h:40
bool has_stateful() const
Definition: custom_source_location.h:91
void set_stateful(bool value)
Definition: custom_source_location.h:118
const StringPiece GetTypeName() const
Definition: custom_source_location.h:82
void clear_stateful()
Definition: custom_source_location.h:98
Definition: approximate_progress.cc:42
bool get_stateful() const
Definition: custom_source_location.h:106