Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: generated/googleapis_beta/test/ml/v1beta1_test.dart

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis_beta.ml.v1beta1.test; 1 library googleapis_beta.ml.v1beta1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 checkGoogleCloudMlV1beta1GetConfigResponse(api.GoogleCloudMlV1beta1GetConfigResp onse o) { 125 checkGoogleCloudMlV1beta1GetConfigResponse(api.GoogleCloudMlV1beta1GetConfigResp onse o) {
126 buildCounterGoogleCloudMlV1beta1GetConfigResponse++; 126 buildCounterGoogleCloudMlV1beta1GetConfigResponse++;
127 if (buildCounterGoogleCloudMlV1beta1GetConfigResponse < 3) { 127 if (buildCounterGoogleCloudMlV1beta1GetConfigResponse < 3) {
128 unittest.expect(o.serviceAccount, unittest.equals('foo')); 128 unittest.expect(o.serviceAccount, unittest.equals('foo'));
129 unittest.expect(o.serviceAccountProject, unittest.equals('foo')); 129 unittest.expect(o.serviceAccountProject, unittest.equals('foo'));
130 } 130 }
131 buildCounterGoogleCloudMlV1beta1GetConfigResponse--; 131 buildCounterGoogleCloudMlV1beta1GetConfigResponse--;
132 } 132 }
133 133
134 buildUnnamed3145() { 134 buildUnnamed3132() {
135 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperparamet erMetric>(); 135 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperparamet erMetric>();
136 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric()); 136 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric());
137 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric()); 137 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric());
138 return o; 138 return o;
139 } 139 }
140 140
141 checkUnnamed3145(core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperpara meterMetric> o) { 141 checkUnnamed3132(core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperpara meterMetric> o) {
142 unittest.expect(o, unittest.hasLength(2)); 142 unittest.expect(o, unittest.hasLength(2));
143 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[0]); 143 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[0]);
144 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[1]); 144 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[1]);
145 } 145 }
146 146
147 buildUnnamed3146() { 147 buildUnnamed3133() {
148 var o = new core.Map<core.String, core.String>(); 148 var o = new core.Map<core.String, core.String>();
149 o["x"] = "foo"; 149 o["x"] = "foo";
150 o["y"] = "foo"; 150 o["y"] = "foo";
151 return o; 151 return o;
152 } 152 }
153 153
154 checkUnnamed3146(core.Map<core.String, core.String> o) { 154 checkUnnamed3133(core.Map<core.String, core.String> o) {
155 unittest.expect(o, unittest.hasLength(2)); 155 unittest.expect(o, unittest.hasLength(2));
156 unittest.expect(o["x"], unittest.equals('foo')); 156 unittest.expect(o["x"], unittest.equals('foo'));
157 unittest.expect(o["y"], unittest.equals('foo')); 157 unittest.expect(o["y"], unittest.equals('foo'));
158 } 158 }
159 159
160 core.int buildCounterGoogleCloudMlV1beta1HyperparameterOutput = 0; 160 core.int buildCounterGoogleCloudMlV1beta1HyperparameterOutput = 0;
161 buildGoogleCloudMlV1beta1HyperparameterOutput() { 161 buildGoogleCloudMlV1beta1HyperparameterOutput() {
162 var o = new api.GoogleCloudMlV1beta1HyperparameterOutput(); 162 var o = new api.GoogleCloudMlV1beta1HyperparameterOutput();
163 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++; 163 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++;
164 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) { 164 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) {
165 o.allMetrics = buildUnnamed3145(); 165 o.allMetrics = buildUnnamed3132();
166 o.finalMetric = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterM etric(); 166 o.finalMetric = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterM etric();
167 o.hyperparameters = buildUnnamed3146(); 167 o.hyperparameters = buildUnnamed3133();
168 o.trialId = "foo"; 168 o.trialId = "foo";
169 } 169 }
170 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--; 170 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--;
171 return o; 171 return o;
172 } 172 }
173 173
174 checkGoogleCloudMlV1beta1HyperparameterOutput(api.GoogleCloudMlV1beta1Hyperparam eterOutput o) { 174 checkGoogleCloudMlV1beta1HyperparameterOutput(api.GoogleCloudMlV1beta1Hyperparam eterOutput o) {
175 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++; 175 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++;
176 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) { 176 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) {
177 checkUnnamed3145(o.allMetrics); 177 checkUnnamed3132(o.allMetrics);
178 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o.finalMet ric); 178 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o.finalMet ric);
179 checkUnnamed3146(o.hyperparameters); 179 checkUnnamed3133(o.hyperparameters);
180 unittest.expect(o.trialId, unittest.equals('foo')); 180 unittest.expect(o.trialId, unittest.equals('foo'));
181 } 181 }
182 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--; 182 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--;
183 } 183 }
184 184
185 buildUnnamed3147() { 185 buildUnnamed3134() {
186 var o = new core.List<api.GoogleCloudMlV1beta1ParameterSpec>(); 186 var o = new core.List<api.GoogleCloudMlV1beta1ParameterSpec>();
187 o.add(buildGoogleCloudMlV1beta1ParameterSpec()); 187 o.add(buildGoogleCloudMlV1beta1ParameterSpec());
188 o.add(buildGoogleCloudMlV1beta1ParameterSpec()); 188 o.add(buildGoogleCloudMlV1beta1ParameterSpec());
189 return o; 189 return o;
190 } 190 }
191 191
192 checkUnnamed3147(core.List<api.GoogleCloudMlV1beta1ParameterSpec> o) { 192 checkUnnamed3134(core.List<api.GoogleCloudMlV1beta1ParameterSpec> o) {
193 unittest.expect(o, unittest.hasLength(2)); 193 unittest.expect(o, unittest.hasLength(2));
194 checkGoogleCloudMlV1beta1ParameterSpec(o[0]); 194 checkGoogleCloudMlV1beta1ParameterSpec(o[0]);
195 checkGoogleCloudMlV1beta1ParameterSpec(o[1]); 195 checkGoogleCloudMlV1beta1ParameterSpec(o[1]);
196 } 196 }
197 197
198 core.int buildCounterGoogleCloudMlV1beta1HyperparameterSpec = 0; 198 core.int buildCounterGoogleCloudMlV1beta1HyperparameterSpec = 0;
199 buildGoogleCloudMlV1beta1HyperparameterSpec() { 199 buildGoogleCloudMlV1beta1HyperparameterSpec() {
200 var o = new api.GoogleCloudMlV1beta1HyperparameterSpec(); 200 var o = new api.GoogleCloudMlV1beta1HyperparameterSpec();
201 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++; 201 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++;
202 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) { 202 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) {
203 o.goal = "foo"; 203 o.goal = "foo";
204 o.maxParallelTrials = 42; 204 o.maxParallelTrials = 42;
205 o.maxTrials = 42; 205 o.maxTrials = 42;
206 o.params = buildUnnamed3147(); 206 o.params = buildUnnamed3134();
207 } 207 }
208 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--; 208 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--;
209 return o; 209 return o;
210 } 210 }
211 211
212 checkGoogleCloudMlV1beta1HyperparameterSpec(api.GoogleCloudMlV1beta1Hyperparamet erSpec o) { 212 checkGoogleCloudMlV1beta1HyperparameterSpec(api.GoogleCloudMlV1beta1Hyperparamet erSpec o) {
213 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++; 213 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++;
214 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) { 214 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) {
215 unittest.expect(o.goal, unittest.equals('foo')); 215 unittest.expect(o.goal, unittest.equals('foo'));
216 unittest.expect(o.maxParallelTrials, unittest.equals(42)); 216 unittest.expect(o.maxParallelTrials, unittest.equals(42));
217 unittest.expect(o.maxTrials, unittest.equals(42)); 217 unittest.expect(o.maxTrials, unittest.equals(42));
218 checkUnnamed3147(o.params); 218 checkUnnamed3134(o.params);
219 } 219 }
220 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--; 220 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--;
221 } 221 }
222 222
223 core.int buildCounterGoogleCloudMlV1beta1Job = 0; 223 core.int buildCounterGoogleCloudMlV1beta1Job = 0;
224 buildGoogleCloudMlV1beta1Job() { 224 buildGoogleCloudMlV1beta1Job() {
225 var o = new api.GoogleCloudMlV1beta1Job(); 225 var o = new api.GoogleCloudMlV1beta1Job();
226 buildCounterGoogleCloudMlV1beta1Job++; 226 buildCounterGoogleCloudMlV1beta1Job++;
227 if (buildCounterGoogleCloudMlV1beta1Job < 3) { 227 if (buildCounterGoogleCloudMlV1beta1Job < 3) {
228 o.createTime = "foo"; 228 o.createTime = "foo";
(...skipping 21 matching lines...) Expand all
250 checkGoogleCloudMlV1beta1PredictionInput(o.predictionInput); 250 checkGoogleCloudMlV1beta1PredictionInput(o.predictionInput);
251 checkGoogleCloudMlV1beta1PredictionOutput(o.predictionOutput); 251 checkGoogleCloudMlV1beta1PredictionOutput(o.predictionOutput);
252 unittest.expect(o.startTime, unittest.equals('foo')); 252 unittest.expect(o.startTime, unittest.equals('foo'));
253 unittest.expect(o.state, unittest.equals('foo')); 253 unittest.expect(o.state, unittest.equals('foo'));
254 checkGoogleCloudMlV1beta1TrainingInput(o.trainingInput); 254 checkGoogleCloudMlV1beta1TrainingInput(o.trainingInput);
255 checkGoogleCloudMlV1beta1TrainingOutput(o.trainingOutput); 255 checkGoogleCloudMlV1beta1TrainingOutput(o.trainingOutput);
256 } 256 }
257 buildCounterGoogleCloudMlV1beta1Job--; 257 buildCounterGoogleCloudMlV1beta1Job--;
258 } 258 }
259 259
260 buildUnnamed3148() { 260 buildUnnamed3135() {
261 var o = new core.List<api.GoogleCloudMlV1beta1Job>(); 261 var o = new core.List<api.GoogleCloudMlV1beta1Job>();
262 o.add(buildGoogleCloudMlV1beta1Job()); 262 o.add(buildGoogleCloudMlV1beta1Job());
263 o.add(buildGoogleCloudMlV1beta1Job()); 263 o.add(buildGoogleCloudMlV1beta1Job());
264 return o; 264 return o;
265 } 265 }
266 266
267 checkUnnamed3148(core.List<api.GoogleCloudMlV1beta1Job> o) { 267 checkUnnamed3135(core.List<api.GoogleCloudMlV1beta1Job> o) {
268 unittest.expect(o, unittest.hasLength(2)); 268 unittest.expect(o, unittest.hasLength(2));
269 checkGoogleCloudMlV1beta1Job(o[0]); 269 checkGoogleCloudMlV1beta1Job(o[0]);
270 checkGoogleCloudMlV1beta1Job(o[1]); 270 checkGoogleCloudMlV1beta1Job(o[1]);
271 } 271 }
272 272
273 core.int buildCounterGoogleCloudMlV1beta1ListJobsResponse = 0; 273 core.int buildCounterGoogleCloudMlV1beta1ListJobsResponse = 0;
274 buildGoogleCloudMlV1beta1ListJobsResponse() { 274 buildGoogleCloudMlV1beta1ListJobsResponse() {
275 var o = new api.GoogleCloudMlV1beta1ListJobsResponse(); 275 var o = new api.GoogleCloudMlV1beta1ListJobsResponse();
276 buildCounterGoogleCloudMlV1beta1ListJobsResponse++; 276 buildCounterGoogleCloudMlV1beta1ListJobsResponse++;
277 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) { 277 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) {
278 o.jobs = buildUnnamed3148(); 278 o.jobs = buildUnnamed3135();
279 o.nextPageToken = "foo"; 279 o.nextPageToken = "foo";
280 } 280 }
281 buildCounterGoogleCloudMlV1beta1ListJobsResponse--; 281 buildCounterGoogleCloudMlV1beta1ListJobsResponse--;
282 return o; 282 return o;
283 } 283 }
284 284
285 checkGoogleCloudMlV1beta1ListJobsResponse(api.GoogleCloudMlV1beta1ListJobsRespon se o) { 285 checkGoogleCloudMlV1beta1ListJobsResponse(api.GoogleCloudMlV1beta1ListJobsRespon se o) {
286 buildCounterGoogleCloudMlV1beta1ListJobsResponse++; 286 buildCounterGoogleCloudMlV1beta1ListJobsResponse++;
287 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) { 287 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) {
288 checkUnnamed3148(o.jobs); 288 checkUnnamed3135(o.jobs);
289 unittest.expect(o.nextPageToken, unittest.equals('foo')); 289 unittest.expect(o.nextPageToken, unittest.equals('foo'));
290 } 290 }
291 buildCounterGoogleCloudMlV1beta1ListJobsResponse--; 291 buildCounterGoogleCloudMlV1beta1ListJobsResponse--;
292 } 292 }
293 293
294 buildUnnamed3149() { 294 buildUnnamed3136() {
295 var o = new core.List<api.GoogleCloudMlV1beta1Model>(); 295 var o = new core.List<api.GoogleCloudMlV1beta1Model>();
296 o.add(buildGoogleCloudMlV1beta1Model()); 296 o.add(buildGoogleCloudMlV1beta1Model());
297 o.add(buildGoogleCloudMlV1beta1Model()); 297 o.add(buildGoogleCloudMlV1beta1Model());
298 return o; 298 return o;
299 } 299 }
300 300
301 checkUnnamed3149(core.List<api.GoogleCloudMlV1beta1Model> o) { 301 checkUnnamed3136(core.List<api.GoogleCloudMlV1beta1Model> o) {
302 unittest.expect(o, unittest.hasLength(2)); 302 unittest.expect(o, unittest.hasLength(2));
303 checkGoogleCloudMlV1beta1Model(o[0]); 303 checkGoogleCloudMlV1beta1Model(o[0]);
304 checkGoogleCloudMlV1beta1Model(o[1]); 304 checkGoogleCloudMlV1beta1Model(o[1]);
305 } 305 }
306 306
307 core.int buildCounterGoogleCloudMlV1beta1ListModelsResponse = 0; 307 core.int buildCounterGoogleCloudMlV1beta1ListModelsResponse = 0;
308 buildGoogleCloudMlV1beta1ListModelsResponse() { 308 buildGoogleCloudMlV1beta1ListModelsResponse() {
309 var o = new api.GoogleCloudMlV1beta1ListModelsResponse(); 309 var o = new api.GoogleCloudMlV1beta1ListModelsResponse();
310 buildCounterGoogleCloudMlV1beta1ListModelsResponse++; 310 buildCounterGoogleCloudMlV1beta1ListModelsResponse++;
311 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) { 311 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) {
312 o.models = buildUnnamed3149(); 312 o.models = buildUnnamed3136();
313 o.nextPageToken = "foo"; 313 o.nextPageToken = "foo";
314 } 314 }
315 buildCounterGoogleCloudMlV1beta1ListModelsResponse--; 315 buildCounterGoogleCloudMlV1beta1ListModelsResponse--;
316 return o; 316 return o;
317 } 317 }
318 318
319 checkGoogleCloudMlV1beta1ListModelsResponse(api.GoogleCloudMlV1beta1ListModelsRe sponse o) { 319 checkGoogleCloudMlV1beta1ListModelsResponse(api.GoogleCloudMlV1beta1ListModelsRe sponse o) {
320 buildCounterGoogleCloudMlV1beta1ListModelsResponse++; 320 buildCounterGoogleCloudMlV1beta1ListModelsResponse++;
321 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) { 321 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) {
322 checkUnnamed3149(o.models); 322 checkUnnamed3136(o.models);
323 unittest.expect(o.nextPageToken, unittest.equals('foo')); 323 unittest.expect(o.nextPageToken, unittest.equals('foo'));
324 } 324 }
325 buildCounterGoogleCloudMlV1beta1ListModelsResponse--; 325 buildCounterGoogleCloudMlV1beta1ListModelsResponse--;
326 } 326 }
327 327
328 buildUnnamed3150() { 328 buildUnnamed3137() {
329 var o = new core.List<api.GoogleCloudMlV1beta1Version>(); 329 var o = new core.List<api.GoogleCloudMlV1beta1Version>();
330 o.add(buildGoogleCloudMlV1beta1Version()); 330 o.add(buildGoogleCloudMlV1beta1Version());
331 o.add(buildGoogleCloudMlV1beta1Version()); 331 o.add(buildGoogleCloudMlV1beta1Version());
332 return o; 332 return o;
333 } 333 }
334 334
335 checkUnnamed3150(core.List<api.GoogleCloudMlV1beta1Version> o) { 335 checkUnnamed3137(core.List<api.GoogleCloudMlV1beta1Version> o) {
336 unittest.expect(o, unittest.hasLength(2)); 336 unittest.expect(o, unittest.hasLength(2));
337 checkGoogleCloudMlV1beta1Version(o[0]); 337 checkGoogleCloudMlV1beta1Version(o[0]);
338 checkGoogleCloudMlV1beta1Version(o[1]); 338 checkGoogleCloudMlV1beta1Version(o[1]);
339 } 339 }
340 340
341 core.int buildCounterGoogleCloudMlV1beta1ListVersionsResponse = 0; 341 core.int buildCounterGoogleCloudMlV1beta1ListVersionsResponse = 0;
342 buildGoogleCloudMlV1beta1ListVersionsResponse() { 342 buildGoogleCloudMlV1beta1ListVersionsResponse() {
343 var o = new api.GoogleCloudMlV1beta1ListVersionsResponse(); 343 var o = new api.GoogleCloudMlV1beta1ListVersionsResponse();
344 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++; 344 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++;
345 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) { 345 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) {
346 o.nextPageToken = "foo"; 346 o.nextPageToken = "foo";
347 o.versions = buildUnnamed3150(); 347 o.versions = buildUnnamed3137();
348 } 348 }
349 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--; 349 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--;
350 return o; 350 return o;
351 } 351 }
352 352
353 checkGoogleCloudMlV1beta1ListVersionsResponse(api.GoogleCloudMlV1beta1ListVersio nsResponse o) { 353 checkGoogleCloudMlV1beta1ListVersionsResponse(api.GoogleCloudMlV1beta1ListVersio nsResponse o) {
354 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++; 354 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++;
355 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) { 355 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) {
356 unittest.expect(o.nextPageToken, unittest.equals('foo')); 356 unittest.expect(o.nextPageToken, unittest.equals('foo'));
357 checkUnnamed3150(o.versions); 357 checkUnnamed3137(o.versions);
358 } 358 }
359 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--; 359 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--;
360 } 360 }
361 361
362 buildUnnamed3138() {
363 var o = new core.List<core.String>();
364 o.add("foo");
365 o.add("foo");
366 return o;
367 }
368
369 checkUnnamed3138(core.List<core.String> o) {
370 unittest.expect(o, unittest.hasLength(2));
371 unittest.expect(o[0], unittest.equals('foo'));
372 unittest.expect(o[1], unittest.equals('foo'));
373 }
374
362 core.int buildCounterGoogleCloudMlV1beta1Model = 0; 375 core.int buildCounterGoogleCloudMlV1beta1Model = 0;
363 buildGoogleCloudMlV1beta1Model() { 376 buildGoogleCloudMlV1beta1Model() {
364 var o = new api.GoogleCloudMlV1beta1Model(); 377 var o = new api.GoogleCloudMlV1beta1Model();
365 buildCounterGoogleCloudMlV1beta1Model++; 378 buildCounterGoogleCloudMlV1beta1Model++;
366 if (buildCounterGoogleCloudMlV1beta1Model < 3) { 379 if (buildCounterGoogleCloudMlV1beta1Model < 3) {
367 o.defaultVersion = buildGoogleCloudMlV1beta1Version(); 380 o.defaultVersion = buildGoogleCloudMlV1beta1Version();
368 o.description = "foo"; 381 o.description = "foo";
369 o.name = "foo"; 382 o.name = "foo";
383 o.regions = buildUnnamed3138();
370 } 384 }
371 buildCounterGoogleCloudMlV1beta1Model--; 385 buildCounterGoogleCloudMlV1beta1Model--;
372 return o; 386 return o;
373 } 387 }
374 388
375 checkGoogleCloudMlV1beta1Model(api.GoogleCloudMlV1beta1Model o) { 389 checkGoogleCloudMlV1beta1Model(api.GoogleCloudMlV1beta1Model o) {
376 buildCounterGoogleCloudMlV1beta1Model++; 390 buildCounterGoogleCloudMlV1beta1Model++;
377 if (buildCounterGoogleCloudMlV1beta1Model < 3) { 391 if (buildCounterGoogleCloudMlV1beta1Model < 3) {
378 checkGoogleCloudMlV1beta1Version(o.defaultVersion); 392 checkGoogleCloudMlV1beta1Version(o.defaultVersion);
379 unittest.expect(o.description, unittest.equals('foo')); 393 unittest.expect(o.description, unittest.equals('foo'));
380 unittest.expect(o.name, unittest.equals('foo')); 394 unittest.expect(o.name, unittest.equals('foo'));
395 checkUnnamed3138(o.regions);
381 } 396 }
382 buildCounterGoogleCloudMlV1beta1Model--; 397 buildCounterGoogleCloudMlV1beta1Model--;
383 } 398 }
384 399
385 core.int buildCounterGoogleCloudMlV1beta1OperationMetadata = 0; 400 core.int buildCounterGoogleCloudMlV1beta1OperationMetadata = 0;
386 buildGoogleCloudMlV1beta1OperationMetadata() { 401 buildGoogleCloudMlV1beta1OperationMetadata() {
387 var o = new api.GoogleCloudMlV1beta1OperationMetadata(); 402 var o = new api.GoogleCloudMlV1beta1OperationMetadata();
388 buildCounterGoogleCloudMlV1beta1OperationMetadata++; 403 buildCounterGoogleCloudMlV1beta1OperationMetadata++;
389 if (buildCounterGoogleCloudMlV1beta1OperationMetadata < 3) { 404 if (buildCounterGoogleCloudMlV1beta1OperationMetadata < 3) {
390 o.createTime = "foo"; 405 o.createTime = "foo";
(...skipping 15 matching lines...) Expand all
406 unittest.expect(o.endTime, unittest.equals('foo')); 421 unittest.expect(o.endTime, unittest.equals('foo'));
407 unittest.expect(o.isCancellationRequested, unittest.isTrue); 422 unittest.expect(o.isCancellationRequested, unittest.isTrue);
408 unittest.expect(o.modelName, unittest.equals('foo')); 423 unittest.expect(o.modelName, unittest.equals('foo'));
409 unittest.expect(o.operationType, unittest.equals('foo')); 424 unittest.expect(o.operationType, unittest.equals('foo'));
410 unittest.expect(o.startTime, unittest.equals('foo')); 425 unittest.expect(o.startTime, unittest.equals('foo'));
411 checkGoogleCloudMlV1beta1Version(o.version); 426 checkGoogleCloudMlV1beta1Version(o.version);
412 } 427 }
413 buildCounterGoogleCloudMlV1beta1OperationMetadata--; 428 buildCounterGoogleCloudMlV1beta1OperationMetadata--;
414 } 429 }
415 430
416 buildUnnamed3151() { 431 buildUnnamed3139() {
417 var o = new core.List<core.String>(); 432 var o = new core.List<core.String>();
418 o.add("foo"); 433 o.add("foo");
419 o.add("foo"); 434 o.add("foo");
420 return o; 435 return o;
421 } 436 }
422 437
423 checkUnnamed3151(core.List<core.String> o) { 438 checkUnnamed3139(core.List<core.String> o) {
424 unittest.expect(o, unittest.hasLength(2)); 439 unittest.expect(o, unittest.hasLength(2));
425 unittest.expect(o[0], unittest.equals('foo')); 440 unittest.expect(o[0], unittest.equals('foo'));
426 unittest.expect(o[1], unittest.equals('foo')); 441 unittest.expect(o[1], unittest.equals('foo'));
427 } 442 }
428 443
429 buildUnnamed3152() { 444 buildUnnamed3140() {
430 var o = new core.List<core.double>(); 445 var o = new core.List<core.double>();
431 o.add(42.0); 446 o.add(42.0);
432 o.add(42.0); 447 o.add(42.0);
433 return o; 448 return o;
434 } 449 }
435 450
436 checkUnnamed3152(core.List<core.double> o) { 451 checkUnnamed3140(core.List<core.double> o) {
437 unittest.expect(o, unittest.hasLength(2)); 452 unittest.expect(o, unittest.hasLength(2));
438 unittest.expect(o[0], unittest.equals(42.0)); 453 unittest.expect(o[0], unittest.equals(42.0));
439 unittest.expect(o[1], unittest.equals(42.0)); 454 unittest.expect(o[1], unittest.equals(42.0));
440 } 455 }
441 456
442 core.int buildCounterGoogleCloudMlV1beta1ParameterSpec = 0; 457 core.int buildCounterGoogleCloudMlV1beta1ParameterSpec = 0;
443 buildGoogleCloudMlV1beta1ParameterSpec() { 458 buildGoogleCloudMlV1beta1ParameterSpec() {
444 var o = new api.GoogleCloudMlV1beta1ParameterSpec(); 459 var o = new api.GoogleCloudMlV1beta1ParameterSpec();
445 buildCounterGoogleCloudMlV1beta1ParameterSpec++; 460 buildCounterGoogleCloudMlV1beta1ParameterSpec++;
446 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { 461 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) {
447 o.categoricalValues = buildUnnamed3151(); 462 o.categoricalValues = buildUnnamed3139();
448 o.discreteValues = buildUnnamed3152(); 463 o.discreteValues = buildUnnamed3140();
449 o.maxValue = 42.0; 464 o.maxValue = 42.0;
450 o.minValue = 42.0; 465 o.minValue = 42.0;
451 o.parameterName = "foo"; 466 o.parameterName = "foo";
452 o.scaleType = "foo"; 467 o.scaleType = "foo";
453 o.type = "foo"; 468 o.type = "foo";
454 } 469 }
455 buildCounterGoogleCloudMlV1beta1ParameterSpec--; 470 buildCounterGoogleCloudMlV1beta1ParameterSpec--;
456 return o; 471 return o;
457 } 472 }
458 473
459 checkGoogleCloudMlV1beta1ParameterSpec(api.GoogleCloudMlV1beta1ParameterSpec o) { 474 checkGoogleCloudMlV1beta1ParameterSpec(api.GoogleCloudMlV1beta1ParameterSpec o) {
460 buildCounterGoogleCloudMlV1beta1ParameterSpec++; 475 buildCounterGoogleCloudMlV1beta1ParameterSpec++;
461 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { 476 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) {
462 checkUnnamed3151(o.categoricalValues); 477 checkUnnamed3139(o.categoricalValues);
463 checkUnnamed3152(o.discreteValues); 478 checkUnnamed3140(o.discreteValues);
464 unittest.expect(o.maxValue, unittest.equals(42.0)); 479 unittest.expect(o.maxValue, unittest.equals(42.0));
465 unittest.expect(o.minValue, unittest.equals(42.0)); 480 unittest.expect(o.minValue, unittest.equals(42.0));
466 unittest.expect(o.parameterName, unittest.equals('foo')); 481 unittest.expect(o.parameterName, unittest.equals('foo'));
467 unittest.expect(o.scaleType, unittest.equals('foo')); 482 unittest.expect(o.scaleType, unittest.equals('foo'));
468 unittest.expect(o.type, unittest.equals('foo')); 483 unittest.expect(o.type, unittest.equals('foo'));
469 } 484 }
470 buildCounterGoogleCloudMlV1beta1ParameterSpec--; 485 buildCounterGoogleCloudMlV1beta1ParameterSpec--;
471 } 486 }
472 487
473 core.int buildCounterGoogleCloudMlV1beta1PredictRequest = 0; 488 core.int buildCounterGoogleCloudMlV1beta1PredictRequest = 0;
474 buildGoogleCloudMlV1beta1PredictRequest() { 489 buildGoogleCloudMlV1beta1PredictRequest() {
475 var o = new api.GoogleCloudMlV1beta1PredictRequest(); 490 var o = new api.GoogleCloudMlV1beta1PredictRequest();
476 buildCounterGoogleCloudMlV1beta1PredictRequest++; 491 buildCounterGoogleCloudMlV1beta1PredictRequest++;
477 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { 492 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) {
478 o.httpBody = buildGoogleApiHttpBody(); 493 o.httpBody = buildGoogleApiHttpBody();
479 } 494 }
480 buildCounterGoogleCloudMlV1beta1PredictRequest--; 495 buildCounterGoogleCloudMlV1beta1PredictRequest--;
481 return o; 496 return o;
482 } 497 }
483 498
484 checkGoogleCloudMlV1beta1PredictRequest(api.GoogleCloudMlV1beta1PredictRequest o ) { 499 checkGoogleCloudMlV1beta1PredictRequest(api.GoogleCloudMlV1beta1PredictRequest o ) {
485 buildCounterGoogleCloudMlV1beta1PredictRequest++; 500 buildCounterGoogleCloudMlV1beta1PredictRequest++;
486 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { 501 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) {
487 checkGoogleApiHttpBody(o.httpBody); 502 checkGoogleApiHttpBody(o.httpBody);
488 } 503 }
489 buildCounterGoogleCloudMlV1beta1PredictRequest--; 504 buildCounterGoogleCloudMlV1beta1PredictRequest--;
490 } 505 }
491 506
492 buildUnnamed3153() { 507 buildUnnamed3141() {
493 var o = new core.List<core.String>(); 508 var o = new core.List<core.String>();
494 o.add("foo"); 509 o.add("foo");
495 o.add("foo"); 510 o.add("foo");
496 return o; 511 return o;
497 } 512 }
498 513
499 checkUnnamed3153(core.List<core.String> o) { 514 checkUnnamed3141(core.List<core.String> o) {
500 unittest.expect(o, unittest.hasLength(2)); 515 unittest.expect(o, unittest.hasLength(2));
501 unittest.expect(o[0], unittest.equals('foo')); 516 unittest.expect(o[0], unittest.equals('foo'));
502 unittest.expect(o[1], unittest.equals('foo')); 517 unittest.expect(o[1], unittest.equals('foo'));
503 } 518 }
504 519
505 core.int buildCounterGoogleCloudMlV1beta1PredictionInput = 0; 520 core.int buildCounterGoogleCloudMlV1beta1PredictionInput = 0;
506 buildGoogleCloudMlV1beta1PredictionInput() { 521 buildGoogleCloudMlV1beta1PredictionInput() {
507 var o = new api.GoogleCloudMlV1beta1PredictionInput(); 522 var o = new api.GoogleCloudMlV1beta1PredictionInput();
508 buildCounterGoogleCloudMlV1beta1PredictionInput++; 523 buildCounterGoogleCloudMlV1beta1PredictionInput++;
509 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { 524 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) {
510 o.dataFormat = "foo"; 525 o.dataFormat = "foo";
511 o.inputPaths = buildUnnamed3153(); 526 o.inputPaths = buildUnnamed3141();
512 o.maxWorkerCount = "foo"; 527 o.maxWorkerCount = "foo";
513 o.modelName = "foo"; 528 o.modelName = "foo";
514 o.outputPath = "foo"; 529 o.outputPath = "foo";
515 o.region = "foo"; 530 o.region = "foo";
531 o.runtimeVersion = "foo";
516 o.versionName = "foo"; 532 o.versionName = "foo";
517 } 533 }
518 buildCounterGoogleCloudMlV1beta1PredictionInput--; 534 buildCounterGoogleCloudMlV1beta1PredictionInput--;
519 return o; 535 return o;
520 } 536 }
521 537
522 checkGoogleCloudMlV1beta1PredictionInput(api.GoogleCloudMlV1beta1PredictionInput o) { 538 checkGoogleCloudMlV1beta1PredictionInput(api.GoogleCloudMlV1beta1PredictionInput o) {
523 buildCounterGoogleCloudMlV1beta1PredictionInput++; 539 buildCounterGoogleCloudMlV1beta1PredictionInput++;
524 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { 540 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) {
525 unittest.expect(o.dataFormat, unittest.equals('foo')); 541 unittest.expect(o.dataFormat, unittest.equals('foo'));
526 checkUnnamed3153(o.inputPaths); 542 checkUnnamed3141(o.inputPaths);
527 unittest.expect(o.maxWorkerCount, unittest.equals('foo')); 543 unittest.expect(o.maxWorkerCount, unittest.equals('foo'));
528 unittest.expect(o.modelName, unittest.equals('foo')); 544 unittest.expect(o.modelName, unittest.equals('foo'));
529 unittest.expect(o.outputPath, unittest.equals('foo')); 545 unittest.expect(o.outputPath, unittest.equals('foo'));
530 unittest.expect(o.region, unittest.equals('foo')); 546 unittest.expect(o.region, unittest.equals('foo'));
547 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
531 unittest.expect(o.versionName, unittest.equals('foo')); 548 unittest.expect(o.versionName, unittest.equals('foo'));
532 } 549 }
533 buildCounterGoogleCloudMlV1beta1PredictionInput--; 550 buildCounterGoogleCloudMlV1beta1PredictionInput--;
534 } 551 }
535 552
536 core.int buildCounterGoogleCloudMlV1beta1PredictionOutput = 0; 553 core.int buildCounterGoogleCloudMlV1beta1PredictionOutput = 0;
537 buildGoogleCloudMlV1beta1PredictionOutput() { 554 buildGoogleCloudMlV1beta1PredictionOutput() {
538 var o = new api.GoogleCloudMlV1beta1PredictionOutput(); 555 var o = new api.GoogleCloudMlV1beta1PredictionOutput();
539 buildCounterGoogleCloudMlV1beta1PredictionOutput++; 556 buildCounterGoogleCloudMlV1beta1PredictionOutput++;
540 if (buildCounterGoogleCloudMlV1beta1PredictionOutput < 3) { 557 if (buildCounterGoogleCloudMlV1beta1PredictionOutput < 3) {
541 o.errorCount = "foo"; 558 o.errorCount = "foo";
559 o.nodeHours = 42.0;
542 o.outputPath = "foo"; 560 o.outputPath = "foo";
543 o.predictionCount = "foo"; 561 o.predictionCount = "foo";
544 } 562 }
545 buildCounterGoogleCloudMlV1beta1PredictionOutput--; 563 buildCounterGoogleCloudMlV1beta1PredictionOutput--;
546 return o; 564 return o;
547 } 565 }
548 566
549 checkGoogleCloudMlV1beta1PredictionOutput(api.GoogleCloudMlV1beta1PredictionOutp ut o) { 567 checkGoogleCloudMlV1beta1PredictionOutput(api.GoogleCloudMlV1beta1PredictionOutp ut o) {
550 buildCounterGoogleCloudMlV1beta1PredictionOutput++; 568 buildCounterGoogleCloudMlV1beta1PredictionOutput++;
551 if (buildCounterGoogleCloudMlV1beta1PredictionOutput < 3) { 569 if (buildCounterGoogleCloudMlV1beta1PredictionOutput < 3) {
552 unittest.expect(o.errorCount, unittest.equals('foo')); 570 unittest.expect(o.errorCount, unittest.equals('foo'));
571 unittest.expect(o.nodeHours, unittest.equals(42.0));
553 unittest.expect(o.outputPath, unittest.equals('foo')); 572 unittest.expect(o.outputPath, unittest.equals('foo'));
554 unittest.expect(o.predictionCount, unittest.equals('foo')); 573 unittest.expect(o.predictionCount, unittest.equals('foo'));
555 } 574 }
556 buildCounterGoogleCloudMlV1beta1PredictionOutput--; 575 buildCounterGoogleCloudMlV1beta1PredictionOutput--;
557 } 576 }
558 577
559 core.int buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest = 0; 578 core.int buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest = 0;
560 buildGoogleCloudMlV1beta1SetDefaultVersionRequest() { 579 buildGoogleCloudMlV1beta1SetDefaultVersionRequest() {
561 var o = new api.GoogleCloudMlV1beta1SetDefaultVersionRequest(); 580 var o = new api.GoogleCloudMlV1beta1SetDefaultVersionRequest();
562 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++; 581 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++;
563 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) { 582 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) {
564 } 583 }
565 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--; 584 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--;
566 return o; 585 return o;
567 } 586 }
568 587
569 checkGoogleCloudMlV1beta1SetDefaultVersionRequest(api.GoogleCloudMlV1beta1SetDef aultVersionRequest o) { 588 checkGoogleCloudMlV1beta1SetDefaultVersionRequest(api.GoogleCloudMlV1beta1SetDef aultVersionRequest o) {
570 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++; 589 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++;
571 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) { 590 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) {
572 } 591 }
573 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--; 592 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--;
574 } 593 }
575 594
576 buildUnnamed3154() { 595 buildUnnamed3142() {
577 var o = new core.List<core.String>(); 596 var o = new core.List<core.String>();
578 o.add("foo"); 597 o.add("foo");
579 o.add("foo"); 598 o.add("foo");
580 return o; 599 return o;
581 } 600 }
582 601
583 checkUnnamed3154(core.List<core.String> o) { 602 checkUnnamed3142(core.List<core.String> o) {
584 unittest.expect(o, unittest.hasLength(2)); 603 unittest.expect(o, unittest.hasLength(2));
585 unittest.expect(o[0], unittest.equals('foo')); 604 unittest.expect(o[0], unittest.equals('foo'));
586 unittest.expect(o[1], unittest.equals('foo')); 605 unittest.expect(o[1], unittest.equals('foo'));
587 } 606 }
588 607
589 buildUnnamed3155() { 608 buildUnnamed3143() {
590 var o = new core.List<core.String>(); 609 var o = new core.List<core.String>();
591 o.add("foo"); 610 o.add("foo");
592 o.add("foo"); 611 o.add("foo");
593 return o; 612 return o;
594 } 613 }
595 614
596 checkUnnamed3155(core.List<core.String> o) { 615 checkUnnamed3143(core.List<core.String> o) {
597 unittest.expect(o, unittest.hasLength(2)); 616 unittest.expect(o, unittest.hasLength(2));
598 unittest.expect(o[0], unittest.equals('foo')); 617 unittest.expect(o[0], unittest.equals('foo'));
599 unittest.expect(o[1], unittest.equals('foo')); 618 unittest.expect(o[1], unittest.equals('foo'));
600 } 619 }
601 620
602 core.int buildCounterGoogleCloudMlV1beta1TrainingInput = 0; 621 core.int buildCounterGoogleCloudMlV1beta1TrainingInput = 0;
603 buildGoogleCloudMlV1beta1TrainingInput() { 622 buildGoogleCloudMlV1beta1TrainingInput() {
604 var o = new api.GoogleCloudMlV1beta1TrainingInput(); 623 var o = new api.GoogleCloudMlV1beta1TrainingInput();
605 buildCounterGoogleCloudMlV1beta1TrainingInput++; 624 buildCounterGoogleCloudMlV1beta1TrainingInput++;
606 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { 625 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) {
607 o.args = buildUnnamed3154(); 626 o.args = buildUnnamed3142();
608 o.hyperparameters = buildGoogleCloudMlV1beta1HyperparameterSpec(); 627 o.hyperparameters = buildGoogleCloudMlV1beta1HyperparameterSpec();
609 o.masterType = "foo"; 628 o.masterType = "foo";
610 o.packageUris = buildUnnamed3155(); 629 o.packageUris = buildUnnamed3143();
611 o.parameterServerCount = "foo"; 630 o.parameterServerCount = "foo";
612 o.parameterServerType = "foo"; 631 o.parameterServerType = "foo";
613 o.pythonModule = "foo"; 632 o.pythonModule = "foo";
614 o.region = "foo"; 633 o.region = "foo";
634 o.runtimeVersion = "foo";
615 o.scaleTier = "foo"; 635 o.scaleTier = "foo";
616 o.workerCount = "foo"; 636 o.workerCount = "foo";
617 o.workerType = "foo"; 637 o.workerType = "foo";
618 } 638 }
619 buildCounterGoogleCloudMlV1beta1TrainingInput--; 639 buildCounterGoogleCloudMlV1beta1TrainingInput--;
620 return o; 640 return o;
621 } 641 }
622 642
623 checkGoogleCloudMlV1beta1TrainingInput(api.GoogleCloudMlV1beta1TrainingInput o) { 643 checkGoogleCloudMlV1beta1TrainingInput(api.GoogleCloudMlV1beta1TrainingInput o) {
624 buildCounterGoogleCloudMlV1beta1TrainingInput++; 644 buildCounterGoogleCloudMlV1beta1TrainingInput++;
625 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { 645 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) {
626 checkUnnamed3154(o.args); 646 checkUnnamed3142(o.args);
627 checkGoogleCloudMlV1beta1HyperparameterSpec(o.hyperparameters); 647 checkGoogleCloudMlV1beta1HyperparameterSpec(o.hyperparameters);
628 unittest.expect(o.masterType, unittest.equals('foo')); 648 unittest.expect(o.masterType, unittest.equals('foo'));
629 checkUnnamed3155(o.packageUris); 649 checkUnnamed3143(o.packageUris);
630 unittest.expect(o.parameterServerCount, unittest.equals('foo')); 650 unittest.expect(o.parameterServerCount, unittest.equals('foo'));
631 unittest.expect(o.parameterServerType, unittest.equals('foo')); 651 unittest.expect(o.parameterServerType, unittest.equals('foo'));
632 unittest.expect(o.pythonModule, unittest.equals('foo')); 652 unittest.expect(o.pythonModule, unittest.equals('foo'));
633 unittest.expect(o.region, unittest.equals('foo')); 653 unittest.expect(o.region, unittest.equals('foo'));
654 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
634 unittest.expect(o.scaleTier, unittest.equals('foo')); 655 unittest.expect(o.scaleTier, unittest.equals('foo'));
635 unittest.expect(o.workerCount, unittest.equals('foo')); 656 unittest.expect(o.workerCount, unittest.equals('foo'));
636 unittest.expect(o.workerType, unittest.equals('foo')); 657 unittest.expect(o.workerType, unittest.equals('foo'));
637 } 658 }
638 buildCounterGoogleCloudMlV1beta1TrainingInput--; 659 buildCounterGoogleCloudMlV1beta1TrainingInput--;
639 } 660 }
640 661
641 buildUnnamed3156() { 662 buildUnnamed3144() {
642 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutput>(); 663 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutput>();
643 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); 664 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput());
644 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); 665 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput());
645 return o; 666 return o;
646 } 667 }
647 668
648 checkUnnamed3156(core.List<api.GoogleCloudMlV1beta1HyperparameterOutput> o) { 669 checkUnnamed3144(core.List<api.GoogleCloudMlV1beta1HyperparameterOutput> o) {
649 unittest.expect(o, unittest.hasLength(2)); 670 unittest.expect(o, unittest.hasLength(2));
650 checkGoogleCloudMlV1beta1HyperparameterOutput(o[0]); 671 checkGoogleCloudMlV1beta1HyperparameterOutput(o[0]);
651 checkGoogleCloudMlV1beta1HyperparameterOutput(o[1]); 672 checkGoogleCloudMlV1beta1HyperparameterOutput(o[1]);
652 } 673 }
653 674
654 core.int buildCounterGoogleCloudMlV1beta1TrainingOutput = 0; 675 core.int buildCounterGoogleCloudMlV1beta1TrainingOutput = 0;
655 buildGoogleCloudMlV1beta1TrainingOutput() { 676 buildGoogleCloudMlV1beta1TrainingOutput() {
656 var o = new api.GoogleCloudMlV1beta1TrainingOutput(); 677 var o = new api.GoogleCloudMlV1beta1TrainingOutput();
657 buildCounterGoogleCloudMlV1beta1TrainingOutput++; 678 buildCounterGoogleCloudMlV1beta1TrainingOutput++;
658 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { 679 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) {
659 o.completedTrialCount = "foo"; 680 o.completedTrialCount = "foo";
660 o.consumedMlUnits = 42.0; 681 o.consumedMLUnits = 42.0;
661 o.trials = buildUnnamed3156(); 682 o.isHyperparameterTuningJob = true;
683 o.trials = buildUnnamed3144();
662 } 684 }
663 buildCounterGoogleCloudMlV1beta1TrainingOutput--; 685 buildCounterGoogleCloudMlV1beta1TrainingOutput--;
664 return o; 686 return o;
665 } 687 }
666 688
667 checkGoogleCloudMlV1beta1TrainingOutput(api.GoogleCloudMlV1beta1TrainingOutput o ) { 689 checkGoogleCloudMlV1beta1TrainingOutput(api.GoogleCloudMlV1beta1TrainingOutput o ) {
668 buildCounterGoogleCloudMlV1beta1TrainingOutput++; 690 buildCounterGoogleCloudMlV1beta1TrainingOutput++;
669 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { 691 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) {
670 unittest.expect(o.completedTrialCount, unittest.equals('foo')); 692 unittest.expect(o.completedTrialCount, unittest.equals('foo'));
671 unittest.expect(o.consumedMlUnits, unittest.equals(42.0)); 693 unittest.expect(o.consumedMLUnits, unittest.equals(42.0));
672 checkUnnamed3156(o.trials); 694 unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue);
695 checkUnnamed3144(o.trials);
673 } 696 }
674 buildCounterGoogleCloudMlV1beta1TrainingOutput--; 697 buildCounterGoogleCloudMlV1beta1TrainingOutput--;
675 } 698 }
676 699
677 core.int buildCounterGoogleCloudMlV1beta1Version = 0; 700 core.int buildCounterGoogleCloudMlV1beta1Version = 0;
678 buildGoogleCloudMlV1beta1Version() { 701 buildGoogleCloudMlV1beta1Version() {
679 var o = new api.GoogleCloudMlV1beta1Version(); 702 var o = new api.GoogleCloudMlV1beta1Version();
680 buildCounterGoogleCloudMlV1beta1Version++; 703 buildCounterGoogleCloudMlV1beta1Version++;
681 if (buildCounterGoogleCloudMlV1beta1Version < 3) { 704 if (buildCounterGoogleCloudMlV1beta1Version < 3) {
682 o.createTime = "foo"; 705 o.createTime = "foo";
683 o.deploymentUri = "foo"; 706 o.deploymentUri = "foo";
684 o.description = "foo"; 707 o.description = "foo";
685 o.isDefault = true; 708 o.isDefault = true;
686 o.lastUseTime = "foo"; 709 o.lastUseTime = "foo";
687 o.name = "foo"; 710 o.name = "foo";
711 o.onlinePredictionLogging = true;
712 o.runtimeVersion = "foo";
688 } 713 }
689 buildCounterGoogleCloudMlV1beta1Version--; 714 buildCounterGoogleCloudMlV1beta1Version--;
690 return o; 715 return o;
691 } 716 }
692 717
693 checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) { 718 checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) {
694 buildCounterGoogleCloudMlV1beta1Version++; 719 buildCounterGoogleCloudMlV1beta1Version++;
695 if (buildCounterGoogleCloudMlV1beta1Version < 3) { 720 if (buildCounterGoogleCloudMlV1beta1Version < 3) {
696 unittest.expect(o.createTime, unittest.equals('foo')); 721 unittest.expect(o.createTime, unittest.equals('foo'));
697 unittest.expect(o.deploymentUri, unittest.equals('foo')); 722 unittest.expect(o.deploymentUri, unittest.equals('foo'));
698 unittest.expect(o.description, unittest.equals('foo')); 723 unittest.expect(o.description, unittest.equals('foo'));
699 unittest.expect(o.isDefault, unittest.isTrue); 724 unittest.expect(o.isDefault, unittest.isTrue);
700 unittest.expect(o.lastUseTime, unittest.equals('foo')); 725 unittest.expect(o.lastUseTime, unittest.equals('foo'));
701 unittest.expect(o.name, unittest.equals('foo')); 726 unittest.expect(o.name, unittest.equals('foo'));
727 unittest.expect(o.onlinePredictionLogging, unittest.isTrue);
728 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
702 } 729 }
703 buildCounterGoogleCloudMlV1beta1Version--; 730 buildCounterGoogleCloudMlV1beta1Version--;
704 } 731 }
705 732
706 buildUnnamed3157() { 733 buildUnnamed3145() {
707 var o = new core.List<api.GoogleLongrunningOperation>(); 734 var o = new core.List<api.GoogleLongrunningOperation>();
708 o.add(buildGoogleLongrunningOperation()); 735 o.add(buildGoogleLongrunningOperation());
709 o.add(buildGoogleLongrunningOperation()); 736 o.add(buildGoogleLongrunningOperation());
710 return o; 737 return o;
711 } 738 }
712 739
713 checkUnnamed3157(core.List<api.GoogleLongrunningOperation> o) { 740 checkUnnamed3145(core.List<api.GoogleLongrunningOperation> o) {
714 unittest.expect(o, unittest.hasLength(2)); 741 unittest.expect(o, unittest.hasLength(2));
715 checkGoogleLongrunningOperation(o[0]); 742 checkGoogleLongrunningOperation(o[0]);
716 checkGoogleLongrunningOperation(o[1]); 743 checkGoogleLongrunningOperation(o[1]);
717 } 744 }
718 745
719 core.int buildCounterGoogleLongrunningListOperationsResponse = 0; 746 core.int buildCounterGoogleLongrunningListOperationsResponse = 0;
720 buildGoogleLongrunningListOperationsResponse() { 747 buildGoogleLongrunningListOperationsResponse() {
721 var o = new api.GoogleLongrunningListOperationsResponse(); 748 var o = new api.GoogleLongrunningListOperationsResponse();
722 buildCounterGoogleLongrunningListOperationsResponse++; 749 buildCounterGoogleLongrunningListOperationsResponse++;
723 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { 750 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
724 o.nextPageToken = "foo"; 751 o.nextPageToken = "foo";
725 o.operations = buildUnnamed3157(); 752 o.operations = buildUnnamed3145();
726 } 753 }
727 buildCounterGoogleLongrunningListOperationsResponse--; 754 buildCounterGoogleLongrunningListOperationsResponse--;
728 return o; 755 return o;
729 } 756 }
730 757
731 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations Response o) { 758 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations Response o) {
732 buildCounterGoogleLongrunningListOperationsResponse++; 759 buildCounterGoogleLongrunningListOperationsResponse++;
733 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { 760 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
734 unittest.expect(o.nextPageToken, unittest.equals('foo')); 761 unittest.expect(o.nextPageToken, unittest.equals('foo'));
735 checkUnnamed3157(o.operations); 762 checkUnnamed3145(o.operations);
736 } 763 }
737 buildCounterGoogleLongrunningListOperationsResponse--; 764 buildCounterGoogleLongrunningListOperationsResponse--;
738 } 765 }
739 766
740 buildUnnamed3158() { 767 buildUnnamed3146() {
741 var o = new core.Map<core.String, core.Object>(); 768 var o = new core.Map<core.String, core.Object>();
742 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 769 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
743 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 770 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
744 return o; 771 return o;
745 } 772 }
746 773
747 checkUnnamed3158(core.Map<core.String, core.Object> o) { 774 checkUnnamed3146(core.Map<core.String, core.Object> o) {
748 unittest.expect(o, unittest.hasLength(2)); 775 unittest.expect(o, unittest.hasLength(2));
749 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 776 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
750 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 777 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
751 } 778 }
752 779
753 buildUnnamed3159() { 780 buildUnnamed3147() {
754 var o = new core.Map<core.String, core.Object>(); 781 var o = new core.Map<core.String, core.Object>();
755 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 782 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
756 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 783 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
757 return o; 784 return o;
758 } 785 }
759 786
760 checkUnnamed3159(core.Map<core.String, core.Object> o) { 787 checkUnnamed3147(core.Map<core.String, core.Object> o) {
761 unittest.expect(o, unittest.hasLength(2)); 788 unittest.expect(o, unittest.hasLength(2));
762 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); 789 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
763 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); 790 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
764 } 791 }
765 792
766 core.int buildCounterGoogleLongrunningOperation = 0; 793 core.int buildCounterGoogleLongrunningOperation = 0;
767 buildGoogleLongrunningOperation() { 794 buildGoogleLongrunningOperation() {
768 var o = new api.GoogleLongrunningOperation(); 795 var o = new api.GoogleLongrunningOperation();
769 buildCounterGoogleLongrunningOperation++; 796 buildCounterGoogleLongrunningOperation++;
770 if (buildCounterGoogleLongrunningOperation < 3) { 797 if (buildCounterGoogleLongrunningOperation < 3) {
771 o.done = true; 798 o.done = true;
772 o.error = buildGoogleRpcStatus(); 799 o.error = buildGoogleRpcStatus();
773 o.metadata = buildUnnamed3158(); 800 o.metadata = buildUnnamed3146();
774 o.name = "foo"; 801 o.name = "foo";
775 o.response = buildUnnamed3159(); 802 o.response = buildUnnamed3147();
776 } 803 }
777 buildCounterGoogleLongrunningOperation--; 804 buildCounterGoogleLongrunningOperation--;
778 return o; 805 return o;
779 } 806 }
780 807
781 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { 808 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
782 buildCounterGoogleLongrunningOperation++; 809 buildCounterGoogleLongrunningOperation++;
783 if (buildCounterGoogleLongrunningOperation < 3) { 810 if (buildCounterGoogleLongrunningOperation < 3) {
784 unittest.expect(o.done, unittest.isTrue); 811 unittest.expect(o.done, unittest.isTrue);
785 checkGoogleRpcStatus(o.error); 812 checkGoogleRpcStatus(o.error);
786 checkUnnamed3158(o.metadata); 813 checkUnnamed3146(o.metadata);
787 unittest.expect(o.name, unittest.equals('foo')); 814 unittest.expect(o.name, unittest.equals('foo'));
788 checkUnnamed3159(o.response); 815 checkUnnamed3147(o.response);
789 } 816 }
790 buildCounterGoogleLongrunningOperation--; 817 buildCounterGoogleLongrunningOperation--;
791 } 818 }
792 819
793 core.int buildCounterGoogleProtobufEmpty = 0; 820 core.int buildCounterGoogleProtobufEmpty = 0;
794 buildGoogleProtobufEmpty() { 821 buildGoogleProtobufEmpty() {
795 var o = new api.GoogleProtobufEmpty(); 822 var o = new api.GoogleProtobufEmpty();
796 buildCounterGoogleProtobufEmpty++; 823 buildCounterGoogleProtobufEmpty++;
797 if (buildCounterGoogleProtobufEmpty < 3) { 824 if (buildCounterGoogleProtobufEmpty < 3) {
798 } 825 }
799 buildCounterGoogleProtobufEmpty--; 826 buildCounterGoogleProtobufEmpty--;
800 return o; 827 return o;
801 } 828 }
802 829
803 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { 830 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) {
804 buildCounterGoogleProtobufEmpty++; 831 buildCounterGoogleProtobufEmpty++;
805 if (buildCounterGoogleProtobufEmpty < 3) { 832 if (buildCounterGoogleProtobufEmpty < 3) {
806 } 833 }
807 buildCounterGoogleProtobufEmpty--; 834 buildCounterGoogleProtobufEmpty--;
808 } 835 }
809 836
810 buildUnnamed3160() { 837 buildUnnamed3148() {
811 var o = new core.Map<core.String, core.Object>(); 838 var o = new core.Map<core.String, core.Object>();
812 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 839 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
813 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 840 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
814 return o; 841 return o;
815 } 842 }
816 843
817 checkUnnamed3160(core.Map<core.String, core.Object> o) { 844 checkUnnamed3148(core.Map<core.String, core.Object> o) {
818 unittest.expect(o, unittest.hasLength(2)); 845 unittest.expect(o, unittest.hasLength(2));
819 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); 846 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
820 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); 847 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
821 } 848 }
822 849
823 buildUnnamed3161() { 850 buildUnnamed3149() {
824 var o = new core.List<core.Map<core.String, core.Object>>(); 851 var o = new core.List<core.Map<core.String, core.Object>>();
825 o.add(buildUnnamed3160()); 852 o.add(buildUnnamed3148());
826 o.add(buildUnnamed3160()); 853 o.add(buildUnnamed3148());
827 return o; 854 return o;
828 } 855 }
829 856
830 checkUnnamed3161(core.List<core.Map<core.String, core.Object>> o) { 857 checkUnnamed3149(core.List<core.Map<core.String, core.Object>> o) {
831 unittest.expect(o, unittest.hasLength(2)); 858 unittest.expect(o, unittest.hasLength(2));
832 checkUnnamed3160(o[0]); 859 checkUnnamed3148(o[0]);
833 checkUnnamed3160(o[1]); 860 checkUnnamed3148(o[1]);
834 } 861 }
835 862
836 core.int buildCounterGoogleRpcStatus = 0; 863 core.int buildCounterGoogleRpcStatus = 0;
837 buildGoogleRpcStatus() { 864 buildGoogleRpcStatus() {
838 var o = new api.GoogleRpcStatus(); 865 var o = new api.GoogleRpcStatus();
839 buildCounterGoogleRpcStatus++; 866 buildCounterGoogleRpcStatus++;
840 if (buildCounterGoogleRpcStatus < 3) { 867 if (buildCounterGoogleRpcStatus < 3) {
841 o.code = 42; 868 o.code = 42;
842 o.details = buildUnnamed3161(); 869 o.details = buildUnnamed3149();
843 o.message = "foo"; 870 o.message = "foo";
844 } 871 }
845 buildCounterGoogleRpcStatus--; 872 buildCounterGoogleRpcStatus--;
846 return o; 873 return o;
847 } 874 }
848 875
849 checkGoogleRpcStatus(api.GoogleRpcStatus o) { 876 checkGoogleRpcStatus(api.GoogleRpcStatus o) {
850 buildCounterGoogleRpcStatus++; 877 buildCounterGoogleRpcStatus++;
851 if (buildCounterGoogleRpcStatus < 3) { 878 if (buildCounterGoogleRpcStatus < 3) {
852 unittest.expect(o.code, unittest.equals(42)); 879 unittest.expect(o.code, unittest.equals(42));
853 checkUnnamed3161(o.details); 880 checkUnnamed3149(o.details);
854 unittest.expect(o.message, unittest.equals('foo')); 881 unittest.expect(o.message, unittest.equals('foo'));
855 } 882 }
856 buildCounterGoogleRpcStatus--; 883 buildCounterGoogleRpcStatus--;
857 } 884 }
858 885
859 886
860 main() { 887 main() {
861 unittest.group("obj-schema-GoogleApiHttpBody", () { 888 unittest.group("obj-schema-GoogleApiHttpBody", () {
862 unittest.test("to-json--from-json", () { 889 unittest.test("to-json--from-json", () {
863 var o = buildGoogleApiHttpBody(); 890 var o = buildGoogleApiHttpBody();
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsRe sponse response) { 2015 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsRe sponse response) {
1989 checkGoogleLongrunningListOperationsResponse(response); 2016 checkGoogleLongrunningListOperationsResponse(response);
1990 }))); 2017 })));
1991 }); 2018 });
1992 2019
1993 }); 2020 });
1994 2021
1995 2022
1996 } 2023 }
1997 2024
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698