@aldiokta/protocgen 1.1.5 → 1.1.7
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.
- package/package.json +1 -1
- package/prisca/v1/bidding/bidding_grpc_pb.js +119 -0
- package/prisca/v1/bidding/bidding_pb.js +3152 -0
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +20 -42
- package/prisca/v1/core/file_upload/file_upload_pb.js +264 -256
- package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +3820 -0
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +20 -50
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +22 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +496 -0
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
- package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +34 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +955 -3135
- package/prisca/v1/quotation/quotation_grpc_pb.js +151 -0
- package/prisca/v1/quotation/quotation_pb.js +3941 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
|
@@ -81,7 +81,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
81
81
|
* @constructor
|
|
82
82
|
*/
|
|
83
83
|
proto.ActivityRequest = function(opt_data) {
|
|
84
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
84
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
85
85
|
};
|
|
86
86
|
goog.inherits(proto.ActivityRequest, jspb.Message);
|
|
87
87
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -544,13 +544,6 @@ proto.Activity.prototype.setNote = function(value) {
|
|
|
544
544
|
|
|
545
545
|
|
|
546
546
|
|
|
547
|
-
/**
|
|
548
|
-
* List of repeated fields within this message type.
|
|
549
|
-
* @private {!Array<number>}
|
|
550
|
-
* @const
|
|
551
|
-
*/
|
|
552
|
-
proto.ActivityRequest.repeatedFields_ = [1];
|
|
553
|
-
|
|
554
547
|
|
|
555
548
|
|
|
556
549
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -582,9 +575,8 @@ proto.ActivityRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
582
575
|
*/
|
|
583
576
|
proto.ActivityRequest.toObject = function(includeInstance, msg) {
|
|
584
577
|
var f, obj = {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
type: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
578
|
+
documentType: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
579
|
+
docReferencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
588
580
|
};
|
|
589
581
|
|
|
590
582
|
if (includeInstance) {
|
|
@@ -622,13 +614,12 @@ proto.ActivityRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
622
614
|
var field = reader.getFieldNumber();
|
|
623
615
|
switch (field) {
|
|
624
616
|
case 1:
|
|
625
|
-
var value =
|
|
626
|
-
|
|
627
|
-
msg.addDocumentsRequest(value);
|
|
617
|
+
var value = /** @type {string} */ (reader.readString());
|
|
618
|
+
msg.setDocumentType(value);
|
|
628
619
|
break;
|
|
629
620
|
case 2:
|
|
630
621
|
var value = /** @type {string} */ (reader.readString());
|
|
631
|
-
msg.
|
|
622
|
+
msg.setDocReferencesId(value);
|
|
632
623
|
break;
|
|
633
624
|
default:
|
|
634
625
|
reader.skipField();
|
|
@@ -659,15 +650,14 @@ proto.ActivityRequest.prototype.serializeBinary = function() {
|
|
|
659
650
|
*/
|
|
660
651
|
proto.ActivityRequest.serializeBinaryToWriter = function(message, writer) {
|
|
661
652
|
var f = undefined;
|
|
662
|
-
f = message.
|
|
653
|
+
f = message.getDocumentType();
|
|
663
654
|
if (f.length > 0) {
|
|
664
|
-
writer.
|
|
655
|
+
writer.writeString(
|
|
665
656
|
1,
|
|
666
|
-
f
|
|
667
|
-
proto.DocumentRequest.serializeBinaryToWriter
|
|
657
|
+
f
|
|
668
658
|
);
|
|
669
659
|
}
|
|
670
|
-
f = message.
|
|
660
|
+
f = message.getDocReferencesId();
|
|
671
661
|
if (f.length > 0) {
|
|
672
662
|
writer.writeString(
|
|
673
663
|
2,
|
|
@@ -678,48 +668,28 @@ proto.ActivityRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
678
668
|
|
|
679
669
|
|
|
680
670
|
/**
|
|
681
|
-
*
|
|
682
|
-
* @return {
|
|
683
|
-
*/
|
|
684
|
-
proto.ActivityRequest.prototype.getDocumentsRequestList = function() {
|
|
685
|
-
return /** @type{!Array<!proto.DocumentRequest>} */ (
|
|
686
|
-
jspb.Message.getRepeatedWrapperField(this, proto.DocumentRequest, 1));
|
|
687
|
-
};
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* @param {!Array<!proto.DocumentRequest>} value
|
|
692
|
-
* @return {!proto.ActivityRequest} returns this
|
|
693
|
-
*/
|
|
694
|
-
proto.ActivityRequest.prototype.setDocumentsRequestList = function(value) {
|
|
695
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
696
|
-
};
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* @param {!proto.DocumentRequest=} opt_value
|
|
701
|
-
* @param {number=} opt_index
|
|
702
|
-
* @return {!proto.DocumentRequest}
|
|
671
|
+
* optional string document_type = 1;
|
|
672
|
+
* @return {string}
|
|
703
673
|
*/
|
|
704
|
-
proto.ActivityRequest.prototype.
|
|
705
|
-
return jspb.Message.
|
|
674
|
+
proto.ActivityRequest.prototype.getDocumentType = function() {
|
|
675
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
706
676
|
};
|
|
707
677
|
|
|
708
678
|
|
|
709
679
|
/**
|
|
710
|
-
*
|
|
680
|
+
* @param {string} value
|
|
711
681
|
* @return {!proto.ActivityRequest} returns this
|
|
712
682
|
*/
|
|
713
|
-
proto.ActivityRequest.prototype.
|
|
714
|
-
return
|
|
683
|
+
proto.ActivityRequest.prototype.setDocumentType = function(value) {
|
|
684
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
715
685
|
};
|
|
716
686
|
|
|
717
687
|
|
|
718
688
|
/**
|
|
719
|
-
* optional string
|
|
689
|
+
* optional string doc_references_id = 2;
|
|
720
690
|
* @return {string}
|
|
721
691
|
*/
|
|
722
|
-
proto.ActivityRequest.prototype.
|
|
692
|
+
proto.ActivityRequest.prototype.getDocReferencesId = function() {
|
|
723
693
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
724
694
|
};
|
|
725
695
|
|
|
@@ -728,7 +698,7 @@ proto.ActivityRequest.prototype.getType = function() {
|
|
|
728
698
|
* @param {string} value
|
|
729
699
|
* @return {!proto.ActivityRequest} returns this
|
|
730
700
|
*/
|
|
731
|
-
proto.ActivityRequest.prototype.
|
|
701
|
+
proto.ActivityRequest.prototype.setDocReferencesId = function(value) {
|
|
732
702
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
733
703
|
};
|
|
734
704
|
|
|
@@ -72,6 +72,17 @@ function deserialize_GetLineOfApprovalByIdResponse(buffer_arg) {
|
|
|
72
72
|
return prisca_v1_core_line_of_approval_line_of_approval_pb.GetLineOfApprovalByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
function serialize_GetListAllLineOfApprovalResponse(arg) {
|
|
76
|
+
if (!(arg instanceof prisca_v1_core_line_of_approval_line_of_approval_pb.GetListAllLineOfApprovalResponse)) {
|
|
77
|
+
throw new Error('Expected argument of type GetListAllLineOfApprovalResponse');
|
|
78
|
+
}
|
|
79
|
+
return Buffer.from(arg.serializeBinary());
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function deserialize_GetListAllLineOfApprovalResponse(buffer_arg) {
|
|
83
|
+
return prisca_v1_core_line_of_approval_line_of_approval_pb.GetListAllLineOfApprovalResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
84
|
+
}
|
|
85
|
+
|
|
75
86
|
function serialize_GetListLineOfApprovalRequest(arg) {
|
|
76
87
|
if (!(arg instanceof prisca_v1_core_line_of_approval_line_of_approval_pb.GetListLineOfApprovalRequest)) {
|
|
77
88
|
throw new Error('Expected argument of type GetListLineOfApprovalRequest');
|
|
@@ -173,6 +184,17 @@ var LineOfApprovalServiceService = exports.LineOfApprovalServiceService = {
|
|
|
173
184
|
responseSerialize: serialize_GetListLineOfApprovalResponse,
|
|
174
185
|
responseDeserialize: deserialize_GetListLineOfApprovalResponse,
|
|
175
186
|
},
|
|
187
|
+
getListAllLineOfApprovals: {
|
|
188
|
+
path: '/LineOfApprovalService/GetListAllLineOfApprovals',
|
|
189
|
+
requestStream: false,
|
|
190
|
+
responseStream: false,
|
|
191
|
+
requestType: prisca_v1_core_line_of_approval_line_of_approval_pb.GetListLineOfApprovalRequest,
|
|
192
|
+
responseType: prisca_v1_core_line_of_approval_line_of_approval_pb.GetListAllLineOfApprovalResponse,
|
|
193
|
+
requestSerialize: serialize_GetListLineOfApprovalRequest,
|
|
194
|
+
requestDeserialize: deserialize_GetListLineOfApprovalRequest,
|
|
195
|
+
responseSerialize: serialize_GetListAllLineOfApprovalResponse,
|
|
196
|
+
responseDeserialize: deserialize_GetListAllLineOfApprovalResponse,
|
|
197
|
+
},
|
|
176
198
|
};
|
|
177
199
|
|
|
178
200
|
exports.LineOfApprovalServiceClient = grpc.makeGenericClientConstructor(LineOfApprovalServiceService, 'LineOfApprovalService');
|
|
@@ -26,12 +26,14 @@ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
|
26
26
|
var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
27
27
|
goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
|
|
28
28
|
goog.exportSymbol('proto.BaseLineOfApprovalRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.BaseListAllLineOfApproval', null, global);
|
|
29
30
|
goog.exportSymbol('proto.CreateLineOfApprovalRequest', null, global);
|
|
30
31
|
goog.exportSymbol('proto.CreateLineOfApprovalResponse', null, global);
|
|
31
32
|
goog.exportSymbol('proto.DeleteLineOfApprovalRequest', null, global);
|
|
32
33
|
goog.exportSymbol('proto.DeleteLineOfApprovalResponse', null, global);
|
|
33
34
|
goog.exportSymbol('proto.GetLineOfApprovalByIdRequest', null, global);
|
|
34
35
|
goog.exportSymbol('proto.GetLineOfApprovalByIdResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.GetListAllLineOfApprovalResponse', null, global);
|
|
35
37
|
goog.exportSymbol('proto.GetListLineOfApprovalRequest', null, global);
|
|
36
38
|
goog.exportSymbol('proto.GetListLineOfApprovalResponse', null, global);
|
|
37
39
|
goog.exportSymbol('proto.LineOfApproval', null, global);
|
|
@@ -289,6 +291,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
289
291
|
*/
|
|
290
292
|
proto.GetListLineOfApprovalResponse.displayName = 'proto.GetListLineOfApprovalResponse';
|
|
291
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Generated by JsPbCodeGenerator.
|
|
296
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
297
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
298
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
299
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
300
|
+
* valid.
|
|
301
|
+
* @extends {jspb.Message}
|
|
302
|
+
* @constructor
|
|
303
|
+
*/
|
|
304
|
+
proto.BaseListAllLineOfApproval = function(opt_data) {
|
|
305
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
306
|
+
};
|
|
307
|
+
goog.inherits(proto.BaseListAllLineOfApproval, jspb.Message);
|
|
308
|
+
if (goog.DEBUG && !COMPILED) {
|
|
309
|
+
/**
|
|
310
|
+
* @public
|
|
311
|
+
* @override
|
|
312
|
+
*/
|
|
313
|
+
proto.BaseListAllLineOfApproval.displayName = 'proto.BaseListAllLineOfApproval';
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Generated by JsPbCodeGenerator.
|
|
317
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
318
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
319
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
320
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
321
|
+
* valid.
|
|
322
|
+
* @extends {jspb.Message}
|
|
323
|
+
* @constructor
|
|
324
|
+
*/
|
|
325
|
+
proto.GetListAllLineOfApprovalResponse = function(opt_data) {
|
|
326
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListAllLineOfApprovalResponse.repeatedFields_, null);
|
|
327
|
+
};
|
|
328
|
+
goog.inherits(proto.GetListAllLineOfApprovalResponse, jspb.Message);
|
|
329
|
+
if (goog.DEBUG && !COMPILED) {
|
|
330
|
+
/**
|
|
331
|
+
* @public
|
|
332
|
+
* @override
|
|
333
|
+
*/
|
|
334
|
+
proto.GetListAllLineOfApprovalResponse.displayName = 'proto.GetListAllLineOfApprovalResponse';
|
|
335
|
+
}
|
|
292
336
|
|
|
293
337
|
|
|
294
338
|
|
|
@@ -2692,4 +2736,456 @@ proto.GetListLineOfApprovalResponse.prototype.hasMeta = function() {
|
|
|
2692
2736
|
};
|
|
2693
2737
|
|
|
2694
2738
|
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2743
|
+
/**
|
|
2744
|
+
* Creates an object representation of this proto.
|
|
2745
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2746
|
+
* Optional fields that are not set will be set to undefined.
|
|
2747
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2748
|
+
* For the list of reserved names please see:
|
|
2749
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2750
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2751
|
+
* JSPB instance for transitional soy proto support:
|
|
2752
|
+
* http://goto/soy-param-migration
|
|
2753
|
+
* @return {!Object}
|
|
2754
|
+
*/
|
|
2755
|
+
proto.BaseListAllLineOfApproval.prototype.toObject = function(opt_includeInstance) {
|
|
2756
|
+
return proto.BaseListAllLineOfApproval.toObject(opt_includeInstance, this);
|
|
2757
|
+
};
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
/**
|
|
2761
|
+
* Static version of the {@see toObject} method.
|
|
2762
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2763
|
+
* the JSPB instance for transitional soy proto support:
|
|
2764
|
+
* http://goto/soy-param-migration
|
|
2765
|
+
* @param {!proto.BaseListAllLineOfApproval} msg The msg instance to transform.
|
|
2766
|
+
* @return {!Object}
|
|
2767
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2768
|
+
*/
|
|
2769
|
+
proto.BaseListAllLineOfApproval.toObject = function(includeInstance, msg) {
|
|
2770
|
+
var f, obj = {
|
|
2771
|
+
lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
|
|
2772
|
+
documentNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2773
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2774
|
+
department: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2775
|
+
};
|
|
2776
|
+
|
|
2777
|
+
if (includeInstance) {
|
|
2778
|
+
obj.$jspbMessageInstance = msg;
|
|
2779
|
+
}
|
|
2780
|
+
return obj;
|
|
2781
|
+
};
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2787
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2788
|
+
* @return {!proto.BaseListAllLineOfApproval}
|
|
2789
|
+
*/
|
|
2790
|
+
proto.BaseListAllLineOfApproval.deserializeBinary = function(bytes) {
|
|
2791
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2792
|
+
var msg = new proto.BaseListAllLineOfApproval;
|
|
2793
|
+
return proto.BaseListAllLineOfApproval.deserializeBinaryFromReader(msg, reader);
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
/**
|
|
2798
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2799
|
+
* given reader into the given message object.
|
|
2800
|
+
* @param {!proto.BaseListAllLineOfApproval} msg The message object to deserialize into.
|
|
2801
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2802
|
+
* @return {!proto.BaseListAllLineOfApproval}
|
|
2803
|
+
*/
|
|
2804
|
+
proto.BaseListAllLineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
|
|
2805
|
+
while (reader.nextField()) {
|
|
2806
|
+
if (reader.isEndGroup()) {
|
|
2807
|
+
break;
|
|
2808
|
+
}
|
|
2809
|
+
var field = reader.getFieldNumber();
|
|
2810
|
+
switch (field) {
|
|
2811
|
+
case 1:
|
|
2812
|
+
var value = new proto.LineOfApproval;
|
|
2813
|
+
reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
|
|
2814
|
+
msg.setLineOfApproval(value);
|
|
2815
|
+
break;
|
|
2816
|
+
case 2:
|
|
2817
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2818
|
+
msg.setDocumentNumber(value);
|
|
2819
|
+
break;
|
|
2820
|
+
case 3:
|
|
2821
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2822
|
+
msg.setTitle(value);
|
|
2823
|
+
break;
|
|
2824
|
+
case 4:
|
|
2825
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2826
|
+
msg.setDepartment(value);
|
|
2827
|
+
break;
|
|
2828
|
+
default:
|
|
2829
|
+
reader.skipField();
|
|
2830
|
+
break;
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
return msg;
|
|
2834
|
+
};
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2839
|
+
* @return {!Uint8Array}
|
|
2840
|
+
*/
|
|
2841
|
+
proto.BaseListAllLineOfApproval.prototype.serializeBinary = function() {
|
|
2842
|
+
var writer = new jspb.BinaryWriter();
|
|
2843
|
+
proto.BaseListAllLineOfApproval.serializeBinaryToWriter(this, writer);
|
|
2844
|
+
return writer.getResultBuffer();
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
|
|
2848
|
+
/**
|
|
2849
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2850
|
+
* format), writing to the given BinaryWriter.
|
|
2851
|
+
* @param {!proto.BaseListAllLineOfApproval} message
|
|
2852
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2853
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2854
|
+
*/
|
|
2855
|
+
proto.BaseListAllLineOfApproval.serializeBinaryToWriter = function(message, writer) {
|
|
2856
|
+
var f = undefined;
|
|
2857
|
+
f = message.getLineOfApproval();
|
|
2858
|
+
if (f != null) {
|
|
2859
|
+
writer.writeMessage(
|
|
2860
|
+
1,
|
|
2861
|
+
f,
|
|
2862
|
+
proto.LineOfApproval.serializeBinaryToWriter
|
|
2863
|
+
);
|
|
2864
|
+
}
|
|
2865
|
+
f = message.getDocumentNumber();
|
|
2866
|
+
if (f.length > 0) {
|
|
2867
|
+
writer.writeString(
|
|
2868
|
+
2,
|
|
2869
|
+
f
|
|
2870
|
+
);
|
|
2871
|
+
}
|
|
2872
|
+
f = message.getTitle();
|
|
2873
|
+
if (f.length > 0) {
|
|
2874
|
+
writer.writeString(
|
|
2875
|
+
3,
|
|
2876
|
+
f
|
|
2877
|
+
);
|
|
2878
|
+
}
|
|
2879
|
+
f = message.getDepartment();
|
|
2880
|
+
if (f.length > 0) {
|
|
2881
|
+
writer.writeString(
|
|
2882
|
+
4,
|
|
2883
|
+
f
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* optional LineOfApproval line_of_approval = 1;
|
|
2891
|
+
* @return {?proto.LineOfApproval}
|
|
2892
|
+
*/
|
|
2893
|
+
proto.BaseListAllLineOfApproval.prototype.getLineOfApproval = function() {
|
|
2894
|
+
return /** @type{?proto.LineOfApproval} */ (
|
|
2895
|
+
jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
/**
|
|
2900
|
+
* @param {?proto.LineOfApproval|undefined} value
|
|
2901
|
+
* @return {!proto.BaseListAllLineOfApproval} returns this
|
|
2902
|
+
*/
|
|
2903
|
+
proto.BaseListAllLineOfApproval.prototype.setLineOfApproval = function(value) {
|
|
2904
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* Clears the message field making it undefined.
|
|
2910
|
+
* @return {!proto.BaseListAllLineOfApproval} returns this
|
|
2911
|
+
*/
|
|
2912
|
+
proto.BaseListAllLineOfApproval.prototype.clearLineOfApproval = function() {
|
|
2913
|
+
return this.setLineOfApproval(undefined);
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Returns whether this field is set.
|
|
2919
|
+
* @return {boolean}
|
|
2920
|
+
*/
|
|
2921
|
+
proto.BaseListAllLineOfApproval.prototype.hasLineOfApproval = function() {
|
|
2922
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* optional string document_number = 2;
|
|
2928
|
+
* @return {string}
|
|
2929
|
+
*/
|
|
2930
|
+
proto.BaseListAllLineOfApproval.prototype.getDocumentNumber = function() {
|
|
2931
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
/**
|
|
2936
|
+
* @param {string} value
|
|
2937
|
+
* @return {!proto.BaseListAllLineOfApproval} returns this
|
|
2938
|
+
*/
|
|
2939
|
+
proto.BaseListAllLineOfApproval.prototype.setDocumentNumber = function(value) {
|
|
2940
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2941
|
+
};
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* optional string title = 3;
|
|
2946
|
+
* @return {string}
|
|
2947
|
+
*/
|
|
2948
|
+
proto.BaseListAllLineOfApproval.prototype.getTitle = function() {
|
|
2949
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2950
|
+
};
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* @param {string} value
|
|
2955
|
+
* @return {!proto.BaseListAllLineOfApproval} returns this
|
|
2956
|
+
*/
|
|
2957
|
+
proto.BaseListAllLineOfApproval.prototype.setTitle = function(value) {
|
|
2958
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2959
|
+
};
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* optional string department = 4;
|
|
2964
|
+
* @return {string}
|
|
2965
|
+
*/
|
|
2966
|
+
proto.BaseListAllLineOfApproval.prototype.getDepartment = function() {
|
|
2967
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* @param {string} value
|
|
2973
|
+
* @return {!proto.BaseListAllLineOfApproval} returns this
|
|
2974
|
+
*/
|
|
2975
|
+
proto.BaseListAllLineOfApproval.prototype.setDepartment = function(value) {
|
|
2976
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2977
|
+
};
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
/**
|
|
2982
|
+
* List of repeated fields within this message type.
|
|
2983
|
+
* @private {!Array<number>}
|
|
2984
|
+
* @const
|
|
2985
|
+
*/
|
|
2986
|
+
proto.GetListAllLineOfApprovalResponse.repeatedFields_ = [1];
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2991
|
+
/**
|
|
2992
|
+
* Creates an object representation of this proto.
|
|
2993
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2994
|
+
* Optional fields that are not set will be set to undefined.
|
|
2995
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2996
|
+
* For the list of reserved names please see:
|
|
2997
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2998
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2999
|
+
* JSPB instance for transitional soy proto support:
|
|
3000
|
+
* http://goto/soy-param-migration
|
|
3001
|
+
* @return {!Object}
|
|
3002
|
+
*/
|
|
3003
|
+
proto.GetListAllLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3004
|
+
return proto.GetListAllLineOfApprovalResponse.toObject(opt_includeInstance, this);
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
/**
|
|
3009
|
+
* Static version of the {@see toObject} method.
|
|
3010
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3011
|
+
* the JSPB instance for transitional soy proto support:
|
|
3012
|
+
* http://goto/soy-param-migration
|
|
3013
|
+
* @param {!proto.GetListAllLineOfApprovalResponse} msg The msg instance to transform.
|
|
3014
|
+
* @return {!Object}
|
|
3015
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3016
|
+
*/
|
|
3017
|
+
proto.GetListAllLineOfApprovalResponse.toObject = function(includeInstance, msg) {
|
|
3018
|
+
var f, obj = {
|
|
3019
|
+
lineOfApprovalsList: jspb.Message.toObjectList(msg.getLineOfApprovalsList(),
|
|
3020
|
+
proto.BaseListAllLineOfApproval.toObject, includeInstance),
|
|
3021
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3022
|
+
};
|
|
3023
|
+
|
|
3024
|
+
if (includeInstance) {
|
|
3025
|
+
obj.$jspbMessageInstance = msg;
|
|
3026
|
+
}
|
|
3027
|
+
return obj;
|
|
3028
|
+
};
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3034
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3035
|
+
* @return {!proto.GetListAllLineOfApprovalResponse}
|
|
3036
|
+
*/
|
|
3037
|
+
proto.GetListAllLineOfApprovalResponse.deserializeBinary = function(bytes) {
|
|
3038
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3039
|
+
var msg = new proto.GetListAllLineOfApprovalResponse;
|
|
3040
|
+
return proto.GetListAllLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
/**
|
|
3045
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3046
|
+
* given reader into the given message object.
|
|
3047
|
+
* @param {!proto.GetListAllLineOfApprovalResponse} msg The message object to deserialize into.
|
|
3048
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3049
|
+
* @return {!proto.GetListAllLineOfApprovalResponse}
|
|
3050
|
+
*/
|
|
3051
|
+
proto.GetListAllLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3052
|
+
while (reader.nextField()) {
|
|
3053
|
+
if (reader.isEndGroup()) {
|
|
3054
|
+
break;
|
|
3055
|
+
}
|
|
3056
|
+
var field = reader.getFieldNumber();
|
|
3057
|
+
switch (field) {
|
|
3058
|
+
case 1:
|
|
3059
|
+
var value = new proto.BaseListAllLineOfApproval;
|
|
3060
|
+
reader.readMessage(value,proto.BaseListAllLineOfApproval.deserializeBinaryFromReader);
|
|
3061
|
+
msg.addLineOfApprovals(value);
|
|
3062
|
+
break;
|
|
3063
|
+
case 2:
|
|
3064
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3065
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3066
|
+
msg.setMeta(value);
|
|
3067
|
+
break;
|
|
3068
|
+
default:
|
|
3069
|
+
reader.skipField();
|
|
3070
|
+
break;
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
return msg;
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3079
|
+
* @return {!Uint8Array}
|
|
3080
|
+
*/
|
|
3081
|
+
proto.GetListAllLineOfApprovalResponse.prototype.serializeBinary = function() {
|
|
3082
|
+
var writer = new jspb.BinaryWriter();
|
|
3083
|
+
proto.GetListAllLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
|
|
3084
|
+
return writer.getResultBuffer();
|
|
3085
|
+
};
|
|
3086
|
+
|
|
3087
|
+
|
|
3088
|
+
/**
|
|
3089
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3090
|
+
* format), writing to the given BinaryWriter.
|
|
3091
|
+
* @param {!proto.GetListAllLineOfApprovalResponse} message
|
|
3092
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3093
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3094
|
+
*/
|
|
3095
|
+
proto.GetListAllLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3096
|
+
var f = undefined;
|
|
3097
|
+
f = message.getLineOfApprovalsList();
|
|
3098
|
+
if (f.length > 0) {
|
|
3099
|
+
writer.writeRepeatedMessage(
|
|
3100
|
+
1,
|
|
3101
|
+
f,
|
|
3102
|
+
proto.BaseListAllLineOfApproval.serializeBinaryToWriter
|
|
3103
|
+
);
|
|
3104
|
+
}
|
|
3105
|
+
f = message.getMeta();
|
|
3106
|
+
if (f != null) {
|
|
3107
|
+
writer.writeMessage(
|
|
3108
|
+
2,
|
|
3109
|
+
f,
|
|
3110
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3111
|
+
);
|
|
3112
|
+
}
|
|
3113
|
+
};
|
|
3114
|
+
|
|
3115
|
+
|
|
3116
|
+
/**
|
|
3117
|
+
* repeated BaseListAllLineOfApproval line_of_approvals = 1;
|
|
3118
|
+
* @return {!Array<!proto.BaseListAllLineOfApproval>}
|
|
3119
|
+
*/
|
|
3120
|
+
proto.GetListAllLineOfApprovalResponse.prototype.getLineOfApprovalsList = function() {
|
|
3121
|
+
return /** @type{!Array<!proto.BaseListAllLineOfApproval>} */ (
|
|
3122
|
+
jspb.Message.getRepeatedWrapperField(this, proto.BaseListAllLineOfApproval, 1));
|
|
3123
|
+
};
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* @param {!Array<!proto.BaseListAllLineOfApproval>} value
|
|
3128
|
+
* @return {!proto.GetListAllLineOfApprovalResponse} returns this
|
|
3129
|
+
*/
|
|
3130
|
+
proto.GetListAllLineOfApprovalResponse.prototype.setLineOfApprovalsList = function(value) {
|
|
3131
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3132
|
+
};
|
|
3133
|
+
|
|
3134
|
+
|
|
3135
|
+
/**
|
|
3136
|
+
* @param {!proto.BaseListAllLineOfApproval=} opt_value
|
|
3137
|
+
* @param {number=} opt_index
|
|
3138
|
+
* @return {!proto.BaseListAllLineOfApproval}
|
|
3139
|
+
*/
|
|
3140
|
+
proto.GetListAllLineOfApprovalResponse.prototype.addLineOfApprovals = function(opt_value, opt_index) {
|
|
3141
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BaseListAllLineOfApproval, opt_index);
|
|
3142
|
+
};
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
/**
|
|
3146
|
+
* Clears the list making it empty but non-null.
|
|
3147
|
+
* @return {!proto.GetListAllLineOfApprovalResponse} returns this
|
|
3148
|
+
*/
|
|
3149
|
+
proto.GetListAllLineOfApprovalResponse.prototype.clearLineOfApprovalsList = function() {
|
|
3150
|
+
return this.setLineOfApprovalsList([]);
|
|
3151
|
+
};
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
/**
|
|
3155
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3156
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3157
|
+
*/
|
|
3158
|
+
proto.GetListAllLineOfApprovalResponse.prototype.getMeta = function() {
|
|
3159
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3160
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3161
|
+
};
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
/**
|
|
3165
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3166
|
+
* @return {!proto.GetListAllLineOfApprovalResponse} returns this
|
|
3167
|
+
*/
|
|
3168
|
+
proto.GetListAllLineOfApprovalResponse.prototype.setMeta = function(value) {
|
|
3169
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3170
|
+
};
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
/**
|
|
3174
|
+
* Clears the message field making it undefined.
|
|
3175
|
+
* @return {!proto.GetListAllLineOfApprovalResponse} returns this
|
|
3176
|
+
*/
|
|
3177
|
+
proto.GetListAllLineOfApprovalResponse.prototype.clearMeta = function() {
|
|
3178
|
+
return this.setMeta(undefined);
|
|
3179
|
+
};
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* Returns whether this field is set.
|
|
3184
|
+
* @return {boolean}
|
|
3185
|
+
*/
|
|
3186
|
+
proto.GetListAllLineOfApprovalResponse.prototype.hasMeta = function() {
|
|
3187
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3188
|
+
};
|
|
3189
|
+
|
|
3190
|
+
|
|
2695
3191
|
goog.object.extend(exports, proto);
|