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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/auth.account_pb.d.ts +433 -0
  2. package/auth.account_pb.js +3141 -0
  3. package/auth.account_pb_service.d.ts +216 -0
  4. package/auth.account_pb_service.js +382 -0
  5. package/auth.account_two_factor_pb.d.ts +135 -0
  6. package/auth.account_two_factor_pb.js +1002 -0
  7. package/auth.account_two_factor_pb_service.d.ts +102 -0
  8. package/auth.account_two_factor_pb_service.js +142 -0
  9. package/auth.app_account_pb.d.ts +186 -0
  10. package/auth.app_account_pb.js +1343 -0
  11. package/auth.app_account_pb_service.d.ts +179 -0
  12. package/auth.app_account_pb_service.js +303 -0
  13. package/auth.app_authn_pb.d.ts +172 -0
  14. package/auth.app_authn_pb.js +1233 -0
  15. package/auth.app_authn_pb_service.d.ts +140 -0
  16. package/auth.app_authn_pb_service.js +222 -0
  17. package/auth.app_distribution_pb.d.ts +416 -0
  18. package/auth.app_distribution_pb.js +3214 -0
  19. package/auth.app_distribution_pb_service.d.ts +196 -0
  20. package/auth.app_distribution_pb_service.js +341 -0
  21. package/auth.authn_pb.d.ts +95 -0
  22. package/auth.authn_pb.js +637 -0
  23. package/auth.authn_pb_service.d.ts +82 -0
  24. package/auth.authn_pb_service.js +101 -0
  25. package/auth.cluster_pb.d.ts +142 -0
  26. package/auth.cluster_pb.js +1050 -0
  27. package/auth.cluster_pb_service.d.ts +82 -0
  28. package/auth.cluster_pb_service.js +101 -0
  29. package/auth.distribution_pb.d.ts +233 -0
  30. package/auth.distribution_pb.js +1785 -0
  31. package/auth.distribution_pb_service.d.ts +82 -0
  32. package/auth.distribution_pb_service.js +101 -0
  33. package/auth.email_pb.d.ts +217 -0
  34. package/auth.email_pb.js +1508 -0
  35. package/auth.email_pb_service.d.ts +102 -0
  36. package/auth.email_pb_service.js +142 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.passkey_pb.d.ts +239 -0
  42. package/auth.passkey_pb.js +1842 -0
  43. package/auth.passkey_pb_service.d.ts +160 -0
  44. package/auth.passkey_pb_service.js +263 -0
  45. package/auth.push_notification_pb.d.ts +69 -0
  46. package/auth.push_notification_pb.js +411 -0
  47. package/auth.push_notification_pb_service.d.ts +64 -0
  48. package/auth.push_notification_pb_service.js +62 -0
  49. package/auth.sms_pb.d.ts +79 -0
  50. package/auth.sms_pb.js +575 -0
  51. package/auth.sms_pb_service.d.ts +83 -0
  52. package/auth.sms_pb_service.js +102 -0
  53. package/google/api/annotations_pb.d.ts +9 -0
  54. package/google/api/annotations_pb.js +54 -0
  55. package/google/api/annotations_pb_service.d.ts +3 -0
  56. package/google/api/annotations_pb_service.js +3 -0
  57. package/google/api/auth_pb.d.ts +150 -0
  58. package/google/api/auth_pb.js +1160 -0
  59. package/google/api/auth_pb_service.d.ts +3 -0
  60. package/google/api/auth_pb_service.js +3 -0
  61. package/google/api/backend_pb.d.ts +59 -0
  62. package/google/api/backend_pb.js +448 -0
  63. package/google/api/backend_pb_service.d.ts +3 -0
  64. package/google/api/backend_pb_service.js +3 -0
  65. package/google/api/billing_pb.d.ts +54 -0
  66. package/google/api/billing_pb.js +416 -0
  67. package/google/api/billing_pb_service.d.ts +3 -0
  68. package/google/api/billing_pb_service.js +3 -0
  69. package/google/api/client_pb.d.ts +12 -0
  70. package/google/api/client_pb.js +104 -0
  71. package/google/api/client_pb_service.d.ts +3 -0
  72. package/google/api/client_pb_service.js +3 -0
  73. package/google/api/config_change_pb.d.ts +72 -0
  74. package/google/api/config_change_pb.js +489 -0
  75. package/google/api/config_change_pb_service.d.ts +3 -0
  76. package/google/api/config_change_pb_service.js +3 -0
  77. package/google/api/consumer_pb.d.ts +65 -0
  78. package/google/api/consumer_pb.js +430 -0
  79. package/google/api/consumer_pb_service.d.ts +3 -0
  80. package/google/api/consumer_pb_service.js +3 -0
  81. package/google/api/context_pb.d.ts +59 -0
  82. package/google/api/context_pb.js +463 -0
  83. package/google/api/context_pb_service.d.ts +3 -0
  84. package/google/api/context_pb_service.js +3 -0
  85. package/google/api/control_pb.d.ts +25 -0
  86. package/google/api/control_pb.js +176 -0
  87. package/google/api/control_pb_service.d.ts +3 -0
  88. package/google/api/control_pb_service.js +3 -0
  89. package/google/api/distribution_pb.d.ts +235 -0
  90. package/google/api/distribution_pb.js +1805 -0
  91. package/google/api/distribution_pb_service.d.ts +3 -0
  92. package/google/api/distribution_pb_service.js +3 -0
  93. package/google/api/documentation_pb.d.ts +103 -0
  94. package/google/api/documentation_pb.js +803 -0
  95. package/google/api/documentation_pb_service.d.ts +3 -0
  96. package/google/api/documentation_pb_service.js +3 -0
  97. package/google/api/endpoint_pb.d.ts +46 -0
  98. package/google/api/endpoint_pb.js +343 -0
  99. package/google/api/endpoint_pb_service.d.ts +3 -0
  100. package/google/api/endpoint_pb_service.js +3 -0
  101. package/google/api/error_reason_pb.d.ts +40 -0
  102. package/google/api/error_reason_pb.js +61 -0
  103. package/google/api/error_reason_pb_service.d.ts +3 -0
  104. package/google/api/error_reason_pb_service.js +3 -0
  105. package/google/api/field_behavior_pb.d.ts +20 -0
  106. package/google/api/field_behavior_pb.js +66 -0
  107. package/google/api/field_behavior_pb_service.d.ts +3 -0
  108. package/google/api/field_behavior_pb_service.js +3 -0
  109. package/google/api/http_pb.d.ts +136 -0
  110. package/google/api/http_pb.js +1012 -0
  111. package/google/api/http_pb_service.d.ts +3 -0
  112. package/google/api/http_pb_service.js +3 -0
  113. package/google/api/httpbody_pb.d.ts +38 -0
  114. package/google/api/httpbody_pb.js +292 -0
  115. package/google/api/httpbody_pb_service.d.ts +3 -0
  116. package/google/api/httpbody_pb_service.js +3 -0
  117. package/google/api/label_pb.d.ts +41 -0
  118. package/google/api/label_pb.js +246 -0
  119. package/google/api/label_pb_service.d.ts +3 -0
  120. package/google/api/label_pb_service.js +3 -0
  121. package/google/api/launch_stage_pb.d.ts +16 -0
  122. package/google/api/launch_stage_pb.js +37 -0
  123. package/google/api/launch_stage_pb_service.d.ts +3 -0
  124. package/google/api/launch_stage_pb_service.js +3 -0
  125. package/google/api/log_pb.d.ts +40 -0
  126. package/google/api/log_pb.js +298 -0
  127. package/google/api/log_pb_service.d.ts +3 -0
  128. package/google/api/log_pb_service.js +3 -0
  129. package/google/api/logging_pb.d.ts +60 -0
  130. package/google/api/logging_pb.js +469 -0
  131. package/google/api/logging_pb_service.d.ts +3 -0
  132. package/google/api/logging_pb_service.js +3 -0
  133. package/google/api/metric_pb.d.ts +100 -0
  134. package/google/api/metric_pb.js +629 -0
  135. package/google/api/metric_pb_service.d.ts +3 -0
  136. package/google/api/metric_pb_service.js +3 -0
  137. package/google/api/monitored_resource_pb.d.ts +93 -0
  138. package/google/api/monitored_resource_pb.js +723 -0
  139. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  140. package/google/api/monitored_resource_pb_service.js +3 -0
  141. package/google/api/monitoring_pb.d.ts +60 -0
  142. package/google/api/monitoring_pb.js +469 -0
  143. package/google/api/monitoring_pb_service.d.ts +3 -0
  144. package/google/api/monitoring_pb_service.js +3 -0
  145. package/google/api/policy_pb.d.ts +64 -0
  146. package/google/api/policy_pb.js +502 -0
  147. package/google/api/policy_pb_service.d.ts +3 -0
  148. package/google/api/policy_pb_service.js +3 -0
  149. package/google/api/quota_pb.d.ts +112 -0
  150. package/google/api/quota_pb.js +873 -0
  151. package/google/api/quota_pb_service.d.ts +3 -0
  152. package/google/api/quota_pb_service.js +3 -0
  153. package/google/api/resource_pb.d.ts +99 -0
  154. package/google/api/resource_pb.js +684 -0
  155. package/google/api/resource_pb_service.d.ts +3 -0
  156. package/google/api/resource_pb_service.js +3 -0
  157. package/google/api/routing_pb.d.ts +54 -0
  158. package/google/api/routing_pb.js +416 -0
  159. package/google/api/routing_pb_service.d.ts +3 -0
  160. package/google/api/routing_pb_service.js +3 -0
  161. package/google/api/service_pb.d.ts +184 -0
  162. package/google/api/service_pb.js +1400 -0
  163. package/google/api/service_pb_service.d.ts +3 -0
  164. package/google/api/service_pb_service.js +3 -0
  165. package/google/api/source_info_pb.d.ts +28 -0
  166. package/google/api/source_info_pb.js +208 -0
  167. package/google/api/source_info_pb_service.d.ts +3 -0
  168. package/google/api/source_info_pb_service.js +3 -0
  169. package/google/api/system_parameter_pb.d.ts +81 -0
  170. package/google/api/system_parameter_pb.js +630 -0
  171. package/google/api/system_parameter_pb_service.d.ts +3 -0
  172. package/google/api/system_parameter_pb_service.js +3 -0
  173. package/google/api/usage_pb.d.ts +66 -0
  174. package/google/api/usage_pb.js +499 -0
  175. package/google/api/usage_pb_service.d.ts +3 -0
  176. package/google/api/usage_pb_service.js +3 -0
  177. package/google/api/visibility_pb.d.ts +64 -0
  178. package/google/api/visibility_pb.js +546 -0
  179. package/google/api/visibility_pb_service.d.ts +3 -0
  180. package/google/api/visibility_pb_service.js +3 -0
  181. package/meta.client_pb.d.ts +167 -0
  182. package/meta.client_pb.js +1266 -0
  183. package/meta.client_pb_service.d.ts +122 -0
  184. package/meta.client_pb_service.js +183 -0
  185. package/meta.spic_config_pb.d.ts +184 -0
  186. package/meta.spic_config_pb.js +1382 -0
  187. package/meta.spic_config_pb_service.d.ts +122 -0
  188. package/meta.spic_config_pb_service.js +183 -0
  189. package/package.json +1 -1
  190. package/platform.activity_log_pb.d.ts +177 -0
  191. package/platform.activity_log_pb.js +1294 -0
  192. package/platform.activity_log_pb_service.d.ts +82 -0
  193. package/platform.activity_log_pb_service.js +101 -0
  194. package/platform.client_pb.d.ts +350 -0
  195. package/platform.client_pb.js +2663 -0
  196. package/platform.client_pb_service.d.ts +158 -0
  197. package/platform.client_pb_service.js +261 -0
  198. package/platform.group_pb.d.ts +195 -0
  199. package/platform.group_pb.js +1476 -0
  200. package/platform.group_pb_service.d.ts +139 -0
  201. package/platform.group_pb_service.js +221 -0
  202. package/platform.local_account_internal_pb.d.ts +125 -0
  203. package/platform.local_account_internal_pb.js +933 -0
  204. package/platform.local_account_internal_pb_service.d.ts +121 -0
  205. package/platform.local_account_internal_pb_service.js +182 -0
  206. package/platform.local_account_pb.d.ts +466 -0
  207. package/platform.local_account_pb.js +3489 -0
  208. package/platform.local_account_pb_service.d.ts +331 -0
  209. package/platform.local_account_pb_service.js +623 -0
  210. package/platform.local_distribution_pb.d.ts +73 -0
  211. package/platform.local_distribution_pb.js +536 -0
  212. package/platform.local_distribution_pb_service.d.ts +63 -0
  213. package/platform.local_distribution_pb_service.js +61 -0
  214. package/platform.location_pb.d.ts +271 -0
  215. package/platform.location_pb.js +2046 -0
  216. package/platform.location_pb_service.d.ts +139 -0
  217. package/platform.location_pb_service.js +221 -0
  218. package/platform.pagination_pb.d.ts +45 -0
  219. package/platform.pagination_pb.js +276 -0
  220. package/platform.pagination_pb_service.d.ts +3 -0
  221. package/platform.pagination_pb_service.js +3 -0
  222. package/spic.alarm_pb.d.ts +382 -0
  223. package/spic.alarm_pb.js +2915 -0
  224. package/spic.alarm_pb_service.d.ts +101 -0
  225. package/spic.alarm_pb_service.js +141 -0
  226. package/spic.asset_pb.d.ts +697 -0
  227. package/spic.asset_pb.js +4995 -0
  228. package/spic.asset_pb_service.d.ts +197 -0
  229. package/spic.asset_pb_service.js +342 -0
  230. package/spic.cabinet_pb.d.ts +1062 -0
  231. package/spic.cabinet_pb.js +7723 -0
  232. package/spic.cabinet_pb_service.d.ts +245 -0
  233. package/spic.cabinet_pb_service.js +437 -0
  234. package/spic.config_pb.d.ts +249 -0
  235. package/spic.config_pb.js +1891 -0
  236. package/spic.config_pb_service.d.ts +120 -0
  237. package/spic.config_pb_service.js +181 -0
  238. package/spic.contractor_pb.d.ts +195 -0
  239. package/spic.contractor_pb.js +1476 -0
  240. package/spic.contractor_pb_service.d.ts +139 -0
  241. package/spic.contractor_pb_service.js +221 -0
  242. package/spic.history_pb.d.ts +142 -0
  243. package/spic.history_pb.js +1130 -0
  244. package/spic.history_pb_service.d.ts +63 -0
  245. package/spic.history_pb_service.js +61 -0
  246. package/spic.open_request_pb.d.ts +237 -0
  247. package/spic.open_request_pb.js +1784 -0
  248. package/spic.open_request_pb_service.d.ts +101 -0
  249. package/spic.open_request_pb_service.js +141 -0
