30 #ifndef GOOGLE_DATAFLOW_API_STREAMING_CONFIG_TASK_H_ 31 #define GOOGLE_DATAFLOW_API_STREAMING_CONFIG_TASK_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 39 #include "google/dataflow_api/streaming_computation_config.h" 87 return StringPiece(
"google_dataflow_api::StreamingConfigTask");
98 return Storage().isMember(
"commitStreamChunkSizeBytes");
105 MutableStorage()->removeMember(
"commitStreamChunkSizeBytes");
113 const Json::Value& storage = Storage(
"commitStreamChunkSizeBytes");
114 return client::JsonValueToCppValueHelper<int64 >(storage);
125 client::SetJsonValueFromCppValueHelper<int64 >(
126 value, MutableStorage(
"commitStreamChunkSizeBytes"));
137 return Storage().isMember(
"getDataStreamChunkSizeBytes");
144 MutableStorage()->removeMember(
"getDataStreamChunkSizeBytes");
152 const Json::Value& storage = Storage(
"getDataStreamChunkSizeBytes");
153 return client::JsonValueToCppValueHelper<int64 >(storage);
164 client::SetJsonValueFromCppValueHelper<int64 >(
165 value, MutableStorage(
"getDataStreamChunkSizeBytes"));
175 return Storage().isMember(
"maxWorkItemCommitBytes");
182 MutableStorage()->removeMember(
"maxWorkItemCommitBytes");
190 const Json::Value& storage = Storage(
"maxWorkItemCommitBytes");
191 return client::JsonValueToCppValueHelper<int64 >(storage);
202 client::SetJsonValueFromCppValueHelper<int64 >(
203 value, MutableStorage(
"maxWorkItemCommitBytes"));
214 return Storage().isMember(
"streamingComputationConfigs");
221 MutableStorage()->removeMember(
"streamingComputationConfigs");
229 const client::JsonCppArray<StreamingComputationConfig > get_streaming_computation_configs()
const;
239 client::JsonCppArray<StreamingComputationConfig > mutable_streamingComputationConfigs();
249 return Storage().isMember(
"userStepToStateFamilyNameMap");
256 MutableStorage()->removeMember(
"userStepToStateFamilyNameMap");
265 const Json::Value& storage = Storage(
"userStepToStateFamilyNameMap");
266 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
278 Json::Value* storage = MutableStorage(
"userStepToStateFamilyNameMap");
279 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
289 return Storage().isMember(
"windmillServiceEndpoint");
296 MutableStorage()->removeMember(
"windmillServiceEndpoint");
304 const Json::Value& v = Storage(
"windmillServiceEndpoint");
305 if (v == Json::Value::null)
return StringPiece(
"");
306 return StringPiece(v.asCString());
319 *MutableStorage(
"windmillServiceEndpoint") = value.data();
328 return Storage().isMember(
"windmillServicePort");
335 MutableStorage()->removeMember(
"windmillServicePort");
343 const Json::Value& storage = Storage(
"windmillServicePort");
344 return client::JsonValueToCppValueHelper<int64 >(storage);
357 client::SetJsonValueFromCppValueHelper<int64 >(
358 value, MutableStorage(
"windmillServicePort"));
365 #endif // GOOGLE_DATAFLOW_API_STREAMING_CONFIG_TASK_H_ void clear_windmill_service_endpoint()
Definition: streaming_config_task.h:295
void clear_user_step_to_state_family_name_map()
Definition: streaming_config_task.h:255
Definition: streaming_config_task.h:53
const client::JsonCppAssociativeArray< string > get_user_step_to_state_family_name_map() const
Definition: streaming_config_task.h:264
void clear_max_work_item_commit_bytes()
Definition: streaming_config_task.h:181
const StringPiece get_windmill_service_endpoint() const
Definition: streaming_config_task.h:303
bool has_user_step_to_state_family_name_map() const
Definition: streaming_config_task.h:248
bool has_max_work_item_commit_bytes() const
Definition: streaming_config_task.h:174
bool has_windmill_service_port() const
Definition: streaming_config_task.h:327
void set_windmill_service_endpoint(const StringPiece &value)
Definition: streaming_config_task.h:318
void clear_commit_stream_chunk_size_bytes()
Definition: streaming_config_task.h:104
bool has_streaming_computation_configs() const
Definition: streaming_config_task.h:213
Definition: approximate_progress.h:40
void clear_windmill_service_port()
Definition: streaming_config_task.h:334
int64 get_windmill_service_port() const
Definition: streaming_config_task.h:342
int64 get_max_work_item_commit_bytes() const
Definition: streaming_config_task.h:189
bool has_commit_stream_chunk_size_bytes() const
Definition: streaming_config_task.h:97
int64 get_get_data_stream_chunk_size_bytes() const
Definition: streaming_config_task.h:151
void set_max_work_item_commit_bytes(int64 value)
Definition: streaming_config_task.h:201
int64 get_commit_stream_chunk_size_bytes() const
Definition: streaming_config_task.h:112
void clear_streaming_computation_configs()
Definition: streaming_config_task.h:220
bool has_get_data_stream_chunk_size_bytes() const
Definition: streaming_config_task.h:136
void set_windmill_service_port(int64 value)
Definition: streaming_config_task.h:356
Definition: approximate_progress.cc:42
client::JsonCppAssociativeArray< string > mutable_userStepToStateFamilyNameMap()
Definition: streaming_config_task.h:277
void set_get_data_stream_chunk_size_bytes(int64 value)
Definition: streaming_config_task.h:163
bool has_windmill_service_endpoint() const
Definition: streaming_config_task.h:288
void set_commit_stream_chunk_size_bytes(int64 value)
Definition: streaming_config_task.h:124
void clear_get_data_stream_chunk_size_bytes()
Definition: streaming_config_task.h:143
const StringPiece GetTypeName() const
Definition: streaming_config_task.h:86