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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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.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...) Expand 10 before | Expand all | Expand 10 after
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 buildUnnamed136() { 77 buildUnnamed138() {
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 checkUnnamed136(core.List<api.Cohort> o) { 84 checkUnnamed138(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 = buildUnnamed136(); 95 o.cohorts = buildUnnamed138();
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 checkUnnamed136(o.cohorts); 105 checkUnnamed138(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 buildUnnamed137() { 111 buildUnnamed139() {
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 checkUnnamed137(core.List<core.String> o) { 118 checkUnnamed139(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 = buildUnnamed137(); 129 o.dimensions = buildUnnamed139();
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 checkUnnamed137(o.dimensions); 139 checkUnnamed139(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 buildUnnamed138() { 166 buildUnnamed140() {
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 checkUnnamed138(core.List<api.PivotValueRegion> o) { 173 checkUnnamed140(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 buildUnnamed139() { 179 buildUnnamed141() {
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 checkUnnamed139(core.List<core.String> o) { 186 checkUnnamed141(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 = buildUnnamed138(); 197 o.pivotValueRegions = buildUnnamed140();
198 o.values = buildUnnamed139(); 198 o.values = buildUnnamed141();
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 checkUnnamed138(o.pivotValueRegions); 207 checkUnnamed140(o.pivotValueRegions);
208 checkUnnamed139(o.values); 208 checkUnnamed141(o.values);
209 } 209 }
210 buildCounterDateRangeValues--; 210 buildCounterDateRangeValues--;
211 } 211 }
212 212
213 buildUnnamed140() { 213 buildUnnamed142() {
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 checkUnnamed140(core.List<core.String> o) { 220 checkUnnamed142(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 = buildUnnamed140(); 231 o.histogramBuckets = buildUnnamed142();
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 checkUnnamed140(o.histogramBuckets); 241 checkUnnamed142(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 buildUnnamed141() { 247 buildUnnamed143() {
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 checkUnnamed141(core.List<core.String> o) { 254 checkUnnamed143(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 = buildUnnamed141(); 267 o.expressions = buildUnnamed143();
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 checkUnnamed141(o.expressions); 280 checkUnnamed143(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 buildUnnamed142() { 287 buildUnnamed144() {
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 checkUnnamed142(core.List<api.DimensionFilter> o) { 294 checkUnnamed144(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 = buildUnnamed142(); 305 o.filters = buildUnnamed144();
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 checkUnnamed142(o.filters); 315 checkUnnamed144(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 buildUnnamed143() { 344 buildUnnamed145() {
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 checkUnnamed143(core.List<api.ReportRequest> o) { 351 checkUnnamed145(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 = buildUnnamed143(); 362 o.reportRequests = buildUnnamed145();
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 checkUnnamed143(o.reportRequests); 371 checkUnnamed145(o.reportRequests);
372 } 372 }
373 buildCounterGetReportsRequest--; 373 buildCounterGetReportsRequest--;
374 } 374 }
375 375
376 buildUnnamed144() { 376 buildUnnamed146() {
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 checkUnnamed144(core.List<api.Report> o) { 383 checkUnnamed146(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 = buildUnnamed144(); 394 o.reports = buildUnnamed146();
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 checkUnnamed144(o.reports); 403 checkUnnamed146(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...) Expand 10 before | Expand all | Expand 10 after
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 buildUnnamed145() { 456 buildUnnamed147() {
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 checkUnnamed145(core.List<api.MetricFilter> o) { 463 checkUnnamed147(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 = buildUnnamed145(); 474 o.filters = buildUnnamed147();
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 checkUnnamed145(o.filters); 484 checkUnnamed147(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 buildUnnamed146() { 490 buildUnnamed148() {
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 checkUnnamed146(core.List<api.MetricHeaderEntry> o) { 497 checkUnnamed148(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 buildUnnamed147() { 503 buildUnnamed149() {
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 checkUnnamed147(core.List<api.PivotHeader> o) { 510 checkUnnamed149(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 = buildUnnamed146(); 521 o.metricHeaderEntries = buildUnnamed148();
522 o.pivotHeaders = buildUnnamed147(); 522 o.pivotHeaders = buildUnnamed149();
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 checkUnnamed146(o.metricHeaderEntries); 531 checkUnnamed148(o.metricHeaderEntries);
532 checkUnnamed147(o.pivotHeaders); 532 checkUnnamed149(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 buildUnnamed148() { 558 buildUnnamed150() {
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 checkUnnamed148(core.List<api.SegmentFilterClause> o) { 565 checkUnnamed150(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 = buildUnnamed148(); 576 o.segmentFilterClauses = buildUnnamed150();
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 checkUnnamed148(o.segmentFilterClauses); 585 checkUnnamed150(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 buildUnnamed149() { 613 buildUnnamed151() {
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 checkUnnamed149(core.List<api.DimensionFilterClause> o) { 620 checkUnnamed151(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 buildUnnamed150() { 626 buildUnnamed152() {
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 checkUnnamed150(core.List<api.Dimension> o) { 633 checkUnnamed152(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 buildUnnamed151() { 639 buildUnnamed153() {
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 checkUnnamed151(core.List<api.Metric> o) { 646 checkUnnamed153(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 = buildUnnamed149(); 657 o.dimensionFilterClauses = buildUnnamed151();
658 o.dimensions = buildUnnamed150(); 658 o.dimensions = buildUnnamed152();
659 o.maxGroupCount = 42; 659 o.maxGroupCount = 42;
660 o.metrics = buildUnnamed151(); 660 o.metrics = buildUnnamed153();
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 checkUnnamed149(o.dimensionFilterClauses); 670 checkUnnamed151(o.dimensionFilterClauses);
671 checkUnnamed150(o.dimensions); 671 checkUnnamed152(o.dimensions);
672 unittest.expect(o.maxGroupCount, unittest.equals(42)); 672 unittest.expect(o.maxGroupCount, unittest.equals(42));
673 checkUnnamed151(o.metrics); 673 checkUnnamed153(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 buildUnnamed152() { 679 buildUnnamed154() {
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 checkUnnamed152(core.List<api.PivotHeaderEntry> o) { 686 checkUnnamed154(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 = buildUnnamed152(); 697 o.pivotHeaderEntries = buildUnnamed154();
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 checkUnnamed152(o.pivotHeaderEntries); 707 checkUnnamed154(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 buildUnnamed153() { 713 buildUnnamed155() {
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 checkUnnamed153(core.List<core.String> o) { 720 checkUnnamed155(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 buildUnnamed154() { 726 buildUnnamed156() {
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 checkUnnamed154(core.List<core.String> o) { 733 checkUnnamed156(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 = buildUnnamed153(); 744 o.dimensionNames = buildUnnamed155();
745 o.dimensionValues = buildUnnamed154(); 745 o.dimensionValues = buildUnnamed156();
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 checkUnnamed153(o.dimensionNames); 755 checkUnnamed155(o.dimensionNames);
756 checkUnnamed154(o.dimensionValues); 756 checkUnnamed156(o.dimensionValues);
757 checkMetricHeaderEntry(o.metric); 757 checkMetricHeaderEntry(o.metric);
758 } 758 }
759 buildCounterPivotHeaderEntry--; 759 buildCounterPivotHeaderEntry--;
760 } 760 }
761 761
762 buildUnnamed155() { 762 buildUnnamed157() {
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 checkUnnamed155(core.List<core.String> o) { 769 checkUnnamed157(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 = buildUnnamed155(); 780 o.values = buildUnnamed157();
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 checkUnnamed155(o.values); 789 checkUnnamed157(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 buildUnnamed156() { 817 buildUnnamed158() {
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 checkUnnamed156(core.List<api.DateRangeValues> o) { 824 checkUnnamed158(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 buildUnnamed157() { 830 buildUnnamed159() {
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 checkUnnamed157(core.List<api.DateRangeValues> o) { 837 checkUnnamed159(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 buildUnnamed158() { 843 buildUnnamed160() {
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 checkUnnamed158(core.List<api.ReportRow> o) { 850 checkUnnamed160(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 buildUnnamed159() { 856 buildUnnamed161() {
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 checkUnnamed159(core.List<core.String> o) { 863 checkUnnamed161(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 buildUnnamed160() { 869 buildUnnamed162() {
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 checkUnnamed160(core.List<core.String> o) { 876 checkUnnamed162(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 buildUnnamed161() { 882 buildUnnamed163() {
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 checkUnnamed161(core.List<api.DateRangeValues> o) { 889 checkUnnamed163(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.dataLastRefreshed = "foo";
901 o.isDataGolden = true; 901 o.isDataGolden = true;
902 o.maximums = buildUnnamed156(); 902 o.maximums = buildUnnamed158();
903 o.minimums = buildUnnamed157(); 903 o.minimums = buildUnnamed159();
904 o.rowCount = 42; 904 o.rowCount = 42;
905 o.rows = buildUnnamed158(); 905 o.rows = buildUnnamed160();
906 o.samplesReadCounts = buildUnnamed159(); 906 o.samplesReadCounts = buildUnnamed161();
907 o.samplingSpaceSizes = buildUnnamed160(); 907 o.samplingSpaceSizes = buildUnnamed162();
908 o.totals = buildUnnamed161(); 908 o.totals = buildUnnamed163();
909 } 909 }
910 buildCounterReportData--; 910 buildCounterReportData--;
911 return o; 911 return o;
912 } 912 }
913 913
914 checkReportData(api.ReportData o) { 914 checkReportData(api.ReportData o) {
915 buildCounterReportData++; 915 buildCounterReportData++;
916 if (buildCounterReportData < 3) { 916 if (buildCounterReportData < 3) {
917 unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); 917 unittest.expect(o.dataLastRefreshed, unittest.equals('foo'));
918 unittest.expect(o.isDataGolden, unittest.isTrue); 918 unittest.expect(o.isDataGolden, unittest.isTrue);
919 checkUnnamed156(o.maximums); 919 checkUnnamed158(o.maximums);
920 checkUnnamed157(o.minimums); 920 checkUnnamed159(o.minimums);
921 unittest.expect(o.rowCount, unittest.equals(42)); 921 unittest.expect(o.rowCount, unittest.equals(42));
922 checkUnnamed158(o.rows); 922 checkUnnamed160(o.rows);
923 checkUnnamed159(o.samplesReadCounts); 923 checkUnnamed161(o.samplesReadCounts);
924 checkUnnamed160(o.samplingSpaceSizes); 924 checkUnnamed162(o.samplingSpaceSizes);
925 checkUnnamed161(o.totals); 925 checkUnnamed163(o.totals);
926 } 926 }
927 buildCounterReportData--; 927 buildCounterReportData--;
928 } 928 }
929 929
930 buildUnnamed162() { 930 buildUnnamed164() {
931 var o = new core.List<api.DateRange>(); 931 var o = new core.List<api.DateRange>();
932 o.add(buildDateRange()); 932 o.add(buildDateRange());
933 o.add(buildDateRange()); 933 o.add(buildDateRange());
934 return o; 934 return o;
935 } 935 }
936 936
937 checkUnnamed162(core.List<api.DateRange> o) { 937 checkUnnamed164(core.List<api.DateRange> o) {
938 unittest.expect(o, unittest.hasLength(2)); 938 unittest.expect(o, unittest.hasLength(2));
939 checkDateRange(o[0]); 939 checkDateRange(o[0]);
940 checkDateRange(o[1]); 940 checkDateRange(o[1]);
941 } 941 }
942 942
943 buildUnnamed163() { 943 buildUnnamed165() {
944 var o = new core.List<api.DimensionFilterClause>(); 944 var o = new core.List<api.DimensionFilterClause>();
945 o.add(buildDimensionFilterClause()); 945 o.add(buildDimensionFilterClause());
946 o.add(buildDimensionFilterClause()); 946 o.add(buildDimensionFilterClause());
947 return o; 947 return o;
948 } 948 }
949 949
950 checkUnnamed163(core.List<api.DimensionFilterClause> o) { 950 checkUnnamed165(core.List<api.DimensionFilterClause> o) {
951 unittest.expect(o, unittest.hasLength(2)); 951 unittest.expect(o, unittest.hasLength(2));
952 checkDimensionFilterClause(o[0]); 952 checkDimensionFilterClause(o[0]);
953 checkDimensionFilterClause(o[1]); 953 checkDimensionFilterClause(o[1]);
954 } 954 }
955 955
956 buildUnnamed164() { 956 buildUnnamed166() {
957 var o = new core.List<api.Dimension>(); 957 var o = new core.List<api.Dimension>();
958 o.add(buildDimension()); 958 o.add(buildDimension());
959 o.add(buildDimension()); 959 o.add(buildDimension());
960 return o; 960 return o;
961 } 961 }
962 962
963 checkUnnamed164(core.List<api.Dimension> o) { 963 checkUnnamed166(core.List<api.Dimension> o) {
964 unittest.expect(o, unittest.hasLength(2)); 964 unittest.expect(o, unittest.hasLength(2));
965 checkDimension(o[0]); 965 checkDimension(o[0]);
966 checkDimension(o[1]); 966 checkDimension(o[1]);
967 } 967 }
968 968
969 buildUnnamed165() { 969 buildUnnamed167() {
970 var o = new core.List<api.MetricFilterClause>(); 970 var o = new core.List<api.MetricFilterClause>();
971 o.add(buildMetricFilterClause()); 971 o.add(buildMetricFilterClause());
972 o.add(buildMetricFilterClause()); 972 o.add(buildMetricFilterClause());
973 return o; 973 return o;
974 } 974 }
975 975
976 checkUnnamed165(core.List<api.MetricFilterClause> o) { 976 checkUnnamed167(core.List<api.MetricFilterClause> o) {
977 unittest.expect(o, unittest.hasLength(2)); 977 unittest.expect(o, unittest.hasLength(2));
978 checkMetricFilterClause(o[0]); 978 checkMetricFilterClause(o[0]);
979 checkMetricFilterClause(o[1]); 979 checkMetricFilterClause(o[1]);
980 } 980 }
981 981
982 buildUnnamed166() { 982 buildUnnamed168() {
983 var o = new core.List<api.Metric>(); 983 var o = new core.List<api.Metric>();
984 o.add(buildMetric()); 984 o.add(buildMetric());
985 o.add(buildMetric()); 985 o.add(buildMetric());
986 return o; 986 return o;
987 } 987 }
988 988
989 checkUnnamed166(core.List<api.Metric> o) { 989 checkUnnamed168(core.List<api.Metric> o) {
990 unittest.expect(o, unittest.hasLength(2)); 990 unittest.expect(o, unittest.hasLength(2));
991 checkMetric(o[0]); 991 checkMetric(o[0]);
992 checkMetric(o[1]); 992 checkMetric(o[1]);
993 } 993 }
994 994
995 buildUnnamed167() { 995 buildUnnamed169() {
996 var o = new core.List<api.OrderBy>(); 996 var o = new core.List<api.OrderBy>();
997 o.add(buildOrderBy()); 997 o.add(buildOrderBy());
998 o.add(buildOrderBy()); 998 o.add(buildOrderBy());
999 return o; 999 return o;
1000 } 1000 }
1001 1001
1002 checkUnnamed167(core.List<api.OrderBy> o) { 1002 checkUnnamed169(core.List<api.OrderBy> o) {
1003 unittest.expect(o, unittest.hasLength(2)); 1003 unittest.expect(o, unittest.hasLength(2));
1004 checkOrderBy(o[0]); 1004 checkOrderBy(o[0]);
1005 checkOrderBy(o[1]); 1005 checkOrderBy(o[1]);
1006 } 1006 }
1007 1007
1008 buildUnnamed168() { 1008 buildUnnamed170() {
1009 var o = new core.List<api.Pivot>(); 1009 var o = new core.List<api.Pivot>();
1010 o.add(buildPivot()); 1010 o.add(buildPivot());
1011 o.add(buildPivot()); 1011 o.add(buildPivot());
1012 return o; 1012 return o;
1013 } 1013 }
1014 1014
1015 checkUnnamed168(core.List<api.Pivot> o) { 1015 checkUnnamed170(core.List<api.Pivot> o) {
1016 unittest.expect(o, unittest.hasLength(2)); 1016 unittest.expect(o, unittest.hasLength(2));
1017 checkPivot(o[0]); 1017 checkPivot(o[0]);
1018 checkPivot(o[1]); 1018 checkPivot(o[1]);
1019 } 1019 }
1020 1020
1021 buildUnnamed169() { 1021 buildUnnamed171() {
1022 var o = new core.List<api.Segment>(); 1022 var o = new core.List<api.Segment>();
1023 o.add(buildSegment()); 1023 o.add(buildSegment());
1024 o.add(buildSegment()); 1024 o.add(buildSegment());
1025 return o; 1025 return o;
1026 } 1026 }
1027 1027
1028 checkUnnamed169(core.List<api.Segment> o) { 1028 checkUnnamed171(core.List<api.Segment> o) {
1029 unittest.expect(o, unittest.hasLength(2)); 1029 unittest.expect(o, unittest.hasLength(2));
1030 checkSegment(o[0]); 1030 checkSegment(o[0]);
1031 checkSegment(o[1]); 1031 checkSegment(o[1]);
1032 } 1032 }
1033 1033
1034 core.int buildCounterReportRequest = 0; 1034 core.int buildCounterReportRequest = 0;
1035 buildReportRequest() { 1035 buildReportRequest() {
1036 var o = new api.ReportRequest(); 1036 var o = new api.ReportRequest();
1037 buildCounterReportRequest++; 1037 buildCounterReportRequest++;
1038 if (buildCounterReportRequest < 3) { 1038 if (buildCounterReportRequest < 3) {
1039 o.cohortGroup = buildCohortGroup(); 1039 o.cohortGroup = buildCohortGroup();
1040 o.dateRanges = buildUnnamed162(); 1040 o.dateRanges = buildUnnamed164();
1041 o.dimensionFilterClauses = buildUnnamed163(); 1041 o.dimensionFilterClauses = buildUnnamed165();
1042 o.dimensions = buildUnnamed164(); 1042 o.dimensions = buildUnnamed166();
1043 o.filtersExpression = "foo"; 1043 o.filtersExpression = "foo";
1044 o.hideTotals = true; 1044 o.hideTotals = true;
1045 o.hideValueRanges = true; 1045 o.hideValueRanges = true;
1046 o.includeEmptyRows = true; 1046 o.includeEmptyRows = true;
1047 o.metricFilterClauses = buildUnnamed165(); 1047 o.metricFilterClauses = buildUnnamed167();
1048 o.metrics = buildUnnamed166(); 1048 o.metrics = buildUnnamed168();
1049 o.orderBys = buildUnnamed167(); 1049 o.orderBys = buildUnnamed169();
1050 o.pageSize = 42; 1050 o.pageSize = 42;
1051 o.pageToken = "foo"; 1051 o.pageToken = "foo";
1052 o.pivots = buildUnnamed168(); 1052 o.pivots = buildUnnamed170();
1053 o.samplingLevel = "foo"; 1053 o.samplingLevel = "foo";
1054 o.segments = buildUnnamed169(); 1054 o.segments = buildUnnamed171();
1055 o.viewId = "foo"; 1055 o.viewId = "foo";
1056 } 1056 }
1057 buildCounterReportRequest--; 1057 buildCounterReportRequest--;
1058 return o; 1058 return o;
1059 } 1059 }
1060 1060
1061 checkReportRequest(api.ReportRequest o) { 1061 checkReportRequest(api.ReportRequest o) {
1062 buildCounterReportRequest++; 1062 buildCounterReportRequest++;
1063 if (buildCounterReportRequest < 3) { 1063 if (buildCounterReportRequest < 3) {
1064 checkCohortGroup(o.cohortGroup); 1064 checkCohortGroup(o.cohortGroup);
1065 checkUnnamed162(o.dateRanges); 1065 checkUnnamed164(o.dateRanges);
1066 checkUnnamed163(o.dimensionFilterClauses); 1066 checkUnnamed165(o.dimensionFilterClauses);
1067 checkUnnamed164(o.dimensions); 1067 checkUnnamed166(o.dimensions);
1068 unittest.expect(o.filtersExpression, unittest.equals('foo')); 1068 unittest.expect(o.filtersExpression, unittest.equals('foo'));
1069 unittest.expect(o.hideTotals, unittest.isTrue); 1069 unittest.expect(o.hideTotals, unittest.isTrue);
1070 unittest.expect(o.hideValueRanges, unittest.isTrue); 1070 unittest.expect(o.hideValueRanges, unittest.isTrue);
1071 unittest.expect(o.includeEmptyRows, unittest.isTrue); 1071 unittest.expect(o.includeEmptyRows, unittest.isTrue);
1072 checkUnnamed165(o.metricFilterClauses); 1072 checkUnnamed167(o.metricFilterClauses);
1073 checkUnnamed166(o.metrics); 1073 checkUnnamed168(o.metrics);
1074 checkUnnamed167(o.orderBys); 1074 checkUnnamed169(o.orderBys);
1075 unittest.expect(o.pageSize, unittest.equals(42)); 1075 unittest.expect(o.pageSize, unittest.equals(42));
1076 unittest.expect(o.pageToken, unittest.equals('foo')); 1076 unittest.expect(o.pageToken, unittest.equals('foo'));
1077 checkUnnamed168(o.pivots); 1077 checkUnnamed170(o.pivots);
1078 unittest.expect(o.samplingLevel, unittest.equals('foo')); 1078 unittest.expect(o.samplingLevel, unittest.equals('foo'));
1079 checkUnnamed169(o.segments); 1079 checkUnnamed171(o.segments);
1080 unittest.expect(o.viewId, unittest.equals('foo')); 1080 unittest.expect(o.viewId, unittest.equals('foo'));
1081 } 1081 }
1082 buildCounterReportRequest--; 1082 buildCounterReportRequest--;
1083 } 1083 }
1084 1084
1085 buildUnnamed170() { 1085 buildUnnamed172() {
1086 var o = new core.List<core.String>(); 1086 var o = new core.List<core.String>();
1087 o.add("foo"); 1087 o.add("foo");
1088 o.add("foo"); 1088 o.add("foo");
1089 return o; 1089 return o;
1090 } 1090 }
1091 1091
1092 checkUnnamed170(core.List<core.String> o) { 1092 checkUnnamed172(core.List<core.String> o) {
1093 unittest.expect(o, unittest.hasLength(2)); 1093 unittest.expect(o, unittest.hasLength(2));
1094 unittest.expect(o[0], unittest.equals('foo')); 1094 unittest.expect(o[0], unittest.equals('foo'));
1095 unittest.expect(o[1], unittest.equals('foo')); 1095 unittest.expect(o[1], unittest.equals('foo'));
1096 } 1096 }
1097 1097
1098 buildUnnamed171() { 1098 buildUnnamed173() {
1099 var o = new core.List<api.DateRangeValues>(); 1099 var o = new core.List<api.DateRangeValues>();
1100 o.add(buildDateRangeValues()); 1100 o.add(buildDateRangeValues());
1101 o.add(buildDateRangeValues()); 1101 o.add(buildDateRangeValues());
1102 return o; 1102 return o;
1103 } 1103 }
1104 1104
1105 checkUnnamed171(core.List<api.DateRangeValues> o) { 1105 checkUnnamed173(core.List<api.DateRangeValues> o) {
1106 unittest.expect(o, unittest.hasLength(2)); 1106 unittest.expect(o, unittest.hasLength(2));
1107 checkDateRangeValues(o[0]); 1107 checkDateRangeValues(o[0]);
1108 checkDateRangeValues(o[1]); 1108 checkDateRangeValues(o[1]);
1109 } 1109 }
1110 1110
1111 core.int buildCounterReportRow = 0; 1111 core.int buildCounterReportRow = 0;
1112 buildReportRow() { 1112 buildReportRow() {
1113 var o = new api.ReportRow(); 1113 var o = new api.ReportRow();
1114 buildCounterReportRow++; 1114 buildCounterReportRow++;
1115 if (buildCounterReportRow < 3) { 1115 if (buildCounterReportRow < 3) {
1116 o.dimensions = buildUnnamed170(); 1116 o.dimensions = buildUnnamed172();
1117 o.metrics = buildUnnamed171(); 1117 o.metrics = buildUnnamed173();
1118 } 1118 }
1119 buildCounterReportRow--; 1119 buildCounterReportRow--;
1120 return o; 1120 return o;
1121 } 1121 }
1122 1122
1123 checkReportRow(api.ReportRow o) { 1123 checkReportRow(api.ReportRow o) {
1124 buildCounterReportRow++; 1124 buildCounterReportRow++;
1125 if (buildCounterReportRow < 3) { 1125 if (buildCounterReportRow < 3) {
1126 checkUnnamed170(o.dimensions); 1126 checkUnnamed172(o.dimensions);
1127 checkUnnamed171(o.metrics); 1127 checkUnnamed173(o.metrics);
1128 } 1128 }
1129 buildCounterReportRow--; 1129 buildCounterReportRow--;
1130 } 1130 }
1131 1131
1132 core.int buildCounterSegment = 0; 1132 core.int buildCounterSegment = 0;
1133 buildSegment() { 1133 buildSegment() {
1134 var o = new api.Segment(); 1134 var o = new api.Segment();
1135 buildCounterSegment++; 1135 buildCounterSegment++;
1136 if (buildCounterSegment < 3) { 1136 if (buildCounterSegment < 3) {
1137 o.dynamicSegment = buildDynamicSegment(); 1137 o.dynamicSegment = buildDynamicSegment();
1138 o.segmentId = "foo"; 1138 o.segmentId = "foo";
1139 } 1139 }
1140 buildCounterSegment--; 1140 buildCounterSegment--;
1141 return o; 1141 return o;
1142 } 1142 }
1143 1143
1144 checkSegment(api.Segment o) { 1144 checkSegment(api.Segment o) {
1145 buildCounterSegment++; 1145 buildCounterSegment++;
1146 if (buildCounterSegment < 3) { 1146 if (buildCounterSegment < 3) {
1147 checkDynamicSegment(o.dynamicSegment); 1147 checkDynamicSegment(o.dynamicSegment);
1148 unittest.expect(o.segmentId, unittest.equals('foo')); 1148 unittest.expect(o.segmentId, unittest.equals('foo'));
1149 } 1149 }
1150 buildCounterSegment--; 1150 buildCounterSegment--;
1151 } 1151 }
1152 1152
1153 buildUnnamed172() { 1153 buildUnnamed174() {
1154 var o = new core.List<api.SegmentFilter>(); 1154 var o = new core.List<api.SegmentFilter>();
1155 o.add(buildSegmentFilter()); 1155 o.add(buildSegmentFilter());
1156 o.add(buildSegmentFilter()); 1156 o.add(buildSegmentFilter());
1157 return o; 1157 return o;
1158 } 1158 }
1159 1159
1160 checkUnnamed172(core.List<api.SegmentFilter> o) { 1160 checkUnnamed174(core.List<api.SegmentFilter> o) {
1161 unittest.expect(o, unittest.hasLength(2)); 1161 unittest.expect(o, unittest.hasLength(2));
1162 checkSegmentFilter(o[0]); 1162 checkSegmentFilter(o[0]);
1163 checkSegmentFilter(o[1]); 1163 checkSegmentFilter(o[1]);
1164 } 1164 }
1165 1165
1166 core.int buildCounterSegmentDefinition = 0; 1166 core.int buildCounterSegmentDefinition = 0;
1167 buildSegmentDefinition() { 1167 buildSegmentDefinition() {
1168 var o = new api.SegmentDefinition(); 1168 var o = new api.SegmentDefinition();
1169 buildCounterSegmentDefinition++; 1169 buildCounterSegmentDefinition++;
1170 if (buildCounterSegmentDefinition < 3) { 1170 if (buildCounterSegmentDefinition < 3) {
1171 o.segmentFilters = buildUnnamed172(); 1171 o.segmentFilters = buildUnnamed174();
1172 } 1172 }
1173 buildCounterSegmentDefinition--; 1173 buildCounterSegmentDefinition--;
1174 return o; 1174 return o;
1175 } 1175 }
1176 1176
1177 checkSegmentDefinition(api.SegmentDefinition o) { 1177 checkSegmentDefinition(api.SegmentDefinition o) {
1178 buildCounterSegmentDefinition++; 1178 buildCounterSegmentDefinition++;
1179 if (buildCounterSegmentDefinition < 3) { 1179 if (buildCounterSegmentDefinition < 3) {
1180 checkUnnamed172(o.segmentFilters); 1180 checkUnnamed174(o.segmentFilters);
1181 } 1181 }
1182 buildCounterSegmentDefinition--; 1182 buildCounterSegmentDefinition--;
1183 } 1183 }
1184 1184
1185 buildUnnamed173() { 1185 buildUnnamed175() {
1186 var o = new core.List<core.String>(); 1186 var o = new core.List<core.String>();
1187 o.add("foo"); 1187 o.add("foo");
1188 o.add("foo"); 1188 o.add("foo");
1189 return o; 1189 return o;
1190 } 1190 }
1191 1191
1192 checkUnnamed173(core.List<core.String> o) { 1192 checkUnnamed175(core.List<core.String> o) {
1193 unittest.expect(o, unittest.hasLength(2)); 1193 unittest.expect(o, unittest.hasLength(2));
1194 unittest.expect(o[0], unittest.equals('foo')); 1194 unittest.expect(o[0], unittest.equals('foo'));
1195 unittest.expect(o[1], unittest.equals('foo')); 1195 unittest.expect(o[1], unittest.equals('foo'));
1196 } 1196 }
1197 1197
1198 core.int buildCounterSegmentDimensionFilter = 0; 1198 core.int buildCounterSegmentDimensionFilter = 0;
1199 buildSegmentDimensionFilter() { 1199 buildSegmentDimensionFilter() {
1200 var o = new api.SegmentDimensionFilter(); 1200 var o = new api.SegmentDimensionFilter();
1201 buildCounterSegmentDimensionFilter++; 1201 buildCounterSegmentDimensionFilter++;
1202 if (buildCounterSegmentDimensionFilter < 3) { 1202 if (buildCounterSegmentDimensionFilter < 3) {
1203 o.caseSensitive = true; 1203 o.caseSensitive = true;
1204 o.dimensionName = "foo"; 1204 o.dimensionName = "foo";
1205 o.expressions = buildUnnamed173(); 1205 o.expressions = buildUnnamed175();
1206 o.maxComparisonValue = "foo"; 1206 o.maxComparisonValue = "foo";
1207 o.minComparisonValue = "foo"; 1207 o.minComparisonValue = "foo";
1208 o.operator = "foo"; 1208 o.operator = "foo";
1209 } 1209 }
1210 buildCounterSegmentDimensionFilter--; 1210 buildCounterSegmentDimensionFilter--;
1211 return o; 1211 return o;
1212 } 1212 }
1213 1213
1214 checkSegmentDimensionFilter(api.SegmentDimensionFilter o) { 1214 checkSegmentDimensionFilter(api.SegmentDimensionFilter o) {
1215 buildCounterSegmentDimensionFilter++; 1215 buildCounterSegmentDimensionFilter++;
1216 if (buildCounterSegmentDimensionFilter < 3) { 1216 if (buildCounterSegmentDimensionFilter < 3) {
1217 unittest.expect(o.caseSensitive, unittest.isTrue); 1217 unittest.expect(o.caseSensitive, unittest.isTrue);
1218 unittest.expect(o.dimensionName, unittest.equals('foo')); 1218 unittest.expect(o.dimensionName, unittest.equals('foo'));
1219 checkUnnamed173(o.expressions); 1219 checkUnnamed175(o.expressions);
1220 unittest.expect(o.maxComparisonValue, unittest.equals('foo')); 1220 unittest.expect(o.maxComparisonValue, unittest.equals('foo'));
1221 unittest.expect(o.minComparisonValue, unittest.equals('foo')); 1221 unittest.expect(o.minComparisonValue, unittest.equals('foo'));
1222 unittest.expect(o.operator, unittest.equals('foo')); 1222 unittest.expect(o.operator, unittest.equals('foo'));
1223 } 1223 }
1224 buildCounterSegmentDimensionFilter--; 1224 buildCounterSegmentDimensionFilter--;
1225 } 1225 }
1226 1226
1227 core.int buildCounterSegmentFilter = 0; 1227 core.int buildCounterSegmentFilter = 0;
1228 buildSegmentFilter() { 1228 buildSegmentFilter() {
1229 var o = new api.SegmentFilter(); 1229 var o = new api.SegmentFilter();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 if (buildCounterSegmentMetricFilter < 3) { 1290 if (buildCounterSegmentMetricFilter < 3) {
1291 unittest.expect(o.comparisonValue, unittest.equals('foo')); 1291 unittest.expect(o.comparisonValue, unittest.equals('foo'));
1292 unittest.expect(o.maxComparisonValue, unittest.equals('foo')); 1292 unittest.expect(o.maxComparisonValue, unittest.equals('foo'));
1293 unittest.expect(o.metricName, unittest.equals('foo')); 1293 unittest.expect(o.metricName, unittest.equals('foo'));
1294 unittest.expect(o.operator, unittest.equals('foo')); 1294 unittest.expect(o.operator, unittest.equals('foo'));
1295 unittest.expect(o.scope, unittest.equals('foo')); 1295 unittest.expect(o.scope, unittest.equals('foo'));
1296 } 1296 }
1297 buildCounterSegmentMetricFilter--; 1297 buildCounterSegmentMetricFilter--;
1298 } 1298 }
1299 1299
1300 buildUnnamed174() { 1300 buildUnnamed176() {
1301 var o = new core.List<api.OrFiltersForSegment>(); 1301 var o = new core.List<api.OrFiltersForSegment>();
1302 o.add(buildOrFiltersForSegment()); 1302 o.add(buildOrFiltersForSegment());
1303 o.add(buildOrFiltersForSegment()); 1303 o.add(buildOrFiltersForSegment());
1304 return o; 1304 return o;
1305 } 1305 }
1306 1306
1307 checkUnnamed174(core.List<api.OrFiltersForSegment> o) { 1307 checkUnnamed176(core.List<api.OrFiltersForSegment> o) {
1308 unittest.expect(o, unittest.hasLength(2)); 1308 unittest.expect(o, unittest.hasLength(2));
1309 checkOrFiltersForSegment(o[0]); 1309 checkOrFiltersForSegment(o[0]);
1310 checkOrFiltersForSegment(o[1]); 1310 checkOrFiltersForSegment(o[1]);
1311 } 1311 }
1312 1312
1313 core.int buildCounterSegmentSequenceStep = 0; 1313 core.int buildCounterSegmentSequenceStep = 0;
1314 buildSegmentSequenceStep() { 1314 buildSegmentSequenceStep() {
1315 var o = new api.SegmentSequenceStep(); 1315 var o = new api.SegmentSequenceStep();
1316 buildCounterSegmentSequenceStep++; 1316 buildCounterSegmentSequenceStep++;
1317 if (buildCounterSegmentSequenceStep < 3) { 1317 if (buildCounterSegmentSequenceStep < 3) {
1318 o.matchType = "foo"; 1318 o.matchType = "foo";
1319 o.orFiltersForSegment = buildUnnamed174(); 1319 o.orFiltersForSegment = buildUnnamed176();
1320 } 1320 }
1321 buildCounterSegmentSequenceStep--; 1321 buildCounterSegmentSequenceStep--;
1322 return o; 1322 return o;
1323 } 1323 }
1324 1324
1325 checkSegmentSequenceStep(api.SegmentSequenceStep o) { 1325 checkSegmentSequenceStep(api.SegmentSequenceStep o) {
1326 buildCounterSegmentSequenceStep++; 1326 buildCounterSegmentSequenceStep++;
1327 if (buildCounterSegmentSequenceStep < 3) { 1327 if (buildCounterSegmentSequenceStep < 3) {
1328 unittest.expect(o.matchType, unittest.equals('foo')); 1328 unittest.expect(o.matchType, unittest.equals('foo'));
1329 checkUnnamed174(o.orFiltersForSegment); 1329 checkUnnamed176(o.orFiltersForSegment);
1330 } 1330 }
1331 buildCounterSegmentSequenceStep--; 1331 buildCounterSegmentSequenceStep--;
1332 } 1332 }
1333 1333
1334 buildUnnamed175() { 1334 buildUnnamed177() {
1335 var o = new core.List<api.SegmentSequenceStep>(); 1335 var o = new core.List<api.SegmentSequenceStep>();
1336 o.add(buildSegmentSequenceStep()); 1336 o.add(buildSegmentSequenceStep());
1337 o.add(buildSegmentSequenceStep()); 1337 o.add(buildSegmentSequenceStep());
1338 return o; 1338 return o;
1339 } 1339 }
1340 1340
1341 checkUnnamed175(core.List<api.SegmentSequenceStep> o) { 1341 checkUnnamed177(core.List<api.SegmentSequenceStep> o) {
1342 unittest.expect(o, unittest.hasLength(2)); 1342 unittest.expect(o, unittest.hasLength(2));
1343 checkSegmentSequenceStep(o[0]); 1343 checkSegmentSequenceStep(o[0]);
1344 checkSegmentSequenceStep(o[1]); 1344 checkSegmentSequenceStep(o[1]);
1345 } 1345 }
1346 1346
1347 core.int buildCounterSequenceSegment = 0; 1347 core.int buildCounterSequenceSegment = 0;
1348 buildSequenceSegment() { 1348 buildSequenceSegment() {
1349 var o = new api.SequenceSegment(); 1349 var o = new api.SequenceSegment();
1350 buildCounterSequenceSegment++; 1350 buildCounterSequenceSegment++;
1351 if (buildCounterSequenceSegment < 3) { 1351 if (buildCounterSequenceSegment < 3) {
1352 o.firstStepShouldMatchFirstHit = true; 1352 o.firstStepShouldMatchFirstHit = true;
1353 o.segmentSequenceSteps = buildUnnamed175(); 1353 o.segmentSequenceSteps = buildUnnamed177();
1354 } 1354 }
1355 buildCounterSequenceSegment--; 1355 buildCounterSequenceSegment--;
1356 return o; 1356 return o;
1357 } 1357 }
1358 1358
1359 checkSequenceSegment(api.SequenceSegment o) { 1359 checkSequenceSegment(api.SequenceSegment o) {
1360 buildCounterSequenceSegment++; 1360 buildCounterSequenceSegment++;
1361 if (buildCounterSequenceSegment < 3) { 1361 if (buildCounterSequenceSegment < 3) {
1362 unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); 1362 unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue);
1363 checkUnnamed175(o.segmentSequenceSteps); 1363 checkUnnamed177(o.segmentSequenceSteps);
1364 } 1364 }
1365 buildCounterSequenceSegment--; 1365 buildCounterSequenceSegment--;
1366 } 1366 }
1367 1367
1368 buildUnnamed176() { 1368 buildUnnamed178() {
1369 var o = new core.List<api.OrFiltersForSegment>(); 1369 var o = new core.List<api.OrFiltersForSegment>();
1370 o.add(buildOrFiltersForSegment()); 1370 o.add(buildOrFiltersForSegment());
1371 o.add(buildOrFiltersForSegment()); 1371 o.add(buildOrFiltersForSegment());
1372 return o; 1372 return o;
1373 } 1373 }
1374 1374
1375 checkUnnamed176(core.List<api.OrFiltersForSegment> o) { 1375 checkUnnamed178(core.List<api.OrFiltersForSegment> o) {
1376 unittest.expect(o, unittest.hasLength(2)); 1376 unittest.expect(o, unittest.hasLength(2));
1377 checkOrFiltersForSegment(o[0]); 1377 checkOrFiltersForSegment(o[0]);
1378 checkOrFiltersForSegment(o[1]); 1378 checkOrFiltersForSegment(o[1]);
1379 } 1379 }
1380 1380
1381 core.int buildCounterSimpleSegment = 0; 1381 core.int buildCounterSimpleSegment = 0;
1382 buildSimpleSegment() { 1382 buildSimpleSegment() {
1383 var o = new api.SimpleSegment(); 1383 var o = new api.SimpleSegment();
1384 buildCounterSimpleSegment++; 1384 buildCounterSimpleSegment++;
1385 if (buildCounterSimpleSegment < 3) { 1385 if (buildCounterSimpleSegment < 3) {
1386 o.orFiltersForSegment = buildUnnamed176(); 1386 o.orFiltersForSegment = buildUnnamed178();
1387 } 1387 }
1388 buildCounterSimpleSegment--; 1388 buildCounterSimpleSegment--;
1389 return o; 1389 return o;
1390 } 1390 }
1391 1391
1392 checkSimpleSegment(api.SimpleSegment o) { 1392 checkSimpleSegment(api.SimpleSegment o) {
1393 buildCounterSimpleSegment++; 1393 buildCounterSimpleSegment++;
1394 if (buildCounterSimpleSegment < 3) { 1394 if (buildCounterSimpleSegment < 3) {
1395 checkUnnamed176(o.orFiltersForSegment); 1395 checkUnnamed178(o.orFiltersForSegment);
1396 } 1396 }
1397 buildCounterSimpleSegment--; 1397 buildCounterSimpleSegment--;
1398 } 1398 }
1399 1399
1400 1400
1401 main() { 1401 main() {
1402 unittest.group("obj-schema-Cohort", () { 1402 unittest.group("obj-schema-Cohort", () {
1403 unittest.test("to-json--from-json", () { 1403 unittest.test("to-json--from-json", () {
1404 var o = buildCohort(); 1404 var o = buildCohort();
1405 var od = new api.Cohort.fromJson(o.toJson()); 1405 var od = new api.Cohort.fromJson(o.toJson());
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 res.batchGet(arg_request).then(unittest.expectAsync(((api.GetReportsRespon se response) { 1760 res.batchGet(arg_request).then(unittest.expectAsync(((api.GetReportsRespon se response) {
1761 checkGetReportsResponse(response); 1761 checkGetReportsResponse(response);
1762 }))); 1762 })));
1763 }); 1763 });
1764 1764
1765 }); 1765 });
1766 1766
1767 1767
1768 } 1768 }
1769 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
This is Rietveld 408576698