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

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