@aldiokta/protocgen 1.0.32 → 1.0.34

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