dataflow  v1b3
streaming_setup_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_SETUP_TASK_H_
31 #define GOOGLE_DATAFLOW_API_STREAMING_SETUP_TASK_H_
32 
33 #include "googleapis/base/integral_types.h"
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/dataflow_api/streaming_appliance_snapshot_config.h"
39 #include "google/dataflow_api/topology_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 StreamingSetupTask : public client::JsonCppData {
54  public:
60  static StreamingSetupTask* New();
61 
67  explicit StreamingSetupTask(const Json::Value& storage);
68 
74  explicit StreamingSetupTask(Json::Value* storage);
75 
79  virtual ~StreamingSetupTask();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_dataflow_api::StreamingSetupTask");
88  }
89 
95  bool has_drain() const {
96  return Storage().isMember("drain");
97  }
98 
102  void clear_drain() {
103  MutableStorage()->removeMember("drain");
104  }
105 
106 
110  bool get_drain() const {
111  const Json::Value& storage = Storage("drain");
112  return client::JsonValueToCppValueHelper<bool >(storage);
113  }
114 
122  void set_drain(bool value) {
123  client::SetJsonValueFromCppValueHelper<bool >(
124  value, MutableStorage("drain"));
125  }
126 
132  bool has_receive_work_port() const {
133  return Storage().isMember("receiveWorkPort");
134  }
135 
140  MutableStorage()->removeMember("receiveWorkPort");
141  }
142 
143 
147  int32 get_receive_work_port() const {
148  const Json::Value& storage = Storage("receiveWorkPort");
149  return client::JsonValueToCppValueHelper<int32 >(storage);
150  }
151 
160  void set_receive_work_port(int32 value) {
161  client::SetJsonValueFromCppValueHelper<int32 >(
162  value, MutableStorage("receiveWorkPort"));
163  }
164 
170  bool has_snapshot_config() const {
171  return Storage().isMember("snapshotConfig");
172  }
173 
178  MutableStorage()->removeMember("snapshotConfig");
179  }
180 
181 
186  const StreamingApplianceSnapshotConfig get_snapshot_config() const;
187 
196  StreamingApplianceSnapshotConfig mutable_snapshotConfig();
197 
206  return Storage().isMember("streamingComputationTopology");
207  }
208 
213  MutableStorage()->removeMember("streamingComputationTopology");
214  }
215 
216 
221  const TopologyConfig get_streaming_computation_topology() const;
222 
231  TopologyConfig mutable_streamingComputationTopology();
232 
238  bool has_worker_harness_port() const {
239  return Storage().isMember("workerHarnessPort");
240  }
241 
246  MutableStorage()->removeMember("workerHarnessPort");
247  }
248 
249 
253  int32 get_worker_harness_port() const {
254  const Json::Value& storage = Storage("workerHarnessPort");
255  return client::JsonValueToCppValueHelper<int32 >(storage);
256  }
257 
266  void set_worker_harness_port(int32 value) {
267  client::SetJsonValueFromCppValueHelper<int32 >(
268  value, MutableStorage("workerHarnessPort"));
269  }
270 
271  private:
272  void operator=(const StreamingSetupTask&);
273 }; // StreamingSetupTask
274 } // namespace google_dataflow_api
275 #endif // GOOGLE_DATAFLOW_API_STREAMING_SETUP_TASK_H_
void clear_streaming_computation_topology()
Definition: streaming_setup_task.h:212
bool has_snapshot_config() const
Definition: streaming_setup_task.h:170
int32 get_worker_harness_port() const
Definition: streaming_setup_task.h:253
void set_receive_work_port(int32 value)
Definition: streaming_setup_task.h:160
void set_drain(bool value)
Definition: streaming_setup_task.h:122
void clear_receive_work_port()
Definition: streaming_setup_task.h:139
Definition: topology_config.h:55
bool has_receive_work_port() const
Definition: streaming_setup_task.h:132
bool get_drain() const
Definition: streaming_setup_task.h:110
Definition: streaming_appliance_snapshot_config.h:50
bool has_drain() const
Definition: streaming_setup_task.h:95
void clear_snapshot_config()
Definition: streaming_setup_task.h:177
void set_worker_harness_port(int32 value)
Definition: streaming_setup_task.h:266
Definition: approximate_progress.h:40
bool has_worker_harness_port() const
Definition: streaming_setup_task.h:238
const StringPiece GetTypeName() const
Definition: streaming_setup_task.h:86
void clear_worker_harness_port()
Definition: streaming_setup_task.h:245
bool has_streaming_computation_topology() const
Definition: streaming_setup_task.h:205
int32 get_receive_work_port() const
Definition: streaming_setup_task.h:147
void clear_drain()
Definition: streaming_setup_task.h:102
Definition: streaming_setup_task.h:53
Definition: approximate_progress.cc:42