Chromium Code Reviews

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

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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...)
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 buildUnnamed3437() { 134 buildUnnamed3145() {
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 checkUnnamed3437(core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperpara meterMetric> o) { 141 checkUnnamed3145(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 buildUnnamed3438() { 147 buildUnnamed3146() {
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 checkUnnamed3438(core.Map<core.String, core.String> o) { 154 checkUnnamed3146(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 = buildUnnamed3437(); 165 o.allMetrics = buildUnnamed3145();
166 o.finalMetric = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterM etric(); 166 o.finalMetric = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterM etric();
167 o.hyperparameters = buildUnnamed3438(); 167 o.hyperparameters = buildUnnamed3146();
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 checkUnnamed3437(o.allMetrics); 177 checkUnnamed3145(o.allMetrics);
178 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o.finalMet ric); 178 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o.finalMet ric);
179 checkUnnamed3438(o.hyperparameters); 179 checkUnnamed3146(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 buildUnnamed3439() { 185 buildUnnamed3147() {
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 checkUnnamed3439(core.List<api.GoogleCloudMlV1beta1ParameterSpec> o) { 192 checkUnnamed3147(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 = buildUnnamed3439(); 206 o.params = buildUnnamed3147();
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 checkUnnamed3439(o.params); 218 checkUnnamed3147(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...)
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 buildUnnamed3440() { 260 buildUnnamed3148() {
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 checkUnnamed3440(core.List<api.GoogleCloudMlV1beta1Job> o) { 267 checkUnnamed3148(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 = buildUnnamed3440(); 278 o.jobs = buildUnnamed3148();
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 checkUnnamed3440(o.jobs); 288 checkUnnamed3148(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 buildUnnamed3441() { 294 buildUnnamed3149() {
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 checkUnnamed3441(core.List<api.GoogleCloudMlV1beta1Model> o) { 301 checkUnnamed3149(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 = buildUnnamed3441(); 312 o.models = buildUnnamed3149();
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 checkUnnamed3441(o.models); 322 checkUnnamed3149(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 buildUnnamed3442() { 328 buildUnnamed3150() {
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 checkUnnamed3442(core.List<api.GoogleCloudMlV1beta1Version> o) { 335 checkUnnamed3150(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 = buildUnnamed3442(); 347 o.versions = buildUnnamed3150();
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 checkUnnamed3442(o.versions); 357 checkUnnamed3150(o.versions);
358 } 358 }
359 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--; 359 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--;
360 } 360 }
361 361
362 core.int buildCounterGoogleCloudMlV1beta1Model = 0; 362 core.int buildCounterGoogleCloudMlV1beta1Model = 0;
363 buildGoogleCloudMlV1beta1Model() { 363 buildGoogleCloudMlV1beta1Model() {
364 var o = new api.GoogleCloudMlV1beta1Model(); 364 var o = new api.GoogleCloudMlV1beta1Model();
365 buildCounterGoogleCloudMlV1beta1Model++; 365 buildCounterGoogleCloudMlV1beta1Model++;
366 if (buildCounterGoogleCloudMlV1beta1Model < 3) { 366 if (buildCounterGoogleCloudMlV1beta1Model < 3) {
367 o.defaultVersion = buildGoogleCloudMlV1beta1Version(); 367 o.defaultVersion = buildGoogleCloudMlV1beta1Version();
(...skipping 38 matching lines...)
406 unittest.expect(o.endTime, unittest.equals('foo')); 406 unittest.expect(o.endTime, unittest.equals('foo'));
407 unittest.expect(o.isCancellationRequested, unittest.isTrue); 407 unittest.expect(o.isCancellationRequested, unittest.isTrue);
408 unittest.expect(o.modelName, unittest.equals('foo')); 408 unittest.expect(o.modelName, unittest.equals('foo'));
409 unittest.expect(o.operationType, unittest.equals('foo')); 409 unittest.expect(o.operationType, unittest.equals('foo'));
410 unittest.expect(o.startTime, unittest.equals('foo')); 410 unittest.expect(o.startTime, unittest.equals('foo'));
411 checkGoogleCloudMlV1beta1Version(o.version); 411 checkGoogleCloudMlV1beta1Version(o.version);
412 } 412 }
413 buildCounterGoogleCloudMlV1beta1OperationMetadata--; 413 buildCounterGoogleCloudMlV1beta1OperationMetadata--;
414 } 414 }
415 415
416 buildUnnamed3443() { 416 buildUnnamed3151() {
417 var o = new core.List<core.String>(); 417 var o = new core.List<core.String>();
418 o.add("foo"); 418 o.add("foo");
419 o.add("foo"); 419 o.add("foo");
420 return o; 420 return o;
421 } 421 }
422 422
423 checkUnnamed3443(core.List<core.String> o) { 423 checkUnnamed3151(core.List<core.String> o) {
424 unittest.expect(o, unittest.hasLength(2)); 424 unittest.expect(o, unittest.hasLength(2));
425 unittest.expect(o[0], unittest.equals('foo')); 425 unittest.expect(o[0], unittest.equals('foo'));
426 unittest.expect(o[1], unittest.equals('foo')); 426 unittest.expect(o[1], unittest.equals('foo'));
427 } 427 }
428 428
429 buildUnnamed3444() { 429 buildUnnamed3152() {
430 var o = new core.List<core.double>(); 430 var o = new core.List<core.double>();
431 o.add(42.0); 431 o.add(42.0);
432 o.add(42.0); 432 o.add(42.0);
433 return o; 433 return o;
434 } 434 }
435 435
436 checkUnnamed3444(core.List<core.double> o) { 436 checkUnnamed3152(core.List<core.double> o) {
437 unittest.expect(o, unittest.hasLength(2)); 437 unittest.expect(o, unittest.hasLength(2));
438 unittest.expect(o[0], unittest.equals(42.0)); 438 unittest.expect(o[0], unittest.equals(42.0));
439 unittest.expect(o[1], unittest.equals(42.0)); 439 unittest.expect(o[1], unittest.equals(42.0));
440 } 440 }
441 441
442 core.int buildCounterGoogleCloudMlV1beta1ParameterSpec = 0; 442 core.int buildCounterGoogleCloudMlV1beta1ParameterSpec = 0;
443 buildGoogleCloudMlV1beta1ParameterSpec() { 443 buildGoogleCloudMlV1beta1ParameterSpec() {
444 var o = new api.GoogleCloudMlV1beta1ParameterSpec(); 444 var o = new api.GoogleCloudMlV1beta1ParameterSpec();
445 buildCounterGoogleCloudMlV1beta1ParameterSpec++; 445 buildCounterGoogleCloudMlV1beta1ParameterSpec++;
446 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { 446 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) {
447 o.categoricalValues = buildUnnamed3443(); 447 o.categoricalValues = buildUnnamed3151();
448 o.discreteValues = buildUnnamed3444(); 448 o.discreteValues = buildUnnamed3152();
449 o.maxValue = 42.0; 449 o.maxValue = 42.0;
450 o.minValue = 42.0; 450 o.minValue = 42.0;
451 o.parameterName = "foo"; 451 o.parameterName = "foo";
452 o.scaleType = "foo"; 452 o.scaleType = "foo";
453 o.type = "foo"; 453 o.type = "foo";
454 } 454 }
455 buildCounterGoogleCloudMlV1beta1ParameterSpec--; 455 buildCounterGoogleCloudMlV1beta1ParameterSpec--;
456 return o; 456 return o;
457 } 457 }
458 458
459 checkGoogleCloudMlV1beta1ParameterSpec(api.GoogleCloudMlV1beta1ParameterSpec o) { 459 checkGoogleCloudMlV1beta1ParameterSpec(api.GoogleCloudMlV1beta1ParameterSpec o) {
460 buildCounterGoogleCloudMlV1beta1ParameterSpec++; 460 buildCounterGoogleCloudMlV1beta1ParameterSpec++;
461 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { 461 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) {
462 checkUnnamed3443(o.categoricalValues); 462 checkUnnamed3151(o.categoricalValues);
463 checkUnnamed3444(o.discreteValues); 463 checkUnnamed3152(o.discreteValues);
464 unittest.expect(o.maxValue, unittest.equals(42.0)); 464 unittest.expect(o.maxValue, unittest.equals(42.0));
465 unittest.expect(o.minValue, unittest.equals(42.0)); 465 unittest.expect(o.minValue, unittest.equals(42.0));
466 unittest.expect(o.parameterName, unittest.equals('foo')); 466 unittest.expect(o.parameterName, unittest.equals('foo'));
467 unittest.expect(o.scaleType, unittest.equals('foo')); 467 unittest.expect(o.scaleType, unittest.equals('foo'));
468 unittest.expect(o.type, unittest.equals('foo')); 468 unittest.expect(o.type, unittest.equals('foo'));
469 } 469 }
470 buildCounterGoogleCloudMlV1beta1ParameterSpec--; 470 buildCounterGoogleCloudMlV1beta1ParameterSpec--;
471 } 471 }
472 472
473 core.int buildCounterGoogleCloudMlV1beta1PredictRequest = 0; 473 core.int buildCounterGoogleCloudMlV1beta1PredictRequest = 0;
474 buildGoogleCloudMlV1beta1PredictRequest() { 474 buildGoogleCloudMlV1beta1PredictRequest() {
475 var o = new api.GoogleCloudMlV1beta1PredictRequest(); 475 var o = new api.GoogleCloudMlV1beta1PredictRequest();
476 buildCounterGoogleCloudMlV1beta1PredictRequest++; 476 buildCounterGoogleCloudMlV1beta1PredictRequest++;
477 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { 477 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) {
478 o.httpBody = buildGoogleApiHttpBody(); 478 o.httpBody = buildGoogleApiHttpBody();
479 } 479 }
480 buildCounterGoogleCloudMlV1beta1PredictRequest--; 480 buildCounterGoogleCloudMlV1beta1PredictRequest--;
481 return o; 481 return o;
482 } 482 }
483 483
484 checkGoogleCloudMlV1beta1PredictRequest(api.GoogleCloudMlV1beta1PredictRequest o ) { 484 checkGoogleCloudMlV1beta1PredictRequest(api.GoogleCloudMlV1beta1PredictRequest o ) {
485 buildCounterGoogleCloudMlV1beta1PredictRequest++; 485 buildCounterGoogleCloudMlV1beta1PredictRequest++;
486 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { 486 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) {
487 checkGoogleApiHttpBody(o.httpBody); 487 checkGoogleApiHttpBody(o.httpBody);
488 } 488 }
489 buildCounterGoogleCloudMlV1beta1PredictRequest--; 489 buildCounterGoogleCloudMlV1beta1PredictRequest--;
490 } 490 }
491 491
492 buildUnnamed3445() { 492 buildUnnamed3153() {
493 var o = new core.List<core.String>(); 493 var o = new core.List<core.String>();
494 o.add("foo"); 494 o.add("foo");
495 o.add("foo"); 495 o.add("foo");
496 return o; 496 return o;
497 } 497 }
498 498
499 checkUnnamed3445(core.List<core.String> o) { 499 checkUnnamed3153(core.List<core.String> o) {
500 unittest.expect(o, unittest.hasLength(2)); 500 unittest.expect(o, unittest.hasLength(2));
501 unittest.expect(o[0], unittest.equals('foo')); 501 unittest.expect(o[0], unittest.equals('foo'));
502 unittest.expect(o[1], unittest.equals('foo')); 502 unittest.expect(o[1], unittest.equals('foo'));
503 } 503 }
504 504
505 core.int buildCounterGoogleCloudMlV1beta1PredictionInput = 0; 505 core.int buildCounterGoogleCloudMlV1beta1PredictionInput = 0;
506 buildGoogleCloudMlV1beta1PredictionInput() { 506 buildGoogleCloudMlV1beta1PredictionInput() {
507 var o = new api.GoogleCloudMlV1beta1PredictionInput(); 507 var o = new api.GoogleCloudMlV1beta1PredictionInput();
508 buildCounterGoogleCloudMlV1beta1PredictionInput++; 508 buildCounterGoogleCloudMlV1beta1PredictionInput++;
509 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { 509 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) {
510 o.dataFormat = "foo"; 510 o.dataFormat = "foo";
511 o.inputPaths = buildUnnamed3445(); 511 o.inputPaths = buildUnnamed3153();
512 o.maxWorkerCount = "foo"; 512 o.maxWorkerCount = "foo";
513 o.modelName = "foo"; 513 o.modelName = "foo";
514 o.outputPath = "foo"; 514 o.outputPath = "foo";
515 o.region = "foo"; 515 o.region = "foo";
516 o.versionName = "foo"; 516 o.versionName = "foo";
517 } 517 }
518 buildCounterGoogleCloudMlV1beta1PredictionInput--; 518 buildCounterGoogleCloudMlV1beta1PredictionInput--;
519 return o; 519 return o;
520 } 520 }
521 521
522 checkGoogleCloudMlV1beta1PredictionInput(api.GoogleCloudMlV1beta1PredictionInput o) { 522 checkGoogleCloudMlV1beta1PredictionInput(api.GoogleCloudMlV1beta1PredictionInput o) {
523 buildCounterGoogleCloudMlV1beta1PredictionInput++; 523 buildCounterGoogleCloudMlV1beta1PredictionInput++;
524 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { 524 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) {
525 unittest.expect(o.dataFormat, unittest.equals('foo')); 525 unittest.expect(o.dataFormat, unittest.equals('foo'));
526 checkUnnamed3445(o.inputPaths); 526 checkUnnamed3153(o.inputPaths);
527 unittest.expect(o.maxWorkerCount, unittest.equals('foo')); 527 unittest.expect(o.maxWorkerCount, unittest.equals('foo'));
528 unittest.expect(o.modelName, unittest.equals('foo')); 528 unittest.expect(o.modelName, unittest.equals('foo'));
529 unittest.expect(o.outputPath, unittest.equals('foo')); 529 unittest.expect(o.outputPath, unittest.equals('foo'));
530 unittest.expect(o.region, unittest.equals('foo')); 530 unittest.expect(o.region, unittest.equals('foo'));
531 unittest.expect(o.versionName, unittest.equals('foo')); 531 unittest.expect(o.versionName, unittest.equals('foo'));
532 } 532 }
533 buildCounterGoogleCloudMlV1beta1PredictionInput--; 533 buildCounterGoogleCloudMlV1beta1PredictionInput--;
534 } 534 }
535 535
536 core.int buildCounterGoogleCloudMlV1beta1PredictionOutput = 0; 536 core.int buildCounterGoogleCloudMlV1beta1PredictionOutput = 0;
(...skipping 29 matching lines...)
566 return o; 566 return o;
567 } 567 }
568 568
569 checkGoogleCloudMlV1beta1SetDefaultVersionRequest(api.GoogleCloudMlV1beta1SetDef aultVersionRequest o) { 569 checkGoogleCloudMlV1beta1SetDefaultVersionRequest(api.GoogleCloudMlV1beta1SetDef aultVersionRequest o) {
570 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++; 570 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++;
571 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) { 571 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) {
572 } 572 }
573 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--; 573 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--;
574 } 574 }
575 575
576 buildUnnamed3446() { 576 buildUnnamed3154() {
577 var o = new core.List<core.String>(); 577 var o = new core.List<core.String>();
578 o.add("foo"); 578 o.add("foo");
579 o.add("foo"); 579 o.add("foo");
580 return o; 580 return o;
581 } 581 }
582 582
583 checkUnnamed3446(core.List<core.String> o) { 583 checkUnnamed3154(core.List<core.String> o) {
584 unittest.expect(o, unittest.hasLength(2)); 584 unittest.expect(o, unittest.hasLength(2));
585 unittest.expect(o[0], unittest.equals('foo')); 585 unittest.expect(o[0], unittest.equals('foo'));
586 unittest.expect(o[1], unittest.equals('foo')); 586 unittest.expect(o[1], unittest.equals('foo'));
587 } 587 }
588 588
589 buildUnnamed3447() { 589 buildUnnamed3155() {
590 var o = new core.List<core.String>(); 590 var o = new core.List<core.String>();
591 o.add("foo"); 591 o.add("foo");
592 o.add("foo"); 592 o.add("foo");
593 return o; 593 return o;
594 } 594 }
595 595
596 checkUnnamed3447(core.List<core.String> o) { 596 checkUnnamed3155(core.List<core.String> o) {
597 unittest.expect(o, unittest.hasLength(2)); 597 unittest.expect(o, unittest.hasLength(2));
598 unittest.expect(o[0], unittest.equals('foo')); 598 unittest.expect(o[0], unittest.equals('foo'));
599 unittest.expect(o[1], unittest.equals('foo')); 599 unittest.expect(o[1], unittest.equals('foo'));
600 } 600 }
601 601
602 core.int buildCounterGoogleCloudMlV1beta1TrainingInput = 0; 602 core.int buildCounterGoogleCloudMlV1beta1TrainingInput = 0;
603 buildGoogleCloudMlV1beta1TrainingInput() { 603 buildGoogleCloudMlV1beta1TrainingInput() {
604 var o = new api.GoogleCloudMlV1beta1TrainingInput(); 604 var o = new api.GoogleCloudMlV1beta1TrainingInput();
605 buildCounterGoogleCloudMlV1beta1TrainingInput++; 605 buildCounterGoogleCloudMlV1beta1TrainingInput++;
606 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { 606 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) {
607 o.args = buildUnnamed3446(); 607 o.args = buildUnnamed3154();
608 o.hyperparameters = buildGoogleCloudMlV1beta1HyperparameterSpec(); 608 o.hyperparameters = buildGoogleCloudMlV1beta1HyperparameterSpec();
609 o.masterType = "foo"; 609 o.masterType = "foo";
610 o.packageUris = buildUnnamed3447(); 610 o.packageUris = buildUnnamed3155();
611 o.parameterServerCount = "foo"; 611 o.parameterServerCount = "foo";
612 o.parameterServerType = "foo"; 612 o.parameterServerType = "foo";
613 o.pythonModule = "foo"; 613 o.pythonModule = "foo";
614 o.region = "foo"; 614 o.region = "foo";
615 o.scaleTier = "foo"; 615 o.scaleTier = "foo";
616 o.workerCount = "foo"; 616 o.workerCount = "foo";
617 o.workerType = "foo"; 617 o.workerType = "foo";
618 } 618 }
619 buildCounterGoogleCloudMlV1beta1TrainingInput--; 619 buildCounterGoogleCloudMlV1beta1TrainingInput--;
620 return o; 620 return o;
621 } 621 }
622 622
623 checkGoogleCloudMlV1beta1TrainingInput(api.GoogleCloudMlV1beta1TrainingInput o) { 623 checkGoogleCloudMlV1beta1TrainingInput(api.GoogleCloudMlV1beta1TrainingInput o) {
624 buildCounterGoogleCloudMlV1beta1TrainingInput++; 624 buildCounterGoogleCloudMlV1beta1TrainingInput++;
625 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { 625 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) {
626 checkUnnamed3446(o.args); 626 checkUnnamed3154(o.args);
627 checkGoogleCloudMlV1beta1HyperparameterSpec(o.hyperparameters); 627 checkGoogleCloudMlV1beta1HyperparameterSpec(o.hyperparameters);
628 unittest.expect(o.masterType, unittest.equals('foo')); 628 unittest.expect(o.masterType, unittest.equals('foo'));
629 checkUnnamed3447(o.packageUris); 629 checkUnnamed3155(o.packageUris);
630 unittest.expect(o.parameterServerCount, unittest.equals('foo')); 630 unittest.expect(o.parameterServerCount, unittest.equals('foo'));
631 unittest.expect(o.parameterServerType, unittest.equals('foo')); 631 unittest.expect(o.parameterServerType, unittest.equals('foo'));
632 unittest.expect(o.pythonModule, unittest.equals('foo')); 632 unittest.expect(o.pythonModule, unittest.equals('foo'));
633 unittest.expect(o.region, unittest.equals('foo')); 633 unittest.expect(o.region, unittest.equals('foo'));
634 unittest.expect(o.scaleTier, unittest.equals('foo')); 634 unittest.expect(o.scaleTier, unittest.equals('foo'));
635 unittest.expect(o.workerCount, unittest.equals('foo')); 635 unittest.expect(o.workerCount, unittest.equals('foo'));
636 unittest.expect(o.workerType, unittest.equals('foo')); 636 unittest.expect(o.workerType, unittest.equals('foo'));
637 } 637 }
638 buildCounterGoogleCloudMlV1beta1TrainingInput--; 638 buildCounterGoogleCloudMlV1beta1TrainingInput--;
639 } 639 }
640 640
641 buildUnnamed3448() { 641 buildUnnamed3156() {
642 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutput>(); 642 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutput>();
643 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); 643 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput());
644 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); 644 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput());
645 return o; 645 return o;
646 } 646 }
647 647
648 checkUnnamed3448(core.List<api.GoogleCloudMlV1beta1HyperparameterOutput> o) { 648 checkUnnamed3156(core.List<api.GoogleCloudMlV1beta1HyperparameterOutput> o) {
649 unittest.expect(o, unittest.hasLength(2)); 649 unittest.expect(o, unittest.hasLength(2));
650 checkGoogleCloudMlV1beta1HyperparameterOutput(o[0]); 650 checkGoogleCloudMlV1beta1HyperparameterOutput(o[0]);
651 checkGoogleCloudMlV1beta1HyperparameterOutput(o[1]); 651 checkGoogleCloudMlV1beta1HyperparameterOutput(o[1]);
652 } 652 }
653 653
654 core.int buildCounterGoogleCloudMlV1beta1TrainingOutput = 0; 654 core.int buildCounterGoogleCloudMlV1beta1TrainingOutput = 0;
655 buildGoogleCloudMlV1beta1TrainingOutput() { 655 buildGoogleCloudMlV1beta1TrainingOutput() {
656 var o = new api.GoogleCloudMlV1beta1TrainingOutput(); 656 var o = new api.GoogleCloudMlV1beta1TrainingOutput();
657 buildCounterGoogleCloudMlV1beta1TrainingOutput++; 657 buildCounterGoogleCloudMlV1beta1TrainingOutput++;
658 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { 658 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) {
659 o.completedTrialCount = "foo"; 659 o.completedTrialCount = "foo";
660 o.trials = buildUnnamed3448(); 660 o.consumedMlUnits = 42.0;
661 o.trials = buildUnnamed3156();
661 } 662 }
662 buildCounterGoogleCloudMlV1beta1TrainingOutput--; 663 buildCounterGoogleCloudMlV1beta1TrainingOutput--;
663 return o; 664 return o;
664 } 665 }
665 666
666 checkGoogleCloudMlV1beta1TrainingOutput(api.GoogleCloudMlV1beta1TrainingOutput o ) { 667 checkGoogleCloudMlV1beta1TrainingOutput(api.GoogleCloudMlV1beta1TrainingOutput o ) {
667 buildCounterGoogleCloudMlV1beta1TrainingOutput++; 668 buildCounterGoogleCloudMlV1beta1TrainingOutput++;
668 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { 669 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) {
669 unittest.expect(o.completedTrialCount, unittest.equals('foo')); 670 unittest.expect(o.completedTrialCount, unittest.equals('foo'));
670 checkUnnamed3448(o.trials); 671 unittest.expect(o.consumedMlUnits, unittest.equals(42.0));
672 checkUnnamed3156(o.trials);
671 } 673 }
672 buildCounterGoogleCloudMlV1beta1TrainingOutput--; 674 buildCounterGoogleCloudMlV1beta1TrainingOutput--;
673 } 675 }
674 676
675 core.int buildCounterGoogleCloudMlV1beta1Version = 0; 677 core.int buildCounterGoogleCloudMlV1beta1Version = 0;
676 buildGoogleCloudMlV1beta1Version() { 678 buildGoogleCloudMlV1beta1Version() {
677 var o = new api.GoogleCloudMlV1beta1Version(); 679 var o = new api.GoogleCloudMlV1beta1Version();
678 buildCounterGoogleCloudMlV1beta1Version++; 680 buildCounterGoogleCloudMlV1beta1Version++;
679 if (buildCounterGoogleCloudMlV1beta1Version < 3) { 681 if (buildCounterGoogleCloudMlV1beta1Version < 3) {
680 o.createTime = "foo"; 682 o.createTime = "foo";
(...skipping 13 matching lines...)
694 unittest.expect(o.createTime, unittest.equals('foo')); 696 unittest.expect(o.createTime, unittest.equals('foo'));
695 unittest.expect(o.deploymentUri, unittest.equals('foo')); 697 unittest.expect(o.deploymentUri, unittest.equals('foo'));
696 unittest.expect(o.description, unittest.equals('foo')); 698 unittest.expect(o.description, unittest.equals('foo'));
697 unittest.expect(o.isDefault, unittest.isTrue); 699 unittest.expect(o.isDefault, unittest.isTrue);
698 unittest.expect(o.lastUseTime, unittest.equals('foo')); 700 unittest.expect(o.lastUseTime, unittest.equals('foo'));
699 unittest.expect(o.name, unittest.equals('foo')); 701 unittest.expect(o.name, unittest.equals('foo'));
700 } 702 }
701 buildCounterGoogleCloudMlV1beta1Version--; 703 buildCounterGoogleCloudMlV1beta1Version--;
702 } 704 }
703 705
704 buildUnnamed3449() { 706 buildUnnamed3157() {
705 var o = new core.List<api.GoogleLongrunningOperation>(); 707 var o = new core.List<api.GoogleLongrunningOperation>();
706 o.add(buildGoogleLongrunningOperation()); 708 o.add(buildGoogleLongrunningOperation());
707 o.add(buildGoogleLongrunningOperation()); 709 o.add(buildGoogleLongrunningOperation());
708 return o; 710 return o;
709 } 711 }
710 712
711 checkUnnamed3449(core.List<api.GoogleLongrunningOperation> o) { 713 checkUnnamed3157(core.List<api.GoogleLongrunningOperation> o) {
712 unittest.expect(o, unittest.hasLength(2)); 714 unittest.expect(o, unittest.hasLength(2));
713 checkGoogleLongrunningOperation(o[0]); 715 checkGoogleLongrunningOperation(o[0]);
714 checkGoogleLongrunningOperation(o[1]); 716 checkGoogleLongrunningOperation(o[1]);
715 } 717 }
716 718
717 core.int buildCounterGoogleLongrunningListOperationsResponse = 0; 719 core.int buildCounterGoogleLongrunningListOperationsResponse = 0;
718 buildGoogleLongrunningListOperationsResponse() { 720 buildGoogleLongrunningListOperationsResponse() {
719 var o = new api.GoogleLongrunningListOperationsResponse(); 721 var o = new api.GoogleLongrunningListOperationsResponse();
720 buildCounterGoogleLongrunningListOperationsResponse++; 722 buildCounterGoogleLongrunningListOperationsResponse++;
721 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { 723 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
722 o.nextPageToken = "foo"; 724 o.nextPageToken = "foo";
723 o.operations = buildUnnamed3449(); 725 o.operations = buildUnnamed3157();
724 } 726 }
725 buildCounterGoogleLongrunningListOperationsResponse--; 727 buildCounterGoogleLongrunningListOperationsResponse--;
726 return o; 728 return o;
727 } 729 }
728 730
729 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations Response o) { 731 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations Response o) {
730 buildCounterGoogleLongrunningListOperationsResponse++; 732 buildCounterGoogleLongrunningListOperationsResponse++;
731 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { 733 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
732 unittest.expect(o.nextPageToken, unittest.equals('foo')); 734 unittest.expect(o.nextPageToken, unittest.equals('foo'));
733 checkUnnamed3449(o.operations); 735 checkUnnamed3157(o.operations);
734 } 736 }
735 buildCounterGoogleLongrunningListOperationsResponse--; 737 buildCounterGoogleLongrunningListOperationsResponse--;
736 } 738 }
737 739
738 buildUnnamed3450() { 740 buildUnnamed3158() {
739 var o = new core.Map<core.String, core.Object>(); 741 var o = new core.Map<core.String, core.Object>();
740 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 742 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
741 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 743 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
742 return o; 744 return o;
743 } 745 }
744 746
745 checkUnnamed3450(core.Map<core.String, core.Object> o) { 747 checkUnnamed3158(core.Map<core.String, core.Object> o) {
746 unittest.expect(o, unittest.hasLength(2)); 748 unittest.expect(o, unittest.hasLength(2));
747 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')); 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'));
748 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')); 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'));
749 } 751 }
750 752
751 buildUnnamed3451() { 753 buildUnnamed3159() {
752 var o = new core.Map<core.String, core.Object>(); 754 var o = new core.Map<core.String, core.Object>();
753 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 755 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
754 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 756 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
755 return o; 757 return o;
756 } 758 }
757 759
758 checkUnnamed3451(core.Map<core.String, core.Object> o) { 760 checkUnnamed3159(core.Map<core.String, core.Object> o) {
759 unittest.expect(o, unittest.hasLength(2)); 761 unittest.expect(o, unittest.hasLength(2));
760 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')); 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'));
761 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')); 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'));
762 } 764 }
763 765
764 core.int buildCounterGoogleLongrunningOperation = 0; 766 core.int buildCounterGoogleLongrunningOperation = 0;
765 buildGoogleLongrunningOperation() { 767 buildGoogleLongrunningOperation() {
766 var o = new api.GoogleLongrunningOperation(); 768 var o = new api.GoogleLongrunningOperation();
767 buildCounterGoogleLongrunningOperation++; 769 buildCounterGoogleLongrunningOperation++;
768 if (buildCounterGoogleLongrunningOperation < 3) { 770 if (buildCounterGoogleLongrunningOperation < 3) {
769 o.done = true; 771 o.done = true;
770 o.error = buildGoogleRpcStatus(); 772 o.error = buildGoogleRpcStatus();
771 o.metadata = buildUnnamed3450(); 773 o.metadata = buildUnnamed3158();
772 o.name = "foo"; 774 o.name = "foo";
773 o.response = buildUnnamed3451(); 775 o.response = buildUnnamed3159();
774 } 776 }
775 buildCounterGoogleLongrunningOperation--; 777 buildCounterGoogleLongrunningOperation--;
776 return o; 778 return o;
777 } 779 }
778 780
779 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { 781 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
780 buildCounterGoogleLongrunningOperation++; 782 buildCounterGoogleLongrunningOperation++;
781 if (buildCounterGoogleLongrunningOperation < 3) { 783 if (buildCounterGoogleLongrunningOperation < 3) {
782 unittest.expect(o.done, unittest.isTrue); 784 unittest.expect(o.done, unittest.isTrue);
783 checkGoogleRpcStatus(o.error); 785 checkGoogleRpcStatus(o.error);
784 checkUnnamed3450(o.metadata); 786 checkUnnamed3158(o.metadata);
785 unittest.expect(o.name, unittest.equals('foo')); 787 unittest.expect(o.name, unittest.equals('foo'));
786 checkUnnamed3451(o.response); 788 checkUnnamed3159(o.response);
787 } 789 }
788 buildCounterGoogleLongrunningOperation--; 790 buildCounterGoogleLongrunningOperation--;
789 } 791 }
790 792
791 core.int buildCounterGoogleProtobufEmpty = 0; 793 core.int buildCounterGoogleProtobufEmpty = 0;
792 buildGoogleProtobufEmpty() { 794 buildGoogleProtobufEmpty() {
793 var o = new api.GoogleProtobufEmpty(); 795 var o = new api.GoogleProtobufEmpty();
794 buildCounterGoogleProtobufEmpty++; 796 buildCounterGoogleProtobufEmpty++;
795 if (buildCounterGoogleProtobufEmpty < 3) { 797 if (buildCounterGoogleProtobufEmpty < 3) {
796 } 798 }
797 buildCounterGoogleProtobufEmpty--; 799 buildCounterGoogleProtobufEmpty--;
798 return o; 800 return o;
799 } 801 }
800 802
801 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { 803 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) {
802 buildCounterGoogleProtobufEmpty++; 804 buildCounterGoogleProtobufEmpty++;
803 if (buildCounterGoogleProtobufEmpty < 3) { 805 if (buildCounterGoogleProtobufEmpty < 3) {
804 } 806 }
805 buildCounterGoogleProtobufEmpty--; 807 buildCounterGoogleProtobufEmpty--;
806 } 808 }
807 809
808 buildUnnamed3452() { 810 buildUnnamed3160() {
809 var o = new core.Map<core.String, core.Object>(); 811 var o = new core.Map<core.String, core.Object>();
810 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 812 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
811 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 813 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
812 return o; 814 return o;
813 } 815 }
814 816
815 checkUnnamed3452(core.Map<core.String, core.Object> o) { 817 checkUnnamed3160(core.Map<core.String, core.Object> o) {
816 unittest.expect(o, unittest.hasLength(2)); 818 unittest.expect(o, unittest.hasLength(2));
817 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')); 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'));
818 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')); 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'));
819 } 821 }
820 822
821 buildUnnamed3453() { 823 buildUnnamed3161() {
822 var o = new core.List<core.Map<core.String, core.Object>>(); 824 var o = new core.List<core.Map<core.String, core.Object>>();
823 o.add(buildUnnamed3452()); 825 o.add(buildUnnamed3160());
824 o.add(buildUnnamed3452()); 826 o.add(buildUnnamed3160());
825 return o; 827 return o;
826 } 828 }
827 829
828 checkUnnamed3453(core.List<core.Map<core.String, core.Object>> o) { 830 checkUnnamed3161(core.List<core.Map<core.String, core.Object>> o) {
829 unittest.expect(o, unittest.hasLength(2)); 831 unittest.expect(o, unittest.hasLength(2));
830 checkUnnamed3452(o[0]); 832 checkUnnamed3160(o[0]);
831 checkUnnamed3452(o[1]); 833 checkUnnamed3160(o[1]);
832 } 834 }
833 835
834 core.int buildCounterGoogleRpcStatus = 0; 836 core.int buildCounterGoogleRpcStatus = 0;
835 buildGoogleRpcStatus() { 837 buildGoogleRpcStatus() {
836 var o = new api.GoogleRpcStatus(); 838 var o = new api.GoogleRpcStatus();
837 buildCounterGoogleRpcStatus++; 839 buildCounterGoogleRpcStatus++;
838 if (buildCounterGoogleRpcStatus < 3) { 840 if (buildCounterGoogleRpcStatus < 3) {
839 o.code = 42; 841 o.code = 42;
840 o.details = buildUnnamed3453(); 842 o.details = buildUnnamed3161();
841 o.message = "foo"; 843 o.message = "foo";
842 } 844 }
843 buildCounterGoogleRpcStatus--; 845 buildCounterGoogleRpcStatus--;
844 return o; 846 return o;
845 } 847 }
846 848
847 checkGoogleRpcStatus(api.GoogleRpcStatus o) { 849 checkGoogleRpcStatus(api.GoogleRpcStatus o) {
848 buildCounterGoogleRpcStatus++; 850 buildCounterGoogleRpcStatus++;
849 if (buildCounterGoogleRpcStatus < 3) { 851 if (buildCounterGoogleRpcStatus < 3) {
850 unittest.expect(o.code, unittest.equals(42)); 852 unittest.expect(o.code, unittest.equals(42));
851 checkUnnamed3453(o.details); 853 checkUnnamed3161(o.details);
852 unittest.expect(o.message, unittest.equals('foo')); 854 unittest.expect(o.message, unittest.equals('foo'));
853 } 855 }
854 buildCounterGoogleRpcStatus--; 856 buildCounterGoogleRpcStatus--;
855 } 857 }
856 858
857 859
858 main() { 860 main() {
859 unittest.group("obj-schema-GoogleApiHttpBody", () { 861 unittest.group("obj-schema-GoogleApiHttpBody", () {
860 unittest.test("to-json--from-json", () { 862 unittest.test("to-json--from-json", () {
861 var o = buildGoogleApiHttpBody(); 863 var o = buildGoogleApiHttpBody();
(...skipping 1124 matching lines...)
1986 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsRe sponse response) { 1988 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsRe sponse response) {
1987 checkGoogleLongrunningListOperationsResponse(response); 1989 checkGoogleLongrunningListOperationsResponse(response);
1988 }))); 1990 })));
1989 }); 1991 });
1990 1992
1991 }); 1993 });
1992 1994
1993 1995
1994 } 1996 }
1995 1997
OLDNEW

Powered by Google App Engine