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

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