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

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

Issue 2987103002: Api-Roll 52: 2017-07-31 (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 buildUnnamed1645() { 77 buildUnnamed1677() {
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 checkUnnamed1645(core.List<api.QuotaError> o) { 84 checkUnnamed1677(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 buildUnnamed1646() { 90 buildUnnamed1678() {
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 checkUnnamed1646(core.List<api.MetricValueSet> o) { 97 checkUnnamed1678(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 = buildUnnamed1645(); 108 o.allocateErrors = buildUnnamed1677();
109 o.operationId = "foo"; 109 o.operationId = "foo";
110 o.quotaMetrics = buildUnnamed1646(); 110 o.quotaMetrics = buildUnnamed1678();
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 checkUnnamed1645(o.allocateErrors); 120 checkUnnamed1677(o.allocateErrors);
121 unittest.expect(o.operationId, unittest.equals('foo')); 121 unittest.expect(o.operationId, unittest.equals('foo'));
122 checkUnnamed1646(o.quotaMetrics); 122 checkUnnamed1678(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 buildUnnamed1647() { 128 buildUnnamed1679() {
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 checkUnnamed1647(core.List<api.AuthorizationInfo> o) { 135 checkUnnamed1679(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 buildUnnamed1648() { 141 buildUnnamed1680() {
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 checkUnnamed1648(core.Map<core.String, core.Object> o) { 148 checkUnnamed1680(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 buildUnnamed1649() { 154 buildUnnamed1681() {
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 checkUnnamed1649(core.Map<core.String, core.Object> o) { 161 checkUnnamed1681(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 buildUnnamed1650() { 167 buildUnnamed1682() {
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 checkUnnamed1650(core.Map<core.String, core.Object> o) { 174 checkUnnamed1682(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 = buildUnnamed1647(); 186 o.authorizationInfo = buildUnnamed1679();
187 o.methodName = "foo"; 187 o.methodName = "foo";
188 o.numResponseItems = "foo"; 188 o.numResponseItems = "foo";
189 o.request = buildUnnamed1648(); 189 o.request = buildUnnamed1680();
190 o.requestMetadata = buildRequestMetadata(); 190 o.requestMetadata = buildRequestMetadata();
191 o.resourceName = "foo"; 191 o.resourceName = "foo";
192 o.response = buildUnnamed1649(); 192 o.response = buildUnnamed1681();
193 o.serviceData = buildUnnamed1650(); 193 o.serviceData = buildUnnamed1682();
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 checkUnnamed1647(o.authorizationInfo); 205 checkUnnamed1679(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 checkUnnamed1648(o.request); 208 checkUnnamed1680(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 checkUnnamed1649(o.response); 211 checkUnnamed1681(o.response);
212 checkUnnamed1650(o.serviceData); 212 checkUnnamed1682(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 buildUnnamed1651() { 284 buildUnnamed1683() {
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 checkUnnamed1651(core.List<core.String> o) { 291 checkUnnamed1683(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.unusedArguments = buildUnnamed1651(); 302 o.consumerInfo = buildConsumerInfo();
303 o.unusedArguments = buildUnnamed1683();
303 } 304 }
304 buildCounterCheckInfo--; 305 buildCounterCheckInfo--;
305 return o; 306 return o;
306 } 307 }
307 308
308 checkCheckInfo(api.CheckInfo o) { 309 checkCheckInfo(api.CheckInfo o) {
309 buildCounterCheckInfo++; 310 buildCounterCheckInfo++;
310 if (buildCounterCheckInfo < 3) { 311 if (buildCounterCheckInfo < 3) {
311 checkUnnamed1651(o.unusedArguments); 312 checkConsumerInfo(o.consumerInfo);
313 checkUnnamed1683(o.unusedArguments);
312 } 314 }
313 buildCounterCheckInfo--; 315 buildCounterCheckInfo--;
314 } 316 }
315 317
316 core.int buildCounterCheckRequest = 0; 318 core.int buildCounterCheckRequest = 0;
317 buildCheckRequest() { 319 buildCheckRequest() {
318 var o = new api.CheckRequest(); 320 var o = new api.CheckRequest();
319 buildCounterCheckRequest++; 321 buildCounterCheckRequest++;
320 if (buildCounterCheckRequest < 3) { 322 if (buildCounterCheckRequest < 3) {
321 o.operation = buildOperation(); 323 o.operation = buildOperation();
322 o.requestProjectSettings = true; 324 o.requestProjectSettings = true;
323 o.serviceConfigId = "foo"; 325 o.serviceConfigId = "foo";
324 o.skipActivationCheck = true; 326 o.skipActivationCheck = true;
325 } 327 }
326 buildCounterCheckRequest--; 328 buildCounterCheckRequest--;
327 return o; 329 return o;
328 } 330 }
329 331
330 checkCheckRequest(api.CheckRequest o) { 332 checkCheckRequest(api.CheckRequest o) {
331 buildCounterCheckRequest++; 333 buildCounterCheckRequest++;
332 if (buildCounterCheckRequest < 3) { 334 if (buildCounterCheckRequest < 3) {
333 checkOperation(o.operation); 335 checkOperation(o.operation);
334 unittest.expect(o.requestProjectSettings, unittest.isTrue); 336 unittest.expect(o.requestProjectSettings, unittest.isTrue);
335 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 337 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
336 unittest.expect(o.skipActivationCheck, unittest.isTrue); 338 unittest.expect(o.skipActivationCheck, unittest.isTrue);
337 } 339 }
338 buildCounterCheckRequest--; 340 buildCounterCheckRequest--;
339 } 341 }
340 342
341 buildUnnamed1652() { 343 buildUnnamed1684() {
342 var o = new core.List<api.CheckError>(); 344 var o = new core.List<api.CheckError>();
343 o.add(buildCheckError()); 345 o.add(buildCheckError());
344 o.add(buildCheckError()); 346 o.add(buildCheckError());
345 return o; 347 return o;
346 } 348 }
347 349
348 checkUnnamed1652(core.List<api.CheckError> o) { 350 checkUnnamed1684(core.List<api.CheckError> o) {
349 unittest.expect(o, unittest.hasLength(2)); 351 unittest.expect(o, unittest.hasLength(2));
350 checkCheckError(o[0]); 352 checkCheckError(o[0]);
351 checkCheckError(o[1]); 353 checkCheckError(o[1]);
352 } 354 }
353 355
354 core.int buildCounterCheckResponse = 0; 356 core.int buildCounterCheckResponse = 0;
355 buildCheckResponse() { 357 buildCheckResponse() {
356 var o = new api.CheckResponse(); 358 var o = new api.CheckResponse();
357 buildCounterCheckResponse++; 359 buildCounterCheckResponse++;
358 if (buildCounterCheckResponse < 3) { 360 if (buildCounterCheckResponse < 3) {
359 o.checkErrors = buildUnnamed1652(); 361 o.checkErrors = buildUnnamed1684();
360 o.checkInfo = buildCheckInfo(); 362 o.checkInfo = buildCheckInfo();
361 o.operationId = "foo"; 363 o.operationId = "foo";
362 o.quotaInfo = buildQuotaInfo(); 364 o.quotaInfo = buildQuotaInfo();
363 o.serviceConfigId = "foo"; 365 o.serviceConfigId = "foo";
364 } 366 }
365 buildCounterCheckResponse--; 367 buildCounterCheckResponse--;
366 return o; 368 return o;
367 } 369 }
368 370
369 checkCheckResponse(api.CheckResponse o) { 371 checkCheckResponse(api.CheckResponse o) {
370 buildCounterCheckResponse++; 372 buildCounterCheckResponse++;
371 if (buildCounterCheckResponse < 3) { 373 if (buildCounterCheckResponse < 3) {
372 checkUnnamed1652(o.checkErrors); 374 checkUnnamed1684(o.checkErrors);
373 checkCheckInfo(o.checkInfo); 375 checkCheckInfo(o.checkInfo);
374 unittest.expect(o.operationId, unittest.equals('foo')); 376 unittest.expect(o.operationId, unittest.equals('foo'));
375 checkQuotaInfo(o.quotaInfo); 377 checkQuotaInfo(o.quotaInfo);
376 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 378 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
377 } 379 }
378 buildCounterCheckResponse--; 380 buildCounterCheckResponse--;
379 } 381 }
380 382
381 buildUnnamed1653() { 383 core.int buildCounterConsumerInfo = 0;
384 buildConsumerInfo() {
385 var o = new api.ConsumerInfo();
386 buildCounterConsumerInfo++;
387 if (buildCounterConsumerInfo < 3) {
388 o.projectNumber = "foo";
389 }
390 buildCounterConsumerInfo--;
391 return o;
392 }
393
394 checkConsumerInfo(api.ConsumerInfo o) {
395 buildCounterConsumerInfo++;
396 if (buildCounterConsumerInfo < 3) {
397 unittest.expect(o.projectNumber, unittest.equals('foo'));
398 }
399 buildCounterConsumerInfo--;
400 }
401
402 buildUnnamed1685() {
382 var o = new core.List<core.String>(); 403 var o = new core.List<core.String>();
383 o.add("foo"); 404 o.add("foo");
384 o.add("foo"); 405 o.add("foo");
385 return o; 406 return o;
386 } 407 }
387 408
388 checkUnnamed1653(core.List<core.String> o) { 409 checkUnnamed1685(core.List<core.String> o) {
389 unittest.expect(o, unittest.hasLength(2)); 410 unittest.expect(o, unittest.hasLength(2));
390 unittest.expect(o[0], unittest.equals('foo')); 411 unittest.expect(o[0], unittest.equals('foo'));
391 unittest.expect(o[1], unittest.equals('foo')); 412 unittest.expect(o[1], unittest.equals('foo'));
392 } 413 }
393 414
394 core.int buildCounterDistribution = 0; 415 core.int buildCounterDistribution = 0;
395 buildDistribution() { 416 buildDistribution() {
396 var o = new api.Distribution(); 417 var o = new api.Distribution();
397 buildCounterDistribution++; 418 buildCounterDistribution++;
398 if (buildCounterDistribution < 3) { 419 if (buildCounterDistribution < 3) {
399 o.bucketCounts = buildUnnamed1653(); 420 o.bucketCounts = buildUnnamed1685();
400 o.count = "foo"; 421 o.count = "foo";
401 o.explicitBuckets = buildExplicitBuckets(); 422 o.explicitBuckets = buildExplicitBuckets();
402 o.exponentialBuckets = buildExponentialBuckets(); 423 o.exponentialBuckets = buildExponentialBuckets();
403 o.linearBuckets = buildLinearBuckets(); 424 o.linearBuckets = buildLinearBuckets();
404 o.maximum = 42.0; 425 o.maximum = 42.0;
405 o.mean = 42.0; 426 o.mean = 42.0;
406 o.minimum = 42.0; 427 o.minimum = 42.0;
407 o.sumOfSquaredDeviation = 42.0; 428 o.sumOfSquaredDeviation = 42.0;
408 } 429 }
409 buildCounterDistribution--; 430 buildCounterDistribution--;
410 return o; 431 return o;
411 } 432 }
412 433
413 checkDistribution(api.Distribution o) { 434 checkDistribution(api.Distribution o) {
414 buildCounterDistribution++; 435 buildCounterDistribution++;
415 if (buildCounterDistribution < 3) { 436 if (buildCounterDistribution < 3) {
416 checkUnnamed1653(o.bucketCounts); 437 checkUnnamed1685(o.bucketCounts);
417 unittest.expect(o.count, unittest.equals('foo')); 438 unittest.expect(o.count, unittest.equals('foo'));
418 checkExplicitBuckets(o.explicitBuckets); 439 checkExplicitBuckets(o.explicitBuckets);
419 checkExponentialBuckets(o.exponentialBuckets); 440 checkExponentialBuckets(o.exponentialBuckets);
420 checkLinearBuckets(o.linearBuckets); 441 checkLinearBuckets(o.linearBuckets);
421 unittest.expect(o.maximum, unittest.equals(42.0)); 442 unittest.expect(o.maximum, unittest.equals(42.0));
422 unittest.expect(o.mean, unittest.equals(42.0)); 443 unittest.expect(o.mean, unittest.equals(42.0));
423 unittest.expect(o.minimum, unittest.equals(42.0)); 444 unittest.expect(o.minimum, unittest.equals(42.0));
424 unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0)); 445 unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0));
425 } 446 }
426 buildCounterDistribution--; 447 buildCounterDistribution--;
(...skipping 13 matching lines...) Expand all
440 461
441 checkEndReconciliationRequest(api.EndReconciliationRequest o) { 462 checkEndReconciliationRequest(api.EndReconciliationRequest o) {
442 buildCounterEndReconciliationRequest++; 463 buildCounterEndReconciliationRequest++;
443 if (buildCounterEndReconciliationRequest < 3) { 464 if (buildCounterEndReconciliationRequest < 3) {
444 checkQuotaOperation(o.reconciliationOperation); 465 checkQuotaOperation(o.reconciliationOperation);
445 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 466 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
446 } 467 }
447 buildCounterEndReconciliationRequest--; 468 buildCounterEndReconciliationRequest--;
448 } 469 }
449 470
450 buildUnnamed1654() { 471 buildUnnamed1686() {
451 var o = new core.List<api.MetricValueSet>(); 472 var o = new core.List<api.MetricValueSet>();
452 o.add(buildMetricValueSet()); 473 o.add(buildMetricValueSet());
453 o.add(buildMetricValueSet()); 474 o.add(buildMetricValueSet());
454 return o; 475 return o;
455 } 476 }
456 477
457 checkUnnamed1654(core.List<api.MetricValueSet> o) { 478 checkUnnamed1686(core.List<api.MetricValueSet> o) {
458 unittest.expect(o, unittest.hasLength(2)); 479 unittest.expect(o, unittest.hasLength(2));
459 checkMetricValueSet(o[0]); 480 checkMetricValueSet(o[0]);
460 checkMetricValueSet(o[1]); 481 checkMetricValueSet(o[1]);
461 } 482 }
462 483
463 buildUnnamed1655() { 484 buildUnnamed1687() {
464 var o = new core.List<api.QuotaError>(); 485 var o = new core.List<api.QuotaError>();
465 o.add(buildQuotaError()); 486 o.add(buildQuotaError());
466 o.add(buildQuotaError()); 487 o.add(buildQuotaError());
467 return o; 488 return o;
468 } 489 }
469 490
470 checkUnnamed1655(core.List<api.QuotaError> o) { 491 checkUnnamed1687(core.List<api.QuotaError> o) {
471 unittest.expect(o, unittest.hasLength(2)); 492 unittest.expect(o, unittest.hasLength(2));
472 checkQuotaError(o[0]); 493 checkQuotaError(o[0]);
473 checkQuotaError(o[1]); 494 checkQuotaError(o[1]);
474 } 495 }
475 496
476 core.int buildCounterEndReconciliationResponse = 0; 497 core.int buildCounterEndReconciliationResponse = 0;
477 buildEndReconciliationResponse() { 498 buildEndReconciliationResponse() {
478 var o = new api.EndReconciliationResponse(); 499 var o = new api.EndReconciliationResponse();
479 buildCounterEndReconciliationResponse++; 500 buildCounterEndReconciliationResponse++;
480 if (buildCounterEndReconciliationResponse < 3) { 501 if (buildCounterEndReconciliationResponse < 3) {
481 o.operationId = "foo"; 502 o.operationId = "foo";
482 o.quotaMetrics = buildUnnamed1654(); 503 o.quotaMetrics = buildUnnamed1686();
483 o.reconciliationErrors = buildUnnamed1655(); 504 o.reconciliationErrors = buildUnnamed1687();
484 o.serviceConfigId = "foo"; 505 o.serviceConfigId = "foo";
485 } 506 }
486 buildCounterEndReconciliationResponse--; 507 buildCounterEndReconciliationResponse--;
487 return o; 508 return o;
488 } 509 }
489 510
490 checkEndReconciliationResponse(api.EndReconciliationResponse o) { 511 checkEndReconciliationResponse(api.EndReconciliationResponse o) {
491 buildCounterEndReconciliationResponse++; 512 buildCounterEndReconciliationResponse++;
492 if (buildCounterEndReconciliationResponse < 3) { 513 if (buildCounterEndReconciliationResponse < 3) {
493 unittest.expect(o.operationId, unittest.equals('foo')); 514 unittest.expect(o.operationId, unittest.equals('foo'));
494 checkUnnamed1654(o.quotaMetrics); 515 checkUnnamed1686(o.quotaMetrics);
495 checkUnnamed1655(o.reconciliationErrors); 516 checkUnnamed1687(o.reconciliationErrors);
496 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 517 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
497 } 518 }
498 buildCounterEndReconciliationResponse--; 519 buildCounterEndReconciliationResponse--;
499 } 520 }
500 521
501 buildUnnamed1656() { 522 buildUnnamed1688() {
502 var o = new core.List<core.double>(); 523 var o = new core.List<core.double>();
503 o.add(42.0); 524 o.add(42.0);
504 o.add(42.0); 525 o.add(42.0);
505 return o; 526 return o;
506 } 527 }
507 528
508 checkUnnamed1656(core.List<core.double> o) { 529 checkUnnamed1688(core.List<core.double> o) {
509 unittest.expect(o, unittest.hasLength(2)); 530 unittest.expect(o, unittest.hasLength(2));
510 unittest.expect(o[0], unittest.equals(42.0)); 531 unittest.expect(o[0], unittest.equals(42.0));
511 unittest.expect(o[1], unittest.equals(42.0)); 532 unittest.expect(o[1], unittest.equals(42.0));
512 } 533 }
513 534
514 core.int buildCounterExplicitBuckets = 0; 535 core.int buildCounterExplicitBuckets = 0;
515 buildExplicitBuckets() { 536 buildExplicitBuckets() {
516 var o = new api.ExplicitBuckets(); 537 var o = new api.ExplicitBuckets();
517 buildCounterExplicitBuckets++; 538 buildCounterExplicitBuckets++;
518 if (buildCounterExplicitBuckets < 3) { 539 if (buildCounterExplicitBuckets < 3) {
519 o.bounds = buildUnnamed1656(); 540 o.bounds = buildUnnamed1688();
520 } 541 }
521 buildCounterExplicitBuckets--; 542 buildCounterExplicitBuckets--;
522 return o; 543 return o;
523 } 544 }
524 545
525 checkExplicitBuckets(api.ExplicitBuckets o) { 546 checkExplicitBuckets(api.ExplicitBuckets o) {
526 buildCounterExplicitBuckets++; 547 buildCounterExplicitBuckets++;
527 if (buildCounterExplicitBuckets < 3) { 548 if (buildCounterExplicitBuckets < 3) {
528 checkUnnamed1656(o.bounds); 549 checkUnnamed1688(o.bounds);
529 } 550 }
530 buildCounterExplicitBuckets--; 551 buildCounterExplicitBuckets--;
531 } 552 }
532 553
533 core.int buildCounterExponentialBuckets = 0; 554 core.int buildCounterExponentialBuckets = 0;
534 buildExponentialBuckets() { 555 buildExponentialBuckets() {
535 var o = new api.ExponentialBuckets(); 556 var o = new api.ExponentialBuckets();
536 buildCounterExponentialBuckets++; 557 buildCounterExponentialBuckets++;
537 if (buildCounterExponentialBuckets < 3) { 558 if (buildCounterExponentialBuckets < 3) {
538 o.growthFactor = 42.0; 559 o.growthFactor = 42.0;
(...skipping 30 matching lines...) Expand all
569 checkLinearBuckets(api.LinearBuckets o) { 590 checkLinearBuckets(api.LinearBuckets o) {
570 buildCounterLinearBuckets++; 591 buildCounterLinearBuckets++;
571 if (buildCounterLinearBuckets < 3) { 592 if (buildCounterLinearBuckets < 3) {
572 unittest.expect(o.numFiniteBuckets, unittest.equals(42)); 593 unittest.expect(o.numFiniteBuckets, unittest.equals(42));
573 unittest.expect(o.offset, unittest.equals(42.0)); 594 unittest.expect(o.offset, unittest.equals(42.0));
574 unittest.expect(o.width, unittest.equals(42.0)); 595 unittest.expect(o.width, unittest.equals(42.0));
575 } 596 }
576 buildCounterLinearBuckets--; 597 buildCounterLinearBuckets--;
577 } 598 }
578 599
579 buildUnnamed1657() { 600 buildUnnamed1689() {
580 var o = new core.Map<core.String, core.String>(); 601 var o = new core.Map<core.String, core.String>();
581 o["x"] = "foo"; 602 o["x"] = "foo";
582 o["y"] = "foo"; 603 o["y"] = "foo";
583 return o; 604 return o;
584 } 605 }
585 606
586 checkUnnamed1657(core.Map<core.String, core.String> o) { 607 checkUnnamed1689(core.Map<core.String, core.String> o) {
587 unittest.expect(o, unittest.hasLength(2)); 608 unittest.expect(o, unittest.hasLength(2));
588 unittest.expect(o["x"], unittest.equals('foo')); 609 unittest.expect(o["x"], unittest.equals('foo'));
589 unittest.expect(o["y"], unittest.equals('foo')); 610 unittest.expect(o["y"], unittest.equals('foo'));
590 } 611 }
591 612
592 buildUnnamed1658() { 613 buildUnnamed1690() {
593 var o = new core.Map<core.String, core.Object>(); 614 var o = new core.Map<core.String, core.Object>();
594 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 615 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
595 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 616 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
596 return o; 617 return o;
597 } 618 }
598 619
599 checkUnnamed1658(core.Map<core.String, core.Object> o) { 620 checkUnnamed1690(core.Map<core.String, core.Object> o) {
600 unittest.expect(o, unittest.hasLength(2)); 621 unittest.expect(o, unittest.hasLength(2));
601 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'));
602 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'));
603 } 624 }
604 625
605 buildUnnamed1659() { 626 buildUnnamed1691() {
606 var o = new core.Map<core.String, core.Object>(); 627 var o = new core.Map<core.String, core.Object>();
607 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 628 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
608 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 629 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
609 return o; 630 return o;
610 } 631 }
611 632
612 checkUnnamed1659(core.Map<core.String, core.Object> o) { 633 checkUnnamed1691(core.Map<core.String, core.Object> o) {
613 unittest.expect(o, unittest.hasLength(2)); 634 unittest.expect(o, unittest.hasLength(2));
614 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'));
615 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'));
616 } 637 }
617 638
618 core.int buildCounterLogEntry = 0; 639 core.int buildCounterLogEntry = 0;
619 buildLogEntry() { 640 buildLogEntry() {
620 var o = new api.LogEntry(); 641 var o = new api.LogEntry();
621 buildCounterLogEntry++; 642 buildCounterLogEntry++;
622 if (buildCounterLogEntry < 3) { 643 if (buildCounterLogEntry < 3) {
623 o.insertId = "foo"; 644 o.insertId = "foo";
624 o.labels = buildUnnamed1657(); 645 o.labels = buildUnnamed1689();
625 o.name = "foo"; 646 o.name = "foo";
626 o.protoPayload = buildUnnamed1658(); 647 o.protoPayload = buildUnnamed1690();
627 o.severity = "foo"; 648 o.severity = "foo";
628 o.structPayload = buildUnnamed1659(); 649 o.structPayload = buildUnnamed1691();
629 o.textPayload = "foo"; 650 o.textPayload = "foo";
630 o.timestamp = "foo"; 651 o.timestamp = "foo";
631 } 652 }
632 buildCounterLogEntry--; 653 buildCounterLogEntry--;
633 return o; 654 return o;
634 } 655 }
635 656
636 checkLogEntry(api.LogEntry o) { 657 checkLogEntry(api.LogEntry o) {
637 buildCounterLogEntry++; 658 buildCounterLogEntry++;
638 if (buildCounterLogEntry < 3) { 659 if (buildCounterLogEntry < 3) {
639 unittest.expect(o.insertId, unittest.equals('foo')); 660 unittest.expect(o.insertId, unittest.equals('foo'));
640 checkUnnamed1657(o.labels); 661 checkUnnamed1689(o.labels);
641 unittest.expect(o.name, unittest.equals('foo')); 662 unittest.expect(o.name, unittest.equals('foo'));
642 checkUnnamed1658(o.protoPayload); 663 checkUnnamed1690(o.protoPayload);
643 unittest.expect(o.severity, unittest.equals('foo')); 664 unittest.expect(o.severity, unittest.equals('foo'));
644 checkUnnamed1659(o.structPayload); 665 checkUnnamed1691(o.structPayload);
645 unittest.expect(o.textPayload, unittest.equals('foo')); 666 unittest.expect(o.textPayload, unittest.equals('foo'));
646 unittest.expect(o.timestamp, unittest.equals('foo')); 667 unittest.expect(o.timestamp, unittest.equals('foo'));
647 } 668 }
648 buildCounterLogEntry--; 669 buildCounterLogEntry--;
649 } 670 }
650 671
651 buildUnnamed1660() { 672 buildUnnamed1692() {
652 var o = new core.Map<core.String, core.String>(); 673 var o = new core.Map<core.String, core.String>();
653 o["x"] = "foo"; 674 o["x"] = "foo";
654 o["y"] = "foo"; 675 o["y"] = "foo";
655 return o; 676 return o;
656 } 677 }
657 678
658 checkUnnamed1660(core.Map<core.String, core.String> o) { 679 checkUnnamed1692(core.Map<core.String, core.String> o) {
659 unittest.expect(o, unittest.hasLength(2)); 680 unittest.expect(o, unittest.hasLength(2));
660 unittest.expect(o["x"], unittest.equals('foo')); 681 unittest.expect(o["x"], unittest.equals('foo'));
661 unittest.expect(o["y"], unittest.equals('foo')); 682 unittest.expect(o["y"], unittest.equals('foo'));
662 } 683 }
663 684
664 core.int buildCounterMetricValue = 0; 685 core.int buildCounterMetricValue = 0;
665 buildMetricValue() { 686 buildMetricValue() {
666 var o = new api.MetricValue(); 687 var o = new api.MetricValue();
667 buildCounterMetricValue++; 688 buildCounterMetricValue++;
668 if (buildCounterMetricValue < 3) { 689 if (buildCounterMetricValue < 3) {
669 o.boolValue = true; 690 o.boolValue = true;
670 o.distributionValue = buildDistribution(); 691 o.distributionValue = buildDistribution();
671 o.doubleValue = 42.0; 692 o.doubleValue = 42.0;
672 o.endTime = "foo"; 693 o.endTime = "foo";
673 o.int64Value = "foo"; 694 o.int64Value = "foo";
674 o.labels = buildUnnamed1660(); 695 o.labels = buildUnnamed1692();
675 o.moneyValue = buildMoney(); 696 o.moneyValue = buildMoney();
676 o.startTime = "foo"; 697 o.startTime = "foo";
677 o.stringValue = "foo"; 698 o.stringValue = "foo";
678 } 699 }
679 buildCounterMetricValue--; 700 buildCounterMetricValue--;
680 return o; 701 return o;
681 } 702 }
682 703
683 checkMetricValue(api.MetricValue o) { 704 checkMetricValue(api.MetricValue o) {
684 buildCounterMetricValue++; 705 buildCounterMetricValue++;
685 if (buildCounterMetricValue < 3) { 706 if (buildCounterMetricValue < 3) {
686 unittest.expect(o.boolValue, unittest.isTrue); 707 unittest.expect(o.boolValue, unittest.isTrue);
687 checkDistribution(o.distributionValue); 708 checkDistribution(o.distributionValue);
688 unittest.expect(o.doubleValue, unittest.equals(42.0)); 709 unittest.expect(o.doubleValue, unittest.equals(42.0));
689 unittest.expect(o.endTime, unittest.equals('foo')); 710 unittest.expect(o.endTime, unittest.equals('foo'));
690 unittest.expect(o.int64Value, unittest.equals('foo')); 711 unittest.expect(o.int64Value, unittest.equals('foo'));
691 checkUnnamed1660(o.labels); 712 checkUnnamed1692(o.labels);
692 checkMoney(o.moneyValue); 713 checkMoney(o.moneyValue);
693 unittest.expect(o.startTime, unittest.equals('foo')); 714 unittest.expect(o.startTime, unittest.equals('foo'));
694 unittest.expect(o.stringValue, unittest.equals('foo')); 715 unittest.expect(o.stringValue, unittest.equals('foo'));
695 } 716 }
696 buildCounterMetricValue--; 717 buildCounterMetricValue--;
697 } 718 }
698 719
699 buildUnnamed1661() { 720 buildUnnamed1693() {
700 var o = new core.List<api.MetricValue>(); 721 var o = new core.List<api.MetricValue>();
701 o.add(buildMetricValue()); 722 o.add(buildMetricValue());
702 o.add(buildMetricValue()); 723 o.add(buildMetricValue());
703 return o; 724 return o;
704 } 725 }
705 726
706 checkUnnamed1661(core.List<api.MetricValue> o) { 727 checkUnnamed1693(core.List<api.MetricValue> o) {
707 unittest.expect(o, unittest.hasLength(2)); 728 unittest.expect(o, unittest.hasLength(2));
708 checkMetricValue(o[0]); 729 checkMetricValue(o[0]);
709 checkMetricValue(o[1]); 730 checkMetricValue(o[1]);
710 } 731 }
711 732
712 core.int buildCounterMetricValueSet = 0; 733 core.int buildCounterMetricValueSet = 0;
713 buildMetricValueSet() { 734 buildMetricValueSet() {
714 var o = new api.MetricValueSet(); 735 var o = new api.MetricValueSet();
715 buildCounterMetricValueSet++; 736 buildCounterMetricValueSet++;
716 if (buildCounterMetricValueSet < 3) { 737 if (buildCounterMetricValueSet < 3) {
717 o.metricName = "foo"; 738 o.metricName = "foo";
718 o.metricValues = buildUnnamed1661(); 739 o.metricValues = buildUnnamed1693();
719 } 740 }
720 buildCounterMetricValueSet--; 741 buildCounterMetricValueSet--;
721 return o; 742 return o;
722 } 743 }
723 744
724 checkMetricValueSet(api.MetricValueSet o) { 745 checkMetricValueSet(api.MetricValueSet o) {
725 buildCounterMetricValueSet++; 746 buildCounterMetricValueSet++;
726 if (buildCounterMetricValueSet < 3) { 747 if (buildCounterMetricValueSet < 3) {
727 unittest.expect(o.metricName, unittest.equals('foo')); 748 unittest.expect(o.metricName, unittest.equals('foo'));
728 checkUnnamed1661(o.metricValues); 749 checkUnnamed1693(o.metricValues);
729 } 750 }
730 buildCounterMetricValueSet--; 751 buildCounterMetricValueSet--;
731 } 752 }
732 753
733 core.int buildCounterMoney = 0; 754 core.int buildCounterMoney = 0;
734 buildMoney() { 755 buildMoney() {
735 var o = new api.Money(); 756 var o = new api.Money();
736 buildCounterMoney++; 757 buildCounterMoney++;
737 if (buildCounterMoney < 3) { 758 if (buildCounterMoney < 3) {
738 o.currencyCode = "foo"; 759 o.currencyCode = "foo";
739 o.nanos = 42; 760 o.nanos = 42;
740 o.units = "foo"; 761 o.units = "foo";
741 } 762 }
742 buildCounterMoney--; 763 buildCounterMoney--;
743 return o; 764 return o;
744 } 765 }
745 766
746 checkMoney(api.Money o) { 767 checkMoney(api.Money o) {
747 buildCounterMoney++; 768 buildCounterMoney++;
748 if (buildCounterMoney < 3) { 769 if (buildCounterMoney < 3) {
749 unittest.expect(o.currencyCode, unittest.equals('foo')); 770 unittest.expect(o.currencyCode, unittest.equals('foo'));
750 unittest.expect(o.nanos, unittest.equals(42)); 771 unittest.expect(o.nanos, unittest.equals(42));
751 unittest.expect(o.units, unittest.equals('foo')); 772 unittest.expect(o.units, unittest.equals('foo'));
752 } 773 }
753 buildCounterMoney--; 774 buildCounterMoney--;
754 } 775 }
755 776
756 buildUnnamed1662() { 777 buildUnnamed1694() {
757 var o = new core.Map<core.String, core.String>(); 778 var o = new core.Map<core.String, core.String>();
758 o["x"] = "foo"; 779 o["x"] = "foo";
759 o["y"] = "foo"; 780 o["y"] = "foo";
760 return o; 781 return o;
761 } 782 }
762 783
763 checkUnnamed1662(core.Map<core.String, core.String> o) { 784 checkUnnamed1694(core.Map<core.String, core.String> o) {
764 unittest.expect(o, unittest.hasLength(2)); 785 unittest.expect(o, unittest.hasLength(2));
765 unittest.expect(o["x"], unittest.equals('foo')); 786 unittest.expect(o["x"], unittest.equals('foo'));
766 unittest.expect(o["y"], unittest.equals('foo')); 787 unittest.expect(o["y"], unittest.equals('foo'));
767 } 788 }
768 789
769 buildUnnamed1663() { 790 buildUnnamed1695() {
770 var o = new core.List<api.LogEntry>(); 791 var o = new core.List<api.LogEntry>();
771 o.add(buildLogEntry()); 792 o.add(buildLogEntry());
772 o.add(buildLogEntry()); 793 o.add(buildLogEntry());
773 return o; 794 return o;
774 } 795 }
775 796
776 checkUnnamed1663(core.List<api.LogEntry> o) { 797 checkUnnamed1695(core.List<api.LogEntry> o) {
777 unittest.expect(o, unittest.hasLength(2)); 798 unittest.expect(o, unittest.hasLength(2));
778 checkLogEntry(o[0]); 799 checkLogEntry(o[0]);
779 checkLogEntry(o[1]); 800 checkLogEntry(o[1]);
780 } 801 }
781 802
782 buildUnnamed1664() { 803 buildUnnamed1696() {
783 var o = new core.List<api.MetricValueSet>(); 804 var o = new core.List<api.MetricValueSet>();
784 o.add(buildMetricValueSet()); 805 o.add(buildMetricValueSet());
785 o.add(buildMetricValueSet()); 806 o.add(buildMetricValueSet());
786 return o; 807 return o;
787 } 808 }
788 809
789 checkUnnamed1664(core.List<api.MetricValueSet> o) { 810 checkUnnamed1696(core.List<api.MetricValueSet> o) {
790 unittest.expect(o, unittest.hasLength(2)); 811 unittest.expect(o, unittest.hasLength(2));
791 checkMetricValueSet(o[0]); 812 checkMetricValueSet(o[0]);
792 checkMetricValueSet(o[1]); 813 checkMetricValueSet(o[1]);
793 } 814 }
794 815
795 buildUnnamed1665() { 816 buildUnnamed1697() {
796 var o = new core.Map<core.String, core.String>(); 817 var o = new core.Map<core.String, core.String>();
797 o["x"] = "foo"; 818 o["x"] = "foo";
798 o["y"] = "foo"; 819 o["y"] = "foo";
799 return o; 820 return o;
800 } 821 }
801 822
802 checkUnnamed1665(core.Map<core.String, core.String> o) { 823 checkUnnamed1697(core.Map<core.String, core.String> o) {
803 unittest.expect(o, unittest.hasLength(2)); 824 unittest.expect(o, unittest.hasLength(2));
804 unittest.expect(o["x"], unittest.equals('foo')); 825 unittest.expect(o["x"], unittest.equals('foo'));
805 unittest.expect(o["y"], unittest.equals('foo')); 826 unittest.expect(o["y"], unittest.equals('foo'));
806 } 827 }
807 828
808 core.int buildCounterOperation = 0; 829 core.int buildCounterOperation = 0;
809 buildOperation() { 830 buildOperation() {
810 var o = new api.Operation(); 831 var o = new api.Operation();
811 buildCounterOperation++; 832 buildCounterOperation++;
812 if (buildCounterOperation < 3) { 833 if (buildCounterOperation < 3) {
813 o.consumerId = "foo"; 834 o.consumerId = "foo";
814 o.endTime = "foo"; 835 o.endTime = "foo";
815 o.importance = "foo"; 836 o.importance = "foo";
816 o.labels = buildUnnamed1662(); 837 o.labels = buildUnnamed1694();
817 o.logEntries = buildUnnamed1663(); 838 o.logEntries = buildUnnamed1695();
818 o.metricValueSets = buildUnnamed1664(); 839 o.metricValueSets = buildUnnamed1696();
819 o.operationId = "foo"; 840 o.operationId = "foo";
820 o.operationName = "foo"; 841 o.operationName = "foo";
821 o.quotaProperties = buildQuotaProperties(); 842 o.quotaProperties = buildQuotaProperties();
822 o.resourceContainer = "foo"; 843 o.resourceContainer = "foo";
823 o.startTime = "foo"; 844 o.startTime = "foo";
824 o.userLabels = buildUnnamed1665(); 845 o.userLabels = buildUnnamed1697();
825 } 846 }
826 buildCounterOperation--; 847 buildCounterOperation--;
827 return o; 848 return o;
828 } 849 }
829 850
830 checkOperation(api.Operation o) { 851 checkOperation(api.Operation o) {
831 buildCounterOperation++; 852 buildCounterOperation++;
832 if (buildCounterOperation < 3) { 853 if (buildCounterOperation < 3) {
833 unittest.expect(o.consumerId, unittest.equals('foo')); 854 unittest.expect(o.consumerId, unittest.equals('foo'));
834 unittest.expect(o.endTime, unittest.equals('foo')); 855 unittest.expect(o.endTime, unittest.equals('foo'));
835 unittest.expect(o.importance, unittest.equals('foo')); 856 unittest.expect(o.importance, unittest.equals('foo'));
836 checkUnnamed1662(o.labels); 857 checkUnnamed1694(o.labels);
837 checkUnnamed1663(o.logEntries); 858 checkUnnamed1695(o.logEntries);
838 checkUnnamed1664(o.metricValueSets); 859 checkUnnamed1696(o.metricValueSets);
839 unittest.expect(o.operationId, unittest.equals('foo')); 860 unittest.expect(o.operationId, unittest.equals('foo'));
840 unittest.expect(o.operationName, unittest.equals('foo')); 861 unittest.expect(o.operationName, unittest.equals('foo'));
841 checkQuotaProperties(o.quotaProperties); 862 checkQuotaProperties(o.quotaProperties);
842 unittest.expect(o.resourceContainer, unittest.equals('foo')); 863 unittest.expect(o.resourceContainer, unittest.equals('foo'));
843 unittest.expect(o.startTime, unittest.equals('foo')); 864 unittest.expect(o.startTime, unittest.equals('foo'));
844 checkUnnamed1665(o.userLabels); 865 checkUnnamed1697(o.userLabels);
845 } 866 }
846 buildCounterOperation--; 867 buildCounterOperation--;
847 } 868 }
848 869
849 core.int buildCounterQuotaError = 0; 870 core.int buildCounterQuotaError = 0;
850 buildQuotaError() { 871 buildQuotaError() {
851 var o = new api.QuotaError(); 872 var o = new api.QuotaError();
852 buildCounterQuotaError++; 873 buildCounterQuotaError++;
853 if (buildCounterQuotaError < 3) { 874 if (buildCounterQuotaError < 3) {
854 o.code = "foo"; 875 o.code = "foo";
855 o.description = "foo"; 876 o.description = "foo";
856 o.subject = "foo"; 877 o.subject = "foo";
857 } 878 }
858 buildCounterQuotaError--; 879 buildCounterQuotaError--;
859 return o; 880 return o;
860 } 881 }
861 882
862 checkQuotaError(api.QuotaError o) { 883 checkQuotaError(api.QuotaError o) {
863 buildCounterQuotaError++; 884 buildCounterQuotaError++;
864 if (buildCounterQuotaError < 3) { 885 if (buildCounterQuotaError < 3) {
865 unittest.expect(o.code, unittest.equals('foo')); 886 unittest.expect(o.code, unittest.equals('foo'));
866 unittest.expect(o.description, unittest.equals('foo')); 887 unittest.expect(o.description, unittest.equals('foo'));
867 unittest.expect(o.subject, unittest.equals('foo')); 888 unittest.expect(o.subject, unittest.equals('foo'));
868 } 889 }
869 buildCounterQuotaError--; 890 buildCounterQuotaError--;
870 } 891 }
871 892
872 buildUnnamed1666() { 893 buildUnnamed1698() {
873 var o = new core.List<core.String>(); 894 var o = new core.List<core.String>();
874 o.add("foo"); 895 o.add("foo");
875 o.add("foo"); 896 o.add("foo");
876 return o; 897 return o;
877 } 898 }
878 899
879 checkUnnamed1666(core.List<core.String> o) { 900 checkUnnamed1698(core.List<core.String> o) {
880 unittest.expect(o, unittest.hasLength(2)); 901 unittest.expect(o, unittest.hasLength(2));
881 unittest.expect(o[0], unittest.equals('foo')); 902 unittest.expect(o[0], unittest.equals('foo'));
882 unittest.expect(o[1], unittest.equals('foo')); 903 unittest.expect(o[1], unittest.equals('foo'));
883 } 904 }
884 905
885 buildUnnamed1667() { 906 buildUnnamed1699() {
886 var o = new core.Map<core.String, core.int>(); 907 var o = new core.Map<core.String, core.int>();
887 o["x"] = 42; 908 o["x"] = 42;
888 o["y"] = 42; 909 o["y"] = 42;
889 return o; 910 return o;
890 } 911 }
891 912
892 checkUnnamed1667(core.Map<core.String, core.int> o) { 913 checkUnnamed1699(core.Map<core.String, core.int> o) {
893 unittest.expect(o, unittest.hasLength(2)); 914 unittest.expect(o, unittest.hasLength(2));
894 unittest.expect(o["x"], unittest.equals(42)); 915 unittest.expect(o["x"], unittest.equals(42));
895 unittest.expect(o["y"], unittest.equals(42)); 916 unittest.expect(o["y"], unittest.equals(42));
896 } 917 }
897 918
898 buildUnnamed1668() { 919 buildUnnamed1700() {
899 var o = new core.List<api.MetricValueSet>(); 920 var o = new core.List<api.MetricValueSet>();
900 o.add(buildMetricValueSet()); 921 o.add(buildMetricValueSet());
901 o.add(buildMetricValueSet()); 922 o.add(buildMetricValueSet());
902 return o; 923 return o;
903 } 924 }
904 925
905 checkUnnamed1668(core.List<api.MetricValueSet> o) { 926 checkUnnamed1700(core.List<api.MetricValueSet> o) {
906 unittest.expect(o, unittest.hasLength(2)); 927 unittest.expect(o, unittest.hasLength(2));
907 checkMetricValueSet(o[0]); 928 checkMetricValueSet(o[0]);
908 checkMetricValueSet(o[1]); 929 checkMetricValueSet(o[1]);
909 } 930 }
910 931
911 core.int buildCounterQuotaInfo = 0; 932 core.int buildCounterQuotaInfo = 0;
912 buildQuotaInfo() { 933 buildQuotaInfo() {
913 var o = new api.QuotaInfo(); 934 var o = new api.QuotaInfo();
914 buildCounterQuotaInfo++; 935 buildCounterQuotaInfo++;
915 if (buildCounterQuotaInfo < 3) { 936 if (buildCounterQuotaInfo < 3) {
916 o.limitExceeded = buildUnnamed1666(); 937 o.limitExceeded = buildUnnamed1698();
917 o.quotaConsumed = buildUnnamed1667(); 938 o.quotaConsumed = buildUnnamed1699();
918 o.quotaMetrics = buildUnnamed1668(); 939 o.quotaMetrics = buildUnnamed1700();
919 } 940 }
920 buildCounterQuotaInfo--; 941 buildCounterQuotaInfo--;
921 return o; 942 return o;
922 } 943 }
923 944
924 checkQuotaInfo(api.QuotaInfo o) { 945 checkQuotaInfo(api.QuotaInfo o) {
925 buildCounterQuotaInfo++; 946 buildCounterQuotaInfo++;
926 if (buildCounterQuotaInfo < 3) { 947 if (buildCounterQuotaInfo < 3) {
927 checkUnnamed1666(o.limitExceeded); 948 checkUnnamed1698(o.limitExceeded);
928 checkUnnamed1667(o.quotaConsumed); 949 checkUnnamed1699(o.quotaConsumed);
929 checkUnnamed1668(o.quotaMetrics); 950 checkUnnamed1700(o.quotaMetrics);
930 } 951 }
931 buildCounterQuotaInfo--; 952 buildCounterQuotaInfo--;
932 } 953 }
933 954
934 buildUnnamed1669() { 955 buildUnnamed1701() {
935 var o = new core.Map<core.String, core.String>(); 956 var o = new core.Map<core.String, core.String>();
936 o["x"] = "foo"; 957 o["x"] = "foo";
937 o["y"] = "foo"; 958 o["y"] = "foo";
938 return o; 959 return o;
939 } 960 }
940 961
941 checkUnnamed1669(core.Map<core.String, core.String> o) { 962 checkUnnamed1701(core.Map<core.String, core.String> o) {
942 unittest.expect(o, unittest.hasLength(2)); 963 unittest.expect(o, unittest.hasLength(2));
943 unittest.expect(o["x"], unittest.equals('foo')); 964 unittest.expect(o["x"], unittest.equals('foo'));
944 unittest.expect(o["y"], unittest.equals('foo')); 965 unittest.expect(o["y"], unittest.equals('foo'));
945 } 966 }
946 967
947 buildUnnamed1670() { 968 buildUnnamed1702() {
948 var o = new core.List<api.MetricValueSet>(); 969 var o = new core.List<api.MetricValueSet>();
949 o.add(buildMetricValueSet()); 970 o.add(buildMetricValueSet());
950 o.add(buildMetricValueSet()); 971 o.add(buildMetricValueSet());
951 return o; 972 return o;
952 } 973 }
953 974
954 checkUnnamed1670(core.List<api.MetricValueSet> o) { 975 checkUnnamed1702(core.List<api.MetricValueSet> o) {
955 unittest.expect(o, unittest.hasLength(2)); 976 unittest.expect(o, unittest.hasLength(2));
956 checkMetricValueSet(o[0]); 977 checkMetricValueSet(o[0]);
957 checkMetricValueSet(o[1]); 978 checkMetricValueSet(o[1]);
958 } 979 }
959 980
960 core.int buildCounterQuotaOperation = 0; 981 core.int buildCounterQuotaOperation = 0;
961 buildQuotaOperation() { 982 buildQuotaOperation() {
962 var o = new api.QuotaOperation(); 983 var o = new api.QuotaOperation();
963 buildCounterQuotaOperation++; 984 buildCounterQuotaOperation++;
964 if (buildCounterQuotaOperation < 3) { 985 if (buildCounterQuotaOperation < 3) {
965 o.consumerId = "foo"; 986 o.consumerId = "foo";
966 o.labels = buildUnnamed1669(); 987 o.labels = buildUnnamed1701();
967 o.methodName = "foo"; 988 o.methodName = "foo";
968 o.operationId = "foo"; 989 o.operationId = "foo";
969 o.quotaMetrics = buildUnnamed1670(); 990 o.quotaMetrics = buildUnnamed1702();
970 o.quotaMode = "foo"; 991 o.quotaMode = "foo";
971 } 992 }
972 buildCounterQuotaOperation--; 993 buildCounterQuotaOperation--;
973 return o; 994 return o;
974 } 995 }
975 996
976 checkQuotaOperation(api.QuotaOperation o) { 997 checkQuotaOperation(api.QuotaOperation o) {
977 buildCounterQuotaOperation++; 998 buildCounterQuotaOperation++;
978 if (buildCounterQuotaOperation < 3) { 999 if (buildCounterQuotaOperation < 3) {
979 unittest.expect(o.consumerId, unittest.equals('foo')); 1000 unittest.expect(o.consumerId, unittest.equals('foo'));
980 checkUnnamed1669(o.labels); 1001 checkUnnamed1701(o.labels);
981 unittest.expect(o.methodName, unittest.equals('foo')); 1002 unittest.expect(o.methodName, unittest.equals('foo'));
982 unittest.expect(o.operationId, unittest.equals('foo')); 1003 unittest.expect(o.operationId, unittest.equals('foo'));
983 checkUnnamed1670(o.quotaMetrics); 1004 checkUnnamed1702(o.quotaMetrics);
984 unittest.expect(o.quotaMode, unittest.equals('foo')); 1005 unittest.expect(o.quotaMode, unittest.equals('foo'));
985 } 1006 }
986 buildCounterQuotaOperation--; 1007 buildCounterQuotaOperation--;
987 } 1008 }
988 1009
989 buildUnnamed1671() { 1010 buildUnnamed1703() {
990 var o = new core.Map<core.String, core.String>(); 1011 var o = new core.Map<core.String, core.String>();
991 o["x"] = "foo"; 1012 o["x"] = "foo";
992 o["y"] = "foo"; 1013 o["y"] = "foo";
993 return o; 1014 return o;
994 } 1015 }
995 1016
996 checkUnnamed1671(core.Map<core.String, core.String> o) { 1017 checkUnnamed1703(core.Map<core.String, core.String> o) {
997 unittest.expect(o, unittest.hasLength(2)); 1018 unittest.expect(o, unittest.hasLength(2));
998 unittest.expect(o["x"], unittest.equals('foo')); 1019 unittest.expect(o["x"], unittest.equals('foo'));
999 unittest.expect(o["y"], unittest.equals('foo')); 1020 unittest.expect(o["y"], unittest.equals('foo'));
1000 } 1021 }
1001 1022
1002 core.int buildCounterQuotaProperties = 0; 1023 core.int buildCounterQuotaProperties = 0;
1003 buildQuotaProperties() { 1024 buildQuotaProperties() {
1004 var o = new api.QuotaProperties(); 1025 var o = new api.QuotaProperties();
1005 buildCounterQuotaProperties++; 1026 buildCounterQuotaProperties++;
1006 if (buildCounterQuotaProperties < 3) { 1027 if (buildCounterQuotaProperties < 3) {
1007 o.limitByIds = buildUnnamed1671(); 1028 o.limitByIds = buildUnnamed1703();
1008 o.quotaMode = "foo"; 1029 o.quotaMode = "foo";
1009 } 1030 }
1010 buildCounterQuotaProperties--; 1031 buildCounterQuotaProperties--;
1011 return o; 1032 return o;
1012 } 1033 }
1013 1034
1014 checkQuotaProperties(api.QuotaProperties o) { 1035 checkQuotaProperties(api.QuotaProperties o) {
1015 buildCounterQuotaProperties++; 1036 buildCounterQuotaProperties++;
1016 if (buildCounterQuotaProperties < 3) { 1037 if (buildCounterQuotaProperties < 3) {
1017 checkUnnamed1671(o.limitByIds); 1038 checkUnnamed1703(o.limitByIds);
1018 unittest.expect(o.quotaMode, unittest.equals('foo')); 1039 unittest.expect(o.quotaMode, unittest.equals('foo'));
1019 } 1040 }
1020 buildCounterQuotaProperties--; 1041 buildCounterQuotaProperties--;
1021 } 1042 }
1022 1043
1023 core.int buildCounterReleaseQuotaRequest = 0; 1044 core.int buildCounterReleaseQuotaRequest = 0;
1024 buildReleaseQuotaRequest() { 1045 buildReleaseQuotaRequest() {
1025 var o = new api.ReleaseQuotaRequest(); 1046 var o = new api.ReleaseQuotaRequest();
1026 buildCounterReleaseQuotaRequest++; 1047 buildCounterReleaseQuotaRequest++;
1027 if (buildCounterReleaseQuotaRequest < 3) { 1048 if (buildCounterReleaseQuotaRequest < 3) {
1028 o.releaseOperation = buildQuotaOperation(); 1049 o.releaseOperation = buildQuotaOperation();
1029 o.serviceConfigId = "foo"; 1050 o.serviceConfigId = "foo";
1030 } 1051 }
1031 buildCounterReleaseQuotaRequest--; 1052 buildCounterReleaseQuotaRequest--;
1032 return o; 1053 return o;
1033 } 1054 }
1034 1055
1035 checkReleaseQuotaRequest(api.ReleaseQuotaRequest o) { 1056 checkReleaseQuotaRequest(api.ReleaseQuotaRequest o) {
1036 buildCounterReleaseQuotaRequest++; 1057 buildCounterReleaseQuotaRequest++;
1037 if (buildCounterReleaseQuotaRequest < 3) { 1058 if (buildCounterReleaseQuotaRequest < 3) {
1038 checkQuotaOperation(o.releaseOperation); 1059 checkQuotaOperation(o.releaseOperation);
1039 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1060 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1040 } 1061 }
1041 buildCounterReleaseQuotaRequest--; 1062 buildCounterReleaseQuotaRequest--;
1042 } 1063 }
1043 1064
1044 buildUnnamed1672() { 1065 buildUnnamed1704() {
1045 var o = new core.List<api.MetricValueSet>(); 1066 var o = new core.List<api.MetricValueSet>();
1046 o.add(buildMetricValueSet()); 1067 o.add(buildMetricValueSet());
1047 o.add(buildMetricValueSet()); 1068 o.add(buildMetricValueSet());
1048 return o; 1069 return o;
1049 } 1070 }
1050 1071
1051 checkUnnamed1672(core.List<api.MetricValueSet> o) { 1072 checkUnnamed1704(core.List<api.MetricValueSet> o) {
1052 unittest.expect(o, unittest.hasLength(2)); 1073 unittest.expect(o, unittest.hasLength(2));
1053 checkMetricValueSet(o[0]); 1074 checkMetricValueSet(o[0]);
1054 checkMetricValueSet(o[1]); 1075 checkMetricValueSet(o[1]);
1055 } 1076 }
1056 1077
1057 buildUnnamed1673() { 1078 buildUnnamed1705() {
1058 var o = new core.List<api.QuotaError>(); 1079 var o = new core.List<api.QuotaError>();
1059 o.add(buildQuotaError()); 1080 o.add(buildQuotaError());
1060 o.add(buildQuotaError()); 1081 o.add(buildQuotaError());
1061 return o; 1082 return o;
1062 } 1083 }
1063 1084
1064 checkUnnamed1673(core.List<api.QuotaError> o) { 1085 checkUnnamed1705(core.List<api.QuotaError> o) {
1065 unittest.expect(o, unittest.hasLength(2)); 1086 unittest.expect(o, unittest.hasLength(2));
1066 checkQuotaError(o[0]); 1087 checkQuotaError(o[0]);
1067 checkQuotaError(o[1]); 1088 checkQuotaError(o[1]);
1068 } 1089 }
1069 1090
1070 core.int buildCounterReleaseQuotaResponse = 0; 1091 core.int buildCounterReleaseQuotaResponse = 0;
1071 buildReleaseQuotaResponse() { 1092 buildReleaseQuotaResponse() {
1072 var o = new api.ReleaseQuotaResponse(); 1093 var o = new api.ReleaseQuotaResponse();
1073 buildCounterReleaseQuotaResponse++; 1094 buildCounterReleaseQuotaResponse++;
1074 if (buildCounterReleaseQuotaResponse < 3) { 1095 if (buildCounterReleaseQuotaResponse < 3) {
1075 o.operationId = "foo"; 1096 o.operationId = "foo";
1076 o.quotaMetrics = buildUnnamed1672(); 1097 o.quotaMetrics = buildUnnamed1704();
1077 o.releaseErrors = buildUnnamed1673(); 1098 o.releaseErrors = buildUnnamed1705();
1078 o.serviceConfigId = "foo"; 1099 o.serviceConfigId = "foo";
1079 } 1100 }
1080 buildCounterReleaseQuotaResponse--; 1101 buildCounterReleaseQuotaResponse--;
1081 return o; 1102 return o;
1082 } 1103 }
1083 1104
1084 checkReleaseQuotaResponse(api.ReleaseQuotaResponse o) { 1105 checkReleaseQuotaResponse(api.ReleaseQuotaResponse o) {
1085 buildCounterReleaseQuotaResponse++; 1106 buildCounterReleaseQuotaResponse++;
1086 if (buildCounterReleaseQuotaResponse < 3) { 1107 if (buildCounterReleaseQuotaResponse < 3) {
1087 unittest.expect(o.operationId, unittest.equals('foo')); 1108 unittest.expect(o.operationId, unittest.equals('foo'));
1088 checkUnnamed1672(o.quotaMetrics); 1109 checkUnnamed1704(o.quotaMetrics);
1089 checkUnnamed1673(o.releaseErrors); 1110 checkUnnamed1705(o.releaseErrors);
1090 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1111 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1091 } 1112 }
1092 buildCounterReleaseQuotaResponse--; 1113 buildCounterReleaseQuotaResponse--;
1093 } 1114 }
1094 1115
1095 core.int buildCounterReportError = 0; 1116 core.int buildCounterReportError = 0;
1096 buildReportError() { 1117 buildReportError() {
1097 var o = new api.ReportError(); 1118 var o = new api.ReportError();
1098 buildCounterReportError++; 1119 buildCounterReportError++;
1099 if (buildCounterReportError < 3) { 1120 if (buildCounterReportError < 3) {
(...skipping 27 matching lines...) Expand all
1127 1148
1128 checkReportInfo(api.ReportInfo o) { 1149 checkReportInfo(api.ReportInfo o) {
1129 buildCounterReportInfo++; 1150 buildCounterReportInfo++;
1130 if (buildCounterReportInfo < 3) { 1151 if (buildCounterReportInfo < 3) {
1131 unittest.expect(o.operationId, unittest.equals('foo')); 1152 unittest.expect(o.operationId, unittest.equals('foo'));
1132 checkQuotaInfo(o.quotaInfo); 1153 checkQuotaInfo(o.quotaInfo);
1133 } 1154 }
1134 buildCounterReportInfo--; 1155 buildCounterReportInfo--;
1135 } 1156 }
1136 1157
1137 buildUnnamed1674() { 1158 buildUnnamed1706() {
1138 var o = new core.List<api.Operation>(); 1159 var o = new core.List<api.Operation>();
1139 o.add(buildOperation()); 1160 o.add(buildOperation());
1140 o.add(buildOperation()); 1161 o.add(buildOperation());
1141 return o; 1162 return o;
1142 } 1163 }
1143 1164
1144 checkUnnamed1674(core.List<api.Operation> o) { 1165 checkUnnamed1706(core.List<api.Operation> o) {
1145 unittest.expect(o, unittest.hasLength(2)); 1166 unittest.expect(o, unittest.hasLength(2));
1146 checkOperation(o[0]); 1167 checkOperation(o[0]);
1147 checkOperation(o[1]); 1168 checkOperation(o[1]);
1148 } 1169 }
1149 1170
1150 core.int buildCounterReportRequest = 0; 1171 core.int buildCounterReportRequest = 0;
1151 buildReportRequest() { 1172 buildReportRequest() {
1152 var o = new api.ReportRequest(); 1173 var o = new api.ReportRequest();
1153 buildCounterReportRequest++; 1174 buildCounterReportRequest++;
1154 if (buildCounterReportRequest < 3) { 1175 if (buildCounterReportRequest < 3) {
1155 o.operations = buildUnnamed1674(); 1176 o.operations = buildUnnamed1706();
1156 o.serviceConfigId = "foo"; 1177 o.serviceConfigId = "foo";
1157 } 1178 }
1158 buildCounterReportRequest--; 1179 buildCounterReportRequest--;
1159 return o; 1180 return o;
1160 } 1181 }
1161 1182
1162 checkReportRequest(api.ReportRequest o) { 1183 checkReportRequest(api.ReportRequest o) {
1163 buildCounterReportRequest++; 1184 buildCounterReportRequest++;
1164 if (buildCounterReportRequest < 3) { 1185 if (buildCounterReportRequest < 3) {
1165 checkUnnamed1674(o.operations); 1186 checkUnnamed1706(o.operations);
1166 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1187 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1167 } 1188 }
1168 buildCounterReportRequest--; 1189 buildCounterReportRequest--;
1169 } 1190 }
1170 1191
1171 buildUnnamed1675() { 1192 buildUnnamed1707() {
1172 var o = new core.List<api.ReportError>(); 1193 var o = new core.List<api.ReportError>();
1173 o.add(buildReportError()); 1194 o.add(buildReportError());
1174 o.add(buildReportError()); 1195 o.add(buildReportError());
1175 return o; 1196 return o;
1176 } 1197 }
1177 1198
1178 checkUnnamed1675(core.List<api.ReportError> o) { 1199 checkUnnamed1707(core.List<api.ReportError> o) {
1179 unittest.expect(o, unittest.hasLength(2)); 1200 unittest.expect(o, unittest.hasLength(2));
1180 checkReportError(o[0]); 1201 checkReportError(o[0]);
1181 checkReportError(o[1]); 1202 checkReportError(o[1]);
1182 } 1203 }
1183 1204
1184 buildUnnamed1676() { 1205 buildUnnamed1708() {
1185 var o = new core.List<api.ReportInfo>(); 1206 var o = new core.List<api.ReportInfo>();
1186 o.add(buildReportInfo()); 1207 o.add(buildReportInfo());
1187 o.add(buildReportInfo()); 1208 o.add(buildReportInfo());
1188 return o; 1209 return o;
1189 } 1210 }
1190 1211
1191 checkUnnamed1676(core.List<api.ReportInfo> o) { 1212 checkUnnamed1708(core.List<api.ReportInfo> o) {
1192 unittest.expect(o, unittest.hasLength(2)); 1213 unittest.expect(o, unittest.hasLength(2));
1193 checkReportInfo(o[0]); 1214 checkReportInfo(o[0]);
1194 checkReportInfo(o[1]); 1215 checkReportInfo(o[1]);
1195 } 1216 }
1196 1217
1197 core.int buildCounterReportResponse = 0; 1218 core.int buildCounterReportResponse = 0;
1198 buildReportResponse() { 1219 buildReportResponse() {
1199 var o = new api.ReportResponse(); 1220 var o = new api.ReportResponse();
1200 buildCounterReportResponse++; 1221 buildCounterReportResponse++;
1201 if (buildCounterReportResponse < 3) { 1222 if (buildCounterReportResponse < 3) {
1202 o.reportErrors = buildUnnamed1675(); 1223 o.reportErrors = buildUnnamed1707();
1203 o.reportInfos = buildUnnamed1676(); 1224 o.reportInfos = buildUnnamed1708();
1204 o.serviceConfigId = "foo"; 1225 o.serviceConfigId = "foo";
1205 } 1226 }
1206 buildCounterReportResponse--; 1227 buildCounterReportResponse--;
1207 return o; 1228 return o;
1208 } 1229 }
1209 1230
1210 checkReportResponse(api.ReportResponse o) { 1231 checkReportResponse(api.ReportResponse o) {
1211 buildCounterReportResponse++; 1232 buildCounterReportResponse++;
1212 if (buildCounterReportResponse < 3) { 1233 if (buildCounterReportResponse < 3) {
1213 checkUnnamed1675(o.reportErrors); 1234 checkUnnamed1707(o.reportErrors);
1214 checkUnnamed1676(o.reportInfos); 1235 checkUnnamed1708(o.reportInfos);
1215 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1236 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1216 } 1237 }
1217 buildCounterReportResponse--; 1238 buildCounterReportResponse--;
1218 } 1239 }
1219 1240
1220 core.int buildCounterRequestMetadata = 0; 1241 core.int buildCounterRequestMetadata = 0;
1221 buildRequestMetadata() { 1242 buildRequestMetadata() {
1222 var o = new api.RequestMetadata(); 1243 var o = new api.RequestMetadata();
1223 buildCounterRequestMetadata++; 1244 buildCounterRequestMetadata++;
1224 if (buildCounterRequestMetadata < 3) { 1245 if (buildCounterRequestMetadata < 3) {
(...skipping 27 matching lines...) Expand all
1252 1273
1253 checkStartReconciliationRequest(api.StartReconciliationRequest o) { 1274 checkStartReconciliationRequest(api.StartReconciliationRequest o) {
1254 buildCounterStartReconciliationRequest++; 1275 buildCounterStartReconciliationRequest++;
1255 if (buildCounterStartReconciliationRequest < 3) { 1276 if (buildCounterStartReconciliationRequest < 3) {
1256 checkQuotaOperation(o.reconciliationOperation); 1277 checkQuotaOperation(o.reconciliationOperation);
1257 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1278 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1258 } 1279 }
1259 buildCounterStartReconciliationRequest--; 1280 buildCounterStartReconciliationRequest--;
1260 } 1281 }
1261 1282
1262 buildUnnamed1677() { 1283 buildUnnamed1709() {
1263 var o = new core.List<api.MetricValueSet>(); 1284 var o = new core.List<api.MetricValueSet>();
1264 o.add(buildMetricValueSet()); 1285 o.add(buildMetricValueSet());
1265 o.add(buildMetricValueSet()); 1286 o.add(buildMetricValueSet());
1266 return o; 1287 return o;
1267 } 1288 }
1268 1289
1269 checkUnnamed1677(core.List<api.MetricValueSet> o) { 1290 checkUnnamed1709(core.List<api.MetricValueSet> o) {
1270 unittest.expect(o, unittest.hasLength(2)); 1291 unittest.expect(o, unittest.hasLength(2));
1271 checkMetricValueSet(o[0]); 1292 checkMetricValueSet(o[0]);
1272 checkMetricValueSet(o[1]); 1293 checkMetricValueSet(o[1]);
1273 } 1294 }
1274 1295
1275 buildUnnamed1678() { 1296 buildUnnamed1710() {
1276 var o = new core.List<api.QuotaError>(); 1297 var o = new core.List<api.QuotaError>();
1277 o.add(buildQuotaError()); 1298 o.add(buildQuotaError());
1278 o.add(buildQuotaError()); 1299 o.add(buildQuotaError());
1279 return o; 1300 return o;
1280 } 1301 }
1281 1302
1282 checkUnnamed1678(core.List<api.QuotaError> o) { 1303 checkUnnamed1710(core.List<api.QuotaError> o) {
1283 unittest.expect(o, unittest.hasLength(2)); 1304 unittest.expect(o, unittest.hasLength(2));
1284 checkQuotaError(o[0]); 1305 checkQuotaError(o[0]);
1285 checkQuotaError(o[1]); 1306 checkQuotaError(o[1]);
1286 } 1307 }
1287 1308
1288 core.int buildCounterStartReconciliationResponse = 0; 1309 core.int buildCounterStartReconciliationResponse = 0;
1289 buildStartReconciliationResponse() { 1310 buildStartReconciliationResponse() {
1290 var o = new api.StartReconciliationResponse(); 1311 var o = new api.StartReconciliationResponse();
1291 buildCounterStartReconciliationResponse++; 1312 buildCounterStartReconciliationResponse++;
1292 if (buildCounterStartReconciliationResponse < 3) { 1313 if (buildCounterStartReconciliationResponse < 3) {
1293 o.operationId = "foo"; 1314 o.operationId = "foo";
1294 o.quotaMetrics = buildUnnamed1677(); 1315 o.quotaMetrics = buildUnnamed1709();
1295 o.reconciliationErrors = buildUnnamed1678(); 1316 o.reconciliationErrors = buildUnnamed1710();
1296 o.serviceConfigId = "foo"; 1317 o.serviceConfigId = "foo";
1297 } 1318 }
1298 buildCounterStartReconciliationResponse--; 1319 buildCounterStartReconciliationResponse--;
1299 return o; 1320 return o;
1300 } 1321 }
1301 1322
1302 checkStartReconciliationResponse(api.StartReconciliationResponse o) { 1323 checkStartReconciliationResponse(api.StartReconciliationResponse o) {
1303 buildCounterStartReconciliationResponse++; 1324 buildCounterStartReconciliationResponse++;
1304 if (buildCounterStartReconciliationResponse < 3) { 1325 if (buildCounterStartReconciliationResponse < 3) {
1305 unittest.expect(o.operationId, unittest.equals('foo')); 1326 unittest.expect(o.operationId, unittest.equals('foo'));
1306 checkUnnamed1677(o.quotaMetrics); 1327 checkUnnamed1709(o.quotaMetrics);
1307 checkUnnamed1678(o.reconciliationErrors); 1328 checkUnnamed1710(o.reconciliationErrors);
1308 unittest.expect(o.serviceConfigId, unittest.equals('foo')); 1329 unittest.expect(o.serviceConfigId, unittest.equals('foo'));
1309 } 1330 }
1310 buildCounterStartReconciliationResponse--; 1331 buildCounterStartReconciliationResponse--;
1311 } 1332 }
1312 1333
1313 buildUnnamed1679() { 1334 buildUnnamed1711() {
1314 var o = new core.Map<core.String, core.Object>(); 1335 var o = new core.Map<core.String, core.Object>();
1315 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1336 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1316 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1337 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1317 return o; 1338 return o;
1318 } 1339 }
1319 1340
1320 checkUnnamed1679(core.Map<core.String, core.Object> o) { 1341 checkUnnamed1711(core.Map<core.String, core.Object> o) {
1321 unittest.expect(o, unittest.hasLength(2)); 1342 unittest.expect(o, unittest.hasLength(2));
1322 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'));
1323 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'));
1324 } 1345 }
1325 1346
1326 buildUnnamed1680() { 1347 buildUnnamed1712() {
1327 var o = new core.List<core.Map<core.String, core.Object>>(); 1348 var o = new core.List<core.Map<core.String, core.Object>>();
1328 o.add(buildUnnamed1679()); 1349 o.add(buildUnnamed1711());
1329 o.add(buildUnnamed1679()); 1350 o.add(buildUnnamed1711());
1330 return o; 1351 return o;
1331 } 1352 }
1332 1353
1333 checkUnnamed1680(core.List<core.Map<core.String, core.Object>> o) { 1354 checkUnnamed1712(core.List<core.Map<core.String, core.Object>> o) {
1334 unittest.expect(o, unittest.hasLength(2)); 1355 unittest.expect(o, unittest.hasLength(2));
1335 checkUnnamed1679(o[0]); 1356 checkUnnamed1711(o[0]);
1336 checkUnnamed1679(o[1]); 1357 checkUnnamed1711(o[1]);
1337 } 1358 }
1338 1359
1339 core.int buildCounterStatus = 0; 1360 core.int buildCounterStatus = 0;
1340 buildStatus() { 1361 buildStatus() {
1341 var o = new api.Status(); 1362 var o = new api.Status();
1342 buildCounterStatus++; 1363 buildCounterStatus++;
1343 if (buildCounterStatus < 3) { 1364 if (buildCounterStatus < 3) {
1344 o.code = 42; 1365 o.code = 42;
1345 o.details = buildUnnamed1680(); 1366 o.details = buildUnnamed1712();
1346 o.message = "foo"; 1367 o.message = "foo";
1347 } 1368 }
1348 buildCounterStatus--; 1369 buildCounterStatus--;
1349 return o; 1370 return o;
1350 } 1371 }
1351 1372
1352 checkStatus(api.Status o) { 1373 checkStatus(api.Status o) {
1353 buildCounterStatus++; 1374 buildCounterStatus++;
1354 if (buildCounterStatus < 3) { 1375 if (buildCounterStatus < 3) {
1355 unittest.expect(o.code, unittest.equals(42)); 1376 unittest.expect(o.code, unittest.equals(42));
1356 checkUnnamed1680(o.details); 1377 checkUnnamed1712(o.details);
1357 unittest.expect(o.message, unittest.equals('foo')); 1378 unittest.expect(o.message, unittest.equals('foo'));
1358 } 1379 }
1359 buildCounterStatus--; 1380 buildCounterStatus--;
1360 } 1381 }
1361 1382
1362 1383
1363 main() { 1384 main() {
1364 unittest.group("obj-schema-AllocateQuotaRequest", () { 1385 unittest.group("obj-schema-AllocateQuotaRequest", () {
1365 unittest.test("to-json--from-json", () { 1386 unittest.test("to-json--from-json", () {
1366 var o = buildAllocateQuotaRequest(); 1387 var o = buildAllocateQuotaRequest();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 1456
1436 unittest.group("obj-schema-CheckResponse", () { 1457 unittest.group("obj-schema-CheckResponse", () {
1437 unittest.test("to-json--from-json", () { 1458 unittest.test("to-json--from-json", () {
1438 var o = buildCheckResponse(); 1459 var o = buildCheckResponse();
1439 var od = new api.CheckResponse.fromJson(o.toJson()); 1460 var od = new api.CheckResponse.fromJson(o.toJson());
1440 checkCheckResponse(od); 1461 checkCheckResponse(od);
1441 }); 1462 });
1442 }); 1463 });
1443 1464
1444 1465
1466 unittest.group("obj-schema-ConsumerInfo", () {
1467 unittest.test("to-json--from-json", () {
1468 var o = buildConsumerInfo();
1469 var od = new api.ConsumerInfo.fromJson(o.toJson());
1470 checkConsumerInfo(od);
1471 });
1472 });
1473
1474
1445 unittest.group("obj-schema-Distribution", () { 1475 unittest.group("obj-schema-Distribution", () {
1446 unittest.test("to-json--from-json", () { 1476 unittest.test("to-json--from-json", () {
1447 var o = buildDistribution(); 1477 var o = buildDistribution();
1448 var od = new api.Distribution.fromJson(o.toJson()); 1478 var od = new api.Distribution.fromJson(o.toJson());
1449 checkDistribution(od); 1479 checkDistribution(od);
1450 }); 1480 });
1451 }); 1481 });
1452 1482
1453 1483
1454 unittest.group("obj-schema-EndReconciliationRequest", () { 1484 unittest.group("obj-schema-EndReconciliationRequest", () {
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 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) {
1997 checkStartReconciliationResponse(response); 2027 checkStartReconciliationResponse(response);
1998 }))); 2028 })));
1999 }); 2029 });
2000 2030
2001 }); 2031 });
2002 2032
2003 2033
2004 } 2034 }
2005 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