bigquery  v2
aggregate_classification_metrics.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-07, 23:51:40 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // BigQuery API (bigquery/v2)
24 // Generated from:
25 // Version: v2
26 // Revision: 459
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_BIGQUERY_API_AGGREGATE_CLASSIFICATION_METRICS_H_
31 #define GOOGLE_BIGQUERY_API_AGGREGATE_CLASSIFICATION_METRICS_H_
32 
33 #include "googleapis/base/macros.h"
34 #include "googleapis/client/data/jsoncpp_data.h"
35 #include "googleapis/strings/stringpiece.h"
36 
37 namespace Json {
38 class Value;
39 } // namespace Json
40 
41 namespace google_bigquery_api {
42 using namespace googleapis;
43 
54 class AggregateClassificationMetrics : public client::JsonCppData {
55  public:
61  static AggregateClassificationMetrics* New();
62 
68  explicit AggregateClassificationMetrics(const Json::Value& storage);
69 
75  explicit AggregateClassificationMetrics(Json::Value* storage);
76 
81 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_bigquery_api::AggregateClassificationMetrics");
89  }
90 
96  bool has_accuracy() const {
97  return Storage().isMember("accuracy");
98  }
99 
103  void clear_accuracy() {
104  MutableStorage()->removeMember("accuracy");
105  }
106 
107 
111  double get_accuracy() const {
112  const Json::Value& storage = Storage("accuracy");
113  return client::JsonValueToCppValueHelper<double >(storage);
114  }
115 
124  void set_accuracy(double value) {
125  client::SetJsonValueFromCppValueHelper<double >(
126  value, MutableStorage("accuracy"));
127  }
128 
134  bool has_f1_score() const {
135  return Storage().isMember("f1Score");
136  }
137 
141  void clear_f1_score() {
142  MutableStorage()->removeMember("f1Score");
143  }
144 
145 
149  double get_f1_score() const {
150  const Json::Value& storage = Storage("f1Score");
151  return client::JsonValueToCppValueHelper<double >(storage);
152  }
153 
162  void set_f1_score(double value) {
163  client::SetJsonValueFromCppValueHelper<double >(
164  value, MutableStorage("f1Score"));
165  }
166 
172  bool has_log_loss() const {
173  return Storage().isMember("logLoss");
174  }
175 
179  void clear_log_loss() {
180  MutableStorage()->removeMember("logLoss");
181  }
182 
183 
187  double get_log_loss() const {
188  const Json::Value& storage = Storage("logLoss");
189  return client::JsonValueToCppValueHelper<double >(storage);
190  }
191 
199  void set_log_loss(double value) {
200  client::SetJsonValueFromCppValueHelper<double >(
201  value, MutableStorage("logLoss"));
202  }
203 
209  bool has_precision() const {
210  return Storage().isMember("precision");
211  }
212 
217  MutableStorage()->removeMember("precision");
218  }
219 
220 
224  double get_precision() const {
225  const Json::Value& storage = Storage("precision");
226  return client::JsonValueToCppValueHelper<double >(storage);
227  }
228 
238  void set_precision(double value) {
239  client::SetJsonValueFromCppValueHelper<double >(
240  value, MutableStorage("precision"));
241  }
242 
248  bool has_recall() const {
249  return Storage().isMember("recall");
250  }
251 
255  void clear_recall() {
256  MutableStorage()->removeMember("recall");
257  }
258 
259 
263  double get_recall() const {
264  const Json::Value& storage = Storage("recall");
265  return client::JsonValueToCppValueHelper<double >(storage);
266  }
267 
276  void set_recall(double value) {
277  client::SetJsonValueFromCppValueHelper<double >(
278  value, MutableStorage("recall"));
279  }
280 
286  bool has_roc_auc() const {
287  return Storage().isMember("rocAuc");
288  }
289 
293  void clear_roc_auc() {
294  MutableStorage()->removeMember("rocAuc");
295  }
296 
297 
301  double get_roc_auc() const {
302  const Json::Value& storage = Storage("rocAuc");
303  return client::JsonValueToCppValueHelper<double >(storage);
304  }
305 
314  void set_roc_auc(double value) {
315  client::SetJsonValueFromCppValueHelper<double >(
316  value, MutableStorage("rocAuc"));
317  }
318 
324  bool has_threshold() const {
325  return Storage().isMember("threshold");
326  }
327 
332  MutableStorage()->removeMember("threshold");
333  }
334 
335 
339  double get_threshold() const {
340  const Json::Value& storage = Storage("threshold");
341  return client::JsonValueToCppValueHelper<double >(storage);
342  }
343 
354  void set_threshold(double value) {
355  client::SetJsonValueFromCppValueHelper<double >(
356  value, MutableStorage("threshold"));
357  }
358 
359  private:
360  void operator=(const AggregateClassificationMetrics&);
361 }; // AggregateClassificationMetrics
362 } // namespace google_bigquery_api
363 #endif // GOOGLE_BIGQUERY_API_AGGREGATE_CLASSIFICATION_METRICS_H_
void set_recall(double value)
Definition: aggregate_classification_metrics.h:276
void set_accuracy(double value)
Definition: aggregate_classification_metrics.h:124
void clear_accuracy()
Definition: aggregate_classification_metrics.h:103
bool has_accuracy() const
Definition: aggregate_classification_metrics.h:96
void set_precision(double value)
Definition: aggregate_classification_metrics.h:238
void clear_recall()
Definition: aggregate_classification_metrics.h:255
double get_roc_auc() const
Definition: aggregate_classification_metrics.h:301
void set_roc_auc(double value)
Definition: aggregate_classification_metrics.h:314
void clear_log_loss()
Definition: aggregate_classification_metrics.h:179
Definition: aggregate_classification_metrics.cc:39
void clear_precision()
Definition: aggregate_classification_metrics.h:216
void set_threshold(double value)
Definition: aggregate_classification_metrics.h:354
bool has_recall() const
Definition: aggregate_classification_metrics.h:248
void set_log_loss(double value)
Definition: aggregate_classification_metrics.h:199
bool has_f1_score() const
Definition: aggregate_classification_metrics.h:134
bool has_threshold() const
Definition: aggregate_classification_metrics.h:324
bool has_roc_auc() const
Definition: aggregate_classification_metrics.h:286
Definition: aggregate_classification_metrics.h:37
const StringPiece GetTypeName() const
Definition: aggregate_classification_metrics.h:87
bool has_precision() const
Definition: aggregate_classification_metrics.h:209
bool has_log_loss() const
Definition: aggregate_classification_metrics.h:172
double get_threshold() const
Definition: aggregate_classification_metrics.h:339
double get_log_loss() const
Definition: aggregate_classification_metrics.h:187
void clear_roc_auc()
Definition: aggregate_classification_metrics.h:293
void clear_f1_score()
Definition: aggregate_classification_metrics.h:141
void clear_threshold()
Definition: aggregate_classification_metrics.h:331
double get_accuracy() const
Definition: aggregate_classification_metrics.h:111
double get_recall() const
Definition: aggregate_classification_metrics.h:263
double get_precision() const
Definition: aggregate_classification_metrics.h:224
void set_f1_score(double value)
Definition: aggregate_classification_metrics.h:162
Definition: aggregate_classification_metrics.h:54
double get_f1_score() const
Definition: aggregate_classification_metrics.h:149