@aceplus/smartace-api 3.6.0-alpha.17 → 3.6.0-alpha.18

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