dataflow  v1b3
par_do_instruction.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_PAR_DO_INSTRUCTION_H_
31 #define GOOGLE_DATAFLOW_API_PAR_DO_INSTRUCTION_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/instruction_input.h"
39 #include "google/dataflow_api/multi_output_info.h"
40 #include "google/dataflow_api/side_input_info.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_dataflow_api {
47 using namespace googleapis;
48 
57 class ParDoInstruction : public client::JsonCppData {
58  public:
64  static ParDoInstruction* New();
65 
71  explicit ParDoInstruction(const Json::Value& storage);
72 
78  explicit ParDoInstruction(Json::Value* storage);
79 
83  virtual ~ParDoInstruction();
84 
90  const StringPiece GetTypeName() const {
91  return StringPiece("google_dataflow_api::ParDoInstruction");
92  }
93 
99  bool has_input() const {
100  return Storage().isMember("input");
101  }
102 
106  void clear_input() {
107  MutableStorage()->removeMember("input");
108  }
109 
110 
114  const InstructionInput get_input() const;
115 
123  InstructionInput mutable_input();
124 
130  bool has_multi_output_infos() const {
131  return Storage().isMember("multiOutputInfos");
132  }
133 
138  MutableStorage()->removeMember("multiOutputInfos");
139  }
140 
141 
146  const client::JsonCppArray<MultiOutputInfo > get_multi_output_infos() const;
147 
156  client::JsonCppArray<MultiOutputInfo > mutable_multiOutputInfos();
157 
163  bool has_num_outputs() const {
164  return Storage().isMember("numOutputs");
165  }
166 
171  MutableStorage()->removeMember("numOutputs");
172  }
173 
174 
178  int32 get_num_outputs() const {
179  const Json::Value& storage = Storage("numOutputs");
180  return client::JsonValueToCppValueHelper<int32 >(storage);
181  }
182 
190  void set_num_outputs(int32 value) {
191  client::SetJsonValueFromCppValueHelper<int32 >(
192  value, MutableStorage("numOutputs"));
193  }
194 
200  bool has_side_inputs() const {
201  return Storage().isMember("sideInputs");
202  }
203 
208  MutableStorage()->removeMember("sideInputs");
209  }
210 
211 
215  const client::JsonCppArray<SideInputInfo > get_side_inputs() const;
216 
225  client::JsonCppArray<SideInputInfo > mutable_sideInputs();
226 
232  bool has_user_fn() const {
233  return Storage().isMember("userFn");
234  }
235 
239  void clear_user_fn() {
240  MutableStorage()->removeMember("userFn");
241  }
242 
243 
247  const client::JsonCppAssociativeArray<client::JsonCppData > get_user_fn() const {
248  const Json::Value& storage = Storage("userFn");
249  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
250  }
251 
259  client::JsonCppAssociativeArray<client::JsonCppData > mutable_userFn() {
260  Json::Value* storage = MutableStorage("userFn");
261  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
262  }
263 
264  private:
265  void operator=(const ParDoInstruction&);
266 }; // ParDoInstruction
267 } // namespace google_dataflow_api
268 #endif // GOOGLE_DATAFLOW_API_PAR_DO_INSTRUCTION_H_
void clear_num_outputs()
Definition: par_do_instruction.h:170
bool has_side_inputs() const
Definition: par_do_instruction.h:200
void clear_user_fn()
Definition: par_do_instruction.h:239
void clear_input()
Definition: par_do_instruction.h:106
client::JsonCppAssociativeArray< client::JsonCppData > mutable_userFn()
Definition: par_do_instruction.h:259
const client::JsonCppAssociativeArray< client::JsonCppData > get_user_fn() const
Definition: par_do_instruction.h:247
Definition: instruction_input.h:51
Definition: approximate_progress.h:40
void set_num_outputs(int32 value)
Definition: par_do_instruction.h:190
bool has_num_outputs() const
Definition: par_do_instruction.h:163
void clear_side_inputs()
Definition: par_do_instruction.h:207
bool has_multi_output_infos() const
Definition: par_do_instruction.h:130
Definition: par_do_instruction.h:57
Definition: approximate_progress.cc:42
void clear_multi_output_infos()
Definition: par_do_instruction.h:137
int32 get_num_outputs() const
Definition: par_do_instruction.h:178
bool has_input() const
Definition: par_do_instruction.h:99
const StringPiece GetTypeName() const
Definition: par_do_instruction.h:90
bool has_user_fn() const
Definition: par_do_instruction.h:232