dataflow  v1b3
instruction_output.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_INSTRUCTION_OUTPUT_H_
31 #define GOOGLE_DATAFLOW_API_INSTRUCTION_OUTPUT_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_dataflow_api {
43 using namespace googleapis;
44 
50 class InstructionOutput : public client::JsonCppData {
51  public:
57  static InstructionOutput* New();
58 
64  explicit InstructionOutput(const Json::Value& storage);
65 
71  explicit InstructionOutput(Json::Value* storage);
72 
76  virtual ~InstructionOutput();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_dataflow_api::InstructionOutput");
85  }
86 
92  bool has_codec() const {
93  return Storage().isMember("codec");
94  }
95 
99  void clear_codec() {
100  MutableStorage()->removeMember("codec");
101  }
102 
103 
107  const client::JsonCppAssociativeArray<client::JsonCppData > get_codec() const {
108  const Json::Value& storage = Storage("codec");
109  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
110  }
111 
119  client::JsonCppAssociativeArray<client::JsonCppData > mutable_codec() {
120  Json::Value* storage = MutableStorage("codec");
121  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
122  }
123 
129  bool has_name() const {
130  return Storage().isMember("name");
131  }
132 
136  void clear_name() {
137  MutableStorage()->removeMember("name");
138  }
139 
140 
144  const StringPiece get_name() const {
145  const Json::Value& v = Storage("name");
146  if (v == Json::Value::null) return StringPiece("");
147  return StringPiece(v.asCString());
148  }
149 
157  void set_name(const StringPiece& value) {
158  *MutableStorage("name") = value.data();
159  }
160 
167  return Storage().isMember("onlyCountKeyBytes");
168  }
169 
174  MutableStorage()->removeMember("onlyCountKeyBytes");
175  }
176 
177 
182  const Json::Value& storage = Storage("onlyCountKeyBytes");
183  return client::JsonValueToCppValueHelper<bool >(storage);
184  }
185 
194  void set_only_count_key_bytes(bool value) {
195  client::SetJsonValueFromCppValueHelper<bool >(
196  value, MutableStorage("onlyCountKeyBytes"));
197  }
198 
205  return Storage().isMember("onlyCountValueBytes");
206  }
207 
212  MutableStorage()->removeMember("onlyCountValueBytes");
213  }
214 
215 
220  const Json::Value& storage = Storage("onlyCountValueBytes");
221  return client::JsonValueToCppValueHelper<bool >(storage);
222  }
223 
232  void set_only_count_value_bytes(bool value) {
233  client::SetJsonValueFromCppValueHelper<bool >(
234  value, MutableStorage("onlyCountValueBytes"));
235  }
236 
242  bool has_original_name() const {
243  return Storage().isMember("originalName");
244  }
245 
250  MutableStorage()->removeMember("originalName");
251  }
252 
253 
257  const StringPiece get_original_name() const {
258  const Json::Value& v = Storage("originalName");
259  if (v == Json::Value::null) return StringPiece("");
260  return StringPiece(v.asCString());
261  }
262 
271  void set_original_name(const StringPiece& value) {
272  *MutableStorage("originalName") = value.data();
273  }
274 
280  bool has_system_name() const {
281  return Storage().isMember("systemName");
282  }
283 
288  MutableStorage()->removeMember("systemName");
289  }
290 
291 
295  const StringPiece get_system_name() const {
296  const Json::Value& v = Storage("systemName");
297  if (v == Json::Value::null) return StringPiece("");
298  return StringPiece(v.asCString());
299  }
300 
309  void set_system_name(const StringPiece& value) {
310  *MutableStorage("systemName") = value.data();
311  }
312 
313  private:
314  void operator=(const InstructionOutput&);
315 }; // InstructionOutput
316 } // namespace google_dataflow_api
317 #endif // GOOGLE_DATAFLOW_API_INSTRUCTION_OUTPUT_H_
bool has_only_count_value_bytes() const
Definition: instruction_output.h:204
void clear_only_count_key_bytes()
Definition: instruction_output.h:173
bool get_only_count_value_bytes() const
Definition: instruction_output.h:219
const StringPiece get_original_name() const
Definition: instruction_output.h:257
const StringPiece get_system_name() const
Definition: instruction_output.h:295
bool has_original_name() const
Definition: instruction_output.h:242
const StringPiece GetTypeName() const
Definition: instruction_output.h:83
void clear_name()
Definition: instruction_output.h:136
client::JsonCppAssociativeArray< client::JsonCppData > mutable_codec()
Definition: instruction_output.h:119
void clear_system_name()
Definition: instruction_output.h:287
void set_only_count_key_bytes(bool value)
Definition: instruction_output.h:194
bool has_codec() const
Definition: instruction_output.h:92
bool get_only_count_key_bytes() const
Definition: instruction_output.h:181
void clear_only_count_value_bytes()
Definition: instruction_output.h:211
const client::JsonCppAssociativeArray< client::JsonCppData > get_codec() const
Definition: instruction_output.h:107
void clear_original_name()
Definition: instruction_output.h:249
bool has_name() const
Definition: instruction_output.h:129
bool has_system_name() const
Definition: instruction_output.h:280
Definition: approximate_progress.h:40
void set_only_count_value_bytes(bool value)
Definition: instruction_output.h:232
const StringPiece get_name() const
Definition: instruction_output.h:144
void set_name(const StringPiece &value)
Definition: instruction_output.h:157
void set_original_name(const StringPiece &value)
Definition: instruction_output.h:271
Definition: instruction_output.h:50
void clear_codec()
Definition: instruction_output.h:99
Definition: approximate_progress.cc:42
void set_system_name(const StringPiece &value)
Definition: instruction_output.h:309
bool has_only_count_key_bytes() const
Definition: instruction_output.h:166