dataflow  v1b3
distribution_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_DISTRIBUTION_UPDATE_H_
31 #define GOOGLE_DATAFLOW_API_DISTRIBUTION_UPDATE_H_
32 
33 #include "googleapis/base/macros.h"
34 #include "googleapis/client/data/jsoncpp_data.h"
35 #include "googleapis/strings/stringpiece.h"
36 
37 #include "google/dataflow_api/histogram.h"
38 #include "google/dataflow_api/split_int64.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_dataflow_api {
45 using namespace googleapis;
46 
52 class DistributionUpdate : public client::JsonCppData {
53  public:
59  static DistributionUpdate* New();
60 
66  explicit DistributionUpdate(const Json::Value& storage);
67 
73  explicit DistributionUpdate(Json::Value* storage);
74 
78  virtual ~DistributionUpdate();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_dataflow_api::DistributionUpdate");
87  }
88 
94  bool has_count() const {
95  return Storage().isMember("count");
96  }
97 
101  void clear_count() {
102  MutableStorage()->removeMember("count");
103  }
104 
105 
109  const SplitInt64 get_count() const;
110 
118  SplitInt64 mutable_count();
119 
125  bool has_histogram() const {
126  return Storage().isMember("histogram");
127  }
128 
133  MutableStorage()->removeMember("histogram");
134  }
135 
136 
140  const Histogram get_histogram() const;
141 
150  Histogram mutable_histogram();
151 
157  bool has_max() const {
158  return Storage().isMember("max");
159  }
160 
164  void clear_max() {
165  MutableStorage()->removeMember("max");
166  }
167 
168 
172  const SplitInt64 get_max() const;
173 
181  SplitInt64 mutable_max();
182 
188  bool has_min() const {
189  return Storage().isMember("min");
190  }
191 
195  void clear_min() {
196  MutableStorage()->removeMember("min");
197  }
198 
199 
203  const SplitInt64 get_min() const;
204 
212  SplitInt64 mutable_min();
213 
219  bool has_sum() const {
220  return Storage().isMember("sum");
221  }
222 
226  void clear_sum() {
227  MutableStorage()->removeMember("sum");
228  }
229 
230 
234  const SplitInt64 get_sum() const;
235 
244  SplitInt64 mutable_sum();
245 
251  bool has_sum_of_squares() const {
252  return Storage().isMember("sumOfSquares");
253  }
254 
259  MutableStorage()->removeMember("sumOfSquares");
260  }
261 
262 
266  double get_sum_of_squares() const {
267  const Json::Value& storage = Storage("sumOfSquares");
268  return client::JsonValueToCppValueHelper<double >(storage);
269  }
270 
278  void set_sum_of_squares(double value) {
279  client::SetJsonValueFromCppValueHelper<double >(
280  value, MutableStorage("sumOfSquares"));
281  }
282 
283  private:
284  void operator=(const DistributionUpdate&);
285 }; // DistributionUpdate
286 } // namespace google_dataflow_api
287 #endif // GOOGLE_DATAFLOW_API_DISTRIBUTION_UPDATE_H_
void clear_sum()
Definition: distribution_update.h:226
Definition: split_int64.h:51
const StringPiece GetTypeName() const
Definition: distribution_update.h:85
Definition: distribution_update.h:52
void clear_histogram()
Definition: distribution_update.h:132
bool has_sum_of_squares() const
Definition: distribution_update.h:251
bool has_histogram() const
Definition: distribution_update.h:125
bool has_count() const
Definition: distribution_update.h:94
bool has_max() const
Definition: distribution_update.h:157
bool has_sum() const
Definition: distribution_update.h:219
Definition: approximate_progress.h:40
void clear_min()
Definition: distribution_update.h:195
void set_sum_of_squares(double value)
Definition: distribution_update.h:278
bool has_min() const
Definition: distribution_update.h:188
void clear_max()
Definition: distribution_update.h:164
void clear_count()
Definition: distribution_update.h:101
Definition: histogram.h:56
void clear_sum_of_squares()
Definition: distribution_update.h:258
Definition: approximate_progress.cc:42
double get_sum_of_squares() const
Definition: distribution_update.h:266