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

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/package.json +1 -1
  2. package/auth.account_pb.d.ts +0 -582
  3. package/auth.account_pb.js +0 -4287
  4. package/auth.account_pb_service.d.ts +0 -340
  5. package/auth.account_pb_service.js +0 -637
  6. package/auth.account_two_factor_pb.d.ts +0 -159
  7. package/auth.account_two_factor_pb.js +0 -1184
  8. package/auth.account_two_factor_pb_service.d.ts +0 -121
  9. package/auth.account_two_factor_pb_service.js +0 -182
  10. package/auth.app_account_pb.d.ts +0 -156
  11. package/auth.app_account_pb.js +0 -1153
  12. package/auth.app_account_pb_service.d.ts +0 -160
  13. package/auth.app_account_pb_service.js +0 -263
  14. package/auth.app_authn_pb.d.ts +0 -172
  15. package/auth.app_authn_pb.js +0 -1233
  16. package/auth.app_authn_pb_service.d.ts +0 -140
  17. package/auth.app_authn_pb_service.js +0 -222
  18. package/auth.app_distribution_pb.d.ts +0 -174
  19. package/auth.app_distribution_pb.js +0 -1338
  20. package/auth.app_distribution_pb_service.d.ts +0 -120
  21. package/auth.app_distribution_pb_service.js +0 -181
  22. package/auth.authn_pb.d.ts +0 -95
  23. package/auth.authn_pb.js +0 -637
  24. package/auth.authn_pb_service.d.ts +0 -82
  25. package/auth.authn_pb_service.js +0 -101
  26. package/auth.cluster_pb.d.ts +0 -142
  27. package/auth.cluster_pb.js +0 -1050
  28. package/auth.cluster_pb_service.d.ts +0 -82
  29. package/auth.cluster_pb_service.js +0 -101
  30. package/auth.distribution_pb.d.ts +0 -233
  31. package/auth.distribution_pb.js +0 -1785
  32. package/auth.distribution_pb_service.d.ts +0 -82
  33. package/auth.distribution_pb_service.js +0 -101
  34. package/auth.email_pb.d.ts +0 -217
  35. package/auth.email_pb.js +0 -1508
  36. package/auth.email_pb_service.d.ts +0 -102
  37. package/auth.email_pb_service.js +0 -142
  38. package/auth.firmware_pb.d.ts +0 -256
  39. package/auth.firmware_pb.js +0 -1997
  40. package/auth.firmware_pb_service.d.ts +0 -120
  41. package/auth.firmware_pb_service.js +0 -181
  42. package/auth.push_notification_pb.d.ts +0 -69
  43. package/auth.push_notification_pb.js +0 -411
  44. package/auth.push_notification_pb_service.d.ts +0 -64
  45. package/auth.push_notification_pb_service.js +0 -62
  46. package/auth.sms_pb.d.ts +0 -79
  47. package/auth.sms_pb.js +0 -575
  48. package/auth.sms_pb_service.d.ts +0 -83
  49. package/auth.sms_pb_service.js +0 -102
  50. package/google/api/annotations_pb.d.ts +0 -9
  51. package/google/api/annotations_pb.js +0 -54
  52. package/google/api/annotations_pb_service.d.ts +0 -3
  53. package/google/api/annotations_pb_service.js +0 -3
  54. package/google/api/auth_pb.d.ts +0 -150
  55. package/google/api/auth_pb.js +0 -1160
  56. package/google/api/auth_pb_service.d.ts +0 -3
  57. package/google/api/auth_pb_service.js +0 -3
  58. package/google/api/backend_pb.d.ts +0 -59
  59. package/google/api/backend_pb.js +0 -448
  60. package/google/api/backend_pb_service.d.ts +0 -3
  61. package/google/api/backend_pb_service.js +0 -3
  62. package/google/api/billing_pb.d.ts +0 -54
  63. package/google/api/billing_pb.js +0 -416
  64. package/google/api/billing_pb_service.d.ts +0 -3
  65. package/google/api/billing_pb_service.js +0 -3
  66. package/google/api/client_pb.d.ts +0 -12
  67. package/google/api/client_pb.js +0 -104
  68. package/google/api/client_pb_service.d.ts +0 -3
  69. package/google/api/client_pb_service.js +0 -3
  70. package/google/api/config_change_pb.d.ts +0 -72
  71. package/google/api/config_change_pb.js +0 -489
  72. package/google/api/config_change_pb_service.d.ts +0 -3
  73. package/google/api/config_change_pb_service.js +0 -3
  74. package/google/api/consumer_pb.d.ts +0 -65
  75. package/google/api/consumer_pb.js +0 -430
  76. package/google/api/consumer_pb_service.d.ts +0 -3
  77. package/google/api/consumer_pb_service.js +0 -3
  78. package/google/api/context_pb.d.ts +0 -59
  79. package/google/api/context_pb.js +0 -463
  80. package/google/api/context_pb_service.d.ts +0 -3
  81. package/google/api/context_pb_service.js +0 -3
  82. package/google/api/control_pb.d.ts +0 -25
  83. package/google/api/control_pb.js +0 -176
  84. package/google/api/control_pb_service.d.ts +0 -3
  85. package/google/api/control_pb_service.js +0 -3
  86. package/google/api/distribution_pb.d.ts +0 -235
  87. package/google/api/distribution_pb.js +0 -1805
  88. package/google/api/distribution_pb_service.d.ts +0 -3
  89. package/google/api/distribution_pb_service.js +0 -3
  90. package/google/api/documentation_pb.d.ts +0 -103
  91. package/google/api/documentation_pb.js +0 -803
  92. package/google/api/documentation_pb_service.d.ts +0 -3
  93. package/google/api/documentation_pb_service.js +0 -3
  94. package/google/api/endpoint_pb.d.ts +0 -46
  95. package/google/api/endpoint_pb.js +0 -343
  96. package/google/api/endpoint_pb_service.d.ts +0 -3
  97. package/google/api/endpoint_pb_service.js +0 -3
  98. package/google/api/error_reason_pb.d.ts +0 -40
  99. package/google/api/error_reason_pb.js +0 -61
  100. package/google/api/error_reason_pb_service.d.ts +0 -3
  101. package/google/api/error_reason_pb_service.js +0 -3
  102. package/google/api/field_behavior_pb.d.ts +0 -20
  103. package/google/api/field_behavior_pb.js +0 -66
  104. package/google/api/field_behavior_pb_service.d.ts +0 -3
  105. package/google/api/field_behavior_pb_service.js +0 -3
  106. package/google/api/http_pb.d.ts +0 -136
  107. package/google/api/http_pb.js +0 -1012
  108. package/google/api/http_pb_service.d.ts +0 -3
  109. package/google/api/http_pb_service.js +0 -3
  110. package/google/api/httpbody_pb.d.ts +0 -38
  111. package/google/api/httpbody_pb.js +0 -292
  112. package/google/api/httpbody_pb_service.d.ts +0 -3
  113. package/google/api/httpbody_pb_service.js +0 -3
  114. package/google/api/label_pb.d.ts +0 -41
  115. package/google/api/label_pb.js +0 -246
  116. package/google/api/label_pb_service.d.ts +0 -3
  117. package/google/api/label_pb_service.js +0 -3
  118. package/google/api/launch_stage_pb.d.ts +0 -16
  119. package/google/api/launch_stage_pb.js +0 -37
  120. package/google/api/launch_stage_pb_service.d.ts +0 -3
  121. package/google/api/launch_stage_pb_service.js +0 -3
  122. package/google/api/log_pb.d.ts +0 -40
  123. package/google/api/log_pb.js +0 -298
  124. package/google/api/log_pb_service.d.ts +0 -3
  125. package/google/api/log_pb_service.js +0 -3
  126. package/google/api/logging_pb.d.ts +0 -60
  127. package/google/api/logging_pb.js +0 -469
  128. package/google/api/logging_pb_service.d.ts +0 -3
  129. package/google/api/logging_pb_service.js +0 -3
  130. package/google/api/metric_pb.d.ts +0 -100
  131. package/google/api/metric_pb.js +0 -629
  132. package/google/api/metric_pb_service.d.ts +0 -3
  133. package/google/api/metric_pb_service.js +0 -3
  134. package/google/api/monitored_resource_pb.d.ts +0 -93
  135. package/google/api/monitored_resource_pb.js +0 -723
  136. package/google/api/monitored_resource_pb_service.d.ts +0 -3
  137. package/google/api/monitored_resource_pb_service.js +0 -3
  138. package/google/api/monitoring_pb.d.ts +0 -60
  139. package/google/api/monitoring_pb.js +0 -469
  140. package/google/api/monitoring_pb_service.d.ts +0 -3
  141. package/google/api/monitoring_pb_service.js +0 -3
  142. package/google/api/policy_pb.d.ts +0 -64
  143. package/google/api/policy_pb.js +0 -502
  144. package/google/api/policy_pb_service.d.ts +0 -3
  145. package/google/api/policy_pb_service.js +0 -3
  146. package/google/api/quota_pb.d.ts +0 -112
  147. package/google/api/quota_pb.js +0 -873
  148. package/google/api/quota_pb_service.d.ts +0 -3
  149. package/google/api/quota_pb_service.js +0 -3
  150. package/google/api/resource_pb.d.ts +0 -99
  151. package/google/api/resource_pb.js +0 -684
  152. package/google/api/resource_pb_service.d.ts +0 -3
  153. package/google/api/resource_pb_service.js +0 -3
  154. package/google/api/routing_pb.d.ts +0 -54
  155. package/google/api/routing_pb.js +0 -416
  156. package/google/api/routing_pb_service.d.ts +0 -3
  157. package/google/api/routing_pb_service.js +0 -3
  158. package/google/api/service_pb.d.ts +0 -184
  159. package/google/api/service_pb.js +0 -1400
  160. package/google/api/service_pb_service.d.ts +0 -3
  161. package/google/api/service_pb_service.js +0 -3
  162. package/google/api/source_info_pb.d.ts +0 -28
  163. package/google/api/source_info_pb.js +0 -208
  164. package/google/api/source_info_pb_service.d.ts +0 -3
  165. package/google/api/source_info_pb_service.js +0 -3
  166. package/google/api/system_parameter_pb.d.ts +0 -81
  167. package/google/api/system_parameter_pb.js +0 -630
  168. package/google/api/system_parameter_pb_service.d.ts +0 -3
  169. package/google/api/system_parameter_pb_service.js +0 -3
  170. package/google/api/usage_pb.d.ts +0 -66
  171. package/google/api/usage_pb.js +0 -499
  172. package/google/api/usage_pb_service.d.ts +0 -3
  173. package/google/api/usage_pb_service.js +0 -3
  174. package/google/api/visibility_pb.d.ts +0 -64
  175. package/google/api/visibility_pb.js +0 -546
  176. package/google/api/visibility_pb_service.d.ts +0 -3
  177. package/google/api/visibility_pb_service.js +0 -3
  178. package/meta.client_pb.d.ts +0 -167
  179. package/meta.client_pb.js +0 -1266
  180. package/meta.client_pb_service.d.ts +0 -122
  181. package/meta.client_pb_service.js +0 -183
  182. package/meta.spic_config_pb.d.ts +0 -184
  183. package/meta.spic_config_pb.js +0 -1382
  184. package/meta.spic_config_pb_service.d.ts +0 -122
  185. package/meta.spic_config_pb_service.js +0 -183
  186. package/platform.activity_log_pb.d.ts +0 -177
  187. package/platform.activity_log_pb.js +0 -1294
  188. package/platform.activity_log_pb_service.d.ts +0 -82
  189. package/platform.activity_log_pb_service.js +0 -101
  190. package/platform.client_pb.d.ts +0 -350
  191. package/platform.client_pb.js +0 -2663
  192. package/platform.client_pb_service.d.ts +0 -158
  193. package/platform.client_pb_service.js +0 -261
  194. package/platform.group_pb.d.ts +0 -195
  195. package/platform.group_pb.js +0 -1476
  196. package/platform.group_pb_service.d.ts +0 -139
  197. package/platform.group_pb_service.js +0 -221
  198. package/platform.local_account_internal_pb.d.ts +0 -125
  199. package/platform.local_account_internal_pb.js +0 -933
  200. package/platform.local_account_internal_pb_service.d.ts +0 -121
  201. package/platform.local_account_internal_pb_service.js +0 -182
  202. package/platform.local_account_pb.d.ts +0 -446
  203. package/platform.local_account_pb.js +0 -3337
  204. package/platform.local_account_pb_service.d.ts +0 -331
  205. package/platform.local_account_pb_service.js +0 -623
  206. package/platform.local_distribution_pb.d.ts +0 -73
  207. package/platform.local_distribution_pb.js +0 -536
  208. package/platform.local_distribution_pb_service.d.ts +0 -63
  209. package/platform.local_distribution_pb_service.js +0 -61
  210. package/platform.location_pb.d.ts +0 -271
  211. package/platform.location_pb.js +0 -2046
  212. package/platform.location_pb_service.d.ts +0 -139
  213. package/platform.location_pb_service.js +0 -221
  214. package/platform.pagination_pb.d.ts +0 -45
  215. package/platform.pagination_pb.js +0 -276
  216. package/platform.pagination_pb_service.d.ts +0 -3
  217. package/platform.pagination_pb_service.js +0 -3
  218. package/spic.admin_alert_pb.d.ts +0 -91
  219. package/spic.admin_alert_pb.js +0 -666
  220. package/spic.admin_alert_pb_service.d.ts +0 -102
  221. package/spic.admin_alert_pb_service.js +0 -142
  222. package/spic.alarm_pb.d.ts +0 -336
  223. package/spic.alarm_pb.js +0 -2562
  224. package/spic.alarm_pb_service.d.ts +0 -101
  225. package/spic.alarm_pb_service.js +0 -141
  226. package/spic.asset_pb.d.ts +0 -652
  227. package/spic.asset_pb.js +0 -4669
  228. package/spic.asset_pb_service.d.ts +0 -197
  229. package/spic.asset_pb_service.js +0 -342
  230. package/spic.cabinet_pb.d.ts +0 -791
  231. package/spic.cabinet_pb.js +0 -5733
  232. package/spic.cabinet_pb_service.d.ts +0 -158
  233. package/spic.cabinet_pb_service.js +0 -261
  234. package/spic.config_pb.d.ts +0 -249
  235. package/spic.config_pb.js +0 -1891
  236. package/spic.config_pb_service.d.ts +0 -120
  237. package/spic.config_pb_service.js +0 -181
  238. package/spic.contractor_pb.d.ts +0 -195
  239. package/spic.contractor_pb.js +0 -1476
  240. package/spic.contractor_pb_service.d.ts +0 -139
  241. package/spic.contractor_pb_service.js +0 -221
  242. package/spic.history_pb.d.ts +0 -142
  243. package/spic.history_pb.js +0 -1130
  244. package/spic.history_pb_service.d.ts +0 -63
  245. package/spic.history_pb_service.js +0 -61
  246. package/spic.open_request_pb.d.ts +0 -237
  247. package/spic.open_request_pb.js +0 -1784
  248. package/spic.open_request_pb_service.d.ts +0 -101
  249. package/spic.open_request_pb_service.js +0 -141
