dataflow  v1b3
streaming_config_task.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-03-19, 02:23:49 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Dataflow API (dataflow/v1b3)
24 // Generated from:
25 // Version: v1b3
26 // Revision: 302
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_DATAFLOW_API_STREAMING_CONFIG_TASK_H_
31 #define GOOGLE_DATAFLOW_API_STREAMING_CONFIG_TASK_H_
32 
33 #include <string>
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"
38 
39 #include "google/dataflow_api/streaming_computation_config.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_dataflow_api {
46 using namespace googleapis;
47 
53 class StreamingConfigTask : public client::JsonCppData {
54  public:
60  static StreamingConfigTask* New();
61 
67  explicit StreamingConfigTask(const Json::Value& storage);
68 
74  explicit StreamingConfigTask(Json::Value* storage);
75 
79  virtual ~StreamingConfigTask();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_dataflow_api::StreamingConfigTask");
88  }
89 
98  return Storage().isMember("commitStreamChunkSizeBytes");
99  }
100 
105  MutableStorage()->removeMember("commitStreamChunkSizeBytes");
106  }
107 
108 
113  const Json::Value& storage = Storage("commitStreamChunkSizeBytes");
114  return client::JsonValueToCppValueHelper<int64 >(storage);
115  }
116 
125  client::SetJsonValueFromCppValueHelper<int64 >(
126  value, MutableStorage("commitStreamChunkSizeBytes"));
127  }
128 
137  return Storage().isMember("getDataStreamChunkSizeBytes");
138  }
139 
144  MutableStorage()->removeMember("getDataStreamChunkSizeBytes");
145  }
146 
147 
152  const Json::Value& storage = Storage("getDataStreamChunkSizeBytes");
153  return client::JsonValueToCppValueHelper<int64 >(storage);
154  }
155 
164  client::SetJsonValueFromCppValueHelper<int64 >(
165  value, MutableStorage("getDataStreamChunkSizeBytes"));
166  }
167 
175  return Storage().isMember("maxWorkItemCommitBytes");
176  }
177 
182  MutableStorage()->removeMember("maxWorkItemCommitBytes");
183  }
184 
185 
190  const Json::Value& storage = Storage("maxWorkItemCommitBytes");
191  return client::JsonValueToCppValueHelper<int64 >(storage);
192  }
193 
201  void set_max_work_item_commit_bytes(int64 value) {
202  client::SetJsonValueFromCppValueHelper<int64 >(
203  value, MutableStorage("maxWorkItemCommitBytes"));
204  }
205 
214  return Storage().isMember("streamingComputationConfigs");
215  }
216 
221  MutableStorage()->removeMember("streamingComputationConfigs");
222  }
223 
224 
229  const client::JsonCppArray<StreamingComputationConfig > get_streaming_computation_configs() const;
230 
239  client::JsonCppArray<StreamingComputationConfig > mutable_streamingComputationConfigs();
240 
249  return Storage().isMember("userStepToStateFamilyNameMap");
250  }
251 
256  MutableStorage()->removeMember("userStepToStateFamilyNameMap");
257  }
258 
259 
264  const client::JsonCppAssociativeArray<string > get_user_step_to_state_family_name_map() const {
265  const Json::Value& storage = Storage("userStepToStateFamilyNameMap");
266  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
267  }
268 
277  client::JsonCppAssociativeArray<string > mutable_userStepToStateFamilyNameMap() {
278  Json::Value* storage = MutableStorage("userStepToStateFamilyNameMap");
279  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
280  }
281 
289  return Storage().isMember("windmillServiceEndpoint");
290  }
291 
296  MutableStorage()->removeMember("windmillServiceEndpoint");
297  }
298 
299 
303  const StringPiece get_windmill_service_endpoint() const {
304  const Json::Value& v = Storage("windmillServiceEndpoint");
305  if (v == Json::Value::null) return StringPiece("");
306  return StringPiece(v.asCString());
307  }
308 
318  void set_windmill_service_endpoint(const StringPiece& value) {
319  *MutableStorage("windmillServiceEndpoint") = value.data();
320  }
321 
328  return Storage().isMember("windmillServicePort");
329  }
330 
335  MutableStorage()->removeMember("windmillServicePort");
336  }
337 
338 
343  const Json::Value& storage = Storage("windmillServicePort");
344  return client::JsonValueToCppValueHelper<int64 >(storage);
345  }
346 
356  void set_windmill_service_port(int64 value) {
357  client::SetJsonValueFromCppValueHelper<int64 >(
358  value, MutableStorage("windmillServicePort"));
359  }
360 
361  private:
362  void operator=(const StreamingConfigTask&);
363 }; // StreamingConfigTask
364 } // namespace google_dataflow_api
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