| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis_beta.ml.v1beta1; | 3 library googleapis_beta.ml.v1beta1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2296 return _json; | 2296 return _json; |
| 2297 } | 2297 } |
| 2298 } | 2298 } |
| 2299 | 2299 |
| 2300 /** Represents results of a training job. */ | 2300 /** Represents results of a training job. */ |
| 2301 class GoogleCloudMlV1beta1TrainingOutput { | 2301 class GoogleCloudMlV1beta1TrainingOutput { |
| 2302 /** | 2302 /** |
| 2303 * The number of hyperparameter tuning trials that completed successfully. | 2303 * The number of hyperparameter tuning trials that completed successfully. |
| 2304 */ | 2304 */ |
| 2305 core.String completedTrialCount; | 2305 core.String completedTrialCount; |
| 2306 /** The amount of ML units consumed by the job. */ |
| 2307 core.double consumedMlUnits; |
| 2306 /** Results for individual Hyperparameter trials. */ | 2308 /** Results for individual Hyperparameter trials. */ |
| 2307 core.List<GoogleCloudMlV1beta1HyperparameterOutput> trials; | 2309 core.List<GoogleCloudMlV1beta1HyperparameterOutput> trials; |
| 2308 | 2310 |
| 2309 GoogleCloudMlV1beta1TrainingOutput(); | 2311 GoogleCloudMlV1beta1TrainingOutput(); |
| 2310 | 2312 |
| 2311 GoogleCloudMlV1beta1TrainingOutput.fromJson(core.Map _json) { | 2313 GoogleCloudMlV1beta1TrainingOutput.fromJson(core.Map _json) { |
| 2312 if (_json.containsKey("completedTrialCount")) { | 2314 if (_json.containsKey("completedTrialCount")) { |
| 2313 completedTrialCount = _json["completedTrialCount"]; | 2315 completedTrialCount = _json["completedTrialCount"]; |
| 2314 } | 2316 } |
| 2317 if (_json.containsKey("consumedMlUnits")) { |
| 2318 consumedMlUnits = _json["consumedMlUnits"]; |
| 2319 } |
| 2315 if (_json.containsKey("trials")) { | 2320 if (_json.containsKey("trials")) { |
| 2316 trials = _json["trials"].map((value) => new GoogleCloudMlV1beta1Hyperparam
eterOutput.fromJson(value)).toList(); | 2321 trials = _json["trials"].map((value) => new GoogleCloudMlV1beta1Hyperparam
eterOutput.fromJson(value)).toList(); |
| 2317 } | 2322 } |
| 2318 } | 2323 } |
| 2319 | 2324 |
| 2320 core.Map toJson() { | 2325 core.Map toJson() { |
| 2321 var _json = new core.Map(); | 2326 var _json = new core.Map(); |
| 2322 if (completedTrialCount != null) { | 2327 if (completedTrialCount != null) { |
| 2323 _json["completedTrialCount"] = completedTrialCount; | 2328 _json["completedTrialCount"] = completedTrialCount; |
| 2324 } | 2329 } |
| 2330 if (consumedMlUnits != null) { |
| 2331 _json["consumedMlUnits"] = consumedMlUnits; |
| 2332 } |
| 2325 if (trials != null) { | 2333 if (trials != null) { |
| 2326 _json["trials"] = trials.map((value) => (value).toJson()).toList(); | 2334 _json["trials"] = trials.map((value) => (value).toJson()).toList(); |
| 2327 } | 2335 } |
| 2328 return _json; | 2336 return _json; |
| 2329 } | 2337 } |
| 2330 } | 2338 } |
| 2331 | 2339 |
| 2332 /** | 2340 /** |
| 2333 * Represents a version of the model. | 2341 * Represents a version of the model. |
| 2334 * | 2342 * |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2655 } | 2663 } |
| 2656 if (details != null) { | 2664 if (details != null) { |
| 2657 _json["details"] = details; | 2665 _json["details"] = details; |
| 2658 } | 2666 } |
| 2659 if (message != null) { | 2667 if (message != null) { |
| 2660 _json["message"] = message; | 2668 _json["message"] = message; |
| 2661 } | 2669 } |
| 2662 return _json; | 2670 return _json; |
| 2663 } | 2671 } |
| 2664 } | 2672 } |
| OLD | NEW |