| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.tracing.v2; | 3 library googleapis.tracing.v2; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 /** | 106 /** |
| 107 * Returns of a list of traces that match the specified filter conditions. | 107 * Returns of a list of traces that match the specified filter conditions. |
| 108 * | 108 * |
| 109 * Request parameters: | 109 * Request parameters: |
| 110 * | 110 * |
| 111 * [parent] - ID of the Cloud project where the trace data is stored which is | 111 * [parent] - ID of the Cloud project where the trace data is stored which is |
| 112 * `projects/PROJECT_ID`. | 112 * `projects/PROJECT_ID`. |
| 113 * Value must have pattern "^projects/[^/]+$". | 113 * Value must have pattern "^projects/[^/]+$". |
| 114 * | 114 * |
| 115 * [orderBy] - Field used to sort the returned traces. Optional. |
| 116 * Can be one of the following: |
| 117 * |
| 118 * * `trace_id` |
| 119 * * `name` (`name` field of root span in the trace) |
| 120 * * `duration` (difference between `end_time` and `start_time` fields of |
| 121 * the root span) |
| 122 * * `start` (`start_time` field of the root span) |
| 123 * |
| 124 * Descending order can be specified by appending `desc` to the sort field |
| 125 * (for example, `name desc`). |
| 126 * |
| 127 * Only one sort field is permitted. |
| 128 * |
| 115 * [filter] - An optional filter for the request. | 129 * [filter] - An optional filter for the request. |
| 116 * Example: | 130 * Example: |
| 117 * `version_label_key:a some_label:some_label_key` | 131 * `version_label_key:a some_label:some_label_key` |
| 118 * returns traces from version `a` and has `some_label` with `some_label_key`. | 132 * returns traces from version `a` and has `some_label` with `some_label_key`. |
| 119 * | 133 * |
| 120 * [endTime] - End of the time interval (inclusive) during which the trace | 134 * [endTime] - End of the time interval (inclusive) during which the trace |
| 121 * data was | 135 * data was |
| 122 * collected from the application. | 136 * collected from the application. |
| 123 * | 137 * |
| 124 * [pageToken] - Token identifying the page of results to return. If provided, | 138 * [pageToken] - Token identifying the page of results to return. If provided, |
| 125 * use the | 139 * use the |
| 126 * value of the `next_page_token` field from a previous request. Optional. | 140 * value of the `next_page_token` field from a previous request. Optional. |
| 127 * | 141 * |
| 128 * [startTime] - Start of the time interval (inclusive) during which the trace | 142 * [startTime] - Start of the time interval (inclusive) during which the trace |
| 129 * data was | 143 * data was |
| 130 * collected from the application. | 144 * collected from the application. |
| 131 * | 145 * |
| 132 * [pageSize] - Maximum number of traces to return. If not specified or <= 0, | 146 * [pageSize] - Maximum number of traces to return. If not specified or <= 0, |
| 133 * the | 147 * the |
| 134 * implementation selects a reasonable value. The implementation may | 148 * implementation selects a reasonable value. The implementation may |
| 135 * return fewer traces than the requested page size. Optional. | 149 * return fewer traces than the requested page size. Optional. |
| 136 * | 150 * |
| 137 * [orderBy] - Field used to sort the returned traces. Optional. | |
| 138 * Can be one of the following: | |
| 139 * | |
| 140 * * `trace_id` | |
| 141 * * `name` (`name` field of root span in the trace) | |
| 142 * * `duration` (difference between `end_time` and `start_time` fields of | |
| 143 * the root span) | |
| 144 * * `start` (`start_time` field of the root span) | |
| 145 * | |
| 146 * Descending order can be specified by appending `desc` to the sort field | |
| 147 * (for example, `name desc`). | |
| 148 * | |
| 149 * Only one sort field is permitted. | |
| 150 * | |
| 151 * Completes with a [ListTracesResponse]. | 151 * Completes with a [ListTracesResponse]. |
| 152 * | 152 * |
| 153 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 153 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 154 * error. | 154 * error. |
| 155 * | 155 * |
| 156 * If the used [http.Client] completes with an error when making a REST call, | 156 * If the used [http.Client] completes with an error when making a REST call, |
| 157 * this method will complete with the same error. | 157 * this method will complete with the same error. |
| 158 */ | 158 */ |
| 159 async.Future<ListTracesResponse> list(core.String parent, {core.String filter,
core.String endTime, core.String pageToken, core.String startTime, core.int pag
eSize, core.String orderBy}) { | 159 async.Future<ListTracesResponse> list(core.String parent, {core.String orderBy
, core.String filter, core.String endTime, core.String pageToken, core.String st
artTime, core.int pageSize}) { |
| 160 var _url = null; | 160 var _url = null; |
| 161 var _queryParams = new core.Map(); | 161 var _queryParams = new core.Map(); |
| 162 var _uploadMedia = null; | 162 var _uploadMedia = null; |
| 163 var _uploadOptions = null; | 163 var _uploadOptions = null; |
| 164 var _downloadOptions = commons.DownloadOptions.Metadata; | 164 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 165 var _body = null; | 165 var _body = null; |
| 166 | 166 |
| 167 if (parent == null) { | 167 if (parent == null) { |
| 168 throw new core.ArgumentError("Parameter parent is required."); | 168 throw new core.ArgumentError("Parameter parent is required."); |
| 169 } | 169 } |
| 170 if (orderBy != null) { |
| 171 _queryParams["orderBy"] = [orderBy]; |
| 172 } |
| 170 if (filter != null) { | 173 if (filter != null) { |
| 171 _queryParams["filter"] = [filter]; | 174 _queryParams["filter"] = [filter]; |
| 172 } | 175 } |
| 173 if (endTime != null) { | 176 if (endTime != null) { |
| 174 _queryParams["endTime"] = [endTime]; | 177 _queryParams["endTime"] = [endTime]; |
| 175 } | 178 } |
| 176 if (pageToken != null) { | 179 if (pageToken != null) { |
| 177 _queryParams["pageToken"] = [pageToken]; | 180 _queryParams["pageToken"] = [pageToken]; |
| 178 } | 181 } |
| 179 if (startTime != null) { | 182 if (startTime != null) { |
| 180 _queryParams["startTime"] = [startTime]; | 183 _queryParams["startTime"] = [startTime]; |
| 181 } | 184 } |
| 182 if (pageSize != null) { | 185 if (pageSize != null) { |
| 183 _queryParams["pageSize"] = ["${pageSize}"]; | 186 _queryParams["pageSize"] = ["${pageSize}"]; |
| 184 } | 187 } |
| 185 if (orderBy != null) { | |
| 186 _queryParams["orderBy"] = [orderBy]; | |
| 187 } | |
| 188 | 188 |
| 189 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/traces'; | 189 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/traces'; |
| 190 | 190 |
| 191 var _response = _requester.request(_url, | 191 var _response = _requester.request(_url, |
| 192 "GET", | 192 "GET", |
| 193 body: _body, | 193 body: _body, |
| 194 queryParams: _queryParams, | 194 queryParams: _queryParams, |
| 195 uploadOptions: _uploadOptions, | 195 uploadOptions: _uploadOptions, |
| 196 uploadMedia: _uploadMedia, | 196 uploadMedia: _uploadMedia, |
| 197 downloadOptions: _downloadOptions); | 197 downloadOptions: _downloadOptions); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 | 330 |
| 331 Annotation.fromJson(core.Map _json) { | 331 Annotation.fromJson(core.Map _json) { |
| 332 if (_json.containsKey("attributes")) { | 332 if (_json.containsKey("attributes")) { |
| 333 attributes = new Attributes.fromJson(_json["attributes"]); | 333 attributes = new Attributes.fromJson(_json["attributes"]); |
| 334 } | 334 } |
| 335 if (_json.containsKey("description")) { | 335 if (_json.containsKey("description")) { |
| 336 description = new TruncatableString.fromJson(_json["description"]); | 336 description = new TruncatableString.fromJson(_json["description"]); |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 | 339 |
| 340 core.Map toJson() { | 340 core.Map<core.String, core.Object> toJson() { |
| 341 var _json = new core.Map(); | 341 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 342 if (attributes != null) { | 342 if (attributes != null) { |
| 343 _json["attributes"] = (attributes).toJson(); | 343 _json["attributes"] = (attributes).toJson(); |
| 344 } | 344 } |
| 345 if (description != null) { | 345 if (description != null) { |
| 346 _json["description"] = (description).toJson(); | 346 _json["description"] = (description).toJson(); |
| 347 } | 347 } |
| 348 return _json; | 348 return _json; |
| 349 } | 349 } |
| 350 } | 350 } |
| 351 | 351 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 365 boolValue = _json["boolValue"]; | 365 boolValue = _json["boolValue"]; |
| 366 } | 366 } |
| 367 if (_json.containsKey("intValue")) { | 367 if (_json.containsKey("intValue")) { |
| 368 intValue = _json["intValue"]; | 368 intValue = _json["intValue"]; |
| 369 } | 369 } |
| 370 if (_json.containsKey("stringValue")) { | 370 if (_json.containsKey("stringValue")) { |
| 371 stringValue = new TruncatableString.fromJson(_json["stringValue"]); | 371 stringValue = new TruncatableString.fromJson(_json["stringValue"]); |
| 372 } | 372 } |
| 373 } | 373 } |
| 374 | 374 |
| 375 core.Map toJson() { | 375 core.Map<core.String, core.Object> toJson() { |
| 376 var _json = new core.Map(); | 376 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 377 if (boolValue != null) { | 377 if (boolValue != null) { |
| 378 _json["boolValue"] = boolValue; | 378 _json["boolValue"] = boolValue; |
| 379 } | 379 } |
| 380 if (intValue != null) { | 380 if (intValue != null) { |
| 381 _json["intValue"] = intValue; | 381 _json["intValue"] = intValue; |
| 382 } | 382 } |
| 383 if (stringValue != null) { | 383 if (stringValue != null) { |
| 384 _json["stringValue"] = (stringValue).toJson(); | 384 _json["stringValue"] = (stringValue).toJson(); |
| 385 } | 385 } |
| 386 return _json; | 386 return _json; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 409 /** | 409 /** |
| 410 * The number of dropped attributes after the maximum size was enforced. If | 410 * The number of dropped attributes after the maximum size was enforced. If |
| 411 * 0 then no attributes were dropped. | 411 * 0 then no attributes were dropped. |
| 412 */ | 412 */ |
| 413 core.int droppedAttributesCount; | 413 core.int droppedAttributesCount; |
| 414 | 414 |
| 415 Attributes(); | 415 Attributes(); |
| 416 | 416 |
| 417 Attributes.fromJson(core.Map _json) { | 417 Attributes.fromJson(core.Map _json) { |
| 418 if (_json.containsKey("attributeMap")) { | 418 if (_json.containsKey("attributeMap")) { |
| 419 attributeMap = commons.mapMap(_json["attributeMap"], (item) => new Attribu
teValue.fromJson(item)); | 419 attributeMap = commons.mapMap<core.Map<core.String, core.Object>, Attribut
eValue>(_json["attributeMap"], (core.Map<core.String, core.Object> item) => new
AttributeValue.fromJson(item)); |
| 420 } | 420 } |
| 421 if (_json.containsKey("droppedAttributesCount")) { | 421 if (_json.containsKey("droppedAttributesCount")) { |
| 422 droppedAttributesCount = _json["droppedAttributesCount"]; | 422 droppedAttributesCount = _json["droppedAttributesCount"]; |
| 423 } | 423 } |
| 424 } | 424 } |
| 425 | 425 |
| 426 core.Map toJson() { | 426 core.Map<core.String, core.Object> toJson() { |
| 427 var _json = new core.Map(); | 427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 428 if (attributeMap != null) { | 428 if (attributeMap != null) { |
| 429 _json["attributeMap"] = commons.mapMap(attributeMap, (item) => (item).toJs
on()); | 429 _json["attributeMap"] = commons.mapMap<AttributeValue, core.Map<core.Strin
g, core.Object>>(attributeMap, (AttributeValue item) => (item).toJson()); |
| 430 } | 430 } |
| 431 if (droppedAttributesCount != null) { | 431 if (droppedAttributesCount != null) { |
| 432 _json["droppedAttributesCount"] = droppedAttributesCount; | 432 _json["droppedAttributesCount"] = droppedAttributesCount; |
| 433 } | 433 } |
| 434 return _json; | 434 return _json; |
| 435 } | 435 } |
| 436 } | 436 } |
| 437 | 437 |
| 438 /** The request message for the `BatchWriteSpans` method. */ | 438 /** The request message for the `BatchWriteSpans` method. */ |
| 439 class BatchWriteSpansRequest { | 439 class BatchWriteSpansRequest { |
| 440 /** A collection of spans. */ | 440 /** A collection of spans. */ |
| 441 core.List<Span> spans; | 441 core.List<Span> spans; |
| 442 | 442 |
| 443 BatchWriteSpansRequest(); | 443 BatchWriteSpansRequest(); |
| 444 | 444 |
| 445 BatchWriteSpansRequest.fromJson(core.Map _json) { | 445 BatchWriteSpansRequest.fromJson(core.Map _json) { |
| 446 if (_json.containsKey("spans")) { | 446 if (_json.containsKey("spans")) { |
| 447 spans = _json["spans"].map((value) => new Span.fromJson(value)).toList(); | 447 spans = _json["spans"].map((value) => new Span.fromJson(value)).toList(); |
| 448 } | 448 } |
| 449 } | 449 } |
| 450 | 450 |
| 451 core.Map toJson() { | 451 core.Map<core.String, core.Object> toJson() { |
| 452 var _json = new core.Map(); | 452 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 453 if (spans != null) { | 453 if (spans != null) { |
| 454 _json["spans"] = spans.map((value) => (value).toJson()).toList(); | 454 _json["spans"] = spans.map((value) => (value).toJson()).toList(); |
| 455 } | 455 } |
| 456 return _json; | 456 return _json; |
| 457 } | 457 } |
| 458 } | 458 } |
| 459 | 459 |
| 460 /** | 460 /** |
| 461 * A generic empty message that you can re-use to avoid defining duplicated | 461 * A generic empty message that you can re-use to avoid defining duplicated |
| 462 * empty messages in your APIs. A typical example is to use it as the request | 462 * empty messages in your APIs. A typical example is to use it as the request |
| 463 * or the response type of an API method. For instance: | 463 * or the response type of an API method. For instance: |
| 464 * | 464 * |
| 465 * service Foo { | 465 * service Foo { |
| 466 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 466 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 467 * } | 467 * } |
| 468 * | 468 * |
| 469 * The JSON representation for `Empty` is empty JSON object `{}`. | 469 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 470 */ | 470 */ |
| 471 class Empty { | 471 class Empty { |
| 472 | 472 |
| 473 Empty(); | 473 Empty(); |
| 474 | 474 |
| 475 Empty.fromJson(core.Map _json) { | 475 Empty.fromJson(core.Map _json) { |
| 476 } | 476 } |
| 477 | 477 |
| 478 core.Map toJson() { | 478 core.Map<core.String, core.Object> toJson() { |
| 479 var _json = new core.Map(); | 479 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 480 return _json; | 480 return _json; |
| 481 } | 481 } |
| 482 } | 482 } |
| 483 | 483 |
| 484 /** | 484 /** |
| 485 * A pointer from this span to another span in a different `Trace` within | 485 * A pointer from this span to another span in a different `Trace` within |
| 486 * the same service project or within a different service project. Used | 486 * the same service project or within a different service project. Used |
| 487 * (for example) in batching operations, where a single batch handler | 487 * (for example) in batching operations, where a single batch handler |
| 488 * processes multiple requests from different traces or when receives a | 488 * processes multiple requests from different traces or when receives a |
| 489 * request from a different service project. | 489 * request from a different service project. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 517 spanId = _json["spanId"]; | 517 spanId = _json["spanId"]; |
| 518 } | 518 } |
| 519 if (_json.containsKey("traceId")) { | 519 if (_json.containsKey("traceId")) { |
| 520 traceId = _json["traceId"]; | 520 traceId = _json["traceId"]; |
| 521 } | 521 } |
| 522 if (_json.containsKey("type")) { | 522 if (_json.containsKey("type")) { |
| 523 type = _json["type"]; | 523 type = _json["type"]; |
| 524 } | 524 } |
| 525 } | 525 } |
| 526 | 526 |
| 527 core.Map toJson() { | 527 core.Map<core.String, core.Object> toJson() { |
| 528 var _json = new core.Map(); | 528 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 529 if (spanId != null) { | 529 if (spanId != null) { |
| 530 _json["spanId"] = spanId; | 530 _json["spanId"] = spanId; |
| 531 } | 531 } |
| 532 if (traceId != null) { | 532 if (traceId != null) { |
| 533 _json["traceId"] = traceId; | 533 _json["traceId"] = traceId; |
| 534 } | 534 } |
| 535 if (type != null) { | 535 if (type != null) { |
| 536 _json["type"] = type; | 536 _json["type"] = type; |
| 537 } | 537 } |
| 538 return _json; | 538 return _json; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 556 | 556 |
| 557 Links.fromJson(core.Map _json) { | 557 Links.fromJson(core.Map _json) { |
| 558 if (_json.containsKey("droppedLinksCount")) { | 558 if (_json.containsKey("droppedLinksCount")) { |
| 559 droppedLinksCount = _json["droppedLinksCount"]; | 559 droppedLinksCount = _json["droppedLinksCount"]; |
| 560 } | 560 } |
| 561 if (_json.containsKey("link")) { | 561 if (_json.containsKey("link")) { |
| 562 link = _json["link"].map((value) => new Link.fromJson(value)).toList(); | 562 link = _json["link"].map((value) => new Link.fromJson(value)).toList(); |
| 563 } | 563 } |
| 564 } | 564 } |
| 565 | 565 |
| 566 core.Map toJson() { | 566 core.Map<core.String, core.Object> toJson() { |
| 567 var _json = new core.Map(); | 567 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 568 if (droppedLinksCount != null) { | 568 if (droppedLinksCount != null) { |
| 569 _json["droppedLinksCount"] = droppedLinksCount; | 569 _json["droppedLinksCount"] = droppedLinksCount; |
| 570 } | 570 } |
| 571 if (link != null) { | 571 if (link != null) { |
| 572 _json["link"] = link.map((value) => (value).toJson()).toList(); | 572 _json["link"] = link.map((value) => (value).toJson()).toList(); |
| 573 } | 573 } |
| 574 return _json; | 574 return _json; |
| 575 } | 575 } |
| 576 } | 576 } |
| 577 | 577 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 590 | 590 |
| 591 ListSpansResponse.fromJson(core.Map _json) { | 591 ListSpansResponse.fromJson(core.Map _json) { |
| 592 if (_json.containsKey("nextPageToken")) { | 592 if (_json.containsKey("nextPageToken")) { |
| 593 nextPageToken = _json["nextPageToken"]; | 593 nextPageToken = _json["nextPageToken"]; |
| 594 } | 594 } |
| 595 if (_json.containsKey("spans")) { | 595 if (_json.containsKey("spans")) { |
| 596 spans = _json["spans"].map((value) => new Span.fromJson(value)).toList(); | 596 spans = _json["spans"].map((value) => new Span.fromJson(value)).toList(); |
| 597 } | 597 } |
| 598 } | 598 } |
| 599 | 599 |
| 600 core.Map toJson() { | 600 core.Map<core.String, core.Object> toJson() { |
| 601 var _json = new core.Map(); | 601 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 602 if (nextPageToken != null) { | 602 if (nextPageToken != null) { |
| 603 _json["nextPageToken"] = nextPageToken; | 603 _json["nextPageToken"] = nextPageToken; |
| 604 } | 604 } |
| 605 if (spans != null) { | 605 if (spans != null) { |
| 606 _json["spans"] = spans.map((value) => (value).toJson()).toList(); | 606 _json["spans"] = spans.map((value) => (value).toJson()).toList(); |
| 607 } | 607 } |
| 608 return _json; | 608 return _json; |
| 609 } | 609 } |
| 610 } | 610 } |
| 611 | 611 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 624 | 624 |
| 625 ListTracesResponse.fromJson(core.Map _json) { | 625 ListTracesResponse.fromJson(core.Map _json) { |
| 626 if (_json.containsKey("nextPageToken")) { | 626 if (_json.containsKey("nextPageToken")) { |
| 627 nextPageToken = _json["nextPageToken"]; | 627 nextPageToken = _json["nextPageToken"]; |
| 628 } | 628 } |
| 629 if (_json.containsKey("traces")) { | 629 if (_json.containsKey("traces")) { |
| 630 traces = _json["traces"].map((value) => new Trace.fromJson(value)).toList(
); | 630 traces = _json["traces"].map((value) => new Trace.fromJson(value)).toList(
); |
| 631 } | 631 } |
| 632 } | 632 } |
| 633 | 633 |
| 634 core.Map toJson() { | 634 core.Map<core.String, core.Object> toJson() { |
| 635 var _json = new core.Map(); | 635 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 636 if (nextPageToken != null) { | 636 if (nextPageToken != null) { |
| 637 _json["nextPageToken"] = nextPageToken; | 637 _json["nextPageToken"] = nextPageToken; |
| 638 } | 638 } |
| 639 if (traces != null) { | 639 if (traces != null) { |
| 640 _json["traces"] = traces.map((value) => (value).toJson()).toList(); | 640 _json["traces"] = traces.map((value) => (value).toJson()).toList(); |
| 641 } | 641 } |
| 642 return _json; | 642 return _json; |
| 643 } | 643 } |
| 644 } | 644 } |
| 645 | 645 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 660 | 660 |
| 661 Module.fromJson(core.Map _json) { | 661 Module.fromJson(core.Map _json) { |
| 662 if (_json.containsKey("buildId")) { | 662 if (_json.containsKey("buildId")) { |
| 663 buildId = new TruncatableString.fromJson(_json["buildId"]); | 663 buildId = new TruncatableString.fromJson(_json["buildId"]); |
| 664 } | 664 } |
| 665 if (_json.containsKey("module")) { | 665 if (_json.containsKey("module")) { |
| 666 module = new TruncatableString.fromJson(_json["module"]); | 666 module = new TruncatableString.fromJson(_json["module"]); |
| 667 } | 667 } |
| 668 } | 668 } |
| 669 | 669 |
| 670 core.Map toJson() { | 670 core.Map<core.String, core.Object> toJson() { |
| 671 var _json = new core.Map(); | 671 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 672 if (buildId != null) { | 672 if (buildId != null) { |
| 673 _json["buildId"] = (buildId).toJson(); | 673 _json["buildId"] = (buildId).toJson(); |
| 674 } | 674 } |
| 675 if (module != null) { | 675 if (module != null) { |
| 676 _json["module"] = (module).toJson(); | 676 _json["module"] = (module).toJson(); |
| 677 } | 677 } |
| 678 return _json; | 678 return _json; |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 | 681 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 messageSize = _json["messageSize"]; | 716 messageSize = _json["messageSize"]; |
| 717 } | 717 } |
| 718 if (_json.containsKey("time")) { | 718 if (_json.containsKey("time")) { |
| 719 time = _json["time"]; | 719 time = _json["time"]; |
| 720 } | 720 } |
| 721 if (_json.containsKey("type")) { | 721 if (_json.containsKey("type")) { |
| 722 type = _json["type"]; | 722 type = _json["type"]; |
| 723 } | 723 } |
| 724 } | 724 } |
| 725 | 725 |
| 726 core.Map toJson() { | 726 core.Map<core.String, core.Object> toJson() { |
| 727 var _json = new core.Map(); | 727 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 728 if (messageId != null) { | 728 if (messageId != null) { |
| 729 _json["messageId"] = messageId; | 729 _json["messageId"] = messageId; |
| 730 } | 730 } |
| 731 if (messageSize != null) { | 731 if (messageSize != null) { |
| 732 _json["messageSize"] = messageSize; | 732 _json["messageSize"] = messageSize; |
| 733 } | 733 } |
| 734 if (time != null) { | 734 if (time != null) { |
| 735 _json["time"] = time; | 735 _json["time"] = time; |
| 736 } | 736 } |
| 737 if (type != null) { | 737 if (type != null) { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 startTime = _json["startTime"]; | 845 startTime = _json["startTime"]; |
| 846 } | 846 } |
| 847 if (_json.containsKey("status")) { | 847 if (_json.containsKey("status")) { |
| 848 status = new Status.fromJson(_json["status"]); | 848 status = new Status.fromJson(_json["status"]); |
| 849 } | 849 } |
| 850 if (_json.containsKey("timeEvents")) { | 850 if (_json.containsKey("timeEvents")) { |
| 851 timeEvents = new TimeEvents.fromJson(_json["timeEvents"]); | 851 timeEvents = new TimeEvents.fromJson(_json["timeEvents"]); |
| 852 } | 852 } |
| 853 } | 853 } |
| 854 | 854 |
| 855 core.Map toJson() { | 855 core.Map<core.String, core.Object> toJson() { |
| 856 var _json = new core.Map(); | 856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 857 if (attributes != null) { | 857 if (attributes != null) { |
| 858 _json["attributes"] = (attributes).toJson(); | 858 _json["attributes"] = (attributes).toJson(); |
| 859 } | 859 } |
| 860 if (displayName != null) { | 860 if (displayName != null) { |
| 861 _json["displayName"] = (displayName).toJson(); | 861 _json["displayName"] = (displayName).toJson(); |
| 862 } | 862 } |
| 863 if (endTime != null) { | 863 if (endTime != null) { |
| 864 _json["endTime"] = endTime; | 864 _json["endTime"] = endTime; |
| 865 } | 865 } |
| 866 if (links != null) { | 866 if (links != null) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 loadModule = new Module.fromJson(_json["loadModule"]); | 937 loadModule = new Module.fromJson(_json["loadModule"]); |
| 938 } | 938 } |
| 939 if (_json.containsKey("originalFunctionName")) { | 939 if (_json.containsKey("originalFunctionName")) { |
| 940 originalFunctionName = new TruncatableString.fromJson(_json["originalFunct
ionName"]); | 940 originalFunctionName = new TruncatableString.fromJson(_json["originalFunct
ionName"]); |
| 941 } | 941 } |
| 942 if (_json.containsKey("sourceVersion")) { | 942 if (_json.containsKey("sourceVersion")) { |
| 943 sourceVersion = new TruncatableString.fromJson(_json["sourceVersion"]); | 943 sourceVersion = new TruncatableString.fromJson(_json["sourceVersion"]); |
| 944 } | 944 } |
| 945 } | 945 } |
| 946 | 946 |
| 947 core.Map toJson() { | 947 core.Map<core.String, core.Object> toJson() { |
| 948 var _json = new core.Map(); | 948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 949 if (columnNumber != null) { | 949 if (columnNumber != null) { |
| 950 _json["columnNumber"] = columnNumber; | 950 _json["columnNumber"] = columnNumber; |
| 951 } | 951 } |
| 952 if (fileName != null) { | 952 if (fileName != null) { |
| 953 _json["fileName"] = (fileName).toJson(); | 953 _json["fileName"] = (fileName).toJson(); |
| 954 } | 954 } |
| 955 if (functionName != null) { | 955 if (functionName != null) { |
| 956 _json["functionName"] = (functionName).toJson(); | 956 _json["functionName"] = (functionName).toJson(); |
| 957 } | 957 } |
| 958 if (lineNumber != null) { | 958 if (lineNumber != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 985 | 985 |
| 986 StackFrames.fromJson(core.Map _json) { | 986 StackFrames.fromJson(core.Map _json) { |
| 987 if (_json.containsKey("droppedFramesCount")) { | 987 if (_json.containsKey("droppedFramesCount")) { |
| 988 droppedFramesCount = _json["droppedFramesCount"]; | 988 droppedFramesCount = _json["droppedFramesCount"]; |
| 989 } | 989 } |
| 990 if (_json.containsKey("frame")) { | 990 if (_json.containsKey("frame")) { |
| 991 frame = _json["frame"].map((value) => new StackFrame.fromJson(value)).toLi
st(); | 991 frame = _json["frame"].map((value) => new StackFrame.fromJson(value)).toLi
st(); |
| 992 } | 992 } |
| 993 } | 993 } |
| 994 | 994 |
| 995 core.Map toJson() { | 995 core.Map<core.String, core.Object> toJson() { |
| 996 var _json = new core.Map(); | 996 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 997 if (droppedFramesCount != null) { | 997 if (droppedFramesCount != null) { |
| 998 _json["droppedFramesCount"] = droppedFramesCount; | 998 _json["droppedFramesCount"] = droppedFramesCount; |
| 999 } | 999 } |
| 1000 if (frame != null) { | 1000 if (frame != null) { |
| 1001 _json["frame"] = frame.map((value) => (value).toJson()).toList(); | 1001 _json["frame"] = frame.map((value) => (value).toJson()).toList(); |
| 1002 } | 1002 } |
| 1003 return _json; | 1003 return _json; |
| 1004 } | 1004 } |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 /** StackTrace collected in a trace. */ | 1007 /** StackTrace collected in a trace. */ |
| 1008 class StackTrace { | 1008 class StackTrace { |
| 1009 /** Stack frames in this stack trace. A maximum of 128 frames are allowed. */ | 1009 /** Stack frames in this stack trace. A maximum of 128 frames are allowed. */ |
| 1010 StackFrames stackFrames; | 1010 StackFrames stackFrames; |
| 1011 /** | 1011 /** |
| 1012 * The hash ID is used to conserve network bandwidth for duplicate | 1012 * The hash ID is used to conserve network bandwidth for duplicate |
| 1013 * stack traces within a single trace. | 1013 * stack traces within a single trace. |
| 1014 * | 1014 * |
| 1015 * Often multiple spans will have identical stack traces. | 1015 * Often multiple spans will have identical stack traces. |
| 1016 * The first occurance of a stack trace should contain both the | 1016 * The first occurrence of a stack trace should contain both the |
| 1017 * `stackFrame` content and a value in `stackTraceHashId`. | 1017 * `stackFrame` content and a value in `stackTraceHashId`. |
| 1018 * | 1018 * |
| 1019 * Subsequent spans within the same request can refer | 1019 * Subsequent spans within the same request can refer |
| 1020 * to that stack trace by only setting `stackTraceHashId`. | 1020 * to that stack trace by only setting `stackTraceHashId`. |
| 1021 */ | 1021 */ |
| 1022 core.String stackTraceHashId; | 1022 core.String stackTraceHashId; |
| 1023 | 1023 |
| 1024 StackTrace(); | 1024 StackTrace(); |
| 1025 | 1025 |
| 1026 StackTrace.fromJson(core.Map _json) { | 1026 StackTrace.fromJson(core.Map _json) { |
| 1027 if (_json.containsKey("stackFrames")) { | 1027 if (_json.containsKey("stackFrames")) { |
| 1028 stackFrames = new StackFrames.fromJson(_json["stackFrames"]); | 1028 stackFrames = new StackFrames.fromJson(_json["stackFrames"]); |
| 1029 } | 1029 } |
| 1030 if (_json.containsKey("stackTraceHashId")) { | 1030 if (_json.containsKey("stackTraceHashId")) { |
| 1031 stackTraceHashId = _json["stackTraceHashId"]; | 1031 stackTraceHashId = _json["stackTraceHashId"]; |
| 1032 } | 1032 } |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 core.Map toJson() { | 1035 core.Map<core.String, core.Object> toJson() { |
| 1036 var _json = new core.Map(); | 1036 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1037 if (stackFrames != null) { | 1037 if (stackFrames != null) { |
| 1038 _json["stackFrames"] = (stackFrames).toJson(); | 1038 _json["stackFrames"] = (stackFrames).toJson(); |
| 1039 } | 1039 } |
| 1040 if (stackTraceHashId != null) { | 1040 if (stackTraceHashId != null) { |
| 1041 _json["stackTraceHashId"] = stackTraceHashId; | 1041 _json["stackTraceHashId"] = stackTraceHashId; |
| 1042 } | 1042 } |
| 1043 return _json; | 1043 return _json; |
| 1044 } | 1044 } |
| 1045 } | 1045 } |
| 1046 | 1046 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 code = _json["code"]; | 1125 code = _json["code"]; |
| 1126 } | 1126 } |
| 1127 if (_json.containsKey("details")) { | 1127 if (_json.containsKey("details")) { |
| 1128 details = _json["details"]; | 1128 details = _json["details"]; |
| 1129 } | 1129 } |
| 1130 if (_json.containsKey("message")) { | 1130 if (_json.containsKey("message")) { |
| 1131 message = _json["message"]; | 1131 message = _json["message"]; |
| 1132 } | 1132 } |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 core.Map toJson() { | 1135 core.Map<core.String, core.Object> toJson() { |
| 1136 var _json = new core.Map(); | 1136 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1137 if (code != null) { | 1137 if (code != null) { |
| 1138 _json["code"] = code; | 1138 _json["code"] = code; |
| 1139 } | 1139 } |
| 1140 if (details != null) { | 1140 if (details != null) { |
| 1141 _json["details"] = details; | 1141 _json["details"] = details; |
| 1142 } | 1142 } |
| 1143 if (message != null) { | 1143 if (message != null) { |
| 1144 _json["message"] = message; | 1144 _json["message"] = message; |
| 1145 } | 1145 } |
| 1146 return _json; | 1146 return _json; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1163 annotation = new Annotation.fromJson(_json["annotation"]); | 1163 annotation = new Annotation.fromJson(_json["annotation"]); |
| 1164 } | 1164 } |
| 1165 if (_json.containsKey("networkEvent")) { | 1165 if (_json.containsKey("networkEvent")) { |
| 1166 networkEvent = new NetworkEvent.fromJson(_json["networkEvent"]); | 1166 networkEvent = new NetworkEvent.fromJson(_json["networkEvent"]); |
| 1167 } | 1167 } |
| 1168 if (_json.containsKey("time")) { | 1168 if (_json.containsKey("time")) { |
| 1169 time = _json["time"]; | 1169 time = _json["time"]; |
| 1170 } | 1170 } |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 core.Map toJson() { | 1173 core.Map<core.String, core.Object> toJson() { |
| 1174 var _json = new core.Map(); | 1174 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1175 if (annotation != null) { | 1175 if (annotation != null) { |
| 1176 _json["annotation"] = (annotation).toJson(); | 1176 _json["annotation"] = (annotation).toJson(); |
| 1177 } | 1177 } |
| 1178 if (networkEvent != null) { | 1178 if (networkEvent != null) { |
| 1179 _json["networkEvent"] = (networkEvent).toJson(); | 1179 _json["networkEvent"] = (networkEvent).toJson(); |
| 1180 } | 1180 } |
| 1181 if (time != null) { | 1181 if (time != null) { |
| 1182 _json["time"] = time; | 1182 _json["time"] = time; |
| 1183 } | 1183 } |
| 1184 return _json; | 1184 return _json; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1211 droppedAnnotationsCount = _json["droppedAnnotationsCount"]; | 1211 droppedAnnotationsCount = _json["droppedAnnotationsCount"]; |
| 1212 } | 1212 } |
| 1213 if (_json.containsKey("droppedNetworkEventsCount")) { | 1213 if (_json.containsKey("droppedNetworkEventsCount")) { |
| 1214 droppedNetworkEventsCount = _json["droppedNetworkEventsCount"]; | 1214 droppedNetworkEventsCount = _json["droppedNetworkEventsCount"]; |
| 1215 } | 1215 } |
| 1216 if (_json.containsKey("timeEvent")) { | 1216 if (_json.containsKey("timeEvent")) { |
| 1217 timeEvent = _json["timeEvent"].map((value) => new TimeEvent.fromJson(value
)).toList(); | 1217 timeEvent = _json["timeEvent"].map((value) => new TimeEvent.fromJson(value
)).toList(); |
| 1218 } | 1218 } |
| 1219 } | 1219 } |
| 1220 | 1220 |
| 1221 core.Map toJson() { | 1221 core.Map<core.String, core.Object> toJson() { |
| 1222 var _json = new core.Map(); | 1222 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1223 if (droppedAnnotationsCount != null) { | 1223 if (droppedAnnotationsCount != null) { |
| 1224 _json["droppedAnnotationsCount"] = droppedAnnotationsCount; | 1224 _json["droppedAnnotationsCount"] = droppedAnnotationsCount; |
| 1225 } | 1225 } |
| 1226 if (droppedNetworkEventsCount != null) { | 1226 if (droppedNetworkEventsCount != null) { |
| 1227 _json["droppedNetworkEventsCount"] = droppedNetworkEventsCount; | 1227 _json["droppedNetworkEventsCount"] = droppedNetworkEventsCount; |
| 1228 } | 1228 } |
| 1229 if (timeEvent != null) { | 1229 if (timeEvent != null) { |
| 1230 _json["timeEvent"] = timeEvent.map((value) => (value).toJson()).toList(); | 1230 _json["timeEvent"] = timeEvent.map((value) => (value).toJson()).toList(); |
| 1231 } | 1231 } |
| 1232 return _json; | 1232 return _json; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1248 core.String name; | 1248 core.String name; |
| 1249 | 1249 |
| 1250 Trace(); | 1250 Trace(); |
| 1251 | 1251 |
| 1252 Trace.fromJson(core.Map _json) { | 1252 Trace.fromJson(core.Map _json) { |
| 1253 if (_json.containsKey("name")) { | 1253 if (_json.containsKey("name")) { |
| 1254 name = _json["name"]; | 1254 name = _json["name"]; |
| 1255 } | 1255 } |
| 1256 } | 1256 } |
| 1257 | 1257 |
| 1258 core.Map toJson() { | 1258 core.Map<core.String, core.Object> toJson() { |
| 1259 var _json = new core.Map(); | 1259 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1260 if (name != null) { | 1260 if (name != null) { |
| 1261 _json["name"] = name; | 1261 _json["name"] = name; |
| 1262 } | 1262 } |
| 1263 return _json; | 1263 return _json; |
| 1264 } | 1264 } |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 /** Represents a string value that might be truncated. */ | 1267 /** Represents a string value that might be truncated. */ |
| 1268 class TruncatableString { | 1268 class TruncatableString { |
| 1269 /** | 1269 /** |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1281 | 1281 |
| 1282 TruncatableString.fromJson(core.Map _json) { | 1282 TruncatableString.fromJson(core.Map _json) { |
| 1283 if (_json.containsKey("truncatedCharacterCount")) { | 1283 if (_json.containsKey("truncatedCharacterCount")) { |
| 1284 truncatedCharacterCount = _json["truncatedCharacterCount"]; | 1284 truncatedCharacterCount = _json["truncatedCharacterCount"]; |
| 1285 } | 1285 } |
| 1286 if (_json.containsKey("value")) { | 1286 if (_json.containsKey("value")) { |
| 1287 value = _json["value"]; | 1287 value = _json["value"]; |
| 1288 } | 1288 } |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 core.Map toJson() { | 1291 core.Map<core.String, core.Object> toJson() { |
| 1292 var _json = new core.Map(); | 1292 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1293 if (truncatedCharacterCount != null) { | 1293 if (truncatedCharacterCount != null) { |
| 1294 _json["truncatedCharacterCount"] = truncatedCharacterCount; | 1294 _json["truncatedCharacterCount"] = truncatedCharacterCount; |
| 1295 } | 1295 } |
| 1296 if (value != null) { | 1296 if (value != null) { |
| 1297 _json["value"] = value; | 1297 _json["value"] = value; |
| 1298 } | 1298 } |
| 1299 return _json; | 1299 return _json; |
| 1300 } | 1300 } |
| 1301 } | 1301 } |
| OLD | NEW |