@aceplus/smartace-api 3.7.0-alpha.1 → 3.7.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/auth.account_pb.d.ts +582 -0
  2. package/auth.account_pb.js +4287 -0
  3. package/auth.account_pb_service.d.ts +340 -0
  4. package/auth.account_pb_service.js +637 -0
  5. package/auth.account_two_factor_pb.d.ts +159 -0
  6. package/auth.account_two_factor_pb.js +1184 -0
  7. package/auth.account_two_factor_pb_service.d.ts +121 -0
  8. package/auth.account_two_factor_pb_service.js +182 -0
  9. package/auth.app_account_pb.d.ts +156 -0
  10. package/auth.app_account_pb.js +1153 -0
  11. package/auth.app_account_pb_service.d.ts +160 -0
  12. package/auth.app_account_pb_service.js +263 -0
  13. package/auth.app_authn_pb.d.ts +172 -0
  14. package/auth.app_authn_pb.js +1233 -0
  15. package/auth.app_authn_pb_service.d.ts +140 -0
  16. package/auth.app_authn_pb_service.js +222 -0
  17. package/auth.app_distribution_pb.d.ts +174 -0
  18. package/auth.app_distribution_pb.js +1338 -0
  19. package/auth.app_distribution_pb_service.d.ts +120 -0
  20. package/auth.app_distribution_pb_service.js +181 -0
  21. package/auth.authn_pb.d.ts +95 -0
  22. package/auth.authn_pb.js +637 -0
  23. package/auth.authn_pb_service.d.ts +82 -0
  24. package/auth.authn_pb_service.js +101 -0
  25. package/auth.cluster_pb.d.ts +142 -0
  26. package/auth.cluster_pb.js +1050 -0
  27. package/auth.cluster_pb_service.d.ts +82 -0
  28. package/auth.cluster_pb_service.js +101 -0
  29. package/auth.distribution_pb.d.ts +233 -0
  30. package/auth.distribution_pb.js +1785 -0
  31. package/auth.distribution_pb_service.d.ts +82 -0
  32. package/auth.distribution_pb_service.js +101 -0
  33. package/auth.email_pb.d.ts +217 -0
  34. package/auth.email_pb.js +1508 -0
  35. package/auth.email_pb_service.d.ts +102 -0
  36. package/auth.email_pb_service.js +142 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.push_notification_pb.d.ts +69 -0
  42. package/auth.push_notification_pb.js +411 -0
  43. package/auth.push_notification_pb_service.d.ts +64 -0
  44. package/auth.push_notification_pb_service.js +62 -0
  45. package/auth.sms_pb.d.ts +79 -0
  46. package/auth.sms_pb.js +575 -0
  47. package/auth.sms_pb_service.d.ts +83 -0
  48. package/auth.sms_pb_service.js +102 -0
  49. package/google/api/annotations_pb.d.ts +9 -0
  50. package/google/api/annotations_pb.js +54 -0
  51. package/google/api/annotations_pb_service.d.ts +3 -0
  52. package/google/api/annotations_pb_service.js +3 -0
  53. package/google/api/auth_pb.d.ts +150 -0
  54. package/google/api/auth_pb.js +1160 -0
  55. package/google/api/auth_pb_service.d.ts +3 -0
  56. package/google/api/auth_pb_service.js +3 -0
  57. package/google/api/backend_pb.d.ts +59 -0
  58. package/google/api/backend_pb.js +448 -0
  59. package/google/api/backend_pb_service.d.ts +3 -0
  60. package/google/api/backend_pb_service.js +3 -0
  61. package/google/api/billing_pb.d.ts +54 -0
  62. package/google/api/billing_pb.js +416 -0
  63. package/google/api/billing_pb_service.d.ts +3 -0
  64. package/google/api/billing_pb_service.js +3 -0
  65. package/google/api/client_pb.d.ts +12 -0
  66. package/google/api/client_pb.js +104 -0
  67. package/google/api/client_pb_service.d.ts +3 -0
  68. package/google/api/client_pb_service.js +3 -0
  69. package/google/api/config_change_pb.d.ts +72 -0
  70. package/google/api/config_change_pb.js +489 -0
  71. package/google/api/config_change_pb_service.d.ts +3 -0
  72. package/google/api/config_change_pb_service.js +3 -0
  73. package/google/api/consumer_pb.d.ts +65 -0
  74. package/google/api/consumer_pb.js +430 -0
  75. package/google/api/consumer_pb_service.d.ts +3 -0
  76. package/google/api/consumer_pb_service.js +3 -0
  77. package/google/api/context_pb.d.ts +59 -0
  78. package/google/api/context_pb.js +463 -0
  79. package/google/api/context_pb_service.d.ts +3 -0
  80. package/google/api/context_pb_service.js +3 -0
  81. package/google/api/control_pb.d.ts +25 -0
  82. package/google/api/control_pb.js +176 -0
  83. package/google/api/control_pb_service.d.ts +3 -0
  84. package/google/api/control_pb_service.js +3 -0
  85. package/google/api/distribution_pb.d.ts +235 -0
  86. package/google/api/distribution_pb.js +1805 -0
  87. package/google/api/distribution_pb_service.d.ts +3 -0
  88. package/google/api/distribution_pb_service.js +3 -0
  89. package/google/api/documentation_pb.d.ts +103 -0
  90. package/google/api/documentation_pb.js +803 -0
  91. package/google/api/documentation_pb_service.d.ts +3 -0
  92. package/google/api/documentation_pb_service.js +3 -0
  93. package/google/api/endpoint_pb.d.ts +46 -0
  94. package/google/api/endpoint_pb.js +343 -0
  95. package/google/api/endpoint_pb_service.d.ts +3 -0
  96. package/google/api/endpoint_pb_service.js +3 -0
  97. package/google/api/error_reason_pb.d.ts +40 -0
  98. package/google/api/error_reason_pb.js +61 -0
  99. package/google/api/error_reason_pb_service.d.ts +3 -0
  100. package/google/api/error_reason_pb_service.js +3 -0
  101. package/google/api/field_behavior_pb.d.ts +20 -0
  102. package/google/api/field_behavior_pb.js +66 -0
  103. package/google/api/field_behavior_pb_service.d.ts +3 -0
  104. package/google/api/field_behavior_pb_service.js +3 -0
  105. package/google/api/http_pb.d.ts +136 -0
  106. package/google/api/http_pb.js +1012 -0
  107. package/google/api/http_pb_service.d.ts +3 -0
  108. package/google/api/http_pb_service.js +3 -0
  109. package/google/api/httpbody_pb.d.ts +38 -0
  110. package/google/api/httpbody_pb.js +292 -0
  111. package/google/api/httpbody_pb_service.d.ts +3 -0
  112. package/google/api/httpbody_pb_service.js +3 -0
  113. package/google/api/label_pb.d.ts +41 -0
  114. package/google/api/label_pb.js +246 -0
  115. package/google/api/label_pb_service.d.ts +3 -0
  116. package/google/api/label_pb_service.js +3 -0
  117. package/google/api/launch_stage_pb.d.ts +16 -0
  118. package/google/api/launch_stage_pb.js +37 -0
  119. package/google/api/launch_stage_pb_service.d.ts +3 -0
  120. package/google/api/launch_stage_pb_service.js +3 -0
  121. package/google/api/log_pb.d.ts +40 -0
  122. package/google/api/log_pb.js +298 -0
  123. package/google/api/log_pb_service.d.ts +3 -0
  124. package/google/api/log_pb_service.js +3 -0
  125. package/google/api/logging_pb.d.ts +60 -0
  126. package/google/api/logging_pb.js +469 -0
  127. package/google/api/logging_pb_service.d.ts +3 -0
  128. package/google/api/logging_pb_service.js +3 -0
  129. package/google/api/metric_pb.d.ts +100 -0
  130. package/google/api/metric_pb.js +629 -0
  131. package/google/api/metric_pb_service.d.ts +3 -0
  132. package/google/api/metric_pb_service.js +3 -0
  133. package/google/api/monitored_resource_pb.d.ts +93 -0
  134. package/google/api/monitored_resource_pb.js +723 -0
  135. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  136. package/google/api/monitored_resource_pb_service.js +3 -0
  137. package/google/api/monitoring_pb.d.ts +60 -0
  138. package/google/api/monitoring_pb.js +469 -0
  139. package/google/api/monitoring_pb_service.d.ts +3 -0
  140. package/google/api/monitoring_pb_service.js +3 -0
  141. package/google/api/policy_pb.d.ts +64 -0
  142. package/google/api/policy_pb.js +502 -0
  143. package/google/api/policy_pb_service.d.ts +3 -0
  144. package/google/api/policy_pb_service.js +3 -0
  145. package/google/api/quota_pb.d.ts +112 -0
  146. package/google/api/quota_pb.js +873 -0
  147. package/google/api/quota_pb_service.d.ts +3 -0
  148. package/google/api/quota_pb_service.js +3 -0
  149. package/google/api/resource_pb.d.ts +99 -0
  150. package/google/api/resource_pb.js +684 -0
  151. package/google/api/resource_pb_service.d.ts +3 -0
  152. package/google/api/resource_pb_service.js +3 -0
  153. package/google/api/routing_pb.d.ts +54 -0
  154. package/google/api/routing_pb.js +416 -0
  155. package/google/api/routing_pb_service.d.ts +3 -0
  156. package/google/api/routing_pb_service.js +3 -0
  157. package/google/api/service_pb.d.ts +184 -0
  158. package/google/api/service_pb.js +1400 -0
  159. package/google/api/service_pb_service.d.ts +3 -0
  160. package/google/api/service_pb_service.js +3 -0
  161. package/google/api/source_info_pb.d.ts +28 -0
  162. package/google/api/source_info_pb.js +208 -0
  163. package/google/api/source_info_pb_service.d.ts +3 -0
  164. package/google/api/source_info_pb_service.js +3 -0
  165. package/google/api/system_parameter_pb.d.ts +81 -0
  166. package/google/api/system_parameter_pb.js +630 -0
  167. package/google/api/system_parameter_pb_service.d.ts +3 -0
  168. package/google/api/system_parameter_pb_service.js +3 -0
  169. package/google/api/usage_pb.d.ts +66 -0
  170. package/google/api/usage_pb.js +499 -0
  171. package/google/api/usage_pb_service.d.ts +3 -0
  172. package/google/api/usage_pb_service.js +3 -0
  173. package/google/api/visibility_pb.d.ts +64 -0
  174. package/google/api/visibility_pb.js +546 -0
  175. package/google/api/visibility_pb_service.d.ts +3 -0
  176. package/google/api/visibility_pb_service.js +3 -0
  177. package/meta.client_pb.d.ts +167 -0
  178. package/meta.client_pb.js +1266 -0
  179. package/meta.client_pb_service.d.ts +122 -0
  180. package/meta.client_pb_service.js +183 -0
  181. package/meta.spic_config_pb.d.ts +184 -0
  182. package/meta.spic_config_pb.js +1382 -0
  183. package/meta.spic_config_pb_service.d.ts +122 -0
  184. package/meta.spic_config_pb_service.js +183 -0
  185. package/package.json +1 -1
  186. package/platform.activity_log_pb.d.ts +177 -0
  187. package/platform.activity_log_pb.js +1294 -0
  188. package/platform.activity_log_pb_service.d.ts +82 -0
  189. package/platform.activity_log_pb_service.js +101 -0
  190. package/platform.client_pb.d.ts +350 -0
  191. package/platform.client_pb.js +2663 -0
  192. package/platform.client_pb_service.d.ts +158 -0
  193. package/platform.client_pb_service.js +261 -0
  194. package/platform.group_pb.d.ts +195 -0
  195. package/platform.group_pb.js +1476 -0
  196. package/platform.group_pb_service.d.ts +139 -0
  197. package/platform.group_pb_service.js +221 -0
  198. package/platform.local_account_internal_pb.d.ts +125 -0
  199. package/platform.local_account_internal_pb.js +933 -0
  200. package/platform.local_account_internal_pb_service.d.ts +121 -0
  201. package/platform.local_account_internal_pb_service.js +182 -0
  202. package/platform.local_account_pb.d.ts +446 -0
  203. package/platform.local_account_pb.js +3337 -0
  204. package/platform.local_account_pb_service.d.ts +331 -0
  205. package/platform.local_account_pb_service.js +623 -0
  206. package/platform.local_distribution_pb.d.ts +73 -0
  207. package/platform.local_distribution_pb.js +536 -0
  208. package/platform.local_distribution_pb_service.d.ts +63 -0
  209. package/platform.local_distribution_pb_service.js +61 -0
  210. package/platform.location_pb.d.ts +271 -0
  211. package/platform.location_pb.js +2046 -0
  212. package/platform.location_pb_service.d.ts +139 -0
  213. package/platform.location_pb_service.js +221 -0
  214. package/platform.pagination_pb.d.ts +45 -0
  215. package/platform.pagination_pb.js +276 -0
  216. package/platform.pagination_pb_service.d.ts +3 -0
  217. package/platform.pagination_pb_service.js +3 -0
  218. package/spic.alarm_pb.d.ts +382 -0
  219. package/spic.alarm_pb.js +2915 -0
  220. package/spic.alarm_pb_service.d.ts +101 -0
  221. package/spic.alarm_pb_service.js +141 -0
  222. package/spic.asset_pb.d.ts +716 -0
  223. package/spic.asset_pb.js +5151 -0
  224. package/spic.asset_pb_service.d.ts +216 -0
  225. package/spic.asset_pb_service.js +382 -0
  226. package/spic.cabinet_pb.d.ts +1062 -0
  227. package/spic.cabinet_pb.js +7723 -0
  228. package/spic.cabinet_pb_service.d.ts +245 -0
  229. package/spic.cabinet_pb_service.js +437 -0
  230. package/spic.config_pb.d.ts +249 -0
  231. package/spic.config_pb.js +1891 -0
  232. package/spic.config_pb_service.d.ts +120 -0
  233. package/spic.config_pb_service.js +181 -0
  234. package/spic.contractor_pb.d.ts +195 -0
  235. package/spic.contractor_pb.js +1476 -0
  236. package/spic.contractor_pb_service.d.ts +139 -0
  237. package/spic.contractor_pb_service.js +221 -0
  238. package/spic.history_pb.d.ts +142 -0
  239. package/spic.history_pb.js +1130 -0
  240. package/spic.history_pb_service.d.ts +63 -0
  241. package/spic.history_pb_service.js +61 -0
  242. package/spic.open_request_pb.d.ts +237 -0
  243. package/spic.open_request_pb.js +1784 -0
  244. package/spic.open_request_pb_service.d.ts +101 -0
  245. package/spic.open_request_pb_service.js +141 -0
