@aceplus/smartace-api 3.4.0-alpha.12 → 3.4.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/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 +69 -0
  207. package/platform.local_distribution_pb.js +506 -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.asset_pb.d.ts +662 -0
  219. package/spic.asset_pb.js +4757 -0
  220. package/spic.asset_pb_service.d.ts +197 -0
  221. package/spic.asset_pb_service.js +342 -0
  222. package/spic.cabinet_pb.d.ts +1407 -0
  223. package/spic.cabinet_pb.js +10370 -0
  224. package/spic.cabinet_pb_service.d.ts +378 -0
  225. package/spic.cabinet_pb_service.js +717 -0
  226. package/spic.config_pb.d.ts +249 -0
  227. package/spic.config_pb.js +1891 -0
  228. package/spic.config_pb_service.d.ts +120 -0
  229. package/spic.config_pb_service.js +181 -0
  230. package/spic.contractor_pb.d.ts +195 -0
  231. package/spic.contractor_pb.js +1476 -0
  232. package/spic.contractor_pb_service.d.ts +139 -0
  233. package/spic.contractor_pb_service.js +221 -0
  234. package/spic.history_pb.d.ts +138 -0
  235. package/spic.history_pb.js +1100 -0
  236. package/spic.history_pb_service.d.ts +63 -0
  237. package/spic.history_pb_service.js +61 -0