package/spic.alarm_pb.js DELETED
@@ -1,2562 +0,0 @@
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
- };
1182
-
1183
- if (includeInstance) {
1184
- obj.$jspbMessageInstance = msg;
1185
- }
1186
- return obj;
1187
- };
1188
- }
1189
-
1190
-
1191
- /**
1192
- * Deserializes binary data (in protobuf wire format).
1193
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1194
- * @return {!proto.Spic.AlarmProto.Event}
1195
- */
1196
- proto.Spic.AlarmProto.Event.deserializeBinary = function(bytes) {
1197
- var reader = new jspb.BinaryReader(bytes);
1198
- var msg = new proto.Spic.AlarmProto.Event;
1199
- return proto.Spic.AlarmProto.Event.deserializeBinaryFromReader(msg, reader);
1200
- };
1201
-
1202
-
1203
- /**
1204
- * Deserializes binary data (in protobuf wire format) from the
1205
- * given reader into the given message object.
1206
- * @param {!proto.Spic.AlarmProto.Event} msg The message object to deserialize into.
1207
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1208
- * @return {!proto.Spic.AlarmProto.Event}
1209
- */
1210
- proto.Spic.AlarmProto.Event.deserializeBinaryFromReader = function(msg, reader) {
1211
- while (reader.nextField()) {
1212
- if (reader.isEndGroup()) {
1213
- break;
1214
- }
1215
- var field = reader.getFieldNumber();
1216
- switch (field) {
1217
- case 1:
1218
- var value = /** @type {number} */ (reader.readInt64());
1219
- msg.setId(value);
1220
- break;
1221
- case 2:
1222
- var value = /** @type {number} */ (reader.readInt64());
1223
- msg.setAssetId(value);
1224
- break;
1225
- case 3:
1226
- var value = /** @type {number} */ (reader.readInt64());
1227
- msg.setAlarmId(value);
1228
- break;
1229
- case 4:
1230
- var value = new google_protobuf_timestamp_pb.Timestamp;
1231
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1232
- msg.setStartDate(value);
1233
- break;
1234
- case 5:
1235
- var value = new google_protobuf_timestamp_pb.Timestamp;
1236
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1237
- msg.setEndDate(value);
1238
- break;
1239
- case 6:
1240
- var value = /** @type {string} */ (reader.readString());
1241
- msg.setComponentId(value);
1242
- break;
1243
- case 7:
1244
- var value = /** @type {string} */ (reader.readString());
1245
- msg.setDetail(value);
1246
- break;
1247
- default:
1248
- reader.skipField();
1249
- break;
1250
- }
1251
- }
1252
- return msg;
1253
- };
1254
-
1255
-
1256
- /**
1257
- * Serializes the message to binary data (in protobuf wire format).
1258
- * @return {!Uint8Array}
1259
- */
1260
- proto.Spic.AlarmProto.Event.prototype.serializeBinary = function() {
1261
- var writer = new jspb.BinaryWriter();
1262
- proto.Spic.AlarmProto.Event.serializeBinaryToWriter(this, writer);
1263
- return writer.getResultBuffer();
1264
- };
1265
-
1266
-
1267
- /**
1268
- * Serializes the given message to binary data (in protobuf wire
1269
- * format), writing to the given BinaryWriter.
1270
- * @param {!proto.Spic.AlarmProto.Event} message
1271
- * @param {!jspb.BinaryWriter} writer
1272
- * @suppress {unusedLocalVariables} f is only used for nested messages
1273
- */
1274
- proto.Spic.AlarmProto.Event.serializeBinaryToWriter = function(message, writer) {
1275
- var f = undefined;
1276
- f = message.getId();
1277
- if (f !== 0) {
1278
- writer.writeInt64(
1279
- 1,
1280
- f
1281
- );
1282
- }
1283
- f = message.getAssetId();
1284
- if (f !== 0) {
1285
- writer.writeInt64(
1286
- 2,
1287
- f
1288
- );
1289
- }
1290
- f = message.getAlarmId();
1291
- if (f !== 0) {
1292
- writer.writeInt64(
1293
- 3,
1294
- f
1295
- );
1296
- }
1297
- f = message.getStartDate();
1298
- if (f != null) {
1299
- writer.writeMessage(
1300
- 4,
1301
- f,
1302
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1303
- );
1304
- }
1305
- f = message.getEndDate();
1306
- if (f != null) {
1307
- writer.writeMessage(
1308
- 5,
1309
- f,
1310
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1311
- );
1312
- }
1313
- f = message.getComponentId();
1314
- if (f.length > 0) {
1315
- writer.writeString(
1316
- 6,
1317
- f
1318
- );
1319
- }
1320
- f = message.getDetail();
1321
- if (f.length > 0) {
1322
- writer.writeString(
1323
- 7,
1324
- f
1325
- );
1326
- }
1327
- };
1328
-
1329
-
1330
-
1331
-
1332
-
1333
- if (jspb.Message.GENERATE_TO_OBJECT) {
1334
- /**
1335
- * Creates an object representation of this proto.
1336
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1337
- * Optional fields that are not set will be set to undefined.
1338
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1339
- * For the list of reserved names please see:
1340
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1341
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1342
- * JSPB instance for transitional soy proto support:
1343
- * http://goto/soy-param-migration
1344
- * @return {!Object}
1345
- */
1346
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.toObject = function(opt_includeInstance) {
1347
- return proto.Spic.AlarmProto.Event.SearchRequest.toObject(opt_includeInstance, this);
1348
- };
1349
-
1350
-
1351
- /**
1352
- * Static version of the {@see toObject} method.
1353
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1354
- * the JSPB instance for transitional soy proto support:
1355
- * http://goto/soy-param-migration
1356
- * @param {!proto.Spic.AlarmProto.Event.SearchRequest} msg The msg instance to transform.
1357
- * @return {!Object}
1358
- * @suppress {unusedLocalVariables} f is only used for nested messages
1359
- */
1360
- proto.Spic.AlarmProto.Event.SearchRequest.toObject = function(includeInstance, msg) {
1361
- var f, obj = {
1362
- assetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1363
- alarmId: jspb.Message.getFieldWithDefault(msg, 2, 0),
1364
- componentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1365
- page: jspb.Message.getFieldWithDefault(msg, 4, 0),
1366
- count: jspb.Message.getFieldWithDefault(msg, 5, 0),
1367
- descorder: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
1368
- dateFrom: (f = msg.getDateFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1369
- dateTo: (f = msg.getDateTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1370
- };
1371
-
1372
- if (includeInstance) {
1373
- obj.$jspbMessageInstance = msg;
1374
- }
1375
- return obj;
1376
- };
1377
- }
1378
-
1379
-
1380
- /**
1381
- * Deserializes binary data (in protobuf wire format).
1382
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1383
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest}
1384
- */
1385
- proto.Spic.AlarmProto.Event.SearchRequest.deserializeBinary = function(bytes) {
1386
- var reader = new jspb.BinaryReader(bytes);
1387
- var msg = new proto.Spic.AlarmProto.Event.SearchRequest;
1388
- return proto.Spic.AlarmProto.Event.SearchRequest.deserializeBinaryFromReader(msg, reader);
1389
- };
1390
-
1391
-
1392
- /**
1393
- * Deserializes binary data (in protobuf wire format) from the
1394
- * given reader into the given message object.
1395
- * @param {!proto.Spic.AlarmProto.Event.SearchRequest} msg The message object to deserialize into.
1396
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1397
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest}
1398
- */
1399
- proto.Spic.AlarmProto.Event.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1400
- while (reader.nextField()) {
1401
- if (reader.isEndGroup()) {
1402
- break;
1403
- }
1404
- var field = reader.getFieldNumber();
1405
- switch (field) {
1406
- case 1:
1407
- var value = /** @type {number} */ (reader.readInt64());
1408
- msg.setAssetId(value);
1409
- break;
1410
- case 2:
1411
- var value = /** @type {number} */ (reader.readInt64());
1412
- msg.setAlarmId(value);
1413
- break;
1414
- case 3:
1415
- var value = /** @type {string} */ (reader.readString());
1416
- msg.setComponentId(value);
1417
- break;
1418
- case 4:
1419
- var value = /** @type {number} */ (reader.readInt32());
1420
- msg.setPage(value);
1421
- break;
1422
- case 5:
1423
- var value = /** @type {number} */ (reader.readInt32());
1424
- msg.setCount(value);
1425
- break;
1426
- case 6:
1427
- var value = /** @type {boolean} */ (reader.readBool());
1428
- msg.setDescorder(value);
1429
- break;
1430
- case 7:
1431
- var value = new google_protobuf_timestamp_pb.Timestamp;
1432
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1433
- msg.setDateFrom(value);
1434
- break;
1435
- case 8:
1436
- var value = new google_protobuf_timestamp_pb.Timestamp;
1437
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1438
- msg.setDateTo(value);
1439
- break;
1440
- default:
1441
- reader.skipField();
1442
- break;
1443
- }
1444
- }
1445
- return msg;
1446
- };
1447
-
1448
-
1449
- /**
1450
- * Serializes the message to binary data (in protobuf wire format).
1451
- * @return {!Uint8Array}
1452
- */
1453
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.serializeBinary = function() {
1454
- var writer = new jspb.BinaryWriter();
1455
- proto.Spic.AlarmProto.Event.SearchRequest.serializeBinaryToWriter(this, writer);
1456
- return writer.getResultBuffer();
1457
- };
1458
-
1459
-
1460
- /**
1461
- * Serializes the given message to binary data (in protobuf wire
1462
- * format), writing to the given BinaryWriter.
1463
- * @param {!proto.Spic.AlarmProto.Event.SearchRequest} message
1464
- * @param {!jspb.BinaryWriter} writer
1465
- * @suppress {unusedLocalVariables} f is only used for nested messages
1466
- */
1467
- proto.Spic.AlarmProto.Event.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1468
- var f = undefined;
1469
- f = message.getAssetId();
1470
- if (f !== 0) {
1471
- writer.writeInt64(
1472
- 1,
1473
- f
1474
- );
1475
- }
1476
- f = message.getAlarmId();
1477
- if (f !== 0) {
1478
- writer.writeInt64(
1479
- 2,
1480
- f
1481
- );
1482
- }
1483
- f = message.getComponentId();
1484
- if (f.length > 0) {
1485
- writer.writeString(
1486
- 3,
1487
- f
1488
- );
1489
- }
1490
- f = message.getPage();
1491
- if (f !== 0) {
1492
- writer.writeInt32(
1493
- 4,
1494
- f
1495
- );
1496
- }
1497
- f = message.getCount();
1498
- if (f !== 0) {
1499
- writer.writeInt32(
1500
- 5,
1501
- f
1502
- );
1503
- }
1504
- f = message.getDescorder();
1505
- if (f) {
1506
- writer.writeBool(
1507
- 6,
1508
- f
1509
- );
1510
- }
1511
- f = message.getDateFrom();
1512
- if (f != null) {
1513
- writer.writeMessage(
1514
- 7,
1515
- f,
1516
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1517
- );
1518
- }
1519
- f = message.getDateTo();
1520
- if (f != null) {
1521
- writer.writeMessage(
1522
- 8,
1523
- f,
1524
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1525
- );
1526
- }
1527
- };
1528
-
1529
-
1530
- /**
1531
- * optional int64 asset_id = 1;
1532
- * @return {number}
1533
- */
1534
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getAssetId = function() {
1535
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1536
- };
1537
-
1538
-
1539
- /**
1540
- * @param {number} value
1541
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1542
- */
1543
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setAssetId = function(value) {
1544
- return jspb.Message.setProto3IntField(this, 1, value);
1545
- };
1546
-
1547
-
1548
- /**
1549
- * optional int64 alarm_id = 2;
1550
- * @return {number}
1551
- */
1552
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getAlarmId = function() {
1553
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1554
- };
1555
-
1556
-
1557
- /**
1558
- * @param {number} value
1559
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1560
- */
1561
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setAlarmId = function(value) {
1562
- return jspb.Message.setProto3IntField(this, 2, value);
1563
- };
1564
-
1565
-
1566
- /**
1567
- * optional string component_id = 3;
1568
- * @return {string}
1569
- */
1570
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getComponentId = function() {
1571
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1572
- };
1573
-
1574
-
1575
- /**
1576
- * @param {string} value
1577
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1578
- */
1579
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setComponentId = function(value) {
1580
- return jspb.Message.setProto3StringField(this, 3, value);
1581
- };
1582
-
1583
-
1584
- /**
1585
- * optional int32 page = 4;
1586
- * @return {number}
1587
- */
1588
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getPage = function() {
1589
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1590
- };
1591
-
1592
-
1593
- /**
1594
- * @param {number} value
1595
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1596
- */
1597
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setPage = function(value) {
1598
- return jspb.Message.setProto3IntField(this, 4, value);
1599
- };
1600
-
1601
-
1602
- /**
1603
- * optional int32 count = 5;
1604
- * @return {number}
1605
- */
1606
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getCount = function() {
1607
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1608
- };
1609
-
1610
-
1611
- /**
1612
- * @param {number} value
1613
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1614
- */
1615
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setCount = function(value) {
1616
- return jspb.Message.setProto3IntField(this, 5, value);
1617
- };
1618
-
1619
-
1620
- /**
1621
- * optional bool descOrder = 6;
1622
- * @return {boolean}
1623
- */
1624
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getDescorder = function() {
1625
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1626
- };
1627
-
1628
-
1629
- /**
1630
- * @param {boolean} value
1631
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1632
- */
1633
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setDescorder = function(value) {
1634
- return jspb.Message.setProto3BooleanField(this, 6, value);
1635
- };
1636
-
1637
-
1638
- /**
1639
- * optional google.protobuf.Timestamp date_from = 7;
1640
- * @return {?proto.google.protobuf.Timestamp}
1641
- */
1642
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getDateFrom = function() {
1643
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1644
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
1645
- };
1646
-
1647
-
1648
- /**
1649
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1650
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1651
- */
1652
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setDateFrom = function(value) {
1653
- return jspb.Message.setWrapperField(this, 7, value);
1654
- };
1655
-
1656
-
1657
- /**
1658
- * Clears the message field making it undefined.
1659
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1660
- */
1661
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.clearDateFrom = function() {
1662
- return this.setDateFrom(undefined);
1663
- };
1664
-
1665
-
1666
- /**
1667
- * Returns whether this field is set.
1668
- * @return {boolean}
1669
- */
1670
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.hasDateFrom = function() {
1671
- return jspb.Message.getField(this, 7) != null;
1672
- };
1673
-
1674
-
1675
- /**
1676
- * optional google.protobuf.Timestamp date_to = 8;
1677
- * @return {?proto.google.protobuf.Timestamp}
1678
- */
1679
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.getDateTo = function() {
1680
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1681
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
1682
- };
1683
-
1684
-
1685
- /**
1686
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1687
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1688
- */
1689
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.setDateTo = function(value) {
1690
- return jspb.Message.setWrapperField(this, 8, value);
1691
- };
1692
-
1693
-
1694
- /**
1695
- * Clears the message field making it undefined.
1696
- * @return {!proto.Spic.AlarmProto.Event.SearchRequest} returns this
1697
- */
1698
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.clearDateTo = function() {
1699
- return this.setDateTo(undefined);
1700
- };
1701
-
1702
-
1703
- /**
1704
- * Returns whether this field is set.
1705
- * @return {boolean}
1706
- */
1707
- proto.Spic.AlarmProto.Event.SearchRequest.prototype.hasDateTo = function() {
1708
- return jspb.Message.getField(this, 8) != null;
1709
- };
1710
-
1711
-
1712
-
1713
- /**
1714
- * List of repeated fields within this message type.
1715
- * @private {!Array<number>}
1716
- * @const
1717
- */
1718
- proto.Spic.AlarmProto.Event.SearchReply.repeatedFields_ = [1];
1719
-
1720
-
1721
-
1722
- if (jspb.Message.GENERATE_TO_OBJECT) {
1723
- /**
1724
- * Creates an object representation of this proto.
1725
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1726
- * Optional fields that are not set will be set to undefined.
1727
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1728
- * For the list of reserved names please see:
1729
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1730
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1731
- * JSPB instance for transitional soy proto support:
1732
- * http://goto/soy-param-migration
1733
- * @return {!Object}
1734
- */
1735
- proto.Spic.AlarmProto.Event.SearchReply.prototype.toObject = function(opt_includeInstance) {
1736
- return proto.Spic.AlarmProto.Event.SearchReply.toObject(opt_includeInstance, this);
1737
- };
1738
-
1739
-
1740
- /**
1741
- * Static version of the {@see toObject} method.
1742
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1743
- * the JSPB instance for transitional soy proto support:
1744
- * http://goto/soy-param-migration
1745
- * @param {!proto.Spic.AlarmProto.Event.SearchReply} msg The msg instance to transform.
1746
- * @return {!Object}
1747
- * @suppress {unusedLocalVariables} f is only used for nested messages
1748
- */
1749
- proto.Spic.AlarmProto.Event.SearchReply.toObject = function(includeInstance, msg) {
1750
- var f, obj = {
1751
- eventsList: jspb.Message.toObjectList(msg.getEventsList(),
1752
- proto.Spic.AlarmProto.Event.toObject, includeInstance),
1753
- pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1754
- };
1755
-
1756
- if (includeInstance) {
1757
- obj.$jspbMessageInstance = msg;
1758
- }
1759
- return obj;
1760
- };
1761
- }
1762
-
1763
-
1764
- /**
1765
- * Deserializes binary data (in protobuf wire format).
1766
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1767
- * @return {!proto.Spic.AlarmProto.Event.SearchReply}
1768
- */
1769
- proto.Spic.AlarmProto.Event.SearchReply.deserializeBinary = function(bytes) {
1770
- var reader = new jspb.BinaryReader(bytes);
1771
- var msg = new proto.Spic.AlarmProto.Event.SearchReply;
1772
- return proto.Spic.AlarmProto.Event.SearchReply.deserializeBinaryFromReader(msg, reader);
1773
- };
1774
-
1775
-
1776
- /**
1777
- * Deserializes binary data (in protobuf wire format) from the
1778
- * given reader into the given message object.
1779
- * @param {!proto.Spic.AlarmProto.Event.SearchReply} msg The message object to deserialize into.
1780
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1781
- * @return {!proto.Spic.AlarmProto.Event.SearchReply}
1782
- */
1783
- proto.Spic.AlarmProto.Event.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1784
- while (reader.nextField()) {
1785
- if (reader.isEndGroup()) {
1786
- break;
1787
- }
1788
- var field = reader.getFieldNumber();
1789
- switch (field) {
1790
- case 1:
1791
- var value = new proto.Spic.AlarmProto.Event;
1792
- reader.readMessage(value,proto.Spic.AlarmProto.Event.deserializeBinaryFromReader);
1793
- msg.addEvents(value);
1794
- break;
1795
- case 2:
1796
- var value = new platform_pagination_pb.PaginationProto;
1797
- reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1798
- msg.setPagination(value);
1799
- break;
1800
- default:
1801
- reader.skipField();
1802
- break;
1803
- }
1804
- }
1805
- return msg;
1806
- };
1807
-
1808
-
1809
- /**
1810
- * Serializes the message to binary data (in protobuf wire format).
1811
- * @return {!Uint8Array}
1812
- */
1813
- proto.Spic.AlarmProto.Event.SearchReply.prototype.serializeBinary = function() {
1814
- var writer = new jspb.BinaryWriter();
1815
- proto.Spic.AlarmProto.Event.SearchReply.serializeBinaryToWriter(this, writer);
1816
- return writer.getResultBuffer();
1817
- };
1818
-
1819
-
1820
- /**
1821
- * Serializes the given message to binary data (in protobuf wire
1822
- * format), writing to the given BinaryWriter.
1823
- * @param {!proto.Spic.AlarmProto.Event.SearchReply} message
1824
- * @param {!jspb.BinaryWriter} writer
1825
- * @suppress {unusedLocalVariables} f is only used for nested messages
1826
- */
1827
- proto.Spic.AlarmProto.Event.SearchReply.serializeBinaryToWriter = function(message, writer) {
1828
- var f = undefined;
1829
- f = message.getEventsList();
1830
- if (f.length > 0) {
1831
- writer.writeRepeatedMessage(
1832
- 1,
1833
- f,
1834
- proto.Spic.AlarmProto.Event.serializeBinaryToWriter
1835
- );
1836
- }
1837
- f = message.getPagination();
1838
- if (f != null) {
1839
- writer.writeMessage(
1840
- 2,
1841
- f,
1842
- platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1843
- );
1844
- }
1845
- };
1846
-
1847
-
1848
- /**
1849
- * repeated Event events = 1;
1850
- * @return {!Array<!proto.Spic.AlarmProto.Event>}
1851
- */
1852
- proto.Spic.AlarmProto.Event.SearchReply.prototype.getEventsList = function() {
1853
- return /** @type{!Array<!proto.Spic.AlarmProto.Event>} */ (
1854
- jspb.Message.getRepeatedWrapperField(this, proto.Spic.AlarmProto.Event, 1));
1855
- };
1856
-
1857
-
1858
- /**
1859
- * @param {!Array<!proto.Spic.AlarmProto.Event>} value
1860
- * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
1861
- */
1862
- proto.Spic.AlarmProto.Event.SearchReply.prototype.setEventsList = function(value) {
1863
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1864
- };
1865
-
1866
-
1867
- /**
1868
- * @param {!proto.Spic.AlarmProto.Event=} opt_value
1869
- * @param {number=} opt_index
1870
- * @return {!proto.Spic.AlarmProto.Event}
1871
- */
1872
- proto.Spic.AlarmProto.Event.SearchReply.prototype.addEvents = function(opt_value, opt_index) {
1873
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.AlarmProto.Event, opt_index);
1874
- };
1875
-
1876
-
1877
- /**
1878
- * Clears the list making it empty but non-null.
1879
- * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
1880
- */
1881
- proto.Spic.AlarmProto.Event.SearchReply.prototype.clearEventsList = function() {
1882
- return this.setEventsList([]);
1883
- };
1884
-
1885
-
1886
- /**
1887
- * optional Platform.PaginationProto pagination = 2;
1888
- * @return {?proto.Platform.PaginationProto}
1889
- */
1890
- proto.Spic.AlarmProto.Event.SearchReply.prototype.getPagination = function() {
1891
- return /** @type{?proto.Platform.PaginationProto} */ (
1892
- jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1893
- };
1894
-
1895
-
1896
- /**
1897
- * @param {?proto.Platform.PaginationProto|undefined} value
1898
- * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
1899
- */
1900
- proto.Spic.AlarmProto.Event.SearchReply.prototype.setPagination = function(value) {
1901
- return jspb.Message.setWrapperField(this, 2, value);
1902
- };
1903
-
1904
-
1905
- /**
1906
- * Clears the message field making it undefined.
1907
- * @return {!proto.Spic.AlarmProto.Event.SearchReply} returns this
1908
- */
1909
- proto.Spic.AlarmProto.Event.SearchReply.prototype.clearPagination = function() {
1910
- return this.setPagination(undefined);
1911
- };
1912
-
1913
-
1914
- /**
1915
- * Returns whether this field is set.
1916
- * @return {boolean}
1917
- */
1918
- proto.Spic.AlarmProto.Event.SearchReply.prototype.hasPagination = function() {
1919
- return jspb.Message.getField(this, 2) != null;
1920
- };
1921
-
1922
-
1923
- /**
1924
- * optional int64 id = 1;
1925
- * @return {number}
1926
- */
1927
- proto.Spic.AlarmProto.Event.prototype.getId = function() {
1928
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1929
- };
1930
-
1931
-
1932
- /**
1933
- * @param {number} value
1934
- * @return {!proto.Spic.AlarmProto.Event} returns this
1935
- */
1936
- proto.Spic.AlarmProto.Event.prototype.setId = function(value) {
1937
- return jspb.Message.setProto3IntField(this, 1, value);
1938
- };
1939
-
1940
-
1941
- /**
1942
- * optional int64 asset_id = 2;
1943
- * @return {number}
1944
- */
1945
- proto.Spic.AlarmProto.Event.prototype.getAssetId = function() {
1946
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1947
- };
1948
-
1949
-
1950
- /**
1951
- * @param {number} value
1952
- * @return {!proto.Spic.AlarmProto.Event} returns this
1953
- */
1954
- proto.Spic.AlarmProto.Event.prototype.setAssetId = function(value) {
1955
- return jspb.Message.setProto3IntField(this, 2, value);
1956
- };
1957
-
1958
-
1959
- /**
1960
- * optional int64 alarm_id = 3;
1961
- * @return {number}
1962
- */
1963
- proto.Spic.AlarmProto.Event.prototype.getAlarmId = function() {
1964
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1965
- };
1966
-
1967
-
1968
- /**
1969
- * @param {number} value
1970
- * @return {!proto.Spic.AlarmProto.Event} returns this
1971
- */
1972
- proto.Spic.AlarmProto.Event.prototype.setAlarmId = function(value) {
1973
- return jspb.Message.setProto3IntField(this, 3, value);
1974
- };
1975
-
1976
-
1977
- /**
1978
- * optional google.protobuf.Timestamp start_date = 4;
1979
- * @return {?proto.google.protobuf.Timestamp}
1980
- */
1981
- proto.Spic.AlarmProto.Event.prototype.getStartDate = function() {
1982
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1983
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1984
- };
1985
-
1986
-
1987
- /**
1988
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1989
- * @return {!proto.Spic.AlarmProto.Event} returns this
1990
- */
1991
- proto.Spic.AlarmProto.Event.prototype.setStartDate = function(value) {
1992
- return jspb.Message.setWrapperField(this, 4, value);
1993
- };
1994
-
1995
-
1996
- /**
1997
- * Clears the message field making it undefined.
1998
- * @return {!proto.Spic.AlarmProto.Event} returns this
1999
- */
2000
- proto.Spic.AlarmProto.Event.prototype.clearStartDate = function() {
2001
- return this.setStartDate(undefined);
2002
- };
2003
-
2004
-
2005
- /**
2006
- * Returns whether this field is set.
2007
- * @return {boolean}
2008
- */
2009
- proto.Spic.AlarmProto.Event.prototype.hasStartDate = function() {
2010
- return jspb.Message.getField(this, 4) != null;
2011
- };
2012
-
2013
-
2014
- /**
2015
- * optional google.protobuf.Timestamp end_date = 5;
2016
- * @return {?proto.google.protobuf.Timestamp}
2017
- */
2018
- proto.Spic.AlarmProto.Event.prototype.getEndDate = function() {
2019
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2020
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2021
- };
2022
-
2023
-
2024
- /**
2025
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2026
- * @return {!proto.Spic.AlarmProto.Event} returns this
2027
- */
2028
- proto.Spic.AlarmProto.Event.prototype.setEndDate = function(value) {
2029
- return jspb.Message.setWrapperField(this, 5, value);
2030
- };
2031
-
2032
-
2033
- /**
2034
- * Clears the message field making it undefined.
2035
- * @return {!proto.Spic.AlarmProto.Event} returns this
2036
- */
2037
- proto.Spic.AlarmProto.Event.prototype.clearEndDate = function() {
2038
- return this.setEndDate(undefined);
2039
- };
2040
-
2041
-
2042
- /**
2043
- * Returns whether this field is set.
2044
- * @return {boolean}
2045
- */
2046
- proto.Spic.AlarmProto.Event.prototype.hasEndDate = function() {
2047
- return jspb.Message.getField(this, 5) != null;
2048
- };
2049
-
2050
-
2051
- /**
2052
- * optional string component_id = 6;
2053
- * @return {string}
2054
- */
2055
- proto.Spic.AlarmProto.Event.prototype.getComponentId = function() {
2056
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2057
- };
2058
-
2059
-
2060
- /**
2061
- * @param {string} value
2062
- * @return {!proto.Spic.AlarmProto.Event} returns this
2063
- */
2064
- proto.Spic.AlarmProto.Event.prototype.setComponentId = function(value) {
2065
- return jspb.Message.setProto3StringField(this, 6, value);
2066
- };
2067
-
2068
-
2069
- /**
2070
- * optional string detail = 7;
2071
- * @return {string}
2072
- */
2073
- proto.Spic.AlarmProto.Event.prototype.getDetail = function() {
2074
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2075
- };
2076
-
2077
-
2078
- /**
2079
- * @param {string} value
2080
- * @return {!proto.Spic.AlarmProto.Event} returns this
2081
- */
2082
- proto.Spic.AlarmProto.Event.prototype.setDetail = function(value) {
2083
- return jspb.Message.setProto3StringField(this, 7, value);
2084
- };
2085
-
2086
-
2087
-
2088
-
2089
-
2090
- if (jspb.Message.GENERATE_TO_OBJECT) {
2091
- /**
2092
- * Creates an object representation of this proto.
2093
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2094
- * Optional fields that are not set will be set to undefined.
2095
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2096
- * For the list of reserved names please see:
2097
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2098
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2099
- * JSPB instance for transitional soy proto support:
2100
- * http://goto/soy-param-migration
2101
- * @return {!Object}
2102
- */
2103
- proto.Spic.AlarmProto.AlarmAction.prototype.toObject = function(opt_includeInstance) {
2104
- return proto.Spic.AlarmProto.AlarmAction.toObject(opt_includeInstance, this);
2105
- };
2106
-
2107
-
2108
- /**
2109
- * Static version of the {@see toObject} method.
2110
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2111
- * the JSPB instance for transitional soy proto support:
2112
- * http://goto/soy-param-migration
2113
- * @param {!proto.Spic.AlarmProto.AlarmAction} msg The msg instance to transform.
2114
- * @return {!Object}
2115
- * @suppress {unusedLocalVariables} f is only used for nested messages
2116
- */
2117
- proto.Spic.AlarmProto.AlarmAction.toObject = function(includeInstance, msg) {
2118
- var f, obj = {
2119
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2120
- alarmId: jspb.Message.getFieldWithDefault(msg, 2, 0),
2121
- detail: jspb.Message.getFieldWithDefault(msg, 3, ""),
2122
- authAccountId: jspb.Message.getFieldWithDefault(msg, 4, 0),
2123
- created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2124
- };
2125
-
2126
- if (includeInstance) {
2127
- obj.$jspbMessageInstance = msg;
2128
- }
2129
- return obj;
2130
- };
2131
- }
2132
-
2133
-
2134
- /**
2135
- * Deserializes binary data (in protobuf wire format).
2136
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2137
- * @return {!proto.Spic.AlarmProto.AlarmAction}
2138
- */
2139
- proto.Spic.AlarmProto.AlarmAction.deserializeBinary = function(bytes) {
2140
- var reader = new jspb.BinaryReader(bytes);
2141
- var msg = new proto.Spic.AlarmProto.AlarmAction;
2142
- return proto.Spic.AlarmProto.AlarmAction.deserializeBinaryFromReader(msg, reader);
2143
- };
2144
-
2145
-
2146
- /**
2147
- * Deserializes binary data (in protobuf wire format) from the
2148
- * given reader into the given message object.
2149
- * @param {!proto.Spic.AlarmProto.AlarmAction} msg The message object to deserialize into.
2150
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2151
- * @return {!proto.Spic.AlarmProto.AlarmAction}
2152
- */
2153
- proto.Spic.AlarmProto.AlarmAction.deserializeBinaryFromReader = function(msg, reader) {
2154
- while (reader.nextField()) {
2155
- if (reader.isEndGroup()) {
2156
- break;
2157
- }
2158
- var field = reader.getFieldNumber();
2159
- switch (field) {
2160
- case 1:
2161
- var value = /** @type {number} */ (reader.readInt64());
2162
- msg.setId(value);
2163
- break;
2164
- case 2:
2165
- var value = /** @type {number} */ (reader.readInt64());
2166
- msg.setAlarmId(value);
2167
- break;
2168
- case 3:
2169
- var value = /** @type {string} */ (reader.readString());
2170
- msg.setDetail(value);
2171
- break;
2172
- case 4:
2173
- var value = /** @type {number} */ (reader.readInt64());
2174
- msg.setAuthAccountId(value);
2175
- break;
2176
- case 5:
2177
- var value = new google_protobuf_timestamp_pb.Timestamp;
2178
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2179
- msg.setCreated(value);
2180
- break;
2181
- default:
2182
- reader.skipField();
2183
- break;
2184
- }
2185
- }
2186
- return msg;
2187
- };
2188
-
2189
-
2190
- /**
2191
- * Serializes the message to binary data (in protobuf wire format).
2192
- * @return {!Uint8Array}
2193
- */
2194
- proto.Spic.AlarmProto.AlarmAction.prototype.serializeBinary = function() {
2195
- var writer = new jspb.BinaryWriter();
2196
- proto.Spic.AlarmProto.AlarmAction.serializeBinaryToWriter(this, writer);
2197
- return writer.getResultBuffer();
2198
- };
2199
-
2200
-
2201
- /**
2202
- * Serializes the given message to binary data (in protobuf wire
2203
- * format), writing to the given BinaryWriter.
2204
- * @param {!proto.Spic.AlarmProto.AlarmAction} message
2205
- * @param {!jspb.BinaryWriter} writer
2206
- * @suppress {unusedLocalVariables} f is only used for nested messages
2207
- */
2208
- proto.Spic.AlarmProto.AlarmAction.serializeBinaryToWriter = function(message, writer) {
2209
- var f = undefined;
2210
- f = message.getId();
2211
- if (f !== 0) {
2212
- writer.writeInt64(
2213
- 1,
2214
- f
2215
- );
2216
- }
2217
- f = message.getAlarmId();
2218
- if (f !== 0) {
2219
- writer.writeInt64(
2220
- 2,
2221
- f
2222
- );
2223
- }
2224
- f = message.getDetail();
2225
- if (f.length > 0) {
2226
- writer.writeString(
2227
- 3,
2228
- f
2229
- );
2230
- }
2231
- f = message.getAuthAccountId();
2232
- if (f !== 0) {
2233
- writer.writeInt64(
2234
- 4,
2235
- f
2236
- );
2237
- }
2238
- f = message.getCreated();
2239
- if (f != null) {
2240
- writer.writeMessage(
2241
- 5,
2242
- f,
2243
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2244
- );
2245
- }
2246
- };
2247
-
2248
-
2249
- /**
2250
- * optional int64 id = 1;
2251
- * @return {number}
2252
- */
2253
- proto.Spic.AlarmProto.AlarmAction.prototype.getId = function() {
2254
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2255
- };
2256
-
2257
-
2258
- /**
2259
- * @param {number} value
2260
- * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2261
- */
2262
- proto.Spic.AlarmProto.AlarmAction.prototype.setId = function(value) {
2263
- return jspb.Message.setProto3IntField(this, 1, value);
2264
- };
2265
-
2266
-
2267
- /**
2268
- * optional int64 alarm_id = 2;
2269
- * @return {number}
2270
- */
2271
- proto.Spic.AlarmProto.AlarmAction.prototype.getAlarmId = function() {
2272
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2273
- };
2274
-
2275
-
2276
- /**
2277
- * @param {number} value
2278
- * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2279
- */
2280
- proto.Spic.AlarmProto.AlarmAction.prototype.setAlarmId = function(value) {
2281
- return jspb.Message.setProto3IntField(this, 2, value);
2282
- };
2283
-
2284
-
2285
- /**
2286
- * optional string detail = 3;
2287
- * @return {string}
2288
- */
2289
- proto.Spic.AlarmProto.AlarmAction.prototype.getDetail = function() {
2290
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2291
- };
2292
-
2293
-
2294
- /**
2295
- * @param {string} value
2296
- * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2297
- */
2298
- proto.Spic.AlarmProto.AlarmAction.prototype.setDetail = function(value) {
2299
- return jspb.Message.setProto3StringField(this, 3, value);
2300
- };
2301
-
2302
-
2303
- /**
2304
- * optional int64 auth_account_id = 4;
2305
- * @return {number}
2306
- */
2307
- proto.Spic.AlarmProto.AlarmAction.prototype.getAuthAccountId = function() {
2308
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2309
- };
2310
-
2311
-
2312
- /**
2313
- * @param {number} value
2314
- * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2315
- */
2316
- proto.Spic.AlarmProto.AlarmAction.prototype.setAuthAccountId = function(value) {
2317
- return jspb.Message.setProto3IntField(this, 4, value);
2318
- };
2319
-
2320
-
2321
- /**
2322
- * optional google.protobuf.Timestamp created = 5;
2323
- * @return {?proto.google.protobuf.Timestamp}
2324
- */
2325
- proto.Spic.AlarmProto.AlarmAction.prototype.getCreated = function() {
2326
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2327
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2328
- };
2329
-
2330
-
2331
- /**
2332
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2333
- * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2334
- */
2335
- proto.Spic.AlarmProto.AlarmAction.prototype.setCreated = function(value) {
2336
- return jspb.Message.setWrapperField(this, 5, value);
2337
- };
2338
-
2339
-
2340
- /**
2341
- * Clears the message field making it undefined.
2342
- * @return {!proto.Spic.AlarmProto.AlarmAction} returns this
2343
- */
2344
- proto.Spic.AlarmProto.AlarmAction.prototype.clearCreated = function() {
2345
- return this.setCreated(undefined);
2346
- };
2347
-
2348
-
2349
- /**
2350
- * Returns whether this field is set.
2351
- * @return {boolean}
2352
- */
2353
- proto.Spic.AlarmProto.AlarmAction.prototype.hasCreated = function() {
2354
- return jspb.Message.getField(this, 5) != null;
2355
- };
2356
-
2357
-
2358
- /**
2359
- * optional int64 id = 1;
2360
- * @return {number}
2361
- */
2362
- proto.Spic.AlarmProto.prototype.getId = function() {
2363
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2364
- };
2365
-
2366
-
2367
- /**
2368
- * @param {number} value
2369
- * @return {!proto.Spic.AlarmProto} returns this
2370
- */
2371
- proto.Spic.AlarmProto.prototype.setId = function(value) {
2372
- return jspb.Message.setProto3IntField(this, 1, value);
2373
- };
2374
-
2375
-
2376
- /**
2377
- * optional int64 asset_id = 2;
2378
- * @return {number}
2379
- */
2380
- proto.Spic.AlarmProto.prototype.getAssetId = function() {
2381
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2382
- };
2383
-
2384
-
2385
- /**
2386
- * @param {number} value
2387
- * @return {!proto.Spic.AlarmProto} returns this
2388
- */
2389
- proto.Spic.AlarmProto.prototype.setAssetId = function(value) {
2390
- return jspb.Message.setProto3IntField(this, 2, value);
2391
- };
2392
-
2393
-
2394
- /**
2395
- * repeated Event events = 3;
2396
- * @return {!Array<!proto.Spic.AlarmProto.Event>}
2397
- */
2398
- proto.Spic.AlarmProto.prototype.getEventsList = function() {
2399
- return /** @type{!Array<!proto.Spic.AlarmProto.Event>} */ (
2400
- jspb.Message.getRepeatedWrapperField(this, proto.Spic.AlarmProto.Event, 3));
2401
- };
2402
-
2403
-
2404
- /**
2405
- * @param {!Array<!proto.Spic.AlarmProto.Event>} value
2406
- * @return {!proto.Spic.AlarmProto} returns this
2407
- */
2408
- proto.Spic.AlarmProto.prototype.setEventsList = function(value) {
2409
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
2410
- };
2411
-
2412
-
2413
- /**
2414
- * @param {!proto.Spic.AlarmProto.Event=} opt_value
2415
- * @param {number=} opt_index
2416
- * @return {!proto.Spic.AlarmProto.Event}
2417
- */
2418
- proto.Spic.AlarmProto.prototype.addEvents = function(opt_value, opt_index) {
2419
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Spic.AlarmProto.Event, opt_index);
2420
- };
2421
-
2422
-
2423
- /**
2424
- * Clears the list making it empty but non-null.
2425
- * @return {!proto.Spic.AlarmProto} returns this
2426
- */
2427
- proto.Spic.AlarmProto.prototype.clearEventsList = function() {
2428
- return this.setEventsList([]);
2429
- };
2430
-
2431
-
2432
- /**
2433
- * optional google.protobuf.Timestamp created = 4;
2434
- * @return {?proto.google.protobuf.Timestamp}
2435
- */
2436
- proto.Spic.AlarmProto.prototype.getCreated = function() {
2437
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2438
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2439
- };
2440
-
2441
-
2442
- /**
2443
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2444
- * @return {!proto.Spic.AlarmProto} returns this
2445
- */
2446
- proto.Spic.AlarmProto.prototype.setCreated = function(value) {
2447
- return jspb.Message.setWrapperField(this, 4, value);
2448
- };
2449
-
2450
-
2451
- /**
2452
- * Clears the message field making it undefined.
2453
- * @return {!proto.Spic.AlarmProto} returns this
2454
- */
2455
- proto.Spic.AlarmProto.prototype.clearCreated = function() {
2456
- return this.setCreated(undefined);
2457
- };
2458
-
2459
-
2460
- /**
2461
- * Returns whether this field is set.
2462
- * @return {boolean}
2463
- */
2464
- proto.Spic.AlarmProto.prototype.hasCreated = function() {
2465
- return jspb.Message.getField(this, 4) != null;
2466
- };
2467
-
2468
-
2469
- /**
2470
- * optional google.protobuf.Timestamp resolved = 5;
2471
- * @return {?proto.google.protobuf.Timestamp}
2472
- */
2473
- proto.Spic.AlarmProto.prototype.getResolved = function() {
2474
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2475
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2476
- };
2477
-
2478
-
2479
- /**
2480
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2481
- * @return {!proto.Spic.AlarmProto} returns this
2482
- */
2483
- proto.Spic.AlarmProto.prototype.setResolved = function(value) {
2484
- return jspb.Message.setWrapperField(this, 5, value);
2485
- };
2486
-
2487
-
2488
- /**
2489
- * Clears the message field making it undefined.
2490
- * @return {!proto.Spic.AlarmProto} returns this
2491
- */
2492
- proto.Spic.AlarmProto.prototype.clearResolved = function() {
2493
- return this.setResolved(undefined);
2494
- };
2495
-
2496
-
2497
- /**
2498
- * Returns whether this field is set.
2499
- * @return {boolean}
2500
- */
2501
- proto.Spic.AlarmProto.prototype.hasResolved = function() {
2502
- return jspb.Message.getField(this, 5) != null;
2503
- };
2504
-
2505
-
2506
- /**
2507
- * optional AlertPriorityType status = 6;
2508
- * @return {!proto.Spic.AlarmProto.AlertPriorityType}
2509
- */
2510
- proto.Spic.AlarmProto.prototype.getStatus = function() {
2511
- return /** @type {!proto.Spic.AlarmProto.AlertPriorityType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2512
- };
2513
-
2514
-
2515
- /**
2516
- * @param {!proto.Spic.AlarmProto.AlertPriorityType} value
2517
- * @return {!proto.Spic.AlarmProto} returns this
2518
- */
2519
- proto.Spic.AlarmProto.prototype.setStatus = function(value) {
2520
- return jspb.Message.setProto3EnumField(this, 6, value);
2521
- };
2522
-
2523
-
2524
- /**
2525
- * repeated AlarmAction alarm_actions = 7;
2526
- * @return {!Array<!proto.Spic.AlarmProto.AlarmAction>}
2527
- */
2528
- proto.Spic.AlarmProto.prototype.getAlarmActionsList = function() {
2529
- return /** @type{!Array<!proto.Spic.AlarmProto.AlarmAction>} */ (
2530
- jspb.Message.getRepeatedWrapperField(this, proto.Spic.AlarmProto.AlarmAction, 7));
2531
- };
2532
-
2533
-
2534
- /**
2535
- * @param {!Array<!proto.Spic.AlarmProto.AlarmAction>} value
2536
- * @return {!proto.Spic.AlarmProto} returns this
2537
- */
2538
- proto.Spic.AlarmProto.prototype.setAlarmActionsList = function(value) {
2539
- return jspb.Message.setRepeatedWrapperField(this, 7, value);
2540
- };
2541
-
2542
-
2543
- /**
2544
- * @param {!proto.Spic.AlarmProto.AlarmAction=} opt_value
2545
- * @param {number=} opt_index
2546
- * @return {!proto.Spic.AlarmProto.AlarmAction}
2547
- */
2548
- proto.Spic.AlarmProto.prototype.addAlarmActions = function(opt_value, opt_index) {
2549
- return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.Spic.AlarmProto.AlarmAction, opt_index);
2550
- };
2551
-
2552
-
2553
- /**
2554
- * Clears the list making it empty but non-null.
2555
- * @return {!proto.Spic.AlarmProto} returns this
2556
- */
2557
- proto.Spic.AlarmProto.prototype.clearAlarmActionsList = function() {
2558
- return this.setAlarmActionsList([]);
2559
- };
2560
-
2561
-
2562
- goog.object.extend(exports, proto.Spic);