| OLD | NEW | 
|---|
| 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; |  | 
| 5 import "dart:async" as async; | 4 import "dart:async" as async; | 
| 6 import "dart:convert" as convert; | 5 import "dart:convert" as convert; | 
| 7 | 6 | 
| 8 import 'package:http/http.dart' as http; | 7 import 'package:http/http.dart' as http; | 
| 9 import 'package:http/testing.dart' as http_testing; |  | 
| 10 import 'package:test/test.dart' as unittest; | 8 import 'package:test/test.dart' as unittest; | 
| 11 | 9 | 
| 12 import 'package:googleapis/analyticsreporting/v4.dart' as api; | 10 import 'package:googleapis/analyticsreporting/v4.dart' as api; | 
| 13 | 11 | 
| 14 class HttpServerMock extends http.BaseClient { | 12 class HttpServerMock extends http.BaseClient { | 
| 15   core.Function _callback; | 13   core.Function _callback; | 
| 16   core.bool _expectJson; | 14   core.bool _expectJson; | 
| 17 | 15 | 
| 18   void register(core.Function callback, core.bool expectJson) { | 16   void register(core.Function callback, core.bool expectJson) { | 
| 19     _callback = callback; | 17     _callback = callback; | 
| 20     _expectJson = expectJson; | 18     _expectJson = expectJson; | 
| 21   } | 19   } | 
| 22 | 20 | 
| 23   async.Future<http.StreamedResponse> send(http.BaseRequest request) { | 21   async.Future<http.StreamedResponse> send(http.BaseRequest request) { | 
| 24     if (_expectJson) { | 22     if (_expectJson) { | 
| 25       return request.finalize() | 23       return request | 
|  | 24           .finalize() | 
| 26           .transform(convert.UTF8.decoder) | 25           .transform(convert.UTF8.decoder) | 
| 27           .join('') | 26           .join('') | 
| 28           .then((core.String jsonString) { | 27           .then((core.String jsonString) { | 
| 29         if (jsonString.isEmpty) { | 28         if (jsonString.isEmpty) { | 
| 30           return _callback(request, null); | 29           return _callback(request, null); | 
| 31         } else { | 30         } else { | 
| 32           return _callback(request, convert.JSON.decode(jsonString)); | 31           return _callback(request, convert.JSON.decode(jsonString)); | 
| 33         } | 32         } | 
| 34       }); | 33       }); | 
| 35     } else { | 34     } else { | 
| 36       var stream = request.finalize(); | 35       var stream = request.finalize(); | 
| 37       if (stream == null) { | 36       if (stream == null) { | 
| 38         return _callback(request, []); | 37         return _callback(request, []); | 
| 39       } else { | 38       } else { | 
| 40         return stream.toBytes().then((data) { | 39         return stream.toBytes().then((data) { | 
| 41           return _callback(request, data); | 40           return _callback(request, data); | 
| 42         }); | 41         }); | 
| 43       } | 42       } | 
| 44     } | 43     } | 
| 45   } | 44   } | 
| 46 } | 45 } | 
| 47 | 46 | 
| 48 http.StreamedResponse stringResponse( | 47 http.StreamedResponse stringResponse(core.int status, | 
| 49     core.int status, core.Map<core.String, core.String> headers, core.String bod
      y) { | 48     core.Map<core.String, core.String> headers, core.String body) { | 
| 50   var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 49   var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 
| 51   return new http.StreamedResponse(stream, status, headers: headers); | 50   return new http.StreamedResponse(stream, status, headers: headers); | 
| 52 } | 51 } | 
| 53 | 52 | 
| 54 core.int buildCounterCohort = 0; | 53 core.int buildCounterCohort = 0; | 
| 55 buildCohort() { | 54 buildCohort() { | 
| 56   var o = new api.Cohort(); | 55   var o = new api.Cohort(); | 
| 57   buildCounterCohort++; | 56   buildCounterCohort++; | 
| 58   if (buildCounterCohort < 3) { | 57   if (buildCounterCohort < 3) { | 
| 59     o.dateRange = buildDateRange(); | 58     o.dateRange = buildDateRange(); | 
| 60     o.name = "foo"; | 59     o.name = "foo"; | 
| 61     o.type = "foo"; | 60     o.type = "foo"; | 
| 62   } | 61   } | 
| 63   buildCounterCohort--; | 62   buildCounterCohort--; | 
| 64   return o; | 63   return o; | 
| 65 } | 64 } | 
| 66 | 65 | 
| 67 checkCohort(api.Cohort o) { | 66 checkCohort(api.Cohort o) { | 
| 68   buildCounterCohort++; | 67   buildCounterCohort++; | 
| 69   if (buildCounterCohort < 3) { | 68   if (buildCounterCohort < 3) { | 
| 70     checkDateRange(o.dateRange); | 69     checkDateRange(o.dateRange); | 
| 71     unittest.expect(o.name, unittest.equals('foo')); | 70     unittest.expect(o.name, unittest.equals('foo')); | 
| 72     unittest.expect(o.type, unittest.equals('foo')); | 71     unittest.expect(o.type, unittest.equals('foo')); | 
| 73   } | 72   } | 
| 74   buildCounterCohort--; | 73   buildCounterCohort--; | 
| 75 } | 74 } | 
| 76 | 75 | 
| 77 buildUnnamed214() { | 76 buildUnnamed209() { | 
| 78   var o = new core.List<api.Cohort>(); | 77   var o = new core.List<api.Cohort>(); | 
| 79   o.add(buildCohort()); | 78   o.add(buildCohort()); | 
| 80   o.add(buildCohort()); | 79   o.add(buildCohort()); | 
| 81   return o; | 80   return o; | 
| 82 } | 81 } | 
| 83 | 82 | 
| 84 checkUnnamed214(core.List<api.Cohort> o) { | 83 checkUnnamed209(core.List<api.Cohort> o) { | 
| 85   unittest.expect(o, unittest.hasLength(2)); | 84   unittest.expect(o, unittest.hasLength(2)); | 
| 86   checkCohort(o[0]); | 85   checkCohort(o[0]); | 
| 87   checkCohort(o[1]); | 86   checkCohort(o[1]); | 
| 88 } | 87 } | 
| 89 | 88 | 
| 90 core.int buildCounterCohortGroup = 0; | 89 core.int buildCounterCohortGroup = 0; | 
| 91 buildCohortGroup() { | 90 buildCohortGroup() { | 
| 92   var o = new api.CohortGroup(); | 91   var o = new api.CohortGroup(); | 
| 93   buildCounterCohortGroup++; | 92   buildCounterCohortGroup++; | 
| 94   if (buildCounterCohortGroup < 3) { | 93   if (buildCounterCohortGroup < 3) { | 
| 95     o.cohorts = buildUnnamed214(); | 94     o.cohorts = buildUnnamed209(); | 
| 96     o.lifetimeValue = true; | 95     o.lifetimeValue = true; | 
| 97   } | 96   } | 
| 98   buildCounterCohortGroup--; | 97   buildCounterCohortGroup--; | 
| 99   return o; | 98   return o; | 
| 100 } | 99 } | 
| 101 | 100 | 
| 102 checkCohortGroup(api.CohortGroup o) { | 101 checkCohortGroup(api.CohortGroup o) { | 
| 103   buildCounterCohortGroup++; | 102   buildCounterCohortGroup++; | 
| 104   if (buildCounterCohortGroup < 3) { | 103   if (buildCounterCohortGroup < 3) { | 
| 105     checkUnnamed214(o.cohorts); | 104     checkUnnamed209(o.cohorts); | 
| 106     unittest.expect(o.lifetimeValue, unittest.isTrue); | 105     unittest.expect(o.lifetimeValue, unittest.isTrue); | 
| 107   } | 106   } | 
| 108   buildCounterCohortGroup--; | 107   buildCounterCohortGroup--; | 
| 109 } | 108 } | 
| 110 | 109 | 
| 111 buildUnnamed215() { | 110 buildUnnamed210() { | 
| 112   var o = new core.List<core.String>(); | 111   var o = new core.List<core.String>(); | 
| 113   o.add("foo"); | 112   o.add("foo"); | 
| 114   o.add("foo"); | 113   o.add("foo"); | 
| 115   return o; | 114   return o; | 
| 116 } | 115 } | 
| 117 | 116 | 
| 118 checkUnnamed215(core.List<core.String> o) { | 117 checkUnnamed210(core.List<core.String> o) { | 
| 119   unittest.expect(o, unittest.hasLength(2)); | 118   unittest.expect(o, unittest.hasLength(2)); | 
| 120   unittest.expect(o[0], unittest.equals('foo')); | 119   unittest.expect(o[0], unittest.equals('foo')); | 
| 121   unittest.expect(o[1], unittest.equals('foo')); | 120   unittest.expect(o[1], unittest.equals('foo')); | 
| 122 } | 121 } | 
| 123 | 122 | 
| 124 core.int buildCounterColumnHeader = 0; | 123 core.int buildCounterColumnHeader = 0; | 
| 125 buildColumnHeader() { | 124 buildColumnHeader() { | 
| 126   var o = new api.ColumnHeader(); | 125   var o = new api.ColumnHeader(); | 
| 127   buildCounterColumnHeader++; | 126   buildCounterColumnHeader++; | 
| 128   if (buildCounterColumnHeader < 3) { | 127   if (buildCounterColumnHeader < 3) { | 
| 129     o.dimensions = buildUnnamed215(); | 128     o.dimensions = buildUnnamed210(); | 
| 130     o.metricHeader = buildMetricHeader(); | 129     o.metricHeader = buildMetricHeader(); | 
| 131   } | 130   } | 
| 132   buildCounterColumnHeader--; | 131   buildCounterColumnHeader--; | 
| 133   return o; | 132   return o; | 
| 134 } | 133 } | 
| 135 | 134 | 
| 136 checkColumnHeader(api.ColumnHeader o) { | 135 checkColumnHeader(api.ColumnHeader o) { | 
| 137   buildCounterColumnHeader++; | 136   buildCounterColumnHeader++; | 
| 138   if (buildCounterColumnHeader < 3) { | 137   if (buildCounterColumnHeader < 3) { | 
| 139     checkUnnamed215(o.dimensions); | 138     checkUnnamed210(o.dimensions); | 
| 140     checkMetricHeader(o.metricHeader); | 139     checkMetricHeader(o.metricHeader); | 
| 141   } | 140   } | 
| 142   buildCounterColumnHeader--; | 141   buildCounterColumnHeader--; | 
| 143 } | 142 } | 
| 144 | 143 | 
| 145 core.int buildCounterDateRange = 0; | 144 core.int buildCounterDateRange = 0; | 
| 146 buildDateRange() { | 145 buildDateRange() { | 
| 147   var o = new api.DateRange(); | 146   var o = new api.DateRange(); | 
| 148   buildCounterDateRange++; | 147   buildCounterDateRange++; | 
| 149   if (buildCounterDateRange < 3) { | 148   if (buildCounterDateRange < 3) { | 
| 150     o.endDate = "foo"; | 149     o.endDate = "foo"; | 
| 151     o.startDate = "foo"; | 150     o.startDate = "foo"; | 
| 152   } | 151   } | 
| 153   buildCounterDateRange--; | 152   buildCounterDateRange--; | 
| 154   return o; | 153   return o; | 
| 155 } | 154 } | 
| 156 | 155 | 
| 157 checkDateRange(api.DateRange o) { | 156 checkDateRange(api.DateRange o) { | 
| 158   buildCounterDateRange++; | 157   buildCounterDateRange++; | 
| 159   if (buildCounterDateRange < 3) { | 158   if (buildCounterDateRange < 3) { | 
| 160     unittest.expect(o.endDate, unittest.equals('foo')); | 159     unittest.expect(o.endDate, unittest.equals('foo')); | 
| 161     unittest.expect(o.startDate, unittest.equals('foo')); | 160     unittest.expect(o.startDate, unittest.equals('foo')); | 
| 162   } | 161   } | 
| 163   buildCounterDateRange--; | 162   buildCounterDateRange--; | 
| 164 } | 163 } | 
| 165 | 164 | 
| 166 buildUnnamed216() { | 165 buildUnnamed211() { | 
| 167   var o = new core.List<api.PivotValueRegion>(); | 166   var o = new core.List<api.PivotValueRegion>(); | 
| 168   o.add(buildPivotValueRegion()); | 167   o.add(buildPivotValueRegion()); | 
| 169   o.add(buildPivotValueRegion()); | 168   o.add(buildPivotValueRegion()); | 
| 170   return o; | 169   return o; | 
| 171 } | 170 } | 
| 172 | 171 | 
| 173 checkUnnamed216(core.List<api.PivotValueRegion> o) { | 172 checkUnnamed211(core.List<api.PivotValueRegion> o) { | 
| 174   unittest.expect(o, unittest.hasLength(2)); | 173   unittest.expect(o, unittest.hasLength(2)); | 
| 175   checkPivotValueRegion(o[0]); | 174   checkPivotValueRegion(o[0]); | 
| 176   checkPivotValueRegion(o[1]); | 175   checkPivotValueRegion(o[1]); | 
| 177 } | 176 } | 
| 178 | 177 | 
| 179 buildUnnamed217() { | 178 buildUnnamed212() { | 
| 180   var o = new core.List<core.String>(); | 179   var o = new core.List<core.String>(); | 
| 181   o.add("foo"); | 180   o.add("foo"); | 
| 182   o.add("foo"); | 181   o.add("foo"); | 
| 183   return o; | 182   return o; | 
| 184 } | 183 } | 
| 185 | 184 | 
| 186 checkUnnamed217(core.List<core.String> o) { | 185 checkUnnamed212(core.List<core.String> o) { | 
| 187   unittest.expect(o, unittest.hasLength(2)); | 186   unittest.expect(o, unittest.hasLength(2)); | 
| 188   unittest.expect(o[0], unittest.equals('foo')); | 187   unittest.expect(o[0], unittest.equals('foo')); | 
| 189   unittest.expect(o[1], unittest.equals('foo')); | 188   unittest.expect(o[1], unittest.equals('foo')); | 
| 190 } | 189 } | 
| 191 | 190 | 
| 192 core.int buildCounterDateRangeValues = 0; | 191 core.int buildCounterDateRangeValues = 0; | 
| 193 buildDateRangeValues() { | 192 buildDateRangeValues() { | 
| 194   var o = new api.DateRangeValues(); | 193   var o = new api.DateRangeValues(); | 
| 195   buildCounterDateRangeValues++; | 194   buildCounterDateRangeValues++; | 
| 196   if (buildCounterDateRangeValues < 3) { | 195   if (buildCounterDateRangeValues < 3) { | 
| 197     o.pivotValueRegions = buildUnnamed216(); | 196     o.pivotValueRegions = buildUnnamed211(); | 
| 198     o.values = buildUnnamed217(); | 197     o.values = buildUnnamed212(); | 
| 199   } | 198   } | 
| 200   buildCounterDateRangeValues--; | 199   buildCounterDateRangeValues--; | 
| 201   return o; | 200   return o; | 
| 202 } | 201 } | 
| 203 | 202 | 
| 204 checkDateRangeValues(api.DateRangeValues o) { | 203 checkDateRangeValues(api.DateRangeValues o) { | 
| 205   buildCounterDateRangeValues++; | 204   buildCounterDateRangeValues++; | 
| 206   if (buildCounterDateRangeValues < 3) { | 205   if (buildCounterDateRangeValues < 3) { | 
| 207     checkUnnamed216(o.pivotValueRegions); | 206     checkUnnamed211(o.pivotValueRegions); | 
| 208     checkUnnamed217(o.values); | 207     checkUnnamed212(o.values); | 
| 209   } | 208   } | 
| 210   buildCounterDateRangeValues--; | 209   buildCounterDateRangeValues--; | 
| 211 } | 210 } | 
| 212 | 211 | 
| 213 buildUnnamed218() { | 212 buildUnnamed213() { | 
| 214   var o = new core.List<core.String>(); | 213   var o = new core.List<core.String>(); | 
| 215   o.add("foo"); | 214   o.add("foo"); | 
| 216   o.add("foo"); | 215   o.add("foo"); | 
| 217   return o; | 216   return o; | 
| 218 } | 217 } | 
| 219 | 218 | 
| 220 checkUnnamed218(core.List<core.String> o) { | 219 checkUnnamed213(core.List<core.String> o) { | 
| 221   unittest.expect(o, unittest.hasLength(2)); | 220   unittest.expect(o, unittest.hasLength(2)); | 
| 222   unittest.expect(o[0], unittest.equals('foo')); | 221   unittest.expect(o[0], unittest.equals('foo')); | 
| 223   unittest.expect(o[1], unittest.equals('foo')); | 222   unittest.expect(o[1], unittest.equals('foo')); | 
| 224 } | 223 } | 
| 225 | 224 | 
| 226 core.int buildCounterDimension = 0; | 225 core.int buildCounterDimension = 0; | 
| 227 buildDimension() { | 226 buildDimension() { | 
| 228   var o = new api.Dimension(); | 227   var o = new api.Dimension(); | 
| 229   buildCounterDimension++; | 228   buildCounterDimension++; | 
| 230   if (buildCounterDimension < 3) { | 229   if (buildCounterDimension < 3) { | 
| 231     o.histogramBuckets = buildUnnamed218(); | 230     o.histogramBuckets = buildUnnamed213(); | 
| 232     o.name = "foo"; | 231     o.name = "foo"; | 
| 233   } | 232   } | 
| 234   buildCounterDimension--; | 233   buildCounterDimension--; | 
| 235   return o; | 234   return o; | 
| 236 } | 235 } | 
| 237 | 236 | 
| 238 checkDimension(api.Dimension o) { | 237 checkDimension(api.Dimension o) { | 
| 239   buildCounterDimension++; | 238   buildCounterDimension++; | 
| 240   if (buildCounterDimension < 3) { | 239   if (buildCounterDimension < 3) { | 
| 241     checkUnnamed218(o.histogramBuckets); | 240     checkUnnamed213(o.histogramBuckets); | 
| 242     unittest.expect(o.name, unittest.equals('foo')); | 241     unittest.expect(o.name, unittest.equals('foo')); | 
| 243   } | 242   } | 
| 244   buildCounterDimension--; | 243   buildCounterDimension--; | 
| 245 } | 244 } | 
| 246 | 245 | 
| 247 buildUnnamed219() { | 246 buildUnnamed214() { | 
| 248   var o = new core.List<core.String>(); | 247   var o = new core.List<core.String>(); | 
| 249   o.add("foo"); | 248   o.add("foo"); | 
| 250   o.add("foo"); | 249   o.add("foo"); | 
| 251   return o; | 250   return o; | 
| 252 } | 251 } | 
| 253 | 252 | 
| 254 checkUnnamed219(core.List<core.String> o) { | 253 checkUnnamed214(core.List<core.String> o) { | 
| 255   unittest.expect(o, unittest.hasLength(2)); | 254   unittest.expect(o, unittest.hasLength(2)); | 
| 256   unittest.expect(o[0], unittest.equals('foo')); | 255   unittest.expect(o[0], unittest.equals('foo')); | 
| 257   unittest.expect(o[1], unittest.equals('foo')); | 256   unittest.expect(o[1], unittest.equals('foo')); | 
| 258 } | 257 } | 
| 259 | 258 | 
| 260 core.int buildCounterDimensionFilter = 0; | 259 core.int buildCounterDimensionFilter = 0; | 
| 261 buildDimensionFilter() { | 260 buildDimensionFilter() { | 
| 262   var o = new api.DimensionFilter(); | 261   var o = new api.DimensionFilter(); | 
| 263   buildCounterDimensionFilter++; | 262   buildCounterDimensionFilter++; | 
| 264   if (buildCounterDimensionFilter < 3) { | 263   if (buildCounterDimensionFilter < 3) { | 
| 265     o.caseSensitive = true; | 264     o.caseSensitive = true; | 
| 266     o.dimensionName = "foo"; | 265     o.dimensionName = "foo"; | 
| 267     o.expressions = buildUnnamed219(); | 266     o.expressions = buildUnnamed214(); | 
| 268     o.not = true; | 267     o.not = true; | 
| 269     o.operator = "foo"; | 268     o.operator = "foo"; | 
| 270   } | 269   } | 
| 271   buildCounterDimensionFilter--; | 270   buildCounterDimensionFilter--; | 
| 272   return o; | 271   return o; | 
| 273 } | 272 } | 
| 274 | 273 | 
| 275 checkDimensionFilter(api.DimensionFilter o) { | 274 checkDimensionFilter(api.DimensionFilter o) { | 
| 276   buildCounterDimensionFilter++; | 275   buildCounterDimensionFilter++; | 
| 277   if (buildCounterDimensionFilter < 3) { | 276   if (buildCounterDimensionFilter < 3) { | 
| 278     unittest.expect(o.caseSensitive, unittest.isTrue); | 277     unittest.expect(o.caseSensitive, unittest.isTrue); | 
| 279     unittest.expect(o.dimensionName, unittest.equals('foo')); | 278     unittest.expect(o.dimensionName, unittest.equals('foo')); | 
| 280     checkUnnamed219(o.expressions); | 279     checkUnnamed214(o.expressions); | 
| 281     unittest.expect(o.not, unittest.isTrue); | 280     unittest.expect(o.not, unittest.isTrue); | 
| 282     unittest.expect(o.operator, unittest.equals('foo')); | 281     unittest.expect(o.operator, unittest.equals('foo')); | 
| 283   } | 282   } | 
| 284   buildCounterDimensionFilter--; | 283   buildCounterDimensionFilter--; | 
| 285 } | 284 } | 
| 286 | 285 | 
| 287 buildUnnamed220() { | 286 buildUnnamed215() { | 
| 288   var o = new core.List<api.DimensionFilter>(); | 287   var o = new core.List<api.DimensionFilter>(); | 
| 289   o.add(buildDimensionFilter()); | 288   o.add(buildDimensionFilter()); | 
| 290   o.add(buildDimensionFilter()); | 289   o.add(buildDimensionFilter()); | 
| 291   return o; | 290   return o; | 
| 292 } | 291 } | 
| 293 | 292 | 
| 294 checkUnnamed220(core.List<api.DimensionFilter> o) { | 293 checkUnnamed215(core.List<api.DimensionFilter> o) { | 
| 295   unittest.expect(o, unittest.hasLength(2)); | 294   unittest.expect(o, unittest.hasLength(2)); | 
| 296   checkDimensionFilter(o[0]); | 295   checkDimensionFilter(o[0]); | 
| 297   checkDimensionFilter(o[1]); | 296   checkDimensionFilter(o[1]); | 
| 298 } | 297 } | 
| 299 | 298 | 
| 300 core.int buildCounterDimensionFilterClause = 0; | 299 core.int buildCounterDimensionFilterClause = 0; | 
| 301 buildDimensionFilterClause() { | 300 buildDimensionFilterClause() { | 
| 302   var o = new api.DimensionFilterClause(); | 301   var o = new api.DimensionFilterClause(); | 
| 303   buildCounterDimensionFilterClause++; | 302   buildCounterDimensionFilterClause++; | 
| 304   if (buildCounterDimensionFilterClause < 3) { | 303   if (buildCounterDimensionFilterClause < 3) { | 
| 305     o.filters = buildUnnamed220(); | 304     o.filters = buildUnnamed215(); | 
| 306     o.operator = "foo"; | 305     o.operator = "foo"; | 
| 307   } | 306   } | 
| 308   buildCounterDimensionFilterClause--; | 307   buildCounterDimensionFilterClause--; | 
| 309   return o; | 308   return o; | 
| 310 } | 309 } | 
| 311 | 310 | 
| 312 checkDimensionFilterClause(api.DimensionFilterClause o) { | 311 checkDimensionFilterClause(api.DimensionFilterClause o) { | 
| 313   buildCounterDimensionFilterClause++; | 312   buildCounterDimensionFilterClause++; | 
| 314   if (buildCounterDimensionFilterClause < 3) { | 313   if (buildCounterDimensionFilterClause < 3) { | 
| 315     checkUnnamed220(o.filters); | 314     checkUnnamed215(o.filters); | 
| 316     unittest.expect(o.operator, unittest.equals('foo')); | 315     unittest.expect(o.operator, unittest.equals('foo')); | 
| 317   } | 316   } | 
| 318   buildCounterDimensionFilterClause--; | 317   buildCounterDimensionFilterClause--; | 
| 319 } | 318 } | 
| 320 | 319 | 
| 321 core.int buildCounterDynamicSegment = 0; | 320 core.int buildCounterDynamicSegment = 0; | 
| 322 buildDynamicSegment() { | 321 buildDynamicSegment() { | 
| 323   var o = new api.DynamicSegment(); | 322   var o = new api.DynamicSegment(); | 
| 324   buildCounterDynamicSegment++; | 323   buildCounterDynamicSegment++; | 
| 325   if (buildCounterDynamicSegment < 3) { | 324   if (buildCounterDynamicSegment < 3) { | 
| 326     o.name = "foo"; | 325     o.name = "foo"; | 
| 327     o.sessionSegment = buildSegmentDefinition(); | 326     o.sessionSegment = buildSegmentDefinition(); | 
| 328     o.userSegment = buildSegmentDefinition(); | 327     o.userSegment = buildSegmentDefinition(); | 
| 329   } | 328   } | 
| 330   buildCounterDynamicSegment--; | 329   buildCounterDynamicSegment--; | 
| 331   return o; | 330   return o; | 
| 332 } | 331 } | 
| 333 | 332 | 
| 334 checkDynamicSegment(api.DynamicSegment o) { | 333 checkDynamicSegment(api.DynamicSegment o) { | 
| 335   buildCounterDynamicSegment++; | 334   buildCounterDynamicSegment++; | 
| 336   if (buildCounterDynamicSegment < 3) { | 335   if (buildCounterDynamicSegment < 3) { | 
| 337     unittest.expect(o.name, unittest.equals('foo')); | 336     unittest.expect(o.name, unittest.equals('foo')); | 
| 338     checkSegmentDefinition(o.sessionSegment); | 337     checkSegmentDefinition(o.sessionSegment); | 
| 339     checkSegmentDefinition(o.userSegment); | 338     checkSegmentDefinition(o.userSegment); | 
| 340   } | 339   } | 
| 341   buildCounterDynamicSegment--; | 340   buildCounterDynamicSegment--; | 
| 342 } | 341 } | 
| 343 | 342 | 
| 344 buildUnnamed221() { | 343 buildUnnamed216() { | 
| 345   var o = new core.List<api.ReportRequest>(); | 344   var o = new core.List<api.ReportRequest>(); | 
| 346   o.add(buildReportRequest()); | 345   o.add(buildReportRequest()); | 
| 347   o.add(buildReportRequest()); | 346   o.add(buildReportRequest()); | 
| 348   return o; | 347   return o; | 
| 349 } | 348 } | 
| 350 | 349 | 
| 351 checkUnnamed221(core.List<api.ReportRequest> o) { | 350 checkUnnamed216(core.List<api.ReportRequest> o) { | 
| 352   unittest.expect(o, unittest.hasLength(2)); | 351   unittest.expect(o, unittest.hasLength(2)); | 
| 353   checkReportRequest(o[0]); | 352   checkReportRequest(o[0]); | 
| 354   checkReportRequest(o[1]); | 353   checkReportRequest(o[1]); | 
| 355 } | 354 } | 
| 356 | 355 | 
| 357 core.int buildCounterGetReportsRequest = 0; | 356 core.int buildCounterGetReportsRequest = 0; | 
| 358 buildGetReportsRequest() { | 357 buildGetReportsRequest() { | 
| 359   var o = new api.GetReportsRequest(); | 358   var o = new api.GetReportsRequest(); | 
| 360   buildCounterGetReportsRequest++; | 359   buildCounterGetReportsRequest++; | 
| 361   if (buildCounterGetReportsRequest < 3) { | 360   if (buildCounterGetReportsRequest < 3) { | 
| 362     o.reportRequests = buildUnnamed221(); | 361     o.reportRequests = buildUnnamed216(); | 
| 363   } | 362   } | 
| 364   buildCounterGetReportsRequest--; | 363   buildCounterGetReportsRequest--; | 
| 365   return o; | 364   return o; | 
| 366 } | 365 } | 
| 367 | 366 | 
| 368 checkGetReportsRequest(api.GetReportsRequest o) { | 367 checkGetReportsRequest(api.GetReportsRequest o) { | 
| 369   buildCounterGetReportsRequest++; | 368   buildCounterGetReportsRequest++; | 
| 370   if (buildCounterGetReportsRequest < 3) { | 369   if (buildCounterGetReportsRequest < 3) { | 
| 371     checkUnnamed221(o.reportRequests); | 370     checkUnnamed216(o.reportRequests); | 
| 372   } | 371   } | 
| 373   buildCounterGetReportsRequest--; | 372   buildCounterGetReportsRequest--; | 
| 374 } | 373 } | 
| 375 | 374 | 
| 376 buildUnnamed222() { | 375 buildUnnamed217() { | 
| 377   var o = new core.List<api.Report>(); | 376   var o = new core.List<api.Report>(); | 
| 378   o.add(buildReport()); | 377   o.add(buildReport()); | 
| 379   o.add(buildReport()); | 378   o.add(buildReport()); | 
| 380   return o; | 379   return o; | 
| 381 } | 380 } | 
| 382 | 381 | 
| 383 checkUnnamed222(core.List<api.Report> o) { | 382 checkUnnamed217(core.List<api.Report> o) { | 
| 384   unittest.expect(o, unittest.hasLength(2)); | 383   unittest.expect(o, unittest.hasLength(2)); | 
| 385   checkReport(o[0]); | 384   checkReport(o[0]); | 
| 386   checkReport(o[1]); | 385   checkReport(o[1]); | 
| 387 } | 386 } | 
| 388 | 387 | 
| 389 core.int buildCounterGetReportsResponse = 0; | 388 core.int buildCounterGetReportsResponse = 0; | 
| 390 buildGetReportsResponse() { | 389 buildGetReportsResponse() { | 
| 391   var o = new api.GetReportsResponse(); | 390   var o = new api.GetReportsResponse(); | 
| 392   buildCounterGetReportsResponse++; | 391   buildCounterGetReportsResponse++; | 
| 393   if (buildCounterGetReportsResponse < 3) { | 392   if (buildCounterGetReportsResponse < 3) { | 
| 394     o.reports = buildUnnamed222(); | 393     o.reports = buildUnnamed217(); | 
| 395   } | 394   } | 
| 396   buildCounterGetReportsResponse--; | 395   buildCounterGetReportsResponse--; | 
| 397   return o; | 396   return o; | 
| 398 } | 397 } | 
| 399 | 398 | 
| 400 checkGetReportsResponse(api.GetReportsResponse o) { | 399 checkGetReportsResponse(api.GetReportsResponse o) { | 
| 401   buildCounterGetReportsResponse++; | 400   buildCounterGetReportsResponse++; | 
| 402   if (buildCounterGetReportsResponse < 3) { | 401   if (buildCounterGetReportsResponse < 3) { | 
| 403     checkUnnamed222(o.reports); | 402     checkUnnamed217(o.reports); | 
| 404   } | 403   } | 
| 405   buildCounterGetReportsResponse--; | 404   buildCounterGetReportsResponse--; | 
| 406 } | 405 } | 
| 407 | 406 | 
| 408 core.int buildCounterMetric = 0; | 407 core.int buildCounterMetric = 0; | 
| 409 buildMetric() { | 408 buildMetric() { | 
| 410   var o = new api.Metric(); | 409   var o = new api.Metric(); | 
| 411   buildCounterMetric++; | 410   buildCounterMetric++; | 
| 412   if (buildCounterMetric < 3) { | 411   if (buildCounterMetric < 3) { | 
| 413     o.alias = "foo"; | 412     o.alias = "foo"; | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 446   buildCounterMetricFilter++; | 445   buildCounterMetricFilter++; | 
| 447   if (buildCounterMetricFilter < 3) { | 446   if (buildCounterMetricFilter < 3) { | 
| 448     unittest.expect(o.comparisonValue, unittest.equals('foo')); | 447     unittest.expect(o.comparisonValue, unittest.equals('foo')); | 
| 449     unittest.expect(o.metricName, unittest.equals('foo')); | 448     unittest.expect(o.metricName, unittest.equals('foo')); | 
| 450     unittest.expect(o.not, unittest.isTrue); | 449     unittest.expect(o.not, unittest.isTrue); | 
| 451     unittest.expect(o.operator, unittest.equals('foo')); | 450     unittest.expect(o.operator, unittest.equals('foo')); | 
| 452   } | 451   } | 
| 453   buildCounterMetricFilter--; | 452   buildCounterMetricFilter--; | 
| 454 } | 453 } | 
| 455 | 454 | 
| 456 buildUnnamed223() { | 455 buildUnnamed218() { | 
| 457   var o = new core.List<api.MetricFilter>(); | 456   var o = new core.List<api.MetricFilter>(); | 
| 458   o.add(buildMetricFilter()); | 457   o.add(buildMetricFilter()); | 
| 459   o.add(buildMetricFilter()); | 458   o.add(buildMetricFilter()); | 
| 460   return o; | 459   return o; | 
| 461 } | 460 } | 
| 462 | 461 | 
| 463 checkUnnamed223(core.List<api.MetricFilter> o) { | 462 checkUnnamed218(core.List<api.MetricFilter> o) { | 
| 464   unittest.expect(o, unittest.hasLength(2)); | 463   unittest.expect(o, unittest.hasLength(2)); | 
| 465   checkMetricFilter(o[0]); | 464   checkMetricFilter(o[0]); | 
| 466   checkMetricFilter(o[1]); | 465   checkMetricFilter(o[1]); | 
| 467 } | 466 } | 
| 468 | 467 | 
| 469 core.int buildCounterMetricFilterClause = 0; | 468 core.int buildCounterMetricFilterClause = 0; | 
| 470 buildMetricFilterClause() { | 469 buildMetricFilterClause() { | 
| 471   var o = new api.MetricFilterClause(); | 470   var o = new api.MetricFilterClause(); | 
| 472   buildCounterMetricFilterClause++; | 471   buildCounterMetricFilterClause++; | 
| 473   if (buildCounterMetricFilterClause < 3) { | 472   if (buildCounterMetricFilterClause < 3) { | 
| 474     o.filters = buildUnnamed223(); | 473     o.filters = buildUnnamed218(); | 
| 475     o.operator = "foo"; | 474     o.operator = "foo"; | 
| 476   } | 475   } | 
| 477   buildCounterMetricFilterClause--; | 476   buildCounterMetricFilterClause--; | 
| 478   return o; | 477   return o; | 
| 479 } | 478 } | 
| 480 | 479 | 
| 481 checkMetricFilterClause(api.MetricFilterClause o) { | 480 checkMetricFilterClause(api.MetricFilterClause o) { | 
| 482   buildCounterMetricFilterClause++; | 481   buildCounterMetricFilterClause++; | 
| 483   if (buildCounterMetricFilterClause < 3) { | 482   if (buildCounterMetricFilterClause < 3) { | 
| 484     checkUnnamed223(o.filters); | 483     checkUnnamed218(o.filters); | 
| 485     unittest.expect(o.operator, unittest.equals('foo')); | 484     unittest.expect(o.operator, unittest.equals('foo')); | 
| 486   } | 485   } | 
| 487   buildCounterMetricFilterClause--; | 486   buildCounterMetricFilterClause--; | 
| 488 } | 487 } | 
| 489 | 488 | 
| 490 buildUnnamed224() { | 489 buildUnnamed219() { | 
| 491   var o = new core.List<api.MetricHeaderEntry>(); | 490   var o = new core.List<api.MetricHeaderEntry>(); | 
| 492   o.add(buildMetricHeaderEntry()); | 491   o.add(buildMetricHeaderEntry()); | 
| 493   o.add(buildMetricHeaderEntry()); | 492   o.add(buildMetricHeaderEntry()); | 
| 494   return o; | 493   return o; | 
| 495 } | 494 } | 
| 496 | 495 | 
| 497 checkUnnamed224(core.List<api.MetricHeaderEntry> o) { | 496 checkUnnamed219(core.List<api.MetricHeaderEntry> o) { | 
| 498   unittest.expect(o, unittest.hasLength(2)); | 497   unittest.expect(o, unittest.hasLength(2)); | 
| 499   checkMetricHeaderEntry(o[0]); | 498   checkMetricHeaderEntry(o[0]); | 
| 500   checkMetricHeaderEntry(o[1]); | 499   checkMetricHeaderEntry(o[1]); | 
| 501 } | 500 } | 
| 502 | 501 | 
| 503 buildUnnamed225() { | 502 buildUnnamed220() { | 
| 504   var o = new core.List<api.PivotHeader>(); | 503   var o = new core.List<api.PivotHeader>(); | 
| 505   o.add(buildPivotHeader()); | 504   o.add(buildPivotHeader()); | 
| 506   o.add(buildPivotHeader()); | 505   o.add(buildPivotHeader()); | 
| 507   return o; | 506   return o; | 
| 508 } | 507 } | 
| 509 | 508 | 
| 510 checkUnnamed225(core.List<api.PivotHeader> o) { | 509 checkUnnamed220(core.List<api.PivotHeader> o) { | 
| 511   unittest.expect(o, unittest.hasLength(2)); | 510   unittest.expect(o, unittest.hasLength(2)); | 
| 512   checkPivotHeader(o[0]); | 511   checkPivotHeader(o[0]); | 
| 513   checkPivotHeader(o[1]); | 512   checkPivotHeader(o[1]); | 
| 514 } | 513 } | 
| 515 | 514 | 
| 516 core.int buildCounterMetricHeader = 0; | 515 core.int buildCounterMetricHeader = 0; | 
| 517 buildMetricHeader() { | 516 buildMetricHeader() { | 
| 518   var o = new api.MetricHeader(); | 517   var o = new api.MetricHeader(); | 
| 519   buildCounterMetricHeader++; | 518   buildCounterMetricHeader++; | 
| 520   if (buildCounterMetricHeader < 3) { | 519   if (buildCounterMetricHeader < 3) { | 
| 521     o.metricHeaderEntries = buildUnnamed224(); | 520     o.metricHeaderEntries = buildUnnamed219(); | 
| 522     o.pivotHeaders = buildUnnamed225(); | 521     o.pivotHeaders = buildUnnamed220(); | 
| 523   } | 522   } | 
| 524   buildCounterMetricHeader--; | 523   buildCounterMetricHeader--; | 
| 525   return o; | 524   return o; | 
| 526 } | 525 } | 
| 527 | 526 | 
| 528 checkMetricHeader(api.MetricHeader o) { | 527 checkMetricHeader(api.MetricHeader o) { | 
| 529   buildCounterMetricHeader++; | 528   buildCounterMetricHeader++; | 
| 530   if (buildCounterMetricHeader < 3) { | 529   if (buildCounterMetricHeader < 3) { | 
| 531     checkUnnamed224(o.metricHeaderEntries); | 530     checkUnnamed219(o.metricHeaderEntries); | 
| 532     checkUnnamed225(o.pivotHeaders); | 531     checkUnnamed220(o.pivotHeaders); | 
| 533   } | 532   } | 
| 534   buildCounterMetricHeader--; | 533   buildCounterMetricHeader--; | 
| 535 } | 534 } | 
| 536 | 535 | 
| 537 core.int buildCounterMetricHeaderEntry = 0; | 536 core.int buildCounterMetricHeaderEntry = 0; | 
| 538 buildMetricHeaderEntry() { | 537 buildMetricHeaderEntry() { | 
| 539   var o = new api.MetricHeaderEntry(); | 538   var o = new api.MetricHeaderEntry(); | 
| 540   buildCounterMetricHeaderEntry++; | 539   buildCounterMetricHeaderEntry++; | 
| 541   if (buildCounterMetricHeaderEntry < 3) { | 540   if (buildCounterMetricHeaderEntry < 3) { | 
| 542     o.name = "foo"; | 541     o.name = "foo"; | 
| 543     o.type = "foo"; | 542     o.type = "foo"; | 
| 544   } | 543   } | 
| 545   buildCounterMetricHeaderEntry--; | 544   buildCounterMetricHeaderEntry--; | 
| 546   return o; | 545   return o; | 
| 547 } | 546 } | 
| 548 | 547 | 
| 549 checkMetricHeaderEntry(api.MetricHeaderEntry o) { | 548 checkMetricHeaderEntry(api.MetricHeaderEntry o) { | 
| 550   buildCounterMetricHeaderEntry++; | 549   buildCounterMetricHeaderEntry++; | 
| 551   if (buildCounterMetricHeaderEntry < 3) { | 550   if (buildCounterMetricHeaderEntry < 3) { | 
| 552     unittest.expect(o.name, unittest.equals('foo')); | 551     unittest.expect(o.name, unittest.equals('foo')); | 
| 553     unittest.expect(o.type, unittest.equals('foo')); | 552     unittest.expect(o.type, unittest.equals('foo')); | 
| 554   } | 553   } | 
| 555   buildCounterMetricHeaderEntry--; | 554   buildCounterMetricHeaderEntry--; | 
| 556 } | 555 } | 
| 557 | 556 | 
| 558 buildUnnamed226() { | 557 buildUnnamed221() { | 
| 559   var o = new core.List<api.SegmentFilterClause>(); | 558   var o = new core.List<api.SegmentFilterClause>(); | 
| 560   o.add(buildSegmentFilterClause()); | 559   o.add(buildSegmentFilterClause()); | 
| 561   o.add(buildSegmentFilterClause()); | 560   o.add(buildSegmentFilterClause()); | 
| 562   return o; | 561   return o; | 
| 563 } | 562 } | 
| 564 | 563 | 
| 565 checkUnnamed226(core.List<api.SegmentFilterClause> o) { | 564 checkUnnamed221(core.List<api.SegmentFilterClause> o) { | 
| 566   unittest.expect(o, unittest.hasLength(2)); | 565   unittest.expect(o, unittest.hasLength(2)); | 
| 567   checkSegmentFilterClause(o[0]); | 566   checkSegmentFilterClause(o[0]); | 
| 568   checkSegmentFilterClause(o[1]); | 567   checkSegmentFilterClause(o[1]); | 
| 569 } | 568 } | 
| 570 | 569 | 
| 571 core.int buildCounterOrFiltersForSegment = 0; | 570 core.int buildCounterOrFiltersForSegment = 0; | 
| 572 buildOrFiltersForSegment() { | 571 buildOrFiltersForSegment() { | 
| 573   var o = new api.OrFiltersForSegment(); | 572   var o = new api.OrFiltersForSegment(); | 
| 574   buildCounterOrFiltersForSegment++; | 573   buildCounterOrFiltersForSegment++; | 
| 575   if (buildCounterOrFiltersForSegment < 3) { | 574   if (buildCounterOrFiltersForSegment < 3) { | 
| 576     o.segmentFilterClauses = buildUnnamed226(); | 575     o.segmentFilterClauses = buildUnnamed221(); | 
| 577   } | 576   } | 
| 578   buildCounterOrFiltersForSegment--; | 577   buildCounterOrFiltersForSegment--; | 
| 579   return o; | 578   return o; | 
| 580 } | 579 } | 
| 581 | 580 | 
| 582 checkOrFiltersForSegment(api.OrFiltersForSegment o) { | 581 checkOrFiltersForSegment(api.OrFiltersForSegment o) { | 
| 583   buildCounterOrFiltersForSegment++; | 582   buildCounterOrFiltersForSegment++; | 
| 584   if (buildCounterOrFiltersForSegment < 3) { | 583   if (buildCounterOrFiltersForSegment < 3) { | 
| 585     checkUnnamed226(o.segmentFilterClauses); | 584     checkUnnamed221(o.segmentFilterClauses); | 
| 586   } | 585   } | 
| 587   buildCounterOrFiltersForSegment--; | 586   buildCounterOrFiltersForSegment--; | 
| 588 } | 587 } | 
| 589 | 588 | 
| 590 core.int buildCounterOrderBy = 0; | 589 core.int buildCounterOrderBy = 0; | 
| 591 buildOrderBy() { | 590 buildOrderBy() { | 
| 592   var o = new api.OrderBy(); | 591   var o = new api.OrderBy(); | 
| 593   buildCounterOrderBy++; | 592   buildCounterOrderBy++; | 
| 594   if (buildCounterOrderBy < 3) { | 593   if (buildCounterOrderBy < 3) { | 
| 595     o.fieldName = "foo"; | 594     o.fieldName = "foo"; | 
| 596     o.orderType = "foo"; | 595     o.orderType = "foo"; | 
| 597     o.sortOrder = "foo"; | 596     o.sortOrder = "foo"; | 
| 598   } | 597   } | 
| 599   buildCounterOrderBy--; | 598   buildCounterOrderBy--; | 
| 600   return o; | 599   return o; | 
| 601 } | 600 } | 
| 602 | 601 | 
| 603 checkOrderBy(api.OrderBy o) { | 602 checkOrderBy(api.OrderBy o) { | 
| 604   buildCounterOrderBy++; | 603   buildCounterOrderBy++; | 
| 605   if (buildCounterOrderBy < 3) { | 604   if (buildCounterOrderBy < 3) { | 
| 606     unittest.expect(o.fieldName, unittest.equals('foo')); | 605     unittest.expect(o.fieldName, unittest.equals('foo')); | 
| 607     unittest.expect(o.orderType, unittest.equals('foo')); | 606     unittest.expect(o.orderType, unittest.equals('foo')); | 
| 608     unittest.expect(o.sortOrder, unittest.equals('foo')); | 607     unittest.expect(o.sortOrder, unittest.equals('foo')); | 
| 609   } | 608   } | 
| 610   buildCounterOrderBy--; | 609   buildCounterOrderBy--; | 
| 611 } | 610 } | 
| 612 | 611 | 
| 613 buildUnnamed227() { | 612 buildUnnamed222() { | 
| 614   var o = new core.List<api.DimensionFilterClause>(); | 613   var o = new core.List<api.DimensionFilterClause>(); | 
| 615   o.add(buildDimensionFilterClause()); | 614   o.add(buildDimensionFilterClause()); | 
| 616   o.add(buildDimensionFilterClause()); | 615   o.add(buildDimensionFilterClause()); | 
| 617   return o; | 616   return o; | 
| 618 } | 617 } | 
| 619 | 618 | 
| 620 checkUnnamed227(core.List<api.DimensionFilterClause> o) { | 619 checkUnnamed222(core.List<api.DimensionFilterClause> o) { | 
| 621   unittest.expect(o, unittest.hasLength(2)); | 620   unittest.expect(o, unittest.hasLength(2)); | 
| 622   checkDimensionFilterClause(o[0]); | 621   checkDimensionFilterClause(o[0]); | 
| 623   checkDimensionFilterClause(o[1]); | 622   checkDimensionFilterClause(o[1]); | 
| 624 } | 623 } | 
| 625 | 624 | 
| 626 buildUnnamed228() { | 625 buildUnnamed223() { | 
| 627   var o = new core.List<api.Dimension>(); | 626   var o = new core.List<api.Dimension>(); | 
| 628   o.add(buildDimension()); | 627   o.add(buildDimension()); | 
| 629   o.add(buildDimension()); | 628   o.add(buildDimension()); | 
| 630   return o; | 629   return o; | 
| 631 } | 630 } | 
| 632 | 631 | 
| 633 checkUnnamed228(core.List<api.Dimension> o) { | 632 checkUnnamed223(core.List<api.Dimension> o) { | 
| 634   unittest.expect(o, unittest.hasLength(2)); | 633   unittest.expect(o, unittest.hasLength(2)); | 
| 635   checkDimension(o[0]); | 634   checkDimension(o[0]); | 
| 636   checkDimension(o[1]); | 635   checkDimension(o[1]); | 
| 637 } | 636 } | 
| 638 | 637 | 
| 639 buildUnnamed229() { | 638 buildUnnamed224() { | 
| 640   var o = new core.List<api.Metric>(); | 639   var o = new core.List<api.Metric>(); | 
| 641   o.add(buildMetric()); | 640   o.add(buildMetric()); | 
| 642   o.add(buildMetric()); | 641   o.add(buildMetric()); | 
| 643   return o; | 642   return o; | 
| 644 } | 643 } | 
| 645 | 644 | 
| 646 checkUnnamed229(core.List<api.Metric> o) { | 645 checkUnnamed224(core.List<api.Metric> o) { | 
| 647   unittest.expect(o, unittest.hasLength(2)); | 646   unittest.expect(o, unittest.hasLength(2)); | 
| 648   checkMetric(o[0]); | 647   checkMetric(o[0]); | 
| 649   checkMetric(o[1]); | 648   checkMetric(o[1]); | 
| 650 } | 649 } | 
| 651 | 650 | 
| 652 core.int buildCounterPivot = 0; | 651 core.int buildCounterPivot = 0; | 
| 653 buildPivot() { | 652 buildPivot() { | 
| 654   var o = new api.Pivot(); | 653   var o = new api.Pivot(); | 
| 655   buildCounterPivot++; | 654   buildCounterPivot++; | 
| 656   if (buildCounterPivot < 3) { | 655   if (buildCounterPivot < 3) { | 
| 657     o.dimensionFilterClauses = buildUnnamed227(); | 656     o.dimensionFilterClauses = buildUnnamed222(); | 
| 658     o.dimensions = buildUnnamed228(); | 657     o.dimensions = buildUnnamed223(); | 
| 659     o.maxGroupCount = 42; | 658     o.maxGroupCount = 42; | 
| 660     o.metrics = buildUnnamed229(); | 659     o.metrics = buildUnnamed224(); | 
| 661     o.startGroup = 42; | 660     o.startGroup = 42; | 
| 662   } | 661   } | 
| 663   buildCounterPivot--; | 662   buildCounterPivot--; | 
| 664   return o; | 663   return o; | 
| 665 } | 664 } | 
| 666 | 665 | 
| 667 checkPivot(api.Pivot o) { | 666 checkPivot(api.Pivot o) { | 
| 668   buildCounterPivot++; | 667   buildCounterPivot++; | 
| 669   if (buildCounterPivot < 3) { | 668   if (buildCounterPivot < 3) { | 
| 670     checkUnnamed227(o.dimensionFilterClauses); | 669     checkUnnamed222(o.dimensionFilterClauses); | 
| 671     checkUnnamed228(o.dimensions); | 670     checkUnnamed223(o.dimensions); | 
| 672     unittest.expect(o.maxGroupCount, unittest.equals(42)); | 671     unittest.expect(o.maxGroupCount, unittest.equals(42)); | 
| 673     checkUnnamed229(o.metrics); | 672     checkUnnamed224(o.metrics); | 
| 674     unittest.expect(o.startGroup, unittest.equals(42)); | 673     unittest.expect(o.startGroup, unittest.equals(42)); | 
| 675   } | 674   } | 
| 676   buildCounterPivot--; | 675   buildCounterPivot--; | 
| 677 } | 676 } | 
| 678 | 677 | 
| 679 buildUnnamed230() { | 678 buildUnnamed225() { | 
| 680   var o = new core.List<api.PivotHeaderEntry>(); | 679   var o = new core.List<api.PivotHeaderEntry>(); | 
| 681   o.add(buildPivotHeaderEntry()); | 680   o.add(buildPivotHeaderEntry()); | 
| 682   o.add(buildPivotHeaderEntry()); | 681   o.add(buildPivotHeaderEntry()); | 
| 683   return o; | 682   return o; | 
| 684 } | 683 } | 
| 685 | 684 | 
| 686 checkUnnamed230(core.List<api.PivotHeaderEntry> o) { | 685 checkUnnamed225(core.List<api.PivotHeaderEntry> o) { | 
| 687   unittest.expect(o, unittest.hasLength(2)); | 686   unittest.expect(o, unittest.hasLength(2)); | 
| 688   checkPivotHeaderEntry(o[0]); | 687   checkPivotHeaderEntry(o[0]); | 
| 689   checkPivotHeaderEntry(o[1]); | 688   checkPivotHeaderEntry(o[1]); | 
| 690 } | 689 } | 
| 691 | 690 | 
| 692 core.int buildCounterPivotHeader = 0; | 691 core.int buildCounterPivotHeader = 0; | 
| 693 buildPivotHeader() { | 692 buildPivotHeader() { | 
| 694   var o = new api.PivotHeader(); | 693   var o = new api.PivotHeader(); | 
| 695   buildCounterPivotHeader++; | 694   buildCounterPivotHeader++; | 
| 696   if (buildCounterPivotHeader < 3) { | 695   if (buildCounterPivotHeader < 3) { | 
| 697     o.pivotHeaderEntries = buildUnnamed230(); | 696     o.pivotHeaderEntries = buildUnnamed225(); | 
| 698     o.totalPivotGroupsCount = 42; | 697     o.totalPivotGroupsCount = 42; | 
| 699   } | 698   } | 
| 700   buildCounterPivotHeader--; | 699   buildCounterPivotHeader--; | 
| 701   return o; | 700   return o; | 
| 702 } | 701 } | 
| 703 | 702 | 
| 704 checkPivotHeader(api.PivotHeader o) { | 703 checkPivotHeader(api.PivotHeader o) { | 
| 705   buildCounterPivotHeader++; | 704   buildCounterPivotHeader++; | 
| 706   if (buildCounterPivotHeader < 3) { | 705   if (buildCounterPivotHeader < 3) { | 
| 707     checkUnnamed230(o.pivotHeaderEntries); | 706     checkUnnamed225(o.pivotHeaderEntries); | 
| 708     unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); | 707     unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); | 
| 709   } | 708   } | 
| 710   buildCounterPivotHeader--; | 709   buildCounterPivotHeader--; | 
| 711 } | 710 } | 
| 712 | 711 | 
| 713 buildUnnamed231() { | 712 buildUnnamed226() { | 
| 714   var o = new core.List<core.String>(); | 713   var o = new core.List<core.String>(); | 
| 715   o.add("foo"); | 714   o.add("foo"); | 
| 716   o.add("foo"); | 715   o.add("foo"); | 
| 717   return o; | 716   return o; | 
| 718 } | 717 } | 
| 719 | 718 | 
| 720 checkUnnamed231(core.List<core.String> o) { | 719 checkUnnamed226(core.List<core.String> o) { | 
| 721   unittest.expect(o, unittest.hasLength(2)); | 720   unittest.expect(o, unittest.hasLength(2)); | 
| 722   unittest.expect(o[0], unittest.equals('foo')); | 721   unittest.expect(o[0], unittest.equals('foo')); | 
| 723   unittest.expect(o[1], unittest.equals('foo')); | 722   unittest.expect(o[1], unittest.equals('foo')); | 
| 724 } | 723 } | 
| 725 | 724 | 
| 726 buildUnnamed232() { | 725 buildUnnamed227() { | 
| 727   var o = new core.List<core.String>(); | 726   var o = new core.List<core.String>(); | 
| 728   o.add("foo"); | 727   o.add("foo"); | 
| 729   o.add("foo"); | 728   o.add("foo"); | 
| 730   return o; | 729   return o; | 
| 731 } | 730 } | 
| 732 | 731 | 
| 733 checkUnnamed232(core.List<core.String> o) { | 732 checkUnnamed227(core.List<core.String> o) { | 
| 734   unittest.expect(o, unittest.hasLength(2)); | 733   unittest.expect(o, unittest.hasLength(2)); | 
| 735   unittest.expect(o[0], unittest.equals('foo')); | 734   unittest.expect(o[0], unittest.equals('foo')); | 
| 736   unittest.expect(o[1], unittest.equals('foo')); | 735   unittest.expect(o[1], unittest.equals('foo')); | 
| 737 } | 736 } | 
| 738 | 737 | 
| 739 core.int buildCounterPivotHeaderEntry = 0; | 738 core.int buildCounterPivotHeaderEntry = 0; | 
| 740 buildPivotHeaderEntry() { | 739 buildPivotHeaderEntry() { | 
| 741   var o = new api.PivotHeaderEntry(); | 740   var o = new api.PivotHeaderEntry(); | 
| 742   buildCounterPivotHeaderEntry++; | 741   buildCounterPivotHeaderEntry++; | 
| 743   if (buildCounterPivotHeaderEntry < 3) { | 742   if (buildCounterPivotHeaderEntry < 3) { | 
| 744     o.dimensionNames = buildUnnamed231(); | 743     o.dimensionNames = buildUnnamed226(); | 
| 745     o.dimensionValues = buildUnnamed232(); | 744     o.dimensionValues = buildUnnamed227(); | 
| 746     o.metric = buildMetricHeaderEntry(); | 745     o.metric = buildMetricHeaderEntry(); | 
| 747   } | 746   } | 
| 748   buildCounterPivotHeaderEntry--; | 747   buildCounterPivotHeaderEntry--; | 
| 749   return o; | 748   return o; | 
| 750 } | 749 } | 
| 751 | 750 | 
| 752 checkPivotHeaderEntry(api.PivotHeaderEntry o) { | 751 checkPivotHeaderEntry(api.PivotHeaderEntry o) { | 
| 753   buildCounterPivotHeaderEntry++; | 752   buildCounterPivotHeaderEntry++; | 
| 754   if (buildCounterPivotHeaderEntry < 3) { | 753   if (buildCounterPivotHeaderEntry < 3) { | 
| 755     checkUnnamed231(o.dimensionNames); | 754     checkUnnamed226(o.dimensionNames); | 
| 756     checkUnnamed232(o.dimensionValues); | 755     checkUnnamed227(o.dimensionValues); | 
| 757     checkMetricHeaderEntry(o.metric); | 756     checkMetricHeaderEntry(o.metric); | 
| 758   } | 757   } | 
| 759   buildCounterPivotHeaderEntry--; | 758   buildCounterPivotHeaderEntry--; | 
| 760 } | 759 } | 
| 761 | 760 | 
| 762 buildUnnamed233() { | 761 buildUnnamed228() { | 
| 763   var o = new core.List<core.String>(); | 762   var o = new core.List<core.String>(); | 
| 764   o.add("foo"); | 763   o.add("foo"); | 
| 765   o.add("foo"); | 764   o.add("foo"); | 
| 766   return o; | 765   return o; | 
| 767 } | 766 } | 
| 768 | 767 | 
| 769 checkUnnamed233(core.List<core.String> o) { | 768 checkUnnamed228(core.List<core.String> o) { | 
| 770   unittest.expect(o, unittest.hasLength(2)); | 769   unittest.expect(o, unittest.hasLength(2)); | 
| 771   unittest.expect(o[0], unittest.equals('foo')); | 770   unittest.expect(o[0], unittest.equals('foo')); | 
| 772   unittest.expect(o[1], unittest.equals('foo')); | 771   unittest.expect(o[1], unittest.equals('foo')); | 
| 773 } | 772 } | 
| 774 | 773 | 
| 775 core.int buildCounterPivotValueRegion = 0; | 774 core.int buildCounterPivotValueRegion = 0; | 
| 776 buildPivotValueRegion() { | 775 buildPivotValueRegion() { | 
| 777   var o = new api.PivotValueRegion(); | 776   var o = new api.PivotValueRegion(); | 
| 778   buildCounterPivotValueRegion++; | 777   buildCounterPivotValueRegion++; | 
| 779   if (buildCounterPivotValueRegion < 3) { | 778   if (buildCounterPivotValueRegion < 3) { | 
| 780     o.values = buildUnnamed233(); | 779     o.values = buildUnnamed228(); | 
| 781   } | 780   } | 
| 782   buildCounterPivotValueRegion--; | 781   buildCounterPivotValueRegion--; | 
| 783   return o; | 782   return o; | 
| 784 } | 783 } | 
| 785 | 784 | 
| 786 checkPivotValueRegion(api.PivotValueRegion o) { | 785 checkPivotValueRegion(api.PivotValueRegion o) { | 
| 787   buildCounterPivotValueRegion++; | 786   buildCounterPivotValueRegion++; | 
| 788   if (buildCounterPivotValueRegion < 3) { | 787   if (buildCounterPivotValueRegion < 3) { | 
| 789     checkUnnamed233(o.values); | 788     checkUnnamed228(o.values); | 
| 790   } | 789   } | 
| 791   buildCounterPivotValueRegion--; | 790   buildCounterPivotValueRegion--; | 
| 792 } | 791 } | 
| 793 | 792 | 
| 794 core.int buildCounterReport = 0; | 793 core.int buildCounterReport = 0; | 
| 795 buildReport() { | 794 buildReport() { | 
| 796   var o = new api.Report(); | 795   var o = new api.Report(); | 
| 797   buildCounterReport++; | 796   buildCounterReport++; | 
| 798   if (buildCounterReport < 3) { | 797   if (buildCounterReport < 3) { | 
| 799     o.columnHeader = buildColumnHeader(); | 798     o.columnHeader = buildColumnHeader(); | 
| 800     o.data = buildReportData(); | 799     o.data = buildReportData(); | 
| 801     o.nextPageToken = "foo"; | 800     o.nextPageToken = "foo"; | 
| 802   } | 801   } | 
| 803   buildCounterReport--; | 802   buildCounterReport--; | 
| 804   return o; | 803   return o; | 
| 805 } | 804 } | 
| 806 | 805 | 
| 807 checkReport(api.Report o) { | 806 checkReport(api.Report o) { | 
| 808   buildCounterReport++; | 807   buildCounterReport++; | 
| 809   if (buildCounterReport < 3) { | 808   if (buildCounterReport < 3) { | 
| 810     checkColumnHeader(o.columnHeader); | 809     checkColumnHeader(o.columnHeader); | 
| 811     checkReportData(o.data); | 810     checkReportData(o.data); | 
| 812     unittest.expect(o.nextPageToken, unittest.equals('foo')); | 811     unittest.expect(o.nextPageToken, unittest.equals('foo')); | 
| 813   } | 812   } | 
| 814   buildCounterReport--; | 813   buildCounterReport--; | 
| 815 } | 814 } | 
| 816 | 815 | 
|  | 816 buildUnnamed229() { | 
|  | 817   var o = new core.List<api.DateRangeValues>(); | 
|  | 818   o.add(buildDateRangeValues()); | 
|  | 819   o.add(buildDateRangeValues()); | 
|  | 820   return o; | 
|  | 821 } | 
|  | 822 | 
|  | 823 checkUnnamed229(core.List<api.DateRangeValues> o) { | 
|  | 824   unittest.expect(o, unittest.hasLength(2)); | 
|  | 825   checkDateRangeValues(o[0]); | 
|  | 826   checkDateRangeValues(o[1]); | 
|  | 827 } | 
|  | 828 | 
|  | 829 buildUnnamed230() { | 
|  | 830   var o = new core.List<api.DateRangeValues>(); | 
|  | 831   o.add(buildDateRangeValues()); | 
|  | 832   o.add(buildDateRangeValues()); | 
|  | 833   return o; | 
|  | 834 } | 
|  | 835 | 
|  | 836 checkUnnamed230(core.List<api.DateRangeValues> o) { | 
|  | 837   unittest.expect(o, unittest.hasLength(2)); | 
|  | 838   checkDateRangeValues(o[0]); | 
|  | 839   checkDateRangeValues(o[1]); | 
|  | 840 } | 
|  | 841 | 
|  | 842 buildUnnamed231() { | 
|  | 843   var o = new core.List<api.ReportRow>(); | 
|  | 844   o.add(buildReportRow()); | 
|  | 845   o.add(buildReportRow()); | 
|  | 846   return o; | 
|  | 847 } | 
|  | 848 | 
|  | 849 checkUnnamed231(core.List<api.ReportRow> o) { | 
|  | 850   unittest.expect(o, unittest.hasLength(2)); | 
|  | 851   checkReportRow(o[0]); | 
|  | 852   checkReportRow(o[1]); | 
|  | 853 } | 
|  | 854 | 
|  | 855 buildUnnamed232() { | 
|  | 856   var o = new core.List<core.String>(); | 
|  | 857   o.add("foo"); | 
|  | 858   o.add("foo"); | 
|  | 859   return o; | 
|  | 860 } | 
|  | 861 | 
|  | 862 checkUnnamed232(core.List<core.String> o) { | 
|  | 863   unittest.expect(o, unittest.hasLength(2)); | 
|  | 864   unittest.expect(o[0], unittest.equals('foo')); | 
|  | 865   unittest.expect(o[1], unittest.equals('foo')); | 
|  | 866 } | 
|  | 867 | 
|  | 868 buildUnnamed233() { | 
|  | 869   var o = new core.List<core.String>(); | 
|  | 870   o.add("foo"); | 
|  | 871   o.add("foo"); | 
|  | 872   return o; | 
|  | 873 } | 
|  | 874 | 
|  | 875 checkUnnamed233(core.List<core.String> o) { | 
|  | 876   unittest.expect(o, unittest.hasLength(2)); | 
|  | 877   unittest.expect(o[0], unittest.equals('foo')); | 
|  | 878   unittest.expect(o[1], unittest.equals('foo')); | 
|  | 879 } | 
|  | 880 | 
| 817 buildUnnamed234() { | 881 buildUnnamed234() { | 
| 818   var o = new core.List<api.DateRangeValues>(); | 882   var o = new core.List<api.DateRangeValues>(); | 
| 819   o.add(buildDateRangeValues()); | 883   o.add(buildDateRangeValues()); | 
| 820   o.add(buildDateRangeValues()); | 884   o.add(buildDateRangeValues()); | 
| 821   return o; | 885   return o; | 
| 822 } | 886 } | 
| 823 | 887 | 
| 824 checkUnnamed234(core.List<api.DateRangeValues> o) { | 888 checkUnnamed234(core.List<api.DateRangeValues> o) { | 
| 825   unittest.expect(o, unittest.hasLength(2)); | 889   unittest.expect(o, unittest.hasLength(2)); | 
| 826   checkDateRangeValues(o[0]); | 890   checkDateRangeValues(o[0]); | 
| 827   checkDateRangeValues(o[1]); | 891   checkDateRangeValues(o[1]); | 
| 828 } |  | 
| 829 |  | 
| 830 buildUnnamed235() { |  | 
| 831   var o = new core.List<api.DateRangeValues>(); |  | 
| 832   o.add(buildDateRangeValues()); |  | 
| 833   o.add(buildDateRangeValues()); |  | 
| 834   return o; |  | 
| 835 } |  | 
| 836 |  | 
| 837 checkUnnamed235(core.List<api.DateRangeValues> o) { |  | 
| 838   unittest.expect(o, unittest.hasLength(2)); |  | 
| 839   checkDateRangeValues(o[0]); |  | 
| 840   checkDateRangeValues(o[1]); |  | 
| 841 } |  | 
| 842 |  | 
| 843 buildUnnamed236() { |  | 
| 844   var o = new core.List<api.ReportRow>(); |  | 
| 845   o.add(buildReportRow()); |  | 
| 846   o.add(buildReportRow()); |  | 
| 847   return o; |  | 
| 848 } |  | 
| 849 |  | 
| 850 checkUnnamed236(core.List<api.ReportRow> o) { |  | 
| 851   unittest.expect(o, unittest.hasLength(2)); |  | 
| 852   checkReportRow(o[0]); |  | 
| 853   checkReportRow(o[1]); |  | 
| 854 } |  | 
| 855 |  | 
| 856 buildUnnamed237() { |  | 
| 857   var o = new core.List<core.String>(); |  | 
| 858   o.add("foo"); |  | 
| 859   o.add("foo"); |  | 
| 860   return o; |  | 
| 861 } |  | 
| 862 |  | 
| 863 checkUnnamed237(core.List<core.String> o) { |  | 
| 864   unittest.expect(o, unittest.hasLength(2)); |  | 
| 865   unittest.expect(o[0], unittest.equals('foo')); |  | 
| 866   unittest.expect(o[1], unittest.equals('foo')); |  | 
| 867 } |  | 
| 868 |  | 
| 869 buildUnnamed238() { |  | 
| 870   var o = new core.List<core.String>(); |  | 
| 871   o.add("foo"); |  | 
| 872   o.add("foo"); |  | 
| 873   return o; |  | 
| 874 } |  | 
| 875 |  | 
| 876 checkUnnamed238(core.List<core.String> o) { |  | 
| 877   unittest.expect(o, unittest.hasLength(2)); |  | 
| 878   unittest.expect(o[0], unittest.equals('foo')); |  | 
| 879   unittest.expect(o[1], unittest.equals('foo')); |  | 
| 880 } |  | 
| 881 |  | 
| 882 buildUnnamed239() { |  | 
| 883   var o = new core.List<api.DateRangeValues>(); |  | 
| 884   o.add(buildDateRangeValues()); |  | 
| 885   o.add(buildDateRangeValues()); |  | 
| 886   return o; |  | 
| 887 } |  | 
| 888 |  | 
| 889 checkUnnamed239(core.List<api.DateRangeValues> o) { |  | 
| 890   unittest.expect(o, unittest.hasLength(2)); |  | 
| 891   checkDateRangeValues(o[0]); |  | 
| 892   checkDateRangeValues(o[1]); |  | 
| 893 } | 892 } | 
| 894 | 893 | 
| 895 core.int buildCounterReportData = 0; | 894 core.int buildCounterReportData = 0; | 
| 896 buildReportData() { | 895 buildReportData() { | 
| 897   var o = new api.ReportData(); | 896   var o = new api.ReportData(); | 
| 898   buildCounterReportData++; | 897   buildCounterReportData++; | 
| 899   if (buildCounterReportData < 3) { | 898   if (buildCounterReportData < 3) { | 
| 900     o.dataLastRefreshed = "foo"; | 899     o.dataLastRefreshed = "foo"; | 
| 901     o.isDataGolden = true; | 900     o.isDataGolden = true; | 
| 902     o.maximums = buildUnnamed234(); | 901     o.maximums = buildUnnamed229(); | 
| 903     o.minimums = buildUnnamed235(); | 902     o.minimums = buildUnnamed230(); | 
| 904     o.rowCount = 42; | 903     o.rowCount = 42; | 
| 905     o.rows = buildUnnamed236(); | 904     o.rows = buildUnnamed231(); | 
| 906     o.samplesReadCounts = buildUnnamed237(); | 905     o.samplesReadCounts = buildUnnamed232(); | 
| 907     o.samplingSpaceSizes = buildUnnamed238(); | 906     o.samplingSpaceSizes = buildUnnamed233(); | 
| 908     o.totals = buildUnnamed239(); | 907     o.totals = buildUnnamed234(); | 
| 909   } | 908   } | 
| 910   buildCounterReportData--; | 909   buildCounterReportData--; | 
| 911   return o; | 910   return o; | 
| 912 } | 911 } | 
| 913 | 912 | 
| 914 checkReportData(api.ReportData o) { | 913 checkReportData(api.ReportData o) { | 
| 915   buildCounterReportData++; | 914   buildCounterReportData++; | 
| 916   if (buildCounterReportData < 3) { | 915   if (buildCounterReportData < 3) { | 
| 917     unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); | 916     unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); | 
| 918     unittest.expect(o.isDataGolden, unittest.isTrue); | 917     unittest.expect(o.isDataGolden, unittest.isTrue); | 
| 919     checkUnnamed234(o.maximums); | 918     checkUnnamed229(o.maximums); | 
| 920     checkUnnamed235(o.minimums); | 919     checkUnnamed230(o.minimums); | 
| 921     unittest.expect(o.rowCount, unittest.equals(42)); | 920     unittest.expect(o.rowCount, unittest.equals(42)); | 
| 922     checkUnnamed236(o.rows); | 921     checkUnnamed231(o.rows); | 
| 923     checkUnnamed237(o.samplesReadCounts); | 922     checkUnnamed232(o.samplesReadCounts); | 
| 924     checkUnnamed238(o.samplingSpaceSizes); | 923     checkUnnamed233(o.samplingSpaceSizes); | 
| 925     checkUnnamed239(o.totals); | 924     checkUnnamed234(o.totals); | 
| 926   } | 925   } | 
| 927   buildCounterReportData--; | 926   buildCounterReportData--; | 
| 928 } | 927 } | 
| 929 | 928 | 
| 930 buildUnnamed240() { | 929 buildUnnamed235() { | 
| 931   var o = new core.List<api.DateRange>(); | 930   var o = new core.List<api.DateRange>(); | 
| 932   o.add(buildDateRange()); | 931   o.add(buildDateRange()); | 
| 933   o.add(buildDateRange()); | 932   o.add(buildDateRange()); | 
| 934   return o; | 933   return o; | 
| 935 } | 934 } | 
| 936 | 935 | 
| 937 checkUnnamed240(core.List<api.DateRange> o) { | 936 checkUnnamed235(core.List<api.DateRange> o) { | 
| 938   unittest.expect(o, unittest.hasLength(2)); | 937   unittest.expect(o, unittest.hasLength(2)); | 
| 939   checkDateRange(o[0]); | 938   checkDateRange(o[0]); | 
| 940   checkDateRange(o[1]); | 939   checkDateRange(o[1]); | 
| 941 } | 940 } | 
| 942 | 941 | 
| 943 buildUnnamed241() { | 942 buildUnnamed236() { | 
| 944   var o = new core.List<api.DimensionFilterClause>(); | 943   var o = new core.List<api.DimensionFilterClause>(); | 
| 945   o.add(buildDimensionFilterClause()); | 944   o.add(buildDimensionFilterClause()); | 
| 946   o.add(buildDimensionFilterClause()); | 945   o.add(buildDimensionFilterClause()); | 
| 947   return o; | 946   return o; | 
| 948 } | 947 } | 
| 949 | 948 | 
| 950 checkUnnamed241(core.List<api.DimensionFilterClause> o) { | 949 checkUnnamed236(core.List<api.DimensionFilterClause> o) { | 
| 951   unittest.expect(o, unittest.hasLength(2)); | 950   unittest.expect(o, unittest.hasLength(2)); | 
| 952   checkDimensionFilterClause(o[0]); | 951   checkDimensionFilterClause(o[0]); | 
| 953   checkDimensionFilterClause(o[1]); | 952   checkDimensionFilterClause(o[1]); | 
| 954 } | 953 } | 
| 955 | 954 | 
| 956 buildUnnamed242() { | 955 buildUnnamed237() { | 
| 957   var o = new core.List<api.Dimension>(); | 956   var o = new core.List<api.Dimension>(); | 
| 958   o.add(buildDimension()); | 957   o.add(buildDimension()); | 
| 959   o.add(buildDimension()); | 958   o.add(buildDimension()); | 
| 960   return o; | 959   return o; | 
| 961 } | 960 } | 
| 962 | 961 | 
| 963 checkUnnamed242(core.List<api.Dimension> o) { | 962 checkUnnamed237(core.List<api.Dimension> o) { | 
| 964   unittest.expect(o, unittest.hasLength(2)); | 963   unittest.expect(o, unittest.hasLength(2)); | 
| 965   checkDimension(o[0]); | 964   checkDimension(o[0]); | 
| 966   checkDimension(o[1]); | 965   checkDimension(o[1]); | 
| 967 } | 966 } | 
| 968 | 967 | 
| 969 buildUnnamed243() { | 968 buildUnnamed238() { | 
| 970   var o = new core.List<api.MetricFilterClause>(); | 969   var o = new core.List<api.MetricFilterClause>(); | 
| 971   o.add(buildMetricFilterClause()); | 970   o.add(buildMetricFilterClause()); | 
| 972   o.add(buildMetricFilterClause()); | 971   o.add(buildMetricFilterClause()); | 
| 973   return o; | 972   return o; | 
| 974 } | 973 } | 
| 975 | 974 | 
| 976 checkUnnamed243(core.List<api.MetricFilterClause> o) { | 975 checkUnnamed238(core.List<api.MetricFilterClause> o) { | 
| 977   unittest.expect(o, unittest.hasLength(2)); | 976   unittest.expect(o, unittest.hasLength(2)); | 
| 978   checkMetricFilterClause(o[0]); | 977   checkMetricFilterClause(o[0]); | 
| 979   checkMetricFilterClause(o[1]); | 978   checkMetricFilterClause(o[1]); | 
| 980 } | 979 } | 
| 981 | 980 | 
| 982 buildUnnamed244() { | 981 buildUnnamed239() { | 
| 983   var o = new core.List<api.Metric>(); | 982   var o = new core.List<api.Metric>(); | 
| 984   o.add(buildMetric()); | 983   o.add(buildMetric()); | 
| 985   o.add(buildMetric()); | 984   o.add(buildMetric()); | 
| 986   return o; | 985   return o; | 
| 987 } | 986 } | 
| 988 | 987 | 
| 989 checkUnnamed244(core.List<api.Metric> o) { | 988 checkUnnamed239(core.List<api.Metric> o) { | 
| 990   unittest.expect(o, unittest.hasLength(2)); | 989   unittest.expect(o, unittest.hasLength(2)); | 
| 991   checkMetric(o[0]); | 990   checkMetric(o[0]); | 
| 992   checkMetric(o[1]); | 991   checkMetric(o[1]); | 
| 993 } | 992 } | 
| 994 | 993 | 
| 995 buildUnnamed245() { | 994 buildUnnamed240() { | 
| 996   var o = new core.List<api.OrderBy>(); | 995   var o = new core.List<api.OrderBy>(); | 
| 997   o.add(buildOrderBy()); | 996   o.add(buildOrderBy()); | 
| 998   o.add(buildOrderBy()); | 997   o.add(buildOrderBy()); | 
| 999   return o; | 998   return o; | 
| 1000 } | 999 } | 
| 1001 | 1000 | 
| 1002 checkUnnamed245(core.List<api.OrderBy> o) { | 1001 checkUnnamed240(core.List<api.OrderBy> o) { | 
| 1003   unittest.expect(o, unittest.hasLength(2)); | 1002   unittest.expect(o, unittest.hasLength(2)); | 
| 1004   checkOrderBy(o[0]); | 1003   checkOrderBy(o[0]); | 
| 1005   checkOrderBy(o[1]); | 1004   checkOrderBy(o[1]); | 
| 1006 } | 1005 } | 
| 1007 | 1006 | 
| 1008 buildUnnamed246() { | 1007 buildUnnamed241() { | 
| 1009   var o = new core.List<api.Pivot>(); | 1008   var o = new core.List<api.Pivot>(); | 
| 1010   o.add(buildPivot()); | 1009   o.add(buildPivot()); | 
| 1011   o.add(buildPivot()); | 1010   o.add(buildPivot()); | 
| 1012   return o; | 1011   return o; | 
| 1013 } | 1012 } | 
| 1014 | 1013 | 
| 1015 checkUnnamed246(core.List<api.Pivot> o) { | 1014 checkUnnamed241(core.List<api.Pivot> o) { | 
| 1016   unittest.expect(o, unittest.hasLength(2)); | 1015   unittest.expect(o, unittest.hasLength(2)); | 
| 1017   checkPivot(o[0]); | 1016   checkPivot(o[0]); | 
| 1018   checkPivot(o[1]); | 1017   checkPivot(o[1]); | 
| 1019 } | 1018 } | 
| 1020 | 1019 | 
| 1021 buildUnnamed247() { | 1020 buildUnnamed242() { | 
| 1022   var o = new core.List<api.Segment>(); | 1021   var o = new core.List<api.Segment>(); | 
| 1023   o.add(buildSegment()); | 1022   o.add(buildSegment()); | 
| 1024   o.add(buildSegment()); | 1023   o.add(buildSegment()); | 
| 1025   return o; | 1024   return o; | 
| 1026 } | 1025 } | 
| 1027 | 1026 | 
| 1028 checkUnnamed247(core.List<api.Segment> o) { | 1027 checkUnnamed242(core.List<api.Segment> o) { | 
| 1029   unittest.expect(o, unittest.hasLength(2)); | 1028   unittest.expect(o, unittest.hasLength(2)); | 
| 1030   checkSegment(o[0]); | 1029   checkSegment(o[0]); | 
| 1031   checkSegment(o[1]); | 1030   checkSegment(o[1]); | 
| 1032 } | 1031 } | 
| 1033 | 1032 | 
| 1034 core.int buildCounterReportRequest = 0; | 1033 core.int buildCounterReportRequest = 0; | 
| 1035 buildReportRequest() { | 1034 buildReportRequest() { | 
| 1036   var o = new api.ReportRequest(); | 1035   var o = new api.ReportRequest(); | 
| 1037   buildCounterReportRequest++; | 1036   buildCounterReportRequest++; | 
| 1038   if (buildCounterReportRequest < 3) { | 1037   if (buildCounterReportRequest < 3) { | 
| 1039     o.cohortGroup = buildCohortGroup(); | 1038     o.cohortGroup = buildCohortGroup(); | 
| 1040     o.dateRanges = buildUnnamed240(); | 1039     o.dateRanges = buildUnnamed235(); | 
| 1041     o.dimensionFilterClauses = buildUnnamed241(); | 1040     o.dimensionFilterClauses = buildUnnamed236(); | 
| 1042     o.dimensions = buildUnnamed242(); | 1041     o.dimensions = buildUnnamed237(); | 
| 1043     o.filtersExpression = "foo"; | 1042     o.filtersExpression = "foo"; | 
| 1044     o.hideTotals = true; | 1043     o.hideTotals = true; | 
| 1045     o.hideValueRanges = true; | 1044     o.hideValueRanges = true; | 
| 1046     o.includeEmptyRows = true; | 1045     o.includeEmptyRows = true; | 
| 1047     o.metricFilterClauses = buildUnnamed243(); | 1046     o.metricFilterClauses = buildUnnamed238(); | 
| 1048     o.metrics = buildUnnamed244(); | 1047     o.metrics = buildUnnamed239(); | 
| 1049     o.orderBys = buildUnnamed245(); | 1048     o.orderBys = buildUnnamed240(); | 
| 1050     o.pageSize = 42; | 1049     o.pageSize = 42; | 
| 1051     o.pageToken = "foo"; | 1050     o.pageToken = "foo"; | 
| 1052     o.pivots = buildUnnamed246(); | 1051     o.pivots = buildUnnamed241(); | 
| 1053     o.samplingLevel = "foo"; | 1052     o.samplingLevel = "foo"; | 
| 1054     o.segments = buildUnnamed247(); | 1053     o.segments = buildUnnamed242(); | 
| 1055     o.viewId = "foo"; | 1054     o.viewId = "foo"; | 
| 1056   } | 1055   } | 
| 1057   buildCounterReportRequest--; | 1056   buildCounterReportRequest--; | 
| 1058   return o; | 1057   return o; | 
| 1059 } | 1058 } | 
| 1060 | 1059 | 
| 1061 checkReportRequest(api.ReportRequest o) { | 1060 checkReportRequest(api.ReportRequest o) { | 
| 1062   buildCounterReportRequest++; | 1061   buildCounterReportRequest++; | 
| 1063   if (buildCounterReportRequest < 3) { | 1062   if (buildCounterReportRequest < 3) { | 
| 1064     checkCohortGroup(o.cohortGroup); | 1063     checkCohortGroup(o.cohortGroup); | 
| 1065     checkUnnamed240(o.dateRanges); | 1064     checkUnnamed235(o.dateRanges); | 
| 1066     checkUnnamed241(o.dimensionFilterClauses); | 1065     checkUnnamed236(o.dimensionFilterClauses); | 
| 1067     checkUnnamed242(o.dimensions); | 1066     checkUnnamed237(o.dimensions); | 
| 1068     unittest.expect(o.filtersExpression, unittest.equals('foo')); | 1067     unittest.expect(o.filtersExpression, unittest.equals('foo')); | 
| 1069     unittest.expect(o.hideTotals, unittest.isTrue); | 1068     unittest.expect(o.hideTotals, unittest.isTrue); | 
| 1070     unittest.expect(o.hideValueRanges, unittest.isTrue); | 1069     unittest.expect(o.hideValueRanges, unittest.isTrue); | 
| 1071     unittest.expect(o.includeEmptyRows, unittest.isTrue); | 1070     unittest.expect(o.includeEmptyRows, unittest.isTrue); | 
| 1072     checkUnnamed243(o.metricFilterClauses); | 1071     checkUnnamed238(o.metricFilterClauses); | 
| 1073     checkUnnamed244(o.metrics); | 1072     checkUnnamed239(o.metrics); | 
| 1074     checkUnnamed245(o.orderBys); | 1073     checkUnnamed240(o.orderBys); | 
| 1075     unittest.expect(o.pageSize, unittest.equals(42)); | 1074     unittest.expect(o.pageSize, unittest.equals(42)); | 
| 1076     unittest.expect(o.pageToken, unittest.equals('foo')); | 1075     unittest.expect(o.pageToken, unittest.equals('foo')); | 
| 1077     checkUnnamed246(o.pivots); | 1076     checkUnnamed241(o.pivots); | 
| 1078     unittest.expect(o.samplingLevel, unittest.equals('foo')); | 1077     unittest.expect(o.samplingLevel, unittest.equals('foo')); | 
| 1079     checkUnnamed247(o.segments); | 1078     checkUnnamed242(o.segments); | 
| 1080     unittest.expect(o.viewId, unittest.equals('foo')); | 1079     unittest.expect(o.viewId, unittest.equals('foo')); | 
| 1081   } | 1080   } | 
| 1082   buildCounterReportRequest--; | 1081   buildCounterReportRequest--; | 
| 1083 } | 1082 } | 
| 1084 | 1083 | 
| 1085 buildUnnamed248() { | 1084 buildUnnamed243() { | 
| 1086   var o = new core.List<core.String>(); | 1085   var o = new core.List<core.String>(); | 
| 1087   o.add("foo"); | 1086   o.add("foo"); | 
| 1088   o.add("foo"); | 1087   o.add("foo"); | 
| 1089   return o; | 1088   return o; | 
| 1090 } | 1089 } | 
| 1091 | 1090 | 
| 1092 checkUnnamed248(core.List<core.String> o) { | 1091 checkUnnamed243(core.List<core.String> o) { | 
| 1093   unittest.expect(o, unittest.hasLength(2)); | 1092   unittest.expect(o, unittest.hasLength(2)); | 
| 1094   unittest.expect(o[0], unittest.equals('foo')); | 1093   unittest.expect(o[0], unittest.equals('foo')); | 
| 1095   unittest.expect(o[1], unittest.equals('foo')); | 1094   unittest.expect(o[1], unittest.equals('foo')); | 
| 1096 } | 1095 } | 
| 1097 | 1096 | 
| 1098 buildUnnamed249() { | 1097 buildUnnamed244() { | 
| 1099   var o = new core.List<api.DateRangeValues>(); | 1098   var o = new core.List<api.DateRangeValues>(); | 
| 1100   o.add(buildDateRangeValues()); | 1099   o.add(buildDateRangeValues()); | 
| 1101   o.add(buildDateRangeValues()); | 1100   o.add(buildDateRangeValues()); | 
| 1102   return o; | 1101   return o; | 
| 1103 } | 1102 } | 
| 1104 | 1103 | 
| 1105 checkUnnamed249(core.List<api.DateRangeValues> o) { | 1104 checkUnnamed244(core.List<api.DateRangeValues> o) { | 
| 1106   unittest.expect(o, unittest.hasLength(2)); | 1105   unittest.expect(o, unittest.hasLength(2)); | 
| 1107   checkDateRangeValues(o[0]); | 1106   checkDateRangeValues(o[0]); | 
| 1108   checkDateRangeValues(o[1]); | 1107   checkDateRangeValues(o[1]); | 
| 1109 } | 1108 } | 
| 1110 | 1109 | 
| 1111 core.int buildCounterReportRow = 0; | 1110 core.int buildCounterReportRow = 0; | 
| 1112 buildReportRow() { | 1111 buildReportRow() { | 
| 1113   var o = new api.ReportRow(); | 1112   var o = new api.ReportRow(); | 
| 1114   buildCounterReportRow++; | 1113   buildCounterReportRow++; | 
| 1115   if (buildCounterReportRow < 3) { | 1114   if (buildCounterReportRow < 3) { | 
| 1116     o.dimensions = buildUnnamed248(); | 1115     o.dimensions = buildUnnamed243(); | 
| 1117     o.metrics = buildUnnamed249(); | 1116     o.metrics = buildUnnamed244(); | 
| 1118   } | 1117   } | 
| 1119   buildCounterReportRow--; | 1118   buildCounterReportRow--; | 
| 1120   return o; | 1119   return o; | 
| 1121 } | 1120 } | 
| 1122 | 1121 | 
| 1123 checkReportRow(api.ReportRow o) { | 1122 checkReportRow(api.ReportRow o) { | 
| 1124   buildCounterReportRow++; | 1123   buildCounterReportRow++; | 
| 1125   if (buildCounterReportRow < 3) { | 1124   if (buildCounterReportRow < 3) { | 
| 1126     checkUnnamed248(o.dimensions); | 1125     checkUnnamed243(o.dimensions); | 
| 1127     checkUnnamed249(o.metrics); | 1126     checkUnnamed244(o.metrics); | 
| 1128   } | 1127   } | 
| 1129   buildCounterReportRow--; | 1128   buildCounterReportRow--; | 
| 1130 } | 1129 } | 
| 1131 | 1130 | 
| 1132 core.int buildCounterSegment = 0; | 1131 core.int buildCounterSegment = 0; | 
| 1133 buildSegment() { | 1132 buildSegment() { | 
| 1134   var o = new api.Segment(); | 1133   var o = new api.Segment(); | 
| 1135   buildCounterSegment++; | 1134   buildCounterSegment++; | 
| 1136   if (buildCounterSegment < 3) { | 1135   if (buildCounterSegment < 3) { | 
| 1137     o.dynamicSegment = buildDynamicSegment(); | 1136     o.dynamicSegment = buildDynamicSegment(); | 
| 1138     o.segmentId = "foo"; | 1137     o.segmentId = "foo"; | 
| 1139   } | 1138   } | 
| 1140   buildCounterSegment--; | 1139   buildCounterSegment--; | 
| 1141   return o; | 1140   return o; | 
| 1142 } | 1141 } | 
| 1143 | 1142 | 
| 1144 checkSegment(api.Segment o) { | 1143 checkSegment(api.Segment o) { | 
| 1145   buildCounterSegment++; | 1144   buildCounterSegment++; | 
| 1146   if (buildCounterSegment < 3) { | 1145   if (buildCounterSegment < 3) { | 
| 1147     checkDynamicSegment(o.dynamicSegment); | 1146     checkDynamicSegment(o.dynamicSegment); | 
| 1148     unittest.expect(o.segmentId, unittest.equals('foo')); | 1147     unittest.expect(o.segmentId, unittest.equals('foo')); | 
| 1149   } | 1148   } | 
| 1150   buildCounterSegment--; | 1149   buildCounterSegment--; | 
| 1151 } | 1150 } | 
| 1152 | 1151 | 
| 1153 buildUnnamed250() { | 1152 buildUnnamed245() { | 
| 1154   var o = new core.List<api.SegmentFilter>(); | 1153   var o = new core.List<api.SegmentFilter>(); | 
| 1155   o.add(buildSegmentFilter()); | 1154   o.add(buildSegmentFilter()); | 
| 1156   o.add(buildSegmentFilter()); | 1155   o.add(buildSegmentFilter()); | 
| 1157   return o; | 1156   return o; | 
| 1158 } | 1157 } | 
| 1159 | 1158 | 
| 1160 checkUnnamed250(core.List<api.SegmentFilter> o) { | 1159 checkUnnamed245(core.List<api.SegmentFilter> o) { | 
| 1161   unittest.expect(o, unittest.hasLength(2)); | 1160   unittest.expect(o, unittest.hasLength(2)); | 
| 1162   checkSegmentFilter(o[0]); | 1161   checkSegmentFilter(o[0]); | 
| 1163   checkSegmentFilter(o[1]); | 1162   checkSegmentFilter(o[1]); | 
| 1164 } | 1163 } | 
| 1165 | 1164 | 
| 1166 core.int buildCounterSegmentDefinition = 0; | 1165 core.int buildCounterSegmentDefinition = 0; | 
| 1167 buildSegmentDefinition() { | 1166 buildSegmentDefinition() { | 
| 1168   var o = new api.SegmentDefinition(); | 1167   var o = new api.SegmentDefinition(); | 
| 1169   buildCounterSegmentDefinition++; | 1168   buildCounterSegmentDefinition++; | 
| 1170   if (buildCounterSegmentDefinition < 3) { | 1169   if (buildCounterSegmentDefinition < 3) { | 
| 1171     o.segmentFilters = buildUnnamed250(); | 1170     o.segmentFilters = buildUnnamed245(); | 
| 1172   } | 1171   } | 
| 1173   buildCounterSegmentDefinition--; | 1172   buildCounterSegmentDefinition--; | 
| 1174   return o; | 1173   return o; | 
| 1175 } | 1174 } | 
| 1176 | 1175 | 
| 1177 checkSegmentDefinition(api.SegmentDefinition o) { | 1176 checkSegmentDefinition(api.SegmentDefinition o) { | 
| 1178   buildCounterSegmentDefinition++; | 1177   buildCounterSegmentDefinition++; | 
| 1179   if (buildCounterSegmentDefinition < 3) { | 1178   if (buildCounterSegmentDefinition < 3) { | 
| 1180     checkUnnamed250(o.segmentFilters); | 1179     checkUnnamed245(o.segmentFilters); | 
| 1181   } | 1180   } | 
| 1182   buildCounterSegmentDefinition--; | 1181   buildCounterSegmentDefinition--; | 
| 1183 } | 1182 } | 
| 1184 | 1183 | 
| 1185 buildUnnamed251() { | 1184 buildUnnamed246() { | 
| 1186   var o = new core.List<core.String>(); | 1185   var o = new core.List<core.String>(); | 
| 1187   o.add("foo"); | 1186   o.add("foo"); | 
| 1188   o.add("foo"); | 1187   o.add("foo"); | 
| 1189   return o; | 1188   return o; | 
| 1190 } | 1189 } | 
| 1191 | 1190 | 
| 1192 checkUnnamed251(core.List<core.String> o) { | 1191 checkUnnamed246(core.List<core.String> o) { | 
| 1193   unittest.expect(o, unittest.hasLength(2)); | 1192   unittest.expect(o, unittest.hasLength(2)); | 
| 1194   unittest.expect(o[0], unittest.equals('foo')); | 1193   unittest.expect(o[0], unittest.equals('foo')); | 
| 1195   unittest.expect(o[1], unittest.equals('foo')); | 1194   unittest.expect(o[1], unittest.equals('foo')); | 
| 1196 } | 1195 } | 
| 1197 | 1196 | 
| 1198 core.int buildCounterSegmentDimensionFilter = 0; | 1197 core.int buildCounterSegmentDimensionFilter = 0; | 
| 1199 buildSegmentDimensionFilter() { | 1198 buildSegmentDimensionFilter() { | 
| 1200   var o = new api.SegmentDimensionFilter(); | 1199   var o = new api.SegmentDimensionFilter(); | 
| 1201   buildCounterSegmentDimensionFilter++; | 1200   buildCounterSegmentDimensionFilter++; | 
| 1202   if (buildCounterSegmentDimensionFilter < 3) { | 1201   if (buildCounterSegmentDimensionFilter < 3) { | 
| 1203     o.caseSensitive = true; | 1202     o.caseSensitive = true; | 
| 1204     o.dimensionName = "foo"; | 1203     o.dimensionName = "foo"; | 
| 1205     o.expressions = buildUnnamed251(); | 1204     o.expressions = buildUnnamed246(); | 
| 1206     o.maxComparisonValue = "foo"; | 1205     o.maxComparisonValue = "foo"; | 
| 1207     o.minComparisonValue = "foo"; | 1206     o.minComparisonValue = "foo"; | 
| 1208     o.operator = "foo"; | 1207     o.operator = "foo"; | 
| 1209   } | 1208   } | 
| 1210   buildCounterSegmentDimensionFilter--; | 1209   buildCounterSegmentDimensionFilter--; | 
| 1211   return o; | 1210   return o; | 
| 1212 } | 1211 } | 
| 1213 | 1212 | 
| 1214 checkSegmentDimensionFilter(api.SegmentDimensionFilter o) { | 1213 checkSegmentDimensionFilter(api.SegmentDimensionFilter o) { | 
| 1215   buildCounterSegmentDimensionFilter++; | 1214   buildCounterSegmentDimensionFilter++; | 
| 1216   if (buildCounterSegmentDimensionFilter < 3) { | 1215   if (buildCounterSegmentDimensionFilter < 3) { | 
| 1217     unittest.expect(o.caseSensitive, unittest.isTrue); | 1216     unittest.expect(o.caseSensitive, unittest.isTrue); | 
| 1218     unittest.expect(o.dimensionName, unittest.equals('foo')); | 1217     unittest.expect(o.dimensionName, unittest.equals('foo')); | 
| 1219     checkUnnamed251(o.expressions); | 1218     checkUnnamed246(o.expressions); | 
| 1220     unittest.expect(o.maxComparisonValue, unittest.equals('foo')); | 1219     unittest.expect(o.maxComparisonValue, unittest.equals('foo')); | 
| 1221     unittest.expect(o.minComparisonValue, unittest.equals('foo')); | 1220     unittest.expect(o.minComparisonValue, unittest.equals('foo')); | 
| 1222     unittest.expect(o.operator, unittest.equals('foo')); | 1221     unittest.expect(o.operator, unittest.equals('foo')); | 
| 1223   } | 1222   } | 
| 1224   buildCounterSegmentDimensionFilter--; | 1223   buildCounterSegmentDimensionFilter--; | 
| 1225 } | 1224 } | 
| 1226 | 1225 | 
| 1227 core.int buildCounterSegmentFilter = 0; | 1226 core.int buildCounterSegmentFilter = 0; | 
| 1228 buildSegmentFilter() { | 1227 buildSegmentFilter() { | 
| 1229   var o = new api.SegmentFilter(); | 1228   var o = new api.SegmentFilter(); | 
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1290   if (buildCounterSegmentMetricFilter < 3) { | 1289   if (buildCounterSegmentMetricFilter < 3) { | 
| 1291     unittest.expect(o.comparisonValue, unittest.equals('foo')); | 1290     unittest.expect(o.comparisonValue, unittest.equals('foo')); | 
| 1292     unittest.expect(o.maxComparisonValue, unittest.equals('foo')); | 1291     unittest.expect(o.maxComparisonValue, unittest.equals('foo')); | 
| 1293     unittest.expect(o.metricName, unittest.equals('foo')); | 1292     unittest.expect(o.metricName, unittest.equals('foo')); | 
| 1294     unittest.expect(o.operator, unittest.equals('foo')); | 1293     unittest.expect(o.operator, unittest.equals('foo')); | 
| 1295     unittest.expect(o.scope, unittest.equals('foo')); | 1294     unittest.expect(o.scope, unittest.equals('foo')); | 
| 1296   } | 1295   } | 
| 1297   buildCounterSegmentMetricFilter--; | 1296   buildCounterSegmentMetricFilter--; | 
| 1298 } | 1297 } | 
| 1299 | 1298 | 
| 1300 buildUnnamed252() { | 1299 buildUnnamed247() { | 
| 1301   var o = new core.List<api.OrFiltersForSegment>(); | 1300   var o = new core.List<api.OrFiltersForSegment>(); | 
| 1302   o.add(buildOrFiltersForSegment()); | 1301   o.add(buildOrFiltersForSegment()); | 
| 1303   o.add(buildOrFiltersForSegment()); | 1302   o.add(buildOrFiltersForSegment()); | 
| 1304   return o; | 1303   return o; | 
| 1305 } | 1304 } | 
| 1306 | 1305 | 
| 1307 checkUnnamed252(core.List<api.OrFiltersForSegment> o) { | 1306 checkUnnamed247(core.List<api.OrFiltersForSegment> o) { | 
| 1308   unittest.expect(o, unittest.hasLength(2)); | 1307   unittest.expect(o, unittest.hasLength(2)); | 
| 1309   checkOrFiltersForSegment(o[0]); | 1308   checkOrFiltersForSegment(o[0]); | 
| 1310   checkOrFiltersForSegment(o[1]); | 1309   checkOrFiltersForSegment(o[1]); | 
| 1311 } | 1310 } | 
| 1312 | 1311 | 
| 1313 core.int buildCounterSegmentSequenceStep = 0; | 1312 core.int buildCounterSegmentSequenceStep = 0; | 
| 1314 buildSegmentSequenceStep() { | 1313 buildSegmentSequenceStep() { | 
| 1315   var o = new api.SegmentSequenceStep(); | 1314   var o = new api.SegmentSequenceStep(); | 
| 1316   buildCounterSegmentSequenceStep++; | 1315   buildCounterSegmentSequenceStep++; | 
| 1317   if (buildCounterSegmentSequenceStep < 3) { | 1316   if (buildCounterSegmentSequenceStep < 3) { | 
| 1318     o.matchType = "foo"; | 1317     o.matchType = "foo"; | 
| 1319     o.orFiltersForSegment = buildUnnamed252(); | 1318     o.orFiltersForSegment = buildUnnamed247(); | 
| 1320   } | 1319   } | 
| 1321   buildCounterSegmentSequenceStep--; | 1320   buildCounterSegmentSequenceStep--; | 
| 1322   return o; | 1321   return o; | 
| 1323 } | 1322 } | 
| 1324 | 1323 | 
| 1325 checkSegmentSequenceStep(api.SegmentSequenceStep o) { | 1324 checkSegmentSequenceStep(api.SegmentSequenceStep o) { | 
| 1326   buildCounterSegmentSequenceStep++; | 1325   buildCounterSegmentSequenceStep++; | 
| 1327   if (buildCounterSegmentSequenceStep < 3) { | 1326   if (buildCounterSegmentSequenceStep < 3) { | 
| 1328     unittest.expect(o.matchType, unittest.equals('foo')); | 1327     unittest.expect(o.matchType, unittest.equals('foo')); | 
| 1329     checkUnnamed252(o.orFiltersForSegment); | 1328     checkUnnamed247(o.orFiltersForSegment); | 
| 1330   } | 1329   } | 
| 1331   buildCounterSegmentSequenceStep--; | 1330   buildCounterSegmentSequenceStep--; | 
| 1332 } | 1331 } | 
| 1333 | 1332 | 
| 1334 buildUnnamed253() { | 1333 buildUnnamed248() { | 
| 1335   var o = new core.List<api.SegmentSequenceStep>(); | 1334   var o = new core.List<api.SegmentSequenceStep>(); | 
| 1336   o.add(buildSegmentSequenceStep()); | 1335   o.add(buildSegmentSequenceStep()); | 
| 1337   o.add(buildSegmentSequenceStep()); | 1336   o.add(buildSegmentSequenceStep()); | 
| 1338   return o; | 1337   return o; | 
| 1339 } | 1338 } | 
| 1340 | 1339 | 
| 1341 checkUnnamed253(core.List<api.SegmentSequenceStep> o) { | 1340 checkUnnamed248(core.List<api.SegmentSequenceStep> o) { | 
| 1342   unittest.expect(o, unittest.hasLength(2)); | 1341   unittest.expect(o, unittest.hasLength(2)); | 
| 1343   checkSegmentSequenceStep(o[0]); | 1342   checkSegmentSequenceStep(o[0]); | 
| 1344   checkSegmentSequenceStep(o[1]); | 1343   checkSegmentSequenceStep(o[1]); | 
| 1345 } | 1344 } | 
| 1346 | 1345 | 
| 1347 core.int buildCounterSequenceSegment = 0; | 1346 core.int buildCounterSequenceSegment = 0; | 
| 1348 buildSequenceSegment() { | 1347 buildSequenceSegment() { | 
| 1349   var o = new api.SequenceSegment(); | 1348   var o = new api.SequenceSegment(); | 
| 1350   buildCounterSequenceSegment++; | 1349   buildCounterSequenceSegment++; | 
| 1351   if (buildCounterSequenceSegment < 3) { | 1350   if (buildCounterSequenceSegment < 3) { | 
| 1352     o.firstStepShouldMatchFirstHit = true; | 1351     o.firstStepShouldMatchFirstHit = true; | 
| 1353     o.segmentSequenceSteps = buildUnnamed253(); | 1352     o.segmentSequenceSteps = buildUnnamed248(); | 
| 1354   } | 1353   } | 
| 1355   buildCounterSequenceSegment--; | 1354   buildCounterSequenceSegment--; | 
| 1356   return o; | 1355   return o; | 
| 1357 } | 1356 } | 
| 1358 | 1357 | 
| 1359 checkSequenceSegment(api.SequenceSegment o) { | 1358 checkSequenceSegment(api.SequenceSegment o) { | 
| 1360   buildCounterSequenceSegment++; | 1359   buildCounterSequenceSegment++; | 
| 1361   if (buildCounterSequenceSegment < 3) { | 1360   if (buildCounterSequenceSegment < 3) { | 
| 1362     unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); | 1361     unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); | 
| 1363     checkUnnamed253(o.segmentSequenceSteps); | 1362     checkUnnamed248(o.segmentSequenceSteps); | 
| 1364   } | 1363   } | 
| 1365   buildCounterSequenceSegment--; | 1364   buildCounterSequenceSegment--; | 
| 1366 } | 1365 } | 
| 1367 | 1366 | 
| 1368 buildUnnamed254() { | 1367 buildUnnamed249() { | 
| 1369   var o = new core.List<api.OrFiltersForSegment>(); | 1368   var o = new core.List<api.OrFiltersForSegment>(); | 
| 1370   o.add(buildOrFiltersForSegment()); | 1369   o.add(buildOrFiltersForSegment()); | 
| 1371   o.add(buildOrFiltersForSegment()); | 1370   o.add(buildOrFiltersForSegment()); | 
| 1372   return o; | 1371   return o; | 
| 1373 } | 1372 } | 
| 1374 | 1373 | 
| 1375 checkUnnamed254(core.List<api.OrFiltersForSegment> o) { | 1374 checkUnnamed249(core.List<api.OrFiltersForSegment> o) { | 
| 1376   unittest.expect(o, unittest.hasLength(2)); | 1375   unittest.expect(o, unittest.hasLength(2)); | 
| 1377   checkOrFiltersForSegment(o[0]); | 1376   checkOrFiltersForSegment(o[0]); | 
| 1378   checkOrFiltersForSegment(o[1]); | 1377   checkOrFiltersForSegment(o[1]); | 
| 1379 } | 1378 } | 
| 1380 | 1379 | 
| 1381 core.int buildCounterSimpleSegment = 0; | 1380 core.int buildCounterSimpleSegment = 0; | 
| 1382 buildSimpleSegment() { | 1381 buildSimpleSegment() { | 
| 1383   var o = new api.SimpleSegment(); | 1382   var o = new api.SimpleSegment(); | 
| 1384   buildCounterSimpleSegment++; | 1383   buildCounterSimpleSegment++; | 
| 1385   if (buildCounterSimpleSegment < 3) { | 1384   if (buildCounterSimpleSegment < 3) { | 
| 1386     o.orFiltersForSegment = buildUnnamed254(); | 1385     o.orFiltersForSegment = buildUnnamed249(); | 
| 1387   } | 1386   } | 
| 1388   buildCounterSimpleSegment--; | 1387   buildCounterSimpleSegment--; | 
| 1389   return o; | 1388   return o; | 
| 1390 } | 1389 } | 
| 1391 | 1390 | 
| 1392 checkSimpleSegment(api.SimpleSegment o) { | 1391 checkSimpleSegment(api.SimpleSegment o) { | 
| 1393   buildCounterSimpleSegment++; | 1392   buildCounterSimpleSegment++; | 
| 1394   if (buildCounterSimpleSegment < 3) { | 1393   if (buildCounterSimpleSegment < 3) { | 
| 1395     checkUnnamed254(o.orFiltersForSegment); | 1394     checkUnnamed249(o.orFiltersForSegment); | 
| 1396   } | 1395   } | 
| 1397   buildCounterSimpleSegment--; | 1396   buildCounterSimpleSegment--; | 
| 1398 } | 1397 } | 
| 1399 | 1398 | 
| 1400 |  | 
| 1401 main() { | 1399 main() { | 
| 1402   unittest.group("obj-schema-Cohort", () { | 1400   unittest.group("obj-schema-Cohort", () { | 
| 1403     unittest.test("to-json--from-json", () { | 1401     unittest.test("to-json--from-json", () { | 
| 1404       var o = buildCohort(); | 1402       var o = buildCohort(); | 
| 1405       var od = new api.Cohort.fromJson(o.toJson()); | 1403       var od = new api.Cohort.fromJson(o.toJson()); | 
| 1406       checkCohort(od); | 1404       checkCohort(od); | 
| 1407     }); | 1405     }); | 
| 1408   }); | 1406   }); | 
| 1409 | 1407 | 
| 1410 |  | 
| 1411   unittest.group("obj-schema-CohortGroup", () { | 1408   unittest.group("obj-schema-CohortGroup", () { | 
| 1412     unittest.test("to-json--from-json", () { | 1409     unittest.test("to-json--from-json", () { | 
| 1413       var o = buildCohortGroup(); | 1410       var o = buildCohortGroup(); | 
| 1414       var od = new api.CohortGroup.fromJson(o.toJson()); | 1411       var od = new api.CohortGroup.fromJson(o.toJson()); | 
| 1415       checkCohortGroup(od); | 1412       checkCohortGroup(od); | 
| 1416     }); | 1413     }); | 
| 1417   }); | 1414   }); | 
| 1418 | 1415 | 
| 1419 |  | 
| 1420   unittest.group("obj-schema-ColumnHeader", () { | 1416   unittest.group("obj-schema-ColumnHeader", () { | 
| 1421     unittest.test("to-json--from-json", () { | 1417     unittest.test("to-json--from-json", () { | 
| 1422       var o = buildColumnHeader(); | 1418       var o = buildColumnHeader(); | 
| 1423       var od = new api.ColumnHeader.fromJson(o.toJson()); | 1419       var od = new api.ColumnHeader.fromJson(o.toJson()); | 
| 1424       checkColumnHeader(od); | 1420       checkColumnHeader(od); | 
| 1425     }); | 1421     }); | 
| 1426   }); | 1422   }); | 
| 1427 | 1423 | 
| 1428 |  | 
| 1429   unittest.group("obj-schema-DateRange", () { | 1424   unittest.group("obj-schema-DateRange", () { | 
| 1430     unittest.test("to-json--from-json", () { | 1425     unittest.test("to-json--from-json", () { | 
| 1431       var o = buildDateRange(); | 1426       var o = buildDateRange(); | 
| 1432       var od = new api.DateRange.fromJson(o.toJson()); | 1427       var od = new api.DateRange.fromJson(o.toJson()); | 
| 1433       checkDateRange(od); | 1428       checkDateRange(od); | 
| 1434     }); | 1429     }); | 
| 1435   }); | 1430   }); | 
| 1436 | 1431 | 
| 1437 |  | 
| 1438   unittest.group("obj-schema-DateRangeValues", () { | 1432   unittest.group("obj-schema-DateRangeValues", () { | 
| 1439     unittest.test("to-json--from-json", () { | 1433     unittest.test("to-json--from-json", () { | 
| 1440       var o = buildDateRangeValues(); | 1434       var o = buildDateRangeValues(); | 
| 1441       var od = new api.DateRangeValues.fromJson(o.toJson()); | 1435       var od = new api.DateRangeValues.fromJson(o.toJson()); | 
| 1442       checkDateRangeValues(od); | 1436       checkDateRangeValues(od); | 
| 1443     }); | 1437     }); | 
| 1444   }); | 1438   }); | 
| 1445 | 1439 | 
| 1446 |  | 
| 1447   unittest.group("obj-schema-Dimension", () { | 1440   unittest.group("obj-schema-Dimension", () { | 
| 1448     unittest.test("to-json--from-json", () { | 1441     unittest.test("to-json--from-json", () { | 
| 1449       var o = buildDimension(); | 1442       var o = buildDimension(); | 
| 1450       var od = new api.Dimension.fromJson(o.toJson()); | 1443       var od = new api.Dimension.fromJson(o.toJson()); | 
| 1451       checkDimension(od); | 1444       checkDimension(od); | 
| 1452     }); | 1445     }); | 
| 1453   }); | 1446   }); | 
| 1454 | 1447 | 
| 1455 |  | 
| 1456   unittest.group("obj-schema-DimensionFilter", () { | 1448   unittest.group("obj-schema-DimensionFilter", () { | 
| 1457     unittest.test("to-json--from-json", () { | 1449     unittest.test("to-json--from-json", () { | 
| 1458       var o = buildDimensionFilter(); | 1450       var o = buildDimensionFilter(); | 
| 1459       var od = new api.DimensionFilter.fromJson(o.toJson()); | 1451       var od = new api.DimensionFilter.fromJson(o.toJson()); | 
| 1460       checkDimensionFilter(od); | 1452       checkDimensionFilter(od); | 
| 1461     }); | 1453     }); | 
| 1462   }); | 1454   }); | 
| 1463 | 1455 | 
| 1464 |  | 
| 1465   unittest.group("obj-schema-DimensionFilterClause", () { | 1456   unittest.group("obj-schema-DimensionFilterClause", () { | 
| 1466     unittest.test("to-json--from-json", () { | 1457     unittest.test("to-json--from-json", () { | 
| 1467       var o = buildDimensionFilterClause(); | 1458       var o = buildDimensionFilterClause(); | 
| 1468       var od = new api.DimensionFilterClause.fromJson(o.toJson()); | 1459       var od = new api.DimensionFilterClause.fromJson(o.toJson()); | 
| 1469       checkDimensionFilterClause(od); | 1460       checkDimensionFilterClause(od); | 
| 1470     }); | 1461     }); | 
| 1471   }); | 1462   }); | 
| 1472 | 1463 | 
| 1473 |  | 
| 1474   unittest.group("obj-schema-DynamicSegment", () { | 1464   unittest.group("obj-schema-DynamicSegment", () { | 
| 1475     unittest.test("to-json--from-json", () { | 1465     unittest.test("to-json--from-json", () { | 
| 1476       var o = buildDynamicSegment(); | 1466       var o = buildDynamicSegment(); | 
| 1477       var od = new api.DynamicSegment.fromJson(o.toJson()); | 1467       var od = new api.DynamicSegment.fromJson(o.toJson()); | 
| 1478       checkDynamicSegment(od); | 1468       checkDynamicSegment(od); | 
| 1479     }); | 1469     }); | 
| 1480   }); | 1470   }); | 
| 1481 | 1471 | 
| 1482 |  | 
| 1483   unittest.group("obj-schema-GetReportsRequest", () { | 1472   unittest.group("obj-schema-GetReportsRequest", () { | 
| 1484     unittest.test("to-json--from-json", () { | 1473     unittest.test("to-json--from-json", () { | 
| 1485       var o = buildGetReportsRequest(); | 1474       var o = buildGetReportsRequest(); | 
| 1486       var od = new api.GetReportsRequest.fromJson(o.toJson()); | 1475       var od = new api.GetReportsRequest.fromJson(o.toJson()); | 
| 1487       checkGetReportsRequest(od); | 1476       checkGetReportsRequest(od); | 
| 1488     }); | 1477     }); | 
| 1489   }); | 1478   }); | 
| 1490 | 1479 | 
| 1491 |  | 
| 1492   unittest.group("obj-schema-GetReportsResponse", () { | 1480   unittest.group("obj-schema-GetReportsResponse", () { | 
| 1493     unittest.test("to-json--from-json", () { | 1481     unittest.test("to-json--from-json", () { | 
| 1494       var o = buildGetReportsResponse(); | 1482       var o = buildGetReportsResponse(); | 
| 1495       var od = new api.GetReportsResponse.fromJson(o.toJson()); | 1483       var od = new api.GetReportsResponse.fromJson(o.toJson()); | 
| 1496       checkGetReportsResponse(od); | 1484       checkGetReportsResponse(od); | 
| 1497     }); | 1485     }); | 
| 1498   }); | 1486   }); | 
| 1499 | 1487 | 
| 1500 |  | 
| 1501   unittest.group("obj-schema-Metric", () { | 1488   unittest.group("obj-schema-Metric", () { | 
| 1502     unittest.test("to-json--from-json", () { | 1489     unittest.test("to-json--from-json", () { | 
| 1503       var o = buildMetric(); | 1490       var o = buildMetric(); | 
| 1504       var od = new api.Metric.fromJson(o.toJson()); | 1491       var od = new api.Metric.fromJson(o.toJson()); | 
| 1505       checkMetric(od); | 1492       checkMetric(od); | 
| 1506     }); | 1493     }); | 
| 1507   }); | 1494   }); | 
| 1508 | 1495 | 
| 1509 |  | 
| 1510   unittest.group("obj-schema-MetricFilter", () { | 1496   unittest.group("obj-schema-MetricFilter", () { | 
| 1511     unittest.test("to-json--from-json", () { | 1497     unittest.test("to-json--from-json", () { | 
| 1512       var o = buildMetricFilter(); | 1498       var o = buildMetricFilter(); | 
| 1513       var od = new api.MetricFilter.fromJson(o.toJson()); | 1499       var od = new api.MetricFilter.fromJson(o.toJson()); | 
| 1514       checkMetricFilter(od); | 1500       checkMetricFilter(od); | 
| 1515     }); | 1501     }); | 
| 1516   }); | 1502   }); | 
| 1517 | 1503 | 
| 1518 |  | 
| 1519   unittest.group("obj-schema-MetricFilterClause", () { | 1504   unittest.group("obj-schema-MetricFilterClause", () { | 
| 1520     unittest.test("to-json--from-json", () { | 1505     unittest.test("to-json--from-json", () { | 
| 1521       var o = buildMetricFilterClause(); | 1506       var o = buildMetricFilterClause(); | 
| 1522       var od = new api.MetricFilterClause.fromJson(o.toJson()); | 1507       var od = new api.MetricFilterClause.fromJson(o.toJson()); | 
| 1523       checkMetricFilterClause(od); | 1508       checkMetricFilterClause(od); | 
| 1524     }); | 1509     }); | 
| 1525   }); | 1510   }); | 
| 1526 | 1511 | 
| 1527 |  | 
| 1528   unittest.group("obj-schema-MetricHeader", () { | 1512   unittest.group("obj-schema-MetricHeader", () { | 
| 1529     unittest.test("to-json--from-json", () { | 1513     unittest.test("to-json--from-json", () { | 
| 1530       var o = buildMetricHeader(); | 1514       var o = buildMetricHeader(); | 
| 1531       var od = new api.MetricHeader.fromJson(o.toJson()); | 1515       var od = new api.MetricHeader.fromJson(o.toJson()); | 
| 1532       checkMetricHeader(od); | 1516       checkMetricHeader(od); | 
| 1533     }); | 1517     }); | 
| 1534   }); | 1518   }); | 
| 1535 | 1519 | 
| 1536 |  | 
| 1537   unittest.group("obj-schema-MetricHeaderEntry", () { | 1520   unittest.group("obj-schema-MetricHeaderEntry", () { | 
| 1538     unittest.test("to-json--from-json", () { | 1521     unittest.test("to-json--from-json", () { | 
| 1539       var o = buildMetricHeaderEntry(); | 1522       var o = buildMetricHeaderEntry(); | 
| 1540       var od = new api.MetricHeaderEntry.fromJson(o.toJson()); | 1523       var od = new api.MetricHeaderEntry.fromJson(o.toJson()); | 
| 1541       checkMetricHeaderEntry(od); | 1524       checkMetricHeaderEntry(od); | 
| 1542     }); | 1525     }); | 
| 1543   }); | 1526   }); | 
| 1544 | 1527 | 
| 1545 |  | 
| 1546   unittest.group("obj-schema-OrFiltersForSegment", () { | 1528   unittest.group("obj-schema-OrFiltersForSegment", () { | 
| 1547     unittest.test("to-json--from-json", () { | 1529     unittest.test("to-json--from-json", () { | 
| 1548       var o = buildOrFiltersForSegment(); | 1530       var o = buildOrFiltersForSegment(); | 
| 1549       var od = new api.OrFiltersForSegment.fromJson(o.toJson()); | 1531       var od = new api.OrFiltersForSegment.fromJson(o.toJson()); | 
| 1550       checkOrFiltersForSegment(od); | 1532       checkOrFiltersForSegment(od); | 
| 1551     }); | 1533     }); | 
| 1552   }); | 1534   }); | 
| 1553 | 1535 | 
| 1554 |  | 
| 1555   unittest.group("obj-schema-OrderBy", () { | 1536   unittest.group("obj-schema-OrderBy", () { | 
| 1556     unittest.test("to-json--from-json", () { | 1537     unittest.test("to-json--from-json", () { | 
| 1557       var o = buildOrderBy(); | 1538       var o = buildOrderBy(); | 
| 1558       var od = new api.OrderBy.fromJson(o.toJson()); | 1539       var od = new api.OrderBy.fromJson(o.toJson()); | 
| 1559       checkOrderBy(od); | 1540       checkOrderBy(od); | 
| 1560     }); | 1541     }); | 
| 1561   }); | 1542   }); | 
| 1562 | 1543 | 
| 1563 |  | 
| 1564   unittest.group("obj-schema-Pivot", () { | 1544   unittest.group("obj-schema-Pivot", () { | 
| 1565     unittest.test("to-json--from-json", () { | 1545     unittest.test("to-json--from-json", () { | 
| 1566       var o = buildPivot(); | 1546       var o = buildPivot(); | 
| 1567       var od = new api.Pivot.fromJson(o.toJson()); | 1547       var od = new api.Pivot.fromJson(o.toJson()); | 
| 1568       checkPivot(od); | 1548       checkPivot(od); | 
| 1569     }); | 1549     }); | 
| 1570   }); | 1550   }); | 
| 1571 | 1551 | 
| 1572 |  | 
| 1573   unittest.group("obj-schema-PivotHeader", () { | 1552   unittest.group("obj-schema-PivotHeader", () { | 
| 1574     unittest.test("to-json--from-json", () { | 1553     unittest.test("to-json--from-json", () { | 
| 1575       var o = buildPivotHeader(); | 1554       var o = buildPivotHeader(); | 
| 1576       var od = new api.PivotHeader.fromJson(o.toJson()); | 1555       var od = new api.PivotHeader.fromJson(o.toJson()); | 
| 1577       checkPivotHeader(od); | 1556       checkPivotHeader(od); | 
| 1578     }); | 1557     }); | 
| 1579   }); | 1558   }); | 
| 1580 | 1559 | 
| 1581 |  | 
| 1582   unittest.group("obj-schema-PivotHeaderEntry", () { | 1560   unittest.group("obj-schema-PivotHeaderEntry", () { | 
| 1583     unittest.test("to-json--from-json", () { | 1561     unittest.test("to-json--from-json", () { | 
| 1584       var o = buildPivotHeaderEntry(); | 1562       var o = buildPivotHeaderEntry(); | 
| 1585       var od = new api.PivotHeaderEntry.fromJson(o.toJson()); | 1563       var od = new api.PivotHeaderEntry.fromJson(o.toJson()); | 
| 1586       checkPivotHeaderEntry(od); | 1564       checkPivotHeaderEntry(od); | 
| 1587     }); | 1565     }); | 
| 1588   }); | 1566   }); | 
| 1589 | 1567 | 
| 1590 |  | 
| 1591   unittest.group("obj-schema-PivotValueRegion", () { | 1568   unittest.group("obj-schema-PivotValueRegion", () { | 
| 1592     unittest.test("to-json--from-json", () { | 1569     unittest.test("to-json--from-json", () { | 
| 1593       var o = buildPivotValueRegion(); | 1570       var o = buildPivotValueRegion(); | 
| 1594       var od = new api.PivotValueRegion.fromJson(o.toJson()); | 1571       var od = new api.PivotValueRegion.fromJson(o.toJson()); | 
| 1595       checkPivotValueRegion(od); | 1572       checkPivotValueRegion(od); | 
| 1596     }); | 1573     }); | 
| 1597   }); | 1574   }); | 
| 1598 | 1575 | 
| 1599 |  | 
| 1600   unittest.group("obj-schema-Report", () { | 1576   unittest.group("obj-schema-Report", () { | 
| 1601     unittest.test("to-json--from-json", () { | 1577     unittest.test("to-json--from-json", () { | 
| 1602       var o = buildReport(); | 1578       var o = buildReport(); | 
| 1603       var od = new api.Report.fromJson(o.toJson()); | 1579       var od = new api.Report.fromJson(o.toJson()); | 
| 1604       checkReport(od); | 1580       checkReport(od); | 
| 1605     }); | 1581     }); | 
| 1606   }); | 1582   }); | 
| 1607 | 1583 | 
| 1608 |  | 
| 1609   unittest.group("obj-schema-ReportData", () { | 1584   unittest.group("obj-schema-ReportData", () { | 
| 1610     unittest.test("to-json--from-json", () { | 1585     unittest.test("to-json--from-json", () { | 
| 1611       var o = buildReportData(); | 1586       var o = buildReportData(); | 
| 1612       var od = new api.ReportData.fromJson(o.toJson()); | 1587       var od = new api.ReportData.fromJson(o.toJson()); | 
| 1613       checkReportData(od); | 1588       checkReportData(od); | 
| 1614     }); | 1589     }); | 
| 1615   }); | 1590   }); | 
| 1616 | 1591 | 
| 1617 |  | 
| 1618   unittest.group("obj-schema-ReportRequest", () { | 1592   unittest.group("obj-schema-ReportRequest", () { | 
| 1619     unittest.test("to-json--from-json", () { | 1593     unittest.test("to-json--from-json", () { | 
| 1620       var o = buildReportRequest(); | 1594       var o = buildReportRequest(); | 
| 1621       var od = new api.ReportRequest.fromJson(o.toJson()); | 1595       var od = new api.ReportRequest.fromJson(o.toJson()); | 
| 1622       checkReportRequest(od); | 1596       checkReportRequest(od); | 
| 1623     }); | 1597     }); | 
| 1624   }); | 1598   }); | 
| 1625 | 1599 | 
| 1626 |  | 
| 1627   unittest.group("obj-schema-ReportRow", () { | 1600   unittest.group("obj-schema-ReportRow", () { | 
| 1628     unittest.test("to-json--from-json", () { | 1601     unittest.test("to-json--from-json", () { | 
| 1629       var o = buildReportRow(); | 1602       var o = buildReportRow(); | 
| 1630       var od = new api.ReportRow.fromJson(o.toJson()); | 1603       var od = new api.ReportRow.fromJson(o.toJson()); | 
| 1631       checkReportRow(od); | 1604       checkReportRow(od); | 
| 1632     }); | 1605     }); | 
| 1633   }); | 1606   }); | 
| 1634 | 1607 | 
| 1635 |  | 
| 1636   unittest.group("obj-schema-Segment", () { | 1608   unittest.group("obj-schema-Segment", () { | 
| 1637     unittest.test("to-json--from-json", () { | 1609     unittest.test("to-json--from-json", () { | 
| 1638       var o = buildSegment(); | 1610       var o = buildSegment(); | 
| 1639       var od = new api.Segment.fromJson(o.toJson()); | 1611       var od = new api.Segment.fromJson(o.toJson()); | 
| 1640       checkSegment(od); | 1612       checkSegment(od); | 
| 1641     }); | 1613     }); | 
| 1642   }); | 1614   }); | 
| 1643 | 1615 | 
| 1644 |  | 
| 1645   unittest.group("obj-schema-SegmentDefinition", () { | 1616   unittest.group("obj-schema-SegmentDefinition", () { | 
| 1646     unittest.test("to-json--from-json", () { | 1617     unittest.test("to-json--from-json", () { | 
| 1647       var o = buildSegmentDefinition(); | 1618       var o = buildSegmentDefinition(); | 
| 1648       var od = new api.SegmentDefinition.fromJson(o.toJson()); | 1619       var od = new api.SegmentDefinition.fromJson(o.toJson()); | 
| 1649       checkSegmentDefinition(od); | 1620       checkSegmentDefinition(od); | 
| 1650     }); | 1621     }); | 
| 1651   }); | 1622   }); | 
| 1652 | 1623 | 
| 1653 |  | 
| 1654   unittest.group("obj-schema-SegmentDimensionFilter", () { | 1624   unittest.group("obj-schema-SegmentDimensionFilter", () { | 
| 1655     unittest.test("to-json--from-json", () { | 1625     unittest.test("to-json--from-json", () { | 
| 1656       var o = buildSegmentDimensionFilter(); | 1626       var o = buildSegmentDimensionFilter(); | 
| 1657       var od = new api.SegmentDimensionFilter.fromJson(o.toJson()); | 1627       var od = new api.SegmentDimensionFilter.fromJson(o.toJson()); | 
| 1658       checkSegmentDimensionFilter(od); | 1628       checkSegmentDimensionFilter(od); | 
| 1659     }); | 1629     }); | 
| 1660   }); | 1630   }); | 
| 1661 | 1631 | 
| 1662 |  | 
| 1663   unittest.group("obj-schema-SegmentFilter", () { | 1632   unittest.group("obj-schema-SegmentFilter", () { | 
| 1664     unittest.test("to-json--from-json", () { | 1633     unittest.test("to-json--from-json", () { | 
| 1665       var o = buildSegmentFilter(); | 1634       var o = buildSegmentFilter(); | 
| 1666       var od = new api.SegmentFilter.fromJson(o.toJson()); | 1635       var od = new api.SegmentFilter.fromJson(o.toJson()); | 
| 1667       checkSegmentFilter(od); | 1636       checkSegmentFilter(od); | 
| 1668     }); | 1637     }); | 
| 1669   }); | 1638   }); | 
| 1670 | 1639 | 
| 1671 |  | 
| 1672   unittest.group("obj-schema-SegmentFilterClause", () { | 1640   unittest.group("obj-schema-SegmentFilterClause", () { | 
| 1673     unittest.test("to-json--from-json", () { | 1641     unittest.test("to-json--from-json", () { | 
| 1674       var o = buildSegmentFilterClause(); | 1642       var o = buildSegmentFilterClause(); | 
| 1675       var od = new api.SegmentFilterClause.fromJson(o.toJson()); | 1643       var od = new api.SegmentFilterClause.fromJson(o.toJson()); | 
| 1676       checkSegmentFilterClause(od); | 1644       checkSegmentFilterClause(od); | 
| 1677     }); | 1645     }); | 
| 1678   }); | 1646   }); | 
| 1679 | 1647 | 
| 1680 |  | 
| 1681   unittest.group("obj-schema-SegmentMetricFilter", () { | 1648   unittest.group("obj-schema-SegmentMetricFilter", () { | 
| 1682     unittest.test("to-json--from-json", () { | 1649     unittest.test("to-json--from-json", () { | 
| 1683       var o = buildSegmentMetricFilter(); | 1650       var o = buildSegmentMetricFilter(); | 
| 1684       var od = new api.SegmentMetricFilter.fromJson(o.toJson()); | 1651       var od = new api.SegmentMetricFilter.fromJson(o.toJson()); | 
| 1685       checkSegmentMetricFilter(od); | 1652       checkSegmentMetricFilter(od); | 
| 1686     }); | 1653     }); | 
| 1687   }); | 1654   }); | 
| 1688 | 1655 | 
| 1689 |  | 
| 1690   unittest.group("obj-schema-SegmentSequenceStep", () { | 1656   unittest.group("obj-schema-SegmentSequenceStep", () { | 
| 1691     unittest.test("to-json--from-json", () { | 1657     unittest.test("to-json--from-json", () { | 
| 1692       var o = buildSegmentSequenceStep(); | 1658       var o = buildSegmentSequenceStep(); | 
| 1693       var od = new api.SegmentSequenceStep.fromJson(o.toJson()); | 1659       var od = new api.SegmentSequenceStep.fromJson(o.toJson()); | 
| 1694       checkSegmentSequenceStep(od); | 1660       checkSegmentSequenceStep(od); | 
| 1695     }); | 1661     }); | 
| 1696   }); | 1662   }); | 
| 1697 | 1663 | 
| 1698 |  | 
| 1699   unittest.group("obj-schema-SequenceSegment", () { | 1664   unittest.group("obj-schema-SequenceSegment", () { | 
| 1700     unittest.test("to-json--from-json", () { | 1665     unittest.test("to-json--from-json", () { | 
| 1701       var o = buildSequenceSegment(); | 1666       var o = buildSequenceSegment(); | 
| 1702       var od = new api.SequenceSegment.fromJson(o.toJson()); | 1667       var od = new api.SequenceSegment.fromJson(o.toJson()); | 
| 1703       checkSequenceSegment(od); | 1668       checkSequenceSegment(od); | 
| 1704     }); | 1669     }); | 
| 1705   }); | 1670   }); | 
| 1706 | 1671 | 
| 1707 |  | 
| 1708   unittest.group("obj-schema-SimpleSegment", () { | 1672   unittest.group("obj-schema-SimpleSegment", () { | 
| 1709     unittest.test("to-json--from-json", () { | 1673     unittest.test("to-json--from-json", () { | 
| 1710       var o = buildSimpleSegment(); | 1674       var o = buildSimpleSegment(); | 
| 1711       var od = new api.SimpleSegment.fromJson(o.toJson()); | 1675       var od = new api.SimpleSegment.fromJson(o.toJson()); | 
| 1712       checkSimpleSegment(od); | 1676       checkSimpleSegment(od); | 
| 1713     }); | 1677     }); | 
| 1714   }); | 1678   }); | 
| 1715 | 1679 | 
| 1716 |  | 
| 1717   unittest.group("resource-ReportsResourceApi", () { | 1680   unittest.group("resource-ReportsResourceApi", () { | 
| 1718     unittest.test("method--batchGet", () { | 1681     unittest.test("method--batchGet", () { | 
| 1719 |  | 
| 1720       var mock = new HttpServerMock(); | 1682       var mock = new HttpServerMock(); | 
| 1721       api.ReportsResourceApi res = new api.AnalyticsreportingApi(mock).reports; | 1683       api.ReportsResourceApi res = new api.AnalyticsreportingApi(mock).reports; | 
| 1722       var arg_request = buildGetReportsRequest(); | 1684       var arg_request = buildGetReportsRequest(); | 
| 1723       mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 1685       mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 
| 1724         var obj = new api.GetReportsRequest.fromJson(json); | 1686         var obj = new api.GetReportsRequest.fromJson(json); | 
| 1725         checkGetReportsRequest(obj); | 1687         checkGetReportsRequest(obj); | 
| 1726 | 1688 | 
| 1727         var path = (req.url).path; | 1689         var path = (req.url).path; | 
| 1728         var pathOffset = 0; | 1690         var pathOffset = 0; | 
| 1729         var index; | 1691         var index; | 
| 1730         var subPart; | 1692         var subPart; | 
| 1731         unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
      als("/")); | 1693         unittest.expect( | 
|  | 1694             path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); | 
| 1732         pathOffset += 1; | 1695         pathOffset += 1; | 
| 1733         unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
      uals("v4/reports:batchGet")); | 1696         unittest.expect(path.substring(pathOffset, pathOffset + 19), | 
|  | 1697             unittest.equals("v4/reports:batchGet")); | 
| 1734         pathOffset += 19; | 1698         pathOffset += 19; | 
| 1735 | 1699 | 
| 1736         var query = (req.url).query; | 1700         var query = (req.url).query; | 
| 1737         var queryOffset = 0; | 1701         var queryOffset = 0; | 
| 1738         var queryMap = {}; | 1702         var queryMap = {}; | 
| 1739         addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1703         addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 
| 1740         parseBool(n) { | 1704         parseBool(n) { | 
| 1741           if (n == "true") return true; | 1705           if (n == "true") return true; | 
| 1742           if (n == "false") return false; | 1706           if (n == "false") return false; | 
| 1743           if (n == null) return null; | 1707           if (n == null) return null; | 
| 1744           throw new core.ArgumentError("Invalid boolean: $n"); | 1708           throw new core.ArgumentError("Invalid boolean: $n"); | 
| 1745         } | 1709         } | 
|  | 1710 | 
| 1746         if (query.length > 0) { | 1711         if (query.length > 0) { | 
| 1747           for (var part in query.split("&")) { | 1712           for (var part in query.split("&")) { | 
| 1748             var keyvalue = part.split("="); | 1713             var keyvalue = part.split("="); | 
| 1749             addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
      ecodeQueryComponent(keyvalue[1])); | 1714             addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), | 
|  | 1715                 core.Uri.decodeQueryComponent(keyvalue[1])); | 
| 1750           } | 1716           } | 
| 1751         } | 1717         } | 
| 1752 | 1718 | 
| 1753 |  | 
| 1754         var h = { | 1719         var h = { | 
| 1755           "content-type" : "application/json; charset=utf-8", | 1720           "content-type": "application/json; charset=utf-8", | 
| 1756         }; | 1721         }; | 
| 1757         var resp = convert.JSON.encode(buildGetReportsResponse()); | 1722         var resp = convert.JSON.encode(buildGetReportsResponse()); | 
| 1758         return new async.Future.value(stringResponse(200, h, resp)); | 1723         return new async.Future.value(stringResponse(200, h, resp)); | 
| 1759       }), true); | 1724       }), true); | 
| 1760       res.batchGet(arg_request).then(unittest.expectAsync1(((api.GetReportsRespo
      nse response) { | 1725       res | 
|  | 1726           .batchGet(arg_request) | 
|  | 1727           .then(unittest.expectAsync1(((api.GetReportsResponse response) { | 
| 1761         checkGetReportsResponse(response); | 1728         checkGetReportsResponse(response); | 
| 1762       }))); | 1729       }))); | 
| 1763     }); | 1730     }); | 
| 1764 |  | 
| 1765   }); | 1731   }); | 
| 1766 |  | 
| 1767 |  | 
| 1768 } | 1732 } | 
| 1769 |  | 
| OLD | NEW | 
|---|