@aceplus/smartace-api 3.6.0-alpha.19 → 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 (249) hide show
  1. package/package.json +1 -1
  2. package/auth.account_pb.d.ts +0 -582
  3. package/auth.account_pb.js +0 -4287
  4. package/auth.account_pb_service.d.ts +0 -340
  5. package/auth.account_pb_service.js +0 -637
  6. package/auth.account_two_factor_pb.d.ts +0 -159
  7. package/auth.account_two_factor_pb.js +0 -1184
  8. package/auth.account_two_factor_pb_service.d.ts +0 -121
  9. package/auth.account_two_factor_pb_service.js +0 -182
  10. package/auth.app_account_pb.d.ts +0 -156
  11. package/auth.app_account_pb.js +0 -1153
  12. package/auth.app_account_pb_service.d.ts +0 -160
  13. package/auth.app_account_pb_service.js +0 -263
  14. package/auth.app_authn_pb.d.ts +0 -172
  15. package/auth.app_authn_pb.js +0 -1233
  16. package/auth.app_authn_pb_service.d.ts +0 -140
  17. package/auth.app_authn_pb_service.js +0 -222
  18. package/auth.app_distribution_pb.d.ts +0 -174
  19. package/auth.app_distribution_pb.js +0 -1338
  20. package/auth.app_distribution_pb_service.d.ts +0 -120
  21. package/auth.app_distribution_pb_service.js +0 -181
  22. package/auth.authn_pb.d.ts +0 -95
  23. package/auth.authn_pb.js +0 -637
  24. package/auth.authn_pb_service.d.ts +0 -82
  25. package/auth.authn_pb_service.js +0 -101
  26. package/auth.cluster_pb.d.ts +0 -142
  27. package/auth.cluster_pb.js +0 -1050
  28. package/auth.cluster_pb_service.d.ts +0 -82
  29. package/auth.cluster_pb_service.js +0 -101
  30. package/auth.distribution_pb.d.ts +0 -233
  31. package/auth.distribution_pb.js +0 -1785
  32. package/auth.distribution_pb_service.d.ts +0 -82
  33. package/auth.distribution_pb_service.js +0 -101
  34. package/auth.email_pb.d.ts +0 -217
  35. package/auth.email_pb.js +0 -1508
  36. package/auth.email_pb_service.d.ts +0 -102
  37. package/auth.email_pb_service.js +0 -142
  38. package/auth.firmware_pb.d.ts +0 -256
  39. package/auth.firmware_pb.js +0 -1997
  40. package/auth.firmware_pb_service.d.ts +0 -120
  41. package/auth.firmware_pb_service.js +0 -181
  42. package/auth.push_notification_pb.d.ts +0 -69
  43. package/auth.push_notification_pb.js +0 -411
  44. package/auth.push_notification_pb_service.d.ts +0 -64
  45. package/auth.push_notification_pb_service.js +0 -62
  46. package/auth.sms_pb.d.ts +0 -79
  47. package/auth.sms_pb.js +0 -575
  48. package/auth.sms_pb_service.d.ts +0 -83
  49. package/auth.sms_pb_service.js +0 -102
  50. package/google/api/annotations_pb.d.ts +0 -9
  51. package/google/api/annotations_pb.js +0 -54
  52. package/google/api/annotations_pb_service.d.ts +0 -3
  53. package/google/api/annotations_pb_service.js +0 -3
  54. package/google/api/auth_pb.d.ts +0 -150
  55. package/google/api/auth_pb.js +0 -1160
  56. package/google/api/auth_pb_service.d.ts +0 -3
  57. package/google/api/auth_pb_service.js +0 -3
  58. package/google/api/backend_pb.d.ts +0 -59
  59. package/google/api/backend_pb.js +0 -448
  60. package/google/api/backend_pb_service.d.ts +0 -3
  61. package/google/api/backend_pb_service.js +0 -3
  62. package/google/api/billing_pb.d.ts +0 -54
  63. package/google/api/billing_pb.js +0 -416
  64. package/google/api/billing_pb_service.d.ts +0 -3
  65. package/google/api/billing_pb_service.js +0 -3
  66. package/google/api/client_pb.d.ts +0 -12
  67. package/google/api/client_pb.js +0 -104
  68. package/google/api/client_pb_service.d.ts +0 -3
  69. package/google/api/client_pb_service.js +0 -3
  70. package/google/api/config_change_pb.d.ts +0 -72
  71. package/google/api/config_change_pb.js +0 -489
  72. package/google/api/config_change_pb_service.d.ts +0 -3
  73. package/google/api/config_change_pb_service.js +0 -3
  74. package/google/api/consumer_pb.d.ts +0 -65
  75. package/google/api/consumer_pb.js +0 -430
  76. package/google/api/consumer_pb_service.d.ts +0 -3
  77. package/google/api/consumer_pb_service.js +0 -3
  78. package/google/api/context_pb.d.ts +0 -59
  79. package/google/api/context_pb.js +0 -463
  80. package/google/api/context_pb_service.d.ts +0 -3
  81. package/google/api/context_pb_service.js +0 -3
  82. package/google/api/control_pb.d.ts +0 -25
  83. package/google/api/control_pb.js +0 -176
  84. package/google/api/control_pb_service.d.ts +0 -3
  85. package/google/api/control_pb_service.js +0 -3
  86. package/google/api/distribution_pb.d.ts +0 -235
  87. package/google/api/distribution_pb.js +0 -1805
  88. package/google/api/distribution_pb_service.d.ts +0 -3
  89. package/google/api/distribution_pb_service.js +0 -3
  90. package/google/api/documentation_pb.d.ts +0 -103
  91. package/google/api/documentation_pb.js +0 -803
  92. package/google/api/documentation_pb_service.d.ts +0 -3
  93. package/google/api/documentation_pb_service.js +0 -3
  94. package/google/api/endpoint_pb.d.ts +0 -46
  95. package/google/api/endpoint_pb.js +0 -343
  96. package/google/api/endpoint_pb_service.d.ts +0 -3
  97. package/google/api/endpoint_pb_service.js +0 -3
  98. package/google/api/error_reason_pb.d.ts +0 -40
  99. package/google/api/error_reason_pb.js +0 -61
  100. package/google/api/error_reason_pb_service.d.ts +0 -3
  101. package/google/api/error_reason_pb_service.js +0 -3
  102. package/google/api/field_behavior_pb.d.ts +0 -20
  103. package/google/api/field_behavior_pb.js +0 -66
  104. package/google/api/field_behavior_pb_service.d.ts +0 -3
  105. package/google/api/field_behavior_pb_service.js +0 -3
  106. package/google/api/http_pb.d.ts +0 -136
  107. package/google/api/http_pb.js +0 -1012
  108. package/google/api/http_pb_service.d.ts +0 -3
  109. package/google/api/http_pb_service.js +0 -3
  110. package/google/api/httpbody_pb.d.ts +0 -38
  111. package/google/api/httpbody_pb.js +0 -292
  112. package/google/api/httpbody_pb_service.d.ts +0 -3
  113. package/google/api/httpbody_pb_service.js +0 -3
  114. package/google/api/label_pb.d.ts +0 -41
  115. package/google/api/label_pb.js +0 -246
  116. package/google/api/label_pb_service.d.ts +0 -3
  117. package/google/api/label_pb_service.js +0 -3
  118. package/google/api/launch_stage_pb.d.ts +0 -16
  119. package/google/api/launch_stage_pb.js +0 -37
  120. package/google/api/launch_stage_pb_service.d.ts +0 -3
  121. package/google/api/launch_stage_pb_service.js +0 -3
  122. package/google/api/log_pb.d.ts +0 -40
  123. package/google/api/log_pb.js +0 -298
  124. package/google/api/log_pb_service.d.ts +0 -3
  125. package/google/api/log_pb_service.js +0 -3
  126. package/google/api/logging_pb.d.ts +0 -60
  127. package/google/api/logging_pb.js +0 -469
  128. package/google/api/logging_pb_service.d.ts +0 -3
  129. package/google/api/logging_pb_service.js +0 -3
  130. package/google/api/metric_pb.d.ts +0 -100
  131. package/google/api/metric_pb.js +0 -629
  132. package/google/api/metric_pb_service.d.ts +0 -3
  133. package/google/api/metric_pb_service.js +0 -3
  134. package/google/api/monitored_resource_pb.d.ts +0 -93
  135. package/google/api/monitored_resource_pb.js +0 -723
  136. package/google/api/monitored_resource_pb_service.d.ts +0 -3
  137. package/google/api/monitored_resource_pb_service.js +0 -3
  138. package/google/api/monitoring_pb.d.ts +0 -60
  139. package/google/api/monitoring_pb.js +0 -469
  140. package/google/api/monitoring_pb_service.d.ts +0 -3
  141. package/google/api/monitoring_pb_service.js +0 -3
  142. package/google/api/policy_pb.d.ts +0 -64
  143. package/google/api/policy_pb.js +0 -502
  144. package/google/api/policy_pb_service.d.ts +0 -3
  145. package/google/api/policy_pb_service.js +0 -3
  146. package/google/api/quota_pb.d.ts +0 -112
  147. package/google/api/quota_pb.js +0 -873
  148. package/google/api/quota_pb_service.d.ts +0 -3
  149. package/google/api/quota_pb_service.js +0 -3
  150. package/google/api/resource_pb.d.ts +0 -99
  151. package/google/api/resource_pb.js +0 -684
  152. package/google/api/resource_pb_service.d.ts +0 -3
  153. package/google/api/resource_pb_service.js +0 -3
  154. package/google/api/routing_pb.d.ts +0 -54
  155. package/google/api/routing_pb.js +0 -416
  156. package/google/api/routing_pb_service.d.ts +0 -3
  157. package/google/api/routing_pb_service.js +0 -3
  158. package/google/api/service_pb.d.ts +0 -184
  159. package/google/api/service_pb.js +0 -1400
  160. package/google/api/service_pb_service.d.ts +0 -3
  161. package/google/api/service_pb_service.js +0 -3
  162. package/google/api/source_info_pb.d.ts +0 -28
  163. package/google/api/source_info_pb.js +0 -208
  164. package/google/api/source_info_pb_service.d.ts +0 -3
  165. package/google/api/source_info_pb_service.js +0 -3
  166. package/google/api/system_parameter_pb.d.ts +0 -81
  167. package/google/api/system_parameter_pb.js +0 -630
  168. package/google/api/system_parameter_pb_service.d.ts +0 -3
  169. package/google/api/system_parameter_pb_service.js +0 -3
  170. package/google/api/usage_pb.d.ts +0 -66
  171. package/google/api/usage_pb.js +0 -499
  172. package/google/api/usage_pb_service.d.ts +0 -3
  173. package/google/api/usage_pb_service.js +0 -3
  174. package/google/api/visibility_pb.d.ts +0 -64
  175. package/google/api/visibility_pb.js +0 -546
  176. package/google/api/visibility_pb_service.d.ts +0 -3
  177. package/google/api/visibility_pb_service.js +0 -3
  178. package/meta.client_pb.d.ts +0 -167
  179. package/meta.client_pb.js +0 -1266
  180. package/meta.client_pb_service.d.ts +0 -122
  181. package/meta.client_pb_service.js +0 -183
  182. package/meta.spic_config_pb.d.ts +0 -184
  183. package/meta.spic_config_pb.js +0 -1382
  184. package/meta.spic_config_pb_service.d.ts +0 -122
  185. package/meta.spic_config_pb_service.js +0 -183
  186. package/platform.activity_log_pb.d.ts +0 -177
  187. package/platform.activity_log_pb.js +0 -1294
  188. package/platform.activity_log_pb_service.d.ts +0 -82
  189. package/platform.activity_log_pb_service.js +0 -101
  190. package/platform.client_pb.d.ts +0 -350
  191. package/platform.client_pb.js +0 -2663
  192. package/platform.client_pb_service.d.ts +0 -158
  193. package/platform.client_pb_service.js +0 -261
  194. package/platform.group_pb.d.ts +0 -195
  195. package/platform.group_pb.js +0 -1476
  196. package/platform.group_pb_service.d.ts +0 -139
  197. package/platform.group_pb_service.js +0 -221
  198. package/platform.local_account_internal_pb.d.ts +0 -125
  199. package/platform.local_account_internal_pb.js +0 -933
  200. package/platform.local_account_internal_pb_service.d.ts +0 -121
  201. package/platform.local_account_internal_pb_service.js +0 -182
  202. package/platform.local_account_pb.d.ts +0 -446
  203. package/platform.local_account_pb.js +0 -3337
  204. package/platform.local_account_pb_service.d.ts +0 -331
  205. package/platform.local_account_pb_service.js +0 -623
  206. package/platform.local_distribution_pb.d.ts +0 -73
  207. package/platform.local_distribution_pb.js +0 -536
  208. package/platform.local_distribution_pb_service.d.ts +0 -63
  209. package/platform.local_distribution_pb_service.js +0 -61
  210. package/platform.location_pb.d.ts +0 -271
  211. package/platform.location_pb.js +0 -2046
  212. package/platform.location_pb_service.d.ts +0 -139
  213. package/platform.location_pb_service.js +0 -221
  214. package/platform.pagination_pb.d.ts +0 -45
  215. package/platform.pagination_pb.js +0 -276
  216. package/platform.pagination_pb_service.d.ts +0 -3
  217. package/platform.pagination_pb_service.js +0 -3
  218. package/spic.admin_alert_pb.d.ts +0 -91
  219. package/spic.admin_alert_pb.js +0 -666
  220. package/spic.admin_alert_pb_service.d.ts +0 -102
  221. package/spic.admin_alert_pb_service.js +0 -142
  222. package/spic.alarm_pb.d.ts +0 -344
  223. package/spic.alarm_pb.js +0 -2622
  224. package/spic.alarm_pb_service.d.ts +0 -101
  225. package/spic.alarm_pb_service.js +0 -141
  226. package/spic.asset_pb.d.ts +0 -652
  227. package/spic.asset_pb.js +0 -4669
  228. package/spic.asset_pb_service.d.ts +0 -197
  229. package/spic.asset_pb_service.js +0 -342
  230. package/spic.cabinet_pb.d.ts +0 -951
  231. package/spic.cabinet_pb.js +0 -6875
  232. package/spic.cabinet_pb_service.d.ts +0 -177
  233. package/spic.cabinet_pb_service.js +0 -301
  234. package/spic.config_pb.d.ts +0 -249
  235. package/spic.config_pb.js +0 -1891
  236. package/spic.config_pb_service.d.ts +0 -120
  237. package/spic.config_pb_service.js +0 -181
  238. package/spic.contractor_pb.d.ts +0 -195
  239. package/spic.contractor_pb.js +0 -1476
  240. package/spic.contractor_pb_service.d.ts +0 -139
  241. package/spic.contractor_pb_service.js +0 -221
  242. package/spic.history_pb.d.ts +0 -142
  243. package/spic.history_pb.js +0 -1130
  244. package/spic.history_pb_service.d.ts +0 -63
  245. package/spic.history_pb_service.js +0 -61
  246. package/spic.open_request_pb.d.ts +0 -237
  247. package/spic.open_request_pb.js +0 -1784
  248. package/spic.open_request_pb_service.d.ts +0 -101
  249. package/spic.open_request_pb_service.js +0 -141
