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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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:test/test.dart' as unittest; 10 import 'package:test/test.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<core.String, core.String> headers, core.String bod y) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed2087() { 54 buildUnnamed2105() {
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 checkUnnamed2087(core.List<api.AuditLogConfig> o) { 61 checkUnnamed2105(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 buildUnnamed2088() { 67 buildUnnamed2106() {
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 checkUnnamed2088(core.List<core.String> o) { 74 checkUnnamed2106(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 = buildUnnamed2087(); 85 o.auditLogConfigs = buildUnnamed2105();
86 o.exemptedMembers = buildUnnamed2088(); 86 o.exemptedMembers = buildUnnamed2106();
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 checkUnnamed2087(o.auditLogConfigs); 96 checkUnnamed2105(o.auditLogConfigs);
97 checkUnnamed2088(o.exemptedMembers); 97 checkUnnamed2106(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 buildUnnamed2089() { 103 buildUnnamed2107() {
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 checkUnnamed2089(core.List<core.String> o) { 110 checkUnnamed2107(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 = buildUnnamed2089(); 121 o.exemptedMembers = buildUnnamed2107();
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 checkUnnamed2089(o.exemptedMembers); 131 checkUnnamed2107(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 buildCounterAuthorizationLoggingOptions = 0;
138 buildAuthorizationLoggingOptions() {
139 var o = new api.AuthorizationLoggingOptions();
140 buildCounterAuthorizationLoggingOptions++;
141 if (buildCounterAuthorizationLoggingOptions < 3) {
142 o.permissionType = "foo";
143 }
144 buildCounterAuthorizationLoggingOptions--;
145 return o;
146 }
147
148 checkAuthorizationLoggingOptions(api.AuthorizationLoggingOptions o) {
149 buildCounterAuthorizationLoggingOptions++;
150 if (buildCounterAuthorizationLoggingOptions < 3) {
151 unittest.expect(o.permissionType, unittest.equals('foo'));
152 }
153 buildCounterAuthorizationLoggingOptions--;
154 }
155
137 core.int buildCounterBeginTransactionRequest = 0; 156 core.int buildCounterBeginTransactionRequest = 0;
138 buildBeginTransactionRequest() { 157 buildBeginTransactionRequest() {
139 var o = new api.BeginTransactionRequest(); 158 var o = new api.BeginTransactionRequest();
140 buildCounterBeginTransactionRequest++; 159 buildCounterBeginTransactionRequest++;
141 if (buildCounterBeginTransactionRequest < 3) { 160 if (buildCounterBeginTransactionRequest < 3) {
142 o.options = buildTransactionOptions(); 161 o.options = buildTransactionOptions();
143 } 162 }
144 buildCounterBeginTransactionRequest--; 163 buildCounterBeginTransactionRequest--;
145 return o; 164 return o;
146 } 165 }
147 166
148 checkBeginTransactionRequest(api.BeginTransactionRequest o) { 167 checkBeginTransactionRequest(api.BeginTransactionRequest o) {
149 buildCounterBeginTransactionRequest++; 168 buildCounterBeginTransactionRequest++;
150 if (buildCounterBeginTransactionRequest < 3) { 169 if (buildCounterBeginTransactionRequest < 3) {
151 checkTransactionOptions(o.options); 170 checkTransactionOptions(o.options);
152 } 171 }
153 buildCounterBeginTransactionRequest--; 172 buildCounterBeginTransactionRequest--;
154 } 173 }
155 174
156 buildUnnamed2090() { 175 buildUnnamed2108() {
157 var o = new core.List<core.String>(); 176 var o = new core.List<core.String>();
158 o.add("foo"); 177 o.add("foo");
159 o.add("foo"); 178 o.add("foo");
160 return o; 179 return o;
161 } 180 }
162 181
163 checkUnnamed2090(core.List<core.String> o) { 182 checkUnnamed2108(core.List<core.String> o) {
164 unittest.expect(o, unittest.hasLength(2)); 183 unittest.expect(o, unittest.hasLength(2));
165 unittest.expect(o[0], unittest.equals('foo')); 184 unittest.expect(o[0], unittest.equals('foo'));
166 unittest.expect(o[1], unittest.equals('foo')); 185 unittest.expect(o[1], unittest.equals('foo'));
167 } 186 }
168 187
169 core.int buildCounterBinding = 0; 188 core.int buildCounterBinding = 0;
170 buildBinding() { 189 buildBinding() {
171 var o = new api.Binding(); 190 var o = new api.Binding();
172 buildCounterBinding++; 191 buildCounterBinding++;
173 if (buildCounterBinding < 3) { 192 if (buildCounterBinding < 3) {
174 o.condition = buildExpr(); 193 o.condition = buildExpr();
175 o.members = buildUnnamed2090(); 194 o.members = buildUnnamed2108();
176 o.role = "foo"; 195 o.role = "foo";
177 } 196 }
178 buildCounterBinding--; 197 buildCounterBinding--;
179 return o; 198 return o;
180 } 199 }
181 200
182 checkBinding(api.Binding o) { 201 checkBinding(api.Binding o) {
183 buildCounterBinding++; 202 buildCounterBinding++;
184 if (buildCounterBinding < 3) { 203 if (buildCounterBinding < 3) {
185 checkExpr(o.condition); 204 checkExpr(o.condition);
186 checkUnnamed2090(o.members); 205 checkUnnamed2108(o.members);
187 unittest.expect(o.role, unittest.equals('foo')); 206 unittest.expect(o.role, unittest.equals('foo'));
188 } 207 }
189 buildCounterBinding--; 208 buildCounterBinding--;
190 } 209 }
191 210
192 core.int buildCounterChildLink = 0; 211 core.int buildCounterChildLink = 0;
193 buildChildLink() { 212 buildChildLink() {
194 var o = new api.ChildLink(); 213 var o = new api.ChildLink();
195 buildCounterChildLink++; 214 buildCounterChildLink++;
196 if (buildCounterChildLink < 3) { 215 if (buildCounterChildLink < 3) {
(...skipping 13 matching lines...) Expand all
210 unittest.expect(o.variable, unittest.equals('foo')); 229 unittest.expect(o.variable, unittest.equals('foo'));
211 } 230 }
212 buildCounterChildLink--; 231 buildCounterChildLink--;
213 } 232 }
214 233
215 core.int buildCounterCloudAuditOptions = 0; 234 core.int buildCounterCloudAuditOptions = 0;
216 buildCloudAuditOptions() { 235 buildCloudAuditOptions() {
217 var o = new api.CloudAuditOptions(); 236 var o = new api.CloudAuditOptions();
218 buildCounterCloudAuditOptions++; 237 buildCounterCloudAuditOptions++;
219 if (buildCounterCloudAuditOptions < 3) { 238 if (buildCounterCloudAuditOptions < 3) {
239 o.authorizationLoggingOptions = buildAuthorizationLoggingOptions();
220 o.logName = "foo"; 240 o.logName = "foo";
221 } 241 }
222 buildCounterCloudAuditOptions--; 242 buildCounterCloudAuditOptions--;
223 return o; 243 return o;
224 } 244 }
225 245
226 checkCloudAuditOptions(api.CloudAuditOptions o) { 246 checkCloudAuditOptions(api.CloudAuditOptions o) {
227 buildCounterCloudAuditOptions++; 247 buildCounterCloudAuditOptions++;
228 if (buildCounterCloudAuditOptions < 3) { 248 if (buildCounterCloudAuditOptions < 3) {
249 checkAuthorizationLoggingOptions(o.authorizationLoggingOptions);
229 unittest.expect(o.logName, unittest.equals('foo')); 250 unittest.expect(o.logName, unittest.equals('foo'));
230 } 251 }
231 buildCounterCloudAuditOptions--; 252 buildCounterCloudAuditOptions--;
232 } 253 }
233 254
234 buildUnnamed2091() { 255 buildUnnamed2109() {
235 var o = new core.List<api.Mutation>(); 256 var o = new core.List<api.Mutation>();
236 o.add(buildMutation()); 257 o.add(buildMutation());
237 o.add(buildMutation()); 258 o.add(buildMutation());
238 return o; 259 return o;
239 } 260 }
240 261
241 checkUnnamed2091(core.List<api.Mutation> o) { 262 checkUnnamed2109(core.List<api.Mutation> o) {
242 unittest.expect(o, unittest.hasLength(2)); 263 unittest.expect(o, unittest.hasLength(2));
243 checkMutation(o[0]); 264 checkMutation(o[0]);
244 checkMutation(o[1]); 265 checkMutation(o[1]);
245 } 266 }
246 267
247 core.int buildCounterCommitRequest = 0; 268 core.int buildCounterCommitRequest = 0;
248 buildCommitRequest() { 269 buildCommitRequest() {
249 var o = new api.CommitRequest(); 270 var o = new api.CommitRequest();
250 buildCounterCommitRequest++; 271 buildCounterCommitRequest++;
251 if (buildCounterCommitRequest < 3) { 272 if (buildCounterCommitRequest < 3) {
252 o.mutations = buildUnnamed2091(); 273 o.mutations = buildUnnamed2109();
253 o.singleUseTransaction = buildTransactionOptions(); 274 o.singleUseTransaction = buildTransactionOptions();
254 o.transactionId = "foo"; 275 o.transactionId = "foo";
255 } 276 }
256 buildCounterCommitRequest--; 277 buildCounterCommitRequest--;
257 return o; 278 return o;
258 } 279 }
259 280
260 checkCommitRequest(api.CommitRequest o) { 281 checkCommitRequest(api.CommitRequest o) {
261 buildCounterCommitRequest++; 282 buildCounterCommitRequest++;
262 if (buildCounterCommitRequest < 3) { 283 if (buildCounterCommitRequest < 3) {
263 checkUnnamed2091(o.mutations); 284 checkUnnamed2109(o.mutations);
264 checkTransactionOptions(o.singleUseTransaction); 285 checkTransactionOptions(o.singleUseTransaction);
265 unittest.expect(o.transactionId, unittest.equals('foo')); 286 unittest.expect(o.transactionId, unittest.equals('foo'));
266 } 287 }
267 buildCounterCommitRequest--; 288 buildCounterCommitRequest--;
268 } 289 }
269 290
270 core.int buildCounterCommitResponse = 0; 291 core.int buildCounterCommitResponse = 0;
271 buildCommitResponse() { 292 buildCommitResponse() {
272 var o = new api.CommitResponse(); 293 var o = new api.CommitResponse();
273 buildCounterCommitResponse++; 294 buildCounterCommitResponse++;
274 if (buildCounterCommitResponse < 3) { 295 if (buildCounterCommitResponse < 3) {
275 o.commitTimestamp = "foo"; 296 o.commitTimestamp = "foo";
276 } 297 }
277 buildCounterCommitResponse--; 298 buildCounterCommitResponse--;
278 return o; 299 return o;
279 } 300 }
280 301
281 checkCommitResponse(api.CommitResponse o) { 302 checkCommitResponse(api.CommitResponse o) {
282 buildCounterCommitResponse++; 303 buildCounterCommitResponse++;
283 if (buildCounterCommitResponse < 3) { 304 if (buildCounterCommitResponse < 3) {
284 unittest.expect(o.commitTimestamp, unittest.equals('foo')); 305 unittest.expect(o.commitTimestamp, unittest.equals('foo'));
285 } 306 }
286 buildCounterCommitResponse--; 307 buildCounterCommitResponse--;
287 } 308 }
288 309
289 buildUnnamed2092() { 310 buildUnnamed2110() {
290 var o = new core.List<core.String>(); 311 var o = new core.List<core.String>();
291 o.add("foo"); 312 o.add("foo");
292 o.add("foo"); 313 o.add("foo");
293 return o; 314 return o;
294 } 315 }
295 316
296 checkUnnamed2092(core.List<core.String> o) { 317 checkUnnamed2110(core.List<core.String> o) {
297 unittest.expect(o, unittest.hasLength(2)); 318 unittest.expect(o, unittest.hasLength(2));
298 unittest.expect(o[0], unittest.equals('foo')); 319 unittest.expect(o[0], unittest.equals('foo'));
299 unittest.expect(o[1], unittest.equals('foo')); 320 unittest.expect(o[1], unittest.equals('foo'));
300 } 321 }
301 322
302 core.int buildCounterCondition = 0; 323 core.int buildCounterCondition = 0;
303 buildCondition() { 324 buildCondition() {
304 var o = new api.Condition(); 325 var o = new api.Condition();
305 buildCounterCondition++; 326 buildCounterCondition++;
306 if (buildCounterCondition < 3) { 327 if (buildCounterCondition < 3) {
307 o.iam = "foo"; 328 o.iam = "foo";
308 o.op = "foo"; 329 o.op = "foo";
309 o.svc = "foo"; 330 o.svc = "foo";
310 o.sys = "foo"; 331 o.sys = "foo";
311 o.value = "foo"; 332 o.value = "foo";
312 o.values = buildUnnamed2092(); 333 o.values = buildUnnamed2110();
313 } 334 }
314 buildCounterCondition--; 335 buildCounterCondition--;
315 return o; 336 return o;
316 } 337 }
317 338
318 checkCondition(api.Condition o) { 339 checkCondition(api.Condition o) {
319 buildCounterCondition++; 340 buildCounterCondition++;
320 if (buildCounterCondition < 3) { 341 if (buildCounterCondition < 3) {
321 unittest.expect(o.iam, unittest.equals('foo')); 342 unittest.expect(o.iam, unittest.equals('foo'));
322 unittest.expect(o.op, unittest.equals('foo')); 343 unittest.expect(o.op, unittest.equals('foo'));
323 unittest.expect(o.svc, unittest.equals('foo')); 344 unittest.expect(o.svc, unittest.equals('foo'));
324 unittest.expect(o.sys, unittest.equals('foo')); 345 unittest.expect(o.sys, unittest.equals('foo'));
325 unittest.expect(o.value, unittest.equals('foo')); 346 unittest.expect(o.value, unittest.equals('foo'));
326 checkUnnamed2092(o.values); 347 checkUnnamed2110(o.values);
327 } 348 }
328 buildCounterCondition--; 349 buildCounterCondition--;
329 } 350 }
330 351
331 core.int buildCounterCounterOptions = 0; 352 core.int buildCounterCounterOptions = 0;
332 buildCounterOptions() { 353 buildCounterOptions() {
333 var o = new api.CounterOptions(); 354 var o = new api.CounterOptions();
334 buildCounterCounterOptions++; 355 buildCounterCounterOptions++;
335 if (buildCounterCounterOptions < 3) { 356 if (buildCounterCounterOptions < 3) {
336 o.field = "foo"; 357 o.field = "foo";
(...skipping 24 matching lines...) Expand all
361 } 382 }
362 383
363 checkCreateDatabaseMetadata(api.CreateDatabaseMetadata o) { 384 checkCreateDatabaseMetadata(api.CreateDatabaseMetadata o) {
364 buildCounterCreateDatabaseMetadata++; 385 buildCounterCreateDatabaseMetadata++;
365 if (buildCounterCreateDatabaseMetadata < 3) { 386 if (buildCounterCreateDatabaseMetadata < 3) {
366 unittest.expect(o.database, unittest.equals('foo')); 387 unittest.expect(o.database, unittest.equals('foo'));
367 } 388 }
368 buildCounterCreateDatabaseMetadata--; 389 buildCounterCreateDatabaseMetadata--;
369 } 390 }
370 391
371 buildUnnamed2093() { 392 buildUnnamed2111() {
372 var o = new core.List<core.String>(); 393 var o = new core.List<core.String>();
373 o.add("foo"); 394 o.add("foo");
374 o.add("foo"); 395 o.add("foo");
375 return o; 396 return o;
376 } 397 }
377 398
378 checkUnnamed2093(core.List<core.String> o) { 399 checkUnnamed2111(core.List<core.String> o) {
379 unittest.expect(o, unittest.hasLength(2)); 400 unittest.expect(o, unittest.hasLength(2));
380 unittest.expect(o[0], unittest.equals('foo')); 401 unittest.expect(o[0], unittest.equals('foo'));
381 unittest.expect(o[1], unittest.equals('foo')); 402 unittest.expect(o[1], unittest.equals('foo'));
382 } 403 }
383 404
384 core.int buildCounterCreateDatabaseRequest = 0; 405 core.int buildCounterCreateDatabaseRequest = 0;
385 buildCreateDatabaseRequest() { 406 buildCreateDatabaseRequest() {
386 var o = new api.CreateDatabaseRequest(); 407 var o = new api.CreateDatabaseRequest();
387 buildCounterCreateDatabaseRequest++; 408 buildCounterCreateDatabaseRequest++;
388 if (buildCounterCreateDatabaseRequest < 3) { 409 if (buildCounterCreateDatabaseRequest < 3) {
389 o.createStatement = "foo"; 410 o.createStatement = "foo";
390 o.extraStatements = buildUnnamed2093(); 411 o.extraStatements = buildUnnamed2111();
391 } 412 }
392 buildCounterCreateDatabaseRequest--; 413 buildCounterCreateDatabaseRequest--;
393 return o; 414 return o;
394 } 415 }
395 416
396 checkCreateDatabaseRequest(api.CreateDatabaseRequest o) { 417 checkCreateDatabaseRequest(api.CreateDatabaseRequest o) {
397 buildCounterCreateDatabaseRequest++; 418 buildCounterCreateDatabaseRequest++;
398 if (buildCounterCreateDatabaseRequest < 3) { 419 if (buildCounterCreateDatabaseRequest < 3) {
399 unittest.expect(o.createStatement, unittest.equals('foo')); 420 unittest.expect(o.createStatement, unittest.equals('foo'));
400 checkUnnamed2093(o.extraStatements); 421 checkUnnamed2111(o.extraStatements);
401 } 422 }
402 buildCounterCreateDatabaseRequest--; 423 buildCounterCreateDatabaseRequest--;
403 } 424 }
404 425
405 core.int buildCounterCreateInstanceMetadata = 0; 426 core.int buildCounterCreateInstanceMetadata = 0;
406 buildCreateInstanceMetadata() { 427 buildCreateInstanceMetadata() {
407 var o = new api.CreateInstanceMetadata(); 428 var o = new api.CreateInstanceMetadata();
408 buildCounterCreateInstanceMetadata++; 429 buildCounterCreateInstanceMetadata++;
409 if (buildCounterCreateInstanceMetadata < 3) { 430 if (buildCounterCreateInstanceMetadata < 3) {
410 o.cancelTime = "foo"; 431 o.cancelTime = "foo";
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 return o; 538 return o;
518 } 539 }
519 540
520 checkEmpty(api.Empty o) { 541 checkEmpty(api.Empty o) {
521 buildCounterEmpty++; 542 buildCounterEmpty++;
522 if (buildCounterEmpty < 3) { 543 if (buildCounterEmpty < 3) {
523 } 544 }
524 buildCounterEmpty--; 545 buildCounterEmpty--;
525 } 546 }
526 547
527 buildUnnamed2094() { 548 buildUnnamed2112() {
528 var o = new core.Map<core.String, api.Type>(); 549 var o = new core.Map<core.String, api.Type>();
529 o["x"] = buildType(); 550 o["x"] = buildType();
530 o["y"] = buildType(); 551 o["y"] = buildType();
531 return o; 552 return o;
532 } 553 }
533 554
534 checkUnnamed2094(core.Map<core.String, api.Type> o) { 555 checkUnnamed2112(core.Map<core.String, api.Type> o) {
535 unittest.expect(o, unittest.hasLength(2)); 556 unittest.expect(o, unittest.hasLength(2));
536 checkType(o["x"]); 557 checkType(o["x"]);
537 checkType(o["y"]); 558 checkType(o["y"]);
538 } 559 }
539 560
540 buildUnnamed2095() { 561 buildUnnamed2113() {
541 var o = new core.Map<core.String, core.Object>(); 562 var o = new core.Map<core.String, core.Object>();
542 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 563 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
543 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 564 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
544 return o; 565 return o;
545 } 566 }
546 567
547 checkUnnamed2095(core.Map<core.String, core.Object> o) { 568 checkUnnamed2113(core.Map<core.String, core.Object> o) {
548 unittest.expect(o, unittest.hasLength(2)); 569 unittest.expect(o, unittest.hasLength(2));
549 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 570 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'));
550 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 571 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'));
551 } 572 }
552 573
553 core.int buildCounterExecuteSqlRequest = 0; 574 core.int buildCounterExecuteSqlRequest = 0;
554 buildExecuteSqlRequest() { 575 buildExecuteSqlRequest() {
555 var o = new api.ExecuteSqlRequest(); 576 var o = new api.ExecuteSqlRequest();
556 buildCounterExecuteSqlRequest++; 577 buildCounterExecuteSqlRequest++;
557 if (buildCounterExecuteSqlRequest < 3) { 578 if (buildCounterExecuteSqlRequest < 3) {
558 o.paramTypes = buildUnnamed2094(); 579 o.paramTypes = buildUnnamed2112();
559 o.params = buildUnnamed2095(); 580 o.params = buildUnnamed2113();
560 o.queryMode = "foo"; 581 o.queryMode = "foo";
561 o.resumeToken = "foo"; 582 o.resumeToken = "foo";
562 o.sql = "foo"; 583 o.sql = "foo";
563 o.transaction = buildTransactionSelector(); 584 o.transaction = buildTransactionSelector();
564 } 585 }
565 buildCounterExecuteSqlRequest--; 586 buildCounterExecuteSqlRequest--;
566 return o; 587 return o;
567 } 588 }
568 589
569 checkExecuteSqlRequest(api.ExecuteSqlRequest o) { 590 checkExecuteSqlRequest(api.ExecuteSqlRequest o) {
570 buildCounterExecuteSqlRequest++; 591 buildCounterExecuteSqlRequest++;
571 if (buildCounterExecuteSqlRequest < 3) { 592 if (buildCounterExecuteSqlRequest < 3) {
572 checkUnnamed2094(o.paramTypes); 593 checkUnnamed2112(o.paramTypes);
573 checkUnnamed2095(o.params); 594 checkUnnamed2113(o.params);
574 unittest.expect(o.queryMode, unittest.equals('foo')); 595 unittest.expect(o.queryMode, unittest.equals('foo'));
575 unittest.expect(o.resumeToken, unittest.equals('foo')); 596 unittest.expect(o.resumeToken, unittest.equals('foo'));
576 unittest.expect(o.sql, unittest.equals('foo')); 597 unittest.expect(o.sql, unittest.equals('foo'));
577 checkTransactionSelector(o.transaction); 598 checkTransactionSelector(o.transaction);
578 } 599 }
579 buildCounterExecuteSqlRequest--; 600 buildCounterExecuteSqlRequest--;
580 } 601 }
581 602
582 core.int buildCounterExpr = 0; 603 core.int buildCounterExpr = 0;
583 buildExpr() { 604 buildExpr() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 639
619 checkField(api.Field o) { 640 checkField(api.Field o) {
620 buildCounterField++; 641 buildCounterField++;
621 if (buildCounterField < 3) { 642 if (buildCounterField < 3) {
622 unittest.expect(o.name, unittest.equals('foo')); 643 unittest.expect(o.name, unittest.equals('foo'));
623 checkType(o.type); 644 checkType(o.type);
624 } 645 }
625 buildCounterField--; 646 buildCounterField--;
626 } 647 }
627 648
628 buildUnnamed2096() { 649 buildUnnamed2114() {
629 var o = new core.List<core.String>(); 650 var o = new core.List<core.String>();
630 o.add("foo"); 651 o.add("foo");
631 o.add("foo"); 652 o.add("foo");
632 return o; 653 return o;
633 } 654 }
634 655
635 checkUnnamed2096(core.List<core.String> o) { 656 checkUnnamed2114(core.List<core.String> o) {
636 unittest.expect(o, unittest.hasLength(2)); 657 unittest.expect(o, unittest.hasLength(2));
637 unittest.expect(o[0], unittest.equals('foo')); 658 unittest.expect(o[0], unittest.equals('foo'));
638 unittest.expect(o[1], unittest.equals('foo')); 659 unittest.expect(o[1], unittest.equals('foo'));
639 } 660 }
640 661
641 core.int buildCounterGetDatabaseDdlResponse = 0; 662 core.int buildCounterGetDatabaseDdlResponse = 0;
642 buildGetDatabaseDdlResponse() { 663 buildGetDatabaseDdlResponse() {
643 var o = new api.GetDatabaseDdlResponse(); 664 var o = new api.GetDatabaseDdlResponse();
644 buildCounterGetDatabaseDdlResponse++; 665 buildCounterGetDatabaseDdlResponse++;
645 if (buildCounterGetDatabaseDdlResponse < 3) { 666 if (buildCounterGetDatabaseDdlResponse < 3) {
646 o.statements = buildUnnamed2096(); 667 o.statements = buildUnnamed2114();
647 } 668 }
648 buildCounterGetDatabaseDdlResponse--; 669 buildCounterGetDatabaseDdlResponse--;
649 return o; 670 return o;
650 } 671 }
651 672
652 checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { 673 checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) {
653 buildCounterGetDatabaseDdlResponse++; 674 buildCounterGetDatabaseDdlResponse++;
654 if (buildCounterGetDatabaseDdlResponse < 3) { 675 if (buildCounterGetDatabaseDdlResponse < 3) {
655 checkUnnamed2096(o.statements); 676 checkUnnamed2114(o.statements);
656 } 677 }
657 buildCounterGetDatabaseDdlResponse--; 678 buildCounterGetDatabaseDdlResponse--;
658 } 679 }
659 680
660 core.int buildCounterGetIamPolicyRequest = 0; 681 core.int buildCounterGetIamPolicyRequest = 0;
661 buildGetIamPolicyRequest() { 682 buildGetIamPolicyRequest() {
662 var o = new api.GetIamPolicyRequest(); 683 var o = new api.GetIamPolicyRequest();
663 buildCounterGetIamPolicyRequest++; 684 buildCounterGetIamPolicyRequest++;
664 if (buildCounterGetIamPolicyRequest < 3) { 685 if (buildCounterGetIamPolicyRequest < 3) {
665 } 686 }
666 buildCounterGetIamPolicyRequest--; 687 buildCounterGetIamPolicyRequest--;
667 return o; 688 return o;
668 } 689 }
669 690
670 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { 691 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
671 buildCounterGetIamPolicyRequest++; 692 buildCounterGetIamPolicyRequest++;
672 if (buildCounterGetIamPolicyRequest < 3) { 693 if (buildCounterGetIamPolicyRequest < 3) {
673 } 694 }
674 buildCounterGetIamPolicyRequest--; 695 buildCounterGetIamPolicyRequest--;
675 } 696 }
676 697
677 buildUnnamed2097() { 698 buildUnnamed2115() {
678 var o = new core.Map<core.String, core.String>(); 699 var o = new core.Map<core.String, core.String>();
679 o["x"] = "foo"; 700 o["x"] = "foo";
680 o["y"] = "foo"; 701 o["y"] = "foo";
681 return o; 702 return o;
682 } 703 }
683 704
684 checkUnnamed2097(core.Map<core.String, core.String> o) { 705 checkUnnamed2115(core.Map<core.String, core.String> o) {
685 unittest.expect(o, unittest.hasLength(2)); 706 unittest.expect(o, unittest.hasLength(2));
686 unittest.expect(o["x"], unittest.equals('foo')); 707 unittest.expect(o["x"], unittest.equals('foo'));
687 unittest.expect(o["y"], unittest.equals('foo')); 708 unittest.expect(o["y"], unittest.equals('foo'));
688 } 709 }
689 710
690 core.int buildCounterInstance = 0; 711 core.int buildCounterInstance = 0;
691 buildInstance() { 712 buildInstance() {
692 var o = new api.Instance(); 713 var o = new api.Instance();
693 buildCounterInstance++; 714 buildCounterInstance++;
694 if (buildCounterInstance < 3) { 715 if (buildCounterInstance < 3) {
695 o.config = "foo"; 716 o.config = "foo";
696 o.displayName = "foo"; 717 o.displayName = "foo";
697 o.labels = buildUnnamed2097(); 718 o.labels = buildUnnamed2115();
698 o.name = "foo"; 719 o.name = "foo";
699 o.nodeCount = 42; 720 o.nodeCount = 42;
700 o.state = "foo"; 721 o.state = "foo";
701 } 722 }
702 buildCounterInstance--; 723 buildCounterInstance--;
703 return o; 724 return o;
704 } 725 }
705 726
706 checkInstance(api.Instance o) { 727 checkInstance(api.Instance o) {
707 buildCounterInstance++; 728 buildCounterInstance++;
708 if (buildCounterInstance < 3) { 729 if (buildCounterInstance < 3) {
709 unittest.expect(o.config, unittest.equals('foo')); 730 unittest.expect(o.config, unittest.equals('foo'));
710 unittest.expect(o.displayName, unittest.equals('foo')); 731 unittest.expect(o.displayName, unittest.equals('foo'));
711 checkUnnamed2097(o.labels); 732 checkUnnamed2115(o.labels);
712 unittest.expect(o.name, unittest.equals('foo')); 733 unittest.expect(o.name, unittest.equals('foo'));
713 unittest.expect(o.nodeCount, unittest.equals(42)); 734 unittest.expect(o.nodeCount, unittest.equals(42));
714 unittest.expect(o.state, unittest.equals('foo')); 735 unittest.expect(o.state, unittest.equals('foo'));
715 } 736 }
716 buildCounterInstance--; 737 buildCounterInstance--;
717 } 738 }
718 739
719 core.int buildCounterInstanceConfig = 0; 740 core.int buildCounterInstanceConfig = 0;
720 buildInstanceConfig() { 741 buildInstanceConfig() {
721 var o = new api.InstanceConfig(); 742 var o = new api.InstanceConfig();
722 buildCounterInstanceConfig++; 743 buildCounterInstanceConfig++;
723 if (buildCounterInstanceConfig < 3) { 744 if (buildCounterInstanceConfig < 3) {
724 o.displayName = "foo"; 745 o.displayName = "foo";
725 o.name = "foo"; 746 o.name = "foo";
726 } 747 }
727 buildCounterInstanceConfig--; 748 buildCounterInstanceConfig--;
728 return o; 749 return o;
729 } 750 }
730 751
731 checkInstanceConfig(api.InstanceConfig o) { 752 checkInstanceConfig(api.InstanceConfig o) {
732 buildCounterInstanceConfig++; 753 buildCounterInstanceConfig++;
733 if (buildCounterInstanceConfig < 3) { 754 if (buildCounterInstanceConfig < 3) {
734 unittest.expect(o.displayName, unittest.equals('foo')); 755 unittest.expect(o.displayName, unittest.equals('foo'));
735 unittest.expect(o.name, unittest.equals('foo')); 756 unittest.expect(o.name, unittest.equals('foo'));
736 } 757 }
737 buildCounterInstanceConfig--; 758 buildCounterInstanceConfig--;
738 } 759 }
739 760
740 buildUnnamed2098() { 761 buildUnnamed2116() {
741 var o = new core.List<core.Object>(); 762 var o = new core.List<core.Object>();
742 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 763 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
743 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 764 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
744 return o; 765 return o;
745 } 766 }
746 767
747 checkUnnamed2098(core.List<core.Object> o) { 768 checkUnnamed2116(core.List<core.Object> o) {
748 unittest.expect(o, unittest.hasLength(2)); 769 unittest.expect(o, unittest.hasLength(2));
749 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength( 3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u nittest.equals('foo')); 770 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'));
750 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength( 3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u nittest.equals('foo')); 771 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'));
751 } 772 }
752 773
753 buildUnnamed2099() { 774 buildUnnamed2117() {
754 var o = new core.List<core.Object>(); 775 var o = new core.List<core.Object>();
755 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 776 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
756 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 777 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
757 return o; 778 return o;
758 } 779 }
759 780
760 checkUnnamed2099(core.List<core.Object> o) { 781 checkUnnamed2117(core.List<core.Object> o) {
761 unittest.expect(o, unittest.hasLength(2)); 782 unittest.expect(o, unittest.hasLength(2));
762 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength( 3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u nittest.equals('foo')); 783 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'));
763 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength( 3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u nittest.equals('foo')); 784 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'));
764 } 785 }
765 786
766 buildUnnamed2100() { 787 buildUnnamed2118() {
767 var o = new core.List<core.Object>(); 788 var o = new core.List<core.Object>();
768 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 789 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
769 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 790 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
770 return o; 791 return o;
771 } 792 }
772 793
773 checkUnnamed2100(core.List<core.Object> o) { 794 checkUnnamed2118(core.List<core.Object> o) {
774 unittest.expect(o, unittest.hasLength(2)); 795 unittest.expect(o, unittest.hasLength(2));
775 var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength( 3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], u nittest.equals('foo')); 796 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'));
776 var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength( 3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], u nittest.equals('foo')); 797 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'));
777 } 798 }
778 799
779 buildUnnamed2101() { 800 buildUnnamed2119() {
780 var o = new core.List<core.Object>(); 801 var o = new core.List<core.Object>();
781 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 802 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
782 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 803 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
783 return o; 804 return o;
784 } 805 }
785 806
786 checkUnnamed2101(core.List<core.Object> o) { 807 checkUnnamed2119(core.List<core.Object> o) {
787 unittest.expect(o, unittest.hasLength(2)); 808 unittest.expect(o, unittest.hasLength(2));
788 var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength( 3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], u nittest.equals('foo')); 809 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'));
789 var casted10 = (o[1]) as core.Map; unittest.expect(casted10, unittest.hasLengt h(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string "], unittest.equals('foo')); 810 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'));
790 } 811 }
791 812
792 core.int buildCounterKeyRange = 0; 813 core.int buildCounterKeyRange = 0;
793 buildKeyRange() { 814 buildKeyRange() {
794 var o = new api.KeyRange(); 815 var o = new api.KeyRange();
795 buildCounterKeyRange++; 816 buildCounterKeyRange++;
796 if (buildCounterKeyRange < 3) { 817 if (buildCounterKeyRange < 3) {
797 o.endClosed = buildUnnamed2098(); 818 o.endClosed = buildUnnamed2116();
798 o.endOpen = buildUnnamed2099(); 819 o.endOpen = buildUnnamed2117();
799 o.startClosed = buildUnnamed2100(); 820 o.startClosed = buildUnnamed2118();
800 o.startOpen = buildUnnamed2101(); 821 o.startOpen = buildUnnamed2119();
801 } 822 }
802 buildCounterKeyRange--; 823 buildCounterKeyRange--;
803 return o; 824 return o;
804 } 825 }
805 826
806 checkKeyRange(api.KeyRange o) { 827 checkKeyRange(api.KeyRange o) {
807 buildCounterKeyRange++; 828 buildCounterKeyRange++;
808 if (buildCounterKeyRange < 3) { 829 if (buildCounterKeyRange < 3) {
809 checkUnnamed2098(o.endClosed); 830 checkUnnamed2116(o.endClosed);
810 checkUnnamed2099(o.endOpen); 831 checkUnnamed2117(o.endOpen);
811 checkUnnamed2100(o.startClosed); 832 checkUnnamed2118(o.startClosed);
812 checkUnnamed2101(o.startOpen); 833 checkUnnamed2119(o.startOpen);
813 } 834 }
814 buildCounterKeyRange--; 835 buildCounterKeyRange--;
815 } 836 }
816 837
817 buildUnnamed2102() { 838 buildUnnamed2120() {
818 var o = new core.List<core.Object>(); 839 var o = new core.List<core.Object>();
819 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 840 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
820 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 841 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
821 return o; 842 return o;
822 } 843 }
823 844
824 checkUnnamed2102(core.List<core.Object> o) { 845 checkUnnamed2120(core.List<core.Object> o) {
825 unittest.expect(o, unittest.hasLength(2)); 846 unittest.expect(o, unittest.hasLength(2));
826 var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLengt h(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string "], unittest.equals('foo')); 847 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'));
827 var casted12 = (o[1]) as core.Map; unittest.expect(casted12, unittest.hasLengt h(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string "], unittest.equals('foo')); 848 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'));
828 } 849 }
829 850
830 buildUnnamed2103() { 851 buildUnnamed2121() {
831 var o = new core.List<core.List<core.Object>>(); 852 var o = new core.List<core.List<core.Object>>();
832 o.add(buildUnnamed2102()); 853 o.add(buildUnnamed2120());
833 o.add(buildUnnamed2102()); 854 o.add(buildUnnamed2120());
834 return o; 855 return o;
835 } 856 }
836 857
837 checkUnnamed2103(core.List<core.List<core.Object>> o) { 858 checkUnnamed2121(core.List<core.List<core.Object>> o) {
838 unittest.expect(o, unittest.hasLength(2)); 859 unittest.expect(o, unittest.hasLength(2));
839 checkUnnamed2102(o[0]); 860 checkUnnamed2120(o[0]);
840 checkUnnamed2102(o[1]); 861 checkUnnamed2120(o[1]);
841 } 862 }
842 863
843 buildUnnamed2104() { 864 buildUnnamed2122() {
844 var o = new core.List<api.KeyRange>(); 865 var o = new core.List<api.KeyRange>();
845 o.add(buildKeyRange()); 866 o.add(buildKeyRange());
846 o.add(buildKeyRange()); 867 o.add(buildKeyRange());
847 return o; 868 return o;
848 } 869 }
849 870
850 checkUnnamed2104(core.List<api.KeyRange> o) { 871 checkUnnamed2122(core.List<api.KeyRange> o) {
851 unittest.expect(o, unittest.hasLength(2)); 872 unittest.expect(o, unittest.hasLength(2));
852 checkKeyRange(o[0]); 873 checkKeyRange(o[0]);
853 checkKeyRange(o[1]); 874 checkKeyRange(o[1]);
854 } 875 }
855 876
856 core.int buildCounterKeySet = 0; 877 core.int buildCounterKeySet = 0;
857 buildKeySet() { 878 buildKeySet() {
858 var o = new api.KeySet(); 879 var o = new api.KeySet();
859 buildCounterKeySet++; 880 buildCounterKeySet++;
860 if (buildCounterKeySet < 3) { 881 if (buildCounterKeySet < 3) {
861 o.all = true; 882 o.all = true;
862 o.keys = buildUnnamed2103(); 883 o.keys = buildUnnamed2121();
863 o.ranges = buildUnnamed2104(); 884 o.ranges = buildUnnamed2122();
864 } 885 }
865 buildCounterKeySet--; 886 buildCounterKeySet--;
866 return o; 887 return o;
867 } 888 }
868 889
869 checkKeySet(api.KeySet o) { 890 checkKeySet(api.KeySet o) {
870 buildCounterKeySet++; 891 buildCounterKeySet++;
871 if (buildCounterKeySet < 3) { 892 if (buildCounterKeySet < 3) {
872 unittest.expect(o.all, unittest.isTrue); 893 unittest.expect(o.all, unittest.isTrue);
873 checkUnnamed2103(o.keys); 894 checkUnnamed2121(o.keys);
874 checkUnnamed2104(o.ranges); 895 checkUnnamed2122(o.ranges);
875 } 896 }
876 buildCounterKeySet--; 897 buildCounterKeySet--;
877 } 898 }
878 899
879 buildUnnamed2105() { 900 buildUnnamed2123() {
880 var o = new core.List<api.Database>(); 901 var o = new core.List<api.Database>();
881 o.add(buildDatabase()); 902 o.add(buildDatabase());
882 o.add(buildDatabase()); 903 o.add(buildDatabase());
883 return o; 904 return o;
884 } 905 }
885 906
886 checkUnnamed2105(core.List<api.Database> o) { 907 checkUnnamed2123(core.List<api.Database> o) {
887 unittest.expect(o, unittest.hasLength(2)); 908 unittest.expect(o, unittest.hasLength(2));
888 checkDatabase(o[0]); 909 checkDatabase(o[0]);
889 checkDatabase(o[1]); 910 checkDatabase(o[1]);
890 } 911 }
891 912
892 core.int buildCounterListDatabasesResponse = 0; 913 core.int buildCounterListDatabasesResponse = 0;
893 buildListDatabasesResponse() { 914 buildListDatabasesResponse() {
894 var o = new api.ListDatabasesResponse(); 915 var o = new api.ListDatabasesResponse();
895 buildCounterListDatabasesResponse++; 916 buildCounterListDatabasesResponse++;
896 if (buildCounterListDatabasesResponse < 3) { 917 if (buildCounterListDatabasesResponse < 3) {
897 o.databases = buildUnnamed2105(); 918 o.databases = buildUnnamed2123();
898 o.nextPageToken = "foo"; 919 o.nextPageToken = "foo";
899 } 920 }
900 buildCounterListDatabasesResponse--; 921 buildCounterListDatabasesResponse--;
901 return o; 922 return o;
902 } 923 }
903 924
904 checkListDatabasesResponse(api.ListDatabasesResponse o) { 925 checkListDatabasesResponse(api.ListDatabasesResponse o) {
905 buildCounterListDatabasesResponse++; 926 buildCounterListDatabasesResponse++;
906 if (buildCounterListDatabasesResponse < 3) { 927 if (buildCounterListDatabasesResponse < 3) {
907 checkUnnamed2105(o.databases); 928 checkUnnamed2123(o.databases);
908 unittest.expect(o.nextPageToken, unittest.equals('foo')); 929 unittest.expect(o.nextPageToken, unittest.equals('foo'));
909 } 930 }
910 buildCounterListDatabasesResponse--; 931 buildCounterListDatabasesResponse--;
911 } 932 }
912 933
913 buildUnnamed2106() { 934 buildUnnamed2124() {
914 var o = new core.List<api.InstanceConfig>(); 935 var o = new core.List<api.InstanceConfig>();
915 o.add(buildInstanceConfig()); 936 o.add(buildInstanceConfig());
916 o.add(buildInstanceConfig()); 937 o.add(buildInstanceConfig());
917 return o; 938 return o;
918 } 939 }
919 940
920 checkUnnamed2106(core.List<api.InstanceConfig> o) { 941 checkUnnamed2124(core.List<api.InstanceConfig> o) {
921 unittest.expect(o, unittest.hasLength(2)); 942 unittest.expect(o, unittest.hasLength(2));
922 checkInstanceConfig(o[0]); 943 checkInstanceConfig(o[0]);
923 checkInstanceConfig(o[1]); 944 checkInstanceConfig(o[1]);
924 } 945 }
925 946
926 core.int buildCounterListInstanceConfigsResponse = 0; 947 core.int buildCounterListInstanceConfigsResponse = 0;
927 buildListInstanceConfigsResponse() { 948 buildListInstanceConfigsResponse() {
928 var o = new api.ListInstanceConfigsResponse(); 949 var o = new api.ListInstanceConfigsResponse();
929 buildCounterListInstanceConfigsResponse++; 950 buildCounterListInstanceConfigsResponse++;
930 if (buildCounterListInstanceConfigsResponse < 3) { 951 if (buildCounterListInstanceConfigsResponse < 3) {
931 o.instanceConfigs = buildUnnamed2106(); 952 o.instanceConfigs = buildUnnamed2124();
932 o.nextPageToken = "foo"; 953 o.nextPageToken = "foo";
933 } 954 }
934 buildCounterListInstanceConfigsResponse--; 955 buildCounterListInstanceConfigsResponse--;
935 return o; 956 return o;
936 } 957 }
937 958
938 checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { 959 checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) {
939 buildCounterListInstanceConfigsResponse++; 960 buildCounterListInstanceConfigsResponse++;
940 if (buildCounterListInstanceConfigsResponse < 3) { 961 if (buildCounterListInstanceConfigsResponse < 3) {
941 checkUnnamed2106(o.instanceConfigs); 962 checkUnnamed2124(o.instanceConfigs);
942 unittest.expect(o.nextPageToken, unittest.equals('foo')); 963 unittest.expect(o.nextPageToken, unittest.equals('foo'));
943 } 964 }
944 buildCounterListInstanceConfigsResponse--; 965 buildCounterListInstanceConfigsResponse--;
945 } 966 }
946 967
947 buildUnnamed2107() { 968 buildUnnamed2125() {
948 var o = new core.List<api.Instance>(); 969 var o = new core.List<api.Instance>();
949 o.add(buildInstance()); 970 o.add(buildInstance());
950 o.add(buildInstance()); 971 o.add(buildInstance());
951 return o; 972 return o;
952 } 973 }
953 974
954 checkUnnamed2107(core.List<api.Instance> o) { 975 checkUnnamed2125(core.List<api.Instance> o) {
955 unittest.expect(o, unittest.hasLength(2)); 976 unittest.expect(o, unittest.hasLength(2));
956 checkInstance(o[0]); 977 checkInstance(o[0]);
957 checkInstance(o[1]); 978 checkInstance(o[1]);
958 } 979 }
959 980
960 core.int buildCounterListInstancesResponse = 0; 981 core.int buildCounterListInstancesResponse = 0;
961 buildListInstancesResponse() { 982 buildListInstancesResponse() {
962 var o = new api.ListInstancesResponse(); 983 var o = new api.ListInstancesResponse();
963 buildCounterListInstancesResponse++; 984 buildCounterListInstancesResponse++;
964 if (buildCounterListInstancesResponse < 3) { 985 if (buildCounterListInstancesResponse < 3) {
965 o.instances = buildUnnamed2107(); 986 o.instances = buildUnnamed2125();
966 o.nextPageToken = "foo"; 987 o.nextPageToken = "foo";
967 } 988 }
968 buildCounterListInstancesResponse--; 989 buildCounterListInstancesResponse--;
969 return o; 990 return o;
970 } 991 }
971 992
972 checkListInstancesResponse(api.ListInstancesResponse o) { 993 checkListInstancesResponse(api.ListInstancesResponse o) {
973 buildCounterListInstancesResponse++; 994 buildCounterListInstancesResponse++;
974 if (buildCounterListInstancesResponse < 3) { 995 if (buildCounterListInstancesResponse < 3) {
975 checkUnnamed2107(o.instances); 996 checkUnnamed2125(o.instances);
976 unittest.expect(o.nextPageToken, unittest.equals('foo')); 997 unittest.expect(o.nextPageToken, unittest.equals('foo'));
977 } 998 }
978 buildCounterListInstancesResponse--; 999 buildCounterListInstancesResponse--;
979 } 1000 }
980 1001
981 buildUnnamed2108() { 1002 buildUnnamed2126() {
982 var o = new core.List<api.Operation>(); 1003 var o = new core.List<api.Operation>();
983 o.add(buildOperation()); 1004 o.add(buildOperation());
984 o.add(buildOperation()); 1005 o.add(buildOperation());
985 return o; 1006 return o;
986 } 1007 }
987 1008
988 checkUnnamed2108(core.List<api.Operation> o) { 1009 checkUnnamed2126(core.List<api.Operation> o) {
989 unittest.expect(o, unittest.hasLength(2)); 1010 unittest.expect(o, unittest.hasLength(2));
990 checkOperation(o[0]); 1011 checkOperation(o[0]);
991 checkOperation(o[1]); 1012 checkOperation(o[1]);
992 } 1013 }
993 1014
994 core.int buildCounterListOperationsResponse = 0; 1015 core.int buildCounterListOperationsResponse = 0;
995 buildListOperationsResponse() { 1016 buildListOperationsResponse() {
996 var o = new api.ListOperationsResponse(); 1017 var o = new api.ListOperationsResponse();
997 buildCounterListOperationsResponse++; 1018 buildCounterListOperationsResponse++;
998 if (buildCounterListOperationsResponse < 3) { 1019 if (buildCounterListOperationsResponse < 3) {
999 o.nextPageToken = "foo"; 1020 o.nextPageToken = "foo";
1000 o.operations = buildUnnamed2108(); 1021 o.operations = buildUnnamed2126();
1001 } 1022 }
1002 buildCounterListOperationsResponse--; 1023 buildCounterListOperationsResponse--;
1003 return o; 1024 return o;
1004 } 1025 }
1005 1026
1006 checkListOperationsResponse(api.ListOperationsResponse o) { 1027 checkListOperationsResponse(api.ListOperationsResponse o) {
1007 buildCounterListOperationsResponse++; 1028 buildCounterListOperationsResponse++;
1008 if (buildCounterListOperationsResponse < 3) { 1029 if (buildCounterListOperationsResponse < 3) {
1009 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1030 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1010 checkUnnamed2108(o.operations); 1031 checkUnnamed2126(o.operations);
1011 } 1032 }
1012 buildCounterListOperationsResponse--; 1033 buildCounterListOperationsResponse--;
1013 } 1034 }
1014 1035
1015 core.int buildCounterLogConfig = 0; 1036 core.int buildCounterLogConfig = 0;
1016 buildLogConfig() { 1037 buildLogConfig() {
1017 var o = new api.LogConfig(); 1038 var o = new api.LogConfig();
1018 buildCounterLogConfig++; 1039 buildCounterLogConfig++;
1019 if (buildCounterLogConfig < 3) { 1040 if (buildCounterLogConfig < 3) {
1020 o.cloudAudit = buildCloudAuditOptions(); 1041 o.cloudAudit = buildCloudAuditOptions();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 if (buildCounterMutation < 3) { 1076 if (buildCounterMutation < 3) {
1056 checkDelete(o.delete); 1077 checkDelete(o.delete);
1057 checkWrite(o.insert); 1078 checkWrite(o.insert);
1058 checkWrite(o.insertOrUpdate); 1079 checkWrite(o.insertOrUpdate);
1059 checkWrite(o.replace); 1080 checkWrite(o.replace);
1060 checkWrite(o.update); 1081 checkWrite(o.update);
1061 } 1082 }
1062 buildCounterMutation--; 1083 buildCounterMutation--;
1063 } 1084 }
1064 1085
1065 buildUnnamed2109() { 1086 buildUnnamed2127() {
1066 var o = new core.Map<core.String, core.Object>(); 1087 var o = new core.Map<core.String, core.Object>();
1067 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1088 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1068 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1089 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1069 return o; 1090 return o;
1070 } 1091 }
1071 1092
1072 checkUnnamed2109(core.Map<core.String, core.Object> o) { 1093 checkUnnamed2127(core.Map<core.String, core.Object> o) {
1073 unittest.expect(o, unittest.hasLength(2)); 1094 unittest.expect(o, unittest.hasLength(2));
1074 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest .expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri ng"], unittest.equals('foo')); 1095 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'));
1075 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest .expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri ng"], unittest.equals('foo')); 1096 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'));
1076 } 1097 }
1077 1098
1078 buildUnnamed2110() { 1099 buildUnnamed2128() {
1079 var o = new core.Map<core.String, core.Object>(); 1100 var o = new core.Map<core.String, core.Object>();
1080 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1101 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1081 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1102 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1082 return o; 1103 return o;
1083 } 1104 }
1084 1105
1085 checkUnnamed2110(core.Map<core.String, core.Object> o) { 1106 checkUnnamed2128(core.Map<core.String, core.Object> o) {
1086 unittest.expect(o, unittest.hasLength(2)); 1107 unittest.expect(o, unittest.hasLength(2));
1087 var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLen gth(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest .expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["stri ng"], unittest.equals('foo')); 1108 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'));
1088 var casted16 = (o["y"]) as core.Map; unittest.expect(casted16, unittest.hasLen gth(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest .expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["stri ng"], unittest.equals('foo')); 1109 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'));
1089 } 1110 }
1090 1111
1091 core.int buildCounterOperation = 0; 1112 core.int buildCounterOperation = 0;
1092 buildOperation() { 1113 buildOperation() {
1093 var o = new api.Operation(); 1114 var o = new api.Operation();
1094 buildCounterOperation++; 1115 buildCounterOperation++;
1095 if (buildCounterOperation < 3) { 1116 if (buildCounterOperation < 3) {
1096 o.done = true; 1117 o.done = true;
1097 o.error = buildStatus(); 1118 o.error = buildStatus();
1098 o.metadata = buildUnnamed2109(); 1119 o.metadata = buildUnnamed2127();
1099 o.name = "foo"; 1120 o.name = "foo";
1100 o.response = buildUnnamed2110(); 1121 o.response = buildUnnamed2128();
1101 } 1122 }
1102 buildCounterOperation--; 1123 buildCounterOperation--;
1103 return o; 1124 return o;
1104 } 1125 }
1105 1126
1106 checkOperation(api.Operation o) { 1127 checkOperation(api.Operation o) {
1107 buildCounterOperation++; 1128 buildCounterOperation++;
1108 if (buildCounterOperation < 3) { 1129 if (buildCounterOperation < 3) {
1109 unittest.expect(o.done, unittest.isTrue); 1130 unittest.expect(o.done, unittest.isTrue);
1110 checkStatus(o.error); 1131 checkStatus(o.error);
1111 checkUnnamed2109(o.metadata); 1132 checkUnnamed2127(o.metadata);
1112 unittest.expect(o.name, unittest.equals('foo')); 1133 unittest.expect(o.name, unittest.equals('foo'));
1113 checkUnnamed2110(o.response); 1134 checkUnnamed2128(o.response);
1114 } 1135 }
1115 buildCounterOperation--; 1136 buildCounterOperation--;
1116 } 1137 }
1117 1138
1118 buildUnnamed2111() { 1139 buildUnnamed2129() {
1119 var o = new core.List<core.Object>(); 1140 var o = new core.List<core.Object>();
1120 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1141 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1121 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1142 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1122 return o; 1143 return o;
1123 } 1144 }
1124 1145
1125 checkUnnamed2111(core.List<core.Object> o) { 1146 checkUnnamed2129(core.List<core.Object> o) {
1126 unittest.expect(o, unittest.hasLength(2)); 1147 unittest.expect(o, unittest.hasLength(2));
1127 var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLengt h(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string "], unittest.equals('foo')); 1148 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'));
1128 var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLengt h(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string "], unittest.equals('foo')); 1149 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'));
1129 } 1150 }
1130 1151
1131 core.int buildCounterPartialResultSet = 0; 1152 core.int buildCounterPartialResultSet = 0;
1132 buildPartialResultSet() { 1153 buildPartialResultSet() {
1133 var o = new api.PartialResultSet(); 1154 var o = new api.PartialResultSet();
1134 buildCounterPartialResultSet++; 1155 buildCounterPartialResultSet++;
1135 if (buildCounterPartialResultSet < 3) { 1156 if (buildCounterPartialResultSet < 3) {
1136 o.chunkedValue = true; 1157 o.chunkedValue = true;
1137 o.metadata = buildResultSetMetadata(); 1158 o.metadata = buildResultSetMetadata();
1138 o.resumeToken = "foo"; 1159 o.resumeToken = "foo";
1139 o.stats = buildResultSetStats(); 1160 o.stats = buildResultSetStats();
1140 o.values = buildUnnamed2111(); 1161 o.values = buildUnnamed2129();
1141 } 1162 }
1142 buildCounterPartialResultSet--; 1163 buildCounterPartialResultSet--;
1143 return o; 1164 return o;
1144 } 1165 }
1145 1166
1146 checkPartialResultSet(api.PartialResultSet o) { 1167 checkPartialResultSet(api.PartialResultSet o) {
1147 buildCounterPartialResultSet++; 1168 buildCounterPartialResultSet++;
1148 if (buildCounterPartialResultSet < 3) { 1169 if (buildCounterPartialResultSet < 3) {
1149 unittest.expect(o.chunkedValue, unittest.isTrue); 1170 unittest.expect(o.chunkedValue, unittest.isTrue);
1150 checkResultSetMetadata(o.metadata); 1171 checkResultSetMetadata(o.metadata);
1151 unittest.expect(o.resumeToken, unittest.equals('foo')); 1172 unittest.expect(o.resumeToken, unittest.equals('foo'));
1152 checkResultSetStats(o.stats); 1173 checkResultSetStats(o.stats);
1153 checkUnnamed2111(o.values); 1174 checkUnnamed2129(o.values);
1154 } 1175 }
1155 buildCounterPartialResultSet--; 1176 buildCounterPartialResultSet--;
1156 } 1177 }
1157 1178
1158 buildUnnamed2112() { 1179 buildUnnamed2130() {
1159 var o = new core.List<api.ChildLink>(); 1180 var o = new core.List<api.ChildLink>();
1160 o.add(buildChildLink()); 1181 o.add(buildChildLink());
1161 o.add(buildChildLink()); 1182 o.add(buildChildLink());
1162 return o; 1183 return o;
1163 } 1184 }
1164 1185
1165 checkUnnamed2112(core.List<api.ChildLink> o) { 1186 checkUnnamed2130(core.List<api.ChildLink> o) {
1166 unittest.expect(o, unittest.hasLength(2)); 1187 unittest.expect(o, unittest.hasLength(2));
1167 checkChildLink(o[0]); 1188 checkChildLink(o[0]);
1168 checkChildLink(o[1]); 1189 checkChildLink(o[1]);
1169 } 1190 }
1170 1191
1171 buildUnnamed2113() { 1192 buildUnnamed2131() {
1172 var o = new core.Map<core.String, core.Object>(); 1193 var o = new core.Map<core.String, core.Object>();
1173 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1194 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1174 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1195 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1175 return o; 1196 return o;
1176 } 1197 }
1177 1198
1178 checkUnnamed2113(core.Map<core.String, core.Object> o) { 1199 checkUnnamed2131(core.Map<core.String, core.Object> o) {
1179 unittest.expect(o, unittest.hasLength(2)); 1200 unittest.expect(o, unittest.hasLength(2));
1180 var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLen gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest .expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri ng"], unittest.equals('foo')); 1201 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'));
1181 var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLen gth(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest .expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["stri ng"], unittest.equals('foo')); 1202 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'));
1182 } 1203 }
1183 1204
1184 buildUnnamed2114() { 1205 buildUnnamed2132() {
1185 var o = new core.Map<core.String, core.Object>(); 1206 var o = new core.Map<core.String, core.Object>();
1186 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1207 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1187 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1208 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1188 return o; 1209 return o;
1189 } 1210 }
1190 1211
1191 checkUnnamed2114(core.Map<core.String, core.Object> o) { 1212 checkUnnamed2132(core.Map<core.String, core.Object> o) {
1192 unittest.expect(o, unittest.hasLength(2)); 1213 unittest.expect(o, unittest.hasLength(2));
1193 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest .expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri ng"], unittest.equals('foo')); 1214 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'));
1194 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest .expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri ng"], unittest.equals('foo')); 1215 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'));
1195 } 1216 }
1196 1217
1197 core.int buildCounterPlanNode = 0; 1218 core.int buildCounterPlanNode = 0;
1198 buildPlanNode() { 1219 buildPlanNode() {
1199 var o = new api.PlanNode(); 1220 var o = new api.PlanNode();
1200 buildCounterPlanNode++; 1221 buildCounterPlanNode++;
1201 if (buildCounterPlanNode < 3) { 1222 if (buildCounterPlanNode < 3) {
1202 o.childLinks = buildUnnamed2112(); 1223 o.childLinks = buildUnnamed2130();
1203 o.displayName = "foo"; 1224 o.displayName = "foo";
1204 o.executionStats = buildUnnamed2113(); 1225 o.executionStats = buildUnnamed2131();
1205 o.index = 42; 1226 o.index = 42;
1206 o.kind = "foo"; 1227 o.kind = "foo";
1207 o.metadata = buildUnnamed2114(); 1228 o.metadata = buildUnnamed2132();
1208 o.shortRepresentation = buildShortRepresentation(); 1229 o.shortRepresentation = buildShortRepresentation();
1209 } 1230 }
1210 buildCounterPlanNode--; 1231 buildCounterPlanNode--;
1211 return o; 1232 return o;
1212 } 1233 }
1213 1234
1214 checkPlanNode(api.PlanNode o) { 1235 checkPlanNode(api.PlanNode o) {
1215 buildCounterPlanNode++; 1236 buildCounterPlanNode++;
1216 if (buildCounterPlanNode < 3) { 1237 if (buildCounterPlanNode < 3) {
1217 checkUnnamed2112(o.childLinks); 1238 checkUnnamed2130(o.childLinks);
1218 unittest.expect(o.displayName, unittest.equals('foo')); 1239 unittest.expect(o.displayName, unittest.equals('foo'));
1219 checkUnnamed2113(o.executionStats); 1240 checkUnnamed2131(o.executionStats);
1220 unittest.expect(o.index, unittest.equals(42)); 1241 unittest.expect(o.index, unittest.equals(42));
1221 unittest.expect(o.kind, unittest.equals('foo')); 1242 unittest.expect(o.kind, unittest.equals('foo'));
1222 checkUnnamed2114(o.metadata); 1243 checkUnnamed2132(o.metadata);
1223 checkShortRepresentation(o.shortRepresentation); 1244 checkShortRepresentation(o.shortRepresentation);
1224 } 1245 }
1225 buildCounterPlanNode--; 1246 buildCounterPlanNode--;
1226 } 1247 }
1227 1248
1228 buildUnnamed2115() { 1249 buildUnnamed2133() {
1229 var o = new core.List<api.AuditConfig>(); 1250 var o = new core.List<api.AuditConfig>();
1230 o.add(buildAuditConfig()); 1251 o.add(buildAuditConfig());
1231 o.add(buildAuditConfig()); 1252 o.add(buildAuditConfig());
1232 return o; 1253 return o;
1233 } 1254 }
1234 1255
1235 checkUnnamed2115(core.List<api.AuditConfig> o) { 1256 checkUnnamed2133(core.List<api.AuditConfig> o) {
1236 unittest.expect(o, unittest.hasLength(2)); 1257 unittest.expect(o, unittest.hasLength(2));
1237 checkAuditConfig(o[0]); 1258 checkAuditConfig(o[0]);
1238 checkAuditConfig(o[1]); 1259 checkAuditConfig(o[1]);
1239 } 1260 }
1240 1261
1241 buildUnnamed2116() { 1262 buildUnnamed2134() {
1242 var o = new core.List<api.Binding>(); 1263 var o = new core.List<api.Binding>();
1243 o.add(buildBinding()); 1264 o.add(buildBinding());
1244 o.add(buildBinding()); 1265 o.add(buildBinding());
1245 return o; 1266 return o;
1246 } 1267 }
1247 1268
1248 checkUnnamed2116(core.List<api.Binding> o) { 1269 checkUnnamed2134(core.List<api.Binding> o) {
1249 unittest.expect(o, unittest.hasLength(2)); 1270 unittest.expect(o, unittest.hasLength(2));
1250 checkBinding(o[0]); 1271 checkBinding(o[0]);
1251 checkBinding(o[1]); 1272 checkBinding(o[1]);
1252 } 1273 }
1253 1274
1254 buildUnnamed2117() { 1275 buildUnnamed2135() {
1255 var o = new core.List<api.Rule>(); 1276 var o = new core.List<api.Rule>();
1256 o.add(buildRule()); 1277 o.add(buildRule());
1257 o.add(buildRule()); 1278 o.add(buildRule());
1258 return o; 1279 return o;
1259 } 1280 }
1260 1281
1261 checkUnnamed2117(core.List<api.Rule> o) { 1282 checkUnnamed2135(core.List<api.Rule> o) {
1262 unittest.expect(o, unittest.hasLength(2)); 1283 unittest.expect(o, unittest.hasLength(2));
1263 checkRule(o[0]); 1284 checkRule(o[0]);
1264 checkRule(o[1]); 1285 checkRule(o[1]);
1265 } 1286 }
1266 1287
1267 core.int buildCounterPolicy = 0; 1288 core.int buildCounterPolicy = 0;
1268 buildPolicy() { 1289 buildPolicy() {
1269 var o = new api.Policy(); 1290 var o = new api.Policy();
1270 buildCounterPolicy++; 1291 buildCounterPolicy++;
1271 if (buildCounterPolicy < 3) { 1292 if (buildCounterPolicy < 3) {
1272 o.auditConfigs = buildUnnamed2115(); 1293 o.auditConfigs = buildUnnamed2133();
1273 o.bindings = buildUnnamed2116(); 1294 o.bindings = buildUnnamed2134();
1274 o.etag = "foo"; 1295 o.etag = "foo";
1275 o.iamOwned = true; 1296 o.iamOwned = true;
1276 o.rules = buildUnnamed2117(); 1297 o.rules = buildUnnamed2135();
1277 o.version = 42; 1298 o.version = 42;
1278 } 1299 }
1279 buildCounterPolicy--; 1300 buildCounterPolicy--;
1280 return o; 1301 return o;
1281 } 1302 }
1282 1303
1283 checkPolicy(api.Policy o) { 1304 checkPolicy(api.Policy o) {
1284 buildCounterPolicy++; 1305 buildCounterPolicy++;
1285 if (buildCounterPolicy < 3) { 1306 if (buildCounterPolicy < 3) {
1286 checkUnnamed2115(o.auditConfigs); 1307 checkUnnamed2133(o.auditConfigs);
1287 checkUnnamed2116(o.bindings); 1308 checkUnnamed2134(o.bindings);
1288 unittest.expect(o.etag, unittest.equals('foo')); 1309 unittest.expect(o.etag, unittest.equals('foo'));
1289 unittest.expect(o.iamOwned, unittest.isTrue); 1310 unittest.expect(o.iamOwned, unittest.isTrue);
1290 checkUnnamed2117(o.rules); 1311 checkUnnamed2135(o.rules);
1291 unittest.expect(o.version, unittest.equals(42)); 1312 unittest.expect(o.version, unittest.equals(42));
1292 } 1313 }
1293 buildCounterPolicy--; 1314 buildCounterPolicy--;
1294 } 1315 }
1295 1316
1296 buildUnnamed2118() { 1317 buildUnnamed2136() {
1297 var o = new core.List<api.PlanNode>(); 1318 var o = new core.List<api.PlanNode>();
1298 o.add(buildPlanNode()); 1319 o.add(buildPlanNode());
1299 o.add(buildPlanNode()); 1320 o.add(buildPlanNode());
1300 return o; 1321 return o;
1301 } 1322 }
1302 1323
1303 checkUnnamed2118(core.List<api.PlanNode> o) { 1324 checkUnnamed2136(core.List<api.PlanNode> o) {
1304 unittest.expect(o, unittest.hasLength(2)); 1325 unittest.expect(o, unittest.hasLength(2));
1305 checkPlanNode(o[0]); 1326 checkPlanNode(o[0]);
1306 checkPlanNode(o[1]); 1327 checkPlanNode(o[1]);
1307 } 1328 }
1308 1329
1309 core.int buildCounterQueryPlan = 0; 1330 core.int buildCounterQueryPlan = 0;
1310 buildQueryPlan() { 1331 buildQueryPlan() {
1311 var o = new api.QueryPlan(); 1332 var o = new api.QueryPlan();
1312 buildCounterQueryPlan++; 1333 buildCounterQueryPlan++;
1313 if (buildCounterQueryPlan < 3) { 1334 if (buildCounterQueryPlan < 3) {
1314 o.planNodes = buildUnnamed2118(); 1335 o.planNodes = buildUnnamed2136();
1315 } 1336 }
1316 buildCounterQueryPlan--; 1337 buildCounterQueryPlan--;
1317 return o; 1338 return o;
1318 } 1339 }
1319 1340
1320 checkQueryPlan(api.QueryPlan o) { 1341 checkQueryPlan(api.QueryPlan o) {
1321 buildCounterQueryPlan++; 1342 buildCounterQueryPlan++;
1322 if (buildCounterQueryPlan < 3) { 1343 if (buildCounterQueryPlan < 3) {
1323 checkUnnamed2118(o.planNodes); 1344 checkUnnamed2136(o.planNodes);
1324 } 1345 }
1325 buildCounterQueryPlan--; 1346 buildCounterQueryPlan--;
1326 } 1347 }
1327 1348
1328 core.int buildCounterReadOnly = 0; 1349 core.int buildCounterReadOnly = 0;
1329 buildReadOnly() { 1350 buildReadOnly() {
1330 var o = new api.ReadOnly(); 1351 var o = new api.ReadOnly();
1331 buildCounterReadOnly++; 1352 buildCounterReadOnly++;
1332 if (buildCounterReadOnly < 3) { 1353 if (buildCounterReadOnly < 3) {
1333 o.exactStaleness = "foo"; 1354 o.exactStaleness = "foo";
(...skipping 13 matching lines...) Expand all
1347 unittest.expect(o.exactStaleness, unittest.equals('foo')); 1368 unittest.expect(o.exactStaleness, unittest.equals('foo'));
1348 unittest.expect(o.maxStaleness, unittest.equals('foo')); 1369 unittest.expect(o.maxStaleness, unittest.equals('foo'));
1349 unittest.expect(o.minReadTimestamp, unittest.equals('foo')); 1370 unittest.expect(o.minReadTimestamp, unittest.equals('foo'));
1350 unittest.expect(o.readTimestamp, unittest.equals('foo')); 1371 unittest.expect(o.readTimestamp, unittest.equals('foo'));
1351 unittest.expect(o.returnReadTimestamp, unittest.isTrue); 1372 unittest.expect(o.returnReadTimestamp, unittest.isTrue);
1352 unittest.expect(o.strong, unittest.isTrue); 1373 unittest.expect(o.strong, unittest.isTrue);
1353 } 1374 }
1354 buildCounterReadOnly--; 1375 buildCounterReadOnly--;
1355 } 1376 }
1356 1377
1357 buildUnnamed2119() { 1378 buildUnnamed2137() {
1358 var o = new core.List<core.String>(); 1379 var o = new core.List<core.String>();
1359 o.add("foo"); 1380 o.add("foo");
1360 o.add("foo"); 1381 o.add("foo");
1361 return o; 1382 return o;
1362 } 1383 }
1363 1384
1364 checkUnnamed2119(core.List<core.String> o) { 1385 checkUnnamed2137(core.List<core.String> o) {
1365 unittest.expect(o, unittest.hasLength(2)); 1386 unittest.expect(o, unittest.hasLength(2));
1366 unittest.expect(o[0], unittest.equals('foo')); 1387 unittest.expect(o[0], unittest.equals('foo'));
1367 unittest.expect(o[1], unittest.equals('foo')); 1388 unittest.expect(o[1], unittest.equals('foo'));
1368 } 1389 }
1369 1390
1370 core.int buildCounterReadRequest = 0; 1391 core.int buildCounterReadRequest = 0;
1371 buildReadRequest() { 1392 buildReadRequest() {
1372 var o = new api.ReadRequest(); 1393 var o = new api.ReadRequest();
1373 buildCounterReadRequest++; 1394 buildCounterReadRequest++;
1374 if (buildCounterReadRequest < 3) { 1395 if (buildCounterReadRequest < 3) {
1375 o.columns = buildUnnamed2119(); 1396 o.columns = buildUnnamed2137();
1376 o.index = "foo"; 1397 o.index = "foo";
1377 o.keySet = buildKeySet(); 1398 o.keySet = buildKeySet();
1378 o.limit = "foo"; 1399 o.limit = "foo";
1379 o.resumeToken = "foo"; 1400 o.resumeToken = "foo";
1380 o.table = "foo"; 1401 o.table = "foo";
1381 o.transaction = buildTransactionSelector(); 1402 o.transaction = buildTransactionSelector();
1382 } 1403 }
1383 buildCounterReadRequest--; 1404 buildCounterReadRequest--;
1384 return o; 1405 return o;
1385 } 1406 }
1386 1407
1387 checkReadRequest(api.ReadRequest o) { 1408 checkReadRequest(api.ReadRequest o) {
1388 buildCounterReadRequest++; 1409 buildCounterReadRequest++;
1389 if (buildCounterReadRequest < 3) { 1410 if (buildCounterReadRequest < 3) {
1390 checkUnnamed2119(o.columns); 1411 checkUnnamed2137(o.columns);
1391 unittest.expect(o.index, unittest.equals('foo')); 1412 unittest.expect(o.index, unittest.equals('foo'));
1392 checkKeySet(o.keySet); 1413 checkKeySet(o.keySet);
1393 unittest.expect(o.limit, unittest.equals('foo')); 1414 unittest.expect(o.limit, unittest.equals('foo'));
1394 unittest.expect(o.resumeToken, unittest.equals('foo')); 1415 unittest.expect(o.resumeToken, unittest.equals('foo'));
1395 unittest.expect(o.table, unittest.equals('foo')); 1416 unittest.expect(o.table, unittest.equals('foo'));
1396 checkTransactionSelector(o.transaction); 1417 checkTransactionSelector(o.transaction);
1397 } 1418 }
1398 buildCounterReadRequest--; 1419 buildCounterReadRequest--;
1399 } 1420 }
1400 1421
1401 core.int buildCounterReadWrite = 0; 1422 core.int buildCounterReadWrite = 0;
1402 buildReadWrite() { 1423 buildReadWrite() {
1403 var o = new api.ReadWrite(); 1424 var o = new api.ReadWrite();
1404 buildCounterReadWrite++; 1425 buildCounterReadWrite++;
1405 if (buildCounterReadWrite < 3) { 1426 if (buildCounterReadWrite < 3) {
1406 } 1427 }
1407 buildCounterReadWrite--; 1428 buildCounterReadWrite--;
1408 return o; 1429 return o;
1409 } 1430 }
1410 1431
1411 checkReadWrite(api.ReadWrite o) { 1432 checkReadWrite(api.ReadWrite o) {
1412 buildCounterReadWrite++; 1433 buildCounterReadWrite++;
1413 if (buildCounterReadWrite < 3) { 1434 if (buildCounterReadWrite < 3) {
1414 } 1435 }
1415 buildCounterReadWrite--; 1436 buildCounterReadWrite--;
1416 } 1437 }
1417 1438
1418 buildUnnamed2120() { 1439 buildUnnamed2138() {
1419 var o = new core.List<core.Object>(); 1440 var o = new core.List<core.Object>();
1420 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1441 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1421 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 1442 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
1422 return o; 1443 return o;
1423 } 1444 }
1424 1445
1425 checkUnnamed2120(core.List<core.Object> o) { 1446 checkUnnamed2138(core.List<core.Object> o) {
1426 unittest.expect(o, unittest.hasLength(2)); 1447 unittest.expect(o, unittest.hasLength(2));
1427 var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLengt h(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string "], unittest.equals('foo')); 1448 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'));
1428 var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLengt h(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string "], unittest.equals('foo')); 1449 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'));
1429 } 1450 }
1430 1451
1431 buildUnnamed2121() { 1452 buildUnnamed2139() {
1432 var o = new core.List<core.List<core.Object>>(); 1453 var o = new core.List<core.List<core.Object>>();
1433 o.add(buildUnnamed2120()); 1454 o.add(buildUnnamed2138());
1434 o.add(buildUnnamed2120()); 1455 o.add(buildUnnamed2138());
1435 return o; 1456 return o;
1436 } 1457 }
1437 1458
1438 checkUnnamed2121(core.List<core.List<core.Object>> o) { 1459 checkUnnamed2139(core.List<core.List<core.Object>> o) {
1439 unittest.expect(o, unittest.hasLength(2)); 1460 unittest.expect(o, unittest.hasLength(2));
1440 checkUnnamed2120(o[0]); 1461 checkUnnamed2138(o[0]);
1441 checkUnnamed2120(o[1]); 1462 checkUnnamed2138(o[1]);
1442 } 1463 }
1443 1464
1444 core.int buildCounterResultSet = 0; 1465 core.int buildCounterResultSet = 0;
1445 buildResultSet() { 1466 buildResultSet() {
1446 var o = new api.ResultSet(); 1467 var o = new api.ResultSet();
1447 buildCounterResultSet++; 1468 buildCounterResultSet++;
1448 if (buildCounterResultSet < 3) { 1469 if (buildCounterResultSet < 3) {
1449 o.metadata = buildResultSetMetadata(); 1470 o.metadata = buildResultSetMetadata();
1450 o.rows = buildUnnamed2121(); 1471 o.rows = buildUnnamed2139();
1451 o.stats = buildResultSetStats(); 1472 o.stats = buildResultSetStats();
1452 } 1473 }
1453 buildCounterResultSet--; 1474 buildCounterResultSet--;
1454 return o; 1475 return o;
1455 } 1476 }
1456 1477
1457 checkResultSet(api.ResultSet o) { 1478 checkResultSet(api.ResultSet o) {
1458 buildCounterResultSet++; 1479 buildCounterResultSet++;
1459 if (buildCounterResultSet < 3) { 1480 if (buildCounterResultSet < 3) {
1460 checkResultSetMetadata(o.metadata); 1481 checkResultSetMetadata(o.metadata);
1461 checkUnnamed2121(o.rows); 1482 checkUnnamed2139(o.rows);
1462 checkResultSetStats(o.stats); 1483 checkResultSetStats(o.stats);
1463 } 1484 }
1464 buildCounterResultSet--; 1485 buildCounterResultSet--;
1465 } 1486 }
1466 1487
1467 core.int buildCounterResultSetMetadata = 0; 1488 core.int buildCounterResultSetMetadata = 0;
1468 buildResultSetMetadata() { 1489 buildResultSetMetadata() {
1469 var o = new api.ResultSetMetadata(); 1490 var o = new api.ResultSetMetadata();
1470 buildCounterResultSetMetadata++; 1491 buildCounterResultSetMetadata++;
1471 if (buildCounterResultSetMetadata < 3) { 1492 if (buildCounterResultSetMetadata < 3) {
1472 o.rowType = buildStructType(); 1493 o.rowType = buildStructType();
1473 o.transaction = buildTransaction(); 1494 o.transaction = buildTransaction();
1474 } 1495 }
1475 buildCounterResultSetMetadata--; 1496 buildCounterResultSetMetadata--;
1476 return o; 1497 return o;
1477 } 1498 }
1478 1499
1479 checkResultSetMetadata(api.ResultSetMetadata o) { 1500 checkResultSetMetadata(api.ResultSetMetadata o) {
1480 buildCounterResultSetMetadata++; 1501 buildCounterResultSetMetadata++;
1481 if (buildCounterResultSetMetadata < 3) { 1502 if (buildCounterResultSetMetadata < 3) {
1482 checkStructType(o.rowType); 1503 checkStructType(o.rowType);
1483 checkTransaction(o.transaction); 1504 checkTransaction(o.transaction);
1484 } 1505 }
1485 buildCounterResultSetMetadata--; 1506 buildCounterResultSetMetadata--;
1486 } 1507 }
1487 1508
1488 buildUnnamed2122() { 1509 buildUnnamed2140() {
1489 var o = new core.Map<core.String, core.Object>(); 1510 var o = new core.Map<core.String, core.Object>();
1490 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1511 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1491 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1512 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1492 return o; 1513 return o;
1493 } 1514 }
1494 1515
1495 checkUnnamed2122(core.Map<core.String, core.Object> o) { 1516 checkUnnamed2140(core.Map<core.String, core.Object> o) {
1496 unittest.expect(o, unittest.hasLength(2)); 1517 unittest.expect(o, unittest.hasLength(2));
1497 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest .expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri ng"], unittest.equals('foo')); 1518 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'));
1498 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest .expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri ng"], unittest.equals('foo')); 1519 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'));
1499 } 1520 }
1500 1521
1501 core.int buildCounterResultSetStats = 0; 1522 core.int buildCounterResultSetStats = 0;
1502 buildResultSetStats() { 1523 buildResultSetStats() {
1503 var o = new api.ResultSetStats(); 1524 var o = new api.ResultSetStats();
1504 buildCounterResultSetStats++; 1525 buildCounterResultSetStats++;
1505 if (buildCounterResultSetStats < 3) { 1526 if (buildCounterResultSetStats < 3) {
1506 o.queryPlan = buildQueryPlan(); 1527 o.queryPlan = buildQueryPlan();
1507 o.queryStats = buildUnnamed2122(); 1528 o.queryStats = buildUnnamed2140();
1508 } 1529 }
1509 buildCounterResultSetStats--; 1530 buildCounterResultSetStats--;
1510 return o; 1531 return o;
1511 } 1532 }
1512 1533
1513 checkResultSetStats(api.ResultSetStats o) { 1534 checkResultSetStats(api.ResultSetStats o) {
1514 buildCounterResultSetStats++; 1535 buildCounterResultSetStats++;
1515 if (buildCounterResultSetStats < 3) { 1536 if (buildCounterResultSetStats < 3) {
1516 checkQueryPlan(o.queryPlan); 1537 checkQueryPlan(o.queryPlan);
1517 checkUnnamed2122(o.queryStats); 1538 checkUnnamed2140(o.queryStats);
1518 } 1539 }
1519 buildCounterResultSetStats--; 1540 buildCounterResultSetStats--;
1520 } 1541 }
1521 1542
1522 core.int buildCounterRollbackRequest = 0; 1543 core.int buildCounterRollbackRequest = 0;
1523 buildRollbackRequest() { 1544 buildRollbackRequest() {
1524 var o = new api.RollbackRequest(); 1545 var o = new api.RollbackRequest();
1525 buildCounterRollbackRequest++; 1546 buildCounterRollbackRequest++;
1526 if (buildCounterRollbackRequest < 3) { 1547 if (buildCounterRollbackRequest < 3) {
1527 o.transactionId = "foo"; 1548 o.transactionId = "foo";
1528 } 1549 }
1529 buildCounterRollbackRequest--; 1550 buildCounterRollbackRequest--;
1530 return o; 1551 return o;
1531 } 1552 }
1532 1553
1533 checkRollbackRequest(api.RollbackRequest o) { 1554 checkRollbackRequest(api.RollbackRequest o) {
1534 buildCounterRollbackRequest++; 1555 buildCounterRollbackRequest++;
1535 if (buildCounterRollbackRequest < 3) { 1556 if (buildCounterRollbackRequest < 3) {
1536 unittest.expect(o.transactionId, unittest.equals('foo')); 1557 unittest.expect(o.transactionId, unittest.equals('foo'));
1537 } 1558 }
1538 buildCounterRollbackRequest--; 1559 buildCounterRollbackRequest--;
1539 } 1560 }
1540 1561
1541 buildUnnamed2123() { 1562 buildUnnamed2141() {
1542 var o = new core.List<api.Condition>(); 1563 var o = new core.List<api.Condition>();
1543 o.add(buildCondition()); 1564 o.add(buildCondition());
1544 o.add(buildCondition()); 1565 o.add(buildCondition());
1545 return o; 1566 return o;
1546 } 1567 }
1547 1568
1548 checkUnnamed2123(core.List<api.Condition> o) { 1569 checkUnnamed2141(core.List<api.Condition> o) {
1549 unittest.expect(o, unittest.hasLength(2)); 1570 unittest.expect(o, unittest.hasLength(2));
1550 checkCondition(o[0]); 1571 checkCondition(o[0]);
1551 checkCondition(o[1]); 1572 checkCondition(o[1]);
1552 } 1573 }
1553 1574
1554 buildUnnamed2124() { 1575 buildUnnamed2142() {
1555 var o = new core.List<core.String>(); 1576 var o = new core.List<core.String>();
1556 o.add("foo"); 1577 o.add("foo");
1557 o.add("foo"); 1578 o.add("foo");
1558 return o; 1579 return o;
1559 } 1580 }
1560 1581
1561 checkUnnamed2124(core.List<core.String> o) { 1582 checkUnnamed2142(core.List<core.String> o) {
1562 unittest.expect(o, unittest.hasLength(2)); 1583 unittest.expect(o, unittest.hasLength(2));
1563 unittest.expect(o[0], unittest.equals('foo')); 1584 unittest.expect(o[0], unittest.equals('foo'));
1564 unittest.expect(o[1], unittest.equals('foo')); 1585 unittest.expect(o[1], unittest.equals('foo'));
1565 } 1586 }
1566 1587
1567 buildUnnamed2125() { 1588 buildUnnamed2143() {
1568 var o = new core.List<api.LogConfig>(); 1589 var o = new core.List<api.LogConfig>();
1569 o.add(buildLogConfig()); 1590 o.add(buildLogConfig());
1570 o.add(buildLogConfig()); 1591 o.add(buildLogConfig());
1571 return o; 1592 return o;
1572 } 1593 }
1573 1594
1574 checkUnnamed2125(core.List<api.LogConfig> o) { 1595 checkUnnamed2143(core.List<api.LogConfig> o) {
1575 unittest.expect(o, unittest.hasLength(2)); 1596 unittest.expect(o, unittest.hasLength(2));
1576 checkLogConfig(o[0]); 1597 checkLogConfig(o[0]);
1577 checkLogConfig(o[1]); 1598 checkLogConfig(o[1]);
1578 } 1599 }
1579 1600
1580 buildUnnamed2126() { 1601 buildUnnamed2144() {
1581 var o = new core.List<core.String>(); 1602 var o = new core.List<core.String>();
1582 o.add("foo"); 1603 o.add("foo");
1583 o.add("foo"); 1604 o.add("foo");
1584 return o; 1605 return o;
1585 } 1606 }
1586 1607
1587 checkUnnamed2126(core.List<core.String> o) { 1608 checkUnnamed2144(core.List<core.String> o) {
1588 unittest.expect(o, unittest.hasLength(2)); 1609 unittest.expect(o, unittest.hasLength(2));
1589 unittest.expect(o[0], unittest.equals('foo')); 1610 unittest.expect(o[0], unittest.equals('foo'));
1590 unittest.expect(o[1], unittest.equals('foo')); 1611 unittest.expect(o[1], unittest.equals('foo'));
1591 } 1612 }
1592 1613
1593 buildUnnamed2127() { 1614 buildUnnamed2145() {
1594 var o = new core.List<core.String>(); 1615 var o = new core.List<core.String>();
1595 o.add("foo"); 1616 o.add("foo");
1596 o.add("foo"); 1617 o.add("foo");
1597 return o; 1618 return o;
1598 } 1619 }
1599 1620
1600 checkUnnamed2127(core.List<core.String> o) { 1621 checkUnnamed2145(core.List<core.String> o) {
1601 unittest.expect(o, unittest.hasLength(2)); 1622 unittest.expect(o, unittest.hasLength(2));
1602 unittest.expect(o[0], unittest.equals('foo')); 1623 unittest.expect(o[0], unittest.equals('foo'));
1603 unittest.expect(o[1], unittest.equals('foo')); 1624 unittest.expect(o[1], unittest.equals('foo'));
1604 } 1625 }
1605 1626
1606 core.int buildCounterRule = 0; 1627 core.int buildCounterRule = 0;
1607 buildRule() { 1628 buildRule() {
1608 var o = new api.Rule(); 1629 var o = new api.Rule();
1609 buildCounterRule++; 1630 buildCounterRule++;
1610 if (buildCounterRule < 3) { 1631 if (buildCounterRule < 3) {
1611 o.action = "foo"; 1632 o.action = "foo";
1612 o.conditions = buildUnnamed2123(); 1633 o.conditions = buildUnnamed2141();
1613 o.description = "foo"; 1634 o.description = "foo";
1614 o.in_ = buildUnnamed2124(); 1635 o.in_ = buildUnnamed2142();
1615 o.logConfig = buildUnnamed2125(); 1636 o.logConfig = buildUnnamed2143();
1616 o.notIn = buildUnnamed2126(); 1637 o.notIn = buildUnnamed2144();
1617 o.permissions = buildUnnamed2127(); 1638 o.permissions = buildUnnamed2145();
1618 } 1639 }
1619 buildCounterRule--; 1640 buildCounterRule--;
1620 return o; 1641 return o;
1621 } 1642 }
1622 1643
1623 checkRule(api.Rule o) { 1644 checkRule(api.Rule o) {
1624 buildCounterRule++; 1645 buildCounterRule++;
1625 if (buildCounterRule < 3) { 1646 if (buildCounterRule < 3) {
1626 unittest.expect(o.action, unittest.equals('foo')); 1647 unittest.expect(o.action, unittest.equals('foo'));
1627 checkUnnamed2123(o.conditions); 1648 checkUnnamed2141(o.conditions);
1628 unittest.expect(o.description, unittest.equals('foo')); 1649 unittest.expect(o.description, unittest.equals('foo'));
1629 checkUnnamed2124(o.in_); 1650 checkUnnamed2142(o.in_);
1630 checkUnnamed2125(o.logConfig); 1651 checkUnnamed2143(o.logConfig);
1631 checkUnnamed2126(o.notIn); 1652 checkUnnamed2144(o.notIn);
1632 checkUnnamed2127(o.permissions); 1653 checkUnnamed2145(o.permissions);
1633 } 1654 }
1634 buildCounterRule--; 1655 buildCounterRule--;
1635 } 1656 }
1636 1657
1637 core.int buildCounterSession = 0; 1658 core.int buildCounterSession = 0;
1638 buildSession() { 1659 buildSession() {
1639 var o = new api.Session(); 1660 var o = new api.Session();
1640 buildCounterSession++; 1661 buildCounterSession++;
1641 if (buildCounterSession < 3) { 1662 if (buildCounterSession < 3) {
1642 o.name = "foo"; 1663 o.name = "foo";
(...skipping 24 matching lines...) Expand all
1667 1688
1668 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { 1689 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
1669 buildCounterSetIamPolicyRequest++; 1690 buildCounterSetIamPolicyRequest++;
1670 if (buildCounterSetIamPolicyRequest < 3) { 1691 if (buildCounterSetIamPolicyRequest < 3) {
1671 checkPolicy(o.policy); 1692 checkPolicy(o.policy);
1672 unittest.expect(o.updateMask, unittest.equals('foo')); 1693 unittest.expect(o.updateMask, unittest.equals('foo'));
1673 } 1694 }
1674 buildCounterSetIamPolicyRequest--; 1695 buildCounterSetIamPolicyRequest--;
1675 } 1696 }
1676 1697
1677 buildUnnamed2128() { 1698 buildUnnamed2146() {
1678 var o = new core.Map<core.String, core.int>(); 1699 var o = new core.Map<core.String, core.int>();
1679 o["x"] = 42; 1700 o["x"] = 42;
1680 o["y"] = 42; 1701 o["y"] = 42;
1681 return o; 1702 return o;
1682 } 1703 }
1683 1704
1684 checkUnnamed2128(core.Map<core.String, core.int> o) { 1705 checkUnnamed2146(core.Map<core.String, core.int> o) {
1685 unittest.expect(o, unittest.hasLength(2)); 1706 unittest.expect(o, unittest.hasLength(2));
1686 unittest.expect(o["x"], unittest.equals(42)); 1707 unittest.expect(o["x"], unittest.equals(42));
1687 unittest.expect(o["y"], unittest.equals(42)); 1708 unittest.expect(o["y"], unittest.equals(42));
1688 } 1709 }
1689 1710
1690 core.int buildCounterShortRepresentation = 0; 1711 core.int buildCounterShortRepresentation = 0;
1691 buildShortRepresentation() { 1712 buildShortRepresentation() {
1692 var o = new api.ShortRepresentation(); 1713 var o = new api.ShortRepresentation();
1693 buildCounterShortRepresentation++; 1714 buildCounterShortRepresentation++;
1694 if (buildCounterShortRepresentation < 3) { 1715 if (buildCounterShortRepresentation < 3) {
1695 o.description = "foo"; 1716 o.description = "foo";
1696 o.subqueries = buildUnnamed2128(); 1717 o.subqueries = buildUnnamed2146();
1697 } 1718 }
1698 buildCounterShortRepresentation--; 1719 buildCounterShortRepresentation--;
1699 return o; 1720 return o;
1700 } 1721 }
1701 1722
1702 checkShortRepresentation(api.ShortRepresentation o) { 1723 checkShortRepresentation(api.ShortRepresentation o) {
1703 buildCounterShortRepresentation++; 1724 buildCounterShortRepresentation++;
1704 if (buildCounterShortRepresentation < 3) { 1725 if (buildCounterShortRepresentation < 3) {
1705 unittest.expect(o.description, unittest.equals('foo')); 1726 unittest.expect(o.description, unittest.equals('foo'));
1706 checkUnnamed2128(o.subqueries); 1727 checkUnnamed2146(o.subqueries);
1707 } 1728 }
1708 buildCounterShortRepresentation--; 1729 buildCounterShortRepresentation--;
1709 } 1730 }
1710 1731
1711 buildUnnamed2129() { 1732 buildUnnamed2147() {
1712 var o = new core.Map<core.String, core.Object>(); 1733 var o = new core.Map<core.String, core.Object>();
1713 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1734 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1714 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1735 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1715 return o; 1736 return o;
1716 } 1737 }
1717 1738
1718 checkUnnamed2129(core.Map<core.String, core.Object> o) { 1739 checkUnnamed2147(core.Map<core.String, core.Object> o) {
1719 unittest.expect(o, unittest.hasLength(2)); 1740 unittest.expect(o, unittest.hasLength(2));
1720 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest .expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri ng"], unittest.equals('foo')); 1741 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'));
1721 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest .expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri ng"], unittest.equals('foo')); 1742 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'));
1722 } 1743 }
1723 1744
1724 buildUnnamed2130() { 1745 buildUnnamed2148() {
1725 var o = new core.List<core.Map<core.String, core.Object>>(); 1746 var o = new core.List<core.Map<core.String, core.Object>>();
1726 o.add(buildUnnamed2129()); 1747 o.add(buildUnnamed2147());
1727 o.add(buildUnnamed2129()); 1748 o.add(buildUnnamed2147());
1728 return o; 1749 return o;
1729 } 1750 }
1730 1751
1731 checkUnnamed2130(core.List<core.Map<core.String, core.Object>> o) { 1752 checkUnnamed2148(core.List<core.Map<core.String, core.Object>> o) {
1732 unittest.expect(o, unittest.hasLength(2)); 1753 unittest.expect(o, unittest.hasLength(2));
1733 checkUnnamed2129(o[0]); 1754 checkUnnamed2147(o[0]);
1734 checkUnnamed2129(o[1]); 1755 checkUnnamed2147(o[1]);
1735 } 1756 }
1736 1757
1737 core.int buildCounterStatus = 0; 1758 core.int buildCounterStatus = 0;
1738 buildStatus() { 1759 buildStatus() {
1739 var o = new api.Status(); 1760 var o = new api.Status();
1740 buildCounterStatus++; 1761 buildCounterStatus++;
1741 if (buildCounterStatus < 3) { 1762 if (buildCounterStatus < 3) {
1742 o.code = 42; 1763 o.code = 42;
1743 o.details = buildUnnamed2130(); 1764 o.details = buildUnnamed2148();
1744 o.message = "foo"; 1765 o.message = "foo";
1745 } 1766 }
1746 buildCounterStatus--; 1767 buildCounterStatus--;
1747 return o; 1768 return o;
1748 } 1769 }
1749 1770
1750 checkStatus(api.Status o) { 1771 checkStatus(api.Status o) {
1751 buildCounterStatus++; 1772 buildCounterStatus++;
1752 if (buildCounterStatus < 3) { 1773 if (buildCounterStatus < 3) {
1753 unittest.expect(o.code, unittest.equals(42)); 1774 unittest.expect(o.code, unittest.equals(42));
1754 checkUnnamed2130(o.details); 1775 checkUnnamed2148(o.details);
1755 unittest.expect(o.message, unittest.equals('foo')); 1776 unittest.expect(o.message, unittest.equals('foo'));
1756 } 1777 }
1757 buildCounterStatus--; 1778 buildCounterStatus--;
1758 } 1779 }
1759 1780
1760 buildUnnamed2131() { 1781 buildUnnamed2149() {
1761 var o = new core.List<api.Field>(); 1782 var o = new core.List<api.Field>();
1762 o.add(buildField()); 1783 o.add(buildField());
1763 o.add(buildField()); 1784 o.add(buildField());
1764 return o; 1785 return o;
1765 } 1786 }
1766 1787
1767 checkUnnamed2131(core.List<api.Field> o) { 1788 checkUnnamed2149(core.List<api.Field> o) {
1768 unittest.expect(o, unittest.hasLength(2)); 1789 unittest.expect(o, unittest.hasLength(2));
1769 checkField(o[0]); 1790 checkField(o[0]);
1770 checkField(o[1]); 1791 checkField(o[1]);
1771 } 1792 }
1772 1793
1773 core.int buildCounterStructType = 0; 1794 core.int buildCounterStructType = 0;
1774 buildStructType() { 1795 buildStructType() {
1775 var o = new api.StructType(); 1796 var o = new api.StructType();
1776 buildCounterStructType++; 1797 buildCounterStructType++;
1777 if (buildCounterStructType < 3) { 1798 if (buildCounterStructType < 3) {
1778 o.fields = buildUnnamed2131(); 1799 o.fields = buildUnnamed2149();
1779 } 1800 }
1780 buildCounterStructType--; 1801 buildCounterStructType--;
1781 return o; 1802 return o;
1782 } 1803 }
1783 1804
1784 checkStructType(api.StructType o) { 1805 checkStructType(api.StructType o) {
1785 buildCounterStructType++; 1806 buildCounterStructType++;
1786 if (buildCounterStructType < 3) { 1807 if (buildCounterStructType < 3) {
1787 checkUnnamed2131(o.fields); 1808 checkUnnamed2149(o.fields);
1788 } 1809 }
1789 buildCounterStructType--; 1810 buildCounterStructType--;
1790 } 1811 }
1791 1812
1792 buildUnnamed2132() { 1813 buildUnnamed2150() {
1793 var o = new core.List<core.String>(); 1814 var o = new core.List<core.String>();
1794 o.add("foo"); 1815 o.add("foo");
1795 o.add("foo"); 1816 o.add("foo");
1796 return o; 1817 return o;
1797 } 1818 }
1798 1819
1799 checkUnnamed2132(core.List<core.String> o) { 1820 checkUnnamed2150(core.List<core.String> o) {
1800 unittest.expect(o, unittest.hasLength(2)); 1821 unittest.expect(o, unittest.hasLength(2));
1801 unittest.expect(o[0], unittest.equals('foo')); 1822 unittest.expect(o[0], unittest.equals('foo'));
1802 unittest.expect(o[1], unittest.equals('foo')); 1823 unittest.expect(o[1], unittest.equals('foo'));
1803 } 1824 }
1804 1825
1805 core.int buildCounterTestIamPermissionsRequest = 0; 1826 core.int buildCounterTestIamPermissionsRequest = 0;
1806 buildTestIamPermissionsRequest() { 1827 buildTestIamPermissionsRequest() {
1807 var o = new api.TestIamPermissionsRequest(); 1828 var o = new api.TestIamPermissionsRequest();
1808 buildCounterTestIamPermissionsRequest++; 1829 buildCounterTestIamPermissionsRequest++;
1809 if (buildCounterTestIamPermissionsRequest < 3) { 1830 if (buildCounterTestIamPermissionsRequest < 3) {
1810 o.permissions = buildUnnamed2132(); 1831 o.permissions = buildUnnamed2150();
1811 } 1832 }
1812 buildCounterTestIamPermissionsRequest--; 1833 buildCounterTestIamPermissionsRequest--;
1813 return o; 1834 return o;
1814 } 1835 }
1815 1836
1816 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 1837 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
1817 buildCounterTestIamPermissionsRequest++; 1838 buildCounterTestIamPermissionsRequest++;
1818 if (buildCounterTestIamPermissionsRequest < 3) { 1839 if (buildCounterTestIamPermissionsRequest < 3) {
1819 checkUnnamed2132(o.permissions); 1840 checkUnnamed2150(o.permissions);
1820 } 1841 }
1821 buildCounterTestIamPermissionsRequest--; 1842 buildCounterTestIamPermissionsRequest--;
1822 } 1843 }
1823 1844
1824 buildUnnamed2133() { 1845 buildUnnamed2151() {
1825 var o = new core.List<core.String>(); 1846 var o = new core.List<core.String>();
1826 o.add("foo"); 1847 o.add("foo");
1827 o.add("foo"); 1848 o.add("foo");
1828 return o; 1849 return o;
1829 } 1850 }
1830 1851
1831 checkUnnamed2133(core.List<core.String> o) { 1852 checkUnnamed2151(core.List<core.String> o) {
1832 unittest.expect(o, unittest.hasLength(2)); 1853 unittest.expect(o, unittest.hasLength(2));
1833 unittest.expect(o[0], unittest.equals('foo')); 1854 unittest.expect(o[0], unittest.equals('foo'));
1834 unittest.expect(o[1], unittest.equals('foo')); 1855 unittest.expect(o[1], unittest.equals('foo'));
1835 } 1856 }
1836 1857
1837 core.int buildCounterTestIamPermissionsResponse = 0; 1858 core.int buildCounterTestIamPermissionsResponse = 0;
1838 buildTestIamPermissionsResponse() { 1859 buildTestIamPermissionsResponse() {
1839 var o = new api.TestIamPermissionsResponse(); 1860 var o = new api.TestIamPermissionsResponse();
1840 buildCounterTestIamPermissionsResponse++; 1861 buildCounterTestIamPermissionsResponse++;
1841 if (buildCounterTestIamPermissionsResponse < 3) { 1862 if (buildCounterTestIamPermissionsResponse < 3) {
1842 o.permissions = buildUnnamed2133(); 1863 o.permissions = buildUnnamed2151();
1843 } 1864 }
1844 buildCounterTestIamPermissionsResponse--; 1865 buildCounterTestIamPermissionsResponse--;
1845 return o; 1866 return o;
1846 } 1867 }
1847 1868
1848 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 1869 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
1849 buildCounterTestIamPermissionsResponse++; 1870 buildCounterTestIamPermissionsResponse++;
1850 if (buildCounterTestIamPermissionsResponse < 3) { 1871 if (buildCounterTestIamPermissionsResponse < 3) {
1851 checkUnnamed2133(o.permissions); 1872 checkUnnamed2151(o.permissions);
1852 } 1873 }
1853 buildCounterTestIamPermissionsResponse--; 1874 buildCounterTestIamPermissionsResponse--;
1854 } 1875 }
1855 1876
1856 core.int buildCounterTransaction = 0; 1877 core.int buildCounterTransaction = 0;
1857 buildTransaction() { 1878 buildTransaction() {
1858 var o = new api.Transaction(); 1879 var o = new api.Transaction();
1859 buildCounterTransaction++; 1880 buildCounterTransaction++;
1860 if (buildCounterTransaction < 3) { 1881 if (buildCounterTransaction < 3) {
1861 o.id = "foo"; 1882 o.id = "foo";
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 checkType(api.Type o) { 1955 checkType(api.Type o) {
1935 buildCounterType++; 1956 buildCounterType++;
1936 if (buildCounterType < 3) { 1957 if (buildCounterType < 3) {
1937 checkType(o.arrayElementType); 1958 checkType(o.arrayElementType);
1938 unittest.expect(o.code, unittest.equals('foo')); 1959 unittest.expect(o.code, unittest.equals('foo'));
1939 checkStructType(o.structType); 1960 checkStructType(o.structType);
1940 } 1961 }
1941 buildCounterType--; 1962 buildCounterType--;
1942 } 1963 }
1943 1964
1944 buildUnnamed2134() { 1965 buildUnnamed2152() {
1945 var o = new core.List<core.String>(); 1966 var o = new core.List<core.String>();
1946 o.add("foo"); 1967 o.add("foo");
1947 o.add("foo"); 1968 o.add("foo");
1948 return o; 1969 return o;
1949 } 1970 }
1950 1971
1951 checkUnnamed2134(core.List<core.String> o) { 1972 checkUnnamed2152(core.List<core.String> o) {
1952 unittest.expect(o, unittest.hasLength(2)); 1973 unittest.expect(o, unittest.hasLength(2));
1953 unittest.expect(o[0], unittest.equals('foo')); 1974 unittest.expect(o[0], unittest.equals('foo'));
1954 unittest.expect(o[1], unittest.equals('foo')); 1975 unittest.expect(o[1], unittest.equals('foo'));
1955 } 1976 }
1956 1977
1957 buildUnnamed2135() { 1978 buildUnnamed2153() {
1958 var o = new core.List<core.String>(); 1979 var o = new core.List<core.String>();
1959 o.add("foo"); 1980 o.add("foo");
1960 o.add("foo"); 1981 o.add("foo");
1961 return o; 1982 return o;
1962 } 1983 }
1963 1984
1964 checkUnnamed2135(core.List<core.String> o) { 1985 checkUnnamed2153(core.List<core.String> o) {
1965 unittest.expect(o, unittest.hasLength(2)); 1986 unittest.expect(o, unittest.hasLength(2));
1966 unittest.expect(o[0], unittest.equals('foo')); 1987 unittest.expect(o[0], unittest.equals('foo'));
1967 unittest.expect(o[1], unittest.equals('foo')); 1988 unittest.expect(o[1], unittest.equals('foo'));
1968 } 1989 }
1969 1990
1970 core.int buildCounterUpdateDatabaseDdlMetadata = 0; 1991 core.int buildCounterUpdateDatabaseDdlMetadata = 0;
1971 buildUpdateDatabaseDdlMetadata() { 1992 buildUpdateDatabaseDdlMetadata() {
1972 var o = new api.UpdateDatabaseDdlMetadata(); 1993 var o = new api.UpdateDatabaseDdlMetadata();
1973 buildCounterUpdateDatabaseDdlMetadata++; 1994 buildCounterUpdateDatabaseDdlMetadata++;
1974 if (buildCounterUpdateDatabaseDdlMetadata < 3) { 1995 if (buildCounterUpdateDatabaseDdlMetadata < 3) {
1975 o.commitTimestamps = buildUnnamed2134(); 1996 o.commitTimestamps = buildUnnamed2152();
1976 o.database = "foo"; 1997 o.database = "foo";
1977 o.statements = buildUnnamed2135(); 1998 o.statements = buildUnnamed2153();
1978 } 1999 }
1979 buildCounterUpdateDatabaseDdlMetadata--; 2000 buildCounterUpdateDatabaseDdlMetadata--;
1980 return o; 2001 return o;
1981 } 2002 }
1982 2003
1983 checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { 2004 checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) {
1984 buildCounterUpdateDatabaseDdlMetadata++; 2005 buildCounterUpdateDatabaseDdlMetadata++;
1985 if (buildCounterUpdateDatabaseDdlMetadata < 3) { 2006 if (buildCounterUpdateDatabaseDdlMetadata < 3) {
1986 checkUnnamed2134(o.commitTimestamps); 2007 checkUnnamed2152(o.commitTimestamps);
1987 unittest.expect(o.database, unittest.equals('foo')); 2008 unittest.expect(o.database, unittest.equals('foo'));
1988 checkUnnamed2135(o.statements); 2009 checkUnnamed2153(o.statements);
1989 } 2010 }
1990 buildCounterUpdateDatabaseDdlMetadata--; 2011 buildCounterUpdateDatabaseDdlMetadata--;
1991 } 2012 }
1992 2013
1993 buildUnnamed2136() { 2014 buildUnnamed2154() {
1994 var o = new core.List<core.String>(); 2015 var o = new core.List<core.String>();
1995 o.add("foo"); 2016 o.add("foo");
1996 o.add("foo"); 2017 o.add("foo");
1997 return o; 2018 return o;
1998 } 2019 }
1999 2020
2000 checkUnnamed2136(core.List<core.String> o) { 2021 checkUnnamed2154(core.List<core.String> o) {
2001 unittest.expect(o, unittest.hasLength(2)); 2022 unittest.expect(o, unittest.hasLength(2));
2002 unittest.expect(o[0], unittest.equals('foo')); 2023 unittest.expect(o[0], unittest.equals('foo'));
2003 unittest.expect(o[1], unittest.equals('foo')); 2024 unittest.expect(o[1], unittest.equals('foo'));
2004 } 2025 }
2005 2026
2006 core.int buildCounterUpdateDatabaseDdlRequest = 0; 2027 core.int buildCounterUpdateDatabaseDdlRequest = 0;
2007 buildUpdateDatabaseDdlRequest() { 2028 buildUpdateDatabaseDdlRequest() {
2008 var o = new api.UpdateDatabaseDdlRequest(); 2029 var o = new api.UpdateDatabaseDdlRequest();
2009 buildCounterUpdateDatabaseDdlRequest++; 2030 buildCounterUpdateDatabaseDdlRequest++;
2010 if (buildCounterUpdateDatabaseDdlRequest < 3) { 2031 if (buildCounterUpdateDatabaseDdlRequest < 3) {
2011 o.operationId = "foo"; 2032 o.operationId = "foo";
2012 o.statements = buildUnnamed2136(); 2033 o.statements = buildUnnamed2154();
2013 } 2034 }
2014 buildCounterUpdateDatabaseDdlRequest--; 2035 buildCounterUpdateDatabaseDdlRequest--;
2015 return o; 2036 return o;
2016 } 2037 }
2017 2038
2018 checkUpdateDatabaseDdlRequest(api.UpdateDatabaseDdlRequest o) { 2039 checkUpdateDatabaseDdlRequest(api.UpdateDatabaseDdlRequest o) {
2019 buildCounterUpdateDatabaseDdlRequest++; 2040 buildCounterUpdateDatabaseDdlRequest++;
2020 if (buildCounterUpdateDatabaseDdlRequest < 3) { 2041 if (buildCounterUpdateDatabaseDdlRequest < 3) {
2021 unittest.expect(o.operationId, unittest.equals('foo')); 2042 unittest.expect(o.operationId, unittest.equals('foo'));
2022 checkUnnamed2136(o.statements); 2043 checkUnnamed2154(o.statements);
2023 } 2044 }
2024 buildCounterUpdateDatabaseDdlRequest--; 2045 buildCounterUpdateDatabaseDdlRequest--;
2025 } 2046 }
2026 2047
2027 core.int buildCounterUpdateInstanceMetadata = 0; 2048 core.int buildCounterUpdateInstanceMetadata = 0;
2028 buildUpdateInstanceMetadata() { 2049 buildUpdateInstanceMetadata() {
2029 var o = new api.UpdateInstanceMetadata(); 2050 var o = new api.UpdateInstanceMetadata();
2030 buildCounterUpdateInstanceMetadata++; 2051 buildCounterUpdateInstanceMetadata++;
2031 if (buildCounterUpdateInstanceMetadata < 3) { 2052 if (buildCounterUpdateInstanceMetadata < 3) {
2032 o.cancelTime = "foo"; 2053 o.cancelTime = "foo";
(...skipping 30 matching lines...) Expand all
2063 2084
2064 checkUpdateInstanceRequest(api.UpdateInstanceRequest o) { 2085 checkUpdateInstanceRequest(api.UpdateInstanceRequest o) {
2065 buildCounterUpdateInstanceRequest++; 2086 buildCounterUpdateInstanceRequest++;
2066 if (buildCounterUpdateInstanceRequest < 3) { 2087 if (buildCounterUpdateInstanceRequest < 3) {
2067 unittest.expect(o.fieldMask, unittest.equals('foo')); 2088 unittest.expect(o.fieldMask, unittest.equals('foo'));
2068 checkInstance(o.instance); 2089 checkInstance(o.instance);
2069 } 2090 }
2070 buildCounterUpdateInstanceRequest--; 2091 buildCounterUpdateInstanceRequest--;
2071 } 2092 }
2072 2093
2073 buildUnnamed2137() { 2094 buildUnnamed2155() {
2074 var o = new core.List<core.String>(); 2095 var o = new core.List<core.String>();
2075 o.add("foo"); 2096 o.add("foo");
2076 o.add("foo"); 2097 o.add("foo");
2077 return o; 2098 return o;
2078 } 2099 }
2079 2100
2080 checkUnnamed2137(core.List<core.String> o) { 2101 checkUnnamed2155(core.List<core.String> o) {
2081 unittest.expect(o, unittest.hasLength(2)); 2102 unittest.expect(o, unittest.hasLength(2));
2082 unittest.expect(o[0], unittest.equals('foo')); 2103 unittest.expect(o[0], unittest.equals('foo'));
2083 unittest.expect(o[1], unittest.equals('foo')); 2104 unittest.expect(o[1], unittest.equals('foo'));
2084 } 2105 }
2085 2106
2086 buildUnnamed2138() { 2107 buildUnnamed2156() {
2087 var o = new core.List<core.Object>(); 2108 var o = new core.List<core.Object>();
2088 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 2109 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
2089 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 2110 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
2090 return o; 2111 return o;
2091 } 2112 }
2092 2113
2093 checkUnnamed2138(core.List<core.Object> o) { 2114 checkUnnamed2156(core.List<core.Object> o) {
2094 unittest.expect(o, unittest.hasLength(2)); 2115 unittest.expect(o, unittest.hasLength(2));
2095 var casted29 = (o[0]) as core.Map; unittest.expect(casted29, unittest.hasLengt h(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string "], unittest.equals('foo')); 2116 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'));
2096 var casted30 = (o[1]) as core.Map; unittest.expect(casted30, unittest.hasLengt h(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.e xpect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string "], unittest.equals('foo')); 2117 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'));
2097 } 2118 }
2098 2119
2099 buildUnnamed2139() { 2120 buildUnnamed2157() {
2100 var o = new core.List<core.List<core.Object>>(); 2121 var o = new core.List<core.List<core.Object>>();
2101 o.add(buildUnnamed2138()); 2122 o.add(buildUnnamed2156());
2102 o.add(buildUnnamed2138()); 2123 o.add(buildUnnamed2156());
2103 return o; 2124 return o;
2104 } 2125 }
2105 2126
2106 checkUnnamed2139(core.List<core.List<core.Object>> o) { 2127 checkUnnamed2157(core.List<core.List<core.Object>> o) {
2107 unittest.expect(o, unittest.hasLength(2)); 2128 unittest.expect(o, unittest.hasLength(2));
2108 checkUnnamed2138(o[0]); 2129 checkUnnamed2156(o[0]);
2109 checkUnnamed2138(o[1]); 2130 checkUnnamed2156(o[1]);
2110 } 2131 }
2111 2132
2112 core.int buildCounterWrite = 0; 2133 core.int buildCounterWrite = 0;
2113 buildWrite() { 2134 buildWrite() {
2114 var o = new api.Write(); 2135 var o = new api.Write();
2115 buildCounterWrite++; 2136 buildCounterWrite++;
2116 if (buildCounterWrite < 3) { 2137 if (buildCounterWrite < 3) {
2117 o.columns = buildUnnamed2137(); 2138 o.columns = buildUnnamed2155();
2118 o.table = "foo"; 2139 o.table = "foo";
2119 o.values = buildUnnamed2139(); 2140 o.values = buildUnnamed2157();
2120 } 2141 }
2121 buildCounterWrite--; 2142 buildCounterWrite--;
2122 return o; 2143 return o;
2123 } 2144 }
2124 2145
2125 checkWrite(api.Write o) { 2146 checkWrite(api.Write o) {
2126 buildCounterWrite++; 2147 buildCounterWrite++;
2127 if (buildCounterWrite < 3) { 2148 if (buildCounterWrite < 3) {
2128 checkUnnamed2137(o.columns); 2149 checkUnnamed2155(o.columns);
2129 unittest.expect(o.table, unittest.equals('foo')); 2150 unittest.expect(o.table, unittest.equals('foo'));
2130 checkUnnamed2139(o.values); 2151 checkUnnamed2157(o.values);
2131 } 2152 }
2132 buildCounterWrite--; 2153 buildCounterWrite--;
2133 } 2154 }
2134 2155
2135 2156
2136 main() { 2157 main() {
2137 unittest.group("obj-schema-AuditConfig", () { 2158 unittest.group("obj-schema-AuditConfig", () {
2138 unittest.test("to-json--from-json", () { 2159 unittest.test("to-json--from-json", () {
2139 var o = buildAuditConfig(); 2160 var o = buildAuditConfig();
2140 var od = new api.AuditConfig.fromJson(o.toJson()); 2161 var od = new api.AuditConfig.fromJson(o.toJson());
2141 checkAuditConfig(od); 2162 checkAuditConfig(od);
2142 }); 2163 });
2143 }); 2164 });
2144 2165
2145 2166
2146 unittest.group("obj-schema-AuditLogConfig", () { 2167 unittest.group("obj-schema-AuditLogConfig", () {
2147 unittest.test("to-json--from-json", () { 2168 unittest.test("to-json--from-json", () {
2148 var o = buildAuditLogConfig(); 2169 var o = buildAuditLogConfig();
2149 var od = new api.AuditLogConfig.fromJson(o.toJson()); 2170 var od = new api.AuditLogConfig.fromJson(o.toJson());
2150 checkAuditLogConfig(od); 2171 checkAuditLogConfig(od);
2151 }); 2172 });
2152 }); 2173 });
2153 2174
2154 2175
2176 unittest.group("obj-schema-AuthorizationLoggingOptions", () {
2177 unittest.test("to-json--from-json", () {
2178 var o = buildAuthorizationLoggingOptions();
2179 var od = new api.AuthorizationLoggingOptions.fromJson(o.toJson());
2180 checkAuthorizationLoggingOptions(od);
2181 });
2182 });
2183
2184
2155 unittest.group("obj-schema-BeginTransactionRequest", () { 2185 unittest.group("obj-schema-BeginTransactionRequest", () {
2156 unittest.test("to-json--from-json", () { 2186 unittest.test("to-json--from-json", () {
2157 var o = buildBeginTransactionRequest(); 2187 var o = buildBeginTransactionRequest();
2158 var od = new api.BeginTransactionRequest.fromJson(o.toJson()); 2188 var od = new api.BeginTransactionRequest.fromJson(o.toJson());
2159 checkBeginTransactionRequest(od); 2189 checkBeginTransactionRequest(od);
2160 }); 2190 });
2161 }); 2191 });
2162 2192
2163 2193
2164 unittest.group("obj-schema-Binding", () { 2194 unittest.group("obj-schema-Binding", () {
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2977 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a pi.Policy response) { 3007 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a pi.Policy response) {
2978 checkPolicy(response); 3008 checkPolicy(response);
2979 }))); 3009 })));
2980 }); 3010 });
2981 3011
2982 unittest.test("method--list", () { 3012 unittest.test("method--list", () {
2983 3013
2984 var mock = new HttpServerMock(); 3014 var mock = new HttpServerMock();
2985 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances; 3015 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances;
2986 var arg_parent = "foo"; 3016 var arg_parent = "foo";
2987 var arg_filter = "foo";
2988 var arg_pageToken = "foo"; 3017 var arg_pageToken = "foo";
2989 var arg_pageSize = 42; 3018 var arg_pageSize = 42;
3019 var arg_filter = "foo";
2990 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3020 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2991 var path = (req.url).path; 3021 var path = (req.url).path;
2992 var pathOffset = 0; 3022 var pathOffset = 0;
2993 var index; 3023 var index;
2994 var subPart; 3024 var subPart;
2995 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3025 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2996 pathOffset += 1; 3026 pathOffset += 1;
2997 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 3027 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
2998 pathOffset += 3; 3028 pathOffset += 3;
2999 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 3029 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
3000 3030
3001 var query = (req.url).query; 3031 var query = (req.url).query;
3002 var queryOffset = 0; 3032 var queryOffset = 0;
3003 var queryMap = {}; 3033 var queryMap = {};
3004 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3034 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3005 parseBool(n) { 3035 parseBool(n) {
3006 if (n == "true") return true; 3036 if (n == "true") return true;
3007 if (n == "false") return false; 3037 if (n == "false") return false;
3008 if (n == null) return null; 3038 if (n == null) return null;
3009 throw new core.ArgumentError("Invalid boolean: $n"); 3039 throw new core.ArgumentError("Invalid boolean: $n");
3010 } 3040 }
3011 if (query.length > 0) { 3041 if (query.length > 0) {
3012 for (var part in query.split("&")) { 3042 for (var part in query.split("&")) {
3013 var keyvalue = part.split("="); 3043 var keyvalue = part.split("=");
3014 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3044 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3015 } 3045 }
3016 } 3046 }
3017 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3018 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3047 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3019 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3048 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3049 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3020 3050
3021 3051
3022 var h = { 3052 var h = {
3023 "content-type" : "application/json; charset=utf-8", 3053 "content-type" : "application/json; charset=utf-8",
3024 }; 3054 };
3025 var resp = convert.JSON.encode(buildListInstancesResponse()); 3055 var resp = convert.JSON.encode(buildListInstancesResponse());
3026 return new async.Future.value(stringResponse(200, h, resp)); 3056 return new async.Future.value(stringResponse(200, h, resp));
3027 }), true); 3057 }), true);
3028 res.list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response ) { 3058 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, fil ter: arg_filter).then(unittest.expectAsync1(((api.ListInstancesResponse response ) {
3029 checkListInstancesResponse(response); 3059 checkListInstancesResponse(response);
3030 }))); 3060 })));
3031 }); 3061 });
3032 3062
3033 unittest.test("method--patch", () { 3063 unittest.test("method--patch", () {
3034 3064
3035 var mock = new HttpServerMock(); 3065 var mock = new HttpServerMock();
3036 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances; 3066 api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.i nstances;
3037 var arg_request = buildUpdateInstanceRequest(); 3067 var arg_request = buildUpdateInstanceRequest();
3038 var arg_name = "foo"; 3068 var arg_name = "foo";
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
4470 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { 4500 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) {
4471 checkListOperationsResponse(response); 4501 checkListOperationsResponse(response);
4472 }))); 4502 })));
4473 }); 4503 });
4474 4504
4475 }); 4505 });
4476 4506
4477 4507
4478 } 4508 }
4479 4509
OLDNEW
« no previous file with comments | « generated/googleapis/test/sourcerepo/v1_test.dart ('k') | generated/googleapis/test/speech/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698