@aceplus/smartace-api 2.13.0-alpha.1 → 2.13.0-jan-auth-refactor.1

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