bigquery  v2
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_ITERATION_RESULT_H_
31 #define GOOGLE_BIGQUERY_API_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 #include "google/bigquery_api/arima_result.h"
39 #include "google/bigquery_api/cluster_info.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_bigquery_api {
46 using namespace googleapis;
47 
53 class IterationResult : public client::JsonCppData {
54  public:
60  static IterationResult* New();
61 
67  explicit IterationResult(const Json::Value& storage);
68 
74  explicit IterationResult(Json::Value* storage);
75 
79  virtual ~IterationResult();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_bigquery_api::IterationResult");
88  }
89 
95  bool has_arima_result() const {
96  return Storage().isMember("arimaResult");
97  }
98 
103  MutableStorage()->removeMember("arimaResult");
104  }
105 
106 
110  const ArimaResult get_arima_result() const;
111 
117  ArimaResult mutable_arimaResult();
118 
124  bool has_cluster_infos() const {
125  return Storage().isMember("clusterInfos");
126  }
127 
132  MutableStorage()->removeMember("clusterInfos");
133  }
134 
135 
139  const client::JsonCppArray<ClusterInfo > get_cluster_infos() const;
140 
149  client::JsonCppArray<ClusterInfo > mutable_clusterInfos();
150 
156  bool has_duration_ms() const {
157  return Storage().isMember("durationMs");
158  }
159 
164  MutableStorage()->removeMember("durationMs");
165  }
166 
167 
171  int64 get_duration_ms() const {
172  const Json::Value& storage = Storage("durationMs");
173  return client::JsonValueToCppValueHelper<int64 >(storage);
174  }
175 
183  void set_duration_ms(int64 value) {
184  client::SetJsonValueFromCppValueHelper<int64 >(
185  value, MutableStorage("durationMs"));
186  }
187 
193  bool has_eval_loss() const {
194  return Storage().isMember("evalLoss");
195  }
196 
201  MutableStorage()->removeMember("evalLoss");
202  }
203 
204 
208  double get_eval_loss() const {
209  const Json::Value& storage = Storage("evalLoss");
210  return client::JsonValueToCppValueHelper<double >(storage);
211  }
212 
220  void set_eval_loss(double value) {
221  client::SetJsonValueFromCppValueHelper<double >(
222  value, MutableStorage("evalLoss"));
223  }
224 
230  bool has_index() const {
231  return Storage().isMember("index");
232  }
233 
237  void clear_index() {
238  MutableStorage()->removeMember("index");
239  }
240 
241 
245  int32 get_index() const {
246  const Json::Value& storage = Storage("index");
247  return client::JsonValueToCppValueHelper<int32 >(storage);
248  }
249 
257  void set_index(int32 value) {
258  client::SetJsonValueFromCppValueHelper<int32 >(
259  value, MutableStorage("index"));
260  }
261 
267  bool has_learn_rate() const {
268  return Storage().isMember("learnRate");
269  }
270 
275  MutableStorage()->removeMember("learnRate");
276  }
277 
278 
282  double get_learn_rate() const {
283  const Json::Value& storage = Storage("learnRate");
284  return client::JsonValueToCppValueHelper<double >(storage);
285  }
286 
294  void set_learn_rate(double value) {
295  client::SetJsonValueFromCppValueHelper<double >(
296  value, MutableStorage("learnRate"));
297  }
298 
304  bool has_training_loss() const {
305  return Storage().isMember("trainingLoss");
306  }
307 
312  MutableStorage()->removeMember("trainingLoss");
313  }
314 
315 
319  double get_training_loss() const {
320  const Json::Value& storage = Storage("trainingLoss");
321  return client::JsonValueToCppValueHelper<double >(storage);
322  }
323 
331  void set_training_loss(double value) {
332  client::SetJsonValueFromCppValueHelper<double >(
333  value, MutableStorage("trainingLoss"));
334  }
335 
336  private:
337  void operator=(const IterationResult&);
338 }; // IterationResult
339 } // namespace google_bigquery_api
340 #endif // GOOGLE_BIGQUERY_API_ITERATION_RESULT_H_
double get_learn_rate() const
Definition: iteration_result.h:282
void set_duration_ms(int64 value)
Definition: iteration_result.h:183
bool has_eval_loss() const
Definition: iteration_result.h:193
bool has_learn_rate() const
Definition: iteration_result.h:267
Definition: iteration_result.h:53
void set_learn_rate(double value)
Definition: iteration_result.h:294
void set_eval_loss(double value)
Definition: iteration_result.h:220
Definition: aggregate_classification_metrics.cc:39
bool has_training_loss() const
Definition: iteration_result.h:304
void clear_training_loss()
Definition: iteration_result.h:311
int64 get_duration_ms() const
Definition: iteration_result.h:171
void set_training_loss(double value)
Definition: iteration_result.h:331
Definition: arima_result.h:53
void set_index(int32 value)
Definition: iteration_result.h:257
bool has_index() const
Definition: iteration_result.h:230
void clear_learn_rate()
Definition: iteration_result.h:274
void clear_eval_loss()
Definition: iteration_result.h:200
const StringPiece GetTypeName() const
Definition: iteration_result.h:86
Definition: aggregate_classification_metrics.h:37
void clear_arima_result()
Definition: iteration_result.h:102
int32 get_index() const
Definition: iteration_result.h:245
void clear_duration_ms()
Definition: iteration_result.h:163
bool has_cluster_infos() const
Definition: iteration_result.h:124
double get_eval_loss() const
Definition: iteration_result.h:208
double get_training_loss() const
Definition: iteration_result.h:319
void clear_cluster_infos()
Definition: iteration_result.h:131
bool has_duration_ms() const
Definition: iteration_result.h:156
void clear_index()
Definition: iteration_result.h:237
bool has_arima_result() const
Definition: iteration_result.h:95