@aceplus/smartace-api 3.6.0-alpha.2 → 3.6.0-alpha.20

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