@@ -0,0 +1,4995 @@
1
+ // source: spic.asset.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_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
25
+ goog.object.extend(proto, google_protobuf_empty_pb);
26
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
27
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
28
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
29
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
30
+ var platform_location_pb = require('./platform.location_pb.js');
31
+ goog.object.extend(proto, platform_location_pb);
32
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
33
+ goog.object.extend(proto, platform_pagination_pb);
34
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
35
+ goog.object.extend(proto, google_api_annotations_pb);
36
+ goog.exportSymbol('proto.Spic.AssetProto', null, global);
37
+ goog.exportSymbol('proto.Spic.AssetProto.AssetType', null, global);
38
+ goog.exportSymbol('proto.Spic.AssetProto.BatteryStatus', null, global);
39
+ goog.exportSymbol('proto.Spic.AssetProto.CreateRequest', null, global);
40
+ goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest', null, global);
41
+ goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest.SearchCase', null, global);
42
+ goog.exportSymbol('proto.Spic.AssetProto.DeviceType', null, global);
43
+ goog.exportSymbol('proto.Spic.AssetProto.Image', null, global);
44
+ goog.exportSymbol('proto.Spic.AssetProto.Image.RetrieveReply', null, global);
45
+ goog.exportSymbol('proto.Spic.AssetProto.Image.RetrieveRequest', null, global);
46
+ goog.exportSymbol('proto.Spic.AssetProto.LocationSearchReply', null, global);
47
+ goog.exportSymbol('proto.Spic.AssetProto.LocationSearchRequest', null, global);
48
+ goog.exportSymbol('proto.Spic.AssetProto.ReplaceBatteryRequest', null, global);
49
+ goog.exportSymbol('proto.Spic.AssetProto.RetrieveRequest', null, global);
50
+ goog.exportSymbol('proto.Spic.AssetProto.RetrieveRequest.SearchCase', null, global);
51
+ goog.exportSymbol('proto.Spic.AssetProto.SearchReply', null, global);
52
+ goog.exportSymbol('proto.Spic.AssetProto.SearchRequest', null, global);
53
+ goog.exportSymbol('proto.Spic.AssetProto.StateChangedEvent', null, global);
54
+ goog.exportSymbol('proto.Spic.AssetProto.UpdateRequest', null, global);
55
+ goog.exportSymbol('proto.Spic.AssetWithLocation', null, global);
56
+ goog.exportSymbol('proto.Spic.AssetWithLocationAndDistance', null, global);
57
+ goog.exportSymbol('proto.Spic.ComponentIdentifier', null, global);
58
+ goog.exportSymbol('proto.Spic.ComponentProto', null, global);
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.Spic.AssetProto = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AssetProto.repeatedFields_, null);
71
+ };
72
+ goog.inherits(proto.Spic.AssetProto, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.Spic.AssetProto.displayName = 'proto.Spic.AssetProto';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.Spic.AssetProto.CreateRequest = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.Spic.AssetProto.CreateRequest, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.Spic.AssetProto.CreateRequest.displayName = 'proto.Spic.AssetProto.CreateRequest';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.Spic.AssetProto.RetrieveRequest = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_);
113
+ };
114
+ goog.inherits(proto.Spic.AssetProto.RetrieveRequest, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.Spic.AssetProto.RetrieveRequest.displayName = 'proto.Spic.AssetProto.RetrieveRequest';
121
+ }
122
+ /**
123
+ * Generated by JsPbCodeGenerator.
124
+ * @param {Array=} opt_data Optional initial data array, typically from a
125
+ * server response, or constructed directly in Javascript. The array is used
126
+ * in place and becomes part of the constructed object. It is not cloned.
127
+ * If no data is provided, the constructed object will be empty, but still
128
+ * valid.
129
+ * @extends {jspb.Message}
130
+ * @constructor
131
+ */
132
+ proto.Spic.AssetProto.UpdateRequest = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
+ };
135
+ goog.inherits(proto.Spic.AssetProto.UpdateRequest, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.Spic.AssetProto.UpdateRequest.displayName = 'proto.Spic.AssetProto.UpdateRequest';
142
+ }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.Spic.AssetProto.DeleteRequest = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Spic.AssetProto.DeleteRequest.oneofGroups_);
155
+ };
156
+ goog.inherits(proto.Spic.AssetProto.DeleteRequest, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.Spic.AssetProto.DeleteRequest.displayName = 'proto.Spic.AssetProto.DeleteRequest';
163
+ }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.Spic.AssetProto.SearchRequest = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
+ };
177
+ goog.inherits(proto.Spic.AssetProto.SearchRequest, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.Spic.AssetProto.SearchRequest.displayName = 'proto.Spic.AssetProto.SearchRequest';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.Spic.AssetProto.SearchReply = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AssetProto.SearchReply.repeatedFields_, null);
197
+ };
198
+ goog.inherits(proto.Spic.AssetProto.SearchReply, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.Spic.AssetProto.SearchReply.displayName = 'proto.Spic.AssetProto.SearchReply';
205
+ }
206
+ /**
207
+ * Generated by JsPbCodeGenerator.
208
+ * @param {Array=} opt_data Optional initial data array, typically from a
209
+ * server response, or constructed directly in Javascript. The array is used
210
+ * in place and becomes part of the constructed object. It is not cloned.
211
+ * If no data is provided, the constructed object will be empty, but still
212
+ * valid.
213
+ * @extends {jspb.Message}
214
+ * @constructor
215
+ */
216
+ proto.Spic.AssetProto.LocationSearchRequest = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
218
+ };
219
+ goog.inherits(proto.Spic.AssetProto.LocationSearchRequest, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.Spic.AssetProto.LocationSearchRequest.displayName = 'proto.Spic.AssetProto.LocationSearchRequest';
226
+ }
227
+ /**
228
+ * Generated by JsPbCodeGenerator.
229
+ * @param {Array=} opt_data Optional initial data array, typically from a
230
+ * server response, or constructed directly in Javascript. The array is used
231
+ * in place and becomes part of the constructed object. It is not cloned.
232
+ * If no data is provided, the constructed object will be empty, but still
233
+ * valid.
234
+ * @extends {jspb.Message}
235
+ * @constructor
236
+ */
237
+ proto.Spic.AssetProto.LocationSearchReply = function(opt_data) {
238
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AssetProto.LocationSearchReply.repeatedFields_, null);
239
+ };
240
+ goog.inherits(proto.Spic.AssetProto.LocationSearchReply, jspb.Message);
241
+ if (goog.DEBUG && !COMPILED) {
242
+ /**
243
+ * @public
244
+ * @override
245
+ */
246
+ proto.Spic.AssetProto.LocationSearchReply.displayName = 'proto.Spic.AssetProto.LocationSearchReply';
247
+ }
248
+ /**
249
+ * Generated by JsPbCodeGenerator.
250
+ * @param {Array=} opt_data Optional initial data array, typically from a
251
+ * server response, or constructed directly in Javascript. The array is used
252
+ * in place and becomes part of the constructed object. It is not cloned.
253
+ * If no data is provided, the constructed object will be empty, but still
254
+ * valid.
255
+ * @extends {jspb.Message}
256
+ * @constructor
257
+ */
258
+ proto.Spic.AssetProto.ReplaceBatteryRequest = function(opt_data) {
259
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
260
+ };
261
+ goog.inherits(proto.Spic.AssetProto.ReplaceBatteryRequest, jspb.Message);
262
+ if (goog.DEBUG && !COMPILED) {
263
+ /**
264
+ * @public
265
+ * @override
266
+ */
267
+ proto.Spic.AssetProto.ReplaceBatteryRequest.displayName = 'proto.Spic.AssetProto.ReplaceBatteryRequest';
268
+ }
269
+ /**
270
+ * Generated by JsPbCodeGenerator.
271
+ * @param {Array=} opt_data Optional initial data array, typically from a
272
+ * server response, or constructed directly in Javascript. The array is used
273
+ * in place and becomes part of the constructed object. It is not cloned.
274
+ * If no data is provided, the constructed object will be empty, but still
275
+ * valid.
276
+ * @extends {jspb.Message}
277
+ * @constructor
278
+ */
279
+ proto.Spic.AssetProto.Image = function(opt_data) {
280
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
281
+ };
282
+ goog.inherits(proto.Spic.AssetProto.Image, jspb.Message);
283
+ if (goog.DEBUG && !COMPILED) {
284
+ /**
285
+ * @public
286
+ * @override
287
+ */
288
+ proto.Spic.AssetProto.Image.displayName = 'proto.Spic.AssetProto.Image';
289
+ }
290
+ /**
291
+ * Generated by JsPbCodeGenerator.
292
+ * @param {Array=} opt_data Optional initial data array, typically from a
293
+ * server response, or constructed directly in Javascript. The array is used
294
+ * in place and becomes part of the constructed object. It is not cloned.
295
+ * If no data is provided, the constructed object will be empty, but still
296
+ * valid.
297
+ * @extends {jspb.Message}
298
+ * @constructor
299
+ */
300
+ proto.Spic.AssetProto.Image.RetrieveRequest = function(opt_data) {
301
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
302
+ };
303
+ goog.inherits(proto.Spic.AssetProto.Image.RetrieveRequest, jspb.Message);
304
+ if (goog.DEBUG && !COMPILED) {
305
+ /**
306
+ * @public
307
+ * @override
308
+ */
309
+ proto.Spic.AssetProto.Image.RetrieveRequest.displayName = 'proto.Spic.AssetProto.Image.RetrieveRequest';
310
+ }
311
+ /**
312
+ * Generated by JsPbCodeGenerator.
313
+ * @param {Array=} opt_data Optional initial data array, typically from a
314
+ * server response, or constructed directly in Javascript. The array is used
315
+ * in place and becomes part of the constructed object. It is not cloned.
316
+ * If no data is provided, the constructed object will be empty, but still
317
+ * valid.
318
+ * @extends {jspb.Message}
319
+ * @constructor
320
+ */
321
+ proto.Spic.AssetProto.Image.RetrieveReply = function(opt_data) {
322
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
323
+ };
324
+ goog.inherits(proto.Spic.AssetProto.Image.RetrieveReply, jspb.Message);
325
+ if (goog.DEBUG && !COMPILED) {
326
+ /**
327
+ * @public
328
+ * @override
329
+ */
330
+ proto.Spic.AssetProto.Image.RetrieveReply.displayName = 'proto.Spic.AssetProto.Image.RetrieveReply';
331
+ }
332
+ /**
333
+ * Generated by JsPbCodeGenerator.
334
+ * @param {Array=} opt_data Optional initial data array, typically from a
335
+ * server response, or constructed directly in Javascript. The array is used
336
+ * in place and becomes part of the constructed object. It is not cloned.
337
+ * If no data is provided, the constructed object will be empty, but still
338
+ * valid.
339
+ * @extends {jspb.Message}
340
+ * @constructor
341
+ */
342
+ proto.Spic.AssetProto.StateChangedEvent = function(opt_data) {
343
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
344
+ };
345
+ goog.inherits(proto.Spic.AssetProto.StateChangedEvent, jspb.Message);
346
+ if (goog.DEBUG && !COMPILED) {
347
+ /**
348
+ * @public
349
+ * @override
350
+ */
351
+ proto.Spic.AssetProto.StateChangedEvent.displayName = 'proto.Spic.AssetProto.StateChangedEvent';
352
+ }
353
+ /**
354
+ * Generated by JsPbCodeGenerator.
355
+ * @param {Array=} opt_data Optional initial data array, typically from a
356
+ * server response, or constructed directly in Javascript. The array is used
357
+ * in place and becomes part of the constructed object. It is not cloned.
358
+ * If no data is provided, the constructed object will be empty, but still
359
+ * valid.
360
+ * @extends {jspb.Message}
361
+ * @constructor
362
+ */
363
+ proto.Spic.ComponentProto = function(opt_data) {
364
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
365
+ };
366
+ goog.inherits(proto.Spic.ComponentProto, jspb.Message);
367
+ if (goog.DEBUG && !COMPILED) {
368
+ /**
369
+ * @public
370
+ * @override
371
+ */
372
+ proto.Spic.ComponentProto.displayName = 'proto.Spic.ComponentProto';
373
+ }
374
+ /**
375
+ * Generated by JsPbCodeGenerator.
376
+ * @param {Array=} opt_data Optional initial data array, typically from a
377
+ * server response, or constructed directly in Javascript. The array is used
378
+ * in place and becomes part of the constructed object. It is not cloned.
379
+ * If no data is provided, the constructed object will be empty, but still
380
+ * valid.
381
+ * @extends {jspb.Message}
382
+ * @constructor
383
+ */
384
+ proto.Spic.AssetWithLocation = function(opt_data) {
385
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
386
+ };
387
+ goog.inherits(proto.Spic.AssetWithLocation, jspb.Message);
388
+ if (goog.DEBUG && !COMPILED) {
389
+ /**
390
+ * @public
391
+ * @override
392
+ */
393
+ proto.Spic.AssetWithLocation.displayName = 'proto.Spic.AssetWithLocation';
394
+ }
395
+ /**
396
+ * Generated by JsPbCodeGenerator.
397
+ * @param {Array=} opt_data Optional initial data array, typically from a
398
+ * server response, or constructed directly in Javascript. The array is used
399
+ * in place and becomes part of the constructed object. It is not cloned.
400
+ * If no data is provided, the constructed object will be empty, but still
401
+ * valid.
402
+ * @extends {jspb.Message}
403
+ * @constructor
404
+ */
405
+ proto.Spic.AssetWithLocationAndDistance = function(opt_data) {
406
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
407
+ };
408
+ goog.inherits(proto.Spic.AssetWithLocationAndDistance, jspb.Message);
409
+ if (goog.DEBUG && !COMPILED) {
410
+ /**
411
+ * @public
412
+ * @override
413
+ */
414
+ proto.Spic.AssetWithLocationAndDistance.displayName = 'proto.Spic.AssetWithLocationAndDistance';
415
+ }
416
+
417
+ /**
418
+ * List of repeated fields within this message type.
419
+ * @private {!Array<number>}
420
+ * @const
421
+ */
422
+ proto.Spic.AssetProto.repeatedFields_ = [19];
423
+
424
+
425
+
426
+ if (jspb.Message.GENERATE_TO_OBJECT) {
427
+ /**
428
+ * Creates an object representation of this proto.
429
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
430
+ * Optional fields that are not set will be set to undefined.
431
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
432
+ * For the list of reserved names please see:
433
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
434
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
435
+ * JSPB instance for transitional soy proto support:
436
+ * http://goto/soy-param-migration
437
+ * @return {!Object}
438
+ */
439
+ proto.Spic.AssetProto.prototype.toObject = function(opt_includeInstance) {
440
+ return proto.Spic.AssetProto.toObject(opt_includeInstance, this);
441
+ };
442
+
443
+
444
+ /**
445
+ * Static version of the {@see toObject} method.
446
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
447
+ * the JSPB instance for transitional soy proto support:
448
+ * http://goto/soy-param-migration
449
+ * @param {!proto.Spic.AssetProto} msg The msg instance to transform.
450
+ * @return {!Object}
451
+ * @suppress {unusedLocalVariables} f is only used for nested messages
452
+ */
453
+ proto.Spic.AssetProto.toObject = function(includeInstance, msg) {
454
+ var f, obj = {
455
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
456
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
457
+ locationId: jspb.Message.getFieldWithDefault(msg, 3, 0),
458
+ uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
459
+ status: jspb.Message.getFieldWithDefault(msg, 5, 0),
460
+ lastStatusUpdate: (f = msg.getLastStatusUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
461
+ groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
462
+ clientId: jspb.Message.getFieldWithDefault(msg, 9, 0),
463
+ isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
464
+ imageBlob: jspb.Message.getFieldWithDefault(msg, 11, ""),
465
+ batteryPlaced: (f = msg.getBatteryPlaced()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
466
+ batteryPercentage: jspb.Message.getFieldWithDefault(msg, 13, 0),
467
+ communicationTime: jspb.Message.getFieldWithDefault(msg, 14, 0),
468
+ lastConfigString: jspb.Message.getFieldWithDefault(msg, 15, ""),
469
+ lastConfigUpdated: (f = msg.getLastConfigUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
470
+ assetType: jspb.Message.getFieldWithDefault(msg, 17, 0),
471
+ batteryStatus: jspb.Message.getFieldWithDefault(msg, 18, 0),
472
+ statesList: jspb.Message.toObjectList(msg.getStatesList(),
473
+ proto.Spic.ComponentProto.toObject, includeInstance),
474
+ deviceType: jspb.Message.getFieldWithDefault(msg, 20, 0)
475
+ };
476
+
477
+ if (includeInstance) {
478
+ obj.$jspbMessageInstance = msg;
479
+ }
480
+ return obj;
481
+ };
482
+ }
483
+
484
+
485
+ /**
486
+ * Deserializes binary data (in protobuf wire format).
487
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
488
+ * @return {!proto.Spic.AssetProto}
489
+ */
490
+ proto.Spic.AssetProto.deserializeBinary = function(bytes) {
491
+ var reader = new jspb.BinaryReader(bytes);
492
+ var msg = new proto.Spic.AssetProto;
493
+ return proto.Spic.AssetProto.deserializeBinaryFromReader(msg, reader);
494
+ };
495
+
496
+
497
+ /**
498
+ * Deserializes binary data (in protobuf wire format) from the
499
+ * given reader into the given message object.
500
+ * @param {!proto.Spic.AssetProto} msg The message object to deserialize into.
501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
502
+ * @return {!proto.Spic.AssetProto}
503
+ */
504
+ proto.Spic.AssetProto.deserializeBinaryFromReader = function(msg, reader) {
505
+ while (reader.nextField()) {
506
+ if (reader.isEndGroup()) {
507
+ break;
508
+ }
509
+ var field = reader.getFieldNumber();
510
+ switch (field) {
511
+ case 1:
512
+ var value = /** @type {number} */ (reader.readInt64());
513
+ msg.setId(value);
514
+ break;
515
+ case 2:
516
+ var value = /** @type {string} */ (reader.readString());
517
+ msg.setName(value);
518
+ break;
519
+ case 3:
520
+ var value = /** @type {number} */ (reader.readInt64());
521
+ msg.setLocationId(value);
522
+ break;
523
+ case 4:
524
+ var value = /** @type {string} */ (reader.readString());
525
+ msg.setUid(value);
526
+ break;
527
+ case 5:
528
+ var value = /** @type {number} */ (reader.readInt32());
529
+ msg.setStatus(value);
530
+ break;
531
+ case 7:
532
+ var value = new google_protobuf_timestamp_pb.Timestamp;
533
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
534
+ msg.setLastStatusUpdate(value);
535
+ break;
536
+ case 8:
537
+ var value = /** @type {string} */ (reader.readString());
538
+ msg.setGroupId(value);
539
+ break;
540
+ case 9:
541
+ var value = /** @type {number} */ (reader.readInt32());
542
+ msg.setClientId(value);
543
+ break;
544
+ case 10:
545
+ var value = /** @type {boolean} */ (reader.readBool());
546
+ msg.setIsMaintenance(value);
547
+ break;
548
+ case 11:
549
+ var value = /** @type {string} */ (reader.readString());
550
+ msg.setImageBlob(value);
551
+ break;
552
+ case 12:
553
+ var value = new google_protobuf_timestamp_pb.Timestamp;
554
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
555
+ msg.setBatteryPlaced(value);
556
+ break;
557
+ case 13:
558
+ var value = /** @type {number} */ (reader.readInt32());
559
+ msg.setBatteryPercentage(value);
560
+ break;
561
+ case 14:
562
+ var value = /** @type {number} */ (reader.readInt64());
563
+ msg.setCommunicationTime(value);
564
+ break;
565
+ case 15:
566
+ var value = /** @type {string} */ (reader.readString());
567
+ msg.setLastConfigString(value);
568
+ break;
569
+ case 16:
570
+ var value = new google_protobuf_timestamp_pb.Timestamp;
571
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
572
+ msg.setLastConfigUpdated(value);
573
+ break;
574
+ case 17:
575
+ var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
576
+ msg.setAssetType(value);
577
+ break;
578
+ case 18:
579
+ var value = /** @type {!proto.Spic.AssetProto.BatteryStatus} */ (reader.readEnum());
580
+ msg.setBatteryStatus(value);
581
+ break;
582
+ case 19:
583
+ var value = new proto.Spic.ComponentProto;
584
+ reader.readMessage(value,proto.Spic.ComponentProto.deserializeBinaryFromReader);
585
+ msg.addStates(value);
586
+ break;
587
+ case 20:
588
+ var value = /** @type {!proto.Spic.AssetProto.DeviceType} */ (reader.readEnum());
589
+ msg.setDeviceType(value);
590
+ break;
591
+ default:
592
+ reader.skipField();
593
+ break;
594
+ }
595
+ }
596
+ return msg;
597
+ };
598
+
599
+
600
+ /**
601
+ * Serializes the message to binary data (in protobuf wire format).
602
+ * @return {!Uint8Array}
603
+ */
604
+ proto.Spic.AssetProto.prototype.serializeBinary = function() {
605
+ var writer = new jspb.BinaryWriter();
606
+ proto.Spic.AssetProto.serializeBinaryToWriter(this, writer);
607
+ return writer.getResultBuffer();
608
+ };
609
+
610
+
611
+ /**
612
+ * Serializes the given message to binary data (in protobuf wire
613
+ * format), writing to the given BinaryWriter.
614
+ * @param {!proto.Spic.AssetProto} message
615
+ * @param {!jspb.BinaryWriter} writer
616
+ * @suppress {unusedLocalVariables} f is only used for nested messages
617
+ */
618
+ proto.Spic.AssetProto.serializeBinaryToWriter = function(message, writer) {
619
+ var f = undefined;
620
+ f = message.getId();
621
+ if (f !== 0) {
622
+ writer.writeInt64(
623
+ 1,
624
+ f
625
+ );
626
+ }
627
+ f = message.getName();
628
+ if (f.length > 0) {
629
+ writer.writeString(
630
+ 2,
631
+ f
632
+ );
633
+ }
634
+ f = message.getLocationId();
635
+ if (f !== 0) {
636
+ writer.writeInt64(
637
+ 3,
638
+ f
639
+ );
640
+ }
641
+ f = message.getUid();
642
+ if (f.length > 0) {
643
+ writer.writeString(
644
+ 4,
645
+ f
646
+ );
647
+ }
648
+ f = message.getStatus();
649
+ if (f !== 0) {
650
+ writer.writeInt32(
651
+ 5,
652
+ f
653
+ );
654
+ }
655
+ f = message.getLastStatusUpdate();
656
+ if (f != null) {
657
+ writer.writeMessage(
658
+ 7,
659
+ f,
660
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
661
+ );
662
+ }
663
+ f = message.getGroupId();
664
+ if (f.length > 0) {
665
+ writer.writeString(
666
+ 8,
667
+ f
668
+ );
669
+ }
670
+ f = message.getClientId();
671
+ if (f !== 0) {
672
+ writer.writeInt32(
673
+ 9,
674
+ f
675
+ );
676
+ }
677
+ f = message.getIsMaintenance();
678
+ if (f) {
679
+ writer.writeBool(
680
+ 10,
681
+ f
682
+ );
683
+ }
684
+ f = message.getImageBlob();
685
+ if (f.length > 0) {
686
+ writer.writeString(
687
+ 11,
688
+ f
689
+ );
690
+ }
691
+ f = message.getBatteryPlaced();
692
+ if (f != null) {
693
+ writer.writeMessage(
694
+ 12,
695
+ f,
696
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
697
+ );
698
+ }
699
+ f = message.getBatteryPercentage();
700
+ if (f !== 0) {
701
+ writer.writeInt32(
702
+ 13,
703
+ f
704
+ );
705
+ }
706
+ f = message.getCommunicationTime();
707
+ if (f !== 0) {
708
+ writer.writeInt64(
709
+ 14,
710
+ f
711
+ );
712
+ }
713
+ f = message.getLastConfigString();
714
+ if (f.length > 0) {
715
+ writer.writeString(
716
+ 15,
717
+ f
718
+ );
719
+ }
720
+ f = message.getLastConfigUpdated();
721
+ if (f != null) {
722
+ writer.writeMessage(
723
+ 16,
724
+ f,
725
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
726
+ );
727
+ }
728
+ f = message.getAssetType();
729
+ if (f !== 0.0) {
730
+ writer.writeEnum(
731
+ 17,
732
+ f
733
+ );
734
+ }
735
+ f = message.getBatteryStatus();
736
+ if (f !== 0.0) {
737
+ writer.writeEnum(
738
+ 18,
739
+ f
740
+ );
741
+ }
742
+ f = message.getStatesList();
743
+ if (f.length > 0) {
744
+ writer.writeRepeatedMessage(
745
+ 19,
746
+ f,
747
+ proto.Spic.ComponentProto.serializeBinaryToWriter
748
+ );
749
+ }
750
+ f = message.getDeviceType();
751
+ if (f !== 0.0) {
752
+ writer.writeEnum(
753
+ 20,
754
+ f
755
+ );
756
+ }
757
+ };
758
+
759
+
760
+ /**
761
+ * @enum {number}
762
+ */
763
+ proto.Spic.AssetProto.BatteryStatus = {
764
+ UNKOWWN: 0,
765
+ OK: 1,
766
+ REPLACE_WARNING: 2,
767
+ CRITICAL: 3
768
+ };
769
+
770
+ /**
771
+ * @enum {number}
772
+ */
773
+ proto.Spic.AssetProto.DeviceType = {
774
+ SPICV2_MANHOLE: 0,
775
+ SPICV2_PASSIVE_CABINET: 1
776
+ };
777
+
778
+ /**
779
+ * @enum {number}
780
+ */
781
+ proto.Spic.AssetProto.AssetType = {
782
+ CABINET: 0,
783
+ MANHOLE: 1,
784
+ CLOSURE: 2
785
+ };
786
+
787
+
788
+
789
+
790
+ if (jspb.Message.GENERATE_TO_OBJECT) {
791
+ /**
792
+ * Creates an object representation of this proto.
793
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
794
+ * Optional fields that are not set will be set to undefined.
795
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
796
+ * For the list of reserved names please see:
797
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
798
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
799
+ * JSPB instance for transitional soy proto support:
800
+ * http://goto/soy-param-migration
801
+ * @return {!Object}
802
+ */
803
+ proto.Spic.AssetProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
804
+ return proto.Spic.AssetProto.CreateRequest.toObject(opt_includeInstance, this);
805
+ };
806
+
807
+
808
+ /**
809
+ * Static version of the {@see toObject} method.
810
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
811
+ * the JSPB instance for transitional soy proto support:
812
+ * http://goto/soy-param-migration
813
+ * @param {!proto.Spic.AssetProto.CreateRequest} msg The msg instance to transform.
814
+ * @return {!Object}
815
+ * @suppress {unusedLocalVariables} f is only used for nested messages
816
+ */
817
+ proto.Spic.AssetProto.CreateRequest.toObject = function(includeInstance, msg) {
818
+ var f, obj = {
819
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
820
+ locationId: jspb.Message.getFieldWithDefault(msg, 2, 0),
821
+ uid: jspb.Message.getFieldWithDefault(msg, 3, ""),
822
+ image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
823
+ groupId: jspb.Message.getFieldWithDefault(msg, 5, ""),
824
+ clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
825
+ assetType: jspb.Message.getFieldWithDefault(msg, 7, 0),
826
+ isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
827
+ };
828
+
829
+ if (includeInstance) {
830
+ obj.$jspbMessageInstance = msg;
831
+ }
832
+ return obj;
833
+ };
834
+ }
835
+
836
+
837
+ /**
838
+ * Deserializes binary data (in protobuf wire format).
839
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
840
+ * @return {!proto.Spic.AssetProto.CreateRequest}
841
+ */
842
+ proto.Spic.AssetProto.CreateRequest.deserializeBinary = function(bytes) {
843
+ var reader = new jspb.BinaryReader(bytes);
844
+ var msg = new proto.Spic.AssetProto.CreateRequest;
845
+ return proto.Spic.AssetProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
846
+ };
847
+
848
+
849
+ /**
850
+ * Deserializes binary data (in protobuf wire format) from the
851
+ * given reader into the given message object.
852
+ * @param {!proto.Spic.AssetProto.CreateRequest} msg The message object to deserialize into.
853
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
854
+ * @return {!proto.Spic.AssetProto.CreateRequest}
855
+ */
856
+ proto.Spic.AssetProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
857
+ while (reader.nextField()) {
858
+ if (reader.isEndGroup()) {
859
+ break;
860
+ }
861
+ var field = reader.getFieldNumber();
862
+ switch (field) {
863
+ case 1:
864
+ var value = /** @type {string} */ (reader.readString());
865
+ msg.setName(value);
866
+ break;
867
+ case 2:
868
+ var value = /** @type {number} */ (reader.readInt64());
869
+ msg.setLocationId(value);
870
+ break;
871
+ case 3:
872
+ var value = /** @type {string} */ (reader.readString());
873
+ msg.setUid(value);
874
+ break;
875
+ case 4:
876
+ var value = new google_protobuf_wrappers_pb.BytesValue;
877
+ reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
878
+ msg.setImage(value);
879
+ break;
880
+ case 5:
881
+ var value = /** @type {string} */ (reader.readString());
882
+ msg.setGroupId(value);
883
+ break;
884
+ case 6:
885
+ var value = /** @type {number} */ (reader.readInt32());
886
+ msg.setClientId(value);
887
+ break;
888
+ case 7:
889
+ var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
890
+ msg.setAssetType(value);
891
+ break;
892
+ case 8:
893
+ var value = /** @type {boolean} */ (reader.readBool());
894
+ msg.setIsMaintenance(value);
895
+ break;
896
+ default:
897
+ reader.skipField();
898
+ break;
899
+ }
900
+ }
901
+ return msg;
902
+ };
903
+
904
+
905
+ /**
906
+ * Serializes the message to binary data (in protobuf wire format).
907
+ * @return {!Uint8Array}
908
+ */
909
+ proto.Spic.AssetProto.CreateRequest.prototype.serializeBinary = function() {
910
+ var writer = new jspb.BinaryWriter();
911
+ proto.Spic.AssetProto.CreateRequest.serializeBinaryToWriter(this, writer);
912
+ return writer.getResultBuffer();
913
+ };
914
+
915
+
916
+ /**
917
+ * Serializes the given message to binary data (in protobuf wire
918
+ * format), writing to the given BinaryWriter.
919
+ * @param {!proto.Spic.AssetProto.CreateRequest} message
920
+ * @param {!jspb.BinaryWriter} writer
921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
922
+ */
923
+ proto.Spic.AssetProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
924
+ var f = undefined;
925
+ f = message.getName();
926
+ if (f.length > 0) {
927
+ writer.writeString(
928
+ 1,
929
+ f
930
+ );
931
+ }
932
+ f = message.getLocationId();
933
+ if (f !== 0) {
934
+ writer.writeInt64(
935
+ 2,
936
+ f
937
+ );
938
+ }
939
+ f = message.getUid();
940
+ if (f.length > 0) {
941
+ writer.writeString(
942
+ 3,
943
+ f
944
+ );
945
+ }
946
+ f = message.getImage();
947
+ if (f != null) {
948
+ writer.writeMessage(
949
+ 4,
950
+ f,
951
+ google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
952
+ );
953
+ }
954
+ f = message.getGroupId();
955
+ if (f.length > 0) {
956
+ writer.writeString(
957
+ 5,
958
+ f
959
+ );
960
+ }
961
+ f = message.getClientId();
962
+ if (f !== 0) {
963
+ writer.writeInt32(
964
+ 6,
965
+ f
966
+ );
967
+ }
968
+ f = message.getAssetType();
969
+ if (f !== 0.0) {
970
+ writer.writeEnum(
971
+ 7,
972
+ f
973
+ );
974
+ }
975
+ f = message.getIsMaintenance();
976
+ if (f) {
977
+ writer.writeBool(
978
+ 8,
979
+ f
980
+ );
981
+ }
982
+ };
983
+
984
+
985
+ /**
986
+ * optional string name = 1;
987
+ * @return {string}
988
+ */
989
+ proto.Spic.AssetProto.CreateRequest.prototype.getName = function() {
990
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
991
+ };
992
+
993
+
994
+ /**
995
+ * @param {string} value
996
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
997
+ */
998
+ proto.Spic.AssetProto.CreateRequest.prototype.setName = function(value) {
999
+ return jspb.Message.setProto3StringField(this, 1, value);
1000
+ };
1001
+
1002
+
1003
+ /**
1004
+ * optional int64 location_id = 2;
1005
+ * @return {number}
1006
+ */
1007
+ proto.Spic.AssetProto.CreateRequest.prototype.getLocationId = function() {
1008
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * @param {number} value
1014
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1015
+ */
1016
+ proto.Spic.AssetProto.CreateRequest.prototype.setLocationId = function(value) {
1017
+ return jspb.Message.setProto3IntField(this, 2, value);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * optional string uid = 3;
1023
+ * @return {string}
1024
+ */
1025
+ proto.Spic.AssetProto.CreateRequest.prototype.getUid = function() {
1026
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1027
+ };
1028
+
1029
+
1030
+ /**
1031
+ * @param {string} value
1032
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1033
+ */
1034
+ proto.Spic.AssetProto.CreateRequest.prototype.setUid = function(value) {
1035
+ return jspb.Message.setProto3StringField(this, 3, value);
1036
+ };
1037
+
1038
+
1039
+ /**
1040
+ * optional google.protobuf.BytesValue image = 4;
1041
+ * @return {?proto.google.protobuf.BytesValue}
1042
+ */
1043
+ proto.Spic.AssetProto.CreateRequest.prototype.getImage = function() {
1044
+ return /** @type{?proto.google.protobuf.BytesValue} */ (
1045
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 4));
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * @param {?proto.google.protobuf.BytesValue|undefined} value
1051
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1052
+ */
1053
+ proto.Spic.AssetProto.CreateRequest.prototype.setImage = function(value) {
1054
+ return jspb.Message.setWrapperField(this, 4, value);
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * Clears the message field making it undefined.
1060
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1061
+ */
1062
+ proto.Spic.AssetProto.CreateRequest.prototype.clearImage = function() {
1063
+ return this.setImage(undefined);
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * Returns whether this field is set.
1069
+ * @return {boolean}
1070
+ */
1071
+ proto.Spic.AssetProto.CreateRequest.prototype.hasImage = function() {
1072
+ return jspb.Message.getField(this, 4) != null;
1073
+ };
1074
+
1075
+
1076
+ /**
1077
+ * optional string group_id = 5;
1078
+ * @return {string}
1079
+ */
1080
+ proto.Spic.AssetProto.CreateRequest.prototype.getGroupId = function() {
1081
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * @param {string} value
1087
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1088
+ */
1089
+ proto.Spic.AssetProto.CreateRequest.prototype.setGroupId = function(value) {
1090
+ return jspb.Message.setProto3StringField(this, 5, value);
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * optional int32 client_id = 6;
1096
+ * @return {number}
1097
+ */
1098
+ proto.Spic.AssetProto.CreateRequest.prototype.getClientId = function() {
1099
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * @param {number} value
1105
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1106
+ */
1107
+ proto.Spic.AssetProto.CreateRequest.prototype.setClientId = function(value) {
1108
+ return jspb.Message.setProto3IntField(this, 6, value);
1109
+ };
1110
+
1111
+
1112
+ /**
1113
+ * optional AssetType asset_type = 7;
1114
+ * @return {!proto.Spic.AssetProto.AssetType}
1115
+ */
1116
+ proto.Spic.AssetProto.CreateRequest.prototype.getAssetType = function() {
1117
+ return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * @param {!proto.Spic.AssetProto.AssetType} value
1123
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1124
+ */
1125
+ proto.Spic.AssetProto.CreateRequest.prototype.setAssetType = function(value) {
1126
+ return jspb.Message.setProto3EnumField(this, 7, value);
1127
+ };
1128
+
1129
+
1130
+ /**
1131
+ * optional bool is_maintenance = 8;
1132
+ * @return {boolean}
1133
+ */
1134
+ proto.Spic.AssetProto.CreateRequest.prototype.getIsMaintenance = function() {
1135
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
1136
+ };
1137
+
1138
+
1139
+ /**
1140
+ * @param {boolean} value
1141
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1142
+ */
1143
+ proto.Spic.AssetProto.CreateRequest.prototype.setIsMaintenance = function(value) {
1144
+ return jspb.Message.setProto3BooleanField(this, 8, value);
1145
+ };
1146
+
1147
+
1148
+
1149
+ /**
1150
+ * Oneof group definitions for this message. Each group defines the field
1151
+ * numbers belonging to that group. When of these fields' value is set, all
1152
+ * other fields in the group are cleared. During deserialization, if multiple
1153
+ * fields are encountered for a group, only the last value seen will be kept.
1154
+ * @private {!Array<!Array<number>>}
1155
+ * @const
1156
+ */
1157
+ proto.Spic.AssetProto.RetrieveRequest.oneofGroups_ = [[1,2]];
1158
+
1159
+ /**
1160
+ * @enum {number}
1161
+ */
1162
+ proto.Spic.AssetProto.RetrieveRequest.SearchCase = {
1163
+ SEARCH_NOT_SET: 0,
1164
+ ID: 1,
1165
+ UID: 2
1166
+ };
1167
+
1168
+ /**
1169
+ * @return {proto.Spic.AssetProto.RetrieveRequest.SearchCase}
1170
+ */
1171
+ proto.Spic.AssetProto.RetrieveRequest.prototype.getSearchCase = function() {
1172
+ return /** @type {proto.Spic.AssetProto.RetrieveRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0]));
1173
+ };
1174
+
1175
+
1176
+
1177
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1178
+ /**
1179
+ * Creates an object representation of this proto.
1180
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1181
+ * Optional fields that are not set will be set to undefined.
1182
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1183
+ * For the list of reserved names please see:
1184
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1185
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1186
+ * JSPB instance for transitional soy proto support:
1187
+ * http://goto/soy-param-migration
1188
+ * @return {!Object}
1189
+ */
1190
+ proto.Spic.AssetProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
1191
+ return proto.Spic.AssetProto.RetrieveRequest.toObject(opt_includeInstance, this);
1192
+ };
1193
+
1194
+
1195
+ /**
1196
+ * Static version of the {@see toObject} method.
1197
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1198
+ * the JSPB instance for transitional soy proto support:
1199
+ * http://goto/soy-param-migration
1200
+ * @param {!proto.Spic.AssetProto.RetrieveRequest} msg The msg instance to transform.
1201
+ * @return {!Object}
1202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1203
+ */
1204
+ proto.Spic.AssetProto.RetrieveRequest.toObject = function(includeInstance, msg) {
1205
+ var f, obj = {
1206
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1207
+ uid: jspb.Message.getFieldWithDefault(msg, 2, "")
1208
+ };
1209
+
1210
+ if (includeInstance) {
1211
+ obj.$jspbMessageInstance = msg;
1212
+ }
1213
+ return obj;
1214
+ };
1215
+ }
1216
+
1217
+
1218
+ /**
1219
+ * Deserializes binary data (in protobuf wire format).
1220
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1221
+ * @return {!proto.Spic.AssetProto.RetrieveRequest}
1222
+ */
1223
+ proto.Spic.AssetProto.RetrieveRequest.deserializeBinary = function(bytes) {
1224
+ var reader = new jspb.BinaryReader(bytes);
1225
+ var msg = new proto.Spic.AssetProto.RetrieveRequest;
1226
+ return proto.Spic.AssetProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
1227
+ };
1228
+
1229
+
1230
+ /**
1231
+ * Deserializes binary data (in protobuf wire format) from the
1232
+ * given reader into the given message object.
1233
+ * @param {!proto.Spic.AssetProto.RetrieveRequest} msg The message object to deserialize into.
1234
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1235
+ * @return {!proto.Spic.AssetProto.RetrieveRequest}
1236
+ */
1237
+ proto.Spic.AssetProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
1238
+ while (reader.nextField()) {
1239
+ if (reader.isEndGroup()) {
1240
+ break;
1241
+ }
1242
+ var field = reader.getFieldNumber();
1243
+ switch (field) {
1244
+ case 1:
1245
+ var value = /** @type {number} */ (reader.readInt64());
1246
+ msg.setId(value);
1247
+ break;
1248
+ case 2:
1249
+ var value = /** @type {string} */ (reader.readString());
1250
+ msg.setUid(value);
1251
+ break;
1252
+ default:
1253
+ reader.skipField();
1254
+ break;
1255
+ }
1256
+ }
1257
+ return msg;
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * Serializes the message to binary data (in protobuf wire format).
1263
+ * @return {!Uint8Array}
1264
+ */
1265
+ proto.Spic.AssetProto.RetrieveRequest.prototype.serializeBinary = function() {
1266
+ var writer = new jspb.BinaryWriter();
1267
+ proto.Spic.AssetProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
1268
+ return writer.getResultBuffer();
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * Serializes the given message to binary data (in protobuf wire
1274
+ * format), writing to the given BinaryWriter.
1275
+ * @param {!proto.Spic.AssetProto.RetrieveRequest} message
1276
+ * @param {!jspb.BinaryWriter} writer
1277
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1278
+ */
1279
+ proto.Spic.AssetProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
1280
+ var f = undefined;
1281
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1282
+ if (f != null) {
1283
+ writer.writeInt64(
1284
+ 1,
1285
+ f
1286
+ );
1287
+ }
1288
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1289
+ if (f != null) {
1290
+ writer.writeString(
1291
+ 2,
1292
+ f
1293
+ );
1294
+ }
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * optional int64 id = 1;
1300
+ * @return {number}
1301
+ */
1302
+ proto.Spic.AssetProto.RetrieveRequest.prototype.getId = function() {
1303
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * @param {number} value
1309
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1310
+ */
1311
+ proto.Spic.AssetProto.RetrieveRequest.prototype.setId = function(value) {
1312
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], value);
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * Clears the field making it undefined.
1318
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1319
+ */
1320
+ proto.Spic.AssetProto.RetrieveRequest.prototype.clearId = function() {
1321
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], undefined);
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * Returns whether this field is set.
1327
+ * @return {boolean}
1328
+ */
1329
+ proto.Spic.AssetProto.RetrieveRequest.prototype.hasId = function() {
1330
+ return jspb.Message.getField(this, 1) != null;
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * optional string uid = 2;
1336
+ * @return {string}
1337
+ */
1338
+ proto.Spic.AssetProto.RetrieveRequest.prototype.getUid = function() {
1339
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1340
+ };
1341
+
1342
+
1343
+ /**
1344
+ * @param {string} value
1345
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1346
+ */
1347
+ proto.Spic.AssetProto.RetrieveRequest.prototype.setUid = function(value) {
1348
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], value);
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * Clears the field making it undefined.
1354
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1355
+ */
1356
+ proto.Spic.AssetProto.RetrieveRequest.prototype.clearUid = function() {
1357
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], undefined);
1358
+ };
1359
+
1360
+
1361
+ /**
1362
+ * Returns whether this field is set.
1363
+ * @return {boolean}
1364
+ */
1365
+ proto.Spic.AssetProto.RetrieveRequest.prototype.hasUid = function() {
1366
+ return jspb.Message.getField(this, 2) != null;
1367
+ };
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1374
+ /**
1375
+ * Creates an object representation of this proto.
1376
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1377
+ * Optional fields that are not set will be set to undefined.
1378
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1379
+ * For the list of reserved names please see:
1380
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1381
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1382
+ * JSPB instance for transitional soy proto support:
1383
+ * http://goto/soy-param-migration
1384
+ * @return {!Object}
1385
+ */
1386
+ proto.Spic.AssetProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
1387
+ return proto.Spic.AssetProto.UpdateRequest.toObject(opt_includeInstance, this);
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * Static version of the {@see toObject} method.
1393
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1394
+ * the JSPB instance for transitional soy proto support:
1395
+ * http://goto/soy-param-migration
1396
+ * @param {!proto.Spic.AssetProto.UpdateRequest} msg The msg instance to transform.
1397
+ * @return {!Object}
1398
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1399
+ */
1400
+ proto.Spic.AssetProto.UpdateRequest.toObject = function(includeInstance, msg) {
1401
+ var f, obj = {
1402
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1403
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1404
+ locationId: jspb.Message.getFieldWithDefault(msg, 3, 0),
1405
+ uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
1406
+ image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
1407
+ groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1408
+ clientId: jspb.Message.getFieldWithDefault(msg, 7, 0),
1409
+ assetType: jspb.Message.getFieldWithDefault(msg, 8, 0),
1410
+ isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
1411
+ };
1412
+
1413
+ if (includeInstance) {
1414
+ obj.$jspbMessageInstance = msg;
1415
+ }
1416
+ return obj;
1417
+ };
1418
+ }
1419
+
1420
+
1421
+ /**
1422
+ * Deserializes binary data (in protobuf wire format).
1423
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1424
+ * @return {!proto.Spic.AssetProto.UpdateRequest}
1425
+ */
1426
+ proto.Spic.AssetProto.UpdateRequest.deserializeBinary = function(bytes) {
1427
+ var reader = new jspb.BinaryReader(bytes);
1428
+ var msg = new proto.Spic.AssetProto.UpdateRequest;
1429
+ return proto.Spic.AssetProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * Deserializes binary data (in protobuf wire format) from the
1435
+ * given reader into the given message object.
1436
+ * @param {!proto.Spic.AssetProto.UpdateRequest} msg The message object to deserialize into.
1437
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1438
+ * @return {!proto.Spic.AssetProto.UpdateRequest}
1439
+ */
1440
+ proto.Spic.AssetProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1441
+ while (reader.nextField()) {
1442
+ if (reader.isEndGroup()) {
1443
+ break;
1444
+ }
1445
+ var field = reader.getFieldNumber();
1446
+ switch (field) {
1447
+ case 1:
1448
+ var value = /** @type {number} */ (reader.readInt64());
1449
+ msg.setId(value);
1450
+ break;
1451
+ case 2:
1452
+ var value = /** @type {string} */ (reader.readString());
1453
+ msg.setName(value);
1454
+ break;
1455
+ case 3:
1456
+ var value = /** @type {number} */ (reader.readInt64());
1457
+ msg.setLocationId(value);
1458
+ break;
1459
+ case 4:
1460
+ var value = /** @type {string} */ (reader.readString());
1461
+ msg.setUid(value);
1462
+ break;
1463
+ case 5:
1464
+ var value = new google_protobuf_wrappers_pb.BytesValue;
1465
+ reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
1466
+ msg.setImage(value);
1467
+ break;
1468
+ case 6:
1469
+ var value = /** @type {string} */ (reader.readString());
1470
+ msg.setGroupId(value);
1471
+ break;
1472
+ case 7:
1473
+ var value = /** @type {number} */ (reader.readInt32());
1474
+ msg.setClientId(value);
1475
+ break;
1476
+ case 8:
1477
+ var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
1478
+ msg.setAssetType(value);
1479
+ break;
1480
+ case 9:
1481
+ var value = /** @type {boolean} */ (reader.readBool());
1482
+ msg.setIsMaintenance(value);
1483
+ break;
1484
+ default:
1485
+ reader.skipField();
1486
+ break;
1487
+ }
1488
+ }
1489
+ return msg;
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * Serializes the message to binary data (in protobuf wire format).
1495
+ * @return {!Uint8Array}
1496
+ */
1497
+ proto.Spic.AssetProto.UpdateRequest.prototype.serializeBinary = function() {
1498
+ var writer = new jspb.BinaryWriter();
1499
+ proto.Spic.AssetProto.UpdateRequest.serializeBinaryToWriter(this, writer);
1500
+ return writer.getResultBuffer();
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * Serializes the given message to binary data (in protobuf wire
1506
+ * format), writing to the given BinaryWriter.
1507
+ * @param {!proto.Spic.AssetProto.UpdateRequest} message
1508
+ * @param {!jspb.BinaryWriter} writer
1509
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1510
+ */
1511
+ proto.Spic.AssetProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
1512
+ var f = undefined;
1513
+ f = message.getId();
1514
+ if (f !== 0) {
1515
+ writer.writeInt64(
1516
+ 1,
1517
+ f
1518
+ );
1519
+ }
1520
+ f = message.getName();
1521
+ if (f.length > 0) {
1522
+ writer.writeString(
1523
+ 2,
1524
+ f
1525
+ );
1526
+ }
1527
+ f = message.getLocationId();
1528
+ if (f !== 0) {
1529
+ writer.writeInt64(
1530
+ 3,
1531
+ f
1532
+ );
1533
+ }
1534
+ f = message.getUid();
1535
+ if (f.length > 0) {
1536
+ writer.writeString(
1537
+ 4,
1538
+ f
1539
+ );
1540
+ }
1541
+ f = message.getImage();
1542
+ if (f != null) {
1543
+ writer.writeMessage(
1544
+ 5,
1545
+ f,
1546
+ google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
1547
+ );
1548
+ }
1549
+ f = message.getGroupId();
1550
+ if (f.length > 0) {
1551
+ writer.writeString(
1552
+ 6,
1553
+ f
1554
+ );
1555
+ }
1556
+ f = message.getClientId();
1557
+ if (f !== 0) {
1558
+ writer.writeInt32(
1559
+ 7,
1560
+ f
1561
+ );
1562
+ }
1563
+ f = message.getAssetType();
1564
+ if (f !== 0.0) {
1565
+ writer.writeEnum(
1566
+ 8,
1567
+ f
1568
+ );
1569
+ }
1570
+ f = message.getIsMaintenance();
1571
+ if (f) {
1572
+ writer.writeBool(
1573
+ 9,
1574
+ f
1575
+ );
1576
+ }
1577
+ };
1578
+
1579
+
1580
+ /**
1581
+ * optional int64 id = 1;
1582
+ * @return {number}
1583
+ */
1584
+ proto.Spic.AssetProto.UpdateRequest.prototype.getId = function() {
1585
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1586
+ };
1587
+
1588
+
1589
+ /**
1590
+ * @param {number} value
1591
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1592
+ */
1593
+ proto.Spic.AssetProto.UpdateRequest.prototype.setId = function(value) {
1594
+ return jspb.Message.setProto3IntField(this, 1, value);
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * optional string name = 2;
1600
+ * @return {string}
1601
+ */
1602
+ proto.Spic.AssetProto.UpdateRequest.prototype.getName = function() {
1603
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1604
+ };
1605
+
1606
+
1607
+ /**
1608
+ * @param {string} value
1609
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1610
+ */
1611
+ proto.Spic.AssetProto.UpdateRequest.prototype.setName = function(value) {
1612
+ return jspb.Message.setProto3StringField(this, 2, value);
1613
+ };
1614
+
1615
+
1616
+ /**
1617
+ * optional int64 location_id = 3;
1618
+ * @return {number}
1619
+ */
1620
+ proto.Spic.AssetProto.UpdateRequest.prototype.getLocationId = function() {
1621
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1622
+ };
1623
+
1624
+
1625
+ /**
1626
+ * @param {number} value
1627
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1628
+ */
1629
+ proto.Spic.AssetProto.UpdateRequest.prototype.setLocationId = function(value) {
1630
+ return jspb.Message.setProto3IntField(this, 3, value);
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * optional string uid = 4;
1636
+ * @return {string}
1637
+ */
1638
+ proto.Spic.AssetProto.UpdateRequest.prototype.getUid = function() {
1639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * @param {string} value
1645
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1646
+ */
1647
+ proto.Spic.AssetProto.UpdateRequest.prototype.setUid = function(value) {
1648
+ return jspb.Message.setProto3StringField(this, 4, value);
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * optional google.protobuf.BytesValue image = 5;
1654
+ * @return {?proto.google.protobuf.BytesValue}
1655
+ */
1656
+ proto.Spic.AssetProto.UpdateRequest.prototype.getImage = function() {
1657
+ return /** @type{?proto.google.protobuf.BytesValue} */ (
1658
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 5));
1659
+ };
1660
+
1661
+
1662
+ /**
1663
+ * @param {?proto.google.protobuf.BytesValue|undefined} value
1664
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1665
+ */
1666
+ proto.Spic.AssetProto.UpdateRequest.prototype.setImage = function(value) {
1667
+ return jspb.Message.setWrapperField(this, 5, value);
1668
+ };
1669
+
1670
+
1671
+ /**
1672
+ * Clears the message field making it undefined.
1673
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1674
+ */
1675
+ proto.Spic.AssetProto.UpdateRequest.prototype.clearImage = function() {
1676
+ return this.setImage(undefined);
1677
+ };
1678
+
1679
+
1680
+ /**
1681
+ * Returns whether this field is set.
1682
+ * @return {boolean}
1683
+ */
1684
+ proto.Spic.AssetProto.UpdateRequest.prototype.hasImage = function() {
1685
+ return jspb.Message.getField(this, 5) != null;
1686
+ };
1687
+
1688
+
1689
+ /**
1690
+ * optional string group_id = 6;
1691
+ * @return {string}
1692
+ */
1693
+ proto.Spic.AssetProto.UpdateRequest.prototype.getGroupId = function() {
1694
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1695
+ };
1696
+
1697
+
1698
+ /**
1699
+ * @param {string} value
1700
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1701
+ */
1702
+ proto.Spic.AssetProto.UpdateRequest.prototype.setGroupId = function(value) {
1703
+ return jspb.Message.setProto3StringField(this, 6, value);
1704
+ };
1705
+
1706
+
1707
+ /**
1708
+ * optional int32 client_id = 7;
1709
+ * @return {number}
1710
+ */
1711
+ proto.Spic.AssetProto.UpdateRequest.prototype.getClientId = function() {
1712
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1713
+ };
1714
+
1715
+
1716
+ /**
1717
+ * @param {number} value
1718
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1719
+ */
1720
+ proto.Spic.AssetProto.UpdateRequest.prototype.setClientId = function(value) {
1721
+ return jspb.Message.setProto3IntField(this, 7, value);
1722
+ };
1723
+
1724
+
1725
+ /**
1726
+ * optional AssetType asset_type = 8;
1727
+ * @return {!proto.Spic.AssetProto.AssetType}
1728
+ */
1729
+ proto.Spic.AssetProto.UpdateRequest.prototype.getAssetType = function() {
1730
+ return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1731
+ };
1732
+
1733
+
1734
+ /**
1735
+ * @param {!proto.Spic.AssetProto.AssetType} value
1736
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1737
+ */
1738
+ proto.Spic.AssetProto.UpdateRequest.prototype.setAssetType = function(value) {
1739
+ return jspb.Message.setProto3EnumField(this, 8, value);
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * optional bool is_maintenance = 9;
1745
+ * @return {boolean}
1746
+ */
1747
+ proto.Spic.AssetProto.UpdateRequest.prototype.getIsMaintenance = function() {
1748
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
1749
+ };
1750
+
1751
+
1752
+ /**
1753
+ * @param {boolean} value
1754
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1755
+ */
1756
+ proto.Spic.AssetProto.UpdateRequest.prototype.setIsMaintenance = function(value) {
1757
+ return jspb.Message.setProto3BooleanField(this, 9, value);
1758
+ };
1759
+
1760
+
1761
+
1762
+ /**
1763
+ * Oneof group definitions for this message. Each group defines the field
1764
+ * numbers belonging to that group. When of these fields' value is set, all
1765
+ * other fields in the group are cleared. During deserialization, if multiple
1766
+ * fields are encountered for a group, only the last value seen will be kept.
1767
+ * @private {!Array<!Array<number>>}
1768
+ * @const
1769
+ */
1770
+ proto.Spic.AssetProto.DeleteRequest.oneofGroups_ = [[1,2]];
1771
+
1772
+ /**
1773
+ * @enum {number}
1774
+ */
1775
+ proto.Spic.AssetProto.DeleteRequest.SearchCase = {
1776
+ SEARCH_NOT_SET: 0,
1777
+ ID: 1,
1778
+ UID: 2
1779
+ };
1780
+
1781
+ /**
1782
+ * @return {proto.Spic.AssetProto.DeleteRequest.SearchCase}
1783
+ */
1784
+ proto.Spic.AssetProto.DeleteRequest.prototype.getSearchCase = function() {
1785
+ return /** @type {proto.Spic.AssetProto.DeleteRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0]));
1786
+ };
1787
+
1788
+
1789
+
1790
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1791
+ /**
1792
+ * Creates an object representation of this proto.
1793
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1794
+ * Optional fields that are not set will be set to undefined.
1795
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1796
+ * For the list of reserved names please see:
1797
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1798
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1799
+ * JSPB instance for transitional soy proto support:
1800
+ * http://goto/soy-param-migration
1801
+ * @return {!Object}
1802
+ */
1803
+ proto.Spic.AssetProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
1804
+ return proto.Spic.AssetProto.DeleteRequest.toObject(opt_includeInstance, this);
1805
+ };
1806
+
1807
+
1808
+ /**
1809
+ * Static version of the {@see toObject} method.
1810
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1811
+ * the JSPB instance for transitional soy proto support:
1812
+ * http://goto/soy-param-migration
1813
+ * @param {!proto.Spic.AssetProto.DeleteRequest} msg The msg instance to transform.
1814
+ * @return {!Object}
1815
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1816
+ */
1817
+ proto.Spic.AssetProto.DeleteRequest.toObject = function(includeInstance, msg) {
1818
+ var f, obj = {
1819
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1820
+ uid: jspb.Message.getFieldWithDefault(msg, 2, "")
1821
+ };
1822
+
1823
+ if (includeInstance) {
1824
+ obj.$jspbMessageInstance = msg;
1825
+ }
1826
+ return obj;
1827
+ };
1828
+ }
1829
+
1830
+
1831
+ /**
1832
+ * Deserializes binary data (in protobuf wire format).
1833
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1834
+ * @return {!proto.Spic.AssetProto.DeleteRequest}
1835
+ */
1836
+ proto.Spic.AssetProto.DeleteRequest.deserializeBinary = function(bytes) {
1837
+ var reader = new jspb.BinaryReader(bytes);
1838
+ var msg = new proto.Spic.AssetProto.DeleteRequest;
1839
+ return proto.Spic.AssetProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
1840
+ };
1841
+
1842
+
1843
+ /**
1844
+ * Deserializes binary data (in protobuf wire format) from the
1845
+ * given reader into the given message object.
1846
+ * @param {!proto.Spic.AssetProto.DeleteRequest} msg The message object to deserialize into.
1847
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1848
+ * @return {!proto.Spic.AssetProto.DeleteRequest}
1849
+ */
1850
+ proto.Spic.AssetProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1851
+ while (reader.nextField()) {
1852
+ if (reader.isEndGroup()) {
1853
+ break;
1854
+ }
1855
+ var field = reader.getFieldNumber();
1856
+ switch (field) {
1857
+ case 1:
1858
+ var value = /** @type {number} */ (reader.readInt64());
1859
+ msg.setId(value);
1860
+ break;
1861
+ case 2:
1862
+ var value = /** @type {string} */ (reader.readString());
1863
+ msg.setUid(value);
1864
+ break;
1865
+ default:
1866
+ reader.skipField();
1867
+ break;
1868
+ }
1869
+ }
1870
+ return msg;
1871
+ };
1872
+
1873
+
1874
+ /**
1875
+ * Serializes the message to binary data (in protobuf wire format).
1876
+ * @return {!Uint8Array}
1877
+ */
1878
+ proto.Spic.AssetProto.DeleteRequest.prototype.serializeBinary = function() {
1879
+ var writer = new jspb.BinaryWriter();
1880
+ proto.Spic.AssetProto.DeleteRequest.serializeBinaryToWriter(this, writer);
1881
+ return writer.getResultBuffer();
1882
+ };
1883
+
1884
+
1885
+ /**
1886
+ * Serializes the given message to binary data (in protobuf wire
1887
+ * format), writing to the given BinaryWriter.
1888
+ * @param {!proto.Spic.AssetProto.DeleteRequest} message
1889
+ * @param {!jspb.BinaryWriter} writer
1890
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1891
+ */
1892
+ proto.Spic.AssetProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
1893
+ var f = undefined;
1894
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1895
+ if (f != null) {
1896
+ writer.writeInt64(
1897
+ 1,
1898
+ f
1899
+ );
1900
+ }
1901
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1902
+ if (f != null) {
1903
+ writer.writeString(
1904
+ 2,
1905
+ f
1906
+ );
1907
+ }
1908
+ };
1909
+
1910
+
1911
+ /**
1912
+ * optional int64 id = 1;
1913
+ * @return {number}
1914
+ */
1915
+ proto.Spic.AssetProto.DeleteRequest.prototype.getId = function() {
1916
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1917
+ };
1918
+
1919
+
1920
+ /**
1921
+ * @param {number} value
1922
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1923
+ */
1924
+ proto.Spic.AssetProto.DeleteRequest.prototype.setId = function(value) {
1925
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], value);
1926
+ };
1927
+
1928
+
1929
+ /**
1930
+ * Clears the field making it undefined.
1931
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1932
+ */
1933
+ proto.Spic.AssetProto.DeleteRequest.prototype.clearId = function() {
1934
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], undefined);
1935
+ };
1936
+
1937
+
1938
+ /**
1939
+ * Returns whether this field is set.
1940
+ * @return {boolean}
1941
+ */
1942
+ proto.Spic.AssetProto.DeleteRequest.prototype.hasId = function() {
1943
+ return jspb.Message.getField(this, 1) != null;
1944
+ };
1945
+
1946
+
1947
+ /**
1948
+ * optional string uid = 2;
1949
+ * @return {string}
1950
+ */
1951
+ proto.Spic.AssetProto.DeleteRequest.prototype.getUid = function() {
1952
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1953
+ };
1954
+
1955
+
1956
+ /**
1957
+ * @param {string} value
1958
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1959
+ */
1960
+ proto.Spic.AssetProto.DeleteRequest.prototype.setUid = function(value) {
1961
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], value);
1962
+ };
1963
+
1964
+
1965
+ /**
1966
+ * Clears the field making it undefined.
1967
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1968
+ */
1969
+ proto.Spic.AssetProto.DeleteRequest.prototype.clearUid = function() {
1970
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], undefined);
1971
+ };
1972
+
1973
+
1974
+ /**
1975
+ * Returns whether this field is set.
1976
+ * @return {boolean}
1977
+ */
1978
+ proto.Spic.AssetProto.DeleteRequest.prototype.hasUid = function() {
1979
+ return jspb.Message.getField(this, 2) != null;
1980
+ };
1981
+
1982
+
1983
+
1984
+
1985
+
1986
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1987
+ /**
1988
+ * Creates an object representation of this proto.
1989
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1990
+ * Optional fields that are not set will be set to undefined.
1991
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1992
+ * For the list of reserved names please see:
1993
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1994
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1995
+ * JSPB instance for transitional soy proto support:
1996
+ * http://goto/soy-param-migration
1997
+ * @return {!Object}
1998
+ */
1999
+ proto.Spic.AssetProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
2000
+ return proto.Spic.AssetProto.SearchRequest.toObject(opt_includeInstance, this);
2001
+ };
2002
+
2003
+
2004
+ /**
2005
+ * Static version of the {@see toObject} method.
2006
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2007
+ * the JSPB instance for transitional soy proto support:
2008
+ * http://goto/soy-param-migration
2009
+ * @param {!proto.Spic.AssetProto.SearchRequest} msg The msg instance to transform.
2010
+ * @return {!Object}
2011
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2012
+ */
2013
+ proto.Spic.AssetProto.SearchRequest.toObject = function(includeInstance, msg) {
2014
+ var f, obj = {
2015
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2016
+ locationId: jspb.Message.getFieldWithDefault(msg, 2, 0),
2017
+ groupId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2018
+ page: jspb.Message.getFieldWithDefault(msg, 4, 0),
2019
+ count: jspb.Message.getFieldWithDefault(msg, 5, 0),
2020
+ assetType: jspb.Message.getFieldWithDefault(msg, 6, 0)
2021
+ };
2022
+
2023
+ if (includeInstance) {
2024
+ obj.$jspbMessageInstance = msg;
2025
+ }
2026
+ return obj;
2027
+ };
2028
+ }
2029
+
2030
+
2031
+ /**
2032
+ * Deserializes binary data (in protobuf wire format).
2033
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2034
+ * @return {!proto.Spic.AssetProto.SearchRequest}
2035
+ */
2036
+ proto.Spic.AssetProto.SearchRequest.deserializeBinary = function(bytes) {
2037
+ var reader = new jspb.BinaryReader(bytes);
2038
+ var msg = new proto.Spic.AssetProto.SearchRequest;
2039
+ return proto.Spic.AssetProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
2040
+ };
2041
+
2042
+
2043
+ /**
2044
+ * Deserializes binary data (in protobuf wire format) from the
2045
+ * given reader into the given message object.
2046
+ * @param {!proto.Spic.AssetProto.SearchRequest} msg The message object to deserialize into.
2047
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2048
+ * @return {!proto.Spic.AssetProto.SearchRequest}
2049
+ */
2050
+ proto.Spic.AssetProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2051
+ while (reader.nextField()) {
2052
+ if (reader.isEndGroup()) {
2053
+ break;
2054
+ }
2055
+ var field = reader.getFieldNumber();
2056
+ switch (field) {
2057
+ case 1:
2058
+ var value = /** @type {string} */ (reader.readString());
2059
+ msg.setName(value);
2060
+ break;
2061
+ case 2:
2062
+ var value = /** @type {number} */ (reader.readInt64());
2063
+ msg.setLocationId(value);
2064
+ break;
2065
+ case 3:
2066
+ var value = /** @type {string} */ (reader.readString());
2067
+ msg.setGroupId(value);
2068
+ break;
2069
+ case 4:
2070
+ var value = /** @type {number} */ (reader.readInt32());
2071
+ msg.setPage(value);
2072
+ break;
2073
+ case 5:
2074
+ var value = /** @type {number} */ (reader.readInt32());
2075
+ msg.setCount(value);
2076
+ break;
2077
+ case 6:
2078
+ var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
2079
+ msg.setAssetType(value);
2080
+ break;
2081
+ default:
2082
+ reader.skipField();
2083
+ break;
2084
+ }
2085
+ }
2086
+ return msg;
2087
+ };
2088
+
2089
+
2090
+ /**
2091
+ * Serializes the message to binary data (in protobuf wire format).
2092
+ * @return {!Uint8Array}
2093
+ */
2094
+ proto.Spic.AssetProto.SearchRequest.prototype.serializeBinary = function() {
2095
+ var writer = new jspb.BinaryWriter();
2096
+ proto.Spic.AssetProto.SearchRequest.serializeBinaryToWriter(this, writer);
2097
+ return writer.getResultBuffer();
2098
+ };
2099
+
2100
+
2101
+ /**
2102
+ * Serializes the given message to binary data (in protobuf wire
2103
+ * format), writing to the given BinaryWriter.
2104
+ * @param {!proto.Spic.AssetProto.SearchRequest} message
2105
+ * @param {!jspb.BinaryWriter} writer
2106
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2107
+ */
2108
+ proto.Spic.AssetProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
2109
+ var f = undefined;
2110
+ f = message.getName();
2111
+ if (f.length > 0) {
2112
+ writer.writeString(
2113
+ 1,
2114
+ f
2115
+ );
2116
+ }
2117
+ f = message.getLocationId();
2118
+ if (f !== 0) {
2119
+ writer.writeInt64(
2120
+ 2,
2121
+ f
2122
+ );
2123
+ }
2124
+ f = message.getGroupId();
2125
+ if (f.length > 0) {
2126
+ writer.writeString(
2127
+ 3,
2128
+ f
2129
+ );
2130
+ }
2131
+ f = message.getPage();
2132
+ if (f !== 0) {
2133
+ writer.writeInt32(
2134
+ 4,
2135
+ f
2136
+ );
2137
+ }
2138
+ f = message.getCount();
2139
+ if (f !== 0) {
2140
+ writer.writeInt32(
2141
+ 5,
2142
+ f
2143
+ );
2144
+ }
2145
+ f = message.getAssetType();
2146
+ if (f !== 0.0) {
2147
+ writer.writeEnum(
2148
+ 6,
2149
+ f
2150
+ );
2151
+ }
2152
+ };
2153
+
2154
+
2155
+ /**
2156
+ * optional string name = 1;
2157
+ * @return {string}
2158
+ */
2159
+ proto.Spic.AssetProto.SearchRequest.prototype.getName = function() {
2160
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2161
+ };
2162
+
2163
+
2164
+ /**
2165
+ * @param {string} value
2166
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2167
+ */
2168
+ proto.Spic.AssetProto.SearchRequest.prototype.setName = function(value) {
2169
+ return jspb.Message.setProto3StringField(this, 1, value);
2170
+ };
2171
+
2172
+
2173
+ /**
2174
+ * optional int64 location_id = 2;
2175
+ * @return {number}
2176
+ */
2177
+ proto.Spic.AssetProto.SearchRequest.prototype.getLocationId = function() {
2178
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2179
+ };
2180
+
2181
+
2182
+ /**
2183
+ * @param {number} value
2184
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2185
+ */
2186
+ proto.Spic.AssetProto.SearchRequest.prototype.setLocationId = function(value) {
2187
+ return jspb.Message.setProto3IntField(this, 2, value);
2188
+ };
2189
+
2190
+
2191
+ /**
2192
+ * optional string group_id = 3;
2193
+ * @return {string}
2194
+ */
2195
+ proto.Spic.AssetProto.SearchRequest.prototype.getGroupId = function() {
2196
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2197
+ };
2198
+
2199
+
2200
+ /**
2201
+ * @param {string} value
2202
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2203
+ */
2204
+ proto.Spic.AssetProto.SearchRequest.prototype.setGroupId = function(value) {
2205
+ return jspb.Message.setProto3StringField(this, 3, value);
2206
+ };
2207
+
2208
+
2209
+ /**
2210
+ * optional int32 page = 4;
2211
+ * @return {number}
2212
+ */
2213
+ proto.Spic.AssetProto.SearchRequest.prototype.getPage = function() {
2214
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * @param {number} value
2220
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2221
+ */
2222
+ proto.Spic.AssetProto.SearchRequest.prototype.setPage = function(value) {
2223
+ return jspb.Message.setProto3IntField(this, 4, value);
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * optional int32 count = 5;
2229
+ * @return {number}
2230
+ */
2231
+ proto.Spic.AssetProto.SearchRequest.prototype.getCount = function() {
2232
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * @param {number} value
2238
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2239
+ */
2240
+ proto.Spic.AssetProto.SearchRequest.prototype.setCount = function(value) {
2241
+ return jspb.Message.setProto3IntField(this, 5, value);
2242
+ };
2243
+
2244
+
2245
+ /**
2246
+ * optional AssetType asset_type = 6;
2247
+ * @return {!proto.Spic.AssetProto.AssetType}
2248
+ */
2249
+ proto.Spic.AssetProto.SearchRequest.prototype.getAssetType = function() {
2250
+ return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2251
+ };
2252
+
2253
+
2254
+ /**
2255
+ * @param {!proto.Spic.AssetProto.AssetType} value
2256
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2257
+ */
2258
+ proto.Spic.AssetProto.SearchRequest.prototype.setAssetType = function(value) {
2259
+ return jspb.Message.setProto3EnumField(this, 6, value);
2260
+ };
2261
+
2262
+
2263
+
2264
+ /**
2265
+ * List of repeated fields within this message type.
2266
+ * @private {!Array<number>}
2267
+ * @const
2268
+ */
2269
+ proto.Spic.AssetProto.SearchReply.repeatedFields_ = [1];
2270
+
2271
+
2272
+
2273
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2274
+ /**
2275
+ * Creates an object representation of this proto.
2276
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2277
+ * Optional fields that are not set will be set to undefined.
2278
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2279
+ * For the list of reserved names please see:
2280
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2281
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2282
+ * JSPB instance for transitional soy proto support:
2283
+ * http://goto/soy-param-migration
2284
+ * @return {!Object}
2285
+ */
2286
+ proto.Spic.AssetProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
2287
+ return proto.Spic.AssetProto.SearchReply.toObject(opt_includeInstance, this);
2288
+ };
2289
+
2290
+
2291
+ /**
2292
+ * Static version of the {@see toObject} method.
2293
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2294
+ * the JSPB instance for transitional soy proto support:
2295
+ * http://goto/soy-param-migration
2296
+ * @param {!proto.Spic.AssetProto.SearchReply} msg The msg instance to transform.
2297
+ * @return {!Object}
2298
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2299
+ */
2300
+ proto.Spic.AssetProto.SearchReply.toObject = function(includeInstance, msg) {
2301
+ var f, obj = {
2302
+ assetsList: jspb.Message.toObjectList(msg.getAssetsList(),
2303
+ proto.Spic.AssetWithLocation.toObject, includeInstance),
2304
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
2305
+ };
2306
+
2307
+ if (includeInstance) {
2308
+ obj.$jspbMessageInstance = msg;
2309
+ }
2310
+ return obj;
2311
+ };
2312
+ }
2313
+
2314
+
2315
+ /**
2316
+ * Deserializes binary data (in protobuf wire format).
2317
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2318
+ * @return {!proto.Spic.AssetProto.SearchReply}
2319
+ */
2320
+ proto.Spic.AssetProto.SearchReply.deserializeBinary = function(bytes) {
2321
+ var reader = new jspb.BinaryReader(bytes);
2322
+ var msg = new proto.Spic.AssetProto.SearchReply;
2323
+ return proto.Spic.AssetProto.SearchReply.deserializeBinaryFromReader(msg, reader);
2324
+ };
2325
+
2326
+
2327
+ /**
2328
+ * Deserializes binary data (in protobuf wire format) from the
2329
+ * given reader into the given message object.
2330
+ * @param {!proto.Spic.AssetProto.SearchReply} msg The message object to deserialize into.
2331
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2332
+ * @return {!proto.Spic.AssetProto.SearchReply}
2333
+ */
2334
+ proto.Spic.AssetProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
2335
+ while (reader.nextField()) {
2336
+ if (reader.isEndGroup()) {
2337
+ break;
2338
+ }
2339
+ var field = reader.getFieldNumber();
2340
+ switch (field) {
2341
+ case 1:
2342
+ var value = new proto.Spic.AssetWithLocation;
2343
+ reader.readMessage(value,proto.Spic.AssetWithLocation.deserializeBinaryFromReader);
2344
+ msg.addAssets(value);
2345
+ break;
2346
+ case 2:
2347
+ var value = new platform_pagination_pb.PaginationProto;
2348
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
2349
+ msg.setPagination(value);
2350
+ break;
2351
+ default:
2352
+ reader.skipField();
2353
+ break;
2354
+ }
2355
+ }
2356
+ return msg;
2357
+ };
2358
+
2359
+
2360
+ /**
2361
+ * Serializes the message to binary data (in protobuf wire format).
2362
+ * @return {!Uint8Array}
2363
+ */
2364
+ proto.Spic.AssetProto.SearchReply.prototype.serializeBinary = function() {
2365
+ var writer = new jspb.BinaryWriter();
2366
+ proto.Spic.AssetProto.SearchReply.serializeBinaryToWriter(this, writer);
2367
+ return writer.getResultBuffer();
2368
+ };
2369
+
2370
+
2371
+ /**
2372
+ * Serializes the given message to binary data (in protobuf wire
2373
+ * format), writing to the given BinaryWriter.
2374
+ * @param {!proto.Spic.AssetProto.SearchReply} message
2375
+ * @param {!jspb.BinaryWriter} writer
2376
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2377
+ */
2378
+ proto.Spic.AssetProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
2379
+ var f = undefined;
2380
+ f = message.getAssetsList();
2381
+ if (f.length > 0) {
2382
+ writer.writeRepeatedMessage(
2383
+ 1,
2384
+ f,
2385
+ proto.Spic.AssetWithLocation.serializeBinaryToWriter
2386
+ );
2387
+ }
2388
+ f = message.getPagination();
2389
+ if (f != null) {
2390
+ writer.writeMessage(
2391
+ 2,
2392
+ f,
2393
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
2394
+ );
2395
+ }
2396
+ };
2397
+
2398
+
2399
+ /**
2400
+ * repeated AssetWithLocation assets = 1;
2401
+ * @return {!Array<!proto.Spic.AssetWithLocation>}
2402
+ */
2403
+ proto.Spic.AssetProto.SearchReply.prototype.getAssetsList = function() {
2404
+ return /** @type{!Array<!proto.Spic.AssetWithLocation>} */ (
2405
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetWithLocation, 1));
2406
+ };
2407
+
2408
+
2409
+ /**
2410
+ * @param {!Array<!proto.Spic.AssetWithLocation>} value
2411
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2412
+ */
2413
+ proto.Spic.AssetProto.SearchReply.prototype.setAssetsList = function(value) {
2414
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2415
+ };
2416
+
2417
+
2418
+ /**
2419
+ * @param {!proto.Spic.AssetWithLocation=} opt_value
2420
+ * @param {number=} opt_index
2421
+ * @return {!proto.Spic.AssetWithLocation}
2422
+ */
2423
+ proto.Spic.AssetProto.SearchReply.prototype.addAssets = function(opt_value, opt_index) {
2424
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.AssetWithLocation, opt_index);
2425
+ };
2426
+
2427
+
2428
+ /**
2429
+ * Clears the list making it empty but non-null.
2430
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2431
+ */
2432
+ proto.Spic.AssetProto.SearchReply.prototype.clearAssetsList = function() {
2433
+ return this.setAssetsList([]);
2434
+ };
2435
+
2436
+
2437
+ /**
2438
+ * optional Platform.PaginationProto pagination = 2;
2439
+ * @return {?proto.Platform.PaginationProto}
2440
+ */
2441
+ proto.Spic.AssetProto.SearchReply.prototype.getPagination = function() {
2442
+ return /** @type{?proto.Platform.PaginationProto} */ (
2443
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
2444
+ };
2445
+
2446
+
2447
+ /**
2448
+ * @param {?proto.Platform.PaginationProto|undefined} value
2449
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2450
+ */
2451
+ proto.Spic.AssetProto.SearchReply.prototype.setPagination = function(value) {
2452
+ return jspb.Message.setWrapperField(this, 2, value);
2453
+ };
2454
+
2455
+
2456
+ /**
2457
+ * Clears the message field making it undefined.
2458
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2459
+ */
2460
+ proto.Spic.AssetProto.SearchReply.prototype.clearPagination = function() {
2461
+ return this.setPagination(undefined);
2462
+ };
2463
+
2464
+
2465
+ /**
2466
+ * Returns whether this field is set.
2467
+ * @return {boolean}
2468
+ */
2469
+ proto.Spic.AssetProto.SearchReply.prototype.hasPagination = function() {
2470
+ return jspb.Message.getField(this, 2) != null;
2471
+ };
2472
+
2473
+
2474
+
2475
+
2476
+
2477
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2478
+ /**
2479
+ * Creates an object representation of this proto.
2480
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2481
+ * Optional fields that are not set will be set to undefined.
2482
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2483
+ * For the list of reserved names please see:
2484
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2485
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2486
+ * JSPB instance for transitional soy proto support:
2487
+ * http://goto/soy-param-migration
2488
+ * @return {!Object}
2489
+ */
2490
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.toObject = function(opt_includeInstance) {
2491
+ return proto.Spic.AssetProto.LocationSearchRequest.toObject(opt_includeInstance, this);
2492
+ };
2493
+
2494
+
2495
+ /**
2496
+ * Static version of the {@see toObject} method.
2497
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2498
+ * the JSPB instance for transitional soy proto support:
2499
+ * http://goto/soy-param-migration
2500
+ * @param {!proto.Spic.AssetProto.LocationSearchRequest} msg The msg instance to transform.
2501
+ * @return {!Object}
2502
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2503
+ */
2504
+ proto.Spic.AssetProto.LocationSearchRequest.toObject = function(includeInstance, msg) {
2505
+ var f, obj = {
2506
+ latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
2507
+ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2508
+ limit: jspb.Message.getFieldWithDefault(msg, 3, 0)
2509
+ };
2510
+
2511
+ if (includeInstance) {
2512
+ obj.$jspbMessageInstance = msg;
2513
+ }
2514
+ return obj;
2515
+ };
2516
+ }
2517
+
2518
+
2519
+ /**
2520
+ * Deserializes binary data (in protobuf wire format).
2521
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2522
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest}
2523
+ */
2524
+ proto.Spic.AssetProto.LocationSearchRequest.deserializeBinary = function(bytes) {
2525
+ var reader = new jspb.BinaryReader(bytes);
2526
+ var msg = new proto.Spic.AssetProto.LocationSearchRequest;
2527
+ return proto.Spic.AssetProto.LocationSearchRequest.deserializeBinaryFromReader(msg, reader);
2528
+ };
2529
+
2530
+
2531
+ /**
2532
+ * Deserializes binary data (in protobuf wire format) from the
2533
+ * given reader into the given message object.
2534
+ * @param {!proto.Spic.AssetProto.LocationSearchRequest} msg The message object to deserialize into.
2535
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2536
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest}
2537
+ */
2538
+ proto.Spic.AssetProto.LocationSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2539
+ while (reader.nextField()) {
2540
+ if (reader.isEndGroup()) {
2541
+ break;
2542
+ }
2543
+ var field = reader.getFieldNumber();
2544
+ switch (field) {
2545
+ case 1:
2546
+ var value = /** @type {number} */ (reader.readDouble());
2547
+ msg.setLatitude(value);
2548
+ break;
2549
+ case 2:
2550
+ var value = /** @type {number} */ (reader.readDouble());
2551
+ msg.setLongitude(value);
2552
+ break;
2553
+ case 3:
2554
+ var value = /** @type {number} */ (reader.readInt32());
2555
+ msg.setLimit(value);
2556
+ break;
2557
+ default:
2558
+ reader.skipField();
2559
+ break;
2560
+ }
2561
+ }
2562
+ return msg;
2563
+ };
2564
+
2565
+
2566
+ /**
2567
+ * Serializes the message to binary data (in protobuf wire format).
2568
+ * @return {!Uint8Array}
2569
+ */
2570
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.serializeBinary = function() {
2571
+ var writer = new jspb.BinaryWriter();
2572
+ proto.Spic.AssetProto.LocationSearchRequest.serializeBinaryToWriter(this, writer);
2573
+ return writer.getResultBuffer();
2574
+ };
2575
+
2576
+
2577
+ /**
2578
+ * Serializes the given message to binary data (in protobuf wire
2579
+ * format), writing to the given BinaryWriter.
2580
+ * @param {!proto.Spic.AssetProto.LocationSearchRequest} message
2581
+ * @param {!jspb.BinaryWriter} writer
2582
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2583
+ */
2584
+ proto.Spic.AssetProto.LocationSearchRequest.serializeBinaryToWriter = function(message, writer) {
2585
+ var f = undefined;
2586
+ f = message.getLatitude();
2587
+ if (f !== 0.0) {
2588
+ writer.writeDouble(
2589
+ 1,
2590
+ f
2591
+ );
2592
+ }
2593
+ f = message.getLongitude();
2594
+ if (f !== 0.0) {
2595
+ writer.writeDouble(
2596
+ 2,
2597
+ f
2598
+ );
2599
+ }
2600
+ f = message.getLimit();
2601
+ if (f !== 0) {
2602
+ writer.writeInt32(
2603
+ 3,
2604
+ f
2605
+ );
2606
+ }
2607
+ };
2608
+
2609
+
2610
+ /**
2611
+ * optional double latitude = 1;
2612
+ * @return {number}
2613
+ */
2614
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.getLatitude = function() {
2615
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
2616
+ };
2617
+
2618
+
2619
+ /**
2620
+ * @param {number} value
2621
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest} returns this
2622
+ */
2623
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.setLatitude = function(value) {
2624
+ return jspb.Message.setProto3FloatField(this, 1, value);
2625
+ };
2626
+
2627
+
2628
+ /**
2629
+ * optional double longitude = 2;
2630
+ * @return {number}
2631
+ */
2632
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.getLongitude = function() {
2633
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2634
+ };
2635
+
2636
+
2637
+ /**
2638
+ * @param {number} value
2639
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest} returns this
2640
+ */
2641
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.setLongitude = function(value) {
2642
+ return jspb.Message.setProto3FloatField(this, 2, value);
2643
+ };
2644
+
2645
+
2646
+ /**
2647
+ * optional int32 limit = 3;
2648
+ * @return {number}
2649
+ */
2650
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.getLimit = function() {
2651
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2652
+ };
2653
+
2654
+
2655
+ /**
2656
+ * @param {number} value
2657
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest} returns this
2658
+ */
2659
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.setLimit = function(value) {
2660
+ return jspb.Message.setProto3IntField(this, 3, value);
2661
+ };
2662
+
2663
+
2664
+
2665
+ /**
2666
+ * List of repeated fields within this message type.
2667
+ * @private {!Array<number>}
2668
+ * @const
2669
+ */
2670
+ proto.Spic.AssetProto.LocationSearchReply.repeatedFields_ = [1];
2671
+
2672
+
2673
+
2674
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2675
+ /**
2676
+ * Creates an object representation of this proto.
2677
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2678
+ * Optional fields that are not set will be set to undefined.
2679
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2680
+ * For the list of reserved names please see:
2681
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2682
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2683
+ * JSPB instance for transitional soy proto support:
2684
+ * http://goto/soy-param-migration
2685
+ * @return {!Object}
2686
+ */
2687
+ proto.Spic.AssetProto.LocationSearchReply.prototype.toObject = function(opt_includeInstance) {
2688
+ return proto.Spic.AssetProto.LocationSearchReply.toObject(opt_includeInstance, this);
2689
+ };
2690
+
2691
+
2692
+ /**
2693
+ * Static version of the {@see toObject} method.
2694
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2695
+ * the JSPB instance for transitional soy proto support:
2696
+ * http://goto/soy-param-migration
2697
+ * @param {!proto.Spic.AssetProto.LocationSearchReply} msg The msg instance to transform.
2698
+ * @return {!Object}
2699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2700
+ */
2701
+ proto.Spic.AssetProto.LocationSearchReply.toObject = function(includeInstance, msg) {
2702
+ var f, obj = {
2703
+ assetsList: jspb.Message.toObjectList(msg.getAssetsList(),
2704
+ proto.Spic.AssetWithLocationAndDistance.toObject, includeInstance)
2705
+ };
2706
+
2707
+ if (includeInstance) {
2708
+ obj.$jspbMessageInstance = msg;
2709
+ }
2710
+ return obj;
2711
+ };
2712
+ }
2713
+
2714
+
2715
+ /**
2716
+ * Deserializes binary data (in protobuf wire format).
2717
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2718
+ * @return {!proto.Spic.AssetProto.LocationSearchReply}
2719
+ */
2720
+ proto.Spic.AssetProto.LocationSearchReply.deserializeBinary = function(bytes) {
2721
+ var reader = new jspb.BinaryReader(bytes);
2722
+ var msg = new proto.Spic.AssetProto.LocationSearchReply;
2723
+ return proto.Spic.AssetProto.LocationSearchReply.deserializeBinaryFromReader(msg, reader);
2724
+ };
2725
+
2726
+
2727
+ /**
2728
+ * Deserializes binary data (in protobuf wire format) from the
2729
+ * given reader into the given message object.
2730
+ * @param {!proto.Spic.AssetProto.LocationSearchReply} msg The message object to deserialize into.
2731
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2732
+ * @return {!proto.Spic.AssetProto.LocationSearchReply}
2733
+ */
2734
+ proto.Spic.AssetProto.LocationSearchReply.deserializeBinaryFromReader = function(msg, reader) {
2735
+ while (reader.nextField()) {
2736
+ if (reader.isEndGroup()) {
2737
+ break;
2738
+ }
2739
+ var field = reader.getFieldNumber();
2740
+ switch (field) {
2741
+ case 1:
2742
+ var value = new proto.Spic.AssetWithLocationAndDistance;
2743
+ reader.readMessage(value,proto.Spic.AssetWithLocationAndDistance.deserializeBinaryFromReader);
2744
+ msg.addAssets(value);
2745
+ break;
2746
+ default:
2747
+ reader.skipField();
2748
+ break;
2749
+ }
2750
+ }
2751
+ return msg;
2752
+ };
2753
+
2754
+
2755
+ /**
2756
+ * Serializes the message to binary data (in protobuf wire format).
2757
+ * @return {!Uint8Array}
2758
+ */
2759
+ proto.Spic.AssetProto.LocationSearchReply.prototype.serializeBinary = function() {
2760
+ var writer = new jspb.BinaryWriter();
2761
+ proto.Spic.AssetProto.LocationSearchReply.serializeBinaryToWriter(this, writer);
2762
+ return writer.getResultBuffer();
2763
+ };
2764
+
2765
+
2766
+ /**
2767
+ * Serializes the given message to binary data (in protobuf wire
2768
+ * format), writing to the given BinaryWriter.
2769
+ * @param {!proto.Spic.AssetProto.LocationSearchReply} message
2770
+ * @param {!jspb.BinaryWriter} writer
2771
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2772
+ */
2773
+ proto.Spic.AssetProto.LocationSearchReply.serializeBinaryToWriter = function(message, writer) {
2774
+ var f = undefined;
2775
+ f = message.getAssetsList();
2776
+ if (f.length > 0) {
2777
+ writer.writeRepeatedMessage(
2778
+ 1,
2779
+ f,
2780
+ proto.Spic.AssetWithLocationAndDistance.serializeBinaryToWriter
2781
+ );
2782
+ }
2783
+ };
2784
+
2785
+
2786
+ /**
2787
+ * repeated AssetWithLocationAndDistance assets = 1;
2788
+ * @return {!Array<!proto.Spic.AssetWithLocationAndDistance>}
2789
+ */
2790
+ proto.Spic.AssetProto.LocationSearchReply.prototype.getAssetsList = function() {
2791
+ return /** @type{!Array<!proto.Spic.AssetWithLocationAndDistance>} */ (
2792
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetWithLocationAndDistance, 1));
2793
+ };
2794
+
2795
+
2796
+ /**
2797
+ * @param {!Array<!proto.Spic.AssetWithLocationAndDistance>} value
2798
+ * @return {!proto.Spic.AssetProto.LocationSearchReply} returns this
2799
+ */
2800
+ proto.Spic.AssetProto.LocationSearchReply.prototype.setAssetsList = function(value) {
2801
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2802
+ };
2803
+
2804
+
2805
+ /**
2806
+ * @param {!proto.Spic.AssetWithLocationAndDistance=} opt_value
2807
+ * @param {number=} opt_index
2808
+ * @return {!proto.Spic.AssetWithLocationAndDistance}
2809
+ */
2810
+ proto.Spic.AssetProto.LocationSearchReply.prototype.addAssets = function(opt_value, opt_index) {
2811
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.AssetWithLocationAndDistance, opt_index);
2812
+ };
2813
+
2814
+
2815
+ /**
2816
+ * Clears the list making it empty but non-null.
2817
+ * @return {!proto.Spic.AssetProto.LocationSearchReply} returns this
2818
+ */
2819
+ proto.Spic.AssetProto.LocationSearchReply.prototype.clearAssetsList = function() {
2820
+ return this.setAssetsList([]);
2821
+ };
2822
+
2823
+
2824
+
2825
+
2826
+
2827
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2828
+ /**
2829
+ * Creates an object representation of this proto.
2830
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2831
+ * Optional fields that are not set will be set to undefined.
2832
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2833
+ * For the list of reserved names please see:
2834
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2835
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2836
+ * JSPB instance for transitional soy proto support:
2837
+ * http://goto/soy-param-migration
2838
+ * @return {!Object}
2839
+ */
2840
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.toObject = function(opt_includeInstance) {
2841
+ return proto.Spic.AssetProto.ReplaceBatteryRequest.toObject(opt_includeInstance, this);
2842
+ };
2843
+
2844
+
2845
+ /**
2846
+ * Static version of the {@see toObject} method.
2847
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2848
+ * the JSPB instance for transitional soy proto support:
2849
+ * http://goto/soy-param-migration
2850
+ * @param {!proto.Spic.AssetProto.ReplaceBatteryRequest} msg The msg instance to transform.
2851
+ * @return {!Object}
2852
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2853
+ */
2854
+ proto.Spic.AssetProto.ReplaceBatteryRequest.toObject = function(includeInstance, msg) {
2855
+ var f, obj = {
2856
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2857
+ };
2858
+
2859
+ if (includeInstance) {
2860
+ obj.$jspbMessageInstance = msg;
2861
+ }
2862
+ return obj;
2863
+ };
2864
+ }
2865
+
2866
+
2867
+ /**
2868
+ * Deserializes binary data (in protobuf wire format).
2869
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2870
+ * @return {!proto.Spic.AssetProto.ReplaceBatteryRequest}
2871
+ */
2872
+ proto.Spic.AssetProto.ReplaceBatteryRequest.deserializeBinary = function(bytes) {
2873
+ var reader = new jspb.BinaryReader(bytes);
2874
+ var msg = new proto.Spic.AssetProto.ReplaceBatteryRequest;
2875
+ return proto.Spic.AssetProto.ReplaceBatteryRequest.deserializeBinaryFromReader(msg, reader);
2876
+ };
2877
+
2878
+
2879
+ /**
2880
+ * Deserializes binary data (in protobuf wire format) from the
2881
+ * given reader into the given message object.
2882
+ * @param {!proto.Spic.AssetProto.ReplaceBatteryRequest} msg The message object to deserialize into.
2883
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2884
+ * @return {!proto.Spic.AssetProto.ReplaceBatteryRequest}
2885
+ */
2886
+ proto.Spic.AssetProto.ReplaceBatteryRequest.deserializeBinaryFromReader = function(msg, reader) {
2887
+ while (reader.nextField()) {
2888
+ if (reader.isEndGroup()) {
2889
+ break;
2890
+ }
2891
+ var field = reader.getFieldNumber();
2892
+ switch (field) {
2893
+ case 1:
2894
+ var value = /** @type {number} */ (reader.readInt64());
2895
+ msg.setId(value);
2896
+ break;
2897
+ default:
2898
+ reader.skipField();
2899
+ break;
2900
+ }
2901
+ }
2902
+ return msg;
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * Serializes the message to binary data (in protobuf wire format).
2908
+ * @return {!Uint8Array}
2909
+ */
2910
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.serializeBinary = function() {
2911
+ var writer = new jspb.BinaryWriter();
2912
+ proto.Spic.AssetProto.ReplaceBatteryRequest.serializeBinaryToWriter(this, writer);
2913
+ return writer.getResultBuffer();
2914
+ };
2915
+
2916
+
2917
+ /**
2918
+ * Serializes the given message to binary data (in protobuf wire
2919
+ * format), writing to the given BinaryWriter.
2920
+ * @param {!proto.Spic.AssetProto.ReplaceBatteryRequest} message
2921
+ * @param {!jspb.BinaryWriter} writer
2922
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2923
+ */
2924
+ proto.Spic.AssetProto.ReplaceBatteryRequest.serializeBinaryToWriter = function(message, writer) {
2925
+ var f = undefined;
2926
+ f = message.getId();
2927
+ if (f !== 0) {
2928
+ writer.writeInt64(
2929
+ 1,
2930
+ f
2931
+ );
2932
+ }
2933
+ };
2934
+
2935
+
2936
+ /**
2937
+ * optional int64 id = 1;
2938
+ * @return {number}
2939
+ */
2940
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.getId = function() {
2941
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2942
+ };
2943
+
2944
+
2945
+ /**
2946
+ * @param {number} value
2947
+ * @return {!proto.Spic.AssetProto.ReplaceBatteryRequest} returns this
2948
+ */
2949
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.setId = function(value) {
2950
+ return jspb.Message.setProto3IntField(this, 1, value);
2951
+ };
2952
+
2953
+
2954
+
2955
+
2956
+
2957
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2958
+ /**
2959
+ * Creates an object representation of this proto.
2960
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2961
+ * Optional fields that are not set will be set to undefined.
2962
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2963
+ * For the list of reserved names please see:
2964
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2965
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2966
+ * JSPB instance for transitional soy proto support:
2967
+ * http://goto/soy-param-migration
2968
+ * @return {!Object}
2969
+ */
2970
+ proto.Spic.AssetProto.Image.prototype.toObject = function(opt_includeInstance) {
2971
+ return proto.Spic.AssetProto.Image.toObject(opt_includeInstance, this);
2972
+ };
2973
+
2974
+
2975
+ /**
2976
+ * Static version of the {@see toObject} method.
2977
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2978
+ * the JSPB instance for transitional soy proto support:
2979
+ * http://goto/soy-param-migration
2980
+ * @param {!proto.Spic.AssetProto.Image} msg The msg instance to transform.
2981
+ * @return {!Object}
2982
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2983
+ */
2984
+ proto.Spic.AssetProto.Image.toObject = function(includeInstance, msg) {
2985
+ var f, obj = {
2986
+
2987
+ };
2988
+
2989
+ if (includeInstance) {
2990
+ obj.$jspbMessageInstance = msg;
2991
+ }
2992
+ return obj;
2993
+ };
2994
+ }
2995
+
2996
+
2997
+ /**
2998
+ * Deserializes binary data (in protobuf wire format).
2999
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3000
+ * @return {!proto.Spic.AssetProto.Image}
3001
+ */
3002
+ proto.Spic.AssetProto.Image.deserializeBinary = function(bytes) {
3003
+ var reader = new jspb.BinaryReader(bytes);
3004
+ var msg = new proto.Spic.AssetProto.Image;
3005
+ return proto.Spic.AssetProto.Image.deserializeBinaryFromReader(msg, reader);
3006
+ };
3007
+
3008
+
3009
+ /**
3010
+ * Deserializes binary data (in protobuf wire format) from the
3011
+ * given reader into the given message object.
3012
+ * @param {!proto.Spic.AssetProto.Image} msg The message object to deserialize into.
3013
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3014
+ * @return {!proto.Spic.AssetProto.Image}
3015
+ */
3016
+ proto.Spic.AssetProto.Image.deserializeBinaryFromReader = function(msg, reader) {
3017
+ while (reader.nextField()) {
3018
+ if (reader.isEndGroup()) {
3019
+ break;
3020
+ }
3021
+ var field = reader.getFieldNumber();
3022
+ switch (field) {
3023
+ default:
3024
+ reader.skipField();
3025
+ break;
3026
+ }
3027
+ }
3028
+ return msg;
3029
+ };
3030
+
3031
+
3032
+ /**
3033
+ * Serializes the message to binary data (in protobuf wire format).
3034
+ * @return {!Uint8Array}
3035
+ */
3036
+ proto.Spic.AssetProto.Image.prototype.serializeBinary = function() {
3037
+ var writer = new jspb.BinaryWriter();
3038
+ proto.Spic.AssetProto.Image.serializeBinaryToWriter(this, writer);
3039
+ return writer.getResultBuffer();
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * Serializes the given message to binary data (in protobuf wire
3045
+ * format), writing to the given BinaryWriter.
3046
+ * @param {!proto.Spic.AssetProto.Image} message
3047
+ * @param {!jspb.BinaryWriter} writer
3048
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3049
+ */
3050
+ proto.Spic.AssetProto.Image.serializeBinaryToWriter = function(message, writer) {
3051
+ var f = undefined;
3052
+ };
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3059
+ /**
3060
+ * Creates an object representation of this proto.
3061
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3062
+ * Optional fields that are not set will be set to undefined.
3063
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3064
+ * For the list of reserved names please see:
3065
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3066
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3067
+ * JSPB instance for transitional soy proto support:
3068
+ * http://goto/soy-param-migration
3069
+ * @return {!Object}
3070
+ */
3071
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
3072
+ return proto.Spic.AssetProto.Image.RetrieveRequest.toObject(opt_includeInstance, this);
3073
+ };
3074
+
3075
+
3076
+ /**
3077
+ * Static version of the {@see toObject} method.
3078
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3079
+ * the JSPB instance for transitional soy proto support:
3080
+ * http://goto/soy-param-migration
3081
+ * @param {!proto.Spic.AssetProto.Image.RetrieveRequest} msg The msg instance to transform.
3082
+ * @return {!Object}
3083
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3084
+ */
3085
+ proto.Spic.AssetProto.Image.RetrieveRequest.toObject = function(includeInstance, msg) {
3086
+ var f, obj = {
3087
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
3088
+ };
3089
+
3090
+ if (includeInstance) {
3091
+ obj.$jspbMessageInstance = msg;
3092
+ }
3093
+ return obj;
3094
+ };
3095
+ }
3096
+
3097
+
3098
+ /**
3099
+ * Deserializes binary data (in protobuf wire format).
3100
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3101
+ * @return {!proto.Spic.AssetProto.Image.RetrieveRequest}
3102
+ */
3103
+ proto.Spic.AssetProto.Image.RetrieveRequest.deserializeBinary = function(bytes) {
3104
+ var reader = new jspb.BinaryReader(bytes);
3105
+ var msg = new proto.Spic.AssetProto.Image.RetrieveRequest;
3106
+ return proto.Spic.AssetProto.Image.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
3107
+ };
3108
+
3109
+
3110
+ /**
3111
+ * Deserializes binary data (in protobuf wire format) from the
3112
+ * given reader into the given message object.
3113
+ * @param {!proto.Spic.AssetProto.Image.RetrieveRequest} msg The message object to deserialize into.
3114
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3115
+ * @return {!proto.Spic.AssetProto.Image.RetrieveRequest}
3116
+ */
3117
+ proto.Spic.AssetProto.Image.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
3118
+ while (reader.nextField()) {
3119
+ if (reader.isEndGroup()) {
3120
+ break;
3121
+ }
3122
+ var field = reader.getFieldNumber();
3123
+ switch (field) {
3124
+ case 1:
3125
+ var value = /** @type {number} */ (reader.readInt64());
3126
+ msg.setId(value);
3127
+ break;
3128
+ default:
3129
+ reader.skipField();
3130
+ break;
3131
+ }
3132
+ }
3133
+ return msg;
3134
+ };
3135
+
3136
+
3137
+ /**
3138
+ * Serializes the message to binary data (in protobuf wire format).
3139
+ * @return {!Uint8Array}
3140
+ */
3141
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.serializeBinary = function() {
3142
+ var writer = new jspb.BinaryWriter();
3143
+ proto.Spic.AssetProto.Image.RetrieveRequest.serializeBinaryToWriter(this, writer);
3144
+ return writer.getResultBuffer();
3145
+ };
3146
+
3147
+
3148
+ /**
3149
+ * Serializes the given message to binary data (in protobuf wire
3150
+ * format), writing to the given BinaryWriter.
3151
+ * @param {!proto.Spic.AssetProto.Image.RetrieveRequest} message
3152
+ * @param {!jspb.BinaryWriter} writer
3153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3154
+ */
3155
+ proto.Spic.AssetProto.Image.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
3156
+ var f = undefined;
3157
+ f = message.getId();
3158
+ if (f !== 0) {
3159
+ writer.writeInt64(
3160
+ 1,
3161
+ f
3162
+ );
3163
+ }
3164
+ };
3165
+
3166
+
3167
+ /**
3168
+ * optional int64 id = 1;
3169
+ * @return {number}
3170
+ */
3171
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.getId = function() {
3172
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3173
+ };
3174
+
3175
+
3176
+ /**
3177
+ * @param {number} value
3178
+ * @return {!proto.Spic.AssetProto.Image.RetrieveRequest} returns this
3179
+ */
3180
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.setId = function(value) {
3181
+ return jspb.Message.setProto3IntField(this, 1, value);
3182
+ };
3183
+
3184
+
3185
+
3186
+
3187
+
3188
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3189
+ /**
3190
+ * Creates an object representation of this proto.
3191
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3192
+ * Optional fields that are not set will be set to undefined.
3193
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3194
+ * For the list of reserved names please see:
3195
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3196
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3197
+ * JSPB instance for transitional soy proto support:
3198
+ * http://goto/soy-param-migration
3199
+ * @return {!Object}
3200
+ */
3201
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.toObject = function(opt_includeInstance) {
3202
+ return proto.Spic.AssetProto.Image.RetrieveReply.toObject(opt_includeInstance, this);
3203
+ };
3204
+
3205
+
3206
+ /**
3207
+ * Static version of the {@see toObject} method.
3208
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3209
+ * the JSPB instance for transitional soy proto support:
3210
+ * http://goto/soy-param-migration
3211
+ * @param {!proto.Spic.AssetProto.Image.RetrieveReply} msg The msg instance to transform.
3212
+ * @return {!Object}
3213
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3214
+ */
3215
+ proto.Spic.AssetProto.Image.RetrieveReply.toObject = function(includeInstance, msg) {
3216
+ var f, obj = {
3217
+ data: msg.getData_asB64()
3218
+ };
3219
+
3220
+ if (includeInstance) {
3221
+ obj.$jspbMessageInstance = msg;
3222
+ }
3223
+ return obj;
3224
+ };
3225
+ }
3226
+
3227
+
3228
+ /**
3229
+ * Deserializes binary data (in protobuf wire format).
3230
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3231
+ * @return {!proto.Spic.AssetProto.Image.RetrieveReply}
3232
+ */
3233
+ proto.Spic.AssetProto.Image.RetrieveReply.deserializeBinary = function(bytes) {
3234
+ var reader = new jspb.BinaryReader(bytes);
3235
+ var msg = new proto.Spic.AssetProto.Image.RetrieveReply;
3236
+ return proto.Spic.AssetProto.Image.RetrieveReply.deserializeBinaryFromReader(msg, reader);
3237
+ };
3238
+
3239
+
3240
+ /**
3241
+ * Deserializes binary data (in protobuf wire format) from the
3242
+ * given reader into the given message object.
3243
+ * @param {!proto.Spic.AssetProto.Image.RetrieveReply} msg The message object to deserialize into.
3244
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3245
+ * @return {!proto.Spic.AssetProto.Image.RetrieveReply}
3246
+ */
3247
+ proto.Spic.AssetProto.Image.RetrieveReply.deserializeBinaryFromReader = function(msg, reader) {
3248
+ while (reader.nextField()) {
3249
+ if (reader.isEndGroup()) {
3250
+ break;
3251
+ }
3252
+ var field = reader.getFieldNumber();
3253
+ switch (field) {
3254
+ case 1:
3255
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3256
+ msg.setData(value);
3257
+ break;
3258
+ default:
3259
+ reader.skipField();
3260
+ break;
3261
+ }
3262
+ }
3263
+ return msg;
3264
+ };
3265
+
3266
+
3267
+ /**
3268
+ * Serializes the message to binary data (in protobuf wire format).
3269
+ * @return {!Uint8Array}
3270
+ */
3271
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.serializeBinary = function() {
3272
+ var writer = new jspb.BinaryWriter();
3273
+ proto.Spic.AssetProto.Image.RetrieveReply.serializeBinaryToWriter(this, writer);
3274
+ return writer.getResultBuffer();
3275
+ };
3276
+
3277
+
3278
+ /**
3279
+ * Serializes the given message to binary data (in protobuf wire
3280
+ * format), writing to the given BinaryWriter.
3281
+ * @param {!proto.Spic.AssetProto.Image.RetrieveReply} message
3282
+ * @param {!jspb.BinaryWriter} writer
3283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3284
+ */
3285
+ proto.Spic.AssetProto.Image.RetrieveReply.serializeBinaryToWriter = function(message, writer) {
3286
+ var f = undefined;
3287
+ f = message.getData_asU8();
3288
+ if (f.length > 0) {
3289
+ writer.writeBytes(
3290
+ 1,
3291
+ f
3292
+ );
3293
+ }
3294
+ };
3295
+
3296
+
3297
+ /**
3298
+ * optional bytes data = 1;
3299
+ * @return {!(string|Uint8Array)}
3300
+ */
3301
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.getData = function() {
3302
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3303
+ };
3304
+
3305
+
3306
+ /**
3307
+ * optional bytes data = 1;
3308
+ * This is a type-conversion wrapper around `getData()`
3309
+ * @return {string}
3310
+ */
3311
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.getData_asB64 = function() {
3312
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3313
+ this.getData()));
3314
+ };
3315
+
3316
+
3317
+ /**
3318
+ * optional bytes data = 1;
3319
+ * Note that Uint8Array is not supported on all browsers.
3320
+ * @see http://caniuse.com/Uint8Array
3321
+ * This is a type-conversion wrapper around `getData()`
3322
+ * @return {!Uint8Array}
3323
+ */
3324
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.getData_asU8 = function() {
3325
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3326
+ this.getData()));
3327
+ };
3328
+
3329
+
3330
+ /**
3331
+ * @param {!(string|Uint8Array)} value
3332
+ * @return {!proto.Spic.AssetProto.Image.RetrieveReply} returns this
3333
+ */
3334
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.setData = function(value) {
3335
+ return jspb.Message.setProto3BytesField(this, 1, value);
3336
+ };
3337
+
3338
+
3339
+
3340
+
3341
+
3342
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3343
+ /**
3344
+ * Creates an object representation of this proto.
3345
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3346
+ * Optional fields that are not set will be set to undefined.
3347
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3348
+ * For the list of reserved names please see:
3349
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3350
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3351
+ * JSPB instance for transitional soy proto support:
3352
+ * http://goto/soy-param-migration
3353
+ * @return {!Object}
3354
+ */
3355
+ proto.Spic.AssetProto.StateChangedEvent.prototype.toObject = function(opt_includeInstance) {
3356
+ return proto.Spic.AssetProto.StateChangedEvent.toObject(opt_includeInstance, this);
3357
+ };
3358
+
3359
+
3360
+ /**
3361
+ * Static version of the {@see toObject} method.
3362
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3363
+ * the JSPB instance for transitional soy proto support:
3364
+ * http://goto/soy-param-migration
3365
+ * @param {!proto.Spic.AssetProto.StateChangedEvent} msg The msg instance to transform.
3366
+ * @return {!Object}
3367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3368
+ */
3369
+ proto.Spic.AssetProto.StateChangedEvent.toObject = function(includeInstance, msg) {
3370
+ var f, obj = {
3371
+ state: (f = msg.getState()) && proto.Spic.ComponentProto.toObject(includeInstance, f),
3372
+ onlyMetadataUpdated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
3373
+ onlyAttributesUpdated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
3374
+ };
3375
+
3376
+ if (includeInstance) {
3377
+ obj.$jspbMessageInstance = msg;
3378
+ }
3379
+ return obj;
3380
+ };
3381
+ }
3382
+
3383
+
3384
+ /**
3385
+ * Deserializes binary data (in protobuf wire format).
3386
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3387
+ * @return {!proto.Spic.AssetProto.StateChangedEvent}
3388
+ */
3389
+ proto.Spic.AssetProto.StateChangedEvent.deserializeBinary = function(bytes) {
3390
+ var reader = new jspb.BinaryReader(bytes);
3391
+ var msg = new proto.Spic.AssetProto.StateChangedEvent;
3392
+ return proto.Spic.AssetProto.StateChangedEvent.deserializeBinaryFromReader(msg, reader);
3393
+ };
3394
+
3395
+
3396
+ /**
3397
+ * Deserializes binary data (in protobuf wire format) from the
3398
+ * given reader into the given message object.
3399
+ * @param {!proto.Spic.AssetProto.StateChangedEvent} msg The message object to deserialize into.
3400
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3401
+ * @return {!proto.Spic.AssetProto.StateChangedEvent}
3402
+ */
3403
+ proto.Spic.AssetProto.StateChangedEvent.deserializeBinaryFromReader = function(msg, reader) {
3404
+ while (reader.nextField()) {
3405
+ if (reader.isEndGroup()) {
3406
+ break;
3407
+ }
3408
+ var field = reader.getFieldNumber();
3409
+ switch (field) {
3410
+ case 1:
3411
+ var value = new proto.Spic.ComponentProto;
3412
+ reader.readMessage(value,proto.Spic.ComponentProto.deserializeBinaryFromReader);
3413
+ msg.setState(value);
3414
+ break;
3415
+ case 2:
3416
+ var value = /** @type {boolean} */ (reader.readBool());
3417
+ msg.setOnlyMetadataUpdated(value);
3418
+ break;
3419
+ case 3:
3420
+ var value = /** @type {boolean} */ (reader.readBool());
3421
+ msg.setOnlyAttributesUpdated(value);
3422
+ break;
3423
+ default:
3424
+ reader.skipField();
3425
+ break;
3426
+ }
3427
+ }
3428
+ return msg;
3429
+ };
3430
+
3431
+
3432
+ /**
3433
+ * Serializes the message to binary data (in protobuf wire format).
3434
+ * @return {!Uint8Array}
3435
+ */
3436
+ proto.Spic.AssetProto.StateChangedEvent.prototype.serializeBinary = function() {
3437
+ var writer = new jspb.BinaryWriter();
3438
+ proto.Spic.AssetProto.StateChangedEvent.serializeBinaryToWriter(this, writer);
3439
+ return writer.getResultBuffer();
3440
+ };
3441
+
3442
+
3443
+ /**
3444
+ * Serializes the given message to binary data (in protobuf wire
3445
+ * format), writing to the given BinaryWriter.
3446
+ * @param {!proto.Spic.AssetProto.StateChangedEvent} message
3447
+ * @param {!jspb.BinaryWriter} writer
3448
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3449
+ */
3450
+ proto.Spic.AssetProto.StateChangedEvent.serializeBinaryToWriter = function(message, writer) {
3451
+ var f = undefined;
3452
+ f = message.getState();
3453
+ if (f != null) {
3454
+ writer.writeMessage(
3455
+ 1,
3456
+ f,
3457
+ proto.Spic.ComponentProto.serializeBinaryToWriter
3458
+ );
3459
+ }
3460
+ f = message.getOnlyMetadataUpdated();
3461
+ if (f) {
3462
+ writer.writeBool(
3463
+ 2,
3464
+ f
3465
+ );
3466
+ }
3467
+ f = message.getOnlyAttributesUpdated();
3468
+ if (f) {
3469
+ writer.writeBool(
3470
+ 3,
3471
+ f
3472
+ );
3473
+ }
3474
+ };
3475
+
3476
+
3477
+ /**
3478
+ * optional ComponentProto state = 1;
3479
+ * @return {?proto.Spic.ComponentProto}
3480
+ */
3481
+ proto.Spic.AssetProto.StateChangedEvent.prototype.getState = function() {
3482
+ return /** @type{?proto.Spic.ComponentProto} */ (
3483
+ jspb.Message.getWrapperField(this, proto.Spic.ComponentProto, 1));
3484
+ };
3485
+
3486
+
3487
+ /**
3488
+ * @param {?proto.Spic.ComponentProto|undefined} value
3489
+ * @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
3490
+ */
3491
+ proto.Spic.AssetProto.StateChangedEvent.prototype.setState = function(value) {
3492
+ return jspb.Message.setWrapperField(this, 1, value);
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * Clears the message field making it undefined.
3498
+ * @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
3499
+ */
3500
+ proto.Spic.AssetProto.StateChangedEvent.prototype.clearState = function() {
3501
+ return this.setState(undefined);
3502
+ };
3503
+
3504
+
3505
+ /**
3506
+ * Returns whether this field is set.
3507
+ * @return {boolean}
3508
+ */
3509
+ proto.Spic.AssetProto.StateChangedEvent.prototype.hasState = function() {
3510
+ return jspb.Message.getField(this, 1) != null;
3511
+ };
3512
+
3513
+
3514
+ /**
3515
+ * optional bool only_metadata_updated = 2;
3516
+ * @return {boolean}
3517
+ */
3518
+ proto.Spic.AssetProto.StateChangedEvent.prototype.getOnlyMetadataUpdated = function() {
3519
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
3520
+ };
3521
+
3522
+
3523
+ /**
3524
+ * @param {boolean} value
3525
+ * @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
3526
+ */
3527
+ proto.Spic.AssetProto.StateChangedEvent.prototype.setOnlyMetadataUpdated = function(value) {
3528
+ return jspb.Message.setProto3BooleanField(this, 2, value);
3529
+ };
3530
+
3531
+
3532
+ /**
3533
+ * optional bool only_attributes_updated = 3;
3534
+ * @return {boolean}
3535
+ */
3536
+ proto.Spic.AssetProto.StateChangedEvent.prototype.getOnlyAttributesUpdated = function() {
3537
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3538
+ };
3539
+
3540
+
3541
+ /**
3542
+ * @param {boolean} value
3543
+ * @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
3544
+ */
3545
+ proto.Spic.AssetProto.StateChangedEvent.prototype.setOnlyAttributesUpdated = function(value) {
3546
+ return jspb.Message.setProto3BooleanField(this, 3, value);
3547
+ };
3548
+
3549
+
3550
+ /**
3551
+ * optional int64 id = 1;
3552
+ * @return {number}
3553
+ */
3554
+ proto.Spic.AssetProto.prototype.getId = function() {
3555
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3556
+ };
3557
+
3558
+
3559
+ /**
3560
+ * @param {number} value
3561
+ * @return {!proto.Spic.AssetProto} returns this
3562
+ */
3563
+ proto.Spic.AssetProto.prototype.setId = function(value) {
3564
+ return jspb.Message.setProto3IntField(this, 1, value);
3565
+ };
3566
+
3567
+
3568
+ /**
3569
+ * optional string name = 2;
3570
+ * @return {string}
3571
+ */
3572
+ proto.Spic.AssetProto.prototype.getName = function() {
3573
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3574
+ };
3575
+
3576
+
3577
+ /**
3578
+ * @param {string} value
3579
+ * @return {!proto.Spic.AssetProto} returns this
3580
+ */
3581
+ proto.Spic.AssetProto.prototype.setName = function(value) {
3582
+ return jspb.Message.setProto3StringField(this, 2, value);
3583
+ };
3584
+
3585
+
3586
+ /**
3587
+ * optional int64 location_id = 3;
3588
+ * @return {number}
3589
+ */
3590
+ proto.Spic.AssetProto.prototype.getLocationId = function() {
3591
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3592
+ };
3593
+
3594
+
3595
+ /**
3596
+ * @param {number} value
3597
+ * @return {!proto.Spic.AssetProto} returns this
3598
+ */
3599
+ proto.Spic.AssetProto.prototype.setLocationId = function(value) {
3600
+ return jspb.Message.setProto3IntField(this, 3, value);
3601
+ };
3602
+
3603
+
3604
+ /**
3605
+ * optional string uid = 4;
3606
+ * @return {string}
3607
+ */
3608
+ proto.Spic.AssetProto.prototype.getUid = function() {
3609
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3610
+ };
3611
+
3612
+
3613
+ /**
3614
+ * @param {string} value
3615
+ * @return {!proto.Spic.AssetProto} returns this
3616
+ */
3617
+ proto.Spic.AssetProto.prototype.setUid = function(value) {
3618
+ return jspb.Message.setProto3StringField(this, 4, value);
3619
+ };
3620
+
3621
+
3622
+ /**
3623
+ * optional int32 status = 5;
3624
+ * @return {number}
3625
+ */
3626
+ proto.Spic.AssetProto.prototype.getStatus = function() {
3627
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
3628
+ };
3629
+
3630
+
3631
+ /**
3632
+ * @param {number} value
3633
+ * @return {!proto.Spic.AssetProto} returns this
3634
+ */
3635
+ proto.Spic.AssetProto.prototype.setStatus = function(value) {
3636
+ return jspb.Message.setProto3IntField(this, 5, value);
3637
+ };
3638
+
3639
+
3640
+ /**
3641
+ * optional google.protobuf.Timestamp last_status_update = 7;
3642
+ * @return {?proto.google.protobuf.Timestamp}
3643
+ */
3644
+ proto.Spic.AssetProto.prototype.getLastStatusUpdate = function() {
3645
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3646
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
3647
+ };
3648
+
3649
+
3650
+ /**
3651
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3652
+ * @return {!proto.Spic.AssetProto} returns this
3653
+ */
3654
+ proto.Spic.AssetProto.prototype.setLastStatusUpdate = function(value) {
3655
+ return jspb.Message.setWrapperField(this, 7, value);
3656
+ };
3657
+
3658
+
3659
+ /**
3660
+ * Clears the message field making it undefined.
3661
+ * @return {!proto.Spic.AssetProto} returns this
3662
+ */
3663
+ proto.Spic.AssetProto.prototype.clearLastStatusUpdate = function() {
3664
+ return this.setLastStatusUpdate(undefined);
3665
+ };
3666
+
3667
+
3668
+ /**
3669
+ * Returns whether this field is set.
3670
+ * @return {boolean}
3671
+ */
3672
+ proto.Spic.AssetProto.prototype.hasLastStatusUpdate = function() {
3673
+ return jspb.Message.getField(this, 7) != null;
3674
+ };
3675
+
3676
+
3677
+ /**
3678
+ * optional string group_id = 8;
3679
+ * @return {string}
3680
+ */
3681
+ proto.Spic.AssetProto.prototype.getGroupId = function() {
3682
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3683
+ };
3684
+
3685
+
3686
+ /**
3687
+ * @param {string} value
3688
+ * @return {!proto.Spic.AssetProto} returns this
3689
+ */
3690
+ proto.Spic.AssetProto.prototype.setGroupId = function(value) {
3691
+ return jspb.Message.setProto3StringField(this, 8, value);
3692
+ };
3693
+
3694
+
3695
+ /**
3696
+ * optional int32 client_id = 9;
3697
+ * @return {number}
3698
+ */
3699
+ proto.Spic.AssetProto.prototype.getClientId = function() {
3700
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
3701
+ };
3702
+
3703
+
3704
+ /**
3705
+ * @param {number} value
3706
+ * @return {!proto.Spic.AssetProto} returns this
3707
+ */
3708
+ proto.Spic.AssetProto.prototype.setClientId = function(value) {
3709
+ return jspb.Message.setProto3IntField(this, 9, value);
3710
+ };
3711
+
3712
+
3713
+ /**
3714
+ * optional bool is_maintenance = 10;
3715
+ * @return {boolean}
3716
+ */
3717
+ proto.Spic.AssetProto.prototype.getIsMaintenance = function() {
3718
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
3719
+ };
3720
+
3721
+
3722
+ /**
3723
+ * @param {boolean} value
3724
+ * @return {!proto.Spic.AssetProto} returns this
3725
+ */
3726
+ proto.Spic.AssetProto.prototype.setIsMaintenance = function(value) {
3727
+ return jspb.Message.setProto3BooleanField(this, 10, value);
3728
+ };
3729
+
3730
+
3731
+ /**
3732
+ * optional string image_blob = 11;
3733
+ * @return {string}
3734
+ */
3735
+ proto.Spic.AssetProto.prototype.getImageBlob = function() {
3736
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3737
+ };
3738
+
3739
+
3740
+ /**
3741
+ * @param {string} value
3742
+ * @return {!proto.Spic.AssetProto} returns this
3743
+ */
3744
+ proto.Spic.AssetProto.prototype.setImageBlob = function(value) {
3745
+ return jspb.Message.setProto3StringField(this, 11, value);
3746
+ };
3747
+
3748
+
3749
+ /**
3750
+ * optional google.protobuf.Timestamp battery_placed = 12;
3751
+ * @return {?proto.google.protobuf.Timestamp}
3752
+ */
3753
+ proto.Spic.AssetProto.prototype.getBatteryPlaced = function() {
3754
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3755
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
3756
+ };
3757
+
3758
+
3759
+ /**
3760
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3761
+ * @return {!proto.Spic.AssetProto} returns this
3762
+ */
3763
+ proto.Spic.AssetProto.prototype.setBatteryPlaced = function(value) {
3764
+ return jspb.Message.setWrapperField(this, 12, value);
3765
+ };
3766
+
3767
+
3768
+ /**
3769
+ * Clears the message field making it undefined.
3770
+ * @return {!proto.Spic.AssetProto} returns this
3771
+ */
3772
+ proto.Spic.AssetProto.prototype.clearBatteryPlaced = function() {
3773
+ return this.setBatteryPlaced(undefined);
3774
+ };
3775
+
3776
+
3777
+ /**
3778
+ * Returns whether this field is set.
3779
+ * @return {boolean}
3780
+ */
3781
+ proto.Spic.AssetProto.prototype.hasBatteryPlaced = function() {
3782
+ return jspb.Message.getField(this, 12) != null;
3783
+ };
3784
+
3785
+
3786
+ /**
3787
+ * optional int32 battery_percentage = 13;
3788
+ * @return {number}
3789
+ */
3790
+ proto.Spic.AssetProto.prototype.getBatteryPercentage = function() {
3791
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
3792
+ };
3793
+
3794
+
3795
+ /**
3796
+ * @param {number} value
3797
+ * @return {!proto.Spic.AssetProto} returns this
3798
+ */
3799
+ proto.Spic.AssetProto.prototype.setBatteryPercentage = function(value) {
3800
+ return jspb.Message.setProto3IntField(this, 13, value);
3801
+ };
3802
+
3803
+
3804
+ /**
3805
+ * optional int64 communication_time = 14;
3806
+ * @return {number}
3807
+ */
3808
+ proto.Spic.AssetProto.prototype.getCommunicationTime = function() {
3809
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
3810
+ };
3811
+
3812
+
3813
+ /**
3814
+ * @param {number} value
3815
+ * @return {!proto.Spic.AssetProto} returns this
3816
+ */
3817
+ proto.Spic.AssetProto.prototype.setCommunicationTime = function(value) {
3818
+ return jspb.Message.setProto3IntField(this, 14, value);
3819
+ };
3820
+
3821
+
3822
+ /**
3823
+ * optional string last_config_string = 15;
3824
+ * @return {string}
3825
+ */
3826
+ proto.Spic.AssetProto.prototype.getLastConfigString = function() {
3827
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3828
+ };
3829
+
3830
+
3831
+ /**
3832
+ * @param {string} value
3833
+ * @return {!proto.Spic.AssetProto} returns this
3834
+ */
3835
+ proto.Spic.AssetProto.prototype.setLastConfigString = function(value) {
3836
+ return jspb.Message.setProto3StringField(this, 15, value);
3837
+ };
3838
+
3839
+
3840
+ /**
3841
+ * optional google.protobuf.Timestamp last_config_updated = 16;
3842
+ * @return {?proto.google.protobuf.Timestamp}
3843
+ */
3844
+ proto.Spic.AssetProto.prototype.getLastConfigUpdated = function() {
3845
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3846
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16));
3847
+ };
3848
+
3849
+
3850
+ /**
3851
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3852
+ * @return {!proto.Spic.AssetProto} returns this
3853
+ */
3854
+ proto.Spic.AssetProto.prototype.setLastConfigUpdated = function(value) {
3855
+ return jspb.Message.setWrapperField(this, 16, value);
3856
+ };
3857
+
3858
+
3859
+ /**
3860
+ * Clears the message field making it undefined.
3861
+ * @return {!proto.Spic.AssetProto} returns this
3862
+ */
3863
+ proto.Spic.AssetProto.prototype.clearLastConfigUpdated = function() {
3864
+ return this.setLastConfigUpdated(undefined);
3865
+ };
3866
+
3867
+
3868
+ /**
3869
+ * Returns whether this field is set.
3870
+ * @return {boolean}
3871
+ */
3872
+ proto.Spic.AssetProto.prototype.hasLastConfigUpdated = function() {
3873
+ return jspb.Message.getField(this, 16) != null;
3874
+ };
3875
+
3876
+
3877
+ /**
3878
+ * optional AssetType asset_type = 17;
3879
+ * @return {!proto.Spic.AssetProto.AssetType}
3880
+ */
3881
+ proto.Spic.AssetProto.prototype.getAssetType = function() {
3882
+ return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
3883
+ };
3884
+
3885
+
3886
+ /**
3887
+ * @param {!proto.Spic.AssetProto.AssetType} value
3888
+ * @return {!proto.Spic.AssetProto} returns this
3889
+ */
3890
+ proto.Spic.AssetProto.prototype.setAssetType = function(value) {
3891
+ return jspb.Message.setProto3EnumField(this, 17, value);
3892
+ };
3893
+
3894
+
3895
+ /**
3896
+ * optional BatteryStatus battery_status = 18;
3897
+ * @return {!proto.Spic.AssetProto.BatteryStatus}
3898
+ */
3899
+ proto.Spic.AssetProto.prototype.getBatteryStatus = function() {
3900
+ return /** @type {!proto.Spic.AssetProto.BatteryStatus} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
3901
+ };
3902
+
3903
+
3904
+ /**
3905
+ * @param {!proto.Spic.AssetProto.BatteryStatus} value
3906
+ * @return {!proto.Spic.AssetProto} returns this
3907
+ */
3908
+ proto.Spic.AssetProto.prototype.setBatteryStatus = function(value) {
3909
+ return jspb.Message.setProto3EnumField(this, 18, value);
3910
+ };
3911
+
3912
+
3913
+ /**
3914
+ * repeated ComponentProto states = 19;
3915
+ * @return {!Array<!proto.Spic.ComponentProto>}
3916
+ */
3917
+ proto.Spic.AssetProto.prototype.getStatesList = function() {
3918
+ return /** @type{!Array<!proto.Spic.ComponentProto>} */ (
3919
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.ComponentProto, 19));
3920
+ };
3921
+
3922
+
3923
+ /**
3924
+ * @param {!Array<!proto.Spic.ComponentProto>} value
3925
+ * @return {!proto.Spic.AssetProto} returns this
3926
+ */
3927
+ proto.Spic.AssetProto.prototype.setStatesList = function(value) {
3928
+ return jspb.Message.setRepeatedWrapperField(this, 19, value);
3929
+ };
3930
+
3931
+
3932
+ /**
3933
+ * @param {!proto.Spic.ComponentProto=} opt_value
3934
+ * @param {number=} opt_index
3935
+ * @return {!proto.Spic.ComponentProto}
3936
+ */
3937
+ proto.Spic.AssetProto.prototype.addStates = function(opt_value, opt_index) {
3938
+ return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.Spic.ComponentProto, opt_index);
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * Clears the list making it empty but non-null.
3944
+ * @return {!proto.Spic.AssetProto} returns this
3945
+ */
3946
+ proto.Spic.AssetProto.prototype.clearStatesList = function() {
3947
+ return this.setStatesList([]);
3948
+ };
3949
+
3950
+
3951
+ /**
3952
+ * optional DeviceType device_type = 20;
3953
+ * @return {!proto.Spic.AssetProto.DeviceType}
3954
+ */
3955
+ proto.Spic.AssetProto.prototype.getDeviceType = function() {
3956
+ return /** @type {!proto.Spic.AssetProto.DeviceType} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
3957
+ };
3958
+
3959
+
3960
+ /**
3961
+ * @param {!proto.Spic.AssetProto.DeviceType} value
3962
+ * @return {!proto.Spic.AssetProto} returns this
3963
+ */
3964
+ proto.Spic.AssetProto.prototype.setDeviceType = function(value) {
3965
+ return jspb.Message.setProto3EnumField(this, 20, value);
3966
+ };
3967
+
3968
+
3969
+
3970
+
3971
+
3972
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3973
+ /**
3974
+ * Creates an object representation of this proto.
3975
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3976
+ * Optional fields that are not set will be set to undefined.
3977
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3978
+ * For the list of reserved names please see:
3979
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3980
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3981
+ * JSPB instance for transitional soy proto support:
3982
+ * http://goto/soy-param-migration
3983
+ * @return {!Object}
3984
+ */
3985
+ proto.Spic.ComponentProto.prototype.toObject = function(opt_includeInstance) {
3986
+ return proto.Spic.ComponentProto.toObject(opt_includeInstance, this);
3987
+ };
3988
+
3989
+
3990
+ /**
3991
+ * Static version of the {@see toObject} method.
3992
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3993
+ * the JSPB instance for transitional soy proto support:
3994
+ * http://goto/soy-param-migration
3995
+ * @param {!proto.Spic.ComponentProto} msg The msg instance to transform.
3996
+ * @return {!Object}
3997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3998
+ */
3999
+ proto.Spic.ComponentProto.toObject = function(includeInstance, msg) {
4000
+ var f, obj = {
4001
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
4002
+ componentIdentifier: jspb.Message.getFieldWithDefault(msg, 2, 0),
4003
+ componentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
4004
+ componentClass: jspb.Message.getFieldWithDefault(msg, 4, ""),
4005
+ value: jspb.Message.getFieldWithDefault(msg, 5, ""),
4006
+ lastChanged: (f = msg.getLastChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4007
+ lastUpdated: (f = msg.getLastUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4008
+ lastReported: (f = msg.getLastReported()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4009
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
4010
+ metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [],
4011
+ deviceType: jspb.Message.getFieldWithDefault(msg, 11, 0)
4012
+ };
4013
+
4014
+ if (includeInstance) {
4015
+ obj.$jspbMessageInstance = msg;
4016
+ }
4017
+ return obj;
4018
+ };
4019
+ }
4020
+
4021
+
4022
+ /**
4023
+ * Deserializes binary data (in protobuf wire format).
4024
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4025
+ * @return {!proto.Spic.ComponentProto}
4026
+ */
4027
+ proto.Spic.ComponentProto.deserializeBinary = function(bytes) {
4028
+ var reader = new jspb.BinaryReader(bytes);
4029
+ var msg = new proto.Spic.ComponentProto;
4030
+ return proto.Spic.ComponentProto.deserializeBinaryFromReader(msg, reader);
4031
+ };
4032
+
4033
+
4034
+ /**
4035
+ * Deserializes binary data (in protobuf wire format) from the
4036
+ * given reader into the given message object.
4037
+ * @param {!proto.Spic.ComponentProto} msg The message object to deserialize into.
4038
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4039
+ * @return {!proto.Spic.ComponentProto}
4040
+ */
4041
+ proto.Spic.ComponentProto.deserializeBinaryFromReader = function(msg, reader) {
4042
+ while (reader.nextField()) {
4043
+ if (reader.isEndGroup()) {
4044
+ break;
4045
+ }
4046
+ var field = reader.getFieldNumber();
4047
+ switch (field) {
4048
+ case 1:
4049
+ var value = /** @type {string} */ (reader.readString());
4050
+ msg.setId(value);
4051
+ break;
4052
+ case 2:
4053
+ var value = /** @type {!proto.Spic.ComponentIdentifier} */ (reader.readEnum());
4054
+ msg.setComponentIdentifier(value);
4055
+ break;
4056
+ case 3:
4057
+ var value = /** @type {string} */ (reader.readString());
4058
+ msg.setComponentId(value);
4059
+ break;
4060
+ case 4:
4061
+ var value = /** @type {string} */ (reader.readString());
4062
+ msg.setComponentClass(value);
4063
+ break;
4064
+ case 5:
4065
+ var value = /** @type {string} */ (reader.readString());
4066
+ msg.setValue(value);
4067
+ break;
4068
+ case 6:
4069
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4070
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4071
+ msg.setLastChanged(value);
4072
+ break;
4073
+ case 7:
4074
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4075
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4076
+ msg.setLastUpdated(value);
4077
+ break;
4078
+ case 8:
4079
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4080
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4081
+ msg.setLastReported(value);
4082
+ break;
4083
+ case 9:
4084
+ var value = msg.getAttributesMap();
4085
+ reader.readMessage(value, function(message, reader) {
4086
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
4087
+ });
4088
+ break;
4089
+ case 10:
4090
+ var value = msg.getMetadataMap();
4091
+ reader.readMessage(value, function(message, reader) {
4092
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
4093
+ });
4094
+ break;
4095
+ case 11:
4096
+ var value = /** @type {!proto.Spic.AssetProto.DeviceType} */ (reader.readEnum());
4097
+ msg.setDeviceType(value);
4098
+ break;
4099
+ default:
4100
+ reader.skipField();
4101
+ break;
4102
+ }
4103
+ }
4104
+ return msg;
4105
+ };
4106
+
4107
+
4108
+ /**
4109
+ * Serializes the message to binary data (in protobuf wire format).
4110
+ * @return {!Uint8Array}
4111
+ */
4112
+ proto.Spic.ComponentProto.prototype.serializeBinary = function() {
4113
+ var writer = new jspb.BinaryWriter();
4114
+ proto.Spic.ComponentProto.serializeBinaryToWriter(this, writer);
4115
+ return writer.getResultBuffer();
4116
+ };
4117
+
4118
+
4119
+ /**
4120
+ * Serializes the given message to binary data (in protobuf wire
4121
+ * format), writing to the given BinaryWriter.
4122
+ * @param {!proto.Spic.ComponentProto} message
4123
+ * @param {!jspb.BinaryWriter} writer
4124
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4125
+ */
4126
+ proto.Spic.ComponentProto.serializeBinaryToWriter = function(message, writer) {
4127
+ var f = undefined;
4128
+ f = message.getId();
4129
+ if (f.length > 0) {
4130
+ writer.writeString(
4131
+ 1,
4132
+ f
4133
+ );
4134
+ }
4135
+ f = message.getComponentIdentifier();
4136
+ if (f !== 0.0) {
4137
+ writer.writeEnum(
4138
+ 2,
4139
+ f
4140
+ );
4141
+ }
4142
+ f = message.getComponentId();
4143
+ if (f.length > 0) {
4144
+ writer.writeString(
4145
+ 3,
4146
+ f
4147
+ );
4148
+ }
4149
+ f = message.getComponentClass();
4150
+ if (f.length > 0) {
4151
+ writer.writeString(
4152
+ 4,
4153
+ f
4154
+ );
4155
+ }
4156
+ f = message.getValue();
4157
+ if (f.length > 0) {
4158
+ writer.writeString(
4159
+ 5,
4160
+ f
4161
+ );
4162
+ }
4163
+ f = message.getLastChanged();
4164
+ if (f != null) {
4165
+ writer.writeMessage(
4166
+ 6,
4167
+ f,
4168
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4169
+ );
4170
+ }
4171
+ f = message.getLastUpdated();
4172
+ if (f != null) {
4173
+ writer.writeMessage(
4174
+ 7,
4175
+ f,
4176
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4177
+ );
4178
+ }
4179
+ f = message.getLastReported();
4180
+ if (f != null) {
4181
+ writer.writeMessage(
4182
+ 8,
4183
+ f,
4184
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4185
+ );
4186
+ }
4187
+ f = message.getAttributesMap(true);
4188
+ if (f && f.getLength() > 0) {
4189
+ f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
4190
+ }
4191
+ f = message.getMetadataMap(true);
4192
+ if (f && f.getLength() > 0) {
4193
+ f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
4194
+ }
4195
+ f = message.getDeviceType();
4196
+ if (f !== 0.0) {
4197
+ writer.writeEnum(
4198
+ 11,
4199
+ f
4200
+ );
4201
+ }
4202
+ };
4203
+
4204
+
4205
+ /**
4206
+ * optional string id = 1;
4207
+ * @return {string}
4208
+ */
4209
+ proto.Spic.ComponentProto.prototype.getId = function() {
4210
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4211
+ };
4212
+
4213
+
4214
+ /**
4215
+ * @param {string} value
4216
+ * @return {!proto.Spic.ComponentProto} returns this
4217
+ */
4218
+ proto.Spic.ComponentProto.prototype.setId = function(value) {
4219
+ return jspb.Message.setProto3StringField(this, 1, value);
4220
+ };
4221
+
4222
+
4223
+ /**
4224
+ * optional ComponentIdentifier component_identifier = 2;
4225
+ * @return {!proto.Spic.ComponentIdentifier}
4226
+ */
4227
+ proto.Spic.ComponentProto.prototype.getComponentIdentifier = function() {
4228
+ return /** @type {!proto.Spic.ComponentIdentifier} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4229
+ };
4230
+
4231
+
4232
+ /**
4233
+ * @param {!proto.Spic.ComponentIdentifier} value
4234
+ * @return {!proto.Spic.ComponentProto} returns this
4235
+ */
4236
+ proto.Spic.ComponentProto.prototype.setComponentIdentifier = function(value) {
4237
+ return jspb.Message.setProto3EnumField(this, 2, value);
4238
+ };
4239
+
4240
+
4241
+ /**
4242
+ * optional string component_id = 3;
4243
+ * @return {string}
4244
+ */
4245
+ proto.Spic.ComponentProto.prototype.getComponentId = function() {
4246
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4247
+ };
4248
+
4249
+
4250
+ /**
4251
+ * @param {string} value
4252
+ * @return {!proto.Spic.ComponentProto} returns this
4253
+ */
4254
+ proto.Spic.ComponentProto.prototype.setComponentId = function(value) {
4255
+ return jspb.Message.setProto3StringField(this, 3, value);
4256
+ };
4257
+
4258
+
4259
+ /**
4260
+ * optional string component_class = 4;
4261
+ * @return {string}
4262
+ */
4263
+ proto.Spic.ComponentProto.prototype.getComponentClass = function() {
4264
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4265
+ };
4266
+
4267
+
4268
+ /**
4269
+ * @param {string} value
4270
+ * @return {!proto.Spic.ComponentProto} returns this
4271
+ */
4272
+ proto.Spic.ComponentProto.prototype.setComponentClass = function(value) {
4273
+ return jspb.Message.setProto3StringField(this, 4, value);
4274
+ };
4275
+
4276
+
4277
+ /**
4278
+ * optional string value = 5;
4279
+ * @return {string}
4280
+ */
4281
+ proto.Spic.ComponentProto.prototype.getValue = function() {
4282
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4283
+ };
4284
+
4285
+
4286
+ /**
4287
+ * @param {string} value
4288
+ * @return {!proto.Spic.ComponentProto} returns this
4289
+ */
4290
+ proto.Spic.ComponentProto.prototype.setValue = function(value) {
4291
+ return jspb.Message.setProto3StringField(this, 5, value);
4292
+ };
4293
+
4294
+
4295
+ /**
4296
+ * optional google.protobuf.Timestamp last_changed = 6;
4297
+ * @return {?proto.google.protobuf.Timestamp}
4298
+ */
4299
+ proto.Spic.ComponentProto.prototype.getLastChanged = function() {
4300
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4301
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
4302
+ };
4303
+
4304
+
4305
+ /**
4306
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4307
+ * @return {!proto.Spic.ComponentProto} returns this
4308
+ */
4309
+ proto.Spic.ComponentProto.prototype.setLastChanged = function(value) {
4310
+ return jspb.Message.setWrapperField(this, 6, value);
4311
+ };
4312
+
4313
+
4314
+ /**
4315
+ * Clears the message field making it undefined.
4316
+ * @return {!proto.Spic.ComponentProto} returns this
4317
+ */
4318
+ proto.Spic.ComponentProto.prototype.clearLastChanged = function() {
4319
+ return this.setLastChanged(undefined);
4320
+ };
4321
+
4322
+
4323
+ /**
4324
+ * Returns whether this field is set.
4325
+ * @return {boolean}
4326
+ */
4327
+ proto.Spic.ComponentProto.prototype.hasLastChanged = function() {
4328
+ return jspb.Message.getField(this, 6) != null;
4329
+ };
4330
+
4331
+
4332
+ /**
4333
+ * optional google.protobuf.Timestamp last_updated = 7;
4334
+ * @return {?proto.google.protobuf.Timestamp}
4335
+ */
4336
+ proto.Spic.ComponentProto.prototype.getLastUpdated = function() {
4337
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4338
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
4339
+ };
4340
+
4341
+
4342
+ /**
4343
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4344
+ * @return {!proto.Spic.ComponentProto} returns this
4345
+ */
4346
+ proto.Spic.ComponentProto.prototype.setLastUpdated = function(value) {
4347
+ return jspb.Message.setWrapperField(this, 7, value);
4348
+ };
4349
+
4350
+
4351
+ /**
4352
+ * Clears the message field making it undefined.
4353
+ * @return {!proto.Spic.ComponentProto} returns this
4354
+ */
4355
+ proto.Spic.ComponentProto.prototype.clearLastUpdated = function() {
4356
+ return this.setLastUpdated(undefined);
4357
+ };
4358
+
4359
+
4360
+ /**
4361
+ * Returns whether this field is set.
4362
+ * @return {boolean}
4363
+ */
4364
+ proto.Spic.ComponentProto.prototype.hasLastUpdated = function() {
4365
+ return jspb.Message.getField(this, 7) != null;
4366
+ };
4367
+
4368
+
4369
+ /**
4370
+ * optional google.protobuf.Timestamp last_reported = 8;
4371
+ * @return {?proto.google.protobuf.Timestamp}
4372
+ */
4373
+ proto.Spic.ComponentProto.prototype.getLastReported = function() {
4374
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4375
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
4376
+ };
4377
+
4378
+
4379
+ /**
4380
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4381
+ * @return {!proto.Spic.ComponentProto} returns this
4382
+ */
4383
+ proto.Spic.ComponentProto.prototype.setLastReported = function(value) {
4384
+ return jspb.Message.setWrapperField(this, 8, value);
4385
+ };
4386
+
4387
+
4388
+ /**
4389
+ * Clears the message field making it undefined.
4390
+ * @return {!proto.Spic.ComponentProto} returns this
4391
+ */
4392
+ proto.Spic.ComponentProto.prototype.clearLastReported = function() {
4393
+ return this.setLastReported(undefined);
4394
+ };
4395
+
4396
+
4397
+ /**
4398
+ * Returns whether this field is set.
4399
+ * @return {boolean}
4400
+ */
4401
+ proto.Spic.ComponentProto.prototype.hasLastReported = function() {
4402
+ return jspb.Message.getField(this, 8) != null;
4403
+ };
4404
+
4405
+
4406
+ /**
4407
+ * map<string, string> attributes = 9;
4408
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
4409
+ * empty, instead returning `undefined`
4410
+ * @return {!jspb.Map<string,string>}
4411
+ */
4412
+ proto.Spic.ComponentProto.prototype.getAttributesMap = function(opt_noLazyCreate) {
4413
+ return /** @type {!jspb.Map<string,string>} */ (
4414
+ jspb.Message.getMapField(this, 9, opt_noLazyCreate,
4415
+ null));
4416
+ };
4417
+
4418
+
4419
+ /**
4420
+ * Clears values from the map. The map will be non-null.
4421
+ * @return {!proto.Spic.ComponentProto} returns this
4422
+ */
4423
+ proto.Spic.ComponentProto.prototype.clearAttributesMap = function() {
4424
+ this.getAttributesMap().clear();
4425
+ return this;
4426
+ };
4427
+
4428
+
4429
+ /**
4430
+ * map<string, string> metadata = 10;
4431
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
4432
+ * empty, instead returning `undefined`
4433
+ * @return {!jspb.Map<string,string>}
4434
+ */
4435
+ proto.Spic.ComponentProto.prototype.getMetadataMap = function(opt_noLazyCreate) {
4436
+ return /** @type {!jspb.Map<string,string>} */ (
4437
+ jspb.Message.getMapField(this, 10, opt_noLazyCreate,
4438
+ null));
4439
+ };
4440
+
4441
+
4442
+ /**
4443
+ * Clears values from the map. The map will be non-null.
4444
+ * @return {!proto.Spic.ComponentProto} returns this
4445
+ */
4446
+ proto.Spic.ComponentProto.prototype.clearMetadataMap = function() {
4447
+ this.getMetadataMap().clear();
4448
+ return this;
4449
+ };
4450
+
4451
+
4452
+ /**
4453
+ * optional AssetProto.DeviceType device_type = 11;
4454
+ * @return {!proto.Spic.AssetProto.DeviceType}
4455
+ */
4456
+ proto.Spic.ComponentProto.prototype.getDeviceType = function() {
4457
+ return /** @type {!proto.Spic.AssetProto.DeviceType} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
4458
+ };
4459
+
4460
+
4461
+ /**
4462
+ * @param {!proto.Spic.AssetProto.DeviceType} value
4463
+ * @return {!proto.Spic.ComponentProto} returns this
4464
+ */
4465
+ proto.Spic.ComponentProto.prototype.setDeviceType = function(value) {
4466
+ return jspb.Message.setProto3EnumField(this, 11, value);
4467
+ };
4468
+
4469
+
4470
+
4471
+
4472
+
4473
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4474
+ /**
4475
+ * Creates an object representation of this proto.
4476
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4477
+ * Optional fields that are not set will be set to undefined.
4478
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4479
+ * For the list of reserved names please see:
4480
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4481
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4482
+ * JSPB instance for transitional soy proto support:
4483
+ * http://goto/soy-param-migration
4484
+ * @return {!Object}
4485
+ */
4486
+ proto.Spic.AssetWithLocation.prototype.toObject = function(opt_includeInstance) {
4487
+ return proto.Spic.AssetWithLocation.toObject(opt_includeInstance, this);
4488
+ };
4489
+
4490
+
4491
+ /**
4492
+ * Static version of the {@see toObject} method.
4493
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4494
+ * the JSPB instance for transitional soy proto support:
4495
+ * http://goto/soy-param-migration
4496
+ * @param {!proto.Spic.AssetWithLocation} msg The msg instance to transform.
4497
+ * @return {!Object}
4498
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4499
+ */
4500
+ proto.Spic.AssetWithLocation.toObject = function(includeInstance, msg) {
4501
+ var f, obj = {
4502
+ asset: (f = msg.getAsset()) && proto.Spic.AssetProto.toObject(includeInstance, f),
4503
+ location: (f = msg.getLocation()) && platform_location_pb.LocationProto.toObject(includeInstance, f),
4504
+ openingRange: jspb.Message.getFieldWithDefault(msg, 3, 0)
4505
+ };
4506
+
4507
+ if (includeInstance) {
4508
+ obj.$jspbMessageInstance = msg;
4509
+ }
4510
+ return obj;
4511
+ };
4512
+ }
4513
+
4514
+
4515
+ /**
4516
+ * Deserializes binary data (in protobuf wire format).
4517
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4518
+ * @return {!proto.Spic.AssetWithLocation}
4519
+ */
4520
+ proto.Spic.AssetWithLocation.deserializeBinary = function(bytes) {
4521
+ var reader = new jspb.BinaryReader(bytes);
4522
+ var msg = new proto.Spic.AssetWithLocation;
4523
+ return proto.Spic.AssetWithLocation.deserializeBinaryFromReader(msg, reader);
4524
+ };
4525
+
4526
+
4527
+ /**
4528
+ * Deserializes binary data (in protobuf wire format) from the
4529
+ * given reader into the given message object.
4530
+ * @param {!proto.Spic.AssetWithLocation} msg The message object to deserialize into.
4531
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4532
+ * @return {!proto.Spic.AssetWithLocation}
4533
+ */
4534
+ proto.Spic.AssetWithLocation.deserializeBinaryFromReader = function(msg, reader) {
4535
+ while (reader.nextField()) {
4536
+ if (reader.isEndGroup()) {
4537
+ break;
4538
+ }
4539
+ var field = reader.getFieldNumber();
4540
+ switch (field) {
4541
+ case 1:
4542
+ var value = new proto.Spic.AssetProto;
4543
+ reader.readMessage(value,proto.Spic.AssetProto.deserializeBinaryFromReader);
4544
+ msg.setAsset(value);
4545
+ break;
4546
+ case 2:
4547
+ var value = new platform_location_pb.LocationProto;
4548
+ reader.readMessage(value,platform_location_pb.LocationProto.deserializeBinaryFromReader);
4549
+ msg.setLocation(value);
4550
+ break;
4551
+ case 3:
4552
+ var value = /** @type {number} */ (reader.readInt32());
4553
+ msg.setOpeningRange(value);
4554
+ break;
4555
+ default:
4556
+ reader.skipField();
4557
+ break;
4558
+ }
4559
+ }
4560
+ return msg;
4561
+ };
4562
+
4563
+
4564
+ /**
4565
+ * Serializes the message to binary data (in protobuf wire format).
4566
+ * @return {!Uint8Array}
4567
+ */
4568
+ proto.Spic.AssetWithLocation.prototype.serializeBinary = function() {
4569
+ var writer = new jspb.BinaryWriter();
4570
+ proto.Spic.AssetWithLocation.serializeBinaryToWriter(this, writer);
4571
+ return writer.getResultBuffer();
4572
+ };
4573
+
4574
+
4575
+ /**
4576
+ * Serializes the given message to binary data (in protobuf wire
4577
+ * format), writing to the given BinaryWriter.
4578
+ * @param {!proto.Spic.AssetWithLocation} message
4579
+ * @param {!jspb.BinaryWriter} writer
4580
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4581
+ */
4582
+ proto.Spic.AssetWithLocation.serializeBinaryToWriter = function(message, writer) {
4583
+ var f = undefined;
4584
+ f = message.getAsset();
4585
+ if (f != null) {
4586
+ writer.writeMessage(
4587
+ 1,
4588
+ f,
4589
+ proto.Spic.AssetProto.serializeBinaryToWriter
4590
+ );
4591
+ }
4592
+ f = message.getLocation();
4593
+ if (f != null) {
4594
+ writer.writeMessage(
4595
+ 2,
4596
+ f,
4597
+ platform_location_pb.LocationProto.serializeBinaryToWriter
4598
+ );
4599
+ }
4600
+ f = message.getOpeningRange();
4601
+ if (f !== 0) {
4602
+ writer.writeInt32(
4603
+ 3,
4604
+ f
4605
+ );
4606
+ }
4607
+ };
4608
+
4609
+
4610
+ /**
4611
+ * optional AssetProto asset = 1;
4612
+ * @return {?proto.Spic.AssetProto}
4613
+ */
4614
+ proto.Spic.AssetWithLocation.prototype.getAsset = function() {
4615
+ return /** @type{?proto.Spic.AssetProto} */ (
4616
+ jspb.Message.getWrapperField(this, proto.Spic.AssetProto, 1));
4617
+ };
4618
+
4619
+
4620
+ /**
4621
+ * @param {?proto.Spic.AssetProto|undefined} value
4622
+ * @return {!proto.Spic.AssetWithLocation} returns this
4623
+ */
4624
+ proto.Spic.AssetWithLocation.prototype.setAsset = function(value) {
4625
+ return jspb.Message.setWrapperField(this, 1, value);
4626
+ };
4627
+
4628
+
4629
+ /**
4630
+ * Clears the message field making it undefined.
4631
+ * @return {!proto.Spic.AssetWithLocation} returns this
4632
+ */
4633
+ proto.Spic.AssetWithLocation.prototype.clearAsset = function() {
4634
+ return this.setAsset(undefined);
4635
+ };
4636
+
4637
+
4638
+ /**
4639
+ * Returns whether this field is set.
4640
+ * @return {boolean}
4641
+ */
4642
+ proto.Spic.AssetWithLocation.prototype.hasAsset = function() {
4643
+ return jspb.Message.getField(this, 1) != null;
4644
+ };
4645
+
4646
+
4647
+ /**
4648
+ * optional Platform.LocationProto location = 2;
4649
+ * @return {?proto.Platform.LocationProto}
4650
+ */
4651
+ proto.Spic.AssetWithLocation.prototype.getLocation = function() {
4652
+ return /** @type{?proto.Platform.LocationProto} */ (
4653
+ jspb.Message.getWrapperField(this, platform_location_pb.LocationProto, 2));
4654
+ };
4655
+
4656
+
4657
+ /**
4658
+ * @param {?proto.Platform.LocationProto|undefined} value
4659
+ * @return {!proto.Spic.AssetWithLocation} returns this
4660
+ */
4661
+ proto.Spic.AssetWithLocation.prototype.setLocation = function(value) {
4662
+ return jspb.Message.setWrapperField(this, 2, value);
4663
+ };
4664
+
4665
+
4666
+ /**
4667
+ * Clears the message field making it undefined.
4668
+ * @return {!proto.Spic.AssetWithLocation} returns this
4669
+ */
4670
+ proto.Spic.AssetWithLocation.prototype.clearLocation = function() {
4671
+ return this.setLocation(undefined);
4672
+ };
4673
+
4674
+
4675
+ /**
4676
+ * Returns whether this field is set.
4677
+ * @return {boolean}
4678
+ */
4679
+ proto.Spic.AssetWithLocation.prototype.hasLocation = function() {
4680
+ return jspb.Message.getField(this, 2) != null;
4681
+ };
4682
+
4683
+
4684
+ /**
4685
+ * optional int32 opening_range = 3;
4686
+ * @return {number}
4687
+ */
4688
+ proto.Spic.AssetWithLocation.prototype.getOpeningRange = function() {
4689
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4690
+ };
4691
+
4692
+
4693
+ /**
4694
+ * @param {number} value
4695
+ * @return {!proto.Spic.AssetWithLocation} returns this
4696
+ */
4697
+ proto.Spic.AssetWithLocation.prototype.setOpeningRange = function(value) {
4698
+ return jspb.Message.setProto3IntField(this, 3, value);
4699
+ };
4700
+
4701
+
4702
+
4703
+
4704
+
4705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4706
+ /**
4707
+ * Creates an object representation of this proto.
4708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4709
+ * Optional fields that are not set will be set to undefined.
4710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4711
+ * For the list of reserved names please see:
4712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4714
+ * JSPB instance for transitional soy proto support:
4715
+ * http://goto/soy-param-migration
4716
+ * @return {!Object}
4717
+ */
4718
+ proto.Spic.AssetWithLocationAndDistance.prototype.toObject = function(opt_includeInstance) {
4719
+ return proto.Spic.AssetWithLocationAndDistance.toObject(opt_includeInstance, this);
4720
+ };
4721
+
4722
+
4723
+ /**
4724
+ * Static version of the {@see toObject} method.
4725
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4726
+ * the JSPB instance for transitional soy proto support:
4727
+ * http://goto/soy-param-migration
4728
+ * @param {!proto.Spic.AssetWithLocationAndDistance} msg The msg instance to transform.
4729
+ * @return {!Object}
4730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4731
+ */
4732
+ proto.Spic.AssetWithLocationAndDistance.toObject = function(includeInstance, msg) {
4733
+ var f, obj = {
4734
+ asset: (f = msg.getAsset()) && proto.Spic.AssetProto.toObject(includeInstance, f),
4735
+ location: (f = msg.getLocation()) && platform_location_pb.LocationProto.toObject(includeInstance, f),
4736
+ openingRange: jspb.Message.getFieldWithDefault(msg, 3, 0),
4737
+ distance: jspb.Message.getFieldWithDefault(msg, 4, 0)
4738
+ };
4739
+
4740
+ if (includeInstance) {
4741
+ obj.$jspbMessageInstance = msg;
4742
+ }
4743
+ return obj;
4744
+ };
4745
+ }
4746
+
4747
+
4748
+ /**
4749
+ * Deserializes binary data (in protobuf wire format).
4750
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4751
+ * @return {!proto.Spic.AssetWithLocationAndDistance}
4752
+ */
4753
+ proto.Spic.AssetWithLocationAndDistance.deserializeBinary = function(bytes) {
4754
+ var reader = new jspb.BinaryReader(bytes);
4755
+ var msg = new proto.Spic.AssetWithLocationAndDistance;
4756
+ return proto.Spic.AssetWithLocationAndDistance.deserializeBinaryFromReader(msg, reader);
4757
+ };
4758
+
4759
+
4760
+ /**
4761
+ * Deserializes binary data (in protobuf wire format) from the
4762
+ * given reader into the given message object.
4763
+ * @param {!proto.Spic.AssetWithLocationAndDistance} msg The message object to deserialize into.
4764
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4765
+ * @return {!proto.Spic.AssetWithLocationAndDistance}
4766
+ */
4767
+ proto.Spic.AssetWithLocationAndDistance.deserializeBinaryFromReader = function(msg, reader) {
4768
+ while (reader.nextField()) {
4769
+ if (reader.isEndGroup()) {
4770
+ break;
4771
+ }
4772
+ var field = reader.getFieldNumber();
4773
+ switch (field) {
4774
+ case 1:
4775
+ var value = new proto.Spic.AssetProto;
4776
+ reader.readMessage(value,proto.Spic.AssetProto.deserializeBinaryFromReader);
4777
+ msg.setAsset(value);
4778
+ break;
4779
+ case 2:
4780
+ var value = new platform_location_pb.LocationProto;
4781
+ reader.readMessage(value,platform_location_pb.LocationProto.deserializeBinaryFromReader);
4782
+ msg.setLocation(value);
4783
+ break;
4784
+ case 3:
4785
+ var value = /** @type {number} */ (reader.readInt32());
4786
+ msg.setOpeningRange(value);
4787
+ break;
4788
+ case 4:
4789
+ var value = /** @type {number} */ (reader.readInt32());
4790
+ msg.setDistance(value);
4791
+ break;
4792
+ default:
4793
+ reader.skipField();
4794
+ break;
4795
+ }
4796
+ }
4797
+ return msg;
4798
+ };
4799
+
4800
+
4801
+ /**
4802
+ * Serializes the message to binary data (in protobuf wire format).
4803
+ * @return {!Uint8Array}
4804
+ */
4805
+ proto.Spic.AssetWithLocationAndDistance.prototype.serializeBinary = function() {
4806
+ var writer = new jspb.BinaryWriter();
4807
+ proto.Spic.AssetWithLocationAndDistance.serializeBinaryToWriter(this, writer);
4808
+ return writer.getResultBuffer();
4809
+ };
4810
+
4811
+
4812
+ /**
4813
+ * Serializes the given message to binary data (in protobuf wire
4814
+ * format), writing to the given BinaryWriter.
4815
+ * @param {!proto.Spic.AssetWithLocationAndDistance} message
4816
+ * @param {!jspb.BinaryWriter} writer
4817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4818
+ */
4819
+ proto.Spic.AssetWithLocationAndDistance.serializeBinaryToWriter = function(message, writer) {
4820
+ var f = undefined;
4821
+ f = message.getAsset();
4822
+ if (f != null) {
4823
+ writer.writeMessage(
4824
+ 1,
4825
+ f,
4826
+ proto.Spic.AssetProto.serializeBinaryToWriter
4827
+ );
4828
+ }
4829
+ f = message.getLocation();
4830
+ if (f != null) {
4831
+ writer.writeMessage(
4832
+ 2,
4833
+ f,
4834
+ platform_location_pb.LocationProto.serializeBinaryToWriter
4835
+ );
4836
+ }
4837
+ f = message.getOpeningRange();
4838
+ if (f !== 0) {
4839
+ writer.writeInt32(
4840
+ 3,
4841
+ f
4842
+ );
4843
+ }
4844
+ f = message.getDistance();
4845
+ if (f !== 0) {
4846
+ writer.writeInt32(
4847
+ 4,
4848
+ f
4849
+ );
4850
+ }
4851
+ };
4852
+
4853
+
4854
+ /**
4855
+ * optional AssetProto asset = 1;
4856
+ * @return {?proto.Spic.AssetProto}
4857
+ */
4858
+ proto.Spic.AssetWithLocationAndDistance.prototype.getAsset = function() {
4859
+ return /** @type{?proto.Spic.AssetProto} */ (
4860
+ jspb.Message.getWrapperField(this, proto.Spic.AssetProto, 1));
4861
+ };
4862
+
4863
+
4864
+ /**
4865
+ * @param {?proto.Spic.AssetProto|undefined} value
4866
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4867
+ */
4868
+ proto.Spic.AssetWithLocationAndDistance.prototype.setAsset = function(value) {
4869
+ return jspb.Message.setWrapperField(this, 1, value);
4870
+ };
4871
+
4872
+
4873
+ /**
4874
+ * Clears the message field making it undefined.
4875
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4876
+ */
4877
+ proto.Spic.AssetWithLocationAndDistance.prototype.clearAsset = function() {
4878
+ return this.setAsset(undefined);
4879
+ };
4880
+
4881
+
4882
+ /**
4883
+ * Returns whether this field is set.
4884
+ * @return {boolean}
4885
+ */
4886
+ proto.Spic.AssetWithLocationAndDistance.prototype.hasAsset = function() {
4887
+ return jspb.Message.getField(this, 1) != null;
4888
+ };
4889
+
4890
+
4891
+ /**
4892
+ * optional Platform.LocationProto location = 2;
4893
+ * @return {?proto.Platform.LocationProto}
4894
+ */
4895
+ proto.Spic.AssetWithLocationAndDistance.prototype.getLocation = function() {
4896
+ return /** @type{?proto.Platform.LocationProto} */ (
4897
+ jspb.Message.getWrapperField(this, platform_location_pb.LocationProto, 2));
4898
+ };
4899
+
4900
+
4901
+ /**
4902
+ * @param {?proto.Platform.LocationProto|undefined} value
4903
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4904
+ */
4905
+ proto.Spic.AssetWithLocationAndDistance.prototype.setLocation = function(value) {
4906
+ return jspb.Message.setWrapperField(this, 2, value);
4907
+ };
4908
+
4909
+
4910
+ /**
4911
+ * Clears the message field making it undefined.
4912
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4913
+ */
4914
+ proto.Spic.AssetWithLocationAndDistance.prototype.clearLocation = function() {
4915
+ return this.setLocation(undefined);
4916
+ };
4917
+
4918
+
4919
+ /**
4920
+ * Returns whether this field is set.
4921
+ * @return {boolean}
4922
+ */
4923
+ proto.Spic.AssetWithLocationAndDistance.prototype.hasLocation = function() {
4924
+ return jspb.Message.getField(this, 2) != null;
4925
+ };
4926
+
4927
+
4928
+ /**
4929
+ * optional int32 opening_range = 3;
4930
+ * @return {number}
4931
+ */
4932
+ proto.Spic.AssetWithLocationAndDistance.prototype.getOpeningRange = function() {
4933
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4934
+ };
4935
+
4936
+
4937
+ /**
4938
+ * @param {number} value
4939
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4940
+ */
4941
+ proto.Spic.AssetWithLocationAndDistance.prototype.setOpeningRange = function(value) {
4942
+ return jspb.Message.setProto3IntField(this, 3, value);
4943
+ };
4944
+
4945
+
4946
+ /**
4947
+ * optional int32 distance = 4;
4948
+ * @return {number}
4949
+ */
4950
+ proto.Spic.AssetWithLocationAndDistance.prototype.getDistance = function() {
4951
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4952
+ };
4953
+
4954
+
4955
+ /**
4956
+ * @param {number} value
4957
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4958
+ */
4959
+ proto.Spic.AssetWithLocationAndDistance.prototype.setDistance = function(value) {
4960
+ return jspb.Message.setProto3IntField(this, 4, value);
4961
+ };
4962
+
4963
+
4964
+ /**
4965
+ * @enum {number}
4966
+ */
4967
+ proto.Spic.ComponentIdentifier = {
4968
+ ENCLOSURE_TEMPERATURE: 0,
4969
+ ENCLOSURE_HUMIDITY: 1,
4970
+ ENCLOSURE_TILT: 2,
4971
+ DEVICE_UID: 3,
4972
+ COMMUNICATION_PACKET_NUMBER: 4,
4973
+ MAINBOARD_FIRMWARE_CRC: 5,
4974
+ MAINBOARD_BATTERY_VOLTAGE: 6,
4975
+ LTE_COMMUNICATION_TIME: 7,
4976
+ LTE_SIGNAL_STRENGTH: 8,
4977
+ LTE_NETWORK_STRING: 9,
4978
+ LTE_ICCID: 10,
4979
+ LTE_IMEI: 11,
4980
+ NTC_CRITICAL_TEMPERATURE_ALARM: 12,
4981
+ NTC_HIGH_TEMPERATURE_ALARM: 13,
4982
+ CABINET_MAIN_DOOR: 14,
4983
+ CABINET_MAIN_DOOR_HANDLE: 15,
4984
+ CABINET_MAIN_DOOR_LOCK: 16,
4985
+ EXT_ALARM_1: 31,
4986
+ EXT_ALARM_2: 32,
4987
+ EXT_ALARM_3: 33,
4988
+ MANHOLE_COVER: 40,
4989
+ MANHOLE_CLOSURE_OPEN: 41,
4990
+ MANHOLE_COVER_SENSOR: 42,
4991
+ HEARTBEAT_TIMEOUT: 50,
4992
+ MAINBOARD_BATTERY_PERCENTAGE: 51
4993
+ };
4994
+
4995
+ goog.object.extend(exports, proto.Spic);