@aldiokta/protocgen 1.0.0 → 1.0.2

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