| 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_beta.toolresults.v1beta3; | 3 library googleapis_beta.toolresults.v1beta3; |
| 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 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1727 if (typeUrl != null) { | 1727 if (typeUrl != null) { |
| 1728 _json["typeUrl"] = typeUrl; | 1728 _json["typeUrl"] = typeUrl; |
| 1729 } | 1729 } |
| 1730 if (value != null) { | 1730 if (value != null) { |
| 1731 _json["value"] = value; | 1731 _json["value"] = value; |
| 1732 } | 1732 } |
| 1733 return _json; | 1733 return _json; |
| 1734 } | 1734 } |
| 1735 } | 1735 } |
| 1736 | 1736 |
| 1737 class AppStartTime { |
| 1738 /** |
| 1739 * Optional. The time from app start to reaching the developer-reported "fully |
| 1740 * drawn" time. This is only stored if the app includes a call to |
| 1741 * Activity.reportFullyDrawn(). See |
| 1742 * https://developer.android.com/topic/performance/launch-time.html#time-full |
| 1743 */ |
| 1744 Duration fullyDrawnTime; |
| 1745 /** |
| 1746 * The time from app start to the first displayed activity being drawn, as |
| 1747 * reported in Logcat. See |
| 1748 * https://developer.android.com/topic/performance/launch-time.html#time-initi
al |
| 1749 */ |
| 1750 Duration initialDisplayTime; |
| 1751 |
| 1752 AppStartTime(); |
| 1753 |
| 1754 AppStartTime.fromJson(core.Map _json) { |
| 1755 if (_json.containsKey("fullyDrawnTime")) { |
| 1756 fullyDrawnTime = new Duration.fromJson(_json["fullyDrawnTime"]); |
| 1757 } |
| 1758 if (_json.containsKey("initialDisplayTime")) { |
| 1759 initialDisplayTime = new Duration.fromJson(_json["initialDisplayTime"]); |
| 1760 } |
| 1761 } |
| 1762 |
| 1763 core.Map<core.String, core.Object> toJson() { |
| 1764 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1765 if (fullyDrawnTime != null) { |
| 1766 _json["fullyDrawnTime"] = (fullyDrawnTime).toJson(); |
| 1767 } |
| 1768 if (initialDisplayTime != null) { |
| 1769 _json["initialDisplayTime"] = (initialDisplayTime).toJson(); |
| 1770 } |
| 1771 return _json; |
| 1772 } |
| 1773 } |
| 1774 |
| 1737 /** | 1775 /** |
| 1738 * Encapsulates the metadata for basic sample series represented by a line chart | 1776 * Encapsulates the metadata for basic sample series represented by a line chart |
| 1739 */ | 1777 */ |
| 1740 class BasicPerfSampleSeries { | 1778 class BasicPerfSampleSeries { |
| 1741 /** | 1779 /** |
| 1742 * | 1780 * |
| 1743 * Possible string values are: | 1781 * Possible string values are: |
| 1744 * - "cpu" | 1782 * - "cpu" |
| 1745 * - "graphics" | 1783 * - "graphics" |
| 1746 * - "memory" | 1784 * - "memory" |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 } | 2739 } |
| 2702 if (memoryInfo != null) { | 2740 if (memoryInfo != null) { |
| 2703 _json["memoryInfo"] = (memoryInfo).toJson(); | 2741 _json["memoryInfo"] = (memoryInfo).toJson(); |
| 2704 } | 2742 } |
| 2705 return _json; | 2743 return _json; |
| 2706 } | 2744 } |
| 2707 } | 2745 } |
| 2708 | 2746 |
| 2709 /** A summary of perf metrics collected and performance environment info */ | 2747 /** A summary of perf metrics collected and performance environment info */ |
| 2710 class PerfMetricsSummary { | 2748 class PerfMetricsSummary { |
| 2749 AppStartTime appStartTime; |
| 2711 /** A tool results execution ID. */ | 2750 /** A tool results execution ID. */ |
| 2712 core.String executionId; | 2751 core.String executionId; |
| 2713 /** A tool results history ID. */ | 2752 /** A tool results history ID. */ |
| 2714 core.String historyId; | 2753 core.String historyId; |
| 2715 /** | 2754 /** |
| 2716 * Describes the environment in which the performance metrics were collected | 2755 * Describes the environment in which the performance metrics were collected |
| 2717 */ | 2756 */ |
| 2718 PerfEnvironment perfEnvironment; | 2757 PerfEnvironment perfEnvironment; |
| 2719 /** Set of resource collected */ | 2758 /** Set of resource collected */ |
| 2720 core.List<core.String> perfMetrics; | 2759 core.List<core.String> perfMetrics; |
| 2721 /** The cloud project */ | 2760 /** The cloud project */ |
| 2722 core.String projectId; | 2761 core.String projectId; |
| 2723 /** A tool results step ID. */ | 2762 /** A tool results step ID. */ |
| 2724 core.String stepId; | 2763 core.String stepId; |
| 2725 | 2764 |
| 2726 PerfMetricsSummary(); | 2765 PerfMetricsSummary(); |
| 2727 | 2766 |
| 2728 PerfMetricsSummary.fromJson(core.Map _json) { | 2767 PerfMetricsSummary.fromJson(core.Map _json) { |
| 2768 if (_json.containsKey("appStartTime")) { |
| 2769 appStartTime = new AppStartTime.fromJson(_json["appStartTime"]); |
| 2770 } |
| 2729 if (_json.containsKey("executionId")) { | 2771 if (_json.containsKey("executionId")) { |
| 2730 executionId = _json["executionId"]; | 2772 executionId = _json["executionId"]; |
| 2731 } | 2773 } |
| 2732 if (_json.containsKey("historyId")) { | 2774 if (_json.containsKey("historyId")) { |
| 2733 historyId = _json["historyId"]; | 2775 historyId = _json["historyId"]; |
| 2734 } | 2776 } |
| 2735 if (_json.containsKey("perfEnvironment")) { | 2777 if (_json.containsKey("perfEnvironment")) { |
| 2736 perfEnvironment = new PerfEnvironment.fromJson(_json["perfEnvironment"]); | 2778 perfEnvironment = new PerfEnvironment.fromJson(_json["perfEnvironment"]); |
| 2737 } | 2779 } |
| 2738 if (_json.containsKey("perfMetrics")) { | 2780 if (_json.containsKey("perfMetrics")) { |
| 2739 perfMetrics = _json["perfMetrics"]; | 2781 perfMetrics = _json["perfMetrics"]; |
| 2740 } | 2782 } |
| 2741 if (_json.containsKey("projectId")) { | 2783 if (_json.containsKey("projectId")) { |
| 2742 projectId = _json["projectId"]; | 2784 projectId = _json["projectId"]; |
| 2743 } | 2785 } |
| 2744 if (_json.containsKey("stepId")) { | 2786 if (_json.containsKey("stepId")) { |
| 2745 stepId = _json["stepId"]; | 2787 stepId = _json["stepId"]; |
| 2746 } | 2788 } |
| 2747 } | 2789 } |
| 2748 | 2790 |
| 2749 core.Map<core.String, core.Object> toJson() { | 2791 core.Map<core.String, core.Object> toJson() { |
| 2750 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2793 if (appStartTime != null) { |
| 2794 _json["appStartTime"] = (appStartTime).toJson(); |
| 2795 } |
| 2751 if (executionId != null) { | 2796 if (executionId != null) { |
| 2752 _json["executionId"] = executionId; | 2797 _json["executionId"] = executionId; |
| 2753 } | 2798 } |
| 2754 if (historyId != null) { | 2799 if (historyId != null) { |
| 2755 _json["historyId"] = historyId; | 2800 _json["historyId"] = historyId; |
| 2756 } | 2801 } |
| 2757 if (perfEnvironment != null) { | 2802 if (perfEnvironment != null) { |
| 2758 _json["perfEnvironment"] = (perfEnvironment).toJson(); | 2803 _json["perfEnvironment"] = (perfEnvironment).toJson(); |
| 2759 } | 2804 } |
| 2760 if (perfMetrics != null) { | 2805 if (perfMetrics != null) { |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3048 * results in its response, the status of those operations should be represented | 3093 * results in its response, the status of those operations should be represented |
| 3049 * directly using the `Status` message. | 3094 * directly using the `Status` message. |
| 3050 * | 3095 * |
| 3051 * - Logging. If some API errors are stored in logs, the message `Status` could | 3096 * - Logging. If some API errors are stored in logs, the message `Status` could |
| 3052 * be used directly after any stripping needed for security/privacy reasons. | 3097 * be used directly after any stripping needed for security/privacy reasons. |
| 3053 */ | 3098 */ |
| 3054 class Status { | 3099 class Status { |
| 3055 /** The status code, which should be an enum value of [google.rpc.Code][]. */ | 3100 /** The status code, which should be an enum value of [google.rpc.Code][]. */ |
| 3056 core.int code; | 3101 core.int code; |
| 3057 /** | 3102 /** |
| 3058 * A list of messages that carry the error details. There will be a common set | 3103 * A list of messages that carry the error details. There is a common set of |
| 3059 * of message types for APIs to use. | 3104 * message types for APIs to use. |
| 3060 */ | 3105 */ |
| 3061 core.List<Any> details; | 3106 core.List<Any> details; |
| 3062 /** | 3107 /** |
| 3063 * A developer-facing error message, which should be in English. Any | 3108 * A developer-facing error message, which should be in English. Any |
| 3064 * user-facing error message should be localized and sent in the | 3109 * user-facing error message should be localized and sent in the |
| 3065 * [google.rpc.Status.details][] field, or localized by the client. | 3110 * [google.rpc.Status.details][] field, or localized by the client. |
| 3066 */ | 3111 */ |
| 3067 core.String message; | 3112 core.String message; |
| 3068 | 3113 |
| 3069 Status(); | 3114 Status(); |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4103 } | 4148 } |
| 4104 if (output != null) { | 4149 if (output != null) { |
| 4105 _json["output"] = (output).toJson(); | 4150 _json["output"] = (output).toJson(); |
| 4106 } | 4151 } |
| 4107 if (testCase != null) { | 4152 if (testCase != null) { |
| 4108 _json["testCase"] = (testCase).toJson(); | 4153 _json["testCase"] = (testCase).toJson(); |
| 4109 } | 4154 } |
| 4110 return _json; | 4155 return _json; |
| 4111 } | 4156 } |
| 4112 } | 4157 } |
| OLD | NEW |