Chromium Code Reviews

Side by Side Diff: generated/googleapis/test/spanner/v1_test.dart

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 library googleapis.spanner.v1.test; 1 library googleapis.spanner.v1.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:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 33 matching lines...)
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed1967() { 54 buildUnnamed2053() {
55 var o = new core.List<api.AuditLogConfig>(); 55 var o = new core.List<api.AuditLogConfig>();
56 o.add(buildAuditLogConfig()); 56 o.add(buildAuditLogConfig());
57 o.add(buildAuditLogConfig()); 57 o.add(buildAuditLogConfig());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed1967(core.List<api.AuditLogConfig> o) { 61 checkUnnamed2053(core.List<api.AuditLogConfig> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkAuditLogConfig(o[0]); 63 checkAuditLogConfig(o[0]);
64 checkAuditLogConfig(o[1]); 64 checkAuditLogConfig(o[1]);
65 } 65 }
66 66
67 buildUnnamed1968() { 67 buildUnnamed2054() {
68 var o = new core.List<core.String>(); 68 var o = new core.List<core.String>();
69 o.add("foo"); 69 o.add("foo");
70 o.add("foo"); 70 o.add("foo");
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed1968(core.List<core.String> o) { 74 checkUnnamed2054(core.List<core.String> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 unittest.expect(o[0], unittest.equals('foo')); 76 unittest.expect(o[0], unittest.equals('foo'));
77 unittest.expect(o[1], unittest.equals('foo')); 77 unittest.expect(o[1], unittest.equals('foo'));
78 } 78 }
79 79
80 core.int buildCounterAuditConfig = 0; 80 core.int buildCounterAuditConfig = 0;
81 buildAuditConfig() { 81 buildAuditConfig() {
82 var o = new api.AuditConfig(); 82 var o = new api.AuditConfig();
83 buildCounterAuditConfig++; 83 buildCounterAuditConfig++;
84 if (buildCounterAuditConfig < 3) { 84 if (buildCounterAuditConfig < 3) {
85 o.auditLogConfigs = buildUnnamed1967(); 85 o.auditLogConfigs = buildUnnamed2053();
86 o.exemptedMembers = buildUnnamed1968(); 86 o.exemptedMembers = buildUnnamed2054();
87 o.service = "foo"; 87 o.service = "foo";
88 } 88 }
89 buildCounterAuditConfig--; 89 buildCounterAuditConfig--;
90 return o; 90 return o;
91 } 91 }
92 92
93 checkAuditConfig(api.AuditConfig o) { 93 checkAuditConfig(api.AuditConfig o) {
94 buildCounterAuditConfig++; 94 buildCounterAuditConfig++;
95 if (buildCounterAuditConfig < 3) { 95 if (buildCounterAuditConfig < 3) {
96 checkUnnamed1967(o.auditLogConfigs); 96 checkUnnamed2053(o.auditLogConfigs);
97 checkUnnamed1968(o.exemptedMembers); 97 checkUnnamed2054(o.exemptedMembers);
98 unittest.expect(o.service, unittest.equals('foo')); 98 unittest.expect(o.service, unittest.equals('foo'));
99 } 99 }
100 buildCounterAuditConfig--; 100 buildCounterAuditConfig--;
101 } 101 }
102 102
103 buildUnnamed1969() { 103 buildUnnamed2055() {
104 var o = new core.List<core.String>(); 104 var o = new core.List<core.String>();
105 o.add("foo"); 105 o.add("foo");
106 o.add("foo"); 106 o.add("foo");
107 return o; 107 return o;
108 } 108 }
109 109
110 checkUnnamed1969(core.List<core.String> o) { 110 checkUnnamed2055(core.List<core.String> o) {
111 unittest.expect(o, unittest.hasLength(2)); 111 unittest.expect(o, unittest.hasLength(2));
112 unittest.expect(o[0], unittest.equals('foo')); 112 unittest.expect(o[0], unittest.equals('foo'));
113 unittest.expect(o[1], unittest.equals('foo')); 113 unittest.expect(o[1], unittest.equals('foo'));
114 } 114 }
115 115
116 core.int buildCounterAuditLogConfig = 0; 116 core.int buildCounterAuditLogConfig = 0;
117 buildAuditLogConfig() { 117 buildAuditLogConfig() {
118 var o = new api.AuditLogConfig(); 118 var o = new api.AuditLogConfig();
119 buildCounterAuditLogConfig++; 119 buildCounterAuditLogConfig++;
120 if (buildCounterAuditLogConfig < 3) { 120 if (buildCounterAuditLogConfig < 3) {
121 o.exemptedMembers = buildUnnamed1969(); 121 o.exemptedMembers = buildUnnamed2055();
122 o.logType = "foo"; 122 o.logType = "foo";
123 } 123 }
124 buildCounterAuditLogConfig--; 124 buildCounterAuditLogConfig--;
125 return o; 125 return o;
126 } 126 }
127 127
128 checkAuditLogConfig(api.AuditLogConfig o) { 128 checkAuditLogConfig(api.AuditLogConfig o) {
129 buildCounterAuditLogConfig++; 129 buildCounterAuditLogConfig++;
130 if (buildCounterAuditLogConfig < 3) { 130 if (buildCounterAuditLogConfig < 3) {
131 checkUnnamed1969(o.exemptedMembers); 131 checkUnnamed2055(o.exemptedMembers);
132 unittest.expect(o.logType, unittest.equals('foo')); 132 unittest.expect(o.logType, unittest.equals('foo'));
133 } 133 }
134 buildCounterAuditLogConfig--; 134 buildCounterAuditLogConfig--;
135 } 135 }
136 136
137 core.int buildCounterBeginTransactionRequest = 0; 137 core.int buildCounterBeginTransactionRequest = 0;
138 buildBeginTransactionRequest() { 138 buildBeginTransactionRequest() {
139 var o = new api.BeginTransactionRequest(); 139 var o = new api.BeginTransactionRequest();
140 buildCounterBeginTransactionRequest++; 140 buildCounterBeginTransactionRequest++;
141 if (buildCounterBeginTransactionRequest < 3) { 141 if (buildCounterBeginTransactionRequest < 3) {
142 o.options = buildTransactionOptions(); 142 o.options = buildTransactionOptions();
143 } 143 }
144 buildCounterBeginTransactionRequest--; 144 buildCounterBeginTransactionRequest--;
145 return o; 145 return o;
146 } 146 }
147 147
148 checkBeginTransactionRequest(api.BeginTransactionRequest o) { 148 checkBeginTransactionRequest(api.BeginTransactionRequest o) {
149 buildCounterBeginTransactionRequest++; 149 buildCounterBeginTransactionRequest++;
150 if (buildCounterBeginTransactionRequest < 3) { 150 if (buildCounterBeginTransactionRequest < 3) {
151 checkTransactionOptions(o.options); 151 checkTransactionOptions(o.options);
152 } 152 }
153 buildCounterBeginTransactionRequest--; 153 buildCounterBeginTransactionRequest--;
154 } 154 }
155 155
156 buildUnnamed1970() { 156 buildUnnamed2056() {
157 var o = new core.List<core.String>(); 157 var o = new core.List<core.String>();
158 o.add("foo"); 158 o.add("foo");
159 o.add("foo"); 159 o.add("foo");
160 return o; 160 return o;
161 } 161 }
162 162
163 checkUnnamed1970(core.List<core.String> o) { 163 checkUnnamed2056(core.List<core.String> o) {
164 unittest.expect(o, unittest.hasLength(2)); 164 unittest.expect(o, unittest.hasLength(2));
165 unittest.expect(o[0], unittest.equals('foo')); 165 unittest.expect(o[0], unittest.equals('foo'));
166 unittest.expect(o[1], unittest.equals('foo')); 166 unittest.expect(o[1], unittest.equals('foo'));
167 } 167 }
168 168
169 core.int buildCounterBinding = 0; 169 core.int buildCounterBinding = 0;
170 buildBinding() { 170 buildBinding() {
171 var o = new api.Binding(); 171 var o = new api.Binding();
172 buildCounterBinding++; 172 buildCounterBinding++;
173 if (buildCounterBinding < 3) { 173 if (buildCounterBinding < 3) {
174 o.members = buildUnnamed1970(); 174 o.condition = buildExpr();
175 o.members = buildUnnamed2056();
175 o.role = "foo"; 176 o.role = "foo";
176 } 177 }
177 buildCounterBinding--; 178 buildCounterBinding--;
178 return o; 179 return o;
179 } 180 }
180 181
181 checkBinding(api.Binding o) { 182 checkBinding(api.Binding o) {
182 buildCounterBinding++; 183 buildCounterBinding++;
183 if (buildCounterBinding < 3) { 184 if (buildCounterBinding < 3) {
184 checkUnnamed1970(o.members); 185 checkExpr(o.condition);
186 checkUnnamed2056(o.members);
185 unittest.expect(o.role, unittest.equals('foo')); 187 unittest.expect(o.role, unittest.equals('foo'));
186 } 188 }
187 buildCounterBinding--; 189 buildCounterBinding--;
188 } 190 }
189 191
190 core.int buildCounterChildLink = 0; 192 core.int buildCounterChildLink = 0;
191 buildChildLink() { 193 buildChildLink() {
192 var o = new api.ChildLink(); 194 var o = new api.ChildLink();
193 buildCounterChildLink++; 195 buildCounterChildLink++;
194 if (buildCounterChildLink < 3) { 196 if (buildCounterChildLink < 3) {
(...skipping 13 matching lines...)
208 unittest.expect(o.variable, unittest.equals('foo')); 210 unittest.expect(o.variable, unittest.equals('foo'));
209 } 211 }
210 buildCounterChildLink--; 212 buildCounterChildLink--;
211 } 213 }
212 214
213 core.int buildCounterCloudAuditOptions = 0; 215 core.int buildCounterCloudAuditOptions = 0;
214 buildCloudAuditOptions() { 216 buildCloudAuditOptions() {
215 var o = new api.CloudAuditOptions(); 217 var o = new api.CloudAuditOptions();
216 buildCounterCloudAuditOptions++; 218 buildCounterCloudAuditOptions++;
217 if (buildCounterCloudAuditOptions < 3) { 219 if (buildCounterCloudAuditOptions < 3) {
220 o.logName = "foo";
218 } 221 }
219 buildCounterCloudAuditOptions--; 222 buildCounterCloudAuditOptions--;
220 return o; 223 return o;
221 } 224 }
222 225
223 checkCloudAuditOptions(api.CloudAuditOptions o) { 226 checkCloudAuditOptions(api.CloudAuditOptions o) {
224 buildCounterCloudAuditOptions++; 227 buildCounterCloudAuditOptions++;
225 if (buildCounterCloudAuditOptions < 3) { 228 if (buildCounterCloudAuditOptions < 3) {
229 unittest.expect(o.logName, unittest.equals('foo'));
226 } 230 }
227 buildCounterCloudAuditOptions--; 231 buildCounterCloudAuditOptions--;
228 } 232 }
229 233
230 buildUnnamed1971() { 234 buildUnnamed2057() {
231 var o = new core.List<api.Mutation>(); 235 var o = new core.List<api.Mutation>();
232 o.add(buildMutation()); 236 o.add(buildMutation());
233 o.add(buildMutation()); 237 o.add(buildMutation());
234 return o; 238 return o;
235 } 239 }
236 240
237 checkUnnamed1971(core.List<api.Mutation> o) { 241 checkUnnamed2057(core.List<api.Mutation> o) {
238 unittest.expect(o, unittest.hasLength(2)); 242 unittest.expect(o, unittest.hasLength(2));
239 checkMutation(o[0]); 243 checkMutation(o[0]);
240 checkMutation(o[1]); 244 checkMutation(o[1]);
241 } 245 }
242 246
243 core.int buildCounterCommitRequest = 0; 247 core.int buildCounterCommitRequest = 0;
244 buildCommitRequest() { 248 buildCommitRequest() {
245 var o = new api.CommitRequest(); 249 var o = new api.CommitRequest();
246 buildCounterCommitRequest++; 250 buildCounterCommitRequest++;
247 if (buildCounterCommitRequest < 3) { 251 if (buildCounterCommitRequest < 3) {
248 o.mutations = buildUnnamed1971(); 252 o.mutations = buildUnnamed2057();
249 o.singleUseTransaction = buildTransactionOptions(); 253 o.singleUseTransaction = buildTransactionOptions();
250 o.transactionId = "foo"; 254 o.transactionId = "foo";
251 } 255 }
252 buildCounterCommitRequest--; 256 buildCounterCommitRequest--;
253 return o; 257 return o;
254 } 258 }
255 259
256 checkCommitRequest(api.CommitRequest o) { 260 checkCommitRequest(api.CommitRequest o) {
257 buildCounterCommitRequest++; 261 buildCounterCommitRequest++;
258 if (buildCounterCommitRequest < 3) { 262 if (buildCounterCommitRequest < 3) {
259 checkUnnamed1971(o.mutations); 263 checkUnnamed2057(o.mutations);
260 checkTransactionOptions(o.singleUseTransaction); 264 checkTransactionOptions(o.singleUseTransaction);
261 unittest.expect(o.transactionId, unittest.equals('foo')); 265 unittest.expect(o.transactionId, unittest.equals('foo'));
262 } 266 }
263 buildCounterCommitRequest--; 267 buildCounterCommitRequest--;
264 } 268 }
265 269
266 core.int buildCounterCommitResponse = 0; 270 core.int buildCounterCommitResponse = 0;
267 buildCommitResponse() { 271 buildCommitResponse() {
268 var o = new api.CommitResponse(); 272 var o = new api.CommitResponse();
269 buildCounterCommitResponse++; 273 buildCounterCommitResponse++;
270 if (buildCounterCommitResponse < 3) { 274 if (buildCounterCommitResponse < 3) {
271 o.commitTimestamp = "foo"; 275 o.commitTimestamp = "foo";
272 } 276 }
273 buildCounterCommitResponse--; 277 buildCounterCommitResponse--;
274 return o; 278 return o;
275 } 279 }
276 280
277 checkCommitResponse(api.CommitResponse o) { 281 checkCommitResponse(api.CommitResponse o) {
278 buildCounterCommitResponse++; 282 buildCounterCommitResponse++;
279 if (buildCounterCommitResponse < 3) { 283 if (buildCounterCommitResponse < 3) {
280 unittest.expect(o.commitTimestamp, unittest.equals('foo')); 284 unittest.expect(o.commitTimestamp, unittest.equals('foo'));
281 } 285 }
282 buildCounterCommitResponse--; 286 buildCounterCommitResponse--;
283 } 287 }
284 288
285 buildUnnamed1972() { 289 buildUnnamed2058() {
286 var o = new core.List<core.String>(); 290 var o = new core.List<core.String>();
287 o.add("foo"); 291 o.add("foo");
288 o.add("foo"); 292 o.add("foo");
289 return o; 293 return o;
290 } 294 }
291 295
292 checkUnnamed1972(core.List<core.String> o) { 296 checkUnnamed2058(core.List<core.String> o) {
293 unittest.expect(o, unittest.hasLength(2)); 297 unittest.expect(o, unittest.hasLength(2));
294 unittest.expect(o[0], unittest.equals('foo')); 298 unittest.expect(o[0], unittest.equals('foo'));
295 unittest.expect(o[1], unittest.equals('foo')); 299 unittest.expect(o[1], unittest.equals('foo'));
296 } 300 }
297 301
298 core.int buildCounterCondition = 0; 302 core.int buildCounterCondition = 0;
299 buildCondition() { 303 buildCondition() {
300 var o = new api.Condition(); 304 var o = new api.Condition();
301 buildCounterCondition++; 305 buildCounterCondition++;
302 if (buildCounterCondition < 3) { 306 if (buildCounterCondition < 3) {
303 o.iam = "foo"; 307 o.iam = "foo";
304 o.op = "foo"; 308 o.op = "foo";
305 o.svc = "foo"; 309 o.svc = "foo";
306 o.sys = "foo"; 310 o.sys = "foo";
307 o.value = "foo"; 311 o.value = "foo";
308 o.values = buildUnnamed1972(); 312 o.values = buildUnnamed2058();
309 } 313 }
310 buildCounterCondition--; 314 buildCounterCondition--;
311 return o; 315 return o;
312 } 316 }
313 317
314 checkCondition(api.Condition o) { 318 checkCondition(api.Condition o) {
315 buildCounterCondition++; 319 buildCounterCondition++;
316 if (buildCounterCondition < 3) { 320 if (buildCounterCondition < 3) {
317 unittest.expect(o.iam, unittest.equals('foo')); 321 unittest.expect(o.iam, unittest.equals('foo'));
318 unittest.expect(o.op, unittest.equals('foo')); 322 unittest.expect(o.op, unittest.equals('foo'));
319 unittest.expect(o.svc, unittest.equals('foo')); 323 unittest.expect(o.svc, unittest.equals('foo'));
320 unittest.expect(o.sys, unittest.equals('foo')); 324 unittest.expect(o.sys, unittest.equals('foo'));
321 unittest.expect(o.value, unittest.equals('foo')); 325 unittest.expect(o.value, unittest.equals('foo'));
322 checkUnnamed1972(o.values); 326 checkUnnamed2058(o.values);
323 } 327 }
324 buildCounterCondition--; 328 buildCounterCondition--;
325 } 329 }
326 330
327 core.int buildCounterCounterOptions = 0; 331 core.int buildCounterCounterOptions = 0;
328 buildCounterOptions() { 332 buildCounterOptions() {
329 var o = new api.CounterOptions(); 333 var o = new api.CounterOptions();
330 buildCounterCounterOptions++; 334 buildCounterCounterOptions++;
331 if (buildCounterCounterOptions < 3) { 335 if (buildCounterCounterOptions < 3) {
332 o.field = "foo"; 336 o.field = "foo";
(...skipping 24 matching lines...)
357 } 361 }
358 362
359 checkCreateDatabaseMetadata(api.CreateDatabaseMetadata o) { 363 checkCreateDatabaseMetadata(api.CreateDatabaseMetadata o) {
360 buildCounterCreateDatabaseMetadata++; 364 buildCounterCreateDatabaseMetadata++;
361 if (buildCounterCreateDatabaseMetadata < 3) { 365 if (buildCounterCreateDatabaseMetadata < 3) {
362 unittest.expect(o.database, unittest.equals('foo')); 366 unittest.expect(o.database, unittest.equals('foo'));
363 } 367 }
364 buildCounterCreateDatabaseMetadata--; 368 buildCounterCreateDatabaseMetadata--;
365 } 369 }
366 370
367 buildUnnamed1973() { 371 buildUnnamed2059() {
368 var o = new core.List<core.String>(); 372 var o = new core.List<core.String>();
369 o.add("foo"); 373 o.add("foo");
370 o.add("foo"); 374 o.add("foo");
371 return o; 375 return o;
372 } 376 }
373 377
374 checkUnnamed1973(core.List<core.String> o) { 378 checkUnnamed2059(core.List<core.String> o) {
375 unittest.expect(o, unittest.hasLength(2)); 379 unittest.expect(o, unittest.hasLength(2));
376 unittest.expect(o[0], unittest.equals('foo')); 380 unittest.expect(o[0], unittest.equals('foo'));
377 unittest.expect(o[1], unittest.equals('foo')); 381 unittest.expect(o[1], unittest.equals('foo'));
378 } 382 }
379 383
380 core.int buildCounterCreateDatabaseRequest = 0; 384 core.int buildCounterCreateDatabaseRequest = 0;
381 buildCreateDatabaseRequest() { 385 buildCreateDatabaseRequest() {
382 var o = new api.CreateDatabaseRequest(); 386 var o = new api.CreateDatabaseRequest();
383 buildCounterCreateDatabaseRequest++; 387 buildCounterCreateDatabaseRequest++;
384 if (buildCounterCreateDatabaseRequest < 3) { 388 if (buildCounterCreateDatabaseRequest < 3) {
385 o.createStatement = "foo"; 389 o.createStatement = "foo";
386 o.extraStatements = buildUnnamed1973(); 390 o.extraStatements = buildUnnamed2059();
387 } 391 }
388 buildCounterCreateDatabaseRequest--; 392 buildCounterCreateDatabaseRequest--;
389 return o; 393 return o;
390 } 394 }
391 395
392 checkCreateDatabaseRequest(api.CreateDatabaseRequest o) { 396 checkCreateDatabaseRequest(api.CreateDatabaseRequest o) {
393 buildCounterCreateDatabaseRequest++; 397 buildCounterCreateDatabaseRequest++;
394 if (buildCounterCreateDatabaseRequest < 3) { 398 if (buildCounterCreateDatabaseRequest < 3) {
395 unittest.expect(o.createStatement, unittest.equals('foo')); 399 unittest.expect(o.createStatement, unittest.equals('foo'));
396 checkUnnamed1973(o.extraStatements); 400 checkUnnamed2059(o.extraStatements);
397 } 401 }
398 buildCounterCreateDatabaseRequest--; 402 buildCounterCreateDatabaseRequest--;
399 } 403 }
400 404
401 core.int buildCounterCreateInstanceMetadata = 0; 405 core.int buildCounterCreateInstanceMetadata = 0;
402 buildCreateInstanceMetadata() { 406 buildCreateInstanceMetadata() {
403 var o = new api.CreateInstanceMetadata(); 407 var o = new api.CreateInstanceMetadata();
404 buildCounterCreateInstanceMetadata++; 408 buildCounterCreateInstanceMetadata++;
405 if (buildCounterCreateInstanceMetadata < 3) { 409 if (buildCounterCreateInstanceMetadata < 3) {
406 o.cancelTime = "foo"; 410 o.cancelTime = "foo";
(...skipping 106 matching lines...)
513 return o; 517 return o;
514 } 518 }
515 519
516 checkEmpty(api.Empty o) { 520 checkEmpty(api.Empty o) {
517 buildCounterEmpty++; 521 buildCounterEmpty++;
518 if (buildCounterEmpty < 3) { 522 if (buildCounterEmpty < 3) {
519 } 523 }
520 buildCounterEmpty--; 524 buildCounterEmpty--;
521 } 525 }
522 526
523 buildUnnamed1974() { 527 buildUnnamed2060() {
524 var o = new core.Map<core.String, api.Type>(); 528 var o = new core.Map<core.String, api.Type>();
525 o["x"] = buildType(); 529 o["x"] = buildType();
526 o["y"] = buildType(); 530 o["y"] = buildType();
527 return o; 531 return o;
528 } 532 }
529 533
530 checkUnnamed1974(core.Map<core.String, api.Type> o) { 534 checkUnnamed2060(core.Map<core.String, api.Type> o) {
531 unittest.expect(o, unittest.hasLength(2)); 535 unittest.expect(o, unittest.hasLength(2));
532 checkType(o["x"]); 536 checkType(o["x"]);
533 checkType(o["y"]); 537 checkType(o["y"]);
534 } 538 }
535 539
536 buildUnnamed1975() { 540 buildUnnamed2061() {
537 var o = new core.Map<core.String, core.Object>(); 541 var o = new core.Map<core.String, core.Object>();
538 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 542 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
539 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 543 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
540 return o; 544 return o;
541 } 545 }
542 546
543 checkUnnamed1975(core.Map<core.String, core.Object> o) { 547 checkUnnamed2061(core.Map<core.String, core.Object> o) {
544 unittest.expect(o, unittest.hasLength(2)); 548 unittest.expect(o, unittest.hasLength(2));
545 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')); 549 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'));
546 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')); 550 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'));
547 } 551 }
548 552
549 core.int buildCounterExecuteSqlRequest = 0; 553 core.int buildCounterExecuteSqlRequest = 0;
550 buildExecuteSqlRequest() { 554 buildExecuteSqlRequest() {
551 var o = new api.ExecuteSqlRequest(); 555 var o = new api.ExecuteSqlRequest();
552 buildCounterExecuteSqlRequest++; 556 buildCounterExecuteSqlRequest++;
553 if (buildCounterExecuteSqlRequest < 3) { 557 if (buildCounterExecuteSqlRequest < 3) {
554 o.paramTypes = buildUnnamed1974(); 558 o.paramTypes = buildUnnamed2060();
555 o.params = buildUnnamed1975(); 559 o.params = buildUnnamed2061();
556 o.queryMode = "foo"; 560 o.queryMode = "foo";
557 o.resumeToken = "foo"; 561 o.resumeToken = "foo";
558 o.sql = "foo"; 562 o.sql = "foo";
559 o.transaction = buildTransactionSelector(); 563 o.transaction = buildTransactionSelector();
560 } 564 }
561 buildCounterExecuteSqlRequest--; 565 buildCounterExecuteSqlRequest--;
562 return o; 566 return o;
563 } 567 }
564 568
565 checkExecuteSqlRequest(api.ExecuteSqlRequest o) { 569 checkExecuteSqlRequest(api.ExecuteSqlRequest o) {
566 buildCounterExecuteSqlRequest++; 570 buildCounterExecuteSqlRequest++;
567 if (buildCounterExecuteSqlRequest < 3) { 571 if (buildCounterExecuteSqlRequest < 3) {
568 checkUnnamed1974(o.paramTypes); 572 checkUnnamed2060(o.paramTypes);
569 checkUnnamed1975(o.params); 573 checkUnnamed2061(o.params);
570 unittest.expect(o.queryMode, unittest.equals('foo')); 574 unittest.expect(o.queryMode, unittest.equals('foo'));
571 unittest.expect(o.resumeToken, unittest.equals('foo')); 575 unittest.expect(o.resumeToken, unittest.equals('foo'));
572 unittest.expect(o.sql, unittest.equals('foo')); 576 unittest.expect(o.sql, unittest.equals('foo'));
573 checkTransactionSelector(o.transaction); 577 checkTransactionSelector(o.transaction);
574 } 578 }
575 buildCounterExecuteSqlRequest--; 579 buildCounterExecuteSqlRequest--;
576 } 580 }
577 581
582 core.int buildCounterExpr = 0;
583 buildExpr() {
584 var o = new api.Expr();
585 buildCounterExpr++;
586 if (buildCounterExpr < 3) {
587 o.description = "foo";
588 o.expression = "foo";
589 o.location = "foo";
590 o.title = "foo";
591 }
592 buildCounterExpr--;
593 return o;
594 }
595
596 checkExpr(api.Expr o) {
597 buildCounterExpr++;
598 if (buildCounterExpr < 3) {
599 unittest.expect(o.description, unittest.equals('foo'));
600 unittest.expect(o.expression, unittest.equals('foo'));
601 unittest.expect(o.location, unittest.equals('foo'));
602 unittest.expect(o.title, unittest.equals('foo'));
603 }
604 buildCounterExpr--;
605 }
606
578 core.int buildCounterField = 0; 607 core.int buildCounterField = 0;
579 buildField() { 608 buildField() {
580 var o = new api.Field(); 609 var o = new api.Field();
581 buildCounterField++; 610 buildCounterField++;
582 if (buildCounterField < 3) { 611 if (buildCounterField < 3) {
583 o.name = "foo"; 612 o.name = "foo";
584 o.type = buildType(); 613 o.type = buildType();
585 } 614 }
586 buildCounterField--; 615 buildCounterField--;
587 return o; 616 return o;
588 } 617 }
589 618
590 checkField(api.Field o) { 619 checkField(api.Field o) {
591 buildCounterField++; 620 buildCounterField++;
592 if (buildCounterField < 3) { 621 if (buildCounterField < 3) {
593 unittest.expect(o.name, unittest.equals('foo')); 622 unittest.expect(o.name, unittest.equals('foo'));
594 checkType(o.type); 623 checkType(o.type);
595 } 624 }
596 buildCounterField--; 625 buildCounterField--;
597 } 626 }
598 627
599 buildUnnamed1976() { 628 buildUnnamed2062() {
600 var o = new core.List<core.String>(); 629 var o = new core.List<core.String>();
601 o.add("foo"); 630 o.add("foo");
602 o.add("foo"); 631 o.add("foo");
603 return o; 632 return o;
604 } 633 }
605 634
606 checkUnnamed1976(core.List<core.String> o) { 635 checkUnnamed2062(core.List<core.String> o) {
607 unittest.expect(o, unittest.hasLength(2)); 636 unittest.expect(o, unittest.hasLength(2));
608 unittest.expect(o[0], unittest.equals('foo')); 637 unittest.expect(o[0], unittest.equals('foo'));
609 unittest.expect(o[1], unittest.equals('foo')); 638 unittest.expect(o[1], unittest.equals('foo'));
610 } 639 }
611 640
612 core.int buildCounterGetDatabaseDdlResponse = 0; 641 core.int buildCounterGetDatabaseDdlResponse = 0;
613 buildGetDatabaseDdlResponse() { 642 buildGetDatabaseDdlResponse() {
614 var o = new api.GetDatabaseDdlResponse(); 643 var o = new api.GetDatabaseDdlResponse();
615 buildCounterGetDatabaseDdlResponse++; 644 buildCounterGetDatabaseDdlResponse++;
616 if (buildCounterGetDatabaseDdlResponse < 3) { 645 if (buildCounterGetDatabaseDdlResponse < 3) {
617 o.statements = buildUnnamed1976(); 646 o.statements = buildUnnamed2062();
618 } 647 }
619 buildCounterGetDatabaseDdlResponse--; 648 buildCounterGetDatabaseDdlResponse--;
620 return o; 649 return o;
621 } 650 }
622 651
623 checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { 652 checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) {
624 buildCounterGetDatabaseDdlResponse++; 653 buildCounterGetDatabaseDdlResponse++;
625 if (buildCounterGetDatabaseDdlResponse < 3) { 654 if (buildCounterGetDatabaseDdlResponse < 3) {
626 checkUnnamed1976(o.statements); 655 checkUnnamed2062(o.statements);
627 } 656 }
628 buildCounterGetDatabaseDdlResponse--; 657 buildCounterGetDatabaseDdlResponse--;
629 } 658 }
630 659
631 core.int buildCounterGetIamPolicyRequest = 0; 660 core.int buildCounterGetIamPolicyRequest = 0;
632 buildGetIamPolicyRequest() { 661 buildGetIamPolicyRequest() {
633 var o = new api.GetIamPolicyRequest(); 662 var o = new api.GetIamPolicyRequest();
634 buildCounterGetIamPolicyRequest++; 663 buildCounterGetIamPolicyRequest++;
635 if (buildCounterGetIamPolicyRequest < 3) { 664 if (buildCounterGetIamPolicyRequest < 3) {
636 } 665 }
637 buildCounterGetIamPolicyRequest--; 666 buildCounterGetIamPolicyRequest--;
638 return o; 667 return o;
639 } 668 }
640 669
641 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { 670 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
642 buildCounterGetIamPolicyRequest++; 671 buildCounterGetIamPolicyRequest++;
643 if (buildCounterGetIamPolicyRequest < 3) { 672 if (buildCounterGetIamPolicyRequest < 3) {
644 } 673 }
645 buildCounterGetIamPolicyRequest--; 674 buildCounterGetIamPolicyRequest--;
646 } 675 }
647 676
648 buildUnnamed1977() { 677 buildUnnamed2063() {
649 var o = new core.Map<core.String, core.String>(); 678 var o = new core.Map<core.String, core.String>();
650 o["x"] = "foo"; 679 o["x"] = "foo";
651 o["y"] = "foo"; 680 o["y"] = "foo";
652 return o; 681 return o;
653 } 682 }
654 683
655 checkUnnamed1977(core.Map<core.String, core.String> o) { 684 checkUnnamed2063(core.Map<core.String, core.String> o) {
656 unittest.expect(o, unittest.hasLength(2)); 685 unittest.expect(o, unittest.hasLength(2));
657 unittest.expect(o["x"], unittest.equals('foo')); 686 unittest.expect(o["x"], unittest.equals('foo'));
658 unittest.expect(o["y"], unittest.equals('foo')); 687 unittest.expect(o["y"], unittest.equals('foo'));
659 } 688 }
660 689
661 core.int buildCounterInstance = 0; 690 core.int buildCounterInstance = 0;
662 buildInstance() { 691 buildInstance() {
663 var o = new api.Instance(); 692 var o = new api.Instance();
664 buildCounterInstance++; 693 buildCounterInstance++;
665 if (buildCounterInstance < 3) { 694 if (buildCounterInstance < 3) {
666 o.config = "foo"; 695 o.config = "foo";
667 o.displayName = "foo"; 696 o.displayName = "foo";
668 o.labels = buildUnnamed1977(); 697 o.labels = buildUnnamed2063();
669 o.name = "foo"; 698 o.name = "foo";
670 o.nodeCount = 42; 699 o.nodeCount = 42;
671 o.state = "foo"; 700 o.state = "foo";
672 } 701 }
673 buildCounterInstance--; 702 buildCounterInstance--;
674 return o; 703 return o;
675 } 704 }
676 705
677 checkInstance(api.Instance o) { 706 checkInstance(api.Instance o) {
678 buildCounterInstance++; 707 buildCounterInstance++;
679 if (buildCounterInstance < 3) { 708 if (buildCounterInstance < 3) {
680 unittest.expect(o.config, unittest.equals('foo')); 709 unittest.expect(o.config, unittest.equals('foo'));
681 unittest.expect(o.displayName, unittest.equals('foo')); 710 unittest.expect(o.displayName, unittest.equals('foo'));
682 checkUnnamed1977(o.labels); 711 checkUnnamed2063(o.labels);
683 unittest.expect(o.name, unittest.equals('foo')); 712 unittest.expect(o.name, unittest.equals('foo'));
684 unittest.expect(o.nodeCount, unittest.equals(42)); 713 unittest.expect(o.nodeCount, unittest.equals(42));
685 unittest.expect(o.state, unittest.equals('foo')); 714 unittest.expect(o.state, unittest.equals('foo'));
686 } 715 }
687 buildCounterInstance--; 716 buildCounterInstance--;
688 } 717 }
689 718
690 core.int buildCounterInstanceConfig = 0; 719 core.int buildCounterInstanceConfig = 0;
691 buildInstanceConfig() { 720 buildInstanceConfig() {
692 var o = new api.InstanceConfig(); 721 var o = new api.InstanceConfig();
693 buildCounterInstanceConfig++; 722 buildCounterInstanceConfig++;
694 if (buildCounterInstanceConfig < 3) { 723 if (buildCounterInstanceConfig < 3) {
695 o.displayName = "foo"; 724 o.displayName = "foo";
696 o.name = "foo"; 725 o.name = "foo";
697 } 726 }
698 buildCounterInstanceConfig--; 727 buildCounterInstanceConfig--;
699 return o; 728 return o;
700 } 729 }
701 730
702 checkInstanceConfig(api.InstanceConfig o) { 731 checkInstanceConfig(api.InstanceConfig o) {
703 buildCounterInstanceConfig++; 732 buildCounterInstanceConfig++;
704 if (buildCounterInstanceConfig < 3) { 733 if (buildCounterInstanceConfig < 3) {
705 unittest.expect(o.displayName, unittest.equals('foo')); 734 unittest.expect(o.displayName, unittest.equals('foo'));
706 unittest.expect(o.name, unittest.equals('foo')); 735 unittest.expect(o.name, unittest.equals('foo'));
707 } 736 }
708 buildCounterInstanceConfig--; 737 buildCounterInstanceConfig--;
709 } 738 }
710 739
711 buildUnnamed1978() { 740 buildUnnamed2064() {
712 var o = new core.List<core.Object>(); 741 var o = new core.List<core.Object>();
713 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 742 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
714 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 743 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
715 return o; 744 return o;
716 } 745 }
717 746
718 checkUnnamed1978(core.List<core.Object> o) { 747 checkUnnamed2064(core.List<core.Object> o) {
719 unittest.expect(o, unittest.hasLength(2)); 748 unittest.expect(o, unittest.hasLength(2));
720 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength( 3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u nittest.equals('foo')); 749 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength( 3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u nittest.equals('foo'));
721 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength( 3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u nittest.equals('foo')); 750 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength( 3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u nittest.equals('foo'));
722 } 751 }
723 752
724 buildUnnamed1979() { 753 buildUnnamed2065() {
725 var o = new core.List<core.Object>(); 754 var o = new core.List<core.Object>();
726 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 755 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
727 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 756 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
728 return o; 757 return o;
729 } 758 }
730 759
731 checkUnnamed1979(core.List<core.Object> o) { 760 checkUnnamed2065(core.List<core.Object> o) {
732 unittest.expect(o, unittest.hasLength(2)); 761 unittest.expect(o, unittest.hasLength(2));
733 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength( 3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u nittest.equals('foo')); 762 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength( 3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u nittest.equals('foo'));
734 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength( 3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u nittest.equals('foo')); 763 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength( 3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u nittest.equals('foo'));
735 } 764 }
736 765
737 buildUnnamed1980() { 766 buildUnnamed2066() {
738 var o = new core.List<core.Object>(); 767 var o = new core.List<core.Object>();
739 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 768 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
740 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 769 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
741 return o; 770 return o;
742 } 771 }
743 772
744 checkUnnamed1980(core.List<core.Object> o) { 773 checkUnnamed2066(core.List<core.Object> o) {
745 unittest.expect(o, unittest.hasLength(2)); 774 unittest.expect(o, unittest.hasLength(2));
746 var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength( 3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], u nittest.equals('foo')); 775 var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength( 3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], u nittest.equals('foo'));
747 var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength( 3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], u nittest.equals('foo')); 776 var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength( 3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], u nittest.equals('foo'));
748 } 777 }
749 778
750 buildUnnamed1981() { 779 buildUnnamed2067() {
751 var o = new core.List<core.Object>(); 780 var o = new core.List<core.Object>();
752 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 781 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
753 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 782 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
754 return o; 783 return o;
755 } 784 }
756 785
757 checkUnnamed1981(core.List<core.Object> o) { 786 checkUnnamed2067(core.List<core.Object> o) {
758 unittest.expect(o, unittest.hasLength(2)); 787 unittest.expect(o, unittest.hasLength(2));
759 var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength( 3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], u nittest.equals('foo')); 788 var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength( 3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], u nittest.equals('foo'));
760 var casted10 = (o[1]) as core.Map; unittest.expect(casted10, unittest.hasLengt h(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string "], unittest.equals('foo')); 789 var casted10 = (o[1]) as core.Map; unittest.expect(casted10, unittest.hasLengt h(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string "], unittest.equals('foo'));
761 } 790 }
762 791
763 core.int buildCounterKeyRange = 0; 792 core.int buildCounterKeyRange = 0;
764 buildKeyRange() { 793 buildKeyRange() {
765 var o = new api.KeyRange(); 794 var o = new api.KeyRange();
766 buildCounterKeyRange++; 795 buildCounterKeyRange++;
767 if (buildCounterKeyRange < 3) { 796 if (buildCounterKeyRange < 3) {
768 o.endClosed = buildUnnamed1978(); 797 o.endClosed = buildUnnamed2064();
769 o.endOpen = buildUnnamed1979(); 798 o.endOpen = buildUnnamed2065();
770 o.startClosed = buildUnnamed1980(); 799 o.startClosed = buildUnnamed2066();
771 o.startOpen = buildUnnamed1981(); 800 o.startOpen = buildUnnamed2067();
772 } 801 }
773 buildCounterKeyRange--; 802 buildCounterKeyRange--;
774 return o; 803 return o;
775 } 804 }
776 805
777 checkKeyRange(api.KeyRange o) { 806 checkKeyRange(api.KeyRange o) {
778 buildCounterKeyRange++; 807 buildCounterKeyRange++;
779 if (buildCounterKeyRange < 3) { 808 if (buildCounterKeyRange < 3) {
780 checkUnnamed1978(o.endClosed); 809 checkUnnamed2064(o.endClosed);
781 checkUnnamed1979(o.endOpen); 810 checkUnnamed2065(o.endOpen);
782 checkUnnamed1980(o.startClosed); 811 checkUnnamed2066(o.startClosed);
783 checkUnnamed1981(o.startOpen); 812 checkUnnamed2067(o.startOpen);
784 } 813 }
785 buildCounterKeyRange--; 814 buildCounterKeyRange--;
786 } 815 }
787 816
788 buildUnnamed1982() { 817 buildUnnamed2068() {
789 var o = new core.List<core.Object>(); 818 var o = new core.List<core.Object>();
790 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 819 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
791 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 820 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
792 return o; 821 return o;
793 } 822 }
794 823
795 checkUnnamed1982(core.List<core.Object> o) { 824 checkUnnamed2068(core.List<core.Object> o) {
796 unittest.expect(o, unittest.hasLength(2)); 825 unittest.expect(o, unittest.hasLength(2));
797 var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLengt h(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string "], unittest.equals('foo')); 826 var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLengt h(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string "], unittest.equals('foo'));
798 var casted12 = (o[1]) as core.Map; unittest.expect(casted12, unittest.hasLengt h(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string "], unittest.equals('foo')); 827 var casted12 = (o[1]) as core.Map; unittest.expect(casted12, unittest.hasLengt h(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string "], unittest.equals('foo'));
799 } 828 }
800 829
801 buildUnnamed1983() { 830 buildUnnamed2069() {
802 var o = new core.List<core.List<core.Object>>(); 831 var o = new core.List<core.List<core.Object>>();
803 o.add(buildUnnamed1982()); 832 o.add(buildUnnamed2068());
804 o.add(buildUnnamed1982()); 833 o.add(buildUnnamed2068());
805 return o; 834 return o;
806 } 835 }
807 836
808 checkUnnamed1983(core.List<core.List<core.Object>> o) { 837 checkUnnamed2069(core.List<core.List<core.Object>> o) {
809 unittest.expect(o, unittest.hasLength(2)); 838 unittest.expect(o, unittest.hasLength(2));
810 checkUnnamed1982(o[0]); 839 checkUnnamed2068(o[0]);
811 checkUnnamed1982(o[1]); 840 checkUnnamed2068(o[1]);
812 } 841 }
813 842
814 buildUnnamed1984() { 843 buildUnnamed2070() {
815 var o = new core.List<api.KeyRange>(); 844 var o = new core.List<api.KeyRange>();
816 o.add(buildKeyRange()); 845 o.add(buildKeyRange());
817 o.add(buildKeyRange()); 846 o.add(buildKeyRange());
818 return o; 847 return o;
819 } 848 }
820 849
821 checkUnnamed1984(core.List<api.KeyRange> o) { 850 checkUnnamed2070(core.List<api.KeyRange> o) {
822 unittest.expect(o, unittest.hasLength(2)); 851 unittest.expect(o, unittest.hasLength(2));
823 checkKeyRange(o[0]); 852 checkKeyRange(o[0]);
824 checkKeyRange(o[1]); 853 checkKeyRange(o[1]);
825 } 854 }
826 855
827 core.int buildCounterKeySet = 0; 856 core.int buildCounterKeySet = 0;
828 buildKeySet() { 857 buildKeySet() {
829 var o = new api.KeySet(); 858 var o = new api.KeySet();
830 buildCounterKeySet++; 859 buildCounterKeySet++;
831 if (buildCounterKeySet < 3) { 860 if (buildCounterKeySet < 3) {
832 o.all = true; 861 o.all = true;
833 o.keys = buildUnnamed1983(); 862 o.keys = buildUnnamed2069();
834 o.ranges = buildUnnamed1984(); 863 o.ranges = buildUnnamed2070();
835 } 864 }
836 buildCounterKeySet--; 865 buildCounterKeySet--;
837 return o; 866 return o;
838 } 867 }
839 868
840 checkKeySet(api.KeySet o) { 869 checkKeySet(api.KeySet o) {
841 buildCounterKeySet++; 870 buildCounterKeySet++;
842 if (buildCounterKeySet < 3) { 871 if (buildCounterKeySet < 3) {
843 unittest.expect(o.all, unittest.isTrue); 872 unittest.expect(o.all, unittest.isTrue);
844 checkUnnamed1983(o.keys); 873 checkUnnamed2069(o.keys);
845 checkUnnamed1984(o.ranges); 874 checkUnnamed2070(o.ranges);
846 } 875 }
847 buildCounterKeySet--; 876 buildCounterKeySet--;
848 } 877 }
849 878
850 buildUnnamed1985() { 879 buildUnnamed2071() {
851 var o = new core.List<api.Database>(); 880 var o = new core.List<api.Database>();
852 o.add(buildDatabase()); 881 o.add(buildDatabase());
853 o.add(buildDatabase()); 882 o.add(buildDatabase());
854 return o; 883 return o;
855 } 884 }
856 885
857 checkUnnamed1985(core.List<api.Database> o) { 886 checkUnnamed2071(core.List<api.Database> o) {
858 unittest.expect(o, unittest.hasLength(2)); 887 unittest.expect(o, unittest.hasLength(2));
859 checkDatabase(o[0]); 888 checkDatabase(o[0]);
860 checkDatabase(o[1]); 889 checkDatabase(o[1]);
861 } 890 }
862 891
863 core.int buildCounterListDatabasesResponse = 0; 892 core.int buildCounterListDatabasesResponse = 0;
864 buildListDatabasesResponse() { 893 buildListDatabasesResponse() {
865 var o = new api.ListDatabasesResponse(); 894 var o = new api.ListDatabasesResponse();
866 buildCounterListDatabasesResponse++; 895 buildCounterListDatabasesResponse++;
867 if (buildCounterListDatabasesResponse < 3) { 896 if (buildCounterListDatabasesResponse < 3) {
868 o.databases = buildUnnamed1985(); 897 o.databases = buildUnnamed2071();
869 o.nextPageToken = "foo"; 898 o.nextPageToken = "foo";
870 } 899 }
871 buildCounterListDatabasesResponse--; 900 buildCounterListDatabasesResponse--;
872 return o; 901 return o;
873 } 902 }
874 903
875 checkListDatabasesResponse(api.ListDatabasesResponse o) { 904 checkListDatabasesResponse(api.ListDatabasesResponse o) {
876 buildCounterListDatabasesResponse++; 905 buildCounterListDatabasesResponse++;
877 if (buildCounterListDatabasesResponse < 3) { 906 if (buildCounterListDatabasesResponse < 3) {
878 checkUnnamed1985(o.databases); 907 checkUnnamed2071(o.databases);
879 unittest.expect(o.nextPageToken, unittest.equals('foo')); 908 unittest.expect(o.nextPageToken, unittest.equals('foo'));
880 } 909 }
881 buildCounterListDatabasesResponse--; 910 buildCounterListDatabasesResponse--;
882 } 911 }
883 912
884 buildUnnamed1986() { 913 buildUnnamed2072() {
885 var o = new core.List<api.InstanceConfig>(); 914 var o = new core.List<api.InstanceConfig>();
886 o.add(buildInstanceConfig()); 915 o.add(buildInstanceConfig());
887 o.add(buildInstanceConfig()); 916 o.add(buildInstanceConfig());
888 return o; 917 return o;
889 } 918 }
890 919
891 checkUnnamed1986(core.List<api.InstanceConfig> o) { 920 checkUnnamed2072(core.List<api.InstanceConfig> o) {
892 unittest.expect(o, unittest.hasLength(2)); 921 unittest.expect(o, unittest.hasLength(2));
893 checkInstanceConfig(o[0]); 922 checkInstanceConfig(o[0]);
894 checkInstanceConfig(o[1]); 923 checkInstanceConfig(o[1]);
895 } 924 }
896 925
897 core.int buildCounterListInstanceConfigsResponse = 0; 926 core.int buildCounterListInstanceConfigsResponse = 0;
898 buildListInstanceConfigsResponse() { 927 buildListInstanceConfigsResponse() {
899 var o = new api.ListInstanceConfigsResponse(); 928 var o = new api.ListInstanceConfigsResponse();
900 buildCounterListInstanceConfigsResponse++; 929 buildCounterListInstanceConfigsResponse++;
901 if (buildCounterListInstanceConfigsResponse < 3) { 930 if (buildCounterListInstanceConfigsResponse < 3) {
902 o.instanceConfigs = buildUnnamed1986(); 931 o.instanceConfigs = buildUnnamed2072();
903 o.nextPageToken = "foo"; 932 o.nextPageToken = "foo";
904 } 933 }
905 buildCounterListInstanceConfigsResponse--; 934 buildCounterListInstanceConfigsResponse--;
906 return o; 935 return o;
907 } 936 }
908 937
909 checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { 938 checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) {
910 buildCounterListInstanceConfigsResponse++; 939 buildCounterListInstanceConfigsResponse++;
911 if (buildCounterListInstanceConfigsResponse < 3) { 940 if (buildCounterListInstanceConfigsResponse < 3) {
912 checkUnnamed1986(o.instanceConfigs); 941 checkUnnamed2072(o.instanceConfigs);
913 unittest.expect(o.nextPageToken, unittest.equals('foo')); 942 unittest.expect(o.nextPageToken, unittest.equals('foo'));
914 } 943 }
915 buildCounterListInstanceConfigsResponse--; 944 buildCounterListInstanceConfigsResponse--;
916 } 945 }
917 946
918 buildUnnamed1987() { 947 buildUnnamed2073() {
919 var o = new core.List<api.Instance>(); 948 var o = new core.List<api.Instance>();
920 o.add(buildInstance()); 949 o.add(buildInstance());
921 o.add(buildInstance()); 950 o.add(buildInstance());
922 return o; 951 return o;
923 } 952 }
924 953
925 checkUnnamed1987(core.List<api.Instance> o) { 954 checkUnnamed2073(core.List<api.Instance> o) {
926 unittest.expect(o, unittest.hasLength(2)); 955 unittest.expect(o, unittest.hasLength(2));
927 checkInstance(o[0]); 956 checkInstance(o[0]);
928 checkInstance(o[1]); 957 checkInstance(o[1]);
929 } 958 }
930 959
931 core.int buildCounterListInstancesResponse = 0; 960 core.int buildCounterListInstancesResponse = 0;
932 buildListInstancesResponse() { 961 buildListInstancesResponse() {
933 var o = new api.ListInstancesResponse(); 962 var o = new api.ListInstancesResponse();
934 buildCounterListInstancesResponse++; 963 buildCounterListInstancesResponse++;
935 if (buildCounterListInstancesResponse < 3) { 964 if (buildCounterListInstancesResponse < 3) {
936 o.instances = buildUnnamed1987(); 965 o.instances = buildUnnamed2073();
937 o.nextPageToken = "foo"; 966 o.nextPageToken = "foo";
938 } 967 }
939 buildCounterListInstancesResponse--; 968 buildCounterListInstancesResponse--;
940 return o; 969 return o;
941 } 970 }
942 971
943 checkListInstancesResponse(api.ListInstancesResponse o) { 972 checkListInstancesResponse(api.ListInstancesResponse o) {
944 buildCounterListInstancesResponse++; 973 buildCounterListInstancesResponse++;
945 if (buildCounterListInstancesResponse < 3) { 974 if (buildCounterListInstancesResponse < 3) {
946 checkUnnamed1987(o.instances); 975 checkUnnamed2073(o.instances);
947 unittest.expect(o.nextPageToken, unittest.equals('foo')); 976 unittest.expect(o.nextPageToken, unittest.equals('foo'));
948 } 977 }
949 buildCounterListInstancesResponse--; 978 buildCounterListInstancesResponse--;
950 } 979 }
951 980
952 buildUnnamed1988() { 981 buildUnnamed2074() {
953 var o = new core.List<api.Operation>(); 982 var o = new core.List<api.Operation>();
954 o.add(buildOperation()); 983 o.add(buildOperation());
955 o.add(buildOperation()); 984 o.add(buildOperation());
956 return o; 985 return o;
957 } 986 }
958 987
959 checkUnnamed1988(core.List<api.Operation> o) { 988 checkUnnamed2074(core.List<api.Operation> o) {
960 unittest.expect(o, unittest.hasLength(2)); 989 unittest.expect(o, unittest.hasLength(2));
961 checkOperation(o[0]); 990 checkOperation(o[0]);
962 checkOperation(o[1]); 991 checkOperation(o[1]);
963 } 992 }
964 993
965 core.int buildCounterListOperationsResponse = 0; 994 core.int buildCounterListOperationsResponse = 0;
966 buildListOperationsResponse() { 995 buildListOperationsResponse() {
967 var o = new api.ListOperationsResponse(); 996 var o = new api.ListOperationsResponse();
968 buildCounterListOperationsResponse++; 997 buildCounterListOperationsResponse++;
969 if (buildCounterListOperationsResponse < 3) { 998 if (buildCounterListOperationsResponse < 3) {
970 o.nextPageToken = "foo"; 999 o.nextPageToken = "foo";
971 o.operations = buildUnnamed1988(); 1000 o.operations = buildUnnamed2074();
972 } 1001 }
973 buildCounterListOperationsResponse--; 1002 buildCounterListOperationsResponse--;
974 return o; 1003 return o;
975 } 1004 }
976 1005
977 checkListOperationsResponse(api.ListOperationsResponse o) { 1006 checkListOperationsResponse(api.ListOperationsResponse o) {
978 buildCounterListOperationsResponse++; 1007 buildCounterListOperationsResponse++;
979 if (buildCounterListOperationsResponse < 3) { 1008 if (buildCounterListOperationsResponse < 3) {
980 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1009 unittest.expect(o.nextPageToken, unittest.equals('foo'));
981 checkUnnamed1988(o.operations); 1010 checkUnnamed2074(o.operations);
982 } 1011 }
983 buildCounterListOperationsResponse--; 1012 buildCounterListOperationsResponse--;
984 } 1013 }
985 1014
986 core.int buildCounterLogConfig = 0; 1015 core.int buildCounterLogConfig = 0;
987 buildLogConfig() { 1016 buildLogConfig() {
988 var o = new api.LogConfig(); 1017 var o = new api.LogConfig();
989 buildCounterLogConfig++; 1018 buildCounterLogConfig++;
990 if (buildCounterLogConfig < 3) { 1019 if (buildCounterLogConfig < 3) {
991 o.cloudAudit = buildCloudAuditOptions(); 1020 o.cloudAudit = buildCloudAuditOptions();
(...skipping 34 matching lines...)
1026 if (buildCounterMutation < 3) { 1055 if (buildCounterMutation < 3) {
1027 checkDelete(o.delete); 1056 checkDelete(o.delete);
1028 checkWrite(o.insert); 1057 checkWrite(o.insert);
1029 checkWrite(o.insertOrUpdate); 1058 checkWrite(o.insertOrUpdate);
1030 checkWrite(o.replace); 1059 checkWrite(o.replace);
1031 checkWrite(o.update); 1060 checkWrite(o.update);
1032 } 1061 }
1033 buildCounterMutation--; 1062 buildCounterMutation--;
1034 } 1063 }
1035 1064
1036 buildUnnamed1989() { 1065 buildUnnamed2075() {
1037 var o = new core.Map<core.String, core.Object>(); 1066 var o = new core.Map<core.String, core.Object>();
1038 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1067 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1039 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1068 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1040 return o; 1069 return o;
1041 } 1070 }
1042 1071
1043 checkUnnamed1989(core.Map<core.String, core.Object> o) { 1072 checkUnnamed2075(core.Map<core.String, core.Object> o) {
1044 unittest.expect(o, unittest.hasLength(2)); 1073 unittest.expect(o, unittest.hasLength(2));
1045 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest .expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri ng"], unittest.equals('foo')); 1074 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest .expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri ng"], unittest.equals('foo'));
1046 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest .expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri ng"], unittest.equals('foo')); 1075 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest .expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri ng"], unittest.equals('foo'));
1047 } 1076 }
1048 1077
1049 buildUnnamed1990() { 1078 buildUnnamed2076() {
1050 var o = new core.Map<core.String, core.Object>(); 1079 var o = new core.Map<core.String, core.Object>();
1051 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1080 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1052 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1081 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1053 return o; 1082 return o;
1054 } 1083 }
1055 1084
1056 checkUnnamed1990(core.Map<core.String, core.Object> o) { 1085 checkUnnamed2076(core.Map<core.String, core.Object> o) {
1057 unittest.expect(o, unittest.hasLength(2)); 1086 unittest.expect(o, unittest.hasLength(2));
1058 var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLen gth(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest .expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["stri ng"], unittest.equals('foo')); 1087 var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLen gth(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest .expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["stri ng"], unittest.equals('foo'));
1059 var casted16 = (o["y"]) as core.Map; unittest.expect(casted16, unittest.hasLen gth(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest .expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["stri ng"], unittest.equals('foo')); 1088 var casted16 = (o["y"]) as core.Map; unittest.expect(casted16, unittest.hasLen gth(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest .expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["stri ng"], unittest.equals('foo'));
1060 } 1089 }
1061 1090
1062 core.int buildCounterOperation = 0; 1091 core.int buildCounterOperation = 0;
1063 buildOperation() { 1092 buildOperation() {
1064 var o = new api.Operation(); 1093 var o = new api.Operation();
1065 buildCounterOperation++; 1094 buildCounterOperation++;
1066 if (buildCounterOperation < 3) { 1095 if (buildCounterOperation < 3) {
1067 o.done = true; 1096 o.done = true;
1068 o.error = buildStatus(); 1097 o.error = buildStatus();
1069 o.metadata = buildUnnamed1989(); 1098 o.metadata = buildUnnamed2075();
1070 o.name = "foo"; 1099 o.name = "foo";
1071 o.response = buildUnnamed1990(); 1100 o.response = buildUnnamed2076();
1072 } 1101 }
1073 buildCounterOperation--; 1102 buildCounterOperation--;
1074 return o; 1103 return o;
1075 } 1104 }
1076 1105
1077 checkOperation(api.Operation o) { 1106 checkOperation(api.Operation o) {
1078 buildCounterOperation++; 1107 buildCounterOperation++;
1079 if (buildCounterOperation < 3) { 1108 if (buildCounterOperation < 3) {
1080 unittest.expect(o.done, unittest.isTrue); 1109 unittest.expect(o.done, unittest.isTrue);
1081 checkStatus(o.error); 1110 checkStatus(o.error);
1082 checkUnnamed1989(o.metadata); 1111 checkUnnamed2075(o.metadata);
1083 unittest.expect(o.name, unittest.equals('foo')); 1112 unittest.expect(o.name, unittest.equals('foo'));
1084 checkUnnamed1990(o.response); 1113 checkUnnamed2076(o.response);
1085 } 1114 }
1086 buildCounterOperation--; 1115 buildCounterOperation--;
1087 } 1116 }
1088 1117
1089 buildUnnamed1991() { 1118 buildUnnamed2077() {
1090 var o = new core.List<core.Object>(); 1119 var o = new core.List<core.Object>();
1091 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1120 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1092 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1121 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1093 return o; 1122 return o;
1094 } 1123 }
1095 1124
1096 checkUnnamed1991(core.List<core.Object> o) { 1125 checkUnnamed2077(core.List<core.Object> o) {
1097 unittest.expect(o, unittest.hasLength(2)); 1126 unittest.expect(o, unittest.hasLength(2));
1098 var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLengt h(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string "], unittest.equals('foo')); 1127 var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLengt h(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string "], unittest.equals('foo'));
1099 var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLengt h(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string "], unittest.equals('foo')); 1128 var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLengt h(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string "], unittest.equals('foo'));
1100 } 1129 }
1101 1130
1102 core.int buildCounterPartialResultSet = 0; 1131 core.int buildCounterPartialResultSet = 0;
1103 buildPartialResultSet() { 1132 buildPartialResultSet() {
1104 var o = new api.PartialResultSet(); 1133 var o = new api.PartialResultSet();
1105 buildCounterPartialResultSet++; 1134 buildCounterPartialResultSet++;
1106 if (buildCounterPartialResultSet < 3) { 1135 if (buildCounterPartialResultSet < 3) {
1107 o.chunkedValue = true; 1136 o.chunkedValue = true;
1108 o.metadata = buildResultSetMetadata(); 1137 o.metadata = buildResultSetMetadata();
1109 o.resumeToken = "foo"; 1138 o.resumeToken = "foo";
1110 o.stats = buildResultSetStats(); 1139 o.stats = buildResultSetStats();
1111 o.values = buildUnnamed1991(); 1140 o.values = buildUnnamed2077();
1112 } 1141 }
1113 buildCounterPartialResultSet--; 1142 buildCounterPartialResultSet--;
1114 return o; 1143 return o;
1115 } 1144 }
1116 1145
1117 checkPartialResultSet(api.PartialResultSet o) { 1146 checkPartialResultSet(api.PartialResultSet o) {
1118 buildCounterPartialResultSet++; 1147 buildCounterPartialResultSet++;
1119 if (buildCounterPartialResultSet < 3) { 1148 if (buildCounterPartialResultSet < 3) {
1120 unittest.expect(o.chunkedValue, unittest.isTrue); 1149 unittest.expect(o.chunkedValue, unittest.isTrue);
1121 checkResultSetMetadata(o.metadata); 1150 checkResultSetMetadata(o.metadata);
1122 unittest.expect(o.resumeToken, unittest.equals('foo')); 1151 unittest.expect(o.resumeToken, unittest.equals('foo'));
1123 checkResultSetStats(o.stats); 1152 checkResultSetStats(o.stats);
1124 checkUnnamed1991(o.values); 1153 checkUnnamed2077(o.values);
1125 } 1154 }
1126 buildCounterPartialResultSet--; 1155 buildCounterPartialResultSet--;
1127 } 1156 }
1128 1157
1129 buildUnnamed1992() { 1158 buildUnnamed2078() {
1130 var o = new core.List<api.ChildLink>(); 1159 var o = new core.List<api.ChildLink>();
1131 o.add(buildChildLink()); 1160 o.add(buildChildLink());
1132 o.add(buildChildLink()); 1161 o.add(buildChildLink());
1133 return o; 1162 return o;
1134 } 1163 }
1135 1164
1136 checkUnnamed1992(core.List<api.ChildLink> o) { 1165 checkUnnamed2078(core.List<api.ChildLink> o) {
1137 unittest.expect(o, unittest.hasLength(2)); 1166 unittest.expect(o, unittest.hasLength(2));
1138 checkChildLink(o[0]); 1167 checkChildLink(o[0]);
1139 checkChildLink(o[1]); 1168 checkChildLink(o[1]);
1140 } 1169 }
1141 1170
1142 buildUnnamed1993() { 1171 buildUnnamed2079() {
1143 var o = new core.Map<core.String, core.Object>(); 1172 var o = new core.Map<core.String, core.Object>();
1144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1173 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1174 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1146 return o; 1175 return o;
1147 } 1176 }
1148 1177
1149 checkUnnamed1993(core.Map<core.String, core.Object> o) { 1178 checkUnnamed2079(core.Map<core.String, core.Object> o) {
1150 unittest.expect(o, unittest.hasLength(2)); 1179 unittest.expect(o, unittest.hasLength(2));
1151 var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLen gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest .expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri ng"], unittest.equals('foo')); 1180 var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLen gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest .expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri ng"], unittest.equals('foo'));
1152 var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLen gth(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest .expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["stri ng"], unittest.equals('foo')); 1181 var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLen gth(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest .expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["stri ng"], unittest.equals('foo'));
1153 } 1182 }
1154 1183
1155 buildUnnamed1994() { 1184 buildUnnamed2080() {
1156 var o = new core.Map<core.String, core.Object>(); 1185 var o = new core.Map<core.String, core.Object>();
1157 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1186 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1158 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1187 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1159 return o; 1188 return o;
1160 } 1189 }
1161 1190
1162 checkUnnamed1994(core.Map<core.String, core.Object> o) { 1191 checkUnnamed2080(core.Map<core.String, core.Object> o) {
1163 unittest.expect(o, unittest.hasLength(2)); 1192 unittest.expect(o, unittest.hasLength(2));
1164 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest .expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri ng"], unittest.equals('foo')); 1193 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest .expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri ng"], unittest.equals('foo'));
1165 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest .expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri ng"], unittest.equals('foo')); 1194 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest .expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri ng"], unittest.equals('foo'));
1166 } 1195 }
1167 1196
1168 core.int buildCounterPlanNode = 0; 1197 core.int buildCounterPlanNode = 0;
1169 buildPlanNode() { 1198 buildPlanNode() {
1170 var o = new api.PlanNode(); 1199 var o = new api.PlanNode();
1171 buildCounterPlanNode++; 1200 buildCounterPlanNode++;
1172 if (buildCounterPlanNode < 3) { 1201 if (buildCounterPlanNode < 3) {
1173 o.childLinks = buildUnnamed1992(); 1202 o.childLinks = buildUnnamed2078();
1174 o.displayName = "foo"; 1203 o.displayName = "foo";
1175 o.executionStats = buildUnnamed1993(); 1204 o.executionStats = buildUnnamed2079();
1176 o.index = 42; 1205 o.index = 42;
1177 o.kind = "foo"; 1206 o.kind = "foo";
1178 o.metadata = buildUnnamed1994(); 1207 o.metadata = buildUnnamed2080();
1179 o.shortRepresentation = buildShortRepresentation(); 1208 o.shortRepresentation = buildShortRepresentation();
1180 } 1209 }
1181 buildCounterPlanNode--; 1210 buildCounterPlanNode--;
1182 return o; 1211 return o;
1183 } 1212 }
1184 1213
1185 checkPlanNode(api.PlanNode o) { 1214 checkPlanNode(api.PlanNode o) {
1186 buildCounterPlanNode++; 1215 buildCounterPlanNode++;
1187 if (buildCounterPlanNode < 3) { 1216 if (buildCounterPlanNode < 3) {
1188 checkUnnamed1992(o.childLinks); 1217 checkUnnamed2078(o.childLinks);
1189 unittest.expect(o.displayName, unittest.equals('foo')); 1218 unittest.expect(o.displayName, unittest.equals('foo'));
1190 checkUnnamed1993(o.executionStats); 1219 checkUnnamed2079(o.executionStats);
1191 unittest.expect(o.index, unittest.equals(42)); 1220 unittest.expect(o.index, unittest.equals(42));
1192 unittest.expect(o.kind, unittest.equals('foo')); 1221 unittest.expect(o.kind, unittest.equals('foo'));
1193 checkUnnamed1994(o.metadata); 1222 checkUnnamed2080(o.metadata);
1194 checkShortRepresentation(o.shortRepresentation); 1223 checkShortRepresentation(o.shortRepresentation);
1195 } 1224 }
1196 buildCounterPlanNode--; 1225 buildCounterPlanNode--;
1197 } 1226 }
1198 1227
1199 buildUnnamed1995() { 1228 buildUnnamed2081() {
1200 var o = new core.List<api.AuditConfig>(); 1229 var o = new core.List<api.AuditConfig>();
1201 o.add(buildAuditConfig()); 1230 o.add(buildAuditConfig());
1202 o.add(buildAuditConfig()); 1231 o.add(buildAuditConfig());
1203 return o; 1232 return o;
1204 } 1233 }
1205 1234
1206 checkUnnamed1995(core.List<api.AuditConfig> o) { 1235 checkUnnamed2081(core.List<api.AuditConfig> o) {
1207 unittest.expect(o, unittest.hasLength(2)); 1236 unittest.expect(o, unittest.hasLength(2));
1208 checkAuditConfig(o[0]); 1237 checkAuditConfig(o[0]);
1209 checkAuditConfig(o[1]); 1238 checkAuditConfig(o[1]);
1210 } 1239 }
1211 1240
1212 buildUnnamed1996() { 1241 buildUnnamed2082() {
1213 var o = new core.List<api.Binding>(); 1242 var o = new core.List<api.Binding>();
1214 o.add(buildBinding()); 1243 o.add(buildBinding());
1215 o.add(buildBinding()); 1244 o.add(buildBinding());
1216 return o; 1245 return o;
1217 } 1246 }
1218 1247
1219 checkUnnamed1996(core.List<api.Binding> o) { 1248 checkUnnamed2082(core.List<api.Binding> o) {
1220 unittest.expect(o, unittest.hasLength(2)); 1249 unittest.expect(o, unittest.hasLength(2));
1221 checkBinding(o[0]); 1250 checkBinding(o[0]);
1222 checkBinding(o[1]); 1251 checkBinding(o[1]);
1223 } 1252 }
1224 1253
1225 buildUnnamed1997() { 1254 buildUnnamed2083() {
1226 var o = new core.List<api.Rule>(); 1255 var o = new core.List<api.Rule>();
1227 o.add(buildRule()); 1256 o.add(buildRule());
1228 o.add(buildRule()); 1257 o.add(buildRule());
1229 return o; 1258 return o;
1230 } 1259 }
1231 1260
1232 checkUnnamed1997(core.List<api.Rule> o) { 1261 checkUnnamed2083(core.List<api.Rule> o) {
1233 unittest.expect(o, unittest.hasLength(2)); 1262 unittest.expect(o, unittest.hasLength(2));
1234 checkRule(o[0]); 1263 checkRule(o[0]);
1235 checkRule(o[1]); 1264 checkRule(o[1]);
1236 } 1265 }
1237 1266
1238 core.int buildCounterPolicy = 0; 1267 core.int buildCounterPolicy = 0;
1239 buildPolicy() { 1268 buildPolicy() {
1240 var o = new api.Policy(); 1269 var o = new api.Policy();
1241 buildCounterPolicy++; 1270 buildCounterPolicy++;
1242 if (buildCounterPolicy < 3) { 1271 if (buildCounterPolicy < 3) {
1243 o.auditConfigs = buildUnnamed1995(); 1272 o.auditConfigs = buildUnnamed2081();
1244 o.bindings = buildUnnamed1996(); 1273 o.bindings = buildUnnamed2082();
1245 o.etag = "foo"; 1274 o.etag = "foo";
1246 o.iamOwned = true; 1275 o.iamOwned = true;
1247 o.rules = buildUnnamed1997(); 1276 o.rules = buildUnnamed2083();
1248 o.version = 42; 1277 o.version = 42;
1249 } 1278 }
1250 buildCounterPolicy--; 1279 buildCounterPolicy--;
1251 return o; 1280 return o;
1252 } 1281 }
1253 1282
1254 checkPolicy(api.Policy o) { 1283 checkPolicy(api.Policy o) {
1255 buildCounterPolicy++; 1284 buildCounterPolicy++;
1256 if (buildCounterPolicy < 3) { 1285 if (buildCounterPolicy < 3) {
1257 checkUnnamed1995(o.auditConfigs); 1286 checkUnnamed2081(o.auditConfigs);
1258 checkUnnamed1996(o.bindings); 1287 checkUnnamed2082(o.bindings);
1259 unittest.expect(o.etag, unittest.equals('foo')); 1288 unittest.expect(o.etag, unittest.equals('foo'));
1260 unittest.expect(o.iamOwned, unittest.isTrue); 1289 unittest.expect(o.iamOwned, unittest.isTrue);
1261 checkUnnamed1997(o.rules); 1290 checkUnnamed2083(o.rules);
1262 unittest.expect(o.version, unittest.equals(42)); 1291 unittest.expect(o.version, unittest.equals(42));
1263 } 1292 }
1264 buildCounterPolicy--; 1293 buildCounterPolicy--;
1265 } 1294 }
1266 1295
1267 buildUnnamed1998() { 1296 buildUnnamed2084() {
1268 var o = new core.List<api.PlanNode>(); 1297 var o = new core.List<api.PlanNode>();
1269 o.add(buildPlanNode()); 1298 o.add(buildPlanNode());
1270 o.add(buildPlanNode()); 1299 o.add(buildPlanNode());
1271 return o; 1300 return o;
1272 } 1301 }
1273 1302
1274 checkUnnamed1998(core.List<api.PlanNode> o) { 1303 checkUnnamed2084(core.List<api.PlanNode> o) {
1275 unittest.expect(o, unittest.hasLength(2)); 1304 unittest.expect(o, unittest.hasLength(2));
1276 checkPlanNode(o[0]); 1305 checkPlanNode(o[0]);
1277 checkPlanNode(o[1]); 1306 checkPlanNode(o[1]);
1278 } 1307 }
1279 1308
1280 core.int buildCounterQueryPlan = 0; 1309 core.int buildCounterQueryPlan = 0;
1281 buildQueryPlan() { 1310 buildQueryPlan() {
1282 var o = new api.QueryPlan(); 1311 var o = new api.QueryPlan();
1283 buildCounterQueryPlan++; 1312 buildCounterQueryPlan++;
1284 if (buildCounterQueryPlan < 3) { 1313 if (buildCounterQueryPlan < 3) {
1285 o.planNodes = buildUnnamed1998(); 1314 o.planNodes = buildUnnamed2084();
1286 } 1315 }
1287 buildCounterQueryPlan--; 1316 buildCounterQueryPlan--;
1288 return o; 1317 return o;
1289 } 1318 }
1290 1319
1291 checkQueryPlan(api.QueryPlan o) { 1320 checkQueryPlan(api.QueryPlan o) {
1292 buildCounterQueryPlan++; 1321 buildCounterQueryPlan++;
1293 if (buildCounterQueryPlan < 3) { 1322 if (buildCounterQueryPlan < 3) {
1294 checkUnnamed1998(o.planNodes); 1323 checkUnnamed2084(o.planNodes);
1295 } 1324 }
1296 buildCounterQueryPlan--; 1325 buildCounterQueryPlan--;
1297 } 1326 }
1298 1327
1299 core.int buildCounterReadOnly = 0; 1328 core.int buildCounterReadOnly = 0;
1300 buildReadOnly() { 1329 buildReadOnly() {
1301 var o = new api.ReadOnly(); 1330 var o = new api.ReadOnly();
1302 buildCounterReadOnly++; 1331 buildCounterReadOnly++;
1303 if (buildCounterReadOnly < 3) { 1332 if (buildCounterReadOnly < 3) {
1304 o.exactStaleness = "foo"; 1333 o.exactStaleness = "foo";
(...skipping 13 matching lines...)
1318 unittest.expect(o.exactStaleness, unittest.equals('foo')); 1347 unittest.expect(o.exactStaleness, unittest.equals('foo'));
1319 unittest.expect(o.maxStaleness, unittest.equals('foo')); 1348 unittest.expect(o.maxStaleness, unittest.equals('foo'));
1320 unittest.expect(o.minReadTimestamp, unittest.equals('foo')); 1349 unittest.expect(o.minReadTimestamp, unittest.equals('foo'));
1321 unittest.expect(o.readTimestamp, unittest.equals('foo')); 1350 unittest.expect(o.readTimestamp, unittest.equals('foo'));
1322 unittest.expect(o.returnReadTimestamp, unittest.isTrue); 1351 unittest.expect(o.returnReadTimestamp, unittest.isTrue);
1323 unittest.expect(o.strong, unittest.isTrue); 1352 unittest.expect(o.strong, unittest.isTrue);
1324 } 1353 }
1325 buildCounterReadOnly--; 1354 buildCounterReadOnly--;
1326 } 1355 }
1327 1356
1328 buildUnnamed1999() { 1357 buildUnnamed2085() {
1329 var o = new core.List<core.String>(); 1358 var o = new core.List<core.String>();
1330 o.add("foo"); 1359 o.add("foo");
1331 o.add("foo"); 1360 o.add("foo");
1332 return o; 1361 return o;
1333 } 1362 }
1334 1363
1335 checkUnnamed1999(core.List<core.String> o) { 1364 checkUnnamed2085(core.List<core.String> o) {
1336 unittest.expect(o, unittest.hasLength(2)); 1365 unittest.expect(o, unittest.hasLength(2));
1337 unittest.expect(o[0], unittest.equals('foo')); 1366 unittest.expect(o[0], unittest.equals('foo'));
1338 unittest.expect(o[1], unittest.equals('foo')); 1367 unittest.expect(o[1], unittest.equals('foo'));
1339 } 1368 }
1340 1369
1341 core.int buildCounterReadRequest = 0; 1370 core.int buildCounterReadRequest = 0;
1342 buildReadRequest() { 1371 buildReadRequest() {
1343 var o = new api.ReadRequest(); 1372 var o = new api.ReadRequest();
1344 buildCounterReadRequest++; 1373 buildCounterReadRequest++;
1345 if (buildCounterReadRequest < 3) { 1374 if (buildCounterReadRequest < 3) {
1346 o.columns = buildUnnamed1999(); 1375 o.columns = buildUnnamed2085();
1347 o.index = "foo"; 1376 o.index = "foo";
1348 o.keySet = buildKeySet(); 1377 o.keySet = buildKeySet();
1349 o.limit = "foo"; 1378 o.limit = "foo";
1350 o.resumeToken = "foo"; 1379 o.resumeToken = "foo";
1351 o.table = "foo"; 1380 o.table = "foo";
1352 o.transaction = buildTransactionSelector(); 1381 o.transaction = buildTransactionSelector();
1353 } 1382 }
1354 buildCounterReadRequest--; 1383 buildCounterReadRequest--;
1355 return o; 1384 return o;
1356 } 1385 }
1357 1386
1358 checkReadRequest(api.ReadRequest o) { 1387 checkReadRequest(api.ReadRequest o) {
1359 buildCounterReadRequest++; 1388 buildCounterReadRequest++;
1360 if (buildCounterReadRequest < 3) { 1389 if (buildCounterReadRequest < 3) {
1361 checkUnnamed1999(o.columns); 1390 checkUnnamed2085(o.columns);
1362 unittest.expect(o.index, unittest.equals('foo')); 1391 unittest.expect(o.index, unittest.equals('foo'));
1363 checkKeySet(o.keySet); 1392 checkKeySet(o.keySet);
1364 unittest.expect(o.limit, unittest.equals('foo')); 1393 unittest.expect(o.limit, unittest.equals('foo'));
1365 unittest.expect(o.resumeToken, unittest.equals('foo')); 1394 unittest.expect(o.resumeToken, unittest.equals('foo'));
1366 unittest.expect(o.table, unittest.equals('foo')); 1395 unittest.expect(o.table, unittest.equals('foo'));
1367 checkTransactionSelector(o.transaction); 1396 checkTransactionSelector(o.transaction);
1368 } 1397 }
1369 buildCounterReadRequest--; 1398 buildCounterReadRequest--;
1370 } 1399 }
1371 1400
1372 core.int buildCounterReadWrite = 0; 1401 core.int buildCounterReadWrite = 0;
1373 buildReadWrite() { 1402 buildReadWrite() {
1374 var o = new api.ReadWrite(); 1403 var o = new api.ReadWrite();
1375 buildCounterReadWrite++; 1404 buildCounterReadWrite++;
1376 if (buildCounterReadWrite < 3) { 1405 if (buildCounterReadWrite < 3) {
1377 } 1406 }
1378 buildCounterReadWrite--; 1407 buildCounterReadWrite--;
1379 return o; 1408 return o;
1380 } 1409 }
1381 1410
1382 checkReadWrite(api.ReadWrite o) { 1411 checkReadWrite(api.ReadWrite o) {
1383 buildCounterReadWrite++; 1412 buildCounterReadWrite++;
1384 if (buildCounterReadWrite < 3) { 1413 if (buildCounterReadWrite < 3) {
1385 } 1414 }
1386 buildCounterReadWrite--; 1415 buildCounterReadWrite--;
1387 } 1416 }
1388 1417
1389 buildUnnamed2000() { 1418 buildUnnamed2086() {
1390 var o = new core.List<core.Object>(); 1419 var o = new core.List<core.Object>();
1391 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1420 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1392 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1421 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1393 return o; 1422 return o;
1394 } 1423 }
1395 1424
1396 checkUnnamed2000(core.List<core.Object> o) { 1425 checkUnnamed2086(core.List<core.Object> o) {
1397 unittest.expect(o, unittest.hasLength(2)); 1426 unittest.expect(o, unittest.hasLength(2));
1398 var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLengt h(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string "], unittest.equals('foo')); 1427 var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLengt h(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string "], unittest.equals('foo'));
1399 var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLengt h(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string "], unittest.equals('foo')); 1428 var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLengt h(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string "], unittest.equals('foo'));
1400 } 1429 }
1401 1430
1402 buildUnnamed2001() { 1431 buildUnnamed2087() {
1403 var o = new core.List<core.List<core.Object>>(); 1432 var o = new core.List<core.List<core.Object>>();
1404 o.add(buildUnnamed2000()); 1433 o.add(buildUnnamed2086());
1405 o.add(buildUnnamed2000()); 1434 o.add(buildUnnamed2086());
1406 return o; 1435 return o;
1407 } 1436 }
1408 1437
1409 checkUnnamed2001(core.List<core.List<core.Object>> o) { 1438 checkUnnamed2087(core.List<core.List<core.Object>> o) {
1410 unittest.expect(o, unittest.hasLength(2)); 1439 unittest.expect(o, unittest.hasLength(2));
1411 checkUnnamed2000(o[0]); 1440 checkUnnamed2086(o[0]);
1412 checkUnnamed2000(o[1]); 1441 checkUnnamed2086(o[1]);
1413 } 1442 }
1414 1443
1415 core.int buildCounterResultSet = 0; 1444 core.int buildCounterResultSet = 0;
1416 buildResultSet() { 1445 buildResultSet() {
1417 var o = new api.ResultSet(); 1446 var o = new api.ResultSet();
1418 buildCounterResultSet++; 1447 buildCounterResultSet++;
1419 if (buildCounterResultSet < 3) { 1448 if (buildCounterResultSet < 3) {
1420 o.metadata = buildResultSetMetadata(); 1449 o.metadata = buildResultSetMetadata();
1421 o.rows = buildUnnamed2001(); 1450 o.rows = buildUnnamed2087();
1422 o.stats = buildResultSetStats(); 1451 o.stats = buildResultSetStats();
1423 } 1452 }
1424 buildCounterResultSet--; 1453 buildCounterResultSet--;
1425 return o; 1454 return o;
1426 } 1455 }
1427 1456
1428 checkResultSet(api.ResultSet o) { 1457 checkResultSet(api.ResultSet o) {
1429 buildCounterResultSet++; 1458 buildCounterResultSet++;
1430 if (buildCounterResultSet < 3) { 1459 if (buildCounterResultSet < 3) {
1431 checkResultSetMetadata(o.metadata); 1460 checkResultSetMetadata(o.metadata);
1432 checkUnnamed2001(o.rows); 1461 checkUnnamed2087(o.rows);
1433 checkResultSetStats(o.stats); 1462 checkResultSetStats(o.stats);
1434 } 1463 }
1435 buildCounterResultSet--; 1464 buildCounterResultSet--;
1436 } 1465 }
1437 1466
1438 core.int buildCounterResultSetMetadata = 0; 1467 core.int buildCounterResultSetMetadata = 0;
1439 buildResultSetMetadata() { 1468 buildResultSetMetadata() {
1440 var o = new api.ResultSetMetadata(); 1469 var o = new api.ResultSetMetadata();
1441 buildCounterResultSetMetadata++; 1470 buildCounterResultSetMetadata++;
1442 if (buildCounterResultSetMetadata < 3) { 1471 if (buildCounterResultSetMetadata < 3) {
1443 o.rowType = buildStructType(); 1472 o.rowType = buildStructType();
1444 o.transaction = buildTransaction(); 1473 o.transaction = buildTransaction();
1445 } 1474 }
1446 buildCounterResultSetMetadata--; 1475 buildCounterResultSetMetadata--;
1447 return o; 1476 return o;
1448 } 1477 }
1449 1478
1450 checkResultSetMetadata(api.ResultSetMetadata o) { 1479 checkResultSetMetadata(api.ResultSetMetadata o) {
1451 buildCounterResultSetMetadata++; 1480 buildCounterResultSetMetadata++;
1452 if (buildCounterResultSetMetadata < 3) { 1481 if (buildCounterResultSetMetadata < 3) {
1453 checkStructType(o.rowType); 1482 checkStructType(o.rowType);
1454 checkTransaction(o.transaction); 1483 checkTransaction(o.transaction);
1455 } 1484 }
1456 buildCounterResultSetMetadata--; 1485 buildCounterResultSetMetadata--;
1457 } 1486 }
1458 1487
1459 buildUnnamed2002() { 1488 buildUnnamed2088() {
1460 var o = new core.Map<core.String, core.Object>(); 1489 var o = new core.Map<core.String, core.Object>();
1461 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1490 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1462 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1491 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1463 return o; 1492 return o;
1464 } 1493 }
1465 1494
1466 checkUnnamed2002(core.Map<core.String, core.Object> o) { 1495 checkUnnamed2088(core.Map<core.String, core.Object> o) {
1467 unittest.expect(o, unittest.hasLength(2)); 1496 unittest.expect(o, unittest.hasLength(2));
1468 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest .expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri ng"], unittest.equals('foo')); 1497 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest .expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri ng"], unittest.equals('foo'));
1469 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest .expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri ng"], unittest.equals('foo')); 1498 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest .expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri ng"], unittest.equals('foo'));
1470 } 1499 }
1471 1500
1472 core.int buildCounterResultSetStats = 0; 1501 core.int buildCounterResultSetStats = 0;
1473 buildResultSetStats() { 1502 buildResultSetStats() {
1474 var o = new api.ResultSetStats(); 1503 var o = new api.ResultSetStats();
1475 buildCounterResultSetStats++; 1504 buildCounterResultSetStats++;
1476 if (buildCounterResultSetStats < 3) { 1505 if (buildCounterResultSetStats < 3) {
1477 o.queryPlan = buildQueryPlan(); 1506 o.queryPlan = buildQueryPlan();
1478 o.queryStats = buildUnnamed2002(); 1507 o.queryStats = buildUnnamed2088();
1479 } 1508 }
1480 buildCounterResultSetStats--; 1509 buildCounterResultSetStats--;
1481 return o; 1510 return o;
1482 } 1511 }
1483 1512
1484 checkResultSetStats(api.ResultSetStats o) { 1513 checkResultSetStats(api.ResultSetStats o) {
1485 buildCounterResultSetStats++; 1514 buildCounterResultSetStats++;
1486 if (buildCounterResultSetStats < 3) { 1515 if (buildCounterResultSetStats < 3) {
1487 checkQueryPlan(o.queryPlan); 1516 checkQueryPlan(o.queryPlan);
1488 checkUnnamed2002(o.queryStats); 1517 checkUnnamed2088(o.queryStats);
1489 } 1518 }
1490 buildCounterResultSetStats--; 1519 buildCounterResultSetStats--;
1491 } 1520 }
1492 1521
1493 core.int buildCounterRollbackRequest = 0; 1522 core.int buildCounterRollbackRequest = 0;
1494 buildRollbackRequest() { 1523 buildRollbackRequest() {
1495 var o = new api.RollbackRequest(); 1524 var o = new api.RollbackRequest();
1496 buildCounterRollbackRequest++; 1525 buildCounterRollbackRequest++;
1497 if (buildCounterRollbackRequest < 3) { 1526 if (buildCounterRollbackRequest < 3) {
1498 o.transactionId = "foo"; 1527 o.transactionId = "foo";
1499 } 1528 }
1500 buildCounterRollbackRequest--; 1529 buildCounterRollbackRequest--;
1501 return o; 1530 return o;
1502 } 1531 }
1503 1532
1504 checkRollbackRequest(api.RollbackRequest o) { 1533 checkRollbackRequest(api.RollbackRequest o) {
1505 buildCounterRollbackRequest++; 1534 buildCounterRollbackRequest++;
1506 if (buildCounterRollbackRequest < 3) { 1535 if (buildCounterRollbackRequest < 3) {
1507 unittest.expect(o.transactionId, unittest.equals('foo')); 1536 unittest.expect(o.transactionId, unittest.equals('foo'));
1508 } 1537 }
1509 buildCounterRollbackRequest--; 1538 buildCounterRollbackRequest--;
1510 } 1539 }
1511 1540
1512 buildUnnamed2003() { 1541 buildUnnamed2089() {
1513 var o = new core.List<api.Condition>(); 1542 var o = new core.List<api.Condition>();
1514 o.add(buildCondition()); 1543 o.add(buildCondition());
1515 o.add(buildCondition()); 1544 o.add(buildCondition());
1516 return o; 1545 return o;
1517 } 1546 }
1518 1547
1519 checkUnnamed2003(core.List<api.Condition> o) { 1548 checkUnnamed2089(core.List<api.Condition> o) {
1520 unittest.expect(o, unittest.hasLength(2)); 1549 unittest.expect(o, unittest.hasLength(2));
1521 checkCondition(o[0]); 1550 checkCondition(o[0]);
1522 checkCondition(o[1]); 1551 checkCondition(o[1]);
1523 } 1552 }
1524 1553
1525 buildUnnamed2004() { 1554 buildUnnamed2090() {
1526 var o = new core.List<core.String>(); 1555 var o = new core.List<core.String>();
1527 o.add("foo"); 1556 o.add("foo");
1528 o.add("foo"); 1557 o.add("foo");
1529 return o; 1558 return o;
1530 } 1559 }
1531 1560
1532 checkUnnamed2004(core.List<core.String> o) { 1561 checkUnnamed2090(core.List<core.String> o) {
1533 unittest.expect(o, unittest.hasLength(2)); 1562 unittest.expect(o, unittest.hasLength(2));
1534 unittest.expect(o[0], unittest.equals('foo')); 1563 unittest.expect(o[0], unittest.equals('foo'));
1535 unittest.expect(o[1], unittest.equals('foo')); 1564 unittest.expect(o[1], unittest.equals('foo'));
1536 } 1565 }
1537 1566
1538 buildUnnamed2005() { 1567 buildUnnamed2091() {
1539 var o = new core.List<api.LogConfig>(); 1568 var o = new core.List<api.LogConfig>();
1540 o.add(buildLogConfig()); 1569 o.add(buildLogConfig());
1541 o.add(buildLogConfig()); 1570 o.add(buildLogConfig());
1542 return o; 1571 return o;
1543 } 1572 }
1544 1573
1545 checkUnnamed2005(core.List<api.LogConfig> o) { 1574 checkUnnamed2091(core.List<api.LogConfig> o) {
1546 unittest.expect(o, unittest.hasLength(2)); 1575 unittest.expect(o, unittest.hasLength(2));
1547 checkLogConfig(o[0]); 1576 checkLogConfig(o[0]);
1548 checkLogConfig(o[1]); 1577 checkLogConfig(o[1]);
1549 } 1578 }
1550 1579
1551 buildUnnamed2006() { 1580 buildUnnamed2092() {
1552 var o = new core.List<core.String>(); 1581 var o = new core.List<core.String>();
1553 o.add("foo"); 1582 o.add("foo");
1554 o.add("foo"); 1583 o.add("foo");
1555 return o; 1584 return o;
1556 } 1585 }
1557 1586
1558 checkUnnamed2006(core.List<core.String> o) { 1587 checkUnnamed2092(core.List<core.String> o) {
1559 unittest.expect(o, unittest.hasLength(2)); 1588 unittest.expect(o, unittest.hasLength(2));
1560 unittest.expect(o[0], unittest.equals('foo')); 1589 unittest.expect(o[0], unittest.equals('foo'));
1561 unittest.expect(o[1], unittest.equals('foo')); 1590 unittest.expect(o[1], unittest.equals('foo'));
1562 } 1591 }
1563 1592
1564 buildUnnamed2007() { 1593 buildUnnamed2093() {
1565 var o = new core.List<core.String>(); 1594 var o = new core.List<core.String>();
1566 o.add("foo"); 1595 o.add("foo");
1567 o.add("foo"); 1596 o.add("foo");
1568 return o; 1597 return o;
1569 } 1598 }
1570 1599
1571 checkUnnamed2007(core.List<core.String> o) { 1600 checkUnnamed2093(core.List<core.String> o) {
1572 unittest.expect(o, unittest.hasLength(2)); 1601 unittest.expect(o, unittest.hasLength(2));
1573 unittest.expect(o[0], unittest.equals('foo')); 1602 unittest.expect(o[0], unittest.equals('foo'));
1574 unittest.expect(o[1], unittest.equals('foo')); 1603 unittest.expect(o[1], unittest.equals('foo'));
1575 } 1604 }
1576 1605
1577 core.int buildCounterRule = 0; 1606 core.int buildCounterRule = 0;
1578 buildRule() { 1607 buildRule() {
1579 var o = new api.Rule(); 1608 var o = new api.Rule();
1580 buildCounterRule++; 1609 buildCounterRule++;
1581 if (buildCounterRule < 3) { 1610 if (buildCounterRule < 3) {
1582 o.action = "foo"; 1611 o.action = "foo";
1583 o.conditions = buildUnnamed2003(); 1612 o.conditions = buildUnnamed2089();
1584 o.description = "foo"; 1613 o.description = "foo";
1585 o.in_ = buildUnnamed2004(); 1614 o.in_ = buildUnnamed2090();
1586 o.logConfig = buildUnnamed2005(); 1615 o.logConfig = buildUnnamed2091();
1587 o.notIn = buildUnnamed2006(); 1616 o.notIn = buildUnnamed2092();
1588 o.permissions = buildUnnamed2007(); 1617 o.permissions = buildUnnamed2093();
1589 } 1618 }
1590 buildCounterRule--; 1619 buildCounterRule--;
1591 return o; 1620 return o;
1592 } 1621 }
1593 1622
1594 checkRule(api.Rule o) { 1623 checkRule(api.Rule o) {
1595 buildCounterRule++; 1624 buildCounterRule++;
1596 if (buildCounterRule < 3) { 1625 if (buildCounterRule < 3) {
1597 unittest.expect(o.action, unittest.equals('foo')); 1626 unittest.expect(o.action, unittest.equals('foo'));
1598 checkUnnamed2003(o.conditions); 1627 checkUnnamed2089(o.conditions);
1599 unittest.expect(o.description, unittest.equals('foo')); 1628 unittest.expect(o.description, unittest.equals('foo'));
1600 checkUnnamed2004(o.in_); 1629 checkUnnamed2090(o.in_);
1601 checkUnnamed2005(o.logConfig); 1630 checkUnnamed2091(o.logConfig);
1602 checkUnnamed2006(o.notIn); 1631 checkUnnamed2092(o.notIn);
1603 checkUnnamed2007(o.permissions); 1632 checkUnnamed2093(o.permissions);
1604 } 1633 }
1605 buildCounterRule--; 1634 buildCounterRule--;
1606 } 1635 }
1607 1636
1608 core.int buildCounterSession = 0; 1637 core.int buildCounterSession = 0;
1609 buildSession() { 1638 buildSession() {
1610 var o = new api.Session(); 1639 var o = new api.Session();
1611 buildCounterSession++; 1640 buildCounterSession++;
1612 if (buildCounterSession < 3) { 1641 if (buildCounterSession < 3) {
1613 o.name = "foo"; 1642 o.name = "foo";
(...skipping 24 matching lines...)
1638 1667
1639 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { 1668 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
1640 buildCounterSetIamPolicyRequest++; 1669 buildCounterSetIamPolicyRequest++;
1641 if (buildCounterSetIamPolicyRequest < 3) { 1670 if (buildCounterSetIamPolicyRequest < 3) {
1642 checkPolicy(o.policy); 1671 checkPolicy(o.policy);
1643 unittest.expect(o.updateMask, unittest.equals('foo')); 1672 unittest.expect(o.updateMask, unittest.equals('foo'));
1644 } 1673 }
1645 buildCounterSetIamPolicyRequest--; 1674 buildCounterSetIamPolicyRequest--;
1646 } 1675 }
1647 1676
1648 buildUnnamed2008() { 1677 buildUnnamed2094() {
1649 var o = new core.Map<core.String, core.int>(); 1678 var o = new core.Map<core.String, core.int>();
1650 o["x"] = 42; 1679 o["x"] = 42;
1651 o["y"] = 42; 1680 o["y"] = 42;
1652 return o; 1681 return o;
1653 } 1682 }
1654 1683
1655 checkUnnamed2008(core.Map<core.String, core.int> o) { 1684 checkUnnamed2094(core.Map<core.String, core.int> o) {
1656 unittest.expect(o, unittest.hasLength(2)); 1685 unittest.expect(o, unittest.hasLength(2));
1657 unittest.expect(o["x"], unittest.equals(42)); 1686 unittest.expect(o["x"], unittest.equals(42));
1658 unittest.expect(o["y"], unittest.equals(42)); 1687 unittest.expect(o["y"], unittest.equals(42));
1659 } 1688 }
1660 1689
1661 core.int buildCounterShortRepresentation = 0; 1690 core.int buildCounterShortRepresentation = 0;
1662 buildShortRepresentation() { 1691 buildShortRepresentation() {
1663 var o = new api.ShortRepresentation(); 1692 var o = new api.ShortRepresentation();
1664 buildCounterShortRepresentation++; 1693 buildCounterShortRepresentation++;
1665 if (buildCounterShortRepresentation < 3) { 1694 if (buildCounterShortRepresentation < 3) {
1666 o.description = "foo"; 1695 o.description = "foo";
1667 o.subqueries = buildUnnamed2008(); 1696 o.subqueries = buildUnnamed2094();
1668 } 1697 }
1669 buildCounterShortRepresentation--; 1698 buildCounterShortRepresentation--;
1670 return o; 1699 return o;
1671 } 1700 }
1672 1701
1673 checkShortRepresentation(api.ShortRepresentation o) { 1702 checkShortRepresentation(api.ShortRepresentation o) {
1674 buildCounterShortRepresentation++; 1703 buildCounterShortRepresentation++;
1675 if (buildCounterShortRepresentation < 3) { 1704 if (buildCounterShortRepresentation < 3) {
1676 unittest.expect(o.description, unittest.equals('foo')); 1705 unittest.expect(o.description, unittest.equals('foo'));
1677 checkUnnamed2008(o.subqueries); 1706 checkUnnamed2094(o.subqueries);
1678 } 1707 }
1679 buildCounterShortRepresentation--; 1708 buildCounterShortRepresentation--;
1680 } 1709 }
1681 1710
1682 buildUnnamed2009() { 1711 buildUnnamed2095() {
1683 var o = new core.Map<core.String, core.Object>(); 1712 var o = new core.Map<core.String, core.Object>();
1684 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1713 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1685 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1714 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1686 return o; 1715 return o;
1687 } 1716 }
1688 1717
1689 checkUnnamed2009(core.Map<core.String, core.Object> o) { 1718 checkUnnamed2095(core.Map<core.String, core.Object> o) {
1690 unittest.expect(o, unittest.hasLength(2)); 1719 unittest.expect(o, unittest.hasLength(2));
1691 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest .expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri ng"], unittest.equals('foo')); 1720 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest .expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri ng"], unittest.equals('foo'));
1692 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest .expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri ng"], unittest.equals('foo')); 1721 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest .expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri ng"], unittest.equals('foo'));
1693 } 1722 }
1694 1723
1695 buildUnnamed2010() { 1724 buildUnnamed2096() {
1696 var o = new core.List<core.Map<core.String, core.Object>>(); 1725 var o = new core.List<core.Map<core.String, core.Object>>();
1697 o.add(buildUnnamed2009()); 1726 o.add(buildUnnamed2095());
1698 o.add(buildUnnamed2009()); 1727 o.add(buildUnnamed2095());
1699 return o; 1728 return o;
1700 } 1729 }
1701 1730
1702 checkUnnamed2010(core.List<core.Map<core.String, core.Object>> o) { 1731 checkUnnamed2096(core.List<core.Map<core.String, core.Object>> o) {
1703 unittest.expect(o, unittest.hasLength(2)); 1732 unittest.expect(o, unittest.hasLength(2));
1704 checkUnnamed2009(o[0]); 1733 checkUnnamed2095(o[0]);
1705 checkUnnamed2009(o[1]); 1734 checkUnnamed2095(o[1]);
1706 } 1735 }
1707 1736
1708 core.int buildCounterStatus = 0; 1737 core.int buildCounterStatus = 0;
1709 buildStatus() { 1738 buildStatus() {
1710 var o = new api.Status(); 1739 var o = new api.Status();
1711 buildCounterStatus++; 1740 buildCounterStatus++;
1712 if (buildCounterStatus < 3) { 1741 if (buildCounterStatus < 3) {
1713 o.code = 42; 1742 o.code = 42;
1714 o.details = buildUnnamed2010(); 1743 o.details = buildUnnamed2096();
1715 o.message = "foo"; 1744 o.message = "foo";
1716 } 1745 }
1717 buildCounterStatus--; 1746 buildCounterStatus--;
1718 return o; 1747 return o;
1719 } 1748 }
1720 1749
1721 checkStatus(api.Status o) { 1750 checkStatus(api.Status o) {
1722 buildCounterStatus++; 1751 buildCounterStatus++;
1723 if (buildCounterStatus < 3) { 1752 if (buildCounterStatus < 3) {
1724 unittest.expect(o.code, unittest.equals(42)); 1753 unittest.expect(o.code, unittest.equals(42));
1725 checkUnnamed2010(o.details); 1754 checkUnnamed2096(o.details);
1726 unittest.expect(o.message, unittest.equals('foo')); 1755 unittest.expect(o.message, unittest.equals('foo'));
1727 } 1756 }
1728 buildCounterStatus--; 1757 buildCounterStatus--;
1729 } 1758 }
1730 1759
1731 buildUnnamed2011() { 1760 buildUnnamed2097() {
1732 var o = new core.List<api.Field>(); 1761 var o = new core.List<api.Field>();
1733 o.add(buildField()); 1762 o.add(buildField());
1734 o.add(buildField()); 1763 o.add(buildField());
1735 return o; 1764 return o;
1736 } 1765 }
1737 1766
1738 checkUnnamed2011(core.List<api.Field> o) { 1767 checkUnnamed2097(core.List<api.Field> o) {
1739 unittest.expect(o, unittest.hasLength(2)); 1768 unittest.expect(o, unittest.hasLength(2));
1740 checkField(o[0]); 1769 checkField(o[0]);
1741 checkField(o[1]); 1770 checkField(o[1]);
1742 } 1771 }
1743 1772
1744 core.int buildCounterStructType = 0; 1773 core.int buildCounterStructType = 0;
1745 buildStructType() { 1774 buildStructType() {
1746 var o = new api.StructType(); 1775 var o = new api.StructType();
1747 buildCounterStructType++; 1776 buildCounterStructType++;
1748 if (buildCounterStructType < 3) { 1777 if (buildCounterStructType < 3) {
1749 o.fields = buildUnnamed2011(); 1778 o.fields = buildUnnamed2097();
1750 } 1779 }
1751 buildCounterStructType--; 1780 buildCounterStructType--;
1752 return o; 1781 return o;
1753 } 1782 }
1754 1783
1755 checkStructType(api.StructType o) { 1784 checkStructType(api.StructType o) {
1756 buildCounterStructType++; 1785 buildCounterStructType++;
1757 if (buildCounterStructType < 3) { 1786 if (buildCounterStructType < 3) {
1758 checkUnnamed2011(o.fields); 1787 checkUnnamed2097(o.fields);
1759 } 1788 }
1760 buildCounterStructType--; 1789 buildCounterStructType--;
1761 } 1790 }
1762 1791
1763 buildUnnamed2012() { 1792 buildUnnamed2098() {
1764 var o = new core.List<core.String>(); 1793 var o = new core.List<core.String>();
1765 o.add("foo"); 1794 o.add("foo");
1766 o.add("foo"); 1795 o.add("foo");
1767 return o; 1796 return o;
1768 } 1797 }
1769 1798
1770 checkUnnamed2012(core.List<core.String> o) { 1799 checkUnnamed2098(core.List<core.String> o) {
1771 unittest.expect(o, unittest.hasLength(2)); 1800 unittest.expect(o, unittest.hasLength(2));
1772 unittest.expect(o[0], unittest.equals('foo')); 1801 unittest.expect(o[0], unittest.equals('foo'));
1773 unittest.expect(o[1], unittest.equals('foo')); 1802 unittest.expect(o[1], unittest.equals('foo'));
1774 } 1803 }
1775 1804
1776 core.int buildCounterTestIamPermissionsRequest = 0; 1805 core.int buildCounterTestIamPermissionsRequest = 0;
1777 buildTestIamPermissionsRequest() { 1806 buildTestIamPermissionsRequest() {
1778 var o = new api.TestIamPermissionsRequest(); 1807 var o = new api.TestIamPermissionsRequest();
1779 buildCounterTestIamPermissionsRequest++; 1808 buildCounterTestIamPermissionsRequest++;
1780 if (buildCounterTestIamPermissionsRequest < 3) { 1809 if (buildCounterTestIamPermissionsRequest < 3) {
1781 o.permissions = buildUnnamed2012(); 1810 o.permissions = buildUnnamed2098();
1782 } 1811 }
1783 buildCounterTestIamPermissionsRequest--; 1812 buildCounterTestIamPermissionsRequest--;
1784 return o; 1813 return o;
1785 } 1814 }
1786 1815
1787 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 1816 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
1788 buildCounterTestIamPermissionsRequest++; 1817 buildCounterTestIamPermissionsRequest++;
1789 if (buildCounterTestIamPermissionsRequest < 3) { 1818 if (buildCounterTestIamPermissionsRequest < 3) {
1790 checkUnnamed2012(o.permissions); 1819 checkUnnamed2098(o.permissions);
1791 } 1820 }
1792 buildCounterTestIamPermissionsRequest--; 1821 buildCounterTestIamPermissionsRequest--;
1793 } 1822 }
1794 1823
1795 buildUnnamed2013() { 1824 buildUnnamed2099() {
1796 var o = new core.List<core.String>(); 1825 var o = new core.List<core.String>();
1797 o.add("foo"); 1826 o.add("foo");
1798 o.add("foo"); 1827 o.add("foo");
1799 return o; 1828 return o;
1800 } 1829 }
1801 1830
1802 checkUnnamed2013(core.List<core.String> o) { 1831 checkUnnamed2099(core.List<core.String> o) {
1803 unittest.expect(o, unittest.hasLength(2)); 1832 unittest.expect(o, unittest.hasLength(2));
1804 unittest.expect(o[0], unittest.equals('foo')); 1833 unittest.expect(o[0], unittest.equals('foo'));
1805 unittest.expect(o[1], unittest.equals('foo')); 1834 unittest.expect(o[1], unittest.equals('foo'));
1806 } 1835 }
1807 1836
1808 core.int buildCounterTestIamPermissionsResponse = 0; 1837 core.int buildCounterTestIamPermissionsResponse = 0;
1809 buildTestIamPermissionsResponse() { 1838 buildTestIamPermissionsResponse() {
1810 var o = new api.TestIamPermissionsResponse(); 1839 var o = new api.TestIamPermissionsResponse();
1811 buildCounterTestIamPermissionsResponse++; 1840 buildCounterTestIamPermissionsResponse++;
1812 if (buildCounterTestIamPermissionsResponse < 3) { 1841 if (buildCounterTestIamPermissionsResponse < 3) {
1813 o.permissions = buildUnnamed2013(); 1842 o.permissions = buildUnnamed2099();
1814 } 1843 }
1815 buildCounterTestIamPermissionsResponse--; 1844 buildCounterTestIamPermissionsResponse--;
1816 return o; 1845 return o;
1817 } 1846 }
1818 1847
1819 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 1848 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
1820 buildCounterTestIamPermissionsResponse++; 1849 buildCounterTestIamPermissionsResponse++;
1821 if (buildCounterTestIamPermissionsResponse < 3) { 1850 if (buildCounterTestIamPermissionsResponse < 3) {
1822 checkUnnamed2013(o.permissions); 1851 checkUnnamed2099(o.permissions);
1823 } 1852 }
1824 buildCounterTestIamPermissionsResponse--; 1853 buildCounterTestIamPermissionsResponse--;
1825 } 1854 }
1826 1855
1827 core.int buildCounterTransaction = 0; 1856 core.int buildCounterTransaction = 0;
1828 buildTransaction() { 1857 buildTransaction() {
1829 var o = new api.Transaction(); 1858 var o = new api.Transaction();
1830 buildCounterTransaction++; 1859 buildCounterTransaction++;
1831 if (buildCounterTransaction < 3) { 1860 if (buildCounterTransaction < 3) {
1832 o.id = "foo"; 1861 o.id = "foo";
(...skipping 72 matching lines...)
1905 checkType(api.Type o) { 1934 checkType(api.Type o) {
1906 buildCounterType++; 1935 buildCounterType++;
1907 if (buildCounterType < 3) { 1936 if (buildCounterType < 3) {
1908 checkType(o.arrayElementType); 1937 checkType(o.arrayElementType);
1909 unittest.expect(o.code, unittest.equals('foo')); 1938 unittest.expect(o.code, unittest.equals('foo'));
1910 checkStructType(o.structType); 1939 checkStructType(o.structType);
1911 } 1940 }
1912 buildCounterType--; 1941 buildCounterType--;
1913 } 1942 }
1914 1943
1915 buildUnnamed2014() { 1944 buildUnnamed2100() {
1916 var o = new core.List<core.String>(); 1945 var o = new core.List<core.String>();
1917 o.add("foo"); 1946 o.add("foo");
1918 o.add("foo"); 1947 o.add("foo");
1919 return o; 1948 return o;
1920 } 1949 }
1921 1950
1922 checkUnnamed2014(core.List<core.String> o) { 1951 checkUnnamed2100(core.List<core.String> o) {
1923 unittest.expect(o, unittest.hasLength(2)); 1952 unittest.expect(o, unittest.hasLength(2));
1924 unittest.expect(o[0], unittest.equals('foo')); 1953 unittest.expect(o[0], unittest.equals('foo'));
1925 unittest.expect(o[1], unittest.equals('foo')); 1954 unittest.expect(o[1], unittest.equals('foo'));
1926 } 1955 }
1927 1956
1928 buildUnnamed2015() { 1957 buildUnnamed2101() {
1929 var o = new core.List<core.String>(); 1958 var o = new core.List<core.String>();
1930 o.add("foo"); 1959 o.add("foo");
1931 o.add("foo"); 1960 o.add("foo");
1932 return o; 1961 return o;
1933 } 1962 }
1934 1963
1935 checkUnnamed2015(core.List<core.String> o) { 1964 checkUnnamed2101(core.List<core.String> o) {
1936 unittest.expect(o, unittest.hasLength(2)); 1965 unittest.expect(o, unittest.hasLength(2));
1937 unittest.expect(o[0], unittest.equals('foo')); 1966 unittest.expect(o[0], unittest.equals('foo'));
1938 unittest.expect(o[1], unittest.equals('foo')); 1967 unittest.expect(o[1], unittest.equals('foo'));
1939 } 1968 }
1940 1969
1941 core.int buildCounterUpdateDatabaseDdlMetadata = 0; 1970 core.int buildCounterUpdateDatabaseDdlMetadata = 0;
1942 buildUpdateDatabaseDdlMetadata() { 1971 buildUpdateDatabaseDdlMetadata() {
1943 var o = new api.UpdateDatabaseDdlMetadata(); 1972 var o = new api.UpdateDatabaseDdlMetadata();
1944 buildCounterUpdateDatabaseDdlMetadata++; 1973 buildCounterUpdateDatabaseDdlMetadata++;
1945 if (buildCounterUpdateDatabaseDdlMetadata < 3) { 1974 if (buildCounterUpdateDatabaseDdlMetadata < 3) {
1946 o.commitTimestamps = buildUnnamed2014(); 1975 o.commitTimestamps = buildUnnamed2100();
1947 o.database = "foo"; 1976 o.database = "foo";
1948 o.statements = buildUnnamed2015(); 1977 o.statements = buildUnnamed2101();
1949 } 1978 }
1950 buildCounterUpdateDatabaseDdlMetadata--; 1979 buildCounterUpdateDatabaseDdlMetadata--;
1951 return o; 1980 return o;
1952 } 1981 }
1953 1982
1954 checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { 1983 checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) {
1955 buildCounterUpdateDatabaseDdlMetadata++; 1984 buildCounterUpdateDatabaseDdlMetadata++;
1956 if (buildCounterUpdateDatabaseDdlMetadata < 3) { 1985 if (buildCounterUpdateDatabaseDdlMetadata < 3) {
1957 checkUnnamed2014(o.commitTimestamps); 1986 checkUnnamed2100(o.commitTimestamps);
1958 unittest.expect(o.database, unittest.equals('foo')); 1987 unittest.expect(o.database, unittest.equals('foo'));
1959 checkUnnamed2015(o.statements); 1988 checkUnnamed2101(o.statements);
1960 } 1989 }
1961 buildCounterUpdateDatabaseDdlMetadata--; 1990 buildCounterUpdateDatabaseDdlMetadata--;
1962 } 1991 }
1963 1992
1964 buildUnnamed2016() { 1993 buildUnnamed2102() {
1965 var o = new core.List<core.String>(); 1994 var o = new core.List<core.String>();
1966 o.add("foo"); 1995 o.add("foo");
1967 o.add("foo"); 1996 o.add("foo");
1968 return o; 1997 return o;
1969 } 1998 }
1970 1999
1971 checkUnnamed2016(core.List<core.String> o) { 2000 checkUnnamed2102(core.List<core.String> o) {
1972 unittest.expect(o, unittest.hasLength(2)); 2001 unittest.expect(o, unittest.hasLength(2));
1973 unittest.expect(o[0], unittest.equals('foo')); 2002 unittest.expect(o[0], unittest.equals('foo'));
1974 unittest.expect(o[1], unittest.equals('foo')); 2003 unittest.expect(o[1], unittest.equals('foo'));
1975 } 2004 }
1976 2005
1977 core.int buildCounterUpdateDatabaseDdlRequest = 0; 2006 core.int buildCounterUpdateDatabaseDdlRequest = 0;
1978 buildUpdateDatabaseDdlRequest() { 2007 buildUpdateDatabaseDdlRequest() {
1979 var o = new api.UpdateDatabaseDdlRequest(); 2008 var o = new api.UpdateDatabaseDdlRequest();
1980 buildCounterUpdateDatabaseDdlRequest++; 2009 buildCounterUpdateDatabaseDdlRequest++;
1981 if (buildCounterUpdateDatabaseDdlRequest < 3) { 2010 if (buildCounterUpdateDatabaseDdlRequest < 3) {
1982 o.operationId = "foo"; 2011 o.operationId = "foo";
1983 o.statements = buildUnnamed2016(); 2012 o.statements = buildUnnamed2102();
1984 } 2013 }
1985 buildCounterUpdateDatabaseDdlRequest--; 2014 buildCounterUpdateDatabaseDdlRequest--;
1986 return o; 2015 return o;
1987 } 2016 }
1988 2017
1989 checkUpdateDatabaseDdlRequest(api.UpdateDatabaseDdlRequest o) { 2018 checkUpdateDatabaseDdlRequest(api.UpdateDatabaseDdlRequest o) {
1990 buildCounterUpdateDatabaseDdlRequest++; 2019 buildCounterUpdateDatabaseDdlRequest++;
1991 if (buildCounterUpdateDatabaseDdlRequest < 3) { 2020 if (buildCounterUpdateDatabaseDdlRequest < 3) {
1992 unittest.expect(o.operationId, unittest.equals('foo')); 2021 unittest.expect(o.operationId, unittest.equals('foo'));
1993 checkUnnamed2016(o.statements); 2022 checkUnnamed2102(o.statements);
1994 } 2023 }
1995 buildCounterUpdateDatabaseDdlRequest--; 2024 buildCounterUpdateDatabaseDdlRequest--;
1996 } 2025 }
1997 2026
1998 core.int buildCounterUpdateInstanceMetadata = 0; 2027 core.int buildCounterUpdateInstanceMetadata = 0;
1999 buildUpdateInstanceMetadata() { 2028 buildUpdateInstanceMetadata() {
2000 var o = new api.UpdateInstanceMetadata(); 2029 var o = new api.UpdateInstanceMetadata();
2001 buildCounterUpdateInstanceMetadata++; 2030 buildCounterUpdateInstanceMetadata++;
2002 if (buildCounterUpdateInstanceMetadata < 3) { 2031 if (buildCounterUpdateInstanceMetadata < 3) {
2003 o.cancelTime = "foo"; 2032 o.cancelTime = "foo";
(...skipping 30 matching lines...)
2034 2063
2035 checkUpdateInstanceRequest(api.UpdateInstanceRequest o) { 2064 checkUpdateInstanceRequest(api.UpdateInstanceRequest o) {
2036 buildCounterUpdateInstanceRequest++; 2065 buildCounterUpdateInstanceRequest++;
2037 if (buildCounterUpdateInstanceRequest < 3) { 2066 if (buildCounterUpdateInstanceRequest < 3) {
2038 unittest.expect(o.fieldMask, unittest.equals('foo')); 2067 unittest.expect(o.fieldMask, unittest.equals('foo'));
2039 checkInstance(o.instance); 2068 checkInstance(o.instance);
2040 } 2069 }
2041 buildCounterUpdateInstanceRequest--; 2070 buildCounterUpdateInstanceRequest--;
2042 } 2071 }
2043 2072
2044 buildUnnamed2017() { 2073 buildUnnamed2103() {
2045 var o = new core.List<core.String>(); 2074 var o = new core.List<core.String>();
2046 o.add("foo"); 2075 o.add("foo");
2047 o.add("foo"); 2076 o.add("foo");
2048 return o; 2077 return o;
2049 } 2078 }
2050 2079
2051 checkUnnamed2017(core.List<core.String> o) { 2080 checkUnnamed2103(core.List<core.String> o) {
2052 unittest.expect(o, unittest.hasLength(2)); 2081 unittest.expect(o, unittest.hasLength(2));
2053 unittest.expect(o[0], unittest.equals('foo')); 2082 unittest.expect(o[0], unittest.equals('foo'));
2054 unittest.expect(o[1], unittest.equals('foo')); 2083 unittest.expect(o[1], unittest.equals('foo'));
2055 } 2084 }
2056 2085
2057 buildUnnamed2018() { 2086 buildUnnamed2104() {
2058 var o = new core.List<core.Object>(); 2087 var o = new core.List<core.Object>();
2059 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 2088 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
2060 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 2089 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
2061 return o; 2090 return o;
2062 } 2091 }
2063 2092
2064 checkUnnamed2018(core.List<core.Object> o) { 2093 checkUnnamed2104(core.List<core.Object> o) {
2065 unittest.expect(o, unittest.hasLength(2)); 2094 unittest.expect(o, unittest.hasLength(2));
2066 var casted29 = (o[0]) as core.Map; unittest.expect(casted29, unittest.hasLengt h(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string "], unittest.equals('foo')); 2095 var casted29 = (o[0]) as core.Map; unittest.expect(casted29, unittest.hasLengt h(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string "], unittest.equals('foo'));
2067 var casted30 = (o[1]) as core.Map; unittest.expect(casted30, unittest.hasLengt h(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string "], unittest.equals('foo')); 2096 var casted30 = (o[1]) as core.Map; unittest.expect(casted30, unittest.hasLengt h(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string "], unittest.equals('foo'));
2068 } 2097 }
2069 2098
2070 buildUnnamed2019() { 2099 buildUnnamed2105() {
2071 var o = new core.List<core.List<core.Object>>(); 2100 var o = new core.List<core.List<core.Object>>();
2072 o.add(buildUnnamed2018()); 2101 o.add(buildUnnamed2104());
2073 o.add(buildUnnamed2018()); 2102 o.add(buildUnnamed2104());
2074 return o; 2103 return o;
2075 } 2104 }
2076 2105
2077 checkUnnamed2019(core.List<core.List<core.Object>> o) { 2106 checkUnnamed2105(core.List<core.List<core.Object>> o) {
2078 unittest.expect(o, unittest.hasLength(2)); 2107 unittest.expect(o, unittest.hasLength(2));
2079 checkUnnamed2018(o[0]); 2108 checkUnnamed2104(o[0]);
2080 checkUnnamed2018(o[1]); 2109 checkUnnamed2104(o[1]);
2081 } 2110 }
2082 2111
2083 core.int buildCounterWrite = 0; 2112 core.int buildCounterWrite = 0;
2084 buildWrite() { 2113 buildWrite() {
2085 var o = new api.Write(); 2114 var o = new api.Write();
2086 buildCounterWrite++; 2115 buildCounterWrite++;
2087 if (buildCounterWrite < 3) { 2116 if (buildCounterWrite < 3) {
2088 o.columns = buildUnnamed2017(); 2117 o.columns = buildUnnamed2103();
2089 o.table = "foo"; 2118 o.table = "foo";
2090 o.values = buildUnnamed2019(); 2119 o.values = buildUnnamed2105();
2091 } 2120 }
2092 buildCounterWrite--; 2121 buildCounterWrite--;
2093 return o; 2122 return o;
2094 } 2123 }
2095 2124
2096 checkWrite(api.Write o) { 2125 checkWrite(api.Write o) {
2097 buildCounterWrite++; 2126 buildCounterWrite++;
2098 if (buildCounterWrite < 3) { 2127 if (buildCounterWrite < 3) {
2099 checkUnnamed2017(o.columns); 2128 checkUnnamed2103(o.columns);
2100 unittest.expect(o.table, unittest.equals('foo')); 2129 unittest.expect(o.table, unittest.equals('foo'));
2101 checkUnnamed2019(o.values); 2130 checkUnnamed2105(o.values);
2102 } 2131 }
2103 buildCounterWrite--; 2132 buildCounterWrite--;
2104 } 2133 }
2105 2134
2106 2135
2107 main() { 2136 main() {
2108 unittest.group("obj-schema-AuditConfig", () { 2137 unittest.group("obj-schema-AuditConfig", () {
2109 unittest.test("to-json--from-json", () { 2138 unittest.test("to-json--from-json", () {
2110 var o = buildAuditConfig(); 2139 var o = buildAuditConfig();
2111 var od = new api.AuditConfig.fromJson(o.toJson()); 2140 var od = new api.AuditConfig.fromJson(o.toJson());
(...skipping 157 matching lines...)
2269 2298
2270 unittest.group("obj-schema-ExecuteSqlRequest", () { 2299 unittest.group("obj-schema-ExecuteSqlRequest", () {
2271 unittest.test("to-json--from-json", () { 2300 unittest.test("to-json--from-json", () {
2272 var o = buildExecuteSqlRequest(); 2301 var o = buildExecuteSqlRequest();
2273 var od = new api.ExecuteSqlRequest.fromJson(o.toJson()); 2302 var od = new api.ExecuteSqlRequest.fromJson(o.toJson());
2274 checkExecuteSqlRequest(od); 2303 checkExecuteSqlRequest(od);
2275 }); 2304 });
2276 }); 2305 });
2277 2306
2278 2307
2308 unittest.group("obj-schema-Expr", () {
2309 unittest.test("to-json--from-json", () {
2310 var o = buildExpr();
2311 var od = new api.Expr.fromJson(o.toJson());
2312 checkExpr(od);
2313 });
2314 });
2315
2316
2279 unittest.group("obj-schema-Field", () { 2317 unittest.group("obj-schema-Field", () {
2280 unittest.test("to-json--from-json", () { 2318 unittest.test("to-json--from-json", () {
2281 var o = buildField(); 2319 var o = buildField();
2282 var od = new api.Field.fromJson(o.toJson()); 2320 var od = new api.Field.fromJson(o.toJson());
2283 checkField(od); 2321 checkField(od);
2284 }); 2322 });
2285 }); 2323 });
2286 2324
2287 2325
2288 unittest.group("obj-schema-GetDatabaseDdlResponse", () { 2326 unittest.group("obj-schema-GetDatabaseDdlResponse", () {
(...skipping 1420 matching lines...)
3709 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { 3747 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) {
3710 checkOperation(response); 3748 checkOperation(response);
3711 }))); 3749 })));
3712 }); 3750 });
3713 3751
3714 unittest.test("method--list", () { 3752 unittest.test("method--list", () {
3715 3753
3716 var mock = new HttpServerMock(); 3754 var mock = new HttpServerMock();
3717 api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerA pi(mock).projects.instances.databases.operations; 3755 api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerA pi(mock).projects.instances.databases.operations;
3718 var arg_name = "foo"; 3756 var arg_name = "foo";
3719 var arg_filter = "foo";
3720 var arg_pageToken = "foo"; 3757 var arg_pageToken = "foo";
3721 var arg_pageSize = 42; 3758 var arg_pageSize = 42;
3759 var arg_filter = "foo";
3722 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3760 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3723 var path = (req.url).path; 3761 var path = (req.url).path;
3724 var pathOffset = 0; 3762 var pathOffset = 0;
3725 var index; 3763 var index;
3726 var subPart; 3764 var subPart;
3727 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3765 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3728 pathOffset += 1; 3766 pathOffset += 1;
3729 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 3767 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
3730 pathOffset += 3; 3768 pathOffset += 3;
3731 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 3769 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
3732 3770
3733 var query = (req.url).query; 3771 var query = (req.url).query;
3734 var queryOffset = 0; 3772 var queryOffset = 0;
3735 var queryMap = {}; 3773 var queryMap = {};
3736 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3774 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3737 parseBool(n) { 3775 parseBool(n) {
3738 if (n == "true") return true; 3776 if (n == "true") return true;
3739 if (n == "false") return false; 3777 if (n == "false") return false;
3740 if (n == null) return null; 3778 if (n == null) return null;
3741 throw new core.ArgumentError("Invalid boolean: $n"); 3779 throw new core.ArgumentError("Invalid boolean: $n");
3742 } 3780 }
3743 if (query.length > 0) { 3781 if (query.length > 0) {
3744 for (var part in query.split("&")) { 3782 for (var part in query.split("&")) {
3745 var keyvalue = part.split("="); 3783 var keyvalue = part.split("=");
3746 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3784 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3747 } 3785 }
3748 } 3786 }
3749 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3750 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3787 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3751 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3788 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3789 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3752 3790
3753 3791
3754 var h = { 3792 var h = {
3755 "content-type" : "application/json; charset=utf-8", 3793 "content-type" : "application/json; charset=utf-8",
3756 }; 3794 };
3757 var resp = convert.JSON.encode(buildListOperationsResponse()); 3795 var resp = convert.JSON.encode(buildListOperationsResponse());
3758 return new async.Future.value(stringResponse(200, h, resp)); 3796 return new async.Future.value(stringResponse(200, h, resp));
3759 }), true); 3797 }), true);
3760 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { 3798 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte r: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) {
3761 checkListOperationsResponse(response); 3799 checkListOperationsResponse(response);
3762 }))); 3800 })));
3763 }); 3801 });
3764 3802
3765 }); 3803 });
3766 3804
3767 3805
3768 unittest.group("resource-ProjectsInstancesDatabasesSessionsResourceApi", () { 3806 unittest.group("resource-ProjectsInstancesDatabasesSessionsResourceApi", () {
3769 unittest.test("method--beginTransaction", () { 3807 unittest.test("method--beginTransaction", () {
3770 3808
(...skipping 610 matching lines...)
4381 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { 4419 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) {
4382 checkOperation(response); 4420 checkOperation(response);
4383 }))); 4421 })));
4384 }); 4422 });
4385 4423
4386 unittest.test("method--list", () { 4424 unittest.test("method--list", () {
4387 4425
4388 var mock = new HttpServerMock(); 4426 var mock = new HttpServerMock();
4389 api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock). projects.instances.operations; 4427 api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock). projects.instances.operations;
4390 var arg_name = "foo"; 4428 var arg_name = "foo";
4391 var arg_pageSize = 42;
4392 var arg_filter = "foo"; 4429 var arg_filter = "foo";
4393 var arg_pageToken = "foo"; 4430 var arg_pageToken = "foo";
4431 var arg_pageSize = 42;
4394 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4432 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4395 var path = (req.url).path; 4433 var path = (req.url).path;
4396 var pathOffset = 0; 4434 var pathOffset = 0;
4397 var index; 4435 var index;
4398 var subPart; 4436 var subPart;
4399 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4437 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4400 pathOffset += 1; 4438 pathOffset += 1;
4401 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 4439 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
4402 pathOffset += 3; 4440 pathOffset += 3;
4403 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 4441 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
4404 4442
4405 var query = (req.url).query; 4443 var query = (req.url).query;
4406 var queryOffset = 0; 4444 var queryOffset = 0;
4407 var queryMap = {}; 4445 var queryMap = {};
4408 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4446 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4409 parseBool(n) { 4447 parseBool(n) {
4410 if (n == "true") return true; 4448 if (n == "true") return true;
4411 if (n == "false") return false; 4449 if (n == "false") return false;
4412 if (n == null) return null; 4450 if (n == null) return null;
4413 throw new core.ArgumentError("Invalid boolean: $n"); 4451 throw new core.ArgumentError("Invalid boolean: $n");
4414 } 4452 }
4415 if (query.length > 0) { 4453 if (query.length > 0) {
4416 for (var part in query.split("&")) { 4454 for (var part in query.split("&")) {
4417 var keyvalue = part.split("="); 4455 var keyvalue = part.split("=");
4418 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4456 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4419 } 4457 }
4420 } 4458 }
4421 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4422 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 4459 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
4423 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4460 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4461 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4424 4462
4425 4463
4426 var h = { 4464 var h = {
4427 "content-type" : "application/json; charset=utf-8", 4465 "content-type" : "application/json; charset=utf-8",
4428 }; 4466 };
4429 var resp = convert.JSON.encode(buildListOperationsResponse()); 4467 var resp = convert.JSON.encode(buildListOperationsResponse());
4430 return new async.Future.value(stringResponse(200, h, resp)); 4468 return new async.Future.value(stringResponse(200, h, resp));
4431 }), true); 4469 }), true);
4432 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { 4470 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) {
4433 checkListOperationsResponse(response); 4471 checkListOperationsResponse(response);
4434 }))); 4472 })));
4435 }); 4473 });
4436 4474
4437 }); 4475 });
4438 4476
4439 4477
4440 } 4478 }
4441 4479
OLDNEW
« no previous file with comments | « generated/googleapis/test/sourcerepo/v1_test.dart ('k') | generated/googleapis/test/speech/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine