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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.servicecontrol.v1.test; 1 library googleapis.servicecontrol.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 checkAllocateQuotaRequest(api.AllocateQuotaRequest o) { 67 checkAllocateQuotaRequest(api.AllocateQuotaRequest o) {
68 buildCounterAllocateQuotaRequest++; 68 buildCounterAllocateQuotaRequest++;
69 if (buildCounterAllocateQuotaRequest < 3) { 69 if (buildCounterAllocateQuotaRequest < 3) {
70 checkQuotaOperation(o.allocateOperation); 70 checkQuotaOperation(o.allocateOperation);
71 unittest.expect(o.allocationMode, unittest.equals('foo')); 71 unittest.expect(o.allocationMode, unittest.equals('foo'));
72 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 72 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
73 } 73 }
74 buildCounterAllocateQuotaRequest--; 74 buildCounterAllocateQuotaRequest--;
75 } 75 }
76 76
77 buildUnnamed1677() { 77 buildUnnamed1694() {
78 var o = new core.List<api.QuotaError>(); 78 var o = new core.List<api.QuotaError>();
79 o.add(buildQuotaError()); 79 o.add(buildQuotaError());
80 o.add(buildQuotaError()); 80 o.add(buildQuotaError());
81 return o; 81 return o;
82 } 82 }
83 83
84 checkUnnamed1677(core.List<api.QuotaError> o) { 84 checkUnnamed1694(core.List<api.QuotaError> o) {
85 unittest.expect(o, unittest.hasLength(2)); 85 unittest.expect(o, unittest.hasLength(2));
86 checkQuotaError(o[0]); 86 checkQuotaError(o[0]);
87 checkQuotaError(o[1]); 87 checkQuotaError(o[1]);
88 } 88 }
89 89
90 buildUnnamed1678() { 90 buildUnnamed1695() {
91 var o = new core.List<api.MetricValueSet>(); 91 var o = new core.List<api.MetricValueSet>();
92 o.add(buildMetricValueSet()); 92 o.add(buildMetricValueSet());
93 o.add(buildMetricValueSet()); 93 o.add(buildMetricValueSet());
94 return o; 94 return o;
95 } 95 }
96 96
97 checkUnnamed1678(core.List<api.MetricValueSet> o) { 97 checkUnnamed1695(core.List<api.MetricValueSet> o) {
98 unittest.expect(o, unittest.hasLength(2)); 98 unittest.expect(o, unittest.hasLength(2));
99 checkMetricValueSet(o[0]); 99 checkMetricValueSet(o[0]);
100 checkMetricValueSet(o[1]); 100 checkMetricValueSet(o[1]);
101 } 101 }
102 102
103 core.int buildCounterAllocateQuotaResponse = 0; 103 core.int buildCounterAllocateQuotaResponse = 0;
104 buildAllocateQuotaResponse() { 104 buildAllocateQuotaResponse() {
105 var o = new api.AllocateQuotaResponse(); 105 var o = new api.AllocateQuotaResponse();
106 buildCounterAllocateQuotaResponse++; 106 buildCounterAllocateQuotaResponse++;
107 if (buildCounterAllocateQuotaResponse < 3) { 107 if (buildCounterAllocateQuotaResponse < 3) {
108 o.allocateErrors = buildUnnamed1677(); 108 o.allocateErrors = buildUnnamed1694();
109 o.operationId = "foo"; 109 o.operationId = "foo";
110 o.quotaMetrics = buildUnnamed1678(); 110 o.quotaMetrics = buildUnnamed1695();
111 o.serviceConfigId = "foo"; 111 o.serviceConfigId = "foo";
112 } 112 }
113 buildCounterAllocateQuotaResponse--; 113 buildCounterAllocateQuotaResponse--;
114 return o; 114 return o;
115 } 115 }
116 116
117 checkAllocateQuotaResponse(api.AllocateQuotaResponse o) { 117 checkAllocateQuotaResponse(api.AllocateQuotaResponse o) {
118 buildCounterAllocateQuotaResponse++; 118 buildCounterAllocateQuotaResponse++;
119 if (buildCounterAllocateQuotaResponse < 3) { 119 if (buildCounterAllocateQuotaResponse < 3) {
120 checkUnnamed1677(o.allocateErrors); 120 checkUnnamed1694(o.allocateErrors);
121 unittest.expect(o.operationId, unittest.equals('foo')); 121 unittest.expect(o.operationId, unittest.equals('foo'));
122 checkUnnamed1678(o.quotaMetrics); 122 checkUnnamed1695(o.quotaMetrics);
123 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 123 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
124 } 124 }
125 buildCounterAllocateQuotaResponse--; 125 buildCounterAllocateQuotaResponse--;
126 } 126 }
127 127
128 buildUnnamed1679() { 128 buildUnnamed1696() {
129 var o = new core.List<api.AuthorizationInfo>(); 129 var o = new core.List<api.AuthorizationInfo>();
130 o.add(buildAuthorizationInfo()); 130 o.add(buildAuthorizationInfo());
131 o.add(buildAuthorizationInfo()); 131 o.add(buildAuthorizationInfo());
132 return o; 132 return o;
133 } 133 }
134 134
135 checkUnnamed1679(core.List<api.AuthorizationInfo> o) { 135 checkUnnamed1696(core.List<api.AuthorizationInfo> o) {
136 unittest.expect(o, unittest.hasLength(2)); 136 unittest.expect(o, unittest.hasLength(2));
137 checkAuthorizationInfo(o[0]); 137 checkAuthorizationInfo(o[0]);
138 checkAuthorizationInfo(o[1]); 138 checkAuthorizationInfo(o[1]);
139 } 139 }
140 140
141 buildUnnamed1680() { 141 buildUnnamed1697() {
142 var o = new core.Map<core.String, core.Object>(); 142 var o = new core.Map<core.String, core.Object>();
143 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 143 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
144 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 144 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
145 return o; 145 return o;
146 } 146 }
147 147
148 checkUnnamed1680(core.Map<core.String, core.Object> o) { 148 checkUnnamed1697(core.Map<core.String, core.Object> o) {
149 unittest.expect(o, unittest.hasLength(2)); 149 unittest.expect(o, unittest.hasLength(2));
150 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')); 150 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'));
151 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')); 151 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'));
152 } 152 }
153 153
154 buildUnnamed1681() { 154 buildUnnamed1698() {
155 var o = new core.Map<core.String, core.Object>(); 155 var o = new core.Map<core.String, core.Object>();
156 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 156 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
157 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 157 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
158 return o; 158 return o;
159 } 159 }
160 160
161 checkUnnamed1681(core.Map<core.String, core.Object> o) { 161 checkUnnamed1698(core.Map<core.String, core.Object> o) {
162 unittest.expect(o, unittest.hasLength(2)); 162 unittest.expect(o, unittest.hasLength(2));
163 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')); 163 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'));
164 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')); 164 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'));
165 } 165 }
166 166
167 buildUnnamed1682() { 167 buildUnnamed1699() {
168 var o = new core.Map<core.String, core.Object>(); 168 var o = new core.Map<core.String, core.Object>();
169 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 169 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
170 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 170 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
171 return o; 171 return o;
172 } 172 }
173 173
174 checkUnnamed1682(core.Map<core.String, core.Object> o) { 174 checkUnnamed1699(core.Map<core.String, core.Object> o) {
175 unittest.expect(o, unittest.hasLength(2)); 175 unittest.expect(o, unittest.hasLength(2));
176 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')); 176 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'));
177 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')); 177 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'));
178 } 178 }
179 179
180 core.int buildCounterAuditLog = 0; 180 core.int buildCounterAuditLog = 0;
181 buildAuditLog() { 181 buildAuditLog() {
182 var o = new api.AuditLog(); 182 var o = new api.AuditLog();
183 buildCounterAuditLog++; 183 buildCounterAuditLog++;
184 if (buildCounterAuditLog < 3) { 184 if (buildCounterAuditLog < 3) {
185 o.authenticationInfo = buildAuthenticationInfo(); 185 o.authenticationInfo = buildAuthenticationInfo();
186 o.authorizationInfo = buildUnnamed1679(); 186 o.authorizationInfo = buildUnnamed1696();
187 o.methodName = "foo"; 187 o.methodName = "foo";
188 o.numResponseItems = "foo"; 188 o.numResponseItems = "foo";
189 o.request = buildUnnamed1680(); 189 o.request = buildUnnamed1697();
190 o.requestMetadata = buildRequestMetadata(); 190 o.requestMetadata = buildRequestMetadata();
191 o.resourceName = "foo"; 191 o.resourceName = "foo";
192 o.response = buildUnnamed1681(); 192 o.response = buildUnnamed1698();
193 o.serviceData = buildUnnamed1682(); 193 o.serviceData = buildUnnamed1699();
194 o.serviceName = "foo"; 194 o.serviceName = "foo";
195 o.status = buildStatus(); 195 o.status = buildStatus();
196 } 196 }
197 buildCounterAuditLog--; 197 buildCounterAuditLog--;
198 return o; 198 return o;
199 } 199 }
200 200
201 checkAuditLog(api.AuditLog o) { 201 checkAuditLog(api.AuditLog o) {
202 buildCounterAuditLog++; 202 buildCounterAuditLog++;
203 if (buildCounterAuditLog < 3) { 203 if (buildCounterAuditLog < 3) {
204 checkAuthenticationInfo(o.authenticationInfo); 204 checkAuthenticationInfo(o.authenticationInfo);
205 checkUnnamed1679(o.authorizationInfo); 205 checkUnnamed1696(o.authorizationInfo);
206 unittest.expect(o.methodName, unittest.equals('foo')); 206 unittest.expect(o.methodName, unittest.equals('foo'));
207 unittest.expect(o.numResponseItems, unittest.equals('foo')); 207 unittest.expect(o.numResponseItems, unittest.equals('foo'));
208 checkUnnamed1680(o.request); 208 checkUnnamed1697(o.request);
209 checkRequestMetadata(o.requestMetadata); 209 checkRequestMetadata(o.requestMetadata);
210 unittest.expect(o.resourceName, unittest.equals('foo')); 210 unittest.expect(o.resourceName, unittest.equals('foo'));
211 checkUnnamed1681(o.response); 211 checkUnnamed1698(o.response);
212 checkUnnamed1682(o.serviceData); 212 checkUnnamed1699(o.serviceData);
213 unittest.expect(o.serviceName, unittest.equals('foo')); 213 unittest.expect(o.serviceName, unittest.equals('foo'));
214 checkStatus(o.status); 214 checkStatus(o.status);
215 } 215 }
216 buildCounterAuditLog--; 216 buildCounterAuditLog--;
217 } 217 }
218 218
219 core.int buildCounterAuthenticationInfo = 0; 219 core.int buildCounterAuthenticationInfo = 0;
220 buildAuthenticationInfo() { 220 buildAuthenticationInfo() {
221 var o = new api.AuthenticationInfo(); 221 var o = new api.AuthenticationInfo();
222 buildCounterAuthenticationInfo++; 222 buildCounterAuthenticationInfo++;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 checkCheckError(api.CheckError o) { 275 checkCheckError(api.CheckError o) {
276 buildCounterCheckError++; 276 buildCounterCheckError++;
277 if (buildCounterCheckError < 3) { 277 if (buildCounterCheckError < 3) {
278 unittest.expect(o.code, unittest.equals('foo')); 278 unittest.expect(o.code, unittest.equals('foo'));
279 unittest.expect(o.detail, unittest.equals('foo')); 279 unittest.expect(o.detail, unittest.equals('foo'));
280 } 280 }
281 buildCounterCheckError--; 281 buildCounterCheckError--;
282 } 282 }
283 283
284 buildUnnamed1683() { 284 buildUnnamed1700() {
285 var o = new core.List<core.String>(); 285 var o = new core.List<core.String>();
286 o.add("foo"); 286 o.add("foo");
287 o.add("foo"); 287 o.add("foo");
288 return o; 288 return o;
289 } 289 }
290 290
291 checkUnnamed1683(core.List<core.String> o) { 291 checkUnnamed1700(core.List<core.String> o) {
292 unittest.expect(o, unittest.hasLength(2)); 292 unittest.expect(o, unittest.hasLength(2));
293 unittest.expect(o[0], unittest.equals('foo')); 293 unittest.expect(o[0], unittest.equals('foo'));
294 unittest.expect(o[1], unittest.equals('foo')); 294 unittest.expect(o[1], unittest.equals('foo'));
295 } 295 }
296 296
297 core.int buildCounterCheckInfo = 0; 297 core.int buildCounterCheckInfo = 0;
298 buildCheckInfo() { 298 buildCheckInfo() {
299 var o = new api.CheckInfo(); 299 var o = new api.CheckInfo();
300 buildCounterCheckInfo++; 300 buildCounterCheckInfo++;
301 if (buildCounterCheckInfo < 3) { 301 if (buildCounterCheckInfo < 3) {
302 o.consumerInfo = buildConsumerInfo(); 302 o.consumerInfo = buildConsumerInfo();
303 o.unusedArguments = buildUnnamed1683(); 303 o.unusedArguments = buildUnnamed1700();
304 } 304 }
305 buildCounterCheckInfo--; 305 buildCounterCheckInfo--;
306 return o; 306 return o;
307 } 307 }
308 308
309 checkCheckInfo(api.CheckInfo o) { 309 checkCheckInfo(api.CheckInfo o) {
310 buildCounterCheckInfo++; 310 buildCounterCheckInfo++;
311 if (buildCounterCheckInfo < 3) { 311 if (buildCounterCheckInfo < 3) {
312 checkConsumerInfo(o.consumerInfo); 312 checkConsumerInfo(o.consumerInfo);
313 checkUnnamed1683(o.unusedArguments); 313 checkUnnamed1700(o.unusedArguments);
314 } 314 }
315 buildCounterCheckInfo--; 315 buildCounterCheckInfo--;
316 } 316 }
317 317
318 core.int buildCounterCheckRequest = 0; 318 core.int buildCounterCheckRequest = 0;
319 buildCheckRequest() { 319 buildCheckRequest() {
320 var o = new api.CheckRequest(); 320 var o = new api.CheckRequest();
321 buildCounterCheckRequest++; 321 buildCounterCheckRequest++;
322 if (buildCounterCheckRequest < 3) { 322 if (buildCounterCheckRequest < 3) {
323 o.operation = buildOperation(); 323 o.operation = buildOperation();
324 o.requestProjectSettings = true; 324 o.requestProjectSettings = true;
325 o.serviceConfigId = "foo"; 325 o.serviceConfigId = "foo";
326 o.skipActivationCheck = true; 326 o.skipActivationCheck = true;
327 } 327 }
328 buildCounterCheckRequest--; 328 buildCounterCheckRequest--;
329 return o; 329 return o;
330 } 330 }
331 331
332 checkCheckRequest(api.CheckRequest o) { 332 checkCheckRequest(api.CheckRequest o) {
333 buildCounterCheckRequest++; 333 buildCounterCheckRequest++;
334 if (buildCounterCheckRequest < 3) { 334 if (buildCounterCheckRequest < 3) {
335 checkOperation(o.operation); 335 checkOperation(o.operation);
336 unittest.expect(o.requestProjectSettings, unittest.isTrue); 336 unittest.expect(o.requestProjectSettings, unittest.isTrue);
337 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 337 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
338 unittest.expect(o.skipActivationCheck, unittest.isTrue); 338 unittest.expect(o.skipActivationCheck, unittest.isTrue);
339 } 339 }
340 buildCounterCheckRequest--; 340 buildCounterCheckRequest--;
341 } 341 }
342 342
343 buildUnnamed1684() { 343 buildUnnamed1701() {
344 var o = new core.List<api.CheckError>(); 344 var o = new core.List<api.CheckError>();
345 o.add(buildCheckError()); 345 o.add(buildCheckError());
346 o.add(buildCheckError()); 346 o.add(buildCheckError());
347 return o; 347 return o;
348 } 348 }
349 349
350 checkUnnamed1684(core.List<api.CheckError> o) { 350 checkUnnamed1701(core.List<api.CheckError> o) {
351 unittest.expect(o, unittest.hasLength(2)); 351 unittest.expect(o, unittest.hasLength(2));
352 checkCheckError(o[0]); 352 checkCheckError(o[0]);
353 checkCheckError(o[1]); 353 checkCheckError(o[1]);
354 } 354 }
355 355
356 core.int buildCounterCheckResponse = 0; 356 core.int buildCounterCheckResponse = 0;
357 buildCheckResponse() { 357 buildCheckResponse() {
358 var o = new api.CheckResponse(); 358 var o = new api.CheckResponse();
359 buildCounterCheckResponse++; 359 buildCounterCheckResponse++;
360 if (buildCounterCheckResponse < 3) { 360 if (buildCounterCheckResponse < 3) {
361 o.checkErrors = buildUnnamed1684(); 361 o.checkErrors = buildUnnamed1701();
362 o.checkInfo = buildCheckInfo(); 362 o.checkInfo = buildCheckInfo();
363 o.operationId = "foo"; 363 o.operationId = "foo";
364 o.quotaInfo = buildQuotaInfo(); 364 o.quotaInfo = buildQuotaInfo();
365 o.serviceConfigId = "foo"; 365 o.serviceConfigId = "foo";
366 } 366 }
367 buildCounterCheckResponse--; 367 buildCounterCheckResponse--;
368 return o; 368 return o;
369 } 369 }
370 370
371 checkCheckResponse(api.CheckResponse o) { 371 checkCheckResponse(api.CheckResponse o) {
372 buildCounterCheckResponse++; 372 buildCounterCheckResponse++;
373 if (buildCounterCheckResponse < 3) { 373 if (buildCounterCheckResponse < 3) {
374 checkUnnamed1684(o.checkErrors); 374 checkUnnamed1701(o.checkErrors);
375 checkCheckInfo(o.checkInfo); 375 checkCheckInfo(o.checkInfo);
376 unittest.expect(o.operationId, unittest.equals('foo')); 376 unittest.expect(o.operationId, unittest.equals('foo'));
377 checkQuotaInfo(o.quotaInfo); 377 checkQuotaInfo(o.quotaInfo);
378 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 378 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
379 } 379 }
380 buildCounterCheckResponse--; 380 buildCounterCheckResponse--;
381 } 381 }
382 382
383 core.int buildCounterConsumerInfo = 0; 383 core.int buildCounterConsumerInfo = 0;
384 buildConsumerInfo() { 384 buildConsumerInfo() {
385 var o = new api.ConsumerInfo(); 385 var o = new api.ConsumerInfo();
386 buildCounterConsumerInfo++; 386 buildCounterConsumerInfo++;
387 if (buildCounterConsumerInfo < 3) { 387 if (buildCounterConsumerInfo < 3) {
388 o.projectNumber = "foo"; 388 o.projectNumber = "foo";
389 } 389 }
390 buildCounterConsumerInfo--; 390 buildCounterConsumerInfo--;
391 return o; 391 return o;
392 } 392 }
393 393
394 checkConsumerInfo(api.ConsumerInfo o) { 394 checkConsumerInfo(api.ConsumerInfo o) {
395 buildCounterConsumerInfo++; 395 buildCounterConsumerInfo++;
396 if (buildCounterConsumerInfo < 3) { 396 if (buildCounterConsumerInfo < 3) {
397 unittest.expect(o.projectNumber, unittest.equals('foo')); 397 unittest.expect(o.projectNumber, unittest.equals('foo'));
398 } 398 }
399 buildCounterConsumerInfo--; 399 buildCounterConsumerInfo--;
400 } 400 }
401 401
402 buildUnnamed1685() { 402 buildUnnamed1702() {
403 var o = new core.List<core.String>(); 403 var o = new core.List<core.String>();
404 o.add("foo"); 404 o.add("foo");
405 o.add("foo"); 405 o.add("foo");
406 return o; 406 return o;
407 } 407 }
408 408
409 checkUnnamed1685(core.List<core.String> o) { 409 checkUnnamed1702(core.List<core.String> o) {
410 unittest.expect(o, unittest.hasLength(2)); 410 unittest.expect(o, unittest.hasLength(2));
411 unittest.expect(o[0], unittest.equals('foo')); 411 unittest.expect(o[0], unittest.equals('foo'));
412 unittest.expect(o[1], unittest.equals('foo')); 412 unittest.expect(o[1], unittest.equals('foo'));
413 } 413 }
414 414
415 core.int buildCounterDistribution = 0; 415 core.int buildCounterDistribution = 0;
416 buildDistribution() { 416 buildDistribution() {
417 var o = new api.Distribution(); 417 var o = new api.Distribution();
418 buildCounterDistribution++; 418 buildCounterDistribution++;
419 if (buildCounterDistribution < 3) { 419 if (buildCounterDistribution < 3) {
420 o.bucketCounts = buildUnnamed1685(); 420 o.bucketCounts = buildUnnamed1702();
421 o.count = "foo"; 421 o.count = "foo";
422 o.explicitBuckets = buildExplicitBuckets(); 422 o.explicitBuckets = buildExplicitBuckets();
423 o.exponentialBuckets = buildExponentialBuckets(); 423 o.exponentialBuckets = buildExponentialBuckets();
424 o.linearBuckets = buildLinearBuckets(); 424 o.linearBuckets = buildLinearBuckets();
425 o.maximum = 42.0; 425 o.maximum = 42.0;
426 o.mean = 42.0; 426 o.mean = 42.0;
427 o.minimum = 42.0; 427 o.minimum = 42.0;
428 o.sumOfSquaredDeviation = 42.0; 428 o.sumOfSquaredDeviation = 42.0;
429 } 429 }
430 buildCounterDistribution--; 430 buildCounterDistribution--;
431 return o; 431 return o;
432 } 432 }
433 433
434 checkDistribution(api.Distribution o) { 434 checkDistribution(api.Distribution o) {
435 buildCounterDistribution++; 435 buildCounterDistribution++;
436 if (buildCounterDistribution < 3) { 436 if (buildCounterDistribution < 3) {
437 checkUnnamed1685(o.bucketCounts); 437 checkUnnamed1702(o.bucketCounts);
438 unittest.expect(o.count, unittest.equals('foo')); 438 unittest.expect(o.count, unittest.equals('foo'));
439 checkExplicitBuckets(o.explicitBuckets); 439 checkExplicitBuckets(o.explicitBuckets);
440 checkExponentialBuckets(o.exponentialBuckets); 440 checkExponentialBuckets(o.exponentialBuckets);
441 checkLinearBuckets(o.linearBuckets); 441 checkLinearBuckets(o.linearBuckets);
442 unittest.expect(o.maximum, unittest.equals(42.0)); 442 unittest.expect(o.maximum, unittest.equals(42.0));
443 unittest.expect(o.mean, unittest.equals(42.0)); 443 unittest.expect(o.mean, unittest.equals(42.0));
444 unittest.expect(o.minimum, unittest.equals(42.0)); 444 unittest.expect(o.minimum, unittest.equals(42.0));
445 unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0)); 445 unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0));
446 } 446 }
447 buildCounterDistribution--; 447 buildCounterDistribution--;
(...skipping 13 matching lines...) Expand all
461 461
462 checkEndReconciliationRequest(api.EndReconciliationRequest o) { 462 checkEndReconciliationRequest(api.EndReconciliationRequest o) {
463 buildCounterEndReconciliationRequest++; 463 buildCounterEndReconciliationRequest++;
464 if (buildCounterEndReconciliationRequest < 3) { 464 if (buildCounterEndReconciliationRequest < 3) {
465 checkQuotaOperation(o.reconciliationOperation); 465 checkQuotaOperation(o.reconciliationOperation);
466 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 466 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
467 } 467 }
468 buildCounterEndReconciliationRequest--; 468 buildCounterEndReconciliationRequest--;
469 } 469 }
470 470
471 buildUnnamed1686() { 471 buildUnnamed1703() {
472 var o = new core.List<api.MetricValueSet>(); 472 var o = new core.List<api.MetricValueSet>();
473 o.add(buildMetricValueSet()); 473 o.add(buildMetricValueSet());
474 o.add(buildMetricValueSet()); 474 o.add(buildMetricValueSet());
475 return o; 475 return o;
476 } 476 }
477 477
478 checkUnnamed1686(core.List<api.MetricValueSet> o) { 478 checkUnnamed1703(core.List<api.MetricValueSet> o) {
479 unittest.expect(o, unittest.hasLength(2)); 479 unittest.expect(o, unittest.hasLength(2));
480 checkMetricValueSet(o[0]); 480 checkMetricValueSet(o[0]);
481 checkMetricValueSet(o[1]); 481 checkMetricValueSet(o[1]);
482 } 482 }
483 483
484 buildUnnamed1687() { 484 buildUnnamed1704() {
485 var o = new core.List<api.QuotaError>(); 485 var o = new core.List<api.QuotaError>();
486 o.add(buildQuotaError()); 486 o.add(buildQuotaError());
487 o.add(buildQuotaError()); 487 o.add(buildQuotaError());
488 return o; 488 return o;
489 } 489 }
490 490
491 checkUnnamed1687(core.List<api.QuotaError> o) { 491 checkUnnamed1704(core.List<api.QuotaError> o) {
492 unittest.expect(o, unittest.hasLength(2)); 492 unittest.expect(o, unittest.hasLength(2));
493 checkQuotaError(o[0]); 493 checkQuotaError(o[0]);
494 checkQuotaError(o[1]); 494 checkQuotaError(o[1]);
495 } 495 }
496 496
497 core.int buildCounterEndReconciliationResponse = 0; 497 core.int buildCounterEndReconciliationResponse = 0;
498 buildEndReconciliationResponse() { 498 buildEndReconciliationResponse() {
499 var o = new api.EndReconciliationResponse(); 499 var o = new api.EndReconciliationResponse();
500 buildCounterEndReconciliationResponse++; 500 buildCounterEndReconciliationResponse++;
501 if (buildCounterEndReconciliationResponse < 3) { 501 if (buildCounterEndReconciliationResponse < 3) {
502 o.operationId = "foo"; 502 o.operationId = "foo";
503 o.quotaMetrics = buildUnnamed1686(); 503 o.quotaMetrics = buildUnnamed1703();
504 o.reconciliationErrors = buildUnnamed1687(); 504 o.reconciliationErrors = buildUnnamed1704();
505 o.serviceConfigId = "foo"; 505 o.serviceConfigId = "foo";
506 } 506 }
507 buildCounterEndReconciliationResponse--; 507 buildCounterEndReconciliationResponse--;
508 return o; 508 return o;
509 } 509 }
510 510
511 checkEndReconciliationResponse(api.EndReconciliationResponse o) { 511 checkEndReconciliationResponse(api.EndReconciliationResponse o) {
512 buildCounterEndReconciliationResponse++; 512 buildCounterEndReconciliationResponse++;
513 if (buildCounterEndReconciliationResponse < 3) { 513 if (buildCounterEndReconciliationResponse < 3) {
514 unittest.expect(o.operationId, unittest.equals('foo')); 514 unittest.expect(o.operationId, unittest.equals('foo'));
515 checkUnnamed1686(o.quotaMetrics); 515 checkUnnamed1703(o.quotaMetrics);
516 checkUnnamed1687(o.reconciliationErrors); 516 checkUnnamed1704(o.reconciliationErrors);
517 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 517 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
518 } 518 }
519 buildCounterEndReconciliationResponse--; 519 buildCounterEndReconciliationResponse--;
520 } 520 }
521 521
522 buildUnnamed1688() { 522 buildUnnamed1705() {
523 var o = new core.List<core.double>(); 523 var o = new core.List<core.double>();
524 o.add(42.0); 524 o.add(42.0);
525 o.add(42.0); 525 o.add(42.0);
526 return o; 526 return o;
527 } 527 }
528 528
529 checkUnnamed1688(core.List<core.double> o) { 529 checkUnnamed1705(core.List<core.double> o) {
530 unittest.expect(o, unittest.hasLength(2)); 530 unittest.expect(o, unittest.hasLength(2));
531 unittest.expect(o[0], unittest.equals(42.0)); 531 unittest.expect(o[0], unittest.equals(42.0));
532 unittest.expect(o[1], unittest.equals(42.0)); 532 unittest.expect(o[1], unittest.equals(42.0));
533 } 533 }
534 534
535 core.int buildCounterExplicitBuckets = 0; 535 core.int buildCounterExplicitBuckets = 0;
536 buildExplicitBuckets() { 536 buildExplicitBuckets() {
537 var o = new api.ExplicitBuckets(); 537 var o = new api.ExplicitBuckets();
538 buildCounterExplicitBuckets++; 538 buildCounterExplicitBuckets++;
539 if (buildCounterExplicitBuckets < 3) { 539 if (buildCounterExplicitBuckets < 3) {
540 o.bounds = buildUnnamed1688(); 540 o.bounds = buildUnnamed1705();
541 } 541 }
542 buildCounterExplicitBuckets--; 542 buildCounterExplicitBuckets--;
543 return o; 543 return o;
544 } 544 }
545 545
546 checkExplicitBuckets(api.ExplicitBuckets o) { 546 checkExplicitBuckets(api.ExplicitBuckets o) {
547 buildCounterExplicitBuckets++; 547 buildCounterExplicitBuckets++;
548 if (buildCounterExplicitBuckets < 3) { 548 if (buildCounterExplicitBuckets < 3) {
549 checkUnnamed1688(o.bounds); 549 checkUnnamed1705(o.bounds);
550 } 550 }
551 buildCounterExplicitBuckets--; 551 buildCounterExplicitBuckets--;
552 } 552 }
553 553
554 core.int buildCounterExponentialBuckets = 0; 554 core.int buildCounterExponentialBuckets = 0;
555 buildExponentialBuckets() { 555 buildExponentialBuckets() {
556 var o = new api.ExponentialBuckets(); 556 var o = new api.ExponentialBuckets();
557 buildCounterExponentialBuckets++; 557 buildCounterExponentialBuckets++;
558 if (buildCounterExponentialBuckets < 3) { 558 if (buildCounterExponentialBuckets < 3) {
559 o.growthFactor = 42.0; 559 o.growthFactor = 42.0;
(...skipping 30 matching lines...) Expand all
590 checkLinearBuckets(api.LinearBuckets o) { 590 checkLinearBuckets(api.LinearBuckets o) {
591 buildCounterLinearBuckets++; 591 buildCounterLinearBuckets++;
592 if (buildCounterLinearBuckets < 3) { 592 if (buildCounterLinearBuckets < 3) {
593 unittest.expect(o.numFiniteBuckets, unittest.equals(42)); 593 unittest.expect(o.numFiniteBuckets, unittest.equals(42));
594 unittest.expect(o.offset, unittest.equals(42.0)); 594 unittest.expect(o.offset, unittest.equals(42.0));
595 unittest.expect(o.width, unittest.equals(42.0)); 595 unittest.expect(o.width, unittest.equals(42.0));
596 } 596 }
597 buildCounterLinearBuckets--; 597 buildCounterLinearBuckets--;
598 } 598 }
599 599
600 buildUnnamed1689() { 600 buildUnnamed1706() {
601 var o = new core.Map<core.String, core.String>(); 601 var o = new core.Map<core.String, core.String>();
602 o["x"] = "foo"; 602 o["x"] = "foo";
603 o["y"] = "foo"; 603 o["y"] = "foo";
604 return o; 604 return o;
605 } 605 }
606 606
607 checkUnnamed1689(core.Map<core.String, core.String> o) { 607 checkUnnamed1706(core.Map<core.String, core.String> o) {
608 unittest.expect(o, unittest.hasLength(2)); 608 unittest.expect(o, unittest.hasLength(2));
609 unittest.expect(o["x"], unittest.equals('foo')); 609 unittest.expect(o["x"], unittest.equals('foo'));
610 unittest.expect(o["y"], unittest.equals('foo')); 610 unittest.expect(o["y"], unittest.equals('foo'));
611 } 611 }
612 612
613 buildUnnamed1690() { 613 buildUnnamed1707() {
614 var o = new core.Map<core.String, core.Object>(); 614 var o = new core.Map<core.String, core.Object>();
615 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 615 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
616 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 616 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
617 return o; 617 return o;
618 } 618 }
619 619
620 checkUnnamed1690(core.Map<core.String, core.Object> o) { 620 checkUnnamed1707(core.Map<core.String, core.Object> o) {
621 unittest.expect(o, unittest.hasLength(2)); 621 unittest.expect(o, unittest.hasLength(2));
622 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')); 622 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'));
623 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')); 623 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'));
624 } 624 }
625 625
626 buildUnnamed1691() { 626 buildUnnamed1708() {
627 var o = new core.Map<core.String, core.Object>(); 627 var o = new core.Map<core.String, core.Object>();
628 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 628 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
629 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 629 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
630 return o; 630 return o;
631 } 631 }
632 632
633 checkUnnamed1691(core.Map<core.String, core.Object> o) { 633 checkUnnamed1708(core.Map<core.String, core.Object> o) {
634 unittest.expect(o, unittest.hasLength(2)); 634 unittest.expect(o, unittest.hasLength(2));
635 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')); 635 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'));
636 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')); 636 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'));
637 } 637 }
638 638
639 core.int buildCounterLogEntry = 0; 639 core.int buildCounterLogEntry = 0;
640 buildLogEntry() { 640 buildLogEntry() {
641 var o = new api.LogEntry(); 641 var o = new api.LogEntry();
642 buildCounterLogEntry++; 642 buildCounterLogEntry++;
643 if (buildCounterLogEntry < 3) { 643 if (buildCounterLogEntry < 3) {
644 o.insertId = "foo"; 644 o.insertId = "foo";
645 o.labels = buildUnnamed1689(); 645 o.labels = buildUnnamed1706();
646 o.name = "foo"; 646 o.name = "foo";
647 o.protoPayload = buildUnnamed1690(); 647 o.protoPayload = buildUnnamed1707();
648 o.severity = "foo"; 648 o.severity = "foo";
649 o.structPayload = buildUnnamed1691(); 649 o.structPayload = buildUnnamed1708();
650 o.textPayload = "foo"; 650 o.textPayload = "foo";
651 o.timestamp = "foo"; 651 o.timestamp = "foo";
652 } 652 }
653 buildCounterLogEntry--; 653 buildCounterLogEntry--;
654 return o; 654 return o;
655 } 655 }
656 656
657 checkLogEntry(api.LogEntry o) { 657 checkLogEntry(api.LogEntry o) {
658 buildCounterLogEntry++; 658 buildCounterLogEntry++;
659 if (buildCounterLogEntry < 3) { 659 if (buildCounterLogEntry < 3) {
660 unittest.expect(o.insertId, unittest.equals('foo')); 660 unittest.expect(o.insertId, unittest.equals('foo'));
661 checkUnnamed1689(o.labels); 661 checkUnnamed1706(o.labels);
662 unittest.expect(o.name, unittest.equals('foo')); 662 unittest.expect(o.name, unittest.equals('foo'));
663 checkUnnamed1690(o.protoPayload); 663 checkUnnamed1707(o.protoPayload);
664 unittest.expect(o.severity, unittest.equals('foo')); 664 unittest.expect(o.severity, unittest.equals('foo'));
665 checkUnnamed1691(o.structPayload); 665 checkUnnamed1708(o.structPayload);
666 unittest.expect(o.textPayload, unittest.equals('foo')); 666 unittest.expect(o.textPayload, unittest.equals('foo'));
667 unittest.expect(o.timestamp, unittest.equals('foo')); 667 unittest.expect(o.timestamp, unittest.equals('foo'));
668 } 668 }
669 buildCounterLogEntry--; 669 buildCounterLogEntry--;
670 } 670 }
671 671
672 buildUnnamed1692() { 672 buildUnnamed1709() {
673 var o = new core.Map<core.String, core.String>(); 673 var o = new core.Map<core.String, core.String>();
674 o["x"] = "foo"; 674 o["x"] = "foo";
675 o["y"] = "foo"; 675 o["y"] = "foo";
676 return o; 676 return o;
677 } 677 }
678 678
679 checkUnnamed1692(core.Map<core.String, core.String> o) { 679 checkUnnamed1709(core.Map<core.String, core.String> o) {
680 unittest.expect(o, unittest.hasLength(2)); 680 unittest.expect(o, unittest.hasLength(2));
681 unittest.expect(o["x"], unittest.equals('foo')); 681 unittest.expect(o["x"], unittest.equals('foo'));
682 unittest.expect(o["y"], unittest.equals('foo')); 682 unittest.expect(o["y"], unittest.equals('foo'));
683 } 683 }
684 684
685 core.int buildCounterMetricValue = 0; 685 core.int buildCounterMetricValue = 0;
686 buildMetricValue() { 686 buildMetricValue() {
687 var o = new api.MetricValue(); 687 var o = new api.MetricValue();
688 buildCounterMetricValue++; 688 buildCounterMetricValue++;
689 if (buildCounterMetricValue < 3) { 689 if (buildCounterMetricValue < 3) {
690 o.boolValue = true; 690 o.boolValue = true;
691 o.distributionValue = buildDistribution(); 691 o.distributionValue = buildDistribution();
692 o.doubleValue = 42.0; 692 o.doubleValue = 42.0;
693 o.endTime = "foo"; 693 o.endTime = "foo";
694 o.int64Value = "foo"; 694 o.int64Value = "foo";
695 o.labels = buildUnnamed1692(); 695 o.labels = buildUnnamed1709();
696 o.moneyValue = buildMoney(); 696 o.moneyValue = buildMoney();
697 o.startTime = "foo"; 697 o.startTime = "foo";
698 o.stringValue = "foo"; 698 o.stringValue = "foo";
699 } 699 }
700 buildCounterMetricValue--; 700 buildCounterMetricValue--;
701 return o; 701 return o;
702 } 702 }
703 703
704 checkMetricValue(api.MetricValue o) { 704 checkMetricValue(api.MetricValue o) {
705 buildCounterMetricValue++; 705 buildCounterMetricValue++;
706 if (buildCounterMetricValue < 3) { 706 if (buildCounterMetricValue < 3) {
707 unittest.expect(o.boolValue, unittest.isTrue); 707 unittest.expect(o.boolValue, unittest.isTrue);
708 checkDistribution(o.distributionValue); 708 checkDistribution(o.distributionValue);
709 unittest.expect(o.doubleValue, unittest.equals(42.0)); 709 unittest.expect(o.doubleValue, unittest.equals(42.0));
710 unittest.expect(o.endTime, unittest.equals('foo')); 710 unittest.expect(o.endTime, unittest.equals('foo'));
711 unittest.expect(o.int64Value, unittest.equals('foo')); 711 unittest.expect(o.int64Value, unittest.equals('foo'));
712 checkUnnamed1692(o.labels); 712 checkUnnamed1709(o.labels);
713 checkMoney(o.moneyValue); 713 checkMoney(o.moneyValue);
714 unittest.expect(o.startTime, unittest.equals('foo')); 714 unittest.expect(o.startTime, unittest.equals('foo'));
715 unittest.expect(o.stringValue, unittest.equals('foo')); 715 unittest.expect(o.stringValue, unittest.equals('foo'));
716 } 716 }
717 buildCounterMetricValue--; 717 buildCounterMetricValue--;
718 } 718 }
719 719
720 buildUnnamed1693() { 720 buildUnnamed1710() {
721 var o = new core.List<api.MetricValue>(); 721 var o = new core.List<api.MetricValue>();
722 o.add(buildMetricValue()); 722 o.add(buildMetricValue());
723 o.add(buildMetricValue()); 723 o.add(buildMetricValue());
724 return o; 724 return o;
725 } 725 }
726 726
727 checkUnnamed1693(core.List<api.MetricValue> o) { 727 checkUnnamed1710(core.List<api.MetricValue> o) {
728 unittest.expect(o, unittest.hasLength(2)); 728 unittest.expect(o, unittest.hasLength(2));
729 checkMetricValue(o[0]); 729 checkMetricValue(o[0]);
730 checkMetricValue(o[1]); 730 checkMetricValue(o[1]);
731 } 731 }
732 732
733 core.int buildCounterMetricValueSet = 0; 733 core.int buildCounterMetricValueSet = 0;
734 buildMetricValueSet() { 734 buildMetricValueSet() {
735 var o = new api.MetricValueSet(); 735 var o = new api.MetricValueSet();
736 buildCounterMetricValueSet++; 736 buildCounterMetricValueSet++;
737 if (buildCounterMetricValueSet < 3) { 737 if (buildCounterMetricValueSet < 3) {
738 o.metricName = "foo"; 738 o.metricName = "foo";
739 o.metricValues = buildUnnamed1693(); 739 o.metricValues = buildUnnamed1710();
740 } 740 }
741 buildCounterMetricValueSet--; 741 buildCounterMetricValueSet--;
742 return o; 742 return o;
743 } 743 }
744 744
745 checkMetricValueSet(api.MetricValueSet o) { 745 checkMetricValueSet(api.MetricValueSet o) {
746 buildCounterMetricValueSet++; 746 buildCounterMetricValueSet++;
747 if (buildCounterMetricValueSet < 3) { 747 if (buildCounterMetricValueSet < 3) {
748 unittest.expect(o.metricName, unittest.equals('foo')); 748 unittest.expect(o.metricName, unittest.equals('foo'));
749 checkUnnamed1693(o.metricValues); 749 checkUnnamed1710(o.metricValues);
750 } 750 }
751 buildCounterMetricValueSet--; 751 buildCounterMetricValueSet--;
752 } 752 }
753 753
754 core.int buildCounterMoney = 0; 754 core.int buildCounterMoney = 0;
755 buildMoney() { 755 buildMoney() {
756 var o = new api.Money(); 756 var o = new api.Money();
757 buildCounterMoney++; 757 buildCounterMoney++;
758 if (buildCounterMoney < 3) { 758 if (buildCounterMoney < 3) {
759 o.currencyCode = "foo"; 759 o.currencyCode = "foo";
760 o.nanos = 42; 760 o.nanos = 42;
761 o.units = "foo"; 761 o.units = "foo";
762 } 762 }
763 buildCounterMoney--; 763 buildCounterMoney--;
764 return o; 764 return o;
765 } 765 }
766 766
767 checkMoney(api.Money o) { 767 checkMoney(api.Money o) {
768 buildCounterMoney++; 768 buildCounterMoney++;
769 if (buildCounterMoney < 3) { 769 if (buildCounterMoney < 3) {
770 unittest.expect(o.currencyCode, unittest.equals('foo')); 770 unittest.expect(o.currencyCode, unittest.equals('foo'));
771 unittest.expect(o.nanos, unittest.equals(42)); 771 unittest.expect(o.nanos, unittest.equals(42));
772 unittest.expect(o.units, unittest.equals('foo')); 772 unittest.expect(o.units, unittest.equals('foo'));
773 } 773 }
774 buildCounterMoney--; 774 buildCounterMoney--;
775 } 775 }
776 776
777 buildUnnamed1694() { 777 buildUnnamed1711() {
778 var o = new core.Map<core.String, core.String>(); 778 var o = new core.Map<core.String, core.String>();
779 o["x"] = "foo"; 779 o["x"] = "foo";
780 o["y"] = "foo"; 780 o["y"] = "foo";
781 return o; 781 return o;
782 } 782 }
783 783
784 checkUnnamed1694(core.Map<core.String, core.String> o) { 784 checkUnnamed1711(core.Map<core.String, core.String> o) {
785 unittest.expect(o, unittest.hasLength(2)); 785 unittest.expect(o, unittest.hasLength(2));
786 unittest.expect(o["x"], unittest.equals('foo')); 786 unittest.expect(o["x"], unittest.equals('foo'));
787 unittest.expect(o["y"], unittest.equals('foo')); 787 unittest.expect(o["y"], unittest.equals('foo'));
788 } 788 }
789 789
790 buildUnnamed1695() { 790 buildUnnamed1712() {
791 var o = new core.List<api.LogEntry>(); 791 var o = new core.List<api.LogEntry>();
792 o.add(buildLogEntry()); 792 o.add(buildLogEntry());
793 o.add(buildLogEntry()); 793 o.add(buildLogEntry());
794 return o; 794 return o;
795 } 795 }
796 796
797 checkUnnamed1695(core.List<api.LogEntry> o) { 797 checkUnnamed1712(core.List<api.LogEntry> o) {
798 unittest.expect(o, unittest.hasLength(2)); 798 unittest.expect(o, unittest.hasLength(2));
799 checkLogEntry(o[0]); 799 checkLogEntry(o[0]);
800 checkLogEntry(o[1]); 800 checkLogEntry(o[1]);
801 } 801 }
802 802
803 buildUnnamed1696() { 803 buildUnnamed1713() {
804 var o = new core.List<api.MetricValueSet>(); 804 var o = new core.List<api.MetricValueSet>();
805 o.add(buildMetricValueSet()); 805 o.add(buildMetricValueSet());
806 o.add(buildMetricValueSet()); 806 o.add(buildMetricValueSet());
807 return o; 807 return o;
808 } 808 }
809 809
810 checkUnnamed1696(core.List<api.MetricValueSet> o) { 810 checkUnnamed1713(core.List<api.MetricValueSet> o) {
811 unittest.expect(o, unittest.hasLength(2)); 811 unittest.expect(o, unittest.hasLength(2));
812 checkMetricValueSet(o[0]); 812 checkMetricValueSet(o[0]);
813 checkMetricValueSet(o[1]); 813 checkMetricValueSet(o[1]);
814 } 814 }
815 815
816 buildUnnamed1697() { 816 buildUnnamed1714() {
817 var o = new core.Map<core.String, core.String>(); 817 var o = new core.Map<core.String, core.String>();
818 o["x"] = "foo"; 818 o["x"] = "foo";
819 o["y"] = "foo"; 819 o["y"] = "foo";
820 return o; 820 return o;
821 } 821 }
822 822
823 checkUnnamed1697(core.Map<core.String, core.String> o) { 823 checkUnnamed1714(core.Map<core.String, core.String> o) {
824 unittest.expect(o, unittest.hasLength(2)); 824 unittest.expect(o, unittest.hasLength(2));
825 unittest.expect(o["x"], unittest.equals('foo')); 825 unittest.expect(o["x"], unittest.equals('foo'));
826 unittest.expect(o["y"], unittest.equals('foo')); 826 unittest.expect(o["y"], unittest.equals('foo'));
827 } 827 }
828 828
829 core.int buildCounterOperation = 0; 829 core.int buildCounterOperation = 0;
830 buildOperation() { 830 buildOperation() {
831 var o = new api.Operation(); 831 var o = new api.Operation();
832 buildCounterOperation++; 832 buildCounterOperation++;
833 if (buildCounterOperation < 3) { 833 if (buildCounterOperation < 3) {
834 o.consumerId = "foo"; 834 o.consumerId = "foo";
835 o.endTime = "foo"; 835 o.endTime = "foo";
836 o.importance = "foo"; 836 o.importance = "foo";
837 o.labels = buildUnnamed1694(); 837 o.labels = buildUnnamed1711();
838 o.logEntries = buildUnnamed1695(); 838 o.logEntries = buildUnnamed1712();
839 o.metricValueSets = buildUnnamed1696(); 839 o.metricValueSets = buildUnnamed1713();
840 o.operationId = "foo"; 840 o.operationId = "foo";
841 o.operationName = "foo"; 841 o.operationName = "foo";
842 o.quotaProperties = buildQuotaProperties(); 842 o.quotaProperties = buildQuotaProperties();
843 o.resourceContainer = "foo"; 843 o.resourceContainer = "foo";
844 o.startTime = "foo"; 844 o.startTime = "foo";
845 o.userLabels = buildUnnamed1697(); 845 o.userLabels = buildUnnamed1714();
846 } 846 }
847 buildCounterOperation--; 847 buildCounterOperation--;
848 return o; 848 return o;
849 } 849 }
850 850
851 checkOperation(api.Operation o) { 851 checkOperation(api.Operation o) {
852 buildCounterOperation++; 852 buildCounterOperation++;
853 if (buildCounterOperation < 3) { 853 if (buildCounterOperation < 3) {
854 unittest.expect(o.consumerId, unittest.equals('foo')); 854 unittest.expect(o.consumerId, unittest.equals('foo'));
855 unittest.expect(o.endTime, unittest.equals('foo')); 855 unittest.expect(o.endTime, unittest.equals('foo'));
856 unittest.expect(o.importance, unittest.equals('foo')); 856 unittest.expect(o.importance, unittest.equals('foo'));
857 checkUnnamed1694(o.labels); 857 checkUnnamed1711(o.labels);
858 checkUnnamed1695(o.logEntries); 858 checkUnnamed1712(o.logEntries);
859 checkUnnamed1696(o.metricValueSets); 859 checkUnnamed1713(o.metricValueSets);
860 unittest.expect(o.operationId, unittest.equals('foo')); 860 unittest.expect(o.operationId, unittest.equals('foo'));
861 unittest.expect(o.operationName, unittest.equals('foo')); 861 unittest.expect(o.operationName, unittest.equals('foo'));
862 checkQuotaProperties(o.quotaProperties); 862 checkQuotaProperties(o.quotaProperties);
863 unittest.expect(o.resourceContainer, unittest.equals('foo')); 863 unittest.expect(o.resourceContainer, unittest.equals('foo'));
864 unittest.expect(o.startTime, unittest.equals('foo')); 864 unittest.expect(o.startTime, unittest.equals('foo'));
865 checkUnnamed1697(o.userLabels); 865 checkUnnamed1714(o.userLabels);
866 } 866 }
867 buildCounterOperation--; 867 buildCounterOperation--;
868 } 868 }
869 869
870 core.int buildCounterQuotaError = 0; 870 core.int buildCounterQuotaError = 0;
871 buildQuotaError() { 871 buildQuotaError() {
872 var o = new api.QuotaError(); 872 var o = new api.QuotaError();
873 buildCounterQuotaError++; 873 buildCounterQuotaError++;
874 if (buildCounterQuotaError < 3) { 874 if (buildCounterQuotaError < 3) {
875 o.code = "foo"; 875 o.code = "foo";
876 o.description = "foo"; 876 o.description = "foo";
877 o.subject = "foo"; 877 o.subject = "foo";
878 } 878 }
879 buildCounterQuotaError--; 879 buildCounterQuotaError--;
880 return o; 880 return o;
881 } 881 }
882 882
883 checkQuotaError(api.QuotaError o) { 883 checkQuotaError(api.QuotaError o) {
884 buildCounterQuotaError++; 884 buildCounterQuotaError++;
885 if (buildCounterQuotaError < 3) { 885 if (buildCounterQuotaError < 3) {
886 unittest.expect(o.code, unittest.equals('foo')); 886 unittest.expect(o.code, unittest.equals('foo'));
887 unittest.expect(o.description, unittest.equals('foo')); 887 unittest.expect(o.description, unittest.equals('foo'));
888 unittest.expect(o.subject, unittest.equals('foo')); 888 unittest.expect(o.subject, unittest.equals('foo'));
889 } 889 }
890 buildCounterQuotaError--; 890 buildCounterQuotaError--;
891 } 891 }
892 892
893 buildUnnamed1698() { 893 buildUnnamed1715() {
894 var o = new core.List<core.String>(); 894 var o = new core.List<core.String>();
895 o.add("foo"); 895 o.add("foo");
896 o.add("foo"); 896 o.add("foo");
897 return o; 897 return o;
898 } 898 }
899 899
900 checkUnnamed1698(core.List<core.String> o) { 900 checkUnnamed1715(core.List<core.String> o) {
901 unittest.expect(o, unittest.hasLength(2)); 901 unittest.expect(o, unittest.hasLength(2));
902 unittest.expect(o[0], unittest.equals('foo')); 902 unittest.expect(o[0], unittest.equals('foo'));
903 unittest.expect(o[1], unittest.equals('foo')); 903 unittest.expect(o[1], unittest.equals('foo'));
904 } 904 }
905 905
906 buildUnnamed1699() { 906 buildUnnamed1716() {
907 var o = new core.Map<core.String, core.int>(); 907 var o = new core.Map<core.String, core.int>();
908 o["x"] = 42; 908 o["x"] = 42;
909 o["y"] = 42; 909 o["y"] = 42;
910 return o; 910 return o;
911 } 911 }
912 912
913 checkUnnamed1699(core.Map<core.String, core.int> o) { 913 checkUnnamed1716(core.Map<core.String, core.int> o) {
914 unittest.expect(o, unittest.hasLength(2)); 914 unittest.expect(o, unittest.hasLength(2));
915 unittest.expect(o["x"], unittest.equals(42)); 915 unittest.expect(o["x"], unittest.equals(42));
916 unittest.expect(o["y"], unittest.equals(42)); 916 unittest.expect(o["y"], unittest.equals(42));
917 } 917 }
918 918
919 buildUnnamed1700() { 919 buildUnnamed1717() {
920 var o = new core.List<api.MetricValueSet>(); 920 var o = new core.List<api.MetricValueSet>();
921 o.add(buildMetricValueSet()); 921 o.add(buildMetricValueSet());
922 o.add(buildMetricValueSet()); 922 o.add(buildMetricValueSet());
923 return o; 923 return o;
924 } 924 }
925 925
926 checkUnnamed1700(core.List<api.MetricValueSet> o) { 926 checkUnnamed1717(core.List<api.MetricValueSet> o) {
927 unittest.expect(o, unittest.hasLength(2)); 927 unittest.expect(o, unittest.hasLength(2));
928 checkMetricValueSet(o[0]); 928 checkMetricValueSet(o[0]);
929 checkMetricValueSet(o[1]); 929 checkMetricValueSet(o[1]);
930 } 930 }
931 931
932 core.int buildCounterQuotaInfo = 0; 932 core.int buildCounterQuotaInfo = 0;
933 buildQuotaInfo() { 933 buildQuotaInfo() {
934 var o = new api.QuotaInfo(); 934 var o = new api.QuotaInfo();
935 buildCounterQuotaInfo++; 935 buildCounterQuotaInfo++;
936 if (buildCounterQuotaInfo < 3) { 936 if (buildCounterQuotaInfo < 3) {
937 o.limitExceeded = buildUnnamed1698(); 937 o.limitExceeded = buildUnnamed1715();
938 o.quotaConsumed = buildUnnamed1699(); 938 o.quotaConsumed = buildUnnamed1716();
939 o.quotaMetrics = buildUnnamed1700(); 939 o.quotaMetrics = buildUnnamed1717();
940 } 940 }
941 buildCounterQuotaInfo--; 941 buildCounterQuotaInfo--;
942 return o; 942 return o;
943 } 943 }
944 944
945 checkQuotaInfo(api.QuotaInfo o) { 945 checkQuotaInfo(api.QuotaInfo o) {
946 buildCounterQuotaInfo++; 946 buildCounterQuotaInfo++;
947 if (buildCounterQuotaInfo < 3) { 947 if (buildCounterQuotaInfo < 3) {
948 checkUnnamed1698(o.limitExceeded); 948 checkUnnamed1715(o.limitExceeded);
949 checkUnnamed1699(o.quotaConsumed); 949 checkUnnamed1716(o.quotaConsumed);
950 checkUnnamed1700(o.quotaMetrics); 950 checkUnnamed1717(o.quotaMetrics);
951 } 951 }
952 buildCounterQuotaInfo--; 952 buildCounterQuotaInfo--;
953 } 953 }
954 954
955 buildUnnamed1701() { 955 buildUnnamed1718() {
956 var o = new core.Map<core.String, core.String>(); 956 var o = new core.Map<core.String, core.String>();
957 o["x"] = "foo"; 957 o["x"] = "foo";
958 o["y"] = "foo"; 958 o["y"] = "foo";
959 return o; 959 return o;
960 } 960 }
961 961
962 checkUnnamed1701(core.Map<core.String, core.String> o) { 962 checkUnnamed1718(core.Map<core.String, core.String> o) {
963 unittest.expect(o, unittest.hasLength(2)); 963 unittest.expect(o, unittest.hasLength(2));
964 unittest.expect(o["x"], unittest.equals('foo')); 964 unittest.expect(o["x"], unittest.equals('foo'));
965 unittest.expect(o["y"], unittest.equals('foo')); 965 unittest.expect(o["y"], unittest.equals('foo'));
966 } 966 }
967 967
968 buildUnnamed1702() { 968 buildUnnamed1719() {
969 var o = new core.List<api.MetricValueSet>(); 969 var o = new core.List<api.MetricValueSet>();
970 o.add(buildMetricValueSet()); 970 o.add(buildMetricValueSet());
971 o.add(buildMetricValueSet()); 971 o.add(buildMetricValueSet());
972 return o; 972 return o;
973 } 973 }
974 974
975 checkUnnamed1702(core.List<api.MetricValueSet> o) { 975 checkUnnamed1719(core.List<api.MetricValueSet> o) {
976 unittest.expect(o, unittest.hasLength(2)); 976 unittest.expect(o, unittest.hasLength(2));
977 checkMetricValueSet(o[0]); 977 checkMetricValueSet(o[0]);
978 checkMetricValueSet(o[1]); 978 checkMetricValueSet(o[1]);
979 } 979 }
980 980
981 core.int buildCounterQuotaOperation = 0; 981 core.int buildCounterQuotaOperation = 0;
982 buildQuotaOperation() { 982 buildQuotaOperation() {
983 var o = new api.QuotaOperation(); 983 var o = new api.QuotaOperation();
984 buildCounterQuotaOperation++; 984 buildCounterQuotaOperation++;
985 if (buildCounterQuotaOperation < 3) { 985 if (buildCounterQuotaOperation < 3) {
986 o.consumerId = "foo"; 986 o.consumerId = "foo";
987 o.labels = buildUnnamed1701(); 987 o.labels = buildUnnamed1718();
988 o.methodName = "foo"; 988 o.methodName = "foo";
989 o.operationId = "foo"; 989 o.operationId = "foo";
990 o.quotaMetrics = buildUnnamed1702(); 990 o.quotaMetrics = buildUnnamed1719();
991 o.quotaMode = "foo"; 991 o.quotaMode = "foo";
992 } 992 }
993 buildCounterQuotaOperation--; 993 buildCounterQuotaOperation--;
994 return o; 994 return o;
995 } 995 }
996 996
997 checkQuotaOperation(api.QuotaOperation o) { 997 checkQuotaOperation(api.QuotaOperation o) {
998 buildCounterQuotaOperation++; 998 buildCounterQuotaOperation++;
999 if (buildCounterQuotaOperation < 3) { 999 if (buildCounterQuotaOperation < 3) {
1000 unittest.expect(o.consumerId, unittest.equals('foo')); 1000 unittest.expect(o.consumerId, unittest.equals('foo'));
1001 checkUnnamed1701(o.labels); 1001 checkUnnamed1718(o.labels);
1002 unittest.expect(o.methodName, unittest.equals('foo')); 1002 unittest.expect(o.methodName, unittest.equals('foo'));
1003 unittest.expect(o.operationId, unittest.equals('foo')); 1003 unittest.expect(o.operationId, unittest.equals('foo'));
1004 checkUnnamed1702(o.quotaMetrics); 1004 checkUnnamed1719(o.quotaMetrics);
1005 unittest.expect(o.quotaMode, unittest.equals('foo')); 1005 unittest.expect(o.quotaMode, unittest.equals('foo'));
1006 } 1006 }
1007 buildCounterQuotaOperation--; 1007 buildCounterQuotaOperation--;
1008 } 1008 }
1009 1009
1010 buildUnnamed1703() { 1010 buildUnnamed1720() {
1011 var o = new core.Map<core.String, core.String>(); 1011 var o = new core.Map<core.String, core.String>();
1012 o["x"] = "foo"; 1012 o["x"] = "foo";
1013 o["y"] = "foo"; 1013 o["y"] = "foo";
1014 return o; 1014 return o;
1015 } 1015 }
1016 1016
1017 checkUnnamed1703(core.Map<core.String, core.String> o) { 1017 checkUnnamed1720(core.Map<core.String, core.String> o) {
1018 unittest.expect(o, unittest.hasLength(2)); 1018 unittest.expect(o, unittest.hasLength(2));
1019 unittest.expect(o["x"], unittest.equals('foo')); 1019 unittest.expect(o["x"], unittest.equals('foo'));
1020 unittest.expect(o["y"], unittest.equals('foo')); 1020 unittest.expect(o["y"], unittest.equals('foo'));
1021 } 1021 }
1022 1022
1023 core.int buildCounterQuotaProperties = 0; 1023 core.int buildCounterQuotaProperties = 0;
1024 buildQuotaProperties() { 1024 buildQuotaProperties() {
1025 var o = new api.QuotaProperties(); 1025 var o = new api.QuotaProperties();
1026 buildCounterQuotaProperties++; 1026 buildCounterQuotaProperties++;
1027 if (buildCounterQuotaProperties < 3) { 1027 if (buildCounterQuotaProperties < 3) {
1028 o.limitByIds = buildUnnamed1703(); 1028 o.limitByIds = buildUnnamed1720();
1029 o.quotaMode = "foo"; 1029 o.quotaMode = "foo";
1030 } 1030 }
1031 buildCounterQuotaProperties--; 1031 buildCounterQuotaProperties--;
1032 return o; 1032 return o;
1033 } 1033 }
1034 1034
1035 checkQuotaProperties(api.QuotaProperties o) { 1035 checkQuotaProperties(api.QuotaProperties o) {
1036 buildCounterQuotaProperties++; 1036 buildCounterQuotaProperties++;
1037 if (buildCounterQuotaProperties < 3) { 1037 if (buildCounterQuotaProperties < 3) {
1038 checkUnnamed1703(o.limitByIds); 1038 checkUnnamed1720(o.limitByIds);
1039 unittest.expect(o.quotaMode, unittest.equals('foo')); 1039 unittest.expect(o.quotaMode, unittest.equals('foo'));
1040 } 1040 }
1041 buildCounterQuotaProperties--; 1041 buildCounterQuotaProperties--;
1042 } 1042 }
1043 1043
1044 core.int buildCounterReleaseQuotaRequest = 0; 1044 core.int buildCounterReleaseQuotaRequest = 0;
1045 buildReleaseQuotaRequest() { 1045 buildReleaseQuotaRequest() {
1046 var o = new api.ReleaseQuotaRequest(); 1046 var o = new api.ReleaseQuotaRequest();
1047 buildCounterReleaseQuotaRequest++; 1047 buildCounterReleaseQuotaRequest++;
1048 if (buildCounterReleaseQuotaRequest < 3) { 1048 if (buildCounterReleaseQuotaRequest < 3) {
1049 o.releaseOperation = buildQuotaOperation(); 1049 o.releaseOperation = buildQuotaOperation();
1050 o.serviceConfigId = "foo"; 1050 o.serviceConfigId = "foo";
1051 } 1051 }
1052 buildCounterReleaseQuotaRequest--; 1052 buildCounterReleaseQuotaRequest--;
1053 return o; 1053 return o;
1054 } 1054 }
1055 1055
1056 checkReleaseQuotaRequest(api.ReleaseQuotaRequest o) { 1056 checkReleaseQuotaRequest(api.ReleaseQuotaRequest o) {
1057 buildCounterReleaseQuotaRequest++; 1057 buildCounterReleaseQuotaRequest++;
1058 if (buildCounterReleaseQuotaRequest < 3) { 1058 if (buildCounterReleaseQuotaRequest < 3) {
1059 checkQuotaOperation(o.releaseOperation); 1059 checkQuotaOperation(o.releaseOperation);
1060 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1060 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1061 } 1061 }
1062 buildCounterReleaseQuotaRequest--; 1062 buildCounterReleaseQuotaRequest--;
1063 } 1063 }
1064 1064
1065 buildUnnamed1704() { 1065 buildUnnamed1721() {
1066 var o = new core.List<api.MetricValueSet>(); 1066 var o = new core.List<api.MetricValueSet>();
1067 o.add(buildMetricValueSet()); 1067 o.add(buildMetricValueSet());
1068 o.add(buildMetricValueSet()); 1068 o.add(buildMetricValueSet());
1069 return o; 1069 return o;
1070 } 1070 }
1071 1071
1072 checkUnnamed1704(core.List<api.MetricValueSet> o) { 1072 checkUnnamed1721(core.List<api.MetricValueSet> o) {
1073 unittest.expect(o, unittest.hasLength(2)); 1073 unittest.expect(o, unittest.hasLength(2));
1074 checkMetricValueSet(o[0]); 1074 checkMetricValueSet(o[0]);
1075 checkMetricValueSet(o[1]); 1075 checkMetricValueSet(o[1]);
1076 } 1076 }
1077 1077
1078 buildUnnamed1705() { 1078 buildUnnamed1722() {
1079 var o = new core.List<api.QuotaError>(); 1079 var o = new core.List<api.QuotaError>();
1080 o.add(buildQuotaError()); 1080 o.add(buildQuotaError());
1081 o.add(buildQuotaError()); 1081 o.add(buildQuotaError());
1082 return o; 1082 return o;
1083 } 1083 }
1084 1084
1085 checkUnnamed1705(core.List<api.QuotaError> o) { 1085 checkUnnamed1722(core.List<api.QuotaError> o) {
1086 unittest.expect(o, unittest.hasLength(2)); 1086 unittest.expect(o, unittest.hasLength(2));
1087 checkQuotaError(o[0]); 1087 checkQuotaError(o[0]);
1088 checkQuotaError(o[1]); 1088 checkQuotaError(o[1]);
1089 } 1089 }
1090 1090
1091 core.int buildCounterReleaseQuotaResponse = 0; 1091 core.int buildCounterReleaseQuotaResponse = 0;
1092 buildReleaseQuotaResponse() { 1092 buildReleaseQuotaResponse() {
1093 var o = new api.ReleaseQuotaResponse(); 1093 var o = new api.ReleaseQuotaResponse();
1094 buildCounterReleaseQuotaResponse++; 1094 buildCounterReleaseQuotaResponse++;
1095 if (buildCounterReleaseQuotaResponse < 3) { 1095 if (buildCounterReleaseQuotaResponse < 3) {
1096 o.operationId = "foo"; 1096 o.operationId = "foo";
1097 o.quotaMetrics = buildUnnamed1704(); 1097 o.quotaMetrics = buildUnnamed1721();
1098 o.releaseErrors = buildUnnamed1705(); 1098 o.releaseErrors = buildUnnamed1722();
1099 o.serviceConfigId = "foo"; 1099 o.serviceConfigId = "foo";
1100 } 1100 }
1101 buildCounterReleaseQuotaResponse--; 1101 buildCounterReleaseQuotaResponse--;
1102 return o; 1102 return o;
1103 } 1103 }
1104 1104
1105 checkReleaseQuotaResponse(api.ReleaseQuotaResponse o) { 1105 checkReleaseQuotaResponse(api.ReleaseQuotaResponse o) {
1106 buildCounterReleaseQuotaResponse++; 1106 buildCounterReleaseQuotaResponse++;
1107 if (buildCounterReleaseQuotaResponse < 3) { 1107 if (buildCounterReleaseQuotaResponse < 3) {
1108 unittest.expect(o.operationId, unittest.equals('foo')); 1108 unittest.expect(o.operationId, unittest.equals('foo'));
1109 checkUnnamed1704(o.quotaMetrics); 1109 checkUnnamed1721(o.quotaMetrics);
1110 checkUnnamed1705(o.releaseErrors); 1110 checkUnnamed1722(o.releaseErrors);
1111 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1111 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1112 } 1112 }
1113 buildCounterReleaseQuotaResponse--; 1113 buildCounterReleaseQuotaResponse--;
1114 } 1114 }
1115 1115
1116 core.int buildCounterReportError = 0; 1116 core.int buildCounterReportError = 0;
1117 buildReportError() { 1117 buildReportError() {
1118 var o = new api.ReportError(); 1118 var o = new api.ReportError();
1119 buildCounterReportError++; 1119 buildCounterReportError++;
1120 if (buildCounterReportError < 3) { 1120 if (buildCounterReportError < 3) {
(...skipping 27 matching lines...) Expand all
1148 1148
1149 checkReportInfo(api.ReportInfo o) { 1149 checkReportInfo(api.ReportInfo o) {
1150 buildCounterReportInfo++; 1150 buildCounterReportInfo++;
1151 if (buildCounterReportInfo < 3) { 1151 if (buildCounterReportInfo < 3) {
1152 unittest.expect(o.operationId, unittest.equals('foo')); 1152 unittest.expect(o.operationId, unittest.equals('foo'));
1153 checkQuotaInfo(o.quotaInfo); 1153 checkQuotaInfo(o.quotaInfo);
1154 } 1154 }
1155 buildCounterReportInfo--; 1155 buildCounterReportInfo--;
1156 } 1156 }
1157 1157
1158 buildUnnamed1706() { 1158 buildUnnamed1723() {
1159 var o = new core.List<api.Operation>(); 1159 var o = new core.List<api.Operation>();
1160 o.add(buildOperation()); 1160 o.add(buildOperation());
1161 o.add(buildOperation()); 1161 o.add(buildOperation());
1162 return o; 1162 return o;
1163 } 1163 }
1164 1164
1165 checkUnnamed1706(core.List<api.Operation> o) { 1165 checkUnnamed1723(core.List<api.Operation> o) {
1166 unittest.expect(o, unittest.hasLength(2)); 1166 unittest.expect(o, unittest.hasLength(2));
1167 checkOperation(o[0]); 1167 checkOperation(o[0]);
1168 checkOperation(o[1]); 1168 checkOperation(o[1]);
1169 } 1169 }
1170 1170
1171 core.int buildCounterReportRequest = 0; 1171 core.int buildCounterReportRequest = 0;
1172 buildReportRequest() { 1172 buildReportRequest() {
1173 var o = new api.ReportRequest(); 1173 var o = new api.ReportRequest();
1174 buildCounterReportRequest++; 1174 buildCounterReportRequest++;
1175 if (buildCounterReportRequest < 3) { 1175 if (buildCounterReportRequest < 3) {
1176 o.operations = buildUnnamed1706(); 1176 o.operations = buildUnnamed1723();
1177 o.serviceConfigId = "foo"; 1177 o.serviceConfigId = "foo";
1178 } 1178 }
1179 buildCounterReportRequest--; 1179 buildCounterReportRequest--;
1180 return o; 1180 return o;
1181 } 1181 }
1182 1182
1183 checkReportRequest(api.ReportRequest o) { 1183 checkReportRequest(api.ReportRequest o) {
1184 buildCounterReportRequest++; 1184 buildCounterReportRequest++;
1185 if (buildCounterReportRequest < 3) { 1185 if (buildCounterReportRequest < 3) {
1186 checkUnnamed1706(o.operations); 1186 checkUnnamed1723(o.operations);
1187 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1187 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1188 } 1188 }
1189 buildCounterReportRequest--; 1189 buildCounterReportRequest--;
1190 } 1190 }
1191 1191
1192 buildUnnamed1707() { 1192 buildUnnamed1724() {
1193 var o = new core.List<api.ReportError>(); 1193 var o = new core.List<api.ReportError>();
1194 o.add(buildReportError()); 1194 o.add(buildReportError());
1195 o.add(buildReportError()); 1195 o.add(buildReportError());
1196 return o; 1196 return o;
1197 } 1197 }
1198 1198
1199 checkUnnamed1707(core.List<api.ReportError> o) { 1199 checkUnnamed1724(core.List<api.ReportError> o) {
1200 unittest.expect(o, unittest.hasLength(2)); 1200 unittest.expect(o, unittest.hasLength(2));
1201 checkReportError(o[0]); 1201 checkReportError(o[0]);
1202 checkReportError(o[1]); 1202 checkReportError(o[1]);
1203 } 1203 }
1204 1204
1205 buildUnnamed1708() { 1205 buildUnnamed1725() {
1206 var o = new core.List<api.ReportInfo>(); 1206 var o = new core.List<api.ReportInfo>();
1207 o.add(buildReportInfo()); 1207 o.add(buildReportInfo());
1208 o.add(buildReportInfo()); 1208 o.add(buildReportInfo());
1209 return o; 1209 return o;
1210 } 1210 }
1211 1211
1212 checkUnnamed1708(core.List<api.ReportInfo> o) { 1212 checkUnnamed1725(core.List<api.ReportInfo> o) {
1213 unittest.expect(o, unittest.hasLength(2)); 1213 unittest.expect(o, unittest.hasLength(2));
1214 checkReportInfo(o[0]); 1214 checkReportInfo(o[0]);
1215 checkReportInfo(o[1]); 1215 checkReportInfo(o[1]);
1216 } 1216 }
1217 1217
1218 core.int buildCounterReportResponse = 0; 1218 core.int buildCounterReportResponse = 0;
1219 buildReportResponse() { 1219 buildReportResponse() {
1220 var o = new api.ReportResponse(); 1220 var o = new api.ReportResponse();
1221 buildCounterReportResponse++; 1221 buildCounterReportResponse++;
1222 if (buildCounterReportResponse < 3) { 1222 if (buildCounterReportResponse < 3) {
1223 o.reportErrors = buildUnnamed1707(); 1223 o.reportErrors = buildUnnamed1724();
1224 o.reportInfos = buildUnnamed1708(); 1224 o.reportInfos = buildUnnamed1725();
1225 o.serviceConfigId = "foo"; 1225 o.serviceConfigId = "foo";
1226 } 1226 }
1227 buildCounterReportResponse--; 1227 buildCounterReportResponse--;
1228 return o; 1228 return o;
1229 } 1229 }
1230 1230
1231 checkReportResponse(api.ReportResponse o) { 1231 checkReportResponse(api.ReportResponse o) {
1232 buildCounterReportResponse++; 1232 buildCounterReportResponse++;
1233 if (buildCounterReportResponse < 3) { 1233 if (buildCounterReportResponse < 3) {
1234 checkUnnamed1707(o.reportErrors); 1234 checkUnnamed1724(o.reportErrors);
1235 checkUnnamed1708(o.reportInfos); 1235 checkUnnamed1725(o.reportInfos);
1236 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1236 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1237 } 1237 }
1238 buildCounterReportResponse--; 1238 buildCounterReportResponse--;
1239 } 1239 }
1240 1240
1241 core.int buildCounterRequestMetadata = 0; 1241 core.int buildCounterRequestMetadata = 0;
1242 buildRequestMetadata() { 1242 buildRequestMetadata() {
1243 var o = new api.RequestMetadata(); 1243 var o = new api.RequestMetadata();
1244 buildCounterRequestMetadata++; 1244 buildCounterRequestMetadata++;
1245 if (buildCounterRequestMetadata < 3) { 1245 if (buildCounterRequestMetadata < 3) {
(...skipping 27 matching lines...) Expand all
1273 1273
1274 checkStartReconciliationRequest(api.StartReconciliationRequest o) { 1274 checkStartReconciliationRequest(api.StartReconciliationRequest o) {
1275 buildCounterStartReconciliationRequest++; 1275 buildCounterStartReconciliationRequest++;
1276 if (buildCounterStartReconciliationRequest < 3) { 1276 if (buildCounterStartReconciliationRequest < 3) {
1277 checkQuotaOperation(o.reconciliationOperation); 1277 checkQuotaOperation(o.reconciliationOperation);
1278 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1278 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1279 } 1279 }
1280 buildCounterStartReconciliationRequest--; 1280 buildCounterStartReconciliationRequest--;
1281 } 1281 }
1282 1282
1283 buildUnnamed1709() { 1283 buildUnnamed1726() {
1284 var o = new core.List<api.MetricValueSet>(); 1284 var o = new core.List<api.MetricValueSet>();
1285 o.add(buildMetricValueSet()); 1285 o.add(buildMetricValueSet());
1286 o.add(buildMetricValueSet()); 1286 o.add(buildMetricValueSet());
1287 return o; 1287 return o;
1288 } 1288 }
1289 1289
1290 checkUnnamed1709(core.List<api.MetricValueSet> o) { 1290 checkUnnamed1726(core.List<api.MetricValueSet> o) {
1291 unittest.expect(o, unittest.hasLength(2)); 1291 unittest.expect(o, unittest.hasLength(2));
1292 checkMetricValueSet(o[0]); 1292 checkMetricValueSet(o[0]);
1293 checkMetricValueSet(o[1]); 1293 checkMetricValueSet(o[1]);
1294 } 1294 }
1295 1295
1296 buildUnnamed1710() { 1296 buildUnnamed1727() {
1297 var o = new core.List<api.QuotaError>(); 1297 var o = new core.List<api.QuotaError>();
1298 o.add(buildQuotaError()); 1298 o.add(buildQuotaError());
1299 o.add(buildQuotaError()); 1299 o.add(buildQuotaError());
1300 return o; 1300 return o;
1301 } 1301 }
1302 1302
1303 checkUnnamed1710(core.List<api.QuotaError> o) { 1303 checkUnnamed1727(core.List<api.QuotaError> o) {
1304 unittest.expect(o, unittest.hasLength(2)); 1304 unittest.expect(o, unittest.hasLength(2));
1305 checkQuotaError(o[0]); 1305 checkQuotaError(o[0]);
1306 checkQuotaError(o[1]); 1306 checkQuotaError(o[1]);
1307 } 1307 }
1308 1308
1309 core.int buildCounterStartReconciliationResponse = 0; 1309 core.int buildCounterStartReconciliationResponse = 0;
1310 buildStartReconciliationResponse() { 1310 buildStartReconciliationResponse() {
1311 var o = new api.StartReconciliationResponse(); 1311 var o = new api.StartReconciliationResponse();
1312 buildCounterStartReconciliationResponse++; 1312 buildCounterStartReconciliationResponse++;
1313 if (buildCounterStartReconciliationResponse < 3) { 1313 if (buildCounterStartReconciliationResponse < 3) {
1314 o.operationId = "foo"; 1314 o.operationId = "foo";
1315 o.quotaMetrics = buildUnnamed1709(); 1315 o.quotaMetrics = buildUnnamed1726();
1316 o.reconciliationErrors = buildUnnamed1710(); 1316 o.reconciliationErrors = buildUnnamed1727();
1317 o.serviceConfigId = "foo"; 1317 o.serviceConfigId = "foo";
1318 } 1318 }
1319 buildCounterStartReconciliationResponse--; 1319 buildCounterStartReconciliationResponse--;
1320 return o; 1320 return o;
1321 } 1321 }
1322 1322
1323 checkStartReconciliationResponse(api.StartReconciliationResponse o) { 1323 checkStartReconciliationResponse(api.StartReconciliationResponse o) {
1324 buildCounterStartReconciliationResponse++; 1324 buildCounterStartReconciliationResponse++;
1325 if (buildCounterStartReconciliationResponse < 3) { 1325 if (buildCounterStartReconciliationResponse < 3) {
1326 unittest.expect(o.operationId, unittest.equals('foo')); 1326 unittest.expect(o.operationId, unittest.equals('foo'));
1327 checkUnnamed1709(o.quotaMetrics); 1327 checkUnnamed1726(o.quotaMetrics);
1328 checkUnnamed1710(o.reconciliationErrors); 1328 checkUnnamed1727(o.reconciliationErrors);
1329 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1329 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1330 } 1330 }
1331 buildCounterStartReconciliationResponse--; 1331 buildCounterStartReconciliationResponse--;
1332 } 1332 }
1333 1333
1334 buildUnnamed1711() { 1334 buildUnnamed1728() {
1335 var o = new core.Map<core.String, core.Object>(); 1335 var o = new core.Map<core.String, core.Object>();
1336 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1336 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1337 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1337 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1338 return o; 1338 return o;
1339 } 1339 }
1340 1340
1341 checkUnnamed1711(core.Map<core.String, core.Object> o) { 1341 checkUnnamed1728(core.Map<core.String, core.Object> o) {
1342 unittest.expect(o, unittest.hasLength(2)); 1342 unittest.expect(o, unittest.hasLength(2));
1343 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest .expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri ng"], unittest.equals('foo')); 1343 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest .expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri ng"], unittest.equals('foo'));
1344 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest .expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri ng"], unittest.equals('foo')); 1344 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest .expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri ng"], unittest.equals('foo'));
1345 } 1345 }
1346 1346
1347 buildUnnamed1712() { 1347 buildUnnamed1729() {
1348 var o = new core.List<core.Map<core.String, core.Object>>(); 1348 var o = new core.List<core.Map<core.String, core.Object>>();
1349 o.add(buildUnnamed1711()); 1349 o.add(buildUnnamed1728());
1350 o.add(buildUnnamed1711()); 1350 o.add(buildUnnamed1728());
1351 return o; 1351 return o;
1352 } 1352 }
1353 1353
1354 checkUnnamed1712(core.List<core.Map<core.String, core.Object>> o) { 1354 checkUnnamed1729(core.List<core.Map<core.String, core.Object>> o) {
1355 unittest.expect(o, unittest.hasLength(2)); 1355 unittest.expect(o, unittest.hasLength(2));
1356 checkUnnamed1711(o[0]); 1356 checkUnnamed1728(o[0]);
1357 checkUnnamed1711(o[1]); 1357 checkUnnamed1728(o[1]);
1358 } 1358 }
1359 1359
1360 core.int buildCounterStatus = 0; 1360 core.int buildCounterStatus = 0;
1361 buildStatus() { 1361 buildStatus() {
1362 var o = new api.Status(); 1362 var o = new api.Status();
1363 buildCounterStatus++; 1363 buildCounterStatus++;
1364 if (buildCounterStatus < 3) { 1364 if (buildCounterStatus < 3) {
1365 o.code = 42; 1365 o.code = 42;
1366 o.details = buildUnnamed1712(); 1366 o.details = buildUnnamed1729();
1367 o.message = "foo"; 1367 o.message = "foo";
1368 } 1368 }
1369 buildCounterStatus--; 1369 buildCounterStatus--;
1370 return o; 1370 return o;
1371 } 1371 }
1372 1372
1373 checkStatus(api.Status o) { 1373 checkStatus(api.Status o) {
1374 buildCounterStatus++; 1374 buildCounterStatus++;
1375 if (buildCounterStatus < 3) { 1375 if (buildCounterStatus < 3) {
1376 unittest.expect(o.code, unittest.equals(42)); 1376 unittest.expect(o.code, unittest.equals(42));
1377 checkUnnamed1712(o.details); 1377 checkUnnamed1729(o.details);
1378 unittest.expect(o.message, unittest.equals('foo')); 1378 unittest.expect(o.message, unittest.equals('foo'));
1379 } 1379 }
1380 buildCounterStatus--; 1380 buildCounterStatus--;
1381 } 1381 }
1382 1382
1383 1383
1384 main() { 1384 main() {
1385 unittest.group("obj-schema-AllocateQuotaRequest", () { 1385 unittest.group("obj-schema-AllocateQuotaRequest", () {
1386 unittest.test("to-json--from-json", () { 1386 unittest.test("to-json--from-json", () {
1387 var o = buildAllocateQuotaRequest(); 1387 var o = buildAllocateQuotaRequest();
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 res.startReconciliation(arg_request, arg_serviceName).then(unittest.expect Async1(((api.StartReconciliationResponse response) { 2026 res.startReconciliation(arg_request, arg_serviceName).then(unittest.expect Async1(((api.StartReconciliationResponse response) {
2027 checkStartReconciliationResponse(response); 2027 checkStartReconciliationResponse(response);
2028 }))); 2028 })));
2029 }); 2029 });
2030 2030
2031 }); 2031 });
2032 2032
2033 2033
2034 } 2034 }
2035 2035
OLDNEW
« no previous file with comments | « generated/googleapis/test/searchconsole/v1_test.dart ('k') | generated/googleapis/test/servicemanagement/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698