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

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

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.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:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
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 buildUnnamed1769() { 54 buildUnnamed1873() {
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 checkUnnamed1769(core.List<api.AuditLogConfig> o) { 61 checkUnnamed1873(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 buildUnnamed1770() { 67 buildUnnamed1874() {
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 checkUnnamed1770(core.List<core.String> o) { 74 checkUnnamed1874(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 = buildUnnamed1769(); 85 o.auditLogConfigs = buildUnnamed1873();
86 o.exemptedMembers = buildUnnamed1770(); 86 o.exemptedMembers = buildUnnamed1874();
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 checkUnnamed1769(o.auditLogConfigs); 96 checkUnnamed1873(o.auditLogConfigs);
97 checkUnnamed1770(o.exemptedMembers); 97 checkUnnamed1874(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 buildUnnamed1771() { 103 buildUnnamed1875() {
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 checkUnnamed1771(core.List<core.String> o) { 110 checkUnnamed1875(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 = buildUnnamed1771(); 121 o.exemptedMembers = buildUnnamed1875();
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 checkUnnamed1771(o.exemptedMembers); 131 checkUnnamed1875(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 buildUnnamed1772() { 156 buildUnnamed1876() {
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 checkUnnamed1772(core.List<core.String> o) { 163 checkUnnamed1876(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 = buildUnnamed1772(); 174 o.members = buildUnnamed1876();
175 o.role = "foo"; 175 o.role = "foo";
176 } 176 }
177 buildCounterBinding--; 177 buildCounterBinding--;
178 return o; 178 return o;
179 } 179 }
180 180
181 checkBinding(api.Binding o) { 181 checkBinding(api.Binding o) {
182 buildCounterBinding++; 182 buildCounterBinding++;
183 if (buildCounterBinding < 3) { 183 if (buildCounterBinding < 3) {
184 checkUnnamed1772(o.members); 184 checkUnnamed1876(o.members);
185 unittest.expect(o.role, unittest.equals('foo')); 185 unittest.expect(o.role, unittest.equals('foo'));
186 } 186 }
187 buildCounterBinding--; 187 buildCounterBinding--;
188 } 188 }
189 189
190 core.int buildCounterChildLink = 0; 190 core.int buildCounterChildLink = 0;
191 buildChildLink() { 191 buildChildLink() {
192 var o = new api.ChildLink(); 192 var o = new api.ChildLink();
193 buildCounterChildLink++; 193 buildCounterChildLink++;
194 if (buildCounterChildLink < 3) { 194 if (buildCounterChildLink < 3) {
(...skipping 25 matching lines...) Expand all
220 return o; 220 return o;
221 } 221 }
222 222
223 checkCloudAuditOptions(api.CloudAuditOptions o) { 223 checkCloudAuditOptions(api.CloudAuditOptions o) {
224 buildCounterCloudAuditOptions++; 224 buildCounterCloudAuditOptions++;
225 if (buildCounterCloudAuditOptions < 3) { 225 if (buildCounterCloudAuditOptions < 3) {
226 } 226 }
227 buildCounterCloudAuditOptions--; 227 buildCounterCloudAuditOptions--;
228 } 228 }
229 229
230 buildUnnamed1773() { 230 buildUnnamed1877() {
231 var o = new core.List<api.Mutation>(); 231 var o = new core.List<api.Mutation>();
232 o.add(buildMutation()); 232 o.add(buildMutation());
233 o.add(buildMutation()); 233 o.add(buildMutation());
234 return o; 234 return o;
235 } 235 }
236 236
237 checkUnnamed1773(core.List<api.Mutation> o) { 237 checkUnnamed1877(core.List<api.Mutation> o) {
238 unittest.expect(o, unittest.hasLength(2)); 238 unittest.expect(o, unittest.hasLength(2));
239 checkMutation(o[0]); 239 checkMutation(o[0]);
240 checkMutation(o[1]); 240 checkMutation(o[1]);
241 } 241 }
242 242
243 core.int buildCounterCommitRequest = 0; 243 core.int buildCounterCommitRequest = 0;
244 buildCommitRequest() { 244 buildCommitRequest() {
245 var o = new api.CommitRequest(); 245 var o = new api.CommitRequest();
246 buildCounterCommitRequest++; 246 buildCounterCommitRequest++;
247 if (buildCounterCommitRequest < 3) { 247 if (buildCounterCommitRequest < 3) {
248 o.mutations = buildUnnamed1773(); 248 o.mutations = buildUnnamed1877();
249 o.singleUseTransaction = buildTransactionOptions(); 249 o.singleUseTransaction = buildTransactionOptions();
250 o.transactionId = "foo"; 250 o.transactionId = "foo";
251 } 251 }
252 buildCounterCommitRequest--; 252 buildCounterCommitRequest--;
253 return o; 253 return o;
254 } 254 }
255 255
256 checkCommitRequest(api.CommitRequest o) { 256 checkCommitRequest(api.CommitRequest o) {
257 buildCounterCommitRequest++; 257 buildCounterCommitRequest++;
258 if (buildCounterCommitRequest < 3) { 258 if (buildCounterCommitRequest < 3) {
259 checkUnnamed1773(o.mutations); 259 checkUnnamed1877(o.mutations);
260 checkTransactionOptions(o.singleUseTransaction); 260 checkTransactionOptions(o.singleUseTransaction);
261 unittest.expect(o.transactionId, unittest.equals('foo')); 261 unittest.expect(o.transactionId, unittest.equals('foo'));
262 } 262 }
263 buildCounterCommitRequest--; 263 buildCounterCommitRequest--;
264 } 264 }
265 265
266 core.int buildCounterCommitResponse = 0; 266 core.int buildCounterCommitResponse = 0;
267 buildCommitResponse() { 267 buildCommitResponse() {
268 var o = new api.CommitResponse(); 268 var o = new api.CommitResponse();
269 buildCounterCommitResponse++; 269 buildCounterCommitResponse++;
270 if (buildCounterCommitResponse < 3) { 270 if (buildCounterCommitResponse < 3) {
271 o.commitTimestamp = "foo"; 271 o.commitTimestamp = "foo";
272 } 272 }
273 buildCounterCommitResponse--; 273 buildCounterCommitResponse--;
274 return o; 274 return o;
275 } 275 }
276 276
277 checkCommitResponse(api.CommitResponse o) { 277 checkCommitResponse(api.CommitResponse o) {
278 buildCounterCommitResponse++; 278 buildCounterCommitResponse++;
279 if (buildCounterCommitResponse < 3) { 279 if (buildCounterCommitResponse < 3) {
280 unittest.expect(o.commitTimestamp, unittest.equals('foo')); 280 unittest.expect(o.commitTimestamp, unittest.equals('foo'));
281 } 281 }
282 buildCounterCommitResponse--; 282 buildCounterCommitResponse--;
283 } 283 }
284 284
285 buildUnnamed1774() { 285 buildUnnamed1878() {
286 var o = new core.List<core.String>(); 286 var o = new core.List<core.String>();
287 o.add("foo"); 287 o.add("foo");
288 o.add("foo"); 288 o.add("foo");
289 return o; 289 return o;
290 } 290 }
291 291
292 checkUnnamed1774(core.List<core.String> o) { 292 checkUnnamed1878(core.List<core.String> o) {
293 unittest.expect(o, unittest.hasLength(2)); 293 unittest.expect(o, unittest.hasLength(2));
294 unittest.expect(o[0], unittest.equals('foo')); 294 unittest.expect(o[0], unittest.equals('foo'));
295 unittest.expect(o[1], unittest.equals('foo')); 295 unittest.expect(o[1], unittest.equals('foo'));
296 } 296 }
297 297
298 core.int buildCounterCondition = 0; 298 core.int buildCounterCondition = 0;
299 buildCondition() { 299 buildCondition() {
300 var o = new api.Condition(); 300 var o = new api.Condition();
301 buildCounterCondition++; 301 buildCounterCondition++;
302 if (buildCounterCondition < 3) { 302 if (buildCounterCondition < 3) {
303 o.iam = "foo"; 303 o.iam = "foo";
304 o.op = "foo"; 304 o.op = "foo";
305 o.svc = "foo"; 305 o.svc = "foo";
306 o.sys = "foo"; 306 o.sys = "foo";
307 o.value = "foo"; 307 o.value = "foo";
308 o.values = buildUnnamed1774(); 308 o.values = buildUnnamed1878();
309 } 309 }
310 buildCounterCondition--; 310 buildCounterCondition--;
311 return o; 311 return o;
312 } 312 }
313 313
314 checkCondition(api.Condition o) { 314 checkCondition(api.Condition o) {
315 buildCounterCondition++; 315 buildCounterCondition++;
316 if (buildCounterCondition < 3) { 316 if (buildCounterCondition < 3) {
317 unittest.expect(o.iam, unittest.equals('foo')); 317 unittest.expect(o.iam, unittest.equals('foo'));
318 unittest.expect(o.op, unittest.equals('foo')); 318 unittest.expect(o.op, unittest.equals('foo'));
319 unittest.expect(o.svc, unittest.equals('foo')); 319 unittest.expect(o.svc, unittest.equals('foo'));
320 unittest.expect(o.sys, unittest.equals('foo')); 320 unittest.expect(o.sys, unittest.equals('foo'));
321 unittest.expect(o.value, unittest.equals('foo')); 321 unittest.expect(o.value, unittest.equals('foo'));
322 checkUnnamed1774(o.values); 322 checkUnnamed1878(o.values);
323 } 323 }
324 buildCounterCondition--; 324 buildCounterCondition--;
325 } 325 }
326 326
327 core.int buildCounterCounterOptions = 0; 327 core.int buildCounterCounterOptions = 0;
328 buildCounterOptions() { 328 buildCounterOptions() {
329 var o = new api.CounterOptions(); 329 var o = new api.CounterOptions();
330 buildCounterCounterOptions++; 330 buildCounterCounterOptions++;
331 if (buildCounterCounterOptions < 3) { 331 if (buildCounterCounterOptions < 3) {
332 o.field = "foo"; 332 o.field = "foo";
(...skipping 24 matching lines...) Expand all
357 } 357 }
358 358
359 checkCreateDatabaseMetadata(api.CreateDatabaseMetadata o) { 359 checkCreateDatabaseMetadata(api.CreateDatabaseMetadata o) {
360 buildCounterCreateDatabaseMetadata++; 360 buildCounterCreateDatabaseMetadata++;
361 if (buildCounterCreateDatabaseMetadata < 3) { 361 if (buildCounterCreateDatabaseMetadata < 3) {
362 unittest.expect(o.database, unittest.equals('foo')); 362 unittest.expect(o.database, unittest.equals('foo'));
363 } 363 }
364 buildCounterCreateDatabaseMetadata--; 364 buildCounterCreateDatabaseMetadata--;
365 } 365 }
366 366
367 buildUnnamed1775() { 367 buildUnnamed1879() {
368 var o = new core.List<core.String>(); 368 var o = new core.List<core.String>();
369 o.add("foo"); 369 o.add("foo");
370 o.add("foo"); 370 o.add("foo");
371 return o; 371 return o;
372 } 372 }
373 373
374 checkUnnamed1775(core.List<core.String> o) { 374 checkUnnamed1879(core.List<core.String> o) {
375 unittest.expect(o, unittest.hasLength(2)); 375 unittest.expect(o, unittest.hasLength(2));
376 unittest.expect(o[0], unittest.equals('foo')); 376 unittest.expect(o[0], unittest.equals('foo'));
377 unittest.expect(o[1], unittest.equals('foo')); 377 unittest.expect(o[1], unittest.equals('foo'));
378 } 378 }
379 379
380 core.int buildCounterCreateDatabaseRequest = 0; 380 core.int buildCounterCreateDatabaseRequest = 0;
381 buildCreateDatabaseRequest() { 381 buildCreateDatabaseRequest() {
382 var o = new api.CreateDatabaseRequest(); 382 var o = new api.CreateDatabaseRequest();
383 buildCounterCreateDatabaseRequest++; 383 buildCounterCreateDatabaseRequest++;
384 if (buildCounterCreateDatabaseRequest < 3) { 384 if (buildCounterCreateDatabaseRequest < 3) {
385 o.createStatement = "foo"; 385 o.createStatement = "foo";
386 o.extraStatements = buildUnnamed1775(); 386 o.extraStatements = buildUnnamed1879();
387 } 387 }
388 buildCounterCreateDatabaseRequest--; 388 buildCounterCreateDatabaseRequest--;
389 return o; 389 return o;
390 } 390 }
391 391
392 checkCreateDatabaseRequest(api.CreateDatabaseRequest o) { 392 checkCreateDatabaseRequest(api.CreateDatabaseRequest o) {
393 buildCounterCreateDatabaseRequest++; 393 buildCounterCreateDatabaseRequest++;
394 if (buildCounterCreateDatabaseRequest < 3) { 394 if (buildCounterCreateDatabaseRequest < 3) {
395 unittest.expect(o.createStatement, unittest.equals('foo')); 395 unittest.expect(o.createStatement, unittest.equals('foo'));
396 checkUnnamed1775(o.extraStatements); 396 checkUnnamed1879(o.extraStatements);
397 } 397 }
398 buildCounterCreateDatabaseRequest--; 398 buildCounterCreateDatabaseRequest--;
399 } 399 }
400 400
401 core.int buildCounterCreateInstanceMetadata = 0; 401 core.int buildCounterCreateInstanceMetadata = 0;
402 buildCreateInstanceMetadata() { 402 buildCreateInstanceMetadata() {
403 var o = new api.CreateInstanceMetadata(); 403 var o = new api.CreateInstanceMetadata();
404 buildCounterCreateInstanceMetadata++; 404 buildCounterCreateInstanceMetadata++;
405 if (buildCounterCreateInstanceMetadata < 3) { 405 if (buildCounterCreateInstanceMetadata < 3) {
406 o.cancelTime = "foo"; 406 o.cancelTime = "foo";
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 return o; 513 return o;
514 } 514 }
515 515
516 checkEmpty(api.Empty o) { 516 checkEmpty(api.Empty o) {
517 buildCounterEmpty++; 517 buildCounterEmpty++;
518 if (buildCounterEmpty < 3) { 518 if (buildCounterEmpty < 3) {
519 } 519 }
520 buildCounterEmpty--; 520 buildCounterEmpty--;
521 } 521 }
522 522
523 buildUnnamed1776() { 523 buildUnnamed1880() {
524 var o = new core.Map<core.String, api.Type>(); 524 var o = new core.Map<core.String, api.Type>();
525 o["x"] = buildType(); 525 o["x"] = buildType();
526 o["y"] = buildType(); 526 o["y"] = buildType();
527 return o; 527 return o;
528 } 528 }
529 529
530 checkUnnamed1776(core.Map<core.String, api.Type> o) { 530 checkUnnamed1880(core.Map<core.String, api.Type> o) {
531 unittest.expect(o, unittest.hasLength(2)); 531 unittest.expect(o, unittest.hasLength(2));
532 checkType(o["x"]); 532 checkType(o["x"]);
533 checkType(o["y"]); 533 checkType(o["y"]);
534 } 534 }
535 535
536 buildUnnamed1777() { 536 buildUnnamed1881() {
537 var o = new core.Map<core.String, core.Object>(); 537 var o = new core.Map<core.String, core.Object>();
538 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 538 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
539 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 539 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
540 return o; 540 return o;
541 } 541 }
542 542
543 checkUnnamed1777(core.Map<core.String, core.Object> o) { 543 checkUnnamed1881(core.Map<core.String, core.Object> o) {
544 unittest.expect(o, unittest.hasLength(2)); 544 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')); 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'));
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')); 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'));
547 } 547 }
548 548
549 core.int buildCounterExecuteSqlRequest = 0; 549 core.int buildCounterExecuteSqlRequest = 0;
550 buildExecuteSqlRequest() { 550 buildExecuteSqlRequest() {
551 var o = new api.ExecuteSqlRequest(); 551 var o = new api.ExecuteSqlRequest();
552 buildCounterExecuteSqlRequest++; 552 buildCounterExecuteSqlRequest++;
553 if (buildCounterExecuteSqlRequest < 3) { 553 if (buildCounterExecuteSqlRequest < 3) {
554 o.paramTypes = buildUnnamed1776(); 554 o.paramTypes = buildUnnamed1880();
555 o.params = buildUnnamed1777(); 555 o.params = buildUnnamed1881();
556 o.queryMode = "foo"; 556 o.queryMode = "foo";
557 o.resumeToken = "foo"; 557 o.resumeToken = "foo";
558 o.sql = "foo"; 558 o.sql = "foo";
559 o.transaction = buildTransactionSelector(); 559 o.transaction = buildTransactionSelector();
560 } 560 }
561 buildCounterExecuteSqlRequest--; 561 buildCounterExecuteSqlRequest--;
562 return o; 562 return o;
563 } 563 }
564 564
565 checkExecuteSqlRequest(api.ExecuteSqlRequest o) { 565 checkExecuteSqlRequest(api.ExecuteSqlRequest o) {
566 buildCounterExecuteSqlRequest++; 566 buildCounterExecuteSqlRequest++;
567 if (buildCounterExecuteSqlRequest < 3) { 567 if (buildCounterExecuteSqlRequest < 3) {
568 checkUnnamed1776(o.paramTypes); 568 checkUnnamed1880(o.paramTypes);
569 checkUnnamed1777(o.params); 569 checkUnnamed1881(o.params);
570 unittest.expect(o.queryMode, unittest.equals('foo')); 570 unittest.expect(o.queryMode, unittest.equals('foo'));
571 unittest.expect(o.resumeToken, unittest.equals('foo')); 571 unittest.expect(o.resumeToken, unittest.equals('foo'));
572 unittest.expect(o.sql, unittest.equals('foo')); 572 unittest.expect(o.sql, unittest.equals('foo'));
573 checkTransactionSelector(o.transaction); 573 checkTransactionSelector(o.transaction);
574 } 574 }
575 buildCounterExecuteSqlRequest--; 575 buildCounterExecuteSqlRequest--;
576 } 576 }
577 577
578 core.int buildCounterField = 0; 578 core.int buildCounterField = 0;
579 buildField() { 579 buildField() {
580 var o = new api.Field(); 580 var o = new api.Field();
581 buildCounterField++; 581 buildCounterField++;
582 if (buildCounterField < 3) { 582 if (buildCounterField < 3) {
583 o.name = "foo"; 583 o.name = "foo";
584 o.type = buildType(); 584 o.type = buildType();
585 } 585 }
586 buildCounterField--; 586 buildCounterField--;
587 return o; 587 return o;
588 } 588 }
589 589
590 checkField(api.Field o) { 590 checkField(api.Field o) {
591 buildCounterField++; 591 buildCounterField++;
592 if (buildCounterField < 3) { 592 if (buildCounterField < 3) {
593 unittest.expect(o.name, unittest.equals('foo')); 593 unittest.expect(o.name, unittest.equals('foo'));
594 checkType(o.type); 594 checkType(o.type);
595 } 595 }
596 buildCounterField--; 596 buildCounterField--;
597 } 597 }
598 598
599 buildUnnamed1778() { 599 buildUnnamed1882() {
600 var o = new core.List<core.String>(); 600 var o = new core.List<core.String>();
601 o.add("foo"); 601 o.add("foo");
602 o.add("foo"); 602 o.add("foo");
603 return o; 603 return o;
604 } 604 }
605 605
606 checkUnnamed1778(core.List<core.String> o) { 606 checkUnnamed1882(core.List<core.String> o) {
607 unittest.expect(o, unittest.hasLength(2)); 607 unittest.expect(o, unittest.hasLength(2));
608 unittest.expect(o[0], unittest.equals('foo')); 608 unittest.expect(o[0], unittest.equals('foo'));
609 unittest.expect(o[1], unittest.equals('foo')); 609 unittest.expect(o[1], unittest.equals('foo'));
610 } 610 }
611 611
612 core.int buildCounterGetDatabaseDdlResponse = 0; 612 core.int buildCounterGetDatabaseDdlResponse = 0;
613 buildGetDatabaseDdlResponse() { 613 buildGetDatabaseDdlResponse() {
614 var o = new api.GetDatabaseDdlResponse(); 614 var o = new api.GetDatabaseDdlResponse();
615 buildCounterGetDatabaseDdlResponse++; 615 buildCounterGetDatabaseDdlResponse++;
616 if (buildCounterGetDatabaseDdlResponse < 3) { 616 if (buildCounterGetDatabaseDdlResponse < 3) {
617 o.statements = buildUnnamed1778(); 617 o.statements = buildUnnamed1882();
618 } 618 }
619 buildCounterGetDatabaseDdlResponse--; 619 buildCounterGetDatabaseDdlResponse--;
620 return o; 620 return o;
621 } 621 }
622 622
623 checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { 623 checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) {
624 buildCounterGetDatabaseDdlResponse++; 624 buildCounterGetDatabaseDdlResponse++;
625 if (buildCounterGetDatabaseDdlResponse < 3) { 625 if (buildCounterGetDatabaseDdlResponse < 3) {
626 checkUnnamed1778(o.statements); 626 checkUnnamed1882(o.statements);
627 } 627 }
628 buildCounterGetDatabaseDdlResponse--; 628 buildCounterGetDatabaseDdlResponse--;
629 } 629 }
630 630
631 core.int buildCounterGetIamPolicyRequest = 0; 631 core.int buildCounterGetIamPolicyRequest = 0;
632 buildGetIamPolicyRequest() { 632 buildGetIamPolicyRequest() {
633 var o = new api.GetIamPolicyRequest(); 633 var o = new api.GetIamPolicyRequest();
634 buildCounterGetIamPolicyRequest++; 634 buildCounterGetIamPolicyRequest++;
635 if (buildCounterGetIamPolicyRequest < 3) { 635 if (buildCounterGetIamPolicyRequest < 3) {
636 } 636 }
637 buildCounterGetIamPolicyRequest--; 637 buildCounterGetIamPolicyRequest--;
638 return o; 638 return o;
639 } 639 }
640 640
641 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { 641 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
642 buildCounterGetIamPolicyRequest++; 642 buildCounterGetIamPolicyRequest++;
643 if (buildCounterGetIamPolicyRequest < 3) { 643 if (buildCounterGetIamPolicyRequest < 3) {
644 } 644 }
645 buildCounterGetIamPolicyRequest--; 645 buildCounterGetIamPolicyRequest--;
646 } 646 }
647 647
648 buildUnnamed1779() { 648 buildUnnamed1883() {
649 var o = new core.Map<core.String, core.String>(); 649 var o = new core.Map<core.String, core.String>();
650 o["x"] = "foo"; 650 o["x"] = "foo";
651 o["y"] = "foo"; 651 o["y"] = "foo";
652 return o; 652 return o;
653 } 653 }
654 654
655 checkUnnamed1779(core.Map<core.String, core.String> o) { 655 checkUnnamed1883(core.Map<core.String, core.String> o) {
656 unittest.expect(o, unittest.hasLength(2)); 656 unittest.expect(o, unittest.hasLength(2));
657 unittest.expect(o["x"], unittest.equals('foo')); 657 unittest.expect(o["x"], unittest.equals('foo'));
658 unittest.expect(o["y"], unittest.equals('foo')); 658 unittest.expect(o["y"], unittest.equals('foo'));
659 } 659 }
660 660
661 core.int buildCounterInstance = 0; 661 core.int buildCounterInstance = 0;
662 buildInstance() { 662 buildInstance() {
663 var o = new api.Instance(); 663 var o = new api.Instance();
664 buildCounterInstance++; 664 buildCounterInstance++;
665 if (buildCounterInstance < 3) { 665 if (buildCounterInstance < 3) {
666 o.config = "foo"; 666 o.config = "foo";
667 o.displayName = "foo"; 667 o.displayName = "foo";
668 o.labels = buildUnnamed1779(); 668 o.labels = buildUnnamed1883();
669 o.name = "foo"; 669 o.name = "foo";
670 o.nodeCount = 42; 670 o.nodeCount = 42;
671 o.state = "foo"; 671 o.state = "foo";
672 } 672 }
673 buildCounterInstance--; 673 buildCounterInstance--;
674 return o; 674 return o;
675 } 675 }
676 676
677 checkInstance(api.Instance o) { 677 checkInstance(api.Instance o) {
678 buildCounterInstance++; 678 buildCounterInstance++;
679 if (buildCounterInstance < 3) { 679 if (buildCounterInstance < 3) {
680 unittest.expect(o.config, unittest.equals('foo')); 680 unittest.expect(o.config, unittest.equals('foo'));
681 unittest.expect(o.displayName, unittest.equals('foo')); 681 unittest.expect(o.displayName, unittest.equals('foo'));
682 checkUnnamed1779(o.labels); 682 checkUnnamed1883(o.labels);
683 unittest.expect(o.name, unittest.equals('foo')); 683 unittest.expect(o.name, unittest.equals('foo'));
684 unittest.expect(o.nodeCount, unittest.equals(42)); 684 unittest.expect(o.nodeCount, unittest.equals(42));
685 unittest.expect(o.state, unittest.equals('foo')); 685 unittest.expect(o.state, unittest.equals('foo'));
686 } 686 }
687 buildCounterInstance--; 687 buildCounterInstance--;
688 } 688 }
689 689
690 core.int buildCounterInstanceConfig = 0; 690 core.int buildCounterInstanceConfig = 0;
691 buildInstanceConfig() { 691 buildInstanceConfig() {
692 var o = new api.InstanceConfig(); 692 var o = new api.InstanceConfig();
693 buildCounterInstanceConfig++; 693 buildCounterInstanceConfig++;
694 if (buildCounterInstanceConfig < 3) { 694 if (buildCounterInstanceConfig < 3) {
695 o.displayName = "foo"; 695 o.displayName = "foo";
696 o.name = "foo"; 696 o.name = "foo";
697 } 697 }
698 buildCounterInstanceConfig--; 698 buildCounterInstanceConfig--;
699 return o; 699 return o;
700 } 700 }
701 701
702 checkInstanceConfig(api.InstanceConfig o) { 702 checkInstanceConfig(api.InstanceConfig o) {
703 buildCounterInstanceConfig++; 703 buildCounterInstanceConfig++;
704 if (buildCounterInstanceConfig < 3) { 704 if (buildCounterInstanceConfig < 3) {
705 unittest.expect(o.displayName, unittest.equals('foo')); 705 unittest.expect(o.displayName, unittest.equals('foo'));
706 unittest.expect(o.name, unittest.equals('foo')); 706 unittest.expect(o.name, unittest.equals('foo'));
707 } 707 }
708 buildCounterInstanceConfig--; 708 buildCounterInstanceConfig--;
709 } 709 }
710 710
711 buildUnnamed1780() { 711 buildUnnamed1884() {
712 var o = new core.List<core.Object>(); 712 var o = new core.List<core.Object>();
713 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 713 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
714 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 714 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
715 return o; 715 return o;
716 } 716 }
717 717
718 checkUnnamed1780(core.List<core.Object> o) { 718 checkUnnamed1884(core.List<core.Object> o) {
719 unittest.expect(o, unittest.hasLength(2)); 719 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')); 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'));
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')); 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'));
722 } 722 }
723 723
724 buildUnnamed1781() { 724 buildUnnamed1885() {
725 var o = new core.List<core.Object>(); 725 var o = new core.List<core.Object>();
726 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 726 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
727 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 727 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
728 return o; 728 return o;
729 } 729 }
730 730
731 checkUnnamed1781(core.List<core.Object> o) { 731 checkUnnamed1885(core.List<core.Object> o) {
732 unittest.expect(o, unittest.hasLength(2)); 732 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')); 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'));
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')); 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'));
735 } 735 }
736 736
737 buildUnnamed1782() { 737 buildUnnamed1886() {
738 var o = new core.List<core.Object>(); 738 var o = new core.List<core.Object>();
739 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 739 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
740 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 740 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
741 return o; 741 return o;
742 } 742 }
743 743
744 checkUnnamed1782(core.List<core.Object> o) { 744 checkUnnamed1886(core.List<core.Object> o) {
745 unittest.expect(o, unittest.hasLength(2)); 745 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')); 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'));
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')); 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'));
748 } 748 }
749 749
750 buildUnnamed1783() { 750 buildUnnamed1887() {
751 var o = new core.List<core.Object>(); 751 var o = new core.List<core.Object>();
752 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 752 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
753 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 753 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
754 return o; 754 return o;
755 } 755 }
756 756
757 checkUnnamed1783(core.List<core.Object> o) { 757 checkUnnamed1887(core.List<core.Object> o) {
758 unittest.expect(o, unittest.hasLength(2)); 758 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')); 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'));
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')); 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'));
761 } 761 }
762 762
763 core.int buildCounterKeyRange = 0; 763 core.int buildCounterKeyRange = 0;
764 buildKeyRange() { 764 buildKeyRange() {
765 var o = new api.KeyRange(); 765 var o = new api.KeyRange();
766 buildCounterKeyRange++; 766 buildCounterKeyRange++;
767 if (buildCounterKeyRange < 3) { 767 if (buildCounterKeyRange < 3) {
768 o.endClosed = buildUnnamed1780(); 768 o.endClosed = buildUnnamed1884();
769 o.endOpen = buildUnnamed1781(); 769 o.endOpen = buildUnnamed1885();
770 o.startClosed = buildUnnamed1782(); 770 o.startClosed = buildUnnamed1886();
771 o.startOpen = buildUnnamed1783(); 771 o.startOpen = buildUnnamed1887();
772 } 772 }
773 buildCounterKeyRange--; 773 buildCounterKeyRange--;
774 return o; 774 return o;
775 } 775 }
776 776
777 checkKeyRange(api.KeyRange o) { 777 checkKeyRange(api.KeyRange o) {
778 buildCounterKeyRange++; 778 buildCounterKeyRange++;
779 if (buildCounterKeyRange < 3) { 779 if (buildCounterKeyRange < 3) {
780 checkUnnamed1780(o.endClosed); 780 checkUnnamed1884(o.endClosed);
781 checkUnnamed1781(o.endOpen); 781 checkUnnamed1885(o.endOpen);
782 checkUnnamed1782(o.startClosed); 782 checkUnnamed1886(o.startClosed);
783 checkUnnamed1783(o.startOpen); 783 checkUnnamed1887(o.startOpen);
784 } 784 }
785 buildCounterKeyRange--; 785 buildCounterKeyRange--;
786 } 786 }
787 787
788 buildUnnamed1784() { 788 buildUnnamed1888() {
789 var o = new core.List<core.Object>(); 789 var o = new core.List<core.Object>();
790 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 790 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
791 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 791 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
792 return o; 792 return o;
793 } 793 }
794 794
795 checkUnnamed1784(core.List<core.Object> o) { 795 checkUnnamed1888(core.List<core.Object> o) {
796 unittest.expect(o, unittest.hasLength(2)); 796 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')); 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'));
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')); 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'));
799 } 799 }
800 800
801 buildUnnamed1785() { 801 buildUnnamed1889() {
802 var o = new core.List<core.List<core.Object>>(); 802 var o = new core.List<core.List<core.Object>>();
803 o.add(buildUnnamed1784()); 803 o.add(buildUnnamed1888());
804 o.add(buildUnnamed1784()); 804 o.add(buildUnnamed1888());
805 return o; 805 return o;
806 } 806 }
807 807
808 checkUnnamed1785(core.List<core.List<core.Object>> o) { 808 checkUnnamed1889(core.List<core.List<core.Object>> o) {
809 unittest.expect(o, unittest.hasLength(2)); 809 unittest.expect(o, unittest.hasLength(2));
810 checkUnnamed1784(o[0]); 810 checkUnnamed1888(o[0]);
811 checkUnnamed1784(o[1]); 811 checkUnnamed1888(o[1]);
812 } 812 }
813 813
814 buildUnnamed1786() { 814 buildUnnamed1890() {
815 var o = new core.List<api.KeyRange>(); 815 var o = new core.List<api.KeyRange>();
816 o.add(buildKeyRange()); 816 o.add(buildKeyRange());
817 o.add(buildKeyRange()); 817 o.add(buildKeyRange());
818 return o; 818 return o;
819 } 819 }
820 820
821 checkUnnamed1786(core.List<api.KeyRange> o) { 821 checkUnnamed1890(core.List<api.KeyRange> o) {
822 unittest.expect(o, unittest.hasLength(2)); 822 unittest.expect(o, unittest.hasLength(2));
823 checkKeyRange(o[0]); 823 checkKeyRange(o[0]);
824 checkKeyRange(o[1]); 824 checkKeyRange(o[1]);
825 } 825 }
826 826
827 core.int buildCounterKeySet = 0; 827 core.int buildCounterKeySet = 0;
828 buildKeySet() { 828 buildKeySet() {
829 var o = new api.KeySet(); 829 var o = new api.KeySet();
830 buildCounterKeySet++; 830 buildCounterKeySet++;
831 if (buildCounterKeySet < 3) { 831 if (buildCounterKeySet < 3) {
832 o.all = true; 832 o.all = true;
833 o.keys = buildUnnamed1785(); 833 o.keys = buildUnnamed1889();
834 o.ranges = buildUnnamed1786(); 834 o.ranges = buildUnnamed1890();
835 } 835 }
836 buildCounterKeySet--; 836 buildCounterKeySet--;
837 return o; 837 return o;
838 } 838 }
839 839
840 checkKeySet(api.KeySet o) { 840 checkKeySet(api.KeySet o) {
841 buildCounterKeySet++; 841 buildCounterKeySet++;
842 if (buildCounterKeySet < 3) { 842 if (buildCounterKeySet < 3) {
843 unittest.expect(o.all, unittest.isTrue); 843 unittest.expect(o.all, unittest.isTrue);
844 checkUnnamed1785(o.keys); 844 checkUnnamed1889(o.keys);
845 checkUnnamed1786(o.ranges); 845 checkUnnamed1890(o.ranges);
846 } 846 }
847 buildCounterKeySet--; 847 buildCounterKeySet--;
848 } 848 }
849 849
850 buildUnnamed1787() { 850 buildUnnamed1891() {
851 var o = new core.List<api.Database>(); 851 var o = new core.List<api.Database>();
852 o.add(buildDatabase()); 852 o.add(buildDatabase());
853 o.add(buildDatabase()); 853 o.add(buildDatabase());
854 return o; 854 return o;
855 } 855 }
856 856
857 checkUnnamed1787(core.List<api.Database> o) { 857 checkUnnamed1891(core.List<api.Database> o) {
858 unittest.expect(o, unittest.hasLength(2)); 858 unittest.expect(o, unittest.hasLength(2));
859 checkDatabase(o[0]); 859 checkDatabase(o[0]);
860 checkDatabase(o[1]); 860 checkDatabase(o[1]);
861 } 861 }
862 862
863 core.int buildCounterListDatabasesResponse = 0; 863 core.int buildCounterListDatabasesResponse = 0;
864 buildListDatabasesResponse() { 864 buildListDatabasesResponse() {
865 var o = new api.ListDatabasesResponse(); 865 var o = new api.ListDatabasesResponse();
866 buildCounterListDatabasesResponse++; 866 buildCounterListDatabasesResponse++;
867 if (buildCounterListDatabasesResponse < 3) { 867 if (buildCounterListDatabasesResponse < 3) {
868 o.databases = buildUnnamed1787(); 868 o.databases = buildUnnamed1891();
869 o.nextPageToken = "foo"; 869 o.nextPageToken = "foo";
870 } 870 }
871 buildCounterListDatabasesResponse--; 871 buildCounterListDatabasesResponse--;
872 return o; 872 return o;
873 } 873 }
874 874
875 checkListDatabasesResponse(api.ListDatabasesResponse o) { 875 checkListDatabasesResponse(api.ListDatabasesResponse o) {
876 buildCounterListDatabasesResponse++; 876 buildCounterListDatabasesResponse++;
877 if (buildCounterListDatabasesResponse < 3) { 877 if (buildCounterListDatabasesResponse < 3) {
878 checkUnnamed1787(o.databases); 878 checkUnnamed1891(o.databases);
879 unittest.expect(o.nextPageToken, unittest.equals('foo')); 879 unittest.expect(o.nextPageToken, unittest.equals('foo'));
880 } 880 }
881 buildCounterListDatabasesResponse--; 881 buildCounterListDatabasesResponse--;
882 } 882 }
883 883
884 buildUnnamed1788() { 884 buildUnnamed1892() {
885 var o = new core.List<api.InstanceConfig>(); 885 var o = new core.List<api.InstanceConfig>();
886 o.add(buildInstanceConfig()); 886 o.add(buildInstanceConfig());
887 o.add(buildInstanceConfig()); 887 o.add(buildInstanceConfig());
888 return o; 888 return o;
889 } 889 }
890 890
891 checkUnnamed1788(core.List<api.InstanceConfig> o) { 891 checkUnnamed1892(core.List<api.InstanceConfig> o) {
892 unittest.expect(o, unittest.hasLength(2)); 892 unittest.expect(o, unittest.hasLength(2));
893 checkInstanceConfig(o[0]); 893 checkInstanceConfig(o[0]);
894 checkInstanceConfig(o[1]); 894 checkInstanceConfig(o[1]);
895 } 895 }
896 896
897 core.int buildCounterListInstanceConfigsResponse = 0; 897 core.int buildCounterListInstanceConfigsResponse = 0;
898 buildListInstanceConfigsResponse() { 898 buildListInstanceConfigsResponse() {
899 var o = new api.ListInstanceConfigsResponse(); 899 var o = new api.ListInstanceConfigsResponse();
900 buildCounterListInstanceConfigsResponse++; 900 buildCounterListInstanceConfigsResponse++;
901 if (buildCounterListInstanceConfigsResponse < 3) { 901 if (buildCounterListInstanceConfigsResponse < 3) {
902 o.instanceConfigs = buildUnnamed1788(); 902 o.instanceConfigs = buildUnnamed1892();
903 o.nextPageToken = "foo"; 903 o.nextPageToken = "foo";
904 } 904 }
905 buildCounterListInstanceConfigsResponse--; 905 buildCounterListInstanceConfigsResponse--;
906 return o; 906 return o;
907 } 907 }
908 908
909 checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { 909 checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) {
910 buildCounterListInstanceConfigsResponse++; 910 buildCounterListInstanceConfigsResponse++;
911 if (buildCounterListInstanceConfigsResponse < 3) { 911 if (buildCounterListInstanceConfigsResponse < 3) {
912 checkUnnamed1788(o.instanceConfigs); 912 checkUnnamed1892(o.instanceConfigs);
913 unittest.expect(o.nextPageToken, unittest.equals('foo')); 913 unittest.expect(o.nextPageToken, unittest.equals('foo'));
914 } 914 }
915 buildCounterListInstanceConfigsResponse--; 915 buildCounterListInstanceConfigsResponse--;
916 } 916 }
917 917
918 buildUnnamed1789() { 918 buildUnnamed1893() {
919 var o = new core.List<api.Instance>(); 919 var o = new core.List<api.Instance>();
920 o.add(buildInstance()); 920 o.add(buildInstance());
921 o.add(buildInstance()); 921 o.add(buildInstance());
922 return o; 922 return o;
923 } 923 }
924 924
925 checkUnnamed1789(core.List<api.Instance> o) { 925 checkUnnamed1893(core.List<api.Instance> o) {
926 unittest.expect(o, unittest.hasLength(2)); 926 unittest.expect(o, unittest.hasLength(2));
927 checkInstance(o[0]); 927 checkInstance(o[0]);
928 checkInstance(o[1]); 928 checkInstance(o[1]);
929 } 929 }
930 930
931 core.int buildCounterListInstancesResponse = 0; 931 core.int buildCounterListInstancesResponse = 0;
932 buildListInstancesResponse() { 932 buildListInstancesResponse() {
933 var o = new api.ListInstancesResponse(); 933 var o = new api.ListInstancesResponse();
934 buildCounterListInstancesResponse++; 934 buildCounterListInstancesResponse++;
935 if (buildCounterListInstancesResponse < 3) { 935 if (buildCounterListInstancesResponse < 3) {
936 o.instances = buildUnnamed1789(); 936 o.instances = buildUnnamed1893();
937 o.nextPageToken = "foo"; 937 o.nextPageToken = "foo";
938 } 938 }
939 buildCounterListInstancesResponse--; 939 buildCounterListInstancesResponse--;
940 return o; 940 return o;
941 } 941 }
942 942
943 checkListInstancesResponse(api.ListInstancesResponse o) { 943 checkListInstancesResponse(api.ListInstancesResponse o) {
944 buildCounterListInstancesResponse++; 944 buildCounterListInstancesResponse++;
945 if (buildCounterListInstancesResponse < 3) { 945 if (buildCounterListInstancesResponse < 3) {
946 checkUnnamed1789(o.instances); 946 checkUnnamed1893(o.instances);
947 unittest.expect(o.nextPageToken, unittest.equals('foo')); 947 unittest.expect(o.nextPageToken, unittest.equals('foo'));
948 } 948 }
949 buildCounterListInstancesResponse--; 949 buildCounterListInstancesResponse--;
950 } 950 }
951 951
952 buildUnnamed1790() { 952 buildUnnamed1894() {
953 var o = new core.List<api.Operation>(); 953 var o = new core.List<api.Operation>();
954 o.add(buildOperation()); 954 o.add(buildOperation());
955 o.add(buildOperation()); 955 o.add(buildOperation());
956 return o; 956 return o;
957 } 957 }
958 958
959 checkUnnamed1790(core.List<api.Operation> o) { 959 checkUnnamed1894(core.List<api.Operation> o) {
960 unittest.expect(o, unittest.hasLength(2)); 960 unittest.expect(o, unittest.hasLength(2));
961 checkOperation(o[0]); 961 checkOperation(o[0]);
962 checkOperation(o[1]); 962 checkOperation(o[1]);
963 } 963 }
964 964
965 core.int buildCounterListOperationsResponse = 0; 965 core.int buildCounterListOperationsResponse = 0;
966 buildListOperationsResponse() { 966 buildListOperationsResponse() {
967 var o = new api.ListOperationsResponse(); 967 var o = new api.ListOperationsResponse();
968 buildCounterListOperationsResponse++; 968 buildCounterListOperationsResponse++;
969 if (buildCounterListOperationsResponse < 3) { 969 if (buildCounterListOperationsResponse < 3) {
970 o.nextPageToken = "foo"; 970 o.nextPageToken = "foo";
971 o.operations = buildUnnamed1790(); 971 o.operations = buildUnnamed1894();
972 } 972 }
973 buildCounterListOperationsResponse--; 973 buildCounterListOperationsResponse--;
974 return o; 974 return o;
975 } 975 }
976 976
977 checkListOperationsResponse(api.ListOperationsResponse o) { 977 checkListOperationsResponse(api.ListOperationsResponse o) {
978 buildCounterListOperationsResponse++; 978 buildCounterListOperationsResponse++;
979 if (buildCounterListOperationsResponse < 3) { 979 if (buildCounterListOperationsResponse < 3) {
980 unittest.expect(o.nextPageToken, unittest.equals('foo')); 980 unittest.expect(o.nextPageToken, unittest.equals('foo'));
981 checkUnnamed1790(o.operations); 981 checkUnnamed1894(o.operations);
982 } 982 }
983 buildCounterListOperationsResponse--; 983 buildCounterListOperationsResponse--;
984 } 984 }
985 985
986 core.int buildCounterLogConfig = 0; 986 core.int buildCounterLogConfig = 0;
987 buildLogConfig() { 987 buildLogConfig() {
988 var o = new api.LogConfig(); 988 var o = new api.LogConfig();
989 buildCounterLogConfig++; 989 buildCounterLogConfig++;
990 if (buildCounterLogConfig < 3) { 990 if (buildCounterLogConfig < 3) {
991 o.cloudAudit = buildCloudAuditOptions(); 991 o.cloudAudit = buildCloudAuditOptions();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 if (buildCounterMutation < 3) { 1026 if (buildCounterMutation < 3) {
1027 checkDelete(o.delete); 1027 checkDelete(o.delete);
1028 checkWrite(o.insert); 1028 checkWrite(o.insert);
1029 checkWrite(o.insertOrUpdate); 1029 checkWrite(o.insertOrUpdate);
1030 checkWrite(o.replace); 1030 checkWrite(o.replace);
1031 checkWrite(o.update); 1031 checkWrite(o.update);
1032 } 1032 }
1033 buildCounterMutation--; 1033 buildCounterMutation--;
1034 } 1034 }
1035 1035
1036 buildUnnamed1791() { 1036 buildUnnamed1895() {
1037 var o = new core.Map<core.String, core.Object>(); 1037 var o = new core.Map<core.String, core.Object>();
1038 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1038 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1039 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1039 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1040 return o; 1040 return o;
1041 } 1041 }
1042 1042
1043 checkUnnamed1791(core.Map<core.String, core.Object> o) { 1043 checkUnnamed1895(core.Map<core.String, core.Object> o) {
1044 unittest.expect(o, unittest.hasLength(2)); 1044 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')); 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'));
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')); 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'));
1047 } 1047 }
1048 1048
1049 buildUnnamed1792() { 1049 buildUnnamed1896() {
1050 var o = new core.Map<core.String, core.Object>(); 1050 var o = new core.Map<core.String, core.Object>();
1051 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1051 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1052 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1052 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1053 return o; 1053 return o;
1054 } 1054 }
1055 1055
1056 checkUnnamed1792(core.Map<core.String, core.Object> o) { 1056 checkUnnamed1896(core.Map<core.String, core.Object> o) {
1057 unittest.expect(o, unittest.hasLength(2)); 1057 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')); 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'));
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')); 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'));
1060 } 1060 }
1061 1061
1062 core.int buildCounterOperation = 0; 1062 core.int buildCounterOperation = 0;
1063 buildOperation() { 1063 buildOperation() {
1064 var o = new api.Operation(); 1064 var o = new api.Operation();
1065 buildCounterOperation++; 1065 buildCounterOperation++;
1066 if (buildCounterOperation < 3) { 1066 if (buildCounterOperation < 3) {
1067 o.done = true; 1067 o.done = true;
1068 o.error = buildStatus(); 1068 o.error = buildStatus();
1069 o.metadata = buildUnnamed1791(); 1069 o.metadata = buildUnnamed1895();
1070 o.name = "foo"; 1070 o.name = "foo";
1071 o.response = buildUnnamed1792(); 1071 o.response = buildUnnamed1896();
1072 } 1072 }
1073 buildCounterOperation--; 1073 buildCounterOperation--;
1074 return o; 1074 return o;
1075 } 1075 }
1076 1076
1077 checkOperation(api.Operation o) { 1077 checkOperation(api.Operation o) {
1078 buildCounterOperation++; 1078 buildCounterOperation++;
1079 if (buildCounterOperation < 3) { 1079 if (buildCounterOperation < 3) {
1080 unittest.expect(o.done, unittest.isTrue); 1080 unittest.expect(o.done, unittest.isTrue);
1081 checkStatus(o.error); 1081 checkStatus(o.error);
1082 checkUnnamed1791(o.metadata); 1082 checkUnnamed1895(o.metadata);
1083 unittest.expect(o.name, unittest.equals('foo')); 1083 unittest.expect(o.name, unittest.equals('foo'));
1084 checkUnnamed1792(o.response); 1084 checkUnnamed1896(o.response);
1085 } 1085 }
1086 buildCounterOperation--; 1086 buildCounterOperation--;
1087 } 1087 }
1088 1088
1089 buildUnnamed1793() { 1089 buildUnnamed1897() {
1090 var o = new core.List<core.Object>(); 1090 var o = new core.List<core.Object>();
1091 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1091 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1092 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1092 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1093 return o; 1093 return o;
1094 } 1094 }
1095 1095
1096 checkUnnamed1793(core.List<core.Object> o) { 1096 checkUnnamed1897(core.List<core.Object> o) {
1097 unittest.expect(o, unittest.hasLength(2)); 1097 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')); 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'));
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')); 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'));
1100 } 1100 }
1101 1101
1102 core.int buildCounterPartialResultSet = 0; 1102 core.int buildCounterPartialResultSet = 0;
1103 buildPartialResultSet() { 1103 buildPartialResultSet() {
1104 var o = new api.PartialResultSet(); 1104 var o = new api.PartialResultSet();
1105 buildCounterPartialResultSet++; 1105 buildCounterPartialResultSet++;
1106 if (buildCounterPartialResultSet < 3) { 1106 if (buildCounterPartialResultSet < 3) {
1107 o.chunkedValue = true; 1107 o.chunkedValue = true;
1108 o.metadata = buildResultSetMetadata(); 1108 o.metadata = buildResultSetMetadata();
1109 o.resumeToken = "foo"; 1109 o.resumeToken = "foo";
1110 o.stats = buildResultSetStats(); 1110 o.stats = buildResultSetStats();
1111 o.values = buildUnnamed1793(); 1111 o.values = buildUnnamed1897();
1112 } 1112 }
1113 buildCounterPartialResultSet--; 1113 buildCounterPartialResultSet--;
1114 return o; 1114 return o;
1115 } 1115 }
1116 1116
1117 checkPartialResultSet(api.PartialResultSet o) { 1117 checkPartialResultSet(api.PartialResultSet o) {
1118 buildCounterPartialResultSet++; 1118 buildCounterPartialResultSet++;
1119 if (buildCounterPartialResultSet < 3) { 1119 if (buildCounterPartialResultSet < 3) {
1120 unittest.expect(o.chunkedValue, unittest.isTrue); 1120 unittest.expect(o.chunkedValue, unittest.isTrue);
1121 checkResultSetMetadata(o.metadata); 1121 checkResultSetMetadata(o.metadata);
1122 unittest.expect(o.resumeToken, unittest.equals('foo')); 1122 unittest.expect(o.resumeToken, unittest.equals('foo'));
1123 checkResultSetStats(o.stats); 1123 checkResultSetStats(o.stats);
1124 checkUnnamed1793(o.values); 1124 checkUnnamed1897(o.values);
1125 } 1125 }
1126 buildCounterPartialResultSet--; 1126 buildCounterPartialResultSet--;
1127 } 1127 }
1128 1128
1129 buildUnnamed1794() { 1129 buildUnnamed1898() {
1130 var o = new core.List<api.ChildLink>(); 1130 var o = new core.List<api.ChildLink>();
1131 o.add(buildChildLink()); 1131 o.add(buildChildLink());
1132 o.add(buildChildLink()); 1132 o.add(buildChildLink());
1133 return o; 1133 return o;
1134 } 1134 }
1135 1135
1136 checkUnnamed1794(core.List<api.ChildLink> o) { 1136 checkUnnamed1898(core.List<api.ChildLink> o) {
1137 unittest.expect(o, unittest.hasLength(2)); 1137 unittest.expect(o, unittest.hasLength(2));
1138 checkChildLink(o[0]); 1138 checkChildLink(o[0]);
1139 checkChildLink(o[1]); 1139 checkChildLink(o[1]);
1140 } 1140 }
1141 1141
1142 buildUnnamed1795() { 1142 buildUnnamed1899() {
1143 var o = new core.Map<core.String, core.Object>(); 1143 var o = new core.Map<core.String, core.Object>();
1144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1146 return o; 1146 return o;
1147 } 1147 }
1148 1148
1149 checkUnnamed1795(core.Map<core.String, core.Object> o) { 1149 checkUnnamed1899(core.Map<core.String, core.Object> o) {
1150 unittest.expect(o, unittest.hasLength(2)); 1150 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')); 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'));
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')); 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'));
1153 } 1153 }
1154 1154
1155 buildUnnamed1796() { 1155 buildUnnamed1900() {
1156 var o = new core.Map<core.String, core.Object>(); 1156 var o = new core.Map<core.String, core.Object>();
1157 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1157 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1158 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1158 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1159 return o; 1159 return o;
1160 } 1160 }
1161 1161
1162 checkUnnamed1796(core.Map<core.String, core.Object> o) { 1162 checkUnnamed1900(core.Map<core.String, core.Object> o) {
1163 unittest.expect(o, unittest.hasLength(2)); 1163 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')); 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'));
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')); 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'));
1166 } 1166 }
1167 1167
1168 core.int buildCounterPlanNode = 0; 1168 core.int buildCounterPlanNode = 0;
1169 buildPlanNode() { 1169 buildPlanNode() {
1170 var o = new api.PlanNode(); 1170 var o = new api.PlanNode();
1171 buildCounterPlanNode++; 1171 buildCounterPlanNode++;
1172 if (buildCounterPlanNode < 3) { 1172 if (buildCounterPlanNode < 3) {
1173 o.childLinks = buildUnnamed1794(); 1173 o.childLinks = buildUnnamed1898();
1174 o.displayName = "foo"; 1174 o.displayName = "foo";
1175 o.executionStats = buildUnnamed1795(); 1175 o.executionStats = buildUnnamed1899();
1176 o.index = 42; 1176 o.index = 42;
1177 o.kind = "foo"; 1177 o.kind = "foo";
1178 o.metadata = buildUnnamed1796(); 1178 o.metadata = buildUnnamed1900();
1179 o.shortRepresentation = buildShortRepresentation(); 1179 o.shortRepresentation = buildShortRepresentation();
1180 } 1180 }
1181 buildCounterPlanNode--; 1181 buildCounterPlanNode--;
1182 return o; 1182 return o;
1183 } 1183 }
1184 1184
1185 checkPlanNode(api.PlanNode o) { 1185 checkPlanNode(api.PlanNode o) {
1186 buildCounterPlanNode++; 1186 buildCounterPlanNode++;
1187 if (buildCounterPlanNode < 3) { 1187 if (buildCounterPlanNode < 3) {
1188 checkUnnamed1794(o.childLinks); 1188 checkUnnamed1898(o.childLinks);
1189 unittest.expect(o.displayName, unittest.equals('foo')); 1189 unittest.expect(o.displayName, unittest.equals('foo'));
1190 checkUnnamed1795(o.executionStats); 1190 checkUnnamed1899(o.executionStats);
1191 unittest.expect(o.index, unittest.equals(42)); 1191 unittest.expect(o.index, unittest.equals(42));
1192 unittest.expect(o.kind, unittest.equals('foo')); 1192 unittest.expect(o.kind, unittest.equals('foo'));
1193 checkUnnamed1796(o.metadata); 1193 checkUnnamed1900(o.metadata);
1194 checkShortRepresentation(o.shortRepresentation); 1194 checkShortRepresentation(o.shortRepresentation);
1195 } 1195 }
1196 buildCounterPlanNode--; 1196 buildCounterPlanNode--;
1197 } 1197 }
1198 1198
1199 buildUnnamed1797() { 1199 buildUnnamed1901() {
1200 var o = new core.List<api.AuditConfig>(); 1200 var o = new core.List<api.AuditConfig>();
1201 o.add(buildAuditConfig()); 1201 o.add(buildAuditConfig());
1202 o.add(buildAuditConfig()); 1202 o.add(buildAuditConfig());
1203 return o; 1203 return o;
1204 } 1204 }
1205 1205
1206 checkUnnamed1797(core.List<api.AuditConfig> o) { 1206 checkUnnamed1901(core.List<api.AuditConfig> o) {
1207 unittest.expect(o, unittest.hasLength(2)); 1207 unittest.expect(o, unittest.hasLength(2));
1208 checkAuditConfig(o[0]); 1208 checkAuditConfig(o[0]);
1209 checkAuditConfig(o[1]); 1209 checkAuditConfig(o[1]);
1210 } 1210 }
1211 1211
1212 buildUnnamed1798() { 1212 buildUnnamed1902() {
1213 var o = new core.List<api.Binding>(); 1213 var o = new core.List<api.Binding>();
1214 o.add(buildBinding()); 1214 o.add(buildBinding());
1215 o.add(buildBinding()); 1215 o.add(buildBinding());
1216 return o; 1216 return o;
1217 } 1217 }
1218 1218
1219 checkUnnamed1798(core.List<api.Binding> o) { 1219 checkUnnamed1902(core.List<api.Binding> o) {
1220 unittest.expect(o, unittest.hasLength(2)); 1220 unittest.expect(o, unittest.hasLength(2));
1221 checkBinding(o[0]); 1221 checkBinding(o[0]);
1222 checkBinding(o[1]); 1222 checkBinding(o[1]);
1223 } 1223 }
1224 1224
1225 buildUnnamed1799() { 1225 buildUnnamed1903() {
1226 var o = new core.List<api.Rule>(); 1226 var o = new core.List<api.Rule>();
1227 o.add(buildRule()); 1227 o.add(buildRule());
1228 o.add(buildRule()); 1228 o.add(buildRule());
1229 return o; 1229 return o;
1230 } 1230 }
1231 1231
1232 checkUnnamed1799(core.List<api.Rule> o) { 1232 checkUnnamed1903(core.List<api.Rule> o) {
1233 unittest.expect(o, unittest.hasLength(2)); 1233 unittest.expect(o, unittest.hasLength(2));
1234 checkRule(o[0]); 1234 checkRule(o[0]);
1235 checkRule(o[1]); 1235 checkRule(o[1]);
1236 } 1236 }
1237 1237
1238 core.int buildCounterPolicy = 0; 1238 core.int buildCounterPolicy = 0;
1239 buildPolicy() { 1239 buildPolicy() {
1240 var o = new api.Policy(); 1240 var o = new api.Policy();
1241 buildCounterPolicy++; 1241 buildCounterPolicy++;
1242 if (buildCounterPolicy < 3) { 1242 if (buildCounterPolicy < 3) {
1243 o.auditConfigs = buildUnnamed1797(); 1243 o.auditConfigs = buildUnnamed1901();
1244 o.bindings = buildUnnamed1798(); 1244 o.bindings = buildUnnamed1902();
1245 o.etag = "foo"; 1245 o.etag = "foo";
1246 o.iamOwned = true; 1246 o.iamOwned = true;
1247 o.rules = buildUnnamed1799(); 1247 o.rules = buildUnnamed1903();
1248 o.version = 42; 1248 o.version = 42;
1249 } 1249 }
1250 buildCounterPolicy--; 1250 buildCounterPolicy--;
1251 return o; 1251 return o;
1252 } 1252 }
1253 1253
1254 checkPolicy(api.Policy o) { 1254 checkPolicy(api.Policy o) {
1255 buildCounterPolicy++; 1255 buildCounterPolicy++;
1256 if (buildCounterPolicy < 3) { 1256 if (buildCounterPolicy < 3) {
1257 checkUnnamed1797(o.auditConfigs); 1257 checkUnnamed1901(o.auditConfigs);
1258 checkUnnamed1798(o.bindings); 1258 checkUnnamed1902(o.bindings);
1259 unittest.expect(o.etag, unittest.equals('foo')); 1259 unittest.expect(o.etag, unittest.equals('foo'));
1260 unittest.expect(o.iamOwned, unittest.isTrue); 1260 unittest.expect(o.iamOwned, unittest.isTrue);
1261 checkUnnamed1799(o.rules); 1261 checkUnnamed1903(o.rules);
1262 unittest.expect(o.version, unittest.equals(42)); 1262 unittest.expect(o.version, unittest.equals(42));
1263 } 1263 }
1264 buildCounterPolicy--; 1264 buildCounterPolicy--;
1265 } 1265 }
1266 1266
1267 buildUnnamed1800() { 1267 buildUnnamed1904() {
1268 var o = new core.List<api.PlanNode>(); 1268 var o = new core.List<api.PlanNode>();
1269 o.add(buildPlanNode()); 1269 o.add(buildPlanNode());
1270 o.add(buildPlanNode()); 1270 o.add(buildPlanNode());
1271 return o; 1271 return o;
1272 } 1272 }
1273 1273
1274 checkUnnamed1800(core.List<api.PlanNode> o) { 1274 checkUnnamed1904(core.List<api.PlanNode> o) {
1275 unittest.expect(o, unittest.hasLength(2)); 1275 unittest.expect(o, unittest.hasLength(2));
1276 checkPlanNode(o[0]); 1276 checkPlanNode(o[0]);
1277 checkPlanNode(o[1]); 1277 checkPlanNode(o[1]);
1278 } 1278 }
1279 1279
1280 core.int buildCounterQueryPlan = 0; 1280 core.int buildCounterQueryPlan = 0;
1281 buildQueryPlan() { 1281 buildQueryPlan() {
1282 var o = new api.QueryPlan(); 1282 var o = new api.QueryPlan();
1283 buildCounterQueryPlan++; 1283 buildCounterQueryPlan++;
1284 if (buildCounterQueryPlan < 3) { 1284 if (buildCounterQueryPlan < 3) {
1285 o.planNodes = buildUnnamed1800(); 1285 o.planNodes = buildUnnamed1904();
1286 } 1286 }
1287 buildCounterQueryPlan--; 1287 buildCounterQueryPlan--;
1288 return o; 1288 return o;
1289 } 1289 }
1290 1290
1291 checkQueryPlan(api.QueryPlan o) { 1291 checkQueryPlan(api.QueryPlan o) {
1292 buildCounterQueryPlan++; 1292 buildCounterQueryPlan++;
1293 if (buildCounterQueryPlan < 3) { 1293 if (buildCounterQueryPlan < 3) {
1294 checkUnnamed1800(o.planNodes); 1294 checkUnnamed1904(o.planNodes);
1295 } 1295 }
1296 buildCounterQueryPlan--; 1296 buildCounterQueryPlan--;
1297 } 1297 }
1298 1298
1299 core.int buildCounterReadOnly = 0; 1299 core.int buildCounterReadOnly = 0;
1300 buildReadOnly() { 1300 buildReadOnly() {
1301 var o = new api.ReadOnly(); 1301 var o = new api.ReadOnly();
1302 buildCounterReadOnly++; 1302 buildCounterReadOnly++;
1303 if (buildCounterReadOnly < 3) { 1303 if (buildCounterReadOnly < 3) {
1304 o.exactStaleness = "foo"; 1304 o.exactStaleness = "foo";
(...skipping 13 matching lines...) Expand all
1318 unittest.expect(o.exactStaleness, unittest.equals('foo')); 1318 unittest.expect(o.exactStaleness, unittest.equals('foo'));
1319 unittest.expect(o.maxStaleness, unittest.equals('foo')); 1319 unittest.expect(o.maxStaleness, unittest.equals('foo'));
1320 unittest.expect(o.minReadTimestamp, unittest.equals('foo')); 1320 unittest.expect(o.minReadTimestamp, unittest.equals('foo'));
1321 unittest.expect(o.readTimestamp, unittest.equals('foo')); 1321 unittest.expect(o.readTimestamp, unittest.equals('foo'));
1322 unittest.expect(o.returnReadTimestamp, unittest.isTrue); 1322 unittest.expect(o.returnReadTimestamp, unittest.isTrue);
1323 unittest.expect(o.strong, unittest.isTrue); 1323 unittest.expect(o.strong, unittest.isTrue);
1324 } 1324 }
1325 buildCounterReadOnly--; 1325 buildCounterReadOnly--;
1326 } 1326 }
1327 1327
1328 buildUnnamed1801() { 1328 buildUnnamed1905() {
1329 var o = new core.List<core.String>(); 1329 var o = new core.List<core.String>();
1330 o.add("foo"); 1330 o.add("foo");
1331 o.add("foo"); 1331 o.add("foo");
1332 return o; 1332 return o;
1333 } 1333 }
1334 1334
1335 checkUnnamed1801(core.List<core.String> o) { 1335 checkUnnamed1905(core.List<core.String> o) {
1336 unittest.expect(o, unittest.hasLength(2)); 1336 unittest.expect(o, unittest.hasLength(2));
1337 unittest.expect(o[0], unittest.equals('foo')); 1337 unittest.expect(o[0], unittest.equals('foo'));
1338 unittest.expect(o[1], unittest.equals('foo')); 1338 unittest.expect(o[1], unittest.equals('foo'));
1339 } 1339 }
1340 1340
1341 core.int buildCounterReadRequest = 0; 1341 core.int buildCounterReadRequest = 0;
1342 buildReadRequest() { 1342 buildReadRequest() {
1343 var o = new api.ReadRequest(); 1343 var o = new api.ReadRequest();
1344 buildCounterReadRequest++; 1344 buildCounterReadRequest++;
1345 if (buildCounterReadRequest < 3) { 1345 if (buildCounterReadRequest < 3) {
1346 o.columns = buildUnnamed1801(); 1346 o.columns = buildUnnamed1905();
1347 o.index = "foo"; 1347 o.index = "foo";
1348 o.keySet = buildKeySet(); 1348 o.keySet = buildKeySet();
1349 o.limit = "foo"; 1349 o.limit = "foo";
1350 o.resumeToken = "foo"; 1350 o.resumeToken = "foo";
1351 o.table = "foo"; 1351 o.table = "foo";
1352 o.transaction = buildTransactionSelector(); 1352 o.transaction = buildTransactionSelector();
1353 } 1353 }
1354 buildCounterReadRequest--; 1354 buildCounterReadRequest--;
1355 return o; 1355 return o;
1356 } 1356 }
1357 1357
1358 checkReadRequest(api.ReadRequest o) { 1358 checkReadRequest(api.ReadRequest o) {
1359 buildCounterReadRequest++; 1359 buildCounterReadRequest++;
1360 if (buildCounterReadRequest < 3) { 1360 if (buildCounterReadRequest < 3) {
1361 checkUnnamed1801(o.columns); 1361 checkUnnamed1905(o.columns);
1362 unittest.expect(o.index, unittest.equals('foo')); 1362 unittest.expect(o.index, unittest.equals('foo'));
1363 checkKeySet(o.keySet); 1363 checkKeySet(o.keySet);
1364 unittest.expect(o.limit, unittest.equals('foo')); 1364 unittest.expect(o.limit, unittest.equals('foo'));
1365 unittest.expect(o.resumeToken, unittest.equals('foo')); 1365 unittest.expect(o.resumeToken, unittest.equals('foo'));
1366 unittest.expect(o.table, unittest.equals('foo')); 1366 unittest.expect(o.table, unittest.equals('foo'));
1367 checkTransactionSelector(o.transaction); 1367 checkTransactionSelector(o.transaction);
1368 } 1368 }
1369 buildCounterReadRequest--; 1369 buildCounterReadRequest--;
1370 } 1370 }
1371 1371
1372 core.int buildCounterReadWrite = 0; 1372 core.int buildCounterReadWrite = 0;
1373 buildReadWrite() { 1373 buildReadWrite() {
1374 var o = new api.ReadWrite(); 1374 var o = new api.ReadWrite();
1375 buildCounterReadWrite++; 1375 buildCounterReadWrite++;
1376 if (buildCounterReadWrite < 3) { 1376 if (buildCounterReadWrite < 3) {
1377 } 1377 }
1378 buildCounterReadWrite--; 1378 buildCounterReadWrite--;
1379 return o; 1379 return o;
1380 } 1380 }
1381 1381
1382 checkReadWrite(api.ReadWrite o) { 1382 checkReadWrite(api.ReadWrite o) {
1383 buildCounterReadWrite++; 1383 buildCounterReadWrite++;
1384 if (buildCounterReadWrite < 3) { 1384 if (buildCounterReadWrite < 3) {
1385 } 1385 }
1386 buildCounterReadWrite--; 1386 buildCounterReadWrite--;
1387 } 1387 }
1388 1388
1389 buildUnnamed1802() { 1389 buildUnnamed1906() {
1390 var o = new core.List<core.Object>(); 1390 var o = new core.List<core.Object>();
1391 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1391 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1392 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1392 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1393 return o; 1393 return o;
1394 } 1394 }
1395 1395
1396 checkUnnamed1802(core.List<core.Object> o) { 1396 checkUnnamed1906(core.List<core.Object> o) {
1397 unittest.expect(o, unittest.hasLength(2)); 1397 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')); 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'));
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')); 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'));
1400 } 1400 }
1401 1401
1402 buildUnnamed1803() { 1402 buildUnnamed1907() {
1403 var o = new core.List<core.List<core.Object>>(); 1403 var o = new core.List<core.List<core.Object>>();
1404 o.add(buildUnnamed1802()); 1404 o.add(buildUnnamed1906());
1405 o.add(buildUnnamed1802()); 1405 o.add(buildUnnamed1906());
1406 return o; 1406 return o;
1407 } 1407 }
1408 1408
1409 checkUnnamed1803(core.List<core.List<core.Object>> o) { 1409 checkUnnamed1907(core.List<core.List<core.Object>> o) {
1410 unittest.expect(o, unittest.hasLength(2)); 1410 unittest.expect(o, unittest.hasLength(2));
1411 checkUnnamed1802(o[0]); 1411 checkUnnamed1906(o[0]);
1412 checkUnnamed1802(o[1]); 1412 checkUnnamed1906(o[1]);
1413 } 1413 }
1414 1414
1415 core.int buildCounterResultSet = 0; 1415 core.int buildCounterResultSet = 0;
1416 buildResultSet() { 1416 buildResultSet() {
1417 var o = new api.ResultSet(); 1417 var o = new api.ResultSet();
1418 buildCounterResultSet++; 1418 buildCounterResultSet++;
1419 if (buildCounterResultSet < 3) { 1419 if (buildCounterResultSet < 3) {
1420 o.metadata = buildResultSetMetadata(); 1420 o.metadata = buildResultSetMetadata();
1421 o.rows = buildUnnamed1803(); 1421 o.rows = buildUnnamed1907();
1422 o.stats = buildResultSetStats(); 1422 o.stats = buildResultSetStats();
1423 } 1423 }
1424 buildCounterResultSet--; 1424 buildCounterResultSet--;
1425 return o; 1425 return o;
1426 } 1426 }
1427 1427
1428 checkResultSet(api.ResultSet o) { 1428 checkResultSet(api.ResultSet o) {
1429 buildCounterResultSet++; 1429 buildCounterResultSet++;
1430 if (buildCounterResultSet < 3) { 1430 if (buildCounterResultSet < 3) {
1431 checkResultSetMetadata(o.metadata); 1431 checkResultSetMetadata(o.metadata);
1432 checkUnnamed1803(o.rows); 1432 checkUnnamed1907(o.rows);
1433 checkResultSetStats(o.stats); 1433 checkResultSetStats(o.stats);
1434 } 1434 }
1435 buildCounterResultSet--; 1435 buildCounterResultSet--;
1436 } 1436 }
1437 1437
1438 core.int buildCounterResultSetMetadata = 0; 1438 core.int buildCounterResultSetMetadata = 0;
1439 buildResultSetMetadata() { 1439 buildResultSetMetadata() {
1440 var o = new api.ResultSetMetadata(); 1440 var o = new api.ResultSetMetadata();
1441 buildCounterResultSetMetadata++; 1441 buildCounterResultSetMetadata++;
1442 if (buildCounterResultSetMetadata < 3) { 1442 if (buildCounterResultSetMetadata < 3) {
1443 o.rowType = buildStructType(); 1443 o.rowType = buildStructType();
1444 o.transaction = buildTransaction(); 1444 o.transaction = buildTransaction();
1445 } 1445 }
1446 buildCounterResultSetMetadata--; 1446 buildCounterResultSetMetadata--;
1447 return o; 1447 return o;
1448 } 1448 }
1449 1449
1450 checkResultSetMetadata(api.ResultSetMetadata o) { 1450 checkResultSetMetadata(api.ResultSetMetadata o) {
1451 buildCounterResultSetMetadata++; 1451 buildCounterResultSetMetadata++;
1452 if (buildCounterResultSetMetadata < 3) { 1452 if (buildCounterResultSetMetadata < 3) {
1453 checkStructType(o.rowType); 1453 checkStructType(o.rowType);
1454 checkTransaction(o.transaction); 1454 checkTransaction(o.transaction);
1455 } 1455 }
1456 buildCounterResultSetMetadata--; 1456 buildCounterResultSetMetadata--;
1457 } 1457 }
1458 1458
1459 buildUnnamed1804() { 1459 buildUnnamed1908() {
1460 var o = new core.Map<core.String, core.Object>(); 1460 var o = new core.Map<core.String, core.Object>();
1461 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1461 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1462 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1462 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1463 return o; 1463 return o;
1464 } 1464 }
1465 1465
1466 checkUnnamed1804(core.Map<core.String, core.Object> o) { 1466 checkUnnamed1908(core.Map<core.String, core.Object> o) {
1467 unittest.expect(o, unittest.hasLength(2)); 1467 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')); 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'));
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')); 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'));
1470 } 1470 }
1471 1471
1472 core.int buildCounterResultSetStats = 0; 1472 core.int buildCounterResultSetStats = 0;
1473 buildResultSetStats() { 1473 buildResultSetStats() {
1474 var o = new api.ResultSetStats(); 1474 var o = new api.ResultSetStats();
1475 buildCounterResultSetStats++; 1475 buildCounterResultSetStats++;
1476 if (buildCounterResultSetStats < 3) { 1476 if (buildCounterResultSetStats < 3) {
1477 o.queryPlan = buildQueryPlan(); 1477 o.queryPlan = buildQueryPlan();
1478 o.queryStats = buildUnnamed1804(); 1478 o.queryStats = buildUnnamed1908();
1479 } 1479 }
1480 buildCounterResultSetStats--; 1480 buildCounterResultSetStats--;
1481 return o; 1481 return o;
1482 } 1482 }
1483 1483
1484 checkResultSetStats(api.ResultSetStats o) { 1484 checkResultSetStats(api.ResultSetStats o) {
1485 buildCounterResultSetStats++; 1485 buildCounterResultSetStats++;
1486 if (buildCounterResultSetStats < 3) { 1486 if (buildCounterResultSetStats < 3) {
1487 checkQueryPlan(o.queryPlan); 1487 checkQueryPlan(o.queryPlan);
1488 checkUnnamed1804(o.queryStats); 1488 checkUnnamed1908(o.queryStats);
1489 } 1489 }
1490 buildCounterResultSetStats--; 1490 buildCounterResultSetStats--;
1491 } 1491 }
1492 1492
1493 core.int buildCounterRollbackRequest = 0; 1493 core.int buildCounterRollbackRequest = 0;
1494 buildRollbackRequest() { 1494 buildRollbackRequest() {
1495 var o = new api.RollbackRequest(); 1495 var o = new api.RollbackRequest();
1496 buildCounterRollbackRequest++; 1496 buildCounterRollbackRequest++;
1497 if (buildCounterRollbackRequest < 3) { 1497 if (buildCounterRollbackRequest < 3) {
1498 o.transactionId = "foo"; 1498 o.transactionId = "foo";
1499 } 1499 }
1500 buildCounterRollbackRequest--; 1500 buildCounterRollbackRequest--;
1501 return o; 1501 return o;
1502 } 1502 }
1503 1503
1504 checkRollbackRequest(api.RollbackRequest o) { 1504 checkRollbackRequest(api.RollbackRequest o) {
1505 buildCounterRollbackRequest++; 1505 buildCounterRollbackRequest++;
1506 if (buildCounterRollbackRequest < 3) { 1506 if (buildCounterRollbackRequest < 3) {
1507 unittest.expect(o.transactionId, unittest.equals('foo')); 1507 unittest.expect(o.transactionId, unittest.equals('foo'));
1508 } 1508 }
1509 buildCounterRollbackRequest--; 1509 buildCounterRollbackRequest--;
1510 } 1510 }
1511 1511
1512 buildUnnamed1805() { 1512 buildUnnamed1909() {
1513 var o = new core.List<api.Condition>(); 1513 var o = new core.List<api.Condition>();
1514 o.add(buildCondition()); 1514 o.add(buildCondition());
1515 o.add(buildCondition()); 1515 o.add(buildCondition());
1516 return o; 1516 return o;
1517 } 1517 }
1518 1518
1519 checkUnnamed1805(core.List<api.Condition> o) { 1519 checkUnnamed1909(core.List<api.Condition> o) {
1520 unittest.expect(o, unittest.hasLength(2)); 1520 unittest.expect(o, unittest.hasLength(2));
1521 checkCondition(o[0]); 1521 checkCondition(o[0]);
1522 checkCondition(o[1]); 1522 checkCondition(o[1]);
1523 } 1523 }
1524 1524
1525 buildUnnamed1806() { 1525 buildUnnamed1910() {
1526 var o = new core.List<core.String>(); 1526 var o = new core.List<core.String>();
1527 o.add("foo"); 1527 o.add("foo");
1528 o.add("foo"); 1528 o.add("foo");
1529 return o; 1529 return o;
1530 } 1530 }
1531 1531
1532 checkUnnamed1806(core.List<core.String> o) { 1532 checkUnnamed1910(core.List<core.String> o) {
1533 unittest.expect(o, unittest.hasLength(2)); 1533 unittest.expect(o, unittest.hasLength(2));
1534 unittest.expect(o[0], unittest.equals('foo')); 1534 unittest.expect(o[0], unittest.equals('foo'));
1535 unittest.expect(o[1], unittest.equals('foo')); 1535 unittest.expect(o[1], unittest.equals('foo'));
1536 } 1536 }
1537 1537
1538 buildUnnamed1807() { 1538 buildUnnamed1911() {
1539 var o = new core.List<api.LogConfig>(); 1539 var o = new core.List<api.LogConfig>();
1540 o.add(buildLogConfig()); 1540 o.add(buildLogConfig());
1541 o.add(buildLogConfig()); 1541 o.add(buildLogConfig());
1542 return o; 1542 return o;
1543 } 1543 }
1544 1544
1545 checkUnnamed1807(core.List<api.LogConfig> o) { 1545 checkUnnamed1911(core.List<api.LogConfig> o) {
1546 unittest.expect(o, unittest.hasLength(2)); 1546 unittest.expect(o, unittest.hasLength(2));
1547 checkLogConfig(o[0]); 1547 checkLogConfig(o[0]);
1548 checkLogConfig(o[1]); 1548 checkLogConfig(o[1]);
1549 } 1549 }
1550 1550
1551 buildUnnamed1808() { 1551 buildUnnamed1912() {
1552 var o = new core.List<core.String>(); 1552 var o = new core.List<core.String>();
1553 o.add("foo"); 1553 o.add("foo");
1554 o.add("foo"); 1554 o.add("foo");
1555 return o; 1555 return o;
1556 } 1556 }
1557 1557
1558 checkUnnamed1808(core.List<core.String> o) { 1558 checkUnnamed1912(core.List<core.String> o) {
1559 unittest.expect(o, unittest.hasLength(2)); 1559 unittest.expect(o, unittest.hasLength(2));
1560 unittest.expect(o[0], unittest.equals('foo')); 1560 unittest.expect(o[0], unittest.equals('foo'));
1561 unittest.expect(o[1], unittest.equals('foo')); 1561 unittest.expect(o[1], unittest.equals('foo'));
1562 } 1562 }
1563 1563
1564 buildUnnamed1809() { 1564 buildUnnamed1913() {
1565 var o = new core.List<core.String>(); 1565 var o = new core.List<core.String>();
1566 o.add("foo"); 1566 o.add("foo");
1567 o.add("foo"); 1567 o.add("foo");
1568 return o; 1568 return o;
1569 } 1569 }
1570 1570
1571 checkUnnamed1809(core.List<core.String> o) { 1571 checkUnnamed1913(core.List<core.String> o) {
1572 unittest.expect(o, unittest.hasLength(2)); 1572 unittest.expect(o, unittest.hasLength(2));
1573 unittest.expect(o[0], unittest.equals('foo')); 1573 unittest.expect(o[0], unittest.equals('foo'));
1574 unittest.expect(o[1], unittest.equals('foo')); 1574 unittest.expect(o[1], unittest.equals('foo'));
1575 } 1575 }
1576 1576
1577 core.int buildCounterRule = 0; 1577 core.int buildCounterRule = 0;
1578 buildRule() { 1578 buildRule() {
1579 var o = new api.Rule(); 1579 var o = new api.Rule();
1580 buildCounterRule++; 1580 buildCounterRule++;
1581 if (buildCounterRule < 3) { 1581 if (buildCounterRule < 3) {
1582 o.action = "foo"; 1582 o.action = "foo";
1583 o.conditions = buildUnnamed1805(); 1583 o.conditions = buildUnnamed1909();
1584 o.description = "foo"; 1584 o.description = "foo";
1585 o.in_ = buildUnnamed1806(); 1585 o.in_ = buildUnnamed1910();
1586 o.logConfig = buildUnnamed1807(); 1586 o.logConfig = buildUnnamed1911();
1587 o.notIn = buildUnnamed1808(); 1587 o.notIn = buildUnnamed1912();
1588 o.permissions = buildUnnamed1809(); 1588 o.permissions = buildUnnamed1913();
1589 } 1589 }
1590 buildCounterRule--; 1590 buildCounterRule--;
1591 return o; 1591 return o;
1592 } 1592 }
1593 1593
1594 checkRule(api.Rule o) { 1594 checkRule(api.Rule o) {
1595 buildCounterRule++; 1595 buildCounterRule++;
1596 if (buildCounterRule < 3) { 1596 if (buildCounterRule < 3) {
1597 unittest.expect(o.action, unittest.equals('foo')); 1597 unittest.expect(o.action, unittest.equals('foo'));
1598 checkUnnamed1805(o.conditions); 1598 checkUnnamed1909(o.conditions);
1599 unittest.expect(o.description, unittest.equals('foo')); 1599 unittest.expect(o.description, unittest.equals('foo'));
1600 checkUnnamed1806(o.in_); 1600 checkUnnamed1910(o.in_);
1601 checkUnnamed1807(o.logConfig); 1601 checkUnnamed1911(o.logConfig);
1602 checkUnnamed1808(o.notIn); 1602 checkUnnamed1912(o.notIn);
1603 checkUnnamed1809(o.permissions); 1603 checkUnnamed1913(o.permissions);
1604 } 1604 }
1605 buildCounterRule--; 1605 buildCounterRule--;
1606 } 1606 }
1607 1607
1608 core.int buildCounterSession = 0; 1608 core.int buildCounterSession = 0;
1609 buildSession() { 1609 buildSession() {
1610 var o = new api.Session(); 1610 var o = new api.Session();
1611 buildCounterSession++; 1611 buildCounterSession++;
1612 if (buildCounterSession < 3) { 1612 if (buildCounterSession < 3) {
1613 o.name = "foo"; 1613 o.name = "foo";
(...skipping 24 matching lines...) Expand all
1638 1638
1639 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { 1639 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
1640 buildCounterSetIamPolicyRequest++; 1640 buildCounterSetIamPolicyRequest++;
1641 if (buildCounterSetIamPolicyRequest < 3) { 1641 if (buildCounterSetIamPolicyRequest < 3) {
1642 checkPolicy(o.policy); 1642 checkPolicy(o.policy);
1643 unittest.expect(o.updateMask, unittest.equals('foo')); 1643 unittest.expect(o.updateMask, unittest.equals('foo'));
1644 } 1644 }
1645 buildCounterSetIamPolicyRequest--; 1645 buildCounterSetIamPolicyRequest--;
1646 } 1646 }
1647 1647
1648 buildUnnamed1810() { 1648 buildUnnamed1914() {
1649 var o = new core.Map<core.String, core.int>(); 1649 var o = new core.Map<core.String, core.int>();
1650 o["x"] = 42; 1650 o["x"] = 42;
1651 o["y"] = 42; 1651 o["y"] = 42;
1652 return o; 1652 return o;
1653 } 1653 }
1654 1654
1655 checkUnnamed1810(core.Map<core.String, core.int> o) { 1655 checkUnnamed1914(core.Map<core.String, core.int> o) {
1656 unittest.expect(o, unittest.hasLength(2)); 1656 unittest.expect(o, unittest.hasLength(2));
1657 unittest.expect(o["x"], unittest.equals(42)); 1657 unittest.expect(o["x"], unittest.equals(42));
1658 unittest.expect(o["y"], unittest.equals(42)); 1658 unittest.expect(o["y"], unittest.equals(42));
1659 } 1659 }
1660 1660
1661 core.int buildCounterShortRepresentation = 0; 1661 core.int buildCounterShortRepresentation = 0;
1662 buildShortRepresentation() { 1662 buildShortRepresentation() {
1663 var o = new api.ShortRepresentation(); 1663 var o = new api.ShortRepresentation();
1664 buildCounterShortRepresentation++; 1664 buildCounterShortRepresentation++;
1665 if (buildCounterShortRepresentation < 3) { 1665 if (buildCounterShortRepresentation < 3) {
1666 o.description = "foo"; 1666 o.description = "foo";
1667 o.subqueries = buildUnnamed1810(); 1667 o.subqueries = buildUnnamed1914();
1668 } 1668 }
1669 buildCounterShortRepresentation--; 1669 buildCounterShortRepresentation--;
1670 return o; 1670 return o;
1671 } 1671 }
1672 1672
1673 checkShortRepresentation(api.ShortRepresentation o) { 1673 checkShortRepresentation(api.ShortRepresentation o) {
1674 buildCounterShortRepresentation++; 1674 buildCounterShortRepresentation++;
1675 if (buildCounterShortRepresentation < 3) { 1675 if (buildCounterShortRepresentation < 3) {
1676 unittest.expect(o.description, unittest.equals('foo')); 1676 unittest.expect(o.description, unittest.equals('foo'));
1677 checkUnnamed1810(o.subqueries); 1677 checkUnnamed1914(o.subqueries);
1678 } 1678 }
1679 buildCounterShortRepresentation--; 1679 buildCounterShortRepresentation--;
1680 } 1680 }
1681 1681
1682 buildUnnamed1811() { 1682 buildUnnamed1915() {
1683 var o = new core.Map<core.String, core.Object>(); 1683 var o = new core.Map<core.String, core.Object>();
1684 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1684 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1685 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1685 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1686 return o; 1686 return o;
1687 } 1687 }
1688 1688
1689 checkUnnamed1811(core.Map<core.String, core.Object> o) { 1689 checkUnnamed1915(core.Map<core.String, core.Object> o) {
1690 unittest.expect(o, unittest.hasLength(2)); 1690 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')); 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'));
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')); 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'));
1693 } 1693 }
1694 1694
1695 buildUnnamed1812() { 1695 buildUnnamed1916() {
1696 var o = new core.List<core.Map<core.String, core.Object>>(); 1696 var o = new core.List<core.Map<core.String, core.Object>>();
1697 o.add(buildUnnamed1811()); 1697 o.add(buildUnnamed1915());
1698 o.add(buildUnnamed1811()); 1698 o.add(buildUnnamed1915());
1699 return o; 1699 return o;
1700 } 1700 }
1701 1701
1702 checkUnnamed1812(core.List<core.Map<core.String, core.Object>> o) { 1702 checkUnnamed1916(core.List<core.Map<core.String, core.Object>> o) {
1703 unittest.expect(o, unittest.hasLength(2)); 1703 unittest.expect(o, unittest.hasLength(2));
1704 checkUnnamed1811(o[0]); 1704 checkUnnamed1915(o[0]);
1705 checkUnnamed1811(o[1]); 1705 checkUnnamed1915(o[1]);
1706 } 1706 }
1707 1707
1708 core.int buildCounterStatus = 0; 1708 core.int buildCounterStatus = 0;
1709 buildStatus() { 1709 buildStatus() {
1710 var o = new api.Status(); 1710 var o = new api.Status();
1711 buildCounterStatus++; 1711 buildCounterStatus++;
1712 if (buildCounterStatus < 3) { 1712 if (buildCounterStatus < 3) {
1713 o.code = 42; 1713 o.code = 42;
1714 o.details = buildUnnamed1812(); 1714 o.details = buildUnnamed1916();
1715 o.message = "foo"; 1715 o.message = "foo";
1716 } 1716 }
1717 buildCounterStatus--; 1717 buildCounterStatus--;
1718 return o; 1718 return o;
1719 } 1719 }
1720 1720
1721 checkStatus(api.Status o) { 1721 checkStatus(api.Status o) {
1722 buildCounterStatus++; 1722 buildCounterStatus++;
1723 if (buildCounterStatus < 3) { 1723 if (buildCounterStatus < 3) {
1724 unittest.expect(o.code, unittest.equals(42)); 1724 unittest.expect(o.code, unittest.equals(42));
1725 checkUnnamed1812(o.details); 1725 checkUnnamed1916(o.details);
1726 unittest.expect(o.message, unittest.equals('foo')); 1726 unittest.expect(o.message, unittest.equals('foo'));
1727 } 1727 }
1728 buildCounterStatus--; 1728 buildCounterStatus--;
1729 } 1729 }
1730 1730
1731 buildUnnamed1813() { 1731 buildUnnamed1917() {
1732 var o = new core.List<api.Field>(); 1732 var o = new core.List<api.Field>();
1733 o.add(buildField()); 1733 o.add(buildField());
1734 o.add(buildField()); 1734 o.add(buildField());
1735 return o; 1735 return o;
1736 } 1736 }
1737 1737
1738 checkUnnamed1813(core.List<api.Field> o) { 1738 checkUnnamed1917(core.List<api.Field> o) {
1739 unittest.expect(o, unittest.hasLength(2)); 1739 unittest.expect(o, unittest.hasLength(2));
1740 checkField(o[0]); 1740 checkField(o[0]);
1741 checkField(o[1]); 1741 checkField(o[1]);
1742 } 1742 }
1743 1743
1744 core.int buildCounterStructType = 0; 1744 core.int buildCounterStructType = 0;
1745 buildStructType() { 1745 buildStructType() {
1746 var o = new api.StructType(); 1746 var o = new api.StructType();
1747 buildCounterStructType++; 1747 buildCounterStructType++;
1748 if (buildCounterStructType < 3) { 1748 if (buildCounterStructType < 3) {
1749 o.fields = buildUnnamed1813(); 1749 o.fields = buildUnnamed1917();
1750 } 1750 }
1751 buildCounterStructType--; 1751 buildCounterStructType--;
1752 return o; 1752 return o;
1753 } 1753 }
1754 1754
1755 checkStructType(api.StructType o) { 1755 checkStructType(api.StructType o) {
1756 buildCounterStructType++; 1756 buildCounterStructType++;
1757 if (buildCounterStructType < 3) { 1757 if (buildCounterStructType < 3) {
1758 checkUnnamed1813(o.fields); 1758 checkUnnamed1917(o.fields);
1759 } 1759 }
1760 buildCounterStructType--; 1760 buildCounterStructType--;
1761 } 1761 }
1762 1762
1763 buildUnnamed1814() { 1763 buildUnnamed1918() {
1764 var o = new core.List<core.String>(); 1764 var o = new core.List<core.String>();
1765 o.add("foo"); 1765 o.add("foo");
1766 o.add("foo"); 1766 o.add("foo");
1767 return o; 1767 return o;
1768 } 1768 }
1769 1769
1770 checkUnnamed1814(core.List<core.String> o) { 1770 checkUnnamed1918(core.List<core.String> o) {
1771 unittest.expect(o, unittest.hasLength(2)); 1771 unittest.expect(o, unittest.hasLength(2));
1772 unittest.expect(o[0], unittest.equals('foo')); 1772 unittest.expect(o[0], unittest.equals('foo'));
1773 unittest.expect(o[1], unittest.equals('foo')); 1773 unittest.expect(o[1], unittest.equals('foo'));
1774 } 1774 }
1775 1775
1776 core.int buildCounterTestIamPermissionsRequest = 0; 1776 core.int buildCounterTestIamPermissionsRequest = 0;
1777 buildTestIamPermissionsRequest() { 1777 buildTestIamPermissionsRequest() {
1778 var o = new api.TestIamPermissionsRequest(); 1778 var o = new api.TestIamPermissionsRequest();
1779 buildCounterTestIamPermissionsRequest++; 1779 buildCounterTestIamPermissionsRequest++;
1780 if (buildCounterTestIamPermissionsRequest < 3) { 1780 if (buildCounterTestIamPermissionsRequest < 3) {
1781 o.permissions = buildUnnamed1814(); 1781 o.permissions = buildUnnamed1918();
1782 } 1782 }
1783 buildCounterTestIamPermissionsRequest--; 1783 buildCounterTestIamPermissionsRequest--;
1784 return o; 1784 return o;
1785 } 1785 }
1786 1786
1787 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 1787 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
1788 buildCounterTestIamPermissionsRequest++; 1788 buildCounterTestIamPermissionsRequest++;
1789 if (buildCounterTestIamPermissionsRequest < 3) { 1789 if (buildCounterTestIamPermissionsRequest < 3) {
1790 checkUnnamed1814(o.permissions); 1790 checkUnnamed1918(o.permissions);
1791 } 1791 }
1792 buildCounterTestIamPermissionsRequest--; 1792 buildCounterTestIamPermissionsRequest--;
1793 } 1793 }
1794 1794
1795 buildUnnamed1815() { 1795 buildUnnamed1919() {
1796 var o = new core.List<core.String>(); 1796 var o = new core.List<core.String>();
1797 o.add("foo"); 1797 o.add("foo");
1798 o.add("foo"); 1798 o.add("foo");
1799 return o; 1799 return o;
1800 } 1800 }
1801 1801
1802 checkUnnamed1815(core.List<core.String> o) { 1802 checkUnnamed1919(core.List<core.String> o) {
1803 unittest.expect(o, unittest.hasLength(2)); 1803 unittest.expect(o, unittest.hasLength(2));
1804 unittest.expect(o[0], unittest.equals('foo')); 1804 unittest.expect(o[0], unittest.equals('foo'));
1805 unittest.expect(o[1], unittest.equals('foo')); 1805 unittest.expect(o[1], unittest.equals('foo'));
1806 } 1806 }
1807 1807
1808 core.int buildCounterTestIamPermissionsResponse = 0; 1808 core.int buildCounterTestIamPermissionsResponse = 0;
1809 buildTestIamPermissionsResponse() { 1809 buildTestIamPermissionsResponse() {
1810 var o = new api.TestIamPermissionsResponse(); 1810 var o = new api.TestIamPermissionsResponse();
1811 buildCounterTestIamPermissionsResponse++; 1811 buildCounterTestIamPermissionsResponse++;
1812 if (buildCounterTestIamPermissionsResponse < 3) { 1812 if (buildCounterTestIamPermissionsResponse < 3) {
1813 o.permissions = buildUnnamed1815(); 1813 o.permissions = buildUnnamed1919();
1814 } 1814 }
1815 buildCounterTestIamPermissionsResponse--; 1815 buildCounterTestIamPermissionsResponse--;
1816 return o; 1816 return o;
1817 } 1817 }
1818 1818
1819 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 1819 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
1820 buildCounterTestIamPermissionsResponse++; 1820 buildCounterTestIamPermissionsResponse++;
1821 if (buildCounterTestIamPermissionsResponse < 3) { 1821 if (buildCounterTestIamPermissionsResponse < 3) {
1822 checkUnnamed1815(o.permissions); 1822 checkUnnamed1919(o.permissions);
1823 } 1823 }
1824 buildCounterTestIamPermissionsResponse--; 1824 buildCounterTestIamPermissionsResponse--;
1825 } 1825 }
1826 1826
1827 core.int buildCounterTransaction = 0; 1827 core.int buildCounterTransaction = 0;
1828 buildTransaction() { 1828 buildTransaction() {
1829 var o = new api.Transaction(); 1829 var o = new api.Transaction();
1830 buildCounterTransaction++; 1830 buildCounterTransaction++;
1831 if (buildCounterTransaction < 3) { 1831 if (buildCounterTransaction < 3) {
1832 o.id = "foo"; 1832 o.id = "foo";
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 checkType(api.Type o) { 1905 checkType(api.Type o) {
1906 buildCounterType++; 1906 buildCounterType++;
1907 if (buildCounterType < 3) { 1907 if (buildCounterType < 3) {
1908 checkType(o.arrayElementType); 1908 checkType(o.arrayElementType);
1909 unittest.expect(o.code, unittest.equals('foo')); 1909 unittest.expect(o.code, unittest.equals('foo'));
1910 checkStructType(o.structType); 1910 checkStructType(o.structType);
1911 } 1911 }
1912 buildCounterType--; 1912 buildCounterType--;
1913 } 1913 }
1914 1914
1915 buildUnnamed1816() { 1915 buildUnnamed1920() {
1916 var o = new core.List<core.String>(); 1916 var o = new core.List<core.String>();
1917 o.add("foo"); 1917 o.add("foo");
1918 o.add("foo"); 1918 o.add("foo");
1919 return o; 1919 return o;
1920 } 1920 }
1921 1921
1922 checkUnnamed1816(core.List<core.String> o) { 1922 checkUnnamed1920(core.List<core.String> o) {
1923 unittest.expect(o, unittest.hasLength(2)); 1923 unittest.expect(o, unittest.hasLength(2));
1924 unittest.expect(o[0], unittest.equals('foo')); 1924 unittest.expect(o[0], unittest.equals('foo'));
1925 unittest.expect(o[1], unittest.equals('foo')); 1925 unittest.expect(o[1], unittest.equals('foo'));
1926 } 1926 }
1927 1927
1928 buildUnnamed1817() { 1928 buildUnnamed1921() {
1929 var o = new core.List<core.String>(); 1929 var o = new core.List<core.String>();
1930 o.add("foo"); 1930 o.add("foo");
1931 o.add("foo"); 1931 o.add("foo");
1932 return o; 1932 return o;
1933 } 1933 }
1934 1934
1935 checkUnnamed1817(core.List<core.String> o) { 1935 checkUnnamed1921(core.List<core.String> o) {
1936 unittest.expect(o, unittest.hasLength(2)); 1936 unittest.expect(o, unittest.hasLength(2));
1937 unittest.expect(o[0], unittest.equals('foo')); 1937 unittest.expect(o[0], unittest.equals('foo'));
1938 unittest.expect(o[1], unittest.equals('foo')); 1938 unittest.expect(o[1], unittest.equals('foo'));
1939 } 1939 }
1940 1940
1941 core.int buildCounterUpdateDatabaseDdlMetadata = 0; 1941 core.int buildCounterUpdateDatabaseDdlMetadata = 0;
1942 buildUpdateDatabaseDdlMetadata() { 1942 buildUpdateDatabaseDdlMetadata() {
1943 var o = new api.UpdateDatabaseDdlMetadata(); 1943 var o = new api.UpdateDatabaseDdlMetadata();
1944 buildCounterUpdateDatabaseDdlMetadata++; 1944 buildCounterUpdateDatabaseDdlMetadata++;
1945 if (buildCounterUpdateDatabaseDdlMetadata < 3) { 1945 if (buildCounterUpdateDatabaseDdlMetadata < 3) {
1946 o.commitTimestamps = buildUnnamed1816(); 1946 o.commitTimestamps = buildUnnamed1920();
1947 o.database = "foo"; 1947 o.database = "foo";
1948 o.statements = buildUnnamed1817(); 1948 o.statements = buildUnnamed1921();
1949 } 1949 }
1950 buildCounterUpdateDatabaseDdlMetadata--; 1950 buildCounterUpdateDatabaseDdlMetadata--;
1951 return o; 1951 return o;
1952 } 1952 }
1953 1953
1954 checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { 1954 checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) {
1955 buildCounterUpdateDatabaseDdlMetadata++; 1955 buildCounterUpdateDatabaseDdlMetadata++;
1956 if (buildCounterUpdateDatabaseDdlMetadata < 3) { 1956 if (buildCounterUpdateDatabaseDdlMetadata < 3) {
1957 checkUnnamed1816(o.commitTimestamps); 1957 checkUnnamed1920(o.commitTimestamps);
1958 unittest.expect(o.database, unittest.equals('foo')); 1958 unittest.expect(o.database, unittest.equals('foo'));
1959 checkUnnamed1817(o.statements); 1959 checkUnnamed1921(o.statements);
1960 } 1960 }
1961 buildCounterUpdateDatabaseDdlMetadata--; 1961 buildCounterUpdateDatabaseDdlMetadata--;
1962 } 1962 }
1963 1963
1964 buildUnnamed1818() { 1964 buildUnnamed1922() {
1965 var o = new core.List<core.String>(); 1965 var o = new core.List<core.String>();
1966 o.add("foo"); 1966 o.add("foo");
1967 o.add("foo"); 1967 o.add("foo");
1968 return o; 1968 return o;
1969 } 1969 }
1970 1970
1971 checkUnnamed1818(core.List<core.String> o) { 1971 checkUnnamed1922(core.List<core.String> o) {
1972 unittest.expect(o, unittest.hasLength(2)); 1972 unittest.expect(o, unittest.hasLength(2));
1973 unittest.expect(o[0], unittest.equals('foo')); 1973 unittest.expect(o[0], unittest.equals('foo'));
1974 unittest.expect(o[1], unittest.equals('foo')); 1974 unittest.expect(o[1], unittest.equals('foo'));
1975 } 1975 }
1976 1976
1977 core.int buildCounterUpdateDatabaseDdlRequest = 0; 1977 core.int buildCounterUpdateDatabaseDdlRequest = 0;
1978 buildUpdateDatabaseDdlRequest() { 1978 buildUpdateDatabaseDdlRequest() {
1979 var o = new api.UpdateDatabaseDdlRequest(); 1979 var o = new api.UpdateDatabaseDdlRequest();
1980 buildCounterUpdateDatabaseDdlRequest++; 1980 buildCounterUpdateDatabaseDdlRequest++;
1981 if (buildCounterUpdateDatabaseDdlRequest < 3) { 1981 if (buildCounterUpdateDatabaseDdlRequest < 3) {
1982 o.operationId = "foo"; 1982 o.operationId = "foo";
1983 o.statements = buildUnnamed1818(); 1983 o.statements = buildUnnamed1922();
1984 } 1984 }
1985 buildCounterUpdateDatabaseDdlRequest--; 1985 buildCounterUpdateDatabaseDdlRequest--;
1986 return o; 1986 return o;
1987 } 1987 }
1988 1988
1989 checkUpdateDatabaseDdlRequest(api.UpdateDatabaseDdlRequest o) { 1989 checkUpdateDatabaseDdlRequest(api.UpdateDatabaseDdlRequest o) {
1990 buildCounterUpdateDatabaseDdlRequest++; 1990 buildCounterUpdateDatabaseDdlRequest++;
1991 if (buildCounterUpdateDatabaseDdlRequest < 3) { 1991 if (buildCounterUpdateDatabaseDdlRequest < 3) {
1992 unittest.expect(o.operationId, unittest.equals('foo')); 1992 unittest.expect(o.operationId, unittest.equals('foo'));
1993 checkUnnamed1818(o.statements); 1993 checkUnnamed1922(o.statements);
1994 } 1994 }
1995 buildCounterUpdateDatabaseDdlRequest--; 1995 buildCounterUpdateDatabaseDdlRequest--;
1996 } 1996 }
1997 1997
1998 core.int buildCounterUpdateInstanceMetadata = 0; 1998 core.int buildCounterUpdateInstanceMetadata = 0;
1999 buildUpdateInstanceMetadata() { 1999 buildUpdateInstanceMetadata() {
2000 var o = new api.UpdateInstanceMetadata(); 2000 var o = new api.UpdateInstanceMetadata();
2001 buildCounterUpdateInstanceMetadata++; 2001 buildCounterUpdateInstanceMetadata++;
2002 if (buildCounterUpdateInstanceMetadata < 3) { 2002 if (buildCounterUpdateInstanceMetadata < 3) {
2003 o.cancelTime = "foo"; 2003 o.cancelTime = "foo";
(...skipping 30 matching lines...) Expand all
2034 2034
2035 checkUpdateInstanceRequest(api.UpdateInstanceRequest o) { 2035 checkUpdateInstanceRequest(api.UpdateInstanceRequest o) {
2036 buildCounterUpdateInstanceRequest++; 2036 buildCounterUpdateInstanceRequest++;
2037 if (buildCounterUpdateInstanceRequest < 3) { 2037 if (buildCounterUpdateInstanceRequest < 3) {
2038 unittest.expect(o.fieldMask, unittest.equals('foo')); 2038 unittest.expect(o.fieldMask, unittest.equals('foo'));
2039 checkInstance(o.instance); 2039 checkInstance(o.instance);
2040 } 2040 }
2041 buildCounterUpdateInstanceRequest--; 2041 buildCounterUpdateInstanceRequest--;
2042 } 2042 }
2043 2043
2044 buildUnnamed1819() { 2044 buildUnnamed1923() {
2045 var o = new core.List<core.String>(); 2045 var o = new core.List<core.String>();
2046 o.add("foo"); 2046 o.add("foo");
2047 o.add("foo"); 2047 o.add("foo");
2048 return o; 2048 return o;
2049 } 2049 }
2050 2050
2051 checkUnnamed1819(core.List<core.String> o) { 2051 checkUnnamed1923(core.List<core.String> o) {
2052 unittest.expect(o, unittest.hasLength(2)); 2052 unittest.expect(o, unittest.hasLength(2));
2053 unittest.expect(o[0], unittest.equals('foo')); 2053 unittest.expect(o[0], unittest.equals('foo'));
2054 unittest.expect(o[1], unittest.equals('foo')); 2054 unittest.expect(o[1], unittest.equals('foo'));
2055 } 2055 }
2056 2056
2057 buildUnnamed1820() { 2057 buildUnnamed1924() {
2058 var o = new core.List<core.Object>(); 2058 var o = new core.List<core.Object>();
2059 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 2059 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
2060 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 2060 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
2061 return o; 2061 return o;
2062 } 2062 }
2063 2063
2064 checkUnnamed1820(core.List<core.Object> o) { 2064 checkUnnamed1924(core.List<core.Object> o) {
2065 unittest.expect(o, unittest.hasLength(2)); 2065 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')); 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'));
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')); 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'));
2068 } 2068 }
2069 2069
2070 buildUnnamed1821() { 2070 buildUnnamed1925() {
2071 var o = new core.List<core.List<core.Object>>(); 2071 var o = new core.List<core.List<core.Object>>();
2072 o.add(buildUnnamed1820()); 2072 o.add(buildUnnamed1924());
2073 o.add(buildUnnamed1820()); 2073 o.add(buildUnnamed1924());
2074 return o; 2074 return o;
2075 } 2075 }
2076 2076
2077 checkUnnamed1821(core.List<core.List<core.Object>> o) { 2077 checkUnnamed1925(core.List<core.List<core.Object>> o) {
2078 unittest.expect(o, unittest.hasLength(2)); 2078 unittest.expect(o, unittest.hasLength(2));
2079 checkUnnamed1820(o[0]); 2079 checkUnnamed1924(o[0]);
2080 checkUnnamed1820(o[1]); 2080 checkUnnamed1924(o[1]);
2081 } 2081 }
2082 2082
2083 core.int buildCounterWrite = 0; 2083 core.int buildCounterWrite = 0;
2084 buildWrite() { 2084 buildWrite() {
2085 var o = new api.Write(); 2085 var o = new api.Write();
2086 buildCounterWrite++; 2086 buildCounterWrite++;
2087 if (buildCounterWrite < 3) { 2087 if (buildCounterWrite < 3) {
2088 o.columns = buildUnnamed1819(); 2088 o.columns = buildUnnamed1923();
2089 o.table = "foo"; 2089 o.table = "foo";
2090 o.values = buildUnnamed1821(); 2090 o.values = buildUnnamed1925();
2091 } 2091 }
2092 buildCounterWrite--; 2092 buildCounterWrite--;
2093 return o; 2093 return o;
2094 } 2094 }
2095 2095
2096 checkWrite(api.Write o) { 2096 checkWrite(api.Write o) {
2097 buildCounterWrite++; 2097 buildCounterWrite++;
2098 if (buildCounterWrite < 3) { 2098 if (buildCounterWrite < 3) {
2099 checkUnnamed1819(o.columns); 2099 checkUnnamed1923(o.columns);
2100 unittest.expect(o.table, unittest.equals('foo')); 2100 unittest.expect(o.table, unittest.equals('foo'));
2101 checkUnnamed1821(o.values); 2101 checkUnnamed1925(o.values);
2102 } 2102 }
2103 buildCounterWrite--; 2103 buildCounterWrite--;
2104 } 2104 }
2105 2105
2106 2106
2107 main() { 2107 main() {
2108 unittest.group("obj-schema-AuditConfig", () { 2108 unittest.group("obj-schema-AuditConfig", () {
2109 unittest.test("to-json--from-json", () { 2109 unittest.test("to-json--from-json", () {
2110 var o = buildAuditConfig(); 2110 var o = buildAuditConfig();
2111 var od = new api.AuditConfig.fromJson(o.toJson()); 2111 var od = new api.AuditConfig.fromJson(o.toJson());
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 res.get(arg_name).then(unittest.expectAsync(((api.InstanceConfig response) { 2698 res.get(arg_name).then(unittest.expectAsync(((api.InstanceConfig response) {
2699 checkInstanceConfig(response); 2699 checkInstanceConfig(response);
2700 }))); 2700 })));
2701 }); 2701 });
2702 2702
2703 unittest.test("method--list", () { 2703 unittest.test("method--list", () {
2704 2704
2705 var mock = new HttpServerMock(); 2705 var mock = new HttpServerMock();
2706 api.ProjectsInstanceConfigsResourceApi res = new api.SpannerApi(mock).proj ects.instanceConfigs; 2706 api.ProjectsInstanceConfigsResourceApi res = new api.SpannerApi(mock).proj ects.instanceConfigs;
2707 var arg_parent = "foo"; 2707 var arg_parent = "foo";
2708 var arg_pageSize = 42;
2708 var arg_pageToken = "foo"; 2709 var arg_pageToken = "foo";
2709 var arg_pageSize = 42;
2710 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2710 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2711 var path = (req.url).path; 2711 var path = (req.url).path;
2712 var pathOffset = 0; 2712 var pathOffset = 0;
2713 var index; 2713 var index;
2714 var subPart; 2714 var subPart;
2715 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2715 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2716 pathOffset += 1; 2716 pathOffset += 1;
2717 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 2717 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
2718 pathOffset += 3; 2718 pathOffset += 3;
2719 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 2719 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
2720 2720
2721 var query = (req.url).query; 2721 var query = (req.url).query;
2722 var queryOffset = 0; 2722 var queryOffset = 0;
2723 var queryMap = {}; 2723 var queryMap = {};
2724 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2724 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2725 parseBool(n) { 2725 parseBool(n) {
2726 if (n == "true") return true; 2726 if (n == "true") return true;
2727 if (n == "false") return false; 2727 if (n == "false") return false;
2728 if (n == null) return null; 2728 if (n == null) return null;
2729 throw new core.ArgumentError("Invalid boolean: $n"); 2729 throw new core.ArgumentError("Invalid boolean: $n");
2730 } 2730 }
2731 if (query.length > 0) { 2731 if (query.length > 0) {
2732 for (var part in query.split("&")) { 2732 for (var part in query.split("&")) {
2733 var keyvalue = part.split("="); 2733 var keyvalue = part.split("=");
2734 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2734 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2735 } 2735 }
2736 } 2736 }
2737 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2737 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2738 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2738 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2739 2739
2740 2740
2741 var h = { 2741 var h = {
2742 "content-type" : "application/json; charset=utf-8", 2742 "content-type" : "application/json; charset=utf-8",
2743 }; 2743 };
2744 var resp = convert.JSON.encode(buildListInstanceConfigsResponse()); 2744 var resp = convert.JSON.encode(buildListInstanceConfigsResponse());
2745 return new async.Future.value(stringResponse(200, h, resp)); 2745 return new async.Future.value(stringResponse(200, h, resp));
2746 }), true); 2746 }), true);
2747 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListInstanceConfigsResponse response) { 2747 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListInstanceConfigsResponse response) {
2748 checkListInstanceConfigsResponse(response); 2748 checkListInstanceConfigsResponse(response);
2749 }))); 2749 })));
2750 }); 2750 });
2751 2751
2752 }); 2752 });
2753 2753
2754 2754
2755 unittest.group("resource-ProjectsInstancesResourceApi", () { 2755 unittest.group("resource-ProjectsInstancesResourceApi", () {
2756 unittest.test("method--create", () { 2756 unittest.test("method--create", () {
2757 2757
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2939 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap i.Policy response) { 2939 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap i.Policy response) {
2940 checkPolicy(response); 2940 checkPolicy(response);
2941 }))); 2941 })));
2942 }); 2942 });
2943 2943
2944 unittest.test("method--list", () { 2944 unittest.test("method--list", () {
2945 2945
2946 var mock = new HttpServerMock(); 2946 var mock = new HttpServerMock();
2947 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances; 2947 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances;
2948 var arg_parent = "foo"; 2948 var arg_parent = "foo";
2949 var arg_filter = "foo";
2949 var arg_pageToken = "foo"; 2950 var arg_pageToken = "foo";
2950 var arg_pageSize = 42; 2951 var arg_pageSize = 42;
2951 var arg_filter = "foo";
2952 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2952 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2953 var path = (req.url).path; 2953 var path = (req.url).path;
2954 var pathOffset = 0; 2954 var pathOffset = 0;
2955 var index; 2955 var index;
2956 var subPart; 2956 var subPart;
2957 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2957 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2958 pathOffset += 1; 2958 pathOffset += 1;
2959 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 2959 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
2960 pathOffset += 3; 2960 pathOffset += 3;
2961 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 2961 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
2962 2962
2963 var query = (req.url).query; 2963 var query = (req.url).query;
2964 var queryOffset = 0; 2964 var queryOffset = 0;
2965 var queryMap = {}; 2965 var queryMap = {};
2966 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2966 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2967 parseBool(n) { 2967 parseBool(n) {
2968 if (n == "true") return true; 2968 if (n == "true") return true;
2969 if (n == "false") return false; 2969 if (n == "false") return false;
2970 if (n == null) return null; 2970 if (n == null) return null;
2971 throw new core.ArgumentError("Invalid boolean: $n"); 2971 throw new core.ArgumentError("Invalid boolean: $n");
2972 } 2972 }
2973 if (query.length > 0) { 2973 if (query.length > 0) {
2974 for (var part in query.split("&")) { 2974 for (var part in query.split("&")) {
2975 var keyvalue = part.split("="); 2975 var keyvalue = part.split("=");
2976 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2976 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2977 } 2977 }
2978 } 2978 }
2979 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2979 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2980 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2980 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2981 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2981 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2982 2982
2983 2983
2984 var h = { 2984 var h = {
2985 "content-type" : "application/json; charset=utf-8", 2985 "content-type" : "application/json; charset=utf-8",
2986 }; 2986 };
2987 var resp = convert.JSON.encode(buildListInstancesResponse()); 2987 var resp = convert.JSON.encode(buildListInstancesResponse());
2988 return new async.Future.value(stringResponse(200, h, resp)); 2988 return new async.Future.value(stringResponse(200, h, resp));
2989 }), true); 2989 }), true);
2990 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, fil ter: arg_filter).then(unittest.expectAsync(((api.ListInstancesResponse response) { 2990 res.list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesResponse response) {
2991 checkListInstancesResponse(response); 2991 checkListInstancesResponse(response);
2992 }))); 2992 })));
2993 }); 2993 });
2994 2994
2995 unittest.test("method--patch", () { 2995 unittest.test("method--patch", () {
2996 2996
2997 var mock = new HttpServerMock(); 2997 var mock = new HttpServerMock();
2998 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances; 2998 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances;
2999 var arg_request = buildUpdateInstanceRequest(); 2999 var arg_request = buildUpdateInstanceRequest();
3000 var arg_name = "foo"; 3000 var arg_name = "foo";
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3374 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap i.Policy response) { 3374 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap i.Policy response) {
3375 checkPolicy(response); 3375 checkPolicy(response);
3376 }))); 3376 })));
3377 }); 3377 });
3378 3378
3379 unittest.test("method--list", () { 3379 unittest.test("method--list", () {
3380 3380
3381 var mock = new HttpServerMock(); 3381 var mock = new HttpServerMock();
3382 api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).p rojects.instances.databases; 3382 api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).p rojects.instances.databases;
3383 var arg_parent = "foo"; 3383 var arg_parent = "foo";
3384 var arg_pageSize = 42;
3384 var arg_pageToken = "foo"; 3385 var arg_pageToken = "foo";
3385 var arg_pageSize = 42;
3386 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3386 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3387 var path = (req.url).path; 3387 var path = (req.url).path;
3388 var pathOffset = 0; 3388 var pathOffset = 0;
3389 var index; 3389 var index;
3390 var subPart; 3390 var subPart;
3391 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3391 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3392 pathOffset += 1; 3392 pathOffset += 1;
3393 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 3393 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
3394 pathOffset += 3; 3394 pathOffset += 3;
3395 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 3395 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
3396 3396
3397 var query = (req.url).query; 3397 var query = (req.url).query;
3398 var queryOffset = 0; 3398 var queryOffset = 0;
3399 var queryMap = {}; 3399 var queryMap = {};
3400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3401 parseBool(n) { 3401 parseBool(n) {
3402 if (n == "true") return true; 3402 if (n == "true") return true;
3403 if (n == "false") return false; 3403 if (n == "false") return false;
3404 if (n == null) return null; 3404 if (n == null) return null;
3405 throw new core.ArgumentError("Invalid boolean: $n"); 3405 throw new core.ArgumentError("Invalid boolean: $n");
3406 } 3406 }
3407 if (query.length > 0) { 3407 if (query.length > 0) {
3408 for (var part in query.split("&")) { 3408 for (var part in query.split("&")) {
3409 var keyvalue = part.split("="); 3409 var keyvalue = part.split("=");
3410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3411 } 3411 }
3412 } 3412 }
3413 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3413 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3414 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3414 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3415 3415
3416 3416
3417 var h = { 3417 var h = {
3418 "content-type" : "application/json; charset=utf-8", 3418 "content-type" : "application/json; charset=utf-8",
3419 }; 3419 };
3420 var resp = convert.JSON.encode(buildListDatabasesResponse()); 3420 var resp = convert.JSON.encode(buildListDatabasesResponse());
3421 return new async.Future.value(stringResponse(200, h, resp)); 3421 return new async.Future.value(stringResponse(200, h, resp));
3422 }), true); 3422 }), true);
3423 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListDatabasesResponse response) { 3423 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListDatabasesResponse response) {
3424 checkListDatabasesResponse(response); 3424 checkListDatabasesResponse(response);
3425 }))); 3425 })));
3426 }); 3426 });
3427 3427
3428 unittest.test("method--setIamPolicy", () { 3428 unittest.test("method--setIamPolicy", () {
3429 3429
3430 var mock = new HttpServerMock(); 3430 var mock = new HttpServerMock();
3431 api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).p rojects.instances.databases; 3431 api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).p rojects.instances.databases;
3432 var arg_request = buildSetIamPolicyRequest(); 3432 var arg_request = buildSetIamPolicyRequest();
3433 var arg_resource = "foo"; 3433 var arg_resource = "foo";
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
4381 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { 4381 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) {
4382 checkOperation(response); 4382 checkOperation(response);
4383 }))); 4383 })));
4384 }); 4384 });
4385 4385
4386 unittest.test("method--list", () { 4386 unittest.test("method--list", () {
4387 4387
4388 var mock = new HttpServerMock(); 4388 var mock = new HttpServerMock();
4389 api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock). projects.instances.operations; 4389 api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock). projects.instances.operations;
4390 var arg_name = "foo"; 4390 var arg_name = "foo";
4391 var arg_filter = "foo";
4391 var arg_pageToken = "foo"; 4392 var arg_pageToken = "foo";
4392 var arg_pageSize = 42; 4393 var arg_pageSize = 42;
4393 var arg_filter = "foo";
4394 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4394 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4395 var path = (req.url).path; 4395 var path = (req.url).path;
4396 var pathOffset = 0; 4396 var pathOffset = 0;
4397 var index; 4397 var index;
4398 var subPart; 4398 var subPart;
4399 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4399 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4400 pathOffset += 1; 4400 pathOffset += 1;
4401 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 4401 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
4402 pathOffset += 3; 4402 pathOffset += 3;
4403 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 4403 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
4404 4404
4405 var query = (req.url).query; 4405 var query = (req.url).query;
4406 var queryOffset = 0; 4406 var queryOffset = 0;
4407 var queryMap = {}; 4407 var queryMap = {};
4408 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4408 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4409 parseBool(n) { 4409 parseBool(n) {
4410 if (n == "true") return true; 4410 if (n == "true") return true;
4411 if (n == "false") return false; 4411 if (n == "false") return false;
4412 if (n == null) return null; 4412 if (n == null) return null;
4413 throw new core.ArgumentError("Invalid boolean: $n"); 4413 throw new core.ArgumentError("Invalid boolean: $n");
4414 } 4414 }
4415 if (query.length > 0) { 4415 if (query.length > 0) {
4416 for (var part in query.split("&")) { 4416 for (var part in query.split("&")) {
4417 var keyvalue = part.split("="); 4417 var keyvalue = part.split("=");
4418 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4418 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4419 } 4419 }
4420 } 4420 }
4421 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
4421 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4422 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4422 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4423 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4423 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
4424 4424
4425 4425
4426 var h = { 4426 var h = {
4427 "content-type" : "application/json; charset=utf-8", 4427 "content-type" : "application/json; charset=utf-8",
4428 }; 4428 };
4429 var resp = convert.JSON.encode(buildListOperationsResponse()); 4429 var resp = convert.JSON.encode(buildListOperationsResponse());
4430 return new async.Future.value(stringResponse(200, h, resp)); 4430 return new async.Future.value(stringResponse(200, h, resp));
4431 }), true); 4431 }), true);
4432 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte r: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response) { 4432 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) {
4433 checkListOperationsResponse(response); 4433 checkListOperationsResponse(response);
4434 }))); 4434 })));
4435 }); 4435 });
4436 4436
4437 }); 4437 });
4438 4438
4439 4439
4440 } 4440 }
4441 4441
OLDNEW
« no previous file with comments | « generated/googleapis/test/sourcerepo/v1_test.dart ('k') | generated/googleapis/test/storage/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698