@aceplus/smartace-api 2.1.0-drumtracker.9 → 2.1.0

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 (209) hide show
  1. package/auth.account_events_pb.d.ts +5 -0
  2. package/auth.account_events_pb.js +23 -0
  3. package/auth.account_events_pb_service.d.ts +3 -0
  4. package/auth.account_events_pb_service.js +3 -0
  5. package/auth.account_pb.d.ts +525 -0
  6. package/auth.account_pb.js +3983 -0
  7. package/auth.account_pb_service.d.ts +454 -0
  8. package/auth.account_pb_service.js +877 -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 +85 -0
  22. package/auth.authn_pb.js +625 -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 +258 -0
  26. package/auth.cluster_pb.js +1929 -0
  27. package/auth.cluster_pb_service.d.ts +139 -0
  28. package/auth.cluster_pb_service.js +221 -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 +277 -0
  34. package/auth.email_pb.js +1960 -0
  35. package/auth.email_pb_service.d.ts +121 -0
  36. package/auth.email_pb_service.js +182 -0
  37. package/auth.push_notification_pb.d.ts +187 -0
  38. package/auth.push_notification_pb.js +1289 -0
  39. package/auth.push_notification_pb_service.d.ts +121 -0
  40. package/auth.push_notification_pb_service.js +182 -0
  41. package/auth.sms_pb.d.ts +79 -0
  42. package/auth.sms_pb.js +575 -0
  43. package/auth.sms_pb_service.d.ts +83 -0
  44. package/auth.sms_pb_service.js +102 -0
  45. package/google/api/annotations_pb.d.ts +9 -0
  46. package/google/api/annotations_pb.js +54 -0
  47. package/google/api/annotations_pb_service.d.ts +3 -0
  48. package/google/api/annotations_pb_service.js +3 -0
  49. package/google/api/auth_pb.d.ts +150 -0
  50. package/google/api/auth_pb.js +1160 -0
  51. package/google/api/auth_pb_service.d.ts +3 -0
  52. package/google/api/auth_pb_service.js +3 -0
  53. package/google/api/backend_pb.d.ts +59 -0
  54. package/google/api/backend_pb.js +448 -0
  55. package/google/api/backend_pb_service.d.ts +3 -0
  56. package/google/api/backend_pb_service.js +3 -0
  57. package/google/api/billing_pb.d.ts +54 -0
  58. package/google/api/billing_pb.js +416 -0
  59. package/google/api/billing_pb_service.d.ts +3 -0
  60. package/google/api/billing_pb_service.js +3 -0
  61. package/google/api/client_pb.d.ts +12 -0
  62. package/google/api/client_pb.js +104 -0
  63. package/google/api/client_pb_service.d.ts +3 -0
  64. package/google/api/client_pb_service.js +3 -0
  65. package/google/api/config_change_pb.d.ts +72 -0
  66. package/google/api/config_change_pb.js +489 -0
  67. package/google/api/config_change_pb_service.d.ts +3 -0
  68. package/google/api/config_change_pb_service.js +3 -0
  69. package/google/api/consumer_pb.d.ts +65 -0
  70. package/google/api/consumer_pb.js +430 -0
  71. package/google/api/consumer_pb_service.d.ts +3 -0
  72. package/google/api/consumer_pb_service.js +3 -0
  73. package/google/api/context_pb.d.ts +59 -0
  74. package/google/api/context_pb.js +463 -0
  75. package/google/api/context_pb_service.d.ts +3 -0
  76. package/google/api/context_pb_service.js +3 -0
  77. package/google/api/control_pb.d.ts +25 -0
  78. package/google/api/control_pb.js +176 -0
  79. package/google/api/control_pb_service.d.ts +3 -0
  80. package/google/api/control_pb_service.js +3 -0
  81. package/google/api/distribution_pb.d.ts +235 -0
  82. package/google/api/distribution_pb.js +1805 -0
  83. package/google/api/distribution_pb_service.d.ts +3 -0
  84. package/google/api/distribution_pb_service.js +3 -0
  85. package/google/api/documentation_pb.d.ts +103 -0
  86. package/google/api/documentation_pb.js +803 -0
  87. package/google/api/documentation_pb_service.d.ts +3 -0
  88. package/google/api/documentation_pb_service.js +3 -0
  89. package/google/api/endpoint_pb.d.ts +46 -0
  90. package/google/api/endpoint_pb.js +343 -0
  91. package/google/api/endpoint_pb_service.d.ts +3 -0
  92. package/google/api/endpoint_pb_service.js +3 -0
  93. package/google/api/error_reason_pb.d.ts +40 -0
  94. package/google/api/error_reason_pb.js +61 -0
  95. package/google/api/error_reason_pb_service.d.ts +3 -0
  96. package/google/api/error_reason_pb_service.js +3 -0
  97. package/google/api/field_behavior_pb.d.ts +20 -0
  98. package/google/api/field_behavior_pb.js +66 -0
  99. package/google/api/field_behavior_pb_service.d.ts +3 -0
  100. package/google/api/field_behavior_pb_service.js +3 -0
  101. package/google/api/http_pb.d.ts +136 -0
  102. package/google/api/http_pb.js +1012 -0
  103. package/google/api/http_pb_service.d.ts +3 -0
  104. package/google/api/http_pb_service.js +3 -0
  105. package/google/api/httpbody_pb.d.ts +38 -0
  106. package/google/api/httpbody_pb.js +292 -0
  107. package/google/api/httpbody_pb_service.d.ts +3 -0
  108. package/google/api/httpbody_pb_service.js +3 -0
  109. package/google/api/label_pb.d.ts +41 -0
  110. package/google/api/label_pb.js +246 -0
  111. package/google/api/label_pb_service.d.ts +3 -0
  112. package/google/api/label_pb_service.js +3 -0
  113. package/google/api/launch_stage_pb.d.ts +16 -0
  114. package/google/api/launch_stage_pb.js +37 -0
  115. package/google/api/launch_stage_pb_service.d.ts +3 -0
  116. package/google/api/launch_stage_pb_service.js +3 -0
  117. package/google/api/log_pb.d.ts +40 -0
  118. package/google/api/log_pb.js +298 -0
  119. package/google/api/log_pb_service.d.ts +3 -0
  120. package/google/api/log_pb_service.js +3 -0
  121. package/google/api/logging_pb.d.ts +60 -0
  122. package/google/api/logging_pb.js +469 -0
  123. package/google/api/logging_pb_service.d.ts +3 -0
  124. package/google/api/logging_pb_service.js +3 -0
  125. package/google/api/metric_pb.d.ts +100 -0
  126. package/google/api/metric_pb.js +629 -0
  127. package/google/api/metric_pb_service.d.ts +3 -0
  128. package/google/api/metric_pb_service.js +3 -0
  129. package/google/api/monitored_resource_pb.d.ts +93 -0
  130. package/google/api/monitored_resource_pb.js +723 -0
  131. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  132. package/google/api/monitored_resource_pb_service.js +3 -0
  133. package/google/api/monitoring_pb.d.ts +60 -0
  134. package/google/api/monitoring_pb.js +469 -0
  135. package/google/api/monitoring_pb_service.d.ts +3 -0
  136. package/google/api/monitoring_pb_service.js +3 -0
  137. package/google/api/policy_pb.d.ts +64 -0
  138. package/google/api/policy_pb.js +502 -0
  139. package/google/api/policy_pb_service.d.ts +3 -0
  140. package/google/api/policy_pb_service.js +3 -0
  141. package/google/api/quota_pb.d.ts +112 -0
  142. package/google/api/quota_pb.js +873 -0
  143. package/google/api/quota_pb_service.d.ts +3 -0
  144. package/google/api/quota_pb_service.js +3 -0
  145. package/google/api/resource_pb.d.ts +99 -0
  146. package/google/api/resource_pb.js +684 -0
  147. package/google/api/resource_pb_service.d.ts +3 -0
  148. package/google/api/resource_pb_service.js +3 -0
  149. package/google/api/routing_pb.d.ts +54 -0
  150. package/google/api/routing_pb.js +416 -0
  151. package/google/api/routing_pb_service.d.ts +3 -0
  152. package/google/api/routing_pb_service.js +3 -0
  153. package/google/api/service_pb.d.ts +184 -0
  154. package/google/api/service_pb.js +1400 -0
  155. package/google/api/service_pb_service.d.ts +3 -0
  156. package/google/api/service_pb_service.js +3 -0
  157. package/google/api/source_info_pb.d.ts +28 -0
  158. package/google/api/source_info_pb.js +208 -0
  159. package/google/api/source_info_pb_service.d.ts +3 -0
  160. package/google/api/source_info_pb_service.js +3 -0
  161. package/google/api/system_parameter_pb.d.ts +81 -0
  162. package/google/api/system_parameter_pb.js +630 -0
  163. package/google/api/system_parameter_pb_service.d.ts +3 -0
  164. package/google/api/system_parameter_pb_service.js +3 -0
  165. package/google/api/usage_pb.d.ts +66 -0
  166. package/google/api/usage_pb.js +499 -0
  167. package/google/api/usage_pb_service.d.ts +3 -0
  168. package/google/api/usage_pb_service.js +3 -0
  169. package/google/api/visibility_pb.d.ts +64 -0
  170. package/google/api/visibility_pb.js +546 -0
  171. package/google/api/visibility_pb_service.d.ts +3 -0
  172. package/google/api/visibility_pb_service.js +3 -0
  173. package/package.json +1 -1
  174. package/platform.activity_log_pb.d.ts +177 -0
  175. package/platform.activity_log_pb.js +1294 -0
  176. package/platform.activity_log_pb_service.d.ts +82 -0
  177. package/platform.activity_log_pb_service.js +101 -0
  178. package/platform.client_pb.d.ts +320 -0
  179. package/platform.client_pb.js +2429 -0
  180. package/platform.client_pb_service.d.ts +158 -0
  181. package/platform.client_pb_service.js +261 -0
  182. package/platform.group_pb.d.ts +195 -0
  183. package/platform.group_pb.js +1476 -0
  184. package/platform.group_pb_service.d.ts +139 -0
  185. package/platform.group_pb_service.js +221 -0
  186. package/platform.local_account_pb.d.ts +392 -0
  187. package/platform.local_account_pb.js +2962 -0
  188. package/platform.local_account_pb_service.d.ts +350 -0
  189. package/platform.local_account_pb_service.js +663 -0
  190. package/platform.local_distribution_pb.d.ts +69 -0
  191. package/platform.local_distribution_pb.js +506 -0
  192. package/platform.local_distribution_pb_service.d.ts +63 -0
  193. package/platform.local_distribution_pb_service.js +61 -0
  194. package/platform.location_pb.d.ts +271 -0
  195. package/platform.location_pb.js +2046 -0
  196. package/platform.location_pb_service.d.ts +139 -0
  197. package/platform.location_pb_service.js +221 -0
  198. package/platform.pagination_pb.d.ts +37 -0
  199. package/platform.pagination_pb.js +266 -0
  200. package/platform.pagination_pb_service.d.ts +3 -0
  201. package/platform.pagination_pb_service.js +3 -0
  202. package/spic.cabinet_pb.d.ts +1304 -0
  203. package/spic.cabinet_pb.js +9727 -0
  204. package/spic.cabinet_pb_service.d.ts +359 -0
  205. package/spic.cabinet_pb_service.js +677 -0
  206. package/spic.contractor_pb.d.ts +195 -0
  207. package/spic.contractor_pb.js +1476 -0
  208. package/spic.contractor_pb_service.d.ts +139 -0
  209. package/spic.contractor_pb_service.js +221 -0
