@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,1294 @@
1
+ // source: platform.activity_log.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
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
29
+ goog.object.extend(proto, platform_pagination_pb);
30
+ goog.exportSymbol('proto.Platform.ActivityLogProto', null, global);
31
+ goog.exportSymbol('proto.Platform.ActivityLogProto.ActivityType', null, global);
32
+ goog.exportSymbol('proto.Platform.ActivityLogProto.CreateRequest', null, global);
33
+ goog.exportSymbol('proto.Platform.ActivityLogProto.SearchReply', null, global);
34
+ goog.exportSymbol('proto.Platform.ActivityLogProto.SearchRequest', null, global);
35
+ /**
36
+ * Generated by JsPbCodeGenerator.
37
+ * @param {Array=} opt_data Optional initial data array, typically from a
38
+ * server response, or constructed directly in Javascript. The array is used
39
+ * in place and becomes part of the constructed object. It is not cloned.
40
+ * If no data is provided, the constructed object will be empty, but still
41
+ * valid.
42
+ * @extends {jspb.Message}
43
+ * @constructor
44
+ */
45
+ proto.Platform.ActivityLogProto = function(opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
+ };
48
+ goog.inherits(proto.Platform.ActivityLogProto, jspb.Message);
49
+ if (goog.DEBUG && !COMPILED) {
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.Platform.ActivityLogProto.displayName = 'proto.Platform.ActivityLogProto';
55
+ }
56
+ /**
57
+ * Generated by JsPbCodeGenerator.
58
+ * @param {Array=} opt_data Optional initial data array, typically from a
59
+ * server response, or constructed directly in Javascript. The array is used
60
+ * in place and becomes part of the constructed object. It is not cloned.
61
+ * If no data is provided, the constructed object will be empty, but still
62
+ * valid.
63
+ * @extends {jspb.Message}
64
+ * @constructor
65
+ */
66
+ proto.Platform.ActivityLogProto.CreateRequest = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
+ };
69
+ goog.inherits(proto.Platform.ActivityLogProto.CreateRequest, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.Platform.ActivityLogProto.CreateRequest.displayName = 'proto.Platform.ActivityLogProto.CreateRequest';
76
+ }
77
+ /**
78
+ * Generated by JsPbCodeGenerator.
79
+ * @param {Array=} opt_data Optional initial data array, typically from a
80
+ * server response, or constructed directly in Javascript. The array is used
81
+ * in place and becomes part of the constructed object. It is not cloned.
82
+ * If no data is provided, the constructed object will be empty, but still
83
+ * valid.
84
+ * @extends {jspb.Message}
85
+ * @constructor
86
+ */
87
+ proto.Platform.ActivityLogProto.SearchRequest = function(opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.ActivityLogProto.SearchRequest.repeatedFields_, null);
89
+ };
90
+ goog.inherits(proto.Platform.ActivityLogProto.SearchRequest, jspb.Message);
91
+ if (goog.DEBUG && !COMPILED) {
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.Platform.ActivityLogProto.SearchRequest.displayName = 'proto.Platform.ActivityLogProto.SearchRequest';
97
+ }
98
+ /**
99
+ * Generated by JsPbCodeGenerator.
100
+ * @param {Array=} opt_data Optional initial data array, typically from a
101
+ * server response, or constructed directly in Javascript. The array is used
102
+ * in place and becomes part of the constructed object. It is not cloned.
103
+ * If no data is provided, the constructed object will be empty, but still
104
+ * valid.
105
+ * @extends {jspb.Message}
106
+ * @constructor
107
+ */
108
+ proto.Platform.ActivityLogProto.SearchReply = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.ActivityLogProto.SearchReply.repeatedFields_, null);
110
+ };
111
+ goog.inherits(proto.Platform.ActivityLogProto.SearchReply, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.Platform.ActivityLogProto.SearchReply.displayName = 'proto.Platform.ActivityLogProto.SearchReply';
118
+ }
119
+
120
+
121
+
122
+ if (jspb.Message.GENERATE_TO_OBJECT) {
123
+ /**
124
+ * Creates an object representation of this proto.
125
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
126
+ * Optional fields that are not set will be set to undefined.
127
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
128
+ * For the list of reserved names please see:
129
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
130
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
131
+ * JSPB instance for transitional soy proto support:
132
+ * http://goto/soy-param-migration
133
+ * @return {!Object}
134
+ */
135
+ proto.Platform.ActivityLogProto.prototype.toObject = function(opt_includeInstance) {
136
+ return proto.Platform.ActivityLogProto.toObject(opt_includeInstance, this);
137
+ };
138
+
139
+
140
+ /**
141
+ * Static version of the {@see toObject} method.
142
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
143
+ * the JSPB instance for transitional soy proto support:
144
+ * http://goto/soy-param-migration
145
+ * @param {!proto.Platform.ActivityLogProto} msg The msg instance to transform.
146
+ * @return {!Object}
147
+ * @suppress {unusedLocalVariables} f is only used for nested messages
148
+ */
149
+ proto.Platform.ActivityLogProto.toObject = function(includeInstance, msg) {
150
+ var f, obj = {
151
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
152
+ date: (f = msg.getDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
153
+ adminId: jspb.Message.getFieldWithDefault(msg, 3, 0),
154
+ adminName: jspb.Message.getFieldWithDefault(msg, 4, ""),
155
+ text: jspb.Message.getFieldWithDefault(msg, 5, ""),
156
+ type: jspb.Message.getFieldWithDefault(msg, 6, 0)
157
+ };
158
+
159
+ if (includeInstance) {
160
+ obj.$jspbMessageInstance = msg;
161
+ }
162
+ return obj;
163
+ };
164
+ }
165
+
166
+
167
+ /**
168
+ * Deserializes binary data (in protobuf wire format).
169
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
170
+ * @return {!proto.Platform.ActivityLogProto}
171
+ */
172
+ proto.Platform.ActivityLogProto.deserializeBinary = function(bytes) {
173
+ var reader = new jspb.BinaryReader(bytes);
174
+ var msg = new proto.Platform.ActivityLogProto;
175
+ return proto.Platform.ActivityLogProto.deserializeBinaryFromReader(msg, reader);
176
+ };
177
+
178
+
179
+ /**
180
+ * Deserializes binary data (in protobuf wire format) from the
181
+ * given reader into the given message object.
182
+ * @param {!proto.Platform.ActivityLogProto} msg The message object to deserialize into.
183
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
184
+ * @return {!proto.Platform.ActivityLogProto}
185
+ */
186
+ proto.Platform.ActivityLogProto.deserializeBinaryFromReader = function(msg, reader) {
187
+ while (reader.nextField()) {
188
+ if (reader.isEndGroup()) {
189
+ break;
190
+ }
191
+ var field = reader.getFieldNumber();
192
+ switch (field) {
193
+ case 1:
194
+ var value = /** @type {number} */ (reader.readInt64());
195
+ msg.setId(value);
196
+ break;
197
+ case 2:
198
+ var value = new google_protobuf_timestamp_pb.Timestamp;
199
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
200
+ msg.setDate(value);
201
+ break;
202
+ case 3:
203
+ var value = /** @type {number} */ (reader.readInt64());
204
+ msg.setAdminId(value);
205
+ break;
206
+ case 4:
207
+ var value = /** @type {string} */ (reader.readString());
208
+ msg.setAdminName(value);
209
+ break;
210
+ case 5:
211
+ var value = /** @type {string} */ (reader.readString());
212
+ msg.setText(value);
213
+ break;
214
+ case 6:
215
+ var value = /** @type {!proto.Platform.ActivityLogProto.ActivityType} */ (reader.readEnum());
216
+ msg.setType(value);
217
+ break;
218
+ default:
219
+ reader.skipField();
220
+ break;
221
+ }
222
+ }
223
+ return msg;
224
+ };
225
+
226
+
227
+ /**
228
+ * Serializes the message to binary data (in protobuf wire format).
229
+ * @return {!Uint8Array}
230
+ */
231
+ proto.Platform.ActivityLogProto.prototype.serializeBinary = function() {
232
+ var writer = new jspb.BinaryWriter();
233
+ proto.Platform.ActivityLogProto.serializeBinaryToWriter(this, writer);
234
+ return writer.getResultBuffer();
235
+ };
236
+
237
+
238
+ /**
239
+ * Serializes the given message to binary data (in protobuf wire
240
+ * format), writing to the given BinaryWriter.
241
+ * @param {!proto.Platform.ActivityLogProto} message
242
+ * @param {!jspb.BinaryWriter} writer
243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
244
+ */
245
+ proto.Platform.ActivityLogProto.serializeBinaryToWriter = function(message, writer) {
246
+ var f = undefined;
247
+ f = message.getId();
248
+ if (f !== 0) {
249
+ writer.writeInt64(
250
+ 1,
251
+ f
252
+ );
253
+ }
254
+ f = message.getDate();
255
+ if (f != null) {
256
+ writer.writeMessage(
257
+ 2,
258
+ f,
259
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
260
+ );
261
+ }
262
+ f = message.getAdminId();
263
+ if (f !== 0) {
264
+ writer.writeInt64(
265
+ 3,
266
+ f
267
+ );
268
+ }
269
+ f = message.getAdminName();
270
+ if (f.length > 0) {
271
+ writer.writeString(
272
+ 4,
273
+ f
274
+ );
275
+ }
276
+ f = message.getText();
277
+ if (f.length > 0) {
278
+ writer.writeString(
279
+ 5,
280
+ f
281
+ );
282
+ }
283
+ f = message.getType();
284
+ if (f !== 0.0) {
285
+ writer.writeEnum(
286
+ 6,
287
+ f
288
+ );
289
+ }
290
+ };
291
+
292
+
293
+ /**
294
+ * @enum {number}
295
+ */
296
+ proto.Platform.ActivityLogProto.ActivityType = {
297
+ CABINET: 0,
298
+ GROUP: 1,
299
+ USER: 2,
300
+ ACCESS: 3,
301
+ ADMINISTRATOR: 4,
302
+ SNIFFER: 5
303
+ };
304
+
305
+
306
+
307
+
308
+ if (jspb.Message.GENERATE_TO_OBJECT) {
309
+ /**
310
+ * Creates an object representation of this proto.
311
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
312
+ * Optional fields that are not set will be set to undefined.
313
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
314
+ * For the list of reserved names please see:
315
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
316
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
317
+ * JSPB instance for transitional soy proto support:
318
+ * http://goto/soy-param-migration
319
+ * @return {!Object}
320
+ */
321
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
322
+ return proto.Platform.ActivityLogProto.CreateRequest.toObject(opt_includeInstance, this);
323
+ };
324
+
325
+
326
+ /**
327
+ * Static version of the {@see toObject} method.
328
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
329
+ * the JSPB instance for transitional soy proto support:
330
+ * http://goto/soy-param-migration
331
+ * @param {!proto.Platform.ActivityLogProto.CreateRequest} msg The msg instance to transform.
332
+ * @return {!Object}
333
+ * @suppress {unusedLocalVariables} f is only used for nested messages
334
+ */
335
+ proto.Platform.ActivityLogProto.CreateRequest.toObject = function(includeInstance, msg) {
336
+ var f, obj = {
337
+ date: (f = msg.getDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
338
+ adminId: jspb.Message.getFieldWithDefault(msg, 2, 0),
339
+ adminName: jspb.Message.getFieldWithDefault(msg, 3, ""),
340
+ text: jspb.Message.getFieldWithDefault(msg, 4, ""),
341
+ type: jspb.Message.getFieldWithDefault(msg, 5, 0)
342
+ };
343
+
344
+ if (includeInstance) {
345
+ obj.$jspbMessageInstance = msg;
346
+ }
347
+ return obj;
348
+ };
349
+ }
350
+
351
+
352
+ /**
353
+ * Deserializes binary data (in protobuf wire format).
354
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
355
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest}
356
+ */
357
+ proto.Platform.ActivityLogProto.CreateRequest.deserializeBinary = function(bytes) {
358
+ var reader = new jspb.BinaryReader(bytes);
359
+ var msg = new proto.Platform.ActivityLogProto.CreateRequest;
360
+ return proto.Platform.ActivityLogProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
361
+ };
362
+
363
+
364
+ /**
365
+ * Deserializes binary data (in protobuf wire format) from the
366
+ * given reader into the given message object.
367
+ * @param {!proto.Platform.ActivityLogProto.CreateRequest} msg The message object to deserialize into.
368
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
369
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest}
370
+ */
371
+ proto.Platform.ActivityLogProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
372
+ while (reader.nextField()) {
373
+ if (reader.isEndGroup()) {
374
+ break;
375
+ }
376
+ var field = reader.getFieldNumber();
377
+ switch (field) {
378
+ case 1:
379
+ var value = new google_protobuf_timestamp_pb.Timestamp;
380
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
381
+ msg.setDate(value);
382
+ break;
383
+ case 2:
384
+ var value = /** @type {number} */ (reader.readInt64());
385
+ msg.setAdminId(value);
386
+ break;
387
+ case 3:
388
+ var value = /** @type {string} */ (reader.readString());
389
+ msg.setAdminName(value);
390
+ break;
391
+ case 4:
392
+ var value = /** @type {string} */ (reader.readString());
393
+ msg.setText(value);
394
+ break;
395
+ case 5:
396
+ var value = /** @type {!proto.Platform.ActivityLogProto.ActivityType} */ (reader.readEnum());
397
+ msg.setType(value);
398
+ break;
399
+ default:
400
+ reader.skipField();
401
+ break;
402
+ }
403
+ }
404
+ return msg;
405
+ };
406
+
407
+
408
+ /**
409
+ * Serializes the message to binary data (in protobuf wire format).
410
+ * @return {!Uint8Array}
411
+ */
412
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.serializeBinary = function() {
413
+ var writer = new jspb.BinaryWriter();
414
+ proto.Platform.ActivityLogProto.CreateRequest.serializeBinaryToWriter(this, writer);
415
+ return writer.getResultBuffer();
416
+ };
417
+
418
+
419
+ /**
420
+ * Serializes the given message to binary data (in protobuf wire
421
+ * format), writing to the given BinaryWriter.
422
+ * @param {!proto.Platform.ActivityLogProto.CreateRequest} message
423
+ * @param {!jspb.BinaryWriter} writer
424
+ * @suppress {unusedLocalVariables} f is only used for nested messages
425
+ */
426
+ proto.Platform.ActivityLogProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
427
+ var f = undefined;
428
+ f = message.getDate();
429
+ if (f != null) {
430
+ writer.writeMessage(
431
+ 1,
432
+ f,
433
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
434
+ );
435
+ }
436
+ f = message.getAdminId();
437
+ if (f !== 0) {
438
+ writer.writeInt64(
439
+ 2,
440
+ f
441
+ );
442
+ }
443
+ f = message.getAdminName();
444
+ if (f.length > 0) {
445
+ writer.writeString(
446
+ 3,
447
+ f
448
+ );
449
+ }
450
+ f = message.getText();
451
+ if (f.length > 0) {
452
+ writer.writeString(
453
+ 4,
454
+ f
455
+ );
456
+ }
457
+ f = message.getType();
458
+ if (f !== 0.0) {
459
+ writer.writeEnum(
460
+ 5,
461
+ f
462
+ );
463
+ }
464
+ };
465
+
466
+
467
+ /**
468
+ * optional google.protobuf.Timestamp date = 1;
469
+ * @return {?proto.google.protobuf.Timestamp}
470
+ */
471
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.getDate = function() {
472
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
473
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
474
+ };
475
+
476
+
477
+ /**
478
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
479
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest} returns this
480
+ */
481
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.setDate = function(value) {
482
+ return jspb.Message.setWrapperField(this, 1, value);
483
+ };
484
+
485
+
486
+ /**
487
+ * Clears the message field making it undefined.
488
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest} returns this
489
+ */
490
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.clearDate = function() {
491
+ return this.setDate(undefined);
492
+ };
493
+
494
+
495
+ /**
496
+ * Returns whether this field is set.
497
+ * @return {boolean}
498
+ */
499
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.hasDate = function() {
500
+ return jspb.Message.getField(this, 1) != null;
501
+ };
502
+
503
+
504
+ /**
505
+ * optional int64 admin_id = 2;
506
+ * @return {number}
507
+ */
508
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.getAdminId = function() {
509
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
510
+ };
511
+
512
+
513
+ /**
514
+ * @param {number} value
515
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest} returns this
516
+ */
517
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.setAdminId = function(value) {
518
+ return jspb.Message.setProto3IntField(this, 2, value);
519
+ };
520
+
521
+
522
+ /**
523
+ * optional string admin_name = 3;
524
+ * @return {string}
525
+ */
526
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.getAdminName = function() {
527
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
528
+ };
529
+
530
+
531
+ /**
532
+ * @param {string} value
533
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest} returns this
534
+ */
535
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.setAdminName = function(value) {
536
+ return jspb.Message.setProto3StringField(this, 3, value);
537
+ };
538
+
539
+
540
+ /**
541
+ * optional string text = 4;
542
+ * @return {string}
543
+ */
544
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.getText = function() {
545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
546
+ };
547
+
548
+
549
+ /**
550
+ * @param {string} value
551
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest} returns this
552
+ */
553
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.setText = function(value) {
554
+ return jspb.Message.setProto3StringField(this, 4, value);
555
+ };
556
+
557
+
558
+ /**
559
+ * optional ActivityType type = 5;
560
+ * @return {!proto.Platform.ActivityLogProto.ActivityType}
561
+ */
562
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.getType = function() {
563
+ return /** @type {!proto.Platform.ActivityLogProto.ActivityType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {!proto.Platform.ActivityLogProto.ActivityType} value
569
+ * @return {!proto.Platform.ActivityLogProto.CreateRequest} returns this
570
+ */
571
+ proto.Platform.ActivityLogProto.CreateRequest.prototype.setType = function(value) {
572
+ return jspb.Message.setProto3EnumField(this, 5, value);
573
+ };
574
+
575
+
576
+
577
+ /**
578
+ * List of repeated fields within this message type.
579
+ * @private {!Array<number>}
580
+ * @const
581
+ */
582
+ proto.Platform.ActivityLogProto.SearchRequest.repeatedFields_ = [7];
583
+
584
+
585
+
586
+ if (jspb.Message.GENERATE_TO_OBJECT) {
587
+ /**
588
+ * Creates an object representation of this proto.
589
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
590
+ * Optional fields that are not set will be set to undefined.
591
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
592
+ * For the list of reserved names please see:
593
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
594
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
595
+ * JSPB instance for transitional soy proto support:
596
+ * http://goto/soy-param-migration
597
+ * @return {!Object}
598
+ */
599
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
600
+ return proto.Platform.ActivityLogProto.SearchRequest.toObject(opt_includeInstance, this);
601
+ };
602
+
603
+
604
+ /**
605
+ * Static version of the {@see toObject} method.
606
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
607
+ * the JSPB instance for transitional soy proto support:
608
+ * http://goto/soy-param-migration
609
+ * @param {!proto.Platform.ActivityLogProto.SearchRequest} msg The msg instance to transform.
610
+ * @return {!Object}
611
+ * @suppress {unusedLocalVariables} f is only used for nested messages
612
+ */
613
+ proto.Platform.ActivityLogProto.SearchRequest.toObject = function(includeInstance, msg) {
614
+ var f, obj = {
615
+ adminId: jspb.Message.getFieldWithDefault(msg, 1, 0),
616
+ adminName: jspb.Message.getFieldWithDefault(msg, 2, ""),
617
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
618
+ count: jspb.Message.getFieldWithDefault(msg, 4, 0),
619
+ dateFrom: (f = msg.getDateFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
620
+ dateTo: (f = msg.getDateTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
621
+ typesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
622
+ };
623
+
624
+ if (includeInstance) {
625
+ obj.$jspbMessageInstance = msg;
626
+ }
627
+ return obj;
628
+ };
629
+ }
630
+
631
+
632
+ /**
633
+ * Deserializes binary data (in protobuf wire format).
634
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
635
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest}
636
+ */
637
+ proto.Platform.ActivityLogProto.SearchRequest.deserializeBinary = function(bytes) {
638
+ var reader = new jspb.BinaryReader(bytes);
639
+ var msg = new proto.Platform.ActivityLogProto.SearchRequest;
640
+ return proto.Platform.ActivityLogProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
641
+ };
642
+
643
+
644
+ /**
645
+ * Deserializes binary data (in protobuf wire format) from the
646
+ * given reader into the given message object.
647
+ * @param {!proto.Platform.ActivityLogProto.SearchRequest} msg The message object to deserialize into.
648
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
649
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest}
650
+ */
651
+ proto.Platform.ActivityLogProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
652
+ while (reader.nextField()) {
653
+ if (reader.isEndGroup()) {
654
+ break;
655
+ }
656
+ var field = reader.getFieldNumber();
657
+ switch (field) {
658
+ case 1:
659
+ var value = /** @type {number} */ (reader.readInt64());
660
+ msg.setAdminId(value);
661
+ break;
662
+ case 2:
663
+ var value = /** @type {string} */ (reader.readString());
664
+ msg.setAdminName(value);
665
+ break;
666
+ case 3:
667
+ var value = /** @type {number} */ (reader.readInt32());
668
+ msg.setPage(value);
669
+ break;
670
+ case 4:
671
+ var value = /** @type {number} */ (reader.readInt32());
672
+ msg.setCount(value);
673
+ break;
674
+ case 5:
675
+ var value = new google_protobuf_timestamp_pb.Timestamp;
676
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
677
+ msg.setDateFrom(value);
678
+ break;
679
+ case 6:
680
+ var value = new google_protobuf_timestamp_pb.Timestamp;
681
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
682
+ msg.setDateTo(value);
683
+ break;
684
+ case 7:
685
+ var values = /** @type {!Array<!proto.Platform.ActivityLogProto.ActivityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
686
+ for (var i = 0; i < values.length; i++) {
687
+ msg.addTypes(values[i]);
688
+ }
689
+ break;
690
+ default:
691
+ reader.skipField();
692
+ break;
693
+ }
694
+ }
695
+ return msg;
696
+ };
697
+
698
+
699
+ /**
700
+ * Serializes the message to binary data (in protobuf wire format).
701
+ * @return {!Uint8Array}
702
+ */
703
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.serializeBinary = function() {
704
+ var writer = new jspb.BinaryWriter();
705
+ proto.Platform.ActivityLogProto.SearchRequest.serializeBinaryToWriter(this, writer);
706
+ return writer.getResultBuffer();
707
+ };
708
+
709
+
710
+ /**
711
+ * Serializes the given message to binary data (in protobuf wire
712
+ * format), writing to the given BinaryWriter.
713
+ * @param {!proto.Platform.ActivityLogProto.SearchRequest} message
714
+ * @param {!jspb.BinaryWriter} writer
715
+ * @suppress {unusedLocalVariables} f is only used for nested messages
716
+ */
717
+ proto.Platform.ActivityLogProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
718
+ var f = undefined;
719
+ f = message.getAdminId();
720
+ if (f !== 0) {
721
+ writer.writeInt64(
722
+ 1,
723
+ f
724
+ );
725
+ }
726
+ f = message.getAdminName();
727
+ if (f.length > 0) {
728
+ writer.writeString(
729
+ 2,
730
+ f
731
+ );
732
+ }
733
+ f = message.getPage();
734
+ if (f !== 0) {
735
+ writer.writeInt32(
736
+ 3,
737
+ f
738
+ );
739
+ }
740
+ f = message.getCount();
741
+ if (f !== 0) {
742
+ writer.writeInt32(
743
+ 4,
744
+ f
745
+ );
746
+ }
747
+ f = message.getDateFrom();
748
+ if (f != null) {
749
+ writer.writeMessage(
750
+ 5,
751
+ f,
752
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
753
+ );
754
+ }
755
+ f = message.getDateTo();
756
+ if (f != null) {
757
+ writer.writeMessage(
758
+ 6,
759
+ f,
760
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
761
+ );
762
+ }
763
+ f = message.getTypesList();
764
+ if (f.length > 0) {
765
+ writer.writePackedEnum(
766
+ 7,
767
+ f
768
+ );
769
+ }
770
+ };
771
+
772
+
773
+ /**
774
+ * optional int64 admin_id = 1;
775
+ * @return {number}
776
+ */
777
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.getAdminId = function() {
778
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
779
+ };
780
+
781
+
782
+ /**
783
+ * @param {number} value
784
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
785
+ */
786
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.setAdminId = function(value) {
787
+ return jspb.Message.setProto3IntField(this, 1, value);
788
+ };
789
+
790
+
791
+ /**
792
+ * optional string admin_name = 2;
793
+ * @return {string}
794
+ */
795
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.getAdminName = function() {
796
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
797
+ };
798
+
799
+
800
+ /**
801
+ * @param {string} value
802
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
803
+ */
804
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.setAdminName = function(value) {
805
+ return jspb.Message.setProto3StringField(this, 2, value);
806
+ };
807
+
808
+
809
+ /**
810
+ * optional int32 page = 3;
811
+ * @return {number}
812
+ */
813
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.getPage = function() {
814
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
815
+ };
816
+
817
+
818
+ /**
819
+ * @param {number} value
820
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
821
+ */
822
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.setPage = function(value) {
823
+ return jspb.Message.setProto3IntField(this, 3, value);
824
+ };
825
+
826
+
827
+ /**
828
+ * optional int32 count = 4;
829
+ * @return {number}
830
+ */
831
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.getCount = function() {
832
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
833
+ };
834
+
835
+
836
+ /**
837
+ * @param {number} value
838
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
839
+ */
840
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.setCount = function(value) {
841
+ return jspb.Message.setProto3IntField(this, 4, value);
842
+ };
843
+
844
+
845
+ /**
846
+ * optional google.protobuf.Timestamp date_from = 5;
847
+ * @return {?proto.google.protobuf.Timestamp}
848
+ */
849
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.getDateFrom = function() {
850
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
851
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
852
+ };
853
+
854
+
855
+ /**
856
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
857
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
858
+ */
859
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.setDateFrom = function(value) {
860
+ return jspb.Message.setWrapperField(this, 5, value);
861
+ };
862
+
863
+
864
+ /**
865
+ * Clears the message field making it undefined.
866
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
867
+ */
868
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.clearDateFrom = function() {
869
+ return this.setDateFrom(undefined);
870
+ };
871
+
872
+
873
+ /**
874
+ * Returns whether this field is set.
875
+ * @return {boolean}
876
+ */
877
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.hasDateFrom = function() {
878
+ return jspb.Message.getField(this, 5) != null;
879
+ };
880
+
881
+
882
+ /**
883
+ * optional google.protobuf.Timestamp date_to = 6;
884
+ * @return {?proto.google.protobuf.Timestamp}
885
+ */
886
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.getDateTo = function() {
887
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
888
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
889
+ };
890
+
891
+
892
+ /**
893
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
894
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
895
+ */
896
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.setDateTo = function(value) {
897
+ return jspb.Message.setWrapperField(this, 6, value);
898
+ };
899
+
900
+
901
+ /**
902
+ * Clears the message field making it undefined.
903
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
904
+ */
905
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.clearDateTo = function() {
906
+ return this.setDateTo(undefined);
907
+ };
908
+
909
+
910
+ /**
911
+ * Returns whether this field is set.
912
+ * @return {boolean}
913
+ */
914
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.hasDateTo = function() {
915
+ return jspb.Message.getField(this, 6) != null;
916
+ };
917
+
918
+
919
+ /**
920
+ * repeated ActivityType types = 7;
921
+ * @return {!Array<!proto.Platform.ActivityLogProto.ActivityType>}
922
+ */
923
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.getTypesList = function() {
924
+ return /** @type {!Array<!proto.Platform.ActivityLogProto.ActivityType>} */ (jspb.Message.getRepeatedField(this, 7));
925
+ };
926
+
927
+
928
+ /**
929
+ * @param {!Array<!proto.Platform.ActivityLogProto.ActivityType>} value
930
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
931
+ */
932
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.setTypesList = function(value) {
933
+ return jspb.Message.setField(this, 7, value || []);
934
+ };
935
+
936
+
937
+ /**
938
+ * @param {!proto.Platform.ActivityLogProto.ActivityType} value
939
+ * @param {number=} opt_index
940
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
941
+ */
942
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.addTypes = function(value, opt_index) {
943
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
944
+ };
945
+
946
+
947
+ /**
948
+ * Clears the list making it empty but non-null.
949
+ * @return {!proto.Platform.ActivityLogProto.SearchRequest} returns this
950
+ */
951
+ proto.Platform.ActivityLogProto.SearchRequest.prototype.clearTypesList = function() {
952
+ return this.setTypesList([]);
953
+ };
954
+
955
+
956
+
957
+ /**
958
+ * List of repeated fields within this message type.
959
+ * @private {!Array<number>}
960
+ * @const
961
+ */
962
+ proto.Platform.ActivityLogProto.SearchReply.repeatedFields_ = [1];
963
+
964
+
965
+
966
+ if (jspb.Message.GENERATE_TO_OBJECT) {
967
+ /**
968
+ * Creates an object representation of this proto.
969
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
970
+ * Optional fields that are not set will be set to undefined.
971
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
972
+ * For the list of reserved names please see:
973
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
974
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
975
+ * JSPB instance for transitional soy proto support:
976
+ * http://goto/soy-param-migration
977
+ * @return {!Object}
978
+ */
979
+ proto.Platform.ActivityLogProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
980
+ return proto.Platform.ActivityLogProto.SearchReply.toObject(opt_includeInstance, this);
981
+ };
982
+
983
+
984
+ /**
985
+ * Static version of the {@see toObject} method.
986
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
987
+ * the JSPB instance for transitional soy proto support:
988
+ * http://goto/soy-param-migration
989
+ * @param {!proto.Platform.ActivityLogProto.SearchReply} msg The msg instance to transform.
990
+ * @return {!Object}
991
+ * @suppress {unusedLocalVariables} f is only used for nested messages
992
+ */
993
+ proto.Platform.ActivityLogProto.SearchReply.toObject = function(includeInstance, msg) {
994
+ var f, obj = {
995
+ activitylogsList: jspb.Message.toObjectList(msg.getActivitylogsList(),
996
+ proto.Platform.ActivityLogProto.toObject, includeInstance),
997
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
998
+ };
999
+
1000
+ if (includeInstance) {
1001
+ obj.$jspbMessageInstance = msg;
1002
+ }
1003
+ return obj;
1004
+ };
1005
+ }
1006
+
1007
+
1008
+ /**
1009
+ * Deserializes binary data (in protobuf wire format).
1010
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1011
+ * @return {!proto.Platform.ActivityLogProto.SearchReply}
1012
+ */
1013
+ proto.Platform.ActivityLogProto.SearchReply.deserializeBinary = function(bytes) {
1014
+ var reader = new jspb.BinaryReader(bytes);
1015
+ var msg = new proto.Platform.ActivityLogProto.SearchReply;
1016
+ return proto.Platform.ActivityLogProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * Deserializes binary data (in protobuf wire format) from the
1022
+ * given reader into the given message object.
1023
+ * @param {!proto.Platform.ActivityLogProto.SearchReply} msg The message object to deserialize into.
1024
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1025
+ * @return {!proto.Platform.ActivityLogProto.SearchReply}
1026
+ */
1027
+ proto.Platform.ActivityLogProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1028
+ while (reader.nextField()) {
1029
+ if (reader.isEndGroup()) {
1030
+ break;
1031
+ }
1032
+ var field = reader.getFieldNumber();
1033
+ switch (field) {
1034
+ case 1:
1035
+ var value = new proto.Platform.ActivityLogProto;
1036
+ reader.readMessage(value,proto.Platform.ActivityLogProto.deserializeBinaryFromReader);
1037
+ msg.addActivitylogs(value);
1038
+ break;
1039
+ case 2:
1040
+ var value = new platform_pagination_pb.PaginationProto;
1041
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1042
+ msg.setPagination(value);
1043
+ break;
1044
+ default:
1045
+ reader.skipField();
1046
+ break;
1047
+ }
1048
+ }
1049
+ return msg;
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * Serializes the message to binary data (in protobuf wire format).
1055
+ * @return {!Uint8Array}
1056
+ */
1057
+ proto.Platform.ActivityLogProto.SearchReply.prototype.serializeBinary = function() {
1058
+ var writer = new jspb.BinaryWriter();
1059
+ proto.Platform.ActivityLogProto.SearchReply.serializeBinaryToWriter(this, writer);
1060
+ return writer.getResultBuffer();
1061
+ };
1062
+
1063
+
1064
+ /**
1065
+ * Serializes the given message to binary data (in protobuf wire
1066
+ * format), writing to the given BinaryWriter.
1067
+ * @param {!proto.Platform.ActivityLogProto.SearchReply} message
1068
+ * @param {!jspb.BinaryWriter} writer
1069
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1070
+ */
1071
+ proto.Platform.ActivityLogProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1072
+ var f = undefined;
1073
+ f = message.getActivitylogsList();
1074
+ if (f.length > 0) {
1075
+ writer.writeRepeatedMessage(
1076
+ 1,
1077
+ f,
1078
+ proto.Platform.ActivityLogProto.serializeBinaryToWriter
1079
+ );
1080
+ }
1081
+ f = message.getPagination();
1082
+ if (f != null) {
1083
+ writer.writeMessage(
1084
+ 2,
1085
+ f,
1086
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1087
+ );
1088
+ }
1089
+ };
1090
+
1091
+
1092
+ /**
1093
+ * repeated ActivityLogProto activityLogs = 1;
1094
+ * @return {!Array<!proto.Platform.ActivityLogProto>}
1095
+ */
1096
+ proto.Platform.ActivityLogProto.SearchReply.prototype.getActivitylogsList = function() {
1097
+ return /** @type{!Array<!proto.Platform.ActivityLogProto>} */ (
1098
+ jspb.Message.getRepeatedWrapperField(this, proto.Platform.ActivityLogProto, 1));
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * @param {!Array<!proto.Platform.ActivityLogProto>} value
1104
+ * @return {!proto.Platform.ActivityLogProto.SearchReply} returns this
1105
+ */
1106
+ proto.Platform.ActivityLogProto.SearchReply.prototype.setActivitylogsList = function(value) {
1107
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1108
+ };
1109
+
1110
+
1111
+ /**
1112
+ * @param {!proto.Platform.ActivityLogProto=} opt_value
1113
+ * @param {number=} opt_index
1114
+ * @return {!proto.Platform.ActivityLogProto}
1115
+ */
1116
+ proto.Platform.ActivityLogProto.SearchReply.prototype.addActivitylogs = function(opt_value, opt_index) {
1117
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.ActivityLogProto, opt_index);
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * Clears the list making it empty but non-null.
1123
+ * @return {!proto.Platform.ActivityLogProto.SearchReply} returns this
1124
+ */
1125
+ proto.Platform.ActivityLogProto.SearchReply.prototype.clearActivitylogsList = function() {
1126
+ return this.setActivitylogsList([]);
1127
+ };
1128
+
1129
+
1130
+ /**
1131
+ * optional PaginationProto pagination = 2;
1132
+ * @return {?proto.Platform.PaginationProto}
1133
+ */
1134
+ proto.Platform.ActivityLogProto.SearchReply.prototype.getPagination = function() {
1135
+ return /** @type{?proto.Platform.PaginationProto} */ (
1136
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * @param {?proto.Platform.PaginationProto|undefined} value
1142
+ * @return {!proto.Platform.ActivityLogProto.SearchReply} returns this
1143
+ */
1144
+ proto.Platform.ActivityLogProto.SearchReply.prototype.setPagination = function(value) {
1145
+ return jspb.Message.setWrapperField(this, 2, value);
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * Clears the message field making it undefined.
1151
+ * @return {!proto.Platform.ActivityLogProto.SearchReply} returns this
1152
+ */
1153
+ proto.Platform.ActivityLogProto.SearchReply.prototype.clearPagination = function() {
1154
+ return this.setPagination(undefined);
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * Returns whether this field is set.
1160
+ * @return {boolean}
1161
+ */
1162
+ proto.Platform.ActivityLogProto.SearchReply.prototype.hasPagination = function() {
1163
+ return jspb.Message.getField(this, 2) != null;
1164
+ };
1165
+
1166
+
1167
+ /**
1168
+ * optional int64 id = 1;
1169
+ * @return {number}
1170
+ */
1171
+ proto.Platform.ActivityLogProto.prototype.getId = function() {
1172
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1173
+ };
1174
+
1175
+
1176
+ /**
1177
+ * @param {number} value
1178
+ * @return {!proto.Platform.ActivityLogProto} returns this
1179
+ */
1180
+ proto.Platform.ActivityLogProto.prototype.setId = function(value) {
1181
+ return jspb.Message.setProto3IntField(this, 1, value);
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * optional google.protobuf.Timestamp date = 2;
1187
+ * @return {?proto.google.protobuf.Timestamp}
1188
+ */
1189
+ proto.Platform.ActivityLogProto.prototype.getDate = function() {
1190
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1191
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1192
+ };
1193
+
1194
+
1195
+ /**
1196
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1197
+ * @return {!proto.Platform.ActivityLogProto} returns this
1198
+ */
1199
+ proto.Platform.ActivityLogProto.prototype.setDate = function(value) {
1200
+ return jspb.Message.setWrapperField(this, 2, value);
1201
+ };
1202
+
1203
+
1204
+ /**
1205
+ * Clears the message field making it undefined.
1206
+ * @return {!proto.Platform.ActivityLogProto} returns this
1207
+ */
1208
+ proto.Platform.ActivityLogProto.prototype.clearDate = function() {
1209
+ return this.setDate(undefined);
1210
+ };
1211
+
1212
+
1213
+ /**
1214
+ * Returns whether this field is set.
1215
+ * @return {boolean}
1216
+ */
1217
+ proto.Platform.ActivityLogProto.prototype.hasDate = function() {
1218
+ return jspb.Message.getField(this, 2) != null;
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * optional int64 admin_id = 3;
1224
+ * @return {number}
1225
+ */
1226
+ proto.Platform.ActivityLogProto.prototype.getAdminId = function() {
1227
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * @param {number} value
1233
+ * @return {!proto.Platform.ActivityLogProto} returns this
1234
+ */
1235
+ proto.Platform.ActivityLogProto.prototype.setAdminId = function(value) {
1236
+ return jspb.Message.setProto3IntField(this, 3, value);
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * optional string admin_name = 4;
1242
+ * @return {string}
1243
+ */
1244
+ proto.Platform.ActivityLogProto.prototype.getAdminName = function() {
1245
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * @param {string} value
1251
+ * @return {!proto.Platform.ActivityLogProto} returns this
1252
+ */
1253
+ proto.Platform.ActivityLogProto.prototype.setAdminName = function(value) {
1254
+ return jspb.Message.setProto3StringField(this, 4, value);
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * optional string text = 5;
1260
+ * @return {string}
1261
+ */
1262
+ proto.Platform.ActivityLogProto.prototype.getText = function() {
1263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1264
+ };
1265
+
1266
+
1267
+ /**
1268
+ * @param {string} value
1269
+ * @return {!proto.Platform.ActivityLogProto} returns this
1270
+ */
1271
+ proto.Platform.ActivityLogProto.prototype.setText = function(value) {
1272
+ return jspb.Message.setProto3StringField(this, 5, value);
1273
+ };
1274
+
1275
+
1276
+ /**
1277
+ * optional ActivityType type = 6;
1278
+ * @return {!proto.Platform.ActivityLogProto.ActivityType}
1279
+ */
1280
+ proto.Platform.ActivityLogProto.prototype.getType = function() {
1281
+ return /** @type {!proto.Platform.ActivityLogProto.ActivityType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1282
+ };
1283
+
1284
+
1285
+ /**
1286
+ * @param {!proto.Platform.ActivityLogProto.ActivityType} value
1287
+ * @return {!proto.Platform.ActivityLogProto} returns this
1288
+ */
1289
+ proto.Platform.ActivityLogProto.prototype.setType = function(value) {
1290
+ return jspb.Message.setProto3EnumField(this, 6, value);
1291
+ };
1292
+
1293
+
1294
+ goog.object.extend(exports, proto.Platform);