@@ -0,0 +1,2915 @@
1
+ // source: spic.alarm.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
27
+ goog.object.extend(proto, platform_pagination_pb);
28
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
29
+ goog.object.extend(proto, google_api_annotations_pb);
30
+ goog.exportSymbol('proto.Spic.AlarmProto', null, global);
31
+ goog.exportSymbol('proto.Spic.AlarmProto.AddActionRequest', null, global);
32
+ goog.exportSymbol('proto.Spic.AlarmProto.AlarmAction', null, global);
33
+ goog.exportSymbol('proto.Spic.AlarmProto.AlarmChangedEvent', null, global);
34
+ goog.exportSymbol('proto.Spic.AlarmProto.AlertPriorityType', null, global);
35
+ goog.exportSymbol('proto.Spic.AlarmProto.Event', null, global);
36
+ goog.exportSymbol('proto.Spic.AlarmProto.Event.SearchReply', null, global);
37
+ goog.exportSymbol('proto.Spic.AlarmProto.Event.SearchRequest', null, global);
38
+ goog.exportSymbol('proto.Spic.AlarmProto.SearchReply', null, global);
39
+ goog.exportSymbol('proto.Spic.AlarmProto.SearchRequest', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.Spic.AlarmProto = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AlarmProto.repeatedFields_, null);
52
+ };
53
+ goog.inherits(proto.Spic.AlarmProto, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.Spic.AlarmProto.displayName = 'proto.Spic.AlarmProto';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.Spic.AlarmProto.SearchRequest = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.Spic.AlarmProto.SearchRequest, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.Spic.AlarmProto.SearchRequest.displayName = 'proto.Spic.AlarmProto.SearchRequest';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.Spic.AlarmProto.SearchReply = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AlarmProto.SearchReply.repeatedFields_, null);
94
+ };
95
+ goog.inherits(proto.Spic.AlarmProto.SearchReply, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.Spic.AlarmProto.SearchReply.displayName = 'proto.Spic.AlarmProto.SearchReply';
102
+ }
103
+ /**
104
+ * Generated by JsPbCodeGenerator.
105
+ * @param {Array=} opt_data Optional initial data array, typically from a
106
+ * server response, or constructed directly in Javascript. The array is used
107
+ * in place and becomes part of the constructed object. It is not cloned.
108
+ * If no data is provided, the constructed object will be empty, but still
109
+ * valid.
110
+ * @extends {jspb.Message}
111
+ * @constructor
112
+ */
113
+ proto.Spic.AlarmProto.AddActionRequest = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ };
116
+ goog.inherits(proto.Spic.AlarmProto.AddActionRequest, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.Spic.AlarmProto.AddActionRequest.displayName = 'proto.Spic.AlarmProto.AddActionRequest';
123
+ }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.Spic.AlarmProto.Event = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
+ };
137
+ goog.inherits(proto.Spic.AlarmProto.Event, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.Spic.AlarmProto.Event.displayName = 'proto.Spic.AlarmProto.Event';
144
+ }
145
+ /**
146
+ * Generated by JsPbCodeGenerator.
147
+ * @param {Array=} opt_data Optional initial data array, typically from a
148
+ * server response, or constructed directly in Javascript. The array is used
149
+ * in place and becomes part of the constructed object. It is not cloned.
150
+ * If no data is provided, the constructed object will be empty, but still
151
+ * valid.
152
+ * @extends {jspb.Message}
153
+ * @constructor
154
+ */
155
+ proto.Spic.AlarmProto.Event.SearchRequest = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
+ };
158
+ goog.inherits(proto.Spic.AlarmProto.Event.SearchRequest, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.Spic.AlarmProto.Event.SearchRequest.displayName = 'proto.Spic.AlarmProto.Event.SearchRequest';
165
+ }
166
+ /**
167
+ * Generated by JsPbCodeGenerator.
168
+ * @param {Array=} opt_data Optional initial data array, typically from a
169
+ * server response, or constructed directly in Javascript. The array is used
170
+ * in place and becomes part of the constructed object. It is not cloned.
171
+ * If no data is provided, the constructed object will be empty, but still
172
+ * valid.
173
+ * @extends {jspb.Message}
174
+ * @constructor
175
+ */
176
+ proto.Spic.AlarmProto.Event.SearchReply = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AlarmProto.Event.SearchReply.repeatedFields_, null);
178
+ };
179
+ goog.inherits(proto.Spic.AlarmProto.Event.SearchReply, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.Spic.AlarmProto.Event.SearchReply.displayName = 'proto.Spic.AlarmProto.Event.SearchReply';
186
+ }
187
+ /**
188
+ * Generated by JsPbCodeGenerator.
189
+ * @param {Array=} opt_data Optional initial data array, typically from a
190
+ * server response, or constructed directly in Javascript. The array is used
191
+ * in place and becomes part of the constructed object. It is not cloned.
192
+ * If no data is provided, the constructed object will be empty, but still
193
+ * valid.
194
+ * @extends {jspb.Message}
195
+ * @constructor
196
+ */
197
+ proto.Spic.AlarmProto.AlarmAction = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
+ };
200
+ goog.inherits(proto.Spic.AlarmProto.AlarmAction, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.Spic.AlarmProto.AlarmAction.displayName = 'proto.Spic.AlarmProto.AlarmAction';
207
+ }
208
+ /**
209
+ * Generated by JsPbCodeGenerator.
210
+ * @param {Array=} opt_data Optional initial data array, typically from a
211
+ * server response, or constructed directly in Javascript. The array is used
212
+ * in place and becomes part of the constructed object. It is not cloned.
213
+ * If no data is provided, the constructed object will be empty, but still
214
+ * valid.
215
+ * @extends {jspb.Message}
216
+ * @constructor
217
+ */
218
+ proto.Spic.AlarmProto.AlarmChangedEvent = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
+ };
221
+ goog.inherits(proto.Spic.AlarmProto.AlarmChangedEvent, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.Spic.AlarmProto.AlarmChangedEvent.displayName = 'proto.Spic.AlarmProto.AlarmChangedEvent';
228
+ }
229
+
230
+ /**
231
+ * List of repeated fields within this message type.
232
+ * @private {!Array<number>}
233
+ * @const
234
+ */
235
+ proto.Spic.AlarmProto.repeatedFields_ = [3,7];
236
+
237
+
238
+
239
+ if (jspb.Message.GENERATE_TO_OBJECT) {
240
+ /**
241
+ * Creates an object representation of this proto.
242
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
243
+ * Optional fields that are not set will be set to undefined.
244
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
245
+ * For the list of reserved names please see:
246
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
247
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
248
+ * JSPB instance for transitional soy proto support:
249
+ * http://goto/soy-param-migration
250
+ * @return {!Object}
251
+ */
252
+ proto.Spic.AlarmProto.prototype.toObject = function(opt_includeInstance) {
253
+ return proto.Spic.AlarmProto.toObject(opt_includeInstance, this);
254
+ };
255
+
256
+
257
+ /**
258
+ * Static version of the {@see toObject} method.
259
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
260
+ * the JSPB instance for transitional soy proto support:
261
+ * http://goto/soy-param-migration
262
+ * @param {!proto.Spic.AlarmProto} msg The msg instance to transform.
263
+ * @return {!Object}
264
+ * @suppress {unusedLocalVariables} f is only used for nested messages
265
+ */
266
+ proto.Spic.AlarmProto.toObject = function(includeInstance, msg) {
267
+ var f, obj = {
268
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
269
+ assetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
270
+ eventsList: jspb.Message.toObjectList(msg.getEventsList(),
271
+ proto.Spic.AlarmProto.Event.toObject, includeInstance),
272
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
273
+ resolved: (f = msg.getResolved()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
274
+ status: jspb.Message.getFieldWithDefault(msg, 6, 0),
275
+ alarmActionsList: jspb.Message.toObjectList(msg.getAlarmActionsList(),
276
+ proto.Spic.AlarmProto.AlarmAction.toObject, includeInstance)
277
+ };
278
+
279
+ if (includeInstance) {
280
+ obj.$jspbMessageInstance = msg;
281
+ }
282
+ return obj;
283
+ };
284
+ }
285
+
286
+
287
+ /**
288
+ * Deserializes binary data (in protobuf wire format).
289
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
290
+ * @return {!proto.Spic.AlarmProto}
291
+ */
292
+ proto.Spic.AlarmProto.deserializeBinary = function(bytes) {
293
+ var reader = new jspb.BinaryReader(bytes);
294
+ var msg = new proto.Spic.AlarmProto;
295
+ return proto.Spic.AlarmProto.deserializeBinaryFromReader(msg, reader);
296
+ };
297
+
298
+
299
+ /**
300
+ * Deserializes binary data (in protobuf wire format) from the
301
+ * given reader into the given message object.
302
+ * @param {!proto.Spic.AlarmProto} msg The message object to deserialize into.
303
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
304
+ * @return {!proto.Spic.AlarmProto}
305
+ */
306
+ proto.Spic.AlarmProto.deserializeBinaryFromReader = function(msg, reader) {
307
+ while (reader.nextField()) {
308
+ if (reader.isEndGroup()) {
309
+ break;
310
+ }
311
+ var field = reader.getFieldNumber();
312
+ switch (field) {
313
+ case 1:
314
+ var value = /** @type {number} */ (reader.readInt64());
315
+ msg.setId(value);
316
+ break;
317
+ case 2:
318
+ var value = /** @type {number} */ (reader.readInt64());
319
+ msg.setAssetId(value);
320
+ break;
321
+ case 3:
322
+ var value = new proto.Spic.AlarmProto.Event;
323
+ reader.readMessage(value,proto.Spic.AlarmProto.Event.deserializeBinaryFromReader);
324
+ msg.addEvents(value);
325
+ break;
326
+ case 4:
327
+ var value = new google_protobuf_timestamp_pb.Timestamp;
328
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
329
+ msg.setCreated(value);
330
+ break;
331
+ case 5:
332
+ var value = new google_protobuf_timestamp_pb.Timestamp;
333
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
334
+ msg.setResolved(value);
335
+ break;
336
+ case 6:
337
+ var value = /** @type {!proto.Spic.AlarmProto.AlertPriorityType} */ (reader.readEnum());
338
+ msg.setStatus(value);
339
+ break;
340
+ case 7:
341
+ var value = new proto.Spic.AlarmProto.AlarmAction;
342
+ reader.readMessage(value,proto.Spic.AlarmProto.AlarmAction.deserializeBinaryFromReader);
343
+ msg.addAlarmActions(value);
344
+ break;
345
+ default:
346
+ reader.skipField();
347
+ break;
348
+ }
349
+ }
350
+ return msg;
351
+ };
352
+
353
+
354
+ /**
355
+ * Serializes the message to binary data (in protobuf wire format).
356
+ * @return {!Uint8Array}
357
+ */
358
+ proto.Spic.AlarmProto.prototype.serializeBinary = function() {
359
+ var writer = new jspb.BinaryWriter();
360
+ proto.Spic.AlarmProto.serializeBinaryToWriter(this, writer);
361
+ return writer.getResultBuffer();
362
+ };
363
+
364
+
365
+ /**
366
+ * Serializes the given message to binary data (in protobuf wire
367
+ * format), writing to the given BinaryWriter.
368
+ * @param {!proto.Spic.AlarmProto} message
369
+ * @param {!jspb.BinaryWriter} writer
370
+ * @suppress {unusedLocalVariables} f is only used for nested messages
371
+ */
372
+ proto.Spic.AlarmProto.serializeBinaryToWriter = function(message, writer) {
373
+ var f = undefined;
374
+ f = message.getId();
375
+ if (f !== 0) {
376
+ writer.writeInt64(
377
+ 1,
378
+ f
379
+ );
380
+ }
381
+ f = message.getAssetId();
382
+ if (f !== 0) {
383
+ writer.writeInt64(
384
+ 2,
385
+ f
386
+ );
387
+ }
388
+ f = message.getEventsList();
389
+ if (f.length > 0) {
390
+ writer.writeRepeatedMessage(
391
+ 3,
392
+ f,
393
+ proto.Spic.AlarmProto.Event.serializeBinaryToWriter
394
+ );
395
+ }
396
+ f = message.getCreated();
397
+ if (f != null) {
398
+ writer.writeMessage(
399
+ 4,
400
+ f,
401
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
402
+ );
403
+ }
404
+ f = message.getResolved();
405
+ if (f != null) {
406
+ writer.writeMessage(
407
+ 5,
408
+ f,
409
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
410
+ );
411
+ }
412
+ f = message.getStatus();
413
+ if (f !== 0.0) {
414
+ writer.writeEnum(
415
+ 6,
416
+ f
417
+ );
418
+ }
419
+ f = message.getAlarmActionsList();
420
+ if (f.length > 0) {
421
+ writer.writeRepeatedMessage(
422
+ 7,
423
+ f,
424
+ proto.Spic.AlarmProto.AlarmAction.serializeBinaryToWriter
425
+ );
426
+ }
427
+ };
428
+
429
+
430
+ /**
431
+ * @enum {number}
432
+ */
433
+ proto.Spic.AlarmProto.AlertPriorityType = {
434
+ INFO: 0,
435
+ WARNING: 1,
436
+ ERROR: 2,
437
+ CRITICAL: 3,
438
+ EMERGENCY: 4
439
+ };
440
+
441
+
442
+
443
+
444
+ if (jspb.Message.GENERATE_TO_OBJECT) {
445
+ /**
446
+ * Creates an object representation of this proto.
447
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
448
+ * Optional fields that are not set will be set to undefined.
449
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
450
+ * For the list of reserved names please see:
451
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
452
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
453
+ * JSPB instance for transitional soy proto support:
454
+ * http://goto/soy-param-migration
455
+ * @return {!Object}
456
+ */
457
+ proto.Spic.AlarmProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
458
+ return proto.Spic.AlarmProto.SearchRequest.toObject(opt_includeInstance, this);
459
+ };
460
+
461
+
462
+ /**
463
+ * Static version of the {@see toObject} method.
464
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
465
+ * the JSPB instance for transitional soy proto support:
466
+ * http://goto/soy-param-migration
467
+ * @param {!proto.Spic.AlarmProto.SearchRequest} msg The msg instance to transform.
468
+ * @return {!Object}
469
+ * @suppress {unusedLocalVariables} f is only used for nested messages
470
+ */
471
+ proto.Spic.AlarmProto.SearchRequest.toObject = function(includeInstance, msg) {
472
+ var f, obj = {
473
+ assetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
474
+ page: jspb.Message.getFieldWithDefault(msg, 2, 0),
475
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0),
476
+ descorder: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
477
+ dateFrom: (f = msg.getDateFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
478
+ dateTo: (f = msg.getDateTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
479
+ active: jspb.Message.getFieldWithDefault(msg, 7, 0)
480
+ };
481
+
482
+ if (includeInstance) {
483
+ obj.$jspbMessageInstance = msg;
484
+ }
485
+ return obj;
486
+ };
487
+ }
488
+
489
+
490
+ /**
491
+ * Deserializes binary data (in protobuf wire format).
492
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
493
+ * @return {!proto.Spic.AlarmProto.SearchRequest}
494
+ */
495
+ proto.Spic.AlarmProto.SearchRequest.deserializeBinary = function(bytes) {
496
+ var reader = new jspb.BinaryReader(bytes);
497
+ var msg = new proto.Spic.AlarmProto.SearchRequest;
498
+ return proto.Spic.AlarmProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
499
+ };
500
+
501
+
502
+ /**
503
+ * Deserializes binary data (in protobuf wire format) from the
504
+ * given reader into the given message object.
505
+ * @param {!proto.Spic.AlarmProto.SearchRequest} msg The message object to deserialize into.
506
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
507
+ * @return {!proto.Spic.AlarmProto.SearchRequest}
508
+ */
509
+ proto.Spic.AlarmProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
510
+ while (reader.nextField()) {
511
+ if (reader.isEndGroup()) {
512
+ break;
513
+ }
514
+ var field = reader.getFieldNumber();
515
+ switch (field) {
516
+ case 1:
517
+ var value = /** @type {number} */ (reader.readInt64());
518
+ msg.setAssetId(value);
519
+ break;
520
+ case 2:
521
+ var value = /** @type {number} */ (reader.readInt32());
522
+ msg.setPage(value);
523
+ break;
524
+ case 3:
525
+ var value = /** @type {number} */ (reader.readInt32());
526
+ msg.setCount(value);
527
+ break;
528
+ case 4:
529
+ var value = /** @type {boolean} */ (reader.readBool());
530
+ msg.setDescorder(value);
531
+ break;
532
+ case 5:
533
+ var value = new google_protobuf_timestamp_pb.Timestamp;
534
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
535
+ msg.setDateFrom(value);
536
+ break;
537
+ case 6:
538
+ var value = new google_protobuf_timestamp_pb.Timestamp;
539
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
540
+ msg.setDateTo(value);
541
+ break;
542
+ case 7:
543
+ var value = /** @type {!proto.Platform.BooleanFilterType} */ (reader.readEnum());
544
+ msg.setActive(value);
545
+ break;
546
+ default:
547
+ reader.skipField();
548
+ break;
549
+ }
550
+ }
551
+ return msg;
552
+ };
553
+
554
+
555
+ /**
556
+ * Serializes the message to binary data (in protobuf wire format).
557
+ * @return {!Uint8Array}
558
+ */
559
+ proto.Spic.AlarmProto.SearchRequest.prototype.serializeBinary = function() {
560
+ var writer = new jspb.BinaryWriter();
561
+ proto.Spic.AlarmProto.SearchRequest.serializeBinaryToWriter(this, writer);
562
+ return writer.getResultBuffer();
563
+ };
564
+
565
+
566
+ /**
567
+ * Serializes the given message to binary data (in protobuf wire
568
+ * format), writing to the given BinaryWriter.
569
+ * @param {!proto.Spic.AlarmProto.SearchRequest} message
570
+ * @param {!jspb.BinaryWriter} writer
571
+ * @suppress {unusedLocalVariables} f is only used for nested messages
572
+ */
573
+ proto.Spic.AlarmProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
574
+ var f = undefined;
575
+ f = message.getAssetId();
576
+ if (f !== 0) {
577
+ writer.writeInt64(
578
+ 1,
579
+ f
580
+ );
581
+ }
582
+ f = message.getPage();
583
+ if (f !== 0) {
584
+ writer.writeInt32(
585
+ 2,
586
+ f
587
+ );
588
+ }
589
+ f = message.getCount();
590
+ if (f !== 0) {
591
+ writer.writeInt32(
592
+ 3,
593
+ f
594
+ );
595
+ }
596
+ f = message.getDescorder();
597
+ if (f) {
598
+ writer.writeBool(
599
+ 4,
600
+ f
601
+ );
602
+ }
603
+ f = message.getDateFrom();
604
+ if (f != null) {
605
+ writer.writeMessage(
606
+ 5,
607
+ f,
608
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
609
+ );
610
+ }
611
+ f = message.getDateTo();
612
+ if (f != null) {
613
+ writer.writeMessage(
614
+ 6,
615
+ f,
616
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
617
+ );
618
+ }
619
+ f = message.getActive();
620
+ if (f !== 0.0) {
621
+ writer.writeEnum(
622
+ 7,
623
+ f
624
+ );
625
+ }
626
+ };
627
+
628
+
629
+ /**
630
+ * optional int64 asset_id = 1;
631
+ * @return {number}
632
+ */
633
+ proto.Spic.AlarmProto.SearchRequest.prototype.getAssetId = function() {
634
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
635
+ };
636
+
637
+
638
+ /**
639
+ * @param {number} value
640
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
641
+ */
642
+ proto.Spic.AlarmProto.SearchRequest.prototype.setAssetId = function(value) {
643
+ return jspb.Message.setProto3IntField(this, 1, value);
644
+ };
645
+
646
+
647
+ /**
648
+ * optional int32 page = 2;
649
+ * @return {number}
650
+ */
651
+ proto.Spic.AlarmProto.SearchRequest.prototype.getPage = function() {
652
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
653
+ };
654
+
655
+
656
+ /**
657
+ * @param {number} value
658
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
659
+ */
660
+ proto.Spic.AlarmProto.SearchRequest.prototype.setPage = function(value) {
661
+ return jspb.Message.setProto3IntField(this, 2, value);
662
+ };
663
+
664
+
665
+ /**
666
+ * optional int32 count = 3;
667
+ * @return {number}
668
+ */
669
+ proto.Spic.AlarmProto.SearchRequest.prototype.getCount = function() {
670
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
671
+ };
672
+
673
+
674
+ /**
675
+ * @param {number} value
676
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
677
+ */
678
+ proto.Spic.AlarmProto.SearchRequest.prototype.setCount = function(value) {
679
+ return jspb.Message.setProto3IntField(this, 3, value);
680
+ };
681
+
682
+
683
+ /**
684
+ * optional bool descOrder = 4;
685
+ * @return {boolean}
686
+ */
687
+ proto.Spic.AlarmProto.SearchRequest.prototype.getDescorder = function() {
688
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
689
+ };
690
+
691
+
692
+ /**
693
+ * @param {boolean} value
694
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
695
+ */
696
+ proto.Spic.AlarmProto.SearchRequest.prototype.setDescorder = function(value) {
697
+ return jspb.Message.setProto3BooleanField(this, 4, value);
698
+ };
699
+
700
+
701
+ /**
702
+ * optional google.protobuf.Timestamp date_from = 5;
703
+ * @return {?proto.google.protobuf.Timestamp}
704
+ */
705
+ proto.Spic.AlarmProto.SearchRequest.prototype.getDateFrom = function() {
706
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
707
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
708
+ };
709
+
710
+
711
+ /**
712
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
713
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
714
+ */
715
+ proto.Spic.AlarmProto.SearchRequest.prototype.setDateFrom = function(value) {
716
+ return jspb.Message.setWrapperField(this, 5, value);
717
+ };
718
+
719
+
720
+ /**
721
+ * Clears the message field making it undefined.
722
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
723
+ */
724
+ proto.Spic.AlarmProto.SearchRequest.prototype.clearDateFrom = function() {
725
+ return this.setDateFrom(undefined);
726
+ };
727
+
728
+
729
+ /**
730
+ * Returns whether this field is set.
731
+ * @return {boolean}
732
+ */
733
+ proto.Spic.AlarmProto.SearchRequest.prototype.hasDateFrom = function() {
734
+ return jspb.Message.getField(this, 5) != null;
735
+ };
736
+
737
+
738
+ /**
739
+ * optional google.protobuf.Timestamp date_to = 6;
740
+ * @return {?proto.google.protobuf.Timestamp}
741
+ */
742
+ proto.Spic.AlarmProto.SearchRequest.prototype.getDateTo = function() {
743
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
744
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
745
+ };
746
+
747
+
748
+ /**
749
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
750
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
751
+ */
752
+ proto.Spic.AlarmProto.SearchRequest.prototype.setDateTo = function(value) {
753
+ return jspb.Message.setWrapperField(this, 6, value);
754
+ };
755
+
756
+
757
+ /**
758
+ * Clears the message field making it undefined.
759
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
760
+ */
761
+ proto.Spic.AlarmProto.SearchRequest.prototype.clearDateTo = function() {
762
+ return this.setDateTo(undefined);
763
+ };
764
+
765
+
766
+ /**
767
+ * Returns whether this field is set.
768
+ * @return {boolean}
769
+ */
770
+ proto.Spic.AlarmProto.SearchRequest.prototype.hasDateTo = function() {
771
+ return jspb.Message.getField(this, 6) != null;
772
+ };
773
+
774
+
775
+ /**
776
+ * optional Platform.BooleanFilterType active = 7;
777
+ * @return {!proto.Platform.BooleanFilterType}
778
+ */
779
+ proto.Spic.AlarmProto.SearchRequest.prototype.getActive = function() {
780
+ return /** @type {!proto.Platform.BooleanFilterType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
781
+ };
782
+
783
+
784
+ /**
785
+ * @param {!proto.Platform.BooleanFilterType} value
786
+ * @return {!proto.Spic.AlarmProto.SearchRequest} returns this
787
+ */
788
+ proto.Spic.AlarmProto.SearchRequest.prototype.setActive = function(value) {
789
+ return jspb.Message.setProto3EnumField(this, 7, value);
790
+ };
791
+
792
+
793
+
794
+ /**
795
+ * List of repeated fields within this message type.
796
+ * @private {!Array<number>}
797
+ * @const
798
+ */
799
+ proto.Spic.AlarmProto.SearchReply.repeatedFields_ = [1];
800
+
801
+
802
+
803
+ if (jspb.Message.GENERATE_TO_OBJECT) {
804
+ /**
805
+ * Creates an object representation of this proto.
806
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
807
+ * Optional fields that are not set will be set to undefined.
808
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
809
+ * For the list of reserved names please see:
810
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
811
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
812
+ * JSPB instance for transitional soy proto support:
813
+ * http://goto/soy-param-migration
814
+ * @return {!Object}
815
+ */
816
+ proto.Spic.AlarmProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
817
+ return proto.Spic.AlarmProto.SearchReply.toObject(opt_includeInstance, this);
818
+ };
819
+
820
+
821
+ /**
822
+ * Static version of the {@see toObject} method.
823
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
824
+ * the JSPB instance for transitional soy proto support:
825
+ * http://goto/soy-param-migration
826
+ * @param {!proto.Spic.AlarmProto.SearchReply} msg The msg instance to transform.
827
+ * @return {!Object}
828
+ * @suppress {unusedLocalVariables} f is only used for nested messages
829
+ */
830
+ proto.Spic.AlarmProto.SearchReply.toObject = function(includeInstance, msg) {
831
+ var f, obj = {
832
+ alarmsList: jspb.Message.toObjectList(msg.getAlarmsList(),
833
+ proto.Spic.AlarmProto.toObject, includeInstance),
834
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
835
+ };
836
+
837
+ if (includeInstance) {
838
+ obj.$jspbMessageInstance = msg;
839
+ }
840
+ return obj;
841
+ };
842
+ }
843
+
844
+
845
+ /**
846
+ * Deserializes binary data (in protobuf wire format).
847
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
848
+ * @return {!proto.Spic.AlarmProto.SearchReply}
849
+ */
850
+ proto.Spic.AlarmProto.SearchReply.deserializeBinary = function(bytes) {
851
+ var reader = new jspb.BinaryReader(bytes);
852
+ var msg = new proto.Spic.AlarmProto.SearchReply;
853
+ return proto.Spic.AlarmProto.SearchReply.deserializeBinaryFromReader(msg, reader);
854
+ };
855
+
856
+
857
+ /**
858
+ * Deserializes binary data (in protobuf wire format) from the
859
+ * given reader into the given message object.
860
+ * @param {!proto.Spic.AlarmProto.SearchReply} msg The message object to deserialize into.
861
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
862
+ * @return {!proto.Spic.AlarmProto.SearchReply}
863
+ */
864
+ proto.Spic.AlarmProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
865
+ while (reader.nextField()) {
866
+ if (reader.isEndGroup()) {
867
+ break;
868
+ }
869
+ var field = reader.getFieldNumber();
870
+ switch (field) {
871
+ case 1:
872
+ var value = new proto.Spic.AlarmProto;
873
+ reader.readMessage(value,proto.Spic.AlarmProto.deserializeBinaryFromReader);
874
+ msg.addAlarms(value);
875
+ break;
876
+ case 2:
877
+ var value = new platform_pagination_pb.PaginationProto;
878
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
879
+ msg.setPagination(value);
880
+ break;
881
+ default:
882
+ reader.skipField();
883
+ break;
884
+ }
885
+ }
886
+ return msg;
887
+ };
888
+
889
+
890
+ /**
891
+ * Serializes the message to binary data (in protobuf wire format).
892
+ * @return {!Uint8Array}
893
+ */
894
+ proto.Spic.AlarmProto.SearchReply.prototype.serializeBinary = function() {
895
+ var writer = new jspb.BinaryWriter();
896
+ proto.Spic.AlarmProto.SearchReply.serializeBinaryToWriter(this, writer);
897
+ return writer.getResultBuffer();
898
+ };
899
+
900
+
901
+ /**
902
+ * Serializes the given message to binary data (in protobuf wire
903
+ * format), writing to the given BinaryWriter.
904
+ * @param {!proto.Spic.AlarmProto.SearchReply} message
905
+ * @param {!jspb.BinaryWriter} writer
906
+ * @suppress {unusedLocalVariables} f is only used for nested messages
907
+ */
908
+ proto.Spic.AlarmProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
909
+ var f = undefined;
910
+ f = message.getAlarmsList();
911
+ if (f.length > 0) {
912
+ writer.writeRepeatedMessage(
913
+ 1,
914
+ f,
915
+ proto.Spic.AlarmProto.serializeBinaryToWriter
916
+ );
917
+ }
918
+ f = message.getPagination();
919
+ if (f != null) {
920
+ writer.writeMessage(
921
+ 2,
922
+ f,
923
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
924
+ );
925
+ }
926
+ };
927
+
928
+
929
+ /**
930
+ * repeated AlarmProto alarms = 1;
931
+ * @return {!Array<!proto.Spic.AlarmProto>}
932
+ */
933
+ proto.Spic.AlarmProto.SearchReply.prototype.getAlarmsList = function() {
934
+ return /** @type{!Array<!proto.Spic.AlarmProto>} */ (
935
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AlarmProto, 1));
936
+ };
937
+
938
+
939
+ /**
940
+ * @param {!Array<!proto.Spic.AlarmProto>} value
941
+ * @return {!proto.Spic.AlarmProto.SearchReply} returns this
942
+ */
943
+ proto.Spic.AlarmProto.SearchReply.prototype.setAlarmsList = function(value) {
944
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
945
+ };
946
+
947
+
948
+ /**
949
+ * @param {!proto.Spic.AlarmProto=} opt_value
950
+ * @param {number=} opt_index
951
+ * @return {!proto.Spic.AlarmProto}
952
+ */
953
+ proto.Spic.AlarmProto.SearchReply.prototype.addAlarms = function(opt_value, opt_index) {
954
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.AlarmProto, opt_index);
955
+ };
956
+
957
+
958
+ /**
959
+ * Clears the list making it empty but non-null.
960
+ * @return {!proto.Spic.AlarmProto.SearchReply} returns this
961
+ */
962
+ proto.Spic.AlarmProto.SearchReply.prototype.clearAlarmsList = function() {
963
+ return this.setAlarmsList([]);
964
+ };
965
+
966
+
967
+ /**
968
+ * optional Platform.PaginationProto pagination = 2;
969
+ * @return {?proto.Platform.PaginationProto}
970
+ */
971
+ proto.Spic.AlarmProto.SearchReply.prototype.getPagination = function() {
972
+ return /** @type{?proto.Platform.PaginationProto} */ (
973
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
974
+ };
975
+
976
+
977
+ /**
978
+ * @param {?proto.Platform.PaginationProto|undefined} value
979
+ * @return {!proto.Spic.AlarmProto.SearchReply} returns this
980
+ */
981
+ proto.Spic.AlarmProto.SearchReply.prototype.setPagination = function(value) {
982
+ return jspb.Message.setWrapperField(this, 2, value);
983
+ };
984
+
985
+
986
+ /**
987
+ * Clears the message field making it undefined.
988
+ * @return {!proto.Spic.AlarmProto.SearchReply} returns this
989
+ */
990
+ proto.Spic.AlarmProto.SearchReply.prototype.clearPagination = function() {
991
+ return this.setPagination(undefined);
992
+ };
993
+
994
+
995
+ /**
996
+ * Returns whether this field is set.
997
+ * @return {boolean}
998
+ */
999
+ proto.Spic.AlarmProto.SearchReply.prototype.hasPagination = function() {
1000
+ return jspb.Message.getField(this, 2) != null;
1001
+ };
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1008
+ /**
1009
+ * Creates an object representation of this proto.
1010
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1011
+ * Optional fields that are not set will be set to undefined.
1012
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1013
+ * For the list of reserved names please see:
1014
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1015
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1016
+ * JSPB instance for transitional soy proto support:
1017
+ * http://goto/soy-param-migration
1018
+ * @return {!Object}
1019
+ */
1020
+ proto.Spic.AlarmProto.AddActionRequest.prototype.toObject = function(opt_includeInstance) {
1021
+ return proto.Spic.AlarmProto.AddActionRequest.toObject(opt_includeInstance, this);
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * Static version of the {@see toObject} method.
1027
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1028
+ * the JSPB instance for transitional soy proto support:
1029
+ * http://goto/soy-param-migration
1030
+ * @param {!proto.Spic.AlarmProto.AddActionRequest} msg The msg instance to transform.
1031
+ * @return {!Object}
1032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1033
+ */
1034
+ proto.Spic.AlarmProto.AddActionRequest.toObject = function(includeInstance, msg) {
1035
+ var f, obj = {
1036
+ alarmId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1037
+ detail: jspb.Message.getFieldWithDefault(msg, 2, ""),
1038
+ resolveAlarm: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1039
+ };
1040
+
1041
+ if (includeInstance) {
1042
+ obj.$jspbMessageInstance = msg;
1043
+ }
1044
+ return obj;
1045
+ };
1046
+ }
1047
+
1048
+
1049
+ /**
1050
+ * Deserializes binary data (in protobuf wire format).
1051
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1052
+ * @return {!proto.Spic.AlarmProto.AddActionRequest}
1053
+ */
1054
+ proto.Spic.AlarmProto.AddActionRequest.deserializeBinary = function(bytes) {
1055
+ var reader = new jspb.BinaryReader(bytes);
1056
+ var msg = new proto.Spic.AlarmProto.AddActionRequest;
1057
+ return proto.Spic.AlarmProto.AddActionRequest.deserializeBinaryFromReader(msg, reader);
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * Deserializes binary data (in protobuf wire format) from the
1063
+ * given reader into the given message object.
1064
+ * @param {!proto.Spic.AlarmProto.AddActionRequest} msg The message object to deserialize into.
1065
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1066
+ * @return {!proto.Spic.AlarmProto.AddActionRequest}
1067
+ */
1068
+ proto.Spic.AlarmProto.AddActionRequest.deserializeBinaryFromReader = function(msg, reader) {
1069
+ while (reader.nextField()) {
1070
+ if (reader.isEndGroup()) {
1071
+ break;
1072
+ }
1073
+ var field = reader.getFieldNumber();
1074
+ switch (field) {
1075
+ case 1:
1076
+ var value = /** @type {number} */ (reader.readInt64());
1077
+ msg.setAlarmId(value);
1078
+ break;
1079
+ case 2:
1080
+ var value = /** @type {string} */ (reader.readString());
1081
+ msg.setDetail(value);
1082
+ break;
1083
+ case 3:
1084
+ var value = /** @type {boolean} */ (reader.readBool());
1085
+ msg.setResolveAlarm(value);
1086
+ break;
1087
+ default:
1088
+ reader.skipField();
1089
+ break;
1090
+ }
1091
+ }
1092
+ return msg;
1093
+ };
1094
+
1095
+
1096
+ /**
1097
+ * Serializes the message to binary data (in protobuf wire format).
1098
+ * @return {!Uint8Array}
1099
+ */
1100
+ proto.Spic.AlarmProto.AddActionRequest.prototype.serializeBinary = function() {
1101
+ var writer = new jspb.BinaryWriter();
1102
+ proto.Spic.AlarmProto.AddActionRequest.serializeBinaryToWriter(this, writer);
1103
+ return writer.getResultBuffer();
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * Serializes the given message to binary data (in protobuf wire
1109
+ * format), writing to the given BinaryWriter.
1110
+ * @param {!proto.Spic.AlarmProto.AddActionRequest} message
1111
+ * @param {!jspb.BinaryWriter} writer
1112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1113
+ */
1114
+ proto.Spic.AlarmProto.AddActionRequest.serializeBinaryToWriter = function(message, writer) {
1115
+ var f = undefined;
1116
+ f = message.getAlarmId();
1117
+ if (f !== 0) {
1118
+ writer.writeInt64(
1119
+ 1,
1120
+ f
1121
+ );
1122
+ }
1123
+ f = message.getDetail();
1124
+ if (f.length > 0) {
1125
+ writer.writeString(
1126
+ 2,
1127
+ f
1128
+ );
1129
+ }
1130
+ f = message.getResolveAlarm();
1131
+ if (f) {
1132
+ writer.writeBool(
1133
+ 3,
1134
+ f
1135
+ );
1136
+ }
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * optional int64 alarm_id = 1;
1142
+ * @return {number}
1143
+ */
1144
+ proto.Spic.AlarmProto.AddActionRequest.prototype.getAlarmId = function() {
1145
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * @param {number} value
1151
+ * @return {!proto.Spic.AlarmProto.AddActionRequest} returns this
1152
+ */
1153
+ proto.Spic.AlarmProto.AddActionRequest.prototype.setAlarmId = function(value) {
1154
+ return jspb.Message.setProto3IntField(this, 1, value);
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * optional string detail = 2;
1160
+ * @return {string}
1161
+ */
1162
+ proto.Spic.AlarmProto.AddActionRequest.prototype.getDetail = function() {
1163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * @param {string} value
1169
+ * @return {!proto.Spic.AlarmProto.AddActionRequest} returns this
1170
+ */
1171
+ proto.Spic.AlarmProto.AddActionRequest.prototype.setDetail = function(value) {
1172
+ return jspb.Message.setProto3StringField(this, 2, value);
1173
+ };
1174
+
1175
+
1176
+ /**
1177
+ * optional bool resolve_alarm = 3;
1178
+ * @return {boolean}
1179
+ */
1180
+ proto.Spic.AlarmProto.AddActionRequest.prototype.getResolveAlarm = function() {
1181
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * @param {boolean} value
1187
+ * @return {!proto.Spic.AlarmProto.AddActionRequest} returns this
1188
+ */
1189
+ proto.Spic.AlarmProto.AddActionRequest.prototype.setResolveAlarm = function(value) {
1190
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1191
+ };
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1198
+ /**
1199
+ * Creates an object representation of this proto.
1200
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1201
+ * Optional fields that are not set will be set to undefined.
1202
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1203
+ * For the list of reserved names please see:
1204
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1205
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1206
+ * JSPB instance for transitional soy proto support:
1207
+ * http://goto/soy-param-migration
1208
+ * @return {!Object}
1209
+ */
1210
+ proto.Spic.AlarmProto.Event.prototype.toObject = function(opt_includeInstance) {
1211
+ return proto.Spic.AlarmProto.Event.toObject(opt_includeInstance, this);
1212
+ };
1213
+
1214
+
1215
+ /**
1216
+ * Static version of the {@see toObject} method.
1217
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1218
+ * the JSPB instance for transitional soy proto support:
1219
+ * http://goto/soy-param-migration
1220
+ * @param {!proto.Spic.AlarmProto.Event} msg The msg instance to transform.
1221
+ * @return {!Object}
1222
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1223
+ */
1224
+ proto.Spic.AlarmProto.Event.toObject = function(includeInstance, msg) {
1225
+ var f, obj = {
1226
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1227
+ assetId: jspb.Message.getFieldWithDefault(msg, 2, 0),
1228
+ alarmId: jspb.Message.getFieldWithDefault(msg, 3, 0),
1229
+ startDate: (f = msg.getStartDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1230
+ endDate: (f = msg.getEndDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1231
+ componentId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1232
+ detail: jspb.Message.getFieldWithDefault(msg, 7, ""),
1233
+ status: jspb.Message.getFieldWithDefault(msg, 8, 0)
1234
+ };
1235
+
1236
+ if (includeInstance) {
1237
+ obj.$jspbMessageInstance = msg;
1238
+ }
1239
+ return obj;
1240
+ };
1241
+ }
1242
+
1243
+
1244
+ /**
1245
+ * Deserializes binary data (in protobuf wire format).
1246
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1247
+ * @return {!proto.Spic.AlarmProto.Event}
1248
+ */
1249
+ proto.Spic.AlarmProto.Event.deserializeBinary = function(bytes) {
1250
+ var reader = new jspb.BinaryReader(bytes);
1251
+ var msg = new proto.Spic.AlarmProto.Event;
1252
+ return proto.Spic.AlarmProto.Event.deserializeBinaryFromReader(msg, reader);
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * Deserializes binary data (in protobuf wire format) from the
1258
+ * given reader into the given message object.
1259
+ * @param {!proto.Spic.AlarmProto.Event} msg The message object to deserialize into.
1260
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1261
+ * @return {!proto.Spic.AlarmProto.Event}
1262
+ */
1263
+ proto.Spic.AlarmProto.Event.deserializeBinaryFromReader = function(msg, reader) {
1264
+ while (reader.nextField()) {
1265
+ if (reader.isEndGroup()) {
1266
+ break;
1267
+ }
1268
+ var field = reader.getFieldNumber();
1269
+ switch (field) {
1270
+ case 1:
1271
+ var value = /** @type {number} */ (reader.readInt64());
1272
+ msg.setId(value);
1273
+ break;
1274
+ case 2:
1275
+ var value = /** @type {number} */ (reader.readInt64());
1276
+ msg.setAssetId(value);
1277
+ break;
1278
+ case 3:
1279
+ var value = /** @type {number} */ (reader.readInt64());
1280
+ msg.setAlarmId(value);
1281
+ break;
1282
+ case 4:
1283
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1284
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1285
+ msg.setStartDate(value);
1286
+ break;
1287
+ case 5:
1288
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1289
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1290
+ msg.setEndDate(value);
1291
+ break;
1292
+ case 6:
1293
+ var value = /** @type {string} */ (reader.readString());
1294
+ msg.setComponentId(value);
1295
+ break;
1296
+ case 7:
1297
+ var value = /** @type {string} */ (reader.readString());
1298
+ msg.setDetail(value);
1299
+ break;
1300
+ case 8:
1301
+ var value = /** @type {!proto.Spic.AlarmProto.AlertPriorityType} */ (reader.readEnum());
1302
+ msg.setStatus(value);
1303
+ break;
1304
+ default:
1305
+ reader.skipField();
1306
+ break;
1307
+ }
1308
+ }
1309
+ return msg;
1310
+ };
1311
+
1312
+
1313
+ /**
1314
+ * Serializes the message to binary data (in protobuf wire format).
1315
+ * @return {!Uint8Array}
1316
+ */
1317
+ proto.Spic.AlarmProto.Event.prototype.serializeBinary = function() {
1318
+ var writer = new jspb.BinaryWriter();
1319
+ proto.Spic.AlarmProto.Event.serializeBinaryToWriter(this, writer);
1320
+ return writer.getResultBuffer();
1321
+ };
1322
+
1323
+
1324
+ /**
1325
+ * Serializes the given message to binary data (in protobuf wire
1326
+ * format), writing to the given BinaryWriter.
1327
+ * @param {!proto.Spic.AlarmProto.Event} message
1328
+ * @param {!jspb.BinaryWriter} writer
1329
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1330
+ */
1331
+ proto.Spic.AlarmProto.Event.serializeBinaryToWriter = function(message, writer) {
1332
+ var f = undefined;
1333
+ f = message.getId();
1334
+ if (f !== 0) {
1335
+ writer.writeInt64(
1336
+ 1,
1337
+ f
1338
+ );
1339
+ }
1340
+ f = message.getAssetId();
1341
+ if (f !== 0) {
1342
+ writer.writeInt64(
1343
+ 2,
1344
+ f
1345
+ );
1346
+ }
1347
+ f = message.getAlarmId();
1348
+ if (f !== 0) {
1349
+ writer.writeInt64(
1350
+ 3,
1351
+ f
1352
+ );
1353
+ }
1354
+ f = message.getStartDate();
1355
+ if (f != null) {
1356
+ writer.writeMessage(
1357
+ 4,
1358
+ f,
1359
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1360
+ );
1361
+ }
1362
+ f = message.getEndDate();
1363
+ if (f != null) {
1364
+ writer.writeMessage(
1365
+ 5,
1366
+ f,
1367
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1368
+ );
1369
+ }
1370
+ f = message.getComponentId();
1371
+ if (f.length > 0) {
1372
+ writer.writeString(
1373
+ 6,
1374
+ f
1375
+ );
1376
+ }
1377
+ f = message.getDetail();
1378
+ if (f.length > 0) {
1379
+ writer.writeString(
1380
+ 7,
1381
+ f
1382
+ );
1383
+ }
1384
+ f = message.getStatus();
1385
+ if (f !== 0.0) {
1386
+ writer.writeEnum(
1387
+ 8,
1388
+ f
1389
+ );
1390
+ }
1391
+ };
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1398
+ /**
1399
+ * Creates an object representation of this proto.
1400
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1401
+ * Optional fields that are not set will be set to undefined.
1402
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1403
+ * For the list of reserved names please see:
1404
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1405
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1406
+ * JSPB instance for transitional soy proto support:
1407
+ * http://goto/soy-param-migration
1408
+ * @return {!Object}
1409
+ */
1410
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.toObject = function(opt_includeInstance) {
1411
+ return proto.Spic.AlarmProto.Event.SearchRequest.toObject(opt_includeInstance, this);
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * Static version of the {@see toObject} method.
1417
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1418
+ * the JSPB instance for transitional soy proto support:
1419
+ * http://goto/soy-param-migration
1420
+ * @param {!proto.Spic.AlarmProto.Event.SearchRequest} msg The msg instance to transform.
1421
+ * @return {!Object}
1422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1423
+ */
1424
+ proto.Spic.AlarmProto.Event.SearchRequest.toObject = function(includeInstance, msg) {
1425
+ var f, obj = {
1426
+ assetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1427
+ alarmId: jspb.Message.getFieldWithDefault(msg, 2, 0),
1428
+ componentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1429
+ page: jspb.Message.getFieldWithDefault(msg, 4, 0),
1430
+ count: jspb.Message.getFieldWithDefault(msg, 5, 0),
1431
+ descorder: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
1432
+ dateFrom: (f = msg.getDateFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1433
+ dateTo: (f = msg.getDateTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1434
+ resolved: jspb.Message.getFieldWithDefault(msg, 9, 0)
1435
+ };
1436
+
1437
+ if (includeInstance) {
1438
+ obj.$jspbMessageInstance = msg;
1439
+ }
1440
+ return obj;
1441
+ };
1442
+ }
1443
+
1444
+
1445
+ /**
1446
+ * Deserializes binary data (in protobuf wire format).
1447
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1448
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest}
1449
+ */
1450
+ proto.Spic.AlarmProto.Event.SearchRequest.deserializeBinary = function(bytes) {
1451
+ var reader = new jspb.BinaryReader(bytes);
1452
+ var msg = new proto.Spic.AlarmProto.Event.SearchRequest;
1453
+ return proto.Spic.AlarmProto.Event.SearchRequest.deserializeBinaryFromReader(msg, reader);
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * Deserializes binary data (in protobuf wire format) from the
1459
+ * given reader into the given message object.
1460
+ * @param {!proto.Spic.AlarmProto.Event.SearchRequest} msg The message object to deserialize into.
1461
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1462
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest}
1463
+ */
1464
+ proto.Spic.AlarmProto.Event.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1465
+ while (reader.nextField()) {
1466
+ if (reader.isEndGroup()) {
1467
+ break;
1468
+ }
1469
+ var field = reader.getFieldNumber();
1470
+ switch (field) {
1471
+ case 1:
1472
+ var value = /** @type {number} */ (reader.readInt64());
1473
+ msg.setAssetId(value);
1474
+ break;
1475
+ case 2:
1476
+ var value = /** @type {number} */ (reader.readInt64());
1477
+ msg.setAlarmId(value);
1478
+ break;
1479
+ case 3:
1480
+ var value = /** @type {string} */ (reader.readString());
1481
+ msg.setComponentId(value);
1482
+ break;
1483
+ case 4:
1484
+ var value = /** @type {number} */ (reader.readInt32());
1485
+ msg.setPage(value);
1486
+ break;
1487
+ case 5:
1488
+ var value = /** @type {number} */ (reader.readInt32());
1489
+ msg.setCount(value);
1490
+ break;
1491
+ case 6:
1492
+ var value = /** @type {boolean} */ (reader.readBool());
1493
+ msg.setDescorder(value);
1494
+ break;
1495
+ case 7:
1496
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1497
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1498
+ msg.setDateFrom(value);
1499
+ break;
1500
+ case 8:
1501
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1502
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1503
+ msg.setDateTo(value);
1504
+ break;
1505
+ case 9:
1506
+ var value = /** @type {!proto.Platform.BooleanFilterType} */ (reader.readEnum());
1507
+ msg.setResolved(value);
1508
+ break;
1509
+ default:
1510
+ reader.skipField();
1511
+ break;
1512
+ }
1513
+ }
1514
+ return msg;
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * Serializes the message to binary data (in protobuf wire format).
1520
+ * @return {!Uint8Array}
1521
+ */
1522
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.serializeBinary = function() {
1523
+ var writer = new jspb.BinaryWriter();
1524
+ proto.Spic.AlarmProto.Event.SearchRequest.serializeBinaryToWriter(this, writer);
1525
+ return writer.getResultBuffer();
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * Serializes the given message to binary data (in protobuf wire
1531
+ * format), writing to the given BinaryWriter.
1532
+ * @param {!proto.Spic.AlarmProto.Event.SearchRequest} message
1533
+ * @param {!jspb.BinaryWriter} writer
1534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1535
+ */
1536
+ proto.Spic.AlarmProto.Event.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1537
+ var f = undefined;
1538
+ f = message.getAssetId();
1539
+ if (f !== 0) {
1540
+ writer.writeInt64(
1541
+ 1,
1542
+ f
1543
+ );
1544
+ }
1545
+ f = message.getAlarmId();
1546
+ if (f !== 0) {
1547
+ writer.writeInt64(
1548
+ 2,
1549
+ f
1550
+ );
1551
+ }
1552
+ f = message.getComponentId();
1553
+ if (f.length > 0) {
1554
+ writer.writeString(
1555
+ 3,
1556
+ f
1557
+ );
1558
+ }
1559
+ f = message.getPage();
1560
+ if (f !== 0) {
1561
+ writer.writeInt32(
1562
+ 4,
1563
+ f
1564
+ );
1565
+ }
1566
+ f = message.getCount();
1567
+ if (f !== 0) {
1568
+ writer.writeInt32(
1569
+ 5,
1570
+ f
1571
+ );
1572
+ }
1573
+ f = message.getDescorder();
1574
+ if (f) {
1575
+ writer.writeBool(
1576
+ 6,
1577
+ f
1578
+ );
1579
+ }
1580
+ f = message.getDateFrom();
1581
+ if (f != null) {
1582
+ writer.writeMessage(
1583
+ 7,
1584
+ f,
1585
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1586
+ );
1587
+ }
1588
+ f = message.getDateTo();
1589
+ if (f != null) {
1590
+ writer.writeMessage(
1591
+ 8,
1592
+ f,
1593
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1594
+ );
1595
+ }
1596
+ f = message.getResolved();
1597
+ if (f !== 0.0) {
1598
+ writer.writeEnum(
1599
+ 9,
1600
+ f
1601
+ );
1602
+ }
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * optional int64 asset_id = 1;
1608
+ * @return {number}
1609
+ */
1610
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getAssetId = function() {
1611
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1612
+ };
1613
+
1614
+
1615
+ /**
1616
+ * @param {number} value
1617
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1618
+ */
1619
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setAssetId = function(value) {
1620
+ return jspb.Message.setProto3IntField(this, 1, value);
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * optional int64 alarm_id = 2;
1626
+ * @return {number}
1627
+ */
1628
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getAlarmId = function() {
1629
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * @param {number} value
1635
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1636
+ */
1637
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setAlarmId = function(value) {
1638
+ return jspb.Message.setProto3IntField(this, 2, value);
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * optional string component_id = 3;
1644
+ * @return {string}
1645
+ */
1646
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getComponentId = function() {
1647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * @param {string} value
1653
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1654
+ */
1655
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setComponentId = function(value) {
1656
+ return jspb.Message.setProto3StringField(this, 3, value);
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * optional int32 page = 4;
1662
+ * @return {number}
1663
+ */
1664
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getPage = function() {
1665
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * @param {number} value
1671
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1672
+ */
1673
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setPage = function(value) {
1674
+ return jspb.Message.setProto3IntField(this, 4, value);
1675
+ };
1676
+
1677
+
1678
+ /**
1679
+ * optional int32 count = 5;
1680
+ * @return {number}
1681
+ */
1682
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getCount = function() {
1683
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1684
+ };
1685
+
1686
+
1687
+ /**
1688
+ * @param {number} value
1689
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1690
+ */
1691
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setCount = function(value) {
1692
+ return jspb.Message.setProto3IntField(this, 5, value);
1693
+ };
1694
+
1695
+
1696
+ /**
1697
+ * optional bool descOrder = 6;
1698
+ * @return {boolean}
1699
+ */
1700
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getDescorder = function() {
1701
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1702
+ };
1703
+
1704
+
1705
+ /**
1706
+ * @param {boolean} value
1707
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1708
+ */
1709
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setDescorder = function(value) {
1710
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1711
+ };
1712
+
1713
+
1714
+ /**
1715
+ * optional google.protobuf.Timestamp date_from = 7;
1716
+ * @return {?proto.google.protobuf.Timestamp}
1717
+ */
1718
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getDateFrom = function() {
1719
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1720
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
1721
+ };
1722
+
1723
+
1724
+ /**
1725
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1726
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1727
+ */
1728
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setDateFrom = function(value) {
1729
+ return jspb.Message.setWrapperField(this, 7, value);
1730
+ };
1731
+
1732
+
1733
+ /**
1734
+ * Clears the message field making it undefined.
1735
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1736
+ */
1737
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.clearDateFrom = function() {
1738
+ return this.setDateFrom(undefined);
1739
+ };
1740
+
1741
+
1742
+ /**
1743
+ * Returns whether this field is set.
1744
+ * @return {boolean}
1745
+ */
1746
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.hasDateFrom = function() {
1747
+ return jspb.Message.getField(this, 7) != null;
1748
+ };
1749
+
1750
+
1751
+ /**
1752
+ * optional google.protobuf.Timestamp date_to = 8;
1753
+ * @return {?proto.google.protobuf.Timestamp}
1754
+ */
1755
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getDateTo = function() {
1756
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1757
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
1758
+ };
1759
+
1760
+
1761
+ /**
1762
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1763
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1764
+ */
1765
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setDateTo = function(value) {
1766
+ return jspb.Message.setWrapperField(this, 8, value);
1767
+ };
1768
+
1769
+
1770
+ /**
1771
+ * Clears the message field making it undefined.
1772
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1773
+ */
1774
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.clearDateTo = function() {
1775
+ return this.setDateTo(undefined);
1776
+ };
1777
+
1778
+
1779
+ /**
1780
+ * Returns whether this field is set.
1781
+ * @return {boolean}
1782
+ */
1783
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.hasDateTo = function() {
1784
+ return jspb.Message.getField(this, 8) != null;
1785
+ };
1786
+
1787
+
1788
+ /**
1789
+ * optional Platform.BooleanFilterType resolved = 9;
1790
+ * @return {!proto.Platform.BooleanFilterType}
1791
+ */
1792
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.getResolved = function() {
1793
+ return /** @type {!proto.Platform.BooleanFilterType} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1794
+ };
1795
+
1796
+
1797
+ /**
1798
+ * @param {!proto.Platform.BooleanFilterType} value
1799
+ * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1800
+ */
1801
+ proto.Spic.AlarmProto.Event.SearchRequest.prototype.setResolved = function(value) {
1802
+ return jspb.Message.setProto3EnumField(this, 9, value);
1803
+ };
1804
+
1805
+
1806
+
1807
+ /**
1808
+ * List of repeated fields within this message type.
1809
+ * @private {!Array<number>}
1810
+ * @const
1811
+ */
1812
+ proto.Spic.AlarmProto.Event.SearchReply.repeatedFields_ = [1];
1813
+
1814
+
1815
+
1816
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1817
+ /**
1818
+ * Creates an object representation of this proto.
1819
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1820
+ * Optional fields that are not set will be set to undefined.
1821
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1822
+ * For the list of reserved names please see:
1823
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1824
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1825
+ * JSPB instance for transitional soy proto support:
1826
+ * http://goto/soy-param-migration
1827
+ * @return {!Object}
1828
+ */
1829
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.toObject = function(opt_includeInstance) {
1830
+ return proto.Spic.AlarmProto.Event.SearchReply.toObject(opt_includeInstance, this);
1831
+ };
1832
+
1833
+
1834
+ /**
1835
+ * Static version of the {@see toObject} method.
1836
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1837
+ * the JSPB instance for transitional soy proto support:
1838
+ * http://goto/soy-param-migration
1839
+ * @param {!proto.Spic.AlarmProto.Event.SearchReply} msg The msg instance to transform.
1840
+ * @return {!Object}
1841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1842
+ */
1843
+ proto.Spic.AlarmProto.Event.SearchReply.toObject = function(includeInstance, msg) {
1844
+ var f, obj = {
1845
+ eventsList: jspb.Message.toObjectList(msg.getEventsList(),
1846
+ proto.Spic.AlarmProto.Event.toObject, includeInstance),
1847
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1848
+ };
1849
+
1850
+ if (includeInstance) {
1851
+ obj.$jspbMessageInstance = msg;
1852
+ }
1853
+ return obj;
1854
+ };
1855
+ }
1856
+
1857
+
1858
+ /**
1859
+ * Deserializes binary data (in protobuf wire format).
1860
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1861
+ * @return {!proto.Spic.AlarmProto.Event.SearchReply}
1862
+ */
1863
+ proto.Spic.AlarmProto.Event.SearchReply.deserializeBinary = function(bytes) {
1864
+ var reader = new jspb.BinaryReader(bytes);
1865
+ var msg = new proto.Spic.AlarmProto.Event.SearchReply;
1866
+ return proto.Spic.AlarmProto.Event.SearchReply.deserializeBinaryFromReader(msg, reader);
1867
+ };
1868
+
1869
+
1870
+ /**
1871
+ * Deserializes binary data (in protobuf wire format) from the
1872
+ * given reader into the given message object.
1873
+ * @param {!proto.Spic.AlarmProto.Event.SearchReply} msg The message object to deserialize into.
1874
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1875
+ * @return {!proto.Spic.AlarmProto.Event.SearchReply}
1876
+ */
1877
+ proto.Spic.AlarmProto.Event.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1878
+ while (reader.nextField()) {
1879
+ if (reader.isEndGroup()) {
1880
+ break;
1881
+ }
1882
+ var field = reader.getFieldNumber();
1883
+ switch (field) {
1884
+ case 1:
1885
+ var value = new proto.Spic.AlarmProto.Event;
1886
+ reader.readMessage(value,proto.Spic.AlarmProto.Event.deserializeBinaryFromReader);
1887
+ msg.addEvents(value);
1888
+ break;
1889
+ case 2:
1890
+ var value = new platform_pagination_pb.PaginationProto;
1891
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1892
+ msg.setPagination(value);
1893
+ break;
1894
+ default:
1895
+ reader.skipField();
1896
+ break;
1897
+ }
1898
+ }
1899
+ return msg;
1900
+ };
1901
+
1902
+
1903
+ /**
1904
+ * Serializes the message to binary data (in protobuf wire format).
1905
+ * @return {!Uint8Array}
1906
+ */
1907
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.serializeBinary = function() {
1908
+ var writer = new jspb.BinaryWriter();
1909
+ proto.Spic.AlarmProto.Event.SearchReply.serializeBinaryToWriter(this, writer);
1910
+ return writer.getResultBuffer();
1911
+ };
1912
+
1913
+
1914
+ /**
1915
+ * Serializes the given message to binary data (in protobuf wire
1916
+ * format), writing to the given BinaryWriter.
1917
+ * @param {!proto.Spic.AlarmProto.Event.SearchReply} message
1918
+ * @param {!jspb.BinaryWriter} writer
1919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1920
+ */
1921
+ proto.Spic.AlarmProto.Event.SearchReply.serializeBinaryToWriter = function(message, writer) {
1922
+ var f = undefined;
1923
+ f = message.getEventsList();
1924
+ if (f.length > 0) {
1925
+ writer.writeRepeatedMessage(
1926
+ 1,
1927
+ f,
1928
+ proto.Spic.AlarmProto.Event.serializeBinaryToWriter
1929
+ );
1930
+ }
1931
+ f = message.getPagination();
1932
+ if (f != null) {
1933
+ writer.writeMessage(
1934
+ 2,
1935
+ f,
1936
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1937
+ );
1938
+ }
1939
+ };
1940
+
1941
+
1942
+ /**
1943
+ * repeated Event events = 1;
1944
+ * @return {!Array<!proto.Spic.AlarmProto.Event>}
1945
+ */
1946
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.getEventsList = function() {
1947
+ return /** @type{!Array<!proto.Spic.AlarmProto.Event>} */ (
1948
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AlarmProto.Event, 1));
1949
+ };
1950
+
1951
+
1952
+ /**
1953
+ * @param {!Array<!proto.Spic.AlarmProto.Event>} value
1954
+ * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
1955
+ */
1956
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.setEventsList = function(value) {
1957
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1958
+ };
1959
+
1960
+
1961
+ /**
1962
+ * @param {!proto.Spic.AlarmProto.Event=} opt_value
1963
+ * @param {number=} opt_index
1964
+ * @return {!proto.Spic.AlarmProto.Event}
1965
+ */
1966
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.addEvents = function(opt_value, opt_index) {
1967
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.AlarmProto.Event, opt_index);
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * Clears the list making it empty but non-null.
1973
+ * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
1974
+ */
1975
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.clearEventsList = function() {
1976
+ return this.setEventsList([]);
1977
+ };
1978
+
1979
+
1980
+ /**
1981
+ * optional Platform.PaginationProto pagination = 2;
1982
+ * @return {?proto.Platform.PaginationProto}
1983
+ */
1984
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.getPagination = function() {
1985
+ return /** @type{?proto.Platform.PaginationProto} */ (
1986
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1987
+ };
1988
+
1989
+
1990
+ /**
1991
+ * @param {?proto.Platform.PaginationProto|undefined} value
1992
+ * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
1993
+ */
1994
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.setPagination = function(value) {
1995
+ return jspb.Message.setWrapperField(this, 2, value);
1996
+ };
1997
+
1998
+
1999
+ /**
2000
+ * Clears the message field making it undefined.
2001
+ * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
2002
+ */
2003
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.clearPagination = function() {
2004
+ return this.setPagination(undefined);
2005
+ };
2006
+
2007
+
2008
+ /**
2009
+ * Returns whether this field is set.
2010
+ * @return {boolean}
2011
+ */
2012
+ proto.Spic.AlarmProto.Event.SearchReply.prototype.hasPagination = function() {
2013
+ return jspb.Message.getField(this, 2) != null;
2014
+ };
2015
+
2016
+
2017
+ /**
2018
+ * optional int64 id = 1;
2019
+ * @return {number}
2020
+ */
2021
+ proto.Spic.AlarmProto.Event.prototype.getId = function() {
2022
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2023
+ };
2024
+
2025
+
2026
+ /**
2027
+ * @param {number} value
2028
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2029
+ */
2030
+ proto.Spic.AlarmProto.Event.prototype.setId = function(value) {
2031
+ return jspb.Message.setProto3IntField(this, 1, value);
2032
+ };
2033
+
2034
+
2035
+ /**
2036
+ * optional int64 asset_id = 2;
2037
+ * @return {number}
2038
+ */
2039
+ proto.Spic.AlarmProto.Event.prototype.getAssetId = function() {
2040
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2041
+ };
2042
+
2043
+
2044
+ /**
2045
+ * @param {number} value
2046
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2047
+ */
2048
+ proto.Spic.AlarmProto.Event.prototype.setAssetId = function(value) {
2049
+ return jspb.Message.setProto3IntField(this, 2, value);
2050
+ };
2051
+
2052
+
2053
+ /**
2054
+ * optional int64 alarm_id = 3;
2055
+ * @return {number}
2056
+ */
2057
+ proto.Spic.AlarmProto.Event.prototype.getAlarmId = function() {
2058
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * @param {number} value
2064
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2065
+ */
2066
+ proto.Spic.AlarmProto.Event.prototype.setAlarmId = function(value) {
2067
+ return jspb.Message.setProto3IntField(this, 3, value);
2068
+ };
2069
+
2070
+
2071
+ /**
2072
+ * optional google.protobuf.Timestamp start_date = 4;
2073
+ * @return {?proto.google.protobuf.Timestamp}
2074
+ */
2075
+ proto.Spic.AlarmProto.Event.prototype.getStartDate = function() {
2076
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2077
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2078
+ };
2079
+
2080
+
2081
+ /**
2082
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2083
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2084
+ */
2085
+ proto.Spic.AlarmProto.Event.prototype.setStartDate = function(value) {
2086
+ return jspb.Message.setWrapperField(this, 4, value);
2087
+ };
2088
+
2089
+
2090
+ /**
2091
+ * Clears the message field making it undefined.
2092
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2093
+ */
2094
+ proto.Spic.AlarmProto.Event.prototype.clearStartDate = function() {
2095
+ return this.setStartDate(undefined);
2096
+ };
2097
+
2098
+
2099
+ /**
2100
+ * Returns whether this field is set.
2101
+ * @return {boolean}
2102
+ */
2103
+ proto.Spic.AlarmProto.Event.prototype.hasStartDate = function() {
2104
+ return jspb.Message.getField(this, 4) != null;
2105
+ };
2106
+
2107
+
2108
+ /**
2109
+ * optional google.protobuf.Timestamp end_date = 5;
2110
+ * @return {?proto.google.protobuf.Timestamp}
2111
+ */
2112
+ proto.Spic.AlarmProto.Event.prototype.getEndDate = function() {
2113
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2114
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2115
+ };
2116
+
2117
+
2118
+ /**
2119
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2120
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2121
+ */
2122
+ proto.Spic.AlarmProto.Event.prototype.setEndDate = function(value) {
2123
+ return jspb.Message.setWrapperField(this, 5, value);
2124
+ };
2125
+
2126
+
2127
+ /**
2128
+ * Clears the message field making it undefined.
2129
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2130
+ */
2131
+ proto.Spic.AlarmProto.Event.prototype.clearEndDate = function() {
2132
+ return this.setEndDate(undefined);
2133
+ };
2134
+
2135
+
2136
+ /**
2137
+ * Returns whether this field is set.
2138
+ * @return {boolean}
2139
+ */
2140
+ proto.Spic.AlarmProto.Event.prototype.hasEndDate = function() {
2141
+ return jspb.Message.getField(this, 5) != null;
2142
+ };
2143
+
2144
+
2145
+ /**
2146
+ * optional string component_id = 6;
2147
+ * @return {string}
2148
+ */
2149
+ proto.Spic.AlarmProto.Event.prototype.getComponentId = function() {
2150
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2151
+ };
2152
+
2153
+
2154
+ /**
2155
+ * @param {string} value
2156
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2157
+ */
2158
+ proto.Spic.AlarmProto.Event.prototype.setComponentId = function(value) {
2159
+ return jspb.Message.setProto3StringField(this, 6, value);
2160
+ };
2161
+
2162
+
2163
+ /**
2164
+ * optional string detail = 7;
2165
+ * @return {string}
2166
+ */
2167
+ proto.Spic.AlarmProto.Event.prototype.getDetail = function() {
2168
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2169
+ };
2170
+
2171
+
2172
+ /**
2173
+ * @param {string} value
2174
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2175
+ */
2176
+ proto.Spic.AlarmProto.Event.prototype.setDetail = function(value) {
2177
+ return jspb.Message.setProto3StringField(this, 7, value);
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * optional AlertPriorityType status = 8;
2183
+ * @return {!proto.Spic.AlarmProto.AlertPriorityType}
2184
+ */
2185
+ proto.Spic.AlarmProto.Event.prototype.getStatus = function() {
2186
+ return /** @type {!proto.Spic.AlarmProto.AlertPriorityType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * @param {!proto.Spic.AlarmProto.AlertPriorityType} value
2192
+ * @return {!proto.Spic.AlarmProto.Event} returns this
2193
+ */
2194
+ proto.Spic.AlarmProto.Event.prototype.setStatus = function(value) {
2195
+ return jspb.Message.setProto3EnumField(this, 8, value);
2196
+ };
2197
+
2198
+
2199
+
2200
+
2201
+
2202
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2203
+ /**
2204
+ * Creates an object representation of this proto.
2205
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2206
+ * Optional fields that are not set will be set to undefined.
2207
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2208
+ * For the list of reserved names please see:
2209
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2210
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2211
+ * JSPB instance for transitional soy proto support:
2212
+ * http://goto/soy-param-migration
2213
+ * @return {!Object}
2214
+ */
2215
+ proto.Spic.AlarmProto.AlarmAction.prototype.toObject = function(opt_includeInstance) {
2216
+ return proto.Spic.AlarmProto.AlarmAction.toObject(opt_includeInstance, this);
2217
+ };
2218
+
2219
+
2220
+ /**
2221
+ * Static version of the {@see toObject} method.
2222
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2223
+ * the JSPB instance for transitional soy proto support:
2224
+ * http://goto/soy-param-migration
2225
+ * @param {!proto.Spic.AlarmProto.AlarmAction} msg The msg instance to transform.
2226
+ * @return {!Object}
2227
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2228
+ */
2229
+ proto.Spic.AlarmProto.AlarmAction.toObject = function(includeInstance, msg) {
2230
+ var f, obj = {
2231
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2232
+ alarmId: jspb.Message.getFieldWithDefault(msg, 2, 0),
2233
+ detail: jspb.Message.getFieldWithDefault(msg, 3, ""),
2234
+ authAccountId: jspb.Message.getFieldWithDefault(msg, 4, 0),
2235
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2236
+ };
2237
+
2238
+ if (includeInstance) {
2239
+ obj.$jspbMessageInstance = msg;
2240
+ }
2241
+ return obj;
2242
+ };
2243
+ }
2244
+
2245
+
2246
+ /**
2247
+ * Deserializes binary data (in protobuf wire format).
2248
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2249
+ * @return {!proto.Spic.AlarmProto.AlarmAction}
2250
+ */
2251
+ proto.Spic.AlarmProto.AlarmAction.deserializeBinary = function(bytes) {
2252
+ var reader = new jspb.BinaryReader(bytes);
2253
+ var msg = new proto.Spic.AlarmProto.AlarmAction;
2254
+ return proto.Spic.AlarmProto.AlarmAction.deserializeBinaryFromReader(msg, reader);
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * Deserializes binary data (in protobuf wire format) from the
2260
+ * given reader into the given message object.
2261
+ * @param {!proto.Spic.AlarmProto.AlarmAction} msg The message object to deserialize into.
2262
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2263
+ * @return {!proto.Spic.AlarmProto.AlarmAction}
2264
+ */
2265
+ proto.Spic.AlarmProto.AlarmAction.deserializeBinaryFromReader = function(msg, reader) {
2266
+ while (reader.nextField()) {
2267
+ if (reader.isEndGroup()) {
2268
+ break;
2269
+ }
2270
+ var field = reader.getFieldNumber();
2271
+ switch (field) {
2272
+ case 1:
2273
+ var value = /** @type {number} */ (reader.readInt64());
2274
+ msg.setId(value);
2275
+ break;
2276
+ case 2:
2277
+ var value = /** @type {number} */ (reader.readInt64());
2278
+ msg.setAlarmId(value);
2279
+ break;
2280
+ case 3:
2281
+ var value = /** @type {string} */ (reader.readString());
2282
+ msg.setDetail(value);
2283
+ break;
2284
+ case 4:
2285
+ var value = /** @type {number} */ (reader.readInt64());
2286
+ msg.setAuthAccountId(value);
2287
+ break;
2288
+ case 5:
2289
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2290
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2291
+ msg.setCreated(value);
2292
+ break;
2293
+ default:
2294
+ reader.skipField();
2295
+ break;
2296
+ }
2297
+ }
2298
+ return msg;
2299
+ };
2300
+
2301
+
2302
+ /**
2303
+ * Serializes the message to binary data (in protobuf wire format).
2304
+ * @return {!Uint8Array}
2305
+ */
2306
+ proto.Spic.AlarmProto.AlarmAction.prototype.serializeBinary = function() {
2307
+ var writer = new jspb.BinaryWriter();
2308
+ proto.Spic.AlarmProto.AlarmAction.serializeBinaryToWriter(this, writer);
2309
+ return writer.getResultBuffer();
2310
+ };
2311
+
2312
+
2313
+ /**
2314
+ * Serializes the given message to binary data (in protobuf wire
2315
+ * format), writing to the given BinaryWriter.
2316
+ * @param {!proto.Spic.AlarmProto.AlarmAction} message
2317
+ * @param {!jspb.BinaryWriter} writer
2318
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2319
+ */
2320
+ proto.Spic.AlarmProto.AlarmAction.serializeBinaryToWriter = function(message, writer) {
2321
+ var f = undefined;
2322
+ f = message.getId();
2323
+ if (f !== 0) {
2324
+ writer.writeInt64(
2325
+ 1,
2326
+ f
2327
+ );
2328
+ }
2329
+ f = message.getAlarmId();
2330
+ if (f !== 0) {
2331
+ writer.writeInt64(
2332
+ 2,
2333
+ f
2334
+ );
2335
+ }
2336
+ f = message.getDetail();
2337
+ if (f.length > 0) {
2338
+ writer.writeString(
2339
+ 3,
2340
+ f
2341
+ );
2342
+ }
2343
+ f = message.getAuthAccountId();
2344
+ if (f !== 0) {
2345
+ writer.writeInt64(
2346
+ 4,
2347
+ f
2348
+ );
2349
+ }
2350
+ f = message.getCreated();
2351
+ if (f != null) {
2352
+ writer.writeMessage(
2353
+ 5,
2354
+ f,
2355
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2356
+ );
2357
+ }
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * optional int64 id = 1;
2363
+ * @return {number}
2364
+ */
2365
+ proto.Spic.AlarmProto.AlarmAction.prototype.getId = function() {
2366
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2367
+ };
2368
+
2369
+
2370
+ /**
2371
+ * @param {number} value
2372
+ * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2373
+ */
2374
+ proto.Spic.AlarmProto.AlarmAction.prototype.setId = function(value) {
2375
+ return jspb.Message.setProto3IntField(this, 1, value);
2376
+ };
2377
+
2378
+
2379
+ /**
2380
+ * optional int64 alarm_id = 2;
2381
+ * @return {number}
2382
+ */
2383
+ proto.Spic.AlarmProto.AlarmAction.prototype.getAlarmId = function() {
2384
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2385
+ };
2386
+
2387
+
2388
+ /**
2389
+ * @param {number} value
2390
+ * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2391
+ */
2392
+ proto.Spic.AlarmProto.AlarmAction.prototype.setAlarmId = function(value) {
2393
+ return jspb.Message.setProto3IntField(this, 2, value);
2394
+ };
2395
+
2396
+
2397
+ /**
2398
+ * optional string detail = 3;
2399
+ * @return {string}
2400
+ */
2401
+ proto.Spic.AlarmProto.AlarmAction.prototype.getDetail = function() {
2402
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2403
+ };
2404
+
2405
+
2406
+ /**
2407
+ * @param {string} value
2408
+ * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2409
+ */
2410
+ proto.Spic.AlarmProto.AlarmAction.prototype.setDetail = function(value) {
2411
+ return jspb.Message.setProto3StringField(this, 3, value);
2412
+ };
2413
+
2414
+
2415
+ /**
2416
+ * optional int64 auth_account_id = 4;
2417
+ * @return {number}
2418
+ */
2419
+ proto.Spic.AlarmProto.AlarmAction.prototype.getAuthAccountId = function() {
2420
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2421
+ };
2422
+
2423
+
2424
+ /**
2425
+ * @param {number} value
2426
+ * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2427
+ */
2428
+ proto.Spic.AlarmProto.AlarmAction.prototype.setAuthAccountId = function(value) {
2429
+ return jspb.Message.setProto3IntField(this, 4, value);
2430
+ };
2431
+
2432
+
2433
+ /**
2434
+ * optional google.protobuf.Timestamp created = 5;
2435
+ * @return {?proto.google.protobuf.Timestamp}
2436
+ */
2437
+ proto.Spic.AlarmProto.AlarmAction.prototype.getCreated = function() {
2438
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2439
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2440
+ };
2441
+
2442
+
2443
+ /**
2444
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2445
+ * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2446
+ */
2447
+ proto.Spic.AlarmProto.AlarmAction.prototype.setCreated = function(value) {
2448
+ return jspb.Message.setWrapperField(this, 5, value);
2449
+ };
2450
+
2451
+
2452
+ /**
2453
+ * Clears the message field making it undefined.
2454
+ * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2455
+ */
2456
+ proto.Spic.AlarmProto.AlarmAction.prototype.clearCreated = function() {
2457
+ return this.setCreated(undefined);
2458
+ };
2459
+
2460
+
2461
+ /**
2462
+ * Returns whether this field is set.
2463
+ * @return {boolean}
2464
+ */
2465
+ proto.Spic.AlarmProto.AlarmAction.prototype.hasCreated = function() {
2466
+ return jspb.Message.getField(this, 5) != null;
2467
+ };
2468
+
2469
+
2470
+
2471
+
2472
+
2473
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2474
+ /**
2475
+ * Creates an object representation of this proto.
2476
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2477
+ * Optional fields that are not set will be set to undefined.
2478
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2479
+ * For the list of reserved names please see:
2480
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2481
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2482
+ * JSPB instance for transitional soy proto support:
2483
+ * http://goto/soy-param-migration
2484
+ * @return {!Object}
2485
+ */
2486
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.toObject = function(opt_includeInstance) {
2487
+ return proto.Spic.AlarmProto.AlarmChangedEvent.toObject(opt_includeInstance, this);
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * Static version of the {@see toObject} method.
2493
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2494
+ * the JSPB instance for transitional soy proto support:
2495
+ * http://goto/soy-param-migration
2496
+ * @param {!proto.Spic.AlarmProto.AlarmChangedEvent} msg The msg instance to transform.
2497
+ * @return {!Object}
2498
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2499
+ */
2500
+ proto.Spic.AlarmProto.AlarmChangedEvent.toObject = function(includeInstance, msg) {
2501
+ var f, obj = {
2502
+ alarm: (f = msg.getAlarm()) && proto.Spic.AlarmProto.toObject(includeInstance, f),
2503
+ alarmStateUpdated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
2504
+ groupId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2505
+ alarmResolved: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2506
+ };
2507
+
2508
+ if (includeInstance) {
2509
+ obj.$jspbMessageInstance = msg;
2510
+ }
2511
+ return obj;
2512
+ };
2513
+ }
2514
+
2515
+
2516
+ /**
2517
+ * Deserializes binary data (in protobuf wire format).
2518
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2519
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent}
2520
+ */
2521
+ proto.Spic.AlarmProto.AlarmChangedEvent.deserializeBinary = function(bytes) {
2522
+ var reader = new jspb.BinaryReader(bytes);
2523
+ var msg = new proto.Spic.AlarmProto.AlarmChangedEvent;
2524
+ return proto.Spic.AlarmProto.AlarmChangedEvent.deserializeBinaryFromReader(msg, reader);
2525
+ };
2526
+
2527
+
2528
+ /**
2529
+ * Deserializes binary data (in protobuf wire format) from the
2530
+ * given reader into the given message object.
2531
+ * @param {!proto.Spic.AlarmProto.AlarmChangedEvent} msg The message object to deserialize into.
2532
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2533
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent}
2534
+ */
2535
+ proto.Spic.AlarmProto.AlarmChangedEvent.deserializeBinaryFromReader = function(msg, reader) {
2536
+ while (reader.nextField()) {
2537
+ if (reader.isEndGroup()) {
2538
+ break;
2539
+ }
2540
+ var field = reader.getFieldNumber();
2541
+ switch (field) {
2542
+ case 1:
2543
+ var value = new proto.Spic.AlarmProto;
2544
+ reader.readMessage(value,proto.Spic.AlarmProto.deserializeBinaryFromReader);
2545
+ msg.setAlarm(value);
2546
+ break;
2547
+ case 2:
2548
+ var value = /** @type {boolean} */ (reader.readBool());
2549
+ msg.setAlarmStateUpdated(value);
2550
+ break;
2551
+ case 3:
2552
+ var value = /** @type {string} */ (reader.readString());
2553
+ msg.setGroupId(value);
2554
+ break;
2555
+ case 4:
2556
+ var value = /** @type {boolean} */ (reader.readBool());
2557
+ msg.setAlarmResolved(value);
2558
+ break;
2559
+ default:
2560
+ reader.skipField();
2561
+ break;
2562
+ }
2563
+ }
2564
+ return msg;
2565
+ };
2566
+
2567
+
2568
+ /**
2569
+ * Serializes the message to binary data (in protobuf wire format).
2570
+ * @return {!Uint8Array}
2571
+ */
2572
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.serializeBinary = function() {
2573
+ var writer = new jspb.BinaryWriter();
2574
+ proto.Spic.AlarmProto.AlarmChangedEvent.serializeBinaryToWriter(this, writer);
2575
+ return writer.getResultBuffer();
2576
+ };
2577
+
2578
+
2579
+ /**
2580
+ * Serializes the given message to binary data (in protobuf wire
2581
+ * format), writing to the given BinaryWriter.
2582
+ * @param {!proto.Spic.AlarmProto.AlarmChangedEvent} message
2583
+ * @param {!jspb.BinaryWriter} writer
2584
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2585
+ */
2586
+ proto.Spic.AlarmProto.AlarmChangedEvent.serializeBinaryToWriter = function(message, writer) {
2587
+ var f = undefined;
2588
+ f = message.getAlarm();
2589
+ if (f != null) {
2590
+ writer.writeMessage(
2591
+ 1,
2592
+ f,
2593
+ proto.Spic.AlarmProto.serializeBinaryToWriter
2594
+ );
2595
+ }
2596
+ f = message.getAlarmStateUpdated();
2597
+ if (f) {
2598
+ writer.writeBool(
2599
+ 2,
2600
+ f
2601
+ );
2602
+ }
2603
+ f = message.getGroupId();
2604
+ if (f.length > 0) {
2605
+ writer.writeString(
2606
+ 3,
2607
+ f
2608
+ );
2609
+ }
2610
+ f = message.getAlarmResolved();
2611
+ if (f) {
2612
+ writer.writeBool(
2613
+ 4,
2614
+ f
2615
+ );
2616
+ }
2617
+ };
2618
+
2619
+
2620
+ /**
2621
+ * optional AlarmProto alarm = 1;
2622
+ * @return {?proto.Spic.AlarmProto}
2623
+ */
2624
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.getAlarm = function() {
2625
+ return /** @type{?proto.Spic.AlarmProto} */ (
2626
+ jspb.Message.getWrapperField(this, proto.Spic.AlarmProto, 1));
2627
+ };
2628
+
2629
+
2630
+ /**
2631
+ * @param {?proto.Spic.AlarmProto|undefined} value
2632
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2633
+ */
2634
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.setAlarm = function(value) {
2635
+ return jspb.Message.setWrapperField(this, 1, value);
2636
+ };
2637
+
2638
+
2639
+ /**
2640
+ * Clears the message field making it undefined.
2641
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2642
+ */
2643
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.clearAlarm = function() {
2644
+ return this.setAlarm(undefined);
2645
+ };
2646
+
2647
+
2648
+ /**
2649
+ * Returns whether this field is set.
2650
+ * @return {boolean}
2651
+ */
2652
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.hasAlarm = function() {
2653
+ return jspb.Message.getField(this, 1) != null;
2654
+ };
2655
+
2656
+
2657
+ /**
2658
+ * optional bool alarm_state_updated = 2;
2659
+ * @return {boolean}
2660
+ */
2661
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.getAlarmStateUpdated = function() {
2662
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
2663
+ };
2664
+
2665
+
2666
+ /**
2667
+ * @param {boolean} value
2668
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2669
+ */
2670
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.setAlarmStateUpdated = function(value) {
2671
+ return jspb.Message.setProto3BooleanField(this, 2, value);
2672
+ };
2673
+
2674
+
2675
+ /**
2676
+ * optional string group_id = 3;
2677
+ * @return {string}
2678
+ */
2679
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.getGroupId = function() {
2680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2681
+ };
2682
+
2683
+
2684
+ /**
2685
+ * @param {string} value
2686
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2687
+ */
2688
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.setGroupId = function(value) {
2689
+ return jspb.Message.setProto3StringField(this, 3, value);
2690
+ };
2691
+
2692
+
2693
+ /**
2694
+ * optional bool alarm_resolved = 4;
2695
+ * @return {boolean}
2696
+ */
2697
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.getAlarmResolved = function() {
2698
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2699
+ };
2700
+
2701
+
2702
+ /**
2703
+ * @param {boolean} value
2704
+ * @return {!proto.Spic.AlarmProto.AlarmChangedEvent} returns this
2705
+ */
2706
+ proto.Spic.AlarmProto.AlarmChangedEvent.prototype.setAlarmResolved = function(value) {
2707
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2708
+ };
2709
+
2710
+
2711
+ /**
2712
+ * optional int64 id = 1;
2713
+ * @return {number}
2714
+ */
2715
+ proto.Spic.AlarmProto.prototype.getId = function() {
2716
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2717
+ };
2718
+
2719
+
2720
+ /**
2721
+ * @param {number} value
2722
+ * @return {!proto.Spic.AlarmProto} returns this
2723
+ */
2724
+ proto.Spic.AlarmProto.prototype.setId = function(value) {
2725
+ return jspb.Message.setProto3IntField(this, 1, value);
2726
+ };
2727
+
2728
+
2729
+ /**
2730
+ * optional int64 asset_id = 2;
2731
+ * @return {number}
2732
+ */
2733
+ proto.Spic.AlarmProto.prototype.getAssetId = function() {
2734
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2735
+ };
2736
+
2737
+
2738
+ /**
2739
+ * @param {number} value
2740
+ * @return {!proto.Spic.AlarmProto} returns this
2741
+ */
2742
+ proto.Spic.AlarmProto.prototype.setAssetId = function(value) {
2743
+ return jspb.Message.setProto3IntField(this, 2, value);
2744
+ };
2745
+
2746
+
2747
+ /**
2748
+ * repeated Event events = 3;
2749
+ * @return {!Array<!proto.Spic.AlarmProto.Event>}
2750
+ */
2751
+ proto.Spic.AlarmProto.prototype.getEventsList = function() {
2752
+ return /** @type{!Array<!proto.Spic.AlarmProto.Event>} */ (
2753
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AlarmProto.Event, 3));
2754
+ };
2755
+
2756
+
2757
+ /**
2758
+ * @param {!Array<!proto.Spic.AlarmProto.Event>} value
2759
+ * @return {!proto.Spic.AlarmProto} returns this
2760
+ */
2761
+ proto.Spic.AlarmProto.prototype.setEventsList = function(value) {
2762
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
2763
+ };
2764
+
2765
+
2766
+ /**
2767
+ * @param {!proto.Spic.AlarmProto.Event=} opt_value
2768
+ * @param {number=} opt_index
2769
+ * @return {!proto.Spic.AlarmProto.Event}
2770
+ */
2771
+ proto.Spic.AlarmProto.prototype.addEvents = function(opt_value, opt_index) {
2772
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Spic.AlarmProto.Event, opt_index);
2773
+ };
2774
+
2775
+
2776
+ /**
2777
+ * Clears the list making it empty but non-null.
2778
+ * @return {!proto.Spic.AlarmProto} returns this
2779
+ */
2780
+ proto.Spic.AlarmProto.prototype.clearEventsList = function() {
2781
+ return this.setEventsList([]);
2782
+ };
2783
+
2784
+
2785
+ /**
2786
+ * optional google.protobuf.Timestamp created = 4;
2787
+ * @return {?proto.google.protobuf.Timestamp}
2788
+ */
2789
+ proto.Spic.AlarmProto.prototype.getCreated = function() {
2790
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2791
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2792
+ };
2793
+
2794
+
2795
+ /**
2796
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2797
+ * @return {!proto.Spic.AlarmProto} returns this
2798
+ */
2799
+ proto.Spic.AlarmProto.prototype.setCreated = function(value) {
2800
+ return jspb.Message.setWrapperField(this, 4, value);
2801
+ };
2802
+
2803
+
2804
+ /**
2805
+ * Clears the message field making it undefined.
2806
+ * @return {!proto.Spic.AlarmProto} returns this
2807
+ */
2808
+ proto.Spic.AlarmProto.prototype.clearCreated = function() {
2809
+ return this.setCreated(undefined);
2810
+ };
2811
+
2812
+
2813
+ /**
2814
+ * Returns whether this field is set.
2815
+ * @return {boolean}
2816
+ */
2817
+ proto.Spic.AlarmProto.prototype.hasCreated = function() {
2818
+ return jspb.Message.getField(this, 4) != null;
2819
+ };
2820
+
2821
+
2822
+ /**
2823
+ * optional google.protobuf.Timestamp resolved = 5;
2824
+ * @return {?proto.google.protobuf.Timestamp}
2825
+ */
2826
+ proto.Spic.AlarmProto.prototype.getResolved = function() {
2827
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2828
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2829
+ };
2830
+
2831
+
2832
+ /**
2833
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2834
+ * @return {!proto.Spic.AlarmProto} returns this
2835
+ */
2836
+ proto.Spic.AlarmProto.prototype.setResolved = function(value) {
2837
+ return jspb.Message.setWrapperField(this, 5, value);
2838
+ };
2839
+
2840
+
2841
+ /**
2842
+ * Clears the message field making it undefined.
2843
+ * @return {!proto.Spic.AlarmProto} returns this
2844
+ */
2845
+ proto.Spic.AlarmProto.prototype.clearResolved = function() {
2846
+ return this.setResolved(undefined);
2847
+ };
2848
+
2849
+
2850
+ /**
2851
+ * Returns whether this field is set.
2852
+ * @return {boolean}
2853
+ */
2854
+ proto.Spic.AlarmProto.prototype.hasResolved = function() {
2855
+ return jspb.Message.getField(this, 5) != null;
2856
+ };
2857
+
2858
+
2859
+ /**
2860
+ * optional AlertPriorityType status = 6;
2861
+ * @return {!proto.Spic.AlarmProto.AlertPriorityType}
2862
+ */
2863
+ proto.Spic.AlarmProto.prototype.getStatus = function() {
2864
+ return /** @type {!proto.Spic.AlarmProto.AlertPriorityType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2865
+ };
2866
+
2867
+
2868
+ /**
2869
+ * @param {!proto.Spic.AlarmProto.AlertPriorityType} value
2870
+ * @return {!proto.Spic.AlarmProto} returns this
2871
+ */
2872
+ proto.Spic.AlarmProto.prototype.setStatus = function(value) {
2873
+ return jspb.Message.setProto3EnumField(this, 6, value);
2874
+ };
2875
+
2876
+
2877
+ /**
2878
+ * repeated AlarmAction alarm_actions = 7;
2879
+ * @return {!Array<!proto.Spic.AlarmProto.AlarmAction>}
2880
+ */
2881
+ proto.Spic.AlarmProto.prototype.getAlarmActionsList = function() {
2882
+ return /** @type{!Array<!proto.Spic.AlarmProto.AlarmAction>} */ (
2883
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AlarmProto.AlarmAction, 7));
2884
+ };
2885
+
2886
+
2887
+ /**
2888
+ * @param {!Array<!proto.Spic.AlarmProto.AlarmAction>} value
2889
+ * @return {!proto.Spic.AlarmProto} returns this
2890
+ */
2891
+ proto.Spic.AlarmProto.prototype.setAlarmActionsList = function(value) {
2892
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
2893
+ };
2894
+
2895
+
2896
+ /**
2897
+ * @param {!proto.Spic.AlarmProto.AlarmAction=} opt_value
2898
+ * @param {number=} opt_index
2899
+ * @return {!proto.Spic.AlarmProto.AlarmAction}
2900
+ */
2901
+ proto.Spic.AlarmProto.prototype.addAlarmActions = function(opt_value, opt_index) {
2902
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Spic.AlarmProto.AlarmAction, opt_index);
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * Clears the list making it empty but non-null.
2908
+ * @return {!proto.Spic.AlarmProto} returns this
2909
+ */
2910
+ proto.Spic.AlarmProto.prototype.clearAlarmActionsList = function() {
2911
+ return this.setAlarmActionsList([]);
2912
+ };
2913
+
2914
+
2915
+ goog.object.extend(exports, proto.Spic);