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

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

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