@aldiokta/protocgen 1.0.8 → 1.0.9

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