@@ -0,0 +1,2429 @@
1
+ // source: platform.client.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_api_annotations_pb = require('./google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
27
+ goog.object.extend(proto, platform_pagination_pb);
28
+ goog.exportSymbol('proto.Platform.ClientProto', null, global);
29
+ goog.exportSymbol('proto.Platform.ClientProto.ClientFilterType', null, global);
30
+ goog.exportSymbol('proto.Platform.ClientProto.CreateRequest', null, global);
31
+ goog.exportSymbol('proto.Platform.ClientProto.DeleteReply', null, global);
32
+ goog.exportSymbol('proto.Platform.ClientProto.DeleteRequest', null, global);
33
+ goog.exportSymbol('proto.Platform.ClientProto.RetrieveForAccountReply', null, global);
34
+ goog.exportSymbol('proto.Platform.ClientProto.RetrieveForAccountRequest', null, global);
35
+ goog.exportSymbol('proto.Platform.ClientProto.RetrieveRequest', null, global);
36
+ goog.exportSymbol('proto.Platform.ClientProto.SearchReply', null, global);
37
+ goog.exportSymbol('proto.Platform.ClientProto.SearchRequest', null, global);
38
+ goog.exportSymbol('proto.Platform.ClientProto.UpdateRequest', null, global);
39
+ /**
40
+ * Generated by JsPbCodeGenerator.
41
+ * @param {Array=} opt_data Optional initial data array, typically from a
42
+ * server response, or constructed directly in Javascript. The array is used
43
+ * in place and becomes part of the constructed object. It is not cloned.
44
+ * If no data is provided, the constructed object will be empty, but still
45
+ * valid.
46
+ * @extends {jspb.Message}
47
+ * @constructor
48
+ */
49
+ proto.Platform.ClientProto = function(opt_data) {
50
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
51
+ };
52
+ goog.inherits(proto.Platform.ClientProto, jspb.Message);
53
+ if (goog.DEBUG && !COMPILED) {
54
+ /**
55
+ * @public
56
+ * @override
57
+ */
58
+ proto.Platform.ClientProto.displayName = 'proto.Platform.ClientProto';
59
+ }
60
+ /**
61
+ * Generated by JsPbCodeGenerator.
62
+ * @param {Array=} opt_data Optional initial data array, typically from a
63
+ * server response, or constructed directly in Javascript. The array is used
64
+ * in place and becomes part of the constructed object. It is not cloned.
65
+ * If no data is provided, the constructed object will be empty, but still
66
+ * valid.
67
+ * @extends {jspb.Message}
68
+ * @constructor
69
+ */
70
+ proto.Platform.ClientProto.CreateRequest = function(opt_data) {
71
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
72
+ };
73
+ goog.inherits(proto.Platform.ClientProto.CreateRequest, jspb.Message);
74
+ if (goog.DEBUG && !COMPILED) {
75
+ /**
76
+ * @public
77
+ * @override
78
+ */
79
+ proto.Platform.ClientProto.CreateRequest.displayName = 'proto.Platform.ClientProto.CreateRequest';
80
+ }
81
+ /**
82
+ * Generated by JsPbCodeGenerator.
83
+ * @param {Array=} opt_data Optional initial data array, typically from a
84
+ * server response, or constructed directly in Javascript. The array is used
85
+ * in place and becomes part of the constructed object. It is not cloned.
86
+ * If no data is provided, the constructed object will be empty, but still
87
+ * valid.
88
+ * @extends {jspb.Message}
89
+ * @constructor
90
+ */
91
+ proto.Platform.ClientProto.RetrieveRequest = function(opt_data) {
92
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
93
+ };
94
+ goog.inherits(proto.Platform.ClientProto.RetrieveRequest, jspb.Message);
95
+ if (goog.DEBUG && !COMPILED) {
96
+ /**
97
+ * @public
98
+ * @override
99
+ */
100
+ proto.Platform.ClientProto.RetrieveRequest.displayName = 'proto.Platform.ClientProto.RetrieveRequest';
101
+ }
102
+ /**
103
+ * Generated by JsPbCodeGenerator.
104
+ * @param {Array=} opt_data Optional initial data array, typically from a
105
+ * server response, or constructed directly in Javascript. The array is used
106
+ * in place and becomes part of the constructed object. It is not cloned.
107
+ * If no data is provided, the constructed object will be empty, but still
108
+ * valid.
109
+ * @extends {jspb.Message}
110
+ * @constructor
111
+ */
112
+ proto.Platform.ClientProto.SearchRequest = function(opt_data) {
113
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.ClientProto.SearchRequest.repeatedFields_, null);
114
+ };
115
+ goog.inherits(proto.Platform.ClientProto.SearchRequest, jspb.Message);
116
+ if (goog.DEBUG && !COMPILED) {
117
+ /**
118
+ * @public
119
+ * @override
120
+ */
121
+ proto.Platform.ClientProto.SearchRequest.displayName = 'proto.Platform.ClientProto.SearchRequest';
122
+ }
123
+ /**
124
+ * Generated by JsPbCodeGenerator.
125
+ * @param {Array=} opt_data Optional initial data array, typically from a
126
+ * server response, or constructed directly in Javascript. The array is used
127
+ * in place and becomes part of the constructed object. It is not cloned.
128
+ * If no data is provided, the constructed object will be empty, but still
129
+ * valid.
130
+ * @extends {jspb.Message}
131
+ * @constructor
132
+ */
133
+ proto.Platform.ClientProto.UpdateRequest = function(opt_data) {
134
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
135
+ };
136
+ goog.inherits(proto.Platform.ClientProto.UpdateRequest, jspb.Message);
137
+ if (goog.DEBUG && !COMPILED) {
138
+ /**
139
+ * @public
140
+ * @override
141
+ */
142
+ proto.Platform.ClientProto.UpdateRequest.displayName = 'proto.Platform.ClientProto.UpdateRequest';
143
+ }
144
+ /**
145
+ * Generated by JsPbCodeGenerator.
146
+ * @param {Array=} opt_data Optional initial data array, typically from a
147
+ * server response, or constructed directly in Javascript. The array is used
148
+ * in place and becomes part of the constructed object. It is not cloned.
149
+ * If no data is provided, the constructed object will be empty, but still
150
+ * valid.
151
+ * @extends {jspb.Message}
152
+ * @constructor
153
+ */
154
+ proto.Platform.ClientProto.DeleteRequest = function(opt_data) {
155
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
156
+ };
157
+ goog.inherits(proto.Platform.ClientProto.DeleteRequest, jspb.Message);
158
+ if (goog.DEBUG && !COMPILED) {
159
+ /**
160
+ * @public
161
+ * @override
162
+ */
163
+ proto.Platform.ClientProto.DeleteRequest.displayName = 'proto.Platform.ClientProto.DeleteRequest';
164
+ }
165
+ /**
166
+ * Generated by JsPbCodeGenerator.
167
+ * @param {Array=} opt_data Optional initial data array, typically from a
168
+ * server response, or constructed directly in Javascript. The array is used
169
+ * in place and becomes part of the constructed object. It is not cloned.
170
+ * If no data is provided, the constructed object will be empty, but still
171
+ * valid.
172
+ * @extends {jspb.Message}
173
+ * @constructor
174
+ */
175
+ proto.Platform.ClientProto.SearchReply = function(opt_data) {
176
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.ClientProto.SearchReply.repeatedFields_, null);
177
+ };
178
+ goog.inherits(proto.Platform.ClientProto.SearchReply, jspb.Message);
179
+ if (goog.DEBUG && !COMPILED) {
180
+ /**
181
+ * @public
182
+ * @override
183
+ */
184
+ proto.Platform.ClientProto.SearchReply.displayName = 'proto.Platform.ClientProto.SearchReply';
185
+ }
186
+ /**
187
+ * Generated by JsPbCodeGenerator.
188
+ * @param {Array=} opt_data Optional initial data array, typically from a
189
+ * server response, or constructed directly in Javascript. The array is used
190
+ * in place and becomes part of the constructed object. It is not cloned.
191
+ * If no data is provided, the constructed object will be empty, but still
192
+ * valid.
193
+ * @extends {jspb.Message}
194
+ * @constructor
195
+ */
196
+ proto.Platform.ClientProto.RetrieveForAccountRequest = function(opt_data) {
197
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
198
+ };
199
+ goog.inherits(proto.Platform.ClientProto.RetrieveForAccountRequest, jspb.Message);
200
+ if (goog.DEBUG && !COMPILED) {
201
+ /**
202
+ * @public
203
+ * @override
204
+ */
205
+ proto.Platform.ClientProto.RetrieveForAccountRequest.displayName = 'proto.Platform.ClientProto.RetrieveForAccountRequest';
206
+ }
207
+ /**
208
+ * Generated by JsPbCodeGenerator.
209
+ * @param {Array=} opt_data Optional initial data array, typically from a
210
+ * server response, or constructed directly in Javascript. The array is used
211
+ * in place and becomes part of the constructed object. It is not cloned.
212
+ * If no data is provided, the constructed object will be empty, but still
213
+ * valid.
214
+ * @extends {jspb.Message}
215
+ * @constructor
216
+ */
217
+ proto.Platform.ClientProto.RetrieveForAccountReply = function(opt_data) {
218
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.ClientProto.RetrieveForAccountReply.repeatedFields_, null);
219
+ };
220
+ goog.inherits(proto.Platform.ClientProto.RetrieveForAccountReply, jspb.Message);
221
+ if (goog.DEBUG && !COMPILED) {
222
+ /**
223
+ * @public
224
+ * @override
225
+ */
226
+ proto.Platform.ClientProto.RetrieveForAccountReply.displayName = 'proto.Platform.ClientProto.RetrieveForAccountReply';
227
+ }
228
+ /**
229
+ * Generated by JsPbCodeGenerator.
230
+ * @param {Array=} opt_data Optional initial data array, typically from a
231
+ * server response, or constructed directly in Javascript. The array is used
232
+ * in place and becomes part of the constructed object. It is not cloned.
233
+ * If no data is provided, the constructed object will be empty, but still
234
+ * valid.
235
+ * @extends {jspb.Message}
236
+ * @constructor
237
+ */
238
+ proto.Platform.ClientProto.DeleteReply = function(opt_data) {
239
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
240
+ };
241
+ goog.inherits(proto.Platform.ClientProto.DeleteReply, jspb.Message);
242
+ if (goog.DEBUG && !COMPILED) {
243
+ /**
244
+ * @public
245
+ * @override
246
+ */
247
+ proto.Platform.ClientProto.DeleteReply.displayName = 'proto.Platform.ClientProto.DeleteReply';
248
+ }
249
+
250
+
251
+
252
+ if (jspb.Message.GENERATE_TO_OBJECT) {
253
+ /**
254
+ * Creates an object representation of this proto.
255
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
256
+ * Optional fields that are not set will be set to undefined.
257
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
258
+ * For the list of reserved names please see:
259
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
260
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
261
+ * JSPB instance for transitional soy proto support:
262
+ * http://goto/soy-param-migration
263
+ * @return {!Object}
264
+ */
265
+ proto.Platform.ClientProto.prototype.toObject = function(opt_includeInstance) {
266
+ return proto.Platform.ClientProto.toObject(opt_includeInstance, this);
267
+ };
268
+
269
+
270
+ /**
271
+ * Static version of the {@see toObject} method.
272
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
273
+ * the JSPB instance for transitional soy proto support:
274
+ * http://goto/soy-param-migration
275
+ * @param {!proto.Platform.ClientProto} msg The msg instance to transform.
276
+ * @return {!Object}
277
+ * @suppress {unusedLocalVariables} f is only used for nested messages
278
+ */
279
+ proto.Platform.ClientProto.toObject = function(includeInstance, msg) {
280
+ var f, obj = {
281
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
282
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
283
+ country: jspb.Message.getFieldWithDefault(msg, 3, ""),
284
+ image: msg.getImage_asB64(),
285
+ phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
286
+ pb_public: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
287
+ spicModuleEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
288
+ drumtrackerModuleEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
289
+ kapusModuleEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
290
+ };
291
+
292
+ if (includeInstance) {
293
+ obj.$jspbMessageInstance = msg;
294
+ }
295
+ return obj;
296
+ };
297
+ }
298
+
299
+
300
+ /**
301
+ * Deserializes binary data (in protobuf wire format).
302
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
303
+ * @return {!proto.Platform.ClientProto}
304
+ */
305
+ proto.Platform.ClientProto.deserializeBinary = function(bytes) {
306
+ var reader = new jspb.BinaryReader(bytes);
307
+ var msg = new proto.Platform.ClientProto;
308
+ return proto.Platform.ClientProto.deserializeBinaryFromReader(msg, reader);
309
+ };
310
+
311
+
312
+ /**
313
+ * Deserializes binary data (in protobuf wire format) from the
314
+ * given reader into the given message object.
315
+ * @param {!proto.Platform.ClientProto} msg The message object to deserialize into.
316
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
317
+ * @return {!proto.Platform.ClientProto}
318
+ */
319
+ proto.Platform.ClientProto.deserializeBinaryFromReader = function(msg, reader) {
320
+ while (reader.nextField()) {
321
+ if (reader.isEndGroup()) {
322
+ break;
323
+ }
324
+ var field = reader.getFieldNumber();
325
+ switch (field) {
326
+ case 1:
327
+ var value = /** @type {number} */ (reader.readInt32());
328
+ msg.setId(value);
329
+ break;
330
+ case 2:
331
+ var value = /** @type {string} */ (reader.readString());
332
+ msg.setName(value);
333
+ break;
334
+ case 3:
335
+ var value = /** @type {string} */ (reader.readString());
336
+ msg.setCountry(value);
337
+ break;
338
+ case 4:
339
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
340
+ msg.setImage(value);
341
+ break;
342
+ case 5:
343
+ var value = /** @type {string} */ (reader.readString());
344
+ msg.setPhone(value);
345
+ break;
346
+ case 6:
347
+ var value = /** @type {boolean} */ (reader.readBool());
348
+ msg.setPublic(value);
349
+ break;
350
+ case 7:
351
+ var value = /** @type {boolean} */ (reader.readBool());
352
+ msg.setSpicModuleEnabled(value);
353
+ break;
354
+ case 8:
355
+ var value = /** @type {boolean} */ (reader.readBool());
356
+ msg.setDrumtrackerModuleEnabled(value);
357
+ break;
358
+ case 9:
359
+ var value = /** @type {boolean} */ (reader.readBool());
360
+ msg.setKapusModuleEnabled(value);
361
+ break;
362
+ default:
363
+ reader.skipField();
364
+ break;
365
+ }
366
+ }
367
+ return msg;
368
+ };
369
+
370
+
371
+ /**
372
+ * Serializes the message to binary data (in protobuf wire format).
373
+ * @return {!Uint8Array}
374
+ */
375
+ proto.Platform.ClientProto.prototype.serializeBinary = function() {
376
+ var writer = new jspb.BinaryWriter();
377
+ proto.Platform.ClientProto.serializeBinaryToWriter(this, writer);
378
+ return writer.getResultBuffer();
379
+ };
380
+
381
+
382
+ /**
383
+ * Serializes the given message to binary data (in protobuf wire
384
+ * format), writing to the given BinaryWriter.
385
+ * @param {!proto.Platform.ClientProto} message
386
+ * @param {!jspb.BinaryWriter} writer
387
+ * @suppress {unusedLocalVariables} f is only used for nested messages
388
+ */
389
+ proto.Platform.ClientProto.serializeBinaryToWriter = function(message, writer) {
390
+ var f = undefined;
391
+ f = message.getId();
392
+ if (f !== 0) {
393
+ writer.writeInt32(
394
+ 1,
395
+ f
396
+ );
397
+ }
398
+ f = message.getName();
399
+ if (f.length > 0) {
400
+ writer.writeString(
401
+ 2,
402
+ f
403
+ );
404
+ }
405
+ f = message.getCountry();
406
+ if (f.length > 0) {
407
+ writer.writeString(
408
+ 3,
409
+ f
410
+ );
411
+ }
412
+ f = message.getImage_asU8();
413
+ if (f.length > 0) {
414
+ writer.writeBytes(
415
+ 4,
416
+ f
417
+ );
418
+ }
419
+ f = message.getPhone();
420
+ if (f.length > 0) {
421
+ writer.writeString(
422
+ 5,
423
+ f
424
+ );
425
+ }
426
+ f = message.getPublic();
427
+ if (f) {
428
+ writer.writeBool(
429
+ 6,
430
+ f
431
+ );
432
+ }
433
+ f = message.getSpicModuleEnabled();
434
+ if (f) {
435
+ writer.writeBool(
436
+ 7,
437
+ f
438
+ );
439
+ }
440
+ f = message.getDrumtrackerModuleEnabled();
441
+ if (f) {
442
+ writer.writeBool(
443
+ 8,
444
+ f
445
+ );
446
+ }
447
+ f = message.getKapusModuleEnabled();
448
+ if (f) {
449
+ writer.writeBool(
450
+ 9,
451
+ f
452
+ );
453
+ }
454
+ };
455
+
456
+
457
+ /**
458
+ * @enum {number}
459
+ */
460
+ proto.Platform.ClientProto.ClientFilterType = {
461
+ REGISTERED: 0,
462
+ AVAILABLE: 1
463
+ };
464
+
465
+
466
+
467
+
468
+ if (jspb.Message.GENERATE_TO_OBJECT) {
469
+ /**
470
+ * Creates an object representation of this proto.
471
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
472
+ * Optional fields that are not set will be set to undefined.
473
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
474
+ * For the list of reserved names please see:
475
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
476
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
477
+ * JSPB instance for transitional soy proto support:
478
+ * http://goto/soy-param-migration
479
+ * @return {!Object}
480
+ */
481
+ proto.Platform.ClientProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
482
+ return proto.Platform.ClientProto.CreateRequest.toObject(opt_includeInstance, this);
483
+ };
484
+
485
+
486
+ /**
487
+ * Static version of the {@see toObject} method.
488
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
489
+ * the JSPB instance for transitional soy proto support:
490
+ * http://goto/soy-param-migration
491
+ * @param {!proto.Platform.ClientProto.CreateRequest} msg The msg instance to transform.
492
+ * @return {!Object}
493
+ * @suppress {unusedLocalVariables} f is only used for nested messages
494
+ */
495
+ proto.Platform.ClientProto.CreateRequest.toObject = function(includeInstance, msg) {
496
+ var f, obj = {
497
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
498
+ country: jspb.Message.getFieldWithDefault(msg, 2, ""),
499
+ image: msg.getImage_asB64(),
500
+ phone: jspb.Message.getFieldWithDefault(msg, 4, ""),
501
+ pb_public: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
502
+ };
503
+
504
+ if (includeInstance) {
505
+ obj.$jspbMessageInstance = msg;
506
+ }
507
+ return obj;
508
+ };
509
+ }
510
+
511
+
512
+ /**
513
+ * Deserializes binary data (in protobuf wire format).
514
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
515
+ * @return {!proto.Platform.ClientProto.CreateRequest}
516
+ */
517
+ proto.Platform.ClientProto.CreateRequest.deserializeBinary = function(bytes) {
518
+ var reader = new jspb.BinaryReader(bytes);
519
+ var msg = new proto.Platform.ClientProto.CreateRequest;
520
+ return proto.Platform.ClientProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
521
+ };
522
+
523
+
524
+ /**
525
+ * Deserializes binary data (in protobuf wire format) from the
526
+ * given reader into the given message object.
527
+ * @param {!proto.Platform.ClientProto.CreateRequest} msg The message object to deserialize into.
528
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
529
+ * @return {!proto.Platform.ClientProto.CreateRequest}
530
+ */
531
+ proto.Platform.ClientProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
532
+ while (reader.nextField()) {
533
+ if (reader.isEndGroup()) {
534
+ break;
535
+ }
536
+ var field = reader.getFieldNumber();
537
+ switch (field) {
538
+ case 1:
539
+ var value = /** @type {string} */ (reader.readString());
540
+ msg.setName(value);
541
+ break;
542
+ case 2:
543
+ var value = /** @type {string} */ (reader.readString());
544
+ msg.setCountry(value);
545
+ break;
546
+ case 3:
547
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
548
+ msg.setImage(value);
549
+ break;
550
+ case 4:
551
+ var value = /** @type {string} */ (reader.readString());
552
+ msg.setPhone(value);
553
+ break;
554
+ case 5:
555
+ var value = /** @type {boolean} */ (reader.readBool());
556
+ msg.setPublic(value);
557
+ break;
558
+ default:
559
+ reader.skipField();
560
+ break;
561
+ }
562
+ }
563
+ return msg;
564
+ };
565
+
566
+
567
+ /**
568
+ * Serializes the message to binary data (in protobuf wire format).
569
+ * @return {!Uint8Array}
570
+ */
571
+ proto.Platform.ClientProto.CreateRequest.prototype.serializeBinary = function() {
572
+ var writer = new jspb.BinaryWriter();
573
+ proto.Platform.ClientProto.CreateRequest.serializeBinaryToWriter(this, writer);
574
+ return writer.getResultBuffer();
575
+ };
576
+
577
+
578
+ /**
579
+ * Serializes the given message to binary data (in protobuf wire
580
+ * format), writing to the given BinaryWriter.
581
+ * @param {!proto.Platform.ClientProto.CreateRequest} message
582
+ * @param {!jspb.BinaryWriter} writer
583
+ * @suppress {unusedLocalVariables} f is only used for nested messages
584
+ */
585
+ proto.Platform.ClientProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
586
+ var f = undefined;
587
+ f = message.getName();
588
+ if (f.length > 0) {
589
+ writer.writeString(
590
+ 1,
591
+ f
592
+ );
593
+ }
594
+ f = message.getCountry();
595
+ if (f.length > 0) {
596
+ writer.writeString(
597
+ 2,
598
+ f
599
+ );
600
+ }
601
+ f = message.getImage_asU8();
602
+ if (f.length > 0) {
603
+ writer.writeBytes(
604
+ 3,
605
+ f
606
+ );
607
+ }
608
+ f = message.getPhone();
609
+ if (f.length > 0) {
610
+ writer.writeString(
611
+ 4,
612
+ f
613
+ );
614
+ }
615
+ f = message.getPublic();
616
+ if (f) {
617
+ writer.writeBool(
618
+ 5,
619
+ f
620
+ );
621
+ }
622
+ };
623
+
624
+
625
+ /**
626
+ * optional string name = 1;
627
+ * @return {string}
628
+ */
629
+ proto.Platform.ClientProto.CreateRequest.prototype.getName = function() {
630
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
631
+ };
632
+
633
+
634
+ /**
635
+ * @param {string} value
636
+ * @return {!proto.Platform.ClientProto.CreateRequest} returns this
637
+ */
638
+ proto.Platform.ClientProto.CreateRequest.prototype.setName = function(value) {
639
+ return jspb.Message.setProto3StringField(this, 1, value);
640
+ };
641
+
642
+
643
+ /**
644
+ * optional string country = 2;
645
+ * @return {string}
646
+ */
647
+ proto.Platform.ClientProto.CreateRequest.prototype.getCountry = function() {
648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
649
+ };
650
+
651
+
652
+ /**
653
+ * @param {string} value
654
+ * @return {!proto.Platform.ClientProto.CreateRequest} returns this
655
+ */
656
+ proto.Platform.ClientProto.CreateRequest.prototype.setCountry = function(value) {
657
+ return jspb.Message.setProto3StringField(this, 2, value);
658
+ };
659
+
660
+
661
+ /**
662
+ * optional bytes image = 3;
663
+ * @return {!(string|Uint8Array)}
664
+ */
665
+ proto.Platform.ClientProto.CreateRequest.prototype.getImage = function() {
666
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
667
+ };
668
+
669
+
670
+ /**
671
+ * optional bytes image = 3;
672
+ * This is a type-conversion wrapper around `getImage()`
673
+ * @return {string}
674
+ */
675
+ proto.Platform.ClientProto.CreateRequest.prototype.getImage_asB64 = function() {
676
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
677
+ this.getImage()));
678
+ };
679
+
680
+
681
+ /**
682
+ * optional bytes image = 3;
683
+ * Note that Uint8Array is not supported on all browsers.
684
+ * @see http://caniuse.com/Uint8Array
685
+ * This is a type-conversion wrapper around `getImage()`
686
+ * @return {!Uint8Array}
687
+ */
688
+ proto.Platform.ClientProto.CreateRequest.prototype.getImage_asU8 = function() {
689
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
690
+ this.getImage()));
691
+ };
692
+
693
+
694
+ /**
695
+ * @param {!(string|Uint8Array)} value
696
+ * @return {!proto.Platform.ClientProto.CreateRequest} returns this
697
+ */
698
+ proto.Platform.ClientProto.CreateRequest.prototype.setImage = function(value) {
699
+ return jspb.Message.setProto3BytesField(this, 3, value);
700
+ };
701
+
702
+
703
+ /**
704
+ * optional string phone = 4;
705
+ * @return {string}
706
+ */
707
+ proto.Platform.ClientProto.CreateRequest.prototype.getPhone = function() {
708
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
709
+ };
710
+
711
+
712
+ /**
713
+ * @param {string} value
714
+ * @return {!proto.Platform.ClientProto.CreateRequest} returns this
715
+ */
716
+ proto.Platform.ClientProto.CreateRequest.prototype.setPhone = function(value) {
717
+ return jspb.Message.setProto3StringField(this, 4, value);
718
+ };
719
+
720
+
721
+ /**
722
+ * optional bool public = 5;
723
+ * @return {boolean}
724
+ */
725
+ proto.Platform.ClientProto.CreateRequest.prototype.getPublic = function() {
726
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
727
+ };
728
+
729
+
730
+ /**
731
+ * @param {boolean} value
732
+ * @return {!proto.Platform.ClientProto.CreateRequest} returns this
733
+ */
734
+ proto.Platform.ClientProto.CreateRequest.prototype.setPublic = function(value) {
735
+ return jspb.Message.setProto3BooleanField(this, 5, value);
736
+ };
737
+
738
+
739
+
740
+
741
+
742
+ if (jspb.Message.GENERATE_TO_OBJECT) {
743
+ /**
744
+ * Creates an object representation of this proto.
745
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
746
+ * Optional fields that are not set will be set to undefined.
747
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
748
+ * For the list of reserved names please see:
749
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
750
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
751
+ * JSPB instance for transitional soy proto support:
752
+ * http://goto/soy-param-migration
753
+ * @return {!Object}
754
+ */
755
+ proto.Platform.ClientProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
756
+ return proto.Platform.ClientProto.RetrieveRequest.toObject(opt_includeInstance, this);
757
+ };
758
+
759
+
760
+ /**
761
+ * Static version of the {@see toObject} method.
762
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
763
+ * the JSPB instance for transitional soy proto support:
764
+ * http://goto/soy-param-migration
765
+ * @param {!proto.Platform.ClientProto.RetrieveRequest} msg The msg instance to transform.
766
+ * @return {!Object}
767
+ * @suppress {unusedLocalVariables} f is only used for nested messages
768
+ */
769
+ proto.Platform.ClientProto.RetrieveRequest.toObject = function(includeInstance, msg) {
770
+ var f, obj = {
771
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
772
+ };
773
+
774
+ if (includeInstance) {
775
+ obj.$jspbMessageInstance = msg;
776
+ }
777
+ return obj;
778
+ };
779
+ }
780
+
781
+
782
+ /**
783
+ * Deserializes binary data (in protobuf wire format).
784
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
785
+ * @return {!proto.Platform.ClientProto.RetrieveRequest}
786
+ */
787
+ proto.Platform.ClientProto.RetrieveRequest.deserializeBinary = function(bytes) {
788
+ var reader = new jspb.BinaryReader(bytes);
789
+ var msg = new proto.Platform.ClientProto.RetrieveRequest;
790
+ return proto.Platform.ClientProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
791
+ };
792
+
793
+
794
+ /**
795
+ * Deserializes binary data (in protobuf wire format) from the
796
+ * given reader into the given message object.
797
+ * @param {!proto.Platform.ClientProto.RetrieveRequest} msg The message object to deserialize into.
798
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
799
+ * @return {!proto.Platform.ClientProto.RetrieveRequest}
800
+ */
801
+ proto.Platform.ClientProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
802
+ while (reader.nextField()) {
803
+ if (reader.isEndGroup()) {
804
+ break;
805
+ }
806
+ var field = reader.getFieldNumber();
807
+ switch (field) {
808
+ case 1:
809
+ var value = /** @type {number} */ (reader.readInt32());
810
+ msg.setId(value);
811
+ break;
812
+ default:
813
+ reader.skipField();
814
+ break;
815
+ }
816
+ }
817
+ return msg;
818
+ };
819
+
820
+
821
+ /**
822
+ * Serializes the message to binary data (in protobuf wire format).
823
+ * @return {!Uint8Array}
824
+ */
825
+ proto.Platform.ClientProto.RetrieveRequest.prototype.serializeBinary = function() {
826
+ var writer = new jspb.BinaryWriter();
827
+ proto.Platform.ClientProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
828
+ return writer.getResultBuffer();
829
+ };
830
+
831
+
832
+ /**
833
+ * Serializes the given message to binary data (in protobuf wire
834
+ * format), writing to the given BinaryWriter.
835
+ * @param {!proto.Platform.ClientProto.RetrieveRequest} message
836
+ * @param {!jspb.BinaryWriter} writer
837
+ * @suppress {unusedLocalVariables} f is only used for nested messages
838
+ */
839
+ proto.Platform.ClientProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
840
+ var f = undefined;
841
+ f = message.getId();
842
+ if (f !== 0) {
843
+ writer.writeInt32(
844
+ 1,
845
+ f
846
+ );
847
+ }
848
+ };
849
+
850
+
851
+ /**
852
+ * optional int32 id = 1;
853
+ * @return {number}
854
+ */
855
+ proto.Platform.ClientProto.RetrieveRequest.prototype.getId = function() {
856
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
857
+ };
858
+
859
+
860
+ /**
861
+ * @param {number} value
862
+ * @return {!proto.Platform.ClientProto.RetrieveRequest} returns this
863
+ */
864
+ proto.Platform.ClientProto.RetrieveRequest.prototype.setId = function(value) {
865
+ return jspb.Message.setProto3IntField(this, 1, value);
866
+ };
867
+
868
+
869
+
870
+ /**
871
+ * List of repeated fields within this message type.
872
+ * @private {!Array<number>}
873
+ * @const
874
+ */
875
+ proto.Platform.ClientProto.SearchRequest.repeatedFields_ = [1];
876
+
877
+
878
+
879
+ if (jspb.Message.GENERATE_TO_OBJECT) {
880
+ /**
881
+ * Creates an object representation of this proto.
882
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
883
+ * Optional fields that are not set will be set to undefined.
884
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
885
+ * For the list of reserved names please see:
886
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
887
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
888
+ * JSPB instance for transitional soy proto support:
889
+ * http://goto/soy-param-migration
890
+ * @return {!Object}
891
+ */
892
+ proto.Platform.ClientProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
893
+ return proto.Platform.ClientProto.SearchRequest.toObject(opt_includeInstance, this);
894
+ };
895
+
896
+
897
+ /**
898
+ * Static version of the {@see toObject} method.
899
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
900
+ * the JSPB instance for transitional soy proto support:
901
+ * http://goto/soy-param-migration
902
+ * @param {!proto.Platform.ClientProto.SearchRequest} msg The msg instance to transform.
903
+ * @return {!Object}
904
+ * @suppress {unusedLocalVariables} f is only used for nested messages
905
+ */
906
+ proto.Platform.ClientProto.SearchRequest.toObject = function(includeInstance, msg) {
907
+ var f, obj = {
908
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
909
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
910
+ page: jspb.Message.getFieldWithDefault(msg, 3, 0),
911
+ count: jspb.Message.getFieldWithDefault(msg, 4, 0),
912
+ ispublic: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
913
+ };
914
+
915
+ if (includeInstance) {
916
+ obj.$jspbMessageInstance = msg;
917
+ }
918
+ return obj;
919
+ };
920
+ }
921
+
922
+
923
+ /**
924
+ * Deserializes binary data (in protobuf wire format).
925
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
926
+ * @return {!proto.Platform.ClientProto.SearchRequest}
927
+ */
928
+ proto.Platform.ClientProto.SearchRequest.deserializeBinary = function(bytes) {
929
+ var reader = new jspb.BinaryReader(bytes);
930
+ var msg = new proto.Platform.ClientProto.SearchRequest;
931
+ return proto.Platform.ClientProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
932
+ };
933
+
934
+
935
+ /**
936
+ * Deserializes binary data (in protobuf wire format) from the
937
+ * given reader into the given message object.
938
+ * @param {!proto.Platform.ClientProto.SearchRequest} msg The message object to deserialize into.
939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
940
+ * @return {!proto.Platform.ClientProto.SearchRequest}
941
+ */
942
+ proto.Platform.ClientProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
943
+ while (reader.nextField()) {
944
+ if (reader.isEndGroup()) {
945
+ break;
946
+ }
947
+ var field = reader.getFieldNumber();
948
+ switch (field) {
949
+ case 1:
950
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
951
+ for (var i = 0; i < values.length; i++) {
952
+ msg.addIds(values[i]);
953
+ }
954
+ break;
955
+ case 2:
956
+ var value = /** @type {string} */ (reader.readString());
957
+ msg.setName(value);
958
+ break;
959
+ case 3:
960
+ var value = /** @type {number} */ (reader.readInt32());
961
+ msg.setPage(value);
962
+ break;
963
+ case 4:
964
+ var value = /** @type {number} */ (reader.readInt32());
965
+ msg.setCount(value);
966
+ break;
967
+ case 5:
968
+ var value = /** @type {boolean} */ (reader.readBool());
969
+ msg.setIspublic(value);
970
+ break;
971
+ default:
972
+ reader.skipField();
973
+ break;
974
+ }
975
+ }
976
+ return msg;
977
+ };
978
+
979
+
980
+ /**
981
+ * Serializes the message to binary data (in protobuf wire format).
982
+ * @return {!Uint8Array}
983
+ */
984
+ proto.Platform.ClientProto.SearchRequest.prototype.serializeBinary = function() {
985
+ var writer = new jspb.BinaryWriter();
986
+ proto.Platform.ClientProto.SearchRequest.serializeBinaryToWriter(this, writer);
987
+ return writer.getResultBuffer();
988
+ };
989
+
990
+
991
+ /**
992
+ * Serializes the given message to binary data (in protobuf wire
993
+ * format), writing to the given BinaryWriter.
994
+ * @param {!proto.Platform.ClientProto.SearchRequest} message
995
+ * @param {!jspb.BinaryWriter} writer
996
+ * @suppress {unusedLocalVariables} f is only used for nested messages
997
+ */
998
+ proto.Platform.ClientProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
999
+ var f = undefined;
1000
+ f = message.getIdsList();
1001
+ if (f.length > 0) {
1002
+ writer.writePackedInt32(
1003
+ 1,
1004
+ f
1005
+ );
1006
+ }
1007
+ f = message.getName();
1008
+ if (f.length > 0) {
1009
+ writer.writeString(
1010
+ 2,
1011
+ f
1012
+ );
1013
+ }
1014
+ f = message.getPage();
1015
+ if (f !== 0) {
1016
+ writer.writeInt32(
1017
+ 3,
1018
+ f
1019
+ );
1020
+ }
1021
+ f = message.getCount();
1022
+ if (f !== 0) {
1023
+ writer.writeInt32(
1024
+ 4,
1025
+ f
1026
+ );
1027
+ }
1028
+ f = message.getIspublic();
1029
+ if (f) {
1030
+ writer.writeBool(
1031
+ 5,
1032
+ f
1033
+ );
1034
+ }
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * repeated int32 ids = 1;
1040
+ * @return {!Array<number>}
1041
+ */
1042
+ proto.Platform.ClientProto.SearchRequest.prototype.getIdsList = function() {
1043
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * @param {!Array<number>} value
1049
+ * @return {!proto.Platform.ClientProto.SearchRequest} returns this
1050
+ */
1051
+ proto.Platform.ClientProto.SearchRequest.prototype.setIdsList = function(value) {
1052
+ return jspb.Message.setField(this, 1, value || []);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * @param {number} value
1058
+ * @param {number=} opt_index
1059
+ * @return {!proto.Platform.ClientProto.SearchRequest} returns this
1060
+ */
1061
+ proto.Platform.ClientProto.SearchRequest.prototype.addIds = function(value, opt_index) {
1062
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * Clears the list making it empty but non-null.
1068
+ * @return {!proto.Platform.ClientProto.SearchRequest} returns this
1069
+ */
1070
+ proto.Platform.ClientProto.SearchRequest.prototype.clearIdsList = function() {
1071
+ return this.setIdsList([]);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * optional string name = 2;
1077
+ * @return {string}
1078
+ */
1079
+ proto.Platform.ClientProto.SearchRequest.prototype.getName = function() {
1080
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * @param {string} value
1086
+ * @return {!proto.Platform.ClientProto.SearchRequest} returns this
1087
+ */
1088
+ proto.Platform.ClientProto.SearchRequest.prototype.setName = function(value) {
1089
+ return jspb.Message.setProto3StringField(this, 2, value);
1090
+ };
1091
+
1092
+
1093
+ /**
1094
+ * optional int32 page = 3;
1095
+ * @return {number}
1096
+ */
1097
+ proto.Platform.ClientProto.SearchRequest.prototype.getPage = function() {
1098
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * @param {number} value
1104
+ * @return {!proto.Platform.ClientProto.SearchRequest} returns this
1105
+ */
1106
+ proto.Platform.ClientProto.SearchRequest.prototype.setPage = function(value) {
1107
+ return jspb.Message.setProto3IntField(this, 3, value);
1108
+ };
1109
+
1110
+
1111
+ /**
1112
+ * optional int32 count = 4;
1113
+ * @return {number}
1114
+ */
1115
+ proto.Platform.ClientProto.SearchRequest.prototype.getCount = function() {
1116
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1117
+ };
1118
+
1119
+
1120
+ /**
1121
+ * @param {number} value
1122
+ * @return {!proto.Platform.ClientProto.SearchRequest} returns this
1123
+ */
1124
+ proto.Platform.ClientProto.SearchRequest.prototype.setCount = function(value) {
1125
+ return jspb.Message.setProto3IntField(this, 4, value);
1126
+ };
1127
+
1128
+
1129
+ /**
1130
+ * optional bool isPublic = 5;
1131
+ * @return {boolean}
1132
+ */
1133
+ proto.Platform.ClientProto.SearchRequest.prototype.getIspublic = function() {
1134
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
1135
+ };
1136
+
1137
+
1138
+ /**
1139
+ * @param {boolean} value
1140
+ * @return {!proto.Platform.ClientProto.SearchRequest} returns this
1141
+ */
1142
+ proto.Platform.ClientProto.SearchRequest.prototype.setIspublic = function(value) {
1143
+ return jspb.Message.setProto3BooleanField(this, 5, value);
1144
+ };
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1151
+ /**
1152
+ * Creates an object representation of this proto.
1153
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1154
+ * Optional fields that are not set will be set to undefined.
1155
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1156
+ * For the list of reserved names please see:
1157
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1158
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1159
+ * JSPB instance for transitional soy proto support:
1160
+ * http://goto/soy-param-migration
1161
+ * @return {!Object}
1162
+ */
1163
+ proto.Platform.ClientProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
1164
+ return proto.Platform.ClientProto.UpdateRequest.toObject(opt_includeInstance, this);
1165
+ };
1166
+
1167
+
1168
+ /**
1169
+ * Static version of the {@see toObject} method.
1170
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1171
+ * the JSPB instance for transitional soy proto support:
1172
+ * http://goto/soy-param-migration
1173
+ * @param {!proto.Platform.ClientProto.UpdateRequest} msg The msg instance to transform.
1174
+ * @return {!Object}
1175
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1176
+ */
1177
+ proto.Platform.ClientProto.UpdateRequest.toObject = function(includeInstance, msg) {
1178
+ var f, obj = {
1179
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1180
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1181
+ country: jspb.Message.getFieldWithDefault(msg, 3, ""),
1182
+ image: msg.getImage_asB64(),
1183
+ phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
1184
+ pb_public: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
1185
+ };
1186
+
1187
+ if (includeInstance) {
1188
+ obj.$jspbMessageInstance = msg;
1189
+ }
1190
+ return obj;
1191
+ };
1192
+ }
1193
+
1194
+
1195
+ /**
1196
+ * Deserializes binary data (in protobuf wire format).
1197
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1198
+ * @return {!proto.Platform.ClientProto.UpdateRequest}
1199
+ */
1200
+ proto.Platform.ClientProto.UpdateRequest.deserializeBinary = function(bytes) {
1201
+ var reader = new jspb.BinaryReader(bytes);
1202
+ var msg = new proto.Platform.ClientProto.UpdateRequest;
1203
+ return proto.Platform.ClientProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * Deserializes binary data (in protobuf wire format) from the
1209
+ * given reader into the given message object.
1210
+ * @param {!proto.Platform.ClientProto.UpdateRequest} msg The message object to deserialize into.
1211
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1212
+ * @return {!proto.Platform.ClientProto.UpdateRequest}
1213
+ */
1214
+ proto.Platform.ClientProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1215
+ while (reader.nextField()) {
1216
+ if (reader.isEndGroup()) {
1217
+ break;
1218
+ }
1219
+ var field = reader.getFieldNumber();
1220
+ switch (field) {
1221
+ case 1:
1222
+ var value = /** @type {number} */ (reader.readInt32());
1223
+ msg.setId(value);
1224
+ break;
1225
+ case 2:
1226
+ var value = /** @type {string} */ (reader.readString());
1227
+ msg.setName(value);
1228
+ break;
1229
+ case 3:
1230
+ var value = /** @type {string} */ (reader.readString());
1231
+ msg.setCountry(value);
1232
+ break;
1233
+ case 4:
1234
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1235
+ msg.setImage(value);
1236
+ break;
1237
+ case 5:
1238
+ var value = /** @type {string} */ (reader.readString());
1239
+ msg.setPhone(value);
1240
+ break;
1241
+ case 6:
1242
+ var value = /** @type {boolean} */ (reader.readBool());
1243
+ msg.setPublic(value);
1244
+ break;
1245
+ default:
1246
+ reader.skipField();
1247
+ break;
1248
+ }
1249
+ }
1250
+ return msg;
1251
+ };
1252
+
1253
+
1254
+ /**
1255
+ * Serializes the message to binary data (in protobuf wire format).
1256
+ * @return {!Uint8Array}
1257
+ */
1258
+ proto.Platform.ClientProto.UpdateRequest.prototype.serializeBinary = function() {
1259
+ var writer = new jspb.BinaryWriter();
1260
+ proto.Platform.ClientProto.UpdateRequest.serializeBinaryToWriter(this, writer);
1261
+ return writer.getResultBuffer();
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * Serializes the given message to binary data (in protobuf wire
1267
+ * format), writing to the given BinaryWriter.
1268
+ * @param {!proto.Platform.ClientProto.UpdateRequest} message
1269
+ * @param {!jspb.BinaryWriter} writer
1270
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1271
+ */
1272
+ proto.Platform.ClientProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
1273
+ var f = undefined;
1274
+ f = message.getId();
1275
+ if (f !== 0) {
1276
+ writer.writeInt32(
1277
+ 1,
1278
+ f
1279
+ );
1280
+ }
1281
+ f = message.getName();
1282
+ if (f.length > 0) {
1283
+ writer.writeString(
1284
+ 2,
1285
+ f
1286
+ );
1287
+ }
1288
+ f = message.getCountry();
1289
+ if (f.length > 0) {
1290
+ writer.writeString(
1291
+ 3,
1292
+ f
1293
+ );
1294
+ }
1295
+ f = message.getImage_asU8();
1296
+ if (f.length > 0) {
1297
+ writer.writeBytes(
1298
+ 4,
1299
+ f
1300
+ );
1301
+ }
1302
+ f = message.getPhone();
1303
+ if (f.length > 0) {
1304
+ writer.writeString(
1305
+ 5,
1306
+ f
1307
+ );
1308
+ }
1309
+ f = message.getPublic();
1310
+ if (f) {
1311
+ writer.writeBool(
1312
+ 6,
1313
+ f
1314
+ );
1315
+ }
1316
+ };
1317
+
1318
+
1319
+ /**
1320
+ * optional int32 id = 1;
1321
+ * @return {number}
1322
+ */
1323
+ proto.Platform.ClientProto.UpdateRequest.prototype.getId = function() {
1324
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * @param {number} value
1330
+ * @return {!proto.Platform.ClientProto.UpdateRequest} returns this
1331
+ */
1332
+ proto.Platform.ClientProto.UpdateRequest.prototype.setId = function(value) {
1333
+ return jspb.Message.setProto3IntField(this, 1, value);
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * optional string name = 2;
1339
+ * @return {string}
1340
+ */
1341
+ proto.Platform.ClientProto.UpdateRequest.prototype.getName = function() {
1342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1343
+ };
1344
+
1345
+
1346
+ /**
1347
+ * @param {string} value
1348
+ * @return {!proto.Platform.ClientProto.UpdateRequest} returns this
1349
+ */
1350
+ proto.Platform.ClientProto.UpdateRequest.prototype.setName = function(value) {
1351
+ return jspb.Message.setProto3StringField(this, 2, value);
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * optional string country = 3;
1357
+ * @return {string}
1358
+ */
1359
+ proto.Platform.ClientProto.UpdateRequest.prototype.getCountry = function() {
1360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * @param {string} value
1366
+ * @return {!proto.Platform.ClientProto.UpdateRequest} returns this
1367
+ */
1368
+ proto.Platform.ClientProto.UpdateRequest.prototype.setCountry = function(value) {
1369
+ return jspb.Message.setProto3StringField(this, 3, value);
1370
+ };
1371
+
1372
+
1373
+ /**
1374
+ * optional bytes image = 4;
1375
+ * @return {!(string|Uint8Array)}
1376
+ */
1377
+ proto.Platform.ClientProto.UpdateRequest.prototype.getImage = function() {
1378
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1379
+ };
1380
+
1381
+
1382
+ /**
1383
+ * optional bytes image = 4;
1384
+ * This is a type-conversion wrapper around `getImage()`
1385
+ * @return {string}
1386
+ */
1387
+ proto.Platform.ClientProto.UpdateRequest.prototype.getImage_asB64 = function() {
1388
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1389
+ this.getImage()));
1390
+ };
1391
+
1392
+
1393
+ /**
1394
+ * optional bytes image = 4;
1395
+ * Note that Uint8Array is not supported on all browsers.
1396
+ * @see http://caniuse.com/Uint8Array
1397
+ * This is a type-conversion wrapper around `getImage()`
1398
+ * @return {!Uint8Array}
1399
+ */
1400
+ proto.Platform.ClientProto.UpdateRequest.prototype.getImage_asU8 = function() {
1401
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1402
+ this.getImage()));
1403
+ };
1404
+
1405
+
1406
+ /**
1407
+ * @param {!(string|Uint8Array)} value
1408
+ * @return {!proto.Platform.ClientProto.UpdateRequest} returns this
1409
+ */
1410
+ proto.Platform.ClientProto.UpdateRequest.prototype.setImage = function(value) {
1411
+ return jspb.Message.setProto3BytesField(this, 4, value);
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * optional string phone = 5;
1417
+ * @return {string}
1418
+ */
1419
+ proto.Platform.ClientProto.UpdateRequest.prototype.getPhone = function() {
1420
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1421
+ };
1422
+
1423
+
1424
+ /**
1425
+ * @param {string} value
1426
+ * @return {!proto.Platform.ClientProto.UpdateRequest} returns this
1427
+ */
1428
+ proto.Platform.ClientProto.UpdateRequest.prototype.setPhone = function(value) {
1429
+ return jspb.Message.setProto3StringField(this, 5, value);
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * optional bool public = 6;
1435
+ * @return {boolean}
1436
+ */
1437
+ proto.Platform.ClientProto.UpdateRequest.prototype.getPublic = function() {
1438
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * @param {boolean} value
1444
+ * @return {!proto.Platform.ClientProto.UpdateRequest} returns this
1445
+ */
1446
+ proto.Platform.ClientProto.UpdateRequest.prototype.setPublic = function(value) {
1447
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1448
+ };
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1455
+ /**
1456
+ * Creates an object representation of this proto.
1457
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1458
+ * Optional fields that are not set will be set to undefined.
1459
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1460
+ * For the list of reserved names please see:
1461
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1462
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1463
+ * JSPB instance for transitional soy proto support:
1464
+ * http://goto/soy-param-migration
1465
+ * @return {!Object}
1466
+ */
1467
+ proto.Platform.ClientProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
1468
+ return proto.Platform.ClientProto.DeleteRequest.toObject(opt_includeInstance, this);
1469
+ };
1470
+
1471
+
1472
+ /**
1473
+ * Static version of the {@see toObject} method.
1474
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1475
+ * the JSPB instance for transitional soy proto support:
1476
+ * http://goto/soy-param-migration
1477
+ * @param {!proto.Platform.ClientProto.DeleteRequest} msg The msg instance to transform.
1478
+ * @return {!Object}
1479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1480
+ */
1481
+ proto.Platform.ClientProto.DeleteRequest.toObject = function(includeInstance, msg) {
1482
+ var f, obj = {
1483
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1484
+ };
1485
+
1486
+ if (includeInstance) {
1487
+ obj.$jspbMessageInstance = msg;
1488
+ }
1489
+ return obj;
1490
+ };
1491
+ }
1492
+
1493
+
1494
+ /**
1495
+ * Deserializes binary data (in protobuf wire format).
1496
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1497
+ * @return {!proto.Platform.ClientProto.DeleteRequest}
1498
+ */
1499
+ proto.Platform.ClientProto.DeleteRequest.deserializeBinary = function(bytes) {
1500
+ var reader = new jspb.BinaryReader(bytes);
1501
+ var msg = new proto.Platform.ClientProto.DeleteRequest;
1502
+ return proto.Platform.ClientProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * Deserializes binary data (in protobuf wire format) from the
1508
+ * given reader into the given message object.
1509
+ * @param {!proto.Platform.ClientProto.DeleteRequest} msg The message object to deserialize into.
1510
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1511
+ * @return {!proto.Platform.ClientProto.DeleteRequest}
1512
+ */
1513
+ proto.Platform.ClientProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1514
+ while (reader.nextField()) {
1515
+ if (reader.isEndGroup()) {
1516
+ break;
1517
+ }
1518
+ var field = reader.getFieldNumber();
1519
+ switch (field) {
1520
+ case 1:
1521
+ var value = /** @type {number} */ (reader.readInt32());
1522
+ msg.setId(value);
1523
+ break;
1524
+ default:
1525
+ reader.skipField();
1526
+ break;
1527
+ }
1528
+ }
1529
+ return msg;
1530
+ };
1531
+
1532
+
1533
+ /**
1534
+ * Serializes the message to binary data (in protobuf wire format).
1535
+ * @return {!Uint8Array}
1536
+ */
1537
+ proto.Platform.ClientProto.DeleteRequest.prototype.serializeBinary = function() {
1538
+ var writer = new jspb.BinaryWriter();
1539
+ proto.Platform.ClientProto.DeleteRequest.serializeBinaryToWriter(this, writer);
1540
+ return writer.getResultBuffer();
1541
+ };
1542
+
1543
+
1544
+ /**
1545
+ * Serializes the given message to binary data (in protobuf wire
1546
+ * format), writing to the given BinaryWriter.
1547
+ * @param {!proto.Platform.ClientProto.DeleteRequest} message
1548
+ * @param {!jspb.BinaryWriter} writer
1549
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1550
+ */
1551
+ proto.Platform.ClientProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
1552
+ var f = undefined;
1553
+ f = message.getId();
1554
+ if (f !== 0) {
1555
+ writer.writeInt32(
1556
+ 1,
1557
+ f
1558
+ );
1559
+ }
1560
+ };
1561
+
1562
+
1563
+ /**
1564
+ * optional int32 id = 1;
1565
+ * @return {number}
1566
+ */
1567
+ proto.Platform.ClientProto.DeleteRequest.prototype.getId = function() {
1568
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1569
+ };
1570
+
1571
+
1572
+ /**
1573
+ * @param {number} value
1574
+ * @return {!proto.Platform.ClientProto.DeleteRequest} returns this
1575
+ */
1576
+ proto.Platform.ClientProto.DeleteRequest.prototype.setId = function(value) {
1577
+ return jspb.Message.setProto3IntField(this, 1, value);
1578
+ };
1579
+
1580
+
1581
+
1582
+ /**
1583
+ * List of repeated fields within this message type.
1584
+ * @private {!Array<number>}
1585
+ * @const
1586
+ */
1587
+ proto.Platform.ClientProto.SearchReply.repeatedFields_ = [1];
1588
+
1589
+
1590
+
1591
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1592
+ /**
1593
+ * Creates an object representation of this proto.
1594
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1595
+ * Optional fields that are not set will be set to undefined.
1596
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1597
+ * For the list of reserved names please see:
1598
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1599
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1600
+ * JSPB instance for transitional soy proto support:
1601
+ * http://goto/soy-param-migration
1602
+ * @return {!Object}
1603
+ */
1604
+ proto.Platform.ClientProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
1605
+ return proto.Platform.ClientProto.SearchReply.toObject(opt_includeInstance, this);
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * Static version of the {@see toObject} method.
1611
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1612
+ * the JSPB instance for transitional soy proto support:
1613
+ * http://goto/soy-param-migration
1614
+ * @param {!proto.Platform.ClientProto.SearchReply} msg The msg instance to transform.
1615
+ * @return {!Object}
1616
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1617
+ */
1618
+ proto.Platform.ClientProto.SearchReply.toObject = function(includeInstance, msg) {
1619
+ var f, obj = {
1620
+ clientsList: jspb.Message.toObjectList(msg.getClientsList(),
1621
+ proto.Platform.ClientProto.toObject, includeInstance),
1622
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1623
+ };
1624
+
1625
+ if (includeInstance) {
1626
+ obj.$jspbMessageInstance = msg;
1627
+ }
1628
+ return obj;
1629
+ };
1630
+ }
1631
+
1632
+
1633
+ /**
1634
+ * Deserializes binary data (in protobuf wire format).
1635
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1636
+ * @return {!proto.Platform.ClientProto.SearchReply}
1637
+ */
1638
+ proto.Platform.ClientProto.SearchReply.deserializeBinary = function(bytes) {
1639
+ var reader = new jspb.BinaryReader(bytes);
1640
+ var msg = new proto.Platform.ClientProto.SearchReply;
1641
+ return proto.Platform.ClientProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * Deserializes binary data (in protobuf wire format) from the
1647
+ * given reader into the given message object.
1648
+ * @param {!proto.Platform.ClientProto.SearchReply} msg The message object to deserialize into.
1649
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1650
+ * @return {!proto.Platform.ClientProto.SearchReply}
1651
+ */
1652
+ proto.Platform.ClientProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1653
+ while (reader.nextField()) {
1654
+ if (reader.isEndGroup()) {
1655
+ break;
1656
+ }
1657
+ var field = reader.getFieldNumber();
1658
+ switch (field) {
1659
+ case 1:
1660
+ var value = new proto.Platform.ClientProto;
1661
+ reader.readMessage(value,proto.Platform.ClientProto.deserializeBinaryFromReader);
1662
+ msg.addClients(value);
1663
+ break;
1664
+ case 2:
1665
+ var value = new platform_pagination_pb.PaginationProto;
1666
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1667
+ msg.setPagination(value);
1668
+ break;
1669
+ default:
1670
+ reader.skipField();
1671
+ break;
1672
+ }
1673
+ }
1674
+ return msg;
1675
+ };
1676
+
1677
+
1678
+ /**
1679
+ * Serializes the message to binary data (in protobuf wire format).
1680
+ * @return {!Uint8Array}
1681
+ */
1682
+ proto.Platform.ClientProto.SearchReply.prototype.serializeBinary = function() {
1683
+ var writer = new jspb.BinaryWriter();
1684
+ proto.Platform.ClientProto.SearchReply.serializeBinaryToWriter(this, writer);
1685
+ return writer.getResultBuffer();
1686
+ };
1687
+
1688
+
1689
+ /**
1690
+ * Serializes the given message to binary data (in protobuf wire
1691
+ * format), writing to the given BinaryWriter.
1692
+ * @param {!proto.Platform.ClientProto.SearchReply} message
1693
+ * @param {!jspb.BinaryWriter} writer
1694
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1695
+ */
1696
+ proto.Platform.ClientProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1697
+ var f = undefined;
1698
+ f = message.getClientsList();
1699
+ if (f.length > 0) {
1700
+ writer.writeRepeatedMessage(
1701
+ 1,
1702
+ f,
1703
+ proto.Platform.ClientProto.serializeBinaryToWriter
1704
+ );
1705
+ }
1706
+ f = message.getPagination();
1707
+ if (f != null) {
1708
+ writer.writeMessage(
1709
+ 2,
1710
+ f,
1711
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1712
+ );
1713
+ }
1714
+ };
1715
+
1716
+
1717
+ /**
1718
+ * repeated ClientProto clients = 1;
1719
+ * @return {!Array<!proto.Platform.ClientProto>}
1720
+ */
1721
+ proto.Platform.ClientProto.SearchReply.prototype.getClientsList = function() {
1722
+ return /** @type{!Array<!proto.Platform.ClientProto>} */ (
1723
+ jspb.Message.getRepeatedWrapperField(this, proto.Platform.ClientProto, 1));
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * @param {!Array<!proto.Platform.ClientProto>} value
1729
+ * @return {!proto.Platform.ClientProto.SearchReply} returns this
1730
+ */
1731
+ proto.Platform.ClientProto.SearchReply.prototype.setClientsList = function(value) {
1732
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1733
+ };
1734
+
1735
+
1736
+ /**
1737
+ * @param {!proto.Platform.ClientProto=} opt_value
1738
+ * @param {number=} opt_index
1739
+ * @return {!proto.Platform.ClientProto}
1740
+ */
1741
+ proto.Platform.ClientProto.SearchReply.prototype.addClients = function(opt_value, opt_index) {
1742
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.ClientProto, opt_index);
1743
+ };
1744
+
1745
+
1746
+ /**
1747
+ * Clears the list making it empty but non-null.
1748
+ * @return {!proto.Platform.ClientProto.SearchReply} returns this
1749
+ */
1750
+ proto.Platform.ClientProto.SearchReply.prototype.clearClientsList = function() {
1751
+ return this.setClientsList([]);
1752
+ };
1753
+
1754
+
1755
+ /**
1756
+ * optional PaginationProto pagination = 2;
1757
+ * @return {?proto.Platform.PaginationProto}
1758
+ */
1759
+ proto.Platform.ClientProto.SearchReply.prototype.getPagination = function() {
1760
+ return /** @type{?proto.Platform.PaginationProto} */ (
1761
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * @param {?proto.Platform.PaginationProto|undefined} value
1767
+ * @return {!proto.Platform.ClientProto.SearchReply} returns this
1768
+ */
1769
+ proto.Platform.ClientProto.SearchReply.prototype.setPagination = function(value) {
1770
+ return jspb.Message.setWrapperField(this, 2, value);
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * Clears the message field making it undefined.
1776
+ * @return {!proto.Platform.ClientProto.SearchReply} returns this
1777
+ */
1778
+ proto.Platform.ClientProto.SearchReply.prototype.clearPagination = function() {
1779
+ return this.setPagination(undefined);
1780
+ };
1781
+
1782
+
1783
+ /**
1784
+ * Returns whether this field is set.
1785
+ * @return {boolean}
1786
+ */
1787
+ proto.Platform.ClientProto.SearchReply.prototype.hasPagination = function() {
1788
+ return jspb.Message.getField(this, 2) != null;
1789
+ };
1790
+
1791
+
1792
+
1793
+
1794
+
1795
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1796
+ /**
1797
+ * Creates an object representation of this proto.
1798
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1799
+ * Optional fields that are not set will be set to undefined.
1800
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1801
+ * For the list of reserved names please see:
1802
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1803
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1804
+ * JSPB instance for transitional soy proto support:
1805
+ * http://goto/soy-param-migration
1806
+ * @return {!Object}
1807
+ */
1808
+ proto.Platform.ClientProto.RetrieveForAccountRequest.prototype.toObject = function(opt_includeInstance) {
1809
+ return proto.Platform.ClientProto.RetrieveForAccountRequest.toObject(opt_includeInstance, this);
1810
+ };
1811
+
1812
+
1813
+ /**
1814
+ * Static version of the {@see toObject} method.
1815
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1816
+ * the JSPB instance for transitional soy proto support:
1817
+ * http://goto/soy-param-migration
1818
+ * @param {!proto.Platform.ClientProto.RetrieveForAccountRequest} msg The msg instance to transform.
1819
+ * @return {!Object}
1820
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1821
+ */
1822
+ proto.Platform.ClientProto.RetrieveForAccountRequest.toObject = function(includeInstance, msg) {
1823
+ var f, obj = {
1824
+ accountId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1825
+ clientFilterType: jspb.Message.getFieldWithDefault(msg, 2, 0)
1826
+ };
1827
+
1828
+ if (includeInstance) {
1829
+ obj.$jspbMessageInstance = msg;
1830
+ }
1831
+ return obj;
1832
+ };
1833
+ }
1834
+
1835
+
1836
+ /**
1837
+ * Deserializes binary data (in protobuf wire format).
1838
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1839
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountRequest}
1840
+ */
1841
+ proto.Platform.ClientProto.RetrieveForAccountRequest.deserializeBinary = function(bytes) {
1842
+ var reader = new jspb.BinaryReader(bytes);
1843
+ var msg = new proto.Platform.ClientProto.RetrieveForAccountRequest;
1844
+ return proto.Platform.ClientProto.RetrieveForAccountRequest.deserializeBinaryFromReader(msg, reader);
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * Deserializes binary data (in protobuf wire format) from the
1850
+ * given reader into the given message object.
1851
+ * @param {!proto.Platform.ClientProto.RetrieveForAccountRequest} msg The message object to deserialize into.
1852
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1853
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountRequest}
1854
+ */
1855
+ proto.Platform.ClientProto.RetrieveForAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
1856
+ while (reader.nextField()) {
1857
+ if (reader.isEndGroup()) {
1858
+ break;
1859
+ }
1860
+ var field = reader.getFieldNumber();
1861
+ switch (field) {
1862
+ case 1:
1863
+ var value = /** @type {number} */ (reader.readInt32());
1864
+ msg.setAccountId(value);
1865
+ break;
1866
+ case 2:
1867
+ var value = /** @type {!proto.Platform.ClientProto.ClientFilterType} */ (reader.readEnum());
1868
+ msg.setClientFilterType(value);
1869
+ break;
1870
+ default:
1871
+ reader.skipField();
1872
+ break;
1873
+ }
1874
+ }
1875
+ return msg;
1876
+ };
1877
+
1878
+
1879
+ /**
1880
+ * Serializes the message to binary data (in protobuf wire format).
1881
+ * @return {!Uint8Array}
1882
+ */
1883
+ proto.Platform.ClientProto.RetrieveForAccountRequest.prototype.serializeBinary = function() {
1884
+ var writer = new jspb.BinaryWriter();
1885
+ proto.Platform.ClientProto.RetrieveForAccountRequest.serializeBinaryToWriter(this, writer);
1886
+ return writer.getResultBuffer();
1887
+ };
1888
+
1889
+
1890
+ /**
1891
+ * Serializes the given message to binary data (in protobuf wire
1892
+ * format), writing to the given BinaryWriter.
1893
+ * @param {!proto.Platform.ClientProto.RetrieveForAccountRequest} message
1894
+ * @param {!jspb.BinaryWriter} writer
1895
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1896
+ */
1897
+ proto.Platform.ClientProto.RetrieveForAccountRequest.serializeBinaryToWriter = function(message, writer) {
1898
+ var f = undefined;
1899
+ f = message.getAccountId();
1900
+ if (f !== 0) {
1901
+ writer.writeInt32(
1902
+ 1,
1903
+ f
1904
+ );
1905
+ }
1906
+ f = message.getClientFilterType();
1907
+ if (f !== 0.0) {
1908
+ writer.writeEnum(
1909
+ 2,
1910
+ f
1911
+ );
1912
+ }
1913
+ };
1914
+
1915
+
1916
+ /**
1917
+ * optional int32 account_id = 1;
1918
+ * @return {number}
1919
+ */
1920
+ proto.Platform.ClientProto.RetrieveForAccountRequest.prototype.getAccountId = function() {
1921
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1922
+ };
1923
+
1924
+
1925
+ /**
1926
+ * @param {number} value
1927
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountRequest} returns this
1928
+ */
1929
+ proto.Platform.ClientProto.RetrieveForAccountRequest.prototype.setAccountId = function(value) {
1930
+ return jspb.Message.setProto3IntField(this, 1, value);
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * optional ClientFilterType client_filter_type = 2;
1936
+ * @return {!proto.Platform.ClientProto.ClientFilterType}
1937
+ */
1938
+ proto.Platform.ClientProto.RetrieveForAccountRequest.prototype.getClientFilterType = function() {
1939
+ return /** @type {!proto.Platform.ClientProto.ClientFilterType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * @param {!proto.Platform.ClientProto.ClientFilterType} value
1945
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountRequest} returns this
1946
+ */
1947
+ proto.Platform.ClientProto.RetrieveForAccountRequest.prototype.setClientFilterType = function(value) {
1948
+ return jspb.Message.setProto3EnumField(this, 2, value);
1949
+ };
1950
+
1951
+
1952
+
1953
+ /**
1954
+ * List of repeated fields within this message type.
1955
+ * @private {!Array<number>}
1956
+ * @const
1957
+ */
1958
+ proto.Platform.ClientProto.RetrieveForAccountReply.repeatedFields_ = [1];
1959
+
1960
+
1961
+
1962
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1963
+ /**
1964
+ * Creates an object representation of this proto.
1965
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1966
+ * Optional fields that are not set will be set to undefined.
1967
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1968
+ * For the list of reserved names please see:
1969
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1970
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1971
+ * JSPB instance for transitional soy proto support:
1972
+ * http://goto/soy-param-migration
1973
+ * @return {!Object}
1974
+ */
1975
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.toObject = function(opt_includeInstance) {
1976
+ return proto.Platform.ClientProto.RetrieveForAccountReply.toObject(opt_includeInstance, this);
1977
+ };
1978
+
1979
+
1980
+ /**
1981
+ * Static version of the {@see toObject} method.
1982
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1983
+ * the JSPB instance for transitional soy proto support:
1984
+ * http://goto/soy-param-migration
1985
+ * @param {!proto.Platform.ClientProto.RetrieveForAccountReply} msg The msg instance to transform.
1986
+ * @return {!Object}
1987
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1988
+ */
1989
+ proto.Platform.ClientProto.RetrieveForAccountReply.toObject = function(includeInstance, msg) {
1990
+ var f, obj = {
1991
+ clientsList: jspb.Message.toObjectList(msg.getClientsList(),
1992
+ proto.Platform.ClientProto.toObject, includeInstance),
1993
+ clientFilterType: jspb.Message.getFieldWithDefault(msg, 2, 0)
1994
+ };
1995
+
1996
+ if (includeInstance) {
1997
+ obj.$jspbMessageInstance = msg;
1998
+ }
1999
+ return obj;
2000
+ };
2001
+ }
2002
+
2003
+
2004
+ /**
2005
+ * Deserializes binary data (in protobuf wire format).
2006
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2007
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountReply}
2008
+ */
2009
+ proto.Platform.ClientProto.RetrieveForAccountReply.deserializeBinary = function(bytes) {
2010
+ var reader = new jspb.BinaryReader(bytes);
2011
+ var msg = new proto.Platform.ClientProto.RetrieveForAccountReply;
2012
+ return proto.Platform.ClientProto.RetrieveForAccountReply.deserializeBinaryFromReader(msg, reader);
2013
+ };
2014
+
2015
+
2016
+ /**
2017
+ * Deserializes binary data (in protobuf wire format) from the
2018
+ * given reader into the given message object.
2019
+ * @param {!proto.Platform.ClientProto.RetrieveForAccountReply} msg The message object to deserialize into.
2020
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2021
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountReply}
2022
+ */
2023
+ proto.Platform.ClientProto.RetrieveForAccountReply.deserializeBinaryFromReader = function(msg, reader) {
2024
+ while (reader.nextField()) {
2025
+ if (reader.isEndGroup()) {
2026
+ break;
2027
+ }
2028
+ var field = reader.getFieldNumber();
2029
+ switch (field) {
2030
+ case 1:
2031
+ var value = new proto.Platform.ClientProto;
2032
+ reader.readMessage(value,proto.Platform.ClientProto.deserializeBinaryFromReader);
2033
+ msg.addClients(value);
2034
+ break;
2035
+ case 2:
2036
+ var value = /** @type {!proto.Platform.ClientProto.ClientFilterType} */ (reader.readEnum());
2037
+ msg.setClientFilterType(value);
2038
+ break;
2039
+ default:
2040
+ reader.skipField();
2041
+ break;
2042
+ }
2043
+ }
2044
+ return msg;
2045
+ };
2046
+
2047
+
2048
+ /**
2049
+ * Serializes the message to binary data (in protobuf wire format).
2050
+ * @return {!Uint8Array}
2051
+ */
2052
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.serializeBinary = function() {
2053
+ var writer = new jspb.BinaryWriter();
2054
+ proto.Platform.ClientProto.RetrieveForAccountReply.serializeBinaryToWriter(this, writer);
2055
+ return writer.getResultBuffer();
2056
+ };
2057
+
2058
+
2059
+ /**
2060
+ * Serializes the given message to binary data (in protobuf wire
2061
+ * format), writing to the given BinaryWriter.
2062
+ * @param {!proto.Platform.ClientProto.RetrieveForAccountReply} message
2063
+ * @param {!jspb.BinaryWriter} writer
2064
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2065
+ */
2066
+ proto.Platform.ClientProto.RetrieveForAccountReply.serializeBinaryToWriter = function(message, writer) {
2067
+ var f = undefined;
2068
+ f = message.getClientsList();
2069
+ if (f.length > 0) {
2070
+ writer.writeRepeatedMessage(
2071
+ 1,
2072
+ f,
2073
+ proto.Platform.ClientProto.serializeBinaryToWriter
2074
+ );
2075
+ }
2076
+ f = message.getClientFilterType();
2077
+ if (f !== 0.0) {
2078
+ writer.writeEnum(
2079
+ 2,
2080
+ f
2081
+ );
2082
+ }
2083
+ };
2084
+
2085
+
2086
+ /**
2087
+ * repeated ClientProto clients = 1;
2088
+ * @return {!Array<!proto.Platform.ClientProto>}
2089
+ */
2090
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.getClientsList = function() {
2091
+ return /** @type{!Array<!proto.Platform.ClientProto>} */ (
2092
+ jspb.Message.getRepeatedWrapperField(this, proto.Platform.ClientProto, 1));
2093
+ };
2094
+
2095
+
2096
+ /**
2097
+ * @param {!Array<!proto.Platform.ClientProto>} value
2098
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountReply} returns this
2099
+ */
2100
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.setClientsList = function(value) {
2101
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2102
+ };
2103
+
2104
+
2105
+ /**
2106
+ * @param {!proto.Platform.ClientProto=} opt_value
2107
+ * @param {number=} opt_index
2108
+ * @return {!proto.Platform.ClientProto}
2109
+ */
2110
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.addClients = function(opt_value, opt_index) {
2111
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.ClientProto, opt_index);
2112
+ };
2113
+
2114
+
2115
+ /**
2116
+ * Clears the list making it empty but non-null.
2117
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountReply} returns this
2118
+ */
2119
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.clearClientsList = function() {
2120
+ return this.setClientsList([]);
2121
+ };
2122
+
2123
+
2124
+ /**
2125
+ * optional ClientFilterType client_filter_type = 2;
2126
+ * @return {!proto.Platform.ClientProto.ClientFilterType}
2127
+ */
2128
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.getClientFilterType = function() {
2129
+ return /** @type {!proto.Platform.ClientProto.ClientFilterType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2130
+ };
2131
+
2132
+
2133
+ /**
2134
+ * @param {!proto.Platform.ClientProto.ClientFilterType} value
2135
+ * @return {!proto.Platform.ClientProto.RetrieveForAccountReply} returns this
2136
+ */
2137
+ proto.Platform.ClientProto.RetrieveForAccountReply.prototype.setClientFilterType = function(value) {
2138
+ return jspb.Message.setProto3EnumField(this, 2, value);
2139
+ };
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2146
+ /**
2147
+ * Creates an object representation of this proto.
2148
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2149
+ * Optional fields that are not set will be set to undefined.
2150
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2151
+ * For the list of reserved names please see:
2152
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2153
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2154
+ * JSPB instance for transitional soy proto support:
2155
+ * http://goto/soy-param-migration
2156
+ * @return {!Object}
2157
+ */
2158
+ proto.Platform.ClientProto.DeleteReply.prototype.toObject = function(opt_includeInstance) {
2159
+ return proto.Platform.ClientProto.DeleteReply.toObject(opt_includeInstance, this);
2160
+ };
2161
+
2162
+
2163
+ /**
2164
+ * Static version of the {@see toObject} method.
2165
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2166
+ * the JSPB instance for transitional soy proto support:
2167
+ * http://goto/soy-param-migration
2168
+ * @param {!proto.Platform.ClientProto.DeleteReply} msg The msg instance to transform.
2169
+ * @return {!Object}
2170
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2171
+ */
2172
+ proto.Platform.ClientProto.DeleteReply.toObject = function(includeInstance, msg) {
2173
+ var f, obj = {
2174
+
2175
+ };
2176
+
2177
+ if (includeInstance) {
2178
+ obj.$jspbMessageInstance = msg;
2179
+ }
2180
+ return obj;
2181
+ };
2182
+ }
2183
+
2184
+
2185
+ /**
2186
+ * Deserializes binary data (in protobuf wire format).
2187
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2188
+ * @return {!proto.Platform.ClientProto.DeleteReply}
2189
+ */
2190
+ proto.Platform.ClientProto.DeleteReply.deserializeBinary = function(bytes) {
2191
+ var reader = new jspb.BinaryReader(bytes);
2192
+ var msg = new proto.Platform.ClientProto.DeleteReply;
2193
+ return proto.Platform.ClientProto.DeleteReply.deserializeBinaryFromReader(msg, reader);
2194
+ };
2195
+
2196
+
2197
+ /**
2198
+ * Deserializes binary data (in protobuf wire format) from the
2199
+ * given reader into the given message object.
2200
+ * @param {!proto.Platform.ClientProto.DeleteReply} msg The message object to deserialize into.
2201
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2202
+ * @return {!proto.Platform.ClientProto.DeleteReply}
2203
+ */
2204
+ proto.Platform.ClientProto.DeleteReply.deserializeBinaryFromReader = function(msg, reader) {
2205
+ while (reader.nextField()) {
2206
+ if (reader.isEndGroup()) {
2207
+ break;
2208
+ }
2209
+ var field = reader.getFieldNumber();
2210
+ switch (field) {
2211
+ default:
2212
+ reader.skipField();
2213
+ break;
2214
+ }
2215
+ }
2216
+ return msg;
2217
+ };
2218
+
2219
+
2220
+ /**
2221
+ * Serializes the message to binary data (in protobuf wire format).
2222
+ * @return {!Uint8Array}
2223
+ */
2224
+ proto.Platform.ClientProto.DeleteReply.prototype.serializeBinary = function() {
2225
+ var writer = new jspb.BinaryWriter();
2226
+ proto.Platform.ClientProto.DeleteReply.serializeBinaryToWriter(this, writer);
2227
+ return writer.getResultBuffer();
2228
+ };
2229
+
2230
+
2231
+ /**
2232
+ * Serializes the given message to binary data (in protobuf wire
2233
+ * format), writing to the given BinaryWriter.
2234
+ * @param {!proto.Platform.ClientProto.DeleteReply} message
2235
+ * @param {!jspb.BinaryWriter} writer
2236
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2237
+ */
2238
+ proto.Platform.ClientProto.DeleteReply.serializeBinaryToWriter = function(message, writer) {
2239
+ var f = undefined;
2240
+ };
2241
+
2242
+
2243
+ /**
2244
+ * optional int32 id = 1;
2245
+ * @return {number}
2246
+ */
2247
+ proto.Platform.ClientProto.prototype.getId = function() {
2248
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2249
+ };
2250
+
2251
+
2252
+ /**
2253
+ * @param {number} value
2254
+ * @return {!proto.Platform.ClientProto} returns this
2255
+ */
2256
+ proto.Platform.ClientProto.prototype.setId = function(value) {
2257
+ return jspb.Message.setProto3IntField(this, 1, value);
2258
+ };
2259
+
2260
+
2261
+ /**
2262
+ * optional string name = 2;
2263
+ * @return {string}
2264
+ */
2265
+ proto.Platform.ClientProto.prototype.getName = function() {
2266
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * @param {string} value
2272
+ * @return {!proto.Platform.ClientProto} returns this
2273
+ */
2274
+ proto.Platform.ClientProto.prototype.setName = function(value) {
2275
+ return jspb.Message.setProto3StringField(this, 2, value);
2276
+ };
2277
+
2278
+
2279
+ /**
2280
+ * optional string country = 3;
2281
+ * @return {string}
2282
+ */
2283
+ proto.Platform.ClientProto.prototype.getCountry = function() {
2284
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2285
+ };
2286
+
2287
+
2288
+ /**
2289
+ * @param {string} value
2290
+ * @return {!proto.Platform.ClientProto} returns this
2291
+ */
2292
+ proto.Platform.ClientProto.prototype.setCountry = function(value) {
2293
+ return jspb.Message.setProto3StringField(this, 3, value);
2294
+ };
2295
+
2296
+
2297
+ /**
2298
+ * optional bytes image = 4;
2299
+ * @return {!(string|Uint8Array)}
2300
+ */
2301
+ proto.Platform.ClientProto.prototype.getImage = function() {
2302
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2303
+ };
2304
+
2305
+
2306
+ /**
2307
+ * optional bytes image = 4;
2308
+ * This is a type-conversion wrapper around `getImage()`
2309
+ * @return {string}
2310
+ */
2311
+ proto.Platform.ClientProto.prototype.getImage_asB64 = function() {
2312
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2313
+ this.getImage()));
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * optional bytes image = 4;
2319
+ * Note that Uint8Array is not supported on all browsers.
2320
+ * @see http://caniuse.com/Uint8Array
2321
+ * This is a type-conversion wrapper around `getImage()`
2322
+ * @return {!Uint8Array}
2323
+ */
2324
+ proto.Platform.ClientProto.prototype.getImage_asU8 = function() {
2325
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2326
+ this.getImage()));
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * @param {!(string|Uint8Array)} value
2332
+ * @return {!proto.Platform.ClientProto} returns this
2333
+ */
2334
+ proto.Platform.ClientProto.prototype.setImage = function(value) {
2335
+ return jspb.Message.setProto3BytesField(this, 4, value);
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * optional string phone = 5;
2341
+ * @return {string}
2342
+ */
2343
+ proto.Platform.ClientProto.prototype.getPhone = function() {
2344
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2345
+ };
2346
+
2347
+
2348
+ /**
2349
+ * @param {string} value
2350
+ * @return {!proto.Platform.ClientProto} returns this
2351
+ */
2352
+ proto.Platform.ClientProto.prototype.setPhone = function(value) {
2353
+ return jspb.Message.setProto3StringField(this, 5, value);
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * optional bool public = 6;
2359
+ * @return {boolean}
2360
+ */
2361
+ proto.Platform.ClientProto.prototype.getPublic = function() {
2362
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * @param {boolean} value
2368
+ * @return {!proto.Platform.ClientProto} returns this
2369
+ */
2370
+ proto.Platform.ClientProto.prototype.setPublic = function(value) {
2371
+ return jspb.Message.setProto3BooleanField(this, 6, value);
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * optional bool spic_module_enabled = 7;
2377
+ * @return {boolean}
2378
+ */
2379
+ proto.Platform.ClientProto.prototype.getSpicModuleEnabled = function() {
2380
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * @param {boolean} value
2386
+ * @return {!proto.Platform.ClientProto} returns this
2387
+ */
2388
+ proto.Platform.ClientProto.prototype.setSpicModuleEnabled = function(value) {
2389
+ return jspb.Message.setProto3BooleanField(this, 7, value);
2390
+ };
2391
+
2392
+
2393
+ /**
2394
+ * optional bool drumtracker_module_enabled = 8;
2395
+ * @return {boolean}
2396
+ */
2397
+ proto.Platform.ClientProto.prototype.getDrumtrackerModuleEnabled = function() {
2398
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
2399
+ };
2400
+
2401
+
2402
+ /**
2403
+ * @param {boolean} value
2404
+ * @return {!proto.Platform.ClientProto} returns this
2405
+ */
2406
+ proto.Platform.ClientProto.prototype.setDrumtrackerModuleEnabled = function(value) {
2407
+ return jspb.Message.setProto3BooleanField(this, 8, value);
2408
+ };
2409
+
2410
+
2411
+ /**
2412
+ * optional bool kapus_module_enabled = 9;
2413
+ * @return {boolean}
2414
+ */
2415
+ proto.Platform.ClientProto.prototype.getKapusModuleEnabled = function() {
2416
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * @param {boolean} value
2422
+ * @return {!proto.Platform.ClientProto} returns this
2423
+ */
2424
+ proto.Platform.ClientProto.prototype.setKapusModuleEnabled = function(value) {
2425
+ return jspb.Message.setProto3BooleanField(this, 9, value);
2426
+ };
2427
+
2428
+
2429
+ goog.object.extend(exports, proto.Platform);