@aldiokta/protocgen 1.0.34 → 1.0.36

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