@aceplus/smartace-api 1.3.0-alpha.124 → 1.3.0-alpha.125

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