dataflow  v1b3
counter_update.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_UPDATE_H_
31 #define GOOGLE_DATAFLOW_API_COUNTER_UPDATE_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/counter_structured_name_and_metadata.h"
39 #include "google/dataflow_api/distribution_update.h"
40 #include "google/dataflow_api/floating_point_list.h"
41 #include "google/dataflow_api/floating_point_mean.h"
42 #include "google/dataflow_api/integer_gauge.h"
43 #include "google/dataflow_api/integer_list.h"
44 #include "google/dataflow_api/integer_mean.h"
45 #include "google/dataflow_api/name_and_kind.h"
46 #include "google/dataflow_api/split_int64.h"
47 #include "google/dataflow_api/string_list.h"
48 
49 namespace Json {
50 class Value;
51 } // namespace Json
52 
53 namespace google_dataflow_api {
54 using namespace googleapis;
55 
61 class CounterUpdate : public client::JsonCppData {
62  public:
68  static CounterUpdate* New();
69 
75  explicit CounterUpdate(const Json::Value& storage);
76 
82  explicit CounterUpdate(Json::Value* storage);
83 
87  virtual ~CounterUpdate();
88 
94  const StringPiece GetTypeName() const {
95  return StringPiece("google_dataflow_api::CounterUpdate");
96  }
97 
103  bool has_boolean() const {
104  return Storage().isMember("boolean");
105  }
106 
110  void clear_boolean() {
111  MutableStorage()->removeMember("boolean");
112  }
113 
114 
118  bool get_boolean() const {
119  const Json::Value& storage = Storage("boolean");
120  return client::JsonValueToCppValueHelper<bool >(storage);
121  }
122 
130  void set_boolean(bool value) {
131  client::SetJsonValueFromCppValueHelper<bool >(
132  value, MutableStorage("boolean"));
133  }
134 
140  bool has_cumulative() const {
141  return Storage().isMember("cumulative");
142  }
143 
148  MutableStorage()->removeMember("cumulative");
149  }
150 
151 
155  bool get_cumulative() const {
156  const Json::Value& storage = Storage("cumulative");
157  return client::JsonValueToCppValueHelper<bool >(storage);
158  }
159 
170  void set_cumulative(bool value) {
171  client::SetJsonValueFromCppValueHelper<bool >(
172  value, MutableStorage("cumulative"));
173  }
174 
180  bool has_distribution() const {
181  return Storage().isMember("distribution");
182  }
183 
188  MutableStorage()->removeMember("distribution");
189  }
190 
191 
195  const DistributionUpdate get_distribution() const;
196 
205  DistributionUpdate mutable_distribution();
206 
212  bool has_floating_point() const {
213  return Storage().isMember("floatingPoint");
214  }
215 
220  MutableStorage()->removeMember("floatingPoint");
221  }
222 
223 
227  double get_floating_point() const {
228  const Json::Value& storage = Storage("floatingPoint");
229  return client::JsonValueToCppValueHelper<double >(storage);
230  }
231 
239  void set_floating_point(double value) {
240  client::SetJsonValueFromCppValueHelper<double >(
241  value, MutableStorage("floatingPoint"));
242  }
243 
249  bool has_floating_point_list() const {
250  return Storage().isMember("floatingPointList");
251  }
252 
257  MutableStorage()->removeMember("floatingPointList");
258  }
259 
260 
265  const FloatingPointList get_floating_point_list() const;
266 
275  FloatingPointList mutable_floatingPointList();
276 
282  bool has_floating_point_mean() const {
283  return Storage().isMember("floatingPointMean");
284  }
285 
290  MutableStorage()->removeMember("floatingPointMean");
291  }
292 
293 
298  const FloatingPointMean get_floating_point_mean() const;
299 
308  FloatingPointMean mutable_floatingPointMean();
309 
315  bool has_integer() const {
316  return Storage().isMember("integer");
317  }
318 
322  void clear_integer() {
323  MutableStorage()->removeMember("integer");
324  }
325 
326 
330  const SplitInt64 get_integer() const;
331 
339  SplitInt64 mutable_integer();
340 
346  bool has_integer_gauge() const {
347  return Storage().isMember("integerGauge");
348  }
349 
354  MutableStorage()->removeMember("integerGauge");
355  }
356 
357 
361  const IntegerGauge get_integer_gauge() const;
362 
371  IntegerGauge mutable_integerGauge();
372 
378  bool has_integer_list() const {
379  return Storage().isMember("integerList");
380  }
381 
386  MutableStorage()->removeMember("integerList");
387  }
388 
389 
393  const IntegerList get_integer_list() const;
394 
403  IntegerList mutable_integerList();
404 
410  bool has_integer_mean() const {
411  return Storage().isMember("integerMean");
412  }
413 
418  MutableStorage()->removeMember("integerMean");
419  }
420 
421 
425  const IntegerMean get_integer_mean() const;
426 
435  IntegerMean mutable_integerMean();
436 
442  bool has_internal() const {
443  return Storage().isMember("internal");
444  }
445 
449  void clear_internal() {
450  MutableStorage()->removeMember("internal");
451  }
452 
453 
457  const client::JsonCppData get_internal() const {
458  const Json::Value& storage = Storage("internal");
459  return client::JsonValueToCppValueHelper<client::JsonCppData >(storage);
460  }
461 
470  client::JsonCppData mutable_internal() {
471  Json::Value* storage = MutableStorage("internal");
472  return client::JsonValueToMutableCppValueHelper<client::JsonCppData >(storage);
473  }
474 
480  bool has_name_and_kind() const {
481  return Storage().isMember("nameAndKind");
482  }
483 
488  MutableStorage()->removeMember("nameAndKind");
489  }
490 
491 
495  const NameAndKind get_name_and_kind() const;
496 
505  NameAndKind mutable_nameAndKind();
506 
512  bool has_short_id() const {
513  return Storage().isMember("shortId");
514  }
515 
519  void clear_short_id() {
520  MutableStorage()->removeMember("shortId");
521  }
522 
523 
527  int64 get_short_id() const {
528  const Json::Value& storage = Storage("shortId");
529  return client::JsonValueToCppValueHelper<int64 >(storage);
530  }
531 
541  void set_short_id(int64 value) {
542  client::SetJsonValueFromCppValueHelper<int64 >(
543  value, MutableStorage("shortId"));
544  }
545 
551  bool has_string_list() const {
552  return Storage().isMember("stringList");
553  }
554 
559  MutableStorage()->removeMember("stringList");
560  }
561 
562 
566  const StringList get_string_list() const;
567 
576  StringList mutable_stringList();
577 
586  return Storage().isMember("structuredNameAndMetadata");
587  }
588 
593  MutableStorage()->removeMember("structuredNameAndMetadata");
594  }
595 
596 
601  const CounterStructuredNameAndMetadata get_structured_name_and_metadata() const;
602 
611  CounterStructuredNameAndMetadata mutable_structuredNameAndMetadata();
612 
613  private:
614  void operator=(const CounterUpdate&);
615 }; // CounterUpdate
616 } // namespace google_dataflow_api
617 #endif // GOOGLE_DATAFLOW_API_COUNTER_UPDATE_H_
Definition: floating_point_list.h:49
bool has_floating_point() const
Definition: counter_update.h:212
void clear_integer_gauge()
Definition: counter_update.h:353
void clear_integer_mean()
Definition: counter_update.h:417
void clear_short_id()
Definition: counter_update.h:519
Definition: split_int64.h:51
void clear_name_and_kind()
Definition: counter_update.h:487
bool get_boolean() const
Definition: counter_update.h:118
bool has_boolean() const
Definition: counter_update.h:103
bool has_floating_point_mean() const
Definition: counter_update.h:282
void clear_integer_list()
Definition: counter_update.h:385
bool get_cumulative() const
Definition: counter_update.h:155
void clear_floating_point()
Definition: counter_update.h:219
Definition: counter_structured_name_and_metadata.h:53
bool has_distribution() const
Definition: counter_update.h:180
Definition: floating_point_mean.h:51
void set_boolean(bool value)
Definition: counter_update.h:130
Definition: distribution_update.h:52
Definition: counter_update.h:61
bool has_string_list() const
Definition: counter_update.h:551
bool has_floating_point_list() const
Definition: counter_update.h:249
const client::JsonCppData get_internal() const
Definition: counter_update.h:457
void clear_floating_point_mean()
Definition: counter_update.h:289
bool has_name_and_kind() const
Definition: counter_update.h:480
Definition: integer_list.h:51
void clear_integer()
Definition: counter_update.h:322
bool has_integer_mean() const
Definition: counter_update.h:410
Definition: approximate_progress.h:40
void clear_internal()
Definition: counter_update.h:449
const StringPiece GetTypeName() const
Definition: counter_update.h:94
void set_floating_point(double value)
Definition: counter_update.h:239
Definition: integer_gauge.h:52
bool has_structured_name_and_metadata() const
Definition: counter_update.h:585
void clear_structured_name_and_metadata()
Definition: counter_update.h:592
int64 get_short_id() const
Definition: counter_update.h:527
void clear_distribution()
Definition: counter_update.h:187
void set_short_id(int64 value)
Definition: counter_update.h:541
bool has_integer() const
Definition: counter_update.h:315
bool has_integer_list() const
Definition: counter_update.h:378
bool has_cumulative() const
Definition: counter_update.h:140
double get_floating_point() const
Definition: counter_update.h:227
void set_cumulative(bool value)
Definition: counter_update.h:170
void clear_string_list()
Definition: counter_update.h:558
Definition: approximate_progress.cc:42
Definition: integer_mean.h:51
Definition: name_and_kind.h:50
void clear_boolean()
Definition: counter_update.h:110
bool has_internal() const
Definition: counter_update.h:442
client::JsonCppData mutable_internal()
Definition: counter_update.h:470
bool has_short_id() const
Definition: counter_update.h:512
Definition: string_list.h:50
void clear_cumulative()
Definition: counter_update.h:147
bool has_integer_gauge() const
Definition: counter_update.h:346
void clear_floating_point_list()
Definition: counter_update.h:256