OLD | NEW |
1 library googleapis.serviceuser.v1.test; | 1 library googleapis.serviceuser.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 Loading... |
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 buildUnnamed1727() { | 54 buildUnnamed1759() { |
55 var o = new core.List<api.Method>(); | 55 var o = new core.List<api.Method>(); |
56 o.add(buildMethod()); | 56 o.add(buildMethod()); |
57 o.add(buildMethod()); | 57 o.add(buildMethod()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1727(core.List<api.Method> o) { | 61 checkUnnamed1759(core.List<api.Method> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkMethod(o[0]); | 63 checkMethod(o[0]); |
64 checkMethod(o[1]); | 64 checkMethod(o[1]); |
65 } | 65 } |
66 | 66 |
67 buildUnnamed1728() { | 67 buildUnnamed1760() { |
68 var o = new core.List<api.Mixin>(); | 68 var o = new core.List<api.Mixin>(); |
69 o.add(buildMixin()); | 69 o.add(buildMixin()); |
70 o.add(buildMixin()); | 70 o.add(buildMixin()); |
71 return o; | 71 return o; |
72 } | 72 } |
73 | 73 |
74 checkUnnamed1728(core.List<api.Mixin> o) { | 74 checkUnnamed1760(core.List<api.Mixin> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
76 checkMixin(o[0]); | 76 checkMixin(o[0]); |
77 checkMixin(o[1]); | 77 checkMixin(o[1]); |
78 } | 78 } |
79 | 79 |
80 buildUnnamed1729() { | 80 buildUnnamed1761() { |
81 var o = new core.List<api.Option>(); | 81 var o = new core.List<api.Option>(); |
82 o.add(buildOption()); | 82 o.add(buildOption()); |
83 o.add(buildOption()); | 83 o.add(buildOption()); |
84 return o; | 84 return o; |
85 } | 85 } |
86 | 86 |
87 checkUnnamed1729(core.List<api.Option> o) { | 87 checkUnnamed1761(core.List<api.Option> o) { |
88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
89 checkOption(o[0]); | 89 checkOption(o[0]); |
90 checkOption(o[1]); | 90 checkOption(o[1]); |
91 } | 91 } |
92 | 92 |
93 core.int buildCounterApi = 0; | 93 core.int buildCounterApi = 0; |
94 buildApi() { | 94 buildApi() { |
95 var o = new api.Api(); | 95 var o = new api.Api(); |
96 buildCounterApi++; | 96 buildCounterApi++; |
97 if (buildCounterApi < 3) { | 97 if (buildCounterApi < 3) { |
98 o.methods = buildUnnamed1727(); | 98 o.methods = buildUnnamed1759(); |
99 o.mixins = buildUnnamed1728(); | 99 o.mixins = buildUnnamed1760(); |
100 o.name = "foo"; | 100 o.name = "foo"; |
101 o.options = buildUnnamed1729(); | 101 o.options = buildUnnamed1761(); |
102 o.sourceContext = buildSourceContext(); | 102 o.sourceContext = buildSourceContext(); |
103 o.syntax = "foo"; | 103 o.syntax = "foo"; |
104 o.version = "foo"; | 104 o.version = "foo"; |
105 } | 105 } |
106 buildCounterApi--; | 106 buildCounterApi--; |
107 return o; | 107 return o; |
108 } | 108 } |
109 | 109 |
110 checkApi(api.Api o) { | 110 checkApi(api.Api o) { |
111 buildCounterApi++; | 111 buildCounterApi++; |
112 if (buildCounterApi < 3) { | 112 if (buildCounterApi < 3) { |
113 checkUnnamed1727(o.methods); | 113 checkUnnamed1759(o.methods); |
114 checkUnnamed1728(o.mixins); | 114 checkUnnamed1760(o.mixins); |
115 unittest.expect(o.name, unittest.equals('foo')); | 115 unittest.expect(o.name, unittest.equals('foo')); |
116 checkUnnamed1729(o.options); | 116 checkUnnamed1761(o.options); |
117 checkSourceContext(o.sourceContext); | 117 checkSourceContext(o.sourceContext); |
118 unittest.expect(o.syntax, unittest.equals('foo')); | 118 unittest.expect(o.syntax, unittest.equals('foo')); |
119 unittest.expect(o.version, unittest.equals('foo')); | 119 unittest.expect(o.version, unittest.equals('foo')); |
120 } | 120 } |
121 buildCounterApi--; | 121 buildCounterApi--; |
122 } | 122 } |
123 | 123 |
124 core.int buildCounterAuthProvider = 0; | 124 core.int buildCounterAuthProvider = 0; |
125 buildAuthProvider() { | 125 buildAuthProvider() { |
126 var o = new api.AuthProvider(); | 126 var o = new api.AuthProvider(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 checkAuthRequirement(api.AuthRequirement o) { | 161 checkAuthRequirement(api.AuthRequirement o) { |
162 buildCounterAuthRequirement++; | 162 buildCounterAuthRequirement++; |
163 if (buildCounterAuthRequirement < 3) { | 163 if (buildCounterAuthRequirement < 3) { |
164 unittest.expect(o.audiences, unittest.equals('foo')); | 164 unittest.expect(o.audiences, unittest.equals('foo')); |
165 unittest.expect(o.providerId, unittest.equals('foo')); | 165 unittest.expect(o.providerId, unittest.equals('foo')); |
166 } | 166 } |
167 buildCounterAuthRequirement--; | 167 buildCounterAuthRequirement--; |
168 } | 168 } |
169 | 169 |
170 buildUnnamed1730() { | 170 buildUnnamed1762() { |
171 var o = new core.List<api.AuthProvider>(); | 171 var o = new core.List<api.AuthProvider>(); |
172 o.add(buildAuthProvider()); | 172 o.add(buildAuthProvider()); |
173 o.add(buildAuthProvider()); | 173 o.add(buildAuthProvider()); |
174 return o; | 174 return o; |
175 } | 175 } |
176 | 176 |
177 checkUnnamed1730(core.List<api.AuthProvider> o) { | 177 checkUnnamed1762(core.List<api.AuthProvider> o) { |
178 unittest.expect(o, unittest.hasLength(2)); | 178 unittest.expect(o, unittest.hasLength(2)); |
179 checkAuthProvider(o[0]); | 179 checkAuthProvider(o[0]); |
180 checkAuthProvider(o[1]); | 180 checkAuthProvider(o[1]); |
181 } | 181 } |
182 | 182 |
183 buildUnnamed1731() { | 183 buildUnnamed1763() { |
184 var o = new core.List<api.AuthenticationRule>(); | 184 var o = new core.List<api.AuthenticationRule>(); |
185 o.add(buildAuthenticationRule()); | 185 o.add(buildAuthenticationRule()); |
186 o.add(buildAuthenticationRule()); | 186 o.add(buildAuthenticationRule()); |
187 return o; | 187 return o; |
188 } | 188 } |
189 | 189 |
190 checkUnnamed1731(core.List<api.AuthenticationRule> o) { | 190 checkUnnamed1763(core.List<api.AuthenticationRule> o) { |
191 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
192 checkAuthenticationRule(o[0]); | 192 checkAuthenticationRule(o[0]); |
193 checkAuthenticationRule(o[1]); | 193 checkAuthenticationRule(o[1]); |
194 } | 194 } |
195 | 195 |
196 core.int buildCounterAuthentication = 0; | 196 core.int buildCounterAuthentication = 0; |
197 buildAuthentication() { | 197 buildAuthentication() { |
198 var o = new api.Authentication(); | 198 var o = new api.Authentication(); |
199 buildCounterAuthentication++; | 199 buildCounterAuthentication++; |
200 if (buildCounterAuthentication < 3) { | 200 if (buildCounterAuthentication < 3) { |
201 o.providers = buildUnnamed1730(); | 201 o.providers = buildUnnamed1762(); |
202 o.rules = buildUnnamed1731(); | 202 o.rules = buildUnnamed1763(); |
203 } | 203 } |
204 buildCounterAuthentication--; | 204 buildCounterAuthentication--; |
205 return o; | 205 return o; |
206 } | 206 } |
207 | 207 |
208 checkAuthentication(api.Authentication o) { | 208 checkAuthentication(api.Authentication o) { |
209 buildCounterAuthentication++; | 209 buildCounterAuthentication++; |
210 if (buildCounterAuthentication < 3) { | 210 if (buildCounterAuthentication < 3) { |
211 checkUnnamed1730(o.providers); | 211 checkUnnamed1762(o.providers); |
212 checkUnnamed1731(o.rules); | 212 checkUnnamed1763(o.rules); |
213 } | 213 } |
214 buildCounterAuthentication--; | 214 buildCounterAuthentication--; |
215 } | 215 } |
216 | 216 |
217 buildUnnamed1732() { | 217 buildUnnamed1764() { |
218 var o = new core.List<api.AuthRequirement>(); | 218 var o = new core.List<api.AuthRequirement>(); |
219 o.add(buildAuthRequirement()); | 219 o.add(buildAuthRequirement()); |
220 o.add(buildAuthRequirement()); | 220 o.add(buildAuthRequirement()); |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkUnnamed1732(core.List<api.AuthRequirement> o) { | 224 checkUnnamed1764(core.List<api.AuthRequirement> o) { |
225 unittest.expect(o, unittest.hasLength(2)); | 225 unittest.expect(o, unittest.hasLength(2)); |
226 checkAuthRequirement(o[0]); | 226 checkAuthRequirement(o[0]); |
227 checkAuthRequirement(o[1]); | 227 checkAuthRequirement(o[1]); |
228 } | 228 } |
229 | 229 |
230 core.int buildCounterAuthenticationRule = 0; | 230 core.int buildCounterAuthenticationRule = 0; |
231 buildAuthenticationRule() { | 231 buildAuthenticationRule() { |
232 var o = new api.AuthenticationRule(); | 232 var o = new api.AuthenticationRule(); |
233 buildCounterAuthenticationRule++; | 233 buildCounterAuthenticationRule++; |
234 if (buildCounterAuthenticationRule < 3) { | 234 if (buildCounterAuthenticationRule < 3) { |
235 o.allowWithoutCredential = true; | 235 o.allowWithoutCredential = true; |
236 o.customAuth = buildCustomAuthRequirements(); | 236 o.customAuth = buildCustomAuthRequirements(); |
237 o.oauth = buildOAuthRequirements(); | 237 o.oauth = buildOAuthRequirements(); |
238 o.requirements = buildUnnamed1732(); | 238 o.requirements = buildUnnamed1764(); |
239 o.selector = "foo"; | 239 o.selector = "foo"; |
240 } | 240 } |
241 buildCounterAuthenticationRule--; | 241 buildCounterAuthenticationRule--; |
242 return o; | 242 return o; |
243 } | 243 } |
244 | 244 |
245 checkAuthenticationRule(api.AuthenticationRule o) { | 245 checkAuthenticationRule(api.AuthenticationRule o) { |
246 buildCounterAuthenticationRule++; | 246 buildCounterAuthenticationRule++; |
247 if (buildCounterAuthenticationRule < 3) { | 247 if (buildCounterAuthenticationRule < 3) { |
248 unittest.expect(o.allowWithoutCredential, unittest.isTrue); | 248 unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
249 checkCustomAuthRequirements(o.customAuth); | 249 checkCustomAuthRequirements(o.customAuth); |
250 checkOAuthRequirements(o.oauth); | 250 checkOAuthRequirements(o.oauth); |
251 checkUnnamed1732(o.requirements); | 251 checkUnnamed1764(o.requirements); |
252 unittest.expect(o.selector, unittest.equals('foo')); | 252 unittest.expect(o.selector, unittest.equals('foo')); |
253 } | 253 } |
254 buildCounterAuthenticationRule--; | 254 buildCounterAuthenticationRule--; |
255 } | 255 } |
256 | 256 |
257 core.int buildCounterAuthorizationConfig = 0; | 257 core.int buildCounterAuthorizationConfig = 0; |
258 buildAuthorizationConfig() { | 258 buildAuthorizationConfig() { |
259 var o = new api.AuthorizationConfig(); | 259 var o = new api.AuthorizationConfig(); |
260 buildCounterAuthorizationConfig++; | 260 buildCounterAuthorizationConfig++; |
261 if (buildCounterAuthorizationConfig < 3) { | 261 if (buildCounterAuthorizationConfig < 3) { |
262 o.provider = "foo"; | 262 o.provider = "foo"; |
263 } | 263 } |
264 buildCounterAuthorizationConfig--; | 264 buildCounterAuthorizationConfig--; |
265 return o; | 265 return o; |
266 } | 266 } |
267 | 267 |
268 checkAuthorizationConfig(api.AuthorizationConfig o) { | 268 checkAuthorizationConfig(api.AuthorizationConfig o) { |
269 buildCounterAuthorizationConfig++; | 269 buildCounterAuthorizationConfig++; |
270 if (buildCounterAuthorizationConfig < 3) { | 270 if (buildCounterAuthorizationConfig < 3) { |
271 unittest.expect(o.provider, unittest.equals('foo')); | 271 unittest.expect(o.provider, unittest.equals('foo')); |
272 } | 272 } |
273 buildCounterAuthorizationConfig--; | 273 buildCounterAuthorizationConfig--; |
274 } | 274 } |
275 | 275 |
276 buildUnnamed1733() { | 276 buildUnnamed1765() { |
277 var o = new core.List<api.BackendRule>(); | 277 var o = new core.List<api.BackendRule>(); |
278 o.add(buildBackendRule()); | 278 o.add(buildBackendRule()); |
279 o.add(buildBackendRule()); | 279 o.add(buildBackendRule()); |
280 return o; | 280 return o; |
281 } | 281 } |
282 | 282 |
283 checkUnnamed1733(core.List<api.BackendRule> o) { | 283 checkUnnamed1765(core.List<api.BackendRule> o) { |
284 unittest.expect(o, unittest.hasLength(2)); | 284 unittest.expect(o, unittest.hasLength(2)); |
285 checkBackendRule(o[0]); | 285 checkBackendRule(o[0]); |
286 checkBackendRule(o[1]); | 286 checkBackendRule(o[1]); |
287 } | 287 } |
288 | 288 |
289 core.int buildCounterBackend = 0; | 289 core.int buildCounterBackend = 0; |
290 buildBackend() { | 290 buildBackend() { |
291 var o = new api.Backend(); | 291 var o = new api.Backend(); |
292 buildCounterBackend++; | 292 buildCounterBackend++; |
293 if (buildCounterBackend < 3) { | 293 if (buildCounterBackend < 3) { |
294 o.rules = buildUnnamed1733(); | 294 o.rules = buildUnnamed1765(); |
295 } | 295 } |
296 buildCounterBackend--; | 296 buildCounterBackend--; |
297 return o; | 297 return o; |
298 } | 298 } |
299 | 299 |
300 checkBackend(api.Backend o) { | 300 checkBackend(api.Backend o) { |
301 buildCounterBackend++; | 301 buildCounterBackend++; |
302 if (buildCounterBackend < 3) { | 302 if (buildCounterBackend < 3) { |
303 checkUnnamed1733(o.rules); | 303 checkUnnamed1765(o.rules); |
304 } | 304 } |
305 buildCounterBackend--; | 305 buildCounterBackend--; |
306 } | 306 } |
307 | 307 |
308 core.int buildCounterBackendRule = 0; | 308 core.int buildCounterBackendRule = 0; |
309 buildBackendRule() { | 309 buildBackendRule() { |
310 var o = new api.BackendRule(); | 310 var o = new api.BackendRule(); |
311 buildCounterBackendRule++; | 311 buildCounterBackendRule++; |
312 if (buildCounterBackendRule < 3) { | 312 if (buildCounterBackendRule < 3) { |
313 o.address = "foo"; | 313 o.address = "foo"; |
314 o.deadline = 42.0; | 314 o.deadline = 42.0; |
315 o.minDeadline = 42.0; | 315 o.minDeadline = 42.0; |
316 o.selector = "foo"; | 316 o.selector = "foo"; |
317 } | 317 } |
318 buildCounterBackendRule--; | 318 buildCounterBackendRule--; |
319 return o; | 319 return o; |
320 } | 320 } |
321 | 321 |
322 checkBackendRule(api.BackendRule o) { | 322 checkBackendRule(api.BackendRule o) { |
323 buildCounterBackendRule++; | 323 buildCounterBackendRule++; |
324 if (buildCounterBackendRule < 3) { | 324 if (buildCounterBackendRule < 3) { |
325 unittest.expect(o.address, unittest.equals('foo')); | 325 unittest.expect(o.address, unittest.equals('foo')); |
326 unittest.expect(o.deadline, unittest.equals(42.0)); | 326 unittest.expect(o.deadline, unittest.equals(42.0)); |
327 unittest.expect(o.minDeadline, unittest.equals(42.0)); | 327 unittest.expect(o.minDeadline, unittest.equals(42.0)); |
328 unittest.expect(o.selector, unittest.equals('foo')); | 328 unittest.expect(o.selector, unittest.equals('foo')); |
329 } | 329 } |
330 buildCounterBackendRule--; | 330 buildCounterBackendRule--; |
331 } | 331 } |
332 | 332 |
333 buildUnnamed1734() { | 333 buildUnnamed1766() { |
334 var o = new core.List<api.ContextRule>(); | 334 var o = new core.List<api.ContextRule>(); |
335 o.add(buildContextRule()); | 335 o.add(buildContextRule()); |
336 o.add(buildContextRule()); | 336 o.add(buildContextRule()); |
337 return o; | 337 return o; |
338 } | 338 } |
339 | 339 |
340 checkUnnamed1734(core.List<api.ContextRule> o) { | 340 checkUnnamed1766(core.List<api.ContextRule> o) { |
341 unittest.expect(o, unittest.hasLength(2)); | 341 unittest.expect(o, unittest.hasLength(2)); |
342 checkContextRule(o[0]); | 342 checkContextRule(o[0]); |
343 checkContextRule(o[1]); | 343 checkContextRule(o[1]); |
344 } | 344 } |
345 | 345 |
346 core.int buildCounterContext = 0; | 346 core.int buildCounterContext = 0; |
347 buildContext() { | 347 buildContext() { |
348 var o = new api.Context(); | 348 var o = new api.Context(); |
349 buildCounterContext++; | 349 buildCounterContext++; |
350 if (buildCounterContext < 3) { | 350 if (buildCounterContext < 3) { |
351 o.rules = buildUnnamed1734(); | 351 o.rules = buildUnnamed1766(); |
352 } | 352 } |
353 buildCounterContext--; | 353 buildCounterContext--; |
354 return o; | 354 return o; |
355 } | 355 } |
356 | 356 |
357 checkContext(api.Context o) { | 357 checkContext(api.Context o) { |
358 buildCounterContext++; | 358 buildCounterContext++; |
359 if (buildCounterContext < 3) { | 359 if (buildCounterContext < 3) { |
360 checkUnnamed1734(o.rules); | 360 checkUnnamed1766(o.rules); |
361 } | 361 } |
362 buildCounterContext--; | 362 buildCounterContext--; |
363 } | 363 } |
364 | 364 |
365 buildUnnamed1735() { | 365 buildUnnamed1767() { |
366 var o = new core.List<core.String>(); | 366 var o = new core.List<core.String>(); |
367 o.add("foo"); | 367 o.add("foo"); |
368 o.add("foo"); | 368 o.add("foo"); |
369 return o; | 369 return o; |
370 } | 370 } |
371 | 371 |
372 checkUnnamed1735(core.List<core.String> o) { | 372 checkUnnamed1767(core.List<core.String> o) { |
373 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
374 unittest.expect(o[0], unittest.equals('foo')); | 374 unittest.expect(o[0], unittest.equals('foo')); |
375 unittest.expect(o[1], unittest.equals('foo')); | 375 unittest.expect(o[1], unittest.equals('foo')); |
376 } | 376 } |
377 | 377 |
378 buildUnnamed1736() { | 378 buildUnnamed1768() { |
379 var o = new core.List<core.String>(); | 379 var o = new core.List<core.String>(); |
380 o.add("foo"); | 380 o.add("foo"); |
381 o.add("foo"); | 381 o.add("foo"); |
382 return o; | 382 return o; |
383 } | 383 } |
384 | 384 |
385 checkUnnamed1736(core.List<core.String> o) { | 385 checkUnnamed1768(core.List<core.String> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
387 unittest.expect(o[0], unittest.equals('foo')); | 387 unittest.expect(o[0], unittest.equals('foo')); |
388 unittest.expect(o[1], unittest.equals('foo')); | 388 unittest.expect(o[1], unittest.equals('foo')); |
389 } | 389 } |
390 | 390 |
391 core.int buildCounterContextRule = 0; | 391 core.int buildCounterContextRule = 0; |
392 buildContextRule() { | 392 buildContextRule() { |
393 var o = new api.ContextRule(); | 393 var o = new api.ContextRule(); |
394 buildCounterContextRule++; | 394 buildCounterContextRule++; |
395 if (buildCounterContextRule < 3) { | 395 if (buildCounterContextRule < 3) { |
396 o.provided = buildUnnamed1735(); | 396 o.provided = buildUnnamed1767(); |
397 o.requested = buildUnnamed1736(); | 397 o.requested = buildUnnamed1768(); |
398 o.selector = "foo"; | 398 o.selector = "foo"; |
399 } | 399 } |
400 buildCounterContextRule--; | 400 buildCounterContextRule--; |
401 return o; | 401 return o; |
402 } | 402 } |
403 | 403 |
404 checkContextRule(api.ContextRule o) { | 404 checkContextRule(api.ContextRule o) { |
405 buildCounterContextRule++; | 405 buildCounterContextRule++; |
406 if (buildCounterContextRule < 3) { | 406 if (buildCounterContextRule < 3) { |
407 checkUnnamed1735(o.provided); | 407 checkUnnamed1767(o.provided); |
408 checkUnnamed1736(o.requested); | 408 checkUnnamed1768(o.requested); |
409 unittest.expect(o.selector, unittest.equals('foo')); | 409 unittest.expect(o.selector, unittest.equals('foo')); |
410 } | 410 } |
411 buildCounterContextRule--; | 411 buildCounterContextRule--; |
412 } | 412 } |
413 | 413 |
414 core.int buildCounterControl = 0; | 414 core.int buildCounterControl = 0; |
415 buildControl() { | 415 buildControl() { |
416 var o = new api.Control(); | 416 var o = new api.Control(); |
417 buildCounterControl++; | 417 buildCounterControl++; |
418 if (buildCounterControl < 3) { | 418 if (buildCounterControl < 3) { |
(...skipping 23 matching lines...) Expand all Loading... |
442 } | 442 } |
443 | 443 |
444 checkCustomAuthRequirements(api.CustomAuthRequirements o) { | 444 checkCustomAuthRequirements(api.CustomAuthRequirements o) { |
445 buildCounterCustomAuthRequirements++; | 445 buildCounterCustomAuthRequirements++; |
446 if (buildCounterCustomAuthRequirements < 3) { | 446 if (buildCounterCustomAuthRequirements < 3) { |
447 unittest.expect(o.provider, unittest.equals('foo')); | 447 unittest.expect(o.provider, unittest.equals('foo')); |
448 } | 448 } |
449 buildCounterCustomAuthRequirements--; | 449 buildCounterCustomAuthRequirements--; |
450 } | 450 } |
451 | 451 |
452 buildUnnamed1737() { | 452 buildUnnamed1769() { |
453 var o = new core.List<api.CustomErrorRule>(); | 453 var o = new core.List<api.CustomErrorRule>(); |
454 o.add(buildCustomErrorRule()); | 454 o.add(buildCustomErrorRule()); |
455 o.add(buildCustomErrorRule()); | 455 o.add(buildCustomErrorRule()); |
456 return o; | 456 return o; |
457 } | 457 } |
458 | 458 |
459 checkUnnamed1737(core.List<api.CustomErrorRule> o) { | 459 checkUnnamed1769(core.List<api.CustomErrorRule> o) { |
460 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
461 checkCustomErrorRule(o[0]); | 461 checkCustomErrorRule(o[0]); |
462 checkCustomErrorRule(o[1]); | 462 checkCustomErrorRule(o[1]); |
463 } | 463 } |
464 | 464 |
465 buildUnnamed1738() { | 465 buildUnnamed1770() { |
466 var o = new core.List<core.String>(); | 466 var o = new core.List<core.String>(); |
467 o.add("foo"); | 467 o.add("foo"); |
468 o.add("foo"); | 468 o.add("foo"); |
469 return o; | 469 return o; |
470 } | 470 } |
471 | 471 |
472 checkUnnamed1738(core.List<core.String> o) { | 472 checkUnnamed1770(core.List<core.String> o) { |
473 unittest.expect(o, unittest.hasLength(2)); | 473 unittest.expect(o, unittest.hasLength(2)); |
474 unittest.expect(o[0], unittest.equals('foo')); | 474 unittest.expect(o[0], unittest.equals('foo')); |
475 unittest.expect(o[1], unittest.equals('foo')); | 475 unittest.expect(o[1], unittest.equals('foo')); |
476 } | 476 } |
477 | 477 |
478 core.int buildCounterCustomError = 0; | 478 core.int buildCounterCustomError = 0; |
479 buildCustomError() { | 479 buildCustomError() { |
480 var o = new api.CustomError(); | 480 var o = new api.CustomError(); |
481 buildCounterCustomError++; | 481 buildCounterCustomError++; |
482 if (buildCounterCustomError < 3) { | 482 if (buildCounterCustomError < 3) { |
483 o.rules = buildUnnamed1737(); | 483 o.rules = buildUnnamed1769(); |
484 o.types = buildUnnamed1738(); | 484 o.types = buildUnnamed1770(); |
485 } | 485 } |
486 buildCounterCustomError--; | 486 buildCounterCustomError--; |
487 return o; | 487 return o; |
488 } | 488 } |
489 | 489 |
490 checkCustomError(api.CustomError o) { | 490 checkCustomError(api.CustomError o) { |
491 buildCounterCustomError++; | 491 buildCounterCustomError++; |
492 if (buildCounterCustomError < 3) { | 492 if (buildCounterCustomError < 3) { |
493 checkUnnamed1737(o.rules); | 493 checkUnnamed1769(o.rules); |
494 checkUnnamed1738(o.types); | 494 checkUnnamed1770(o.types); |
495 } | 495 } |
496 buildCounterCustomError--; | 496 buildCounterCustomError--; |
497 } | 497 } |
498 | 498 |
499 core.int buildCounterCustomErrorRule = 0; | 499 core.int buildCounterCustomErrorRule = 0; |
500 buildCustomErrorRule() { | 500 buildCustomErrorRule() { |
501 var o = new api.CustomErrorRule(); | 501 var o = new api.CustomErrorRule(); |
502 buildCounterCustomErrorRule++; | 502 buildCounterCustomErrorRule++; |
503 if (buildCounterCustomErrorRule < 3) { | 503 if (buildCounterCustomErrorRule < 3) { |
504 o.isErrorType = true; | 504 o.isErrorType = true; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 return o; | 548 return o; |
549 } | 549 } |
550 | 550 |
551 checkDisableServiceRequest(api.DisableServiceRequest o) { | 551 checkDisableServiceRequest(api.DisableServiceRequest o) { |
552 buildCounterDisableServiceRequest++; | 552 buildCounterDisableServiceRequest++; |
553 if (buildCounterDisableServiceRequest < 3) { | 553 if (buildCounterDisableServiceRequest < 3) { |
554 } | 554 } |
555 buildCounterDisableServiceRequest--; | 555 buildCounterDisableServiceRequest--; |
556 } | 556 } |
557 | 557 |
558 buildUnnamed1739() { | 558 buildUnnamed1771() { |
559 var o = new core.List<api.Page>(); | 559 var o = new core.List<api.Page>(); |
560 o.add(buildPage()); | 560 o.add(buildPage()); |
561 o.add(buildPage()); | 561 o.add(buildPage()); |
562 return o; | 562 return o; |
563 } | 563 } |
564 | 564 |
565 checkUnnamed1739(core.List<api.Page> o) { | 565 checkUnnamed1771(core.List<api.Page> o) { |
566 unittest.expect(o, unittest.hasLength(2)); | 566 unittest.expect(o, unittest.hasLength(2)); |
567 checkPage(o[0]); | 567 checkPage(o[0]); |
568 checkPage(o[1]); | 568 checkPage(o[1]); |
569 } | 569 } |
570 | 570 |
571 buildUnnamed1740() { | 571 buildUnnamed1772() { |
572 var o = new core.List<api.DocumentationRule>(); | 572 var o = new core.List<api.DocumentationRule>(); |
573 o.add(buildDocumentationRule()); | 573 o.add(buildDocumentationRule()); |
574 o.add(buildDocumentationRule()); | 574 o.add(buildDocumentationRule()); |
575 return o; | 575 return o; |
576 } | 576 } |
577 | 577 |
578 checkUnnamed1740(core.List<api.DocumentationRule> o) { | 578 checkUnnamed1772(core.List<api.DocumentationRule> o) { |
579 unittest.expect(o, unittest.hasLength(2)); | 579 unittest.expect(o, unittest.hasLength(2)); |
580 checkDocumentationRule(o[0]); | 580 checkDocumentationRule(o[0]); |
581 checkDocumentationRule(o[1]); | 581 checkDocumentationRule(o[1]); |
582 } | 582 } |
583 | 583 |
584 core.int buildCounterDocumentation = 0; | 584 core.int buildCounterDocumentation = 0; |
585 buildDocumentation() { | 585 buildDocumentation() { |
586 var o = new api.Documentation(); | 586 var o = new api.Documentation(); |
587 buildCounterDocumentation++; | 587 buildCounterDocumentation++; |
588 if (buildCounterDocumentation < 3) { | 588 if (buildCounterDocumentation < 3) { |
589 o.documentationRootUrl = "foo"; | 589 o.documentationRootUrl = "foo"; |
590 o.overview = "foo"; | 590 o.overview = "foo"; |
591 o.pages = buildUnnamed1739(); | 591 o.pages = buildUnnamed1771(); |
592 o.rules = buildUnnamed1740(); | 592 o.rules = buildUnnamed1772(); |
593 o.summary = "foo"; | 593 o.summary = "foo"; |
594 } | 594 } |
595 buildCounterDocumentation--; | 595 buildCounterDocumentation--; |
596 return o; | 596 return o; |
597 } | 597 } |
598 | 598 |
599 checkDocumentation(api.Documentation o) { | 599 checkDocumentation(api.Documentation o) { |
600 buildCounterDocumentation++; | 600 buildCounterDocumentation++; |
601 if (buildCounterDocumentation < 3) { | 601 if (buildCounterDocumentation < 3) { |
602 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 602 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
603 unittest.expect(o.overview, unittest.equals('foo')); | 603 unittest.expect(o.overview, unittest.equals('foo')); |
604 checkUnnamed1739(o.pages); | 604 checkUnnamed1771(o.pages); |
605 checkUnnamed1740(o.rules); | 605 checkUnnamed1772(o.rules); |
606 unittest.expect(o.summary, unittest.equals('foo')); | 606 unittest.expect(o.summary, unittest.equals('foo')); |
607 } | 607 } |
608 buildCounterDocumentation--; | 608 buildCounterDocumentation--; |
609 } | 609 } |
610 | 610 |
611 core.int buildCounterDocumentationRule = 0; | 611 core.int buildCounterDocumentationRule = 0; |
612 buildDocumentationRule() { | 612 buildDocumentationRule() { |
613 var o = new api.DocumentationRule(); | 613 var o = new api.DocumentationRule(); |
614 buildCounterDocumentationRule++; | 614 buildCounterDocumentationRule++; |
615 if (buildCounterDocumentationRule < 3) { | 615 if (buildCounterDocumentationRule < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
641 return o; | 641 return o; |
642 } | 642 } |
643 | 643 |
644 checkEnableServiceRequest(api.EnableServiceRequest o) { | 644 checkEnableServiceRequest(api.EnableServiceRequest o) { |
645 buildCounterEnableServiceRequest++; | 645 buildCounterEnableServiceRequest++; |
646 if (buildCounterEnableServiceRequest < 3) { | 646 if (buildCounterEnableServiceRequest < 3) { |
647 } | 647 } |
648 buildCounterEnableServiceRequest--; | 648 buildCounterEnableServiceRequest--; |
649 } | 649 } |
650 | 650 |
651 buildUnnamed1741() { | 651 buildUnnamed1773() { |
652 var o = new core.List<core.String>(); | 652 var o = new core.List<core.String>(); |
653 o.add("foo"); | 653 o.add("foo"); |
654 o.add("foo"); | 654 o.add("foo"); |
655 return o; | 655 return o; |
656 } | 656 } |
657 | 657 |
658 checkUnnamed1741(core.List<core.String> o) { | 658 checkUnnamed1773(core.List<core.String> o) { |
659 unittest.expect(o, unittest.hasLength(2)); | 659 unittest.expect(o, unittest.hasLength(2)); |
660 unittest.expect(o[0], unittest.equals('foo')); | 660 unittest.expect(o[0], unittest.equals('foo')); |
661 unittest.expect(o[1], unittest.equals('foo')); | 661 unittest.expect(o[1], unittest.equals('foo')); |
662 } | 662 } |
663 | 663 |
664 buildUnnamed1742() { | 664 buildUnnamed1774() { |
665 var o = new core.List<core.String>(); | 665 var o = new core.List<core.String>(); |
666 o.add("foo"); | 666 o.add("foo"); |
667 o.add("foo"); | 667 o.add("foo"); |
668 return o; | 668 return o; |
669 } | 669 } |
670 | 670 |
671 checkUnnamed1742(core.List<core.String> o) { | 671 checkUnnamed1774(core.List<core.String> o) { |
672 unittest.expect(o, unittest.hasLength(2)); | 672 unittest.expect(o, unittest.hasLength(2)); |
673 unittest.expect(o[0], unittest.equals('foo')); | 673 unittest.expect(o[0], unittest.equals('foo')); |
674 unittest.expect(o[1], unittest.equals('foo')); | 674 unittest.expect(o[1], unittest.equals('foo')); |
675 } | 675 } |
676 | 676 |
677 buildUnnamed1743() { | 677 buildUnnamed1775() { |
678 var o = new core.List<core.String>(); | 678 var o = new core.List<core.String>(); |
679 o.add("foo"); | 679 o.add("foo"); |
680 o.add("foo"); | 680 o.add("foo"); |
681 return o; | 681 return o; |
682 } | 682 } |
683 | 683 |
684 checkUnnamed1743(core.List<core.String> o) { | 684 checkUnnamed1775(core.List<core.String> o) { |
685 unittest.expect(o, unittest.hasLength(2)); | 685 unittest.expect(o, unittest.hasLength(2)); |
686 unittest.expect(o[0], unittest.equals('foo')); | 686 unittest.expect(o[0], unittest.equals('foo')); |
687 unittest.expect(o[1], unittest.equals('foo')); | 687 unittest.expect(o[1], unittest.equals('foo')); |
688 } | 688 } |
689 | 689 |
690 core.int buildCounterEndpoint = 0; | 690 core.int buildCounterEndpoint = 0; |
691 buildEndpoint() { | 691 buildEndpoint() { |
692 var o = new api.Endpoint(); | 692 var o = new api.Endpoint(); |
693 buildCounterEndpoint++; | 693 buildCounterEndpoint++; |
694 if (buildCounterEndpoint < 3) { | 694 if (buildCounterEndpoint < 3) { |
695 o.aliases = buildUnnamed1741(); | 695 o.aliases = buildUnnamed1773(); |
696 o.allowCors = true; | 696 o.allowCors = true; |
697 o.apis = buildUnnamed1742(); | 697 o.apis = buildUnnamed1774(); |
698 o.features = buildUnnamed1743(); | 698 o.features = buildUnnamed1775(); |
699 o.name = "foo"; | 699 o.name = "foo"; |
700 o.target = "foo"; | 700 o.target = "foo"; |
701 } | 701 } |
702 buildCounterEndpoint--; | 702 buildCounterEndpoint--; |
703 return o; | 703 return o; |
704 } | 704 } |
705 | 705 |
706 checkEndpoint(api.Endpoint o) { | 706 checkEndpoint(api.Endpoint o) { |
707 buildCounterEndpoint++; | 707 buildCounterEndpoint++; |
708 if (buildCounterEndpoint < 3) { | 708 if (buildCounterEndpoint < 3) { |
709 checkUnnamed1741(o.aliases); | 709 checkUnnamed1773(o.aliases); |
710 unittest.expect(o.allowCors, unittest.isTrue); | 710 unittest.expect(o.allowCors, unittest.isTrue); |
711 checkUnnamed1742(o.apis); | 711 checkUnnamed1774(o.apis); |
712 checkUnnamed1743(o.features); | 712 checkUnnamed1775(o.features); |
713 unittest.expect(o.name, unittest.equals('foo')); | 713 unittest.expect(o.name, unittest.equals('foo')); |
714 unittest.expect(o.target, unittest.equals('foo')); | 714 unittest.expect(o.target, unittest.equals('foo')); |
715 } | 715 } |
716 buildCounterEndpoint--; | 716 buildCounterEndpoint--; |
717 } | 717 } |
718 | 718 |
719 buildUnnamed1744() { | 719 buildUnnamed1776() { |
720 var o = new core.List<api.EnumValue>(); | 720 var o = new core.List<api.EnumValue>(); |
721 o.add(buildEnumValue()); | 721 o.add(buildEnumValue()); |
722 o.add(buildEnumValue()); | 722 o.add(buildEnumValue()); |
723 return o; | 723 return o; |
724 } | 724 } |
725 | 725 |
726 checkUnnamed1744(core.List<api.EnumValue> o) { | 726 checkUnnamed1776(core.List<api.EnumValue> o) { |
727 unittest.expect(o, unittest.hasLength(2)); | 727 unittest.expect(o, unittest.hasLength(2)); |
728 checkEnumValue(o[0]); | 728 checkEnumValue(o[0]); |
729 checkEnumValue(o[1]); | 729 checkEnumValue(o[1]); |
730 } | 730 } |
731 | 731 |
732 buildUnnamed1745() { | 732 buildUnnamed1777() { |
733 var o = new core.List<api.Option>(); | 733 var o = new core.List<api.Option>(); |
734 o.add(buildOption()); | 734 o.add(buildOption()); |
735 o.add(buildOption()); | 735 o.add(buildOption()); |
736 return o; | 736 return o; |
737 } | 737 } |
738 | 738 |
739 checkUnnamed1745(core.List<api.Option> o) { | 739 checkUnnamed1777(core.List<api.Option> o) { |
740 unittest.expect(o, unittest.hasLength(2)); | 740 unittest.expect(o, unittest.hasLength(2)); |
741 checkOption(o[0]); | 741 checkOption(o[0]); |
742 checkOption(o[1]); | 742 checkOption(o[1]); |
743 } | 743 } |
744 | 744 |
745 core.int buildCounterEnum = 0; | 745 core.int buildCounterEnum = 0; |
746 buildEnum() { | 746 buildEnum() { |
747 var o = new api.Enum(); | 747 var o = new api.Enum(); |
748 buildCounterEnum++; | 748 buildCounterEnum++; |
749 if (buildCounterEnum < 3) { | 749 if (buildCounterEnum < 3) { |
750 o.enumvalue = buildUnnamed1744(); | 750 o.enumvalue = buildUnnamed1776(); |
751 o.name = "foo"; | 751 o.name = "foo"; |
752 o.options = buildUnnamed1745(); | 752 o.options = buildUnnamed1777(); |
753 o.sourceContext = buildSourceContext(); | 753 o.sourceContext = buildSourceContext(); |
754 o.syntax = "foo"; | 754 o.syntax = "foo"; |
755 } | 755 } |
756 buildCounterEnum--; | 756 buildCounterEnum--; |
757 return o; | 757 return o; |
758 } | 758 } |
759 | 759 |
760 checkEnum(api.Enum o) { | 760 checkEnum(api.Enum o) { |
761 buildCounterEnum++; | 761 buildCounterEnum++; |
762 if (buildCounterEnum < 3) { | 762 if (buildCounterEnum < 3) { |
763 checkUnnamed1744(o.enumvalue); | 763 checkUnnamed1776(o.enumvalue); |
764 unittest.expect(o.name, unittest.equals('foo')); | 764 unittest.expect(o.name, unittest.equals('foo')); |
765 checkUnnamed1745(o.options); | 765 checkUnnamed1777(o.options); |
766 checkSourceContext(o.sourceContext); | 766 checkSourceContext(o.sourceContext); |
767 unittest.expect(o.syntax, unittest.equals('foo')); | 767 unittest.expect(o.syntax, unittest.equals('foo')); |
768 } | 768 } |
769 buildCounterEnum--; | 769 buildCounterEnum--; |
770 } | 770 } |
771 | 771 |
772 buildUnnamed1746() { | 772 buildUnnamed1778() { |
773 var o = new core.List<api.Option>(); | 773 var o = new core.List<api.Option>(); |
774 o.add(buildOption()); | 774 o.add(buildOption()); |
775 o.add(buildOption()); | 775 o.add(buildOption()); |
776 return o; | 776 return o; |
777 } | 777 } |
778 | 778 |
779 checkUnnamed1746(core.List<api.Option> o) { | 779 checkUnnamed1778(core.List<api.Option> o) { |
780 unittest.expect(o, unittest.hasLength(2)); | 780 unittest.expect(o, unittest.hasLength(2)); |
781 checkOption(o[0]); | 781 checkOption(o[0]); |
782 checkOption(o[1]); | 782 checkOption(o[1]); |
783 } | 783 } |
784 | 784 |
785 core.int buildCounterEnumValue = 0; | 785 core.int buildCounterEnumValue = 0; |
786 buildEnumValue() { | 786 buildEnumValue() { |
787 var o = new api.EnumValue(); | 787 var o = new api.EnumValue(); |
788 buildCounterEnumValue++; | 788 buildCounterEnumValue++; |
789 if (buildCounterEnumValue < 3) { | 789 if (buildCounterEnumValue < 3) { |
790 o.name = "foo"; | 790 o.name = "foo"; |
791 o.number = 42; | 791 o.number = 42; |
792 o.options = buildUnnamed1746(); | 792 o.options = buildUnnamed1778(); |
793 } | 793 } |
794 buildCounterEnumValue--; | 794 buildCounterEnumValue--; |
795 return o; | 795 return o; |
796 } | 796 } |
797 | 797 |
798 checkEnumValue(api.EnumValue o) { | 798 checkEnumValue(api.EnumValue o) { |
799 buildCounterEnumValue++; | 799 buildCounterEnumValue++; |
800 if (buildCounterEnumValue < 3) { | 800 if (buildCounterEnumValue < 3) { |
801 unittest.expect(o.name, unittest.equals('foo')); | 801 unittest.expect(o.name, unittest.equals('foo')); |
802 unittest.expect(o.number, unittest.equals(42)); | 802 unittest.expect(o.number, unittest.equals(42)); |
803 checkUnnamed1746(o.options); | 803 checkUnnamed1778(o.options); |
804 } | 804 } |
805 buildCounterEnumValue--; | 805 buildCounterEnumValue--; |
806 } | 806 } |
807 | 807 |
808 core.int buildCounterExperimental = 0; | 808 core.int buildCounterExperimental = 0; |
809 buildExperimental() { | 809 buildExperimental() { |
810 var o = new api.Experimental(); | 810 var o = new api.Experimental(); |
811 buildCounterExperimental++; | 811 buildCounterExperimental++; |
812 if (buildCounterExperimental < 3) { | 812 if (buildCounterExperimental < 3) { |
813 o.authorization = buildAuthorizationConfig(); | 813 o.authorization = buildAuthorizationConfig(); |
814 } | 814 } |
815 buildCounterExperimental--; | 815 buildCounterExperimental--; |
816 return o; | 816 return o; |
817 } | 817 } |
818 | 818 |
819 checkExperimental(api.Experimental o) { | 819 checkExperimental(api.Experimental o) { |
820 buildCounterExperimental++; | 820 buildCounterExperimental++; |
821 if (buildCounterExperimental < 3) { | 821 if (buildCounterExperimental < 3) { |
822 checkAuthorizationConfig(o.authorization); | 822 checkAuthorizationConfig(o.authorization); |
823 } | 823 } |
824 buildCounterExperimental--; | 824 buildCounterExperimental--; |
825 } | 825 } |
826 | 826 |
827 buildUnnamed1747() { | 827 buildUnnamed1779() { |
828 var o = new core.List<api.Option>(); | 828 var o = new core.List<api.Option>(); |
829 o.add(buildOption()); | 829 o.add(buildOption()); |
830 o.add(buildOption()); | 830 o.add(buildOption()); |
831 return o; | 831 return o; |
832 } | 832 } |
833 | 833 |
834 checkUnnamed1747(core.List<api.Option> o) { | 834 checkUnnamed1779(core.List<api.Option> o) { |
835 unittest.expect(o, unittest.hasLength(2)); | 835 unittest.expect(o, unittest.hasLength(2)); |
836 checkOption(o[0]); | 836 checkOption(o[0]); |
837 checkOption(o[1]); | 837 checkOption(o[1]); |
838 } | 838 } |
839 | 839 |
840 core.int buildCounterField = 0; | 840 core.int buildCounterField = 0; |
841 buildField() { | 841 buildField() { |
842 var o = new api.Field(); | 842 var o = new api.Field(); |
843 buildCounterField++; | 843 buildCounterField++; |
844 if (buildCounterField < 3) { | 844 if (buildCounterField < 3) { |
845 o.cardinality = "foo"; | 845 o.cardinality = "foo"; |
846 o.defaultValue = "foo"; | 846 o.defaultValue = "foo"; |
847 o.jsonName = "foo"; | 847 o.jsonName = "foo"; |
848 o.kind = "foo"; | 848 o.kind = "foo"; |
849 o.name = "foo"; | 849 o.name = "foo"; |
850 o.number = 42; | 850 o.number = 42; |
851 o.oneofIndex = 42; | 851 o.oneofIndex = 42; |
852 o.options = buildUnnamed1747(); | 852 o.options = buildUnnamed1779(); |
853 o.packed = true; | 853 o.packed = true; |
854 o.typeUrl = "foo"; | 854 o.typeUrl = "foo"; |
855 } | 855 } |
856 buildCounterField--; | 856 buildCounterField--; |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkField(api.Field o) { | 860 checkField(api.Field o) { |
861 buildCounterField++; | 861 buildCounterField++; |
862 if (buildCounterField < 3) { | 862 if (buildCounterField < 3) { |
863 unittest.expect(o.cardinality, unittest.equals('foo')); | 863 unittest.expect(o.cardinality, unittest.equals('foo')); |
864 unittest.expect(o.defaultValue, unittest.equals('foo')); | 864 unittest.expect(o.defaultValue, unittest.equals('foo')); |
865 unittest.expect(o.jsonName, unittest.equals('foo')); | 865 unittest.expect(o.jsonName, unittest.equals('foo')); |
866 unittest.expect(o.kind, unittest.equals('foo')); | 866 unittest.expect(o.kind, unittest.equals('foo')); |
867 unittest.expect(o.name, unittest.equals('foo')); | 867 unittest.expect(o.name, unittest.equals('foo')); |
868 unittest.expect(o.number, unittest.equals(42)); | 868 unittest.expect(o.number, unittest.equals(42)); |
869 unittest.expect(o.oneofIndex, unittest.equals(42)); | 869 unittest.expect(o.oneofIndex, unittest.equals(42)); |
870 checkUnnamed1747(o.options); | 870 checkUnnamed1779(o.options); |
871 unittest.expect(o.packed, unittest.isTrue); | 871 unittest.expect(o.packed, unittest.isTrue); |
872 unittest.expect(o.typeUrl, unittest.equals('foo')); | 872 unittest.expect(o.typeUrl, unittest.equals('foo')); |
873 } | 873 } |
874 buildCounterField--; | 874 buildCounterField--; |
875 } | 875 } |
876 | 876 |
877 buildUnnamed1748() { | 877 buildUnnamed1780() { |
878 var o = new core.List<api.HttpRule>(); | 878 var o = new core.List<api.HttpRule>(); |
879 o.add(buildHttpRule()); | 879 o.add(buildHttpRule()); |
880 o.add(buildHttpRule()); | 880 o.add(buildHttpRule()); |
881 return o; | 881 return o; |
882 } | 882 } |
883 | 883 |
884 checkUnnamed1748(core.List<api.HttpRule> o) { | 884 checkUnnamed1780(core.List<api.HttpRule> o) { |
885 unittest.expect(o, unittest.hasLength(2)); | 885 unittest.expect(o, unittest.hasLength(2)); |
886 checkHttpRule(o[0]); | 886 checkHttpRule(o[0]); |
887 checkHttpRule(o[1]); | 887 checkHttpRule(o[1]); |
888 } | 888 } |
889 | 889 |
890 core.int buildCounterHttp = 0; | 890 core.int buildCounterHttp = 0; |
891 buildHttp() { | 891 buildHttp() { |
892 var o = new api.Http(); | 892 var o = new api.Http(); |
893 buildCounterHttp++; | 893 buildCounterHttp++; |
894 if (buildCounterHttp < 3) { | 894 if (buildCounterHttp < 3) { |
895 o.fullyDecodeReservedExpansion = true; | 895 o.fullyDecodeReservedExpansion = true; |
896 o.rules = buildUnnamed1748(); | 896 o.rules = buildUnnamed1780(); |
897 } | 897 } |
898 buildCounterHttp--; | 898 buildCounterHttp--; |
899 return o; | 899 return o; |
900 } | 900 } |
901 | 901 |
902 checkHttp(api.Http o) { | 902 checkHttp(api.Http o) { |
903 buildCounterHttp++; | 903 buildCounterHttp++; |
904 if (buildCounterHttp < 3) { | 904 if (buildCounterHttp < 3) { |
905 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); | 905 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); |
906 checkUnnamed1748(o.rules); | 906 checkUnnamed1780(o.rules); |
907 } | 907 } |
908 buildCounterHttp--; | 908 buildCounterHttp--; |
909 } | 909 } |
910 | 910 |
911 buildUnnamed1749() { | 911 buildUnnamed1781() { |
912 var o = new core.List<api.HttpRule>(); | 912 var o = new core.List<api.HttpRule>(); |
913 o.add(buildHttpRule()); | 913 o.add(buildHttpRule()); |
914 o.add(buildHttpRule()); | 914 o.add(buildHttpRule()); |
915 return o; | 915 return o; |
916 } | 916 } |
917 | 917 |
918 checkUnnamed1749(core.List<api.HttpRule> o) { | 918 checkUnnamed1781(core.List<api.HttpRule> o) { |
919 unittest.expect(o, unittest.hasLength(2)); | 919 unittest.expect(o, unittest.hasLength(2)); |
920 checkHttpRule(o[0]); | 920 checkHttpRule(o[0]); |
921 checkHttpRule(o[1]); | 921 checkHttpRule(o[1]); |
922 } | 922 } |
923 | 923 |
924 core.int buildCounterHttpRule = 0; | 924 core.int buildCounterHttpRule = 0; |
925 buildHttpRule() { | 925 buildHttpRule() { |
926 var o = new api.HttpRule(); | 926 var o = new api.HttpRule(); |
927 buildCounterHttpRule++; | 927 buildCounterHttpRule++; |
928 if (buildCounterHttpRule < 3) { | 928 if (buildCounterHttpRule < 3) { |
929 o.additionalBindings = buildUnnamed1749(); | 929 o.additionalBindings = buildUnnamed1781(); |
930 o.body = "foo"; | 930 o.body = "foo"; |
931 o.custom = buildCustomHttpPattern(); | 931 o.custom = buildCustomHttpPattern(); |
932 o.delete = "foo"; | 932 o.delete = "foo"; |
933 o.get = "foo"; | 933 o.get = "foo"; |
934 o.mediaDownload = buildMediaDownload(); | 934 o.mediaDownload = buildMediaDownload(); |
935 o.mediaUpload = buildMediaUpload(); | 935 o.mediaUpload = buildMediaUpload(); |
936 o.patch = "foo"; | 936 o.patch = "foo"; |
937 o.post = "foo"; | 937 o.post = "foo"; |
938 o.put = "foo"; | 938 o.put = "foo"; |
939 o.responseBody = "foo"; | 939 o.responseBody = "foo"; |
940 o.restCollection = "foo"; | 940 o.restCollection = "foo"; |
941 o.restMethodName = "foo"; | 941 o.restMethodName = "foo"; |
942 o.selector = "foo"; | 942 o.selector = "foo"; |
943 } | 943 } |
944 buildCounterHttpRule--; | 944 buildCounterHttpRule--; |
945 return o; | 945 return o; |
946 } | 946 } |
947 | 947 |
948 checkHttpRule(api.HttpRule o) { | 948 checkHttpRule(api.HttpRule o) { |
949 buildCounterHttpRule++; | 949 buildCounterHttpRule++; |
950 if (buildCounterHttpRule < 3) { | 950 if (buildCounterHttpRule < 3) { |
951 checkUnnamed1749(o.additionalBindings); | 951 checkUnnamed1781(o.additionalBindings); |
952 unittest.expect(o.body, unittest.equals('foo')); | 952 unittest.expect(o.body, unittest.equals('foo')); |
953 checkCustomHttpPattern(o.custom); | 953 checkCustomHttpPattern(o.custom); |
954 unittest.expect(o.delete, unittest.equals('foo')); | 954 unittest.expect(o.delete, unittest.equals('foo')); |
955 unittest.expect(o.get, unittest.equals('foo')); | 955 unittest.expect(o.get, unittest.equals('foo')); |
956 checkMediaDownload(o.mediaDownload); | 956 checkMediaDownload(o.mediaDownload); |
957 checkMediaUpload(o.mediaUpload); | 957 checkMediaUpload(o.mediaUpload); |
958 unittest.expect(o.patch, unittest.equals('foo')); | 958 unittest.expect(o.patch, unittest.equals('foo')); |
959 unittest.expect(o.post, unittest.equals('foo')); | 959 unittest.expect(o.post, unittest.equals('foo')); |
960 unittest.expect(o.put, unittest.equals('foo')); | 960 unittest.expect(o.put, unittest.equals('foo')); |
961 unittest.expect(o.responseBody, unittest.equals('foo')); | 961 unittest.expect(o.responseBody, unittest.equals('foo')); |
(...skipping 20 matching lines...) Expand all Loading... |
982 checkLabelDescriptor(api.LabelDescriptor o) { | 982 checkLabelDescriptor(api.LabelDescriptor o) { |
983 buildCounterLabelDescriptor++; | 983 buildCounterLabelDescriptor++; |
984 if (buildCounterLabelDescriptor < 3) { | 984 if (buildCounterLabelDescriptor < 3) { |
985 unittest.expect(o.description, unittest.equals('foo')); | 985 unittest.expect(o.description, unittest.equals('foo')); |
986 unittest.expect(o.key, unittest.equals('foo')); | 986 unittest.expect(o.key, unittest.equals('foo')); |
987 unittest.expect(o.valueType, unittest.equals('foo')); | 987 unittest.expect(o.valueType, unittest.equals('foo')); |
988 } | 988 } |
989 buildCounterLabelDescriptor--; | 989 buildCounterLabelDescriptor--; |
990 } | 990 } |
991 | 991 |
992 buildUnnamed1750() { | 992 buildUnnamed1782() { |
993 var o = new core.List<api.PublishedService>(); | 993 var o = new core.List<api.PublishedService>(); |
994 o.add(buildPublishedService()); | 994 o.add(buildPublishedService()); |
995 o.add(buildPublishedService()); | 995 o.add(buildPublishedService()); |
996 return o; | 996 return o; |
997 } | 997 } |
998 | 998 |
999 checkUnnamed1750(core.List<api.PublishedService> o) { | 999 checkUnnamed1782(core.List<api.PublishedService> o) { |
1000 unittest.expect(o, unittest.hasLength(2)); | 1000 unittest.expect(o, unittest.hasLength(2)); |
1001 checkPublishedService(o[0]); | 1001 checkPublishedService(o[0]); |
1002 checkPublishedService(o[1]); | 1002 checkPublishedService(o[1]); |
1003 } | 1003 } |
1004 | 1004 |
1005 core.int buildCounterListEnabledServicesResponse = 0; | 1005 core.int buildCounterListEnabledServicesResponse = 0; |
1006 buildListEnabledServicesResponse() { | 1006 buildListEnabledServicesResponse() { |
1007 var o = new api.ListEnabledServicesResponse(); | 1007 var o = new api.ListEnabledServicesResponse(); |
1008 buildCounterListEnabledServicesResponse++; | 1008 buildCounterListEnabledServicesResponse++; |
1009 if (buildCounterListEnabledServicesResponse < 3) { | 1009 if (buildCounterListEnabledServicesResponse < 3) { |
1010 o.nextPageToken = "foo"; | 1010 o.nextPageToken = "foo"; |
1011 o.services = buildUnnamed1750(); | 1011 o.services = buildUnnamed1782(); |
1012 } | 1012 } |
1013 buildCounterListEnabledServicesResponse--; | 1013 buildCounterListEnabledServicesResponse--; |
1014 return o; | 1014 return o; |
1015 } | 1015 } |
1016 | 1016 |
1017 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { | 1017 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { |
1018 buildCounterListEnabledServicesResponse++; | 1018 buildCounterListEnabledServicesResponse++; |
1019 if (buildCounterListEnabledServicesResponse < 3) { | 1019 if (buildCounterListEnabledServicesResponse < 3) { |
1020 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1020 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1021 checkUnnamed1750(o.services); | 1021 checkUnnamed1782(o.services); |
1022 } | 1022 } |
1023 buildCounterListEnabledServicesResponse--; | 1023 buildCounterListEnabledServicesResponse--; |
1024 } | 1024 } |
1025 | 1025 |
1026 buildUnnamed1751() { | 1026 buildUnnamed1783() { |
1027 var o = new core.List<api.LabelDescriptor>(); | 1027 var o = new core.List<api.LabelDescriptor>(); |
1028 o.add(buildLabelDescriptor()); | 1028 o.add(buildLabelDescriptor()); |
1029 o.add(buildLabelDescriptor()); | 1029 o.add(buildLabelDescriptor()); |
1030 return o; | 1030 return o; |
1031 } | 1031 } |
1032 | 1032 |
1033 checkUnnamed1751(core.List<api.LabelDescriptor> o) { | 1033 checkUnnamed1783(core.List<api.LabelDescriptor> o) { |
1034 unittest.expect(o, unittest.hasLength(2)); | 1034 unittest.expect(o, unittest.hasLength(2)); |
1035 checkLabelDescriptor(o[0]); | 1035 checkLabelDescriptor(o[0]); |
1036 checkLabelDescriptor(o[1]); | 1036 checkLabelDescriptor(o[1]); |
1037 } | 1037 } |
1038 | 1038 |
1039 core.int buildCounterLogDescriptor = 0; | 1039 core.int buildCounterLogDescriptor = 0; |
1040 buildLogDescriptor() { | 1040 buildLogDescriptor() { |
1041 var o = new api.LogDescriptor(); | 1041 var o = new api.LogDescriptor(); |
1042 buildCounterLogDescriptor++; | 1042 buildCounterLogDescriptor++; |
1043 if (buildCounterLogDescriptor < 3) { | 1043 if (buildCounterLogDescriptor < 3) { |
1044 o.description = "foo"; | 1044 o.description = "foo"; |
1045 o.displayName = "foo"; | 1045 o.displayName = "foo"; |
1046 o.labels = buildUnnamed1751(); | 1046 o.labels = buildUnnamed1783(); |
1047 o.name = "foo"; | 1047 o.name = "foo"; |
1048 } | 1048 } |
1049 buildCounterLogDescriptor--; | 1049 buildCounterLogDescriptor--; |
1050 return o; | 1050 return o; |
1051 } | 1051 } |
1052 | 1052 |
1053 checkLogDescriptor(api.LogDescriptor o) { | 1053 checkLogDescriptor(api.LogDescriptor o) { |
1054 buildCounterLogDescriptor++; | 1054 buildCounterLogDescriptor++; |
1055 if (buildCounterLogDescriptor < 3) { | 1055 if (buildCounterLogDescriptor < 3) { |
1056 unittest.expect(o.description, unittest.equals('foo')); | 1056 unittest.expect(o.description, unittest.equals('foo')); |
1057 unittest.expect(o.displayName, unittest.equals('foo')); | 1057 unittest.expect(o.displayName, unittest.equals('foo')); |
1058 checkUnnamed1751(o.labels); | 1058 checkUnnamed1783(o.labels); |
1059 unittest.expect(o.name, unittest.equals('foo')); | 1059 unittest.expect(o.name, unittest.equals('foo')); |
1060 } | 1060 } |
1061 buildCounterLogDescriptor--; | 1061 buildCounterLogDescriptor--; |
1062 } | 1062 } |
1063 | 1063 |
1064 buildUnnamed1752() { | 1064 buildUnnamed1784() { |
1065 var o = new core.List<api.LoggingDestination>(); | 1065 var o = new core.List<api.LoggingDestination>(); |
1066 o.add(buildLoggingDestination()); | 1066 o.add(buildLoggingDestination()); |
1067 o.add(buildLoggingDestination()); | 1067 o.add(buildLoggingDestination()); |
1068 return o; | 1068 return o; |
1069 } | 1069 } |
1070 | 1070 |
1071 checkUnnamed1752(core.List<api.LoggingDestination> o) { | 1071 checkUnnamed1784(core.List<api.LoggingDestination> o) { |
1072 unittest.expect(o, unittest.hasLength(2)); | 1072 unittest.expect(o, unittest.hasLength(2)); |
1073 checkLoggingDestination(o[0]); | 1073 checkLoggingDestination(o[0]); |
1074 checkLoggingDestination(o[1]); | 1074 checkLoggingDestination(o[1]); |
1075 } | 1075 } |
1076 | 1076 |
1077 buildUnnamed1753() { | 1077 buildUnnamed1785() { |
1078 var o = new core.List<api.LoggingDestination>(); | 1078 var o = new core.List<api.LoggingDestination>(); |
1079 o.add(buildLoggingDestination()); | 1079 o.add(buildLoggingDestination()); |
1080 o.add(buildLoggingDestination()); | 1080 o.add(buildLoggingDestination()); |
1081 return o; | 1081 return o; |
1082 } | 1082 } |
1083 | 1083 |
1084 checkUnnamed1753(core.List<api.LoggingDestination> o) { | 1084 checkUnnamed1785(core.List<api.LoggingDestination> o) { |
1085 unittest.expect(o, unittest.hasLength(2)); | 1085 unittest.expect(o, unittest.hasLength(2)); |
1086 checkLoggingDestination(o[0]); | 1086 checkLoggingDestination(o[0]); |
1087 checkLoggingDestination(o[1]); | 1087 checkLoggingDestination(o[1]); |
1088 } | 1088 } |
1089 | 1089 |
1090 core.int buildCounterLogging = 0; | 1090 core.int buildCounterLogging = 0; |
1091 buildLogging() { | 1091 buildLogging() { |
1092 var o = new api.Logging(); | 1092 var o = new api.Logging(); |
1093 buildCounterLogging++; | 1093 buildCounterLogging++; |
1094 if (buildCounterLogging < 3) { | 1094 if (buildCounterLogging < 3) { |
1095 o.consumerDestinations = buildUnnamed1752(); | 1095 o.consumerDestinations = buildUnnamed1784(); |
1096 o.producerDestinations = buildUnnamed1753(); | 1096 o.producerDestinations = buildUnnamed1785(); |
1097 } | 1097 } |
1098 buildCounterLogging--; | 1098 buildCounterLogging--; |
1099 return o; | 1099 return o; |
1100 } | 1100 } |
1101 | 1101 |
1102 checkLogging(api.Logging o) { | 1102 checkLogging(api.Logging o) { |
1103 buildCounterLogging++; | 1103 buildCounterLogging++; |
1104 if (buildCounterLogging < 3) { | 1104 if (buildCounterLogging < 3) { |
1105 checkUnnamed1752(o.consumerDestinations); | 1105 checkUnnamed1784(o.consumerDestinations); |
1106 checkUnnamed1753(o.producerDestinations); | 1106 checkUnnamed1785(o.producerDestinations); |
1107 } | 1107 } |
1108 buildCounterLogging--; | 1108 buildCounterLogging--; |
1109 } | 1109 } |
1110 | 1110 |
1111 buildUnnamed1754() { | 1111 buildUnnamed1786() { |
1112 var o = new core.List<core.String>(); | 1112 var o = new core.List<core.String>(); |
1113 o.add("foo"); | 1113 o.add("foo"); |
1114 o.add("foo"); | 1114 o.add("foo"); |
1115 return o; | 1115 return o; |
1116 } | 1116 } |
1117 | 1117 |
1118 checkUnnamed1754(core.List<core.String> o) { | 1118 checkUnnamed1786(core.List<core.String> o) { |
1119 unittest.expect(o, unittest.hasLength(2)); | 1119 unittest.expect(o, unittest.hasLength(2)); |
1120 unittest.expect(o[0], unittest.equals('foo')); | 1120 unittest.expect(o[0], unittest.equals('foo')); |
1121 unittest.expect(o[1], unittest.equals('foo')); | 1121 unittest.expect(o[1], unittest.equals('foo')); |
1122 } | 1122 } |
1123 | 1123 |
1124 core.int buildCounterLoggingDestination = 0; | 1124 core.int buildCounterLoggingDestination = 0; |
1125 buildLoggingDestination() { | 1125 buildLoggingDestination() { |
1126 var o = new api.LoggingDestination(); | 1126 var o = new api.LoggingDestination(); |
1127 buildCounterLoggingDestination++; | 1127 buildCounterLoggingDestination++; |
1128 if (buildCounterLoggingDestination < 3) { | 1128 if (buildCounterLoggingDestination < 3) { |
1129 o.logs = buildUnnamed1754(); | 1129 o.logs = buildUnnamed1786(); |
1130 o.monitoredResource = "foo"; | 1130 o.monitoredResource = "foo"; |
1131 } | 1131 } |
1132 buildCounterLoggingDestination--; | 1132 buildCounterLoggingDestination--; |
1133 return o; | 1133 return o; |
1134 } | 1134 } |
1135 | 1135 |
1136 checkLoggingDestination(api.LoggingDestination o) { | 1136 checkLoggingDestination(api.LoggingDestination o) { |
1137 buildCounterLoggingDestination++; | 1137 buildCounterLoggingDestination++; |
1138 if (buildCounterLoggingDestination < 3) { | 1138 if (buildCounterLoggingDestination < 3) { |
1139 checkUnnamed1754(o.logs); | 1139 checkUnnamed1786(o.logs); |
1140 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1140 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1141 } | 1141 } |
1142 buildCounterLoggingDestination--; | 1142 buildCounterLoggingDestination--; |
1143 } | 1143 } |
1144 | 1144 |
1145 core.int buildCounterMediaDownload = 0; | 1145 core.int buildCounterMediaDownload = 0; |
1146 buildMediaDownload() { | 1146 buildMediaDownload() { |
1147 var o = new api.MediaDownload(); | 1147 var o = new api.MediaDownload(); |
1148 buildCounterMediaDownload++; | 1148 buildCounterMediaDownload++; |
1149 if (buildCounterMediaDownload < 3) { | 1149 if (buildCounterMediaDownload < 3) { |
(...skipping 14 matching lines...) Expand all Loading... |
1164 unittest.expect(o.completeNotification, unittest.isTrue); | 1164 unittest.expect(o.completeNotification, unittest.isTrue); |
1165 unittest.expect(o.downloadService, unittest.equals('foo')); | 1165 unittest.expect(o.downloadService, unittest.equals('foo')); |
1166 unittest.expect(o.dropzone, unittest.equals('foo')); | 1166 unittest.expect(o.dropzone, unittest.equals('foo')); |
1167 unittest.expect(o.enabled, unittest.isTrue); | 1167 unittest.expect(o.enabled, unittest.isTrue); |
1168 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); | 1168 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); |
1169 unittest.expect(o.useDirectDownload, unittest.isTrue); | 1169 unittest.expect(o.useDirectDownload, unittest.isTrue); |
1170 } | 1170 } |
1171 buildCounterMediaDownload--; | 1171 buildCounterMediaDownload--; |
1172 } | 1172 } |
1173 | 1173 |
1174 buildUnnamed1755() { | 1174 buildUnnamed1787() { |
1175 var o = new core.List<core.String>(); | 1175 var o = new core.List<core.String>(); |
1176 o.add("foo"); | 1176 o.add("foo"); |
1177 o.add("foo"); | 1177 o.add("foo"); |
1178 return o; | 1178 return o; |
1179 } | 1179 } |
1180 | 1180 |
1181 checkUnnamed1755(core.List<core.String> o) { | 1181 checkUnnamed1787(core.List<core.String> o) { |
1182 unittest.expect(o, unittest.hasLength(2)); | 1182 unittest.expect(o, unittest.hasLength(2)); |
1183 unittest.expect(o[0], unittest.equals('foo')); | 1183 unittest.expect(o[0], unittest.equals('foo')); |
1184 unittest.expect(o[1], unittest.equals('foo')); | 1184 unittest.expect(o[1], unittest.equals('foo')); |
1185 } | 1185 } |
1186 | 1186 |
1187 core.int buildCounterMediaUpload = 0; | 1187 core.int buildCounterMediaUpload = 0; |
1188 buildMediaUpload() { | 1188 buildMediaUpload() { |
1189 var o = new api.MediaUpload(); | 1189 var o = new api.MediaUpload(); |
1190 buildCounterMediaUpload++; | 1190 buildCounterMediaUpload++; |
1191 if (buildCounterMediaUpload < 3) { | 1191 if (buildCounterMediaUpload < 3) { |
1192 o.completeNotification = true; | 1192 o.completeNotification = true; |
1193 o.dropzone = "foo"; | 1193 o.dropzone = "foo"; |
1194 o.enabled = true; | 1194 o.enabled = true; |
1195 o.maxSize = "foo"; | 1195 o.maxSize = "foo"; |
1196 o.mimeTypes = buildUnnamed1755(); | 1196 o.mimeTypes = buildUnnamed1787(); |
1197 o.progressNotification = true; | 1197 o.progressNotification = true; |
1198 o.startNotification = true; | 1198 o.startNotification = true; |
1199 o.uploadService = "foo"; | 1199 o.uploadService = "foo"; |
1200 } | 1200 } |
1201 buildCounterMediaUpload--; | 1201 buildCounterMediaUpload--; |
1202 return o; | 1202 return o; |
1203 } | 1203 } |
1204 | 1204 |
1205 checkMediaUpload(api.MediaUpload o) { | 1205 checkMediaUpload(api.MediaUpload o) { |
1206 buildCounterMediaUpload++; | 1206 buildCounterMediaUpload++; |
1207 if (buildCounterMediaUpload < 3) { | 1207 if (buildCounterMediaUpload < 3) { |
1208 unittest.expect(o.completeNotification, unittest.isTrue); | 1208 unittest.expect(o.completeNotification, unittest.isTrue); |
1209 unittest.expect(o.dropzone, unittest.equals('foo')); | 1209 unittest.expect(o.dropzone, unittest.equals('foo')); |
1210 unittest.expect(o.enabled, unittest.isTrue); | 1210 unittest.expect(o.enabled, unittest.isTrue); |
1211 unittest.expect(o.maxSize, unittest.equals('foo')); | 1211 unittest.expect(o.maxSize, unittest.equals('foo')); |
1212 checkUnnamed1755(o.mimeTypes); | 1212 checkUnnamed1787(o.mimeTypes); |
1213 unittest.expect(o.progressNotification, unittest.isTrue); | 1213 unittest.expect(o.progressNotification, unittest.isTrue); |
1214 unittest.expect(o.startNotification, unittest.isTrue); | 1214 unittest.expect(o.startNotification, unittest.isTrue); |
1215 unittest.expect(o.uploadService, unittest.equals('foo')); | 1215 unittest.expect(o.uploadService, unittest.equals('foo')); |
1216 } | 1216 } |
1217 buildCounterMediaUpload--; | 1217 buildCounterMediaUpload--; |
1218 } | 1218 } |
1219 | 1219 |
1220 buildUnnamed1756() { | 1220 buildUnnamed1788() { |
1221 var o = new core.List<api.Option>(); | 1221 var o = new core.List<api.Option>(); |
1222 o.add(buildOption()); | 1222 o.add(buildOption()); |
1223 o.add(buildOption()); | 1223 o.add(buildOption()); |
1224 return o; | 1224 return o; |
1225 } | 1225 } |
1226 | 1226 |
1227 checkUnnamed1756(core.List<api.Option> o) { | 1227 checkUnnamed1788(core.List<api.Option> o) { |
1228 unittest.expect(o, unittest.hasLength(2)); | 1228 unittest.expect(o, unittest.hasLength(2)); |
1229 checkOption(o[0]); | 1229 checkOption(o[0]); |
1230 checkOption(o[1]); | 1230 checkOption(o[1]); |
1231 } | 1231 } |
1232 | 1232 |
1233 core.int buildCounterMethod = 0; | 1233 core.int buildCounterMethod = 0; |
1234 buildMethod() { | 1234 buildMethod() { |
1235 var o = new api.Method(); | 1235 var o = new api.Method(); |
1236 buildCounterMethod++; | 1236 buildCounterMethod++; |
1237 if (buildCounterMethod < 3) { | 1237 if (buildCounterMethod < 3) { |
1238 o.name = "foo"; | 1238 o.name = "foo"; |
1239 o.options = buildUnnamed1756(); | 1239 o.options = buildUnnamed1788(); |
1240 o.requestStreaming = true; | 1240 o.requestStreaming = true; |
1241 o.requestTypeUrl = "foo"; | 1241 o.requestTypeUrl = "foo"; |
1242 o.responseStreaming = true; | 1242 o.responseStreaming = true; |
1243 o.responseTypeUrl = "foo"; | 1243 o.responseTypeUrl = "foo"; |
1244 o.syntax = "foo"; | 1244 o.syntax = "foo"; |
1245 } | 1245 } |
1246 buildCounterMethod--; | 1246 buildCounterMethod--; |
1247 return o; | 1247 return o; |
1248 } | 1248 } |
1249 | 1249 |
1250 checkMethod(api.Method o) { | 1250 checkMethod(api.Method o) { |
1251 buildCounterMethod++; | 1251 buildCounterMethod++; |
1252 if (buildCounterMethod < 3) { | 1252 if (buildCounterMethod < 3) { |
1253 unittest.expect(o.name, unittest.equals('foo')); | 1253 unittest.expect(o.name, unittest.equals('foo')); |
1254 checkUnnamed1756(o.options); | 1254 checkUnnamed1788(o.options); |
1255 unittest.expect(o.requestStreaming, unittest.isTrue); | 1255 unittest.expect(o.requestStreaming, unittest.isTrue); |
1256 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 1256 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
1257 unittest.expect(o.responseStreaming, unittest.isTrue); | 1257 unittest.expect(o.responseStreaming, unittest.isTrue); |
1258 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 1258 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
1259 unittest.expect(o.syntax, unittest.equals('foo')); | 1259 unittest.expect(o.syntax, unittest.equals('foo')); |
1260 } | 1260 } |
1261 buildCounterMethod--; | 1261 buildCounterMethod--; |
1262 } | 1262 } |
1263 | 1263 |
1264 buildUnnamed1757() { | 1264 buildUnnamed1789() { |
1265 var o = new core.List<api.LabelDescriptor>(); | 1265 var o = new core.List<api.LabelDescriptor>(); |
1266 o.add(buildLabelDescriptor()); | 1266 o.add(buildLabelDescriptor()); |
1267 o.add(buildLabelDescriptor()); | 1267 o.add(buildLabelDescriptor()); |
1268 return o; | 1268 return o; |
1269 } | 1269 } |
1270 | 1270 |
1271 checkUnnamed1757(core.List<api.LabelDescriptor> o) { | 1271 checkUnnamed1789(core.List<api.LabelDescriptor> o) { |
1272 unittest.expect(o, unittest.hasLength(2)); | 1272 unittest.expect(o, unittest.hasLength(2)); |
1273 checkLabelDescriptor(o[0]); | 1273 checkLabelDescriptor(o[0]); |
1274 checkLabelDescriptor(o[1]); | 1274 checkLabelDescriptor(o[1]); |
1275 } | 1275 } |
1276 | 1276 |
1277 core.int buildCounterMetricDescriptor = 0; | 1277 core.int buildCounterMetricDescriptor = 0; |
1278 buildMetricDescriptor() { | 1278 buildMetricDescriptor() { |
1279 var o = new api.MetricDescriptor(); | 1279 var o = new api.MetricDescriptor(); |
1280 buildCounterMetricDescriptor++; | 1280 buildCounterMetricDescriptor++; |
1281 if (buildCounterMetricDescriptor < 3) { | 1281 if (buildCounterMetricDescriptor < 3) { |
1282 o.description = "foo"; | 1282 o.description = "foo"; |
1283 o.displayName = "foo"; | 1283 o.displayName = "foo"; |
1284 o.labels = buildUnnamed1757(); | 1284 o.labels = buildUnnamed1789(); |
1285 o.metricKind = "foo"; | 1285 o.metricKind = "foo"; |
1286 o.name = "foo"; | 1286 o.name = "foo"; |
1287 o.type = "foo"; | 1287 o.type = "foo"; |
1288 o.unit = "foo"; | 1288 o.unit = "foo"; |
1289 o.valueType = "foo"; | 1289 o.valueType = "foo"; |
1290 } | 1290 } |
1291 buildCounterMetricDescriptor--; | 1291 buildCounterMetricDescriptor--; |
1292 return o; | 1292 return o; |
1293 } | 1293 } |
1294 | 1294 |
1295 checkMetricDescriptor(api.MetricDescriptor o) { | 1295 checkMetricDescriptor(api.MetricDescriptor o) { |
1296 buildCounterMetricDescriptor++; | 1296 buildCounterMetricDescriptor++; |
1297 if (buildCounterMetricDescriptor < 3) { | 1297 if (buildCounterMetricDescriptor < 3) { |
1298 unittest.expect(o.description, unittest.equals('foo')); | 1298 unittest.expect(o.description, unittest.equals('foo')); |
1299 unittest.expect(o.displayName, unittest.equals('foo')); | 1299 unittest.expect(o.displayName, unittest.equals('foo')); |
1300 checkUnnamed1757(o.labels); | 1300 checkUnnamed1789(o.labels); |
1301 unittest.expect(o.metricKind, unittest.equals('foo')); | 1301 unittest.expect(o.metricKind, unittest.equals('foo')); |
1302 unittest.expect(o.name, unittest.equals('foo')); | 1302 unittest.expect(o.name, unittest.equals('foo')); |
1303 unittest.expect(o.type, unittest.equals('foo')); | 1303 unittest.expect(o.type, unittest.equals('foo')); |
1304 unittest.expect(o.unit, unittest.equals('foo')); | 1304 unittest.expect(o.unit, unittest.equals('foo')); |
1305 unittest.expect(o.valueType, unittest.equals('foo')); | 1305 unittest.expect(o.valueType, unittest.equals('foo')); |
1306 } | 1306 } |
1307 buildCounterMetricDescriptor--; | 1307 buildCounterMetricDescriptor--; |
1308 } | 1308 } |
1309 | 1309 |
1310 buildUnnamed1758() { | 1310 buildUnnamed1790() { |
1311 var o = new core.Map<core.String, core.String>(); | 1311 var o = new core.Map<core.String, core.String>(); |
1312 o["x"] = "foo"; | 1312 o["x"] = "foo"; |
1313 o["y"] = "foo"; | 1313 o["y"] = "foo"; |
1314 return o; | 1314 return o; |
1315 } | 1315 } |
1316 | 1316 |
1317 checkUnnamed1758(core.Map<core.String, core.String> o) { | 1317 checkUnnamed1790(core.Map<core.String, core.String> o) { |
1318 unittest.expect(o, unittest.hasLength(2)); | 1318 unittest.expect(o, unittest.hasLength(2)); |
1319 unittest.expect(o["x"], unittest.equals('foo')); | 1319 unittest.expect(o["x"], unittest.equals('foo')); |
1320 unittest.expect(o["y"], unittest.equals('foo')); | 1320 unittest.expect(o["y"], unittest.equals('foo')); |
1321 } | 1321 } |
1322 | 1322 |
1323 core.int buildCounterMetricRule = 0; | 1323 core.int buildCounterMetricRule = 0; |
1324 buildMetricRule() { | 1324 buildMetricRule() { |
1325 var o = new api.MetricRule(); | 1325 var o = new api.MetricRule(); |
1326 buildCounterMetricRule++; | 1326 buildCounterMetricRule++; |
1327 if (buildCounterMetricRule < 3) { | 1327 if (buildCounterMetricRule < 3) { |
1328 o.metricCosts = buildUnnamed1758(); | 1328 o.metricCosts = buildUnnamed1790(); |
1329 o.selector = "foo"; | 1329 o.selector = "foo"; |
1330 } | 1330 } |
1331 buildCounterMetricRule--; | 1331 buildCounterMetricRule--; |
1332 return o; | 1332 return o; |
1333 } | 1333 } |
1334 | 1334 |
1335 checkMetricRule(api.MetricRule o) { | 1335 checkMetricRule(api.MetricRule o) { |
1336 buildCounterMetricRule++; | 1336 buildCounterMetricRule++; |
1337 if (buildCounterMetricRule < 3) { | 1337 if (buildCounterMetricRule < 3) { |
1338 checkUnnamed1758(o.metricCosts); | 1338 checkUnnamed1790(o.metricCosts); |
1339 unittest.expect(o.selector, unittest.equals('foo')); | 1339 unittest.expect(o.selector, unittest.equals('foo')); |
1340 } | 1340 } |
1341 buildCounterMetricRule--; | 1341 buildCounterMetricRule--; |
1342 } | 1342 } |
1343 | 1343 |
1344 core.int buildCounterMixin = 0; | 1344 core.int buildCounterMixin = 0; |
1345 buildMixin() { | 1345 buildMixin() { |
1346 var o = new api.Mixin(); | 1346 var o = new api.Mixin(); |
1347 buildCounterMixin++; | 1347 buildCounterMixin++; |
1348 if (buildCounterMixin < 3) { | 1348 if (buildCounterMixin < 3) { |
1349 o.name = "foo"; | 1349 o.name = "foo"; |
1350 o.root = "foo"; | 1350 o.root = "foo"; |
1351 } | 1351 } |
1352 buildCounterMixin--; | 1352 buildCounterMixin--; |
1353 return o; | 1353 return o; |
1354 } | 1354 } |
1355 | 1355 |
1356 checkMixin(api.Mixin o) { | 1356 checkMixin(api.Mixin o) { |
1357 buildCounterMixin++; | 1357 buildCounterMixin++; |
1358 if (buildCounterMixin < 3) { | 1358 if (buildCounterMixin < 3) { |
1359 unittest.expect(o.name, unittest.equals('foo')); | 1359 unittest.expect(o.name, unittest.equals('foo')); |
1360 unittest.expect(o.root, unittest.equals('foo')); | 1360 unittest.expect(o.root, unittest.equals('foo')); |
1361 } | 1361 } |
1362 buildCounterMixin--; | 1362 buildCounterMixin--; |
1363 } | 1363 } |
1364 | 1364 |
1365 buildUnnamed1759() { | 1365 buildUnnamed1791() { |
1366 var o = new core.List<api.LabelDescriptor>(); | 1366 var o = new core.List<api.LabelDescriptor>(); |
1367 o.add(buildLabelDescriptor()); | 1367 o.add(buildLabelDescriptor()); |
1368 o.add(buildLabelDescriptor()); | 1368 o.add(buildLabelDescriptor()); |
1369 return o; | 1369 return o; |
1370 } | 1370 } |
1371 | 1371 |
1372 checkUnnamed1759(core.List<api.LabelDescriptor> o) { | 1372 checkUnnamed1791(core.List<api.LabelDescriptor> o) { |
1373 unittest.expect(o, unittest.hasLength(2)); | 1373 unittest.expect(o, unittest.hasLength(2)); |
1374 checkLabelDescriptor(o[0]); | 1374 checkLabelDescriptor(o[0]); |
1375 checkLabelDescriptor(o[1]); | 1375 checkLabelDescriptor(o[1]); |
1376 } | 1376 } |
1377 | 1377 |
1378 core.int buildCounterMonitoredResourceDescriptor = 0; | 1378 core.int buildCounterMonitoredResourceDescriptor = 0; |
1379 buildMonitoredResourceDescriptor() { | 1379 buildMonitoredResourceDescriptor() { |
1380 var o = new api.MonitoredResourceDescriptor(); | 1380 var o = new api.MonitoredResourceDescriptor(); |
1381 buildCounterMonitoredResourceDescriptor++; | 1381 buildCounterMonitoredResourceDescriptor++; |
1382 if (buildCounterMonitoredResourceDescriptor < 3) { | 1382 if (buildCounterMonitoredResourceDescriptor < 3) { |
1383 o.description = "foo"; | 1383 o.description = "foo"; |
1384 o.displayName = "foo"; | 1384 o.displayName = "foo"; |
1385 o.labels = buildUnnamed1759(); | 1385 o.labels = buildUnnamed1791(); |
1386 o.name = "foo"; | 1386 o.name = "foo"; |
1387 o.type = "foo"; | 1387 o.type = "foo"; |
1388 } | 1388 } |
1389 buildCounterMonitoredResourceDescriptor--; | 1389 buildCounterMonitoredResourceDescriptor--; |
1390 return o; | 1390 return o; |
1391 } | 1391 } |
1392 | 1392 |
1393 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 1393 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
1394 buildCounterMonitoredResourceDescriptor++; | 1394 buildCounterMonitoredResourceDescriptor++; |
1395 if (buildCounterMonitoredResourceDescriptor < 3) { | 1395 if (buildCounterMonitoredResourceDescriptor < 3) { |
1396 unittest.expect(o.description, unittest.equals('foo')); | 1396 unittest.expect(o.description, unittest.equals('foo')); |
1397 unittest.expect(o.displayName, unittest.equals('foo')); | 1397 unittest.expect(o.displayName, unittest.equals('foo')); |
1398 checkUnnamed1759(o.labels); | 1398 checkUnnamed1791(o.labels); |
1399 unittest.expect(o.name, unittest.equals('foo')); | 1399 unittest.expect(o.name, unittest.equals('foo')); |
1400 unittest.expect(o.type, unittest.equals('foo')); | 1400 unittest.expect(o.type, unittest.equals('foo')); |
1401 } | 1401 } |
1402 buildCounterMonitoredResourceDescriptor--; | 1402 buildCounterMonitoredResourceDescriptor--; |
1403 } | 1403 } |
1404 | 1404 |
1405 buildUnnamed1760() { | 1405 buildUnnamed1792() { |
1406 var o = new core.List<api.MonitoringDestination>(); | 1406 var o = new core.List<api.MonitoringDestination>(); |
1407 o.add(buildMonitoringDestination()); | 1407 o.add(buildMonitoringDestination()); |
1408 o.add(buildMonitoringDestination()); | 1408 o.add(buildMonitoringDestination()); |
1409 return o; | 1409 return o; |
1410 } | 1410 } |
1411 | 1411 |
1412 checkUnnamed1760(core.List<api.MonitoringDestination> o) { | 1412 checkUnnamed1792(core.List<api.MonitoringDestination> o) { |
1413 unittest.expect(o, unittest.hasLength(2)); | 1413 unittest.expect(o, unittest.hasLength(2)); |
1414 checkMonitoringDestination(o[0]); | 1414 checkMonitoringDestination(o[0]); |
1415 checkMonitoringDestination(o[1]); | 1415 checkMonitoringDestination(o[1]); |
1416 } | 1416 } |
1417 | 1417 |
1418 buildUnnamed1761() { | 1418 buildUnnamed1793() { |
1419 var o = new core.List<api.MonitoringDestination>(); | 1419 var o = new core.List<api.MonitoringDestination>(); |
1420 o.add(buildMonitoringDestination()); | 1420 o.add(buildMonitoringDestination()); |
1421 o.add(buildMonitoringDestination()); | 1421 o.add(buildMonitoringDestination()); |
1422 return o; | 1422 return o; |
1423 } | 1423 } |
1424 | 1424 |
1425 checkUnnamed1761(core.List<api.MonitoringDestination> o) { | 1425 checkUnnamed1793(core.List<api.MonitoringDestination> o) { |
1426 unittest.expect(o, unittest.hasLength(2)); | 1426 unittest.expect(o, unittest.hasLength(2)); |
1427 checkMonitoringDestination(o[0]); | 1427 checkMonitoringDestination(o[0]); |
1428 checkMonitoringDestination(o[1]); | 1428 checkMonitoringDestination(o[1]); |
1429 } | 1429 } |
1430 | 1430 |
1431 core.int buildCounterMonitoring = 0; | 1431 core.int buildCounterMonitoring = 0; |
1432 buildMonitoring() { | 1432 buildMonitoring() { |
1433 var o = new api.Monitoring(); | 1433 var o = new api.Monitoring(); |
1434 buildCounterMonitoring++; | 1434 buildCounterMonitoring++; |
1435 if (buildCounterMonitoring < 3) { | 1435 if (buildCounterMonitoring < 3) { |
1436 o.consumerDestinations = buildUnnamed1760(); | 1436 o.consumerDestinations = buildUnnamed1792(); |
1437 o.producerDestinations = buildUnnamed1761(); | 1437 o.producerDestinations = buildUnnamed1793(); |
1438 } | 1438 } |
1439 buildCounterMonitoring--; | 1439 buildCounterMonitoring--; |
1440 return o; | 1440 return o; |
1441 } | 1441 } |
1442 | 1442 |
1443 checkMonitoring(api.Monitoring o) { | 1443 checkMonitoring(api.Monitoring o) { |
1444 buildCounterMonitoring++; | 1444 buildCounterMonitoring++; |
1445 if (buildCounterMonitoring < 3) { | 1445 if (buildCounterMonitoring < 3) { |
1446 checkUnnamed1760(o.consumerDestinations); | 1446 checkUnnamed1792(o.consumerDestinations); |
1447 checkUnnamed1761(o.producerDestinations); | 1447 checkUnnamed1793(o.producerDestinations); |
1448 } | 1448 } |
1449 buildCounterMonitoring--; | 1449 buildCounterMonitoring--; |
1450 } | 1450 } |
1451 | 1451 |
1452 buildUnnamed1762() { | 1452 buildUnnamed1794() { |
1453 var o = new core.List<core.String>(); | 1453 var o = new core.List<core.String>(); |
1454 o.add("foo"); | 1454 o.add("foo"); |
1455 o.add("foo"); | 1455 o.add("foo"); |
1456 return o; | 1456 return o; |
1457 } | 1457 } |
1458 | 1458 |
1459 checkUnnamed1762(core.List<core.String> o) { | 1459 checkUnnamed1794(core.List<core.String> o) { |
1460 unittest.expect(o, unittest.hasLength(2)); | 1460 unittest.expect(o, unittest.hasLength(2)); |
1461 unittest.expect(o[0], unittest.equals('foo')); | 1461 unittest.expect(o[0], unittest.equals('foo')); |
1462 unittest.expect(o[1], unittest.equals('foo')); | 1462 unittest.expect(o[1], unittest.equals('foo')); |
1463 } | 1463 } |
1464 | 1464 |
1465 core.int buildCounterMonitoringDestination = 0; | 1465 core.int buildCounterMonitoringDestination = 0; |
1466 buildMonitoringDestination() { | 1466 buildMonitoringDestination() { |
1467 var o = new api.MonitoringDestination(); | 1467 var o = new api.MonitoringDestination(); |
1468 buildCounterMonitoringDestination++; | 1468 buildCounterMonitoringDestination++; |
1469 if (buildCounterMonitoringDestination < 3) { | 1469 if (buildCounterMonitoringDestination < 3) { |
1470 o.metrics = buildUnnamed1762(); | 1470 o.metrics = buildUnnamed1794(); |
1471 o.monitoredResource = "foo"; | 1471 o.monitoredResource = "foo"; |
1472 } | 1472 } |
1473 buildCounterMonitoringDestination--; | 1473 buildCounterMonitoringDestination--; |
1474 return o; | 1474 return o; |
1475 } | 1475 } |
1476 | 1476 |
1477 checkMonitoringDestination(api.MonitoringDestination o) { | 1477 checkMonitoringDestination(api.MonitoringDestination o) { |
1478 buildCounterMonitoringDestination++; | 1478 buildCounterMonitoringDestination++; |
1479 if (buildCounterMonitoringDestination < 3) { | 1479 if (buildCounterMonitoringDestination < 3) { |
1480 checkUnnamed1762(o.metrics); | 1480 checkUnnamed1794(o.metrics); |
1481 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1481 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1482 } | 1482 } |
1483 buildCounterMonitoringDestination--; | 1483 buildCounterMonitoringDestination--; |
1484 } | 1484 } |
1485 | 1485 |
1486 core.int buildCounterOAuthRequirements = 0; | 1486 core.int buildCounterOAuthRequirements = 0; |
1487 buildOAuthRequirements() { | 1487 buildOAuthRequirements() { |
1488 var o = new api.OAuthRequirements(); | 1488 var o = new api.OAuthRequirements(); |
1489 buildCounterOAuthRequirements++; | 1489 buildCounterOAuthRequirements++; |
1490 if (buildCounterOAuthRequirements < 3) { | 1490 if (buildCounterOAuthRequirements < 3) { |
1491 o.canonicalScopes = "foo"; | 1491 o.canonicalScopes = "foo"; |
1492 } | 1492 } |
1493 buildCounterOAuthRequirements--; | 1493 buildCounterOAuthRequirements--; |
1494 return o; | 1494 return o; |
1495 } | 1495 } |
1496 | 1496 |
1497 checkOAuthRequirements(api.OAuthRequirements o) { | 1497 checkOAuthRequirements(api.OAuthRequirements o) { |
1498 buildCounterOAuthRequirements++; | 1498 buildCounterOAuthRequirements++; |
1499 if (buildCounterOAuthRequirements < 3) { | 1499 if (buildCounterOAuthRequirements < 3) { |
1500 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 1500 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
1501 } | 1501 } |
1502 buildCounterOAuthRequirements--; | 1502 buildCounterOAuthRequirements--; |
1503 } | 1503 } |
1504 | 1504 |
1505 buildUnnamed1763() { | 1505 buildUnnamed1795() { |
1506 var o = new core.Map<core.String, core.Object>(); | 1506 var o = new core.Map<core.String, core.Object>(); |
1507 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1507 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1508 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1508 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1509 return o; | 1509 return o; |
1510 } | 1510 } |
1511 | 1511 |
1512 checkUnnamed1763(core.Map<core.String, core.Object> o) { | 1512 checkUnnamed1795(core.Map<core.String, core.Object> o) { |
1513 unittest.expect(o, unittest.hasLength(2)); | 1513 unittest.expect(o, unittest.hasLength(2)); |
1514 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')); | 1514 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')); |
1515 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')); | 1515 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')); |
1516 } | 1516 } |
1517 | 1517 |
1518 buildUnnamed1764() { | 1518 buildUnnamed1796() { |
1519 var o = new core.Map<core.String, core.Object>(); | 1519 var o = new core.Map<core.String, core.Object>(); |
1520 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1520 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1521 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1521 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1522 return o; | 1522 return o; |
1523 } | 1523 } |
1524 | 1524 |
1525 checkUnnamed1764(core.Map<core.String, core.Object> o) { | 1525 checkUnnamed1796(core.Map<core.String, core.Object> o) { |
1526 unittest.expect(o, unittest.hasLength(2)); | 1526 unittest.expect(o, unittest.hasLength(2)); |
1527 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 1527 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1528 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 1528 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1529 } | 1529 } |
1530 | 1530 |
1531 core.int buildCounterOperation = 0; | 1531 core.int buildCounterOperation = 0; |
1532 buildOperation() { | 1532 buildOperation() { |
1533 var o = new api.Operation(); | 1533 var o = new api.Operation(); |
1534 buildCounterOperation++; | 1534 buildCounterOperation++; |
1535 if (buildCounterOperation < 3) { | 1535 if (buildCounterOperation < 3) { |
1536 o.done = true; | 1536 o.done = true; |
1537 o.error = buildStatus(); | 1537 o.error = buildStatus(); |
1538 o.metadata = buildUnnamed1763(); | 1538 o.metadata = buildUnnamed1795(); |
1539 o.name = "foo"; | 1539 o.name = "foo"; |
1540 o.response = buildUnnamed1764(); | 1540 o.response = buildUnnamed1796(); |
1541 } | 1541 } |
1542 buildCounterOperation--; | 1542 buildCounterOperation--; |
1543 return o; | 1543 return o; |
1544 } | 1544 } |
1545 | 1545 |
1546 checkOperation(api.Operation o) { | 1546 checkOperation(api.Operation o) { |
1547 buildCounterOperation++; | 1547 buildCounterOperation++; |
1548 if (buildCounterOperation < 3) { | 1548 if (buildCounterOperation < 3) { |
1549 unittest.expect(o.done, unittest.isTrue); | 1549 unittest.expect(o.done, unittest.isTrue); |
1550 checkStatus(o.error); | 1550 checkStatus(o.error); |
1551 checkUnnamed1763(o.metadata); | 1551 checkUnnamed1795(o.metadata); |
1552 unittest.expect(o.name, unittest.equals('foo')); | 1552 unittest.expect(o.name, unittest.equals('foo')); |
1553 checkUnnamed1764(o.response); | 1553 checkUnnamed1796(o.response); |
1554 } | 1554 } |
1555 buildCounterOperation--; | 1555 buildCounterOperation--; |
1556 } | 1556 } |
1557 | 1557 |
1558 buildUnnamed1765() { | 1558 buildUnnamed1797() { |
1559 var o = new core.List<core.String>(); | 1559 var o = new core.List<core.String>(); |
1560 o.add("foo"); | 1560 o.add("foo"); |
1561 o.add("foo"); | 1561 o.add("foo"); |
1562 return o; | 1562 return o; |
1563 } | 1563 } |
1564 | 1564 |
1565 checkUnnamed1765(core.List<core.String> o) { | 1565 checkUnnamed1797(core.List<core.String> o) { |
1566 unittest.expect(o, unittest.hasLength(2)); | 1566 unittest.expect(o, unittest.hasLength(2)); |
1567 unittest.expect(o[0], unittest.equals('foo')); | 1567 unittest.expect(o[0], unittest.equals('foo')); |
1568 unittest.expect(o[1], unittest.equals('foo')); | 1568 unittest.expect(o[1], unittest.equals('foo')); |
1569 } | 1569 } |
1570 | 1570 |
1571 buildUnnamed1766() { | 1571 buildUnnamed1798() { |
1572 var o = new core.List<api.Step>(); | 1572 var o = new core.List<api.Step>(); |
1573 o.add(buildStep()); | 1573 o.add(buildStep()); |
1574 o.add(buildStep()); | 1574 o.add(buildStep()); |
1575 return o; | 1575 return o; |
1576 } | 1576 } |
1577 | 1577 |
1578 checkUnnamed1766(core.List<api.Step> o) { | 1578 checkUnnamed1798(core.List<api.Step> o) { |
1579 unittest.expect(o, unittest.hasLength(2)); | 1579 unittest.expect(o, unittest.hasLength(2)); |
1580 checkStep(o[0]); | 1580 checkStep(o[0]); |
1581 checkStep(o[1]); | 1581 checkStep(o[1]); |
1582 } | 1582 } |
1583 | 1583 |
1584 core.int buildCounterOperationMetadata = 0; | 1584 core.int buildCounterOperationMetadata = 0; |
1585 buildOperationMetadata() { | 1585 buildOperationMetadata() { |
1586 var o = new api.OperationMetadata(); | 1586 var o = new api.OperationMetadata(); |
1587 buildCounterOperationMetadata++; | 1587 buildCounterOperationMetadata++; |
1588 if (buildCounterOperationMetadata < 3) { | 1588 if (buildCounterOperationMetadata < 3) { |
1589 o.progressPercentage = 42; | 1589 o.progressPercentage = 42; |
1590 o.resourceNames = buildUnnamed1765(); | 1590 o.resourceNames = buildUnnamed1797(); |
1591 o.startTime = "foo"; | 1591 o.startTime = "foo"; |
1592 o.steps = buildUnnamed1766(); | 1592 o.steps = buildUnnamed1798(); |
1593 } | 1593 } |
1594 buildCounterOperationMetadata--; | 1594 buildCounterOperationMetadata--; |
1595 return o; | 1595 return o; |
1596 } | 1596 } |
1597 | 1597 |
1598 checkOperationMetadata(api.OperationMetadata o) { | 1598 checkOperationMetadata(api.OperationMetadata o) { |
1599 buildCounterOperationMetadata++; | 1599 buildCounterOperationMetadata++; |
1600 if (buildCounterOperationMetadata < 3) { | 1600 if (buildCounterOperationMetadata < 3) { |
1601 unittest.expect(o.progressPercentage, unittest.equals(42)); | 1601 unittest.expect(o.progressPercentage, unittest.equals(42)); |
1602 checkUnnamed1765(o.resourceNames); | 1602 checkUnnamed1797(o.resourceNames); |
1603 unittest.expect(o.startTime, unittest.equals('foo')); | 1603 unittest.expect(o.startTime, unittest.equals('foo')); |
1604 checkUnnamed1766(o.steps); | 1604 checkUnnamed1798(o.steps); |
1605 } | 1605 } |
1606 buildCounterOperationMetadata--; | 1606 buildCounterOperationMetadata--; |
1607 } | 1607 } |
1608 | 1608 |
1609 buildUnnamed1767() { | 1609 buildUnnamed1799() { |
1610 var o = new core.Map<core.String, core.Object>(); | 1610 var o = new core.Map<core.String, core.Object>(); |
1611 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1611 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1612 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1612 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1613 return o; | 1613 return o; |
1614 } | 1614 } |
1615 | 1615 |
1616 checkUnnamed1767(core.Map<core.String, core.Object> o) { | 1616 checkUnnamed1799(core.Map<core.String, core.Object> o) { |
1617 unittest.expect(o, unittest.hasLength(2)); | 1617 unittest.expect(o, unittest.hasLength(2)); |
1618 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1618 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
1619 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1619 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1620 } | 1620 } |
1621 | 1621 |
1622 core.int buildCounterOption = 0; | 1622 core.int buildCounterOption = 0; |
1623 buildOption() { | 1623 buildOption() { |
1624 var o = new api.Option(); | 1624 var o = new api.Option(); |
1625 buildCounterOption++; | 1625 buildCounterOption++; |
1626 if (buildCounterOption < 3) { | 1626 if (buildCounterOption < 3) { |
1627 o.name = "foo"; | 1627 o.name = "foo"; |
1628 o.value = buildUnnamed1767(); | 1628 o.value = buildUnnamed1799(); |
1629 } | 1629 } |
1630 buildCounterOption--; | 1630 buildCounterOption--; |
1631 return o; | 1631 return o; |
1632 } | 1632 } |
1633 | 1633 |
1634 checkOption(api.Option o) { | 1634 checkOption(api.Option o) { |
1635 buildCounterOption++; | 1635 buildCounterOption++; |
1636 if (buildCounterOption < 3) { | 1636 if (buildCounterOption < 3) { |
1637 unittest.expect(o.name, unittest.equals('foo')); | 1637 unittest.expect(o.name, unittest.equals('foo')); |
1638 checkUnnamed1767(o.value); | 1638 checkUnnamed1799(o.value); |
1639 } | 1639 } |
1640 buildCounterOption--; | 1640 buildCounterOption--; |
1641 } | 1641 } |
1642 | 1642 |
1643 buildUnnamed1768() { | 1643 buildUnnamed1800() { |
1644 var o = new core.List<api.Page>(); | 1644 var o = new core.List<api.Page>(); |
1645 o.add(buildPage()); | 1645 o.add(buildPage()); |
1646 o.add(buildPage()); | 1646 o.add(buildPage()); |
1647 return o; | 1647 return o; |
1648 } | 1648 } |
1649 | 1649 |
1650 checkUnnamed1768(core.List<api.Page> o) { | 1650 checkUnnamed1800(core.List<api.Page> o) { |
1651 unittest.expect(o, unittest.hasLength(2)); | 1651 unittest.expect(o, unittest.hasLength(2)); |
1652 checkPage(o[0]); | 1652 checkPage(o[0]); |
1653 checkPage(o[1]); | 1653 checkPage(o[1]); |
1654 } | 1654 } |
1655 | 1655 |
1656 core.int buildCounterPage = 0; | 1656 core.int buildCounterPage = 0; |
1657 buildPage() { | 1657 buildPage() { |
1658 var o = new api.Page(); | 1658 var o = new api.Page(); |
1659 buildCounterPage++; | 1659 buildCounterPage++; |
1660 if (buildCounterPage < 3) { | 1660 if (buildCounterPage < 3) { |
1661 o.content = "foo"; | 1661 o.content = "foo"; |
1662 o.name = "foo"; | 1662 o.name = "foo"; |
1663 o.subpages = buildUnnamed1768(); | 1663 o.subpages = buildUnnamed1800(); |
1664 } | 1664 } |
1665 buildCounterPage--; | 1665 buildCounterPage--; |
1666 return o; | 1666 return o; |
1667 } | 1667 } |
1668 | 1668 |
1669 checkPage(api.Page o) { | 1669 checkPage(api.Page o) { |
1670 buildCounterPage++; | 1670 buildCounterPage++; |
1671 if (buildCounterPage < 3) { | 1671 if (buildCounterPage < 3) { |
1672 unittest.expect(o.content, unittest.equals('foo')); | 1672 unittest.expect(o.content, unittest.equals('foo')); |
1673 unittest.expect(o.name, unittest.equals('foo')); | 1673 unittest.expect(o.name, unittest.equals('foo')); |
1674 checkUnnamed1768(o.subpages); | 1674 checkUnnamed1800(o.subpages); |
1675 } | 1675 } |
1676 buildCounterPage--; | 1676 buildCounterPage--; |
1677 } | 1677 } |
1678 | 1678 |
1679 core.int buildCounterPublishedService = 0; | 1679 core.int buildCounterPublishedService = 0; |
1680 buildPublishedService() { | 1680 buildPublishedService() { |
1681 var o = new api.PublishedService(); | 1681 var o = new api.PublishedService(); |
1682 buildCounterPublishedService++; | 1682 buildCounterPublishedService++; |
1683 if (buildCounterPublishedService < 3) { | 1683 if (buildCounterPublishedService < 3) { |
1684 o.name = "foo"; | 1684 o.name = "foo"; |
1685 o.service = buildService(); | 1685 o.service = buildService(); |
1686 } | 1686 } |
1687 buildCounterPublishedService--; | 1687 buildCounterPublishedService--; |
1688 return o; | 1688 return o; |
1689 } | 1689 } |
1690 | 1690 |
1691 checkPublishedService(api.PublishedService o) { | 1691 checkPublishedService(api.PublishedService o) { |
1692 buildCounterPublishedService++; | 1692 buildCounterPublishedService++; |
1693 if (buildCounterPublishedService < 3) { | 1693 if (buildCounterPublishedService < 3) { |
1694 unittest.expect(o.name, unittest.equals('foo')); | 1694 unittest.expect(o.name, unittest.equals('foo')); |
1695 checkService(o.service); | 1695 checkService(o.service); |
1696 } | 1696 } |
1697 buildCounterPublishedService--; | 1697 buildCounterPublishedService--; |
1698 } | 1698 } |
1699 | 1699 |
1700 buildUnnamed1769() { | 1700 buildUnnamed1801() { |
1701 var o = new core.List<api.QuotaLimit>(); | 1701 var o = new core.List<api.QuotaLimit>(); |
1702 o.add(buildQuotaLimit()); | 1702 o.add(buildQuotaLimit()); |
1703 o.add(buildQuotaLimit()); | 1703 o.add(buildQuotaLimit()); |
1704 return o; | 1704 return o; |
1705 } | 1705 } |
1706 | 1706 |
1707 checkUnnamed1769(core.List<api.QuotaLimit> o) { | 1707 checkUnnamed1801(core.List<api.QuotaLimit> o) { |
1708 unittest.expect(o, unittest.hasLength(2)); | 1708 unittest.expect(o, unittest.hasLength(2)); |
1709 checkQuotaLimit(o[0]); | 1709 checkQuotaLimit(o[0]); |
1710 checkQuotaLimit(o[1]); | 1710 checkQuotaLimit(o[1]); |
1711 } | 1711 } |
1712 | 1712 |
1713 buildUnnamed1770() { | 1713 buildUnnamed1802() { |
1714 var o = new core.List<api.MetricRule>(); | 1714 var o = new core.List<api.MetricRule>(); |
1715 o.add(buildMetricRule()); | 1715 o.add(buildMetricRule()); |
1716 o.add(buildMetricRule()); | 1716 o.add(buildMetricRule()); |
1717 return o; | 1717 return o; |
1718 } | 1718 } |
1719 | 1719 |
1720 checkUnnamed1770(core.List<api.MetricRule> o) { | 1720 checkUnnamed1802(core.List<api.MetricRule> o) { |
1721 unittest.expect(o, unittest.hasLength(2)); | 1721 unittest.expect(o, unittest.hasLength(2)); |
1722 checkMetricRule(o[0]); | 1722 checkMetricRule(o[0]); |
1723 checkMetricRule(o[1]); | 1723 checkMetricRule(o[1]); |
1724 } | 1724 } |
1725 | 1725 |
1726 core.int buildCounterQuota = 0; | 1726 core.int buildCounterQuota = 0; |
1727 buildQuota() { | 1727 buildQuota() { |
1728 var o = new api.Quota(); | 1728 var o = new api.Quota(); |
1729 buildCounterQuota++; | 1729 buildCounterQuota++; |
1730 if (buildCounterQuota < 3) { | 1730 if (buildCounterQuota < 3) { |
1731 o.limits = buildUnnamed1769(); | 1731 o.limits = buildUnnamed1801(); |
1732 o.metricRules = buildUnnamed1770(); | 1732 o.metricRules = buildUnnamed1802(); |
1733 } | 1733 } |
1734 buildCounterQuota--; | 1734 buildCounterQuota--; |
1735 return o; | 1735 return o; |
1736 } | 1736 } |
1737 | 1737 |
1738 checkQuota(api.Quota o) { | 1738 checkQuota(api.Quota o) { |
1739 buildCounterQuota++; | 1739 buildCounterQuota++; |
1740 if (buildCounterQuota < 3) { | 1740 if (buildCounterQuota < 3) { |
1741 checkUnnamed1769(o.limits); | 1741 checkUnnamed1801(o.limits); |
1742 checkUnnamed1770(o.metricRules); | 1742 checkUnnamed1802(o.metricRules); |
1743 } | 1743 } |
1744 buildCounterQuota--; | 1744 buildCounterQuota--; |
1745 } | 1745 } |
1746 | 1746 |
1747 buildUnnamed1771() { | 1747 buildUnnamed1803() { |
1748 var o = new core.Map<core.String, core.String>(); | 1748 var o = new core.Map<core.String, core.String>(); |
1749 o["x"] = "foo"; | 1749 o["x"] = "foo"; |
1750 o["y"] = "foo"; | 1750 o["y"] = "foo"; |
1751 return o; | 1751 return o; |
1752 } | 1752 } |
1753 | 1753 |
1754 checkUnnamed1771(core.Map<core.String, core.String> o) { | 1754 checkUnnamed1803(core.Map<core.String, core.String> o) { |
1755 unittest.expect(o, unittest.hasLength(2)); | 1755 unittest.expect(o, unittest.hasLength(2)); |
1756 unittest.expect(o["x"], unittest.equals('foo')); | 1756 unittest.expect(o["x"], unittest.equals('foo')); |
1757 unittest.expect(o["y"], unittest.equals('foo')); | 1757 unittest.expect(o["y"], unittest.equals('foo')); |
1758 } | 1758 } |
1759 | 1759 |
1760 core.int buildCounterQuotaLimit = 0; | 1760 core.int buildCounterQuotaLimit = 0; |
1761 buildQuotaLimit() { | 1761 buildQuotaLimit() { |
1762 var o = new api.QuotaLimit(); | 1762 var o = new api.QuotaLimit(); |
1763 buildCounterQuotaLimit++; | 1763 buildCounterQuotaLimit++; |
1764 if (buildCounterQuotaLimit < 3) { | 1764 if (buildCounterQuotaLimit < 3) { |
1765 o.defaultLimit = "foo"; | 1765 o.defaultLimit = "foo"; |
1766 o.description = "foo"; | 1766 o.description = "foo"; |
1767 o.displayName = "foo"; | 1767 o.displayName = "foo"; |
1768 o.duration = "foo"; | 1768 o.duration = "foo"; |
1769 o.freeTier = "foo"; | 1769 o.freeTier = "foo"; |
1770 o.maxLimit = "foo"; | 1770 o.maxLimit = "foo"; |
1771 o.metric = "foo"; | 1771 o.metric = "foo"; |
1772 o.name = "foo"; | 1772 o.name = "foo"; |
1773 o.unit = "foo"; | 1773 o.unit = "foo"; |
1774 o.values = buildUnnamed1771(); | 1774 o.values = buildUnnamed1803(); |
1775 } | 1775 } |
1776 buildCounterQuotaLimit--; | 1776 buildCounterQuotaLimit--; |
1777 return o; | 1777 return o; |
1778 } | 1778 } |
1779 | 1779 |
1780 checkQuotaLimit(api.QuotaLimit o) { | 1780 checkQuotaLimit(api.QuotaLimit o) { |
1781 buildCounterQuotaLimit++; | 1781 buildCounterQuotaLimit++; |
1782 if (buildCounterQuotaLimit < 3) { | 1782 if (buildCounterQuotaLimit < 3) { |
1783 unittest.expect(o.defaultLimit, unittest.equals('foo')); | 1783 unittest.expect(o.defaultLimit, unittest.equals('foo')); |
1784 unittest.expect(o.description, unittest.equals('foo')); | 1784 unittest.expect(o.description, unittest.equals('foo')); |
1785 unittest.expect(o.displayName, unittest.equals('foo')); | 1785 unittest.expect(o.displayName, unittest.equals('foo')); |
1786 unittest.expect(o.duration, unittest.equals('foo')); | 1786 unittest.expect(o.duration, unittest.equals('foo')); |
1787 unittest.expect(o.freeTier, unittest.equals('foo')); | 1787 unittest.expect(o.freeTier, unittest.equals('foo')); |
1788 unittest.expect(o.maxLimit, unittest.equals('foo')); | 1788 unittest.expect(o.maxLimit, unittest.equals('foo')); |
1789 unittest.expect(o.metric, unittest.equals('foo')); | 1789 unittest.expect(o.metric, unittest.equals('foo')); |
1790 unittest.expect(o.name, unittest.equals('foo')); | 1790 unittest.expect(o.name, unittest.equals('foo')); |
1791 unittest.expect(o.unit, unittest.equals('foo')); | 1791 unittest.expect(o.unit, unittest.equals('foo')); |
1792 checkUnnamed1771(o.values); | 1792 checkUnnamed1803(o.values); |
1793 } | 1793 } |
1794 buildCounterQuotaLimit--; | 1794 buildCounterQuotaLimit--; |
1795 } | 1795 } |
1796 | 1796 |
1797 buildUnnamed1772() { | 1797 buildUnnamed1804() { |
1798 var o = new core.List<api.PublishedService>(); | 1798 var o = new core.List<api.PublishedService>(); |
1799 o.add(buildPublishedService()); | 1799 o.add(buildPublishedService()); |
1800 o.add(buildPublishedService()); | 1800 o.add(buildPublishedService()); |
1801 return o; | 1801 return o; |
1802 } | 1802 } |
1803 | 1803 |
1804 checkUnnamed1772(core.List<api.PublishedService> o) { | 1804 checkUnnamed1804(core.List<api.PublishedService> o) { |
1805 unittest.expect(o, unittest.hasLength(2)); | 1805 unittest.expect(o, unittest.hasLength(2)); |
1806 checkPublishedService(o[0]); | 1806 checkPublishedService(o[0]); |
1807 checkPublishedService(o[1]); | 1807 checkPublishedService(o[1]); |
1808 } | 1808 } |
1809 | 1809 |
1810 core.int buildCounterSearchServicesResponse = 0; | 1810 core.int buildCounterSearchServicesResponse = 0; |
1811 buildSearchServicesResponse() { | 1811 buildSearchServicesResponse() { |
1812 var o = new api.SearchServicesResponse(); | 1812 var o = new api.SearchServicesResponse(); |
1813 buildCounterSearchServicesResponse++; | 1813 buildCounterSearchServicesResponse++; |
1814 if (buildCounterSearchServicesResponse < 3) { | 1814 if (buildCounterSearchServicesResponse < 3) { |
1815 o.nextPageToken = "foo"; | 1815 o.nextPageToken = "foo"; |
1816 o.services = buildUnnamed1772(); | 1816 o.services = buildUnnamed1804(); |
1817 } | 1817 } |
1818 buildCounterSearchServicesResponse--; | 1818 buildCounterSearchServicesResponse--; |
1819 return o; | 1819 return o; |
1820 } | 1820 } |
1821 | 1821 |
1822 checkSearchServicesResponse(api.SearchServicesResponse o) { | 1822 checkSearchServicesResponse(api.SearchServicesResponse o) { |
1823 buildCounterSearchServicesResponse++; | 1823 buildCounterSearchServicesResponse++; |
1824 if (buildCounterSearchServicesResponse < 3) { | 1824 if (buildCounterSearchServicesResponse < 3) { |
1825 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1825 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1826 checkUnnamed1772(o.services); | 1826 checkUnnamed1804(o.services); |
1827 } | 1827 } |
1828 buildCounterSearchServicesResponse--; | 1828 buildCounterSearchServicesResponse--; |
1829 } | 1829 } |
1830 | 1830 |
1831 buildUnnamed1773() { | 1831 buildUnnamed1805() { |
1832 var o = new core.List<api.Api>(); | 1832 var o = new core.List<api.Api>(); |
1833 o.add(buildApi()); | 1833 o.add(buildApi()); |
1834 o.add(buildApi()); | 1834 o.add(buildApi()); |
1835 return o; | 1835 return o; |
1836 } | 1836 } |
1837 | 1837 |
1838 checkUnnamed1773(core.List<api.Api> o) { | 1838 checkUnnamed1805(core.List<api.Api> o) { |
1839 unittest.expect(o, unittest.hasLength(2)); | 1839 unittest.expect(o, unittest.hasLength(2)); |
1840 checkApi(o[0]); | 1840 checkApi(o[0]); |
1841 checkApi(o[1]); | 1841 checkApi(o[1]); |
1842 } | 1842 } |
1843 | 1843 |
1844 buildUnnamed1774() { | 1844 buildUnnamed1806() { |
1845 var o = new core.List<api.Endpoint>(); | 1845 var o = new core.List<api.Endpoint>(); |
1846 o.add(buildEndpoint()); | 1846 o.add(buildEndpoint()); |
1847 o.add(buildEndpoint()); | 1847 o.add(buildEndpoint()); |
1848 return o; | 1848 return o; |
1849 } | 1849 } |
1850 | 1850 |
1851 checkUnnamed1774(core.List<api.Endpoint> o) { | 1851 checkUnnamed1806(core.List<api.Endpoint> o) { |
1852 unittest.expect(o, unittest.hasLength(2)); | 1852 unittest.expect(o, unittest.hasLength(2)); |
1853 checkEndpoint(o[0]); | 1853 checkEndpoint(o[0]); |
1854 checkEndpoint(o[1]); | 1854 checkEndpoint(o[1]); |
1855 } | 1855 } |
1856 | 1856 |
1857 buildUnnamed1775() { | 1857 buildUnnamed1807() { |
1858 var o = new core.List<api.Enum>(); | 1858 var o = new core.List<api.Enum>(); |
1859 o.add(buildEnum()); | 1859 o.add(buildEnum()); |
1860 o.add(buildEnum()); | 1860 o.add(buildEnum()); |
1861 return o; | 1861 return o; |
1862 } | 1862 } |
1863 | 1863 |
1864 checkUnnamed1775(core.List<api.Enum> o) { | 1864 checkUnnamed1807(core.List<api.Enum> o) { |
1865 unittest.expect(o, unittest.hasLength(2)); | 1865 unittest.expect(o, unittest.hasLength(2)); |
1866 checkEnum(o[0]); | 1866 checkEnum(o[0]); |
1867 checkEnum(o[1]); | 1867 checkEnum(o[1]); |
1868 } | 1868 } |
1869 | 1869 |
1870 buildUnnamed1776() { | 1870 buildUnnamed1808() { |
1871 var o = new core.List<api.LogDescriptor>(); | 1871 var o = new core.List<api.LogDescriptor>(); |
1872 o.add(buildLogDescriptor()); | 1872 o.add(buildLogDescriptor()); |
1873 o.add(buildLogDescriptor()); | 1873 o.add(buildLogDescriptor()); |
1874 return o; | 1874 return o; |
1875 } | 1875 } |
1876 | 1876 |
1877 checkUnnamed1776(core.List<api.LogDescriptor> o) { | 1877 checkUnnamed1808(core.List<api.LogDescriptor> o) { |
1878 unittest.expect(o, unittest.hasLength(2)); | 1878 unittest.expect(o, unittest.hasLength(2)); |
1879 checkLogDescriptor(o[0]); | 1879 checkLogDescriptor(o[0]); |
1880 checkLogDescriptor(o[1]); | 1880 checkLogDescriptor(o[1]); |
1881 } | 1881 } |
1882 | 1882 |
1883 buildUnnamed1777() { | 1883 buildUnnamed1809() { |
1884 var o = new core.List<api.MetricDescriptor>(); | 1884 var o = new core.List<api.MetricDescriptor>(); |
1885 o.add(buildMetricDescriptor()); | 1885 o.add(buildMetricDescriptor()); |
1886 o.add(buildMetricDescriptor()); | 1886 o.add(buildMetricDescriptor()); |
1887 return o; | 1887 return o; |
1888 } | 1888 } |
1889 | 1889 |
1890 checkUnnamed1777(core.List<api.MetricDescriptor> o) { | 1890 checkUnnamed1809(core.List<api.MetricDescriptor> o) { |
1891 unittest.expect(o, unittest.hasLength(2)); | 1891 unittest.expect(o, unittest.hasLength(2)); |
1892 checkMetricDescriptor(o[0]); | 1892 checkMetricDescriptor(o[0]); |
1893 checkMetricDescriptor(o[1]); | 1893 checkMetricDescriptor(o[1]); |
1894 } | 1894 } |
1895 | 1895 |
1896 buildUnnamed1778() { | 1896 buildUnnamed1810() { |
1897 var o = new core.List<api.MonitoredResourceDescriptor>(); | 1897 var o = new core.List<api.MonitoredResourceDescriptor>(); |
1898 o.add(buildMonitoredResourceDescriptor()); | 1898 o.add(buildMonitoredResourceDescriptor()); |
1899 o.add(buildMonitoredResourceDescriptor()); | 1899 o.add(buildMonitoredResourceDescriptor()); |
1900 return o; | 1900 return o; |
1901 } | 1901 } |
1902 | 1902 |
1903 checkUnnamed1778(core.List<api.MonitoredResourceDescriptor> o) { | 1903 checkUnnamed1810(core.List<api.MonitoredResourceDescriptor> o) { |
1904 unittest.expect(o, unittest.hasLength(2)); | 1904 unittest.expect(o, unittest.hasLength(2)); |
1905 checkMonitoredResourceDescriptor(o[0]); | 1905 checkMonitoredResourceDescriptor(o[0]); |
1906 checkMonitoredResourceDescriptor(o[1]); | 1906 checkMonitoredResourceDescriptor(o[1]); |
1907 } | 1907 } |
1908 | 1908 |
1909 buildUnnamed1779() { | 1909 buildUnnamed1811() { |
1910 var o = new core.List<api.Type>(); | 1910 var o = new core.List<api.Type>(); |
1911 o.add(buildType()); | 1911 o.add(buildType()); |
1912 o.add(buildType()); | 1912 o.add(buildType()); |
1913 return o; | 1913 return o; |
1914 } | 1914 } |
1915 | 1915 |
1916 checkUnnamed1779(core.List<api.Type> o) { | 1916 checkUnnamed1811(core.List<api.Type> o) { |
1917 unittest.expect(o, unittest.hasLength(2)); | 1917 unittest.expect(o, unittest.hasLength(2)); |
1918 checkType(o[0]); | 1918 checkType(o[0]); |
1919 checkType(o[1]); | 1919 checkType(o[1]); |
1920 } | 1920 } |
1921 | 1921 |
1922 buildUnnamed1780() { | 1922 buildUnnamed1812() { |
1923 var o = new core.List<api.Type>(); | 1923 var o = new core.List<api.Type>(); |
1924 o.add(buildType()); | 1924 o.add(buildType()); |
1925 o.add(buildType()); | 1925 o.add(buildType()); |
1926 return o; | 1926 return o; |
1927 } | 1927 } |
1928 | 1928 |
1929 checkUnnamed1780(core.List<api.Type> o) { | 1929 checkUnnamed1812(core.List<api.Type> o) { |
1930 unittest.expect(o, unittest.hasLength(2)); | 1930 unittest.expect(o, unittest.hasLength(2)); |
1931 checkType(o[0]); | 1931 checkType(o[0]); |
1932 checkType(o[1]); | 1932 checkType(o[1]); |
1933 } | 1933 } |
1934 | 1934 |
1935 core.int buildCounterService = 0; | 1935 core.int buildCounterService = 0; |
1936 buildService() { | 1936 buildService() { |
1937 var o = new api.Service(); | 1937 var o = new api.Service(); |
1938 buildCounterService++; | 1938 buildCounterService++; |
1939 if (buildCounterService < 3) { | 1939 if (buildCounterService < 3) { |
1940 o.apis = buildUnnamed1773(); | 1940 o.apis = buildUnnamed1805(); |
1941 o.authentication = buildAuthentication(); | 1941 o.authentication = buildAuthentication(); |
1942 o.backend = buildBackend(); | 1942 o.backend = buildBackend(); |
1943 o.configVersion = 42; | 1943 o.configVersion = 42; |
1944 o.context = buildContext(); | 1944 o.context = buildContext(); |
1945 o.control = buildControl(); | 1945 o.control = buildControl(); |
1946 o.customError = buildCustomError(); | 1946 o.customError = buildCustomError(); |
1947 o.documentation = buildDocumentation(); | 1947 o.documentation = buildDocumentation(); |
1948 o.endpoints = buildUnnamed1774(); | 1948 o.endpoints = buildUnnamed1806(); |
1949 o.enums = buildUnnamed1775(); | 1949 o.enums = buildUnnamed1807(); |
1950 o.experimental = buildExperimental(); | 1950 o.experimental = buildExperimental(); |
1951 o.http = buildHttp(); | 1951 o.http = buildHttp(); |
1952 o.id = "foo"; | 1952 o.id = "foo"; |
1953 o.logging = buildLogging(); | 1953 o.logging = buildLogging(); |
1954 o.logs = buildUnnamed1776(); | 1954 o.logs = buildUnnamed1808(); |
1955 o.metrics = buildUnnamed1777(); | 1955 o.metrics = buildUnnamed1809(); |
1956 o.monitoredResources = buildUnnamed1778(); | 1956 o.monitoredResources = buildUnnamed1810(); |
1957 o.monitoring = buildMonitoring(); | 1957 o.monitoring = buildMonitoring(); |
1958 o.name = "foo"; | 1958 o.name = "foo"; |
1959 o.producerProjectId = "foo"; | 1959 o.producerProjectId = "foo"; |
1960 o.quota = buildQuota(); | 1960 o.quota = buildQuota(); |
1961 o.sourceInfo = buildSourceInfo(); | 1961 o.sourceInfo = buildSourceInfo(); |
1962 o.systemParameters = buildSystemParameters(); | 1962 o.systemParameters = buildSystemParameters(); |
1963 o.systemTypes = buildUnnamed1779(); | 1963 o.systemTypes = buildUnnamed1811(); |
1964 o.title = "foo"; | 1964 o.title = "foo"; |
1965 o.types = buildUnnamed1780(); | 1965 o.types = buildUnnamed1812(); |
1966 o.usage = buildUsage(); | 1966 o.usage = buildUsage(); |
1967 o.visibility = buildVisibility(); | 1967 o.visibility = buildVisibility(); |
1968 } | 1968 } |
1969 buildCounterService--; | 1969 buildCounterService--; |
1970 return o; | 1970 return o; |
1971 } | 1971 } |
1972 | 1972 |
1973 checkService(api.Service o) { | 1973 checkService(api.Service o) { |
1974 buildCounterService++; | 1974 buildCounterService++; |
1975 if (buildCounterService < 3) { | 1975 if (buildCounterService < 3) { |
1976 checkUnnamed1773(o.apis); | 1976 checkUnnamed1805(o.apis); |
1977 checkAuthentication(o.authentication); | 1977 checkAuthentication(o.authentication); |
1978 checkBackend(o.backend); | 1978 checkBackend(o.backend); |
1979 unittest.expect(o.configVersion, unittest.equals(42)); | 1979 unittest.expect(o.configVersion, unittest.equals(42)); |
1980 checkContext(o.context); | 1980 checkContext(o.context); |
1981 checkControl(o.control); | 1981 checkControl(o.control); |
1982 checkCustomError(o.customError); | 1982 checkCustomError(o.customError); |
1983 checkDocumentation(o.documentation); | 1983 checkDocumentation(o.documentation); |
1984 checkUnnamed1774(o.endpoints); | 1984 checkUnnamed1806(o.endpoints); |
1985 checkUnnamed1775(o.enums); | 1985 checkUnnamed1807(o.enums); |
1986 checkExperimental(o.experimental); | 1986 checkExperimental(o.experimental); |
1987 checkHttp(o.http); | 1987 checkHttp(o.http); |
1988 unittest.expect(o.id, unittest.equals('foo')); | 1988 unittest.expect(o.id, unittest.equals('foo')); |
1989 checkLogging(o.logging); | 1989 checkLogging(o.logging); |
1990 checkUnnamed1776(o.logs); | 1990 checkUnnamed1808(o.logs); |
1991 checkUnnamed1777(o.metrics); | 1991 checkUnnamed1809(o.metrics); |
1992 checkUnnamed1778(o.monitoredResources); | 1992 checkUnnamed1810(o.monitoredResources); |
1993 checkMonitoring(o.monitoring); | 1993 checkMonitoring(o.monitoring); |
1994 unittest.expect(o.name, unittest.equals('foo')); | 1994 unittest.expect(o.name, unittest.equals('foo')); |
1995 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 1995 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
1996 checkQuota(o.quota); | 1996 checkQuota(o.quota); |
1997 checkSourceInfo(o.sourceInfo); | 1997 checkSourceInfo(o.sourceInfo); |
1998 checkSystemParameters(o.systemParameters); | 1998 checkSystemParameters(o.systemParameters); |
1999 checkUnnamed1779(o.systemTypes); | 1999 checkUnnamed1811(o.systemTypes); |
2000 unittest.expect(o.title, unittest.equals('foo')); | 2000 unittest.expect(o.title, unittest.equals('foo')); |
2001 checkUnnamed1780(o.types); | 2001 checkUnnamed1812(o.types); |
2002 checkUsage(o.usage); | 2002 checkUsage(o.usage); |
2003 checkVisibility(o.visibility); | 2003 checkVisibility(o.visibility); |
2004 } | 2004 } |
2005 buildCounterService--; | 2005 buildCounterService--; |
2006 } | 2006 } |
2007 | 2007 |
2008 core.int buildCounterSourceContext = 0; | 2008 core.int buildCounterSourceContext = 0; |
2009 buildSourceContext() { | 2009 buildSourceContext() { |
2010 var o = new api.SourceContext(); | 2010 var o = new api.SourceContext(); |
2011 buildCounterSourceContext++; | 2011 buildCounterSourceContext++; |
2012 if (buildCounterSourceContext < 3) { | 2012 if (buildCounterSourceContext < 3) { |
2013 o.fileName = "foo"; | 2013 o.fileName = "foo"; |
2014 } | 2014 } |
2015 buildCounterSourceContext--; | 2015 buildCounterSourceContext--; |
2016 return o; | 2016 return o; |
2017 } | 2017 } |
2018 | 2018 |
2019 checkSourceContext(api.SourceContext o) { | 2019 checkSourceContext(api.SourceContext o) { |
2020 buildCounterSourceContext++; | 2020 buildCounterSourceContext++; |
2021 if (buildCounterSourceContext < 3) { | 2021 if (buildCounterSourceContext < 3) { |
2022 unittest.expect(o.fileName, unittest.equals('foo')); | 2022 unittest.expect(o.fileName, unittest.equals('foo')); |
2023 } | 2023 } |
2024 buildCounterSourceContext--; | 2024 buildCounterSourceContext--; |
2025 } | 2025 } |
2026 | 2026 |
2027 buildUnnamed1781() { | 2027 buildUnnamed1813() { |
2028 var o = new core.Map<core.String, core.Object>(); | 2028 var o = new core.Map<core.String, core.Object>(); |
2029 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2029 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2030 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2030 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2031 return o; | 2031 return o; |
2032 } | 2032 } |
2033 | 2033 |
2034 checkUnnamed1781(core.Map<core.String, core.Object> o) { | 2034 checkUnnamed1813(core.Map<core.String, core.Object> o) { |
2035 unittest.expect(o, unittest.hasLength(2)); | 2035 unittest.expect(o, unittest.hasLength(2)); |
2036 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 2036 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
2037 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 2037 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
2038 } | 2038 } |
2039 | 2039 |
2040 buildUnnamed1782() { | 2040 buildUnnamed1814() { |
2041 var o = new core.List<core.Map<core.String, core.Object>>(); | 2041 var o = new core.List<core.Map<core.String, core.Object>>(); |
2042 o.add(buildUnnamed1781()); | 2042 o.add(buildUnnamed1813()); |
2043 o.add(buildUnnamed1781()); | 2043 o.add(buildUnnamed1813()); |
2044 return o; | 2044 return o; |
2045 } | 2045 } |
2046 | 2046 |
2047 checkUnnamed1782(core.List<core.Map<core.String, core.Object>> o) { | 2047 checkUnnamed1814(core.List<core.Map<core.String, core.Object>> o) { |
2048 unittest.expect(o, unittest.hasLength(2)); | 2048 unittest.expect(o, unittest.hasLength(2)); |
2049 checkUnnamed1781(o[0]); | 2049 checkUnnamed1813(o[0]); |
2050 checkUnnamed1781(o[1]); | 2050 checkUnnamed1813(o[1]); |
2051 } | 2051 } |
2052 | 2052 |
2053 core.int buildCounterSourceInfo = 0; | 2053 core.int buildCounterSourceInfo = 0; |
2054 buildSourceInfo() { | 2054 buildSourceInfo() { |
2055 var o = new api.SourceInfo(); | 2055 var o = new api.SourceInfo(); |
2056 buildCounterSourceInfo++; | 2056 buildCounterSourceInfo++; |
2057 if (buildCounterSourceInfo < 3) { | 2057 if (buildCounterSourceInfo < 3) { |
2058 o.sourceFiles = buildUnnamed1782(); | 2058 o.sourceFiles = buildUnnamed1814(); |
2059 } | 2059 } |
2060 buildCounterSourceInfo--; | 2060 buildCounterSourceInfo--; |
2061 return o; | 2061 return o; |
2062 } | 2062 } |
2063 | 2063 |
2064 checkSourceInfo(api.SourceInfo o) { | 2064 checkSourceInfo(api.SourceInfo o) { |
2065 buildCounterSourceInfo++; | 2065 buildCounterSourceInfo++; |
2066 if (buildCounterSourceInfo < 3) { | 2066 if (buildCounterSourceInfo < 3) { |
2067 checkUnnamed1782(o.sourceFiles); | 2067 checkUnnamed1814(o.sourceFiles); |
2068 } | 2068 } |
2069 buildCounterSourceInfo--; | 2069 buildCounterSourceInfo--; |
2070 } | 2070 } |
2071 | 2071 |
2072 buildUnnamed1783() { | 2072 buildUnnamed1815() { |
2073 var o = new core.Map<core.String, core.Object>(); | 2073 var o = new core.Map<core.String, core.Object>(); |
2074 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2074 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2075 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2075 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2076 return o; | 2076 return o; |
2077 } | 2077 } |
2078 | 2078 |
2079 checkUnnamed1783(core.Map<core.String, core.Object> o) { | 2079 checkUnnamed1815(core.Map<core.String, core.Object> o) { |
2080 unittest.expect(o, unittest.hasLength(2)); | 2080 unittest.expect(o, unittest.hasLength(2)); |
2081 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); | 2081 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); |
2082 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); | 2082 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); |
2083 } | 2083 } |
2084 | 2084 |
2085 buildUnnamed1784() { | 2085 buildUnnamed1816() { |
2086 var o = new core.List<core.Map<core.String, core.Object>>(); | 2086 var o = new core.List<core.Map<core.String, core.Object>>(); |
2087 o.add(buildUnnamed1783()); | 2087 o.add(buildUnnamed1815()); |
2088 o.add(buildUnnamed1783()); | 2088 o.add(buildUnnamed1815()); |
2089 return o; | 2089 return o; |
2090 } | 2090 } |
2091 | 2091 |
2092 checkUnnamed1784(core.List<core.Map<core.String, core.Object>> o) { | 2092 checkUnnamed1816(core.List<core.Map<core.String, core.Object>> o) { |
2093 unittest.expect(o, unittest.hasLength(2)); | 2093 unittest.expect(o, unittest.hasLength(2)); |
2094 checkUnnamed1783(o[0]); | 2094 checkUnnamed1815(o[0]); |
2095 checkUnnamed1783(o[1]); | 2095 checkUnnamed1815(o[1]); |
2096 } | 2096 } |
2097 | 2097 |
2098 core.int buildCounterStatus = 0; | 2098 core.int buildCounterStatus = 0; |
2099 buildStatus() { | 2099 buildStatus() { |
2100 var o = new api.Status(); | 2100 var o = new api.Status(); |
2101 buildCounterStatus++; | 2101 buildCounterStatus++; |
2102 if (buildCounterStatus < 3) { | 2102 if (buildCounterStatus < 3) { |
2103 o.code = 42; | 2103 o.code = 42; |
2104 o.details = buildUnnamed1784(); | 2104 o.details = buildUnnamed1816(); |
2105 o.message = "foo"; | 2105 o.message = "foo"; |
2106 } | 2106 } |
2107 buildCounterStatus--; | 2107 buildCounterStatus--; |
2108 return o; | 2108 return o; |
2109 } | 2109 } |
2110 | 2110 |
2111 checkStatus(api.Status o) { | 2111 checkStatus(api.Status o) { |
2112 buildCounterStatus++; | 2112 buildCounterStatus++; |
2113 if (buildCounterStatus < 3) { | 2113 if (buildCounterStatus < 3) { |
2114 unittest.expect(o.code, unittest.equals(42)); | 2114 unittest.expect(o.code, unittest.equals(42)); |
2115 checkUnnamed1784(o.details); | 2115 checkUnnamed1816(o.details); |
2116 unittest.expect(o.message, unittest.equals('foo')); | 2116 unittest.expect(o.message, unittest.equals('foo')); |
2117 } | 2117 } |
2118 buildCounterStatus--; | 2118 buildCounterStatus--; |
2119 } | 2119 } |
2120 | 2120 |
2121 core.int buildCounterStep = 0; | 2121 core.int buildCounterStep = 0; |
2122 buildStep() { | 2122 buildStep() { |
2123 var o = new api.Step(); | 2123 var o = new api.Step(); |
2124 buildCounterStep++; | 2124 buildCounterStep++; |
2125 if (buildCounterStep < 3) { | 2125 if (buildCounterStep < 3) { |
(...skipping 29 matching lines...) Expand all Loading... |
2155 checkSystemParameter(api.SystemParameter o) { | 2155 checkSystemParameter(api.SystemParameter o) { |
2156 buildCounterSystemParameter++; | 2156 buildCounterSystemParameter++; |
2157 if (buildCounterSystemParameter < 3) { | 2157 if (buildCounterSystemParameter < 3) { |
2158 unittest.expect(o.httpHeader, unittest.equals('foo')); | 2158 unittest.expect(o.httpHeader, unittest.equals('foo')); |
2159 unittest.expect(o.name, unittest.equals('foo')); | 2159 unittest.expect(o.name, unittest.equals('foo')); |
2160 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 2160 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
2161 } | 2161 } |
2162 buildCounterSystemParameter--; | 2162 buildCounterSystemParameter--; |
2163 } | 2163 } |
2164 | 2164 |
2165 buildUnnamed1785() { | 2165 buildUnnamed1817() { |
2166 var o = new core.List<api.SystemParameter>(); | 2166 var o = new core.List<api.SystemParameter>(); |
2167 o.add(buildSystemParameter()); | 2167 o.add(buildSystemParameter()); |
2168 o.add(buildSystemParameter()); | 2168 o.add(buildSystemParameter()); |
2169 return o; | 2169 return o; |
2170 } | 2170 } |
2171 | 2171 |
2172 checkUnnamed1785(core.List<api.SystemParameter> o) { | 2172 checkUnnamed1817(core.List<api.SystemParameter> o) { |
2173 unittest.expect(o, unittest.hasLength(2)); | 2173 unittest.expect(o, unittest.hasLength(2)); |
2174 checkSystemParameter(o[0]); | 2174 checkSystemParameter(o[0]); |
2175 checkSystemParameter(o[1]); | 2175 checkSystemParameter(o[1]); |
2176 } | 2176 } |
2177 | 2177 |
2178 core.int buildCounterSystemParameterRule = 0; | 2178 core.int buildCounterSystemParameterRule = 0; |
2179 buildSystemParameterRule() { | 2179 buildSystemParameterRule() { |
2180 var o = new api.SystemParameterRule(); | 2180 var o = new api.SystemParameterRule(); |
2181 buildCounterSystemParameterRule++; | 2181 buildCounterSystemParameterRule++; |
2182 if (buildCounterSystemParameterRule < 3) { | 2182 if (buildCounterSystemParameterRule < 3) { |
2183 o.parameters = buildUnnamed1785(); | 2183 o.parameters = buildUnnamed1817(); |
2184 o.selector = "foo"; | 2184 o.selector = "foo"; |
2185 } | 2185 } |
2186 buildCounterSystemParameterRule--; | 2186 buildCounterSystemParameterRule--; |
2187 return o; | 2187 return o; |
2188 } | 2188 } |
2189 | 2189 |
2190 checkSystemParameterRule(api.SystemParameterRule o) { | 2190 checkSystemParameterRule(api.SystemParameterRule o) { |
2191 buildCounterSystemParameterRule++; | 2191 buildCounterSystemParameterRule++; |
2192 if (buildCounterSystemParameterRule < 3) { | 2192 if (buildCounterSystemParameterRule < 3) { |
2193 checkUnnamed1785(o.parameters); | 2193 checkUnnamed1817(o.parameters); |
2194 unittest.expect(o.selector, unittest.equals('foo')); | 2194 unittest.expect(o.selector, unittest.equals('foo')); |
2195 } | 2195 } |
2196 buildCounterSystemParameterRule--; | 2196 buildCounterSystemParameterRule--; |
2197 } | 2197 } |
2198 | 2198 |
2199 buildUnnamed1786() { | 2199 buildUnnamed1818() { |
2200 var o = new core.List<api.SystemParameterRule>(); | 2200 var o = new core.List<api.SystemParameterRule>(); |
2201 o.add(buildSystemParameterRule()); | 2201 o.add(buildSystemParameterRule()); |
2202 o.add(buildSystemParameterRule()); | 2202 o.add(buildSystemParameterRule()); |
2203 return o; | 2203 return o; |
2204 } | 2204 } |
2205 | 2205 |
2206 checkUnnamed1786(core.List<api.SystemParameterRule> o) { | 2206 checkUnnamed1818(core.List<api.SystemParameterRule> o) { |
2207 unittest.expect(o, unittest.hasLength(2)); | 2207 unittest.expect(o, unittest.hasLength(2)); |
2208 checkSystemParameterRule(o[0]); | 2208 checkSystemParameterRule(o[0]); |
2209 checkSystemParameterRule(o[1]); | 2209 checkSystemParameterRule(o[1]); |
2210 } | 2210 } |
2211 | 2211 |
2212 core.int buildCounterSystemParameters = 0; | 2212 core.int buildCounterSystemParameters = 0; |
2213 buildSystemParameters() { | 2213 buildSystemParameters() { |
2214 var o = new api.SystemParameters(); | 2214 var o = new api.SystemParameters(); |
2215 buildCounterSystemParameters++; | 2215 buildCounterSystemParameters++; |
2216 if (buildCounterSystemParameters < 3) { | 2216 if (buildCounterSystemParameters < 3) { |
2217 o.rules = buildUnnamed1786(); | 2217 o.rules = buildUnnamed1818(); |
2218 } | 2218 } |
2219 buildCounterSystemParameters--; | 2219 buildCounterSystemParameters--; |
2220 return o; | 2220 return o; |
2221 } | 2221 } |
2222 | 2222 |
2223 checkSystemParameters(api.SystemParameters o) { | 2223 checkSystemParameters(api.SystemParameters o) { |
2224 buildCounterSystemParameters++; | 2224 buildCounterSystemParameters++; |
2225 if (buildCounterSystemParameters < 3) { | 2225 if (buildCounterSystemParameters < 3) { |
2226 checkUnnamed1786(o.rules); | 2226 checkUnnamed1818(o.rules); |
2227 } | 2227 } |
2228 buildCounterSystemParameters--; | 2228 buildCounterSystemParameters--; |
2229 } | 2229 } |
2230 | 2230 |
2231 buildUnnamed1787() { | 2231 buildUnnamed1819() { |
2232 var o = new core.List<api.Field>(); | 2232 var o = new core.List<api.Field>(); |
2233 o.add(buildField()); | 2233 o.add(buildField()); |
2234 o.add(buildField()); | 2234 o.add(buildField()); |
2235 return o; | 2235 return o; |
2236 } | 2236 } |
2237 | 2237 |
2238 checkUnnamed1787(core.List<api.Field> o) { | 2238 checkUnnamed1819(core.List<api.Field> o) { |
2239 unittest.expect(o, unittest.hasLength(2)); | 2239 unittest.expect(o, unittest.hasLength(2)); |
2240 checkField(o[0]); | 2240 checkField(o[0]); |
2241 checkField(o[1]); | 2241 checkField(o[1]); |
2242 } | 2242 } |
2243 | 2243 |
2244 buildUnnamed1788() { | 2244 buildUnnamed1820() { |
2245 var o = new core.List<core.String>(); | 2245 var o = new core.List<core.String>(); |
2246 o.add("foo"); | 2246 o.add("foo"); |
2247 o.add("foo"); | 2247 o.add("foo"); |
2248 return o; | 2248 return o; |
2249 } | 2249 } |
2250 | 2250 |
2251 checkUnnamed1788(core.List<core.String> o) { | 2251 checkUnnamed1820(core.List<core.String> o) { |
2252 unittest.expect(o, unittest.hasLength(2)); | 2252 unittest.expect(o, unittest.hasLength(2)); |
2253 unittest.expect(o[0], unittest.equals('foo')); | 2253 unittest.expect(o[0], unittest.equals('foo')); |
2254 unittest.expect(o[1], unittest.equals('foo')); | 2254 unittest.expect(o[1], unittest.equals('foo')); |
2255 } | 2255 } |
2256 | 2256 |
2257 buildUnnamed1789() { | 2257 buildUnnamed1821() { |
2258 var o = new core.List<api.Option>(); | 2258 var o = new core.List<api.Option>(); |
2259 o.add(buildOption()); | 2259 o.add(buildOption()); |
2260 o.add(buildOption()); | 2260 o.add(buildOption()); |
2261 return o; | 2261 return o; |
2262 } | 2262 } |
2263 | 2263 |
2264 checkUnnamed1789(core.List<api.Option> o) { | 2264 checkUnnamed1821(core.List<api.Option> o) { |
2265 unittest.expect(o, unittest.hasLength(2)); | 2265 unittest.expect(o, unittest.hasLength(2)); |
2266 checkOption(o[0]); | 2266 checkOption(o[0]); |
2267 checkOption(o[1]); | 2267 checkOption(o[1]); |
2268 } | 2268 } |
2269 | 2269 |
2270 core.int buildCounterType = 0; | 2270 core.int buildCounterType = 0; |
2271 buildType() { | 2271 buildType() { |
2272 var o = new api.Type(); | 2272 var o = new api.Type(); |
2273 buildCounterType++; | 2273 buildCounterType++; |
2274 if (buildCounterType < 3) { | 2274 if (buildCounterType < 3) { |
2275 o.fields = buildUnnamed1787(); | 2275 o.fields = buildUnnamed1819(); |
2276 o.name = "foo"; | 2276 o.name = "foo"; |
2277 o.oneofs = buildUnnamed1788(); | 2277 o.oneofs = buildUnnamed1820(); |
2278 o.options = buildUnnamed1789(); | 2278 o.options = buildUnnamed1821(); |
2279 o.sourceContext = buildSourceContext(); | 2279 o.sourceContext = buildSourceContext(); |
2280 o.syntax = "foo"; | 2280 o.syntax = "foo"; |
2281 } | 2281 } |
2282 buildCounterType--; | 2282 buildCounterType--; |
2283 return o; | 2283 return o; |
2284 } | 2284 } |
2285 | 2285 |
2286 checkType(api.Type o) { | 2286 checkType(api.Type o) { |
2287 buildCounterType++; | 2287 buildCounterType++; |
2288 if (buildCounterType < 3) { | 2288 if (buildCounterType < 3) { |
2289 checkUnnamed1787(o.fields); | 2289 checkUnnamed1819(o.fields); |
2290 unittest.expect(o.name, unittest.equals('foo')); | 2290 unittest.expect(o.name, unittest.equals('foo')); |
2291 checkUnnamed1788(o.oneofs); | 2291 checkUnnamed1820(o.oneofs); |
2292 checkUnnamed1789(o.options); | 2292 checkUnnamed1821(o.options); |
2293 checkSourceContext(o.sourceContext); | 2293 checkSourceContext(o.sourceContext); |
2294 unittest.expect(o.syntax, unittest.equals('foo')); | 2294 unittest.expect(o.syntax, unittest.equals('foo')); |
2295 } | 2295 } |
2296 buildCounterType--; | 2296 buildCounterType--; |
2297 } | 2297 } |
2298 | 2298 |
2299 buildUnnamed1790() { | 2299 buildUnnamed1822() { |
2300 var o = new core.List<core.String>(); | 2300 var o = new core.List<core.String>(); |
2301 o.add("foo"); | 2301 o.add("foo"); |
2302 o.add("foo"); | 2302 o.add("foo"); |
2303 return o; | 2303 return o; |
2304 } | 2304 } |
2305 | 2305 |
2306 checkUnnamed1790(core.List<core.String> o) { | 2306 checkUnnamed1822(core.List<core.String> o) { |
2307 unittest.expect(o, unittest.hasLength(2)); | 2307 unittest.expect(o, unittest.hasLength(2)); |
2308 unittest.expect(o[0], unittest.equals('foo')); | 2308 unittest.expect(o[0], unittest.equals('foo')); |
2309 unittest.expect(o[1], unittest.equals('foo')); | 2309 unittest.expect(o[1], unittest.equals('foo')); |
2310 } | 2310 } |
2311 | 2311 |
2312 buildUnnamed1791() { | 2312 buildUnnamed1823() { |
2313 var o = new core.List<api.UsageRule>(); | 2313 var o = new core.List<api.UsageRule>(); |
2314 o.add(buildUsageRule()); | 2314 o.add(buildUsageRule()); |
2315 o.add(buildUsageRule()); | 2315 o.add(buildUsageRule()); |
2316 return o; | 2316 return o; |
2317 } | 2317 } |
2318 | 2318 |
2319 checkUnnamed1791(core.List<api.UsageRule> o) { | 2319 checkUnnamed1823(core.List<api.UsageRule> o) { |
2320 unittest.expect(o, unittest.hasLength(2)); | 2320 unittest.expect(o, unittest.hasLength(2)); |
2321 checkUsageRule(o[0]); | 2321 checkUsageRule(o[0]); |
2322 checkUsageRule(o[1]); | 2322 checkUsageRule(o[1]); |
2323 } | 2323 } |
2324 | 2324 |
2325 core.int buildCounterUsage = 0; | 2325 core.int buildCounterUsage = 0; |
2326 buildUsage() { | 2326 buildUsage() { |
2327 var o = new api.Usage(); | 2327 var o = new api.Usage(); |
2328 buildCounterUsage++; | 2328 buildCounterUsage++; |
2329 if (buildCounterUsage < 3) { | 2329 if (buildCounterUsage < 3) { |
2330 o.producerNotificationChannel = "foo"; | 2330 o.producerNotificationChannel = "foo"; |
2331 o.requirements = buildUnnamed1790(); | 2331 o.requirements = buildUnnamed1822(); |
2332 o.rules = buildUnnamed1791(); | 2332 o.rules = buildUnnamed1823(); |
2333 } | 2333 } |
2334 buildCounterUsage--; | 2334 buildCounterUsage--; |
2335 return o; | 2335 return o; |
2336 } | 2336 } |
2337 | 2337 |
2338 checkUsage(api.Usage o) { | 2338 checkUsage(api.Usage o) { |
2339 buildCounterUsage++; | 2339 buildCounterUsage++; |
2340 if (buildCounterUsage < 3) { | 2340 if (buildCounterUsage < 3) { |
2341 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 2341 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
2342 checkUnnamed1790(o.requirements); | 2342 checkUnnamed1822(o.requirements); |
2343 checkUnnamed1791(o.rules); | 2343 checkUnnamed1823(o.rules); |
2344 } | 2344 } |
2345 buildCounterUsage--; | 2345 buildCounterUsage--; |
2346 } | 2346 } |
2347 | 2347 |
2348 core.int buildCounterUsageRule = 0; | 2348 core.int buildCounterUsageRule = 0; |
2349 buildUsageRule() { | 2349 buildUsageRule() { |
2350 var o = new api.UsageRule(); | 2350 var o = new api.UsageRule(); |
2351 buildCounterUsageRule++; | 2351 buildCounterUsageRule++; |
2352 if (buildCounterUsageRule < 3) { | 2352 if (buildCounterUsageRule < 3) { |
2353 o.allowUnregisteredCalls = true; | 2353 o.allowUnregisteredCalls = true; |
2354 o.selector = "foo"; | 2354 o.selector = "foo"; |
2355 o.skipServiceControl = true; | 2355 o.skipServiceControl = true; |
2356 } | 2356 } |
2357 buildCounterUsageRule--; | 2357 buildCounterUsageRule--; |
2358 return o; | 2358 return o; |
2359 } | 2359 } |
2360 | 2360 |
2361 checkUsageRule(api.UsageRule o) { | 2361 checkUsageRule(api.UsageRule o) { |
2362 buildCounterUsageRule++; | 2362 buildCounterUsageRule++; |
2363 if (buildCounterUsageRule < 3) { | 2363 if (buildCounterUsageRule < 3) { |
2364 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 2364 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
2365 unittest.expect(o.selector, unittest.equals('foo')); | 2365 unittest.expect(o.selector, unittest.equals('foo')); |
2366 unittest.expect(o.skipServiceControl, unittest.isTrue); | 2366 unittest.expect(o.skipServiceControl, unittest.isTrue); |
2367 } | 2367 } |
2368 buildCounterUsageRule--; | 2368 buildCounterUsageRule--; |
2369 } | 2369 } |
2370 | 2370 |
2371 buildUnnamed1792() { | 2371 buildUnnamed1824() { |
2372 var o = new core.List<api.VisibilityRule>(); | 2372 var o = new core.List<api.VisibilityRule>(); |
2373 o.add(buildVisibilityRule()); | 2373 o.add(buildVisibilityRule()); |
2374 o.add(buildVisibilityRule()); | 2374 o.add(buildVisibilityRule()); |
2375 return o; | 2375 return o; |
2376 } | 2376 } |
2377 | 2377 |
2378 checkUnnamed1792(core.List<api.VisibilityRule> o) { | 2378 checkUnnamed1824(core.List<api.VisibilityRule> o) { |
2379 unittest.expect(o, unittest.hasLength(2)); | 2379 unittest.expect(o, unittest.hasLength(2)); |
2380 checkVisibilityRule(o[0]); | 2380 checkVisibilityRule(o[0]); |
2381 checkVisibilityRule(o[1]); | 2381 checkVisibilityRule(o[1]); |
2382 } | 2382 } |
2383 | 2383 |
2384 core.int buildCounterVisibility = 0; | 2384 core.int buildCounterVisibility = 0; |
2385 buildVisibility() { | 2385 buildVisibility() { |
2386 var o = new api.Visibility(); | 2386 var o = new api.Visibility(); |
2387 buildCounterVisibility++; | 2387 buildCounterVisibility++; |
2388 if (buildCounterVisibility < 3) { | 2388 if (buildCounterVisibility < 3) { |
2389 o.rules = buildUnnamed1792(); | 2389 o.rules = buildUnnamed1824(); |
2390 } | 2390 } |
2391 buildCounterVisibility--; | 2391 buildCounterVisibility--; |
2392 return o; | 2392 return o; |
2393 } | 2393 } |
2394 | 2394 |
2395 checkVisibility(api.Visibility o) { | 2395 checkVisibility(api.Visibility o) { |
2396 buildCounterVisibility++; | 2396 buildCounterVisibility++; |
2397 if (buildCounterVisibility < 3) { | 2397 if (buildCounterVisibility < 3) { |
2398 checkUnnamed1792(o.rules); | 2398 checkUnnamed1824(o.rules); |
2399 } | 2399 } |
2400 buildCounterVisibility--; | 2400 buildCounterVisibility--; |
2401 } | 2401 } |
2402 | 2402 |
2403 core.int buildCounterVisibilityRule = 0; | 2403 core.int buildCounterVisibilityRule = 0; |
2404 buildVisibilityRule() { | 2404 buildVisibilityRule() { |
2405 var o = new api.VisibilityRule(); | 2405 var o = new api.VisibilityRule(); |
2406 buildCounterVisibilityRule++; | 2406 buildCounterVisibilityRule++; |
2407 if (buildCounterVisibilityRule < 3) { | 2407 if (buildCounterVisibilityRule < 3) { |
2408 o.restriction = "foo"; | 2408 o.restriction = "foo"; |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3178 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync1(((api.SearchServicesResponse response) { | 3178 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync1(((api.SearchServicesResponse response) { |
3179 checkSearchServicesResponse(response); | 3179 checkSearchServicesResponse(response); |
3180 }))); | 3180 }))); |
3181 }); | 3181 }); |
3182 | 3182 |
3183 }); | 3183 }); |
3184 | 3184 |
3185 | 3185 |
3186 } | 3186 } |
3187 | 3187 |
OLD | NEW |