@aldiokta/protocgen 1.0.89 → 1.0.91

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 (103) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  3. package/prisca/v1/core/access_manager/access_manager_pb.js +9060 -0
  4. package/prisca/v1/core/auth/auth_grpc_pb.js +400 -0
  5. package/prisca/v1/core/auth/auth_pb.js +4253 -0
  6. package/prisca/v1/core/company/company_grpc_pb.js +177 -0
  7. package/prisca/v1/core/company/company_pb.js +2875 -0
  8. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  9. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  10. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  11. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  12. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  13. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  14. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +66 -0
  15. package/prisca/v1/core/file_upload/file_upload_pb.js +864 -0
  16. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  17. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  18. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  19. package/prisca/v1/core/job_position/job_position_pb.js +3762 -0
  20. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  21. package/prisca/v1/core/job_title/job_title_pb.js +2958 -0
  22. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  23. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1218 -0
  24. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +178 -0
  25. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2695 -0
  26. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  27. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  28. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  29. package/prisca/v1/core/location/location_pb.js +10879 -0
  30. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  31. package/prisca/v1/core/material/material_pb.js +4180 -0
  32. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  33. package/prisca/v1/core/material_group/material_group_pb.js +2776 -0
  34. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  35. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  36. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  37. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  38. package/prisca/v1/core/messaging/messaging_grpc_pb.js +45 -0
  39. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  40. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  41. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  42. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  43. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  44. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  45. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  46. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  47. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  48. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
  49. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
  50. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  51. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  52. package/prisca/v1/core/report/report_grpc_pb.js +189 -0
  53. package/prisca/v1/core/report/report_pb.js +2732 -0
  54. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  55. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  56. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  57. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  58. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +465 -0
  59. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10591 -0
  60. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  61. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  62. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  63. package/prisca/v1/core/users/users_pb.js +1246 -0
  64. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  65. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  66. package/prisca/v1/core/workflow/workflow_grpc_pb.js +202 -0
  67. package/prisca/v1/core/workflow/workflow_pb.js +7376 -0
  68. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  69. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  70. package/prisca/v1/core/access_manager/access_manager.proto +0 -273
  71. package/prisca/v1/core/auth/auth.proto +0 -142
  72. package/prisca/v1/core/company/company.proto +0 -86
  73. package/prisca/v1/core/currency/currency.proto +0 -76
  74. package/prisca/v1/core/department_material/department_material.proto +0 -69
  75. package/prisca/v1/core/employee/employee.proto +0 -129
  76. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  77. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  78. package/prisca/v1/core/job_position/job_position.proto +0 -113
  79. package/prisca/v1/core/job_title/job_title.proto +0 -89
  80. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  81. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -82
  82. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  83. package/prisca/v1/core/location/location.proto +0 -289
  84. package/prisca/v1/core/material/material.proto +0 -131
  85. package/prisca/v1/core/material_group/material_group.proto +0 -85
  86. package/prisca/v1/core/material_type/material_type.proto +0 -86
  87. package/prisca/v1/core/messaging/email_template.proto +0 -75
  88. package/prisca/v1/core/messaging/messaging.proto +0 -28
  89. package/prisca/v1/core/number_range/number_range.proto +0 -89
  90. package/prisca/v1/core/organization/organization.proto +0 -94
  91. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  92. package/prisca/v1/core/procurement/procurement.proto +0 -54
  93. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  94. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  95. package/prisca/v1/core/report/report.proto +0 -86
  96. package/prisca/v1/core/report/user_report.proto +0 -74
  97. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  98. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -314
  99. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  100. package/prisca/v1/core/users/users.proto +0 -45
  101. package/prisca/v1/core/work_location/work_location.proto +0 -122
  102. package/prisca/v1/core/workflow/workflow.proto +0 -219
  103. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -0,0 +1,4253 @@