@@ -1,1997 +0,0 @@
1
- // source: auth.firmware.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 platform_pagination_pb = require('./platform.pagination_pb.js');
25
- goog.object.extend(proto, platform_pagination_pb);
26
- var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
- goog.object.extend(proto, google_api_annotations_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
- goog.exportSymbol('proto.Auth.FirmwareProto', null, global);
31
- goog.exportSymbol('proto.Auth.FirmwareProto.CreateRequest', null, global);
32
- goog.exportSymbol('proto.Auth.FirmwareProto.FirmwareFilters', null, global);
33
- goog.exportSymbol('proto.Auth.FirmwareProto.RetrieveRequest', null, global);
34
- goog.exportSymbol('proto.Auth.FirmwareProto.SearchReply', null, global);
35
- goog.exportSymbol('proto.Auth.FirmwareProto.SearchRequest', null, global);
36
- goog.exportSymbol('proto.Auth.FirmwareProto.UpdateRequest', null, global);
37
- /**
38
- * Generated by JsPbCodeGenerator.
39
- * @param {Array=} opt_data Optional initial data array, typically from a
40
- * server response, or constructed directly in Javascript. The array is used
41
- * in place and becomes part of the constructed object. It is not cloned.
42
- * If no data is provided, the constructed object will be empty, but still
43
- * valid.
44
- * @extends {jspb.Message}
45
- * @constructor
46
- */
47
- proto.Auth.FirmwareProto = function(opt_data) {
48
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.FirmwareProto.repeatedFields_, null);
49
- };
50
- goog.inherits(proto.Auth.FirmwareProto, jspb.Message);
51
- if (goog.DEBUG && !COMPILED) {
52
- /**
53
- * @public
54
- * @override
55
- */
56
- proto.Auth.FirmwareProto.displayName = 'proto.Auth.FirmwareProto';
57
- }
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.Auth.FirmwareProto.CreateRequest = function(opt_data) {
69
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.FirmwareProto.CreateRequest.repeatedFields_, null);
70
- };
71
- goog.inherits(proto.Auth.FirmwareProto.CreateRequest, jspb.Message);
72
- if (goog.DEBUG && !COMPILED) {
73
- /**
74
- * @public
75
- * @override
76
- */
77
- proto.Auth.FirmwareProto.CreateRequest.displayName = 'proto.Auth.FirmwareProto.CreateRequest';
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.Auth.FirmwareProto.RetrieveRequest = function(opt_data) {
90
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
91
- };
92
- goog.inherits(proto.Auth.FirmwareProto.RetrieveRequest, jspb.Message);
93
- if (goog.DEBUG && !COMPILED) {
94
- /**
95
- * @public
96
- * @override
97
- */
98
- proto.Auth.FirmwareProto.RetrieveRequest.displayName = 'proto.Auth.FirmwareProto.RetrieveRequest';
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.Auth.FirmwareProto.UpdateRequest = function(opt_data) {
111
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.FirmwareProto.UpdateRequest.repeatedFields_, null);
112
- };
113
- goog.inherits(proto.Auth.FirmwareProto.UpdateRequest, jspb.Message);
114
- if (goog.DEBUG && !COMPILED) {
115
- /**
116
- * @public
117
- * @override
118
- */
119
- proto.Auth.FirmwareProto.UpdateRequest.displayName = 'proto.Auth.FirmwareProto.UpdateRequest';
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.Auth.FirmwareProto.SearchRequest = function(opt_data) {
132
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
- };
134
- goog.inherits(proto.Auth.FirmwareProto.SearchRequest, jspb.Message);
135
- if (goog.DEBUG && !COMPILED) {
136
- /**
137
- * @public
138
- * @override
139
- */
140
- proto.Auth.FirmwareProto.SearchRequest.displayName = 'proto.Auth.FirmwareProto.SearchRequest';
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.Auth.FirmwareProto.SearchReply = function(opt_data) {
153
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.FirmwareProto.SearchReply.repeatedFields_, null);
154
- };
155
- goog.inherits(proto.Auth.FirmwareProto.SearchReply, jspb.Message);
156
- if (goog.DEBUG && !COMPILED) {
157
- /**
158
- * @public
159
- * @override
160
- */
161
- proto.Auth.FirmwareProto.SearchReply.displayName = 'proto.Auth.FirmwareProto.SearchReply';
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.Auth.FirmwareProto.FirmwareFilters = function(opt_data) {
174
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
175
- };
176
- goog.inherits(proto.Auth.FirmwareProto.FirmwareFilters, jspb.Message);
177
- if (goog.DEBUG && !COMPILED) {
178
- /**
179
- * @public
180
- * @override
181
- */
182
- proto.Auth.FirmwareProto.FirmwareFilters.displayName = 'proto.Auth.FirmwareProto.FirmwareFilters';
183
- }
184
-
185
- /**
186
- * List of repeated fields within this message type.
187
- * @private {!Array<number>}
188
- * @const
189
- */
190
- proto.Auth.FirmwareProto.repeatedFields_ = [7,10];
191
-
192
-
193
-
194
- if (jspb.Message.GENERATE_TO_OBJECT) {
195
- /**
196
- * Creates an object representation of this proto.
197
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
198
- * Optional fields that are not set will be set to undefined.
199
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
200
- * For the list of reserved names please see:
201
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
202
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
203
- * JSPB instance for transitional soy proto support:
204
- * http://goto/soy-param-migration
205
- * @return {!Object}
206
- */
207
- proto.Auth.FirmwareProto.prototype.toObject = function(opt_includeInstance) {
208
- return proto.Auth.FirmwareProto.toObject(opt_includeInstance, this);
209
- };
210
-
211
-
212
- /**
213
- * Static version of the {@see toObject} method.
214
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
215
- * the JSPB instance for transitional soy proto support:
216
- * http://goto/soy-param-migration
217
- * @param {!proto.Auth.FirmwareProto} msg The msg instance to transform.
218
- * @return {!Object}
219
- * @suppress {unusedLocalVariables} f is only used for nested messages
220
- */
221
- proto.Auth.FirmwareProto.toObject = function(includeInstance, msg) {
222
- var f, obj = {
223
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
224
- crc: jspb.Message.getFieldWithDefault(msg, 2, ""),
225
- version: jspb.Message.getFieldWithDefault(msg, 3, ""),
226
- fileSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
227
- link: jspb.Message.getFieldWithDefault(msg, 5, ""),
228
- enabled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
229
- uidsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
230
- createdDate: (f = msg.getCreatedDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
231
- updatedDate: (f = msg.getUpdatedDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
232
- fromCrcsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f
233
- };
234
-
235
- if (includeInstance) {
236
- obj.$jspbMessageInstance = msg;
237
- }
238
- return obj;
239
- };
240
- }
241
-
242
-
243
- /**
244
- * Deserializes binary data (in protobuf wire format).
245
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
246
- * @return {!proto.Auth.FirmwareProto}
247
- */
248
- proto.Auth.FirmwareProto.deserializeBinary = function(bytes) {
249
- var reader = new jspb.BinaryReader(bytes);
250
- var msg = new proto.Auth.FirmwareProto;
251
- return proto.Auth.FirmwareProto.deserializeBinaryFromReader(msg, reader);
252
- };
253
-
254
-
255
- /**
256
- * Deserializes binary data (in protobuf wire format) from the
257
- * given reader into the given message object.
258
- * @param {!proto.Auth.FirmwareProto} msg The message object to deserialize into.
259
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
260
- * @return {!proto.Auth.FirmwareProto}
261
- */
262
- proto.Auth.FirmwareProto.deserializeBinaryFromReader = function(msg, reader) {
263
- while (reader.nextField()) {
264
- if (reader.isEndGroup()) {
265
- break;
266
- }
267
- var field = reader.getFieldNumber();
268
- switch (field) {
269
- case 1:
270
- var value = /** @type {number} */ (reader.readInt64());
271
- msg.setId(value);
272
- break;
273
- case 2:
274
- var value = /** @type {string} */ (reader.readString());
275
- msg.setCrc(value);
276
- break;
277
- case 3:
278
- var value = /** @type {string} */ (reader.readString());
279
- msg.setVersion(value);
280
- break;
281
- case 4:
282
- var value = /** @type {number} */ (reader.readInt64());
283
- msg.setFileSize(value);
284
- break;
285
- case 5:
286
- var value = /** @type {string} */ (reader.readString());
287
- msg.setLink(value);
288
- break;
289
- case 6:
290
- var value = /** @type {boolean} */ (reader.readBool());
291
- msg.setEnabled(value);
292
- break;
293
- case 7:
294
- var value = /** @type {string} */ (reader.readString());
295
- msg.addUids(value);
296
- break;
297
- case 8:
298
- var value = new google_protobuf_timestamp_pb.Timestamp;
299
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
300
- msg.setCreatedDate(value);
301
- break;
302
- case 9:
303
- var value = new google_protobuf_timestamp_pb.Timestamp;
304
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
305
- msg.setUpdatedDate(value);
306
- break;
307
- case 10:
308
- var value = /** @type {string} */ (reader.readString());
309
- msg.addFromCrcs(value);
310
- break;
311
- default:
312
- reader.skipField();
313
- break;
314
- }
315
- }
316
- return msg;
317
- };
318
-
319
-
320
- /**
321
- * Serializes the message to binary data (in protobuf wire format).
322
- * @return {!Uint8Array}
323
- */
324
- proto.Auth.FirmwareProto.prototype.serializeBinary = function() {
325
- var writer = new jspb.BinaryWriter();
326
- proto.Auth.FirmwareProto.serializeBinaryToWriter(this, writer);
327
- return writer.getResultBuffer();
328
- };
329
-
330
-
331
- /**
332
- * Serializes the given message to binary data (in protobuf wire
333
- * format), writing to the given BinaryWriter.
334
- * @param {!proto.Auth.FirmwareProto} message
335
- * @param {!jspb.BinaryWriter} writer
336
- * @suppress {unusedLocalVariables} f is only used for nested messages
337
- */
338
- proto.Auth.FirmwareProto.serializeBinaryToWriter = function(message, writer) {
339
- var f = undefined;
340
- f = message.getId();
341
- if (f !== 0) {
342
- writer.writeInt64(
343
- 1,
344
- f
345
- );
346
- }
347
- f = message.getCrc();
348
- if (f.length > 0) {
349
- writer.writeString(
350
- 2,
351
- f
352
- );
353
- }
354
- f = message.getVersion();
355
- if (f.length > 0) {
356
- writer.writeString(
357
- 3,
358
- f
359
- );
360
- }
361
- f = message.getFileSize();
362
- if (f !== 0) {
363
- writer.writeInt64(
364
- 4,
365
- f
366
- );
367
- }
368
- f = message.getLink();
369
- if (f.length > 0) {
370
- writer.writeString(
371
- 5,
372
- f
373
- );
374
- }
375
- f = message.getEnabled();
376
- if (f) {
377
- writer.writeBool(
378
- 6,
379
- f
380
- );
381
- }
382
- f = message.getUidsList();
383
- if (f.length > 0) {
384
- writer.writeRepeatedString(
385
- 7,
386
- f
387
- );
388
- }
389
- f = message.getCreatedDate();
390
- if (f != null) {
391
- writer.writeMessage(
392
- 8,
393
- f,
394
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
395
- );
396
- }
397
- f = message.getUpdatedDate();
398
- if (f != null) {
399
- writer.writeMessage(
400
- 9,
401
- f,
402
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
403
- );
404
- }
405
- f = message.getFromCrcsList();
406
- if (f.length > 0) {
407
- writer.writeRepeatedString(
408
- 10,
409
- f
410
- );
411
- }
412
- };
413
-
414
-
415
-
416
- /**
417
- * List of repeated fields within this message type.
418
- * @private {!Array<number>}
419
- * @const
420
- */
421
- proto.Auth.FirmwareProto.CreateRequest.repeatedFields_ = [4,5];
422
-
423
-
424
-
425
- if (jspb.Message.GENERATE_TO_OBJECT) {
426
- /**
427
- * Creates an object representation of this proto.
428
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
429
- * Optional fields that are not set will be set to undefined.
430
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
431
- * For the list of reserved names please see:
432
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
433
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
434
- * JSPB instance for transitional soy proto support:
435
- * http://goto/soy-param-migration
436
- * @return {!Object}
437
- */
438
- proto.Auth.FirmwareProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
439
- return proto.Auth.FirmwareProto.CreateRequest.toObject(opt_includeInstance, this);
440
- };
441
-
442
-
443
- /**
444
- * Static version of the {@see toObject} method.
445
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
446
- * the JSPB instance for transitional soy proto support:
447
- * http://goto/soy-param-migration
448
- * @param {!proto.Auth.FirmwareProto.CreateRequest} msg The msg instance to transform.
449
- * @return {!Object}
450
- * @suppress {unusedLocalVariables} f is only used for nested messages
451
- */
452
- proto.Auth.FirmwareProto.CreateRequest.toObject = function(includeInstance, msg) {
453
- var f, obj = {
454
- version: jspb.Message.getFieldWithDefault(msg, 1, ""),
455
- file: msg.getFile_asB64(),
456
- enabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
457
- uidsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
458
- fromCrcsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
459
- };
460
-
461
- if (includeInstance) {
462
- obj.$jspbMessageInstance = msg;
463
- }
464
- return obj;
465
- };
466
- }
467
-
468
-
469
- /**
470
- * Deserializes binary data (in protobuf wire format).
471
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
472
- * @return {!proto.Auth.FirmwareProto.CreateRequest}
473
- */
474
- proto.Auth.FirmwareProto.CreateRequest.deserializeBinary = function(bytes) {
475
- var reader = new jspb.BinaryReader(bytes);
476
- var msg = new proto.Auth.FirmwareProto.CreateRequest;
477
- return proto.Auth.FirmwareProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
478
- };
479
-
480
-
481
- /**
482
- * Deserializes binary data (in protobuf wire format) from the
483
- * given reader into the given message object.
484
- * @param {!proto.Auth.FirmwareProto.CreateRequest} msg The message object to deserialize into.
485
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
486
- * @return {!proto.Auth.FirmwareProto.CreateRequest}
487
- */
488
- proto.Auth.FirmwareProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
489
- while (reader.nextField()) {
490
- if (reader.isEndGroup()) {
491
- break;
492
- }
493
- var field = reader.getFieldNumber();
494
- switch (field) {
495
- case 1:
496
- var value = /** @type {string} */ (reader.readString());
497
- msg.setVersion(value);
498
- break;
499
- case 2:
500
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
501
- msg.setFile(value);
502
- break;
503
- case 3:
504
- var value = /** @type {boolean} */ (reader.readBool());
505
- msg.setEnabled(value);
506
- break;
507
- case 4:
508
- var value = /** @type {string} */ (reader.readString());
509
- msg.addUids(value);
510
- break;
511
- case 5:
512
- var value = /** @type {string} */ (reader.readString());
513
- msg.addFromCrcs(value);
514
- break;
515
- default:
516
- reader.skipField();
517
- break;
518
- }
519
- }
520
- return msg;
521
- };
522
-
523
-
524
- /**
525
- * Serializes the message to binary data (in protobuf wire format).
526
- * @return {!Uint8Array}
527
- */
528
- proto.Auth.FirmwareProto.CreateRequest.prototype.serializeBinary = function() {
529
- var writer = new jspb.BinaryWriter();
530
- proto.Auth.FirmwareProto.CreateRequest.serializeBinaryToWriter(this, writer);
531
- return writer.getResultBuffer();
532
- };
533
-
534
-
535
- /**
536
- * Serializes the given message to binary data (in protobuf wire
537
- * format), writing to the given BinaryWriter.
538
- * @param {!proto.Auth.FirmwareProto.CreateRequest} message
539
- * @param {!jspb.BinaryWriter} writer
540
- * @suppress {unusedLocalVariables} f is only used for nested messages
541
- */
542
- proto.Auth.FirmwareProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
543
- var f = undefined;
544
- f = message.getVersion();
545
- if (f.length > 0) {
546
- writer.writeString(
547
- 1,
548
- f
549
- );
550
- }
551
- f = message.getFile_asU8();
552
- if (f.length > 0) {
553
- writer.writeBytes(
554
- 2,
555
- f
556
- );
557
- }
558
- f = message.getEnabled();
559
- if (f) {
560
- writer.writeBool(
561
- 3,
562
- f
563
- );
564
- }
565
- f = message.getUidsList();
566
- if (f.length > 0) {
567
- writer.writeRepeatedString(
568
- 4,
569
- f
570
- );
571
- }
572
- f = message.getFromCrcsList();
573
- if (f.length > 0) {
574
- writer.writeRepeatedString(
575
- 5,
576
- f
577
- );
578
- }
579
- };
580
-
581
-
582
- /**
583
- * optional string version = 1;
584
- * @return {string}
585
- */
586
- proto.Auth.FirmwareProto.CreateRequest.prototype.getVersion = function() {
587
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
588
- };
589
-
590
-
591
- /**
592
- * @param {string} value
593
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
594
- */
595
- proto.Auth.FirmwareProto.CreateRequest.prototype.setVersion = function(value) {
596
- return jspb.Message.setProto3StringField(this, 1, value);
597
- };
598
-
599
-
600
- /**
601
- * optional bytes file = 2;
602
- * @return {!(string|Uint8Array)}
603
- */
604
- proto.Auth.FirmwareProto.CreateRequest.prototype.getFile = function() {
605
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
606
- };
607
-
608
-
609
- /**
610
- * optional bytes file = 2;
611
- * This is a type-conversion wrapper around `getFile()`
612
- * @return {string}
613
- */
614
- proto.Auth.FirmwareProto.CreateRequest.prototype.getFile_asB64 = function() {
615
- return /** @type {string} */ (jspb.Message.bytesAsB64(
616
- this.getFile()));
617
- };
618
-
619
-
620
- /**
621
- * optional bytes file = 2;
622
- * Note that Uint8Array is not supported on all browsers.
623
- * @see http://caniuse.com/Uint8Array
624
- * This is a type-conversion wrapper around `getFile()`
625
- * @return {!Uint8Array}
626
- */
627
- proto.Auth.FirmwareProto.CreateRequest.prototype.getFile_asU8 = function() {
628
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
629
- this.getFile()));
630
- };
631
-
632
-
633
- /**
634
- * @param {!(string|Uint8Array)} value
635
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
636
- */
637
- proto.Auth.FirmwareProto.CreateRequest.prototype.setFile = function(value) {
638
- return jspb.Message.setProto3BytesField(this, 2, value);
639
- };
640
-
641
-
642
- /**
643
- * optional bool enabled = 3;
644
- * @return {boolean}
645
- */
646
- proto.Auth.FirmwareProto.CreateRequest.prototype.getEnabled = function() {
647
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
648
- };
649
-
650
-
651
- /**
652
- * @param {boolean} value
653
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
654
- */
655
- proto.Auth.FirmwareProto.CreateRequest.prototype.setEnabled = function(value) {
656
- return jspb.Message.setProto3BooleanField(this, 3, value);
657
- };
658
-
659
-
660
- /**
661
- * repeated string uids = 4;
662
- * @return {!Array<string>}
663
- */
664
- proto.Auth.FirmwareProto.CreateRequest.prototype.getUidsList = function() {
665
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
666
- };
667
-
668
-
669
- /**
670
- * @param {!Array<string>} value
671
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
672
- */
673
- proto.Auth.FirmwareProto.CreateRequest.prototype.setUidsList = function(value) {
674
- return jspb.Message.setField(this, 4, value || []);
675
- };
676
-
677
-
678
- /**
679
- * @param {string} value
680
- * @param {number=} opt_index
681
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
682
- */
683
- proto.Auth.FirmwareProto.CreateRequest.prototype.addUids = function(value, opt_index) {
684
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
685
- };
686
-
687
-
688
- /**
689
- * Clears the list making it empty but non-null.
690
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
691
- */
692
- proto.Auth.FirmwareProto.CreateRequest.prototype.clearUidsList = function() {
693
- return this.setUidsList([]);
694
- };
695
-
696
-
697
- /**
698
- * repeated string from_crcs = 5;
699
- * @return {!Array<string>}
700
- */
701
- proto.Auth.FirmwareProto.CreateRequest.prototype.getFromCrcsList = function() {
702
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
703
- };
704
-
705
-
706
- /**
707
- * @param {!Array<string>} value
708
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
709
- */
710
- proto.Auth.FirmwareProto.CreateRequest.prototype.setFromCrcsList = function(value) {
711
- return jspb.Message.setField(this, 5, value || []);
712
- };
713
-
714
-
715
- /**
716
- * @param {string} value
717
- * @param {number=} opt_index
718
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
719
- */
720
- proto.Auth.FirmwareProto.CreateRequest.prototype.addFromCrcs = function(value, opt_index) {
721
- return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
722
- };
723
-
724
-
725
- /**
726
- * Clears the list making it empty but non-null.
727
- * @return {!proto.Auth.FirmwareProto.CreateRequest} returns this
728
- */
729
- proto.Auth.FirmwareProto.CreateRequest.prototype.clearFromCrcsList = function() {
730
- return this.setFromCrcsList([]);
731
- };
732
-
733
-
734
-
735
-
736
-
737
- if (jspb.Message.GENERATE_TO_OBJECT) {
738
- /**
739
- * Creates an object representation of this proto.
740
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
741
- * Optional fields that are not set will be set to undefined.
742
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
743
- * For the list of reserved names please see:
744
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
745
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
746
- * JSPB instance for transitional soy proto support:
747
- * http://goto/soy-param-migration
748
- * @return {!Object}
749
- */
750
- proto.Auth.FirmwareProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
751
- return proto.Auth.FirmwareProto.RetrieveRequest.toObject(opt_includeInstance, this);
752
- };
753
-
754
-
755
- /**
756
- * Static version of the {@see toObject} method.
757
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
758
- * the JSPB instance for transitional soy proto support:
759
- * http://goto/soy-param-migration
760
- * @param {!proto.Auth.FirmwareProto.RetrieveRequest} msg The msg instance to transform.
761
- * @return {!Object}
762
- * @suppress {unusedLocalVariables} f is only used for nested messages
763
- */
764
- proto.Auth.FirmwareProto.RetrieveRequest.toObject = function(includeInstance, msg) {
765
- var f, obj = {
766
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
767
- };
768
-
769
- if (includeInstance) {
770
- obj.$jspbMessageInstance = msg;
771
- }
772
- return obj;
773
- };
774
- }
775
-
776
-
777
- /**
778
- * Deserializes binary data (in protobuf wire format).
779
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
780
- * @return {!proto.Auth.FirmwareProto.RetrieveRequest}
781
- */
782
- proto.Auth.FirmwareProto.RetrieveRequest.deserializeBinary = function(bytes) {
783
- var reader = new jspb.BinaryReader(bytes);
784
- var msg = new proto.Auth.FirmwareProto.RetrieveRequest;
785
- return proto.Auth.FirmwareProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
786
- };
787
-
788
-
789
- /**
790
- * Deserializes binary data (in protobuf wire format) from the
791
- * given reader into the given message object.
792
- * @param {!proto.Auth.FirmwareProto.RetrieveRequest} msg The message object to deserialize into.
793
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
794
- * @return {!proto.Auth.FirmwareProto.RetrieveRequest}
795
- */
796
- proto.Auth.FirmwareProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
797
- while (reader.nextField()) {
798
- if (reader.isEndGroup()) {
799
- break;
800
- }
801
- var field = reader.getFieldNumber();
802
- switch (field) {
803
- case 1:
804
- var value = /** @type {number} */ (reader.readInt64());
805
- msg.setId(value);
806
- break;
807
- default:
808
- reader.skipField();
809
- break;
810
- }
811
- }
812
- return msg;
813
- };
814
-
815
-
816
- /**
817
- * Serializes the message to binary data (in protobuf wire format).
818
- * @return {!Uint8Array}
819
- */
820
- proto.Auth.FirmwareProto.RetrieveRequest.prototype.serializeBinary = function() {
821
- var writer = new jspb.BinaryWriter();
822
- proto.Auth.FirmwareProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
823
- return writer.getResultBuffer();
824
- };
825
-
826
-
827
- /**
828
- * Serializes the given message to binary data (in protobuf wire
829
- * format), writing to the given BinaryWriter.
830
- * @param {!proto.Auth.FirmwareProto.RetrieveRequest} message
831
- * @param {!jspb.BinaryWriter} writer
832
- * @suppress {unusedLocalVariables} f is only used for nested messages
833
- */
834
- proto.Auth.FirmwareProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
835
- var f = undefined;
836
- f = message.getId();
837
- if (f !== 0) {
838
- writer.writeInt64(
839
- 1,
840
- f
841
- );
842
- }
843
- };
844
-
845
-
846
- /**
847
- * optional int64 id = 1;
848
- * @return {number}
849
- */
850
- proto.Auth.FirmwareProto.RetrieveRequest.prototype.getId = function() {
851
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
852
- };
853
-
854
-
855
- /**
856
- * @param {number} value
857
- * @return {!proto.Auth.FirmwareProto.RetrieveRequest} returns this
858
- */
859
- proto.Auth.FirmwareProto.RetrieveRequest.prototype.setId = function(value) {
860
- return jspb.Message.setProto3IntField(this, 1, value);
861
- };
862
-
863
-
864
-
865
- /**
866
- * List of repeated fields within this message type.
867
- * @private {!Array<number>}
868
- * @const
869
- */
870
- proto.Auth.FirmwareProto.UpdateRequest.repeatedFields_ = [3,4];
871
-
872
-
873
-
874
- if (jspb.Message.GENERATE_TO_OBJECT) {
875
- /**
876
- * Creates an object representation of this proto.
877
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
878
- * Optional fields that are not set will be set to undefined.
879
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
880
- * For the list of reserved names please see:
881
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
882
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
883
- * JSPB instance for transitional soy proto support:
884
- * http://goto/soy-param-migration
885
- * @return {!Object}
886
- */
887
- proto.Auth.FirmwareProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
888
- return proto.Auth.FirmwareProto.UpdateRequest.toObject(opt_includeInstance, this);
889
- };
890
-
891
-
892
- /**
893
- * Static version of the {@see toObject} method.
894
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
895
- * the JSPB instance for transitional soy proto support:
896
- * http://goto/soy-param-migration
897
- * @param {!proto.Auth.FirmwareProto.UpdateRequest} msg The msg instance to transform.
898
- * @return {!Object}
899
- * @suppress {unusedLocalVariables} f is only used for nested messages
900
- */
901
- proto.Auth.FirmwareProto.UpdateRequest.toObject = function(includeInstance, msg) {
902
- var f, obj = {
903
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
904
- enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
905
- uidsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
906
- fromCrcsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
907
- };
908
-
909
- if (includeInstance) {
910
- obj.$jspbMessageInstance = msg;
911
- }
912
- return obj;
913
- };
914
- }
915
-
916
-
917
- /**
918
- * Deserializes binary data (in protobuf wire format).
919
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
920
- * @return {!proto.Auth.FirmwareProto.UpdateRequest}
921
- */
922
- proto.Auth.FirmwareProto.UpdateRequest.deserializeBinary = function(bytes) {
923
- var reader = new jspb.BinaryReader(bytes);
924
- var msg = new proto.Auth.FirmwareProto.UpdateRequest;
925
- return proto.Auth.FirmwareProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
926
- };
927
-
928
-
929
- /**
930
- * Deserializes binary data (in protobuf wire format) from the
931
- * given reader into the given message object.
932
- * @param {!proto.Auth.FirmwareProto.UpdateRequest} msg The message object to deserialize into.
933
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
934
- * @return {!proto.Auth.FirmwareProto.UpdateRequest}
935
- */
936
- proto.Auth.FirmwareProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
937
- while (reader.nextField()) {
938
- if (reader.isEndGroup()) {
939
- break;
940
- }
941
- var field = reader.getFieldNumber();
942
- switch (field) {
943
- case 1:
944
- var value = /** @type {number} */ (reader.readInt64());
945
- msg.setId(value);
946
- break;
947
- case 2:
948
- var value = /** @type {boolean} */ (reader.readBool());
949
- msg.setEnabled(value);
950
- break;
951
- case 3:
952
- var value = /** @type {string} */ (reader.readString());
953
- msg.addUids(value);
954
- break;
955
- case 4:
956
- var value = /** @type {string} */ (reader.readString());
957
- msg.addFromCrcs(value);
958
- break;
959
- default:
960
- reader.skipField();
961
- break;
962
- }
963
- }
964
- return msg;
965
- };
966
-
967
-
968
- /**
969
- * Serializes the message to binary data (in protobuf wire format).
970
- * @return {!Uint8Array}
971
- */
972
- proto.Auth.FirmwareProto.UpdateRequest.prototype.serializeBinary = function() {
973
- var writer = new jspb.BinaryWriter();
974
- proto.Auth.FirmwareProto.UpdateRequest.serializeBinaryToWriter(this, writer);
975
- return writer.getResultBuffer();
976
- };
977
-
978
-
979
- /**
980
- * Serializes the given message to binary data (in protobuf wire
981
- * format), writing to the given BinaryWriter.
982
- * @param {!proto.Auth.FirmwareProto.UpdateRequest} message
983
- * @param {!jspb.BinaryWriter} writer
984
- * @suppress {unusedLocalVariables} f is only used for nested messages
985
- */
986
- proto.Auth.FirmwareProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
987
- var f = undefined;
988
- f = message.getId();
989
- if (f !== 0) {
990
- writer.writeInt64(
991
- 1,
992
- f
993
- );
994
- }
995
- f = message.getEnabled();
996
- if (f) {
997
- writer.writeBool(
998
- 2,
999
- f
1000
- );
1001
- }
1002
- f = message.getUidsList();
1003
- if (f.length > 0) {
1004
- writer.writeRepeatedString(
1005
- 3,
1006
- f
1007
- );
1008
- }
1009
- f = message.getFromCrcsList();
1010
- if (f.length > 0) {
1011
- writer.writeRepeatedString(
1012
- 4,
1013
- f
1014
- );
1015
- }
1016
- };
1017
-
1018
-
1019
- /**
1020
- * optional int64 id = 1;
1021
- * @return {number}
1022
- */
1023
- proto.Auth.FirmwareProto.UpdateRequest.prototype.getId = function() {
1024
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1025
- };
1026
-
1027
-
1028
- /**
1029
- * @param {number} value
1030
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1031
- */
1032
- proto.Auth.FirmwareProto.UpdateRequest.prototype.setId = function(value) {
1033
- return jspb.Message.setProto3IntField(this, 1, value);
1034
- };
1035
-
1036
-
1037
- /**
1038
- * optional bool enabled = 2;
1039
- * @return {boolean}
1040
- */
1041
- proto.Auth.FirmwareProto.UpdateRequest.prototype.getEnabled = function() {
1042
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1043
- };
1044
-
1045
-
1046
- /**
1047
- * @param {boolean} value
1048
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1049
- */
1050
- proto.Auth.FirmwareProto.UpdateRequest.prototype.setEnabled = function(value) {
1051
- return jspb.Message.setProto3BooleanField(this, 2, value);
1052
- };
1053
-
1054
-
1055
- /**
1056
- * repeated string uids = 3;
1057
- * @return {!Array<string>}
1058
- */
1059
- proto.Auth.FirmwareProto.UpdateRequest.prototype.getUidsList = function() {
1060
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1061
- };
1062
-
1063
-
1064
- /**
1065
- * @param {!Array<string>} value
1066
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1067
- */
1068
- proto.Auth.FirmwareProto.UpdateRequest.prototype.setUidsList = function(value) {
1069
- return jspb.Message.setField(this, 3, value || []);
1070
- };
1071
-
1072
-
1073
- /**
1074
- * @param {string} value
1075
- * @param {number=} opt_index
1076
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1077
- */
1078
- proto.Auth.FirmwareProto.UpdateRequest.prototype.addUids = function(value, opt_index) {
1079
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1080
- };
1081
-
1082
-
1083
- /**
1084
- * Clears the list making it empty but non-null.
1085
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1086
- */
1087
- proto.Auth.FirmwareProto.UpdateRequest.prototype.clearUidsList = function() {
1088
- return this.setUidsList([]);
1089
- };
1090
-
1091
-
1092
- /**
1093
- * repeated string from_crcs = 4;
1094
- * @return {!Array<string>}
1095
- */
1096
- proto.Auth.FirmwareProto.UpdateRequest.prototype.getFromCrcsList = function() {
1097
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1098
- };
1099
-
1100
-
1101
- /**
1102
- * @param {!Array<string>} value
1103
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1104
- */
1105
- proto.Auth.FirmwareProto.UpdateRequest.prototype.setFromCrcsList = function(value) {
1106
- return jspb.Message.setField(this, 4, value || []);
1107
- };
1108
-
1109
-
1110
- /**
1111
- * @param {string} value
1112
- * @param {number=} opt_index
1113
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1114
- */
1115
- proto.Auth.FirmwareProto.UpdateRequest.prototype.addFromCrcs = function(value, opt_index) {
1116
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1117
- };
1118
-
1119
-
1120
- /**
1121
- * Clears the list making it empty but non-null.
1122
- * @return {!proto.Auth.FirmwareProto.UpdateRequest} returns this
1123
- */
1124
- proto.Auth.FirmwareProto.UpdateRequest.prototype.clearFromCrcsList = function() {
1125
- return this.setFromCrcsList([]);
1126
- };
1127
-
1128
-
1129
-
1130
-
1131
-
1132
- if (jspb.Message.GENERATE_TO_OBJECT) {
1133
- /**
1134
- * Creates an object representation of this proto.
1135
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1136
- * Optional fields that are not set will be set to undefined.
1137
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1138
- * For the list of reserved names please see:
1139
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1140
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1141
- * JSPB instance for transitional soy proto support:
1142
- * http://goto/soy-param-migration
1143
- * @return {!Object}
1144
- */
1145
- proto.Auth.FirmwareProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
1146
- return proto.Auth.FirmwareProto.SearchRequest.toObject(opt_includeInstance, this);
1147
- };
1148
-
1149
-
1150
- /**
1151
- * Static version of the {@see toObject} method.
1152
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1153
- * the JSPB instance for transitional soy proto support:
1154
- * http://goto/soy-param-migration
1155
- * @param {!proto.Auth.FirmwareProto.SearchRequest} msg The msg instance to transform.
1156
- * @return {!Object}
1157
- * @suppress {unusedLocalVariables} f is only used for nested messages
1158
- */
1159
- proto.Auth.FirmwareProto.SearchRequest.toObject = function(includeInstance, msg) {
1160
- var f, obj = {
1161
- filters: (f = msg.getFilters()) && proto.Auth.FirmwareProto.FirmwareFilters.toObject(includeInstance, f),
1162
- page: jspb.Message.getFieldWithDefault(msg, 2, 0),
1163
- count: jspb.Message.getFieldWithDefault(msg, 3, 0)
1164
- };
1165
-
1166
- if (includeInstance) {
1167
- obj.$jspbMessageInstance = msg;
1168
- }
1169
- return obj;
1170
- };
1171
- }
1172
-
1173
-
1174
- /**
1175
- * Deserializes binary data (in protobuf wire format).
1176
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1177
- * @return {!proto.Auth.FirmwareProto.SearchRequest}
1178
- */
1179
- proto.Auth.FirmwareProto.SearchRequest.deserializeBinary = function(bytes) {
1180
- var reader = new jspb.BinaryReader(bytes);
1181
- var msg = new proto.Auth.FirmwareProto.SearchRequest;
1182
- return proto.Auth.FirmwareProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
1183
- };
1184
-
1185
-
1186
- /**
1187
- * Deserializes binary data (in protobuf wire format) from the
1188
- * given reader into the given message object.
1189
- * @param {!proto.Auth.FirmwareProto.SearchRequest} msg The message object to deserialize into.
1190
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1191
- * @return {!proto.Auth.FirmwareProto.SearchRequest}
1192
- */
1193
- proto.Auth.FirmwareProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1194
- while (reader.nextField()) {
1195
- if (reader.isEndGroup()) {
1196
- break;
1197
- }
1198
- var field = reader.getFieldNumber();
1199
- switch (field) {
1200
- case 1:
1201
- var value = new proto.Auth.FirmwareProto.FirmwareFilters;
1202
- reader.readMessage(value,proto.Auth.FirmwareProto.FirmwareFilters.deserializeBinaryFromReader);
1203
- msg.setFilters(value);
1204
- break;
1205
- case 2:
1206
- var value = /** @type {number} */ (reader.readInt32());
1207
- msg.setPage(value);
1208
- break;
1209
- case 3:
1210
- var value = /** @type {number} */ (reader.readInt32());
1211
- msg.setCount(value);
1212
- break;
1213
- default:
1214
- reader.skipField();
1215
- break;
1216
- }
1217
- }
1218
- return msg;
1219
- };
1220
-
1221
-
1222
- /**
1223
- * Serializes the message to binary data (in protobuf wire format).
1224
- * @return {!Uint8Array}
1225
- */
1226
- proto.Auth.FirmwareProto.SearchRequest.prototype.serializeBinary = function() {
1227
- var writer = new jspb.BinaryWriter();
1228
- proto.Auth.FirmwareProto.SearchRequest.serializeBinaryToWriter(this, writer);
1229
- return writer.getResultBuffer();
1230
- };
1231
-
1232
-
1233
- /**
1234
- * Serializes the given message to binary data (in protobuf wire
1235
- * format), writing to the given BinaryWriter.
1236
- * @param {!proto.Auth.FirmwareProto.SearchRequest} message
1237
- * @param {!jspb.BinaryWriter} writer
1238
- * @suppress {unusedLocalVariables} f is only used for nested messages
1239
- */
1240
- proto.Auth.FirmwareProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1241
- var f = undefined;
1242
- f = message.getFilters();
1243
- if (f != null) {
1244
- writer.writeMessage(
1245
- 1,
1246
- f,
1247
- proto.Auth.FirmwareProto.FirmwareFilters.serializeBinaryToWriter
1248
- );
1249
- }
1250
- f = message.getPage();
1251
- if (f !== 0) {
1252
- writer.writeInt32(
1253
- 2,
1254
- f
1255
- );
1256
- }
1257
- f = message.getCount();
1258
- if (f !== 0) {
1259
- writer.writeInt32(
1260
- 3,
1261
- f
1262
- );
1263
- }
1264
- };
1265
-
1266
-
1267
- /**
1268
- * optional FirmwareFilters filters = 1;
1269
- * @return {?proto.Auth.FirmwareProto.FirmwareFilters}
1270
- */
1271
- proto.Auth.FirmwareProto.SearchRequest.prototype.getFilters = function() {
1272
- return /** @type{?proto.Auth.FirmwareProto.FirmwareFilters} */ (
1273
- jspb.Message.getWrapperField(this, proto.Auth.FirmwareProto.FirmwareFilters, 1));
1274
- };
1275
-
1276
-
1277
- /**
1278
- * @param {?proto.Auth.FirmwareProto.FirmwareFilters|undefined} value
1279
- * @return {!proto.Auth.FirmwareProto.SearchRequest} returns this
1280
- */
1281
- proto.Auth.FirmwareProto.SearchRequest.prototype.setFilters = function(value) {
1282
- return jspb.Message.setWrapperField(this, 1, value);
1283
- };
1284
-
1285
-
1286
- /**
1287
- * Clears the message field making it undefined.
1288
- * @return {!proto.Auth.FirmwareProto.SearchRequest} returns this
1289
- */
1290
- proto.Auth.FirmwareProto.SearchRequest.prototype.clearFilters = function() {
1291
- return this.setFilters(undefined);
1292
- };
1293
-
1294
-
1295
- /**
1296
- * Returns whether this field is set.
1297
- * @return {boolean}
1298
- */
1299
- proto.Auth.FirmwareProto.SearchRequest.prototype.hasFilters = function() {
1300
- return jspb.Message.getField(this, 1) != null;
1301
- };
1302
-
1303
-
1304
- /**
1305
- * optional int32 page = 2;
1306
- * @return {number}
1307
- */
1308
- proto.Auth.FirmwareProto.SearchRequest.prototype.getPage = function() {
1309
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1310
- };
1311
-
1312
-
1313
- /**
1314
- * @param {number} value
1315
- * @return {!proto.Auth.FirmwareProto.SearchRequest} returns this
1316
- */
1317
- proto.Auth.FirmwareProto.SearchRequest.prototype.setPage = function(value) {
1318
- return jspb.Message.setProto3IntField(this, 2, value);
1319
- };
1320
-
1321
-
1322
- /**
1323
- * optional int32 count = 3;
1324
- * @return {number}
1325
- */
1326
- proto.Auth.FirmwareProto.SearchRequest.prototype.getCount = function() {
1327
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1328
- };
1329
-
1330
-
1331
- /**
1332
- * @param {number} value
1333
- * @return {!proto.Auth.FirmwareProto.SearchRequest} returns this
1334
- */
1335
- proto.Auth.FirmwareProto.SearchRequest.prototype.setCount = function(value) {
1336
- return jspb.Message.setProto3IntField(this, 3, value);
1337
- };
1338
-
1339
-
1340
-
1341
- /**
1342
- * List of repeated fields within this message type.
1343
- * @private {!Array<number>}
1344
- * @const
1345
- */
1346
- proto.Auth.FirmwareProto.SearchReply.repeatedFields_ = [1];
1347
-
1348
-
1349
-
1350
- if (jspb.Message.GENERATE_TO_OBJECT) {
1351
- /**
1352
- * Creates an object representation of this proto.
1353
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1354
- * Optional fields that are not set will be set to undefined.
1355
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1356
- * For the list of reserved names please see:
1357
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1358
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1359
- * JSPB instance for transitional soy proto support:
1360
- * http://goto/soy-param-migration
1361
- * @return {!Object}
1362
- */
1363
- proto.Auth.FirmwareProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
1364
- return proto.Auth.FirmwareProto.SearchReply.toObject(opt_includeInstance, this);
1365
- };
1366
-
1367
-
1368
- /**
1369
- * Static version of the {@see toObject} method.
1370
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1371
- * the JSPB instance for transitional soy proto support:
1372
- * http://goto/soy-param-migration
1373
- * @param {!proto.Auth.FirmwareProto.SearchReply} msg The msg instance to transform.
1374
- * @return {!Object}
1375
- * @suppress {unusedLocalVariables} f is only used for nested messages
1376
- */
1377
- proto.Auth.FirmwareProto.SearchReply.toObject = function(includeInstance, msg) {
1378
- var f, obj = {
1379
- firmwaresList: jspb.Message.toObjectList(msg.getFirmwaresList(),
1380
- proto.Auth.FirmwareProto.toObject, includeInstance),
1381
- pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1382
- };
1383
-
1384
- if (includeInstance) {
1385
- obj.$jspbMessageInstance = msg;
1386
- }
1387
- return obj;
1388
- };
1389
- }
1390
-
1391
-
1392
- /**
1393
- * Deserializes binary data (in protobuf wire format).
1394
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1395
- * @return {!proto.Auth.FirmwareProto.SearchReply}
1396
- */
1397
- proto.Auth.FirmwareProto.SearchReply.deserializeBinary = function(bytes) {
1398
- var reader = new jspb.BinaryReader(bytes);
1399
- var msg = new proto.Auth.FirmwareProto.SearchReply;
1400
- return proto.Auth.FirmwareProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1401
- };
1402
-
1403
-
1404
- /**
1405
- * Deserializes binary data (in protobuf wire format) from the
1406
- * given reader into the given message object.
1407
- * @param {!proto.Auth.FirmwareProto.SearchReply} msg The message object to deserialize into.
1408
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1409
- * @return {!proto.Auth.FirmwareProto.SearchReply}
1410
- */
1411
- proto.Auth.FirmwareProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1412
- while (reader.nextField()) {
1413
- if (reader.isEndGroup()) {
1414
- break;
1415
- }
1416
- var field = reader.getFieldNumber();
1417
- switch (field) {
1418
- case 1:
1419
- var value = new proto.Auth.FirmwareProto;
1420
- reader.readMessage(value,proto.Auth.FirmwareProto.deserializeBinaryFromReader);
1421
- msg.addFirmwares(value);
1422
- break;
1423
- case 2:
1424
- var value = new platform_pagination_pb.PaginationProto;
1425
- reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1426
- msg.setPagination(value);
1427
- break;
1428
- default:
1429
- reader.skipField();
1430
- break;
1431
- }
1432
- }
1433
- return msg;
1434
- };
1435
-
1436
-
1437
- /**
1438
- * Serializes the message to binary data (in protobuf wire format).
1439
- * @return {!Uint8Array}
1440
- */
1441
- proto.Auth.FirmwareProto.SearchReply.prototype.serializeBinary = function() {
1442
- var writer = new jspb.BinaryWriter();
1443
- proto.Auth.FirmwareProto.SearchReply.serializeBinaryToWriter(this, writer);
1444
- return writer.getResultBuffer();
1445
- };
1446
-
1447
-
1448
- /**
1449
- * Serializes the given message to binary data (in protobuf wire
1450
- * format), writing to the given BinaryWriter.
1451
- * @param {!proto.Auth.FirmwareProto.SearchReply} message
1452
- * @param {!jspb.BinaryWriter} writer
1453
- * @suppress {unusedLocalVariables} f is only used for nested messages
1454
- */
1455
- proto.Auth.FirmwareProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1456
- var f = undefined;
1457
- f = message.getFirmwaresList();
1458
- if (f.length > 0) {
1459
- writer.writeRepeatedMessage(
1460
- 1,
1461
- f,
1462
- proto.Auth.FirmwareProto.serializeBinaryToWriter
1463
- );
1464
- }
1465
- f = message.getPagination();
1466
- if (f != null) {
1467
- writer.writeMessage(
1468
- 2,
1469
- f,
1470
- platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1471
- );
1472
- }
1473
- };
1474
-
1475
-
1476
- /**
1477
- * repeated FirmwareProto firmwares = 1;
1478
- * @return {!Array<!proto.Auth.FirmwareProto>}
1479
- */
1480
- proto.Auth.FirmwareProto.SearchReply.prototype.getFirmwaresList = function() {
1481
- return /** @type{!Array<!proto.Auth.FirmwareProto>} */ (
1482
- jspb.Message.getRepeatedWrapperField(this, proto.Auth.FirmwareProto, 1));
1483
- };
1484
-
1485
-
1486
- /**
1487
- * @param {!Array<!proto.Auth.FirmwareProto>} value
1488
- * @return {!proto.Auth.FirmwareProto.SearchReply} returns this
1489
- */
1490
- proto.Auth.FirmwareProto.SearchReply.prototype.setFirmwaresList = function(value) {
1491
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1492
- };
1493
-
1494
-
1495
- /**
1496
- * @param {!proto.Auth.FirmwareProto=} opt_value
1497
- * @param {number=} opt_index
1498
- * @return {!proto.Auth.FirmwareProto}
1499
- */
1500
- proto.Auth.FirmwareProto.SearchReply.prototype.addFirmwares = function(opt_value, opt_index) {
1501
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Auth.FirmwareProto, opt_index);
1502
- };
1503
-
1504
-
1505
- /**
1506
- * Clears the list making it empty but non-null.
1507
- * @return {!proto.Auth.FirmwareProto.SearchReply} returns this
1508
- */
1509
- proto.Auth.FirmwareProto.SearchReply.prototype.clearFirmwaresList = function() {
1510
- return this.setFirmwaresList([]);
1511
- };
1512
-
1513
-
1514
- /**
1515
- * optional Platform.PaginationProto pagination = 2;
1516
- * @return {?proto.Platform.PaginationProto}
1517
- */
1518
- proto.Auth.FirmwareProto.SearchReply.prototype.getPagination = function() {
1519
- return /** @type{?proto.Platform.PaginationProto} */ (
1520
- jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1521
- };
1522
-
1523
-
1524
- /**
1525
- * @param {?proto.Platform.PaginationProto|undefined} value
1526
- * @return {!proto.Auth.FirmwareProto.SearchReply} returns this
1527
- */
1528
- proto.Auth.FirmwareProto.SearchReply.prototype.setPagination = function(value) {
1529
- return jspb.Message.setWrapperField(this, 2, value);
1530
- };
1531
-
1532
-
1533
- /**
1534
- * Clears the message field making it undefined.
1535
- * @return {!proto.Auth.FirmwareProto.SearchReply} returns this
1536
- */
1537
- proto.Auth.FirmwareProto.SearchReply.prototype.clearPagination = function() {
1538
- return this.setPagination(undefined);
1539
- };
1540
-
1541
-
1542
- /**
1543
- * Returns whether this field is set.
1544
- * @return {boolean}
1545
- */
1546
- proto.Auth.FirmwareProto.SearchReply.prototype.hasPagination = function() {
1547
- return jspb.Message.getField(this, 2) != null;
1548
- };
1549
-
1550
-
1551
-
1552
-
1553
-
1554
- if (jspb.Message.GENERATE_TO_OBJECT) {
1555
- /**
1556
- * Creates an object representation of this proto.
1557
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1558
- * Optional fields that are not set will be set to undefined.
1559
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1560
- * For the list of reserved names please see:
1561
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1562
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1563
- * JSPB instance for transitional soy proto support:
1564
- * http://goto/soy-param-migration
1565
- * @return {!Object}
1566
- */
1567
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.toObject = function(opt_includeInstance) {
1568
- return proto.Auth.FirmwareProto.FirmwareFilters.toObject(opt_includeInstance, this);
1569
- };
1570
-
1571
-
1572
- /**
1573
- * Static version of the {@see toObject} method.
1574
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1575
- * the JSPB instance for transitional soy proto support:
1576
- * http://goto/soy-param-migration
1577
- * @param {!proto.Auth.FirmwareProto.FirmwareFilters} msg The msg instance to transform.
1578
- * @return {!Object}
1579
- * @suppress {unusedLocalVariables} f is only used for nested messages
1580
- */
1581
- proto.Auth.FirmwareProto.FirmwareFilters.toObject = function(includeInstance, msg) {
1582
- var f, obj = {
1583
- crc: jspb.Message.getFieldWithDefault(msg, 1, ""),
1584
- version: jspb.Message.getFieldWithDefault(msg, 2, ""),
1585
- enabled: jspb.Message.getFieldWithDefault(msg, 3, 0)
1586
- };
1587
-
1588
- if (includeInstance) {
1589
- obj.$jspbMessageInstance = msg;
1590
- }
1591
- return obj;
1592
- };
1593
- }
1594
-
1595
-
1596
- /**
1597
- * Deserializes binary data (in protobuf wire format).
1598
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1599
- * @return {!proto.Auth.FirmwareProto.FirmwareFilters}
1600
- */
1601
- proto.Auth.FirmwareProto.FirmwareFilters.deserializeBinary = function(bytes) {
1602
- var reader = new jspb.BinaryReader(bytes);
1603
- var msg = new proto.Auth.FirmwareProto.FirmwareFilters;
1604
- return proto.Auth.FirmwareProto.FirmwareFilters.deserializeBinaryFromReader(msg, reader);
1605
- };
1606
-
1607
-
1608
- /**
1609
- * Deserializes binary data (in protobuf wire format) from the
1610
- * given reader into the given message object.
1611
- * @param {!proto.Auth.FirmwareProto.FirmwareFilters} msg The message object to deserialize into.
1612
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1613
- * @return {!proto.Auth.FirmwareProto.FirmwareFilters}
1614
- */
1615
- proto.Auth.FirmwareProto.FirmwareFilters.deserializeBinaryFromReader = function(msg, reader) {
1616
- while (reader.nextField()) {
1617
- if (reader.isEndGroup()) {
1618
- break;
1619
- }
1620
- var field = reader.getFieldNumber();
1621
- switch (field) {
1622
- case 1:
1623
- var value = /** @type {string} */ (reader.readString());
1624
- msg.setCrc(value);
1625
- break;
1626
- case 2:
1627
- var value = /** @type {string} */ (reader.readString());
1628
- msg.setVersion(value);
1629
- break;
1630
- case 3:
1631
- var value = /** @type {!proto.Platform.BooleanFilterType} */ (reader.readEnum());
1632
- msg.setEnabled(value);
1633
- break;
1634
- default:
1635
- reader.skipField();
1636
- break;
1637
- }
1638
- }
1639
- return msg;
1640
- };
1641
-
1642
-
1643
- /**
1644
- * Serializes the message to binary data (in protobuf wire format).
1645
- * @return {!Uint8Array}
1646
- */
1647
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.serializeBinary = function() {
1648
- var writer = new jspb.BinaryWriter();
1649
- proto.Auth.FirmwareProto.FirmwareFilters.serializeBinaryToWriter(this, writer);
1650
- return writer.getResultBuffer();
1651
- };
1652
-
1653
-
1654
- /**
1655
- * Serializes the given message to binary data (in protobuf wire
1656
- * format), writing to the given BinaryWriter.
1657
- * @param {!proto.Auth.FirmwareProto.FirmwareFilters} message
1658
- * @param {!jspb.BinaryWriter} writer
1659
- * @suppress {unusedLocalVariables} f is only used for nested messages
1660
- */
1661
- proto.Auth.FirmwareProto.FirmwareFilters.serializeBinaryToWriter = function(message, writer) {
1662
- var f = undefined;
1663
- f = message.getCrc();
1664
- if (f.length > 0) {
1665
- writer.writeString(
1666
- 1,
1667
- f
1668
- );
1669
- }
1670
- f = message.getVersion();
1671
- if (f.length > 0) {
1672
- writer.writeString(
1673
- 2,
1674
- f
1675
- );
1676
- }
1677
- f = message.getEnabled();
1678
- if (f !== 0.0) {
1679
- writer.writeEnum(
1680
- 3,
1681
- f
1682
- );
1683
- }
1684
- };
1685
-
1686
-
1687
- /**
1688
- * optional string crc = 1;
1689
- * @return {string}
1690
- */
1691
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.getCrc = function() {
1692
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1693
- };
1694
-
1695
-
1696
- /**
1697
- * @param {string} value
1698
- * @return {!proto.Auth.FirmwareProto.FirmwareFilters} returns this
1699
- */
1700
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.setCrc = function(value) {
1701
- return jspb.Message.setProto3StringField(this, 1, value);
1702
- };
1703
-
1704
-
1705
- /**
1706
- * optional string version = 2;
1707
- * @return {string}
1708
- */
1709
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.getVersion = function() {
1710
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1711
- };
1712
-
1713
-
1714
- /**
1715
- * @param {string} value
1716
- * @return {!proto.Auth.FirmwareProto.FirmwareFilters} returns this
1717
- */
1718
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.setVersion = function(value) {
1719
- return jspb.Message.setProto3StringField(this, 2, value);
1720
- };
1721
-
1722
-
1723
- /**
1724
- * optional Platform.BooleanFilterType enabled = 3;
1725
- * @return {!proto.Platform.BooleanFilterType}
1726
- */
1727
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.getEnabled = function() {
1728
- return /** @type {!proto.Platform.BooleanFilterType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1729
- };
1730
-
1731
-
1732
- /**
1733
- * @param {!proto.Platform.BooleanFilterType} value
1734
- * @return {!proto.Auth.FirmwareProto.FirmwareFilters} returns this
1735
- */
1736
- proto.Auth.FirmwareProto.FirmwareFilters.prototype.setEnabled = function(value) {
1737
- return jspb.Message.setProto3EnumField(this, 3, value);
1738
- };
1739
-
1740
-
1741
- /**
1742
- * optional int64 id = 1;
1743
- * @return {number}
1744
- */
1745
- proto.Auth.FirmwareProto.prototype.getId = function() {
1746
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1747
- };
1748
-
1749
-
1750
- /**
1751
- * @param {number} value
1752
- * @return {!proto.Auth.FirmwareProto} returns this
1753
- */
1754
- proto.Auth.FirmwareProto.prototype.setId = function(value) {
1755
- return jspb.Message.setProto3IntField(this, 1, value);
1756
- };
1757
-
1758
-
1759
- /**
1760
- * optional string crc = 2;
1761
- * @return {string}
1762
- */
1763
- proto.Auth.FirmwareProto.prototype.getCrc = function() {
1764
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1765
- };
1766
-
1767
-
1768
- /**
1769
- * @param {string} value
1770
- * @return {!proto.Auth.FirmwareProto} returns this
1771
- */
1772
- proto.Auth.FirmwareProto.prototype.setCrc = function(value) {
1773
- return jspb.Message.setProto3StringField(this, 2, value);
1774
- };
1775
-
1776
-
1777
- /**
1778
- * optional string version = 3;
1779
- * @return {string}
1780
- */
1781
- proto.Auth.FirmwareProto.prototype.getVersion = function() {
1782
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1783
- };
1784
-
1785
-
1786
- /**
1787
- * @param {string} value
1788
- * @return {!proto.Auth.FirmwareProto} returns this
1789
- */
1790
- proto.Auth.FirmwareProto.prototype.setVersion = function(value) {
1791
- return jspb.Message.setProto3StringField(this, 3, value);
1792
- };
1793
-
1794
-
1795
- /**
1796
- * optional int64 file_size = 4;
1797
- * @return {number}
1798
- */
1799
- proto.Auth.FirmwareProto.prototype.getFileSize = function() {
1800
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1801
- };
1802
-
1803
-
1804
- /**
1805
- * @param {number} value
1806
- * @return {!proto.Auth.FirmwareProto} returns this
1807
- */
1808
- proto.Auth.FirmwareProto.prototype.setFileSize = function(value) {
1809
- return jspb.Message.setProto3IntField(this, 4, value);
1810
- };
1811
-
1812
-
1813
- /**
1814
- * optional string link = 5;
1815
- * @return {string}
1816
- */
1817
- proto.Auth.FirmwareProto.prototype.getLink = function() {
1818
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1819
- };
1820
-
1821
-
1822
- /**
1823
- * @param {string} value
1824
- * @return {!proto.Auth.FirmwareProto} returns this
1825
- */
1826
- proto.Auth.FirmwareProto.prototype.setLink = function(value) {
1827
- return jspb.Message.setProto3StringField(this, 5, value);
1828
- };
1829
-
1830
-
1831
- /**
1832
- * optional bool enabled = 6;
1833
- * @return {boolean}
1834
- */
1835
- proto.Auth.FirmwareProto.prototype.getEnabled = function() {
1836
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1837
- };
1838
-
1839
-
1840
- /**
1841
- * @param {boolean} value
1842
- * @return {!proto.Auth.FirmwareProto} returns this
1843
- */
1844
- proto.Auth.FirmwareProto.prototype.setEnabled = function(value) {
1845
- return jspb.Message.setProto3BooleanField(this, 6, value);
1846
- };
1847
-
1848
-
1849
- /**
1850
- * repeated string uids = 7;
1851
- * @return {!Array<string>}
1852
- */
1853
- proto.Auth.FirmwareProto.prototype.getUidsList = function() {
1854
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
1855
- };
1856
-
1857
-
1858
- /**
1859
- * @param {!Array<string>} value
1860
- * @return {!proto.Auth.FirmwareProto} returns this
1861
- */
1862
- proto.Auth.FirmwareProto.prototype.setUidsList = function(value) {
1863
- return jspb.Message.setField(this, 7, value || []);
1864
- };
1865
-
1866
-
1867
- /**
1868
- * @param {string} value
1869
- * @param {number=} opt_index
1870
- * @return {!proto.Auth.FirmwareProto} returns this
1871
- */
1872
- proto.Auth.FirmwareProto.prototype.addUids = function(value, opt_index) {
1873
- return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
1874
- };
1875
-
1876
-
1877
- /**
1878
- * Clears the list making it empty but non-null.
1879
- * @return {!proto.Auth.FirmwareProto} returns this
1880
- */
1881
- proto.Auth.FirmwareProto.prototype.clearUidsList = function() {
1882
- return this.setUidsList([]);
1883
- };
1884
-
1885
-
1886
- /**
1887
- * optional google.protobuf.Timestamp created_date = 8;
1888
- * @return {?proto.google.protobuf.Timestamp}
1889
- */
1890
- proto.Auth.FirmwareProto.prototype.getCreatedDate = function() {
1891
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1892
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
1893
- };
1894
-
1895
-
1896
- /**
1897
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1898
- * @return {!proto.Auth.FirmwareProto} returns this
1899
- */
1900
- proto.Auth.FirmwareProto.prototype.setCreatedDate = function(value) {
1901
- return jspb.Message.setWrapperField(this, 8, value);
1902
- };
1903
-
1904
-
1905
- /**
1906
- * Clears the message field making it undefined.
1907
- * @return {!proto.Auth.FirmwareProto} returns this
1908
- */
1909
- proto.Auth.FirmwareProto.prototype.clearCreatedDate = function() {
1910
- return this.setCreatedDate(undefined);
1911
- };
1912
-
1913
-
1914
- /**
1915
- * Returns whether this field is set.
1916
- * @return {boolean}
1917
- */
1918
- proto.Auth.FirmwareProto.prototype.hasCreatedDate = function() {
1919
- return jspb.Message.getField(this, 8) != null;
1920
- };
1921
-
1922
-
1923
- /**
1924
- * optional google.protobuf.Timestamp updated_date = 9;
1925
- * @return {?proto.google.protobuf.Timestamp}
1926
- */
1927
- proto.Auth.FirmwareProto.prototype.getUpdatedDate = function() {
1928
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1929
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
1930
- };
1931
-
1932
-
1933
- /**
1934
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1935
- * @return {!proto.Auth.FirmwareProto} returns this
1936
- */
1937
- proto.Auth.FirmwareProto.prototype.setUpdatedDate = function(value) {
1938
- return jspb.Message.setWrapperField(this, 9, value);
1939
- };
1940
-
1941
-
1942
- /**
1943
- * Clears the message field making it undefined.
1944
- * @return {!proto.Auth.FirmwareProto} returns this
1945
- */
1946
- proto.Auth.FirmwareProto.prototype.clearUpdatedDate = function() {
1947
- return this.setUpdatedDate(undefined);
1948
- };
1949
-
1950
-
1951
- /**
1952
- * Returns whether this field is set.
1953
- * @return {boolean}
1954
- */
1955
- proto.Auth.FirmwareProto.prototype.hasUpdatedDate = function() {
1956
- return jspb.Message.getField(this, 9) != null;
1957
- };
1958
-
1959
-
1960
- /**
1961
- * repeated string from_crcs = 10;
1962
- * @return {!Array<string>}
1963
- */
1964
- proto.Auth.FirmwareProto.prototype.getFromCrcsList = function() {
1965
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
1966
- };
1967
-
1968
-
1969
- /**
1970
- * @param {!Array<string>} value
1971
- * @return {!proto.Auth.FirmwareProto} returns this
1972
- */
1973
- proto.Auth.FirmwareProto.prototype.setFromCrcsList = function(value) {
1974
- return jspb.Message.setField(this, 10, value || []);
1975
- };
1976
-
1977
-
1978
- /**
1979
- * @param {string} value
1980
- * @param {number=} opt_index
1981
- * @return {!proto.Auth.FirmwareProto} returns this
1982
- */
1983
- proto.Auth.FirmwareProto.prototype.addFromCrcs = function(value, opt_index) {
1984
- return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
1985
- };
1986
-
1987
-
1988
- /**
1989
- * Clears the list making it empty but non-null.
1990
- * @return {!proto.Auth.FirmwareProto} returns this
1991
- */
1992
- proto.Auth.FirmwareProto.prototype.clearFromCrcsList = function() {
1993
- return this.setFromCrcsList([]);
1994
- };
1995
-
1996
-
1997
- goog.object.extend(exports, proto.Auth);