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

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