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

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

Issue 2734843002: Api-roll 46: 2017-03-06 (Closed)
Patch Set: Created 3 years, 9 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 checkGoogleApiHttpBody(api.GoogleApiHttpBody o) { 66 checkGoogleApiHttpBody(api.GoogleApiHttpBody o) {
67 buildCounterGoogleApiHttpBody++; 67 buildCounterGoogleApiHttpBody++;
68 if (buildCounterGoogleApiHttpBody < 3) { 68 if (buildCounterGoogleApiHttpBody < 3) {
69 unittest.expect(o.contentType, unittest.equals('foo')); 69 unittest.expect(o.contentType, unittest.equals('foo'));
70 unittest.expect(o.data, unittest.equals('foo')); 70 unittest.expect(o.data, unittest.equals('foo'));
71 } 71 }
72 buildCounterGoogleApiHttpBody--; 72 buildCounterGoogleApiHttpBody--;
73 } 73 }
74 74
75 core.int buildCounterGoogleCloudMlV1ManualScaling = 0;
76 buildGoogleCloudMlV1ManualScaling() {
77 var o = new api.GoogleCloudMlV1ManualScaling();
78 buildCounterGoogleCloudMlV1ManualScaling++;
79 if (buildCounterGoogleCloudMlV1ManualScaling < 3) {
80 o.nodes = 42;
81 }
82 buildCounterGoogleCloudMlV1ManualScaling--;
83 return o;
84 }
85
86 checkGoogleCloudMlV1ManualScaling(api.GoogleCloudMlV1ManualScaling o) {
87 buildCounterGoogleCloudMlV1ManualScaling++;
88 if (buildCounterGoogleCloudMlV1ManualScaling < 3) {
89 unittest.expect(o.nodes, unittest.equals(42));
90 }
91 buildCounterGoogleCloudMlV1ManualScaling--;
92 }
93
75 core.int buildCounterGoogleCloudMlV1OperationMetadata = 0; 94 core.int buildCounterGoogleCloudMlV1OperationMetadata = 0;
76 buildGoogleCloudMlV1OperationMetadata() { 95 buildGoogleCloudMlV1OperationMetadata() {
77 var o = new api.GoogleCloudMlV1OperationMetadata(); 96 var o = new api.GoogleCloudMlV1OperationMetadata();
78 buildCounterGoogleCloudMlV1OperationMetadata++; 97 buildCounterGoogleCloudMlV1OperationMetadata++;
79 if (buildCounterGoogleCloudMlV1OperationMetadata < 3) { 98 if (buildCounterGoogleCloudMlV1OperationMetadata < 3) {
80 o.createTime = "foo"; 99 o.createTime = "foo";
81 o.endTime = "foo"; 100 o.endTime = "foo";
82 o.isCancellationRequested = true; 101 o.isCancellationRequested = true;
83 o.modelName = "foo"; 102 o.modelName = "foo";
84 o.operationType = "foo"; 103 o.operationType = "foo";
(...skipping 21 matching lines...) Expand all
106 core.int buildCounterGoogleCloudMlV1Version = 0; 125 core.int buildCounterGoogleCloudMlV1Version = 0;
107 buildGoogleCloudMlV1Version() { 126 buildGoogleCloudMlV1Version() {
108 var o = new api.GoogleCloudMlV1Version(); 127 var o = new api.GoogleCloudMlV1Version();
109 buildCounterGoogleCloudMlV1Version++; 128 buildCounterGoogleCloudMlV1Version++;
110 if (buildCounterGoogleCloudMlV1Version < 3) { 129 if (buildCounterGoogleCloudMlV1Version < 3) {
111 o.createTime = "foo"; 130 o.createTime = "foo";
112 o.deploymentUri = "foo"; 131 o.deploymentUri = "foo";
113 o.description = "foo"; 132 o.description = "foo";
114 o.isDefault = true; 133 o.isDefault = true;
115 o.lastUseTime = "foo"; 134 o.lastUseTime = "foo";
135 o.manualScaling = buildGoogleCloudMlV1ManualScaling();
116 o.name = "foo"; 136 o.name = "foo";
117 o.runtimeVersion = "foo"; 137 o.runtimeVersion = "foo";
118 } 138 }
119 buildCounterGoogleCloudMlV1Version--; 139 buildCounterGoogleCloudMlV1Version--;
120 return o; 140 return o;
121 } 141 }
122 142
123 checkGoogleCloudMlV1Version(api.GoogleCloudMlV1Version o) { 143 checkGoogleCloudMlV1Version(api.GoogleCloudMlV1Version o) {
124 buildCounterGoogleCloudMlV1Version++; 144 buildCounterGoogleCloudMlV1Version++;
125 if (buildCounterGoogleCloudMlV1Version < 3) { 145 if (buildCounterGoogleCloudMlV1Version < 3) {
126 unittest.expect(o.createTime, unittest.equals('foo')); 146 unittest.expect(o.createTime, unittest.equals('foo'));
127 unittest.expect(o.deploymentUri, unittest.equals('foo')); 147 unittest.expect(o.deploymentUri, unittest.equals('foo'));
128 unittest.expect(o.description, unittest.equals('foo')); 148 unittest.expect(o.description, unittest.equals('foo'));
129 unittest.expect(o.isDefault, unittest.isTrue); 149 unittest.expect(o.isDefault, unittest.isTrue);
130 unittest.expect(o.lastUseTime, unittest.equals('foo')); 150 unittest.expect(o.lastUseTime, unittest.equals('foo'));
151 checkGoogleCloudMlV1ManualScaling(o.manualScaling);
131 unittest.expect(o.name, unittest.equals('foo')); 152 unittest.expect(o.name, unittest.equals('foo'));
132 unittest.expect(o.runtimeVersion, unittest.equals('foo')); 153 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
133 } 154 }
134 buildCounterGoogleCloudMlV1Version--; 155 buildCounterGoogleCloudMlV1Version--;
135 } 156 }
136 157
137 core.int buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetri c = 0; 158 core.int buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetri c = 0;
138 buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric() { 159 buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric() {
139 var o = new api.GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric() ; 160 var o = new api.GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric() ;
140 buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric++; 161 buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric++;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 207
187 checkGoogleCloudMlV1beta1GetConfigResponse(api.GoogleCloudMlV1beta1GetConfigResp onse o) { 208 checkGoogleCloudMlV1beta1GetConfigResponse(api.GoogleCloudMlV1beta1GetConfigResp onse o) {
188 buildCounterGoogleCloudMlV1beta1GetConfigResponse++; 209 buildCounterGoogleCloudMlV1beta1GetConfigResponse++;
189 if (buildCounterGoogleCloudMlV1beta1GetConfigResponse < 3) { 210 if (buildCounterGoogleCloudMlV1beta1GetConfigResponse < 3) {
190 unittest.expect(o.serviceAccount, unittest.equals('foo')); 211 unittest.expect(o.serviceAccount, unittest.equals('foo'));
191 unittest.expect(o.serviceAccountProject, unittest.equals('foo')); 212 unittest.expect(o.serviceAccountProject, unittest.equals('foo'));
192 } 213 }
193 buildCounterGoogleCloudMlV1beta1GetConfigResponse--; 214 buildCounterGoogleCloudMlV1beta1GetConfigResponse--;
194 } 215 }
195 216
196 buildUnnamed3222() { 217 buildUnnamed3070() {
197 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperparamet erMetric>(); 218 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperparamet erMetric>();
198 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric()); 219 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric());
199 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric()); 220 o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric());
200 return o; 221 return o;
201 } 222 }
202 223
203 checkUnnamed3222(core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperpara meterMetric> o) { 224 checkUnnamed3070(core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperpara meterMetric> o) {
204 unittest.expect(o, unittest.hasLength(2)); 225 unittest.expect(o, unittest.hasLength(2));
205 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[0]); 226 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[0]);
206 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[1]); 227 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[1]);
207 } 228 }
208 229
209 buildUnnamed3223() { 230 buildUnnamed3071() {
210 var o = new core.Map<core.String, core.String>(); 231 var o = new core.Map<core.String, core.String>();
211 o["x"] = "foo"; 232 o["x"] = "foo";
212 o["y"] = "foo"; 233 o["y"] = "foo";
213 return o; 234 return o;
214 } 235 }
215 236
216 checkUnnamed3223(core.Map<core.String, core.String> o) { 237 checkUnnamed3071(core.Map<core.String, core.String> o) {
217 unittest.expect(o, unittest.hasLength(2)); 238 unittest.expect(o, unittest.hasLength(2));
218 unittest.expect(o["x"], unittest.equals('foo')); 239 unittest.expect(o["x"], unittest.equals('foo'));
219 unittest.expect(o["y"], unittest.equals('foo')); 240 unittest.expect(o["y"], unittest.equals('foo'));
220 } 241 }
221 242
222 core.int buildCounterGoogleCloudMlV1beta1HyperparameterOutput = 0; 243 core.int buildCounterGoogleCloudMlV1beta1HyperparameterOutput = 0;
223 buildGoogleCloudMlV1beta1HyperparameterOutput() { 244 buildGoogleCloudMlV1beta1HyperparameterOutput() {
224 var o = new api.GoogleCloudMlV1beta1HyperparameterOutput(); 245 var o = new api.GoogleCloudMlV1beta1HyperparameterOutput();
225 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++; 246 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++;
226 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) { 247 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) {
227 o.allMetrics = buildUnnamed3222(); 248 o.allMetrics = buildUnnamed3070();
228 o.finalMetric = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterM etric(); 249 o.finalMetric = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterM etric();
229 o.hyperparameters = buildUnnamed3223(); 250 o.hyperparameters = buildUnnamed3071();
230 o.trialId = "foo"; 251 o.trialId = "foo";
231 } 252 }
232 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--; 253 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--;
233 return o; 254 return o;
234 } 255 }
235 256
236 checkGoogleCloudMlV1beta1HyperparameterOutput(api.GoogleCloudMlV1beta1Hyperparam eterOutput o) { 257 checkGoogleCloudMlV1beta1HyperparameterOutput(api.GoogleCloudMlV1beta1Hyperparam eterOutput o) {
237 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++; 258 buildCounterGoogleCloudMlV1beta1HyperparameterOutput++;
238 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) { 259 if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) {
239 checkUnnamed3222(o.allMetrics); 260 checkUnnamed3070(o.allMetrics);
240 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o.finalMet ric); 261 checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o.finalMet ric);
241 checkUnnamed3223(o.hyperparameters); 262 checkUnnamed3071(o.hyperparameters);
242 unittest.expect(o.trialId, unittest.equals('foo')); 263 unittest.expect(o.trialId, unittest.equals('foo'));
243 } 264 }
244 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--; 265 buildCounterGoogleCloudMlV1beta1HyperparameterOutput--;
245 } 266 }
246 267
247 buildUnnamed3224() { 268 buildUnnamed3072() {
248 var o = new core.List<api.GoogleCloudMlV1beta1ParameterSpec>(); 269 var o = new core.List<api.GoogleCloudMlV1beta1ParameterSpec>();
249 o.add(buildGoogleCloudMlV1beta1ParameterSpec()); 270 o.add(buildGoogleCloudMlV1beta1ParameterSpec());
250 o.add(buildGoogleCloudMlV1beta1ParameterSpec()); 271 o.add(buildGoogleCloudMlV1beta1ParameterSpec());
251 return o; 272 return o;
252 } 273 }
253 274
254 checkUnnamed3224(core.List<api.GoogleCloudMlV1beta1ParameterSpec> o) { 275 checkUnnamed3072(core.List<api.GoogleCloudMlV1beta1ParameterSpec> o) {
255 unittest.expect(o, unittest.hasLength(2)); 276 unittest.expect(o, unittest.hasLength(2));
256 checkGoogleCloudMlV1beta1ParameterSpec(o[0]); 277 checkGoogleCloudMlV1beta1ParameterSpec(o[0]);
257 checkGoogleCloudMlV1beta1ParameterSpec(o[1]); 278 checkGoogleCloudMlV1beta1ParameterSpec(o[1]);
258 } 279 }
259 280
260 core.int buildCounterGoogleCloudMlV1beta1HyperparameterSpec = 0; 281 core.int buildCounterGoogleCloudMlV1beta1HyperparameterSpec = 0;
261 buildGoogleCloudMlV1beta1HyperparameterSpec() { 282 buildGoogleCloudMlV1beta1HyperparameterSpec() {
262 var o = new api.GoogleCloudMlV1beta1HyperparameterSpec(); 283 var o = new api.GoogleCloudMlV1beta1HyperparameterSpec();
263 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++; 284 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++;
264 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) { 285 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) {
265 o.goal = "foo"; 286 o.goal = "foo";
266 o.hyperparameterMetricTag = "foo"; 287 o.hyperparameterMetricTag = "foo";
267 o.maxParallelTrials = 42; 288 o.maxParallelTrials = 42;
268 o.maxTrials = 42; 289 o.maxTrials = 42;
269 o.params = buildUnnamed3224(); 290 o.params = buildUnnamed3072();
270 } 291 }
271 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--; 292 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--;
272 return o; 293 return o;
273 } 294 }
274 295
275 checkGoogleCloudMlV1beta1HyperparameterSpec(api.GoogleCloudMlV1beta1Hyperparamet erSpec o) { 296 checkGoogleCloudMlV1beta1HyperparameterSpec(api.GoogleCloudMlV1beta1Hyperparamet erSpec o) {
276 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++; 297 buildCounterGoogleCloudMlV1beta1HyperparameterSpec++;
277 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) { 298 if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) {
278 unittest.expect(o.goal, unittest.equals('foo')); 299 unittest.expect(o.goal, unittest.equals('foo'));
279 unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo')); 300 unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo'));
280 unittest.expect(o.maxParallelTrials, unittest.equals(42)); 301 unittest.expect(o.maxParallelTrials, unittest.equals(42));
281 unittest.expect(o.maxTrials, unittest.equals(42)); 302 unittest.expect(o.maxTrials, unittest.equals(42));
282 checkUnnamed3224(o.params); 303 checkUnnamed3072(o.params);
283 } 304 }
284 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--; 305 buildCounterGoogleCloudMlV1beta1HyperparameterSpec--;
285 } 306 }
286 307
287 core.int buildCounterGoogleCloudMlV1beta1Job = 0; 308 core.int buildCounterGoogleCloudMlV1beta1Job = 0;
288 buildGoogleCloudMlV1beta1Job() { 309 buildGoogleCloudMlV1beta1Job() {
289 var o = new api.GoogleCloudMlV1beta1Job(); 310 var o = new api.GoogleCloudMlV1beta1Job();
290 buildCounterGoogleCloudMlV1beta1Job++; 311 buildCounterGoogleCloudMlV1beta1Job++;
291 if (buildCounterGoogleCloudMlV1beta1Job < 3) { 312 if (buildCounterGoogleCloudMlV1beta1Job < 3) {
292 o.createTime = "foo"; 313 o.createTime = "foo";
(...skipping 21 matching lines...) Expand all
314 checkGoogleCloudMlV1beta1PredictionInput(o.predictionInput); 335 checkGoogleCloudMlV1beta1PredictionInput(o.predictionInput);
315 checkGoogleCloudMlV1beta1PredictionOutput(o.predictionOutput); 336 checkGoogleCloudMlV1beta1PredictionOutput(o.predictionOutput);
316 unittest.expect(o.startTime, unittest.equals('foo')); 337 unittest.expect(o.startTime, unittest.equals('foo'));
317 unittest.expect(o.state, unittest.equals('foo')); 338 unittest.expect(o.state, unittest.equals('foo'));
318 checkGoogleCloudMlV1beta1TrainingInput(o.trainingInput); 339 checkGoogleCloudMlV1beta1TrainingInput(o.trainingInput);
319 checkGoogleCloudMlV1beta1TrainingOutput(o.trainingOutput); 340 checkGoogleCloudMlV1beta1TrainingOutput(o.trainingOutput);
320 } 341 }
321 buildCounterGoogleCloudMlV1beta1Job--; 342 buildCounterGoogleCloudMlV1beta1Job--;
322 } 343 }
323 344
324 buildUnnamed3225() { 345 buildUnnamed3073() {
325 var o = new core.List<api.GoogleCloudMlV1beta1Job>(); 346 var o = new core.List<api.GoogleCloudMlV1beta1Job>();
326 o.add(buildGoogleCloudMlV1beta1Job()); 347 o.add(buildGoogleCloudMlV1beta1Job());
327 o.add(buildGoogleCloudMlV1beta1Job()); 348 o.add(buildGoogleCloudMlV1beta1Job());
328 return o; 349 return o;
329 } 350 }
330 351
331 checkUnnamed3225(core.List<api.GoogleCloudMlV1beta1Job> o) { 352 checkUnnamed3073(core.List<api.GoogleCloudMlV1beta1Job> o) {
332 unittest.expect(o, unittest.hasLength(2)); 353 unittest.expect(o, unittest.hasLength(2));
333 checkGoogleCloudMlV1beta1Job(o[0]); 354 checkGoogleCloudMlV1beta1Job(o[0]);
334 checkGoogleCloudMlV1beta1Job(o[1]); 355 checkGoogleCloudMlV1beta1Job(o[1]);
335 } 356 }
336 357
337 core.int buildCounterGoogleCloudMlV1beta1ListJobsResponse = 0; 358 core.int buildCounterGoogleCloudMlV1beta1ListJobsResponse = 0;
338 buildGoogleCloudMlV1beta1ListJobsResponse() { 359 buildGoogleCloudMlV1beta1ListJobsResponse() {
339 var o = new api.GoogleCloudMlV1beta1ListJobsResponse(); 360 var o = new api.GoogleCloudMlV1beta1ListJobsResponse();
340 buildCounterGoogleCloudMlV1beta1ListJobsResponse++; 361 buildCounterGoogleCloudMlV1beta1ListJobsResponse++;
341 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) { 362 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) {
342 o.jobs = buildUnnamed3225(); 363 o.jobs = buildUnnamed3073();
343 o.nextPageToken = "foo"; 364 o.nextPageToken = "foo";
344 } 365 }
345 buildCounterGoogleCloudMlV1beta1ListJobsResponse--; 366 buildCounterGoogleCloudMlV1beta1ListJobsResponse--;
346 return o; 367 return o;
347 } 368 }
348 369
349 checkGoogleCloudMlV1beta1ListJobsResponse(api.GoogleCloudMlV1beta1ListJobsRespon se o) { 370 checkGoogleCloudMlV1beta1ListJobsResponse(api.GoogleCloudMlV1beta1ListJobsRespon se o) {
350 buildCounterGoogleCloudMlV1beta1ListJobsResponse++; 371 buildCounterGoogleCloudMlV1beta1ListJobsResponse++;
351 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) { 372 if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) {
352 checkUnnamed3225(o.jobs); 373 checkUnnamed3073(o.jobs);
353 unittest.expect(o.nextPageToken, unittest.equals('foo')); 374 unittest.expect(o.nextPageToken, unittest.equals('foo'));
354 } 375 }
355 buildCounterGoogleCloudMlV1beta1ListJobsResponse--; 376 buildCounterGoogleCloudMlV1beta1ListJobsResponse--;
356 } 377 }
357 378
358 buildUnnamed3226() { 379 buildUnnamed3074() {
359 var o = new core.List<api.GoogleCloudMlV1beta1Model>(); 380 var o = new core.List<api.GoogleCloudMlV1beta1Model>();
360 o.add(buildGoogleCloudMlV1beta1Model()); 381 o.add(buildGoogleCloudMlV1beta1Model());
361 o.add(buildGoogleCloudMlV1beta1Model()); 382 o.add(buildGoogleCloudMlV1beta1Model());
362 return o; 383 return o;
363 } 384 }
364 385
365 checkUnnamed3226(core.List<api.GoogleCloudMlV1beta1Model> o) { 386 checkUnnamed3074(core.List<api.GoogleCloudMlV1beta1Model> o) {
366 unittest.expect(o, unittest.hasLength(2)); 387 unittest.expect(o, unittest.hasLength(2));
367 checkGoogleCloudMlV1beta1Model(o[0]); 388 checkGoogleCloudMlV1beta1Model(o[0]);
368 checkGoogleCloudMlV1beta1Model(o[1]); 389 checkGoogleCloudMlV1beta1Model(o[1]);
369 } 390 }
370 391
371 core.int buildCounterGoogleCloudMlV1beta1ListModelsResponse = 0; 392 core.int buildCounterGoogleCloudMlV1beta1ListModelsResponse = 0;
372 buildGoogleCloudMlV1beta1ListModelsResponse() { 393 buildGoogleCloudMlV1beta1ListModelsResponse() {
373 var o = new api.GoogleCloudMlV1beta1ListModelsResponse(); 394 var o = new api.GoogleCloudMlV1beta1ListModelsResponse();
374 buildCounterGoogleCloudMlV1beta1ListModelsResponse++; 395 buildCounterGoogleCloudMlV1beta1ListModelsResponse++;
375 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) { 396 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) {
376 o.models = buildUnnamed3226(); 397 o.models = buildUnnamed3074();
377 o.nextPageToken = "foo"; 398 o.nextPageToken = "foo";
378 } 399 }
379 buildCounterGoogleCloudMlV1beta1ListModelsResponse--; 400 buildCounterGoogleCloudMlV1beta1ListModelsResponse--;
380 return o; 401 return o;
381 } 402 }
382 403
383 checkGoogleCloudMlV1beta1ListModelsResponse(api.GoogleCloudMlV1beta1ListModelsRe sponse o) { 404 checkGoogleCloudMlV1beta1ListModelsResponse(api.GoogleCloudMlV1beta1ListModelsRe sponse o) {
384 buildCounterGoogleCloudMlV1beta1ListModelsResponse++; 405 buildCounterGoogleCloudMlV1beta1ListModelsResponse++;
385 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) { 406 if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) {
386 checkUnnamed3226(o.models); 407 checkUnnamed3074(o.models);
387 unittest.expect(o.nextPageToken, unittest.equals('foo')); 408 unittest.expect(o.nextPageToken, unittest.equals('foo'));
388 } 409 }
389 buildCounterGoogleCloudMlV1beta1ListModelsResponse--; 410 buildCounterGoogleCloudMlV1beta1ListModelsResponse--;
390 } 411 }
391 412
392 buildUnnamed3227() { 413 buildUnnamed3075() {
393 var o = new core.List<api.GoogleCloudMlV1beta1Version>(); 414 var o = new core.List<api.GoogleCloudMlV1beta1Version>();
394 o.add(buildGoogleCloudMlV1beta1Version()); 415 o.add(buildGoogleCloudMlV1beta1Version());
395 o.add(buildGoogleCloudMlV1beta1Version()); 416 o.add(buildGoogleCloudMlV1beta1Version());
396 return o; 417 return o;
397 } 418 }
398 419
399 checkUnnamed3227(core.List<api.GoogleCloudMlV1beta1Version> o) { 420 checkUnnamed3075(core.List<api.GoogleCloudMlV1beta1Version> o) {
400 unittest.expect(o, unittest.hasLength(2)); 421 unittest.expect(o, unittest.hasLength(2));
401 checkGoogleCloudMlV1beta1Version(o[0]); 422 checkGoogleCloudMlV1beta1Version(o[0]);
402 checkGoogleCloudMlV1beta1Version(o[1]); 423 checkGoogleCloudMlV1beta1Version(o[1]);
403 } 424 }
404 425
405 core.int buildCounterGoogleCloudMlV1beta1ListVersionsResponse = 0; 426 core.int buildCounterGoogleCloudMlV1beta1ListVersionsResponse = 0;
406 buildGoogleCloudMlV1beta1ListVersionsResponse() { 427 buildGoogleCloudMlV1beta1ListVersionsResponse() {
407 var o = new api.GoogleCloudMlV1beta1ListVersionsResponse(); 428 var o = new api.GoogleCloudMlV1beta1ListVersionsResponse();
408 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++; 429 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++;
409 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) { 430 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) {
410 o.nextPageToken = "foo"; 431 o.nextPageToken = "foo";
411 o.versions = buildUnnamed3227(); 432 o.versions = buildUnnamed3075();
412 } 433 }
413 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--; 434 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--;
414 return o; 435 return o;
415 } 436 }
416 437
417 checkGoogleCloudMlV1beta1ListVersionsResponse(api.GoogleCloudMlV1beta1ListVersio nsResponse o) { 438 checkGoogleCloudMlV1beta1ListVersionsResponse(api.GoogleCloudMlV1beta1ListVersio nsResponse o) {
418 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++; 439 buildCounterGoogleCloudMlV1beta1ListVersionsResponse++;
419 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) { 440 if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) {
420 unittest.expect(o.nextPageToken, unittest.equals('foo')); 441 unittest.expect(o.nextPageToken, unittest.equals('foo'));
421 checkUnnamed3227(o.versions); 442 checkUnnamed3075(o.versions);
422 } 443 }
423 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--; 444 buildCounterGoogleCloudMlV1beta1ListVersionsResponse--;
424 } 445 }
425 446
426 buildUnnamed3228() { 447 core.int buildCounterGoogleCloudMlV1beta1ManualScaling = 0;
448 buildGoogleCloudMlV1beta1ManualScaling() {
449 var o = new api.GoogleCloudMlV1beta1ManualScaling();
450 buildCounterGoogleCloudMlV1beta1ManualScaling++;
451 if (buildCounterGoogleCloudMlV1beta1ManualScaling < 3) {
452 o.nodes = 42;
453 }
454 buildCounterGoogleCloudMlV1beta1ManualScaling--;
455 return o;
456 }
457
458 checkGoogleCloudMlV1beta1ManualScaling(api.GoogleCloudMlV1beta1ManualScaling o) {
459 buildCounterGoogleCloudMlV1beta1ManualScaling++;
460 if (buildCounterGoogleCloudMlV1beta1ManualScaling < 3) {
461 unittest.expect(o.nodes, unittest.equals(42));
462 }
463 buildCounterGoogleCloudMlV1beta1ManualScaling--;
464 }
465
466 buildUnnamed3076() {
427 var o = new core.List<core.String>(); 467 var o = new core.List<core.String>();
428 o.add("foo"); 468 o.add("foo");
429 o.add("foo"); 469 o.add("foo");
430 return o; 470 return o;
431 } 471 }
432 472
433 checkUnnamed3228(core.List<core.String> o) { 473 checkUnnamed3076(core.List<core.String> o) {
434 unittest.expect(o, unittest.hasLength(2)); 474 unittest.expect(o, unittest.hasLength(2));
435 unittest.expect(o[0], unittest.equals('foo')); 475 unittest.expect(o[0], unittest.equals('foo'));
436 unittest.expect(o[1], unittest.equals('foo')); 476 unittest.expect(o[1], unittest.equals('foo'));
437 } 477 }
438 478
439 core.int buildCounterGoogleCloudMlV1beta1Model = 0; 479 core.int buildCounterGoogleCloudMlV1beta1Model = 0;
440 buildGoogleCloudMlV1beta1Model() { 480 buildGoogleCloudMlV1beta1Model() {
441 var o = new api.GoogleCloudMlV1beta1Model(); 481 var o = new api.GoogleCloudMlV1beta1Model();
442 buildCounterGoogleCloudMlV1beta1Model++; 482 buildCounterGoogleCloudMlV1beta1Model++;
443 if (buildCounterGoogleCloudMlV1beta1Model < 3) { 483 if (buildCounterGoogleCloudMlV1beta1Model < 3) {
444 o.defaultVersion = buildGoogleCloudMlV1beta1Version(); 484 o.defaultVersion = buildGoogleCloudMlV1beta1Version();
445 o.description = "foo"; 485 o.description = "foo";
446 o.name = "foo"; 486 o.name = "foo";
447 o.onlinePredictionLogging = true; 487 o.onlinePredictionLogging = true;
448 o.regions = buildUnnamed3228(); 488 o.regions = buildUnnamed3076();
449 } 489 }
450 buildCounterGoogleCloudMlV1beta1Model--; 490 buildCounterGoogleCloudMlV1beta1Model--;
451 return o; 491 return o;
452 } 492 }
453 493
454 checkGoogleCloudMlV1beta1Model(api.GoogleCloudMlV1beta1Model o) { 494 checkGoogleCloudMlV1beta1Model(api.GoogleCloudMlV1beta1Model o) {
455 buildCounterGoogleCloudMlV1beta1Model++; 495 buildCounterGoogleCloudMlV1beta1Model++;
456 if (buildCounterGoogleCloudMlV1beta1Model < 3) { 496 if (buildCounterGoogleCloudMlV1beta1Model < 3) {
457 checkGoogleCloudMlV1beta1Version(o.defaultVersion); 497 checkGoogleCloudMlV1beta1Version(o.defaultVersion);
458 unittest.expect(o.description, unittest.equals('foo')); 498 unittest.expect(o.description, unittest.equals('foo'));
459 unittest.expect(o.name, unittest.equals('foo')); 499 unittest.expect(o.name, unittest.equals('foo'));
460 unittest.expect(o.onlinePredictionLogging, unittest.isTrue); 500 unittest.expect(o.onlinePredictionLogging, unittest.isTrue);
461 checkUnnamed3228(o.regions); 501 checkUnnamed3076(o.regions);
462 } 502 }
463 buildCounterGoogleCloudMlV1beta1Model--; 503 buildCounterGoogleCloudMlV1beta1Model--;
464 } 504 }
465 505
466 core.int buildCounterGoogleCloudMlV1beta1OperationMetadata = 0; 506 core.int buildCounterGoogleCloudMlV1beta1OperationMetadata = 0;
467 buildGoogleCloudMlV1beta1OperationMetadata() { 507 buildGoogleCloudMlV1beta1OperationMetadata() {
468 var o = new api.GoogleCloudMlV1beta1OperationMetadata(); 508 var o = new api.GoogleCloudMlV1beta1OperationMetadata();
469 buildCounterGoogleCloudMlV1beta1OperationMetadata++; 509 buildCounterGoogleCloudMlV1beta1OperationMetadata++;
470 if (buildCounterGoogleCloudMlV1beta1OperationMetadata < 3) { 510 if (buildCounterGoogleCloudMlV1beta1OperationMetadata < 3) {
471 o.createTime = "foo"; 511 o.createTime = "foo";
(...skipping 15 matching lines...) Expand all
487 unittest.expect(o.endTime, unittest.equals('foo')); 527 unittest.expect(o.endTime, unittest.equals('foo'));
488 unittest.expect(o.isCancellationRequested, unittest.isTrue); 528 unittest.expect(o.isCancellationRequested, unittest.isTrue);
489 unittest.expect(o.modelName, unittest.equals('foo')); 529 unittest.expect(o.modelName, unittest.equals('foo'));
490 unittest.expect(o.operationType, unittest.equals('foo')); 530 unittest.expect(o.operationType, unittest.equals('foo'));
491 unittest.expect(o.startTime, unittest.equals('foo')); 531 unittest.expect(o.startTime, unittest.equals('foo'));
492 checkGoogleCloudMlV1beta1Version(o.version); 532 checkGoogleCloudMlV1beta1Version(o.version);
493 } 533 }
494 buildCounterGoogleCloudMlV1beta1OperationMetadata--; 534 buildCounterGoogleCloudMlV1beta1OperationMetadata--;
495 } 535 }
496 536
497 buildUnnamed3229() { 537 buildUnnamed3077() {
498 var o = new core.List<core.String>(); 538 var o = new core.List<core.String>();
499 o.add("foo"); 539 o.add("foo");
500 o.add("foo"); 540 o.add("foo");
501 return o; 541 return o;
502 } 542 }
503 543
504 checkUnnamed3229(core.List<core.String> o) { 544 checkUnnamed3077(core.List<core.String> o) {
505 unittest.expect(o, unittest.hasLength(2)); 545 unittest.expect(o, unittest.hasLength(2));
506 unittest.expect(o[0], unittest.equals('foo')); 546 unittest.expect(o[0], unittest.equals('foo'));
507 unittest.expect(o[1], unittest.equals('foo')); 547 unittest.expect(o[1], unittest.equals('foo'));
508 } 548 }
509 549
510 buildUnnamed3230() { 550 buildUnnamed3078() {
511 var o = new core.List<core.double>(); 551 var o = new core.List<core.double>();
512 o.add(42.0); 552 o.add(42.0);
513 o.add(42.0); 553 o.add(42.0);
514 return o; 554 return o;
515 } 555 }
516 556
517 checkUnnamed3230(core.List<core.double> o) { 557 checkUnnamed3078(core.List<core.double> o) {
518 unittest.expect(o, unittest.hasLength(2)); 558 unittest.expect(o, unittest.hasLength(2));
519 unittest.expect(o[0], unittest.equals(42.0)); 559 unittest.expect(o[0], unittest.equals(42.0));
520 unittest.expect(o[1], unittest.equals(42.0)); 560 unittest.expect(o[1], unittest.equals(42.0));
521 } 561 }
522 562
523 core.int buildCounterGoogleCloudMlV1beta1ParameterSpec = 0; 563 core.int buildCounterGoogleCloudMlV1beta1ParameterSpec = 0;
524 buildGoogleCloudMlV1beta1ParameterSpec() { 564 buildGoogleCloudMlV1beta1ParameterSpec() {
525 var o = new api.GoogleCloudMlV1beta1ParameterSpec(); 565 var o = new api.GoogleCloudMlV1beta1ParameterSpec();
526 buildCounterGoogleCloudMlV1beta1ParameterSpec++; 566 buildCounterGoogleCloudMlV1beta1ParameterSpec++;
527 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { 567 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) {
528 o.categoricalValues = buildUnnamed3229(); 568 o.categoricalValues = buildUnnamed3077();
529 o.discreteValues = buildUnnamed3230(); 569 o.discreteValues = buildUnnamed3078();
530 o.maxValue = 42.0; 570 o.maxValue = 42.0;
531 o.minValue = 42.0; 571 o.minValue = 42.0;
532 o.parameterName = "foo"; 572 o.parameterName = "foo";
533 o.scaleType = "foo"; 573 o.scaleType = "foo";
534 o.type = "foo"; 574 o.type = "foo";
535 } 575 }
536 buildCounterGoogleCloudMlV1beta1ParameterSpec--; 576 buildCounterGoogleCloudMlV1beta1ParameterSpec--;
537 return o; 577 return o;
538 } 578 }
539 579
540 checkGoogleCloudMlV1beta1ParameterSpec(api.GoogleCloudMlV1beta1ParameterSpec o) { 580 checkGoogleCloudMlV1beta1ParameterSpec(api.GoogleCloudMlV1beta1ParameterSpec o) {
541 buildCounterGoogleCloudMlV1beta1ParameterSpec++; 581 buildCounterGoogleCloudMlV1beta1ParameterSpec++;
542 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { 582 if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) {
543 checkUnnamed3229(o.categoricalValues); 583 checkUnnamed3077(o.categoricalValues);
544 checkUnnamed3230(o.discreteValues); 584 checkUnnamed3078(o.discreteValues);
545 unittest.expect(o.maxValue, unittest.equals(42.0)); 585 unittest.expect(o.maxValue, unittest.equals(42.0));
546 unittest.expect(o.minValue, unittest.equals(42.0)); 586 unittest.expect(o.minValue, unittest.equals(42.0));
547 unittest.expect(o.parameterName, unittest.equals('foo')); 587 unittest.expect(o.parameterName, unittest.equals('foo'));
548 unittest.expect(o.scaleType, unittest.equals('foo')); 588 unittest.expect(o.scaleType, unittest.equals('foo'));
549 unittest.expect(o.type, unittest.equals('foo')); 589 unittest.expect(o.type, unittest.equals('foo'));
550 } 590 }
551 buildCounterGoogleCloudMlV1beta1ParameterSpec--; 591 buildCounterGoogleCloudMlV1beta1ParameterSpec--;
552 } 592 }
553 593
554 core.int buildCounterGoogleCloudMlV1beta1PredictRequest = 0; 594 core.int buildCounterGoogleCloudMlV1beta1PredictRequest = 0;
555 buildGoogleCloudMlV1beta1PredictRequest() { 595 buildGoogleCloudMlV1beta1PredictRequest() {
556 var o = new api.GoogleCloudMlV1beta1PredictRequest(); 596 var o = new api.GoogleCloudMlV1beta1PredictRequest();
557 buildCounterGoogleCloudMlV1beta1PredictRequest++; 597 buildCounterGoogleCloudMlV1beta1PredictRequest++;
558 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { 598 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) {
559 o.httpBody = buildGoogleApiHttpBody(); 599 o.httpBody = buildGoogleApiHttpBody();
560 } 600 }
561 buildCounterGoogleCloudMlV1beta1PredictRequest--; 601 buildCounterGoogleCloudMlV1beta1PredictRequest--;
562 return o; 602 return o;
563 } 603 }
564 604
565 checkGoogleCloudMlV1beta1PredictRequest(api.GoogleCloudMlV1beta1PredictRequest o ) { 605 checkGoogleCloudMlV1beta1PredictRequest(api.GoogleCloudMlV1beta1PredictRequest o ) {
566 buildCounterGoogleCloudMlV1beta1PredictRequest++; 606 buildCounterGoogleCloudMlV1beta1PredictRequest++;
567 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { 607 if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) {
568 checkGoogleApiHttpBody(o.httpBody); 608 checkGoogleApiHttpBody(o.httpBody);
569 } 609 }
570 buildCounterGoogleCloudMlV1beta1PredictRequest--; 610 buildCounterGoogleCloudMlV1beta1PredictRequest--;
571 } 611 }
572 612
573 buildUnnamed3231() { 613 buildUnnamed3079() {
574 var o = new core.List<core.String>(); 614 var o = new core.List<core.String>();
575 o.add("foo"); 615 o.add("foo");
576 o.add("foo"); 616 o.add("foo");
577 return o; 617 return o;
578 } 618 }
579 619
580 checkUnnamed3231(core.List<core.String> o) { 620 checkUnnamed3079(core.List<core.String> o) {
581 unittest.expect(o, unittest.hasLength(2)); 621 unittest.expect(o, unittest.hasLength(2));
582 unittest.expect(o[0], unittest.equals('foo')); 622 unittest.expect(o[0], unittest.equals('foo'));
583 unittest.expect(o[1], unittest.equals('foo')); 623 unittest.expect(o[1], unittest.equals('foo'));
584 } 624 }
585 625
586 core.int buildCounterGoogleCloudMlV1beta1PredictionInput = 0; 626 core.int buildCounterGoogleCloudMlV1beta1PredictionInput = 0;
587 buildGoogleCloudMlV1beta1PredictionInput() { 627 buildGoogleCloudMlV1beta1PredictionInput() {
588 var o = new api.GoogleCloudMlV1beta1PredictionInput(); 628 var o = new api.GoogleCloudMlV1beta1PredictionInput();
589 buildCounterGoogleCloudMlV1beta1PredictionInput++; 629 buildCounterGoogleCloudMlV1beta1PredictionInput++;
590 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { 630 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) {
591 o.dataFormat = "foo"; 631 o.dataFormat = "foo";
592 o.inputPaths = buildUnnamed3231(); 632 o.inputPaths = buildUnnamed3079();
593 o.maxWorkerCount = "foo"; 633 o.maxWorkerCount = "foo";
594 o.modelName = "foo"; 634 o.modelName = "foo";
595 o.outputPath = "foo"; 635 o.outputPath = "foo";
596 o.region = "foo"; 636 o.region = "foo";
597 o.runtimeVersion = "foo"; 637 o.runtimeVersion = "foo";
598 o.uri = "foo"; 638 o.uri = "foo";
599 o.versionName = "foo"; 639 o.versionName = "foo";
600 } 640 }
601 buildCounterGoogleCloudMlV1beta1PredictionInput--; 641 buildCounterGoogleCloudMlV1beta1PredictionInput--;
602 return o; 642 return o;
603 } 643 }
604 644
605 checkGoogleCloudMlV1beta1PredictionInput(api.GoogleCloudMlV1beta1PredictionInput o) { 645 checkGoogleCloudMlV1beta1PredictionInput(api.GoogleCloudMlV1beta1PredictionInput o) {
606 buildCounterGoogleCloudMlV1beta1PredictionInput++; 646 buildCounterGoogleCloudMlV1beta1PredictionInput++;
607 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { 647 if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) {
608 unittest.expect(o.dataFormat, unittest.equals('foo')); 648 unittest.expect(o.dataFormat, unittest.equals('foo'));
609 checkUnnamed3231(o.inputPaths); 649 checkUnnamed3079(o.inputPaths);
610 unittest.expect(o.maxWorkerCount, unittest.equals('foo')); 650 unittest.expect(o.maxWorkerCount, unittest.equals('foo'));
611 unittest.expect(o.modelName, unittest.equals('foo')); 651 unittest.expect(o.modelName, unittest.equals('foo'));
612 unittest.expect(o.outputPath, unittest.equals('foo')); 652 unittest.expect(o.outputPath, unittest.equals('foo'));
613 unittest.expect(o.region, unittest.equals('foo')); 653 unittest.expect(o.region, unittest.equals('foo'));
614 unittest.expect(o.runtimeVersion, unittest.equals('foo')); 654 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
615 unittest.expect(o.uri, unittest.equals('foo')); 655 unittest.expect(o.uri, unittest.equals('foo'));
616 unittest.expect(o.versionName, unittest.equals('foo')); 656 unittest.expect(o.versionName, unittest.equals('foo'));
617 } 657 }
618 buildCounterGoogleCloudMlV1beta1PredictionInput--; 658 buildCounterGoogleCloudMlV1beta1PredictionInput--;
619 } 659 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 return o; 693 return o;
654 } 694 }
655 695
656 checkGoogleCloudMlV1beta1SetDefaultVersionRequest(api.GoogleCloudMlV1beta1SetDef aultVersionRequest o) { 696 checkGoogleCloudMlV1beta1SetDefaultVersionRequest(api.GoogleCloudMlV1beta1SetDef aultVersionRequest o) {
657 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++; 697 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++;
658 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) { 698 if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) {
659 } 699 }
660 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--; 700 buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--;
661 } 701 }
662 702
663 buildUnnamed3232() { 703 buildUnnamed3080() {
664 var o = new core.List<core.String>(); 704 var o = new core.List<core.String>();
665 o.add("foo"); 705 o.add("foo");
666 o.add("foo"); 706 o.add("foo");
667 return o; 707 return o;
668 } 708 }
669 709
670 checkUnnamed3232(core.List<core.String> o) { 710 checkUnnamed3080(core.List<core.String> o) {
671 unittest.expect(o, unittest.hasLength(2)); 711 unittest.expect(o, unittest.hasLength(2));
672 unittest.expect(o[0], unittest.equals('foo')); 712 unittest.expect(o[0], unittest.equals('foo'));
673 unittest.expect(o[1], unittest.equals('foo')); 713 unittest.expect(o[1], unittest.equals('foo'));
674 } 714 }
675 715
676 buildUnnamed3233() { 716 buildUnnamed3081() {
677 var o = new core.List<core.String>(); 717 var o = new core.List<core.String>();
678 o.add("foo"); 718 o.add("foo");
679 o.add("foo"); 719 o.add("foo");
680 return o; 720 return o;
681 } 721 }
682 722
683 checkUnnamed3233(core.List<core.String> o) { 723 checkUnnamed3081(core.List<core.String> o) {
684 unittest.expect(o, unittest.hasLength(2)); 724 unittest.expect(o, unittest.hasLength(2));
685 unittest.expect(o[0], unittest.equals('foo')); 725 unittest.expect(o[0], unittest.equals('foo'));
686 unittest.expect(o[1], unittest.equals('foo')); 726 unittest.expect(o[1], unittest.equals('foo'));
687 } 727 }
688 728
689 core.int buildCounterGoogleCloudMlV1beta1TrainingInput = 0; 729 core.int buildCounterGoogleCloudMlV1beta1TrainingInput = 0;
690 buildGoogleCloudMlV1beta1TrainingInput() { 730 buildGoogleCloudMlV1beta1TrainingInput() {
691 var o = new api.GoogleCloudMlV1beta1TrainingInput(); 731 var o = new api.GoogleCloudMlV1beta1TrainingInput();
692 buildCounterGoogleCloudMlV1beta1TrainingInput++; 732 buildCounterGoogleCloudMlV1beta1TrainingInput++;
693 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { 733 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) {
694 o.args = buildUnnamed3232(); 734 o.args = buildUnnamed3080();
695 o.hyperparameters = buildGoogleCloudMlV1beta1HyperparameterSpec(); 735 o.hyperparameters = buildGoogleCloudMlV1beta1HyperparameterSpec();
696 o.jobDir = "foo"; 736 o.jobDir = "foo";
697 o.masterType = "foo"; 737 o.masterType = "foo";
698 o.packageUris = buildUnnamed3233(); 738 o.packageUris = buildUnnamed3081();
699 o.parameterServerCount = "foo"; 739 o.parameterServerCount = "foo";
700 o.parameterServerType = "foo"; 740 o.parameterServerType = "foo";
701 o.pythonModule = "foo"; 741 o.pythonModule = "foo";
702 o.region = "foo"; 742 o.region = "foo";
703 o.runtimeVersion = "foo"; 743 o.runtimeVersion = "foo";
704 o.scaleTier = "foo"; 744 o.scaleTier = "foo";
705 o.workerCount = "foo"; 745 o.workerCount = "foo";
706 o.workerType = "foo"; 746 o.workerType = "foo";
707 } 747 }
708 buildCounterGoogleCloudMlV1beta1TrainingInput--; 748 buildCounterGoogleCloudMlV1beta1TrainingInput--;
709 return o; 749 return o;
710 } 750 }
711 751
712 checkGoogleCloudMlV1beta1TrainingInput(api.GoogleCloudMlV1beta1TrainingInput o) { 752 checkGoogleCloudMlV1beta1TrainingInput(api.GoogleCloudMlV1beta1TrainingInput o) {
713 buildCounterGoogleCloudMlV1beta1TrainingInput++; 753 buildCounterGoogleCloudMlV1beta1TrainingInput++;
714 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { 754 if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) {
715 checkUnnamed3232(o.args); 755 checkUnnamed3080(o.args);
716 checkGoogleCloudMlV1beta1HyperparameterSpec(o.hyperparameters); 756 checkGoogleCloudMlV1beta1HyperparameterSpec(o.hyperparameters);
717 unittest.expect(o.jobDir, unittest.equals('foo')); 757 unittest.expect(o.jobDir, unittest.equals('foo'));
718 unittest.expect(o.masterType, unittest.equals('foo')); 758 unittest.expect(o.masterType, unittest.equals('foo'));
719 checkUnnamed3233(o.packageUris); 759 checkUnnamed3081(o.packageUris);
720 unittest.expect(o.parameterServerCount, unittest.equals('foo')); 760 unittest.expect(o.parameterServerCount, unittest.equals('foo'));
721 unittest.expect(o.parameterServerType, unittest.equals('foo')); 761 unittest.expect(o.parameterServerType, unittest.equals('foo'));
722 unittest.expect(o.pythonModule, unittest.equals('foo')); 762 unittest.expect(o.pythonModule, unittest.equals('foo'));
723 unittest.expect(o.region, unittest.equals('foo')); 763 unittest.expect(o.region, unittest.equals('foo'));
724 unittest.expect(o.runtimeVersion, unittest.equals('foo')); 764 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
725 unittest.expect(o.scaleTier, unittest.equals('foo')); 765 unittest.expect(o.scaleTier, unittest.equals('foo'));
726 unittest.expect(o.workerCount, unittest.equals('foo')); 766 unittest.expect(o.workerCount, unittest.equals('foo'));
727 unittest.expect(o.workerType, unittest.equals('foo')); 767 unittest.expect(o.workerType, unittest.equals('foo'));
728 } 768 }
729 buildCounterGoogleCloudMlV1beta1TrainingInput--; 769 buildCounterGoogleCloudMlV1beta1TrainingInput--;
730 } 770 }
731 771
732 buildUnnamed3234() { 772 buildUnnamed3082() {
733 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutput>(); 773 var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutput>();
734 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); 774 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput());
735 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); 775 o.add(buildGoogleCloudMlV1beta1HyperparameterOutput());
736 return o; 776 return o;
737 } 777 }
738 778
739 checkUnnamed3234(core.List<api.GoogleCloudMlV1beta1HyperparameterOutput> o) { 779 checkUnnamed3082(core.List<api.GoogleCloudMlV1beta1HyperparameterOutput> o) {
740 unittest.expect(o, unittest.hasLength(2)); 780 unittest.expect(o, unittest.hasLength(2));
741 checkGoogleCloudMlV1beta1HyperparameterOutput(o[0]); 781 checkGoogleCloudMlV1beta1HyperparameterOutput(o[0]);
742 checkGoogleCloudMlV1beta1HyperparameterOutput(o[1]); 782 checkGoogleCloudMlV1beta1HyperparameterOutput(o[1]);
743 } 783 }
744 784
745 core.int buildCounterGoogleCloudMlV1beta1TrainingOutput = 0; 785 core.int buildCounterGoogleCloudMlV1beta1TrainingOutput = 0;
746 buildGoogleCloudMlV1beta1TrainingOutput() { 786 buildGoogleCloudMlV1beta1TrainingOutput() {
747 var o = new api.GoogleCloudMlV1beta1TrainingOutput(); 787 var o = new api.GoogleCloudMlV1beta1TrainingOutput();
748 buildCounterGoogleCloudMlV1beta1TrainingOutput++; 788 buildCounterGoogleCloudMlV1beta1TrainingOutput++;
749 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { 789 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) {
750 o.completedTrialCount = "foo"; 790 o.completedTrialCount = "foo";
751 o.consumedMLUnits = 42.0; 791 o.consumedMLUnits = 42.0;
752 o.isHyperparameterTuningJob = true; 792 o.isHyperparameterTuningJob = true;
753 o.trials = buildUnnamed3234(); 793 o.trials = buildUnnamed3082();
754 } 794 }
755 buildCounterGoogleCloudMlV1beta1TrainingOutput--; 795 buildCounterGoogleCloudMlV1beta1TrainingOutput--;
756 return o; 796 return o;
757 } 797 }
758 798
759 checkGoogleCloudMlV1beta1TrainingOutput(api.GoogleCloudMlV1beta1TrainingOutput o ) { 799 checkGoogleCloudMlV1beta1TrainingOutput(api.GoogleCloudMlV1beta1TrainingOutput o ) {
760 buildCounterGoogleCloudMlV1beta1TrainingOutput++; 800 buildCounterGoogleCloudMlV1beta1TrainingOutput++;
761 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { 801 if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) {
762 unittest.expect(o.completedTrialCount, unittest.equals('foo')); 802 unittest.expect(o.completedTrialCount, unittest.equals('foo'));
763 unittest.expect(o.consumedMLUnits, unittest.equals(42.0)); 803 unittest.expect(o.consumedMLUnits, unittest.equals(42.0));
764 unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue); 804 unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue);
765 checkUnnamed3234(o.trials); 805 checkUnnamed3082(o.trials);
766 } 806 }
767 buildCounterGoogleCloudMlV1beta1TrainingOutput--; 807 buildCounterGoogleCloudMlV1beta1TrainingOutput--;
768 } 808 }
769 809
770 core.int buildCounterGoogleCloudMlV1beta1Version = 0; 810 core.int buildCounterGoogleCloudMlV1beta1Version = 0;
771 buildGoogleCloudMlV1beta1Version() { 811 buildGoogleCloudMlV1beta1Version() {
772 var o = new api.GoogleCloudMlV1beta1Version(); 812 var o = new api.GoogleCloudMlV1beta1Version();
773 buildCounterGoogleCloudMlV1beta1Version++; 813 buildCounterGoogleCloudMlV1beta1Version++;
774 if (buildCounterGoogleCloudMlV1beta1Version < 3) { 814 if (buildCounterGoogleCloudMlV1beta1Version < 3) {
775 o.createTime = "foo"; 815 o.createTime = "foo";
776 o.deploymentUri = "foo"; 816 o.deploymentUri = "foo";
777 o.description = "foo"; 817 o.description = "foo";
778 o.isDefault = true; 818 o.isDefault = true;
779 o.lastUseTime = "foo"; 819 o.lastUseTime = "foo";
820 o.manualScaling = buildGoogleCloudMlV1beta1ManualScaling();
780 o.name = "foo"; 821 o.name = "foo";
781 o.runtimeVersion = "foo"; 822 o.runtimeVersion = "foo";
782 } 823 }
783 buildCounterGoogleCloudMlV1beta1Version--; 824 buildCounterGoogleCloudMlV1beta1Version--;
784 return o; 825 return o;
785 } 826 }
786 827
787 checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) { 828 checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) {
788 buildCounterGoogleCloudMlV1beta1Version++; 829 buildCounterGoogleCloudMlV1beta1Version++;
789 if (buildCounterGoogleCloudMlV1beta1Version < 3) { 830 if (buildCounterGoogleCloudMlV1beta1Version < 3) {
790 unittest.expect(o.createTime, unittest.equals('foo')); 831 unittest.expect(o.createTime, unittest.equals('foo'));
791 unittest.expect(o.deploymentUri, unittest.equals('foo')); 832 unittest.expect(o.deploymentUri, unittest.equals('foo'));
792 unittest.expect(o.description, unittest.equals('foo')); 833 unittest.expect(o.description, unittest.equals('foo'));
793 unittest.expect(o.isDefault, unittest.isTrue); 834 unittest.expect(o.isDefault, unittest.isTrue);
794 unittest.expect(o.lastUseTime, unittest.equals('foo')); 835 unittest.expect(o.lastUseTime, unittest.equals('foo'));
836 checkGoogleCloudMlV1beta1ManualScaling(o.manualScaling);
795 unittest.expect(o.name, unittest.equals('foo')); 837 unittest.expect(o.name, unittest.equals('foo'));
796 unittest.expect(o.runtimeVersion, unittest.equals('foo')); 838 unittest.expect(o.runtimeVersion, unittest.equals('foo'));
797 } 839 }
798 buildCounterGoogleCloudMlV1beta1Version--; 840 buildCounterGoogleCloudMlV1beta1Version--;
799 } 841 }
800 842
801 buildUnnamed3235() { 843 buildUnnamed3083() {
802 var o = new core.List<api.GoogleLongrunningOperation>(); 844 var o = new core.List<api.GoogleLongrunningOperation>();
803 o.add(buildGoogleLongrunningOperation()); 845 o.add(buildGoogleLongrunningOperation());
804 o.add(buildGoogleLongrunningOperation()); 846 o.add(buildGoogleLongrunningOperation());
805 return o; 847 return o;
806 } 848 }
807 849
808 checkUnnamed3235(core.List<api.GoogleLongrunningOperation> o) { 850 checkUnnamed3083(core.List<api.GoogleLongrunningOperation> o) {
809 unittest.expect(o, unittest.hasLength(2)); 851 unittest.expect(o, unittest.hasLength(2));
810 checkGoogleLongrunningOperation(o[0]); 852 checkGoogleLongrunningOperation(o[0]);
811 checkGoogleLongrunningOperation(o[1]); 853 checkGoogleLongrunningOperation(o[1]);
812 } 854 }
813 855
814 core.int buildCounterGoogleLongrunningListOperationsResponse = 0; 856 core.int buildCounterGoogleLongrunningListOperationsResponse = 0;
815 buildGoogleLongrunningListOperationsResponse() { 857 buildGoogleLongrunningListOperationsResponse() {
816 var o = new api.GoogleLongrunningListOperationsResponse(); 858 var o = new api.GoogleLongrunningListOperationsResponse();
817 buildCounterGoogleLongrunningListOperationsResponse++; 859 buildCounterGoogleLongrunningListOperationsResponse++;
818 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { 860 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
819 o.nextPageToken = "foo"; 861 o.nextPageToken = "foo";
820 o.operations = buildUnnamed3235(); 862 o.operations = buildUnnamed3083();
821 } 863 }
822 buildCounterGoogleLongrunningListOperationsResponse--; 864 buildCounterGoogleLongrunningListOperationsResponse--;
823 return o; 865 return o;
824 } 866 }
825 867
826 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations Response o) { 868 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations Response o) {
827 buildCounterGoogleLongrunningListOperationsResponse++; 869 buildCounterGoogleLongrunningListOperationsResponse++;
828 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { 870 if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
829 unittest.expect(o.nextPageToken, unittest.equals('foo')); 871 unittest.expect(o.nextPageToken, unittest.equals('foo'));
830 checkUnnamed3235(o.operations); 872 checkUnnamed3083(o.operations);
831 } 873 }
832 buildCounterGoogleLongrunningListOperationsResponse--; 874 buildCounterGoogleLongrunningListOperationsResponse--;
833 } 875 }
834 876
835 buildUnnamed3236() { 877 buildUnnamed3084() {
836 var o = new core.Map<core.String, core.Object>(); 878 var o = new core.Map<core.String, core.Object>();
837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 879 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 880 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
839 return o; 881 return o;
840 } 882 }
841 883
842 checkUnnamed3236(core.Map<core.String, core.Object> o) { 884 checkUnnamed3084(core.Map<core.String, core.Object> o) {
843 unittest.expect(o, unittest.hasLength(2)); 885 unittest.expect(o, unittest.hasLength(2));
844 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')); 886 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'));
845 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')); 887 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'));
846 } 888 }
847 889
848 buildUnnamed3237() { 890 buildUnnamed3085() {
849 var o = new core.Map<core.String, core.Object>(); 891 var o = new core.Map<core.String, core.Object>();
850 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 892 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
851 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 893 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
852 return o; 894 return o;
853 } 895 }
854 896
855 checkUnnamed3237(core.Map<core.String, core.Object> o) { 897 checkUnnamed3085(core.Map<core.String, core.Object> o) {
856 unittest.expect(o, unittest.hasLength(2)); 898 unittest.expect(o, unittest.hasLength(2));
857 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')); 899 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'));
858 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')); 900 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'));
859 } 901 }
860 902
861 core.int buildCounterGoogleLongrunningOperation = 0; 903 core.int buildCounterGoogleLongrunningOperation = 0;
862 buildGoogleLongrunningOperation() { 904 buildGoogleLongrunningOperation() {
863 var o = new api.GoogleLongrunningOperation(); 905 var o = new api.GoogleLongrunningOperation();
864 buildCounterGoogleLongrunningOperation++; 906 buildCounterGoogleLongrunningOperation++;
865 if (buildCounterGoogleLongrunningOperation < 3) { 907 if (buildCounterGoogleLongrunningOperation < 3) {
866 o.done = true; 908 o.done = true;
867 o.error = buildGoogleRpcStatus(); 909 o.error = buildGoogleRpcStatus();
868 o.metadata = buildUnnamed3236(); 910 o.metadata = buildUnnamed3084();
869 o.name = "foo"; 911 o.name = "foo";
870 o.response = buildUnnamed3237(); 912 o.response = buildUnnamed3085();
871 } 913 }
872 buildCounterGoogleLongrunningOperation--; 914 buildCounterGoogleLongrunningOperation--;
873 return o; 915 return o;
874 } 916 }
875 917
876 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { 918 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
877 buildCounterGoogleLongrunningOperation++; 919 buildCounterGoogleLongrunningOperation++;
878 if (buildCounterGoogleLongrunningOperation < 3) { 920 if (buildCounterGoogleLongrunningOperation < 3) {
879 unittest.expect(o.done, unittest.isTrue); 921 unittest.expect(o.done, unittest.isTrue);
880 checkGoogleRpcStatus(o.error); 922 checkGoogleRpcStatus(o.error);
881 checkUnnamed3236(o.metadata); 923 checkUnnamed3084(o.metadata);
882 unittest.expect(o.name, unittest.equals('foo')); 924 unittest.expect(o.name, unittest.equals('foo'));
883 checkUnnamed3237(o.response); 925 checkUnnamed3085(o.response);
884 } 926 }
885 buildCounterGoogleLongrunningOperation--; 927 buildCounterGoogleLongrunningOperation--;
886 } 928 }
887 929
888 core.int buildCounterGoogleProtobufEmpty = 0; 930 core.int buildCounterGoogleProtobufEmpty = 0;
889 buildGoogleProtobufEmpty() { 931 buildGoogleProtobufEmpty() {
890 var o = new api.GoogleProtobufEmpty(); 932 var o = new api.GoogleProtobufEmpty();
891 buildCounterGoogleProtobufEmpty++; 933 buildCounterGoogleProtobufEmpty++;
892 if (buildCounterGoogleProtobufEmpty < 3) { 934 if (buildCounterGoogleProtobufEmpty < 3) {
893 } 935 }
894 buildCounterGoogleProtobufEmpty--; 936 buildCounterGoogleProtobufEmpty--;
895 return o; 937 return o;
896 } 938 }
897 939
898 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { 940 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) {
899 buildCounterGoogleProtobufEmpty++; 941 buildCounterGoogleProtobufEmpty++;
900 if (buildCounterGoogleProtobufEmpty < 3) { 942 if (buildCounterGoogleProtobufEmpty < 3) {
901 } 943 }
902 buildCounterGoogleProtobufEmpty--; 944 buildCounterGoogleProtobufEmpty--;
903 } 945 }
904 946
905 buildUnnamed3238() { 947 buildUnnamed3086() {
906 var o = new core.Map<core.String, core.Object>(); 948 var o = new core.Map<core.String, core.Object>();
907 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 949 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
908 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 950 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
909 return o; 951 return o;
910 } 952 }
911 953
912 checkUnnamed3238(core.Map<core.String, core.Object> o) { 954 checkUnnamed3086(core.Map<core.String, core.Object> o) {
913 unittest.expect(o, unittest.hasLength(2)); 955 unittest.expect(o, unittest.hasLength(2));
914 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')); 956 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'));
915 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')); 957 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'));
916 } 958 }
917 959
918 buildUnnamed3239() { 960 buildUnnamed3087() {
919 var o = new core.List<core.Map<core.String, core.Object>>(); 961 var o = new core.List<core.Map<core.String, core.Object>>();
920 o.add(buildUnnamed3238()); 962 o.add(buildUnnamed3086());
921 o.add(buildUnnamed3238()); 963 o.add(buildUnnamed3086());
922 return o; 964 return o;
923 } 965 }
924 966
925 checkUnnamed3239(core.List<core.Map<core.String, core.Object>> o) { 967 checkUnnamed3087(core.List<core.Map<core.String, core.Object>> o) {
926 unittest.expect(o, unittest.hasLength(2)); 968 unittest.expect(o, unittest.hasLength(2));
927 checkUnnamed3238(o[0]); 969 checkUnnamed3086(o[0]);
928 checkUnnamed3238(o[1]); 970 checkUnnamed3086(o[1]);
929 } 971 }
930 972
931 core.int buildCounterGoogleRpcStatus = 0; 973 core.int buildCounterGoogleRpcStatus = 0;
932 buildGoogleRpcStatus() { 974 buildGoogleRpcStatus() {
933 var o = new api.GoogleRpcStatus(); 975 var o = new api.GoogleRpcStatus();
934 buildCounterGoogleRpcStatus++; 976 buildCounterGoogleRpcStatus++;
935 if (buildCounterGoogleRpcStatus < 3) { 977 if (buildCounterGoogleRpcStatus < 3) {
936 o.code = 42; 978 o.code = 42;
937 o.details = buildUnnamed3239(); 979 o.details = buildUnnamed3087();
938 o.message = "foo"; 980 o.message = "foo";
939 } 981 }
940 buildCounterGoogleRpcStatus--; 982 buildCounterGoogleRpcStatus--;
941 return o; 983 return o;
942 } 984 }
943 985
944 checkGoogleRpcStatus(api.GoogleRpcStatus o) { 986 checkGoogleRpcStatus(api.GoogleRpcStatus o) {
945 buildCounterGoogleRpcStatus++; 987 buildCounterGoogleRpcStatus++;
946 if (buildCounterGoogleRpcStatus < 3) { 988 if (buildCounterGoogleRpcStatus < 3) {
947 unittest.expect(o.code, unittest.equals(42)); 989 unittest.expect(o.code, unittest.equals(42));
948 checkUnnamed3239(o.details); 990 checkUnnamed3087(o.details);
949 unittest.expect(o.message, unittest.equals('foo')); 991 unittest.expect(o.message, unittest.equals('foo'));
950 } 992 }
951 buildCounterGoogleRpcStatus--; 993 buildCounterGoogleRpcStatus--;
952 } 994 }
953 995
954 996
955 main() { 997 main() {
956 unittest.group("obj-schema-GoogleApiHttpBody", () { 998 unittest.group("obj-schema-GoogleApiHttpBody", () {
957 unittest.test("to-json--from-json", () { 999 unittest.test("to-json--from-json", () {
958 var o = buildGoogleApiHttpBody(); 1000 var o = buildGoogleApiHttpBody();
959 var od = new api.GoogleApiHttpBody.fromJson(o.toJson()); 1001 var od = new api.GoogleApiHttpBody.fromJson(o.toJson());
960 checkGoogleApiHttpBody(od); 1002 checkGoogleApiHttpBody(od);
961 }); 1003 });
962 }); 1004 });
963 1005
964 1006
1007 unittest.group("obj-schema-GoogleCloudMlV1ManualScaling", () {
1008 unittest.test("to-json--from-json", () {
1009 var o = buildGoogleCloudMlV1ManualScaling();
1010 var od = new api.GoogleCloudMlV1ManualScaling.fromJson(o.toJson());
1011 checkGoogleCloudMlV1ManualScaling(od);
1012 });
1013 });
1014
1015
965 unittest.group("obj-schema-GoogleCloudMlV1OperationMetadata", () { 1016 unittest.group("obj-schema-GoogleCloudMlV1OperationMetadata", () {
966 unittest.test("to-json--from-json", () { 1017 unittest.test("to-json--from-json", () {
967 var o = buildGoogleCloudMlV1OperationMetadata(); 1018 var o = buildGoogleCloudMlV1OperationMetadata();
968 var od = new api.GoogleCloudMlV1OperationMetadata.fromJson(o.toJson()); 1019 var od = new api.GoogleCloudMlV1OperationMetadata.fromJson(o.toJson());
969 checkGoogleCloudMlV1OperationMetadata(od); 1020 checkGoogleCloudMlV1OperationMetadata(od);
970 }); 1021 });
971 }); 1022 });
972 1023
973 1024
974 unittest.group("obj-schema-GoogleCloudMlV1Version", () { 1025 unittest.group("obj-schema-GoogleCloudMlV1Version", () {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 1105
1055 unittest.group("obj-schema-GoogleCloudMlV1beta1ListVersionsResponse", () { 1106 unittest.group("obj-schema-GoogleCloudMlV1beta1ListVersionsResponse", () {
1056 unittest.test("to-json--from-json", () { 1107 unittest.test("to-json--from-json", () {
1057 var o = buildGoogleCloudMlV1beta1ListVersionsResponse(); 1108 var o = buildGoogleCloudMlV1beta1ListVersionsResponse();
1058 var od = new api.GoogleCloudMlV1beta1ListVersionsResponse.fromJson(o.toJso n()); 1109 var od = new api.GoogleCloudMlV1beta1ListVersionsResponse.fromJson(o.toJso n());
1059 checkGoogleCloudMlV1beta1ListVersionsResponse(od); 1110 checkGoogleCloudMlV1beta1ListVersionsResponse(od);
1060 }); 1111 });
1061 }); 1112 });
1062 1113
1063 1114
1115 unittest.group("obj-schema-GoogleCloudMlV1beta1ManualScaling", () {
1116 unittest.test("to-json--from-json", () {
1117 var o = buildGoogleCloudMlV1beta1ManualScaling();
1118 var od = new api.GoogleCloudMlV1beta1ManualScaling.fromJson(o.toJson());
1119 checkGoogleCloudMlV1beta1ManualScaling(od);
1120 });
1121 });
1122
1123
1064 unittest.group("obj-schema-GoogleCloudMlV1beta1Model", () { 1124 unittest.group("obj-schema-GoogleCloudMlV1beta1Model", () {
1065 unittest.test("to-json--from-json", () { 1125 unittest.test("to-json--from-json", () {
1066 var o = buildGoogleCloudMlV1beta1Model(); 1126 var o = buildGoogleCloudMlV1beta1Model();
1067 var od = new api.GoogleCloudMlV1beta1Model.fromJson(o.toJson()); 1127 var od = new api.GoogleCloudMlV1beta1Model.fromJson(o.toJson());
1068 checkGoogleCloudMlV1beta1Model(od); 1128 checkGoogleCloudMlV1beta1Model(od);
1069 }); 1129 });
1070 }); 1130 });
1071 1131
1072 1132
1073 unittest.group("obj-schema-GoogleCloudMlV1beta1OperationMetadata", () { 1133 unittest.group("obj-schema-GoogleCloudMlV1beta1OperationMetadata", () {
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Job response) { 1487 res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Job response) {
1428 checkGoogleCloudMlV1beta1Job(response); 1488 checkGoogleCloudMlV1beta1Job(response);
1429 }))); 1489 })));
1430 }); 1490 });
1431 1491
1432 unittest.test("method--list", () { 1492 unittest.test("method--list", () {
1433 1493
1434 var mock = new HttpServerMock(); 1494 var mock = new HttpServerMock();
1435 api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; 1495 api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs;
1436 var arg_parent = "foo"; 1496 var arg_parent = "foo";
1437 var arg_filter = "foo";
1438 var arg_pageToken = "foo"; 1497 var arg_pageToken = "foo";
1439 var arg_pageSize = 42; 1498 var arg_pageSize = 42;
1499 var arg_filter = "foo";
1440 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1500 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1441 var path = (req.url).path; 1501 var path = (req.url).path;
1442 var pathOffset = 0; 1502 var pathOffset = 0;
1443 var index; 1503 var index;
1444 var subPart; 1504 var subPart;
1445 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1505 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1446 pathOffset += 1; 1506 pathOffset += 1;
1447 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/")); 1507 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/"));
1448 pathOffset += 8; 1508 pathOffset += 8;
1449 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1509 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1450 1510
1451 var query = (req.url).query; 1511 var query = (req.url).query;
1452 var queryOffset = 0; 1512 var queryOffset = 0;
1453 var queryMap = {}; 1513 var queryMap = {};
1454 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1514 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1455 parseBool(n) { 1515 parseBool(n) {
1456 if (n == "true") return true; 1516 if (n == "true") return true;
1457 if (n == "false") return false; 1517 if (n == "false") return false;
1458 if (n == null) return null; 1518 if (n == null) return null;
1459 throw new core.ArgumentError("Invalid boolean: $n"); 1519 throw new core.ArgumentError("Invalid boolean: $n");
1460 } 1520 }
1461 if (query.length > 0) { 1521 if (query.length > 0) {
1462 for (var part in query.split("&")) { 1522 for (var part in query.split("&")) {
1463 var keyvalue = part.split("="); 1523 var keyvalue = part.split("=");
1464 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1524 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1465 } 1525 }
1466 } 1526 }
1467 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
1468 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1527 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1469 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 1528 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1529 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
1470 1530
1471 1531
1472 var h = { 1532 var h = {
1473 "content-type" : "application/json; charset=utf-8", 1533 "content-type" : "application/json; charset=utf-8",
1474 }; 1534 };
1475 var resp = convert.JSON.encode(buildGoogleCloudMlV1beta1ListJobsResponse ()); 1535 var resp = convert.JSON.encode(buildGoogleCloudMlV1beta1ListJobsResponse ());
1476 return new async.Future.value(stringResponse(200, h, resp)); 1536 return new async.Future.value(stringResponse(200, h, resp));
1477 }), true); 1537 }), true);
1478 res.list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1ListJobsRes ponse response) { 1538 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, fil ter: arg_filter).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1ListJobsRes ponse response) {
1479 checkGoogleCloudMlV1beta1ListJobsResponse(response); 1539 checkGoogleCloudMlV1beta1ListJobsResponse(response);
1480 }))); 1540 })));
1481 }); 1541 });
1482 1542
1483 }); 1543 });
1484 1544
1485 1545
1486 unittest.group("resource-ProjectsModelsResourceApi", () { 1546 unittest.group("resource-ProjectsModelsResourceApi", () {
1487 unittest.test("method--create", () { 1547 unittest.test("method--create", () {
1488 1548
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 res.get(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperati on response) { 2110 res.get(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperati on response) {
2051 checkGoogleLongrunningOperation(response); 2111 checkGoogleLongrunningOperation(response);
2052 }))); 2112 })));
2053 }); 2113 });
2054 2114
2055 unittest.test("method--list", () { 2115 unittest.test("method--list", () {
2056 2116
2057 var mock = new HttpServerMock(); 2117 var mock = new HttpServerMock();
2058 api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.opera tions; 2118 api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.opera tions;
2059 var arg_name = "foo"; 2119 var arg_name = "foo";
2060 var arg_filter = "foo";
2061 var arg_pageToken = "foo"; 2120 var arg_pageToken = "foo";
2062 var arg_pageSize = 42; 2121 var arg_pageSize = 42;
2122 var arg_filter = "foo";
2063 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2123 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2064 var path = (req.url).path; 2124 var path = (req.url).path;
2065 var pathOffset = 0; 2125 var pathOffset = 0;
2066 var index; 2126 var index;
2067 var subPart; 2127 var subPart;
2068 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2128 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2069 pathOffset += 1; 2129 pathOffset += 1;
2070 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/")); 2130 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/"));
2071 pathOffset += 8; 2131 pathOffset += 8;
2072 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 2132 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
2073 2133
2074 var query = (req.url).query; 2134 var query = (req.url).query;
2075 var queryOffset = 0; 2135 var queryOffset = 0;
2076 var queryMap = {}; 2136 var queryMap = {};
2077 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2137 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2078 parseBool(n) { 2138 parseBool(n) {
2079 if (n == "true") return true; 2139 if (n == "true") return true;
2080 if (n == "false") return false; 2140 if (n == "false") return false;
2081 if (n == null) return null; 2141 if (n == null) return null;
2082 throw new core.ArgumentError("Invalid boolean: $n"); 2142 throw new core.ArgumentError("Invalid boolean: $n");
2083 } 2143 }
2084 if (query.length > 0) { 2144 if (query.length > 0) {
2085 for (var part in query.split("&")) { 2145 for (var part in query.split("&")) {
2086 var keyvalue = part.split("="); 2146 var keyvalue = part.split("=");
2087 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2147 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2088 } 2148 }
2089 } 2149 }
2090 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2091 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2150 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2092 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2151 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2152 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2093 2153
2094 2154
2095 var h = { 2155 var h = {
2096 "content-type" : "application/json; charset=utf-8", 2156 "content-type" : "application/json; charset=utf-8",
2097 }; 2157 };
2098 var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsRespo nse()); 2158 var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsRespo nse());
2099 return new async.Future.value(stringResponse(200, h, resp)); 2159 return new async.Future.value(stringResponse(200, h, resp));
2100 }), true); 2160 }), true);
2101 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsRe sponse response) { 2161 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte r: arg_filter).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsRe sponse response) {
2102 checkGoogleLongrunningListOperationsResponse(response); 2162 checkGoogleLongrunningListOperationsResponse(response);
2103 }))); 2163 })));
2104 }); 2164 });
2105 2165
2106 }); 2166 });
2107 2167
2108 2168
2109 } 2169 }
2110 2170
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698