1
+ // source: prisca/v1/core/auth/auth.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 prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ goog.exportSymbol('proto.AccessApiCredential', null, global);
27
+ goog.exportSymbol('proto.AccessApiManagersResponse', null, global);
28
+ goog.exportSymbol('proto.AccessCreateRequest', null, global);
29
+ goog.exportSymbol('proto.AccessResponse', null, global);
30
+ goog.exportSymbol('proto.AuthVerifyToken', null, global);
31
+ goog.exportSymbol('proto.ChangePasswordRequest', null, global);
32
+ goog.exportSymbol('proto.ChangePasswordResponse', null, global);
33
+ goog.exportSymbol('proto.CheckCompaniesRequest', null, global);
34
+ goog.exportSymbol('proto.CreateUserPayload', null, global);
35
+ goog.exportSymbol('proto.ForgotPassworReq', null, global);
36
+ goog.exportSymbol('proto.GetAccessByIdPayload', null, global);
37
+ goog.exportSymbol('proto.GetListAccessRequest', null, global);
38
+ goog.exportSymbol('proto.GetListUserRequest', null, global);
39
+ goog.exportSymbol('proto.GetListUserResponse', null, global);
40
+ goog.exportSymbol('proto.ListAccessResponse', null, global);
41
+ goog.exportSymbol('proto.LoginRequest', null, global);
42
+ goog.exportSymbol('proto.RequestForgotPasswordReq', null, global);
43
+ goog.exportSymbol('proto.RequestForgotResponse', null, global);
44
+ goog.exportSymbol('proto.UpdateAccessPayload', null, global);
45
+ goog.exportSymbol('proto.UpdateUserPayload', null, global);
46
+ goog.exportSymbol('proto.UserResponse', null, global);
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.ForgotPassworReq = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.ForgotPassworReq, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.ForgotPassworReq.displayName = 'proto.ForgotPassworReq';
67
+ }
68
+ /**
69
+ * Generated by JsPbCodeGenerator.
70
+ * @param {Array=} opt_data Optional initial data array, typically from a
71
+ * server response, or constructed directly in Javascript. The array is used
72
+ * in place and becomes part of the constructed object. It is not cloned.
73
+ * If no data is provided, the constructed object will be empty, but still
74
+ * valid.
75
+ * @extends {jspb.Message}
76
+ * @constructor
77
+ */
78
+ proto.RequestForgotPasswordReq = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.RequestForgotPasswordReq, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.RequestForgotPasswordReq.displayName = 'proto.RequestForgotPasswordReq';
88
+ }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.RequestForgotResponse = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.RequestForgotResponse, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.RequestForgotResponse.displayName = 'proto.RequestForgotResponse';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.LoginRequest = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.LoginRequest, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.LoginRequest.displayName = 'proto.LoginRequest';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.GetListAccessRequest = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.GetListAccessRequest, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.GetListAccessRequest.displayName = 'proto.GetListAccessRequest';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.CheckCompaniesRequest = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.CheckCompaniesRequest, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.CheckCompaniesRequest.displayName = 'proto.CheckCompaniesRequest';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.AccessApiCredential = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.AccessApiCredential, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.AccessApiCredential.displayName = 'proto.AccessApiCredential';
193
+ }
194
+ /**
195
+ * Generated by JsPbCodeGenerator.
196
+ * @param {Array=} opt_data Optional initial data array, typically from a
197
+ * server response, or constructed directly in Javascript. The array is used
198
+ * in place and becomes part of the constructed object. It is not cloned.
199
+ * If no data is provided, the constructed object will be empty, but still
200
+ * valid.
201
+ * @extends {jspb.Message}
202
+ * @constructor
203
+ */
204
+ proto.AccessCreateRequest = function(opt_data) {
205
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
206
+ };
207
+ goog.inherits(proto.AccessCreateRequest, jspb.Message);
208
+ if (goog.DEBUG && !COMPILED) {
209
+ /**
210
+ * @public
211
+ * @override
212
+ */
213
+ proto.AccessCreateRequest.displayName = 'proto.AccessCreateRequest';
214
+ }
215
+ /**
216
+ * Generated by JsPbCodeGenerator.
217
+ * @param {Array=} opt_data Optional initial data array, typically from a
218
+ * server response, or constructed directly in Javascript. The array is used
219
+ * in place and becomes part of the constructed object. It is not cloned.
220
+ * If no data is provided, the constructed object will be empty, but still
221
+ * valid.
222
+ * @extends {jspb.Message}
223
+ * @constructor
224
+ */
225
+ proto.AuthVerifyToken = function(opt_data) {
226
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
227
+ };
228
+ goog.inherits(proto.AuthVerifyToken, jspb.Message);
229
+ if (goog.DEBUG && !COMPILED) {
230
+ /**
231
+ * @public
232
+ * @override
233
+ */
234
+ proto.AuthVerifyToken.displayName = 'proto.AuthVerifyToken';
235
+ }
236
+ /**
237
+ * Generated by JsPbCodeGenerator.
238
+ * @param {Array=} opt_data Optional initial data array, typically from a
239
+ * server response, or constructed directly in Javascript. The array is used
240
+ * in place and becomes part of the constructed object. It is not cloned.
241
+ * If no data is provided, the constructed object will be empty, but still
242
+ * valid.
243
+ * @extends {jspb.Message}
244
+ * @constructor
245
+ */
246
+ proto.UpdateAccessPayload = function(opt_data) {
247
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
248
+ };
249
+ goog.inherits(proto.UpdateAccessPayload, jspb.Message);
250
+ if (goog.DEBUG && !COMPILED) {
251
+ /**
252
+ * @public
253
+ * @override
254
+ */
255
+ proto.UpdateAccessPayload.displayName = 'proto.UpdateAccessPayload';
256
+ }
257
+ /**
258
+ * Generated by JsPbCodeGenerator.
259
+ * @param {Array=} opt_data Optional initial data array, typically from a
260
+ * server response, or constructed directly in Javascript. The array is used
261
+ * in place and becomes part of the constructed object. It is not cloned.
262
+ * If no data is provided, the constructed object will be empty, but still
263
+ * valid.
264
+ * @extends {jspb.Message}
265
+ * @constructor
266
+ */
267
+ proto.GetAccessByIdPayload = function(opt_data) {
268
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
269
+ };
270
+ goog.inherits(proto.GetAccessByIdPayload, jspb.Message);
271
+ if (goog.DEBUG && !COMPILED) {
272
+ /**
273
+ * @public
274
+ * @override
275
+ */
276
+ proto.GetAccessByIdPayload.displayName = 'proto.GetAccessByIdPayload';
277
+ }
278
+ /**
279
+ * Generated by JsPbCodeGenerator.
280
+ * @param {Array=} opt_data Optional initial data array, typically from a
281
+ * server response, or constructed directly in Javascript. The array is used
282
+ * in place and becomes part of the constructed object. It is not cloned.
283
+ * If no data is provided, the constructed object will be empty, but still
284
+ * valid.
285
+ * @extends {jspb.Message}
286
+ * @constructor
287
+ */
288
+ proto.CreateUserPayload = function(opt_data) {
289
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
290
+ };
291
+ goog.inherits(proto.CreateUserPayload, jspb.Message);
292
+ if (goog.DEBUG && !COMPILED) {
293
+ /**
294
+ * @public
295
+ * @override
296
+ */
297
+ proto.CreateUserPayload.displayName = 'proto.CreateUserPayload';
298
+ }
299
+ /**
300
+ * Generated by JsPbCodeGenerator.
301
+ * @param {Array=} opt_data Optional initial data array, typically from a
302
+ * server response, or constructed directly in Javascript. The array is used
303
+ * in place and becomes part of the constructed object. It is not cloned.
304
+ * If no data is provided, the constructed object will be empty, but still
305
+ * valid.
306
+ * @extends {jspb.Message}
307
+ * @constructor
308
+ */
309
+ proto.UpdateUserPayload = function(opt_data) {
310
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
311
+ };
312
+ goog.inherits(proto.UpdateUserPayload, jspb.Message);
313
+ if (goog.DEBUG && !COMPILED) {
314
+ /**
315
+ * @public
316
+ * @override
317
+ */
318
+ proto.UpdateUserPayload.displayName = 'proto.UpdateUserPayload';
319
+ }
320
+ /**
321
+ * Generated by JsPbCodeGenerator.
322
+ * @param {Array=} opt_data Optional initial data array, typically from a
323
+ * server response, or constructed directly in Javascript. The array is used
324
+ * in place and becomes part of the constructed object. It is not cloned.
325
+ * If no data is provided, the constructed object will be empty, but still
326
+ * valid.
327
+ * @extends {jspb.Message}
328
+ * @constructor
329
+ */
330
+ proto.ChangePasswordRequest = function(opt_data) {
331
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
332
+ };
333
+ goog.inherits(proto.ChangePasswordRequest, jspb.Message);
334
+ if (goog.DEBUG && !COMPILED) {
335
+ /**
336
+ * @public
337
+ * @override
338
+ */
339
+ proto.ChangePasswordRequest.displayName = 'proto.ChangePasswordRequest';
340
+ }
341
+ /**
342
+ * Generated by JsPbCodeGenerator.
343
+ * @param {Array=} opt_data Optional initial data array, typically from a
344
+ * server response, or constructed directly in Javascript. The array is used
345
+ * in place and becomes part of the constructed object. It is not cloned.
346
+ * If no data is provided, the constructed object will be empty, but still
347
+ * valid.
348
+ * @extends {jspb.Message}
349
+ * @constructor
350
+ */
351
+ proto.UserResponse = function(opt_data) {
352
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
353
+ };
354
+ goog.inherits(proto.UserResponse, jspb.Message);
355
+ if (goog.DEBUG && !COMPILED) {
356
+ /**
357
+ * @public
358
+ * @override
359
+ */
360
+ proto.UserResponse.displayName = 'proto.UserResponse';
361
+ }
362
+ /**
363
+ * Generated by JsPbCodeGenerator.
364
+ * @param {Array=} opt_data Optional initial data array, typically from a
365
+ * server response, or constructed directly in Javascript. The array is used
366
+ * in place and becomes part of the constructed object. It is not cloned.
367
+ * If no data is provided, the constructed object will be empty, but still
368
+ * valid.
369
+ * @extends {jspb.Message}
370
+ * @constructor
371
+ */
372
+ proto.AccessResponse = function(opt_data) {
373
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
374
+ };
375
+ goog.inherits(proto.AccessResponse, jspb.Message);
376
+ if (goog.DEBUG && !COMPILED) {
377
+ /**
378
+ * @public
379
+ * @override
380
+ */
381
+ proto.AccessResponse.displayName = 'proto.AccessResponse';
382
+ }
383
+ /**
384
+ * Generated by JsPbCodeGenerator.
385
+ * @param {Array=} opt_data Optional initial data array, typically from a
386
+ * server response, or constructed directly in Javascript. The array is used
387
+ * in place and becomes part of the constructed object. It is not cloned.
388
+ * If no data is provided, the constructed object will be empty, but still
389
+ * valid.
390
+ * @extends {jspb.Message}
391
+ * @constructor
392
+ */
393
+ proto.AccessApiManagersResponse = function(opt_data) {
394
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
395
+ };
396
+ goog.inherits(proto.AccessApiManagersResponse, jspb.Message);
397
+ if (goog.DEBUG && !COMPILED) {
398
+ /**
399
+ * @public
400
+ * @override
401
+ */
402
+ proto.AccessApiManagersResponse.displayName = 'proto.AccessApiManagersResponse';
403
+ }
404
+ /**
405
+ * Generated by JsPbCodeGenerator.
406
+ * @param {Array=} opt_data Optional initial data array, typically from a
407
+ * server response, or constructed directly in Javascript. The array is used
408
+ * in place and becomes part of the constructed object. It is not cloned.
409
+ * If no data is provided, the constructed object will be empty, but still
410
+ * valid.
411
+ * @extends {jspb.Message}
412
+ * @constructor
413
+ */
414
+ proto.ListAccessResponse = function(opt_data) {
415
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ListAccessResponse.repeatedFields_, null);
416
+ };
417
+ goog.inherits(proto.ListAccessResponse, jspb.Message);
418
+ if (goog.DEBUG && !COMPILED) {
419
+ /**
420
+ * @public
421
+ * @override
422
+ */
423
+ proto.ListAccessResponse.displayName = 'proto.ListAccessResponse';
424
+ }
425
+ /**
426
+ * Generated by JsPbCodeGenerator.
427
+ * @param {Array=} opt_data Optional initial data array, typically from a
428
+ * server response, or constructed directly in Javascript. The array is used
429
+ * in place and becomes part of the constructed object. It is not cloned.
430
+ * If no data is provided, the constructed object will be empty, but still
431
+ * valid.
432
+ * @extends {jspb.Message}
433
+ * @constructor
434
+ */
435
+ proto.ChangePasswordResponse = function(opt_data) {
436
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
437
+ };
438
+ goog.inherits(proto.ChangePasswordResponse, jspb.Message);
439
+ if (goog.DEBUG && !COMPILED) {
440
+ /**
441
+ * @public
442
+ * @override
443
+ */
444
+ proto.ChangePasswordResponse.displayName = 'proto.ChangePasswordResponse';
445
+ }
446
+ /**
447
+ * Generated by JsPbCodeGenerator.
448
+ * @param {Array=} opt_data Optional initial data array, typically from a
449
+ * server response, or constructed directly in Javascript. The array is used
450
+ * in place and becomes part of the constructed object. It is not cloned.
451
+ * If no data is provided, the constructed object will be empty, but still
452
+ * valid.
453
+ * @extends {jspb.Message}
454
+ * @constructor
455
+ */
456
+ proto.GetListUserRequest = function(opt_data) {
457
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
458
+ };
459
+ goog.inherits(proto.GetListUserRequest, jspb.Message);
460
+ if (goog.DEBUG && !COMPILED) {
461
+ /**
462
+ * @public
463
+ * @override
464
+ */
465
+ proto.GetListUserRequest.displayName = 'proto.GetListUserRequest';
466
+ }
467
+ /**
468
+ * Generated by JsPbCodeGenerator.
469
+ * @param {Array=} opt_data Optional initial data array, typically from a
470
+ * server response, or constructed directly in Javascript. The array is used
471
+ * in place and becomes part of the constructed object. It is not cloned.
472
+ * If no data is provided, the constructed object will be empty, but still
473
+ * valid.
474
+ * @extends {jspb.Message}
475
+ * @constructor
476
+ */
477
+ proto.GetListUserResponse = function(opt_data) {
478
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListUserResponse.repeatedFields_, null);
479
+ };
480
+ goog.inherits(proto.GetListUserResponse, jspb.Message);
481
+ if (goog.DEBUG && !COMPILED) {
482
+ /**
483
+ * @public
484
+ * @override
485
+ */
486
+ proto.GetListUserResponse.displayName = 'proto.GetListUserResponse';
487
+ }
488
+
489
+
490
+
491
+ if (jspb.Message.GENERATE_TO_OBJECT) {
492
+ /**
493
+ * Creates an object representation of this proto.
494
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
495
+ * Optional fields that are not set will be set to undefined.
496
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
497
+ * For the list of reserved names please see:
498
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
499
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
500
+ * JSPB instance for transitional soy proto support:
501
+ * http://goto/soy-param-migration
502
+ * @return {!Object}
503
+ */
504
+ proto.ForgotPassworReq.prototype.toObject = function(opt_includeInstance) {
505
+ return proto.ForgotPassworReq.toObject(opt_includeInstance, this);
506
+ };
507
+
508
+
509
+ /**
510
+ * Static version of the {@see toObject} method.
511
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
512
+ * the JSPB instance for transitional soy proto support:
513
+ * http://goto/soy-param-migration
514
+ * @param {!proto.ForgotPassworReq} msg The msg instance to transform.
515
+ * @return {!Object}
516
+ * @suppress {unusedLocalVariables} f is only used for nested messages
517
+ */
518
+ proto.ForgotPassworReq.toObject = function(includeInstance, msg) {
519
+ var f, obj = {
520
+ password: jspb.Message.getFieldWithDefault(msg, 1, "")
521
+ };
522
+
523
+ if (includeInstance) {
524
+ obj.$jspbMessageInstance = msg;
525
+ }
526
+ return obj;
527
+ };
528
+ }
529
+
530
+
531
+ /**
532
+ * Deserializes binary data (in protobuf wire format).
533
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
534
+ * @return {!proto.ForgotPassworReq}
535
+ */
536
+ proto.ForgotPassworReq.deserializeBinary = function(bytes) {
537
+ var reader = new jspb.BinaryReader(bytes);
538
+ var msg = new proto.ForgotPassworReq;
539
+ return proto.ForgotPassworReq.deserializeBinaryFromReader(msg, reader);
540
+ };
541
+
542
+
543
+ /**
544
+ * Deserializes binary data (in protobuf wire format) from the
545
+ * given reader into the given message object.
546
+ * @param {!proto.ForgotPassworReq} msg The message object to deserialize into.
547
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
548
+ * @return {!proto.ForgotPassworReq}
549
+ */
550
+ proto.ForgotPassworReq.deserializeBinaryFromReader = function(msg, reader) {
551
+ while (reader.nextField()) {
552
+ if (reader.isEndGroup()) {
553
+ break;
554
+ }
555
+ var field = reader.getFieldNumber();
556
+ switch (field) {
557
+ case 1:
558
+ var value = /** @type {string} */ (reader.readString());
559
+ msg.setPassword(value);
560
+ break;
561
+ default:
562
+ reader.skipField();
563
+ break;
564
+ }
565
+ }
566
+ return msg;
567
+ };
568
+
569
+
570
+ /**
571
+ * Serializes the message to binary data (in protobuf wire format).
572
+ * @return {!Uint8Array}
573
+ */
574
+ proto.ForgotPassworReq.prototype.serializeBinary = function() {
575
+ var writer = new jspb.BinaryWriter();
576
+ proto.ForgotPassworReq.serializeBinaryToWriter(this, writer);
577
+ return writer.getResultBuffer();
578
+ };
579
+
580
+
581
+ /**
582
+ * Serializes the given message to binary data (in protobuf wire
583
+ * format), writing to the given BinaryWriter.
584
+ * @param {!proto.ForgotPassworReq} message
585
+ * @param {!jspb.BinaryWriter} writer
586
+ * @suppress {unusedLocalVariables} f is only used for nested messages
587
+ */
588
+ proto.ForgotPassworReq.serializeBinaryToWriter = function(message, writer) {
589
+ var f = undefined;
590
+ f = message.getPassword();
591
+ if (f.length > 0) {
592
+ writer.writeString(
593
+ 1,
594
+ f
595
+ );
596
+ }
597
+ };
598
+
599
+
600
+ /**
601
+ * optional string password = 1;
602
+ * @return {string}
603
+ */
604
+ proto.ForgotPassworReq.prototype.getPassword = function() {
605
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
606
+ };
607
+
608
+
609
+ /**
610
+ * @param {string} value
611
+ * @return {!proto.ForgotPassworReq} returns this
612
+ */
613
+ proto.ForgotPassworReq.prototype.setPassword = function(value) {
614
+ return jspb.Message.setProto3StringField(this, 1, value);
615
+ };
616
+
617
+
618
+
619
+
620
+
621
+ if (jspb.Message.GENERATE_TO_OBJECT) {
622
+ /**
623
+ * Creates an object representation of this proto.
624
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
625
+ * Optional fields that are not set will be set to undefined.
626
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
627
+ * For the list of reserved names please see:
628
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
629
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
630
+ * JSPB instance for transitional soy proto support:
631
+ * http://goto/soy-param-migration
632
+ * @return {!Object}
633
+ */
634
+ proto.RequestForgotPasswordReq.prototype.toObject = function(opt_includeInstance) {
635
+ return proto.RequestForgotPasswordReq.toObject(opt_includeInstance, this);
636
+ };
637
+
638
+
639
+ /**
640
+ * Static version of the {@see toObject} method.
641
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
642
+ * the JSPB instance for transitional soy proto support:
643
+ * http://goto/soy-param-migration
644
+ * @param {!proto.RequestForgotPasswordReq} msg The msg instance to transform.
645
+ * @return {!Object}
646
+ * @suppress {unusedLocalVariables} f is only used for nested messages
647
+ */
648
+ proto.RequestForgotPasswordReq.toObject = function(includeInstance, msg) {
649
+ var f, obj = {
650
+ email: jspb.Message.getFieldWithDefault(msg, 1, "")
651
+ };
652
+
653
+ if (includeInstance) {
654
+ obj.$jspbMessageInstance = msg;
655
+ }
656
+ return obj;
657
+ };
658
+ }
659
+
660
+
661
+ /**
662
+ * Deserializes binary data (in protobuf wire format).
663
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
664
+ * @return {!proto.RequestForgotPasswordReq}
665
+ */
666
+ proto.RequestForgotPasswordReq.deserializeBinary = function(bytes) {
667
+ var reader = new jspb.BinaryReader(bytes);
668
+ var msg = new proto.RequestForgotPasswordReq;
669
+ return proto.RequestForgotPasswordReq.deserializeBinaryFromReader(msg, reader);
670
+ };
671
+
672
+
673
+ /**
674
+ * Deserializes binary data (in protobuf wire format) from the
675
+ * given reader into the given message object.
676
+ * @param {!proto.RequestForgotPasswordReq} msg The message object to deserialize into.
677
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
678
+ * @return {!proto.RequestForgotPasswordReq}
679
+ */
680
+ proto.RequestForgotPasswordReq.deserializeBinaryFromReader = function(msg, reader) {
681
+ while (reader.nextField()) {
682
+ if (reader.isEndGroup()) {
683
+ break;
684
+ }
685
+ var field = reader.getFieldNumber();
686
+ switch (field) {
687
+ case 1:
688
+ var value = /** @type {string} */ (reader.readString());
689
+ msg.setEmail(value);
690
+ break;
691
+ default:
692
+ reader.skipField();
693
+ break;
694
+ }
695
+ }
696
+ return msg;
697
+ };
698
+
699
+
700
+ /**
701
+ * Serializes the message to binary data (in protobuf wire format).
702
+ * @return {!Uint8Array}
703
+ */
704
+ proto.RequestForgotPasswordReq.prototype.serializeBinary = function() {
705
+ var writer = new jspb.BinaryWriter();
706
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter(this, writer);
707
+ return writer.getResultBuffer();
708
+ };
709
+
710
+
711
+ /**
712
+ * Serializes the given message to binary data (in protobuf wire
713
+ * format), writing to the given BinaryWriter.
714
+ * @param {!proto.RequestForgotPasswordReq} message
715
+ * @param {!jspb.BinaryWriter} writer
716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
717
+ */
718
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter = function(message, writer) {
719
+ var f = undefined;
720
+ f = message.getEmail();
721
+ if (f.length > 0) {
722
+ writer.writeString(
723
+ 1,
724
+ f
725
+ );
726
+ }
727
+ };
728
+
729
+
730
+ /**
731
+ * optional string email = 1;
732
+ * @return {string}
733
+ */
734
+ proto.RequestForgotPasswordReq.prototype.getEmail = function() {
735
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
736
+ };
737
+
738
+
739
+ /**
740
+ * @param {string} value
741
+ * @return {!proto.RequestForgotPasswordReq} returns this
742
+ */
743
+ proto.RequestForgotPasswordReq.prototype.setEmail = function(value) {
744
+ return jspb.Message.setProto3StringField(this, 1, value);
745
+ };
746
+
747
+
748
+
749
+
750
+
751
+ if (jspb.Message.GENERATE_TO_OBJECT) {
752
+ /**
753
+ * Creates an object representation of this proto.
754
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
755
+ * Optional fields that are not set will be set to undefined.
756
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
757
+ * For the list of reserved names please see:
758
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
759
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
760
+ * JSPB instance for transitional soy proto support:
761
+ * http://goto/soy-param-migration
762
+ * @return {!Object}
763
+ */
764
+ proto.RequestForgotResponse.prototype.toObject = function(opt_includeInstance) {
765
+ return proto.RequestForgotResponse.toObject(opt_includeInstance, this);
766
+ };
767
+
768
+
769
+ /**
770
+ * Static version of the {@see toObject} method.
771
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
772
+ * the JSPB instance for transitional soy proto support:
773
+ * http://goto/soy-param-migration
774
+ * @param {!proto.RequestForgotResponse} msg The msg instance to transform.
775
+ * @return {!Object}
776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
777
+ */
778
+ proto.RequestForgotResponse.toObject = function(includeInstance, msg) {
779
+ var f, obj = {
780
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
781
+ };
782
+
783
+ if (includeInstance) {
784
+ obj.$jspbMessageInstance = msg;
785
+ }
786
+ return obj;
787
+ };
788
+ }
789
+
790
+
791
+ /**
792
+ * Deserializes binary data (in protobuf wire format).
793
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
794
+ * @return {!proto.RequestForgotResponse}
795
+ */
796
+ proto.RequestForgotResponse.deserializeBinary = function(bytes) {
797
+ var reader = new jspb.BinaryReader(bytes);
798
+ var msg = new proto.RequestForgotResponse;
799
+ return proto.RequestForgotResponse.deserializeBinaryFromReader(msg, reader);
800
+ };
801
+
802
+
803
+ /**
804
+ * Deserializes binary data (in protobuf wire format) from the
805
+ * given reader into the given message object.
806
+ * @param {!proto.RequestForgotResponse} msg The message object to deserialize into.
807
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
808
+ * @return {!proto.RequestForgotResponse}
809
+ */
810
+ proto.RequestForgotResponse.deserializeBinaryFromReader = function(msg, reader) {
811
+ while (reader.nextField()) {
812
+ if (reader.isEndGroup()) {
813
+ break;
814
+ }
815
+ var field = reader.getFieldNumber();
816
+ switch (field) {
817
+ case 1:
818
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
819
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
820
+ msg.setMeta(value);
821
+ break;
822
+ default:
823
+ reader.skipField();
824
+ break;
825
+ }
826
+ }
827
+ return msg;
828
+ };
829
+
830
+
831
+ /**
832
+ * Serializes the message to binary data (in protobuf wire format).
833
+ * @return {!Uint8Array}
834
+ */
835
+ proto.RequestForgotResponse.prototype.serializeBinary = function() {
836
+ var writer = new jspb.BinaryWriter();
837
+ proto.RequestForgotResponse.serializeBinaryToWriter(this, writer);
838
+ return writer.getResultBuffer();
839
+ };
840
+
841
+
842
+ /**
843
+ * Serializes the given message to binary data (in protobuf wire
844
+ * format), writing to the given BinaryWriter.
845
+ * @param {!proto.RequestForgotResponse} message
846
+ * @param {!jspb.BinaryWriter} writer
847
+ * @suppress {unusedLocalVariables} f is only used for nested messages
848
+ */
849
+ proto.RequestForgotResponse.serializeBinaryToWriter = function(message, writer) {
850
+ var f = undefined;
851
+ f = message.getMeta();
852
+ if (f != null) {
853
+ writer.writeMessage(
854
+ 1,
855
+ f,
856
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
857
+ );
858
+ }
859
+ };
860
+
861
+
862
+ /**
863
+ * optional prisca.v1.global.meta.Meta meta = 1;
864
+ * @return {?proto.prisca.v1.global.meta.Meta}
865
+ */
866
+ proto.RequestForgotResponse.prototype.getMeta = function() {
867
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
868
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
869
+ };
870
+
871
+
872
+ /**
873
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
874
+ * @return {!proto.RequestForgotResponse} returns this
875
+ */
876
+ proto.RequestForgotResponse.prototype.setMeta = function(value) {
877
+ return jspb.Message.setWrapperField(this, 1, value);
878
+ };
879
+
880
+
881
+ /**
882
+ * Clears the message field making it undefined.
883
+ * @return {!proto.RequestForgotResponse} returns this
884
+ */
885
+ proto.RequestForgotResponse.prototype.clearMeta = function() {
886
+ return this.setMeta(undefined);
887
+ };
888
+
889
+
890
+ /**
891
+ * Returns whether this field is set.
892
+ * @return {boolean}
893
+ */
894
+ proto.RequestForgotResponse.prototype.hasMeta = function() {
895
+ return jspb.Message.getField(this, 1) != null;
896
+ };
897
+
898
+
899
+
900
+
901
+
902
+ if (jspb.Message.GENERATE_TO_OBJECT) {
903
+ /**
904
+ * Creates an object representation of this proto.
905
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
906
+ * Optional fields that are not set will be set to undefined.
907
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
908
+ * For the list of reserved names please see:
909
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
910
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
911
+ * JSPB instance for transitional soy proto support:
912
+ * http://goto/soy-param-migration
913
+ * @return {!Object}
914
+ */
915
+ proto.LoginRequest.prototype.toObject = function(opt_includeInstance) {
916
+ return proto.LoginRequest.toObject(opt_includeInstance, this);
917
+ };
918
+
919
+
920
+ /**
921
+ * Static version of the {@see toObject} method.
922
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
923
+ * the JSPB instance for transitional soy proto support:
924
+ * http://goto/soy-param-migration
925
+ * @param {!proto.LoginRequest} msg The msg instance to transform.
926
+ * @return {!Object}
927
+ * @suppress {unusedLocalVariables} f is only used for nested messages
928
+ */
929
+ proto.LoginRequest.toObject = function(includeInstance, msg) {
930
+ var f, obj = {
931
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
932
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
933
+ };
934
+
935
+ if (includeInstance) {
936
+ obj.$jspbMessageInstance = msg;
937
+ }
938
+ return obj;
939
+ };
940
+ }
941
+
942
+
943
+ /**
944
+ * Deserializes binary data (in protobuf wire format).
945
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
946
+ * @return {!proto.LoginRequest}
947
+ */
948
+ proto.LoginRequest.deserializeBinary = function(bytes) {
949
+ var reader = new jspb.BinaryReader(bytes);
950
+ var msg = new proto.LoginRequest;
951
+ return proto.LoginRequest.deserializeBinaryFromReader(msg, reader);
952
+ };
953
+
954
+
955
+ /**
956
+ * Deserializes binary data (in protobuf wire format) from the
957
+ * given reader into the given message object.
958
+ * @param {!proto.LoginRequest} msg The message object to deserialize into.
959
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
960
+ * @return {!proto.LoginRequest}
961
+ */
962
+ proto.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
963
+ while (reader.nextField()) {
964
+ if (reader.isEndGroup()) {
965
+ break;
966
+ }
967
+ var field = reader.getFieldNumber();
968
+ switch (field) {
969
+ case 1:
970
+ var value = /** @type {string} */ (reader.readString());
971
+ msg.setEmail(value);
972
+ break;
973
+ case 2:
974
+ var value = /** @type {string} */ (reader.readString());
975
+ msg.setPassword(value);
976
+ break;
977
+ default:
978
+ reader.skipField();
979
+ break;
980
+ }
981
+ }
982
+ return msg;
983
+ };
984
+
985
+
986
+ /**
987
+ * Serializes the message to binary data (in protobuf wire format).
988
+ * @return {!Uint8Array}
989
+ */
990
+ proto.LoginRequest.prototype.serializeBinary = function() {
991
+ var writer = new jspb.BinaryWriter();
992
+ proto.LoginRequest.serializeBinaryToWriter(this, writer);
993
+ return writer.getResultBuffer();
994
+ };
995
+
996
+
997
+ /**
998
+ * Serializes the given message to binary data (in protobuf wire
999
+ * format), writing to the given BinaryWriter.
1000
+ * @param {!proto.LoginRequest} message
1001
+ * @param {!jspb.BinaryWriter} writer
1002
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1003
+ */
1004
+ proto.LoginRequest.serializeBinaryToWriter = function(message, writer) {
1005
+ var f = undefined;
1006
+ f = message.getEmail();
1007
+ if (f.length > 0) {
1008
+ writer.writeString(
1009
+ 1,
1010
+ f
1011
+ );
1012
+ }
1013
+ f = message.getPassword();
1014
+ if (f.length > 0) {
1015
+ writer.writeString(
1016
+ 2,
1017
+ f
1018
+ );
1019
+ }
1020
+ };
1021
+
1022
+
1023
+ /**
1024
+ * optional string email = 1;
1025
+ * @return {string}
1026
+ */
1027
+ proto.LoginRequest.prototype.getEmail = function() {
1028
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1029
+ };
1030
+
1031
+
1032
+ /**
1033
+ * @param {string} value
1034
+ * @return {!proto.LoginRequest} returns this
1035
+ */
1036
+ proto.LoginRequest.prototype.setEmail = function(value) {
1037
+ return jspb.Message.setProto3StringField(this, 1, value);
1038
+ };
1039
+
1040
+
1041
+ /**
1042
+ * optional string password = 2;
1043
+ * @return {string}
1044
+ */
1045
+ proto.LoginRequest.prototype.getPassword = function() {
1046
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1047
+ };
1048
+
1049
+
1050
+ /**
1051
+ * @param {string} value
1052
+ * @return {!proto.LoginRequest} returns this
1053
+ */
1054
+ proto.LoginRequest.prototype.setPassword = function(value) {
1055
+ return jspb.Message.setProto3StringField(this, 2, value);
1056
+ };
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1063
+ /**
1064
+ * Creates an object representation of this proto.
1065
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1066
+ * Optional fields that are not set will be set to undefined.
1067
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1068
+ * For the list of reserved names please see:
1069
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1070
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1071
+ * JSPB instance for transitional soy proto support:
1072
+ * http://goto/soy-param-migration
1073
+ * @return {!Object}
1074
+ */
1075
+ proto.GetListAccessRequest.prototype.toObject = function(opt_includeInstance) {
1076
+ return proto.GetListAccessRequest.toObject(opt_includeInstance, this);
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * Static version of the {@see toObject} method.
1082
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1083
+ * the JSPB instance for transitional soy proto support:
1084
+ * http://goto/soy-param-migration
1085
+ * @param {!proto.GetListAccessRequest} msg The msg instance to transform.
1086
+ * @return {!Object}
1087
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1088
+ */
1089
+ proto.GetListAccessRequest.toObject = function(includeInstance, msg) {
1090
+ var f, obj = {
1091
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1092
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
1093
+ };
1094
+
1095
+ if (includeInstance) {
1096
+ obj.$jspbMessageInstance = msg;
1097
+ }
1098
+ return obj;
1099
+ };
1100
+ }
1101
+
1102
+
1103
+ /**
1104
+ * Deserializes binary data (in protobuf wire format).
1105
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1106
+ * @return {!proto.GetListAccessRequest}
1107
+ */
1108
+ proto.GetListAccessRequest.deserializeBinary = function(bytes) {
1109
+ var reader = new jspb.BinaryReader(bytes);
1110
+ var msg = new proto.GetListAccessRequest;
1111
+ return proto.GetListAccessRequest.deserializeBinaryFromReader(msg, reader);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * Deserializes binary data (in protobuf wire format) from the
1117
+ * given reader into the given message object.
1118
+ * @param {!proto.GetListAccessRequest} msg The message object to deserialize into.
1119
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1120
+ * @return {!proto.GetListAccessRequest}
1121
+ */
1122
+ proto.GetListAccessRequest.deserializeBinaryFromReader = function(msg, reader) {
1123
+ while (reader.nextField()) {
1124
+ if (reader.isEndGroup()) {
1125
+ break;
1126
+ }
1127
+ var field = reader.getFieldNumber();
1128
+ switch (field) {
1129
+ case 1:
1130
+ var value = /** @type {number} */ (reader.readInt64());
1131
+ msg.setLimit(value);
1132
+ break;
1133
+ case 2:
1134
+ var value = /** @type {number} */ (reader.readInt64());
1135
+ msg.setOffset(value);
1136
+ break;
1137
+ default:
1138
+ reader.skipField();
1139
+ break;
1140
+ }
1141
+ }
1142
+ return msg;
1143
+ };
1144
+
1145
+
1146
+ /**
1147
+ * Serializes the message to binary data (in protobuf wire format).
1148
+ * @return {!Uint8Array}
1149
+ */
1150
+ proto.GetListAccessRequest.prototype.serializeBinary = function() {
1151
+ var writer = new jspb.BinaryWriter();
1152
+ proto.GetListAccessRequest.serializeBinaryToWriter(this, writer);
1153
+ return writer.getResultBuffer();
1154
+ };
1155
+
1156
+
1157
+ /**
1158
+ * Serializes the given message to binary data (in protobuf wire
1159
+ * format), writing to the given BinaryWriter.
1160
+ * @param {!proto.GetListAccessRequest} message
1161
+ * @param {!jspb.BinaryWriter} writer
1162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1163
+ */
1164
+ proto.GetListAccessRequest.serializeBinaryToWriter = function(message, writer) {
1165
+ var f = undefined;
1166
+ f = message.getLimit();
1167
+ if (f !== 0) {
1168
+ writer.writeInt64(
1169
+ 1,
1170
+ f
1171
+ );
1172
+ }
1173
+ f = message.getOffset();
1174
+ if (f !== 0) {
1175
+ writer.writeInt64(
1176
+ 2,
1177
+ f
1178
+ );
1179
+ }
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * optional int64 limit = 1;
1185
+ * @return {number}
1186
+ */
1187
+ proto.GetListAccessRequest.prototype.getLimit = function() {
1188
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * @param {number} value
1194
+ * @return {!proto.GetListAccessRequest} returns this
1195
+ */
1196
+ proto.GetListAccessRequest.prototype.setLimit = function(value) {
1197
+ return jspb.Message.setProto3IntField(this, 1, value);
1198
+ };
1199
+
1200
+
1201
+ /**
1202
+ * optional int64 offset = 2;
1203
+ * @return {number}
1204
+ */
1205
+ proto.GetListAccessRequest.prototype.getOffset = function() {
1206
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1207
+ };
1208
+
1209
+
1210
+ /**
1211
+ * @param {number} value
1212
+ * @return {!proto.GetListAccessRequest} returns this
1213
+ */
1214
+ proto.GetListAccessRequest.prototype.setOffset = function(value) {
1215
+ return jspb.Message.setProto3IntField(this, 2, value);
1216
+ };
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1223
+ /**
1224
+ * Creates an object representation of this proto.
1225
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1226
+ * Optional fields that are not set will be set to undefined.
1227
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1228
+ * For the list of reserved names please see:
1229
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1230
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1231
+ * JSPB instance for transitional soy proto support:
1232
+ * http://goto/soy-param-migration
1233
+ * @return {!Object}
1234
+ */
1235
+ proto.CheckCompaniesRequest.prototype.toObject = function(opt_includeInstance) {
1236
+ return proto.CheckCompaniesRequest.toObject(opt_includeInstance, this);
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * Static version of the {@see toObject} method.
1242
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1243
+ * the JSPB instance for transitional soy proto support:
1244
+ * http://goto/soy-param-migration
1245
+ * @param {!proto.CheckCompaniesRequest} msg The msg instance to transform.
1246
+ * @return {!Object}
1247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1248
+ */
1249
+ proto.CheckCompaniesRequest.toObject = function(includeInstance, msg) {
1250
+ var f, obj = {
1251
+ companiesRef: jspb.Message.getFieldWithDefault(msg, 1, "")
1252
+ };
1253
+
1254
+ if (includeInstance) {
1255
+ obj.$jspbMessageInstance = msg;
1256
+ }
1257
+ return obj;
1258
+ };
1259
+ }
1260
+
1261
+
1262
+ /**
1263
+ * Deserializes binary data (in protobuf wire format).
1264
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1265
+ * @return {!proto.CheckCompaniesRequest}
1266
+ */
1267
+ proto.CheckCompaniesRequest.deserializeBinary = function(bytes) {
1268
+ var reader = new jspb.BinaryReader(bytes);
1269
+ var msg = new proto.CheckCompaniesRequest;
1270
+ return proto.CheckCompaniesRequest.deserializeBinaryFromReader(msg, reader);
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * Deserializes binary data (in protobuf wire format) from the
1276
+ * given reader into the given message object.
1277
+ * @param {!proto.CheckCompaniesRequest} msg The message object to deserialize into.
1278
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1279
+ * @return {!proto.CheckCompaniesRequest}
1280
+ */
1281
+ proto.CheckCompaniesRequest.deserializeBinaryFromReader = function(msg, reader) {
1282
+ while (reader.nextField()) {
1283
+ if (reader.isEndGroup()) {
1284
+ break;
1285
+ }
1286
+ var field = reader.getFieldNumber();
1287
+ switch (field) {
1288
+ case 1:
1289
+ var value = /** @type {string} */ (reader.readString());
1290
+ msg.setCompaniesRef(value);
1291
+ break;
1292
+ default:
1293
+ reader.skipField();
1294
+ break;
1295
+ }
1296
+ }
1297
+ return msg;
1298
+ };
1299
+
1300
+
1301
+ /**
1302
+ * Serializes the message to binary data (in protobuf wire format).
1303
+ * @return {!Uint8Array}
1304
+ */
1305
+ proto.CheckCompaniesRequest.prototype.serializeBinary = function() {
1306
+ var writer = new jspb.BinaryWriter();
1307
+ proto.CheckCompaniesRequest.serializeBinaryToWriter(this, writer);
1308
+ return writer.getResultBuffer();
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Serializes the given message to binary data (in protobuf wire
1314
+ * format), writing to the given BinaryWriter.
1315
+ * @param {!proto.CheckCompaniesRequest} message
1316
+ * @param {!jspb.BinaryWriter} writer
1317
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1318
+ */
1319
+ proto.CheckCompaniesRequest.serializeBinaryToWriter = function(message, writer) {
1320
+ var f = undefined;
1321
+ f = message.getCompaniesRef();
1322
+ if (f.length > 0) {
1323
+ writer.writeString(
1324
+ 1,
1325
+ f
1326
+ );
1327
+ }
1328
+ };
1329
+
1330
+
1331
+ /**
1332
+ * optional string companies_ref = 1;
1333
+ * @return {string}
1334
+ */
1335
+ proto.CheckCompaniesRequest.prototype.getCompaniesRef = function() {
1336
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1337
+ };
1338
+
1339
+
1340
+ /**
1341
+ * @param {string} value
1342
+ * @return {!proto.CheckCompaniesRequest} returns this
1343
+ */
1344
+ proto.CheckCompaniesRequest.prototype.setCompaniesRef = function(value) {
1345
+ return jspb.Message.setProto3StringField(this, 1, value);
1346
+ };
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1353
+ /**
1354
+ * Creates an object representation of this proto.
1355
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1356
+ * Optional fields that are not set will be set to undefined.
1357
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1358
+ * For the list of reserved names please see:
1359
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1360
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1361
+ * JSPB instance for transitional soy proto support:
1362
+ * http://goto/soy-param-migration
1363
+ * @return {!Object}
1364
+ */
1365
+ proto.AccessApiCredential.prototype.toObject = function(opt_includeInstance) {
1366
+ return proto.AccessApiCredential.toObject(opt_includeInstance, this);
1367
+ };
1368
+
1369
+
1370
+ /**
1371
+ * Static version of the {@see toObject} method.
1372
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1373
+ * the JSPB instance for transitional soy proto support:
1374
+ * http://goto/soy-param-migration
1375
+ * @param {!proto.AccessApiCredential} msg The msg instance to transform.
1376
+ * @return {!Object}
1377
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1378
+ */
1379
+ proto.AccessApiCredential.toObject = function(includeInstance, msg) {
1380
+ var f, obj = {
1381
+ apisecretid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1382
+ apisecretkey: jspb.Message.getFieldWithDefault(msg, 2, "")
1383
+ };
1384
+
1385
+ if (includeInstance) {
1386
+ obj.$jspbMessageInstance = msg;
1387
+ }
1388
+ return obj;
1389
+ };
1390
+ }
1391
+
1392
+
1393
+ /**
1394
+ * Deserializes binary data (in protobuf wire format).
1395
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1396
+ * @return {!proto.AccessApiCredential}
1397
+ */
1398
+ proto.AccessApiCredential.deserializeBinary = function(bytes) {
1399
+ var reader = new jspb.BinaryReader(bytes);
1400
+ var msg = new proto.AccessApiCredential;
1401
+ return proto.AccessApiCredential.deserializeBinaryFromReader(msg, reader);
1402
+ };
1403
+
1404
+
1405
+ /**
1406
+ * Deserializes binary data (in protobuf wire format) from the
1407
+ * given reader into the given message object.
1408
+ * @param {!proto.AccessApiCredential} msg The message object to deserialize into.
1409
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1410
+ * @return {!proto.AccessApiCredential}
1411
+ */
1412
+ proto.AccessApiCredential.deserializeBinaryFromReader = function(msg, reader) {
1413
+ while (reader.nextField()) {
1414
+ if (reader.isEndGroup()) {
1415
+ break;
1416
+ }
1417
+ var field = reader.getFieldNumber();
1418
+ switch (field) {
1419
+ case 1:
1420
+ var value = /** @type {string} */ (reader.readString());
1421
+ msg.setApisecretid(value);
1422
+ break;
1423
+ case 2:
1424
+ var value = /** @type {string} */ (reader.readString());
1425
+ msg.setApisecretkey(value);
1426
+ break;
1427
+ default:
1428
+ reader.skipField();
1429
+ break;
1430
+ }
1431
+ }
1432
+ return msg;
1433
+ };
1434
+
1435
+
1436
+ /**
1437
+ * Serializes the message to binary data (in protobuf wire format).
1438
+ * @return {!Uint8Array}
1439
+ */
1440
+ proto.AccessApiCredential.prototype.serializeBinary = function() {
1441
+ var writer = new jspb.BinaryWriter();
1442
+ proto.AccessApiCredential.serializeBinaryToWriter(this, writer);
1443
+ return writer.getResultBuffer();
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * Serializes the given message to binary data (in protobuf wire
1449
+ * format), writing to the given BinaryWriter.
1450
+ * @param {!proto.AccessApiCredential} message
1451
+ * @param {!jspb.BinaryWriter} writer
1452
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1453
+ */
1454
+ proto.AccessApiCredential.serializeBinaryToWriter = function(message, writer) {
1455
+ var f = undefined;
1456
+ f = message.getApisecretid();
1457
+ if (f.length > 0) {
1458
+ writer.writeString(
1459
+ 1,
1460
+ f
1461
+ );
1462
+ }
1463
+ f = message.getApisecretkey();
1464
+ if (f.length > 0) {
1465
+ writer.writeString(
1466
+ 2,
1467
+ f
1468
+ );
1469
+ }
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * optional string apiSecretId = 1;
1475
+ * @return {string}
1476
+ */
1477
+ proto.AccessApiCredential.prototype.getApisecretid = function() {
1478
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * @param {string} value
1484
+ * @return {!proto.AccessApiCredential} returns this
1485
+ */
1486
+ proto.AccessApiCredential.prototype.setApisecretid = function(value) {
1487
+ return jspb.Message.setProto3StringField(this, 1, value);
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * optional string apiSecretKey = 2;
1493
+ * @return {string}
1494
+ */
1495
+ proto.AccessApiCredential.prototype.getApisecretkey = function() {
1496
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * @param {string} value
1502
+ * @return {!proto.AccessApiCredential} returns this
1503
+ */
1504
+ proto.AccessApiCredential.prototype.setApisecretkey = function(value) {
1505
+ return jspb.Message.setProto3StringField(this, 2, value);
1506
+ };
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1513
+ /**
1514
+ * Creates an object representation of this proto.
1515
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1516
+ * Optional fields that are not set will be set to undefined.
1517
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1518
+ * For the list of reserved names please see:
1519
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1520
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1521
+ * JSPB instance for transitional soy proto support:
1522
+ * http://goto/soy-param-migration
1523
+ * @return {!Object}
1524
+ */
1525
+ proto.AccessCreateRequest.prototype.toObject = function(opt_includeInstance) {
1526
+ return proto.AccessCreateRequest.toObject(opt_includeInstance, this);
1527
+ };
1528
+
1529
+
1530
+ /**
1531
+ * Static version of the {@see toObject} method.
1532
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1533
+ * the JSPB instance for transitional soy proto support:
1534
+ * http://goto/soy-param-migration
1535
+ * @param {!proto.AccessCreateRequest} msg The msg instance to transform.
1536
+ * @return {!Object}
1537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1538
+ */
1539
+ proto.AccessCreateRequest.toObject = function(includeInstance, msg) {
1540
+ var f, obj = {
1541
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1542
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1543
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, "")
1544
+ };
1545
+
1546
+ if (includeInstance) {
1547
+ obj.$jspbMessageInstance = msg;
1548
+ }
1549
+ return obj;
1550
+ };
1551
+ }
1552
+
1553
+
1554
+ /**
1555
+ * Deserializes binary data (in protobuf wire format).
1556
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1557
+ * @return {!proto.AccessCreateRequest}
1558
+ */
1559
+ proto.AccessCreateRequest.deserializeBinary = function(bytes) {
1560
+ var reader = new jspb.BinaryReader(bytes);
1561
+ var msg = new proto.AccessCreateRequest;
1562
+ return proto.AccessCreateRequest.deserializeBinaryFromReader(msg, reader);
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * Deserializes binary data (in protobuf wire format) from the
1568
+ * given reader into the given message object.
1569
+ * @param {!proto.AccessCreateRequest} msg The message object to deserialize into.
1570
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1571
+ * @return {!proto.AccessCreateRequest}
1572
+ */
1573
+ proto.AccessCreateRequest.deserializeBinaryFromReader = function(msg, reader) {
1574
+ while (reader.nextField()) {
1575
+ if (reader.isEndGroup()) {
1576
+ break;
1577
+ }
1578
+ var field = reader.getFieldNumber();
1579
+ switch (field) {
1580
+ case 1:
1581
+ var value = /** @type {string} */ (reader.readString());
1582
+ msg.setName(value);
1583
+ break;
1584
+ case 2:
1585
+ var value = /** @type {number} */ (reader.readInt64());
1586
+ msg.setUserid(value);
1587
+ break;
1588
+ case 3:
1589
+ var value = /** @type {string} */ (reader.readString());
1590
+ msg.setScopes(value);
1591
+ break;
1592
+ default:
1593
+ reader.skipField();
1594
+ break;
1595
+ }
1596
+ }
1597
+ return msg;
1598
+ };
1599
+
1600
+
1601
+ /**
1602
+ * Serializes the message to binary data (in protobuf wire format).
1603
+ * @return {!Uint8Array}
1604
+ */
1605
+ proto.AccessCreateRequest.prototype.serializeBinary = function() {
1606
+ var writer = new jspb.BinaryWriter();
1607
+ proto.AccessCreateRequest.serializeBinaryToWriter(this, writer);
1608
+ return writer.getResultBuffer();
1609
+ };
1610
+
1611
+
1612
+ /**
1613
+ * Serializes the given message to binary data (in protobuf wire
1614
+ * format), writing to the given BinaryWriter.
1615
+ * @param {!proto.AccessCreateRequest} message
1616
+ * @param {!jspb.BinaryWriter} writer
1617
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1618
+ */
1619
+ proto.AccessCreateRequest.serializeBinaryToWriter = function(message, writer) {
1620
+ var f = undefined;
1621
+ f = message.getName();
1622
+ if (f.length > 0) {
1623
+ writer.writeString(
1624
+ 1,
1625
+ f
1626
+ );
1627
+ }
1628
+ f = message.getUserid();
1629
+ if (f !== 0) {
1630
+ writer.writeInt64(
1631
+ 2,
1632
+ f
1633
+ );
1634
+ }
1635
+ f = message.getScopes();
1636
+ if (f.length > 0) {
1637
+ writer.writeString(
1638
+ 3,
1639
+ f
1640
+ );
1641
+ }
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * optional string name = 1;
1647
+ * @return {string}
1648
+ */
1649
+ proto.AccessCreateRequest.prototype.getName = function() {
1650
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1651
+ };
1652
+
1653
+
1654
+ /**
1655
+ * @param {string} value
1656
+ * @return {!proto.AccessCreateRequest} returns this
1657
+ */
1658
+ proto.AccessCreateRequest.prototype.setName = function(value) {
1659
+ return jspb.Message.setProto3StringField(this, 1, value);
1660
+ };
1661
+
1662
+
1663
+ /**
1664
+ * optional int64 userId = 2;
1665
+ * @return {number}
1666
+ */
1667
+ proto.AccessCreateRequest.prototype.getUserid = function() {
1668
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1669
+ };
1670
+
1671
+
1672
+ /**
1673
+ * @param {number} value
1674
+ * @return {!proto.AccessCreateRequest} returns this
1675
+ */
1676
+ proto.AccessCreateRequest.prototype.setUserid = function(value) {
1677
+ return jspb.Message.setProto3IntField(this, 2, value);
1678
+ };
1679
+
1680
+
1681
+ /**
1682
+ * optional string scopes = 3;
1683
+ * @return {string}
1684
+ */
1685
+ proto.AccessCreateRequest.prototype.getScopes = function() {
1686
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1687
+ };
1688
+
1689
+
1690
+ /**
1691
+ * @param {string} value
1692
+ * @return {!proto.AccessCreateRequest} returns this
1693
+ */
1694
+ proto.AccessCreateRequest.prototype.setScopes = function(value) {
1695
+ return jspb.Message.setProto3StringField(this, 3, value);
1696
+ };
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1703
+ /**
1704
+ * Creates an object representation of this proto.
1705
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1706
+ * Optional fields that are not set will be set to undefined.
1707
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1708
+ * For the list of reserved names please see:
1709
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1710
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1711
+ * JSPB instance for transitional soy proto support:
1712
+ * http://goto/soy-param-migration
1713
+ * @return {!Object}
1714
+ */
1715
+ proto.AuthVerifyToken.prototype.toObject = function(opt_includeInstance) {
1716
+ return proto.AuthVerifyToken.toObject(opt_includeInstance, this);
1717
+ };
1718
+
1719
+
1720
+ /**
1721
+ * Static version of the {@see toObject} method.
1722
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1723
+ * the JSPB instance for transitional soy proto support:
1724
+ * http://goto/soy-param-migration
1725
+ * @param {!proto.AuthVerifyToken} msg The msg instance to transform.
1726
+ * @return {!Object}
1727
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1728
+ */
1729
+ proto.AuthVerifyToken.toObject = function(includeInstance, msg) {
1730
+ var f, obj = {
1731
+ token: jspb.Message.getFieldWithDefault(msg, 1, "")
1732
+ };
1733
+
1734
+ if (includeInstance) {
1735
+ obj.$jspbMessageInstance = msg;
1736
+ }
1737
+ return obj;
1738
+ };
1739
+ }
1740
+
1741
+
1742
+ /**
1743
+ * Deserializes binary data (in protobuf wire format).
1744
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1745
+ * @return {!proto.AuthVerifyToken}
1746
+ */
1747
+ proto.AuthVerifyToken.deserializeBinary = function(bytes) {
1748
+ var reader = new jspb.BinaryReader(bytes);
1749
+ var msg = new proto.AuthVerifyToken;
1750
+ return proto.AuthVerifyToken.deserializeBinaryFromReader(msg, reader);
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * Deserializes binary data (in protobuf wire format) from the
1756
+ * given reader into the given message object.
1757
+ * @param {!proto.AuthVerifyToken} msg The message object to deserialize into.
1758
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1759
+ * @return {!proto.AuthVerifyToken}
1760
+ */
1761
+ proto.AuthVerifyToken.deserializeBinaryFromReader = function(msg, reader) {
1762
+ while (reader.nextField()) {
1763
+ if (reader.isEndGroup()) {
1764
+ break;
1765
+ }
1766
+ var field = reader.getFieldNumber();
1767
+ switch (field) {
1768
+ case 1:
1769
+ var value = /** @type {string} */ (reader.readString());
1770
+ msg.setToken(value);
1771
+ break;
1772
+ default:
1773
+ reader.skipField();
1774
+ break;
1775
+ }
1776
+ }
1777
+ return msg;
1778
+ };
1779
+
1780
+
1781
+ /**
1782
+ * Serializes the message to binary data (in protobuf wire format).
1783
+ * @return {!Uint8Array}
1784
+ */
1785
+ proto.AuthVerifyToken.prototype.serializeBinary = function() {
1786
+ var writer = new jspb.BinaryWriter();
1787
+ proto.AuthVerifyToken.serializeBinaryToWriter(this, writer);
1788
+ return writer.getResultBuffer();
1789
+ };
1790
+
1791
+
1792
+ /**
1793
+ * Serializes the given message to binary data (in protobuf wire
1794
+ * format), writing to the given BinaryWriter.
1795
+ * @param {!proto.AuthVerifyToken} message
1796
+ * @param {!jspb.BinaryWriter} writer
1797
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1798
+ */
1799
+ proto.AuthVerifyToken.serializeBinaryToWriter = function(message, writer) {
1800
+ var f = undefined;
1801
+ f = message.getToken();
1802
+ if (f.length > 0) {
1803
+ writer.writeString(
1804
+ 1,
1805
+ f
1806
+ );
1807
+ }
1808
+ };
1809
+
1810
+
1811
+ /**
1812
+ * optional string token = 1;
1813
+ * @return {string}
1814
+ */
1815
+ proto.AuthVerifyToken.prototype.getToken = function() {
1816
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1817
+ };
1818
+
1819
+
1820
+ /**
1821
+ * @param {string} value
1822
+ * @return {!proto.AuthVerifyToken} returns this
1823
+ */
1824
+ proto.AuthVerifyToken.prototype.setToken = function(value) {
1825
+ return jspb.Message.setProto3StringField(this, 1, value);
1826
+ };
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1833
+ /**
1834
+ * Creates an object representation of this proto.
1835
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1836
+ * Optional fields that are not set will be set to undefined.
1837
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1838
+ * For the list of reserved names please see:
1839
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1840
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1841
+ * JSPB instance for transitional soy proto support:
1842
+ * http://goto/soy-param-migration
1843
+ * @return {!Object}
1844
+ */
1845
+ proto.UpdateAccessPayload.prototype.toObject = function(opt_includeInstance) {
1846
+ return proto.UpdateAccessPayload.toObject(opt_includeInstance, this);
1847
+ };
1848
+
1849
+
1850
+ /**
1851
+ * Static version of the {@see toObject} method.
1852
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1853
+ * the JSPB instance for transitional soy proto support:
1854
+ * http://goto/soy-param-migration
1855
+ * @param {!proto.UpdateAccessPayload} msg The msg instance to transform.
1856
+ * @return {!Object}
1857
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1858
+ */
1859
+ proto.UpdateAccessPayload.toObject = function(includeInstance, msg) {
1860
+ var f, obj = {
1861
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1862
+ id: jspb.Message.getFieldWithDefault(msg, 2, 0),
1863
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, "")
1864
+ };
1865
+
1866
+ if (includeInstance) {
1867
+ obj.$jspbMessageInstance = msg;
1868
+ }
1869
+ return obj;
1870
+ };
1871
+ }
1872
+
1873
+
1874
+ /**
1875
+ * Deserializes binary data (in protobuf wire format).
1876
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1877
+ * @return {!proto.UpdateAccessPayload}
1878
+ */
1879
+ proto.UpdateAccessPayload.deserializeBinary = function(bytes) {
1880
+ var reader = new jspb.BinaryReader(bytes);
1881
+ var msg = new proto.UpdateAccessPayload;
1882
+ return proto.UpdateAccessPayload.deserializeBinaryFromReader(msg, reader);
1883
+ };
1884
+
1885
+
1886
+ /**
1887
+ * Deserializes binary data (in protobuf wire format) from the
1888
+ * given reader into the given message object.
1889
+ * @param {!proto.UpdateAccessPayload} msg The message object to deserialize into.
1890
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1891
+ * @return {!proto.UpdateAccessPayload}
1892
+ */
1893
+ proto.UpdateAccessPayload.deserializeBinaryFromReader = function(msg, reader) {
1894
+ while (reader.nextField()) {
1895
+ if (reader.isEndGroup()) {
1896
+ break;
1897
+ }
1898
+ var field = reader.getFieldNumber();
1899
+ switch (field) {
1900
+ case 1:
1901
+ var value = /** @type {string} */ (reader.readString());
1902
+ msg.setName(value);
1903
+ break;
1904
+ case 2:
1905
+ var value = /** @type {number} */ (reader.readInt64());
1906
+ msg.setId(value);
1907
+ break;
1908
+ case 3:
1909
+ var value = /** @type {string} */ (reader.readString());
1910
+ msg.setScopes(value);
1911
+ break;
1912
+ default:
1913
+ reader.skipField();
1914
+ break;
1915
+ }
1916
+ }
1917
+ return msg;
1918
+ };
1919
+
1920
+
1921
+ /**
1922
+ * Serializes the message to binary data (in protobuf wire format).
1923
+ * @return {!Uint8Array}
1924
+ */
1925
+ proto.UpdateAccessPayload.prototype.serializeBinary = function() {
1926
+ var writer = new jspb.BinaryWriter();
1927
+ proto.UpdateAccessPayload.serializeBinaryToWriter(this, writer);
1928
+ return writer.getResultBuffer();
1929
+ };
1930
+
1931
+
1932
+ /**
1933
+ * Serializes the given message to binary data (in protobuf wire
1934
+ * format), writing to the given BinaryWriter.
1935
+ * @param {!proto.UpdateAccessPayload} message
1936
+ * @param {!jspb.BinaryWriter} writer
1937
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1938
+ */
1939
+ proto.UpdateAccessPayload.serializeBinaryToWriter = function(message, writer) {
1940
+ var f = undefined;
1941
+ f = message.getName();
1942
+ if (f.length > 0) {
1943
+ writer.writeString(
1944
+ 1,
1945
+ f
1946
+ );
1947
+ }
1948
+ f = message.getId();
1949
+ if (f !== 0) {
1950
+ writer.writeInt64(
1951
+ 2,
1952
+ f
1953
+ );
1954
+ }
1955
+ f = message.getScopes();
1956
+ if (f.length > 0) {
1957
+ writer.writeString(
1958
+ 3,
1959
+ f
1960
+ );
1961
+ }
1962
+ };
1963
+
1964
+
1965
+ /**
1966
+ * optional string name = 1;
1967
+ * @return {string}
1968
+ */
1969
+ proto.UpdateAccessPayload.prototype.getName = function() {
1970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1971
+ };
1972
+
1973
+
1974
+ /**
1975
+ * @param {string} value
1976
+ * @return {!proto.UpdateAccessPayload} returns this
1977
+ */
1978
+ proto.UpdateAccessPayload.prototype.setName = function(value) {
1979
+ return jspb.Message.setProto3StringField(this, 1, value);
1980
+ };
1981
+
1982
+
1983
+ /**
1984
+ * optional int64 id = 2;
1985
+ * @return {number}
1986
+ */
1987
+ proto.UpdateAccessPayload.prototype.getId = function() {
1988
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1989
+ };
1990
+
1991
+
1992
+ /**
1993
+ * @param {number} value
1994
+ * @return {!proto.UpdateAccessPayload} returns this
1995
+ */
1996
+ proto.UpdateAccessPayload.prototype.setId = function(value) {
1997
+ return jspb.Message.setProto3IntField(this, 2, value);
1998
+ };
1999
+
2000
+
2001
+ /**
2002
+ * optional string scopes = 3;
2003
+ * @return {string}
2004
+ */
2005
+ proto.UpdateAccessPayload.prototype.getScopes = function() {
2006
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2007
+ };
2008
+
2009
+
2010
+ /**
2011
+ * @param {string} value
2012
+ * @return {!proto.UpdateAccessPayload} returns this
2013
+ */
2014
+ proto.UpdateAccessPayload.prototype.setScopes = function(value) {
2015
+ return jspb.Message.setProto3StringField(this, 3, value);
2016
+ };
2017
+
2018
+
2019
+
2020
+
2021
+
2022
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2023
+ /**
2024
+ * Creates an object representation of this proto.
2025
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2026
+ * Optional fields that are not set will be set to undefined.
2027
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2028
+ * For the list of reserved names please see:
2029
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2030
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2031
+ * JSPB instance for transitional soy proto support:
2032
+ * http://goto/soy-param-migration
2033
+ * @return {!Object}
2034
+ */
2035
+ proto.GetAccessByIdPayload.prototype.toObject = function(opt_includeInstance) {
2036
+ return proto.GetAccessByIdPayload.toObject(opt_includeInstance, this);
2037
+ };
2038
+
2039
+
2040
+ /**
2041
+ * Static version of the {@see toObject} method.
2042
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2043
+ * the JSPB instance for transitional soy proto support:
2044
+ * http://goto/soy-param-migration
2045
+ * @param {!proto.GetAccessByIdPayload} msg The msg instance to transform.
2046
+ * @return {!Object}
2047
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2048
+ */
2049
+ proto.GetAccessByIdPayload.toObject = function(includeInstance, msg) {
2050
+ var f, obj = {
2051
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2052
+ };
2053
+
2054
+ if (includeInstance) {
2055
+ obj.$jspbMessageInstance = msg;
2056
+ }
2057
+ return obj;
2058
+ };
2059
+ }
2060
+
2061
+
2062
+ /**
2063
+ * Deserializes binary data (in protobuf wire format).
2064
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2065
+ * @return {!proto.GetAccessByIdPayload}
2066
+ */
2067
+ proto.GetAccessByIdPayload.deserializeBinary = function(bytes) {
2068
+ var reader = new jspb.BinaryReader(bytes);
2069
+ var msg = new proto.GetAccessByIdPayload;
2070
+ return proto.GetAccessByIdPayload.deserializeBinaryFromReader(msg, reader);
2071
+ };
2072
+
2073
+
2074
+ /**
2075
+ * Deserializes binary data (in protobuf wire format) from the
2076
+ * given reader into the given message object.
2077
+ * @param {!proto.GetAccessByIdPayload} msg The message object to deserialize into.
2078
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2079
+ * @return {!proto.GetAccessByIdPayload}
2080
+ */
2081
+ proto.GetAccessByIdPayload.deserializeBinaryFromReader = function(msg, reader) {
2082
+ while (reader.nextField()) {
2083
+ if (reader.isEndGroup()) {
2084
+ break;
2085
+ }
2086
+ var field = reader.getFieldNumber();
2087
+ switch (field) {
2088
+ case 1:
2089
+ var value = /** @type {number} */ (reader.readInt64());
2090
+ msg.setId(value);
2091
+ break;
2092
+ default:
2093
+ reader.skipField();
2094
+ break;
2095
+ }
2096
+ }
2097
+ return msg;
2098
+ };
2099
+
2100
+
2101
+ /**
2102
+ * Serializes the message to binary data (in protobuf wire format).
2103
+ * @return {!Uint8Array}
2104
+ */
2105
+ proto.GetAccessByIdPayload.prototype.serializeBinary = function() {
2106
+ var writer = new jspb.BinaryWriter();
2107
+ proto.GetAccessByIdPayload.serializeBinaryToWriter(this, writer);
2108
+ return writer.getResultBuffer();
2109
+ };
2110
+
2111
+
2112
+ /**
2113
+ * Serializes the given message to binary data (in protobuf wire
2114
+ * format), writing to the given BinaryWriter.
2115
+ * @param {!proto.GetAccessByIdPayload} message
2116
+ * @param {!jspb.BinaryWriter} writer
2117
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2118
+ */
2119
+ proto.GetAccessByIdPayload.serializeBinaryToWriter = function(message, writer) {
2120
+ var f = undefined;
2121
+ f = message.getId();
2122
+ if (f !== 0) {
2123
+ writer.writeInt64(
2124
+ 1,
2125
+ f
2126
+ );
2127
+ }
2128
+ };
2129
+
2130
+
2131
+ /**
2132
+ * optional int64 id = 1;
2133
+ * @return {number}
2134
+ */
2135
+ proto.GetAccessByIdPayload.prototype.getId = function() {
2136
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2137
+ };
2138
+
2139
+
2140
+ /**
2141
+ * @param {number} value
2142
+ * @return {!proto.GetAccessByIdPayload} returns this
2143
+ */
2144
+ proto.GetAccessByIdPayload.prototype.setId = function(value) {
2145
+ return jspb.Message.setProto3IntField(this, 1, value);
2146
+ };
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2153
+ /**
2154
+ * Creates an object representation of this proto.
2155
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2156
+ * Optional fields that are not set will be set to undefined.
2157
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2158
+ * For the list of reserved names please see:
2159
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2160
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2161
+ * JSPB instance for transitional soy proto support:
2162
+ * http://goto/soy-param-migration
2163
+ * @return {!Object}
2164
+ */
2165
+ proto.CreateUserPayload.prototype.toObject = function(opt_includeInstance) {
2166
+ return proto.CreateUserPayload.toObject(opt_includeInstance, this);
2167
+ };
2168
+
2169
+
2170
+ /**
2171
+ * Static version of the {@see toObject} method.
2172
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2173
+ * the JSPB instance for transitional soy proto support:
2174
+ * http://goto/soy-param-migration
2175
+ * @param {!proto.CreateUserPayload} msg The msg instance to transform.
2176
+ * @return {!Object}
2177
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2178
+ */
2179
+ proto.CreateUserPayload.toObject = function(includeInstance, msg) {
2180
+ var f, obj = {
2181
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2182
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
2183
+ password: jspb.Message.getFieldWithDefault(msg, 3, "")
2184
+ };
2185
+
2186
+ if (includeInstance) {
2187
+ obj.$jspbMessageInstance = msg;
2188
+ }
2189
+ return obj;
2190
+ };
2191
+ }
2192
+
2193
+
2194
+ /**
2195
+ * Deserializes binary data (in protobuf wire format).
2196
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2197
+ * @return {!proto.CreateUserPayload}
2198
+ */
2199
+ proto.CreateUserPayload.deserializeBinary = function(bytes) {
2200
+ var reader = new jspb.BinaryReader(bytes);
2201
+ var msg = new proto.CreateUserPayload;
2202
+ return proto.CreateUserPayload.deserializeBinaryFromReader(msg, reader);
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * Deserializes binary data (in protobuf wire format) from the
2208
+ * given reader into the given message object.
2209
+ * @param {!proto.CreateUserPayload} msg The message object to deserialize into.
2210
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2211
+ * @return {!proto.CreateUserPayload}
2212
+ */
2213
+ proto.CreateUserPayload.deserializeBinaryFromReader = function(msg, reader) {
2214
+ while (reader.nextField()) {
2215
+ if (reader.isEndGroup()) {
2216
+ break;
2217
+ }
2218
+ var field = reader.getFieldNumber();
2219
+ switch (field) {
2220
+ case 1:
2221
+ var value = /** @type {string} */ (reader.readString());
2222
+ msg.setName(value);
2223
+ break;
2224
+ case 2:
2225
+ var value = /** @type {string} */ (reader.readString());
2226
+ msg.setEmail(value);
2227
+ break;
2228
+ case 3:
2229
+ var value = /** @type {string} */ (reader.readString());
2230
+ msg.setPassword(value);
2231
+ break;
2232
+ default:
2233
+ reader.skipField();
2234
+ break;
2235
+ }
2236
+ }
2237
+ return msg;
2238
+ };
2239
+
2240
+
2241
+ /**
2242
+ * Serializes the message to binary data (in protobuf wire format).
2243
+ * @return {!Uint8Array}
2244
+ */
2245
+ proto.CreateUserPayload.prototype.serializeBinary = function() {
2246
+ var writer = new jspb.BinaryWriter();
2247
+ proto.CreateUserPayload.serializeBinaryToWriter(this, writer);
2248
+ return writer.getResultBuffer();
2249
+ };
2250
+
2251
+
2252
+ /**
2253
+ * Serializes the given message to binary data (in protobuf wire
2254
+ * format), writing to the given BinaryWriter.
2255
+ * @param {!proto.CreateUserPayload} message
2256
+ * @param {!jspb.BinaryWriter} writer
2257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2258
+ */
2259
+ proto.CreateUserPayload.serializeBinaryToWriter = function(message, writer) {
2260
+ var f = undefined;
2261
+ f = message.getName();
2262
+ if (f.length > 0) {
2263
+ writer.writeString(
2264
+ 1,
2265
+ f
2266
+ );
2267
+ }
2268
+ f = message.getEmail();
2269
+ if (f.length > 0) {
2270
+ writer.writeString(
2271
+ 2,
2272
+ f
2273
+ );
2274
+ }
2275
+ f = message.getPassword();
2276
+ if (f.length > 0) {
2277
+ writer.writeString(
2278
+ 3,
2279
+ f
2280
+ );
2281
+ }
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * optional string name = 1;
2287
+ * @return {string}
2288
+ */
2289
+ proto.CreateUserPayload.prototype.getName = function() {
2290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2291
+ };
2292
+
2293
+
2294
+ /**
2295
+ * @param {string} value
2296
+ * @return {!proto.CreateUserPayload} returns this
2297
+ */
2298
+ proto.CreateUserPayload.prototype.setName = function(value) {
2299
+ return jspb.Message.setProto3StringField(this, 1, value);
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * optional string email = 2;
2305
+ * @return {string}
2306
+ */
2307
+ proto.CreateUserPayload.prototype.getEmail = function() {
2308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * @param {string} value
2314
+ * @return {!proto.CreateUserPayload} returns this
2315
+ */
2316
+ proto.CreateUserPayload.prototype.setEmail = function(value) {
2317
+ return jspb.Message.setProto3StringField(this, 2, value);
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * optional string password = 3;
2323
+ * @return {string}
2324
+ */
2325
+ proto.CreateUserPayload.prototype.getPassword = function() {
2326
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * @param {string} value
2332
+ * @return {!proto.CreateUserPayload} returns this
2333
+ */
2334
+ proto.CreateUserPayload.prototype.setPassword = function(value) {
2335
+ return jspb.Message.setProto3StringField(this, 3, value);
2336
+ };
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2343
+ /**
2344
+ * Creates an object representation of this proto.
2345
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2346
+ * Optional fields that are not set will be set to undefined.
2347
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2348
+ * For the list of reserved names please see:
2349
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2350
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2351
+ * JSPB instance for transitional soy proto support:
2352
+ * http://goto/soy-param-migration
2353
+ * @return {!Object}
2354
+ */
2355
+ proto.UpdateUserPayload.prototype.toObject = function(opt_includeInstance) {
2356
+ return proto.UpdateUserPayload.toObject(opt_includeInstance, this);
2357
+ };
2358
+
2359
+
2360
+ /**
2361
+ * Static version of the {@see toObject} method.
2362
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2363
+ * the JSPB instance for transitional soy proto support:
2364
+ * http://goto/soy-param-migration
2365
+ * @param {!proto.UpdateUserPayload} msg The msg instance to transform.
2366
+ * @return {!Object}
2367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2368
+ */
2369
+ proto.UpdateUserPayload.toObject = function(includeInstance, msg) {
2370
+ var f, obj = {
2371
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
2372
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
2373
+ };
2374
+
2375
+ if (includeInstance) {
2376
+ obj.$jspbMessageInstance = msg;
2377
+ }
2378
+ return obj;
2379
+ };
2380
+ }
2381
+
2382
+
2383
+ /**
2384
+ * Deserializes binary data (in protobuf wire format).
2385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2386
+ * @return {!proto.UpdateUserPayload}
2387
+ */
2388
+ proto.UpdateUserPayload.deserializeBinary = function(bytes) {
2389
+ var reader = new jspb.BinaryReader(bytes);
2390
+ var msg = new proto.UpdateUserPayload;
2391
+ return proto.UpdateUserPayload.deserializeBinaryFromReader(msg, reader);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * Deserializes binary data (in protobuf wire format) from the
2397
+ * given reader into the given message object.
2398
+ * @param {!proto.UpdateUserPayload} msg The message object to deserialize into.
2399
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2400
+ * @return {!proto.UpdateUserPayload}
2401
+ */
2402
+ proto.UpdateUserPayload.deserializeBinaryFromReader = function(msg, reader) {
2403
+ while (reader.nextField()) {
2404
+ if (reader.isEndGroup()) {
2405
+ break;
2406
+ }
2407
+ var field = reader.getFieldNumber();
2408
+ switch (field) {
2409
+ case 1:
2410
+ var value = /** @type {string} */ (reader.readString());
2411
+ msg.setEmail(value);
2412
+ break;
2413
+ case 2:
2414
+ var value = /** @type {string} */ (reader.readString());
2415
+ msg.setPassword(value);
2416
+ break;
2417
+ default:
2418
+ reader.skipField();
2419
+ break;
2420
+ }
2421
+ }
2422
+ return msg;
2423
+ };
2424
+
2425
+
2426
+ /**
2427
+ * Serializes the message to binary data (in protobuf wire format).
2428
+ * @return {!Uint8Array}
2429
+ */
2430
+ proto.UpdateUserPayload.prototype.serializeBinary = function() {
2431
+ var writer = new jspb.BinaryWriter();
2432
+ proto.UpdateUserPayload.serializeBinaryToWriter(this, writer);
2433
+ return writer.getResultBuffer();
2434
+ };
2435
+
2436
+
2437
+ /**
2438
+ * Serializes the given message to binary data (in protobuf wire
2439
+ * format), writing to the given BinaryWriter.
2440
+ * @param {!proto.UpdateUserPayload} message
2441
+ * @param {!jspb.BinaryWriter} writer
2442
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2443
+ */
2444
+ proto.UpdateUserPayload.serializeBinaryToWriter = function(message, writer) {
2445
+ var f = undefined;
2446
+ f = message.getEmail();
2447
+ if (f.length > 0) {
2448
+ writer.writeString(
2449
+ 1,
2450
+ f
2451
+ );
2452
+ }
2453
+ f = message.getPassword();
2454
+ if (f.length > 0) {
2455
+ writer.writeString(
2456
+ 2,
2457
+ f
2458
+ );
2459
+ }
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * optional string email = 1;
2465
+ * @return {string}
2466
+ */
2467
+ proto.UpdateUserPayload.prototype.getEmail = function() {
2468
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2469
+ };
2470
+
2471
+
2472
+ /**
2473
+ * @param {string} value
2474
+ * @return {!proto.UpdateUserPayload} returns this
2475
+ */
2476
+ proto.UpdateUserPayload.prototype.setEmail = function(value) {
2477
+ return jspb.Message.setProto3StringField(this, 1, value);
2478
+ };
2479
+
2480
+
2481
+ /**
2482
+ * optional string password = 2;
2483
+ * @return {string}
2484
+ */
2485
+ proto.UpdateUserPayload.prototype.getPassword = function() {
2486
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2487
+ };
2488
+
2489
+
2490
+ /**
2491
+ * @param {string} value
2492
+ * @return {!proto.UpdateUserPayload} returns this
2493
+ */
2494
+ proto.UpdateUserPayload.prototype.setPassword = function(value) {
2495
+ return jspb.Message.setProto3StringField(this, 2, value);
2496
+ };
2497
+
2498
+
2499
+
2500
+
2501
+
2502
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2503
+ /**
2504
+ * Creates an object representation of this proto.
2505
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2506
+ * Optional fields that are not set will be set to undefined.
2507
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2508
+ * For the list of reserved names please see:
2509
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2510
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2511
+ * JSPB instance for transitional soy proto support:
2512
+ * http://goto/soy-param-migration
2513
+ * @return {!Object}
2514
+ */
2515
+ proto.ChangePasswordRequest.prototype.toObject = function(opt_includeInstance) {
2516
+ return proto.ChangePasswordRequest.toObject(opt_includeInstance, this);
2517
+ };
2518
+
2519
+
2520
+ /**
2521
+ * Static version of the {@see toObject} method.
2522
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2523
+ * the JSPB instance for transitional soy proto support:
2524
+ * http://goto/soy-param-migration
2525
+ * @param {!proto.ChangePasswordRequest} msg The msg instance to transform.
2526
+ * @return {!Object}
2527
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2528
+ */
2529
+ proto.ChangePasswordRequest.toObject = function(includeInstance, msg) {
2530
+ var f, obj = {
2531
+ oldPassword: jspb.Message.getFieldWithDefault(msg, 1, ""),
2532
+ newPassword: jspb.Message.getFieldWithDefault(msg, 2, "")
2533
+ };
2534
+
2535
+ if (includeInstance) {
2536
+ obj.$jspbMessageInstance = msg;
2537
+ }
2538
+ return obj;
2539
+ };
2540
+ }
2541
+
2542
+
2543
+ /**
2544
+ * Deserializes binary data (in protobuf wire format).
2545
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2546
+ * @return {!proto.ChangePasswordRequest}
2547
+ */
2548
+ proto.ChangePasswordRequest.deserializeBinary = function(bytes) {
2549
+ var reader = new jspb.BinaryReader(bytes);
2550
+ var msg = new proto.ChangePasswordRequest;
2551
+ return proto.ChangePasswordRequest.deserializeBinaryFromReader(msg, reader);
2552
+ };
2553
+
2554
+
2555
+ /**
2556
+ * Deserializes binary data (in protobuf wire format) from the
2557
+ * given reader into the given message object.
2558
+ * @param {!proto.ChangePasswordRequest} msg The message object to deserialize into.
2559
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2560
+ * @return {!proto.ChangePasswordRequest}
2561
+ */
2562
+ proto.ChangePasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
2563
+ while (reader.nextField()) {
2564
+ if (reader.isEndGroup()) {
2565
+ break;
2566
+ }
2567
+ var field = reader.getFieldNumber();
2568
+ switch (field) {
2569
+ case 1:
2570
+ var value = /** @type {string} */ (reader.readString());
2571
+ msg.setOldPassword(value);
2572
+ break;
2573
+ case 2:
2574
+ var value = /** @type {string} */ (reader.readString());
2575
+ msg.setNewPassword(value);
2576
+ break;
2577
+ default:
2578
+ reader.skipField();
2579
+ break;
2580
+ }
2581
+ }
2582
+ return msg;
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * Serializes the message to binary data (in protobuf wire format).
2588
+ * @return {!Uint8Array}
2589
+ */
2590
+ proto.ChangePasswordRequest.prototype.serializeBinary = function() {
2591
+ var writer = new jspb.BinaryWriter();
2592
+ proto.ChangePasswordRequest.serializeBinaryToWriter(this, writer);
2593
+ return writer.getResultBuffer();
2594
+ };
2595
+
2596
+
2597
+ /**
2598
+ * Serializes the given message to binary data (in protobuf wire
2599
+ * format), writing to the given BinaryWriter.
2600
+ * @param {!proto.ChangePasswordRequest} message
2601
+ * @param {!jspb.BinaryWriter} writer
2602
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2603
+ */
2604
+ proto.ChangePasswordRequest.serializeBinaryToWriter = function(message, writer) {
2605
+ var f = undefined;
2606
+ f = message.getOldPassword();
2607
+ if (f.length > 0) {
2608
+ writer.writeString(
2609
+ 1,
2610
+ f
2611
+ );
2612
+ }
2613
+ f = message.getNewPassword();
2614
+ if (f.length > 0) {
2615
+ writer.writeString(
2616
+ 2,
2617
+ f
2618
+ );
2619
+ }
2620
+ };
2621
+
2622
+
2623
+ /**
2624
+ * optional string old_password = 1;
2625
+ * @return {string}
2626
+ */
2627
+ proto.ChangePasswordRequest.prototype.getOldPassword = function() {
2628
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2629
+ };
2630
+
2631
+
2632
+ /**
2633
+ * @param {string} value
2634
+ * @return {!proto.ChangePasswordRequest} returns this
2635
+ */
2636
+ proto.ChangePasswordRequest.prototype.setOldPassword = function(value) {
2637
+ return jspb.Message.setProto3StringField(this, 1, value);
2638
+ };
2639
+
2640
+
2641
+ /**
2642
+ * optional string new_password = 2;
2643
+ * @return {string}
2644
+ */
2645
+ proto.ChangePasswordRequest.prototype.getNewPassword = function() {
2646
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2647
+ };
2648
+
2649
+
2650
+ /**
2651
+ * @param {string} value
2652
+ * @return {!proto.ChangePasswordRequest} returns this
2653
+ */
2654
+ proto.ChangePasswordRequest.prototype.setNewPassword = function(value) {
2655
+ return jspb.Message.setProto3StringField(this, 2, value);
2656
+ };
2657
+
2658
+
2659
+
2660
+
2661
+
2662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2663
+ /**
2664
+ * Creates an object representation of this proto.
2665
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2666
+ * Optional fields that are not set will be set to undefined.
2667
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2668
+ * For the list of reserved names please see:
2669
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2670
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2671
+ * JSPB instance for transitional soy proto support:
2672
+ * http://goto/soy-param-migration
2673
+ * @return {!Object}
2674
+ */
2675
+ proto.UserResponse.prototype.toObject = function(opt_includeInstance) {
2676
+ return proto.UserResponse.toObject(opt_includeInstance, this);
2677
+ };
2678
+
2679
+
2680
+ /**
2681
+ * Static version of the {@see toObject} method.
2682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2683
+ * the JSPB instance for transitional soy proto support:
2684
+ * http://goto/soy-param-migration
2685
+ * @param {!proto.UserResponse} msg The msg instance to transform.
2686
+ * @return {!Object}
2687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2688
+ */
2689
+ proto.UserResponse.toObject = function(includeInstance, msg) {
2690
+ var f, obj = {
2691
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2692
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2693
+ email: jspb.Message.getFieldWithDefault(msg, 3, ""),
2694
+ role: jspb.Message.getFieldWithDefault(msg, 4, ""),
2695
+ token: jspb.Message.getFieldWithDefault(msg, 5, ""),
2696
+ referencesId: jspb.Message.getFieldWithDefault(msg, 6, "")
2697
+ };
2698
+
2699
+ if (includeInstance) {
2700
+ obj.$jspbMessageInstance = msg;
2701
+ }
2702
+ return obj;
2703
+ };
2704
+ }
2705
+
2706
+
2707
+ /**
2708
+ * Deserializes binary data (in protobuf wire format).
2709
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2710
+ * @return {!proto.UserResponse}
2711
+ */
2712
+ proto.UserResponse.deserializeBinary = function(bytes) {
2713
+ var reader = new jspb.BinaryReader(bytes);
2714
+ var msg = new proto.UserResponse;
2715
+ return proto.UserResponse.deserializeBinaryFromReader(msg, reader);
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * Deserializes binary data (in protobuf wire format) from the
2721
+ * given reader into the given message object.
2722
+ * @param {!proto.UserResponse} msg The message object to deserialize into.
2723
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2724
+ * @return {!proto.UserResponse}
2725
+ */
2726
+ proto.UserResponse.deserializeBinaryFromReader = function(msg, reader) {
2727
+ while (reader.nextField()) {
2728
+ if (reader.isEndGroup()) {
2729
+ break;
2730
+ }
2731
+ var field = reader.getFieldNumber();
2732
+ switch (field) {
2733
+ case 1:
2734
+ var value = /** @type {number} */ (reader.readInt64());
2735
+ msg.setId(value);
2736
+ break;
2737
+ case 2:
2738
+ var value = /** @type {string} */ (reader.readString());
2739
+ msg.setName(value);
2740
+ break;
2741
+ case 3:
2742
+ var value = /** @type {string} */ (reader.readString());
2743
+ msg.setEmail(value);
2744
+ break;
2745
+ case 4:
2746
+ var value = /** @type {string} */ (reader.readString());
2747
+ msg.setRole(value);
2748
+ break;
2749
+ case 5:
2750
+ var value = /** @type {string} */ (reader.readString());
2751
+ msg.setToken(value);
2752
+ break;
2753
+ case 6:
2754
+ var value = /** @type {string} */ (reader.readString());
2755
+ msg.setReferencesId(value);
2756
+ break;
2757
+ default:
2758
+ reader.skipField();
2759
+ break;
2760
+ }
2761
+ }
2762
+ return msg;
2763
+ };
2764
+
2765
+
2766
+ /**
2767
+ * Serializes the message to binary data (in protobuf wire format).
2768
+ * @return {!Uint8Array}
2769
+ */
2770
+ proto.UserResponse.prototype.serializeBinary = function() {
2771
+ var writer = new jspb.BinaryWriter();
2772
+ proto.UserResponse.serializeBinaryToWriter(this, writer);
2773
+ return writer.getResultBuffer();
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * Serializes the given message to binary data (in protobuf wire
2779
+ * format), writing to the given BinaryWriter.
2780
+ * @param {!proto.UserResponse} message
2781
+ * @param {!jspb.BinaryWriter} writer
2782
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2783
+ */
2784
+ proto.UserResponse.serializeBinaryToWriter = function(message, writer) {
2785
+ var f = undefined;
2786
+ f = message.getId();
2787
+ if (f !== 0) {
2788
+ writer.writeInt64(
2789
+ 1,
2790
+ f
2791
+ );
2792
+ }
2793
+ f = message.getName();
2794
+ if (f.length > 0) {
2795
+ writer.writeString(
2796
+ 2,
2797
+ f
2798
+ );
2799
+ }
2800
+ f = message.getEmail();
2801
+ if (f.length > 0) {
2802
+ writer.writeString(
2803
+ 3,
2804
+ f
2805
+ );
2806
+ }
2807
+ f = message.getRole();
2808
+ if (f.length > 0) {
2809
+ writer.writeString(
2810
+ 4,
2811
+ f
2812
+ );
2813
+ }
2814
+ f = message.getToken();
2815
+ if (f.length > 0) {
2816
+ writer.writeString(
2817
+ 5,
2818
+ f
2819
+ );
2820
+ }
2821
+ f = message.getReferencesId();
2822
+ if (f.length > 0) {
2823
+ writer.writeString(
2824
+ 6,
2825
+ f
2826
+ );
2827
+ }
2828
+ };
2829
+
2830
+
2831
+ /**
2832
+ * optional int64 id = 1;
2833
+ * @return {number}
2834
+ */
2835
+ proto.UserResponse.prototype.getId = function() {
2836
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2837
+ };
2838
+
2839
+
2840
+ /**
2841
+ * @param {number} value
2842
+ * @return {!proto.UserResponse} returns this
2843
+ */
2844
+ proto.UserResponse.prototype.setId = function(value) {
2845
+ return jspb.Message.setProto3IntField(this, 1, value);
2846
+ };
2847
+
2848
+
2849
+ /**
2850
+ * optional string name = 2;
2851
+ * @return {string}
2852
+ */
2853
+ proto.UserResponse.prototype.getName = function() {
2854
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2855
+ };
2856
+
2857
+
2858
+ /**
2859
+ * @param {string} value
2860
+ * @return {!proto.UserResponse} returns this
2861
+ */
2862
+ proto.UserResponse.prototype.setName = function(value) {
2863
+ return jspb.Message.setProto3StringField(this, 2, value);
2864
+ };
2865
+
2866
+
2867
+ /**
2868
+ * optional string email = 3;
2869
+ * @return {string}
2870
+ */
2871
+ proto.UserResponse.prototype.getEmail = function() {
2872
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2873
+ };
2874
+
2875
+
2876
+ /**
2877
+ * @param {string} value
2878
+ * @return {!proto.UserResponse} returns this
2879
+ */
2880
+ proto.UserResponse.prototype.setEmail = function(value) {
2881
+ return jspb.Message.setProto3StringField(this, 3, value);
2882
+ };
2883
+
2884
+
2885
+ /**
2886
+ * optional string role = 4;
2887
+ * @return {string}
2888
+ */
2889
+ proto.UserResponse.prototype.getRole = function() {
2890
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2891
+ };
2892
+
2893
+
2894
+ /**
2895
+ * @param {string} value
2896
+ * @return {!proto.UserResponse} returns this
2897
+ */
2898
+ proto.UserResponse.prototype.setRole = function(value) {
2899
+ return jspb.Message.setProto3StringField(this, 4, value);
2900
+ };
2901
+
2902
+
2903
+ /**
2904
+ * optional string token = 5;
2905
+ * @return {string}
2906
+ */
2907
+ proto.UserResponse.prototype.getToken = function() {
2908
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2909
+ };
2910
+
2911
+
2912
+ /**
2913
+ * @param {string} value
2914
+ * @return {!proto.UserResponse} returns this
2915
+ */
2916
+ proto.UserResponse.prototype.setToken = function(value) {
2917
+ return jspb.Message.setProto3StringField(this, 5, value);
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * optional string references_id = 6;
2923
+ * @return {string}
2924
+ */
2925
+ proto.UserResponse.prototype.getReferencesId = function() {
2926
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2927
+ };
2928
+
2929
+
2930
+ /**
2931
+ * @param {string} value
2932
+ * @return {!proto.UserResponse} returns this
2933
+ */
2934
+ proto.UserResponse.prototype.setReferencesId = function(value) {
2935
+ return jspb.Message.setProto3StringField(this, 6, value);
2936
+ };
2937
+
2938
+
2939
+
2940
+
2941
+
2942
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2943
+ /**
2944
+ * Creates an object representation of this proto.
2945
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2946
+ * Optional fields that are not set will be set to undefined.
2947
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2948
+ * For the list of reserved names please see:
2949
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2950
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2951
+ * JSPB instance for transitional soy proto support:
2952
+ * http://goto/soy-param-migration
2953
+ * @return {!Object}
2954
+ */
2955
+ proto.AccessResponse.prototype.toObject = function(opt_includeInstance) {
2956
+ return proto.AccessResponse.toObject(opt_includeInstance, this);
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * Static version of the {@see toObject} method.
2962
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2963
+ * the JSPB instance for transitional soy proto support:
2964
+ * http://goto/soy-param-migration
2965
+ * @param {!proto.AccessResponse} msg The msg instance to transform.
2966
+ * @return {!Object}
2967
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2968
+ */
2969
+ proto.AccessResponse.toObject = function(includeInstance, msg) {
2970
+ var f, obj = {
2971
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2972
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
2973
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, ""),
2974
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
2975
+ keyprefix: jspb.Message.getFieldWithDefault(msg, 5, "")
2976
+ };
2977
+
2978
+ if (includeInstance) {
2979
+ obj.$jspbMessageInstance = msg;
2980
+ }
2981
+ return obj;
2982
+ };
2983
+ }
2984
+
2985
+
2986
+ /**
2987
+ * Deserializes binary data (in protobuf wire format).
2988
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2989
+ * @return {!proto.AccessResponse}
2990
+ */
2991
+ proto.AccessResponse.deserializeBinary = function(bytes) {
2992
+ var reader = new jspb.BinaryReader(bytes);
2993
+ var msg = new proto.AccessResponse;
2994
+ return proto.AccessResponse.deserializeBinaryFromReader(msg, reader);
2995
+ };
2996
+
2997
+
2998
+ /**
2999
+ * Deserializes binary data (in protobuf wire format) from the
3000
+ * given reader into the given message object.
3001
+ * @param {!proto.AccessResponse} msg The message object to deserialize into.
3002
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3003
+ * @return {!proto.AccessResponse}
3004
+ */
3005
+ proto.AccessResponse.deserializeBinaryFromReader = function(msg, reader) {
3006
+ while (reader.nextField()) {
3007
+ if (reader.isEndGroup()) {
3008
+ break;
3009
+ }
3010
+ var field = reader.getFieldNumber();
3011
+ switch (field) {
3012
+ case 1:
3013
+ var value = /** @type {string} */ (reader.readString());
3014
+ msg.setName(value);
3015
+ break;
3016
+ case 2:
3017
+ var value = /** @type {number} */ (reader.readInt64());
3018
+ msg.setUserid(value);
3019
+ break;
3020
+ case 3:
3021
+ var value = /** @type {string} */ (reader.readString());
3022
+ msg.setScopes(value);
3023
+ break;
3024
+ case 4:
3025
+ var value = /** @type {string} */ (reader.readString());
3026
+ msg.setStatus(value);
3027
+ break;
3028
+ case 5:
3029
+ var value = /** @type {string} */ (reader.readString());
3030
+ msg.setKeyprefix(value);
3031
+ break;
3032
+ default:
3033
+ reader.skipField();
3034
+ break;
3035
+ }
3036
+ }
3037
+ return msg;
3038
+ };
3039
+
3040
+
3041
+ /**
3042
+ * Serializes the message to binary data (in protobuf wire format).
3043
+ * @return {!Uint8Array}
3044
+ */
3045
+ proto.AccessResponse.prototype.serializeBinary = function() {
3046
+ var writer = new jspb.BinaryWriter();
3047
+ proto.AccessResponse.serializeBinaryToWriter(this, writer);
3048
+ return writer.getResultBuffer();
3049
+ };
3050
+
3051
+
3052
+ /**
3053
+ * Serializes the given message to binary data (in protobuf wire
3054
+ * format), writing to the given BinaryWriter.
3055
+ * @param {!proto.AccessResponse} message
3056
+ * @param {!jspb.BinaryWriter} writer
3057
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3058
+ */
3059
+ proto.AccessResponse.serializeBinaryToWriter = function(message, writer) {
3060
+ var f = undefined;
3061
+ f = message.getName();
3062
+ if (f.length > 0) {
3063
+ writer.writeString(
3064
+ 1,
3065
+ f
3066
+ );
3067
+ }
3068
+ f = message.getUserid();
3069
+ if (f !== 0) {
3070
+ writer.writeInt64(
3071
+ 2,
3072
+ f
3073
+ );
3074
+ }
3075
+ f = message.getScopes();
3076
+ if (f.length > 0) {
3077
+ writer.writeString(
3078
+ 3,
3079
+ f
3080
+ );
3081
+ }
3082
+ f = message.getStatus();
3083
+ if (f.length > 0) {
3084
+ writer.writeString(
3085
+ 4,
3086
+ f
3087
+ );
3088
+ }
3089
+ f = message.getKeyprefix();
3090
+ if (f.length > 0) {
3091
+ writer.writeString(
3092
+ 5,
3093
+ f
3094
+ );
3095
+ }
3096
+ };
3097
+
3098
+
3099
+ /**
3100
+ * optional string name = 1;
3101
+ * @return {string}
3102
+ */
3103
+ proto.AccessResponse.prototype.getName = function() {
3104
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * @param {string} value
3110
+ * @return {!proto.AccessResponse} returns this
3111
+ */
3112
+ proto.AccessResponse.prototype.setName = function(value) {
3113
+ return jspb.Message.setProto3StringField(this, 1, value);
3114
+ };
3115
+
3116
+
3117
+ /**
3118
+ * optional int64 userId = 2;
3119
+ * @return {number}
3120
+ */
3121
+ proto.AccessResponse.prototype.getUserid = function() {
3122
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3123
+ };
3124
+
3125
+
3126
+ /**
3127
+ * @param {number} value
3128
+ * @return {!proto.AccessResponse} returns this
3129
+ */
3130
+ proto.AccessResponse.prototype.setUserid = function(value) {
3131
+ return jspb.Message.setProto3IntField(this, 2, value);
3132
+ };
3133
+
3134
+
3135
+ /**
3136
+ * optional string scopes = 3;
3137
+ * @return {string}
3138
+ */
3139
+ proto.AccessResponse.prototype.getScopes = function() {
3140
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3141
+ };
3142
+
3143
+
3144
+ /**
3145
+ * @param {string} value
3146
+ * @return {!proto.AccessResponse} returns this
3147
+ */
3148
+ proto.AccessResponse.prototype.setScopes = function(value) {
3149
+ return jspb.Message.setProto3StringField(this, 3, value);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * optional string status = 4;
3155
+ * @return {string}
3156
+ */
3157
+ proto.AccessResponse.prototype.getStatus = function() {
3158
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * @param {string} value
3164
+ * @return {!proto.AccessResponse} returns this
3165
+ */
3166
+ proto.AccessResponse.prototype.setStatus = function(value) {
3167
+ return jspb.Message.setProto3StringField(this, 4, value);
3168
+ };
3169
+
3170
+
3171
+ /**
3172
+ * optional string keyPrefix = 5;
3173
+ * @return {string}
3174
+ */
3175
+ proto.AccessResponse.prototype.getKeyprefix = function() {
3176
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3177
+ };
3178
+
3179
+
3180
+ /**
3181
+ * @param {string} value
3182
+ * @return {!proto.AccessResponse} returns this
3183
+ */
3184
+ proto.AccessResponse.prototype.setKeyprefix = function(value) {
3185
+ return jspb.Message.setProto3StringField(this, 5, value);
3186
+ };
3187
+
3188
+
3189
+
3190
+
3191
+
3192
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3193
+ /**
3194
+ * Creates an object representation of this proto.
3195
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3196
+ * Optional fields that are not set will be set to undefined.
3197
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3198
+ * For the list of reserved names please see:
3199
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3200
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3201
+ * JSPB instance for transitional soy proto support:
3202
+ * http://goto/soy-param-migration
3203
+ * @return {!Object}
3204
+ */
3205
+ proto.AccessApiManagersResponse.prototype.toObject = function(opt_includeInstance) {
3206
+ return proto.AccessApiManagersResponse.toObject(opt_includeInstance, this);
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * Static version of the {@see toObject} method.
3212
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3213
+ * the JSPB instance for transitional soy proto support:
3214
+ * http://goto/soy-param-migration
3215
+ * @param {!proto.AccessApiManagersResponse} msg The msg instance to transform.
3216
+ * @return {!Object}
3217
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3218
+ */
3219
+ proto.AccessApiManagersResponse.toObject = function(includeInstance, msg) {
3220
+ var f, obj = {
3221
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3222
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
3223
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, ""),
3224
+ status: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3225
+ keyprefix: jspb.Message.getFieldWithDefault(msg, 5, ""),
3226
+ val: jspb.Message.getFieldWithDefault(msg, 6, ""),
3227
+ createdat: jspb.Message.getFieldWithDefault(msg, 7, ""),
3228
+ updatedat: jspb.Message.getFieldWithDefault(msg, 8, "")
3229
+ };
3230
+
3231
+ if (includeInstance) {
3232
+ obj.$jspbMessageInstance = msg;
3233
+ }
3234
+ return obj;
3235
+ };
3236
+ }
3237
+
3238
+
3239
+ /**
3240
+ * Deserializes binary data (in protobuf wire format).
3241
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3242
+ * @return {!proto.AccessApiManagersResponse}
3243
+ */
3244
+ proto.AccessApiManagersResponse.deserializeBinary = function(bytes) {
3245
+ var reader = new jspb.BinaryReader(bytes);
3246
+ var msg = new proto.AccessApiManagersResponse;
3247
+ return proto.AccessApiManagersResponse.deserializeBinaryFromReader(msg, reader);
3248
+ };
3249
+
3250
+
3251
+ /**
3252
+ * Deserializes binary data (in protobuf wire format) from the
3253
+ * given reader into the given message object.
3254
+ * @param {!proto.AccessApiManagersResponse} msg The message object to deserialize into.
3255
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3256
+ * @return {!proto.AccessApiManagersResponse}
3257
+ */
3258
+ proto.AccessApiManagersResponse.deserializeBinaryFromReader = function(msg, reader) {
3259
+ while (reader.nextField()) {
3260
+ if (reader.isEndGroup()) {
3261
+ break;
3262
+ }
3263
+ var field = reader.getFieldNumber();
3264
+ switch (field) {
3265
+ case 1:
3266
+ var value = /** @type {string} */ (reader.readString());
3267
+ msg.setName(value);
3268
+ break;
3269
+ case 2:
3270
+ var value = /** @type {number} */ (reader.readInt64());
3271
+ msg.setUserid(value);
3272
+ break;
3273
+ case 3:
3274
+ var value = /** @type {string} */ (reader.readString());
3275
+ msg.setScopes(value);
3276
+ break;
3277
+ case 4:
3278
+ var value = /** @type {boolean} */ (reader.readBool());
3279
+ msg.setStatus(value);
3280
+ break;
3281
+ case 5:
3282
+ var value = /** @type {string} */ (reader.readString());
3283
+ msg.setKeyprefix(value);
3284
+ break;
3285
+ case 6:
3286
+ var value = /** @type {string} */ (reader.readString());
3287
+ msg.setVal(value);
3288
+ break;
3289
+ case 7:
3290
+ var value = /** @type {string} */ (reader.readString());
3291
+ msg.setCreatedat(value);
3292
+ break;
3293
+ case 8:
3294
+ var value = /** @type {string} */ (reader.readString());
3295
+ msg.setUpdatedat(value);
3296
+ break;
3297
+ default:
3298
+ reader.skipField();
3299
+ break;
3300
+ }
3301
+ }
3302
+ return msg;
3303
+ };
3304
+
3305
+
3306
+ /**
3307
+ * Serializes the message to binary data (in protobuf wire format).
3308
+ * @return {!Uint8Array}
3309
+ */
3310
+ proto.AccessApiManagersResponse.prototype.serializeBinary = function() {
3311
+ var writer = new jspb.BinaryWriter();
3312
+ proto.AccessApiManagersResponse.serializeBinaryToWriter(this, writer);
3313
+ return writer.getResultBuffer();
3314
+ };
3315
+
3316
+
3317
+ /**
3318
+ * Serializes the given message to binary data (in protobuf wire
3319
+ * format), writing to the given BinaryWriter.
3320
+ * @param {!proto.AccessApiManagersResponse} message
3321
+ * @param {!jspb.BinaryWriter} writer
3322
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3323
+ */
3324
+ proto.AccessApiManagersResponse.serializeBinaryToWriter = function(message, writer) {
3325
+ var f = undefined;
3326
+ f = message.getName();
3327
+ if (f.length > 0) {
3328
+ writer.writeString(
3329
+ 1,
3330
+ f
3331
+ );
3332
+ }
3333
+ f = message.getUserid();
3334
+ if (f !== 0) {
3335
+ writer.writeInt64(
3336
+ 2,
3337
+ f
3338
+ );
3339
+ }
3340
+ f = message.getScopes();
3341
+ if (f.length > 0) {
3342
+ writer.writeString(
3343
+ 3,
3344
+ f
3345
+ );
3346
+ }
3347
+ f = message.getStatus();
3348
+ if (f) {
3349
+ writer.writeBool(
3350
+ 4,
3351
+ f
3352
+ );
3353
+ }
3354
+ f = message.getKeyprefix();
3355
+ if (f.length > 0) {
3356
+ writer.writeString(
3357
+ 5,
3358
+ f
3359
+ );
3360
+ }
3361
+ f = message.getVal();
3362
+ if (f.length > 0) {
3363
+ writer.writeString(
3364
+ 6,
3365
+ f
3366
+ );
3367
+ }
3368
+ f = message.getCreatedat();
3369
+ if (f.length > 0) {
3370
+ writer.writeString(
3371
+ 7,
3372
+ f
3373
+ );
3374
+ }
3375
+ f = message.getUpdatedat();
3376
+ if (f.length > 0) {
3377
+ writer.writeString(
3378
+ 8,
3379
+ f
3380
+ );
3381
+ }
3382
+ };
3383
+
3384
+
3385
+ /**
3386
+ * optional string name = 1;
3387
+ * @return {string}
3388
+ */
3389
+ proto.AccessApiManagersResponse.prototype.getName = function() {
3390
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3391
+ };
3392
+
3393
+
3394
+ /**
3395
+ * @param {string} value
3396
+ * @return {!proto.AccessApiManagersResponse} returns this
3397
+ */
3398
+ proto.AccessApiManagersResponse.prototype.setName = function(value) {
3399
+ return jspb.Message.setProto3StringField(this, 1, value);
3400
+ };
3401
+
3402
+
3403
+ /**
3404
+ * optional int64 userId = 2;
3405
+ * @return {number}
3406
+ */
3407
+ proto.AccessApiManagersResponse.prototype.getUserid = function() {
3408
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3409
+ };
3410
+
3411
+
3412
+ /**
3413
+ * @param {number} value
3414
+ * @return {!proto.AccessApiManagersResponse} returns this
3415
+ */
3416
+ proto.AccessApiManagersResponse.prototype.setUserid = function(value) {
3417
+ return jspb.Message.setProto3IntField(this, 2, value);
3418
+ };
3419
+
3420
+
3421
+ /**
3422
+ * optional string scopes = 3;
3423
+ * @return {string}
3424
+ */
3425
+ proto.AccessApiManagersResponse.prototype.getScopes = function() {
3426
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3427
+ };
3428
+
3429
+
3430
+ /**
3431
+ * @param {string} value
3432
+ * @return {!proto.AccessApiManagersResponse} returns this
3433
+ */
3434
+ proto.AccessApiManagersResponse.prototype.setScopes = function(value) {
3435
+ return jspb.Message.setProto3StringField(this, 3, value);
3436
+ };
3437
+
3438
+
3439
+ /**
3440
+ * optional bool status = 4;
3441
+ * @return {boolean}
3442
+ */
3443
+ proto.AccessApiManagersResponse.prototype.getStatus = function() {
3444
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
3445
+ };
3446
+
3447
+
3448
+ /**
3449
+ * @param {boolean} value
3450
+ * @return {!proto.AccessApiManagersResponse} returns this
3451
+ */
3452
+ proto.AccessApiManagersResponse.prototype.setStatus = function(value) {
3453
+ return jspb.Message.setProto3BooleanField(this, 4, value);
3454
+ };
3455
+
3456
+
3457
+ /**
3458
+ * optional string keyPrefix = 5;
3459
+ * @return {string}
3460
+ */
3461
+ proto.AccessApiManagersResponse.prototype.getKeyprefix = function() {
3462
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3463
+ };
3464
+
3465
+
3466
+ /**
3467
+ * @param {string} value
3468
+ * @return {!proto.AccessApiManagersResponse} returns this
3469
+ */
3470
+ proto.AccessApiManagersResponse.prototype.setKeyprefix = function(value) {
3471
+ return jspb.Message.setProto3StringField(this, 5, value);
3472
+ };
3473
+
3474
+
3475
+ /**
3476
+ * optional string val = 6;
3477
+ * @return {string}
3478
+ */
3479
+ proto.AccessApiManagersResponse.prototype.getVal = function() {
3480
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3481
+ };
3482
+
3483
+
3484
+ /**
3485
+ * @param {string} value
3486
+ * @return {!proto.AccessApiManagersResponse} returns this
3487
+ */
3488
+ proto.AccessApiManagersResponse.prototype.setVal = function(value) {
3489
+ return jspb.Message.setProto3StringField(this, 6, value);
3490
+ };
3491
+
3492
+
3493
+ /**
3494
+ * optional string createdAt = 7;
3495
+ * @return {string}
3496
+ */
3497
+ proto.AccessApiManagersResponse.prototype.getCreatedat = function() {
3498
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3499
+ };
3500
+
3501
+
3502
+ /**
3503
+ * @param {string} value
3504
+ * @return {!proto.AccessApiManagersResponse} returns this
3505
+ */
3506
+ proto.AccessApiManagersResponse.prototype.setCreatedat = function(value) {
3507
+ return jspb.Message.setProto3StringField(this, 7, value);
3508
+ };
3509
+
3510
+
3511
+ /**
3512
+ * optional string updatedAt = 8;
3513
+ * @return {string}
3514
+ */
3515
+ proto.AccessApiManagersResponse.prototype.getUpdatedat = function() {
3516
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3517
+ };
3518
+
3519
+
3520
+ /**
3521
+ * @param {string} value
3522
+ * @return {!proto.AccessApiManagersResponse} returns this
3523
+ */
3524
+ proto.AccessApiManagersResponse.prototype.setUpdatedat = function(value) {
3525
+ return jspb.Message.setProto3StringField(this, 8, value);
3526
+ };
3527
+
3528
+
3529
+
3530
+ /**
3531
+ * List of repeated fields within this message type.
3532
+ * @private {!Array<number>}
3533
+ * @const
3534
+ */
3535
+ proto.ListAccessResponse.repeatedFields_ = [1];
3536
+
3537
+
3538
+
3539
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3540
+ /**
3541
+ * Creates an object representation of this proto.
3542
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3543
+ * Optional fields that are not set will be set to undefined.
3544
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3545
+ * For the list of reserved names please see:
3546
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3547
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3548
+ * JSPB instance for transitional soy proto support:
3549
+ * http://goto/soy-param-migration
3550
+ * @return {!Object}
3551
+ */
3552
+ proto.ListAccessResponse.prototype.toObject = function(opt_includeInstance) {
3553
+ return proto.ListAccessResponse.toObject(opt_includeInstance, this);
3554
+ };
3555
+
3556
+
3557
+ /**
3558
+ * Static version of the {@see toObject} method.
3559
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3560
+ * the JSPB instance for transitional soy proto support:
3561
+ * http://goto/soy-param-migration
3562
+ * @param {!proto.ListAccessResponse} msg The msg instance to transform.
3563
+ * @return {!Object}
3564
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3565
+ */
3566
+ proto.ListAccessResponse.toObject = function(includeInstance, msg) {
3567
+ var f, obj = {
3568
+ dataList: jspb.Message.toObjectList(msg.getDataList(),
3569
+ proto.AccessResponse.toObject, includeInstance)
3570
+ };
3571
+
3572
+ if (includeInstance) {
3573
+ obj.$jspbMessageInstance = msg;
3574
+ }
3575
+ return obj;
3576
+ };
3577
+ }
3578
+
3579
+
3580
+ /**
3581
+ * Deserializes binary data (in protobuf wire format).
3582
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3583
+ * @return {!proto.ListAccessResponse}
3584
+ */
3585
+ proto.ListAccessResponse.deserializeBinary = function(bytes) {
3586
+ var reader = new jspb.BinaryReader(bytes);
3587
+ var msg = new proto.ListAccessResponse;
3588
+ return proto.ListAccessResponse.deserializeBinaryFromReader(msg, reader);
3589
+ };
3590
+
3591
+
3592
+ /**
3593
+ * Deserializes binary data (in protobuf wire format) from the
3594
+ * given reader into the given message object.
3595
+ * @param {!proto.ListAccessResponse} msg The message object to deserialize into.
3596
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3597
+ * @return {!proto.ListAccessResponse}
3598
+ */
3599
+ proto.ListAccessResponse.deserializeBinaryFromReader = function(msg, reader) {
3600
+ while (reader.nextField()) {
3601
+ if (reader.isEndGroup()) {
3602
+ break;
3603
+ }
3604
+ var field = reader.getFieldNumber();
3605
+ switch (field) {
3606
+ case 1:
3607
+ var value = new proto.AccessResponse;
3608
+ reader.readMessage(value,proto.AccessResponse.deserializeBinaryFromReader);
3609
+ msg.addData(value);
3610
+ break;
3611
+ default:
3612
+ reader.skipField();
3613
+ break;
3614
+ }
3615
+ }
3616
+ return msg;
3617
+ };
3618
+
3619
+
3620
+ /**
3621
+ * Serializes the message to binary data (in protobuf wire format).
3622
+ * @return {!Uint8Array}
3623
+ */
3624
+ proto.ListAccessResponse.prototype.serializeBinary = function() {
3625
+ var writer = new jspb.BinaryWriter();
3626
+ proto.ListAccessResponse.serializeBinaryToWriter(this, writer);
3627
+ return writer.getResultBuffer();
3628
+ };
3629
+
3630
+
3631
+ /**
3632
+ * Serializes the given message to binary data (in protobuf wire
3633
+ * format), writing to the given BinaryWriter.
3634
+ * @param {!proto.ListAccessResponse} message
3635
+ * @param {!jspb.BinaryWriter} writer
3636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3637
+ */
3638
+ proto.ListAccessResponse.serializeBinaryToWriter = function(message, writer) {
3639
+ var f = undefined;
3640
+ f = message.getDataList();
3641
+ if (f.length > 0) {
3642
+ writer.writeRepeatedMessage(
3643
+ 1,
3644
+ f,
3645
+ proto.AccessResponse.serializeBinaryToWriter
3646
+ );
3647
+ }
3648
+ };
3649
+
3650
+
3651
+ /**
3652
+ * repeated AccessResponse data = 1;
3653
+ * @return {!Array<!proto.AccessResponse>}
3654
+ */
3655
+ proto.ListAccessResponse.prototype.getDataList = function() {
3656
+ return /** @type{!Array<!proto.AccessResponse>} */ (
3657
+ jspb.Message.getRepeatedWrapperField(this, proto.AccessResponse, 1));
3658
+ };
3659
+
3660
+
3661
+ /**
3662
+ * @param {!Array<!proto.AccessResponse>} value
3663
+ * @return {!proto.ListAccessResponse} returns this
3664
+ */
3665
+ proto.ListAccessResponse.prototype.setDataList = function(value) {
3666
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3667
+ };
3668
+
3669
+
3670
+ /**
3671
+ * @param {!proto.AccessResponse=} opt_value
3672
+ * @param {number=} opt_index
3673
+ * @return {!proto.AccessResponse}
3674
+ */
3675
+ proto.ListAccessResponse.prototype.addData = function(opt_value, opt_index) {
3676
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.AccessResponse, opt_index);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Clears the list making it empty but non-null.
3682
+ * @return {!proto.ListAccessResponse} returns this
3683
+ */
3684
+ proto.ListAccessResponse.prototype.clearDataList = function() {
3685
+ return this.setDataList([]);
3686
+ };
3687
+
3688
+
3689
+
3690
+
3691
+
3692
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3693
+ /**
3694
+ * Creates an object representation of this proto.
3695
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3696
+ * Optional fields that are not set will be set to undefined.
3697
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3698
+ * For the list of reserved names please see:
3699
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3700
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3701
+ * JSPB instance for transitional soy proto support:
3702
+ * http://goto/soy-param-migration
3703
+ * @return {!Object}
3704
+ */
3705
+ proto.ChangePasswordResponse.prototype.toObject = function(opt_includeInstance) {
3706
+ return proto.ChangePasswordResponse.toObject(opt_includeInstance, this);
3707
+ };
3708
+
3709
+
3710
+ /**
3711
+ * Static version of the {@see toObject} method.
3712
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3713
+ * the JSPB instance for transitional soy proto support:
3714
+ * http://goto/soy-param-migration
3715
+ * @param {!proto.ChangePasswordResponse} msg The msg instance to transform.
3716
+ * @return {!Object}
3717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3718
+ */
3719
+ proto.ChangePasswordResponse.toObject = function(includeInstance, msg) {
3720
+ var f, obj = {
3721
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3722
+ };
3723
+
3724
+ if (includeInstance) {
3725
+ obj.$jspbMessageInstance = msg;
3726
+ }
3727
+ return obj;
3728
+ };
3729
+ }
3730
+
3731
+
3732
+ /**
3733
+ * Deserializes binary data (in protobuf wire format).
3734
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3735
+ * @return {!proto.ChangePasswordResponse}
3736
+ */
3737
+ proto.ChangePasswordResponse.deserializeBinary = function(bytes) {
3738
+ var reader = new jspb.BinaryReader(bytes);
3739
+ var msg = new proto.ChangePasswordResponse;
3740
+ return proto.ChangePasswordResponse.deserializeBinaryFromReader(msg, reader);
3741
+ };
3742
+
3743
+
3744
+ /**
3745
+ * Deserializes binary data (in protobuf wire format) from the
3746
+ * given reader into the given message object.
3747
+ * @param {!proto.ChangePasswordResponse} msg The message object to deserialize into.
3748
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3749
+ * @return {!proto.ChangePasswordResponse}
3750
+ */
3751
+ proto.ChangePasswordResponse.deserializeBinaryFromReader = function(msg, reader) {
3752
+ while (reader.nextField()) {
3753
+ if (reader.isEndGroup()) {
3754
+ break;
3755
+ }
3756
+ var field = reader.getFieldNumber();
3757
+ switch (field) {
3758
+ case 1:
3759
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3760
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3761
+ msg.setMeta(value);
3762
+ break;
3763
+ default:
3764
+ reader.skipField();
3765
+ break;
3766
+ }
3767
+ }
3768
+ return msg;
3769
+ };
3770
+
3771
+
3772
+ /**
3773
+ * Serializes the message to binary data (in protobuf wire format).
3774
+ * @return {!Uint8Array}
3775
+ */
3776
+ proto.ChangePasswordResponse.prototype.serializeBinary = function() {
3777
+ var writer = new jspb.BinaryWriter();
3778
+ proto.ChangePasswordResponse.serializeBinaryToWriter(this, writer);
3779
+ return writer.getResultBuffer();
3780
+ };
3781
+
3782
+
3783
+ /**
3784
+ * Serializes the given message to binary data (in protobuf wire
3785
+ * format), writing to the given BinaryWriter.
3786
+ * @param {!proto.ChangePasswordResponse} message
3787
+ * @param {!jspb.BinaryWriter} writer
3788
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3789
+ */
3790
+ proto.ChangePasswordResponse.serializeBinaryToWriter = function(message, writer) {
3791
+ var f = undefined;
3792
+ f = message.getMeta();
3793
+ if (f != null) {
3794
+ writer.writeMessage(
3795
+ 1,
3796
+ f,
3797
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3798
+ );
3799
+ }
3800
+ };
3801
+
3802
+
3803
+ /**
3804
+ * optional prisca.v1.global.meta.Meta meta = 1;
3805
+ * @return {?proto.prisca.v1.global.meta.Meta}
3806
+ */
3807
+ proto.ChangePasswordResponse.prototype.getMeta = function() {
3808
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3809
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
3810
+ };
3811
+
3812
+
3813
+ /**
3814
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3815
+ * @return {!proto.ChangePasswordResponse} returns this
3816
+ */
3817
+ proto.ChangePasswordResponse.prototype.setMeta = function(value) {
3818
+ return jspb.Message.setWrapperField(this, 1, value);
3819
+ };
3820
+
3821
+
3822
+ /**
3823
+ * Clears the message field making it undefined.
3824
+ * @return {!proto.ChangePasswordResponse} returns this
3825
+ */
3826
+ proto.ChangePasswordResponse.prototype.clearMeta = function() {
3827
+ return this.setMeta(undefined);
3828
+ };
3829
+
3830
+
3831
+ /**
3832
+ * Returns whether this field is set.
3833
+ * @return {boolean}
3834
+ */
3835
+ proto.ChangePasswordResponse.prototype.hasMeta = function() {
3836
+ return jspb.Message.getField(this, 1) != null;
3837
+ };
3838
+
3839
+
3840
+
3841
+
3842
+
3843
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3844
+ /**
3845
+ * Creates an object representation of this proto.
3846
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3847
+ * Optional fields that are not set will be set to undefined.
3848
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3849
+ * For the list of reserved names please see:
3850
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3851
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3852
+ * JSPB instance for transitional soy proto support:
3853
+ * http://goto/soy-param-migration
3854
+ * @return {!Object}
3855
+ */
3856
+ proto.GetListUserRequest.prototype.toObject = function(opt_includeInstance) {
3857
+ return proto.GetListUserRequest.toObject(opt_includeInstance, this);
3858
+ };
3859
+
3860
+
3861
+ /**
3862
+ * Static version of the {@see toObject} method.
3863
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3864
+ * the JSPB instance for transitional soy proto support:
3865
+ * http://goto/soy-param-migration
3866
+ * @param {!proto.GetListUserRequest} msg The msg instance to transform.
3867
+ * @return {!Object}
3868
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3869
+ */
3870
+ proto.GetListUserRequest.toObject = function(includeInstance, msg) {
3871
+ var f, obj = {
3872
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3873
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
3874
+ };
3875
+
3876
+ if (includeInstance) {
3877
+ obj.$jspbMessageInstance = msg;
3878
+ }
3879
+ return obj;
3880
+ };
3881
+ }
3882
+
3883
+
3884
+ /**
3885
+ * Deserializes binary data (in protobuf wire format).
3886
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3887
+ * @return {!proto.GetListUserRequest}
3888
+ */
3889
+ proto.GetListUserRequest.deserializeBinary = function(bytes) {
3890
+ var reader = new jspb.BinaryReader(bytes);
3891
+ var msg = new proto.GetListUserRequest;
3892
+ return proto.GetListUserRequest.deserializeBinaryFromReader(msg, reader);
3893
+ };
3894
+
3895
+
3896
+ /**
3897
+ * Deserializes binary data (in protobuf wire format) from the
3898
+ * given reader into the given message object.
3899
+ * @param {!proto.GetListUserRequest} msg The message object to deserialize into.
3900
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3901
+ * @return {!proto.GetListUserRequest}
3902
+ */
3903
+ proto.GetListUserRequest.deserializeBinaryFromReader = function(msg, reader) {
3904
+ while (reader.nextField()) {
3905
+ if (reader.isEndGroup()) {
3906
+ break;
3907
+ }
3908
+ var field = reader.getFieldNumber();
3909
+ switch (field) {
3910
+ case 1:
3911
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3912
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3913
+ msg.setPagination(value);
3914
+ break;
3915
+ case 2:
3916
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3917
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3918
+ msg.setQuery(value);
3919
+ break;
3920
+ default:
3921
+ reader.skipField();
3922
+ break;
3923
+ }
3924
+ }
3925
+ return msg;
3926
+ };
3927
+
3928
+
3929
+ /**
3930
+ * Serializes the message to binary data (in protobuf wire format).
3931
+ * @return {!Uint8Array}
3932
+ */
3933
+ proto.GetListUserRequest.prototype.serializeBinary = function() {
3934
+ var writer = new jspb.BinaryWriter();
3935
+ proto.GetListUserRequest.serializeBinaryToWriter(this, writer);
3936
+ return writer.getResultBuffer();
3937
+ };
3938
+
3939
+
3940
+ /**
3941
+ * Serializes the given message to binary data (in protobuf wire
3942
+ * format), writing to the given BinaryWriter.
3943
+ * @param {!proto.GetListUserRequest} message
3944
+ * @param {!jspb.BinaryWriter} writer
3945
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3946
+ */
3947
+ proto.GetListUserRequest.serializeBinaryToWriter = function(message, writer) {
3948
+ var f = undefined;
3949
+ f = message.getPagination();
3950
+ if (f != null) {
3951
+ writer.writeMessage(
3952
+ 1,
3953
+ f,
3954
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3955
+ );
3956
+ }
3957
+ f = message.getQuery();
3958
+ if (f != null) {
3959
+ writer.writeMessage(
3960
+ 2,
3961
+ f,
3962
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
3963
+ );
3964
+ }
3965
+ };
3966
+
3967
+
3968
+ /**
3969
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3970
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
3971
+ */
3972
+ proto.GetListUserRequest.prototype.getPagination = function() {
3973
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3974
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
3975
+ };
3976
+
3977
+
3978
+ /**
3979
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3980
+ * @return {!proto.GetListUserRequest} returns this
3981
+ */
3982
+ proto.GetListUserRequest.prototype.setPagination = function(value) {
3983
+ return jspb.Message.setWrapperField(this, 1, value);
3984
+ };
3985
+
3986
+
3987
+ /**
3988
+ * Clears the message field making it undefined.
3989
+ * @return {!proto.GetListUserRequest} returns this
3990
+ */
3991
+ proto.GetListUserRequest.prototype.clearPagination = function() {
3992
+ return this.setPagination(undefined);
3993
+ };
3994
+
3995
+
3996
+ /**
3997
+ * Returns whether this field is set.
3998
+ * @return {boolean}
3999
+ */
4000
+ proto.GetListUserRequest.prototype.hasPagination = function() {
4001
+ return jspb.Message.getField(this, 1) != null;
4002
+ };
4003
+
4004
+
4005
+ /**
4006
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
4007
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
4008
+ */
4009
+ proto.GetListUserRequest.prototype.getQuery = function() {
4010
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
4011
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
4012
+ };
4013
+
4014
+
4015
+ /**
4016
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
4017
+ * @return {!proto.GetListUserRequest} returns this
4018
+ */
4019
+ proto.GetListUserRequest.prototype.setQuery = function(value) {
4020
+ return jspb.Message.setWrapperField(this, 2, value);
4021
+ };
4022
+
4023
+
4024
+ /**
4025
+ * Clears the message field making it undefined.
4026
+ * @return {!proto.GetListUserRequest} returns this
4027
+ */
4028
+ proto.GetListUserRequest.prototype.clearQuery = function() {
4029
+ return this.setQuery(undefined);
4030
+ };
4031
+
4032
+
4033
+ /**
4034
+ * Returns whether this field is set.
4035
+ * @return {boolean}
4036
+ */
4037
+ proto.GetListUserRequest.prototype.hasQuery = function() {
4038
+ return jspb.Message.getField(this, 2) != null;
4039
+ };
4040
+
4041
+
4042
+
4043
+ /**
4044
+ * List of repeated fields within this message type.
4045
+ * @private {!Array<number>}
4046
+ * @const
4047
+ */
4048
+ proto.GetListUserResponse.repeatedFields_ = [1];
4049
+
4050
+
4051
+
4052
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4053
+ /**
4054
+ * Creates an object representation of this proto.
4055
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4056
+ * Optional fields that are not set will be set to undefined.
4057
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4058
+ * For the list of reserved names please see:
4059
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4060
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4061
+ * JSPB instance for transitional soy proto support:
4062
+ * http://goto/soy-param-migration
4063
+ * @return {!Object}
4064
+ */
4065
+ proto.GetListUserResponse.prototype.toObject = function(opt_includeInstance) {
4066
+ return proto.GetListUserResponse.toObject(opt_includeInstance, this);
4067
+ };
4068
+
4069
+
4070
+ /**
4071
+ * Static version of the {@see toObject} method.
4072
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4073
+ * the JSPB instance for transitional soy proto support:
4074
+ * http://goto/soy-param-migration
4075
+ * @param {!proto.GetListUserResponse} msg The msg instance to transform.
4076
+ * @return {!Object}
4077
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4078
+ */
4079
+ proto.GetListUserResponse.toObject = function(includeInstance, msg) {
4080
+ var f, obj = {
4081
+ usersList: jspb.Message.toObjectList(msg.getUsersList(),
4082
+ proto.UserResponse.toObject, includeInstance),
4083
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4084
+ };
4085
+
4086
+ if (includeInstance) {
4087
+ obj.$jspbMessageInstance = msg;
4088
+ }
4089
+ return obj;
4090
+ };
4091
+ }
4092
+
4093
+
4094
+ /**
4095
+ * Deserializes binary data (in protobuf wire format).
4096
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4097
+ * @return {!proto.GetListUserResponse}
4098
+ */
4099
+ proto.GetListUserResponse.deserializeBinary = function(bytes) {
4100
+ var reader = new jspb.BinaryReader(bytes);
4101
+ var msg = new proto.GetListUserResponse;
4102
+ return proto.GetListUserResponse.deserializeBinaryFromReader(msg, reader);
4103
+ };
4104
+
4105
+
4106
+ /**
4107
+ * Deserializes binary data (in protobuf wire format) from the
4108
+ * given reader into the given message object.
4109
+ * @param {!proto.GetListUserResponse} msg The message object to deserialize into.
4110
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4111
+ * @return {!proto.GetListUserResponse}
4112
+ */
4113
+ proto.GetListUserResponse.deserializeBinaryFromReader = function(msg, reader) {
4114
+ while (reader.nextField()) {
4115
+ if (reader.isEndGroup()) {
4116
+ break;
4117
+ }
4118
+ var field = reader.getFieldNumber();
4119
+ switch (field) {
4120
+ case 1:
4121
+ var value = new proto.UserResponse;
4122
+ reader.readMessage(value,proto.UserResponse.deserializeBinaryFromReader);
4123
+ msg.addUsers(value);
4124
+ break;
4125
+ case 2:
4126
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
4127
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4128
+ msg.setMeta(value);
4129
+ break;
4130
+ default:
4131
+ reader.skipField();
4132
+ break;
4133
+ }
4134
+ }
4135
+ return msg;
4136
+ };
4137
+
4138
+
4139
+ /**
4140
+ * Serializes the message to binary data (in protobuf wire format).
4141
+ * @return {!Uint8Array}
4142
+ */
4143
+ proto.GetListUserResponse.prototype.serializeBinary = function() {
4144
+ var writer = new jspb.BinaryWriter();
4145
+ proto.GetListUserResponse.serializeBinaryToWriter(this, writer);
4146
+ return writer.getResultBuffer();
4147
+ };
4148
+
4149
+
4150
+ /**
4151
+ * Serializes the given message to binary data (in protobuf wire
4152
+ * format), writing to the given BinaryWriter.
4153
+ * @param {!proto.GetListUserResponse} message
4154
+ * @param {!jspb.BinaryWriter} writer
4155
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4156
+ */
4157
+ proto.GetListUserResponse.serializeBinaryToWriter = function(message, writer) {
4158
+ var f = undefined;
4159
+ f = message.getUsersList();
4160
+ if (f.length > 0) {
4161
+ writer.writeRepeatedMessage(
4162
+ 1,
4163
+ f,
4164
+ proto.UserResponse.serializeBinaryToWriter
4165
+ );
4166
+ }
4167
+ f = message.getMeta();
4168
+ if (f != null) {
4169
+ writer.writeMessage(
4170
+ 2,
4171
+ f,
4172
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4173
+ );
4174
+ }
4175
+ };
4176
+
4177
+
4178
+ /**
4179
+ * repeated UserResponse users = 1;
4180
+ * @return {!Array<!proto.UserResponse>}
4181
+ */
4182
+ proto.GetListUserResponse.prototype.getUsersList = function() {
4183
+ return /** @type{!Array<!proto.UserResponse>} */ (
4184
+ jspb.Message.getRepeatedWrapperField(this, proto.UserResponse, 1));
4185
+ };
4186
+
4187
+
4188
+ /**
4189
+ * @param {!Array<!proto.UserResponse>} value
4190
+ * @return {!proto.GetListUserResponse} returns this
4191
+ */
4192
+ proto.GetListUserResponse.prototype.setUsersList = function(value) {
4193
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4194
+ };
4195
+
4196
+
4197
+ /**
4198
+ * @param {!proto.UserResponse=} opt_value
4199
+ * @param {number=} opt_index
4200
+ * @return {!proto.UserResponse}
4201
+ */
4202
+ proto.GetListUserResponse.prototype.addUsers = function(opt_value, opt_index) {
4203
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.UserResponse, opt_index);
4204
+ };
4205
+
4206
+
4207
+ /**
4208
+ * Clears the list making it empty but non-null.
4209
+ * @return {!proto.GetListUserResponse} returns this
4210
+ */
4211
+ proto.GetListUserResponse.prototype.clearUsersList = function() {
4212
+ return this.setUsersList([]);
4213
+ };
4214
+
4215
+
4216
+ /**
4217
+ * optional prisca.v1.global.meta.Meta meta = 2;
4218
+ * @return {?proto.prisca.v1.global.meta.Meta}
4219
+ */
4220
+ proto.GetListUserResponse.prototype.getMeta = function() {
4221
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4222
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4223
+ };
4224
+
4225
+
4226
+ /**
4227
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4228
+ * @return {!proto.GetListUserResponse} returns this
4229
+ */
4230
+ proto.GetListUserResponse.prototype.setMeta = function(value) {
4231
+ return jspb.Message.setWrapperField(this, 2, value);
4232
+ };
4233
+
4234
+
4235
+ /**
4236
+ * Clears the message field making it undefined.
4237
+ * @return {!proto.GetListUserResponse} returns this
4238
+ */
4239
+ proto.GetListUserResponse.prototype.clearMeta = function() {
4240
+ return this.setMeta(undefined);
4241
+ };
4242
+
4243
+
4244
+ /**
4245
+ * Returns whether this field is set.
4246
+ * @return {boolean}
4247
+ */
4248
+ proto.GetListUserResponse.prototype.hasMeta = function() {
4249
+ return jspb.Message.getField(this, 2) != null;
4250
+ };
4251
+
4252
+
4253
+ goog.object.extend(exports, proto);