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

Unified Diff: pkg/analysis_server/lib/protocol/protocol_generated.dart

Issue 2922603002: Add an analytics domain to the analysis server. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/protocol/protocol_generated.dart
diff --git a/pkg/analysis_server/lib/protocol/protocol_generated.dart b/pkg/analysis_server/lib/protocol/protocol_generated.dart
index 83574bf1cef58f61f38e6050bd130aff1f6623c0..4b9bc833cd72dea721aae1248b1359eb07931f18 100644
--- a/pkg/analysis_server/lib/protocol/protocol_generated.dart
+++ b/pkg/analysis_server/lib/protocol/protocol_generated.dart
@@ -4025,6 +4025,479 @@ class AnalysisUpdateOptionsResult implements ResponseResult {
}
/**
+ * analytics.enable params
+ *
+ * {
+ * "value": bool
+ * }
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsEnableParams implements RequestParams {
+ bool _value;
+
+ /**
+ * Enable or disable analytics.
+ */
+ bool get value => _value;
+
+ /**
+ * Enable or disable analytics.
+ */
+ void set value(bool value) {
+ assert(value != null);
+ this._value = value;
+ }
+
+ AnalyticsEnableParams(bool value) {
+ this.value = value;
+ }
+
+ factory AnalyticsEnableParams.fromJson(
+ JsonDecoder jsonDecoder, String jsonPath, Object json) {
+ if (json == null) {
+ json = {};
+ }
+ if (json is Map) {
+ bool value;
+ if (json.containsKey("value")) {
+ value = jsonDecoder.decodeBool(jsonPath + ".value", json["value"]);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "value");
+ }
+ return new AnalyticsEnableParams(value);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "analytics.enable params", json);
+ }
+ }
+
+ factory AnalyticsEnableParams.fromRequest(Request request) {
+ return new AnalyticsEnableParams.fromJson(
+ new RequestDecoder(request), "params", request.params);
+ }
+
+ @override
+ Map<String, dynamic> toJson() {
+ Map<String, dynamic> result = {};
+ result["value"] = value;
+ return result;
+ }
+
+ @override
+ Request toRequest(String id) {
+ return new Request(id, "analytics.enable", toJson());
+ }
+
+ @override
+ String toString() => JSON.encode(toJson());
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsEnableParams) {
+ return value == other.value;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ int hash = 0;
+ hash = JenkinsSmiHash.combine(hash, value.hashCode);
+ return JenkinsSmiHash.finish(hash);
+ }
+}
+
+/**
+ * analytics.enable result
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsEnableResult implements ResponseResult {
+ @override
+ Map<String, dynamic> toJson() => <String, dynamic>{};
+
+ @override
+ Response toResponse(String id) {
+ return new Response(id, result: null);
+ }
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsEnableResult) {
+ return true;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ return 237990792;
+ }
+}
+
+/**
+ * analytics.isEnabled params
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsIsEnabledParams implements RequestParams {
+ @override
+ Map<String, dynamic> toJson() => <String, dynamic>{};
+
+ @override
+ Request toRequest(String id) {
+ return new Request(id, "analytics.isEnabled", null);
+ }
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsIsEnabledParams) {
+ return true;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ return 57215544;
+ }
+}
+
+/**
+ * analytics.isEnabled result
+ *
+ * {
+ * "enabled": bool
+ * }
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsIsEnabledResult implements ResponseResult {
+ bool _enabled;
+
+ /**
+ * Whether sending analytics is enabled or not.
+ */
+ bool get enabled => _enabled;
+
+ /**
+ * Whether sending analytics is enabled or not.
+ */
+ void set enabled(bool value) {
+ assert(value != null);
+ this._enabled = value;
+ }
+
+ AnalyticsIsEnabledResult(bool enabled) {
+ this.enabled = enabled;
+ }
+
+ factory AnalyticsIsEnabledResult.fromJson(
+ JsonDecoder jsonDecoder, String jsonPath, Object json) {
+ if (json == null) {
+ json = {};
+ }
+ if (json is Map) {
+ bool enabled;
+ if (json.containsKey("enabled")) {
+ enabled =
+ jsonDecoder.decodeBool(jsonPath + ".enabled", json["enabled"]);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "enabled");
+ }
+ return new AnalyticsIsEnabledResult(enabled);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "analytics.isEnabled result", json);
+ }
+ }
+
+ factory AnalyticsIsEnabledResult.fromResponse(Response response) {
+ return new AnalyticsIsEnabledResult.fromJson(
+ new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)),
+ "result",
+ response.result);
+ }
+
+ @override
+ Map<String, dynamic> toJson() {
+ Map<String, dynamic> result = {};
+ result["enabled"] = enabled;
+ return result;
+ }
+
+ @override
+ Response toResponse(String id) {
+ return new Response(id, result: toJson());
+ }
+
+ @override
+ String toString() => JSON.encode(toJson());
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsIsEnabledResult) {
+ return enabled == other.enabled;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ int hash = 0;
+ hash = JenkinsSmiHash.combine(hash, enabled.hashCode);
+ return JenkinsSmiHash.finish(hash);
+ }
+}
+
+/**
+ * analytics.sendEvent params
+ *
+ * {
+ * "action": String
+ * }
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsSendEventParams implements RequestParams {
+ String _action;
+
+ /**
+ * The client action name.
+ */
+ String get action => _action;
+
+ /**
+ * The client action name.
+ */
+ void set action(String value) {
+ assert(value != null);
+ this._action = value;
+ }
+
+ AnalyticsSendEventParams(String action) {
+ this.action = action;
+ }
+
+ factory AnalyticsSendEventParams.fromJson(
+ JsonDecoder jsonDecoder, String jsonPath, Object json) {
+ if (json == null) {
+ json = {};
+ }
+ if (json is Map) {
+ String action;
+ if (json.containsKey("action")) {
+ action = jsonDecoder.decodeString(jsonPath + ".action", json["action"]);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "action");
+ }
+ return new AnalyticsSendEventParams(action);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "analytics.sendEvent params", json);
+ }
+ }
+
+ factory AnalyticsSendEventParams.fromRequest(Request request) {
+ return new AnalyticsSendEventParams.fromJson(
+ new RequestDecoder(request), "params", request.params);
+ }
+
+ @override
+ Map<String, dynamic> toJson() {
+ Map<String, dynamic> result = {};
+ result["action"] = action;
+ return result;
+ }
+
+ @override
+ Request toRequest(String id) {
+ return new Request(id, "analytics.sendEvent", toJson());
+ }
+
+ @override
+ String toString() => JSON.encode(toJson());
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsSendEventParams) {
+ return action == other.action;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ int hash = 0;
+ hash = JenkinsSmiHash.combine(hash, action.hashCode);
+ return JenkinsSmiHash.finish(hash);
+ }
+}
+
+/**
+ * analytics.sendEvent result
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsSendEventResult implements ResponseResult {
+ @override
+ Map<String, dynamic> toJson() => <String, dynamic>{};
+
+ @override
+ Response toResponse(String id) {
+ return new Response(id, result: null);
+ }
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsSendEventResult) {
+ return true;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ return 227063188;
+ }
+}
+
+/**
+ * analytics.sendTiming params
+ *
+ * {
+ * "variable": String
+ * "millis": int
+ * }
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsSendTimingParams implements RequestParams {
+ String _variable;
+
+ int _millis;
+
+ /**
+ * The variable name for the event.
+ */
+ String get variable => _variable;
+
+ /**
+ * The variable name for the event.
+ */
+ void set variable(String value) {
+ assert(value != null);
+ this._variable = value;
+ }
+
+ /**
+ * The duration of the event in milliseconds.
+ */
+ int get millis => _millis;
+
+ /**
+ * The duration of the event in milliseconds.
+ */
+ void set millis(int value) {
+ assert(value != null);
+ this._millis = value;
+ }
+
+ AnalyticsSendTimingParams(String variable, int millis) {
+ this.variable = variable;
+ this.millis = millis;
+ }
+
+ factory AnalyticsSendTimingParams.fromJson(
+ JsonDecoder jsonDecoder, String jsonPath, Object json) {
+ if (json == null) {
+ json = {};
+ }
+ if (json is Map) {
+ String variable;
+ if (json.containsKey("variable")) {
+ variable =
+ jsonDecoder.decodeString(jsonPath + ".variable", json["variable"]);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "variable");
+ }
+ int millis;
+ if (json.containsKey("millis")) {
+ millis = jsonDecoder.decodeInt(jsonPath + ".millis", json["millis"]);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "millis");
+ }
+ return new AnalyticsSendTimingParams(variable, millis);
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "analytics.sendTiming params", json);
+ }
+ }
+
+ factory AnalyticsSendTimingParams.fromRequest(Request request) {
+ return new AnalyticsSendTimingParams.fromJson(
+ new RequestDecoder(request), "params", request.params);
+ }
+
+ @override
+ Map<String, dynamic> toJson() {
+ Map<String, dynamic> result = {};
+ result["variable"] = variable;
+ result["millis"] = millis;
+ return result;
+ }
+
+ @override
+ Request toRequest(String id) {
+ return new Request(id, "analytics.sendTiming", toJson());
+ }
+
+ @override
+ String toString() => JSON.encode(toJson());
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsSendTimingParams) {
+ return variable == other.variable && millis == other.millis;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ int hash = 0;
+ hash = JenkinsSmiHash.combine(hash, variable.hashCode);
+ hash = JenkinsSmiHash.combine(hash, millis.hashCode);
+ return JenkinsSmiHash.finish(hash);
+ }
+}
+
+/**
+ * analytics.sendTiming result
+ *
+ * Clients may not extend, implement or mix-in this class.
+ */
+class AnalyticsSendTimingResult implements ResponseResult {
+ @override
+ Map<String, dynamic> toJson() => <String, dynamic>{};
+
+ @override
+ Response toResponse(String id) {
+ return new Response(id, result: null);
+ }
+
+ @override
+ bool operator ==(other) {
+ if (other is AnalyticsSendTimingResult) {
+ return true;
+ }
+ return false;
+ }
+
+ @override
+ int get hashCode {
+ return 875010924;
+ }
+}
+
+/**
* completion.getSuggestions params
*
* {

Powered by Google App Engine
This is Rietveld 408576698