@aldiokta/protocgen 1.0.78 → 1.0.80

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