@aldiokta/protocgen 1.0.32 → 1.0.34

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 (73) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/auth/auth_grpc_pb.js +311 -0
  3. package/prisca/v1/core/auth/auth_pb.js +3236 -0
  4. package/prisca/v1/core/company/company_grpc_pb.js +177 -0
  5. package/prisca/v1/core/company/company_pb.js +2875 -0
  6. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  7. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  8. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  9. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  10. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  11. package/prisca/v1/core/job_position/job_position_pb.js +3732 -0
  12. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  13. package/prisca/v1/core/job_title/job_title_pb.js +2928 -0
  14. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  15. package/prisca/v1/core/location/location_pb.js +10879 -0
  16. package/prisca/v1/core/material/material_grpc_pb.js +181 -0
  17. package/prisca/v1/core/material/material_pb.js +4076 -0
  18. package/prisca/v1/core/material_group/material_group_grpc_pb.js +177 -0
  19. package/prisca/v1/core/material_group/material_group_pb.js +2582 -0
  20. package/prisca/v1/core/material_type/material_type_grpc_pb.js +147 -0
  21. package/prisca/v1/core/material_type/material_type_pb.js +2399 -0
  22. package/prisca/v1/core/number_range/number_range_grpc_pb.js +177 -0
  23. package/prisca/v1/core/number_range/number_range_pb.js +2672 -0
  24. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  25. package/prisca/v1/core/organization/organization_pb.js +3002 -0
  26. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +177 -0
  27. package/prisca/v1/core/organization_level/organization_level_pb.js +2432 -0
  28. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  29. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  30. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
  31. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
  32. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  34. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  35. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  36. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +421 -0
  37. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +9138 -0
  38. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  40. package/prisca/v1/core/users/users_grpc_pb.js +1 -0
  41. package/prisca/v1/core/users/users_pb.js +626 -0
  42. package/prisca/v1/core/users_role/users_role_grpc_pb.js +177 -0
  43. package/prisca/v1/core/users_role/users_role_pb.js +2372 -0
  44. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  45. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  46. package/prisca/v1/core/workflow/workflow_grpc_pb.js +179 -0
  47. package/prisca/v1/core/workflow/workflow_pb.js +6426 -0
  48. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  49. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  50. package/prisca/v1/core/auth/auth.proto +0 -114
  51. package/prisca/v1/core/company/company.proto +0 -86
  52. package/prisca/v1/core/department_material/department_material.proto +0 -69
  53. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  54. package/prisca/v1/core/job_position/job_position.proto +0 -112
  55. package/prisca/v1/core/job_title/job_title.proto +0 -88
  56. package/prisca/v1/core/location/location.proto +0 -289
  57. package/prisca/v1/core/material/material.proto +0 -128
  58. package/prisca/v1/core/material_group/material_group.proto +0 -79
  59. package/prisca/v1/core/material_type/material_type.proto +0 -77
  60. package/prisca/v1/core/number_range/number_range.proto +0 -81
  61. package/prisca/v1/core/organization/organization.proto +0 -93
  62. package/prisca/v1/core/organization_level/organization_level.proto +0 -73
  63. package/prisca/v1/core/procurement/procurement.proto +0 -54
  64. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  65. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  66. package/prisca/v1/core/tax_code/tax_code.proto +0 -79
  67. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -265
  68. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  69. package/prisca/v1/core/users/users.proto +0 -22
  70. package/prisca/v1/core/users_role/users_role.proto +0 -72
  71. package/prisca/v1/core/work_location/work_location.proto +0 -122
  72. package/prisca/v1/core/workflow/workflow.proto +0 -193
  73. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -0,0 +1,3236 @@
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
+ goog.exportSymbol('proto.AccessApiCredential', null, global);
25
+ goog.exportSymbol('proto.AccessApiManagersResponse', null, global);
26
+ goog.exportSymbol('proto.AccessCreateRequest', null, global);
27
+ goog.exportSymbol('proto.AccessResponse', null, global);
28
+ goog.exportSymbol('proto.AuthVerifyToken', null, global);
29
+ goog.exportSymbol('proto.CreateUserPayload', null, global);
30
+ goog.exportSymbol('proto.ForgotPassworReq', null, global);
31
+ goog.exportSymbol('proto.GetAccessByIdPayload', null, global);
32
+ goog.exportSymbol('proto.GetListAccessRequest', null, global);
33
+ goog.exportSymbol('proto.ListAccessResponse', null, global);
34
+ goog.exportSymbol('proto.LoginRequest', null, global);
35
+ goog.exportSymbol('proto.RequestForgotPasswordReq', null, global);
36
+ goog.exportSymbol('proto.RequestForgotResponse', null, global);
37
+ goog.exportSymbol('proto.UpdateAccessPayload', null, global);
38
+ goog.exportSymbol('proto.UpdateUserPayload', null, global);
39
+ goog.exportSymbol('proto.UserResponse', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.ForgotPassworReq = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ };
53
+ goog.inherits(proto.ForgotPassworReq, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.ForgotPassworReq.displayName = 'proto.ForgotPassworReq';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.RequestForgotPasswordReq = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.RequestForgotPasswordReq, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.RequestForgotPasswordReq.displayName = 'proto.RequestForgotPasswordReq';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.RequestForgotResponse = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.RequestForgotResponse, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.RequestForgotResponse.displayName = 'proto.RequestForgotResponse';
102
+ }
103
+ /**
104
+ * Generated by JsPbCodeGenerator.
105
+ * @param {Array=} opt_data Optional initial data array, typically from a
106
+ * server response, or constructed directly in Javascript. The array is used
107
+ * in place and becomes part of the constructed object. It is not cloned.
108
+ * If no data is provided, the constructed object will be empty, but still
109
+ * valid.
110
+ * @extends {jspb.Message}
111
+ * @constructor
112
+ */
113
+ proto.LoginRequest = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ };
116
+ goog.inherits(proto.LoginRequest, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.LoginRequest.displayName = 'proto.LoginRequest';
123
+ }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.GetListAccessRequest = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
+ };
137
+ goog.inherits(proto.GetListAccessRequest, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.GetListAccessRequest.displayName = 'proto.GetListAccessRequest';
144
+ }
145
+ /**
146
+ * Generated by JsPbCodeGenerator.
147
+ * @param {Array=} opt_data Optional initial data array, typically from a
148
+ * server response, or constructed directly in Javascript. The array is used
149
+ * in place and becomes part of the constructed object. It is not cloned.
150
+ * If no data is provided, the constructed object will be empty, but still
151
+ * valid.
152
+ * @extends {jspb.Message}
153
+ * @constructor
154
+ */
155
+ proto.AccessApiCredential = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
+ };
158
+ goog.inherits(proto.AccessApiCredential, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.AccessApiCredential.displayName = 'proto.AccessApiCredential';
165
+ }
166
+ /**
167
+ * Generated by JsPbCodeGenerator.
168
+ * @param {Array=} opt_data Optional initial data array, typically from a
169
+ * server response, or constructed directly in Javascript. The array is used
170
+ * in place and becomes part of the constructed object. It is not cloned.
171
+ * If no data is provided, the constructed object will be empty, but still
172
+ * valid.
173
+ * @extends {jspb.Message}
174
+ * @constructor
175
+ */
176
+ proto.AccessCreateRequest = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
+ };
179
+ goog.inherits(proto.AccessCreateRequest, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.AccessCreateRequest.displayName = 'proto.AccessCreateRequest';
186
+ }
187
+ /**
188
+ * Generated by JsPbCodeGenerator.
189
+ * @param {Array=} opt_data Optional initial data array, typically from a
190
+ * server response, or constructed directly in Javascript. The array is used
191
+ * in place and becomes part of the constructed object. It is not cloned.
192
+ * If no data is provided, the constructed object will be empty, but still
193
+ * valid.
194
+ * @extends {jspb.Message}
195
+ * @constructor
196
+ */
197
+ proto.AuthVerifyToken = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
+ };
200
+ goog.inherits(proto.AuthVerifyToken, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.AuthVerifyToken.displayName = 'proto.AuthVerifyToken';
207
+ }
208
+ /**
209
+ * Generated by JsPbCodeGenerator.
210
+ * @param {Array=} opt_data Optional initial data array, typically from a
211
+ * server response, or constructed directly in Javascript. The array is used
212
+ * in place and becomes part of the constructed object. It is not cloned.
213
+ * If no data is provided, the constructed object will be empty, but still
214
+ * valid.
215
+ * @extends {jspb.Message}
216
+ * @constructor
217
+ */
218
+ proto.UpdateAccessPayload = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
+ };
221
+ goog.inherits(proto.UpdateAccessPayload, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.UpdateAccessPayload.displayName = 'proto.UpdateAccessPayload';
228
+ }
229
+ /**
230
+ * Generated by JsPbCodeGenerator.
231
+ * @param {Array=} opt_data Optional initial data array, typically from a
232
+ * server response, or constructed directly in Javascript. The array is used
233
+ * in place and becomes part of the constructed object. It is not cloned.
234
+ * If no data is provided, the constructed object will be empty, but still
235
+ * valid.
236
+ * @extends {jspb.Message}
237
+ * @constructor
238
+ */
239
+ proto.GetAccessByIdPayload = function(opt_data) {
240
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
241
+ };
242
+ goog.inherits(proto.GetAccessByIdPayload, jspb.Message);
243
+ if (goog.DEBUG && !COMPILED) {
244
+ /**
245
+ * @public
246
+ * @override
247
+ */
248
+ proto.GetAccessByIdPayload.displayName = 'proto.GetAccessByIdPayload';
249
+ }
250
+ /**
251
+ * Generated by JsPbCodeGenerator.
252
+ * @param {Array=} opt_data Optional initial data array, typically from a
253
+ * server response, or constructed directly in Javascript. The array is used
254
+ * in place and becomes part of the constructed object. It is not cloned.
255
+ * If no data is provided, the constructed object will be empty, but still
256
+ * valid.
257
+ * @extends {jspb.Message}
258
+ * @constructor
259
+ */
260
+ proto.CreateUserPayload = function(opt_data) {
261
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
262
+ };
263
+ goog.inherits(proto.CreateUserPayload, jspb.Message);
264
+ if (goog.DEBUG && !COMPILED) {
265
+ /**
266
+ * @public
267
+ * @override
268
+ */
269
+ proto.CreateUserPayload.displayName = 'proto.CreateUserPayload';
270
+ }
271
+ /**
272
+ * Generated by JsPbCodeGenerator.
273
+ * @param {Array=} opt_data Optional initial data array, typically from a
274
+ * server response, or constructed directly in Javascript. The array is used
275
+ * in place and becomes part of the constructed object. It is not cloned.
276
+ * If no data is provided, the constructed object will be empty, but still
277
+ * valid.
278
+ * @extends {jspb.Message}
279
+ * @constructor
280
+ */
281
+ proto.UpdateUserPayload = function(opt_data) {
282
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
283
+ };
284
+ goog.inherits(proto.UpdateUserPayload, jspb.Message);
285
+ if (goog.DEBUG && !COMPILED) {
286
+ /**
287
+ * @public
288
+ * @override
289
+ */
290
+ proto.UpdateUserPayload.displayName = 'proto.UpdateUserPayload';
291
+ }
292
+ /**
293
+ * Generated by JsPbCodeGenerator.
294
+ * @param {Array=} opt_data Optional initial data array, typically from a
295
+ * server response, or constructed directly in Javascript. The array is used
296
+ * in place and becomes part of the constructed object. It is not cloned.
297
+ * If no data is provided, the constructed object will be empty, but still
298
+ * valid.
299
+ * @extends {jspb.Message}
300
+ * @constructor
301
+ */
302
+ proto.UserResponse = function(opt_data) {
303
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
304
+ };
305
+ goog.inherits(proto.UserResponse, jspb.Message);
306
+ if (goog.DEBUG && !COMPILED) {
307
+ /**
308
+ * @public
309
+ * @override
310
+ */
311
+ proto.UserResponse.displayName = 'proto.UserResponse';
312
+ }
313
+ /**
314
+ * Generated by JsPbCodeGenerator.
315
+ * @param {Array=} opt_data Optional initial data array, typically from a
316
+ * server response, or constructed directly in Javascript. The array is used
317
+ * in place and becomes part of the constructed object. It is not cloned.
318
+ * If no data is provided, the constructed object will be empty, but still
319
+ * valid.
320
+ * @extends {jspb.Message}
321
+ * @constructor
322
+ */
323
+ proto.AccessResponse = function(opt_data) {
324
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
325
+ };
326
+ goog.inherits(proto.AccessResponse, jspb.Message);
327
+ if (goog.DEBUG && !COMPILED) {
328
+ /**
329
+ * @public
330
+ * @override
331
+ */
332
+ proto.AccessResponse.displayName = 'proto.AccessResponse';
333
+ }
334
+ /**
335
+ * Generated by JsPbCodeGenerator.
336
+ * @param {Array=} opt_data Optional initial data array, typically from a
337
+ * server response, or constructed directly in Javascript. The array is used
338
+ * in place and becomes part of the constructed object. It is not cloned.
339
+ * If no data is provided, the constructed object will be empty, but still
340
+ * valid.
341
+ * @extends {jspb.Message}
342
+ * @constructor
343
+ */
344
+ proto.AccessApiManagersResponse = function(opt_data) {
345
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
346
+ };
347
+ goog.inherits(proto.AccessApiManagersResponse, jspb.Message);
348
+ if (goog.DEBUG && !COMPILED) {
349
+ /**
350
+ * @public
351
+ * @override
352
+ */
353
+ proto.AccessApiManagersResponse.displayName = 'proto.AccessApiManagersResponse';
354
+ }
355
+ /**
356
+ * Generated by JsPbCodeGenerator.
357
+ * @param {Array=} opt_data Optional initial data array, typically from a
358
+ * server response, or constructed directly in Javascript. The array is used
359
+ * in place and becomes part of the constructed object. It is not cloned.
360
+ * If no data is provided, the constructed object will be empty, but still
361
+ * valid.
362
+ * @extends {jspb.Message}
363
+ * @constructor
364
+ */
365
+ proto.ListAccessResponse = function(opt_data) {
366
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ListAccessResponse.repeatedFields_, null);
367
+ };
368
+ goog.inherits(proto.ListAccessResponse, jspb.Message);
369
+ if (goog.DEBUG && !COMPILED) {
370
+ /**
371
+ * @public
372
+ * @override
373
+ */
374
+ proto.ListAccessResponse.displayName = 'proto.ListAccessResponse';
375
+ }
376
+
377
+
378
+
379
+ if (jspb.Message.GENERATE_TO_OBJECT) {
380
+ /**
381
+ * Creates an object representation of this proto.
382
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
383
+ * Optional fields that are not set will be set to undefined.
384
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
385
+ * For the list of reserved names please see:
386
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
387
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
388
+ * JSPB instance for transitional soy proto support:
389
+ * http://goto/soy-param-migration
390
+ * @return {!Object}
391
+ */
392
+ proto.ForgotPassworReq.prototype.toObject = function(opt_includeInstance) {
393
+ return proto.ForgotPassworReq.toObject(opt_includeInstance, this);
394
+ };
395
+
396
+
397
+ /**
398
+ * Static version of the {@see toObject} method.
399
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
400
+ * the JSPB instance for transitional soy proto support:
401
+ * http://goto/soy-param-migration
402
+ * @param {!proto.ForgotPassworReq} msg The msg instance to transform.
403
+ * @return {!Object}
404
+ * @suppress {unusedLocalVariables} f is only used for nested messages
405
+ */
406
+ proto.ForgotPassworReq.toObject = function(includeInstance, msg) {
407
+ var f, obj = {
408
+ password: jspb.Message.getFieldWithDefault(msg, 1, "")
409
+ };
410
+
411
+ if (includeInstance) {
412
+ obj.$jspbMessageInstance = msg;
413
+ }
414
+ return obj;
415
+ };
416
+ }
417
+
418
+
419
+ /**
420
+ * Deserializes binary data (in protobuf wire format).
421
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
422
+ * @return {!proto.ForgotPassworReq}
423
+ */
424
+ proto.ForgotPassworReq.deserializeBinary = function(bytes) {
425
+ var reader = new jspb.BinaryReader(bytes);
426
+ var msg = new proto.ForgotPassworReq;
427
+ return proto.ForgotPassworReq.deserializeBinaryFromReader(msg, reader);
428
+ };
429
+
430
+
431
+ /**
432
+ * Deserializes binary data (in protobuf wire format) from the
433
+ * given reader into the given message object.
434
+ * @param {!proto.ForgotPassworReq} msg The message object to deserialize into.
435
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
436
+ * @return {!proto.ForgotPassworReq}
437
+ */
438
+ proto.ForgotPassworReq.deserializeBinaryFromReader = function(msg, reader) {
439
+ while (reader.nextField()) {
440
+ if (reader.isEndGroup()) {
441
+ break;
442
+ }
443
+ var field = reader.getFieldNumber();
444
+ switch (field) {
445
+ case 1:
446
+ var value = /** @type {string} */ (reader.readString());
447
+ msg.setPassword(value);
448
+ break;
449
+ default:
450
+ reader.skipField();
451
+ break;
452
+ }
453
+ }
454
+ return msg;
455
+ };
456
+
457
+
458
+ /**
459
+ * Serializes the message to binary data (in protobuf wire format).
460
+ * @return {!Uint8Array}
461
+ */
462
+ proto.ForgotPassworReq.prototype.serializeBinary = function() {
463
+ var writer = new jspb.BinaryWriter();
464
+ proto.ForgotPassworReq.serializeBinaryToWriter(this, writer);
465
+ return writer.getResultBuffer();
466
+ };
467
+
468
+
469
+ /**
470
+ * Serializes the given message to binary data (in protobuf wire
471
+ * format), writing to the given BinaryWriter.
472
+ * @param {!proto.ForgotPassworReq} message
473
+ * @param {!jspb.BinaryWriter} writer
474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
475
+ */
476
+ proto.ForgotPassworReq.serializeBinaryToWriter = function(message, writer) {
477
+ var f = undefined;
478
+ f = message.getPassword();
479
+ if (f.length > 0) {
480
+ writer.writeString(
481
+ 1,
482
+ f
483
+ );
484
+ }
485
+ };
486
+
487
+
488
+ /**
489
+ * optional string password = 1;
490
+ * @return {string}
491
+ */
492
+ proto.ForgotPassworReq.prototype.getPassword = function() {
493
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
494
+ };
495
+
496
+
497
+ /**
498
+ * @param {string} value
499
+ * @return {!proto.ForgotPassworReq} returns this
500
+ */
501
+ proto.ForgotPassworReq.prototype.setPassword = function(value) {
502
+ return jspb.Message.setProto3StringField(this, 1, value);
503
+ };
504
+
505
+
506
+
507
+
508
+
509
+ if (jspb.Message.GENERATE_TO_OBJECT) {
510
+ /**
511
+ * Creates an object representation of this proto.
512
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
513
+ * Optional fields that are not set will be set to undefined.
514
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
515
+ * For the list of reserved names please see:
516
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
517
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
518
+ * JSPB instance for transitional soy proto support:
519
+ * http://goto/soy-param-migration
520
+ * @return {!Object}
521
+ */
522
+ proto.RequestForgotPasswordReq.prototype.toObject = function(opt_includeInstance) {
523
+ return proto.RequestForgotPasswordReq.toObject(opt_includeInstance, this);
524
+ };
525
+
526
+
527
+ /**
528
+ * Static version of the {@see toObject} method.
529
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
530
+ * the JSPB instance for transitional soy proto support:
531
+ * http://goto/soy-param-migration
532
+ * @param {!proto.RequestForgotPasswordReq} msg The msg instance to transform.
533
+ * @return {!Object}
534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
535
+ */
536
+ proto.RequestForgotPasswordReq.toObject = function(includeInstance, msg) {
537
+ var f, obj = {
538
+ email: jspb.Message.getFieldWithDefault(msg, 1, "")
539
+ };
540
+
541
+ if (includeInstance) {
542
+ obj.$jspbMessageInstance = msg;
543
+ }
544
+ return obj;
545
+ };
546
+ }
547
+
548
+
549
+ /**
550
+ * Deserializes binary data (in protobuf wire format).
551
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
552
+ * @return {!proto.RequestForgotPasswordReq}
553
+ */
554
+ proto.RequestForgotPasswordReq.deserializeBinary = function(bytes) {
555
+ var reader = new jspb.BinaryReader(bytes);
556
+ var msg = new proto.RequestForgotPasswordReq;
557
+ return proto.RequestForgotPasswordReq.deserializeBinaryFromReader(msg, reader);
558
+ };
559
+
560
+
561
+ /**
562
+ * Deserializes binary data (in protobuf wire format) from the
563
+ * given reader into the given message object.
564
+ * @param {!proto.RequestForgotPasswordReq} msg The message object to deserialize into.
565
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
566
+ * @return {!proto.RequestForgotPasswordReq}
567
+ */
568
+ proto.RequestForgotPasswordReq.deserializeBinaryFromReader = function(msg, reader) {
569
+ while (reader.nextField()) {
570
+ if (reader.isEndGroup()) {
571
+ break;
572
+ }
573
+ var field = reader.getFieldNumber();
574
+ switch (field) {
575
+ case 1:
576
+ var value = /** @type {string} */ (reader.readString());
577
+ msg.setEmail(value);
578
+ break;
579
+ default:
580
+ reader.skipField();
581
+ break;
582
+ }
583
+ }
584
+ return msg;
585
+ };
586
+
587
+
588
+ /**
589
+ * Serializes the message to binary data (in protobuf wire format).
590
+ * @return {!Uint8Array}
591
+ */
592
+ proto.RequestForgotPasswordReq.prototype.serializeBinary = function() {
593
+ var writer = new jspb.BinaryWriter();
594
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter(this, writer);
595
+ return writer.getResultBuffer();
596
+ };
597
+
598
+
599
+ /**
600
+ * Serializes the given message to binary data (in protobuf wire
601
+ * format), writing to the given BinaryWriter.
602
+ * @param {!proto.RequestForgotPasswordReq} message
603
+ * @param {!jspb.BinaryWriter} writer
604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
605
+ */
606
+ proto.RequestForgotPasswordReq.serializeBinaryToWriter = function(message, writer) {
607
+ var f = undefined;
608
+ f = message.getEmail();
609
+ if (f.length > 0) {
610
+ writer.writeString(
611
+ 1,
612
+ f
613
+ );
614
+ }
615
+ };
616
+
617
+
618
+ /**
619
+ * optional string email = 1;
620
+ * @return {string}
621
+ */
622
+ proto.RequestForgotPasswordReq.prototype.getEmail = function() {
623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
624
+ };
625
+
626
+
627
+ /**
628
+ * @param {string} value
629
+ * @return {!proto.RequestForgotPasswordReq} returns this
630
+ */
631
+ proto.RequestForgotPasswordReq.prototype.setEmail = function(value) {
632
+ return jspb.Message.setProto3StringField(this, 1, value);
633
+ };
634
+
635
+
636
+
637
+
638
+
639
+ if (jspb.Message.GENERATE_TO_OBJECT) {
640
+ /**
641
+ * Creates an object representation of this proto.
642
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
643
+ * Optional fields that are not set will be set to undefined.
644
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
645
+ * For the list of reserved names please see:
646
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
647
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
648
+ * JSPB instance for transitional soy proto support:
649
+ * http://goto/soy-param-migration
650
+ * @return {!Object}
651
+ */
652
+ proto.RequestForgotResponse.prototype.toObject = function(opt_includeInstance) {
653
+ return proto.RequestForgotResponse.toObject(opt_includeInstance, this);
654
+ };
655
+
656
+
657
+ /**
658
+ * Static version of the {@see toObject} method.
659
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
660
+ * the JSPB instance for transitional soy proto support:
661
+ * http://goto/soy-param-migration
662
+ * @param {!proto.RequestForgotResponse} msg The msg instance to transform.
663
+ * @return {!Object}
664
+ * @suppress {unusedLocalVariables} f is only used for nested messages
665
+ */
666
+ proto.RequestForgotResponse.toObject = function(includeInstance, msg) {
667
+ var f, obj = {
668
+ url: jspb.Message.getFieldWithDefault(msg, 1, "")
669
+ };
670
+
671
+ if (includeInstance) {
672
+ obj.$jspbMessageInstance = msg;
673
+ }
674
+ return obj;
675
+ };
676
+ }
677
+
678
+
679
+ /**
680
+ * Deserializes binary data (in protobuf wire format).
681
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
682
+ * @return {!proto.RequestForgotResponse}
683
+ */
684
+ proto.RequestForgotResponse.deserializeBinary = function(bytes) {
685
+ var reader = new jspb.BinaryReader(bytes);
686
+ var msg = new proto.RequestForgotResponse;
687
+ return proto.RequestForgotResponse.deserializeBinaryFromReader(msg, reader);
688
+ };
689
+
690
+
691
+ /**
692
+ * Deserializes binary data (in protobuf wire format) from the
693
+ * given reader into the given message object.
694
+ * @param {!proto.RequestForgotResponse} msg The message object to deserialize into.
695
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
696
+ * @return {!proto.RequestForgotResponse}
697
+ */
698
+ proto.RequestForgotResponse.deserializeBinaryFromReader = function(msg, reader) {
699
+ while (reader.nextField()) {
700
+ if (reader.isEndGroup()) {
701
+ break;
702
+ }
703
+ var field = reader.getFieldNumber();
704
+ switch (field) {
705
+ case 1:
706
+ var value = /** @type {string} */ (reader.readString());
707
+ msg.setUrl(value);
708
+ break;
709
+ default:
710
+ reader.skipField();
711
+ break;
712
+ }
713
+ }
714
+ return msg;
715
+ };
716
+
717
+
718
+ /**
719
+ * Serializes the message to binary data (in protobuf wire format).
720
+ * @return {!Uint8Array}
721
+ */
722
+ proto.RequestForgotResponse.prototype.serializeBinary = function() {
723
+ var writer = new jspb.BinaryWriter();
724
+ proto.RequestForgotResponse.serializeBinaryToWriter(this, writer);
725
+ return writer.getResultBuffer();
726
+ };
727
+
728
+
729
+ /**
730
+ * Serializes the given message to binary data (in protobuf wire
731
+ * format), writing to the given BinaryWriter.
732
+ * @param {!proto.RequestForgotResponse} message
733
+ * @param {!jspb.BinaryWriter} writer
734
+ * @suppress {unusedLocalVariables} f is only used for nested messages
735
+ */
736
+ proto.RequestForgotResponse.serializeBinaryToWriter = function(message, writer) {
737
+ var f = undefined;
738
+ f = message.getUrl();
739
+ if (f.length > 0) {
740
+ writer.writeString(
741
+ 1,
742
+ f
743
+ );
744
+ }
745
+ };
746
+
747
+
748
+ /**
749
+ * optional string url = 1;
750
+ * @return {string}
751
+ */
752
+ proto.RequestForgotResponse.prototype.getUrl = function() {
753
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
754
+ };
755
+
756
+
757
+ /**
758
+ * @param {string} value
759
+ * @return {!proto.RequestForgotResponse} returns this
760
+ */
761
+ proto.RequestForgotResponse.prototype.setUrl = function(value) {
762
+ return jspb.Message.setProto3StringField(this, 1, value);
763
+ };
764
+
765
+
766
+
767
+
768
+
769
+ if (jspb.Message.GENERATE_TO_OBJECT) {
770
+ /**
771
+ * Creates an object representation of this proto.
772
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
773
+ * Optional fields that are not set will be set to undefined.
774
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
775
+ * For the list of reserved names please see:
776
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
777
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
778
+ * JSPB instance for transitional soy proto support:
779
+ * http://goto/soy-param-migration
780
+ * @return {!Object}
781
+ */
782
+ proto.LoginRequest.prototype.toObject = function(opt_includeInstance) {
783
+ return proto.LoginRequest.toObject(opt_includeInstance, this);
784
+ };
785
+
786
+
787
+ /**
788
+ * Static version of the {@see toObject} method.
789
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
790
+ * the JSPB instance for transitional soy proto support:
791
+ * http://goto/soy-param-migration
792
+ * @param {!proto.LoginRequest} msg The msg instance to transform.
793
+ * @return {!Object}
794
+ * @suppress {unusedLocalVariables} f is only used for nested messages
795
+ */
796
+ proto.LoginRequest.toObject = function(includeInstance, msg) {
797
+ var f, obj = {
798
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
799
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
800
+ };
801
+
802
+ if (includeInstance) {
803
+ obj.$jspbMessageInstance = msg;
804
+ }
805
+ return obj;
806
+ };
807
+ }
808
+
809
+
810
+ /**
811
+ * Deserializes binary data (in protobuf wire format).
812
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
813
+ * @return {!proto.LoginRequest}
814
+ */
815
+ proto.LoginRequest.deserializeBinary = function(bytes) {
816
+ var reader = new jspb.BinaryReader(bytes);
817
+ var msg = new proto.LoginRequest;
818
+ return proto.LoginRequest.deserializeBinaryFromReader(msg, reader);
819
+ };
820
+
821
+
822
+ /**
823
+ * Deserializes binary data (in protobuf wire format) from the
824
+ * given reader into the given message object.
825
+ * @param {!proto.LoginRequest} msg The message object to deserialize into.
826
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
827
+ * @return {!proto.LoginRequest}
828
+ */
829
+ proto.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
830
+ while (reader.nextField()) {
831
+ if (reader.isEndGroup()) {
832
+ break;
833
+ }
834
+ var field = reader.getFieldNumber();
835
+ switch (field) {
836
+ case 1:
837
+ var value = /** @type {string} */ (reader.readString());
838
+ msg.setEmail(value);
839
+ break;
840
+ case 2:
841
+ var value = /** @type {string} */ (reader.readString());
842
+ msg.setPassword(value);
843
+ break;
844
+ default:
845
+ reader.skipField();
846
+ break;
847
+ }
848
+ }
849
+ return msg;
850
+ };
851
+
852
+
853
+ /**
854
+ * Serializes the message to binary data (in protobuf wire format).
855
+ * @return {!Uint8Array}
856
+ */
857
+ proto.LoginRequest.prototype.serializeBinary = function() {
858
+ var writer = new jspb.BinaryWriter();
859
+ proto.LoginRequest.serializeBinaryToWriter(this, writer);
860
+ return writer.getResultBuffer();
861
+ };
862
+
863
+
864
+ /**
865
+ * Serializes the given message to binary data (in protobuf wire
866
+ * format), writing to the given BinaryWriter.
867
+ * @param {!proto.LoginRequest} message
868
+ * @param {!jspb.BinaryWriter} writer
869
+ * @suppress {unusedLocalVariables} f is only used for nested messages
870
+ */
871
+ proto.LoginRequest.serializeBinaryToWriter = function(message, writer) {
872
+ var f = undefined;
873
+ f = message.getEmail();
874
+ if (f.length > 0) {
875
+ writer.writeString(
876
+ 1,
877
+ f
878
+ );
879
+ }
880
+ f = message.getPassword();
881
+ if (f.length > 0) {
882
+ writer.writeString(
883
+ 2,
884
+ f
885
+ );
886
+ }
887
+ };
888
+
889
+
890
+ /**
891
+ * optional string email = 1;
892
+ * @return {string}
893
+ */
894
+ proto.LoginRequest.prototype.getEmail = function() {
895
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
896
+ };
897
+
898
+
899
+ /**
900
+ * @param {string} value
901
+ * @return {!proto.LoginRequest} returns this
902
+ */
903
+ proto.LoginRequest.prototype.setEmail = function(value) {
904
+ return jspb.Message.setProto3StringField(this, 1, value);
905
+ };
906
+
907
+
908
+ /**
909
+ * optional string password = 2;
910
+ * @return {string}
911
+ */
912
+ proto.LoginRequest.prototype.getPassword = function() {
913
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
914
+ };
915
+
916
+
917
+ /**
918
+ * @param {string} value
919
+ * @return {!proto.LoginRequest} returns this
920
+ */
921
+ proto.LoginRequest.prototype.setPassword = function(value) {
922
+ return jspb.Message.setProto3StringField(this, 2, value);
923
+ };
924
+
925
+
926
+
927
+
928
+
929
+ if (jspb.Message.GENERATE_TO_OBJECT) {
930
+ /**
931
+ * Creates an object representation of this proto.
932
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
933
+ * Optional fields that are not set will be set to undefined.
934
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
935
+ * For the list of reserved names please see:
936
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
937
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
938
+ * JSPB instance for transitional soy proto support:
939
+ * http://goto/soy-param-migration
940
+ * @return {!Object}
941
+ */
942
+ proto.GetListAccessRequest.prototype.toObject = function(opt_includeInstance) {
943
+ return proto.GetListAccessRequest.toObject(opt_includeInstance, this);
944
+ };
945
+
946
+
947
+ /**
948
+ * Static version of the {@see toObject} method.
949
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
950
+ * the JSPB instance for transitional soy proto support:
951
+ * http://goto/soy-param-migration
952
+ * @param {!proto.GetListAccessRequest} msg The msg instance to transform.
953
+ * @return {!Object}
954
+ * @suppress {unusedLocalVariables} f is only used for nested messages
955
+ */
956
+ proto.GetListAccessRequest.toObject = function(includeInstance, msg) {
957
+ var f, obj = {
958
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
959
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
960
+ };
961
+
962
+ if (includeInstance) {
963
+ obj.$jspbMessageInstance = msg;
964
+ }
965
+ return obj;
966
+ };
967
+ }
968
+
969
+
970
+ /**
971
+ * Deserializes binary data (in protobuf wire format).
972
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
973
+ * @return {!proto.GetListAccessRequest}
974
+ */
975
+ proto.GetListAccessRequest.deserializeBinary = function(bytes) {
976
+ var reader = new jspb.BinaryReader(bytes);
977
+ var msg = new proto.GetListAccessRequest;
978
+ return proto.GetListAccessRequest.deserializeBinaryFromReader(msg, reader);
979
+ };
980
+
981
+
982
+ /**
983
+ * Deserializes binary data (in protobuf wire format) from the
984
+ * given reader into the given message object.
985
+ * @param {!proto.GetListAccessRequest} msg The message object to deserialize into.
986
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
987
+ * @return {!proto.GetListAccessRequest}
988
+ */
989
+ proto.GetListAccessRequest.deserializeBinaryFromReader = function(msg, reader) {
990
+ while (reader.nextField()) {
991
+ if (reader.isEndGroup()) {
992
+ break;
993
+ }
994
+ var field = reader.getFieldNumber();
995
+ switch (field) {
996
+ case 1:
997
+ var value = /** @type {number} */ (reader.readInt64());
998
+ msg.setLimit(value);
999
+ break;
1000
+ case 2:
1001
+ var value = /** @type {number} */ (reader.readInt64());
1002
+ msg.setOffset(value);
1003
+ break;
1004
+ default:
1005
+ reader.skipField();
1006
+ break;
1007
+ }
1008
+ }
1009
+ return msg;
1010
+ };
1011
+
1012
+
1013
+ /**
1014
+ * Serializes the message to binary data (in protobuf wire format).
1015
+ * @return {!Uint8Array}
1016
+ */
1017
+ proto.GetListAccessRequest.prototype.serializeBinary = function() {
1018
+ var writer = new jspb.BinaryWriter();
1019
+ proto.GetListAccessRequest.serializeBinaryToWriter(this, writer);
1020
+ return writer.getResultBuffer();
1021
+ };
1022
+
1023
+
1024
+ /**
1025
+ * Serializes the given message to binary data (in protobuf wire
1026
+ * format), writing to the given BinaryWriter.
1027
+ * @param {!proto.GetListAccessRequest} message
1028
+ * @param {!jspb.BinaryWriter} writer
1029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1030
+ */
1031
+ proto.GetListAccessRequest.serializeBinaryToWriter = function(message, writer) {
1032
+ var f = undefined;
1033
+ f = message.getLimit();
1034
+ if (f !== 0) {
1035
+ writer.writeInt64(
1036
+ 1,
1037
+ f
1038
+ );
1039
+ }
1040
+ f = message.getOffset();
1041
+ if (f !== 0) {
1042
+ writer.writeInt64(
1043
+ 2,
1044
+ f
1045
+ );
1046
+ }
1047
+ };
1048
+
1049
+
1050
+ /**
1051
+ * optional int64 limit = 1;
1052
+ * @return {number}
1053
+ */
1054
+ proto.GetListAccessRequest.prototype.getLimit = function() {
1055
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1056
+ };
1057
+
1058
+
1059
+ /**
1060
+ * @param {number} value
1061
+ * @return {!proto.GetListAccessRequest} returns this
1062
+ */
1063
+ proto.GetListAccessRequest.prototype.setLimit = function(value) {
1064
+ return jspb.Message.setProto3IntField(this, 1, value);
1065
+ };
1066
+
1067
+
1068
+ /**
1069
+ * optional int64 offset = 2;
1070
+ * @return {number}
1071
+ */
1072
+ proto.GetListAccessRequest.prototype.getOffset = function() {
1073
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1074
+ };
1075
+
1076
+
1077
+ /**
1078
+ * @param {number} value
1079
+ * @return {!proto.GetListAccessRequest} returns this
1080
+ */
1081
+ proto.GetListAccessRequest.prototype.setOffset = function(value) {
1082
+ return jspb.Message.setProto3IntField(this, 2, value);
1083
+ };
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1090
+ /**
1091
+ * Creates an object representation of this proto.
1092
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1093
+ * Optional fields that are not set will be set to undefined.
1094
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1095
+ * For the list of reserved names please see:
1096
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1097
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1098
+ * JSPB instance for transitional soy proto support:
1099
+ * http://goto/soy-param-migration
1100
+ * @return {!Object}
1101
+ */
1102
+ proto.AccessApiCredential.prototype.toObject = function(opt_includeInstance) {
1103
+ return proto.AccessApiCredential.toObject(opt_includeInstance, this);
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * Static version of the {@see toObject} method.
1109
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1110
+ * the JSPB instance for transitional soy proto support:
1111
+ * http://goto/soy-param-migration
1112
+ * @param {!proto.AccessApiCredential} msg The msg instance to transform.
1113
+ * @return {!Object}
1114
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1115
+ */
1116
+ proto.AccessApiCredential.toObject = function(includeInstance, msg) {
1117
+ var f, obj = {
1118
+ apisecretid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1119
+ apisecretkey: jspb.Message.getFieldWithDefault(msg, 2, "")
1120
+ };
1121
+
1122
+ if (includeInstance) {
1123
+ obj.$jspbMessageInstance = msg;
1124
+ }
1125
+ return obj;
1126
+ };
1127
+ }
1128
+
1129
+
1130
+ /**
1131
+ * Deserializes binary data (in protobuf wire format).
1132
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1133
+ * @return {!proto.AccessApiCredential}
1134
+ */
1135
+ proto.AccessApiCredential.deserializeBinary = function(bytes) {
1136
+ var reader = new jspb.BinaryReader(bytes);
1137
+ var msg = new proto.AccessApiCredential;
1138
+ return proto.AccessApiCredential.deserializeBinaryFromReader(msg, reader);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * Deserializes binary data (in protobuf wire format) from the
1144
+ * given reader into the given message object.
1145
+ * @param {!proto.AccessApiCredential} msg The message object to deserialize into.
1146
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1147
+ * @return {!proto.AccessApiCredential}
1148
+ */
1149
+ proto.AccessApiCredential.deserializeBinaryFromReader = function(msg, reader) {
1150
+ while (reader.nextField()) {
1151
+ if (reader.isEndGroup()) {
1152
+ break;
1153
+ }
1154
+ var field = reader.getFieldNumber();
1155
+ switch (field) {
1156
+ case 1:
1157
+ var value = /** @type {string} */ (reader.readString());
1158
+ msg.setApisecretid(value);
1159
+ break;
1160
+ case 2:
1161
+ var value = /** @type {string} */ (reader.readString());
1162
+ msg.setApisecretkey(value);
1163
+ break;
1164
+ default:
1165
+ reader.skipField();
1166
+ break;
1167
+ }
1168
+ }
1169
+ return msg;
1170
+ };
1171
+
1172
+
1173
+ /**
1174
+ * Serializes the message to binary data (in protobuf wire format).
1175
+ * @return {!Uint8Array}
1176
+ */
1177
+ proto.AccessApiCredential.prototype.serializeBinary = function() {
1178
+ var writer = new jspb.BinaryWriter();
1179
+ proto.AccessApiCredential.serializeBinaryToWriter(this, writer);
1180
+ return writer.getResultBuffer();
1181
+ };
1182
+
1183
+
1184
+ /**
1185
+ * Serializes the given message to binary data (in protobuf wire
1186
+ * format), writing to the given BinaryWriter.
1187
+ * @param {!proto.AccessApiCredential} message
1188
+ * @param {!jspb.BinaryWriter} writer
1189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1190
+ */
1191
+ proto.AccessApiCredential.serializeBinaryToWriter = function(message, writer) {
1192
+ var f = undefined;
1193
+ f = message.getApisecretid();
1194
+ if (f.length > 0) {
1195
+ writer.writeString(
1196
+ 1,
1197
+ f
1198
+ );
1199
+ }
1200
+ f = message.getApisecretkey();
1201
+ if (f.length > 0) {
1202
+ writer.writeString(
1203
+ 2,
1204
+ f
1205
+ );
1206
+ }
1207
+ };
1208
+
1209
+
1210
+ /**
1211
+ * optional string apiSecretId = 1;
1212
+ * @return {string}
1213
+ */
1214
+ proto.AccessApiCredential.prototype.getApisecretid = function() {
1215
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * @param {string} value
1221
+ * @return {!proto.AccessApiCredential} returns this
1222
+ */
1223
+ proto.AccessApiCredential.prototype.setApisecretid = function(value) {
1224
+ return jspb.Message.setProto3StringField(this, 1, value);
1225
+ };
1226
+
1227
+
1228
+ /**
1229
+ * optional string apiSecretKey = 2;
1230
+ * @return {string}
1231
+ */
1232
+ proto.AccessApiCredential.prototype.getApisecretkey = function() {
1233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1234
+ };
1235
+
1236
+
1237
+ /**
1238
+ * @param {string} value
1239
+ * @return {!proto.AccessApiCredential} returns this
1240
+ */
1241
+ proto.AccessApiCredential.prototype.setApisecretkey = function(value) {
1242
+ return jspb.Message.setProto3StringField(this, 2, value);
1243
+ };
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1250
+ /**
1251
+ * Creates an object representation of this proto.
1252
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1253
+ * Optional fields that are not set will be set to undefined.
1254
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1255
+ * For the list of reserved names please see:
1256
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1257
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1258
+ * JSPB instance for transitional soy proto support:
1259
+ * http://goto/soy-param-migration
1260
+ * @return {!Object}
1261
+ */
1262
+ proto.AccessCreateRequest.prototype.toObject = function(opt_includeInstance) {
1263
+ return proto.AccessCreateRequest.toObject(opt_includeInstance, this);
1264
+ };
1265
+
1266
+
1267
+ /**
1268
+ * Static version of the {@see toObject} method.
1269
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1270
+ * the JSPB instance for transitional soy proto support:
1271
+ * http://goto/soy-param-migration
1272
+ * @param {!proto.AccessCreateRequest} msg The msg instance to transform.
1273
+ * @return {!Object}
1274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1275
+ */
1276
+ proto.AccessCreateRequest.toObject = function(includeInstance, msg) {
1277
+ var f, obj = {
1278
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1279
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
1280
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, "")
1281
+ };
1282
+
1283
+ if (includeInstance) {
1284
+ obj.$jspbMessageInstance = msg;
1285
+ }
1286
+ return obj;
1287
+ };
1288
+ }
1289
+
1290
+
1291
+ /**
1292
+ * Deserializes binary data (in protobuf wire format).
1293
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1294
+ * @return {!proto.AccessCreateRequest}
1295
+ */
1296
+ proto.AccessCreateRequest.deserializeBinary = function(bytes) {
1297
+ var reader = new jspb.BinaryReader(bytes);
1298
+ var msg = new proto.AccessCreateRequest;
1299
+ return proto.AccessCreateRequest.deserializeBinaryFromReader(msg, reader);
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * Deserializes binary data (in protobuf wire format) from the
1305
+ * given reader into the given message object.
1306
+ * @param {!proto.AccessCreateRequest} msg The message object to deserialize into.
1307
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1308
+ * @return {!proto.AccessCreateRequest}
1309
+ */
1310
+ proto.AccessCreateRequest.deserializeBinaryFromReader = function(msg, reader) {
1311
+ while (reader.nextField()) {
1312
+ if (reader.isEndGroup()) {
1313
+ break;
1314
+ }
1315
+ var field = reader.getFieldNumber();
1316
+ switch (field) {
1317
+ case 1:
1318
+ var value = /** @type {string} */ (reader.readString());
1319
+ msg.setName(value);
1320
+ break;
1321
+ case 2:
1322
+ var value = /** @type {number} */ (reader.readInt64());
1323
+ msg.setUserid(value);
1324
+ break;
1325
+ case 3:
1326
+ var value = /** @type {string} */ (reader.readString());
1327
+ msg.setScopes(value);
1328
+ break;
1329
+ default:
1330
+ reader.skipField();
1331
+ break;
1332
+ }
1333
+ }
1334
+ return msg;
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * Serializes the message to binary data (in protobuf wire format).
1340
+ * @return {!Uint8Array}
1341
+ */
1342
+ proto.AccessCreateRequest.prototype.serializeBinary = function() {
1343
+ var writer = new jspb.BinaryWriter();
1344
+ proto.AccessCreateRequest.serializeBinaryToWriter(this, writer);
1345
+ return writer.getResultBuffer();
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * Serializes the given message to binary data (in protobuf wire
1351
+ * format), writing to the given BinaryWriter.
1352
+ * @param {!proto.AccessCreateRequest} message
1353
+ * @param {!jspb.BinaryWriter} writer
1354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1355
+ */
1356
+ proto.AccessCreateRequest.serializeBinaryToWriter = function(message, writer) {
1357
+ var f = undefined;
1358
+ f = message.getName();
1359
+ if (f.length > 0) {
1360
+ writer.writeString(
1361
+ 1,
1362
+ f
1363
+ );
1364
+ }
1365
+ f = message.getUserid();
1366
+ if (f !== 0) {
1367
+ writer.writeInt64(
1368
+ 2,
1369
+ f
1370
+ );
1371
+ }
1372
+ f = message.getScopes();
1373
+ if (f.length > 0) {
1374
+ writer.writeString(
1375
+ 3,
1376
+ f
1377
+ );
1378
+ }
1379
+ };
1380
+
1381
+
1382
+ /**
1383
+ * optional string name = 1;
1384
+ * @return {string}
1385
+ */
1386
+ proto.AccessCreateRequest.prototype.getName = function() {
1387
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * @param {string} value
1393
+ * @return {!proto.AccessCreateRequest} returns this
1394
+ */
1395
+ proto.AccessCreateRequest.prototype.setName = function(value) {
1396
+ return jspb.Message.setProto3StringField(this, 1, value);
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * optional int64 userId = 2;
1402
+ * @return {number}
1403
+ */
1404
+ proto.AccessCreateRequest.prototype.getUserid = function() {
1405
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * @param {number} value
1411
+ * @return {!proto.AccessCreateRequest} returns this
1412
+ */
1413
+ proto.AccessCreateRequest.prototype.setUserid = function(value) {
1414
+ return jspb.Message.setProto3IntField(this, 2, value);
1415
+ };
1416
+
1417
+
1418
+ /**
1419
+ * optional string scopes = 3;
1420
+ * @return {string}
1421
+ */
1422
+ proto.AccessCreateRequest.prototype.getScopes = function() {
1423
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * @param {string} value
1429
+ * @return {!proto.AccessCreateRequest} returns this
1430
+ */
1431
+ proto.AccessCreateRequest.prototype.setScopes = function(value) {
1432
+ return jspb.Message.setProto3StringField(this, 3, value);
1433
+ };
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1440
+ /**
1441
+ * Creates an object representation of this proto.
1442
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1443
+ * Optional fields that are not set will be set to undefined.
1444
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1445
+ * For the list of reserved names please see:
1446
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1447
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1448
+ * JSPB instance for transitional soy proto support:
1449
+ * http://goto/soy-param-migration
1450
+ * @return {!Object}
1451
+ */
1452
+ proto.AuthVerifyToken.prototype.toObject = function(opt_includeInstance) {
1453
+ return proto.AuthVerifyToken.toObject(opt_includeInstance, this);
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * Static version of the {@see toObject} method.
1459
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1460
+ * the JSPB instance for transitional soy proto support:
1461
+ * http://goto/soy-param-migration
1462
+ * @param {!proto.AuthVerifyToken} msg The msg instance to transform.
1463
+ * @return {!Object}
1464
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1465
+ */
1466
+ proto.AuthVerifyToken.toObject = function(includeInstance, msg) {
1467
+ var f, obj = {
1468
+ token: jspb.Message.getFieldWithDefault(msg, 1, "")
1469
+ };
1470
+
1471
+ if (includeInstance) {
1472
+ obj.$jspbMessageInstance = msg;
1473
+ }
1474
+ return obj;
1475
+ };
1476
+ }
1477
+
1478
+
1479
+ /**
1480
+ * Deserializes binary data (in protobuf wire format).
1481
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1482
+ * @return {!proto.AuthVerifyToken}
1483
+ */
1484
+ proto.AuthVerifyToken.deserializeBinary = function(bytes) {
1485
+ var reader = new jspb.BinaryReader(bytes);
1486
+ var msg = new proto.AuthVerifyToken;
1487
+ return proto.AuthVerifyToken.deserializeBinaryFromReader(msg, reader);
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * Deserializes binary data (in protobuf wire format) from the
1493
+ * given reader into the given message object.
1494
+ * @param {!proto.AuthVerifyToken} msg The message object to deserialize into.
1495
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1496
+ * @return {!proto.AuthVerifyToken}
1497
+ */
1498
+ proto.AuthVerifyToken.deserializeBinaryFromReader = function(msg, reader) {
1499
+ while (reader.nextField()) {
1500
+ if (reader.isEndGroup()) {
1501
+ break;
1502
+ }
1503
+ var field = reader.getFieldNumber();
1504
+ switch (field) {
1505
+ case 1:
1506
+ var value = /** @type {string} */ (reader.readString());
1507
+ msg.setToken(value);
1508
+ break;
1509
+ default:
1510
+ reader.skipField();
1511
+ break;
1512
+ }
1513
+ }
1514
+ return msg;
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * Serializes the message to binary data (in protobuf wire format).
1520
+ * @return {!Uint8Array}
1521
+ */
1522
+ proto.AuthVerifyToken.prototype.serializeBinary = function() {
1523
+ var writer = new jspb.BinaryWriter();
1524
+ proto.AuthVerifyToken.serializeBinaryToWriter(this, writer);
1525
+ return writer.getResultBuffer();
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * Serializes the given message to binary data (in protobuf wire
1531
+ * format), writing to the given BinaryWriter.
1532
+ * @param {!proto.AuthVerifyToken} message
1533
+ * @param {!jspb.BinaryWriter} writer
1534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1535
+ */
1536
+ proto.AuthVerifyToken.serializeBinaryToWriter = function(message, writer) {
1537
+ var f = undefined;
1538
+ f = message.getToken();
1539
+ if (f.length > 0) {
1540
+ writer.writeString(
1541
+ 1,
1542
+ f
1543
+ );
1544
+ }
1545
+ };
1546
+
1547
+
1548
+ /**
1549
+ * optional string token = 1;
1550
+ * @return {string}
1551
+ */
1552
+ proto.AuthVerifyToken.prototype.getToken = function() {
1553
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1554
+ };
1555
+
1556
+
1557
+ /**
1558
+ * @param {string} value
1559
+ * @return {!proto.AuthVerifyToken} returns this
1560
+ */
1561
+ proto.AuthVerifyToken.prototype.setToken = function(value) {
1562
+ return jspb.Message.setProto3StringField(this, 1, value);
1563
+ };
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1570
+ /**
1571
+ * Creates an object representation of this proto.
1572
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1573
+ * Optional fields that are not set will be set to undefined.
1574
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1575
+ * For the list of reserved names please see:
1576
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1577
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1578
+ * JSPB instance for transitional soy proto support:
1579
+ * http://goto/soy-param-migration
1580
+ * @return {!Object}
1581
+ */
1582
+ proto.UpdateAccessPayload.prototype.toObject = function(opt_includeInstance) {
1583
+ return proto.UpdateAccessPayload.toObject(opt_includeInstance, this);
1584
+ };
1585
+
1586
+
1587
+ /**
1588
+ * Static version of the {@see toObject} method.
1589
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1590
+ * the JSPB instance for transitional soy proto support:
1591
+ * http://goto/soy-param-migration
1592
+ * @param {!proto.UpdateAccessPayload} msg The msg instance to transform.
1593
+ * @return {!Object}
1594
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1595
+ */
1596
+ proto.UpdateAccessPayload.toObject = function(includeInstance, msg) {
1597
+ var f, obj = {
1598
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1599
+ id: jspb.Message.getFieldWithDefault(msg, 2, 0),
1600
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, "")
1601
+ };
1602
+
1603
+ if (includeInstance) {
1604
+ obj.$jspbMessageInstance = msg;
1605
+ }
1606
+ return obj;
1607
+ };
1608
+ }
1609
+
1610
+
1611
+ /**
1612
+ * Deserializes binary data (in protobuf wire format).
1613
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1614
+ * @return {!proto.UpdateAccessPayload}
1615
+ */
1616
+ proto.UpdateAccessPayload.deserializeBinary = function(bytes) {
1617
+ var reader = new jspb.BinaryReader(bytes);
1618
+ var msg = new proto.UpdateAccessPayload;
1619
+ return proto.UpdateAccessPayload.deserializeBinaryFromReader(msg, reader);
1620
+ };
1621
+
1622
+
1623
+ /**
1624
+ * Deserializes binary data (in protobuf wire format) from the
1625
+ * given reader into the given message object.
1626
+ * @param {!proto.UpdateAccessPayload} msg The message object to deserialize into.
1627
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1628
+ * @return {!proto.UpdateAccessPayload}
1629
+ */
1630
+ proto.UpdateAccessPayload.deserializeBinaryFromReader = function(msg, reader) {
1631
+ while (reader.nextField()) {
1632
+ if (reader.isEndGroup()) {
1633
+ break;
1634
+ }
1635
+ var field = reader.getFieldNumber();
1636
+ switch (field) {
1637
+ case 1:
1638
+ var value = /** @type {string} */ (reader.readString());
1639
+ msg.setName(value);
1640
+ break;
1641
+ case 2:
1642
+ var value = /** @type {number} */ (reader.readInt64());
1643
+ msg.setId(value);
1644
+ break;
1645
+ case 3:
1646
+ var value = /** @type {string} */ (reader.readString());
1647
+ msg.setScopes(value);
1648
+ break;
1649
+ default:
1650
+ reader.skipField();
1651
+ break;
1652
+ }
1653
+ }
1654
+ return msg;
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * Serializes the message to binary data (in protobuf wire format).
1660
+ * @return {!Uint8Array}
1661
+ */
1662
+ proto.UpdateAccessPayload.prototype.serializeBinary = function() {
1663
+ var writer = new jspb.BinaryWriter();
1664
+ proto.UpdateAccessPayload.serializeBinaryToWriter(this, writer);
1665
+ return writer.getResultBuffer();
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * Serializes the given message to binary data (in protobuf wire
1671
+ * format), writing to the given BinaryWriter.
1672
+ * @param {!proto.UpdateAccessPayload} message
1673
+ * @param {!jspb.BinaryWriter} writer
1674
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1675
+ */
1676
+ proto.UpdateAccessPayload.serializeBinaryToWriter = function(message, writer) {
1677
+ var f = undefined;
1678
+ f = message.getName();
1679
+ if (f.length > 0) {
1680
+ writer.writeString(
1681
+ 1,
1682
+ f
1683
+ );
1684
+ }
1685
+ f = message.getId();
1686
+ if (f !== 0) {
1687
+ writer.writeInt64(
1688
+ 2,
1689
+ f
1690
+ );
1691
+ }
1692
+ f = message.getScopes();
1693
+ if (f.length > 0) {
1694
+ writer.writeString(
1695
+ 3,
1696
+ f
1697
+ );
1698
+ }
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * optional string name = 1;
1704
+ * @return {string}
1705
+ */
1706
+ proto.UpdateAccessPayload.prototype.getName = function() {
1707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * @param {string} value
1713
+ * @return {!proto.UpdateAccessPayload} returns this
1714
+ */
1715
+ proto.UpdateAccessPayload.prototype.setName = function(value) {
1716
+ return jspb.Message.setProto3StringField(this, 1, value);
1717
+ };
1718
+
1719
+
1720
+ /**
1721
+ * optional int64 id = 2;
1722
+ * @return {number}
1723
+ */
1724
+ proto.UpdateAccessPayload.prototype.getId = function() {
1725
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1726
+ };
1727
+
1728
+
1729
+ /**
1730
+ * @param {number} value
1731
+ * @return {!proto.UpdateAccessPayload} returns this
1732
+ */
1733
+ proto.UpdateAccessPayload.prototype.setId = function(value) {
1734
+ return jspb.Message.setProto3IntField(this, 2, value);
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * optional string scopes = 3;
1740
+ * @return {string}
1741
+ */
1742
+ proto.UpdateAccessPayload.prototype.getScopes = function() {
1743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * @param {string} value
1749
+ * @return {!proto.UpdateAccessPayload} returns this
1750
+ */
1751
+ proto.UpdateAccessPayload.prototype.setScopes = function(value) {
1752
+ return jspb.Message.setProto3StringField(this, 3, value);
1753
+ };
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1760
+ /**
1761
+ * Creates an object representation of this proto.
1762
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1763
+ * Optional fields that are not set will be set to undefined.
1764
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1765
+ * For the list of reserved names please see:
1766
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1767
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1768
+ * JSPB instance for transitional soy proto support:
1769
+ * http://goto/soy-param-migration
1770
+ * @return {!Object}
1771
+ */
1772
+ proto.GetAccessByIdPayload.prototype.toObject = function(opt_includeInstance) {
1773
+ return proto.GetAccessByIdPayload.toObject(opt_includeInstance, this);
1774
+ };
1775
+
1776
+
1777
+ /**
1778
+ * Static version of the {@see toObject} method.
1779
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1780
+ * the JSPB instance for transitional soy proto support:
1781
+ * http://goto/soy-param-migration
1782
+ * @param {!proto.GetAccessByIdPayload} msg The msg instance to transform.
1783
+ * @return {!Object}
1784
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1785
+ */
1786
+ proto.GetAccessByIdPayload.toObject = function(includeInstance, msg) {
1787
+ var f, obj = {
1788
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1789
+ };
1790
+
1791
+ if (includeInstance) {
1792
+ obj.$jspbMessageInstance = msg;
1793
+ }
1794
+ return obj;
1795
+ };
1796
+ }
1797
+
1798
+
1799
+ /**
1800
+ * Deserializes binary data (in protobuf wire format).
1801
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1802
+ * @return {!proto.GetAccessByIdPayload}
1803
+ */
1804
+ proto.GetAccessByIdPayload.deserializeBinary = function(bytes) {
1805
+ var reader = new jspb.BinaryReader(bytes);
1806
+ var msg = new proto.GetAccessByIdPayload;
1807
+ return proto.GetAccessByIdPayload.deserializeBinaryFromReader(msg, reader);
1808
+ };
1809
+
1810
+
1811
+ /**
1812
+ * Deserializes binary data (in protobuf wire format) from the
1813
+ * given reader into the given message object.
1814
+ * @param {!proto.GetAccessByIdPayload} msg The message object to deserialize into.
1815
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1816
+ * @return {!proto.GetAccessByIdPayload}
1817
+ */
1818
+ proto.GetAccessByIdPayload.deserializeBinaryFromReader = function(msg, reader) {
1819
+ while (reader.nextField()) {
1820
+ if (reader.isEndGroup()) {
1821
+ break;
1822
+ }
1823
+ var field = reader.getFieldNumber();
1824
+ switch (field) {
1825
+ case 1:
1826
+ var value = /** @type {number} */ (reader.readInt64());
1827
+ msg.setId(value);
1828
+ break;
1829
+ default:
1830
+ reader.skipField();
1831
+ break;
1832
+ }
1833
+ }
1834
+ return msg;
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * Serializes the message to binary data (in protobuf wire format).
1840
+ * @return {!Uint8Array}
1841
+ */
1842
+ proto.GetAccessByIdPayload.prototype.serializeBinary = function() {
1843
+ var writer = new jspb.BinaryWriter();
1844
+ proto.GetAccessByIdPayload.serializeBinaryToWriter(this, writer);
1845
+ return writer.getResultBuffer();
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * Serializes the given message to binary data (in protobuf wire
1851
+ * format), writing to the given BinaryWriter.
1852
+ * @param {!proto.GetAccessByIdPayload} message
1853
+ * @param {!jspb.BinaryWriter} writer
1854
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1855
+ */
1856
+ proto.GetAccessByIdPayload.serializeBinaryToWriter = function(message, writer) {
1857
+ var f = undefined;
1858
+ f = message.getId();
1859
+ if (f !== 0) {
1860
+ writer.writeInt64(
1861
+ 1,
1862
+ f
1863
+ );
1864
+ }
1865
+ };
1866
+
1867
+
1868
+ /**
1869
+ * optional int64 id = 1;
1870
+ * @return {number}
1871
+ */
1872
+ proto.GetAccessByIdPayload.prototype.getId = function() {
1873
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * @param {number} value
1879
+ * @return {!proto.GetAccessByIdPayload} returns this
1880
+ */
1881
+ proto.GetAccessByIdPayload.prototype.setId = function(value) {
1882
+ return jspb.Message.setProto3IntField(this, 1, value);
1883
+ };
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1890
+ /**
1891
+ * Creates an object representation of this proto.
1892
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1893
+ * Optional fields that are not set will be set to undefined.
1894
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1895
+ * For the list of reserved names please see:
1896
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1897
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1898
+ * JSPB instance for transitional soy proto support:
1899
+ * http://goto/soy-param-migration
1900
+ * @return {!Object}
1901
+ */
1902
+ proto.CreateUserPayload.prototype.toObject = function(opt_includeInstance) {
1903
+ return proto.CreateUserPayload.toObject(opt_includeInstance, this);
1904
+ };
1905
+
1906
+
1907
+ /**
1908
+ * Static version of the {@see toObject} method.
1909
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1910
+ * the JSPB instance for transitional soy proto support:
1911
+ * http://goto/soy-param-migration
1912
+ * @param {!proto.CreateUserPayload} msg The msg instance to transform.
1913
+ * @return {!Object}
1914
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1915
+ */
1916
+ proto.CreateUserPayload.toObject = function(includeInstance, msg) {
1917
+ var f, obj = {
1918
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1919
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
1920
+ password: jspb.Message.getFieldWithDefault(msg, 3, "")
1921
+ };
1922
+
1923
+ if (includeInstance) {
1924
+ obj.$jspbMessageInstance = msg;
1925
+ }
1926
+ return obj;
1927
+ };
1928
+ }
1929
+
1930
+
1931
+ /**
1932
+ * Deserializes binary data (in protobuf wire format).
1933
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1934
+ * @return {!proto.CreateUserPayload}
1935
+ */
1936
+ proto.CreateUserPayload.deserializeBinary = function(bytes) {
1937
+ var reader = new jspb.BinaryReader(bytes);
1938
+ var msg = new proto.CreateUserPayload;
1939
+ return proto.CreateUserPayload.deserializeBinaryFromReader(msg, reader);
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * Deserializes binary data (in protobuf wire format) from the
1945
+ * given reader into the given message object.
1946
+ * @param {!proto.CreateUserPayload} msg The message object to deserialize into.
1947
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1948
+ * @return {!proto.CreateUserPayload}
1949
+ */
1950
+ proto.CreateUserPayload.deserializeBinaryFromReader = function(msg, reader) {
1951
+ while (reader.nextField()) {
1952
+ if (reader.isEndGroup()) {
1953
+ break;
1954
+ }
1955
+ var field = reader.getFieldNumber();
1956
+ switch (field) {
1957
+ case 1:
1958
+ var value = /** @type {string} */ (reader.readString());
1959
+ msg.setName(value);
1960
+ break;
1961
+ case 2:
1962
+ var value = /** @type {string} */ (reader.readString());
1963
+ msg.setEmail(value);
1964
+ break;
1965
+ case 3:
1966
+ var value = /** @type {string} */ (reader.readString());
1967
+ msg.setPassword(value);
1968
+ break;
1969
+ default:
1970
+ reader.skipField();
1971
+ break;
1972
+ }
1973
+ }
1974
+ return msg;
1975
+ };
1976
+
1977
+
1978
+ /**
1979
+ * Serializes the message to binary data (in protobuf wire format).
1980
+ * @return {!Uint8Array}
1981
+ */
1982
+ proto.CreateUserPayload.prototype.serializeBinary = function() {
1983
+ var writer = new jspb.BinaryWriter();
1984
+ proto.CreateUserPayload.serializeBinaryToWriter(this, writer);
1985
+ return writer.getResultBuffer();
1986
+ };
1987
+
1988
+
1989
+ /**
1990
+ * Serializes the given message to binary data (in protobuf wire
1991
+ * format), writing to the given BinaryWriter.
1992
+ * @param {!proto.CreateUserPayload} message
1993
+ * @param {!jspb.BinaryWriter} writer
1994
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1995
+ */
1996
+ proto.CreateUserPayload.serializeBinaryToWriter = function(message, writer) {
1997
+ var f = undefined;
1998
+ f = message.getName();
1999
+ if (f.length > 0) {
2000
+ writer.writeString(
2001
+ 1,
2002
+ f
2003
+ );
2004
+ }
2005
+ f = message.getEmail();
2006
+ if (f.length > 0) {
2007
+ writer.writeString(
2008
+ 2,
2009
+ f
2010
+ );
2011
+ }
2012
+ f = message.getPassword();
2013
+ if (f.length > 0) {
2014
+ writer.writeString(
2015
+ 3,
2016
+ f
2017
+ );
2018
+ }
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * optional string name = 1;
2024
+ * @return {string}
2025
+ */
2026
+ proto.CreateUserPayload.prototype.getName = function() {
2027
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2028
+ };
2029
+
2030
+
2031
+ /**
2032
+ * @param {string} value
2033
+ * @return {!proto.CreateUserPayload} returns this
2034
+ */
2035
+ proto.CreateUserPayload.prototype.setName = function(value) {
2036
+ return jspb.Message.setProto3StringField(this, 1, value);
2037
+ };
2038
+
2039
+
2040
+ /**
2041
+ * optional string email = 2;
2042
+ * @return {string}
2043
+ */
2044
+ proto.CreateUserPayload.prototype.getEmail = function() {
2045
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2046
+ };
2047
+
2048
+
2049
+ /**
2050
+ * @param {string} value
2051
+ * @return {!proto.CreateUserPayload} returns this
2052
+ */
2053
+ proto.CreateUserPayload.prototype.setEmail = function(value) {
2054
+ return jspb.Message.setProto3StringField(this, 2, value);
2055
+ };
2056
+
2057
+
2058
+ /**
2059
+ * optional string password = 3;
2060
+ * @return {string}
2061
+ */
2062
+ proto.CreateUserPayload.prototype.getPassword = function() {
2063
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2064
+ };
2065
+
2066
+
2067
+ /**
2068
+ * @param {string} value
2069
+ * @return {!proto.CreateUserPayload} returns this
2070
+ */
2071
+ proto.CreateUserPayload.prototype.setPassword = function(value) {
2072
+ return jspb.Message.setProto3StringField(this, 3, value);
2073
+ };
2074
+
2075
+
2076
+
2077
+
2078
+
2079
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2080
+ /**
2081
+ * Creates an object representation of this proto.
2082
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2083
+ * Optional fields that are not set will be set to undefined.
2084
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2085
+ * For the list of reserved names please see:
2086
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2087
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2088
+ * JSPB instance for transitional soy proto support:
2089
+ * http://goto/soy-param-migration
2090
+ * @return {!Object}
2091
+ */
2092
+ proto.UpdateUserPayload.prototype.toObject = function(opt_includeInstance) {
2093
+ return proto.UpdateUserPayload.toObject(opt_includeInstance, this);
2094
+ };
2095
+
2096
+
2097
+ /**
2098
+ * Static version of the {@see toObject} method.
2099
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2100
+ * the JSPB instance for transitional soy proto support:
2101
+ * http://goto/soy-param-migration
2102
+ * @param {!proto.UpdateUserPayload} msg The msg instance to transform.
2103
+ * @return {!Object}
2104
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2105
+ */
2106
+ proto.UpdateUserPayload.toObject = function(includeInstance, msg) {
2107
+ var f, obj = {
2108
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
2109
+ password: jspb.Message.getFieldWithDefault(msg, 2, "")
2110
+ };
2111
+
2112
+ if (includeInstance) {
2113
+ obj.$jspbMessageInstance = msg;
2114
+ }
2115
+ return obj;
2116
+ };
2117
+ }
2118
+
2119
+
2120
+ /**
2121
+ * Deserializes binary data (in protobuf wire format).
2122
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2123
+ * @return {!proto.UpdateUserPayload}
2124
+ */
2125
+ proto.UpdateUserPayload.deserializeBinary = function(bytes) {
2126
+ var reader = new jspb.BinaryReader(bytes);
2127
+ var msg = new proto.UpdateUserPayload;
2128
+ return proto.UpdateUserPayload.deserializeBinaryFromReader(msg, reader);
2129
+ };
2130
+
2131
+
2132
+ /**
2133
+ * Deserializes binary data (in protobuf wire format) from the
2134
+ * given reader into the given message object.
2135
+ * @param {!proto.UpdateUserPayload} msg The message object to deserialize into.
2136
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2137
+ * @return {!proto.UpdateUserPayload}
2138
+ */
2139
+ proto.UpdateUserPayload.deserializeBinaryFromReader = function(msg, reader) {
2140
+ while (reader.nextField()) {
2141
+ if (reader.isEndGroup()) {
2142
+ break;
2143
+ }
2144
+ var field = reader.getFieldNumber();
2145
+ switch (field) {
2146
+ case 1:
2147
+ var value = /** @type {string} */ (reader.readString());
2148
+ msg.setEmail(value);
2149
+ break;
2150
+ case 2:
2151
+ var value = /** @type {string} */ (reader.readString());
2152
+ msg.setPassword(value);
2153
+ break;
2154
+ default:
2155
+ reader.skipField();
2156
+ break;
2157
+ }
2158
+ }
2159
+ return msg;
2160
+ };
2161
+
2162
+
2163
+ /**
2164
+ * Serializes the message to binary data (in protobuf wire format).
2165
+ * @return {!Uint8Array}
2166
+ */
2167
+ proto.UpdateUserPayload.prototype.serializeBinary = function() {
2168
+ var writer = new jspb.BinaryWriter();
2169
+ proto.UpdateUserPayload.serializeBinaryToWriter(this, writer);
2170
+ return writer.getResultBuffer();
2171
+ };
2172
+
2173
+
2174
+ /**
2175
+ * Serializes the given message to binary data (in protobuf wire
2176
+ * format), writing to the given BinaryWriter.
2177
+ * @param {!proto.UpdateUserPayload} message
2178
+ * @param {!jspb.BinaryWriter} writer
2179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2180
+ */
2181
+ proto.UpdateUserPayload.serializeBinaryToWriter = function(message, writer) {
2182
+ var f = undefined;
2183
+ f = message.getEmail();
2184
+ if (f.length > 0) {
2185
+ writer.writeString(
2186
+ 1,
2187
+ f
2188
+ );
2189
+ }
2190
+ f = message.getPassword();
2191
+ if (f.length > 0) {
2192
+ writer.writeString(
2193
+ 2,
2194
+ f
2195
+ );
2196
+ }
2197
+ };
2198
+
2199
+
2200
+ /**
2201
+ * optional string email = 1;
2202
+ * @return {string}
2203
+ */
2204
+ proto.UpdateUserPayload.prototype.getEmail = function() {
2205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2206
+ };
2207
+
2208
+
2209
+ /**
2210
+ * @param {string} value
2211
+ * @return {!proto.UpdateUserPayload} returns this
2212
+ */
2213
+ proto.UpdateUserPayload.prototype.setEmail = function(value) {
2214
+ return jspb.Message.setProto3StringField(this, 1, value);
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * optional string password = 2;
2220
+ * @return {string}
2221
+ */
2222
+ proto.UpdateUserPayload.prototype.getPassword = function() {
2223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * @param {string} value
2229
+ * @return {!proto.UpdateUserPayload} returns this
2230
+ */
2231
+ proto.UpdateUserPayload.prototype.setPassword = function(value) {
2232
+ return jspb.Message.setProto3StringField(this, 2, value);
2233
+ };
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2240
+ /**
2241
+ * Creates an object representation of this proto.
2242
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2243
+ * Optional fields that are not set will be set to undefined.
2244
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2245
+ * For the list of reserved names please see:
2246
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2247
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2248
+ * JSPB instance for transitional soy proto support:
2249
+ * http://goto/soy-param-migration
2250
+ * @return {!Object}
2251
+ */
2252
+ proto.UserResponse.prototype.toObject = function(opt_includeInstance) {
2253
+ return proto.UserResponse.toObject(opt_includeInstance, this);
2254
+ };
2255
+
2256
+
2257
+ /**
2258
+ * Static version of the {@see toObject} method.
2259
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2260
+ * the JSPB instance for transitional soy proto support:
2261
+ * http://goto/soy-param-migration
2262
+ * @param {!proto.UserResponse} msg The msg instance to transform.
2263
+ * @return {!Object}
2264
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2265
+ */
2266
+ proto.UserResponse.toObject = function(includeInstance, msg) {
2267
+ var f, obj = {
2268
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2269
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2270
+ email: jspb.Message.getFieldWithDefault(msg, 3, ""),
2271
+ role: jspb.Message.getFieldWithDefault(msg, 4, ""),
2272
+ token: jspb.Message.getFieldWithDefault(msg, 5, "")
2273
+ };
2274
+
2275
+ if (includeInstance) {
2276
+ obj.$jspbMessageInstance = msg;
2277
+ }
2278
+ return obj;
2279
+ };
2280
+ }
2281
+
2282
+
2283
+ /**
2284
+ * Deserializes binary data (in protobuf wire format).
2285
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2286
+ * @return {!proto.UserResponse}
2287
+ */
2288
+ proto.UserResponse.deserializeBinary = function(bytes) {
2289
+ var reader = new jspb.BinaryReader(bytes);
2290
+ var msg = new proto.UserResponse;
2291
+ return proto.UserResponse.deserializeBinaryFromReader(msg, reader);
2292
+ };
2293
+
2294
+
2295
+ /**
2296
+ * Deserializes binary data (in protobuf wire format) from the
2297
+ * given reader into the given message object.
2298
+ * @param {!proto.UserResponse} msg The message object to deserialize into.
2299
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2300
+ * @return {!proto.UserResponse}
2301
+ */
2302
+ proto.UserResponse.deserializeBinaryFromReader = function(msg, reader) {
2303
+ while (reader.nextField()) {
2304
+ if (reader.isEndGroup()) {
2305
+ break;
2306
+ }
2307
+ var field = reader.getFieldNumber();
2308
+ switch (field) {
2309
+ case 1:
2310
+ var value = /** @type {number} */ (reader.readInt64());
2311
+ msg.setId(value);
2312
+ break;
2313
+ case 2:
2314
+ var value = /** @type {string} */ (reader.readString());
2315
+ msg.setName(value);
2316
+ break;
2317
+ case 3:
2318
+ var value = /** @type {string} */ (reader.readString());
2319
+ msg.setEmail(value);
2320
+ break;
2321
+ case 4:
2322
+ var value = /** @type {string} */ (reader.readString());
2323
+ msg.setRole(value);
2324
+ break;
2325
+ case 5:
2326
+ var value = /** @type {string} */ (reader.readString());
2327
+ msg.setToken(value);
2328
+ break;
2329
+ default:
2330
+ reader.skipField();
2331
+ break;
2332
+ }
2333
+ }
2334
+ return msg;
2335
+ };
2336
+
2337
+
2338
+ /**
2339
+ * Serializes the message to binary data (in protobuf wire format).
2340
+ * @return {!Uint8Array}
2341
+ */
2342
+ proto.UserResponse.prototype.serializeBinary = function() {
2343
+ var writer = new jspb.BinaryWriter();
2344
+ proto.UserResponse.serializeBinaryToWriter(this, writer);
2345
+ return writer.getResultBuffer();
2346
+ };
2347
+
2348
+
2349
+ /**
2350
+ * Serializes the given message to binary data (in protobuf wire
2351
+ * format), writing to the given BinaryWriter.
2352
+ * @param {!proto.UserResponse} message
2353
+ * @param {!jspb.BinaryWriter} writer
2354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2355
+ */
2356
+ proto.UserResponse.serializeBinaryToWriter = function(message, writer) {
2357
+ var f = undefined;
2358
+ f = message.getId();
2359
+ if (f !== 0) {
2360
+ writer.writeInt64(
2361
+ 1,
2362
+ f
2363
+ );
2364
+ }
2365
+ f = message.getName();
2366
+ if (f.length > 0) {
2367
+ writer.writeString(
2368
+ 2,
2369
+ f
2370
+ );
2371
+ }
2372
+ f = message.getEmail();
2373
+ if (f.length > 0) {
2374
+ writer.writeString(
2375
+ 3,
2376
+ f
2377
+ );
2378
+ }
2379
+ f = message.getRole();
2380
+ if (f.length > 0) {
2381
+ writer.writeString(
2382
+ 4,
2383
+ f
2384
+ );
2385
+ }
2386
+ f = message.getToken();
2387
+ if (f.length > 0) {
2388
+ writer.writeString(
2389
+ 5,
2390
+ f
2391
+ );
2392
+ }
2393
+ };
2394
+
2395
+
2396
+ /**
2397
+ * optional int64 id = 1;
2398
+ * @return {number}
2399
+ */
2400
+ proto.UserResponse.prototype.getId = function() {
2401
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2402
+ };
2403
+
2404
+
2405
+ /**
2406
+ * @param {number} value
2407
+ * @return {!proto.UserResponse} returns this
2408
+ */
2409
+ proto.UserResponse.prototype.setId = function(value) {
2410
+ return jspb.Message.setProto3IntField(this, 1, value);
2411
+ };
2412
+
2413
+
2414
+ /**
2415
+ * optional string name = 2;
2416
+ * @return {string}
2417
+ */
2418
+ proto.UserResponse.prototype.getName = function() {
2419
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * @param {string} value
2425
+ * @return {!proto.UserResponse} returns this
2426
+ */
2427
+ proto.UserResponse.prototype.setName = function(value) {
2428
+ return jspb.Message.setProto3StringField(this, 2, value);
2429
+ };
2430
+
2431
+
2432
+ /**
2433
+ * optional string email = 3;
2434
+ * @return {string}
2435
+ */
2436
+ proto.UserResponse.prototype.getEmail = function() {
2437
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2438
+ };
2439
+
2440
+
2441
+ /**
2442
+ * @param {string} value
2443
+ * @return {!proto.UserResponse} returns this
2444
+ */
2445
+ proto.UserResponse.prototype.setEmail = function(value) {
2446
+ return jspb.Message.setProto3StringField(this, 3, value);
2447
+ };
2448
+
2449
+
2450
+ /**
2451
+ * optional string role = 4;
2452
+ * @return {string}
2453
+ */
2454
+ proto.UserResponse.prototype.getRole = function() {
2455
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * @param {string} value
2461
+ * @return {!proto.UserResponse} returns this
2462
+ */
2463
+ proto.UserResponse.prototype.setRole = function(value) {
2464
+ return jspb.Message.setProto3StringField(this, 4, value);
2465
+ };
2466
+
2467
+
2468
+ /**
2469
+ * optional string token = 5;
2470
+ * @return {string}
2471
+ */
2472
+ proto.UserResponse.prototype.getToken = function() {
2473
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2474
+ };
2475
+
2476
+
2477
+ /**
2478
+ * @param {string} value
2479
+ * @return {!proto.UserResponse} returns this
2480
+ */
2481
+ proto.UserResponse.prototype.setToken = function(value) {
2482
+ return jspb.Message.setProto3StringField(this, 5, value);
2483
+ };
2484
+
2485
+
2486
+
2487
+
2488
+
2489
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2490
+ /**
2491
+ * Creates an object representation of this proto.
2492
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2493
+ * Optional fields that are not set will be set to undefined.
2494
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2495
+ * For the list of reserved names please see:
2496
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2497
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2498
+ * JSPB instance for transitional soy proto support:
2499
+ * http://goto/soy-param-migration
2500
+ * @return {!Object}
2501
+ */
2502
+ proto.AccessResponse.prototype.toObject = function(opt_includeInstance) {
2503
+ return proto.AccessResponse.toObject(opt_includeInstance, this);
2504
+ };
2505
+
2506
+
2507
+ /**
2508
+ * Static version of the {@see toObject} method.
2509
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2510
+ * the JSPB instance for transitional soy proto support:
2511
+ * http://goto/soy-param-migration
2512
+ * @param {!proto.AccessResponse} msg The msg instance to transform.
2513
+ * @return {!Object}
2514
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2515
+ */
2516
+ proto.AccessResponse.toObject = function(includeInstance, msg) {
2517
+ var f, obj = {
2518
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2519
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
2520
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, ""),
2521
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
2522
+ keyprefix: jspb.Message.getFieldWithDefault(msg, 5, "")
2523
+ };
2524
+
2525
+ if (includeInstance) {
2526
+ obj.$jspbMessageInstance = msg;
2527
+ }
2528
+ return obj;
2529
+ };
2530
+ }
2531
+
2532
+
2533
+ /**
2534
+ * Deserializes binary data (in protobuf wire format).
2535
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2536
+ * @return {!proto.AccessResponse}
2537
+ */
2538
+ proto.AccessResponse.deserializeBinary = function(bytes) {
2539
+ var reader = new jspb.BinaryReader(bytes);
2540
+ var msg = new proto.AccessResponse;
2541
+ return proto.AccessResponse.deserializeBinaryFromReader(msg, reader);
2542
+ };
2543
+
2544
+
2545
+ /**
2546
+ * Deserializes binary data (in protobuf wire format) from the
2547
+ * given reader into the given message object.
2548
+ * @param {!proto.AccessResponse} msg The message object to deserialize into.
2549
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2550
+ * @return {!proto.AccessResponse}
2551
+ */
2552
+ proto.AccessResponse.deserializeBinaryFromReader = function(msg, reader) {
2553
+ while (reader.nextField()) {
2554
+ if (reader.isEndGroup()) {
2555
+ break;
2556
+ }
2557
+ var field = reader.getFieldNumber();
2558
+ switch (field) {
2559
+ case 1:
2560
+ var value = /** @type {string} */ (reader.readString());
2561
+ msg.setName(value);
2562
+ break;
2563
+ case 2:
2564
+ var value = /** @type {number} */ (reader.readInt64());
2565
+ msg.setUserid(value);
2566
+ break;
2567
+ case 3:
2568
+ var value = /** @type {string} */ (reader.readString());
2569
+ msg.setScopes(value);
2570
+ break;
2571
+ case 4:
2572
+ var value = /** @type {string} */ (reader.readString());
2573
+ msg.setStatus(value);
2574
+ break;
2575
+ case 5:
2576
+ var value = /** @type {string} */ (reader.readString());
2577
+ msg.setKeyprefix(value);
2578
+ break;
2579
+ default:
2580
+ reader.skipField();
2581
+ break;
2582
+ }
2583
+ }
2584
+ return msg;
2585
+ };
2586
+
2587
+
2588
+ /**
2589
+ * Serializes the message to binary data (in protobuf wire format).
2590
+ * @return {!Uint8Array}
2591
+ */
2592
+ proto.AccessResponse.prototype.serializeBinary = function() {
2593
+ var writer = new jspb.BinaryWriter();
2594
+ proto.AccessResponse.serializeBinaryToWriter(this, writer);
2595
+ return writer.getResultBuffer();
2596
+ };
2597
+
2598
+
2599
+ /**
2600
+ * Serializes the given message to binary data (in protobuf wire
2601
+ * format), writing to the given BinaryWriter.
2602
+ * @param {!proto.AccessResponse} message
2603
+ * @param {!jspb.BinaryWriter} writer
2604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2605
+ */
2606
+ proto.AccessResponse.serializeBinaryToWriter = function(message, writer) {
2607
+ var f = undefined;
2608
+ f = message.getName();
2609
+ if (f.length > 0) {
2610
+ writer.writeString(
2611
+ 1,
2612
+ f
2613
+ );
2614
+ }
2615
+ f = message.getUserid();
2616
+ if (f !== 0) {
2617
+ writer.writeInt64(
2618
+ 2,
2619
+ f
2620
+ );
2621
+ }
2622
+ f = message.getScopes();
2623
+ if (f.length > 0) {
2624
+ writer.writeString(
2625
+ 3,
2626
+ f
2627
+ );
2628
+ }
2629
+ f = message.getStatus();
2630
+ if (f.length > 0) {
2631
+ writer.writeString(
2632
+ 4,
2633
+ f
2634
+ );
2635
+ }
2636
+ f = message.getKeyprefix();
2637
+ if (f.length > 0) {
2638
+ writer.writeString(
2639
+ 5,
2640
+ f
2641
+ );
2642
+ }
2643
+ };
2644
+
2645
+
2646
+ /**
2647
+ * optional string name = 1;
2648
+ * @return {string}
2649
+ */
2650
+ proto.AccessResponse.prototype.getName = function() {
2651
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2652
+ };
2653
+
2654
+
2655
+ /**
2656
+ * @param {string} value
2657
+ * @return {!proto.AccessResponse} returns this
2658
+ */
2659
+ proto.AccessResponse.prototype.setName = function(value) {
2660
+ return jspb.Message.setProto3StringField(this, 1, value);
2661
+ };
2662
+
2663
+
2664
+ /**
2665
+ * optional int64 userId = 2;
2666
+ * @return {number}
2667
+ */
2668
+ proto.AccessResponse.prototype.getUserid = function() {
2669
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2670
+ };
2671
+
2672
+
2673
+ /**
2674
+ * @param {number} value
2675
+ * @return {!proto.AccessResponse} returns this
2676
+ */
2677
+ proto.AccessResponse.prototype.setUserid = function(value) {
2678
+ return jspb.Message.setProto3IntField(this, 2, value);
2679
+ };
2680
+
2681
+
2682
+ /**
2683
+ * optional string scopes = 3;
2684
+ * @return {string}
2685
+ */
2686
+ proto.AccessResponse.prototype.getScopes = function() {
2687
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * @param {string} value
2693
+ * @return {!proto.AccessResponse} returns this
2694
+ */
2695
+ proto.AccessResponse.prototype.setScopes = function(value) {
2696
+ return jspb.Message.setProto3StringField(this, 3, value);
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * optional string status = 4;
2702
+ * @return {string}
2703
+ */
2704
+ proto.AccessResponse.prototype.getStatus = function() {
2705
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2706
+ };
2707
+
2708
+
2709
+ /**
2710
+ * @param {string} value
2711
+ * @return {!proto.AccessResponse} returns this
2712
+ */
2713
+ proto.AccessResponse.prototype.setStatus = function(value) {
2714
+ return jspb.Message.setProto3StringField(this, 4, value);
2715
+ };
2716
+
2717
+
2718
+ /**
2719
+ * optional string keyPrefix = 5;
2720
+ * @return {string}
2721
+ */
2722
+ proto.AccessResponse.prototype.getKeyprefix = function() {
2723
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2724
+ };
2725
+
2726
+
2727
+ /**
2728
+ * @param {string} value
2729
+ * @return {!proto.AccessResponse} returns this
2730
+ */
2731
+ proto.AccessResponse.prototype.setKeyprefix = function(value) {
2732
+ return jspb.Message.setProto3StringField(this, 5, value);
2733
+ };
2734
+
2735
+
2736
+
2737
+
2738
+
2739
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2740
+ /**
2741
+ * Creates an object representation of this proto.
2742
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2743
+ * Optional fields that are not set will be set to undefined.
2744
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2745
+ * For the list of reserved names please see:
2746
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2747
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2748
+ * JSPB instance for transitional soy proto support:
2749
+ * http://goto/soy-param-migration
2750
+ * @return {!Object}
2751
+ */
2752
+ proto.AccessApiManagersResponse.prototype.toObject = function(opt_includeInstance) {
2753
+ return proto.AccessApiManagersResponse.toObject(opt_includeInstance, this);
2754
+ };
2755
+
2756
+
2757
+ /**
2758
+ * Static version of the {@see toObject} method.
2759
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2760
+ * the JSPB instance for transitional soy proto support:
2761
+ * http://goto/soy-param-migration
2762
+ * @param {!proto.AccessApiManagersResponse} msg The msg instance to transform.
2763
+ * @return {!Object}
2764
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2765
+ */
2766
+ proto.AccessApiManagersResponse.toObject = function(includeInstance, msg) {
2767
+ var f, obj = {
2768
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2769
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
2770
+ scopes: jspb.Message.getFieldWithDefault(msg, 3, ""),
2771
+ status: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
2772
+ keyprefix: jspb.Message.getFieldWithDefault(msg, 5, ""),
2773
+ val: jspb.Message.getFieldWithDefault(msg, 6, ""),
2774
+ createdat: jspb.Message.getFieldWithDefault(msg, 7, ""),
2775
+ updatedat: jspb.Message.getFieldWithDefault(msg, 8, "")
2776
+ };
2777
+
2778
+ if (includeInstance) {
2779
+ obj.$jspbMessageInstance = msg;
2780
+ }
2781
+ return obj;
2782
+ };
2783
+ }
2784
+
2785
+
2786
+ /**
2787
+ * Deserializes binary data (in protobuf wire format).
2788
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2789
+ * @return {!proto.AccessApiManagersResponse}
2790
+ */
2791
+ proto.AccessApiManagersResponse.deserializeBinary = function(bytes) {
2792
+ var reader = new jspb.BinaryReader(bytes);
2793
+ var msg = new proto.AccessApiManagersResponse;
2794
+ return proto.AccessApiManagersResponse.deserializeBinaryFromReader(msg, reader);
2795
+ };
2796
+
2797
+
2798
+ /**
2799
+ * Deserializes binary data (in protobuf wire format) from the
2800
+ * given reader into the given message object.
2801
+ * @param {!proto.AccessApiManagersResponse} msg The message object to deserialize into.
2802
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2803
+ * @return {!proto.AccessApiManagersResponse}
2804
+ */
2805
+ proto.AccessApiManagersResponse.deserializeBinaryFromReader = function(msg, reader) {
2806
+ while (reader.nextField()) {
2807
+ if (reader.isEndGroup()) {
2808
+ break;
2809
+ }
2810
+ var field = reader.getFieldNumber();
2811
+ switch (field) {
2812
+ case 1:
2813
+ var value = /** @type {string} */ (reader.readString());
2814
+ msg.setName(value);
2815
+ break;
2816
+ case 2:
2817
+ var value = /** @type {number} */ (reader.readInt64());
2818
+ msg.setUserid(value);
2819
+ break;
2820
+ case 3:
2821
+ var value = /** @type {string} */ (reader.readString());
2822
+ msg.setScopes(value);
2823
+ break;
2824
+ case 4:
2825
+ var value = /** @type {boolean} */ (reader.readBool());
2826
+ msg.setStatus(value);
2827
+ break;
2828
+ case 5:
2829
+ var value = /** @type {string} */ (reader.readString());
2830
+ msg.setKeyprefix(value);
2831
+ break;
2832
+ case 6:
2833
+ var value = /** @type {string} */ (reader.readString());
2834
+ msg.setVal(value);
2835
+ break;
2836
+ case 7:
2837
+ var value = /** @type {string} */ (reader.readString());
2838
+ msg.setCreatedat(value);
2839
+ break;
2840
+ case 8:
2841
+ var value = /** @type {string} */ (reader.readString());
2842
+ msg.setUpdatedat(value);
2843
+ break;
2844
+ default:
2845
+ reader.skipField();
2846
+ break;
2847
+ }
2848
+ }
2849
+ return msg;
2850
+ };
2851
+
2852
+
2853
+ /**
2854
+ * Serializes the message to binary data (in protobuf wire format).
2855
+ * @return {!Uint8Array}
2856
+ */
2857
+ proto.AccessApiManagersResponse.prototype.serializeBinary = function() {
2858
+ var writer = new jspb.BinaryWriter();
2859
+ proto.AccessApiManagersResponse.serializeBinaryToWriter(this, writer);
2860
+ return writer.getResultBuffer();
2861
+ };
2862
+
2863
+
2864
+ /**
2865
+ * Serializes the given message to binary data (in protobuf wire
2866
+ * format), writing to the given BinaryWriter.
2867
+ * @param {!proto.AccessApiManagersResponse} message
2868
+ * @param {!jspb.BinaryWriter} writer
2869
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2870
+ */
2871
+ proto.AccessApiManagersResponse.serializeBinaryToWriter = function(message, writer) {
2872
+ var f = undefined;
2873
+ f = message.getName();
2874
+ if (f.length > 0) {
2875
+ writer.writeString(
2876
+ 1,
2877
+ f
2878
+ );
2879
+ }
2880
+ f = message.getUserid();
2881
+ if (f !== 0) {
2882
+ writer.writeInt64(
2883
+ 2,
2884
+ f
2885
+ );
2886
+ }
2887
+ f = message.getScopes();
2888
+ if (f.length > 0) {
2889
+ writer.writeString(
2890
+ 3,
2891
+ f
2892
+ );
2893
+ }
2894
+ f = message.getStatus();
2895
+ if (f) {
2896
+ writer.writeBool(
2897
+ 4,
2898
+ f
2899
+ );
2900
+ }
2901
+ f = message.getKeyprefix();
2902
+ if (f.length > 0) {
2903
+ writer.writeString(
2904
+ 5,
2905
+ f
2906
+ );
2907
+ }
2908
+ f = message.getVal();
2909
+ if (f.length > 0) {
2910
+ writer.writeString(
2911
+ 6,
2912
+ f
2913
+ );
2914
+ }
2915
+ f = message.getCreatedat();
2916
+ if (f.length > 0) {
2917
+ writer.writeString(
2918
+ 7,
2919
+ f
2920
+ );
2921
+ }
2922
+ f = message.getUpdatedat();
2923
+ if (f.length > 0) {
2924
+ writer.writeString(
2925
+ 8,
2926
+ f
2927
+ );
2928
+ }
2929
+ };
2930
+
2931
+
2932
+ /**
2933
+ * optional string name = 1;
2934
+ * @return {string}
2935
+ */
2936
+ proto.AccessApiManagersResponse.prototype.getName = function() {
2937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2938
+ };
2939
+
2940
+
2941
+ /**
2942
+ * @param {string} value
2943
+ * @return {!proto.AccessApiManagersResponse} returns this
2944
+ */
2945
+ proto.AccessApiManagersResponse.prototype.setName = function(value) {
2946
+ return jspb.Message.setProto3StringField(this, 1, value);
2947
+ };
2948
+
2949
+
2950
+ /**
2951
+ * optional int64 userId = 2;
2952
+ * @return {number}
2953
+ */
2954
+ proto.AccessApiManagersResponse.prototype.getUserid = function() {
2955
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2956
+ };
2957
+
2958
+
2959
+ /**
2960
+ * @param {number} value
2961
+ * @return {!proto.AccessApiManagersResponse} returns this
2962
+ */
2963
+ proto.AccessApiManagersResponse.prototype.setUserid = function(value) {
2964
+ return jspb.Message.setProto3IntField(this, 2, value);
2965
+ };
2966
+
2967
+
2968
+ /**
2969
+ * optional string scopes = 3;
2970
+ * @return {string}
2971
+ */
2972
+ proto.AccessApiManagersResponse.prototype.getScopes = function() {
2973
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2974
+ };
2975
+
2976
+
2977
+ /**
2978
+ * @param {string} value
2979
+ * @return {!proto.AccessApiManagersResponse} returns this
2980
+ */
2981
+ proto.AccessApiManagersResponse.prototype.setScopes = function(value) {
2982
+ return jspb.Message.setProto3StringField(this, 3, value);
2983
+ };
2984
+
2985
+
2986
+ /**
2987
+ * optional bool status = 4;
2988
+ * @return {boolean}
2989
+ */
2990
+ proto.AccessApiManagersResponse.prototype.getStatus = function() {
2991
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2992
+ };
2993
+
2994
+
2995
+ /**
2996
+ * @param {boolean} value
2997
+ * @return {!proto.AccessApiManagersResponse} returns this
2998
+ */
2999
+ proto.AccessApiManagersResponse.prototype.setStatus = function(value) {
3000
+ return jspb.Message.setProto3BooleanField(this, 4, value);
3001
+ };
3002
+
3003
+
3004
+ /**
3005
+ * optional string keyPrefix = 5;
3006
+ * @return {string}
3007
+ */
3008
+ proto.AccessApiManagersResponse.prototype.getKeyprefix = function() {
3009
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3010
+ };
3011
+
3012
+
3013
+ /**
3014
+ * @param {string} value
3015
+ * @return {!proto.AccessApiManagersResponse} returns this
3016
+ */
3017
+ proto.AccessApiManagersResponse.prototype.setKeyprefix = function(value) {
3018
+ return jspb.Message.setProto3StringField(this, 5, value);
3019
+ };
3020
+
3021
+
3022
+ /**
3023
+ * optional string val = 6;
3024
+ * @return {string}
3025
+ */
3026
+ proto.AccessApiManagersResponse.prototype.getVal = function() {
3027
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3028
+ };
3029
+
3030
+
3031
+ /**
3032
+ * @param {string} value
3033
+ * @return {!proto.AccessApiManagersResponse} returns this
3034
+ */
3035
+ proto.AccessApiManagersResponse.prototype.setVal = function(value) {
3036
+ return jspb.Message.setProto3StringField(this, 6, value);
3037
+ };
3038
+
3039
+
3040
+ /**
3041
+ * optional string createdAt = 7;
3042
+ * @return {string}
3043
+ */
3044
+ proto.AccessApiManagersResponse.prototype.getCreatedat = function() {
3045
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3046
+ };
3047
+
3048
+
3049
+ /**
3050
+ * @param {string} value
3051
+ * @return {!proto.AccessApiManagersResponse} returns this
3052
+ */
3053
+ proto.AccessApiManagersResponse.prototype.setCreatedat = function(value) {
3054
+ return jspb.Message.setProto3StringField(this, 7, value);
3055
+ };
3056
+
3057
+
3058
+ /**
3059
+ * optional string updatedAt = 8;
3060
+ * @return {string}
3061
+ */
3062
+ proto.AccessApiManagersResponse.prototype.getUpdatedat = function() {
3063
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3064
+ };
3065
+
3066
+
3067
+ /**
3068
+ * @param {string} value
3069
+ * @return {!proto.AccessApiManagersResponse} returns this
3070
+ */
3071
+ proto.AccessApiManagersResponse.prototype.setUpdatedat = function(value) {
3072
+ return jspb.Message.setProto3StringField(this, 8, value);
3073
+ };
3074
+
3075
+
3076
+
3077
+ /**
3078
+ * List of repeated fields within this message type.
3079
+ * @private {!Array<number>}
3080
+ * @const
3081
+ */
3082
+ proto.ListAccessResponse.repeatedFields_ = [1];
3083
+
3084
+
3085
+
3086
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3087
+ /**
3088
+ * Creates an object representation of this proto.
3089
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3090
+ * Optional fields that are not set will be set to undefined.
3091
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3092
+ * For the list of reserved names please see:
3093
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3094
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3095
+ * JSPB instance for transitional soy proto support:
3096
+ * http://goto/soy-param-migration
3097
+ * @return {!Object}
3098
+ */
3099
+ proto.ListAccessResponse.prototype.toObject = function(opt_includeInstance) {
3100
+ return proto.ListAccessResponse.toObject(opt_includeInstance, this);
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * Static version of the {@see toObject} method.
3106
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3107
+ * the JSPB instance for transitional soy proto support:
3108
+ * http://goto/soy-param-migration
3109
+ * @param {!proto.ListAccessResponse} msg The msg instance to transform.
3110
+ * @return {!Object}
3111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3112
+ */
3113
+ proto.ListAccessResponse.toObject = function(includeInstance, msg) {
3114
+ var f, obj = {
3115
+ dataList: jspb.Message.toObjectList(msg.getDataList(),
3116
+ proto.AccessResponse.toObject, includeInstance)
3117
+ };
3118
+
3119
+ if (includeInstance) {
3120
+ obj.$jspbMessageInstance = msg;
3121
+ }
3122
+ return obj;
3123
+ };
3124
+ }
3125
+
3126
+
3127
+ /**
3128
+ * Deserializes binary data (in protobuf wire format).
3129
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3130
+ * @return {!proto.ListAccessResponse}
3131
+ */
3132
+ proto.ListAccessResponse.deserializeBinary = function(bytes) {
3133
+ var reader = new jspb.BinaryReader(bytes);
3134
+ var msg = new proto.ListAccessResponse;
3135
+ return proto.ListAccessResponse.deserializeBinaryFromReader(msg, reader);
3136
+ };
3137
+
3138
+
3139
+ /**
3140
+ * Deserializes binary data (in protobuf wire format) from the
3141
+ * given reader into the given message object.
3142
+ * @param {!proto.ListAccessResponse} msg The message object to deserialize into.
3143
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3144
+ * @return {!proto.ListAccessResponse}
3145
+ */
3146
+ proto.ListAccessResponse.deserializeBinaryFromReader = function(msg, reader) {
3147
+ while (reader.nextField()) {
3148
+ if (reader.isEndGroup()) {
3149
+ break;
3150
+ }
3151
+ var field = reader.getFieldNumber();
3152
+ switch (field) {
3153
+ case 1:
3154
+ var value = new proto.AccessResponse;
3155
+ reader.readMessage(value,proto.AccessResponse.deserializeBinaryFromReader);
3156
+ msg.addData(value);
3157
+ break;
3158
+ default:
3159
+ reader.skipField();
3160
+ break;
3161
+ }
3162
+ }
3163
+ return msg;
3164
+ };
3165
+
3166
+
3167
+ /**
3168
+ * Serializes the message to binary data (in protobuf wire format).
3169
+ * @return {!Uint8Array}
3170
+ */
3171
+ proto.ListAccessResponse.prototype.serializeBinary = function() {
3172
+ var writer = new jspb.BinaryWriter();
3173
+ proto.ListAccessResponse.serializeBinaryToWriter(this, writer);
3174
+ return writer.getResultBuffer();
3175
+ };
3176
+
3177
+
3178
+ /**
3179
+ * Serializes the given message to binary data (in protobuf wire
3180
+ * format), writing to the given BinaryWriter.
3181
+ * @param {!proto.ListAccessResponse} message
3182
+ * @param {!jspb.BinaryWriter} writer
3183
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3184
+ */
3185
+ proto.ListAccessResponse.serializeBinaryToWriter = function(message, writer) {
3186
+ var f = undefined;
3187
+ f = message.getDataList();
3188
+ if (f.length > 0) {
3189
+ writer.writeRepeatedMessage(
3190
+ 1,
3191
+ f,
3192
+ proto.AccessResponse.serializeBinaryToWriter
3193
+ );
3194
+ }
3195
+ };
3196
+
3197
+
3198
+ /**
3199
+ * repeated AccessResponse data = 1;
3200
+ * @return {!Array<!proto.AccessResponse>}
3201
+ */
3202
+ proto.ListAccessResponse.prototype.getDataList = function() {
3203
+ return /** @type{!Array<!proto.AccessResponse>} */ (
3204
+ jspb.Message.getRepeatedWrapperField(this, proto.AccessResponse, 1));
3205
+ };
3206
+
3207
+
3208
+ /**
3209
+ * @param {!Array<!proto.AccessResponse>} value
3210
+ * @return {!proto.ListAccessResponse} returns this
3211
+ */
3212
+ proto.ListAccessResponse.prototype.setDataList = function(value) {
3213
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3214
+ };
3215
+
3216
+
3217
+ /**
3218
+ * @param {!proto.AccessResponse=} opt_value
3219
+ * @param {number=} opt_index
3220
+ * @return {!proto.AccessResponse}
3221
+ */
3222
+ proto.ListAccessResponse.prototype.addData = function(opt_value, opt_index) {
3223
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.AccessResponse, opt_index);
3224
+ };
3225
+
3226
+
3227
+ /**
3228
+ * Clears the list making it empty but non-null.
3229
+ * @return {!proto.ListAccessResponse} returns this
3230
+ */
3231
+ proto.ListAccessResponse.prototype.clearDataList = function() {
3232
+ return this.setDataList([]);
3233
+ };
3234
+
3235
+
3236
+ goog.object.extend(exports, proto);