30 #ifndef GOOGLE_DATAFLOW_API_STREAMING_COMPUTATION_RANGES_H_ 31 #define GOOGLE_DATAFLOW_API_STREAMING_COMPUTATION_RANGES_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/key_range_data_disk_assignment.h" 87 return StringPiece(
"google_dataflow_api::StreamingComputationRanges");
96 return Storage().isMember(
"computationId");
103 MutableStorage()->removeMember(
"computationId");
111 const Json::Value& v = Storage(
"computationId");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
124 *MutableStorage(
"computationId") = value.data();
133 return Storage().isMember(
"rangeAssignments");
140 MutableStorage()->removeMember(
"rangeAssignments");
148 const client::JsonCppArray<KeyRangeDataDiskAssignment > get_range_assignments()
const;
158 client::JsonCppArray<KeyRangeDataDiskAssignment > mutable_rangeAssignments();
164 #endif // GOOGLE_DATAFLOW_API_STREAMING_COMPUTATION_RANGES_H_ const StringPiece GetTypeName() const
Definition: streaming_computation_ranges.h:86
bool has_range_assignments() const
Definition: streaming_computation_ranges.h:132
Definition: streaming_computation_ranges.h:53
bool has_computation_id() const
Definition: streaming_computation_ranges.h:95
Definition: approximate_progress.h:40
void clear_computation_id()
Definition: streaming_computation_ranges.h:102
void set_computation_id(const StringPiece &value)
Definition: streaming_computation_ranges.h:123
const StringPiece get_computation_id() const
Definition: streaming_computation_ranges.h:110
Definition: approximate_progress.cc:42
void clear_range_assignments()
Definition: streaming_computation_ranges.h:139