dataflow  v1b3
counter_structured_name.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_COUNTER_STRUCTURED_NAME_H_
31 #define GOOGLE_DATAFLOW_API_COUNTER_STRUCTURED_NAME_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 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_dataflow_api {
44 using namespace googleapis;
45 
52 class CounterStructuredName : public client::JsonCppData {
53  public:
59  static CounterStructuredName* New();
60 
66  explicit CounterStructuredName(const Json::Value& storage);
67 
73  explicit CounterStructuredName(Json::Value* storage);
74 
78  virtual ~CounterStructuredName();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_dataflow_api::CounterStructuredName");
87  }
88 
94  bool has_component_step_name() const {
95  return Storage().isMember("componentStepName");
96  }
97 
102  MutableStorage()->removeMember("componentStepName");
103  }
104 
105 
109  const StringPiece get_component_step_name() const {
110  const Json::Value& v = Storage("componentStepName");
111  if (v == Json::Value::null) return StringPiece("");
112  return StringPiece(v.asCString());
113  }
114 
122  void set_component_step_name(const StringPiece& value) {
123  *MutableStorage("componentStepName") = value.data();
124  }
125 
131  bool has_execution_step_name() const {
132  return Storage().isMember("executionStepName");
133  }
134 
139  MutableStorage()->removeMember("executionStepName");
140  }
141 
142 
146  const StringPiece get_execution_step_name() const {
147  const Json::Value& v = Storage("executionStepName");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
159  void set_execution_step_name(const StringPiece& value) {
160  *MutableStorage("executionStepName") = value.data();
161  }
162 
168  bool has_input_index() const {
169  return Storage().isMember("inputIndex");
170  }
171 
176  MutableStorage()->removeMember("inputIndex");
177  }
178 
179 
183  int32 get_input_index() const {
184  const Json::Value& storage = Storage("inputIndex");
185  return client::JsonValueToCppValueHelper<int32 >(storage);
186  }
187 
200  void set_input_index(int32 value) {
201  client::SetJsonValueFromCppValueHelper<int32 >(
202  value, MutableStorage("inputIndex"));
203  }
204 
210  bool has_name() const {
211  return Storage().isMember("name");
212  }
213 
217  void clear_name() {
218  MutableStorage()->removeMember("name");
219  }
220 
221 
225  const StringPiece get_name() const {
226  const Json::Value& v = Storage("name");
227  if (v == Json::Value::null) return StringPiece("");
228  return StringPiece(v.asCString());
229  }
230 
240  void set_name(const StringPiece& value) {
241  *MutableStorage("name") = value.data();
242  }
243 
249  bool has_origin() const {
250  return Storage().isMember("origin");
251  }
252 
256  void clear_origin() {
257  MutableStorage()->removeMember("origin");
258  }
259 
260 
264  const StringPiece get_origin() const {
265  const Json::Value& v = Storage("origin");
266  if (v == Json::Value::null) return StringPiece("");
267  return StringPiece(v.asCString());
268  }
269 
277  void set_origin(const StringPiece& value) {
278  *MutableStorage("origin") = value.data();
279  }
280 
286  bool has_origin_namespace() const {
287  return Storage().isMember("originNamespace");
288  }
289 
294  MutableStorage()->removeMember("originNamespace");
295  }
296 
297 
301  const StringPiece get_origin_namespace() const {
302  const Json::Value& v = Storage("originNamespace");
303  if (v == Json::Value::null) return StringPiece("");
304  return StringPiece(v.asCString());
305  }
306 
314  void set_origin_namespace(const StringPiece& value) {
315  *MutableStorage("originNamespace") = value.data();
316  }
317 
326  return Storage().isMember("originalRequestingStepName");
327  }
328 
333  MutableStorage()->removeMember("originalRequestingStepName");
334  }
335 
336 
340  const StringPiece get_original_requesting_step_name() const {
341  const Json::Value& v = Storage("originalRequestingStepName");
342  if (v == Json::Value::null) return StringPiece("");
343  return StringPiece(v.asCString());
344  }
345 
355  void set_original_requesting_step_name(const StringPiece& value) {
356  *MutableStorage("originalRequestingStepName") = value.data();
357  }
358 
364  bool has_original_step_name() const {
365  return Storage().isMember("originalStepName");
366  }
367 
372  MutableStorage()->removeMember("originalStepName");
373  }
374 
375 
379  const StringPiece get_original_step_name() const {
380  const Json::Value& v = Storage("originalStepName");
381  if (v == Json::Value::null) return StringPiece("");
382  return StringPiece(v.asCString());
383  }
384 
393  void set_original_step_name(const StringPiece& value) {
394  *MutableStorage("originalStepName") = value.data();
395  }
396 
402  bool has_portion() const {
403  return Storage().isMember("portion");
404  }
405 
409  void clear_portion() {
410  MutableStorage()->removeMember("portion");
411  }
412 
413 
417  const StringPiece get_portion() const {
418  const Json::Value& v = Storage("portion");
419  if (v == Json::Value::null) return StringPiece("");
420  return StringPiece(v.asCString());
421  }
422 
430  void set_portion(const StringPiece& value) {
431  *MutableStorage("portion") = value.data();
432  }
433 
439  bool has_worker_id() const {
440  return Storage().isMember("workerId");
441  }
442 
447  MutableStorage()->removeMember("workerId");
448  }
449 
450 
454  const StringPiece get_worker_id() const {
455  const Json::Value& v = Storage("workerId");
456  if (v == Json::Value::null) return StringPiece("");
457  return StringPiece(v.asCString());
458  }
459 
467  void set_worker_id(const StringPiece& value) {
468  *MutableStorage("workerId") = value.data();
469  }
470 
471  private:
472  void operator=(const CounterStructuredName&);
473 }; // CounterStructuredName
474 } // namespace google_dataflow_api
475 #endif // GOOGLE_DATAFLOW_API_COUNTER_STRUCTURED_NAME_H_
void set_origin(const StringPiece &value)
Definition: counter_structured_name.h:277
bool has_name() const
Definition: counter_structured_name.h:210
const StringPiece get_original_requesting_step_name() const
Definition: counter_structured_name.h:340
const StringPiece get_portion() const
Definition: counter_structured_name.h:417
void set_original_requesting_step_name(const StringPiece &value)
Definition: counter_structured_name.h:355
const StringPiece get_component_step_name() const
Definition: counter_structured_name.h:109
bool has_origin_namespace() const
Definition: counter_structured_name.h:286
void clear_input_index()
Definition: counter_structured_name.h:175
const StringPiece get_worker_id() const
Definition: counter_structured_name.h:454
bool has_input_index() const
Definition: counter_structured_name.h:168
void clear_original_requesting_step_name()
Definition: counter_structured_name.h:332
void set_worker_id(const StringPiece &value)
Definition: counter_structured_name.h:467
bool has_portion() const
Definition: counter_structured_name.h:402
void set_portion(const StringPiece &value)
Definition: counter_structured_name.h:430
void set_component_step_name(const StringPiece &value)
Definition: counter_structured_name.h:122
void clear_portion()
Definition: counter_structured_name.h:409
void set_execution_step_name(const StringPiece &value)
Definition: counter_structured_name.h:159
void clear_original_step_name()
Definition: counter_structured_name.h:371
const StringPiece get_execution_step_name() const
Definition: counter_structured_name.h:146
bool has_execution_step_name() const
Definition: counter_structured_name.h:131
const StringPiece get_origin_namespace() const
Definition: counter_structured_name.h:301
bool has_origin() const
Definition: counter_structured_name.h:249
const StringPiece get_origin() const
Definition: counter_structured_name.h:264
void clear_origin_namespace()
Definition: counter_structured_name.h:293
void clear_component_step_name()
Definition: counter_structured_name.h:101
Definition: approximate_progress.h:40
Definition: counter_structured_name.h:52
void clear_worker_id()
Definition: counter_structured_name.h:446
void set_name(const StringPiece &value)
Definition: counter_structured_name.h:240
bool has_original_step_name() const
Definition: counter_structured_name.h:364
void set_input_index(int32 value)
Definition: counter_structured_name.h:200
bool has_component_step_name() const
Definition: counter_structured_name.h:94
void clear_execution_step_name()
Definition: counter_structured_name.h:138
int32 get_input_index() const
Definition: counter_structured_name.h:183
const StringPiece GetTypeName() const
Definition: counter_structured_name.h:85
const StringPiece get_name() const
Definition: counter_structured_name.h:225
void clear_origin()
Definition: counter_structured_name.h:256
void clear_name()
Definition: counter_structured_name.h:217
void set_origin_namespace(const StringPiece &value)
Definition: counter_structured_name.h:314
Definition: approximate_progress.cc:42
bool has_worker_id() const
Definition: counter_structured_name.h:439
void set_original_step_name(const StringPiece &value)
Definition: counter_structured_name.h:393
bool has_original_requesting_step_name() const
Definition: counter_structured_name.h:325
const StringPiece get_original_step_name() const
Definition: counter_structured_name.h:379