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

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