30 #ifndef GOOGLE_DATAFLOW_API_STREAMING_COMPUTATION_TASK_H_ 31 #define GOOGLE_DATAFLOW_API_STREAMING_COMPUTATION_TASK_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/mounted_data_disk.h" 39 #include "google/dataflow_api/streaming_computation_ranges.h" 88 return StringPiece(
"google_dataflow_api::StreamingComputationTask");
97 return Storage().isMember(
"computationRanges");
104 MutableStorage()->removeMember(
"computationRanges");
112 const client::JsonCppArray<StreamingComputationRanges > get_computation_ranges()
const;
122 client::JsonCppArray<StreamingComputationRanges > mutable_computationRanges();
130 return Storage().isMember(
"dataDisks");
137 MutableStorage()->removeMember(
"dataDisks");
144 const client::JsonCppArray<MountedDataDisk > get_data_disks()
const;
154 client::JsonCppArray<MountedDataDisk > mutable_dataDisks();
162 return Storage().isMember(
"taskType");
169 MutableStorage()->removeMember(
"taskType");
177 const Json::Value& v = Storage(
"taskType");
178 if (v == Json::Value::null)
return StringPiece(
"");
179 return StringPiece(v.asCString());
190 *MutableStorage(
"taskType") = value.data();
197 #endif // GOOGLE_DATAFLOW_API_STREAMING_COMPUTATION_TASK_H_ const StringPiece GetTypeName() const
Definition: streaming_computation_task.h:87
void clear_computation_ranges()
Definition: streaming_computation_task.h:103
bool has_task_type() const
Definition: streaming_computation_task.h:161
bool has_computation_ranges() const
Definition: streaming_computation_task.h:96
void clear_data_disks()
Definition: streaming_computation_task.h:136
Definition: approximate_progress.h:40
const StringPiece get_task_type() const
Definition: streaming_computation_task.h:176
void clear_task_type()
Definition: streaming_computation_task.h:168
bool has_data_disks() const
Definition: streaming_computation_task.h:129
void set_task_type(const StringPiece &value)
Definition: streaming_computation_task.h:189
Definition: approximate_progress.cc:42
Definition: streaming_computation_task.h:54