@@ -0,0 +1,1100 @@
1
+ // source: spic.history.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 google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
+ goog.object.extend(proto, google_api_annotations_pb);
28
+ goog.exportSymbol('proto.Spic.HistoryProto', null, global);
29
+ goog.exportSymbol('proto.Spic.HistoryProto.ComponentHistory', null, global);
30
+ goog.exportSymbol('proto.Spic.HistoryProto.SearchReply', null, global);
31
+ goog.exportSymbol('proto.Spic.HistoryProto.SearchRequest', null, global);
32
+ goog.exportSymbol('proto.Spic.HistoryProto.StateSnapshot', null, global);
33
+ /**
34
+ * Generated by JsPbCodeGenerator.
35
+ * @param {Array=} opt_data Optional initial data array, typically from a
36
+ * server response, or constructed directly in Javascript. The array is used
37
+ * in place and becomes part of the constructed object. It is not cloned.
38
+ * If no data is provided, the constructed object will be empty, but still
39
+ * valid.
40
+ * @extends {jspb.Message}
41
+ * @constructor
42
+ */
43
+ proto.Spic.HistoryProto = function(opt_data) {
44
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ };
46
+ goog.inherits(proto.Spic.HistoryProto, jspb.Message);
47
+ if (goog.DEBUG && !COMPILED) {
48
+ /**
49
+ * @public
50
+ * @override
51
+ */
52
+ proto.Spic.HistoryProto.displayName = 'proto.Spic.HistoryProto';
53
+ }
54
+ /**
55
+ * Generated by JsPbCodeGenerator.
56
+ * @param {Array=} opt_data Optional initial data array, typically from a
57
+ * server response, or constructed directly in Javascript. The array is used
58
+ * in place and becomes part of the constructed object. It is not cloned.
59
+ * If no data is provided, the constructed object will be empty, but still
60
+ * valid.
61
+ * @extends {jspb.Message}
62
+ * @constructor
63
+ */
64
+ proto.Spic.HistoryProto.StateSnapshot = function(opt_data) {
65
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
+ };
67
+ goog.inherits(proto.Spic.HistoryProto.StateSnapshot, jspb.Message);
68
+ if (goog.DEBUG && !COMPILED) {
69
+ /**
70
+ * @public
71
+ * @override
72
+ */
73
+ proto.Spic.HistoryProto.StateSnapshot.displayName = 'proto.Spic.HistoryProto.StateSnapshot';
74
+ }
75
+ /**
76
+ * Generated by JsPbCodeGenerator.
77
+ * @param {Array=} opt_data Optional initial data array, typically from a
78
+ * server response, or constructed directly in Javascript. The array is used
79
+ * in place and becomes part of the constructed object. It is not cloned.
80
+ * If no data is provided, the constructed object will be empty, but still
81
+ * valid.
82
+ * @extends {jspb.Message}
83
+ * @constructor
84
+ */
85
+ proto.Spic.HistoryProto.ComponentHistory = function(opt_data) {
86
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.HistoryProto.ComponentHistory.repeatedFields_, null);
87
+ };
88
+ goog.inherits(proto.Spic.HistoryProto.ComponentHistory, jspb.Message);
89
+ if (goog.DEBUG && !COMPILED) {
90
+ /**
91
+ * @public
92
+ * @override
93
+ */
94
+ proto.Spic.HistoryProto.ComponentHistory.displayName = 'proto.Spic.HistoryProto.ComponentHistory';
95
+ }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.Spic.HistoryProto.SearchRequest = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.HistoryProto.SearchRequest.repeatedFields_, null);
108
+ };
109
+ goog.inherits(proto.Spic.HistoryProto.SearchRequest, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.Spic.HistoryProto.SearchRequest.displayName = 'proto.Spic.HistoryProto.SearchRequest';
116
+ }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.Spic.HistoryProto.SearchReply = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.Spic.HistoryProto.SearchReply, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.Spic.HistoryProto.SearchReply.displayName = 'proto.Spic.HistoryProto.SearchReply';
137
+ }
138
+
139
+
140
+
141
+ if (jspb.Message.GENERATE_TO_OBJECT) {
142
+ /**
143
+ * Creates an object representation of this proto.
144
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
145
+ * Optional fields that are not set will be set to undefined.
146
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
147
+ * For the list of reserved names please see:
148
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
149
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
150
+ * JSPB instance for transitional soy proto support:
151
+ * http://goto/soy-param-migration
152
+ * @return {!Object}
153
+ */
154
+ proto.Spic.HistoryProto.prototype.toObject = function(opt_includeInstance) {
155
+ return proto.Spic.HistoryProto.toObject(opt_includeInstance, this);
156
+ };
157
+
158
+
159
+ /**
160
+ * Static version of the {@see toObject} method.
161
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
162
+ * the JSPB instance for transitional soy proto support:
163
+ * http://goto/soy-param-migration
164
+ * @param {!proto.Spic.HistoryProto} msg The msg instance to transform.
165
+ * @return {!Object}
166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
167
+ */
168
+ proto.Spic.HistoryProto.toObject = function(includeInstance, msg) {
169
+ var f, obj = {
170
+
171
+ };
172
+
173
+ if (includeInstance) {
174
+ obj.$jspbMessageInstance = msg;
175
+ }
176
+ return obj;
177
+ };
178
+ }
179
+
180
+
181
+ /**
182
+ * Deserializes binary data (in protobuf wire format).
183
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
184
+ * @return {!proto.Spic.HistoryProto}
185
+ */
186
+ proto.Spic.HistoryProto.deserializeBinary = function(bytes) {
187
+ var reader = new jspb.BinaryReader(bytes);
188
+ var msg = new proto.Spic.HistoryProto;
189
+ return proto.Spic.HistoryProto.deserializeBinaryFromReader(msg, reader);
190
+ };
191
+
192
+
193
+ /**
194
+ * Deserializes binary data (in protobuf wire format) from the
195
+ * given reader into the given message object.
196
+ * @param {!proto.Spic.HistoryProto} msg The message object to deserialize into.
197
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
198
+ * @return {!proto.Spic.HistoryProto}
199
+ */
200
+ proto.Spic.HistoryProto.deserializeBinaryFromReader = function(msg, reader) {
201
+ while (reader.nextField()) {
202
+ if (reader.isEndGroup()) {
203
+ break;
204
+ }
205
+ var field = reader.getFieldNumber();
206
+ switch (field) {
207
+ default:
208
+ reader.skipField();
209
+ break;
210
+ }
211
+ }
212
+ return msg;
213
+ };
214
+
215
+
216
+ /**
217
+ * Serializes the message to binary data (in protobuf wire format).
218
+ * @return {!Uint8Array}
219
+ */
220
+ proto.Spic.HistoryProto.prototype.serializeBinary = function() {
221
+ var writer = new jspb.BinaryWriter();
222
+ proto.Spic.HistoryProto.serializeBinaryToWriter(this, writer);
223
+ return writer.getResultBuffer();
224
+ };
225
+
226
+
227
+ /**
228
+ * Serializes the given message to binary data (in protobuf wire
229
+ * format), writing to the given BinaryWriter.
230
+ * @param {!proto.Spic.HistoryProto} message
231
+ * @param {!jspb.BinaryWriter} writer
232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
233
+ */
234
+ proto.Spic.HistoryProto.serializeBinaryToWriter = function(message, writer) {
235
+ var f = undefined;
236
+ };
237
+
238
+
239
+
240
+
241
+
242
+ if (jspb.Message.GENERATE_TO_OBJECT) {
243
+ /**
244
+ * Creates an object representation of this proto.
245
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
246
+ * Optional fields that are not set will be set to undefined.
247
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
248
+ * For the list of reserved names please see:
249
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
250
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
251
+ * JSPB instance for transitional soy proto support:
252
+ * http://goto/soy-param-migration
253
+ * @return {!Object}
254
+ */
255
+ proto.Spic.HistoryProto.StateSnapshot.prototype.toObject = function(opt_includeInstance) {
256
+ return proto.Spic.HistoryProto.StateSnapshot.toObject(opt_includeInstance, this);
257
+ };
258
+
259
+
260
+ /**
261
+ * Static version of the {@see toObject} method.
262
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
263
+ * the JSPB instance for transitional soy proto support:
264
+ * http://goto/soy-param-migration
265
+ * @param {!proto.Spic.HistoryProto.StateSnapshot} msg The msg instance to transform.
266
+ * @return {!Object}
267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
268
+ */
269
+ proto.Spic.HistoryProto.StateSnapshot.toObject = function(includeInstance, msg) {
270
+ var f, obj = {
271
+ value: jspb.Message.getFieldWithDefault(msg, 1, ""),
272
+ metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [],
273
+ dateTime: (f = msg.getDateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
274
+ };
275
+
276
+ if (includeInstance) {
277
+ obj.$jspbMessageInstance = msg;
278
+ }
279
+ return obj;
280
+ };
281
+ }
282
+
283
+
284
+ /**
285
+ * Deserializes binary data (in protobuf wire format).
286
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
287
+ * @return {!proto.Spic.HistoryProto.StateSnapshot}
288
+ */
289
+ proto.Spic.HistoryProto.StateSnapshot.deserializeBinary = function(bytes) {
290
+ var reader = new jspb.BinaryReader(bytes);
291
+ var msg = new proto.Spic.HistoryProto.StateSnapshot;
292
+ return proto.Spic.HistoryProto.StateSnapshot.deserializeBinaryFromReader(msg, reader);
293
+ };
294
+
295
+
296
+ /**
297
+ * Deserializes binary data (in protobuf wire format) from the
298
+ * given reader into the given message object.
299
+ * @param {!proto.Spic.HistoryProto.StateSnapshot} msg The message object to deserialize into.
300
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
301
+ * @return {!proto.Spic.HistoryProto.StateSnapshot}
302
+ */
303
+ proto.Spic.HistoryProto.StateSnapshot.deserializeBinaryFromReader = function(msg, reader) {
304
+ while (reader.nextField()) {
305
+ if (reader.isEndGroup()) {
306
+ break;
307
+ }
308
+ var field = reader.getFieldNumber();
309
+ switch (field) {
310
+ case 1:
311
+ var value = /** @type {string} */ (reader.readString());
312
+ msg.setValue(value);
313
+ break;
314
+ case 2:
315
+ var value = msg.getMetadataMap();
316
+ reader.readMessage(value, function(message, reader) {
317
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
318
+ });
319
+ break;
320
+ case 3:
321
+ var value = new google_protobuf_timestamp_pb.Timestamp;
322
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
323
+ msg.setDateTime(value);
324
+ break;
325
+ default:
326
+ reader.skipField();
327
+ break;
328
+ }
329
+ }
330
+ return msg;
331
+ };
332
+
333
+
334
+ /**
335
+ * Serializes the message to binary data (in protobuf wire format).
336
+ * @return {!Uint8Array}
337
+ */
338
+ proto.Spic.HistoryProto.StateSnapshot.prototype.serializeBinary = function() {
339
+ var writer = new jspb.BinaryWriter();
340
+ proto.Spic.HistoryProto.StateSnapshot.serializeBinaryToWriter(this, writer);
341
+ return writer.getResultBuffer();
342
+ };
343
+
344
+
345
+ /**
346
+ * Serializes the given message to binary data (in protobuf wire
347
+ * format), writing to the given BinaryWriter.
348
+ * @param {!proto.Spic.HistoryProto.StateSnapshot} message
349
+ * @param {!jspb.BinaryWriter} writer
350
+ * @suppress {unusedLocalVariables} f is only used for nested messages
351
+ */
352
+ proto.Spic.HistoryProto.StateSnapshot.serializeBinaryToWriter = function(message, writer) {
353
+ var f = undefined;
354
+ f = message.getValue();
355
+ if (f.length > 0) {
356
+ writer.writeString(
357
+ 1,
358
+ f
359
+ );
360
+ }
361
+ f = message.getMetadataMap(true);
362
+ if (f && f.getLength() > 0) {
363
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
364
+ }
365
+ f = message.getDateTime();
366
+ if (f != null) {
367
+ writer.writeMessage(
368
+ 3,
369
+ f,
370
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
371
+ );
372
+ }
373
+ };
374
+
375
+
376
+ /**
377
+ * optional string value = 1;
378
+ * @return {string}
379
+ */
380
+ proto.Spic.HistoryProto.StateSnapshot.prototype.getValue = function() {
381
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
382
+ };
383
+
384
+
385
+ /**
386
+ * @param {string} value
387
+ * @return {!proto.Spic.HistoryProto.StateSnapshot} returns this
388
+ */
389
+ proto.Spic.HistoryProto.StateSnapshot.prototype.setValue = function(value) {
390
+ return jspb.Message.setProto3StringField(this, 1, value);
391
+ };
392
+
393
+
394
+ /**
395
+ * map<string, string> metadata = 2;
396
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
397
+ * empty, instead returning `undefined`
398
+ * @return {!jspb.Map<string,string>}
399
+ */
400
+ proto.Spic.HistoryProto.StateSnapshot.prototype.getMetadataMap = function(opt_noLazyCreate) {
401
+ return /** @type {!jspb.Map<string,string>} */ (
402
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
403
+ null));
404
+ };
405
+
406
+
407
+ /**
408
+ * Clears values from the map. The map will be non-null.
409
+ * @return {!proto.Spic.HistoryProto.StateSnapshot} returns this
410
+ */
411
+ proto.Spic.HistoryProto.StateSnapshot.prototype.clearMetadataMap = function() {
412
+ this.getMetadataMap().clear();
413
+ return this;
414
+ };
415
+
416
+
417
+ /**
418
+ * optional google.protobuf.Timestamp date_time = 3;
419
+ * @return {?proto.google.protobuf.Timestamp}
420
+ */
421
+ proto.Spic.HistoryProto.StateSnapshot.prototype.getDateTime = function() {
422
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
423
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
424
+ };
425
+
426
+
427
+ /**
428
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
429
+ * @return {!proto.Spic.HistoryProto.StateSnapshot} returns this
430
+ */
431
+ proto.Spic.HistoryProto.StateSnapshot.prototype.setDateTime = function(value) {
432
+ return jspb.Message.setWrapperField(this, 3, value);
433
+ };
434
+
435
+
436
+ /**
437
+ * Clears the message field making it undefined.
438
+ * @return {!proto.Spic.HistoryProto.StateSnapshot} returns this
439
+ */
440
+ proto.Spic.HistoryProto.StateSnapshot.prototype.clearDateTime = function() {
441
+ return this.setDateTime(undefined);
442
+ };
443
+
444
+
445
+ /**
446
+ * Returns whether this field is set.
447
+ * @return {boolean}
448
+ */
449
+ proto.Spic.HistoryProto.StateSnapshot.prototype.hasDateTime = function() {
450
+ return jspb.Message.getField(this, 3) != null;
451
+ };
452
+
453
+
454
+
455
+ /**
456
+ * List of repeated fields within this message type.
457
+ * @private {!Array<number>}
458
+ * @const
459
+ */
460
+ proto.Spic.HistoryProto.ComponentHistory.repeatedFields_ = [1];
461
+
462
+
463
+
464
+ if (jspb.Message.GENERATE_TO_OBJECT) {
465
+ /**
466
+ * Creates an object representation of this proto.
467
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
468
+ * Optional fields that are not set will be set to undefined.
469
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
470
+ * For the list of reserved names please see:
471
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
472
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
473
+ * JSPB instance for transitional soy proto support:
474
+ * http://goto/soy-param-migration
475
+ * @return {!Object}
476
+ */
477
+ proto.Spic.HistoryProto.ComponentHistory.prototype.toObject = function(opt_includeInstance) {
478
+ return proto.Spic.HistoryProto.ComponentHistory.toObject(opt_includeInstance, this);
479
+ };
480
+
481
+
482
+ /**
483
+ * Static version of the {@see toObject} method.
484
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
485
+ * the JSPB instance for transitional soy proto support:
486
+ * http://goto/soy-param-migration
487
+ * @param {!proto.Spic.HistoryProto.ComponentHistory} msg The msg instance to transform.
488
+ * @return {!Object}
489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
490
+ */
491
+ proto.Spic.HistoryProto.ComponentHistory.toObject = function(includeInstance, msg) {
492
+ var f, obj = {
493
+ statesList: jspb.Message.toObjectList(msg.getStatesList(),
494
+ proto.Spic.HistoryProto.StateSnapshot.toObject, includeInstance),
495
+ componentId: jspb.Message.getFieldWithDefault(msg, 2, ""),
496
+ componentClass: jspb.Message.getFieldWithDefault(msg, 3, ""),
497
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
498
+ };
499
+
500
+ if (includeInstance) {
501
+ obj.$jspbMessageInstance = msg;
502
+ }
503
+ return obj;
504
+ };
505
+ }
506
+
507
+
508
+ /**
509
+ * Deserializes binary data (in protobuf wire format).
510
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
511
+ * @return {!proto.Spic.HistoryProto.ComponentHistory}
512
+ */
513
+ proto.Spic.HistoryProto.ComponentHistory.deserializeBinary = function(bytes) {
514
+ var reader = new jspb.BinaryReader(bytes);
515
+ var msg = new proto.Spic.HistoryProto.ComponentHistory;
516
+ return proto.Spic.HistoryProto.ComponentHistory.deserializeBinaryFromReader(msg, reader);
517
+ };
518
+
519
+
520
+ /**
521
+ * Deserializes binary data (in protobuf wire format) from the
522
+ * given reader into the given message object.
523
+ * @param {!proto.Spic.HistoryProto.ComponentHistory} msg The message object to deserialize into.
524
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
525
+ * @return {!proto.Spic.HistoryProto.ComponentHistory}
526
+ */
527
+ proto.Spic.HistoryProto.ComponentHistory.deserializeBinaryFromReader = function(msg, reader) {
528
+ while (reader.nextField()) {
529
+ if (reader.isEndGroup()) {
530
+ break;
531
+ }
532
+ var field = reader.getFieldNumber();
533
+ switch (field) {
534
+ case 1:
535
+ var value = new proto.Spic.HistoryProto.StateSnapshot;
536
+ reader.readMessage(value,proto.Spic.HistoryProto.StateSnapshot.deserializeBinaryFromReader);
537
+ msg.addStates(value);
538
+ break;
539
+ case 2:
540
+ var value = /** @type {string} */ (reader.readString());
541
+ msg.setComponentId(value);
542
+ break;
543
+ case 3:
544
+ var value = /** @type {string} */ (reader.readString());
545
+ msg.setComponentClass(value);
546
+ break;
547
+ case 4:
548
+ var value = msg.getAttributesMap();
549
+ reader.readMessage(value, function(message, reader) {
550
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
551
+ });
552
+ break;
553
+ default:
554
+ reader.skipField();
555
+ break;
556
+ }
557
+ }
558
+ return msg;
559
+ };
560
+
561
+
562
+ /**
563
+ * Serializes the message to binary data (in protobuf wire format).
564
+ * @return {!Uint8Array}
565
+ */
566
+ proto.Spic.HistoryProto.ComponentHistory.prototype.serializeBinary = function() {
567
+ var writer = new jspb.BinaryWriter();
568
+ proto.Spic.HistoryProto.ComponentHistory.serializeBinaryToWriter(this, writer);
569
+ return writer.getResultBuffer();
570
+ };
571
+
572
+
573
+ /**
574
+ * Serializes the given message to binary data (in protobuf wire
575
+ * format), writing to the given BinaryWriter.
576
+ * @param {!proto.Spic.HistoryProto.ComponentHistory} message
577
+ * @param {!jspb.BinaryWriter} writer
578
+ * @suppress {unusedLocalVariables} f is only used for nested messages
579
+ */
580
+ proto.Spic.HistoryProto.ComponentHistory.serializeBinaryToWriter = function(message, writer) {
581
+ var f = undefined;
582
+ f = message.getStatesList();
583
+ if (f.length > 0) {
584
+ writer.writeRepeatedMessage(
585
+ 1,
586
+ f,
587
+ proto.Spic.HistoryProto.StateSnapshot.serializeBinaryToWriter
588
+ );
589
+ }
590
+ f = message.getComponentId();
591
+ if (f.length > 0) {
592
+ writer.writeString(
593
+ 2,
594
+ f
595
+ );
596
+ }
597
+ f = message.getComponentClass();
598
+ if (f.length > 0) {
599
+ writer.writeString(
600
+ 3,
601
+ f
602
+ );
603
+ }
604
+ f = message.getAttributesMap(true);
605
+ if (f && f.getLength() > 0) {
606
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
607
+ }
608
+ };
609
+
610
+
611
+ /**
612
+ * repeated StateSnapshot states = 1;
613
+ * @return {!Array<!proto.Spic.HistoryProto.StateSnapshot>}
614
+ */
615
+ proto.Spic.HistoryProto.ComponentHistory.prototype.getStatesList = function() {
616
+ return /** @type{!Array<!proto.Spic.HistoryProto.StateSnapshot>} */ (
617
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.HistoryProto.StateSnapshot, 1));
618
+ };
619
+
620
+
621
+ /**
622
+ * @param {!Array<!proto.Spic.HistoryProto.StateSnapshot>} value
623
+ * @return {!proto.Spic.HistoryProto.ComponentHistory} returns this
624
+ */
625
+ proto.Spic.HistoryProto.ComponentHistory.prototype.setStatesList = function(value) {
626
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
627
+ };
628
+
629
+
630
+ /**
631
+ * @param {!proto.Spic.HistoryProto.StateSnapshot=} opt_value
632
+ * @param {number=} opt_index
633
+ * @return {!proto.Spic.HistoryProto.StateSnapshot}
634
+ */
635
+ proto.Spic.HistoryProto.ComponentHistory.prototype.addStates = function(opt_value, opt_index) {
636
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.HistoryProto.StateSnapshot, opt_index);
637
+ };
638
+
639
+
640
+ /**
641
+ * Clears the list making it empty but non-null.
642
+ * @return {!proto.Spic.HistoryProto.ComponentHistory} returns this
643
+ */
644
+ proto.Spic.HistoryProto.ComponentHistory.prototype.clearStatesList = function() {
645
+ return this.setStatesList([]);
646
+ };
647
+
648
+
649
+ /**
650
+ * optional string component_id = 2;
651
+ * @return {string}
652
+ */
653
+ proto.Spic.HistoryProto.ComponentHistory.prototype.getComponentId = function() {
654
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
655
+ };
656
+
657
+
658
+ /**
659
+ * @param {string} value
660
+ * @return {!proto.Spic.HistoryProto.ComponentHistory} returns this
661
+ */
662
+ proto.Spic.HistoryProto.ComponentHistory.prototype.setComponentId = function(value) {
663
+ return jspb.Message.setProto3StringField(this, 2, value);
664
+ };
665
+
666
+
667
+ /**
668
+ * optional string component_class = 3;
669
+ * @return {string}
670
+ */
671
+ proto.Spic.HistoryProto.ComponentHistory.prototype.getComponentClass = function() {
672
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
673
+ };
674
+
675
+
676
+ /**
677
+ * @param {string} value
678
+ * @return {!proto.Spic.HistoryProto.ComponentHistory} returns this
679
+ */
680
+ proto.Spic.HistoryProto.ComponentHistory.prototype.setComponentClass = function(value) {
681
+ return jspb.Message.setProto3StringField(this, 3, value);
682
+ };
683
+
684
+
685
+ /**
686
+ * map<string, string> attributes = 4;
687
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
688
+ * empty, instead returning `undefined`
689
+ * @return {!jspb.Map<string,string>}
690
+ */
691
+ proto.Spic.HistoryProto.ComponentHistory.prototype.getAttributesMap = function(opt_noLazyCreate) {
692
+ return /** @type {!jspb.Map<string,string>} */ (
693
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
694
+ null));
695
+ };
696
+
697
+
698
+ /**
699
+ * Clears values from the map. The map will be non-null.
700
+ * @return {!proto.Spic.HistoryProto.ComponentHistory} returns this
701
+ */
702
+ proto.Spic.HistoryProto.ComponentHistory.prototype.clearAttributesMap = function() {
703
+ this.getAttributesMap().clear();
704
+ return this;
705
+ };
706
+
707
+
708
+
709
+ /**
710
+ * List of repeated fields within this message type.
711
+ * @private {!Array<number>}
712
+ * @const
713
+ */
714
+ proto.Spic.HistoryProto.SearchRequest.repeatedFields_ = [1];
715
+
716
+
717
+
718
+ if (jspb.Message.GENERATE_TO_OBJECT) {
719
+ /**
720
+ * Creates an object representation of this proto.
721
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
722
+ * Optional fields that are not set will be set to undefined.
723
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
724
+ * For the list of reserved names please see:
725
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
726
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
727
+ * JSPB instance for transitional soy proto support:
728
+ * http://goto/soy-param-migration
729
+ * @return {!Object}
730
+ */
731
+ proto.Spic.HistoryProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
732
+ return proto.Spic.HistoryProto.SearchRequest.toObject(opt_includeInstance, this);
733
+ };
734
+
735
+
736
+ /**
737
+ * Static version of the {@see toObject} method.
738
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
739
+ * the JSPB instance for transitional soy proto support:
740
+ * http://goto/soy-param-migration
741
+ * @param {!proto.Spic.HistoryProto.SearchRequest} msg The msg instance to transform.
742
+ * @return {!Object}
743
+ * @suppress {unusedLocalVariables} f is only used for nested messages
744
+ */
745
+ proto.Spic.HistoryProto.SearchRequest.toObject = function(includeInstance, msg) {
746
+ var f, obj = {
747
+ componentIdList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
748
+ dateFrom: (f = msg.getDateFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
749
+ dateTo: (f = msg.getDateTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
750
+ };
751
+
752
+ if (includeInstance) {
753
+ obj.$jspbMessageInstance = msg;
754
+ }
755
+ return obj;
756
+ };
757
+ }
758
+
759
+
760
+ /**
761
+ * Deserializes binary data (in protobuf wire format).
762
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
763
+ * @return {!proto.Spic.HistoryProto.SearchRequest}
764
+ */
765
+ proto.Spic.HistoryProto.SearchRequest.deserializeBinary = function(bytes) {
766
+ var reader = new jspb.BinaryReader(bytes);
767
+ var msg = new proto.Spic.HistoryProto.SearchRequest;
768
+ return proto.Spic.HistoryProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
769
+ };
770
+
771
+
772
+ /**
773
+ * Deserializes binary data (in protobuf wire format) from the
774
+ * given reader into the given message object.
775
+ * @param {!proto.Spic.HistoryProto.SearchRequest} msg The message object to deserialize into.
776
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
777
+ * @return {!proto.Spic.HistoryProto.SearchRequest}
778
+ */
779
+ proto.Spic.HistoryProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
780
+ while (reader.nextField()) {
781
+ if (reader.isEndGroup()) {
782
+ break;
783
+ }
784
+ var field = reader.getFieldNumber();
785
+ switch (field) {
786
+ case 1:
787
+ var value = /** @type {string} */ (reader.readString());
788
+ msg.addComponentId(value);
789
+ break;
790
+ case 2:
791
+ var value = new google_protobuf_timestamp_pb.Timestamp;
792
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
793
+ msg.setDateFrom(value);
794
+ break;
795
+ case 3:
796
+ var value = new google_protobuf_timestamp_pb.Timestamp;
797
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
798
+ msg.setDateTo(value);
799
+ break;
800
+ default:
801
+ reader.skipField();
802
+ break;
803
+ }
804
+ }
805
+ return msg;
806
+ };
807
+
808
+
809
+ /**
810
+ * Serializes the message to binary data (in protobuf wire format).
811
+ * @return {!Uint8Array}
812
+ */
813
+ proto.Spic.HistoryProto.SearchRequest.prototype.serializeBinary = function() {
814
+ var writer = new jspb.BinaryWriter();
815
+ proto.Spic.HistoryProto.SearchRequest.serializeBinaryToWriter(this, writer);
816
+ return writer.getResultBuffer();
817
+ };
818
+
819
+
820
+ /**
821
+ * Serializes the given message to binary data (in protobuf wire
822
+ * format), writing to the given BinaryWriter.
823
+ * @param {!proto.Spic.HistoryProto.SearchRequest} message
824
+ * @param {!jspb.BinaryWriter} writer
825
+ * @suppress {unusedLocalVariables} f is only used for nested messages
826
+ */
827
+ proto.Spic.HistoryProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
828
+ var f = undefined;
829
+ f = message.getComponentIdList();
830
+ if (f.length > 0) {
831
+ writer.writeRepeatedString(
832
+ 1,
833
+ f
834
+ );
835
+ }
836
+ f = message.getDateFrom();
837
+ if (f != null) {
838
+ writer.writeMessage(
839
+ 2,
840
+ f,
841
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
842
+ );
843
+ }
844
+ f = message.getDateTo();
845
+ if (f != null) {
846
+ writer.writeMessage(
847
+ 3,
848
+ f,
849
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
850
+ );
851
+ }
852
+ };
853
+
854
+
855
+ /**
856
+ * repeated string component_id = 1;
857
+ * @return {!Array<string>}
858
+ */
859
+ proto.Spic.HistoryProto.SearchRequest.prototype.getComponentIdList = function() {
860
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
861
+ };
862
+
863
+
864
+ /**
865
+ * @param {!Array<string>} value
866
+ * @return {!proto.Spic.HistoryProto.SearchRequest} returns this
867
+ */
868
+ proto.Spic.HistoryProto.SearchRequest.prototype.setComponentIdList = function(value) {
869
+ return jspb.Message.setField(this, 1, value || []);
870
+ };
871
+
872
+
873
+ /**
874
+ * @param {string} value
875
+ * @param {number=} opt_index
876
+ * @return {!proto.Spic.HistoryProto.SearchRequest} returns this
877
+ */
878
+ proto.Spic.HistoryProto.SearchRequest.prototype.addComponentId = function(value, opt_index) {
879
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
880
+ };
881
+
882
+
883
+ /**
884
+ * Clears the list making it empty but non-null.
885
+ * @return {!proto.Spic.HistoryProto.SearchRequest} returns this
886
+ */
887
+ proto.Spic.HistoryProto.SearchRequest.prototype.clearComponentIdList = function() {
888
+ return this.setComponentIdList([]);
889
+ };
890
+
891
+
892
+ /**
893
+ * optional google.protobuf.Timestamp date_from = 2;
894
+ * @return {?proto.google.protobuf.Timestamp}
895
+ */
896
+ proto.Spic.HistoryProto.SearchRequest.prototype.getDateFrom = function() {
897
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
898
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
899
+ };
900
+
901
+
902
+ /**
903
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
904
+ * @return {!proto.Spic.HistoryProto.SearchRequest} returns this
905
+ */
906
+ proto.Spic.HistoryProto.SearchRequest.prototype.setDateFrom = function(value) {
907
+ return jspb.Message.setWrapperField(this, 2, value);
908
+ };
909
+
910
+
911
+ /**
912
+ * Clears the message field making it undefined.
913
+ * @return {!proto.Spic.HistoryProto.SearchRequest} returns this
914
+ */
915
+ proto.Spic.HistoryProto.SearchRequest.prototype.clearDateFrom = function() {
916
+ return this.setDateFrom(undefined);
917
+ };
918
+
919
+
920
+ /**
921
+ * Returns whether this field is set.
922
+ * @return {boolean}
923
+ */
924
+ proto.Spic.HistoryProto.SearchRequest.prototype.hasDateFrom = function() {
925
+ return jspb.Message.getField(this, 2) != null;
926
+ };
927
+
928
+
929
+ /**
930
+ * optional google.protobuf.Timestamp date_to = 3;
931
+ * @return {?proto.google.protobuf.Timestamp}
932
+ */
933
+ proto.Spic.HistoryProto.SearchRequest.prototype.getDateTo = function() {
934
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
935
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
936
+ };
937
+
938
+
939
+ /**
940
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
941
+ * @return {!proto.Spic.HistoryProto.SearchRequest} returns this
942
+ */
943
+ proto.Spic.HistoryProto.SearchRequest.prototype.setDateTo = function(value) {
944
+ return jspb.Message.setWrapperField(this, 3, value);
945
+ };
946
+
947
+
948
+ /**
949
+ * Clears the message field making it undefined.
950
+ * @return {!proto.Spic.HistoryProto.SearchRequest} returns this
951
+ */
952
+ proto.Spic.HistoryProto.SearchRequest.prototype.clearDateTo = function() {
953
+ return this.setDateTo(undefined);
954
+ };
955
+
956
+
957
+ /**
958
+ * Returns whether this field is set.
959
+ * @return {boolean}
960
+ */
961
+ proto.Spic.HistoryProto.SearchRequest.prototype.hasDateTo = function() {
962
+ return jspb.Message.getField(this, 3) != null;
963
+ };
964
+
965
+
966
+
967
+
968
+
969
+ if (jspb.Message.GENERATE_TO_OBJECT) {
970
+ /**
971
+ * Creates an object representation of this proto.
972
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
973
+ * Optional fields that are not set will be set to undefined.
974
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
975
+ * For the list of reserved names please see:
976
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
977
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
978
+ * JSPB instance for transitional soy proto support:
979
+ * http://goto/soy-param-migration
980
+ * @return {!Object}
981
+ */
982
+ proto.Spic.HistoryProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
983
+ return proto.Spic.HistoryProto.SearchReply.toObject(opt_includeInstance, this);
984
+ };
985
+
986
+
987
+ /**
988
+ * Static version of the {@see toObject} method.
989
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
990
+ * the JSPB instance for transitional soy proto support:
991
+ * http://goto/soy-param-migration
992
+ * @param {!proto.Spic.HistoryProto.SearchReply} msg The msg instance to transform.
993
+ * @return {!Object}
994
+ * @suppress {unusedLocalVariables} f is only used for nested messages
995
+ */
996
+ proto.Spic.HistoryProto.SearchReply.toObject = function(includeInstance, msg) {
997
+ var f, obj = {
998
+ componentsMap: (f = msg.getComponentsMap()) ? f.toObject(includeInstance, proto.Spic.HistoryProto.ComponentHistory.toObject) : []
999
+ };
1000
+
1001
+ if (includeInstance) {
1002
+ obj.$jspbMessageInstance = msg;
1003
+ }
1004
+ return obj;
1005
+ };
1006
+ }
1007
+
1008
+
1009
+ /**
1010
+ * Deserializes binary data (in protobuf wire format).
1011
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1012
+ * @return {!proto.Spic.HistoryProto.SearchReply}
1013
+ */
1014
+ proto.Spic.HistoryProto.SearchReply.deserializeBinary = function(bytes) {
1015
+ var reader = new jspb.BinaryReader(bytes);
1016
+ var msg = new proto.Spic.HistoryProto.SearchReply;
1017
+ return proto.Spic.HistoryProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Deserializes binary data (in protobuf wire format) from the
1023
+ * given reader into the given message object.
1024
+ * @param {!proto.Spic.HistoryProto.SearchReply} msg The message object to deserialize into.
1025
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1026
+ * @return {!proto.Spic.HistoryProto.SearchReply}
1027
+ */
1028
+ proto.Spic.HistoryProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1029
+ while (reader.nextField()) {
1030
+ if (reader.isEndGroup()) {
1031
+ break;
1032
+ }
1033
+ var field = reader.getFieldNumber();
1034
+ switch (field) {
1035
+ case 1:
1036
+ var value = msg.getComponentsMap();
1037
+ reader.readMessage(value, function(message, reader) {
1038
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.Spic.HistoryProto.ComponentHistory.deserializeBinaryFromReader, "", new proto.Spic.HistoryProto.ComponentHistory());
1039
+ });
1040
+ break;
1041
+ default:
1042
+ reader.skipField();
1043
+ break;
1044
+ }
1045
+ }
1046
+ return msg;
1047
+ };
1048
+
1049
+
1050
+ /**
1051
+ * Serializes the message to binary data (in protobuf wire format).
1052
+ * @return {!Uint8Array}
1053
+ */
1054
+ proto.Spic.HistoryProto.SearchReply.prototype.serializeBinary = function() {
1055
+ var writer = new jspb.BinaryWriter();
1056
+ proto.Spic.HistoryProto.SearchReply.serializeBinaryToWriter(this, writer);
1057
+ return writer.getResultBuffer();
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * Serializes the given message to binary data (in protobuf wire
1063
+ * format), writing to the given BinaryWriter.
1064
+ * @param {!proto.Spic.HistoryProto.SearchReply} message
1065
+ * @param {!jspb.BinaryWriter} writer
1066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1067
+ */
1068
+ proto.Spic.HistoryProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1069
+ var f = undefined;
1070
+ f = message.getComponentsMap(true);
1071
+ if (f && f.getLength() > 0) {
1072
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.Spic.HistoryProto.ComponentHistory.serializeBinaryToWriter);
1073
+ }
1074
+ };
1075
+
1076
+
1077
+ /**
1078
+ * map<string, ComponentHistory> components = 1;
1079
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1080
+ * empty, instead returning `undefined`
1081
+ * @return {!jspb.Map<string,!proto.Spic.HistoryProto.ComponentHistory>}
1082
+ */
1083
+ proto.Spic.HistoryProto.SearchReply.prototype.getComponentsMap = function(opt_noLazyCreate) {
1084
+ return /** @type {!jspb.Map<string,!proto.Spic.HistoryProto.ComponentHistory>} */ (
1085
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
1086
+ proto.Spic.HistoryProto.ComponentHistory));
1087
+ };
1088
+
1089
+
1090
+ /**
1091
+ * Clears values from the map. The map will be non-null.
1092
+ * @return {!proto.Spic.HistoryProto.SearchReply} returns this
1093
+ */
1094
+ proto.Spic.HistoryProto.SearchReply.prototype.clearComponentsMap = function() {
1095
+ this.getComponentsMap().clear();
1096
+ return this;
1097
+ };
1098
+
1099
+
1100
+ goog.object.extend(exports, proto.Spic);