bigquery  v2
bqml_iteration_result.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_BQML_ITERATION_RESULT_H_
31 #define GOOGLE_BIGQUERY_API_BQML_ITERATION_RESULT_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_bigquery_api {
43 using namespace googleapis;
44 
50 class BqmlIterationResult : public client::JsonCppData {
51  public:
57  static BqmlIterationResult* New();
58 
64  explicit BqmlIterationResult(const Json::Value& storage);
65 
71  explicit BqmlIterationResult(Json::Value* storage);
72 
76  virtual ~BqmlIterationResult();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_bigquery_api::BqmlIterationResult");
85  }
86 
92  bool has_duration_ms() const {
93  return Storage().isMember("durationMs");
94  }
95 
100  MutableStorage()->removeMember("durationMs");
101  }
102 
103 
107  int64 get_duration_ms() const {
108  const Json::Value& storage = Storage("durationMs");
109  return client::JsonValueToCppValueHelper<int64 >(storage);
110  }
111 
120  void set_duration_ms(int64 value) {
121  client::SetJsonValueFromCppValueHelper<int64 >(
122  value, MutableStorage("durationMs"));
123  }
124 
130  bool has_eval_loss() const {
131  return Storage().isMember("evalLoss");
132  }
133 
138  MutableStorage()->removeMember("evalLoss");
139  }
140 
141 
145  double get_eval_loss() const {
146  const Json::Value& storage = Storage("evalLoss");
147  return client::JsonValueToCppValueHelper<double >(storage);
148  }
149 
160  void set_eval_loss(double value) {
161  client::SetJsonValueFromCppValueHelper<double >(
162  value, MutableStorage("evalLoss"));
163  }
164 
170  bool has_index() const {
171  return Storage().isMember("index");
172  }
173 
177  void clear_index() {
178  MutableStorage()->removeMember("index");
179  }
180 
181 
185  int32 get_index() const {
186  const Json::Value& storage = Storage("index");
187  return client::JsonValueToCppValueHelper<int32 >(storage);
188  }
189 
198  void set_index(int32 value) {
199  client::SetJsonValueFromCppValueHelper<int32 >(
200  value, MutableStorage("index"));
201  }
202 
208  bool has_learn_rate() const {
209  return Storage().isMember("learnRate");
210  }
211 
216  MutableStorage()->removeMember("learnRate");
217  }
218 
219 
223  double get_learn_rate() const {
224  const Json::Value& storage = Storage("learnRate");
225  return client::JsonValueToCppValueHelper<double >(storage);
226  }
227 
237  void set_learn_rate(double value) {
238  client::SetJsonValueFromCppValueHelper<double >(
239  value, MutableStorage("learnRate"));
240  }
241 
247  bool has_training_loss() const {
248  return Storage().isMember("trainingLoss");
249  }
250 
255  MutableStorage()->removeMember("trainingLoss");
256  }
257 
258 
262  double get_training_loss() const {
263  const Json::Value& storage = Storage("trainingLoss");
264  return client::JsonValueToCppValueHelper<double >(storage);
265  }
266 
275  void set_training_loss(double value) {
276  client::SetJsonValueFromCppValueHelper<double >(
277  value, MutableStorage("trainingLoss"));
278  }
279 
280  private:
281  void operator=(const BqmlIterationResult&);
282 }; // BqmlIterationResult
283 } // namespace google_bigquery_api
284 #endif // GOOGLE_BIGQUERY_API_BQML_ITERATION_RESULT_H_
bool has_training_loss() const
Definition: bqml_iteration_result.h:247
double get_eval_loss() const
Definition: bqml_iteration_result.h:145
void set_training_loss(double value)
Definition: bqml_iteration_result.h:275
void clear_training_loss()
Definition: bqml_iteration_result.h:254
bool has_index() const
Definition: bqml_iteration_result.h:170
double get_training_loss() const
Definition: bqml_iteration_result.h:262
void clear_learn_rate()
Definition: bqml_iteration_result.h:215
void set_index(int32 value)
Definition: bqml_iteration_result.h:198
int32 get_index() const
Definition: bqml_iteration_result.h:185
Definition: aggregate_classification_metrics.cc:39
const StringPiece GetTypeName() const
Definition: bqml_iteration_result.h:83
void clear_duration_ms()
Definition: bqml_iteration_result.h:99
bool has_learn_rate() const
Definition: bqml_iteration_result.h:208
void clear_index()
Definition: bqml_iteration_result.h:177
Definition: aggregate_classification_metrics.h:37
void clear_eval_loss()
Definition: bqml_iteration_result.h:137
int64 get_duration_ms() const
Definition: bqml_iteration_result.h:107
void set_duration_ms(int64 value)
Definition: bqml_iteration_result.h:120
bool has_duration_ms() const
Definition: bqml_iteration_result.h:92
bool has_eval_loss() const
Definition: bqml_iteration_result.h:130
double get_learn_rate() const
Definition: bqml_iteration_result.h:223
void set_eval_loss(double value)
Definition: bqml_iteration_result.h:160
Definition: bqml_iteration_result.h:50
void set_learn_rate(double value)
Definition: bqml_iteration_result.h:237