@aceplus/smartace-api 3.6.0-alpha.1 → 3.6.0-alpha.13

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