@aldiokta/protocgen 1.0.17 → 1.0.19

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