Chromium Code Reviews

Side by Side Diff: generated/googleapis/test/analyticsreporting/v4_test.dart

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 library googleapis.analyticsreporting.v4.test; 1 library googleapis.analyticsreporting.v4.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 56 matching lines...)
67 checkCohort(api.Cohort o) { 67 checkCohort(api.Cohort o) {
68 buildCounterCohort++; 68 buildCounterCohort++;
69 if (buildCounterCohort < 3) { 69 if (buildCounterCohort < 3) {
70 checkDateRange(o.dateRange); 70 checkDateRange(o.dateRange);
71 unittest.expect(o.name, unittest.equals('foo')); 71 unittest.expect(o.name, unittest.equals('foo'));
72 unittest.expect(o.type, unittest.equals('foo')); 72 unittest.expect(o.type, unittest.equals('foo'));
73 } 73 }
74 buildCounterCohort--; 74 buildCounterCohort--;
75 } 75 }
76 76
77 buildUnnamed133() { 77 buildUnnamed136() {
78 var o = new core.List<api.Cohort>(); 78 var o = new core.List<api.Cohort>();
79 o.add(buildCohort()); 79 o.add(buildCohort());
80 o.add(buildCohort()); 80 o.add(buildCohort());
81 return o; 81 return o;
82 } 82 }
83 83
84 checkUnnamed133(core.List<api.Cohort> o) { 84 checkUnnamed136(core.List<api.Cohort> o) {
85 unittest.expect(o, unittest.hasLength(2)); 85 unittest.expect(o, unittest.hasLength(2));
86 checkCohort(o[0]); 86 checkCohort(o[0]);
87 checkCohort(o[1]); 87 checkCohort(o[1]);
88 } 88 }
89 89
90 core.int buildCounterCohortGroup = 0; 90 core.int buildCounterCohortGroup = 0;
91 buildCohortGroup() { 91 buildCohortGroup() {
92 var o = new api.CohortGroup(); 92 var o = new api.CohortGroup();
93 buildCounterCohortGroup++; 93 buildCounterCohortGroup++;
94 if (buildCounterCohortGroup < 3) { 94 if (buildCounterCohortGroup < 3) {
95 o.cohorts = buildUnnamed133(); 95 o.cohorts = buildUnnamed136();
96 o.lifetimeValue = true; 96 o.lifetimeValue = true;
97 } 97 }
98 buildCounterCohortGroup--; 98 buildCounterCohortGroup--;
99 return o; 99 return o;
100 } 100 }
101 101
102 checkCohortGroup(api.CohortGroup o) { 102 checkCohortGroup(api.CohortGroup o) {
103 buildCounterCohortGroup++; 103 buildCounterCohortGroup++;
104 if (buildCounterCohortGroup < 3) { 104 if (buildCounterCohortGroup < 3) {
105 checkUnnamed133(o.cohorts); 105 checkUnnamed136(o.cohorts);
106 unittest.expect(o.lifetimeValue, unittest.isTrue); 106 unittest.expect(o.lifetimeValue, unittest.isTrue);
107 } 107 }
108 buildCounterCohortGroup--; 108 buildCounterCohortGroup--;
109 } 109 }
110 110
111 buildUnnamed134() { 111 buildUnnamed137() {
112 var o = new core.List<core.String>(); 112 var o = new core.List<core.String>();
113 o.add("foo"); 113 o.add("foo");
114 o.add("foo"); 114 o.add("foo");
115 return o; 115 return o;
116 } 116 }
117 117
118 checkUnnamed134(core.List<core.String> o) { 118 checkUnnamed137(core.List<core.String> o) {
119 unittest.expect(o, unittest.hasLength(2)); 119 unittest.expect(o, unittest.hasLength(2));
120 unittest.expect(o[0], unittest.equals('foo')); 120 unittest.expect(o[0], unittest.equals('foo'));
121 unittest.expect(o[1], unittest.equals('foo')); 121 unittest.expect(o[1], unittest.equals('foo'));
122 } 122 }
123 123
124 core.int buildCounterColumnHeader = 0; 124 core.int buildCounterColumnHeader = 0;
125 buildColumnHeader() { 125 buildColumnHeader() {
126 var o = new api.ColumnHeader(); 126 var o = new api.ColumnHeader();
127 buildCounterColumnHeader++; 127 buildCounterColumnHeader++;
128 if (buildCounterColumnHeader < 3) { 128 if (buildCounterColumnHeader < 3) {
129 o.dimensions = buildUnnamed134(); 129 o.dimensions = buildUnnamed137();
130 o.metricHeader = buildMetricHeader(); 130 o.metricHeader = buildMetricHeader();
131 } 131 }
132 buildCounterColumnHeader--; 132 buildCounterColumnHeader--;
133 return o; 133 return o;
134 } 134 }
135 135
136 checkColumnHeader(api.ColumnHeader o) { 136 checkColumnHeader(api.ColumnHeader o) {
137 buildCounterColumnHeader++; 137 buildCounterColumnHeader++;
138 if (buildCounterColumnHeader < 3) { 138 if (buildCounterColumnHeader < 3) {
139 checkUnnamed134(o.dimensions); 139 checkUnnamed137(o.dimensions);
140 checkMetricHeader(o.metricHeader); 140 checkMetricHeader(o.metricHeader);
141 } 141 }
142 buildCounterColumnHeader--; 142 buildCounterColumnHeader--;
143 } 143 }
144 144
145 core.int buildCounterDateRange = 0; 145 core.int buildCounterDateRange = 0;
146 buildDateRange() { 146 buildDateRange() {
147 var o = new api.DateRange(); 147 var o = new api.DateRange();
148 buildCounterDateRange++; 148 buildCounterDateRange++;
149 if (buildCounterDateRange < 3) { 149 if (buildCounterDateRange < 3) {
150 o.endDate = "foo"; 150 o.endDate = "foo";
151 o.startDate = "foo"; 151 o.startDate = "foo";
152 } 152 }
153 buildCounterDateRange--; 153 buildCounterDateRange--;
154 return o; 154 return o;
155 } 155 }
156 156
157 checkDateRange(api.DateRange o) { 157 checkDateRange(api.DateRange o) {
158 buildCounterDateRange++; 158 buildCounterDateRange++;
159 if (buildCounterDateRange < 3) { 159 if (buildCounterDateRange < 3) {
160 unittest.expect(o.endDate, unittest.equals('foo')); 160 unittest.expect(o.endDate, unittest.equals('foo'));
161 unittest.expect(o.startDate, unittest.equals('foo')); 161 unittest.expect(o.startDate, unittest.equals('foo'));
162 } 162 }
163 buildCounterDateRange--; 163 buildCounterDateRange--;
164 } 164 }
165 165
166 buildUnnamed135() { 166 buildUnnamed138() {
167 var o = new core.List<api.PivotValueRegion>(); 167 var o = new core.List<api.PivotValueRegion>();
168 o.add(buildPivotValueRegion()); 168 o.add(buildPivotValueRegion());
169 o.add(buildPivotValueRegion()); 169 o.add(buildPivotValueRegion());
170 return o; 170 return o;
171 } 171 }
172 172
173 checkUnnamed135(core.List<api.PivotValueRegion> o) { 173 checkUnnamed138(core.List<api.PivotValueRegion> o) {
174 unittest.expect(o, unittest.hasLength(2)); 174 unittest.expect(o, unittest.hasLength(2));
175 checkPivotValueRegion(o[0]); 175 checkPivotValueRegion(o[0]);
176 checkPivotValueRegion(o[1]); 176 checkPivotValueRegion(o[1]);
177 } 177 }
178 178
179 buildUnnamed136() { 179 buildUnnamed139() {
180 var o = new core.List<core.String>(); 180 var o = new core.List<core.String>();
181 o.add("foo"); 181 o.add("foo");
182 o.add("foo"); 182 o.add("foo");
183 return o; 183 return o;
184 } 184 }
185 185
186 checkUnnamed136(core.List<core.String> o) { 186 checkUnnamed139(core.List<core.String> o) {
187 unittest.expect(o, unittest.hasLength(2)); 187 unittest.expect(o, unittest.hasLength(2));
188 unittest.expect(o[0], unittest.equals('foo')); 188 unittest.expect(o[0], unittest.equals('foo'));
189 unittest.expect(o[1], unittest.equals('foo')); 189 unittest.expect(o[1], unittest.equals('foo'));
190 } 190 }
191 191
192 core.int buildCounterDateRangeValues = 0; 192 core.int buildCounterDateRangeValues = 0;
193 buildDateRangeValues() { 193 buildDateRangeValues() {
194 var o = new api.DateRangeValues(); 194 var o = new api.DateRangeValues();
195 buildCounterDateRangeValues++; 195 buildCounterDateRangeValues++;
196 if (buildCounterDateRangeValues < 3) { 196 if (buildCounterDateRangeValues < 3) {
197 o.pivotValueRegions = buildUnnamed135(); 197 o.pivotValueRegions = buildUnnamed138();
198 o.values = buildUnnamed136(); 198 o.values = buildUnnamed139();
199 } 199 }
200 buildCounterDateRangeValues--; 200 buildCounterDateRangeValues--;
201 return o; 201 return o;
202 } 202 }
203 203
204 checkDateRangeValues(api.DateRangeValues o) { 204 checkDateRangeValues(api.DateRangeValues o) {
205 buildCounterDateRangeValues++; 205 buildCounterDateRangeValues++;
206 if (buildCounterDateRangeValues < 3) { 206 if (buildCounterDateRangeValues < 3) {
207 checkUnnamed135(o.pivotValueRegions); 207 checkUnnamed138(o.pivotValueRegions);
208 checkUnnamed136(o.values); 208 checkUnnamed139(o.values);
209 } 209 }
210 buildCounterDateRangeValues--; 210 buildCounterDateRangeValues--;
211 } 211 }
212 212
213 buildUnnamed137() { 213 buildUnnamed140() {
214 var o = new core.List<core.String>(); 214 var o = new core.List<core.String>();
215 o.add("foo"); 215 o.add("foo");
216 o.add("foo"); 216 o.add("foo");
217 return o; 217 return o;
218 } 218 }
219 219
220 checkUnnamed137(core.List<core.String> o) { 220 checkUnnamed140(core.List<core.String> o) {
221 unittest.expect(o, unittest.hasLength(2)); 221 unittest.expect(o, unittest.hasLength(2));
222 unittest.expect(o[0], unittest.equals('foo')); 222 unittest.expect(o[0], unittest.equals('foo'));
223 unittest.expect(o[1], unittest.equals('foo')); 223 unittest.expect(o[1], unittest.equals('foo'));
224 } 224 }
225 225
226 core.int buildCounterDimension = 0; 226 core.int buildCounterDimension = 0;
227 buildDimension() { 227 buildDimension() {
228 var o = new api.Dimension(); 228 var o = new api.Dimension();
229 buildCounterDimension++; 229 buildCounterDimension++;
230 if (buildCounterDimension < 3) { 230 if (buildCounterDimension < 3) {
231 o.histogramBuckets = buildUnnamed137(); 231 o.histogramBuckets = buildUnnamed140();
232 o.name = "foo"; 232 o.name = "foo";
233 } 233 }
234 buildCounterDimension--; 234 buildCounterDimension--;
235 return o; 235 return o;
236 } 236 }
237 237
238 checkDimension(api.Dimension o) { 238 checkDimension(api.Dimension o) {
239 buildCounterDimension++; 239 buildCounterDimension++;
240 if (buildCounterDimension < 3) { 240 if (buildCounterDimension < 3) {
241 checkUnnamed137(o.histogramBuckets); 241 checkUnnamed140(o.histogramBuckets);
242 unittest.expect(o.name, unittest.equals('foo')); 242 unittest.expect(o.name, unittest.equals('foo'));
243 } 243 }
244 buildCounterDimension--; 244 buildCounterDimension--;
245 } 245 }
246 246
247 buildUnnamed138() { 247 buildUnnamed141() {
248 var o = new core.List<core.String>(); 248 var o = new core.List<core.String>();
249 o.add("foo"); 249 o.add("foo");
250 o.add("foo"); 250 o.add("foo");
251 return o; 251 return o;
252 } 252 }
253 253
254 checkUnnamed138(core.List<core.String> o) { 254 checkUnnamed141(core.List<core.String> o) {
255 unittest.expect(o, unittest.hasLength(2)); 255 unittest.expect(o, unittest.hasLength(2));
256 unittest.expect(o[0], unittest.equals('foo')); 256 unittest.expect(o[0], unittest.equals('foo'));
257 unittest.expect(o[1], unittest.equals('foo')); 257 unittest.expect(o[1], unittest.equals('foo'));
258 } 258 }
259 259
260 core.int buildCounterDimensionFilter = 0; 260 core.int buildCounterDimensionFilter = 0;
261 buildDimensionFilter() { 261 buildDimensionFilter() {
262 var o = new api.DimensionFilter(); 262 var o = new api.DimensionFilter();
263 buildCounterDimensionFilter++; 263 buildCounterDimensionFilter++;
264 if (buildCounterDimensionFilter < 3) { 264 if (buildCounterDimensionFilter < 3) {
265 o.caseSensitive = true; 265 o.caseSensitive = true;
266 o.dimensionName = "foo"; 266 o.dimensionName = "foo";
267 o.expressions = buildUnnamed138(); 267 o.expressions = buildUnnamed141();
268 o.not = true; 268 o.not = true;
269 o.operator = "foo"; 269 o.operator = "foo";
270 } 270 }
271 buildCounterDimensionFilter--; 271 buildCounterDimensionFilter--;
272 return o; 272 return o;
273 } 273 }
274 274
275 checkDimensionFilter(api.DimensionFilter o) { 275 checkDimensionFilter(api.DimensionFilter o) {
276 buildCounterDimensionFilter++; 276 buildCounterDimensionFilter++;
277 if (buildCounterDimensionFilter < 3) { 277 if (buildCounterDimensionFilter < 3) {
278 unittest.expect(o.caseSensitive, unittest.isTrue); 278 unittest.expect(o.caseSensitive, unittest.isTrue);
279 unittest.expect(o.dimensionName, unittest.equals('foo')); 279 unittest.expect(o.dimensionName, unittest.equals('foo'));
280 checkUnnamed138(o.expressions); 280 checkUnnamed141(o.expressions);
281 unittest.expect(o.not, unittest.isTrue); 281 unittest.expect(o.not, unittest.isTrue);
282 unittest.expect(o.operator, unittest.equals('foo')); 282 unittest.expect(o.operator, unittest.equals('foo'));
283 } 283 }
284 buildCounterDimensionFilter--; 284 buildCounterDimensionFilter--;
285 } 285 }
286 286
287 buildUnnamed139() { 287 buildUnnamed142() {
288 var o = new core.List<api.DimensionFilter>(); 288 var o = new core.List<api.DimensionFilter>();
289 o.add(buildDimensionFilter()); 289 o.add(buildDimensionFilter());
290 o.add(buildDimensionFilter()); 290 o.add(buildDimensionFilter());
291 return o; 291 return o;
292 } 292 }
293 293
294 checkUnnamed139(core.List<api.DimensionFilter> o) { 294 checkUnnamed142(core.List<api.DimensionFilter> o) {
295 unittest.expect(o, unittest.hasLength(2)); 295 unittest.expect(o, unittest.hasLength(2));
296 checkDimensionFilter(o[0]); 296 checkDimensionFilter(o[0]);
297 checkDimensionFilter(o[1]); 297 checkDimensionFilter(o[1]);
298 } 298 }
299 299
300 core.int buildCounterDimensionFilterClause = 0; 300 core.int buildCounterDimensionFilterClause = 0;
301 buildDimensionFilterClause() { 301 buildDimensionFilterClause() {
302 var o = new api.DimensionFilterClause(); 302 var o = new api.DimensionFilterClause();
303 buildCounterDimensionFilterClause++; 303 buildCounterDimensionFilterClause++;
304 if (buildCounterDimensionFilterClause < 3) { 304 if (buildCounterDimensionFilterClause < 3) {
305 o.filters = buildUnnamed139(); 305 o.filters = buildUnnamed142();
306 o.operator = "foo"; 306 o.operator = "foo";
307 } 307 }
308 buildCounterDimensionFilterClause--; 308 buildCounterDimensionFilterClause--;
309 return o; 309 return o;
310 } 310 }
311 311
312 checkDimensionFilterClause(api.DimensionFilterClause o) { 312 checkDimensionFilterClause(api.DimensionFilterClause o) {
313 buildCounterDimensionFilterClause++; 313 buildCounterDimensionFilterClause++;
314 if (buildCounterDimensionFilterClause < 3) { 314 if (buildCounterDimensionFilterClause < 3) {
315 checkUnnamed139(o.filters); 315 checkUnnamed142(o.filters);
316 unittest.expect(o.operator, unittest.equals('foo')); 316 unittest.expect(o.operator, unittest.equals('foo'));
317 } 317 }
318 buildCounterDimensionFilterClause--; 318 buildCounterDimensionFilterClause--;
319 } 319 }
320 320
321 core.int buildCounterDynamicSegment = 0; 321 core.int buildCounterDynamicSegment = 0;
322 buildDynamicSegment() { 322 buildDynamicSegment() {
323 var o = new api.DynamicSegment(); 323 var o = new api.DynamicSegment();
324 buildCounterDynamicSegment++; 324 buildCounterDynamicSegment++;
325 if (buildCounterDynamicSegment < 3) { 325 if (buildCounterDynamicSegment < 3) {
326 o.name = "foo"; 326 o.name = "foo";
327 o.sessionSegment = buildSegmentDefinition(); 327 o.sessionSegment = buildSegmentDefinition();
328 o.userSegment = buildSegmentDefinition(); 328 o.userSegment = buildSegmentDefinition();
329 } 329 }
330 buildCounterDynamicSegment--; 330 buildCounterDynamicSegment--;
331 return o; 331 return o;
332 } 332 }
333 333
334 checkDynamicSegment(api.DynamicSegment o) { 334 checkDynamicSegment(api.DynamicSegment o) {
335 buildCounterDynamicSegment++; 335 buildCounterDynamicSegment++;
336 if (buildCounterDynamicSegment < 3) { 336 if (buildCounterDynamicSegment < 3) {
337 unittest.expect(o.name, unittest.equals('foo')); 337 unittest.expect(o.name, unittest.equals('foo'));
338 checkSegmentDefinition(o.sessionSegment); 338 checkSegmentDefinition(o.sessionSegment);
339 checkSegmentDefinition(o.userSegment); 339 checkSegmentDefinition(o.userSegment);
340 } 340 }
341 buildCounterDynamicSegment--; 341 buildCounterDynamicSegment--;
342 } 342 }
343 343
344 buildUnnamed140() { 344 buildUnnamed143() {
345 var o = new core.List<api.ReportRequest>(); 345 var o = new core.List<api.ReportRequest>();
346 o.add(buildReportRequest()); 346 o.add(buildReportRequest());
347 o.add(buildReportRequest()); 347 o.add(buildReportRequest());
348 return o; 348 return o;
349 } 349 }
350 350
351 checkUnnamed140(core.List<api.ReportRequest> o) { 351 checkUnnamed143(core.List<api.ReportRequest> o) {
352 unittest.expect(o, unittest.hasLength(2)); 352 unittest.expect(o, unittest.hasLength(2));
353 checkReportRequest(o[0]); 353 checkReportRequest(o[0]);
354 checkReportRequest(o[1]); 354 checkReportRequest(o[1]);
355 } 355 }
356 356
357 core.int buildCounterGetReportsRequest = 0; 357 core.int buildCounterGetReportsRequest = 0;
358 buildGetReportsRequest() { 358 buildGetReportsRequest() {
359 var o = new api.GetReportsRequest(); 359 var o = new api.GetReportsRequest();
360 buildCounterGetReportsRequest++; 360 buildCounterGetReportsRequest++;
361 if (buildCounterGetReportsRequest < 3) { 361 if (buildCounterGetReportsRequest < 3) {
362 o.reportRequests = buildUnnamed140(); 362 o.reportRequests = buildUnnamed143();
363 } 363 }
364 buildCounterGetReportsRequest--; 364 buildCounterGetReportsRequest--;
365 return o; 365 return o;
366 } 366 }
367 367
368 checkGetReportsRequest(api.GetReportsRequest o) { 368 checkGetReportsRequest(api.GetReportsRequest o) {
369 buildCounterGetReportsRequest++; 369 buildCounterGetReportsRequest++;
370 if (buildCounterGetReportsRequest < 3) { 370 if (buildCounterGetReportsRequest < 3) {
371 checkUnnamed140(o.reportRequests); 371 checkUnnamed143(o.reportRequests);
372 } 372 }
373 buildCounterGetReportsRequest--; 373 buildCounterGetReportsRequest--;
374 } 374 }
375 375
376 buildUnnamed141() { 376 buildUnnamed144() {
377 var o = new core.List<api.Report>(); 377 var o = new core.List<api.Report>();
378 o.add(buildReport()); 378 o.add(buildReport());
379 o.add(buildReport()); 379 o.add(buildReport());
380 return o; 380 return o;
381 } 381 }
382 382
383 checkUnnamed141(core.List<api.Report> o) { 383 checkUnnamed144(core.List<api.Report> o) {
384 unittest.expect(o, unittest.hasLength(2)); 384 unittest.expect(o, unittest.hasLength(2));
385 checkReport(o[0]); 385 checkReport(o[0]);
386 checkReport(o[1]); 386 checkReport(o[1]);
387 } 387 }
388 388
389 core.int buildCounterGetReportsResponse = 0; 389 core.int buildCounterGetReportsResponse = 0;
390 buildGetReportsResponse() { 390 buildGetReportsResponse() {
391 var o = new api.GetReportsResponse(); 391 var o = new api.GetReportsResponse();
392 buildCounterGetReportsResponse++; 392 buildCounterGetReportsResponse++;
393 if (buildCounterGetReportsResponse < 3) { 393 if (buildCounterGetReportsResponse < 3) {
394 o.reports = buildUnnamed141(); 394 o.reports = buildUnnamed144();
395 } 395 }
396 buildCounterGetReportsResponse--; 396 buildCounterGetReportsResponse--;
397 return o; 397 return o;
398 } 398 }
399 399
400 checkGetReportsResponse(api.GetReportsResponse o) { 400 checkGetReportsResponse(api.GetReportsResponse o) {
401 buildCounterGetReportsResponse++; 401 buildCounterGetReportsResponse++;
402 if (buildCounterGetReportsResponse < 3) { 402 if (buildCounterGetReportsResponse < 3) {
403 checkUnnamed141(o.reports); 403 checkUnnamed144(o.reports);
404 } 404 }
405 buildCounterGetReportsResponse--; 405 buildCounterGetReportsResponse--;
406 } 406 }
407 407
408 core.int buildCounterMetric = 0; 408 core.int buildCounterMetric = 0;
409 buildMetric() { 409 buildMetric() {
410 var o = new api.Metric(); 410 var o = new api.Metric();
411 buildCounterMetric++; 411 buildCounterMetric++;
412 if (buildCounterMetric < 3) { 412 if (buildCounterMetric < 3) {
413 o.alias = "foo"; 413 o.alias = "foo";
(...skipping 32 matching lines...)
446 buildCounterMetricFilter++; 446 buildCounterMetricFilter++;
447 if (buildCounterMetricFilter < 3) { 447 if (buildCounterMetricFilter < 3) {
448 unittest.expect(o.comparisonValue, unittest.equals('foo')); 448 unittest.expect(o.comparisonValue, unittest.equals('foo'));
449 unittest.expect(o.metricName, unittest.equals('foo')); 449 unittest.expect(o.metricName, unittest.equals('foo'));
450 unittest.expect(o.not, unittest.isTrue); 450 unittest.expect(o.not, unittest.isTrue);
451 unittest.expect(o.operator, unittest.equals('foo')); 451 unittest.expect(o.operator, unittest.equals('foo'));
452 } 452 }
453 buildCounterMetricFilter--; 453 buildCounterMetricFilter--;
454 } 454 }
455 455
456 buildUnnamed142() { 456 buildUnnamed145() {
457 var o = new core.List<api.MetricFilter>(); 457 var o = new core.List<api.MetricFilter>();
458 o.add(buildMetricFilter()); 458 o.add(buildMetricFilter());
459 o.add(buildMetricFilter()); 459 o.add(buildMetricFilter());
460 return o; 460 return o;
461 } 461 }
462 462
463 checkUnnamed142(core.List<api.MetricFilter> o) { 463 checkUnnamed145(core.List<api.MetricFilter> o) {
464 unittest.expect(o, unittest.hasLength(2)); 464 unittest.expect(o, unittest.hasLength(2));
465 checkMetricFilter(o[0]); 465 checkMetricFilter(o[0]);
466 checkMetricFilter(o[1]); 466 checkMetricFilter(o[1]);
467 } 467 }
468 468
469 core.int buildCounterMetricFilterClause = 0; 469 core.int buildCounterMetricFilterClause = 0;
470 buildMetricFilterClause() { 470 buildMetricFilterClause() {
471 var o = new api.MetricFilterClause(); 471 var o = new api.MetricFilterClause();
472 buildCounterMetricFilterClause++; 472 buildCounterMetricFilterClause++;
473 if (buildCounterMetricFilterClause < 3) { 473 if (buildCounterMetricFilterClause < 3) {
474 o.filters = buildUnnamed142(); 474 o.filters = buildUnnamed145();
475 o.operator = "foo"; 475 o.operator = "foo";
476 } 476 }
477 buildCounterMetricFilterClause--; 477 buildCounterMetricFilterClause--;
478 return o; 478 return o;
479 } 479 }
480 480
481 checkMetricFilterClause(api.MetricFilterClause o) { 481 checkMetricFilterClause(api.MetricFilterClause o) {
482 buildCounterMetricFilterClause++; 482 buildCounterMetricFilterClause++;
483 if (buildCounterMetricFilterClause < 3) { 483 if (buildCounterMetricFilterClause < 3) {
484 checkUnnamed142(o.filters); 484 checkUnnamed145(o.filters);
485 unittest.expect(o.operator, unittest.equals('foo')); 485 unittest.expect(o.operator, unittest.equals('foo'));
486 } 486 }
487 buildCounterMetricFilterClause--; 487 buildCounterMetricFilterClause--;
488 } 488 }
489 489
490 buildUnnamed143() { 490 buildUnnamed146() {
491 var o = new core.List<api.MetricHeaderEntry>(); 491 var o = new core.List<api.MetricHeaderEntry>();
492 o.add(buildMetricHeaderEntry()); 492 o.add(buildMetricHeaderEntry());
493 o.add(buildMetricHeaderEntry()); 493 o.add(buildMetricHeaderEntry());
494 return o; 494 return o;
495 } 495 }
496 496
497 checkUnnamed143(core.List<api.MetricHeaderEntry> o) { 497 checkUnnamed146(core.List<api.MetricHeaderEntry> o) {
498 unittest.expect(o, unittest.hasLength(2)); 498 unittest.expect(o, unittest.hasLength(2));
499 checkMetricHeaderEntry(o[0]); 499 checkMetricHeaderEntry(o[0]);
500 checkMetricHeaderEntry(o[1]); 500 checkMetricHeaderEntry(o[1]);
501 } 501 }
502 502
503 buildUnnamed144() { 503 buildUnnamed147() {
504 var o = new core.List<api.PivotHeader>(); 504 var o = new core.List<api.PivotHeader>();
505 o.add(buildPivotHeader()); 505 o.add(buildPivotHeader());
506 o.add(buildPivotHeader()); 506 o.add(buildPivotHeader());
507 return o; 507 return o;
508 } 508 }
509 509
510 checkUnnamed144(core.List<api.PivotHeader> o) { 510 checkUnnamed147(core.List<api.PivotHeader> o) {
511 unittest.expect(o, unittest.hasLength(2)); 511 unittest.expect(o, unittest.hasLength(2));
512 checkPivotHeader(o[0]); 512 checkPivotHeader(o[0]);
513 checkPivotHeader(o[1]); 513 checkPivotHeader(o[1]);
514 } 514 }
515 515
516 core.int buildCounterMetricHeader = 0; 516 core.int buildCounterMetricHeader = 0;
517 buildMetricHeader() { 517 buildMetricHeader() {
518 var o = new api.MetricHeader(); 518 var o = new api.MetricHeader();
519 buildCounterMetricHeader++; 519 buildCounterMetricHeader++;
520 if (buildCounterMetricHeader < 3) { 520 if (buildCounterMetricHeader < 3) {
521 o.metricHeaderEntries = buildUnnamed143(); 521 o.metricHeaderEntries = buildUnnamed146();
522 o.pivotHeaders = buildUnnamed144(); 522 o.pivotHeaders = buildUnnamed147();
523 } 523 }
524 buildCounterMetricHeader--; 524 buildCounterMetricHeader--;
525 return o; 525 return o;
526 } 526 }
527 527
528 checkMetricHeader(api.MetricHeader o) { 528 checkMetricHeader(api.MetricHeader o) {
529 buildCounterMetricHeader++; 529 buildCounterMetricHeader++;
530 if (buildCounterMetricHeader < 3) { 530 if (buildCounterMetricHeader < 3) {
531 checkUnnamed143(o.metricHeaderEntries); 531 checkUnnamed146(o.metricHeaderEntries);
532 checkUnnamed144(o.pivotHeaders); 532 checkUnnamed147(o.pivotHeaders);
533 } 533 }
534 buildCounterMetricHeader--; 534 buildCounterMetricHeader--;
535 } 535 }
536 536
537 core.int buildCounterMetricHeaderEntry = 0; 537 core.int buildCounterMetricHeaderEntry = 0;
538 buildMetricHeaderEntry() { 538 buildMetricHeaderEntry() {
539 var o = new api.MetricHeaderEntry(); 539 var o = new api.MetricHeaderEntry();
540 buildCounterMetricHeaderEntry++; 540 buildCounterMetricHeaderEntry++;
541 if (buildCounterMetricHeaderEntry < 3) { 541 if (buildCounterMetricHeaderEntry < 3) {
542 o.name = "foo"; 542 o.name = "foo";
543 o.type = "foo"; 543 o.type = "foo";
544 } 544 }
545 buildCounterMetricHeaderEntry--; 545 buildCounterMetricHeaderEntry--;
546 return o; 546 return o;
547 } 547 }
548 548
549 checkMetricHeaderEntry(api.MetricHeaderEntry o) { 549 checkMetricHeaderEntry(api.MetricHeaderEntry o) {
550 buildCounterMetricHeaderEntry++; 550 buildCounterMetricHeaderEntry++;
551 if (buildCounterMetricHeaderEntry < 3) { 551 if (buildCounterMetricHeaderEntry < 3) {
552 unittest.expect(o.name, unittest.equals('foo')); 552 unittest.expect(o.name, unittest.equals('foo'));
553 unittest.expect(o.type, unittest.equals('foo')); 553 unittest.expect(o.type, unittest.equals('foo'));
554 } 554 }
555 buildCounterMetricHeaderEntry--; 555 buildCounterMetricHeaderEntry--;
556 } 556 }
557 557
558 buildUnnamed145() { 558 buildUnnamed148() {
559 var o = new core.List<api.SegmentFilterClause>(); 559 var o = new core.List<api.SegmentFilterClause>();
560 o.add(buildSegmentFilterClause()); 560 o.add(buildSegmentFilterClause());
561 o.add(buildSegmentFilterClause()); 561 o.add(buildSegmentFilterClause());
562 return o; 562 return o;
563 } 563 }
564 564
565 checkUnnamed145(core.List<api.SegmentFilterClause> o) { 565 checkUnnamed148(core.List<api.SegmentFilterClause> o) {
566 unittest.expect(o, unittest.hasLength(2)); 566 unittest.expect(o, unittest.hasLength(2));
567 checkSegmentFilterClause(o[0]); 567 checkSegmentFilterClause(o[0]);
568 checkSegmentFilterClause(o[1]); 568 checkSegmentFilterClause(o[1]);
569 } 569 }
570 570
571 core.int buildCounterOrFiltersForSegment = 0; 571 core.int buildCounterOrFiltersForSegment = 0;
572 buildOrFiltersForSegment() { 572 buildOrFiltersForSegment() {
573 var o = new api.OrFiltersForSegment(); 573 var o = new api.OrFiltersForSegment();
574 buildCounterOrFiltersForSegment++; 574 buildCounterOrFiltersForSegment++;
575 if (buildCounterOrFiltersForSegment < 3) { 575 if (buildCounterOrFiltersForSegment < 3) {
576 o.segmentFilterClauses = buildUnnamed145(); 576 o.segmentFilterClauses = buildUnnamed148();
577 } 577 }
578 buildCounterOrFiltersForSegment--; 578 buildCounterOrFiltersForSegment--;
579 return o; 579 return o;
580 } 580 }
581 581
582 checkOrFiltersForSegment(api.OrFiltersForSegment o) { 582 checkOrFiltersForSegment(api.OrFiltersForSegment o) {
583 buildCounterOrFiltersForSegment++; 583 buildCounterOrFiltersForSegment++;
584 if (buildCounterOrFiltersForSegment < 3) { 584 if (buildCounterOrFiltersForSegment < 3) {
585 checkUnnamed145(o.segmentFilterClauses); 585 checkUnnamed148(o.segmentFilterClauses);
586 } 586 }
587 buildCounterOrFiltersForSegment--; 587 buildCounterOrFiltersForSegment--;
588 } 588 }
589 589
590 core.int buildCounterOrderBy = 0; 590 core.int buildCounterOrderBy = 0;
591 buildOrderBy() { 591 buildOrderBy() {
592 var o = new api.OrderBy(); 592 var o = new api.OrderBy();
593 buildCounterOrderBy++; 593 buildCounterOrderBy++;
594 if (buildCounterOrderBy < 3) { 594 if (buildCounterOrderBy < 3) {
595 o.fieldName = "foo"; 595 o.fieldName = "foo";
596 o.orderType = "foo"; 596 o.orderType = "foo";
597 o.sortOrder = "foo"; 597 o.sortOrder = "foo";
598 } 598 }
599 buildCounterOrderBy--; 599 buildCounterOrderBy--;
600 return o; 600 return o;
601 } 601 }
602 602
603 checkOrderBy(api.OrderBy o) { 603 checkOrderBy(api.OrderBy o) {
604 buildCounterOrderBy++; 604 buildCounterOrderBy++;
605 if (buildCounterOrderBy < 3) { 605 if (buildCounterOrderBy < 3) {
606 unittest.expect(o.fieldName, unittest.equals('foo')); 606 unittest.expect(o.fieldName, unittest.equals('foo'));
607 unittest.expect(o.orderType, unittest.equals('foo')); 607 unittest.expect(o.orderType, unittest.equals('foo'));
608 unittest.expect(o.sortOrder, unittest.equals('foo')); 608 unittest.expect(o.sortOrder, unittest.equals('foo'));
609 } 609 }
610 buildCounterOrderBy--; 610 buildCounterOrderBy--;
611 } 611 }
612 612
613 buildUnnamed146() { 613 buildUnnamed149() {
614 var o = new core.List<api.DimensionFilterClause>(); 614 var o = new core.List<api.DimensionFilterClause>();
615 o.add(buildDimensionFilterClause()); 615 o.add(buildDimensionFilterClause());
616 o.add(buildDimensionFilterClause()); 616 o.add(buildDimensionFilterClause());
617 return o; 617 return o;
618 } 618 }
619 619
620 checkUnnamed146(core.List<api.DimensionFilterClause> o) { 620 checkUnnamed149(core.List<api.DimensionFilterClause> o) {
621 unittest.expect(o, unittest.hasLength(2)); 621 unittest.expect(o, unittest.hasLength(2));
622 checkDimensionFilterClause(o[0]); 622 checkDimensionFilterClause(o[0]);
623 checkDimensionFilterClause(o[1]); 623 checkDimensionFilterClause(o[1]);
624 } 624 }
625 625
626 buildUnnamed147() { 626 buildUnnamed150() {
627 var o = new core.List<api.Dimension>(); 627 var o = new core.List<api.Dimension>();
628 o.add(buildDimension()); 628 o.add(buildDimension());
629 o.add(buildDimension()); 629 o.add(buildDimension());
630 return o; 630 return o;
631 } 631 }
632 632
633 checkUnnamed147(core.List<api.Dimension> o) { 633 checkUnnamed150(core.List<api.Dimension> o) {
634 unittest.expect(o, unittest.hasLength(2)); 634 unittest.expect(o, unittest.hasLength(2));
635 checkDimension(o[0]); 635 checkDimension(o[0]);
636 checkDimension(o[1]); 636 checkDimension(o[1]);
637 } 637 }
638 638
639 buildUnnamed148() { 639 buildUnnamed151() {
640 var o = new core.List<api.Metric>(); 640 var o = new core.List<api.Metric>();
641 o.add(buildMetric()); 641 o.add(buildMetric());
642 o.add(buildMetric()); 642 o.add(buildMetric());
643 return o; 643 return o;
644 } 644 }
645 645
646 checkUnnamed148(core.List<api.Metric> o) { 646 checkUnnamed151(core.List<api.Metric> o) {
647 unittest.expect(o, unittest.hasLength(2)); 647 unittest.expect(o, unittest.hasLength(2));
648 checkMetric(o[0]); 648 checkMetric(o[0]);
649 checkMetric(o[1]); 649 checkMetric(o[1]);
650 } 650 }
651 651
652 core.int buildCounterPivot = 0; 652 core.int buildCounterPivot = 0;
653 buildPivot() { 653 buildPivot() {
654 var o = new api.Pivot(); 654 var o = new api.Pivot();
655 buildCounterPivot++; 655 buildCounterPivot++;
656 if (buildCounterPivot < 3) { 656 if (buildCounterPivot < 3) {
657 o.dimensionFilterClauses = buildUnnamed146(); 657 o.dimensionFilterClauses = buildUnnamed149();
658 o.dimensions = buildUnnamed147(); 658 o.dimensions = buildUnnamed150();
659 o.maxGroupCount = 42; 659 o.maxGroupCount = 42;
660 o.metrics = buildUnnamed148(); 660 o.metrics = buildUnnamed151();
661 o.startGroup = 42; 661 o.startGroup = 42;
662 } 662 }
663 buildCounterPivot--; 663 buildCounterPivot--;
664 return o; 664 return o;
665 } 665 }
666 666
667 checkPivot(api.Pivot o) { 667 checkPivot(api.Pivot o) {
668 buildCounterPivot++; 668 buildCounterPivot++;
669 if (buildCounterPivot < 3) { 669 if (buildCounterPivot < 3) {
670 checkUnnamed146(o.dimensionFilterClauses); 670 checkUnnamed149(o.dimensionFilterClauses);
671 checkUnnamed147(o.dimensions); 671 checkUnnamed150(o.dimensions);
672 unittest.expect(o.maxGroupCount, unittest.equals(42)); 672 unittest.expect(o.maxGroupCount, unittest.equals(42));
673 checkUnnamed148(o.metrics); 673 checkUnnamed151(o.metrics);
674 unittest.expect(o.startGroup, unittest.equals(42)); 674 unittest.expect(o.startGroup, unittest.equals(42));
675 } 675 }
676 buildCounterPivot--; 676 buildCounterPivot--;
677 } 677 }
678 678
679 buildUnnamed149() { 679 buildUnnamed152() {
680 var o = new core.List<api.PivotHeaderEntry>(); 680 var o = new core.List<api.PivotHeaderEntry>();
681 o.add(buildPivotHeaderEntry()); 681 o.add(buildPivotHeaderEntry());
682 o.add(buildPivotHeaderEntry()); 682 o.add(buildPivotHeaderEntry());
683 return o; 683 return o;
684 } 684 }
685 685
686 checkUnnamed149(core.List<api.PivotHeaderEntry> o) { 686 checkUnnamed152(core.List<api.PivotHeaderEntry> o) {
687 unittest.expect(o, unittest.hasLength(2)); 687 unittest.expect(o, unittest.hasLength(2));
688 checkPivotHeaderEntry(o[0]); 688 checkPivotHeaderEntry(o[0]);
689 checkPivotHeaderEntry(o[1]); 689 checkPivotHeaderEntry(o[1]);
690 } 690 }
691 691
692 core.int buildCounterPivotHeader = 0; 692 core.int buildCounterPivotHeader = 0;
693 buildPivotHeader() { 693 buildPivotHeader() {
694 var o = new api.PivotHeader(); 694 var o = new api.PivotHeader();
695 buildCounterPivotHeader++; 695 buildCounterPivotHeader++;
696 if (buildCounterPivotHeader < 3) { 696 if (buildCounterPivotHeader < 3) {
697 o.pivotHeaderEntries = buildUnnamed149(); 697 o.pivotHeaderEntries = buildUnnamed152();
698 o.totalPivotGroupsCount = 42; 698 o.totalPivotGroupsCount = 42;
699 } 699 }
700 buildCounterPivotHeader--; 700 buildCounterPivotHeader--;
701 return o; 701 return o;
702 } 702 }
703 703
704 checkPivotHeader(api.PivotHeader o) { 704 checkPivotHeader(api.PivotHeader o) {
705 buildCounterPivotHeader++; 705 buildCounterPivotHeader++;
706 if (buildCounterPivotHeader < 3) { 706 if (buildCounterPivotHeader < 3) {
707 checkUnnamed149(o.pivotHeaderEntries); 707 checkUnnamed152(o.pivotHeaderEntries);
708 unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); 708 unittest.expect(o.totalPivotGroupsCount, unittest.equals(42));
709 } 709 }
710 buildCounterPivotHeader--; 710 buildCounterPivotHeader--;
711 } 711 }
712 712
713 buildUnnamed150() { 713 buildUnnamed153() {
714 var o = new core.List<core.String>(); 714 var o = new core.List<core.String>();
715 o.add("foo"); 715 o.add("foo");
716 o.add("foo"); 716 o.add("foo");
717 return o; 717 return o;
718 } 718 }
719 719
720 checkUnnamed150(core.List<core.String> o) { 720 checkUnnamed153(core.List<core.String> o) {
721 unittest.expect(o, unittest.hasLength(2)); 721 unittest.expect(o, unittest.hasLength(2));
722 unittest.expect(o[0], unittest.equals('foo')); 722 unittest.expect(o[0], unittest.equals('foo'));
723 unittest.expect(o[1], unittest.equals('foo')); 723 unittest.expect(o[1], unittest.equals('foo'));
724 } 724 }
725 725
726 buildUnnamed151() { 726 buildUnnamed154() {
727 var o = new core.List<core.String>(); 727 var o = new core.List<core.String>();
728 o.add("foo"); 728 o.add("foo");
729 o.add("foo"); 729 o.add("foo");
730 return o; 730 return o;
731 } 731 }
732 732
733 checkUnnamed151(core.List<core.String> o) { 733 checkUnnamed154(core.List<core.String> o) {
734 unittest.expect(o, unittest.hasLength(2)); 734 unittest.expect(o, unittest.hasLength(2));
735 unittest.expect(o[0], unittest.equals('foo')); 735 unittest.expect(o[0], unittest.equals('foo'));
736 unittest.expect(o[1], unittest.equals('foo')); 736 unittest.expect(o[1], unittest.equals('foo'));
737 } 737 }
738 738
739 core.int buildCounterPivotHeaderEntry = 0; 739 core.int buildCounterPivotHeaderEntry = 0;
740 buildPivotHeaderEntry() { 740 buildPivotHeaderEntry() {
741 var o = new api.PivotHeaderEntry(); 741 var o = new api.PivotHeaderEntry();
742 buildCounterPivotHeaderEntry++; 742 buildCounterPivotHeaderEntry++;
743 if (buildCounterPivotHeaderEntry < 3) { 743 if (buildCounterPivotHeaderEntry < 3) {
744 o.dimensionNames = buildUnnamed150(); 744 o.dimensionNames = buildUnnamed153();
745 o.dimensionValues = buildUnnamed151(); 745 o.dimensionValues = buildUnnamed154();
746 o.metric = buildMetricHeaderEntry(); 746 o.metric = buildMetricHeaderEntry();
747 } 747 }
748 buildCounterPivotHeaderEntry--; 748 buildCounterPivotHeaderEntry--;
749 return o; 749 return o;
750 } 750 }
751 751
752 checkPivotHeaderEntry(api.PivotHeaderEntry o) { 752 checkPivotHeaderEntry(api.PivotHeaderEntry o) {
753 buildCounterPivotHeaderEntry++; 753 buildCounterPivotHeaderEntry++;
754 if (buildCounterPivotHeaderEntry < 3) { 754 if (buildCounterPivotHeaderEntry < 3) {
755 checkUnnamed150(o.dimensionNames); 755 checkUnnamed153(o.dimensionNames);
756 checkUnnamed151(o.dimensionValues); 756 checkUnnamed154(o.dimensionValues);
757 checkMetricHeaderEntry(o.metric); 757 checkMetricHeaderEntry(o.metric);
758 } 758 }
759 buildCounterPivotHeaderEntry--; 759 buildCounterPivotHeaderEntry--;
760 } 760 }
761 761
762 buildUnnamed152() { 762 buildUnnamed155() {
763 var o = new core.List<core.String>(); 763 var o = new core.List<core.String>();
764 o.add("foo"); 764 o.add("foo");
765 o.add("foo"); 765 o.add("foo");
766 return o; 766 return o;
767 } 767 }
768 768
769 checkUnnamed152(core.List<core.String> o) { 769 checkUnnamed155(core.List<core.String> o) {
770 unittest.expect(o, unittest.hasLength(2)); 770 unittest.expect(o, unittest.hasLength(2));
771 unittest.expect(o[0], unittest.equals('foo')); 771 unittest.expect(o[0], unittest.equals('foo'));
772 unittest.expect(o[1], unittest.equals('foo')); 772 unittest.expect(o[1], unittest.equals('foo'));
773 } 773 }
774 774
775 core.int buildCounterPivotValueRegion = 0; 775 core.int buildCounterPivotValueRegion = 0;
776 buildPivotValueRegion() { 776 buildPivotValueRegion() {
777 var o = new api.PivotValueRegion(); 777 var o = new api.PivotValueRegion();
778 buildCounterPivotValueRegion++; 778 buildCounterPivotValueRegion++;
779 if (buildCounterPivotValueRegion < 3) { 779 if (buildCounterPivotValueRegion < 3) {
780 o.values = buildUnnamed152(); 780 o.values = buildUnnamed155();
781 } 781 }
782 buildCounterPivotValueRegion--; 782 buildCounterPivotValueRegion--;
783 return o; 783 return o;
784 } 784 }
785 785
786 checkPivotValueRegion(api.PivotValueRegion o) { 786 checkPivotValueRegion(api.PivotValueRegion o) {
787 buildCounterPivotValueRegion++; 787 buildCounterPivotValueRegion++;
788 if (buildCounterPivotValueRegion < 3) { 788 if (buildCounterPivotValueRegion < 3) {
789 checkUnnamed152(o.values); 789 checkUnnamed155(o.values);
790 } 790 }
791 buildCounterPivotValueRegion--; 791 buildCounterPivotValueRegion--;
792 } 792 }
793 793
794 core.int buildCounterReport = 0; 794 core.int buildCounterReport = 0;
795 buildReport() { 795 buildReport() {
796 var o = new api.Report(); 796 var o = new api.Report();
797 buildCounterReport++; 797 buildCounterReport++;
798 if (buildCounterReport < 3) { 798 if (buildCounterReport < 3) {
799 o.columnHeader = buildColumnHeader(); 799 o.columnHeader = buildColumnHeader();
800 o.data = buildReportData(); 800 o.data = buildReportData();
801 o.nextPageToken = "foo"; 801 o.nextPageToken = "foo";
802 } 802 }
803 buildCounterReport--; 803 buildCounterReport--;
804 return o; 804 return o;
805 } 805 }
806 806
807 checkReport(api.Report o) { 807 checkReport(api.Report o) {
808 buildCounterReport++; 808 buildCounterReport++;
809 if (buildCounterReport < 3) { 809 if (buildCounterReport < 3) {
810 checkColumnHeader(o.columnHeader); 810 checkColumnHeader(o.columnHeader);
811 checkReportData(o.data); 811 checkReportData(o.data);
812 unittest.expect(o.nextPageToken, unittest.equals('foo')); 812 unittest.expect(o.nextPageToken, unittest.equals('foo'));
813 } 813 }
814 buildCounterReport--; 814 buildCounterReport--;
815 } 815 }
816 816
817 buildUnnamed153() { 817 buildUnnamed156() {
818 var o = new core.List<api.DateRangeValues>(); 818 var o = new core.List<api.DateRangeValues>();
819 o.add(buildDateRangeValues()); 819 o.add(buildDateRangeValues());
820 o.add(buildDateRangeValues()); 820 o.add(buildDateRangeValues());
821 return o; 821 return o;
822 } 822 }
823 823
824 checkUnnamed153(core.List<api.DateRangeValues> o) { 824 checkUnnamed156(core.List<api.DateRangeValues> o) {
825 unittest.expect(o, unittest.hasLength(2)); 825 unittest.expect(o, unittest.hasLength(2));
826 checkDateRangeValues(o[0]); 826 checkDateRangeValues(o[0]);
827 checkDateRangeValues(o[1]); 827 checkDateRangeValues(o[1]);
828 } 828 }
829 829
830 buildUnnamed154() { 830 buildUnnamed157() {
831 var o = new core.List<api.DateRangeValues>(); 831 var o = new core.List<api.DateRangeValues>();
832 o.add(buildDateRangeValues()); 832 o.add(buildDateRangeValues());
833 o.add(buildDateRangeValues()); 833 o.add(buildDateRangeValues());
834 return o; 834 return o;
835 } 835 }
836 836
837 checkUnnamed154(core.List<api.DateRangeValues> o) { 837 checkUnnamed157(core.List<api.DateRangeValues> o) {
838 unittest.expect(o, unittest.hasLength(2)); 838 unittest.expect(o, unittest.hasLength(2));
839 checkDateRangeValues(o[0]); 839 checkDateRangeValues(o[0]);
840 checkDateRangeValues(o[1]); 840 checkDateRangeValues(o[1]);
841 } 841 }
842 842
843 buildUnnamed155() { 843 buildUnnamed158() {
844 var o = new core.List<api.ReportRow>(); 844 var o = new core.List<api.ReportRow>();
845 o.add(buildReportRow()); 845 o.add(buildReportRow());
846 o.add(buildReportRow()); 846 o.add(buildReportRow());
847 return o; 847 return o;
848 } 848 }
849 849
850 checkUnnamed155(core.List<api.ReportRow> o) { 850 checkUnnamed158(core.List<api.ReportRow> o) {
851 unittest.expect(o, unittest.hasLength(2)); 851 unittest.expect(o, unittest.hasLength(2));
852 checkReportRow(o[0]); 852 checkReportRow(o[0]);
853 checkReportRow(o[1]); 853 checkReportRow(o[1]);
854 } 854 }
855 855
856 buildUnnamed156() { 856 buildUnnamed159() {
857 var o = new core.List<core.String>(); 857 var o = new core.List<core.String>();
858 o.add("foo"); 858 o.add("foo");
859 o.add("foo"); 859 o.add("foo");
860 return o; 860 return o;
861 } 861 }
862 862
863 checkUnnamed156(core.List<core.String> o) { 863 checkUnnamed159(core.List<core.String> o) {
864 unittest.expect(o, unittest.hasLength(2)); 864 unittest.expect(o, unittest.hasLength(2));
865 unittest.expect(o[0], unittest.equals('foo')); 865 unittest.expect(o[0], unittest.equals('foo'));
866 unittest.expect(o[1], unittest.equals('foo')); 866 unittest.expect(o[1], unittest.equals('foo'));
867 } 867 }
868 868
869 buildUnnamed157() { 869 buildUnnamed160() {
870 var o = new core.List<core.String>(); 870 var o = new core.List<core.String>();
871 o.add("foo"); 871 o.add("foo");
872 o.add("foo"); 872 o.add("foo");
873 return o; 873 return o;
874 } 874 }
875 875
876 checkUnnamed157(core.List<core.String> o) { 876 checkUnnamed160(core.List<core.String> o) {
877 unittest.expect(o, unittest.hasLength(2)); 877 unittest.expect(o, unittest.hasLength(2));
878 unittest.expect(o[0], unittest.equals('foo')); 878 unittest.expect(o[0], unittest.equals('foo'));
879 unittest.expect(o[1], unittest.equals('foo')); 879 unittest.expect(o[1], unittest.equals('foo'));
880 } 880 }
881 881
882 buildUnnamed158() { 882 buildUnnamed161() {
883 var o = new core.List<api.DateRangeValues>(); 883 var o = new core.List<api.DateRangeValues>();
884 o.add(buildDateRangeValues()); 884 o.add(buildDateRangeValues());
885 o.add(buildDateRangeValues()); 885 o.add(buildDateRangeValues());
886 return o; 886 return o;
887 } 887 }
888 888
889 checkUnnamed158(core.List<api.DateRangeValues> o) { 889 checkUnnamed161(core.List<api.DateRangeValues> o) {
890 unittest.expect(o, unittest.hasLength(2)); 890 unittest.expect(o, unittest.hasLength(2));
891 checkDateRangeValues(o[0]); 891 checkDateRangeValues(o[0]);
892 checkDateRangeValues(o[1]); 892 checkDateRangeValues(o[1]);
893 } 893 }
894 894
895 core.int buildCounterReportData = 0; 895 core.int buildCounterReportData = 0;
896 buildReportData() { 896 buildReportData() {
897 var o = new api.ReportData(); 897 var o = new api.ReportData();
898 buildCounterReportData++; 898 buildCounterReportData++;
899 if (buildCounterReportData < 3) { 899 if (buildCounterReportData < 3) {
900 o.dataLastRefreshed = "foo";
900 o.isDataGolden = true; 901 o.isDataGolden = true;
901 o.maximums = buildUnnamed153(); 902 o.maximums = buildUnnamed156();
902 o.minimums = buildUnnamed154(); 903 o.minimums = buildUnnamed157();
903 o.rowCount = 42; 904 o.rowCount = 42;
904 o.rows = buildUnnamed155(); 905 o.rows = buildUnnamed158();
905 o.samplesReadCounts = buildUnnamed156(); 906 o.samplesReadCounts = buildUnnamed159();
906 o.samplingSpaceSizes = buildUnnamed157(); 907 o.samplingSpaceSizes = buildUnnamed160();
907 o.totals = buildUnnamed158(); 908 o.totals = buildUnnamed161();
908 } 909 }
909 buildCounterReportData--; 910 buildCounterReportData--;
910 return o; 911 return o;
911 } 912 }
912 913
913 checkReportData(api.ReportData o) { 914 checkReportData(api.ReportData o) {
914 buildCounterReportData++; 915 buildCounterReportData++;
915 if (buildCounterReportData < 3) { 916 if (buildCounterReportData < 3) {
917 unittest.expect(o.dataLastRefreshed, unittest.equals('foo'));
916 unittest.expect(o.isDataGolden, unittest.isTrue); 918 unittest.expect(o.isDataGolden, unittest.isTrue);
917 checkUnnamed153(o.maximums); 919 checkUnnamed156(o.maximums);
918 checkUnnamed154(o.minimums); 920 checkUnnamed157(o.minimums);
919 unittest.expect(o.rowCount, unittest.equals(42)); 921 unittest.expect(o.rowCount, unittest.equals(42));
920 checkUnnamed155(o.rows); 922 checkUnnamed158(o.rows);
921 checkUnnamed156(o.samplesReadCounts); 923 checkUnnamed159(o.samplesReadCounts);
922 checkUnnamed157(o.samplingSpaceSizes); 924 checkUnnamed160(o.samplingSpaceSizes);
923 checkUnnamed158(o.totals); 925 checkUnnamed161(o.totals);
924 } 926 }
925 buildCounterReportData--; 927 buildCounterReportData--;
926 } 928 }
927 929
928 buildUnnamed159() { 930 buildUnnamed162() {
929 var o = new core.List<api.DateRange>(); 931 var o = new core.List<api.DateRange>();
930 o.add(buildDateRange()); 932 o.add(buildDateRange());
931 o.add(buildDateRange()); 933 o.add(buildDateRange());
932 return o; 934 return o;
933 } 935 }
934 936
935 checkUnnamed159(core.List<api.DateRange> o) { 937 checkUnnamed162(core.List<api.DateRange> o) {
936 unittest.expect(o, unittest.hasLength(2)); 938 unittest.expect(o, unittest.hasLength(2));
937 checkDateRange(o[0]); 939 checkDateRange(o[0]);
938 checkDateRange(o[1]); 940 checkDateRange(o[1]);
939 } 941 }
940 942
941 buildUnnamed160() { 943 buildUnnamed163() {
942 var o = new core.List<api.DimensionFilterClause>(); 944 var o = new core.List<api.DimensionFilterClause>();
943 o.add(buildDimensionFilterClause()); 945 o.add(buildDimensionFilterClause());
944 o.add(buildDimensionFilterClause()); 946 o.add(buildDimensionFilterClause());
945 return o; 947 return o;
946 } 948 }
947 949
948 checkUnnamed160(core.List<api.DimensionFilterClause> o) { 950 checkUnnamed163(core.List<api.DimensionFilterClause> o) {
949 unittest.expect(o, unittest.hasLength(2)); 951 unittest.expect(o, unittest.hasLength(2));
950 checkDimensionFilterClause(o[0]); 952 checkDimensionFilterClause(o[0]);
951 checkDimensionFilterClause(o[1]); 953 checkDimensionFilterClause(o[1]);
952 } 954 }
953 955
954 buildUnnamed161() { 956 buildUnnamed164() {
955 var o = new core.List<api.Dimension>(); 957 var o = new core.List<api.Dimension>();
956 o.add(buildDimension()); 958 o.add(buildDimension());
957 o.add(buildDimension()); 959 o.add(buildDimension());
958 return o; 960 return o;
959 } 961 }
960 962
961 checkUnnamed161(core.List<api.Dimension> o) { 963 checkUnnamed164(core.List<api.Dimension> o) {
962 unittest.expect(o, unittest.hasLength(2)); 964 unittest.expect(o, unittest.hasLength(2));
963 checkDimension(o[0]); 965 checkDimension(o[0]);
964 checkDimension(o[1]); 966 checkDimension(o[1]);
965 } 967 }
966 968
967 buildUnnamed162() { 969 buildUnnamed165() {
968 var o = new core.List<api.MetricFilterClause>(); 970 var o = new core.List<api.MetricFilterClause>();
969 o.add(buildMetricFilterClause()); 971 o.add(buildMetricFilterClause());
970 o.add(buildMetricFilterClause()); 972 o.add(buildMetricFilterClause());
971 return o; 973 return o;
972 } 974 }
973 975
974 checkUnnamed162(core.List<api.MetricFilterClause> o) { 976 checkUnnamed165(core.List<api.MetricFilterClause> o) {
975 unittest.expect(o, unittest.hasLength(2)); 977 unittest.expect(o, unittest.hasLength(2));
976 checkMetricFilterClause(o[0]); 978 checkMetricFilterClause(o[0]);
977 checkMetricFilterClause(o[1]); 979 checkMetricFilterClause(o[1]);
978 } 980 }
979 981
980 buildUnnamed163() { 982 buildUnnamed166() {
981 var o = new core.List<api.Metric>(); 983 var o = new core.List<api.Metric>();
982 o.add(buildMetric()); 984 o.add(buildMetric());
983 o.add(buildMetric()); 985 o.add(buildMetric());
984 return o; 986 return o;
985 } 987 }
986 988
987 checkUnnamed163(core.List<api.Metric> o) { 989 checkUnnamed166(core.List<api.Metric> o) {
988 unittest.expect(o, unittest.hasLength(2)); 990 unittest.expect(o, unittest.hasLength(2));
989 checkMetric(o[0]); 991 checkMetric(o[0]);
990 checkMetric(o[1]); 992 checkMetric(o[1]);
991 } 993 }
992 994
993 buildUnnamed164() { 995 buildUnnamed167() {
994 var o = new core.List<api.OrderBy>(); 996 var o = new core.List<api.OrderBy>();
995 o.add(buildOrderBy()); 997 o.add(buildOrderBy());
996 o.add(buildOrderBy()); 998 o.add(buildOrderBy());
997 return o; 999 return o;
998 } 1000 }
999 1001
1000 checkUnnamed164(core.List<api.OrderBy> o) { 1002 checkUnnamed167(core.List<api.OrderBy> o) {
1001 unittest.expect(o, unittest.hasLength(2)); 1003 unittest.expect(o, unittest.hasLength(2));
1002 checkOrderBy(o[0]); 1004 checkOrderBy(o[0]);
1003 checkOrderBy(o[1]); 1005 checkOrderBy(o[1]);
1004 } 1006 }
1005 1007
1006 buildUnnamed165() { 1008 buildUnnamed168() {
1007 var o = new core.List<api.Pivot>(); 1009 var o = new core.List<api.Pivot>();
1008 o.add(buildPivot()); 1010 o.add(buildPivot());
1009 o.add(buildPivot()); 1011 o.add(buildPivot());
1010 return o; 1012 return o;
1011 } 1013 }
1012 1014
1013 checkUnnamed165(core.List<api.Pivot> o) { 1015 checkUnnamed168(core.List<api.Pivot> o) {
1014 unittest.expect(o, unittest.hasLength(2)); 1016 unittest.expect(o, unittest.hasLength(2));
1015 checkPivot(o[0]); 1017 checkPivot(o[0]);
1016 checkPivot(o[1]); 1018 checkPivot(o[1]);
1017 } 1019 }
1018 1020
1019 buildUnnamed166() { 1021 buildUnnamed169() {
1020 var o = new core.List<api.Segment>(); 1022 var o = new core.List<api.Segment>();
1021 o.add(buildSegment()); 1023 o.add(buildSegment());
1022 o.add(buildSegment()); 1024 o.add(buildSegment());
1023 return o; 1025 return o;
1024 } 1026 }
1025 1027
1026 checkUnnamed166(core.List<api.Segment> o) { 1028 checkUnnamed169(core.List<api.Segment> o) {
1027 unittest.expect(o, unittest.hasLength(2)); 1029 unittest.expect(o, unittest.hasLength(2));
1028 checkSegment(o[0]); 1030 checkSegment(o[0]);
1029 checkSegment(o[1]); 1031 checkSegment(o[1]);
1030 } 1032 }
1031 1033
1032 core.int buildCounterReportRequest = 0; 1034 core.int buildCounterReportRequest = 0;
1033 buildReportRequest() { 1035 buildReportRequest() {
1034 var o = new api.ReportRequest(); 1036 var o = new api.ReportRequest();
1035 buildCounterReportRequest++; 1037 buildCounterReportRequest++;
1036 if (buildCounterReportRequest < 3) { 1038 if (buildCounterReportRequest < 3) {
1037 o.cohortGroup = buildCohortGroup(); 1039 o.cohortGroup = buildCohortGroup();
1038 o.dateRanges = buildUnnamed159(); 1040 o.dateRanges = buildUnnamed162();
1039 o.dimensionFilterClauses = buildUnnamed160(); 1041 o.dimensionFilterClauses = buildUnnamed163();
1040 o.dimensions = buildUnnamed161(); 1042 o.dimensions = buildUnnamed164();
1041 o.filtersExpression = "foo"; 1043 o.filtersExpression = "foo";
1042 o.hideTotals = true; 1044 o.hideTotals = true;
1043 o.hideValueRanges = true; 1045 o.hideValueRanges = true;
1044 o.includeEmptyRows = true; 1046 o.includeEmptyRows = true;
1045 o.metricFilterClauses = buildUnnamed162(); 1047 o.metricFilterClauses = buildUnnamed165();
1046 o.metrics = buildUnnamed163(); 1048 o.metrics = buildUnnamed166();
1047 o.orderBys = buildUnnamed164(); 1049 o.orderBys = buildUnnamed167();
1048 o.pageSize = 42; 1050 o.pageSize = 42;
1049 o.pageToken = "foo"; 1051 o.pageToken = "foo";
1050 o.pivots = buildUnnamed165(); 1052 o.pivots = buildUnnamed168();
1051 o.samplingLevel = "foo"; 1053 o.samplingLevel = "foo";
1052 o.segments = buildUnnamed166(); 1054 o.segments = buildUnnamed169();
1053 o.viewId = "foo"; 1055 o.viewId = "foo";
1054 } 1056 }
1055 buildCounterReportRequest--; 1057 buildCounterReportRequest--;
1056 return o; 1058 return o;
1057 } 1059 }
1058 1060
1059 checkReportRequest(api.ReportRequest o) { 1061 checkReportRequest(api.ReportRequest o) {
1060 buildCounterReportRequest++; 1062 buildCounterReportRequest++;
1061 if (buildCounterReportRequest < 3) { 1063 if (buildCounterReportRequest < 3) {
1062 checkCohortGroup(o.cohortGroup); 1064 checkCohortGroup(o.cohortGroup);
1063 checkUnnamed159(o.dateRanges); 1065 checkUnnamed162(o.dateRanges);
1064 checkUnnamed160(o.dimensionFilterClauses); 1066 checkUnnamed163(o.dimensionFilterClauses);
1065 checkUnnamed161(o.dimensions); 1067 checkUnnamed164(o.dimensions);
1066 unittest.expect(o.filtersExpression, unittest.equals('foo')); 1068 unittest.expect(o.filtersExpression, unittest.equals('foo'));
1067 unittest.expect(o.hideTotals, unittest.isTrue); 1069 unittest.expect(o.hideTotals, unittest.isTrue);
1068 unittest.expect(o.hideValueRanges, unittest.isTrue); 1070 unittest.expect(o.hideValueRanges, unittest.isTrue);
1069 unittest.expect(o.includeEmptyRows, unittest.isTrue); 1071 unittest.expect(o.includeEmptyRows, unittest.isTrue);
1070 checkUnnamed162(o.metricFilterClauses); 1072 checkUnnamed165(o.metricFilterClauses);
1071 checkUnnamed163(o.metrics); 1073 checkUnnamed166(o.metrics);
1072 checkUnnamed164(o.orderBys); 1074 checkUnnamed167(o.orderBys);
1073 unittest.expect(o.pageSize, unittest.equals(42)); 1075 unittest.expect(o.pageSize, unittest.equals(42));
1074 unittest.expect(o.pageToken, unittest.equals('foo')); 1076 unittest.expect(o.pageToken, unittest.equals('foo'));
1075 checkUnnamed165(o.pivots); 1077 checkUnnamed168(o.pivots);
1076 unittest.expect(o.samplingLevel, unittest.equals('foo')); 1078 unittest.expect(o.samplingLevel, unittest.equals('foo'));
1077 checkUnnamed166(o.segments); 1079 checkUnnamed169(o.segments);
1078 unittest.expect(o.viewId, unittest.equals('foo')); 1080 unittest.expect(o.viewId, unittest.equals('foo'));
1079 } 1081 }
1080 buildCounterReportRequest--; 1082 buildCounterReportRequest--;
1081 } 1083 }
1082 1084
1083 buildUnnamed167() { 1085 buildUnnamed170() {
1084 var o = new core.List<core.String>(); 1086 var o = new core.List<core.String>();
1085 o.add("foo"); 1087 o.add("foo");
1086 o.add("foo"); 1088 o.add("foo");
1087 return o; 1089 return o;
1088 } 1090 }
1089 1091
1090 checkUnnamed167(core.List<core.String> o) { 1092 checkUnnamed170(core.List<core.String> o) {
1091 unittest.expect(o, unittest.hasLength(2)); 1093 unittest.expect(o, unittest.hasLength(2));
1092 unittest.expect(o[0], unittest.equals('foo')); 1094 unittest.expect(o[0], unittest.equals('foo'));
1093 unittest.expect(o[1], unittest.equals('foo')); 1095 unittest.expect(o[1], unittest.equals('foo'));
1094 } 1096 }
1095 1097
1096 buildUnnamed168() { 1098 buildUnnamed171() {
1097 var o = new core.List<api.DateRangeValues>(); 1099 var o = new core.List<api.DateRangeValues>();
1098 o.add(buildDateRangeValues()); 1100 o.add(buildDateRangeValues());
1099 o.add(buildDateRangeValues()); 1101 o.add(buildDateRangeValues());
1100 return o; 1102 return o;
1101 } 1103 }
1102 1104
1103 checkUnnamed168(core.List<api.DateRangeValues> o) { 1105 checkUnnamed171(core.List<api.DateRangeValues> o) {
1104 unittest.expect(o, unittest.hasLength(2)); 1106 unittest.expect(o, unittest.hasLength(2));
1105 checkDateRangeValues(o[0]); 1107 checkDateRangeValues(o[0]);
1106 checkDateRangeValues(o[1]); 1108 checkDateRangeValues(o[1]);
1107 } 1109 }
1108 1110
1109 core.int buildCounterReportRow = 0; 1111 core.int buildCounterReportRow = 0;
1110 buildReportRow() { 1112 buildReportRow() {
1111 var o = new api.ReportRow(); 1113 var o = new api.ReportRow();
1112 buildCounterReportRow++; 1114 buildCounterReportRow++;
1113 if (buildCounterReportRow < 3) { 1115 if (buildCounterReportRow < 3) {
1114 o.dimensions = buildUnnamed167(); 1116 o.dimensions = buildUnnamed170();
1115 o.metrics = buildUnnamed168(); 1117 o.metrics = buildUnnamed171();
1116 } 1118 }
1117 buildCounterReportRow--; 1119 buildCounterReportRow--;
1118 return o; 1120 return o;
1119 } 1121 }
1120 1122
1121 checkReportRow(api.ReportRow o) { 1123 checkReportRow(api.ReportRow o) {
1122 buildCounterReportRow++; 1124 buildCounterReportRow++;
1123 if (buildCounterReportRow < 3) { 1125 if (buildCounterReportRow < 3) {
1124 checkUnnamed167(o.dimensions); 1126 checkUnnamed170(o.dimensions);
1125 checkUnnamed168(o.metrics); 1127 checkUnnamed171(o.metrics);
1126 } 1128 }
1127 buildCounterReportRow--; 1129 buildCounterReportRow--;
1128 } 1130 }
1129 1131
1130 core.int buildCounterSegment = 0; 1132 core.int buildCounterSegment = 0;
1131 buildSegment() { 1133 buildSegment() {
1132 var o = new api.Segment(); 1134 var o = new api.Segment();
1133 buildCounterSegment++; 1135 buildCounterSegment++;
1134 if (buildCounterSegment < 3) { 1136 if (buildCounterSegment < 3) {
1135 o.dynamicSegment = buildDynamicSegment(); 1137 o.dynamicSegment = buildDynamicSegment();
1136 o.segmentId = "foo"; 1138 o.segmentId = "foo";
1137 } 1139 }
1138 buildCounterSegment--; 1140 buildCounterSegment--;
1139 return o; 1141 return o;
1140 } 1142 }
1141 1143
1142 checkSegment(api.Segment o) { 1144 checkSegment(api.Segment o) {
1143 buildCounterSegment++; 1145 buildCounterSegment++;
1144 if (buildCounterSegment < 3) { 1146 if (buildCounterSegment < 3) {
1145 checkDynamicSegment(o.dynamicSegment); 1147 checkDynamicSegment(o.dynamicSegment);
1146 unittest.expect(o.segmentId, unittest.equals('foo')); 1148 unittest.expect(o.segmentId, unittest.equals('foo'));
1147 } 1149 }
1148 buildCounterSegment--; 1150 buildCounterSegment--;
1149 } 1151 }
1150 1152
1151 buildUnnamed169() { 1153 buildUnnamed172() {
1152 var o = new core.List<api.SegmentFilter>(); 1154 var o = new core.List<api.SegmentFilter>();
1153 o.add(buildSegmentFilter()); 1155 o.add(buildSegmentFilter());
1154 o.add(buildSegmentFilter()); 1156 o.add(buildSegmentFilter());
1155 return o; 1157 return o;
1156 } 1158 }
1157 1159
1158 checkUnnamed169(core.List<api.SegmentFilter> o) { 1160 checkUnnamed172(core.List<api.SegmentFilter> o) {
1159 unittest.expect(o, unittest.hasLength(2)); 1161 unittest.expect(o, unittest.hasLength(2));
1160 checkSegmentFilter(o[0]); 1162 checkSegmentFilter(o[0]);
1161 checkSegmentFilter(o[1]); 1163 checkSegmentFilter(o[1]);
1162 } 1164 }
1163 1165
1164 core.int buildCounterSegmentDefinition = 0; 1166 core.int buildCounterSegmentDefinition = 0;
1165 buildSegmentDefinition() { 1167 buildSegmentDefinition() {
1166 var o = new api.SegmentDefinition(); 1168 var o = new api.SegmentDefinition();
1167 buildCounterSegmentDefinition++; 1169 buildCounterSegmentDefinition++;
1168 if (buildCounterSegmentDefinition < 3) { 1170 if (buildCounterSegmentDefinition < 3) {
1169 o.segmentFilters = buildUnnamed169(); 1171 o.segmentFilters = buildUnnamed172();
1170 } 1172 }
1171 buildCounterSegmentDefinition--; 1173 buildCounterSegmentDefinition--;
1172 return o; 1174 return o;
1173 } 1175 }
1174 1176
1175 checkSegmentDefinition(api.SegmentDefinition o) { 1177 checkSegmentDefinition(api.SegmentDefinition o) {
1176 buildCounterSegmentDefinition++; 1178 buildCounterSegmentDefinition++;
1177 if (buildCounterSegmentDefinition < 3) { 1179 if (buildCounterSegmentDefinition < 3) {
1178 checkUnnamed169(o.segmentFilters); 1180 checkUnnamed172(o.segmentFilters);
1179 } 1181 }
1180 buildCounterSegmentDefinition--; 1182 buildCounterSegmentDefinition--;
1181 } 1183 }
1182 1184
1183 buildUnnamed170() { 1185 buildUnnamed173() {
1184 var o = new core.List<core.String>(); 1186 var o = new core.List<core.String>();
1185 o.add("foo"); 1187 o.add("foo");
1186 o.add("foo"); 1188 o.add("foo");
1187 return o; 1189 return o;
1188 } 1190 }
1189 1191
1190 checkUnnamed170(core.List<core.String> o) { 1192 checkUnnamed173(core.List<core.String> o) {
1191 unittest.expect(o, unittest.hasLength(2)); 1193 unittest.expect(o, unittest.hasLength(2));
1192 unittest.expect(o[0], unittest.equals('foo')); 1194 unittest.expect(o[0], unittest.equals('foo'));
1193 unittest.expect(o[1], unittest.equals('foo')); 1195 unittest.expect(o[1], unittest.equals('foo'));
1194 } 1196 }
1195 1197
1196 core.int buildCounterSegmentDimensionFilter = 0; 1198 core.int buildCounterSegmentDimensionFilter = 0;
1197 buildSegmentDimensionFilter() { 1199 buildSegmentDimensionFilter() {
1198 var o = new api.SegmentDimensionFilter(); 1200 var o = new api.SegmentDimensionFilter();
1199 buildCounterSegmentDimensionFilter++; 1201 buildCounterSegmentDimensionFilter++;
1200 if (buildCounterSegmentDimensionFilter < 3) { 1202 if (buildCounterSegmentDimensionFilter < 3) {
1201 o.caseSensitive = true; 1203 o.caseSensitive = true;
1202 o.dimensionName = "foo"; 1204 o.dimensionName = "foo";
1203 o.expressions = buildUnnamed170(); 1205 o.expressions = buildUnnamed173();
1204 o.maxComparisonValue = "foo"; 1206 o.maxComparisonValue = "foo";
1205 o.minComparisonValue = "foo"; 1207 o.minComparisonValue = "foo";
1206 o.operator = "foo"; 1208 o.operator = "foo";
1207 } 1209 }
1208 buildCounterSegmentDimensionFilter--; 1210 buildCounterSegmentDimensionFilter--;
1209 return o; 1211 return o;
1210 } 1212 }
1211 1213
1212 checkSegmentDimensionFilter(api.SegmentDimensionFilter o) { 1214 checkSegmentDimensionFilter(api.SegmentDimensionFilter o) {
1213 buildCounterSegmentDimensionFilter++; 1215 buildCounterSegmentDimensionFilter++;
1214 if (buildCounterSegmentDimensionFilter < 3) { 1216 if (buildCounterSegmentDimensionFilter < 3) {
1215 unittest.expect(o.caseSensitive, unittest.isTrue); 1217 unittest.expect(o.caseSensitive, unittest.isTrue);
1216 unittest.expect(o.dimensionName, unittest.equals('foo')); 1218 unittest.expect(o.dimensionName, unittest.equals('foo'));
1217 checkUnnamed170(o.expressions); 1219 checkUnnamed173(o.expressions);
1218 unittest.expect(o.maxComparisonValue, unittest.equals('foo')); 1220 unittest.expect(o.maxComparisonValue, unittest.equals('foo'));
1219 unittest.expect(o.minComparisonValue, unittest.equals('foo')); 1221 unittest.expect(o.minComparisonValue, unittest.equals('foo'));
1220 unittest.expect(o.operator, unittest.equals('foo')); 1222 unittest.expect(o.operator, unittest.equals('foo'));
1221 } 1223 }
1222 buildCounterSegmentDimensionFilter--; 1224 buildCounterSegmentDimensionFilter--;
1223 } 1225 }
1224 1226
1225 core.int buildCounterSegmentFilter = 0; 1227 core.int buildCounterSegmentFilter = 0;
1226 buildSegmentFilter() { 1228 buildSegmentFilter() {
1227 var o = new api.SegmentFilter(); 1229 var o = new api.SegmentFilter();
(...skipping 60 matching lines...)
1288 if (buildCounterSegmentMetricFilter < 3) { 1290 if (buildCounterSegmentMetricFilter < 3) {
1289 unittest.expect(o.comparisonValue, unittest.equals('foo')); 1291 unittest.expect(o.comparisonValue, unittest.equals('foo'));
1290 unittest.expect(o.maxComparisonValue, unittest.equals('foo')); 1292 unittest.expect(o.maxComparisonValue, unittest.equals('foo'));
1291 unittest.expect(o.metricName, unittest.equals('foo')); 1293 unittest.expect(o.metricName, unittest.equals('foo'));
1292 unittest.expect(o.operator, unittest.equals('foo')); 1294 unittest.expect(o.operator, unittest.equals('foo'));
1293 unittest.expect(o.scope, unittest.equals('foo')); 1295 unittest.expect(o.scope, unittest.equals('foo'));
1294 } 1296 }
1295 buildCounterSegmentMetricFilter--; 1297 buildCounterSegmentMetricFilter--;
1296 } 1298 }
1297 1299
1298 buildUnnamed171() { 1300 buildUnnamed174() {
1299 var o = new core.List<api.OrFiltersForSegment>(); 1301 var o = new core.List<api.OrFiltersForSegment>();
1300 o.add(buildOrFiltersForSegment()); 1302 o.add(buildOrFiltersForSegment());
1301 o.add(buildOrFiltersForSegment()); 1303 o.add(buildOrFiltersForSegment());
1302 return o; 1304 return o;
1303 } 1305 }
1304 1306
1305 checkUnnamed171(core.List<api.OrFiltersForSegment> o) { 1307 checkUnnamed174(core.List<api.OrFiltersForSegment> o) {
1306 unittest.expect(o, unittest.hasLength(2)); 1308 unittest.expect(o, unittest.hasLength(2));
1307 checkOrFiltersForSegment(o[0]); 1309 checkOrFiltersForSegment(o[0]);
1308 checkOrFiltersForSegment(o[1]); 1310 checkOrFiltersForSegment(o[1]);
1309 } 1311 }
1310 1312
1311 core.int buildCounterSegmentSequenceStep = 0; 1313 core.int buildCounterSegmentSequenceStep = 0;
1312 buildSegmentSequenceStep() { 1314 buildSegmentSequenceStep() {
1313 var o = new api.SegmentSequenceStep(); 1315 var o = new api.SegmentSequenceStep();
1314 buildCounterSegmentSequenceStep++; 1316 buildCounterSegmentSequenceStep++;
1315 if (buildCounterSegmentSequenceStep < 3) { 1317 if (buildCounterSegmentSequenceStep < 3) {
1316 o.matchType = "foo"; 1318 o.matchType = "foo";
1317 o.orFiltersForSegment = buildUnnamed171(); 1319 o.orFiltersForSegment = buildUnnamed174();
1318 } 1320 }
1319 buildCounterSegmentSequenceStep--; 1321 buildCounterSegmentSequenceStep--;
1320 return o; 1322 return o;
1321 } 1323 }
1322 1324
1323 checkSegmentSequenceStep(api.SegmentSequenceStep o) { 1325 checkSegmentSequenceStep(api.SegmentSequenceStep o) {
1324 buildCounterSegmentSequenceStep++; 1326 buildCounterSegmentSequenceStep++;
1325 if (buildCounterSegmentSequenceStep < 3) { 1327 if (buildCounterSegmentSequenceStep < 3) {
1326 unittest.expect(o.matchType, unittest.equals('foo')); 1328 unittest.expect(o.matchType, unittest.equals('foo'));
1327 checkUnnamed171(o.orFiltersForSegment); 1329 checkUnnamed174(o.orFiltersForSegment);
1328 } 1330 }
1329 buildCounterSegmentSequenceStep--; 1331 buildCounterSegmentSequenceStep--;
1330 } 1332 }
1331 1333
1332 buildUnnamed172() { 1334 buildUnnamed175() {
1333 var o = new core.List<api.SegmentSequenceStep>(); 1335 var o = new core.List<api.SegmentSequenceStep>();
1334 o.add(buildSegmentSequenceStep()); 1336 o.add(buildSegmentSequenceStep());
1335 o.add(buildSegmentSequenceStep()); 1337 o.add(buildSegmentSequenceStep());
1336 return o; 1338 return o;
1337 } 1339 }
1338 1340
1339 checkUnnamed172(core.List<api.SegmentSequenceStep> o) { 1341 checkUnnamed175(core.List<api.SegmentSequenceStep> o) {
1340 unittest.expect(o, unittest.hasLength(2)); 1342 unittest.expect(o, unittest.hasLength(2));
1341 checkSegmentSequenceStep(o[0]); 1343 checkSegmentSequenceStep(o[0]);
1342 checkSegmentSequenceStep(o[1]); 1344 checkSegmentSequenceStep(o[1]);
1343 } 1345 }
1344 1346
1345 core.int buildCounterSequenceSegment = 0; 1347 core.int buildCounterSequenceSegment = 0;
1346 buildSequenceSegment() { 1348 buildSequenceSegment() {
1347 var o = new api.SequenceSegment(); 1349 var o = new api.SequenceSegment();
1348 buildCounterSequenceSegment++; 1350 buildCounterSequenceSegment++;
1349 if (buildCounterSequenceSegment < 3) { 1351 if (buildCounterSequenceSegment < 3) {
1350 o.firstStepShouldMatchFirstHit = true; 1352 o.firstStepShouldMatchFirstHit = true;
1351 o.segmentSequenceSteps = buildUnnamed172(); 1353 o.segmentSequenceSteps = buildUnnamed175();
1352 } 1354 }
1353 buildCounterSequenceSegment--; 1355 buildCounterSequenceSegment--;
1354 return o; 1356 return o;
1355 } 1357 }
1356 1358
1357 checkSequenceSegment(api.SequenceSegment o) { 1359 checkSequenceSegment(api.SequenceSegment o) {
1358 buildCounterSequenceSegment++; 1360 buildCounterSequenceSegment++;
1359 if (buildCounterSequenceSegment < 3) { 1361 if (buildCounterSequenceSegment < 3) {
1360 unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); 1362 unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue);
1361 checkUnnamed172(o.segmentSequenceSteps); 1363 checkUnnamed175(o.segmentSequenceSteps);
1362 } 1364 }
1363 buildCounterSequenceSegment--; 1365 buildCounterSequenceSegment--;
1364 } 1366 }
1365 1367
1366 buildUnnamed173() { 1368 buildUnnamed176() {
1367 var o = new core.List<api.OrFiltersForSegment>(); 1369 var o = new core.List<api.OrFiltersForSegment>();
1368 o.add(buildOrFiltersForSegment()); 1370 o.add(buildOrFiltersForSegment());
1369 o.add(buildOrFiltersForSegment()); 1371 o.add(buildOrFiltersForSegment());
1370 return o; 1372 return o;
1371 } 1373 }
1372 1374
1373 checkUnnamed173(core.List<api.OrFiltersForSegment> o) { 1375 checkUnnamed176(core.List<api.OrFiltersForSegment> o) {
1374 unittest.expect(o, unittest.hasLength(2)); 1376 unittest.expect(o, unittest.hasLength(2));
1375 checkOrFiltersForSegment(o[0]); 1377 checkOrFiltersForSegment(o[0]);
1376 checkOrFiltersForSegment(o[1]); 1378 checkOrFiltersForSegment(o[1]);
1377 } 1379 }
1378 1380
1379 core.int buildCounterSimpleSegment = 0; 1381 core.int buildCounterSimpleSegment = 0;
1380 buildSimpleSegment() { 1382 buildSimpleSegment() {
1381 var o = new api.SimpleSegment(); 1383 var o = new api.SimpleSegment();
1382 buildCounterSimpleSegment++; 1384 buildCounterSimpleSegment++;
1383 if (buildCounterSimpleSegment < 3) { 1385 if (buildCounterSimpleSegment < 3) {
1384 o.orFiltersForSegment = buildUnnamed173(); 1386 o.orFiltersForSegment = buildUnnamed176();
1385 } 1387 }
1386 buildCounterSimpleSegment--; 1388 buildCounterSimpleSegment--;
1387 return o; 1389 return o;
1388 } 1390 }
1389 1391
1390 checkSimpleSegment(api.SimpleSegment o) { 1392 checkSimpleSegment(api.SimpleSegment o) {
1391 buildCounterSimpleSegment++; 1393 buildCounterSimpleSegment++;
1392 if (buildCounterSimpleSegment < 3) { 1394 if (buildCounterSimpleSegment < 3) {
1393 checkUnnamed173(o.orFiltersForSegment); 1395 checkUnnamed176(o.orFiltersForSegment);
1394 } 1396 }
1395 buildCounterSimpleSegment--; 1397 buildCounterSimpleSegment--;
1396 } 1398 }
1397 1399
1398 1400
1399 main() { 1401 main() {
1400 unittest.group("obj-schema-Cohort", () { 1402 unittest.group("obj-schema-Cohort", () {
1401 unittest.test("to-json--from-json", () { 1403 unittest.test("to-json--from-json", () {
1402 var o = buildCohort(); 1404 var o = buildCohort();
1403 var od = new api.Cohort.fromJson(o.toJson()); 1405 var od = new api.Cohort.fromJson(o.toJson());
(...skipping 354 matching lines...)
1758 res.batchGet(arg_request).then(unittest.expectAsync(((api.GetReportsRespon se response) { 1760 res.batchGet(arg_request).then(unittest.expectAsync(((api.GetReportsRespon se response) {
1759 checkGetReportsResponse(response); 1761 checkGetReportsResponse(response);
1760 }))); 1762 })));
1761 }); 1763 });
1762 1764
1763 }); 1765 });
1764 1766
1765 1767
1766 } 1768 }
1767 1769
OLDNEW
« no previous file with comments | « generated/googleapis/test/analytics/v3_test.dart ('k') | generated/googleapis/test/androidenterprise/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine