@aceplus/smartace-api 2.9.0-alpha.25 → 2.9.0-alpha.27

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