30 #ifndef GOOGLE_DATAFLOW_API_SIDE_INPUT_INFO_H_ 31 #define GOOGLE_DATAFLOW_API_SIDE_INPUT_INFO_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/source.h" 86 return StringPiece(
"google_dataflow_api::SideInputInfo");
95 return Storage().isMember(
"kind");
102 MutableStorage()->removeMember(
"kind");
109 const client::JsonCppAssociativeArray<client::JsonCppData >
get_kind()
const {
110 const Json::Value& storage = Storage(
"kind");
111 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
122 Json::Value* storage = MutableStorage(
"kind");
123 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
132 return Storage().isMember(
"sources");
139 MutableStorage()->removeMember(
"sources");
146 const client::JsonCppArray<Source > get_sources()
const;
158 client::JsonCppArray<Source > mutable_sources();
166 return Storage().isMember(
"tag");
173 MutableStorage()->removeMember(
"tag");
181 const Json::Value& v = Storage(
"tag");
182 if (v == Json::Value::null)
return StringPiece(
"");
183 return StringPiece(v.asCString());
195 *MutableStorage(
"tag") = value.data();
202 #endif // GOOGLE_DATAFLOW_API_SIDE_INPUT_INFO_H_
Definition: approximate_progress.h:40
Definition: approximate_progress.cc:42