@aldiokta/protocgen 1.1.45 → 1.1.47
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/account_assignment/account_assignment_grpc_pb.js +199 -0
- package/prisca/v1/account_assignment/account_assignment_pb.js +2720 -0
- package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
- package/prisca/v1/account_group/account_group_pb.js +2983 -0
- package/prisca/v1/bidding/bidding_grpc_pb.js +361 -0
- package/prisca/v1/bidding/bidding_pb.js +8694 -0
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +2953 -0
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +611 -0
- package/prisca/v1/core/access_manager/access_manager_pb.js +11402 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +523 -0
- package/prisca/v1/core/auth/auth_pb.js +5833 -0
- package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
- package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1726 -0
- package/prisca/v1/core/company/company_grpc_pb.js +178 -0
- package/prisca/v1/core/company/company_pb.js +3094 -0
- package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
- package/prisca/v1/core/currency/currency_pb.js +2516 -0
- package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
- package/prisca/v1/core/department_material/department_material_pb.js +2161 -0
- package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
- package/prisca/v1/core/employee/employee_pb.js +4329 -0
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +66 -0
- package/prisca/v1/core/file_upload/file_upload_pb.js +1136 -0
- package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +177 -0
- package/prisca/v1/core/incoterm/incoterm_pb.js +2898 -0
- package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +6038 -0
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
- package/prisca/v1/core/job_grade/job_grade_pb.js +2651 -0
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
- package/prisca/v1/core/job_position/job_position_pb.js +3808 -0
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
- package/prisca/v1/core/job_title/job_title_pb.js +3004 -0
- package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +78 -0
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +2503 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +222 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3801 -0
- package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
- package/prisca/v1/core/link_data_source/link_data_source_pb.js +2606 -0
- package/prisca/v1/core/location/location_grpc_pb.js +837 -0
- package/prisca/v1/core/location/location_pb.js +11262 -0
- package/prisca/v1/core/material/material_grpc_pb.js +182 -0
- package/prisca/v1/core/material/material_pb.js +4226 -0
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
- package/prisca/v1/core/material_group/material_group_pb.js +2822 -0
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +182 -0
- package/prisca/v1/core/material_type/material_type_pb.js +3098 -0
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
- package/prisca/v1/core/messaging/email_template_pb.js +2658 -0
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
- package/prisca/v1/core/messaging/messaging_pb.js +890 -0
- package/prisca/v1/core/messaging/notification_grpc_pb.js +331 -0
- package/prisca/v1/core/messaging/notification_pb.js +4775 -0
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
- package/prisca/v1/core/number_range/number_range_pb.js +2972 -0
- package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
- package/prisca/v1/core/organization/organization_pb.js +3078 -0
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
- package/prisca/v1/core/organization_level/organization_level_pb.js +2591 -0
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +179 -0
- package/prisca/v1/core/price_condition/price_condition_pb.js +3175 -0
- package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
- package/prisca/v1/core/procurement/procurement_pb.js +1675 -0
- package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
- package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +200 -0
- package/prisca/v1/core/report/report_grpc_pb.js +200 -0
- package/prisca/v1/core/report/report_pb.js +2816 -0
- package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
- package/prisca/v1/core/report/user_report_pb.js +2446 -0
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
- package/prisca/v1/core/tax_code/tax_code_pb.js +2778 -0
- package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +177 -0
- package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2506 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +652 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +11953 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2874 -0
- package/prisca/v1/core/users/users_grpc_pb.js +79 -0
- package/prisca/v1/core/users/users_pb.js +1709 -0
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
- package/prisca/v1/core/work_location/work_location_pb.js +4018 -0
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
- package/prisca/v1/core/workflow/workflow_pb.js +7631 -0
- package/prisca/v1/core/workspace/workspace_grpc_pb.js +101 -0
- package/prisca/v1/core/workspace/workspace_pb.js +1381 -0
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
- package/prisca/v1/delivery_order/delivery_order_pb.js +3647 -0
- package/prisca/v1/document_type/document_type_grpc_pb.js +200 -0
- package/prisca/v1/document_type/document_type_pb.js +3004 -0
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3322 -0
- package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
- package/prisca/v1/global/meta/meta_pb.js +1173 -0
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +250 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +3945 -0
- package/prisca/v1/invoice/invoice_grpc_pb.js +273 -0
- package/prisca/v1/invoice/invoice_pb.js +5664 -0
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +274 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +9839 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +611 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +10795 -0
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +2921 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +178 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2418 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +179 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2584 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2537 -0
- package/prisca/v1/quotation/quotation_grpc_pb.js +240 -0
- package/prisca/v1/quotation/quotation_pb.js +4167 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +292 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +7042 -0
- package/prisca/v1/valuation/valuation_grpc_pb.js +366 -0
- package/prisca/v1/valuation/valuation_pb.js +7806 -0
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +290 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +14714 -0
- package/prisca/v1/account_assignment/account_assignment.proto +0 -81
- package/prisca/v1/account_group/account_group.proto +0 -88
- package/prisca/v1/bidding/bidding.proto +0 -251
- package/prisca/v1/chart_of_account/chart_of_account.proto +0 -89
- package/prisca/v1/core/access_manager/access_manager.proto +0 -328
- package/prisca/v1/core/auth/auth.proto +0 -185
- package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -62
- package/prisca/v1/core/company/company.proto +0 -92
- package/prisca/v1/core/currency/currency.proto +0 -76
- package/prisca/v1/core/department_material/department_material.proto +0 -69
- package/prisca/v1/core/employee/employee.proto +0 -129
- package/prisca/v1/core/file_upload/file_upload.proto +0 -41
- package/prisca/v1/core/incoterm/incoterm.proto +0 -85
- package/prisca/v1/core/item_transaction/item_transaction.proto +0 -188
- package/prisca/v1/core/job_grade/job_grade.proto +0 -79
- package/prisca/v1/core/job_position/job_position.proto +0 -113
- package/prisca/v1/core/job_title/job_title.proto +0 -89
- package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -94
- package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -113
- package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
- package/prisca/v1/core/location/location.proto +0 -295
- package/prisca/v1/core/material/material.proto +0 -131
- package/prisca/v1/core/material_group/material_group.proto +0 -85
- package/prisca/v1/core/material_type/material_type.proto +0 -95
- package/prisca/v1/core/messaging/email_template.proto +0 -77
- package/prisca/v1/core/messaging/messaging.proto +0 -29
- package/prisca/v1/core/messaging/notification.proto +0 -144
- package/prisca/v1/core/number_range/number_range.proto +0 -89
- package/prisca/v1/core/organization/organization.proto +0 -94
- package/prisca/v1/core/organization_level/organization_level.proto +0 -77
- package/prisca/v1/core/price_condition/price_condition.proto +0 -97
- package/prisca/v1/core/procurement/procurement.proto +0 -54
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
- package/prisca/v1/core/report/report.proto +0 -90
- package/prisca/v1/core/report/user_report.proto +0 -74
- package/prisca/v1/core/tax_code/tax_code.proto +0 -82
- package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -74
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -366
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -89
- package/prisca/v1/core/users/users.proto +0 -55
- package/prisca/v1/core/work_location/work_location.proto +0 -122
- package/prisca/v1/core/workflow/workflow.proto +0 -220
- package/prisca/v1/core/workspace/workspace.proto +0 -48
- package/prisca/v1/delivery_order/delivery_order.proto +0 -116
- package/prisca/v1/document_type/document_type.proto +0 -89
- package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -100
- package/prisca/v1/global/meta/meta.proto +0 -57
- package/prisca/v1/good_receipt/good_receipt.proto +0 -118
- package/prisca/v1/invoice/invoice.proto +0 -170
- package/prisca/v1/purchase_order/purchase_order.proto +0 -292
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -327
- package/prisca/v1/purchasing_group/purchasing_group.proto +0 -89
- package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -77
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -81
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
- package/prisca/v1/quotation/quotation.proto +0 -135
- package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -203
- package/prisca/v1/valuation/valuation.proto +0 -223
- package/prisca/v1/vendor_domain/vendor_domain.proto +0 -485
|
@@ -0,0 +1,3945 @@
|
|
|
1
|
+
// source: prisca/v1/good_receipt/good_receipt.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 = globalThis;
|
|
17
|
+
|
|
18
|
+
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
19
|
+
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
20
|
+
var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendor_domain/vendor_domain_pb.js');
|
|
21
|
+
goog.object.extend(proto, prisca_v1_vendor_domain_vendor_domain_pb);
|
|
22
|
+
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
23
|
+
goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
|
|
24
|
+
var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
|
|
25
|
+
goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
|
|
26
|
+
var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
|
|
27
|
+
goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
|
|
28
|
+
var prisca_v1_purchase_order_purchase_order_pb = require('../../../prisca/v1/purchase_order/purchase_order_pb.js');
|
|
29
|
+
goog.object.extend(proto, prisca_v1_purchase_order_purchase_order_pb);
|
|
30
|
+
var prisca_v1_delivery_order_delivery_order_pb = require('../../../prisca/v1/delivery_order/delivery_order_pb.js');
|
|
31
|
+
goog.object.extend(proto, prisca_v1_delivery_order_delivery_order_pb);
|
|
32
|
+
var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
33
|
+
goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
|
|
34
|
+
goog.exportSymbol('proto.BaseGoodReceipt', null, global);
|
|
35
|
+
goog.exportSymbol('proto.CreateGoodReceiptRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.CreateGoodReceiptRes', null, global);
|
|
37
|
+
goog.exportSymbol('proto.DeleteGoodReceiptRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.DeleteGoodReceiptResponse', null, global);
|
|
39
|
+
goog.exportSymbol('proto.GetByRefGoodReceiptReq', null, global);
|
|
40
|
+
goog.exportSymbol('proto.GetGoodReceiptByIdResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.GetGoodReceiptDetailResponse', null, global);
|
|
42
|
+
goog.exportSymbol('proto.GetGoodReceiptItemDetailPreload', null, global);
|
|
43
|
+
goog.exportSymbol('proto.GetGoodReceiptItemPreload', null, global);
|
|
44
|
+
goog.exportSymbol('proto.GetListGoodReceiptReq', null, global);
|
|
45
|
+
goog.exportSymbol('proto.GetListGoodReceiptRes', null, global);
|
|
46
|
+
goog.exportSymbol('proto.UpdateGoodReceiptFileReq', null, global);
|
|
47
|
+
goog.exportSymbol('proto.UpdateGoodReceiptReq', null, global);
|
|
48
|
+
goog.exportSymbol('proto.UpdateGoodReceiptRes', null, global);
|
|
49
|
+
goog.exportSymbol('proto.UpdateGoodReceiptStatusReq', null, global);
|
|
50
|
+
/**
|
|
51
|
+
* Generated by JsPbCodeGenerator.
|
|
52
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
53
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
54
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
55
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
56
|
+
* valid.
|
|
57
|
+
* @extends {jspb.Message}
|
|
58
|
+
* @constructor
|
|
59
|
+
*/
|
|
60
|
+
proto.BaseGoodReceipt = function(opt_data) {
|
|
61
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseGoodReceipt.repeatedFields_, null);
|
|
62
|
+
};
|
|
63
|
+
goog.inherits(proto.BaseGoodReceipt, jspb.Message);
|
|
64
|
+
if (goog.DEBUG && !COMPILED) {
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
* @override
|
|
68
|
+
*/
|
|
69
|
+
proto.BaseGoodReceipt.displayName = 'proto.BaseGoodReceipt';
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Generated by JsPbCodeGenerator.
|
|
73
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
74
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
75
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
76
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
77
|
+
* valid.
|
|
78
|
+
* @extends {jspb.Message}
|
|
79
|
+
* @constructor
|
|
80
|
+
*/
|
|
81
|
+
proto.CreateGoodReceiptRequest = function(opt_data) {
|
|
82
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
83
|
+
};
|
|
84
|
+
goog.inherits(proto.CreateGoodReceiptRequest, jspb.Message);
|
|
85
|
+
if (goog.DEBUG && !COMPILED) {
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
* @override
|
|
89
|
+
*/
|
|
90
|
+
proto.CreateGoodReceiptRequest.displayName = 'proto.CreateGoodReceiptRequest';
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Generated by JsPbCodeGenerator.
|
|
94
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
95
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
96
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
97
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
98
|
+
* valid.
|
|
99
|
+
* @extends {jspb.Message}
|
|
100
|
+
* @constructor
|
|
101
|
+
*/
|
|
102
|
+
proto.UpdateGoodReceiptReq = function(opt_data) {
|
|
103
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
104
|
+
};
|
|
105
|
+
goog.inherits(proto.UpdateGoodReceiptReq, jspb.Message);
|
|
106
|
+
if (goog.DEBUG && !COMPILED) {
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
* @override
|
|
110
|
+
*/
|
|
111
|
+
proto.UpdateGoodReceiptReq.displayName = 'proto.UpdateGoodReceiptReq';
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Generated by JsPbCodeGenerator.
|
|
115
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
116
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
117
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
118
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
119
|
+
* valid.
|
|
120
|
+
* @extends {jspb.Message}
|
|
121
|
+
* @constructor
|
|
122
|
+
*/
|
|
123
|
+
proto.UpdateGoodReceiptStatusReq = function(opt_data) {
|
|
124
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
125
|
+
};
|
|
126
|
+
goog.inherits(proto.UpdateGoodReceiptStatusReq, jspb.Message);
|
|
127
|
+
if (goog.DEBUG && !COMPILED) {
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
* @override
|
|
131
|
+
*/
|
|
132
|
+
proto.UpdateGoodReceiptStatusReq.displayName = 'proto.UpdateGoodReceiptStatusReq';
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Generated by JsPbCodeGenerator.
|
|
136
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
137
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
138
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
139
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
140
|
+
* valid.
|
|
141
|
+
* @extends {jspb.Message}
|
|
142
|
+
* @constructor
|
|
143
|
+
*/
|
|
144
|
+
proto.UpdateGoodReceiptFileReq = function(opt_data) {
|
|
145
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdateGoodReceiptFileReq.repeatedFields_, null);
|
|
146
|
+
};
|
|
147
|
+
goog.inherits(proto.UpdateGoodReceiptFileReq, jspb.Message);
|
|
148
|
+
if (goog.DEBUG && !COMPILED) {
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
* @override
|
|
152
|
+
*/
|
|
153
|
+
proto.UpdateGoodReceiptFileReq.displayName = 'proto.UpdateGoodReceiptFileReq';
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Generated by JsPbCodeGenerator.
|
|
157
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
158
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
159
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
160
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
161
|
+
* valid.
|
|
162
|
+
* @extends {jspb.Message}
|
|
163
|
+
* @constructor
|
|
164
|
+
*/
|
|
165
|
+
proto.GetListGoodReceiptReq = function(opt_data) {
|
|
166
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
167
|
+
};
|
|
168
|
+
goog.inherits(proto.GetListGoodReceiptReq, jspb.Message);
|
|
169
|
+
if (goog.DEBUG && !COMPILED) {
|
|
170
|
+
/**
|
|
171
|
+
* @public
|
|
172
|
+
* @override
|
|
173
|
+
*/
|
|
174
|
+
proto.GetListGoodReceiptReq.displayName = 'proto.GetListGoodReceiptReq';
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Generated by JsPbCodeGenerator.
|
|
178
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
179
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
180
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
181
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
182
|
+
* valid.
|
|
183
|
+
* @extends {jspb.Message}
|
|
184
|
+
* @constructor
|
|
185
|
+
*/
|
|
186
|
+
proto.GetByRefGoodReceiptReq = function(opt_data) {
|
|
187
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
188
|
+
};
|
|
189
|
+
goog.inherits(proto.GetByRefGoodReceiptReq, jspb.Message);
|
|
190
|
+
if (goog.DEBUG && !COMPILED) {
|
|
191
|
+
/**
|
|
192
|
+
* @public
|
|
193
|
+
* @override
|
|
194
|
+
*/
|
|
195
|
+
proto.GetByRefGoodReceiptReq.displayName = 'proto.GetByRefGoodReceiptReq';
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Generated by JsPbCodeGenerator.
|
|
199
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
200
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
201
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
202
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
203
|
+
* valid.
|
|
204
|
+
* @extends {jspb.Message}
|
|
205
|
+
* @constructor
|
|
206
|
+
*/
|
|
207
|
+
proto.CreateGoodReceiptRes = function(opt_data) {
|
|
208
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
209
|
+
};
|
|
210
|
+
goog.inherits(proto.CreateGoodReceiptRes, jspb.Message);
|
|
211
|
+
if (goog.DEBUG && !COMPILED) {
|
|
212
|
+
/**
|
|
213
|
+
* @public
|
|
214
|
+
* @override
|
|
215
|
+
*/
|
|
216
|
+
proto.CreateGoodReceiptRes.displayName = 'proto.CreateGoodReceiptRes';
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Generated by JsPbCodeGenerator.
|
|
220
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
221
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
222
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
223
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
224
|
+
* valid.
|
|
225
|
+
* @extends {jspb.Message}
|
|
226
|
+
* @constructor
|
|
227
|
+
*/
|
|
228
|
+
proto.UpdateGoodReceiptRes = function(opt_data) {
|
|
229
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
230
|
+
};
|
|
231
|
+
goog.inherits(proto.UpdateGoodReceiptRes, jspb.Message);
|
|
232
|
+
if (goog.DEBUG && !COMPILED) {
|
|
233
|
+
/**
|
|
234
|
+
* @public
|
|
235
|
+
* @override
|
|
236
|
+
*/
|
|
237
|
+
proto.UpdateGoodReceiptRes.displayName = 'proto.UpdateGoodReceiptRes';
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Generated by JsPbCodeGenerator.
|
|
241
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
242
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
243
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
244
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
245
|
+
* valid.
|
|
246
|
+
* @extends {jspb.Message}
|
|
247
|
+
* @constructor
|
|
248
|
+
*/
|
|
249
|
+
proto.GetGoodReceiptByIdResponse = function(opt_data) {
|
|
250
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
251
|
+
};
|
|
252
|
+
goog.inherits(proto.GetGoodReceiptByIdResponse, jspb.Message);
|
|
253
|
+
if (goog.DEBUG && !COMPILED) {
|
|
254
|
+
/**
|
|
255
|
+
* @public
|
|
256
|
+
* @override
|
|
257
|
+
*/
|
|
258
|
+
proto.GetGoodReceiptByIdResponse.displayName = 'proto.GetGoodReceiptByIdResponse';
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Generated by JsPbCodeGenerator.
|
|
262
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
263
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
264
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
265
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
266
|
+
* valid.
|
|
267
|
+
* @extends {jspb.Message}
|
|
268
|
+
* @constructor
|
|
269
|
+
*/
|
|
270
|
+
proto.GetListGoodReceiptRes = function(opt_data) {
|
|
271
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListGoodReceiptRes.repeatedFields_, null);
|
|
272
|
+
};
|
|
273
|
+
goog.inherits(proto.GetListGoodReceiptRes, jspb.Message);
|
|
274
|
+
if (goog.DEBUG && !COMPILED) {
|
|
275
|
+
/**
|
|
276
|
+
* @public
|
|
277
|
+
* @override
|
|
278
|
+
*/
|
|
279
|
+
proto.GetListGoodReceiptRes.displayName = 'proto.GetListGoodReceiptRes';
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Generated by JsPbCodeGenerator.
|
|
283
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
284
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
285
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
286
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
287
|
+
* valid.
|
|
288
|
+
* @extends {jspb.Message}
|
|
289
|
+
* @constructor
|
|
290
|
+
*/
|
|
291
|
+
proto.DeleteGoodReceiptRequest = function(opt_data) {
|
|
292
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteGoodReceiptRequest.repeatedFields_, null);
|
|
293
|
+
};
|
|
294
|
+
goog.inherits(proto.DeleteGoodReceiptRequest, jspb.Message);
|
|
295
|
+
if (goog.DEBUG && !COMPILED) {
|
|
296
|
+
/**
|
|
297
|
+
* @public
|
|
298
|
+
* @override
|
|
299
|
+
*/
|
|
300
|
+
proto.DeleteGoodReceiptRequest.displayName = 'proto.DeleteGoodReceiptRequest';
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Generated by JsPbCodeGenerator.
|
|
304
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
305
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
306
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
307
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
308
|
+
* valid.
|
|
309
|
+
* @extends {jspb.Message}
|
|
310
|
+
* @constructor
|
|
311
|
+
*/
|
|
312
|
+
proto.GetGoodReceiptDetailResponse = function(opt_data) {
|
|
313
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetGoodReceiptDetailResponse.repeatedFields_, null);
|
|
314
|
+
};
|
|
315
|
+
goog.inherits(proto.GetGoodReceiptDetailResponse, jspb.Message);
|
|
316
|
+
if (goog.DEBUG && !COMPILED) {
|
|
317
|
+
/**
|
|
318
|
+
* @public
|
|
319
|
+
* @override
|
|
320
|
+
*/
|
|
321
|
+
proto.GetGoodReceiptDetailResponse.displayName = 'proto.GetGoodReceiptDetailResponse';
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Generated by JsPbCodeGenerator.
|
|
325
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
326
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
327
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
328
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
329
|
+
* valid.
|
|
330
|
+
* @extends {jspb.Message}
|
|
331
|
+
* @constructor
|
|
332
|
+
*/
|
|
333
|
+
proto.GetGoodReceiptItemPreload = function(opt_data) {
|
|
334
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetGoodReceiptItemPreload.repeatedFields_, null);
|
|
335
|
+
};
|
|
336
|
+
goog.inherits(proto.GetGoodReceiptItemPreload, jspb.Message);
|
|
337
|
+
if (goog.DEBUG && !COMPILED) {
|
|
338
|
+
/**
|
|
339
|
+
* @public
|
|
340
|
+
* @override
|
|
341
|
+
*/
|
|
342
|
+
proto.GetGoodReceiptItemPreload.displayName = 'proto.GetGoodReceiptItemPreload';
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Generated by JsPbCodeGenerator.
|
|
346
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
347
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
348
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
349
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
350
|
+
* valid.
|
|
351
|
+
* @extends {jspb.Message}
|
|
352
|
+
* @constructor
|
|
353
|
+
*/
|
|
354
|
+
proto.GetGoodReceiptItemDetailPreload = function(opt_data) {
|
|
355
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetGoodReceiptItemDetailPreload.repeatedFields_, null);
|
|
356
|
+
};
|
|
357
|
+
goog.inherits(proto.GetGoodReceiptItemDetailPreload, jspb.Message);
|
|
358
|
+
if (goog.DEBUG && !COMPILED) {
|
|
359
|
+
/**
|
|
360
|
+
* @public
|
|
361
|
+
* @override
|
|
362
|
+
*/
|
|
363
|
+
proto.GetGoodReceiptItemDetailPreload.displayName = 'proto.GetGoodReceiptItemDetailPreload';
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Generated by JsPbCodeGenerator.
|
|
367
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
368
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
369
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
370
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
371
|
+
* valid.
|
|
372
|
+
* @extends {jspb.Message}
|
|
373
|
+
* @constructor
|
|
374
|
+
*/
|
|
375
|
+
proto.DeleteGoodReceiptResponse = function(opt_data) {
|
|
376
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteGoodReceiptResponse.repeatedFields_, null);
|
|
377
|
+
};
|
|
378
|
+
goog.inherits(proto.DeleteGoodReceiptResponse, jspb.Message);
|
|
379
|
+
if (goog.DEBUG && !COMPILED) {
|
|
380
|
+
/**
|
|
381
|
+
* @public
|
|
382
|
+
* @override
|
|
383
|
+
*/
|
|
384
|
+
proto.DeleteGoodReceiptResponse.displayName = 'proto.DeleteGoodReceiptResponse';
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* List of repeated fields within this message type.
|
|
389
|
+
* @private {!Array<number>}
|
|
390
|
+
* @const
|
|
391
|
+
*/
|
|
392
|
+
proto.BaseGoodReceipt.repeatedFields_ = [11,12];
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
397
|
+
/**
|
|
398
|
+
* Creates an object representation of this proto.
|
|
399
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
400
|
+
* Optional fields that are not set will be set to undefined.
|
|
401
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
402
|
+
* For the list of reserved names please see:
|
|
403
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
404
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
405
|
+
* JSPB instance for transitional soy proto support:
|
|
406
|
+
* http://goto/soy-param-migration
|
|
407
|
+
* @return {!Object}
|
|
408
|
+
*/
|
|
409
|
+
proto.BaseGoodReceipt.prototype.toObject = function(opt_includeInstance) {
|
|
410
|
+
return proto.BaseGoodReceipt.toObject(opt_includeInstance, this);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Static version of the {@see toObject} method.
|
|
416
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
417
|
+
* the JSPB instance for transitional soy proto support:
|
|
418
|
+
* http://goto/soy-param-migration
|
|
419
|
+
* @param {!proto.BaseGoodReceipt} msg The msg instance to transform.
|
|
420
|
+
* @return {!Object}
|
|
421
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
422
|
+
*/
|
|
423
|
+
proto.BaseGoodReceipt.toObject = function(includeInstance, msg) {
|
|
424
|
+
var f, obj = {
|
|
425
|
+
purchaseOrder: (f = msg.getPurchaseOrder()) && prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.toObject(includeInstance, f),
|
|
426
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
427
|
+
goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
428
|
+
purchaseOrderDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
429
|
+
vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
|
|
430
|
+
postingDate: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
431
|
+
date: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
432
|
+
plant: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
433
|
+
remarks: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
434
|
+
status: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
435
|
+
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
436
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
|
|
437
|
+
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
438
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
439
|
+
groupReferences: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
440
|
+
deliveryOrder: (f = msg.getDeliveryOrder()) && prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.toObject(includeInstance, f),
|
|
441
|
+
deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
442
|
+
deliveryOrderDate: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
443
|
+
purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 17, "")
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
if (includeInstance) {
|
|
447
|
+
obj.$jspbMessageInstance = msg;
|
|
448
|
+
}
|
|
449
|
+
return obj;
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Deserializes binary data (in protobuf wire format).
|
|
456
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
457
|
+
* @return {!proto.BaseGoodReceipt}
|
|
458
|
+
*/
|
|
459
|
+
proto.BaseGoodReceipt.deserializeBinary = function(bytes) {
|
|
460
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
461
|
+
var msg = new proto.BaseGoodReceipt;
|
|
462
|
+
return proto.BaseGoodReceipt.deserializeBinaryFromReader(msg, reader);
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
468
|
+
* given reader into the given message object.
|
|
469
|
+
* @param {!proto.BaseGoodReceipt} msg The message object to deserialize into.
|
|
470
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
471
|
+
* @return {!proto.BaseGoodReceipt}
|
|
472
|
+
*/
|
|
473
|
+
proto.BaseGoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
|
|
474
|
+
while (reader.nextField()) {
|
|
475
|
+
if (reader.isEndGroup()) {
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
var field = reader.getFieldNumber();
|
|
479
|
+
switch (field) {
|
|
480
|
+
case 1:
|
|
481
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder;
|
|
482
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.deserializeBinaryFromReader);
|
|
483
|
+
msg.setPurchaseOrder(value);
|
|
484
|
+
break;
|
|
485
|
+
case 2:
|
|
486
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
487
|
+
msg.setTitle(value);
|
|
488
|
+
break;
|
|
489
|
+
case 3:
|
|
490
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
491
|
+
msg.setGoodReceiptNumber(value);
|
|
492
|
+
break;
|
|
493
|
+
case 4:
|
|
494
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
495
|
+
msg.setPurchaseOrderDate(value);
|
|
496
|
+
break;
|
|
497
|
+
case 5:
|
|
498
|
+
var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
|
|
499
|
+
reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
|
|
500
|
+
msg.setVendor(value);
|
|
501
|
+
break;
|
|
502
|
+
case 6:
|
|
503
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
504
|
+
msg.setPostingDate(value);
|
|
505
|
+
break;
|
|
506
|
+
case 7:
|
|
507
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
508
|
+
msg.setDate(value);
|
|
509
|
+
break;
|
|
510
|
+
case 8:
|
|
511
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
512
|
+
msg.setPlant(value);
|
|
513
|
+
break;
|
|
514
|
+
case 9:
|
|
515
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
516
|
+
msg.setRemarks(value);
|
|
517
|
+
break;
|
|
518
|
+
case 10:
|
|
519
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
520
|
+
msg.setStatus(value);
|
|
521
|
+
break;
|
|
522
|
+
case 11:
|
|
523
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
|
|
524
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
|
|
525
|
+
msg.addItemTransactions(value);
|
|
526
|
+
break;
|
|
527
|
+
case 12:
|
|
528
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
529
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
530
|
+
msg.addFiles(value);
|
|
531
|
+
break;
|
|
532
|
+
case 13:
|
|
533
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
534
|
+
msg.setGroupReferences(value);
|
|
535
|
+
break;
|
|
536
|
+
case 14:
|
|
537
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder;
|
|
538
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.deserializeBinaryFromReader);
|
|
539
|
+
msg.setDeliveryOrder(value);
|
|
540
|
+
break;
|
|
541
|
+
case 15:
|
|
542
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
543
|
+
msg.setDeliveryOrderNumber(value);
|
|
544
|
+
break;
|
|
545
|
+
case 16:
|
|
546
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
547
|
+
msg.setDeliveryOrderDate(value);
|
|
548
|
+
break;
|
|
549
|
+
case 17:
|
|
550
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
551
|
+
msg.setPurchaseOrderNumber(value);
|
|
552
|
+
break;
|
|
553
|
+
default:
|
|
554
|
+
reader.skipField();
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
return msg;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
564
|
+
* @return {!Uint8Array}
|
|
565
|
+
*/
|
|
566
|
+
proto.BaseGoodReceipt.prototype.serializeBinary = function() {
|
|
567
|
+
var writer = new jspb.BinaryWriter();
|
|
568
|
+
proto.BaseGoodReceipt.serializeBinaryToWriter(this, writer);
|
|
569
|
+
return writer.getResultBuffer();
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
575
|
+
* format), writing to the given BinaryWriter.
|
|
576
|
+
* @param {!proto.BaseGoodReceipt} message
|
|
577
|
+
* @param {!jspb.BinaryWriter} writer
|
|
578
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
579
|
+
*/
|
|
580
|
+
proto.BaseGoodReceipt.serializeBinaryToWriter = function(message, writer) {
|
|
581
|
+
var f = undefined;
|
|
582
|
+
f = message.getPurchaseOrder();
|
|
583
|
+
if (f != null) {
|
|
584
|
+
writer.writeMessage(
|
|
585
|
+
1,
|
|
586
|
+
f,
|
|
587
|
+
prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.serializeBinaryToWriter
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
f = message.getTitle();
|
|
591
|
+
if (f.length > 0) {
|
|
592
|
+
writer.writeString(
|
|
593
|
+
2,
|
|
594
|
+
f
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
f = message.getGoodReceiptNumber();
|
|
598
|
+
if (f.length > 0) {
|
|
599
|
+
writer.writeString(
|
|
600
|
+
3,
|
|
601
|
+
f
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
f = message.getPurchaseOrderDate();
|
|
605
|
+
if (f.length > 0) {
|
|
606
|
+
writer.writeString(
|
|
607
|
+
4,
|
|
608
|
+
f
|
|
609
|
+
);
|
|
610
|
+
}
|
|
611
|
+
f = message.getVendor();
|
|
612
|
+
if (f != null) {
|
|
613
|
+
writer.writeMessage(
|
|
614
|
+
5,
|
|
615
|
+
f,
|
|
616
|
+
prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
f = message.getPostingDate();
|
|
620
|
+
if (f.length > 0) {
|
|
621
|
+
writer.writeString(
|
|
622
|
+
6,
|
|
623
|
+
f
|
|
624
|
+
);
|
|
625
|
+
}
|
|
626
|
+
f = message.getDate();
|
|
627
|
+
if (f.length > 0) {
|
|
628
|
+
writer.writeString(
|
|
629
|
+
7,
|
|
630
|
+
f
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
f = message.getPlant();
|
|
634
|
+
if (f.length > 0) {
|
|
635
|
+
writer.writeString(
|
|
636
|
+
8,
|
|
637
|
+
f
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
f = message.getRemarks();
|
|
641
|
+
if (f.length > 0) {
|
|
642
|
+
writer.writeString(
|
|
643
|
+
9,
|
|
644
|
+
f
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
f = message.getStatus();
|
|
648
|
+
if (f.length > 0) {
|
|
649
|
+
writer.writeString(
|
|
650
|
+
10,
|
|
651
|
+
f
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
f = message.getItemTransactionsList();
|
|
655
|
+
if (f.length > 0) {
|
|
656
|
+
writer.writeRepeatedMessage(
|
|
657
|
+
11,
|
|
658
|
+
f,
|
|
659
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
|
|
660
|
+
);
|
|
661
|
+
}
|
|
662
|
+
f = message.getFilesList();
|
|
663
|
+
if (f.length > 0) {
|
|
664
|
+
writer.writeRepeatedMessage(
|
|
665
|
+
12,
|
|
666
|
+
f,
|
|
667
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
f = message.getGroupReferences();
|
|
671
|
+
if (f.length > 0) {
|
|
672
|
+
writer.writeString(
|
|
673
|
+
13,
|
|
674
|
+
f
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
f = message.getDeliveryOrder();
|
|
678
|
+
if (f != null) {
|
|
679
|
+
writer.writeMessage(
|
|
680
|
+
14,
|
|
681
|
+
f,
|
|
682
|
+
prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.serializeBinaryToWriter
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
f = message.getDeliveryOrderNumber();
|
|
686
|
+
if (f.length > 0) {
|
|
687
|
+
writer.writeString(
|
|
688
|
+
15,
|
|
689
|
+
f
|
|
690
|
+
);
|
|
691
|
+
}
|
|
692
|
+
f = message.getDeliveryOrderDate();
|
|
693
|
+
if (f.length > 0) {
|
|
694
|
+
writer.writeString(
|
|
695
|
+
16,
|
|
696
|
+
f
|
|
697
|
+
);
|
|
698
|
+
}
|
|
699
|
+
f = message.getPurchaseOrderNumber();
|
|
700
|
+
if (f.length > 0) {
|
|
701
|
+
writer.writeString(
|
|
702
|
+
17,
|
|
703
|
+
f
|
|
704
|
+
);
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* optional PurchaseOrder purchase_order = 1;
|
|
711
|
+
* @return {?proto.PurchaseOrder}
|
|
712
|
+
*/
|
|
713
|
+
proto.BaseGoodReceipt.prototype.getPurchaseOrder = function() {
|
|
714
|
+
return /** @type{?proto.PurchaseOrder} */ (
|
|
715
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder, 1));
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* @param {?proto.PurchaseOrder|undefined} value
|
|
721
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
722
|
+
*/
|
|
723
|
+
proto.BaseGoodReceipt.prototype.setPurchaseOrder = function(value) {
|
|
724
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Clears the message field making it undefined.
|
|
730
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
731
|
+
*/
|
|
732
|
+
proto.BaseGoodReceipt.prototype.clearPurchaseOrder = function() {
|
|
733
|
+
return this.setPurchaseOrder(undefined);
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Returns whether this field is set.
|
|
739
|
+
* @return {boolean}
|
|
740
|
+
*/
|
|
741
|
+
proto.BaseGoodReceipt.prototype.hasPurchaseOrder = function() {
|
|
742
|
+
return jspb.Message.getField(this, 1) != null;
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* optional string title = 2;
|
|
748
|
+
* @return {string}
|
|
749
|
+
*/
|
|
750
|
+
proto.BaseGoodReceipt.prototype.getTitle = function() {
|
|
751
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* @param {string} value
|
|
757
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
758
|
+
*/
|
|
759
|
+
proto.BaseGoodReceipt.prototype.setTitle = function(value) {
|
|
760
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* optional string good_receipt_number = 3;
|
|
766
|
+
* @return {string}
|
|
767
|
+
*/
|
|
768
|
+
proto.BaseGoodReceipt.prototype.getGoodReceiptNumber = function() {
|
|
769
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* @param {string} value
|
|
775
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
776
|
+
*/
|
|
777
|
+
proto.BaseGoodReceipt.prototype.setGoodReceiptNumber = function(value) {
|
|
778
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* optional string purchase_order_date = 4;
|
|
784
|
+
* @return {string}
|
|
785
|
+
*/
|
|
786
|
+
proto.BaseGoodReceipt.prototype.getPurchaseOrderDate = function() {
|
|
787
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* @param {string} value
|
|
793
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
794
|
+
*/
|
|
795
|
+
proto.BaseGoodReceipt.prototype.setPurchaseOrderDate = function(value) {
|
|
796
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* optional Vendor vendor = 5;
|
|
802
|
+
* @return {?proto.Vendor}
|
|
803
|
+
*/
|
|
804
|
+
proto.BaseGoodReceipt.prototype.getVendor = function() {
|
|
805
|
+
return /** @type{?proto.Vendor} */ (
|
|
806
|
+
jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 5));
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* @param {?proto.Vendor|undefined} value
|
|
812
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
813
|
+
*/
|
|
814
|
+
proto.BaseGoodReceipt.prototype.setVendor = function(value) {
|
|
815
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Clears the message field making it undefined.
|
|
821
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
822
|
+
*/
|
|
823
|
+
proto.BaseGoodReceipt.prototype.clearVendor = function() {
|
|
824
|
+
return this.setVendor(undefined);
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Returns whether this field is set.
|
|
830
|
+
* @return {boolean}
|
|
831
|
+
*/
|
|
832
|
+
proto.BaseGoodReceipt.prototype.hasVendor = function() {
|
|
833
|
+
return jspb.Message.getField(this, 5) != null;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* optional string posting_date = 6;
|
|
839
|
+
* @return {string}
|
|
840
|
+
*/
|
|
841
|
+
proto.BaseGoodReceipt.prototype.getPostingDate = function() {
|
|
842
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* @param {string} value
|
|
848
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
849
|
+
*/
|
|
850
|
+
proto.BaseGoodReceipt.prototype.setPostingDate = function(value) {
|
|
851
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* optional string date = 7;
|
|
857
|
+
* @return {string}
|
|
858
|
+
*/
|
|
859
|
+
proto.BaseGoodReceipt.prototype.getDate = function() {
|
|
860
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* @param {string} value
|
|
866
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
867
|
+
*/
|
|
868
|
+
proto.BaseGoodReceipt.prototype.setDate = function(value) {
|
|
869
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* optional string plant = 8;
|
|
875
|
+
* @return {string}
|
|
876
|
+
*/
|
|
877
|
+
proto.BaseGoodReceipt.prototype.getPlant = function() {
|
|
878
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* @param {string} value
|
|
884
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
885
|
+
*/
|
|
886
|
+
proto.BaseGoodReceipt.prototype.setPlant = function(value) {
|
|
887
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* optional string remarks = 9;
|
|
893
|
+
* @return {string}
|
|
894
|
+
*/
|
|
895
|
+
proto.BaseGoodReceipt.prototype.getRemarks = function() {
|
|
896
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* @param {string} value
|
|
902
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
903
|
+
*/
|
|
904
|
+
proto.BaseGoodReceipt.prototype.setRemarks = function(value) {
|
|
905
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* optional string status = 10;
|
|
911
|
+
* @return {string}
|
|
912
|
+
*/
|
|
913
|
+
proto.BaseGoodReceipt.prototype.getStatus = function() {
|
|
914
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* @param {string} value
|
|
920
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
921
|
+
*/
|
|
922
|
+
proto.BaseGoodReceipt.prototype.setStatus = function(value) {
|
|
923
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* repeated ItemTransaction item_transactions = 11;
|
|
929
|
+
* @return {!Array<!proto.ItemTransaction>}
|
|
930
|
+
*/
|
|
931
|
+
proto.BaseGoodReceipt.prototype.getItemTransactionsList = function() {
|
|
932
|
+
return /** @type{!Array<!proto.ItemTransaction>} */ (
|
|
933
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 11));
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* @param {!Array<!proto.ItemTransaction>} value
|
|
939
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
940
|
+
*/
|
|
941
|
+
proto.BaseGoodReceipt.prototype.setItemTransactionsList = function(value) {
|
|
942
|
+
return jspb.Message.setRepeatedWrapperField(this, 11, value);
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* @param {!proto.ItemTransaction=} opt_value
|
|
948
|
+
* @param {number=} opt_index
|
|
949
|
+
* @return {!proto.ItemTransaction}
|
|
950
|
+
*/
|
|
951
|
+
proto.BaseGoodReceipt.prototype.addItemTransactions = function(opt_value, opt_index) {
|
|
952
|
+
return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.ItemTransaction, opt_index);
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Clears the list making it empty but non-null.
|
|
958
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
959
|
+
*/
|
|
960
|
+
proto.BaseGoodReceipt.prototype.clearItemTransactionsList = function() {
|
|
961
|
+
return this.setItemTransactionsList([]);
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* repeated FileUploadReferencesReq files = 12;
|
|
967
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
968
|
+
*/
|
|
969
|
+
proto.BaseGoodReceipt.prototype.getFilesList = function() {
|
|
970
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
971
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 12));
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
977
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
978
|
+
*/
|
|
979
|
+
proto.BaseGoodReceipt.prototype.setFilesList = function(value) {
|
|
980
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
986
|
+
* @param {number=} opt_index
|
|
987
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
988
|
+
*/
|
|
989
|
+
proto.BaseGoodReceipt.prototype.addFiles = function(opt_value, opt_index) {
|
|
990
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Clears the list making it empty but non-null.
|
|
996
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
997
|
+
*/
|
|
998
|
+
proto.BaseGoodReceipt.prototype.clearFilesList = function() {
|
|
999
|
+
return this.setFilesList([]);
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* optional string group_references = 13;
|
|
1005
|
+
* @return {string}
|
|
1006
|
+
*/
|
|
1007
|
+
proto.BaseGoodReceipt.prototype.getGroupReferences = function() {
|
|
1008
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* @param {string} value
|
|
1014
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
1015
|
+
*/
|
|
1016
|
+
proto.BaseGoodReceipt.prototype.setGroupReferences = function(value) {
|
|
1017
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* optional DeliveryOrder delivery_order = 14;
|
|
1023
|
+
* @return {?proto.DeliveryOrder}
|
|
1024
|
+
*/
|
|
1025
|
+
proto.BaseGoodReceipt.prototype.getDeliveryOrder = function() {
|
|
1026
|
+
return /** @type{?proto.DeliveryOrder} */ (
|
|
1027
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder, 14));
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* @param {?proto.DeliveryOrder|undefined} value
|
|
1033
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
1034
|
+
*/
|
|
1035
|
+
proto.BaseGoodReceipt.prototype.setDeliveryOrder = function(value) {
|
|
1036
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Clears the message field making it undefined.
|
|
1042
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
1043
|
+
*/
|
|
1044
|
+
proto.BaseGoodReceipt.prototype.clearDeliveryOrder = function() {
|
|
1045
|
+
return this.setDeliveryOrder(undefined);
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Returns whether this field is set.
|
|
1051
|
+
* @return {boolean}
|
|
1052
|
+
*/
|
|
1053
|
+
proto.BaseGoodReceipt.prototype.hasDeliveryOrder = function() {
|
|
1054
|
+
return jspb.Message.getField(this, 14) != null;
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* optional string delivery_order_number = 15;
|
|
1060
|
+
* @return {string}
|
|
1061
|
+
*/
|
|
1062
|
+
proto.BaseGoodReceipt.prototype.getDeliveryOrderNumber = function() {
|
|
1063
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* @param {string} value
|
|
1069
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
1070
|
+
*/
|
|
1071
|
+
proto.BaseGoodReceipt.prototype.setDeliveryOrderNumber = function(value) {
|
|
1072
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* optional string delivery_order_date = 16;
|
|
1078
|
+
* @return {string}
|
|
1079
|
+
*/
|
|
1080
|
+
proto.BaseGoodReceipt.prototype.getDeliveryOrderDate = function() {
|
|
1081
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* @param {string} value
|
|
1087
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
1088
|
+
*/
|
|
1089
|
+
proto.BaseGoodReceipt.prototype.setDeliveryOrderDate = function(value) {
|
|
1090
|
+
return jspb.Message.setProto3StringField(this, 16, value);
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* optional string purchase_order_number = 17;
|
|
1096
|
+
* @return {string}
|
|
1097
|
+
*/
|
|
1098
|
+
proto.BaseGoodReceipt.prototype.getPurchaseOrderNumber = function() {
|
|
1099
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* @param {string} value
|
|
1105
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
1106
|
+
*/
|
|
1107
|
+
proto.BaseGoodReceipt.prototype.setPurchaseOrderNumber = function(value) {
|
|
1108
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1116
|
+
/**
|
|
1117
|
+
* Creates an object representation of this proto.
|
|
1118
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1119
|
+
* Optional fields that are not set will be set to undefined.
|
|
1120
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1121
|
+
* For the list of reserved names please see:
|
|
1122
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1123
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1124
|
+
* JSPB instance for transitional soy proto support:
|
|
1125
|
+
* http://goto/soy-param-migration
|
|
1126
|
+
* @return {!Object}
|
|
1127
|
+
*/
|
|
1128
|
+
proto.CreateGoodReceiptRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1129
|
+
return proto.CreateGoodReceiptRequest.toObject(opt_includeInstance, this);
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Static version of the {@see toObject} method.
|
|
1135
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1136
|
+
* the JSPB instance for transitional soy proto support:
|
|
1137
|
+
* http://goto/soy-param-migration
|
|
1138
|
+
* @param {!proto.CreateGoodReceiptRequest} msg The msg instance to transform.
|
|
1139
|
+
* @return {!Object}
|
|
1140
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1141
|
+
*/
|
|
1142
|
+
proto.CreateGoodReceiptRequest.toObject = function(includeInstance, msg) {
|
|
1143
|
+
var f, obj = {
|
|
1144
|
+
baseGoodReceipt: (f = msg.getBaseGoodReceipt()) && proto.BaseGoodReceipt.toObject(includeInstance, f)
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
if (includeInstance) {
|
|
1148
|
+
obj.$jspbMessageInstance = msg;
|
|
1149
|
+
}
|
|
1150
|
+
return obj;
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1157
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1158
|
+
* @return {!proto.CreateGoodReceiptRequest}
|
|
1159
|
+
*/
|
|
1160
|
+
proto.CreateGoodReceiptRequest.deserializeBinary = function(bytes) {
|
|
1161
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1162
|
+
var msg = new proto.CreateGoodReceiptRequest;
|
|
1163
|
+
return proto.CreateGoodReceiptRequest.deserializeBinaryFromReader(msg, reader);
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1169
|
+
* given reader into the given message object.
|
|
1170
|
+
* @param {!proto.CreateGoodReceiptRequest} msg The message object to deserialize into.
|
|
1171
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1172
|
+
* @return {!proto.CreateGoodReceiptRequest}
|
|
1173
|
+
*/
|
|
1174
|
+
proto.CreateGoodReceiptRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1175
|
+
while (reader.nextField()) {
|
|
1176
|
+
if (reader.isEndGroup()) {
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
var field = reader.getFieldNumber();
|
|
1180
|
+
switch (field) {
|
|
1181
|
+
case 1:
|
|
1182
|
+
var value = new proto.BaseGoodReceipt;
|
|
1183
|
+
reader.readMessage(value,proto.BaseGoodReceipt.deserializeBinaryFromReader);
|
|
1184
|
+
msg.setBaseGoodReceipt(value);
|
|
1185
|
+
break;
|
|
1186
|
+
default:
|
|
1187
|
+
reader.skipField();
|
|
1188
|
+
break;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
return msg;
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1197
|
+
* @return {!Uint8Array}
|
|
1198
|
+
*/
|
|
1199
|
+
proto.CreateGoodReceiptRequest.prototype.serializeBinary = function() {
|
|
1200
|
+
var writer = new jspb.BinaryWriter();
|
|
1201
|
+
proto.CreateGoodReceiptRequest.serializeBinaryToWriter(this, writer);
|
|
1202
|
+
return writer.getResultBuffer();
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1208
|
+
* format), writing to the given BinaryWriter.
|
|
1209
|
+
* @param {!proto.CreateGoodReceiptRequest} message
|
|
1210
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1211
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1212
|
+
*/
|
|
1213
|
+
proto.CreateGoodReceiptRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1214
|
+
var f = undefined;
|
|
1215
|
+
f = message.getBaseGoodReceipt();
|
|
1216
|
+
if (f != null) {
|
|
1217
|
+
writer.writeMessage(
|
|
1218
|
+
1,
|
|
1219
|
+
f,
|
|
1220
|
+
proto.BaseGoodReceipt.serializeBinaryToWriter
|
|
1221
|
+
);
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* optional BaseGoodReceipt base_good_receipt = 1;
|
|
1228
|
+
* @return {?proto.BaseGoodReceipt}
|
|
1229
|
+
*/
|
|
1230
|
+
proto.CreateGoodReceiptRequest.prototype.getBaseGoodReceipt = function() {
|
|
1231
|
+
return /** @type{?proto.BaseGoodReceipt} */ (
|
|
1232
|
+
jspb.Message.getWrapperField(this, proto.BaseGoodReceipt, 1));
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* @param {?proto.BaseGoodReceipt|undefined} value
|
|
1238
|
+
* @return {!proto.CreateGoodReceiptRequest} returns this
|
|
1239
|
+
*/
|
|
1240
|
+
proto.CreateGoodReceiptRequest.prototype.setBaseGoodReceipt = function(value) {
|
|
1241
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Clears the message field making it undefined.
|
|
1247
|
+
* @return {!proto.CreateGoodReceiptRequest} returns this
|
|
1248
|
+
*/
|
|
1249
|
+
proto.CreateGoodReceiptRequest.prototype.clearBaseGoodReceipt = function() {
|
|
1250
|
+
return this.setBaseGoodReceipt(undefined);
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Returns whether this field is set.
|
|
1256
|
+
* @return {boolean}
|
|
1257
|
+
*/
|
|
1258
|
+
proto.CreateGoodReceiptRequest.prototype.hasBaseGoodReceipt = function() {
|
|
1259
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1267
|
+
/**
|
|
1268
|
+
* Creates an object representation of this proto.
|
|
1269
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1270
|
+
* Optional fields that are not set will be set to undefined.
|
|
1271
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1272
|
+
* For the list of reserved names please see:
|
|
1273
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1274
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1275
|
+
* JSPB instance for transitional soy proto support:
|
|
1276
|
+
* http://goto/soy-param-migration
|
|
1277
|
+
* @return {!Object}
|
|
1278
|
+
*/
|
|
1279
|
+
proto.UpdateGoodReceiptReq.prototype.toObject = function(opt_includeInstance) {
|
|
1280
|
+
return proto.UpdateGoodReceiptReq.toObject(opt_includeInstance, this);
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* Static version of the {@see toObject} method.
|
|
1286
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1287
|
+
* the JSPB instance for transitional soy proto support:
|
|
1288
|
+
* http://goto/soy-param-migration
|
|
1289
|
+
* @param {!proto.UpdateGoodReceiptReq} msg The msg instance to transform.
|
|
1290
|
+
* @return {!Object}
|
|
1291
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1292
|
+
*/
|
|
1293
|
+
proto.UpdateGoodReceiptReq.toObject = function(includeInstance, msg) {
|
|
1294
|
+
var f, obj = {
|
|
1295
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1296
|
+
baseGoodReceipt: (f = msg.getBaseGoodReceipt()) && proto.BaseGoodReceipt.toObject(includeInstance, f)
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
if (includeInstance) {
|
|
1300
|
+
obj.$jspbMessageInstance = msg;
|
|
1301
|
+
}
|
|
1302
|
+
return obj;
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1309
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1310
|
+
* @return {!proto.UpdateGoodReceiptReq}
|
|
1311
|
+
*/
|
|
1312
|
+
proto.UpdateGoodReceiptReq.deserializeBinary = function(bytes) {
|
|
1313
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1314
|
+
var msg = new proto.UpdateGoodReceiptReq;
|
|
1315
|
+
return proto.UpdateGoodReceiptReq.deserializeBinaryFromReader(msg, reader);
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1321
|
+
* given reader into the given message object.
|
|
1322
|
+
* @param {!proto.UpdateGoodReceiptReq} msg The message object to deserialize into.
|
|
1323
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1324
|
+
* @return {!proto.UpdateGoodReceiptReq}
|
|
1325
|
+
*/
|
|
1326
|
+
proto.UpdateGoodReceiptReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1327
|
+
while (reader.nextField()) {
|
|
1328
|
+
if (reader.isEndGroup()) {
|
|
1329
|
+
break;
|
|
1330
|
+
}
|
|
1331
|
+
var field = reader.getFieldNumber();
|
|
1332
|
+
switch (field) {
|
|
1333
|
+
case 1:
|
|
1334
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1335
|
+
msg.setReferencesId(value);
|
|
1336
|
+
break;
|
|
1337
|
+
case 2:
|
|
1338
|
+
var value = new proto.BaseGoodReceipt;
|
|
1339
|
+
reader.readMessage(value,proto.BaseGoodReceipt.deserializeBinaryFromReader);
|
|
1340
|
+
msg.setBaseGoodReceipt(value);
|
|
1341
|
+
break;
|
|
1342
|
+
default:
|
|
1343
|
+
reader.skipField();
|
|
1344
|
+
break;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
return msg;
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1353
|
+
* @return {!Uint8Array}
|
|
1354
|
+
*/
|
|
1355
|
+
proto.UpdateGoodReceiptReq.prototype.serializeBinary = function() {
|
|
1356
|
+
var writer = new jspb.BinaryWriter();
|
|
1357
|
+
proto.UpdateGoodReceiptReq.serializeBinaryToWriter(this, writer);
|
|
1358
|
+
return writer.getResultBuffer();
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1364
|
+
* format), writing to the given BinaryWriter.
|
|
1365
|
+
* @param {!proto.UpdateGoodReceiptReq} message
|
|
1366
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1367
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1368
|
+
*/
|
|
1369
|
+
proto.UpdateGoodReceiptReq.serializeBinaryToWriter = function(message, writer) {
|
|
1370
|
+
var f = undefined;
|
|
1371
|
+
f = message.getReferencesId();
|
|
1372
|
+
if (f.length > 0) {
|
|
1373
|
+
writer.writeString(
|
|
1374
|
+
1,
|
|
1375
|
+
f
|
|
1376
|
+
);
|
|
1377
|
+
}
|
|
1378
|
+
f = message.getBaseGoodReceipt();
|
|
1379
|
+
if (f != null) {
|
|
1380
|
+
writer.writeMessage(
|
|
1381
|
+
2,
|
|
1382
|
+
f,
|
|
1383
|
+
proto.BaseGoodReceipt.serializeBinaryToWriter
|
|
1384
|
+
);
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* optional string references_id = 1;
|
|
1391
|
+
* @return {string}
|
|
1392
|
+
*/
|
|
1393
|
+
proto.UpdateGoodReceiptReq.prototype.getReferencesId = function() {
|
|
1394
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* @param {string} value
|
|
1400
|
+
* @return {!proto.UpdateGoodReceiptReq} returns this
|
|
1401
|
+
*/
|
|
1402
|
+
proto.UpdateGoodReceiptReq.prototype.setReferencesId = function(value) {
|
|
1403
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* optional BaseGoodReceipt base_good_receipt = 2;
|
|
1409
|
+
* @return {?proto.BaseGoodReceipt}
|
|
1410
|
+
*/
|
|
1411
|
+
proto.UpdateGoodReceiptReq.prototype.getBaseGoodReceipt = function() {
|
|
1412
|
+
return /** @type{?proto.BaseGoodReceipt} */ (
|
|
1413
|
+
jspb.Message.getWrapperField(this, proto.BaseGoodReceipt, 2));
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* @param {?proto.BaseGoodReceipt|undefined} value
|
|
1419
|
+
* @return {!proto.UpdateGoodReceiptReq} returns this
|
|
1420
|
+
*/
|
|
1421
|
+
proto.UpdateGoodReceiptReq.prototype.setBaseGoodReceipt = function(value) {
|
|
1422
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* Clears the message field making it undefined.
|
|
1428
|
+
* @return {!proto.UpdateGoodReceiptReq} returns this
|
|
1429
|
+
*/
|
|
1430
|
+
proto.UpdateGoodReceiptReq.prototype.clearBaseGoodReceipt = function() {
|
|
1431
|
+
return this.setBaseGoodReceipt(undefined);
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Returns whether this field is set.
|
|
1437
|
+
* @return {boolean}
|
|
1438
|
+
*/
|
|
1439
|
+
proto.UpdateGoodReceiptReq.prototype.hasBaseGoodReceipt = function() {
|
|
1440
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1448
|
+
/**
|
|
1449
|
+
* Creates an object representation of this proto.
|
|
1450
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1451
|
+
* Optional fields that are not set will be set to undefined.
|
|
1452
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1453
|
+
* For the list of reserved names please see:
|
|
1454
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1455
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1456
|
+
* JSPB instance for transitional soy proto support:
|
|
1457
|
+
* http://goto/soy-param-migration
|
|
1458
|
+
* @return {!Object}
|
|
1459
|
+
*/
|
|
1460
|
+
proto.UpdateGoodReceiptStatusReq.prototype.toObject = function(opt_includeInstance) {
|
|
1461
|
+
return proto.UpdateGoodReceiptStatusReq.toObject(opt_includeInstance, this);
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Static version of the {@see toObject} method.
|
|
1467
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1468
|
+
* the JSPB instance for transitional soy proto support:
|
|
1469
|
+
* http://goto/soy-param-migration
|
|
1470
|
+
* @param {!proto.UpdateGoodReceiptStatusReq} msg The msg instance to transform.
|
|
1471
|
+
* @return {!Object}
|
|
1472
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1473
|
+
*/
|
|
1474
|
+
proto.UpdateGoodReceiptStatusReq.toObject = function(includeInstance, msg) {
|
|
1475
|
+
var f, obj = {
|
|
1476
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1477
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
if (includeInstance) {
|
|
1481
|
+
obj.$jspbMessageInstance = msg;
|
|
1482
|
+
}
|
|
1483
|
+
return obj;
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1490
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1491
|
+
* @return {!proto.UpdateGoodReceiptStatusReq}
|
|
1492
|
+
*/
|
|
1493
|
+
proto.UpdateGoodReceiptStatusReq.deserializeBinary = function(bytes) {
|
|
1494
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1495
|
+
var msg = new proto.UpdateGoodReceiptStatusReq;
|
|
1496
|
+
return proto.UpdateGoodReceiptStatusReq.deserializeBinaryFromReader(msg, reader);
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1502
|
+
* given reader into the given message object.
|
|
1503
|
+
* @param {!proto.UpdateGoodReceiptStatusReq} msg The message object to deserialize into.
|
|
1504
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1505
|
+
* @return {!proto.UpdateGoodReceiptStatusReq}
|
|
1506
|
+
*/
|
|
1507
|
+
proto.UpdateGoodReceiptStatusReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1508
|
+
while (reader.nextField()) {
|
|
1509
|
+
if (reader.isEndGroup()) {
|
|
1510
|
+
break;
|
|
1511
|
+
}
|
|
1512
|
+
var field = reader.getFieldNumber();
|
|
1513
|
+
switch (field) {
|
|
1514
|
+
case 1:
|
|
1515
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1516
|
+
msg.setStatus(value);
|
|
1517
|
+
break;
|
|
1518
|
+
case 2:
|
|
1519
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1520
|
+
msg.setReferencesId(value);
|
|
1521
|
+
break;
|
|
1522
|
+
default:
|
|
1523
|
+
reader.skipField();
|
|
1524
|
+
break;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return msg;
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1533
|
+
* @return {!Uint8Array}
|
|
1534
|
+
*/
|
|
1535
|
+
proto.UpdateGoodReceiptStatusReq.prototype.serializeBinary = function() {
|
|
1536
|
+
var writer = new jspb.BinaryWriter();
|
|
1537
|
+
proto.UpdateGoodReceiptStatusReq.serializeBinaryToWriter(this, writer);
|
|
1538
|
+
return writer.getResultBuffer();
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1544
|
+
* format), writing to the given BinaryWriter.
|
|
1545
|
+
* @param {!proto.UpdateGoodReceiptStatusReq} message
|
|
1546
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1547
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1548
|
+
*/
|
|
1549
|
+
proto.UpdateGoodReceiptStatusReq.serializeBinaryToWriter = function(message, writer) {
|
|
1550
|
+
var f = undefined;
|
|
1551
|
+
f = message.getStatus();
|
|
1552
|
+
if (f.length > 0) {
|
|
1553
|
+
writer.writeString(
|
|
1554
|
+
1,
|
|
1555
|
+
f
|
|
1556
|
+
);
|
|
1557
|
+
}
|
|
1558
|
+
f = message.getReferencesId();
|
|
1559
|
+
if (f.length > 0) {
|
|
1560
|
+
writer.writeString(
|
|
1561
|
+
2,
|
|
1562
|
+
f
|
|
1563
|
+
);
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* optional string status = 1;
|
|
1570
|
+
* @return {string}
|
|
1571
|
+
*/
|
|
1572
|
+
proto.UpdateGoodReceiptStatusReq.prototype.getStatus = function() {
|
|
1573
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* @param {string} value
|
|
1579
|
+
* @return {!proto.UpdateGoodReceiptStatusReq} returns this
|
|
1580
|
+
*/
|
|
1581
|
+
proto.UpdateGoodReceiptStatusReq.prototype.setStatus = function(value) {
|
|
1582
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1583
|
+
};
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* optional string references_id = 2;
|
|
1588
|
+
* @return {string}
|
|
1589
|
+
*/
|
|
1590
|
+
proto.UpdateGoodReceiptStatusReq.prototype.getReferencesId = function() {
|
|
1591
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1592
|
+
};
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* @param {string} value
|
|
1597
|
+
* @return {!proto.UpdateGoodReceiptStatusReq} returns this
|
|
1598
|
+
*/
|
|
1599
|
+
proto.UpdateGoodReceiptStatusReq.prototype.setReferencesId = function(value) {
|
|
1600
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* List of repeated fields within this message type.
|
|
1607
|
+
* @private {!Array<number>}
|
|
1608
|
+
* @const
|
|
1609
|
+
*/
|
|
1610
|
+
proto.UpdateGoodReceiptFileReq.repeatedFields_ = [2,3];
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1615
|
+
/**
|
|
1616
|
+
* Creates an object representation of this proto.
|
|
1617
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1618
|
+
* Optional fields that are not set will be set to undefined.
|
|
1619
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1620
|
+
* For the list of reserved names please see:
|
|
1621
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1622
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1623
|
+
* JSPB instance for transitional soy proto support:
|
|
1624
|
+
* http://goto/soy-param-migration
|
|
1625
|
+
* @return {!Object}
|
|
1626
|
+
*/
|
|
1627
|
+
proto.UpdateGoodReceiptFileReq.prototype.toObject = function(opt_includeInstance) {
|
|
1628
|
+
return proto.UpdateGoodReceiptFileReq.toObject(opt_includeInstance, this);
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Static version of the {@see toObject} method.
|
|
1634
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1635
|
+
* the JSPB instance for transitional soy proto support:
|
|
1636
|
+
* http://goto/soy-param-migration
|
|
1637
|
+
* @param {!proto.UpdateGoodReceiptFileReq} msg The msg instance to transform.
|
|
1638
|
+
* @return {!Object}
|
|
1639
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1640
|
+
*/
|
|
1641
|
+
proto.UpdateGoodReceiptFileReq.toObject = function(includeInstance, msg) {
|
|
1642
|
+
var f, obj = {
|
|
1643
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1644
|
+
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
1645
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
1646
|
+
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
1647
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance)
|
|
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.UpdateGoodReceiptFileReq}
|
|
1662
|
+
*/
|
|
1663
|
+
proto.UpdateGoodReceiptFileReq.deserializeBinary = function(bytes) {
|
|
1664
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1665
|
+
var msg = new proto.UpdateGoodReceiptFileReq;
|
|
1666
|
+
return proto.UpdateGoodReceiptFileReq.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.UpdateGoodReceiptFileReq} msg The message object to deserialize into.
|
|
1674
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1675
|
+
* @return {!proto.UpdateGoodReceiptFileReq}
|
|
1676
|
+
*/
|
|
1677
|
+
proto.UpdateGoodReceiptFileReq.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 = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1686
|
+
msg.setReferencesId(value);
|
|
1687
|
+
break;
|
|
1688
|
+
case 2:
|
|
1689
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
1690
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
1691
|
+
msg.addFiles(value);
|
|
1692
|
+
break;
|
|
1693
|
+
case 3:
|
|
1694
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction;
|
|
1695
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.deserializeBinaryFromReader);
|
|
1696
|
+
msg.addItemTransactions(value);
|
|
1697
|
+
break;
|
|
1698
|
+
default:
|
|
1699
|
+
reader.skipField();
|
|
1700
|
+
break;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
return msg;
|
|
1704
|
+
};
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1709
|
+
* @return {!Uint8Array}
|
|
1710
|
+
*/
|
|
1711
|
+
proto.UpdateGoodReceiptFileReq.prototype.serializeBinary = function() {
|
|
1712
|
+
var writer = new jspb.BinaryWriter();
|
|
1713
|
+
proto.UpdateGoodReceiptFileReq.serializeBinaryToWriter(this, writer);
|
|
1714
|
+
return writer.getResultBuffer();
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1720
|
+
* format), writing to the given BinaryWriter.
|
|
1721
|
+
* @param {!proto.UpdateGoodReceiptFileReq} message
|
|
1722
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1723
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1724
|
+
*/
|
|
1725
|
+
proto.UpdateGoodReceiptFileReq.serializeBinaryToWriter = function(message, writer) {
|
|
1726
|
+
var f = undefined;
|
|
1727
|
+
f = message.getReferencesId();
|
|
1728
|
+
if (f.length > 0) {
|
|
1729
|
+
writer.writeString(
|
|
1730
|
+
1,
|
|
1731
|
+
f
|
|
1732
|
+
);
|
|
1733
|
+
}
|
|
1734
|
+
f = message.getFilesList();
|
|
1735
|
+
if (f.length > 0) {
|
|
1736
|
+
writer.writeRepeatedMessage(
|
|
1737
|
+
2,
|
|
1738
|
+
f,
|
|
1739
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
1740
|
+
);
|
|
1741
|
+
}
|
|
1742
|
+
f = message.getItemTransactionsList();
|
|
1743
|
+
if (f.length > 0) {
|
|
1744
|
+
writer.writeRepeatedMessage(
|
|
1745
|
+
3,
|
|
1746
|
+
f,
|
|
1747
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
|
|
1748
|
+
);
|
|
1749
|
+
}
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* optional string references_id = 1;
|
|
1755
|
+
* @return {string}
|
|
1756
|
+
*/
|
|
1757
|
+
proto.UpdateGoodReceiptFileReq.prototype.getReferencesId = function() {
|
|
1758
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* @param {string} value
|
|
1764
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1765
|
+
*/
|
|
1766
|
+
proto.UpdateGoodReceiptFileReq.prototype.setReferencesId = function(value) {
|
|
1767
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* repeated FileUploadReferencesReq files = 2;
|
|
1773
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
1774
|
+
*/
|
|
1775
|
+
proto.UpdateGoodReceiptFileReq.prototype.getFilesList = function() {
|
|
1776
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
1777
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 2));
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
1783
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1784
|
+
*/
|
|
1785
|
+
proto.UpdateGoodReceiptFileReq.prototype.setFilesList = function(value) {
|
|
1786
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
1792
|
+
* @param {number=} opt_index
|
|
1793
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
1794
|
+
*/
|
|
1795
|
+
proto.UpdateGoodReceiptFileReq.prototype.addFiles = function(opt_value, opt_index) {
|
|
1796
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Clears the list making it empty but non-null.
|
|
1802
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1803
|
+
*/
|
|
1804
|
+
proto.UpdateGoodReceiptFileReq.prototype.clearFilesList = function() {
|
|
1805
|
+
return this.setFilesList([]);
|
|
1806
|
+
};
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* repeated BaseItemTransaction item_transactions = 3;
|
|
1811
|
+
* @return {!Array<!proto.BaseItemTransaction>}
|
|
1812
|
+
*/
|
|
1813
|
+
proto.UpdateGoodReceiptFileReq.prototype.getItemTransactionsList = function() {
|
|
1814
|
+
return /** @type{!Array<!proto.BaseItemTransaction>} */ (
|
|
1815
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction, 3));
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* @param {!Array<!proto.BaseItemTransaction>} value
|
|
1821
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1822
|
+
*/
|
|
1823
|
+
proto.UpdateGoodReceiptFileReq.prototype.setItemTransactionsList = function(value) {
|
|
1824
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* @param {!proto.BaseItemTransaction=} opt_value
|
|
1830
|
+
* @param {number=} opt_index
|
|
1831
|
+
* @return {!proto.BaseItemTransaction}
|
|
1832
|
+
*/
|
|
1833
|
+
proto.UpdateGoodReceiptFileReq.prototype.addItemTransactions = function(opt_value, opt_index) {
|
|
1834
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.BaseItemTransaction, opt_index);
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Clears the list making it empty but non-null.
|
|
1840
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1841
|
+
*/
|
|
1842
|
+
proto.UpdateGoodReceiptFileReq.prototype.clearItemTransactionsList = function() {
|
|
1843
|
+
return this.setItemTransactionsList([]);
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1851
|
+
/**
|
|
1852
|
+
* Creates an object representation of this proto.
|
|
1853
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1854
|
+
* Optional fields that are not set will be set to undefined.
|
|
1855
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1856
|
+
* For the list of reserved names please see:
|
|
1857
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1858
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1859
|
+
* JSPB instance for transitional soy proto support:
|
|
1860
|
+
* http://goto/soy-param-migration
|
|
1861
|
+
* @return {!Object}
|
|
1862
|
+
*/
|
|
1863
|
+
proto.GetListGoodReceiptReq.prototype.toObject = function(opt_includeInstance) {
|
|
1864
|
+
return proto.GetListGoodReceiptReq.toObject(opt_includeInstance, this);
|
|
1865
|
+
};
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Static version of the {@see toObject} method.
|
|
1870
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1871
|
+
* the JSPB instance for transitional soy proto support:
|
|
1872
|
+
* http://goto/soy-param-migration
|
|
1873
|
+
* @param {!proto.GetListGoodReceiptReq} msg The msg instance to transform.
|
|
1874
|
+
* @return {!Object}
|
|
1875
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1876
|
+
*/
|
|
1877
|
+
proto.GetListGoodReceiptReq.toObject = function(includeInstance, msg) {
|
|
1878
|
+
var f, obj = {
|
|
1879
|
+
pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
|
|
1880
|
+
query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
if (includeInstance) {
|
|
1884
|
+
obj.$jspbMessageInstance = msg;
|
|
1885
|
+
}
|
|
1886
|
+
return obj;
|
|
1887
|
+
};
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1893
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1894
|
+
* @return {!proto.GetListGoodReceiptReq}
|
|
1895
|
+
*/
|
|
1896
|
+
proto.GetListGoodReceiptReq.deserializeBinary = function(bytes) {
|
|
1897
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1898
|
+
var msg = new proto.GetListGoodReceiptReq;
|
|
1899
|
+
return proto.GetListGoodReceiptReq.deserializeBinaryFromReader(msg, reader);
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1905
|
+
* given reader into the given message object.
|
|
1906
|
+
* @param {!proto.GetListGoodReceiptReq} msg The message object to deserialize into.
|
|
1907
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1908
|
+
* @return {!proto.GetListGoodReceiptReq}
|
|
1909
|
+
*/
|
|
1910
|
+
proto.GetListGoodReceiptReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1911
|
+
while (reader.nextField()) {
|
|
1912
|
+
if (reader.isEndGroup()) {
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
var field = reader.getFieldNumber();
|
|
1916
|
+
switch (field) {
|
|
1917
|
+
case 1:
|
|
1918
|
+
var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
|
|
1919
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
|
|
1920
|
+
msg.setPagination(value);
|
|
1921
|
+
break;
|
|
1922
|
+
case 2:
|
|
1923
|
+
var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
|
|
1924
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
|
|
1925
|
+
msg.setQuery(value);
|
|
1926
|
+
break;
|
|
1927
|
+
default:
|
|
1928
|
+
reader.skipField();
|
|
1929
|
+
break;
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
return msg;
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1938
|
+
* @return {!Uint8Array}
|
|
1939
|
+
*/
|
|
1940
|
+
proto.GetListGoodReceiptReq.prototype.serializeBinary = function() {
|
|
1941
|
+
var writer = new jspb.BinaryWriter();
|
|
1942
|
+
proto.GetListGoodReceiptReq.serializeBinaryToWriter(this, writer);
|
|
1943
|
+
return writer.getResultBuffer();
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1949
|
+
* format), writing to the given BinaryWriter.
|
|
1950
|
+
* @param {!proto.GetListGoodReceiptReq} message
|
|
1951
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1952
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1953
|
+
*/
|
|
1954
|
+
proto.GetListGoodReceiptReq.serializeBinaryToWriter = function(message, writer) {
|
|
1955
|
+
var f = undefined;
|
|
1956
|
+
f = message.getPagination();
|
|
1957
|
+
if (f != null) {
|
|
1958
|
+
writer.writeMessage(
|
|
1959
|
+
1,
|
|
1960
|
+
f,
|
|
1961
|
+
prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
|
|
1962
|
+
);
|
|
1963
|
+
}
|
|
1964
|
+
f = message.getQuery();
|
|
1965
|
+
if (f != null) {
|
|
1966
|
+
writer.writeMessage(
|
|
1967
|
+
2,
|
|
1968
|
+
f,
|
|
1969
|
+
prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
|
|
1970
|
+
);
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* optional prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
1977
|
+
* @return {?proto.prisca.v1.global.meta.PaginationRequest}
|
|
1978
|
+
*/
|
|
1979
|
+
proto.GetListGoodReceiptReq.prototype.getPagination = function() {
|
|
1980
|
+
return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
|
|
1981
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
|
|
1987
|
+
* @return {!proto.GetListGoodReceiptReq} returns this
|
|
1988
|
+
*/
|
|
1989
|
+
proto.GetListGoodReceiptReq.prototype.setPagination = function(value) {
|
|
1990
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* Clears the message field making it undefined.
|
|
1996
|
+
* @return {!proto.GetListGoodReceiptReq} returns this
|
|
1997
|
+
*/
|
|
1998
|
+
proto.GetListGoodReceiptReq.prototype.clearPagination = function() {
|
|
1999
|
+
return this.setPagination(undefined);
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Returns whether this field is set.
|
|
2005
|
+
* @return {boolean}
|
|
2006
|
+
*/
|
|
2007
|
+
proto.GetListGoodReceiptReq.prototype.hasPagination = function() {
|
|
2008
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2009
|
+
};
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* optional prisca.v1.global.meta.FilterRequest query = 2;
|
|
2014
|
+
* @return {?proto.prisca.v1.global.meta.FilterRequest}
|
|
2015
|
+
*/
|
|
2016
|
+
proto.GetListGoodReceiptReq.prototype.getQuery = function() {
|
|
2017
|
+
return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
|
|
2018
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
|
|
2019
|
+
};
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
|
|
2024
|
+
* @return {!proto.GetListGoodReceiptReq} returns this
|
|
2025
|
+
*/
|
|
2026
|
+
proto.GetListGoodReceiptReq.prototype.setQuery = function(value) {
|
|
2027
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* Clears the message field making it undefined.
|
|
2033
|
+
* @return {!proto.GetListGoodReceiptReq} returns this
|
|
2034
|
+
*/
|
|
2035
|
+
proto.GetListGoodReceiptReq.prototype.clearQuery = function() {
|
|
2036
|
+
return this.setQuery(undefined);
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Returns whether this field is set.
|
|
2042
|
+
* @return {boolean}
|
|
2043
|
+
*/
|
|
2044
|
+
proto.GetListGoodReceiptReq.prototype.hasQuery = function() {
|
|
2045
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2046
|
+
};
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2053
|
+
/**
|
|
2054
|
+
* Creates an object representation of this proto.
|
|
2055
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2056
|
+
* Optional fields that are not set will be set to undefined.
|
|
2057
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2058
|
+
* For the list of reserved names please see:
|
|
2059
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2060
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2061
|
+
* JSPB instance for transitional soy proto support:
|
|
2062
|
+
* http://goto/soy-param-migration
|
|
2063
|
+
* @return {!Object}
|
|
2064
|
+
*/
|
|
2065
|
+
proto.GetByRefGoodReceiptReq.prototype.toObject = function(opt_includeInstance) {
|
|
2066
|
+
return proto.GetByRefGoodReceiptReq.toObject(opt_includeInstance, this);
|
|
2067
|
+
};
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* Static version of the {@see toObject} method.
|
|
2072
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2073
|
+
* the JSPB instance for transitional soy proto support:
|
|
2074
|
+
* http://goto/soy-param-migration
|
|
2075
|
+
* @param {!proto.GetByRefGoodReceiptReq} msg The msg instance to transform.
|
|
2076
|
+
* @return {!Object}
|
|
2077
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2078
|
+
*/
|
|
2079
|
+
proto.GetByRefGoodReceiptReq.toObject = function(includeInstance, msg) {
|
|
2080
|
+
var f, obj = {
|
|
2081
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
if (includeInstance) {
|
|
2085
|
+
obj.$jspbMessageInstance = msg;
|
|
2086
|
+
}
|
|
2087
|
+
return obj;
|
|
2088
|
+
};
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2094
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2095
|
+
* @return {!proto.GetByRefGoodReceiptReq}
|
|
2096
|
+
*/
|
|
2097
|
+
proto.GetByRefGoodReceiptReq.deserializeBinary = function(bytes) {
|
|
2098
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2099
|
+
var msg = new proto.GetByRefGoodReceiptReq;
|
|
2100
|
+
return proto.GetByRefGoodReceiptReq.deserializeBinaryFromReader(msg, reader);
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2106
|
+
* given reader into the given message object.
|
|
2107
|
+
* @param {!proto.GetByRefGoodReceiptReq} msg The message object to deserialize into.
|
|
2108
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2109
|
+
* @return {!proto.GetByRefGoodReceiptReq}
|
|
2110
|
+
*/
|
|
2111
|
+
proto.GetByRefGoodReceiptReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
2112
|
+
while (reader.nextField()) {
|
|
2113
|
+
if (reader.isEndGroup()) {
|
|
2114
|
+
break;
|
|
2115
|
+
}
|
|
2116
|
+
var field = reader.getFieldNumber();
|
|
2117
|
+
switch (field) {
|
|
2118
|
+
case 1:
|
|
2119
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2120
|
+
msg.setReferencesId(value);
|
|
2121
|
+
break;
|
|
2122
|
+
default:
|
|
2123
|
+
reader.skipField();
|
|
2124
|
+
break;
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
return msg;
|
|
2128
|
+
};
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2133
|
+
* @return {!Uint8Array}
|
|
2134
|
+
*/
|
|
2135
|
+
proto.GetByRefGoodReceiptReq.prototype.serializeBinary = function() {
|
|
2136
|
+
var writer = new jspb.BinaryWriter();
|
|
2137
|
+
proto.GetByRefGoodReceiptReq.serializeBinaryToWriter(this, writer);
|
|
2138
|
+
return writer.getResultBuffer();
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2144
|
+
* format), writing to the given BinaryWriter.
|
|
2145
|
+
* @param {!proto.GetByRefGoodReceiptReq} message
|
|
2146
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2147
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2148
|
+
*/
|
|
2149
|
+
proto.GetByRefGoodReceiptReq.serializeBinaryToWriter = function(message, writer) {
|
|
2150
|
+
var f = undefined;
|
|
2151
|
+
f = message.getReferencesId();
|
|
2152
|
+
if (f.length > 0) {
|
|
2153
|
+
writer.writeString(
|
|
2154
|
+
1,
|
|
2155
|
+
f
|
|
2156
|
+
);
|
|
2157
|
+
}
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* optional string references_id = 1;
|
|
2163
|
+
* @return {string}
|
|
2164
|
+
*/
|
|
2165
|
+
proto.GetByRefGoodReceiptReq.prototype.getReferencesId = function() {
|
|
2166
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
/**
|
|
2171
|
+
* @param {string} value
|
|
2172
|
+
* @return {!proto.GetByRefGoodReceiptReq} returns this
|
|
2173
|
+
*/
|
|
2174
|
+
proto.GetByRefGoodReceiptReq.prototype.setReferencesId = function(value) {
|
|
2175
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2176
|
+
};
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2183
|
+
/**
|
|
2184
|
+
* Creates an object representation of this proto.
|
|
2185
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2186
|
+
* Optional fields that are not set will be set to undefined.
|
|
2187
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2188
|
+
* For the list of reserved names please see:
|
|
2189
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2190
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2191
|
+
* JSPB instance for transitional soy proto support:
|
|
2192
|
+
* http://goto/soy-param-migration
|
|
2193
|
+
* @return {!Object}
|
|
2194
|
+
*/
|
|
2195
|
+
proto.CreateGoodReceiptRes.prototype.toObject = function(opt_includeInstance) {
|
|
2196
|
+
return proto.CreateGoodReceiptRes.toObject(opt_includeInstance, this);
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* Static version of the {@see toObject} method.
|
|
2202
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2203
|
+
* the JSPB instance for transitional soy proto support:
|
|
2204
|
+
* http://goto/soy-param-migration
|
|
2205
|
+
* @param {!proto.CreateGoodReceiptRes} msg The msg instance to transform.
|
|
2206
|
+
* @return {!Object}
|
|
2207
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2208
|
+
*/
|
|
2209
|
+
proto.CreateGoodReceiptRes.toObject = function(includeInstance, msg) {
|
|
2210
|
+
var f, obj = {
|
|
2211
|
+
goodReceipt: (f = msg.getGoodReceipt()) && prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.toObject(includeInstance, f),
|
|
2212
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
if (includeInstance) {
|
|
2216
|
+
obj.$jspbMessageInstance = msg;
|
|
2217
|
+
}
|
|
2218
|
+
return obj;
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2225
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2226
|
+
* @return {!proto.CreateGoodReceiptRes}
|
|
2227
|
+
*/
|
|
2228
|
+
proto.CreateGoodReceiptRes.deserializeBinary = function(bytes) {
|
|
2229
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2230
|
+
var msg = new proto.CreateGoodReceiptRes;
|
|
2231
|
+
return proto.CreateGoodReceiptRes.deserializeBinaryFromReader(msg, reader);
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2237
|
+
* given reader into the given message object.
|
|
2238
|
+
* @param {!proto.CreateGoodReceiptRes} msg The message object to deserialize into.
|
|
2239
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2240
|
+
* @return {!proto.CreateGoodReceiptRes}
|
|
2241
|
+
*/
|
|
2242
|
+
proto.CreateGoodReceiptRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
2243
|
+
while (reader.nextField()) {
|
|
2244
|
+
if (reader.isEndGroup()) {
|
|
2245
|
+
break;
|
|
2246
|
+
}
|
|
2247
|
+
var field = reader.getFieldNumber();
|
|
2248
|
+
switch (field) {
|
|
2249
|
+
case 1:
|
|
2250
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.GoodReceipt;
|
|
2251
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.deserializeBinaryFromReader);
|
|
2252
|
+
msg.setGoodReceipt(value);
|
|
2253
|
+
break;
|
|
2254
|
+
case 2:
|
|
2255
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
2256
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
2257
|
+
msg.setMeta(value);
|
|
2258
|
+
break;
|
|
2259
|
+
default:
|
|
2260
|
+
reader.skipField();
|
|
2261
|
+
break;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
return msg;
|
|
2265
|
+
};
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
/**
|
|
2269
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2270
|
+
* @return {!Uint8Array}
|
|
2271
|
+
*/
|
|
2272
|
+
proto.CreateGoodReceiptRes.prototype.serializeBinary = function() {
|
|
2273
|
+
var writer = new jspb.BinaryWriter();
|
|
2274
|
+
proto.CreateGoodReceiptRes.serializeBinaryToWriter(this, writer);
|
|
2275
|
+
return writer.getResultBuffer();
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2281
|
+
* format), writing to the given BinaryWriter.
|
|
2282
|
+
* @param {!proto.CreateGoodReceiptRes} message
|
|
2283
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2284
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2285
|
+
*/
|
|
2286
|
+
proto.CreateGoodReceiptRes.serializeBinaryToWriter = function(message, writer) {
|
|
2287
|
+
var f = undefined;
|
|
2288
|
+
f = message.getGoodReceipt();
|
|
2289
|
+
if (f != null) {
|
|
2290
|
+
writer.writeMessage(
|
|
2291
|
+
1,
|
|
2292
|
+
f,
|
|
2293
|
+
prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.serializeBinaryToWriter
|
|
2294
|
+
);
|
|
2295
|
+
}
|
|
2296
|
+
f = message.getMeta();
|
|
2297
|
+
if (f != null) {
|
|
2298
|
+
writer.writeMessage(
|
|
2299
|
+
2,
|
|
2300
|
+
f,
|
|
2301
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
2302
|
+
);
|
|
2303
|
+
}
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* optional GoodReceipt good_receipt = 1;
|
|
2309
|
+
* @return {?proto.GoodReceipt}
|
|
2310
|
+
*/
|
|
2311
|
+
proto.CreateGoodReceiptRes.prototype.getGoodReceipt = function() {
|
|
2312
|
+
return /** @type{?proto.GoodReceipt} */ (
|
|
2313
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.GoodReceipt, 1));
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* @param {?proto.GoodReceipt|undefined} value
|
|
2319
|
+
* @return {!proto.CreateGoodReceiptRes} returns this
|
|
2320
|
+
*/
|
|
2321
|
+
proto.CreateGoodReceiptRes.prototype.setGoodReceipt = function(value) {
|
|
2322
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2323
|
+
};
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* Clears the message field making it undefined.
|
|
2328
|
+
* @return {!proto.CreateGoodReceiptRes} returns this
|
|
2329
|
+
*/
|
|
2330
|
+
proto.CreateGoodReceiptRes.prototype.clearGoodReceipt = function() {
|
|
2331
|
+
return this.setGoodReceipt(undefined);
|
|
2332
|
+
};
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Returns whether this field is set.
|
|
2337
|
+
* @return {boolean}
|
|
2338
|
+
*/
|
|
2339
|
+
proto.CreateGoodReceiptRes.prototype.hasGoodReceipt = function() {
|
|
2340
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2341
|
+
};
|
|
2342
|
+
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
2346
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
2347
|
+
*/
|
|
2348
|
+
proto.CreateGoodReceiptRes.prototype.getMeta = function() {
|
|
2349
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
2350
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
2351
|
+
};
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
2356
|
+
* @return {!proto.CreateGoodReceiptRes} returns this
|
|
2357
|
+
*/
|
|
2358
|
+
proto.CreateGoodReceiptRes.prototype.setMeta = function(value) {
|
|
2359
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Clears the message field making it undefined.
|
|
2365
|
+
* @return {!proto.CreateGoodReceiptRes} returns this
|
|
2366
|
+
*/
|
|
2367
|
+
proto.CreateGoodReceiptRes.prototype.clearMeta = function() {
|
|
2368
|
+
return this.setMeta(undefined);
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
/**
|
|
2373
|
+
* Returns whether this field is set.
|
|
2374
|
+
* @return {boolean}
|
|
2375
|
+
*/
|
|
2376
|
+
proto.CreateGoodReceiptRes.prototype.hasMeta = function() {
|
|
2377
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2385
|
+
/**
|
|
2386
|
+
* Creates an object representation of this proto.
|
|
2387
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2388
|
+
* Optional fields that are not set will be set to undefined.
|
|
2389
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2390
|
+
* For the list of reserved names please see:
|
|
2391
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2392
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2393
|
+
* JSPB instance for transitional soy proto support:
|
|
2394
|
+
* http://goto/soy-param-migration
|
|
2395
|
+
* @return {!Object}
|
|
2396
|
+
*/
|
|
2397
|
+
proto.UpdateGoodReceiptRes.prototype.toObject = function(opt_includeInstance) {
|
|
2398
|
+
return proto.UpdateGoodReceiptRes.toObject(opt_includeInstance, this);
|
|
2399
|
+
};
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* Static version of the {@see toObject} method.
|
|
2404
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2405
|
+
* the JSPB instance for transitional soy proto support:
|
|
2406
|
+
* http://goto/soy-param-migration
|
|
2407
|
+
* @param {!proto.UpdateGoodReceiptRes} msg The msg instance to transform.
|
|
2408
|
+
* @return {!Object}
|
|
2409
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2410
|
+
*/
|
|
2411
|
+
proto.UpdateGoodReceiptRes.toObject = function(includeInstance, msg) {
|
|
2412
|
+
var f, obj = {
|
|
2413
|
+
goodReceipt: (f = msg.getGoodReceipt()) && prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.toObject(includeInstance, f),
|
|
2414
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2415
|
+
};
|
|
2416
|
+
|
|
2417
|
+
if (includeInstance) {
|
|
2418
|
+
obj.$jspbMessageInstance = msg;
|
|
2419
|
+
}
|
|
2420
|
+
return obj;
|
|
2421
|
+
};
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2427
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2428
|
+
* @return {!proto.UpdateGoodReceiptRes}
|
|
2429
|
+
*/
|
|
2430
|
+
proto.UpdateGoodReceiptRes.deserializeBinary = function(bytes) {
|
|
2431
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2432
|
+
var msg = new proto.UpdateGoodReceiptRes;
|
|
2433
|
+
return proto.UpdateGoodReceiptRes.deserializeBinaryFromReader(msg, reader);
|
|
2434
|
+
};
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2439
|
+
* given reader into the given message object.
|
|
2440
|
+
* @param {!proto.UpdateGoodReceiptRes} msg The message object to deserialize into.
|
|
2441
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2442
|
+
* @return {!proto.UpdateGoodReceiptRes}
|
|
2443
|
+
*/
|
|
2444
|
+
proto.UpdateGoodReceiptRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
2445
|
+
while (reader.nextField()) {
|
|
2446
|
+
if (reader.isEndGroup()) {
|
|
2447
|
+
break;
|
|
2448
|
+
}
|
|
2449
|
+
var field = reader.getFieldNumber();
|
|
2450
|
+
switch (field) {
|
|
2451
|
+
case 1:
|
|
2452
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.GoodReceipt;
|
|
2453
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.deserializeBinaryFromReader);
|
|
2454
|
+
msg.setGoodReceipt(value);
|
|
2455
|
+
break;
|
|
2456
|
+
case 2:
|
|
2457
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
2458
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
2459
|
+
msg.setMeta(value);
|
|
2460
|
+
break;
|
|
2461
|
+
default:
|
|
2462
|
+
reader.skipField();
|
|
2463
|
+
break;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
return msg;
|
|
2467
|
+
};
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2472
|
+
* @return {!Uint8Array}
|
|
2473
|
+
*/
|
|
2474
|
+
proto.UpdateGoodReceiptRes.prototype.serializeBinary = function() {
|
|
2475
|
+
var writer = new jspb.BinaryWriter();
|
|
2476
|
+
proto.UpdateGoodReceiptRes.serializeBinaryToWriter(this, writer);
|
|
2477
|
+
return writer.getResultBuffer();
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2483
|
+
* format), writing to the given BinaryWriter.
|
|
2484
|
+
* @param {!proto.UpdateGoodReceiptRes} message
|
|
2485
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2486
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2487
|
+
*/
|
|
2488
|
+
proto.UpdateGoodReceiptRes.serializeBinaryToWriter = function(message, writer) {
|
|
2489
|
+
var f = undefined;
|
|
2490
|
+
f = message.getGoodReceipt();
|
|
2491
|
+
if (f != null) {
|
|
2492
|
+
writer.writeMessage(
|
|
2493
|
+
1,
|
|
2494
|
+
f,
|
|
2495
|
+
prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.serializeBinaryToWriter
|
|
2496
|
+
);
|
|
2497
|
+
}
|
|
2498
|
+
f = message.getMeta();
|
|
2499
|
+
if (f != null) {
|
|
2500
|
+
writer.writeMessage(
|
|
2501
|
+
2,
|
|
2502
|
+
f,
|
|
2503
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
2504
|
+
);
|
|
2505
|
+
}
|
|
2506
|
+
};
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
/**
|
|
2510
|
+
* optional GoodReceipt good_receipt = 1;
|
|
2511
|
+
* @return {?proto.GoodReceipt}
|
|
2512
|
+
*/
|
|
2513
|
+
proto.UpdateGoodReceiptRes.prototype.getGoodReceipt = function() {
|
|
2514
|
+
return /** @type{?proto.GoodReceipt} */ (
|
|
2515
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.GoodReceipt, 1));
|
|
2516
|
+
};
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* @param {?proto.GoodReceipt|undefined} value
|
|
2521
|
+
* @return {!proto.UpdateGoodReceiptRes} returns this
|
|
2522
|
+
*/
|
|
2523
|
+
proto.UpdateGoodReceiptRes.prototype.setGoodReceipt = function(value) {
|
|
2524
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2525
|
+
};
|
|
2526
|
+
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* Clears the message field making it undefined.
|
|
2530
|
+
* @return {!proto.UpdateGoodReceiptRes} returns this
|
|
2531
|
+
*/
|
|
2532
|
+
proto.UpdateGoodReceiptRes.prototype.clearGoodReceipt = function() {
|
|
2533
|
+
return this.setGoodReceipt(undefined);
|
|
2534
|
+
};
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Returns whether this field is set.
|
|
2539
|
+
* @return {boolean}
|
|
2540
|
+
*/
|
|
2541
|
+
proto.UpdateGoodReceiptRes.prototype.hasGoodReceipt = function() {
|
|
2542
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2543
|
+
};
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
2548
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
2549
|
+
*/
|
|
2550
|
+
proto.UpdateGoodReceiptRes.prototype.getMeta = function() {
|
|
2551
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
2552
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
2553
|
+
};
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
2558
|
+
* @return {!proto.UpdateGoodReceiptRes} returns this
|
|
2559
|
+
*/
|
|
2560
|
+
proto.UpdateGoodReceiptRes.prototype.setMeta = function(value) {
|
|
2561
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2562
|
+
};
|
|
2563
|
+
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* Clears the message field making it undefined.
|
|
2567
|
+
* @return {!proto.UpdateGoodReceiptRes} returns this
|
|
2568
|
+
*/
|
|
2569
|
+
proto.UpdateGoodReceiptRes.prototype.clearMeta = function() {
|
|
2570
|
+
return this.setMeta(undefined);
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
/**
|
|
2575
|
+
* Returns whether this field is set.
|
|
2576
|
+
* @return {boolean}
|
|
2577
|
+
*/
|
|
2578
|
+
proto.UpdateGoodReceiptRes.prototype.hasMeta = function() {
|
|
2579
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2580
|
+
};
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2587
|
+
/**
|
|
2588
|
+
* Creates an object representation of this proto.
|
|
2589
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2590
|
+
* Optional fields that are not set will be set to undefined.
|
|
2591
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2592
|
+
* For the list of reserved names please see:
|
|
2593
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2594
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2595
|
+
* JSPB instance for transitional soy proto support:
|
|
2596
|
+
* http://goto/soy-param-migration
|
|
2597
|
+
* @return {!Object}
|
|
2598
|
+
*/
|
|
2599
|
+
proto.GetGoodReceiptByIdResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2600
|
+
return proto.GetGoodReceiptByIdResponse.toObject(opt_includeInstance, this);
|
|
2601
|
+
};
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* Static version of the {@see toObject} method.
|
|
2606
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2607
|
+
* the JSPB instance for transitional soy proto support:
|
|
2608
|
+
* http://goto/soy-param-migration
|
|
2609
|
+
* @param {!proto.GetGoodReceiptByIdResponse} msg The msg instance to transform.
|
|
2610
|
+
* @return {!Object}
|
|
2611
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2612
|
+
*/
|
|
2613
|
+
proto.GetGoodReceiptByIdResponse.toObject = function(includeInstance, msg) {
|
|
2614
|
+
var f, obj = {
|
|
2615
|
+
goodReceipt: (f = msg.getGoodReceipt()) && prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.toObject(includeInstance, f),
|
|
2616
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
if (includeInstance) {
|
|
2620
|
+
obj.$jspbMessageInstance = msg;
|
|
2621
|
+
}
|
|
2622
|
+
return obj;
|
|
2623
|
+
};
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2629
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2630
|
+
* @return {!proto.GetGoodReceiptByIdResponse}
|
|
2631
|
+
*/
|
|
2632
|
+
proto.GetGoodReceiptByIdResponse.deserializeBinary = function(bytes) {
|
|
2633
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2634
|
+
var msg = new proto.GetGoodReceiptByIdResponse;
|
|
2635
|
+
return proto.GetGoodReceiptByIdResponse.deserializeBinaryFromReader(msg, reader);
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
/**
|
|
2640
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2641
|
+
* given reader into the given message object.
|
|
2642
|
+
* @param {!proto.GetGoodReceiptByIdResponse} msg The message object to deserialize into.
|
|
2643
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2644
|
+
* @return {!proto.GetGoodReceiptByIdResponse}
|
|
2645
|
+
*/
|
|
2646
|
+
proto.GetGoodReceiptByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2647
|
+
while (reader.nextField()) {
|
|
2648
|
+
if (reader.isEndGroup()) {
|
|
2649
|
+
break;
|
|
2650
|
+
}
|
|
2651
|
+
var field = reader.getFieldNumber();
|
|
2652
|
+
switch (field) {
|
|
2653
|
+
case 1:
|
|
2654
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.GoodReceipt;
|
|
2655
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.deserializeBinaryFromReader);
|
|
2656
|
+
msg.setGoodReceipt(value);
|
|
2657
|
+
break;
|
|
2658
|
+
case 2:
|
|
2659
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
2660
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
2661
|
+
msg.setMeta(value);
|
|
2662
|
+
break;
|
|
2663
|
+
default:
|
|
2664
|
+
reader.skipField();
|
|
2665
|
+
break;
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
return msg;
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
/**
|
|
2673
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2674
|
+
* @return {!Uint8Array}
|
|
2675
|
+
*/
|
|
2676
|
+
proto.GetGoodReceiptByIdResponse.prototype.serializeBinary = function() {
|
|
2677
|
+
var writer = new jspb.BinaryWriter();
|
|
2678
|
+
proto.GetGoodReceiptByIdResponse.serializeBinaryToWriter(this, writer);
|
|
2679
|
+
return writer.getResultBuffer();
|
|
2680
|
+
};
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2685
|
+
* format), writing to the given BinaryWriter.
|
|
2686
|
+
* @param {!proto.GetGoodReceiptByIdResponse} message
|
|
2687
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2688
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2689
|
+
*/
|
|
2690
|
+
proto.GetGoodReceiptByIdResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2691
|
+
var f = undefined;
|
|
2692
|
+
f = message.getGoodReceipt();
|
|
2693
|
+
if (f != null) {
|
|
2694
|
+
writer.writeMessage(
|
|
2695
|
+
1,
|
|
2696
|
+
f,
|
|
2697
|
+
prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.serializeBinaryToWriter
|
|
2698
|
+
);
|
|
2699
|
+
}
|
|
2700
|
+
f = message.getMeta();
|
|
2701
|
+
if (f != null) {
|
|
2702
|
+
writer.writeMessage(
|
|
2703
|
+
2,
|
|
2704
|
+
f,
|
|
2705
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
2706
|
+
);
|
|
2707
|
+
}
|
|
2708
|
+
};
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* optional GoodReceipt good_receipt = 1;
|
|
2713
|
+
* @return {?proto.GoodReceipt}
|
|
2714
|
+
*/
|
|
2715
|
+
proto.GetGoodReceiptByIdResponse.prototype.getGoodReceipt = function() {
|
|
2716
|
+
return /** @type{?proto.GoodReceipt} */ (
|
|
2717
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.GoodReceipt, 1));
|
|
2718
|
+
};
|
|
2719
|
+
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* @param {?proto.GoodReceipt|undefined} value
|
|
2723
|
+
* @return {!proto.GetGoodReceiptByIdResponse} returns this
|
|
2724
|
+
*/
|
|
2725
|
+
proto.GetGoodReceiptByIdResponse.prototype.setGoodReceipt = function(value) {
|
|
2726
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
/**
|
|
2731
|
+
* Clears the message field making it undefined.
|
|
2732
|
+
* @return {!proto.GetGoodReceiptByIdResponse} returns this
|
|
2733
|
+
*/
|
|
2734
|
+
proto.GetGoodReceiptByIdResponse.prototype.clearGoodReceipt = function() {
|
|
2735
|
+
return this.setGoodReceipt(undefined);
|
|
2736
|
+
};
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* Returns whether this field is set.
|
|
2741
|
+
* @return {boolean}
|
|
2742
|
+
*/
|
|
2743
|
+
proto.GetGoodReceiptByIdResponse.prototype.hasGoodReceipt = function() {
|
|
2744
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
2750
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
2751
|
+
*/
|
|
2752
|
+
proto.GetGoodReceiptByIdResponse.prototype.getMeta = function() {
|
|
2753
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
2754
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
2755
|
+
};
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
2760
|
+
* @return {!proto.GetGoodReceiptByIdResponse} returns this
|
|
2761
|
+
*/
|
|
2762
|
+
proto.GetGoodReceiptByIdResponse.prototype.setMeta = function(value) {
|
|
2763
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* Clears the message field making it undefined.
|
|
2769
|
+
* @return {!proto.GetGoodReceiptByIdResponse} returns this
|
|
2770
|
+
*/
|
|
2771
|
+
proto.GetGoodReceiptByIdResponse.prototype.clearMeta = function() {
|
|
2772
|
+
return this.setMeta(undefined);
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* Returns whether this field is set.
|
|
2778
|
+
* @return {boolean}
|
|
2779
|
+
*/
|
|
2780
|
+
proto.GetGoodReceiptByIdResponse.prototype.hasMeta = function() {
|
|
2781
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2782
|
+
};
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* List of repeated fields within this message type.
|
|
2788
|
+
* @private {!Array<number>}
|
|
2789
|
+
* @const
|
|
2790
|
+
*/
|
|
2791
|
+
proto.GetListGoodReceiptRes.repeatedFields_ = [1];
|
|
2792
|
+
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2796
|
+
/**
|
|
2797
|
+
* Creates an object representation of this proto.
|
|
2798
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2799
|
+
* Optional fields that are not set will be set to undefined.
|
|
2800
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2801
|
+
* For the list of reserved names please see:
|
|
2802
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2803
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2804
|
+
* JSPB instance for transitional soy proto support:
|
|
2805
|
+
* http://goto/soy-param-migration
|
|
2806
|
+
* @return {!Object}
|
|
2807
|
+
*/
|
|
2808
|
+
proto.GetListGoodReceiptRes.prototype.toObject = function(opt_includeInstance) {
|
|
2809
|
+
return proto.GetListGoodReceiptRes.toObject(opt_includeInstance, this);
|
|
2810
|
+
};
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* Static version of the {@see toObject} method.
|
|
2815
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2816
|
+
* the JSPB instance for transitional soy proto support:
|
|
2817
|
+
* http://goto/soy-param-migration
|
|
2818
|
+
* @param {!proto.GetListGoodReceiptRes} msg The msg instance to transform.
|
|
2819
|
+
* @return {!Object}
|
|
2820
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2821
|
+
*/
|
|
2822
|
+
proto.GetListGoodReceiptRes.toObject = function(includeInstance, msg) {
|
|
2823
|
+
var f, obj = {
|
|
2824
|
+
goodReceiptList: jspb.Message.toObjectList(msg.getGoodReceiptList(),
|
|
2825
|
+
prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.toObject, includeInstance),
|
|
2826
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2827
|
+
};
|
|
2828
|
+
|
|
2829
|
+
if (includeInstance) {
|
|
2830
|
+
obj.$jspbMessageInstance = msg;
|
|
2831
|
+
}
|
|
2832
|
+
return obj;
|
|
2833
|
+
};
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2839
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2840
|
+
* @return {!proto.GetListGoodReceiptRes}
|
|
2841
|
+
*/
|
|
2842
|
+
proto.GetListGoodReceiptRes.deserializeBinary = function(bytes) {
|
|
2843
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2844
|
+
var msg = new proto.GetListGoodReceiptRes;
|
|
2845
|
+
return proto.GetListGoodReceiptRes.deserializeBinaryFromReader(msg, reader);
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2851
|
+
* given reader into the given message object.
|
|
2852
|
+
* @param {!proto.GetListGoodReceiptRes} msg The message object to deserialize into.
|
|
2853
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2854
|
+
* @return {!proto.GetListGoodReceiptRes}
|
|
2855
|
+
*/
|
|
2856
|
+
proto.GetListGoodReceiptRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
2857
|
+
while (reader.nextField()) {
|
|
2858
|
+
if (reader.isEndGroup()) {
|
|
2859
|
+
break;
|
|
2860
|
+
}
|
|
2861
|
+
var field = reader.getFieldNumber();
|
|
2862
|
+
switch (field) {
|
|
2863
|
+
case 1:
|
|
2864
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.GoodReceipt;
|
|
2865
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.deserializeBinaryFromReader);
|
|
2866
|
+
msg.addGoodReceipt(value);
|
|
2867
|
+
break;
|
|
2868
|
+
case 2:
|
|
2869
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
2870
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
2871
|
+
msg.setMeta(value);
|
|
2872
|
+
break;
|
|
2873
|
+
default:
|
|
2874
|
+
reader.skipField();
|
|
2875
|
+
break;
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
return msg;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2884
|
+
* @return {!Uint8Array}
|
|
2885
|
+
*/
|
|
2886
|
+
proto.GetListGoodReceiptRes.prototype.serializeBinary = function() {
|
|
2887
|
+
var writer = new jspb.BinaryWriter();
|
|
2888
|
+
proto.GetListGoodReceiptRes.serializeBinaryToWriter(this, writer);
|
|
2889
|
+
return writer.getResultBuffer();
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2895
|
+
* format), writing to the given BinaryWriter.
|
|
2896
|
+
* @param {!proto.GetListGoodReceiptRes} message
|
|
2897
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2898
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2899
|
+
*/
|
|
2900
|
+
proto.GetListGoodReceiptRes.serializeBinaryToWriter = function(message, writer) {
|
|
2901
|
+
var f = undefined;
|
|
2902
|
+
f = message.getGoodReceiptList();
|
|
2903
|
+
if (f.length > 0) {
|
|
2904
|
+
writer.writeRepeatedMessage(
|
|
2905
|
+
1,
|
|
2906
|
+
f,
|
|
2907
|
+
prisca_v1_purchase_order_purchase_order_pb.GoodReceipt.serializeBinaryToWriter
|
|
2908
|
+
);
|
|
2909
|
+
}
|
|
2910
|
+
f = message.getMeta();
|
|
2911
|
+
if (f != null) {
|
|
2912
|
+
writer.writeMessage(
|
|
2913
|
+
2,
|
|
2914
|
+
f,
|
|
2915
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
2916
|
+
);
|
|
2917
|
+
}
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* repeated GoodReceipt good_receipt = 1;
|
|
2923
|
+
* @return {!Array<!proto.GoodReceipt>}
|
|
2924
|
+
*/
|
|
2925
|
+
proto.GetListGoodReceiptRes.prototype.getGoodReceiptList = function() {
|
|
2926
|
+
return /** @type{!Array<!proto.GoodReceipt>} */ (
|
|
2927
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.GoodReceipt, 1));
|
|
2928
|
+
};
|
|
2929
|
+
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* @param {!Array<!proto.GoodReceipt>} value
|
|
2933
|
+
* @return {!proto.GetListGoodReceiptRes} returns this
|
|
2934
|
+
*/
|
|
2935
|
+
proto.GetListGoodReceiptRes.prototype.setGoodReceiptList = function(value) {
|
|
2936
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
/**
|
|
2941
|
+
* @param {!proto.GoodReceipt=} opt_value
|
|
2942
|
+
* @param {number=} opt_index
|
|
2943
|
+
* @return {!proto.GoodReceipt}
|
|
2944
|
+
*/
|
|
2945
|
+
proto.GetListGoodReceiptRes.prototype.addGoodReceipt = function(opt_value, opt_index) {
|
|
2946
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.GoodReceipt, opt_index);
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* Clears the list making it empty but non-null.
|
|
2952
|
+
* @return {!proto.GetListGoodReceiptRes} returns this
|
|
2953
|
+
*/
|
|
2954
|
+
proto.GetListGoodReceiptRes.prototype.clearGoodReceiptList = function() {
|
|
2955
|
+
return this.setGoodReceiptList([]);
|
|
2956
|
+
};
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
2961
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
2962
|
+
*/
|
|
2963
|
+
proto.GetListGoodReceiptRes.prototype.getMeta = function() {
|
|
2964
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
2965
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
2971
|
+
* @return {!proto.GetListGoodReceiptRes} returns this
|
|
2972
|
+
*/
|
|
2973
|
+
proto.GetListGoodReceiptRes.prototype.setMeta = function(value) {
|
|
2974
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2975
|
+
};
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* Clears the message field making it undefined.
|
|
2980
|
+
* @return {!proto.GetListGoodReceiptRes} returns this
|
|
2981
|
+
*/
|
|
2982
|
+
proto.GetListGoodReceiptRes.prototype.clearMeta = function() {
|
|
2983
|
+
return this.setMeta(undefined);
|
|
2984
|
+
};
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
/**
|
|
2988
|
+
* Returns whether this field is set.
|
|
2989
|
+
* @return {boolean}
|
|
2990
|
+
*/
|
|
2991
|
+
proto.GetListGoodReceiptRes.prototype.hasMeta = function() {
|
|
2992
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2993
|
+
};
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
/**
|
|
2998
|
+
* List of repeated fields within this message type.
|
|
2999
|
+
* @private {!Array<number>}
|
|
3000
|
+
* @const
|
|
3001
|
+
*/
|
|
3002
|
+
proto.DeleteGoodReceiptRequest.repeatedFields_ = [1];
|
|
3003
|
+
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3007
|
+
/**
|
|
3008
|
+
* Creates an object representation of this proto.
|
|
3009
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3010
|
+
* Optional fields that are not set will be set to undefined.
|
|
3011
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3012
|
+
* For the list of reserved names please see:
|
|
3013
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3014
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3015
|
+
* JSPB instance for transitional soy proto support:
|
|
3016
|
+
* http://goto/soy-param-migration
|
|
3017
|
+
* @return {!Object}
|
|
3018
|
+
*/
|
|
3019
|
+
proto.DeleteGoodReceiptRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3020
|
+
return proto.DeleteGoodReceiptRequest.toObject(opt_includeInstance, this);
|
|
3021
|
+
};
|
|
3022
|
+
|
|
3023
|
+
|
|
3024
|
+
/**
|
|
3025
|
+
* Static version of the {@see toObject} method.
|
|
3026
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3027
|
+
* the JSPB instance for transitional soy proto support:
|
|
3028
|
+
* http://goto/soy-param-migration
|
|
3029
|
+
* @param {!proto.DeleteGoodReceiptRequest} msg The msg instance to transform.
|
|
3030
|
+
* @return {!Object}
|
|
3031
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3032
|
+
*/
|
|
3033
|
+
proto.DeleteGoodReceiptRequest.toObject = function(includeInstance, msg) {
|
|
3034
|
+
var f, obj = {
|
|
3035
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
3036
|
+
};
|
|
3037
|
+
|
|
3038
|
+
if (includeInstance) {
|
|
3039
|
+
obj.$jspbMessageInstance = msg;
|
|
3040
|
+
}
|
|
3041
|
+
return obj;
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
/**
|
|
3047
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3048
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3049
|
+
* @return {!proto.DeleteGoodReceiptRequest}
|
|
3050
|
+
*/
|
|
3051
|
+
proto.DeleteGoodReceiptRequest.deserializeBinary = function(bytes) {
|
|
3052
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3053
|
+
var msg = new proto.DeleteGoodReceiptRequest;
|
|
3054
|
+
return proto.DeleteGoodReceiptRequest.deserializeBinaryFromReader(msg, reader);
|
|
3055
|
+
};
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3060
|
+
* given reader into the given message object.
|
|
3061
|
+
* @param {!proto.DeleteGoodReceiptRequest} msg The message object to deserialize into.
|
|
3062
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3063
|
+
* @return {!proto.DeleteGoodReceiptRequest}
|
|
3064
|
+
*/
|
|
3065
|
+
proto.DeleteGoodReceiptRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3066
|
+
while (reader.nextField()) {
|
|
3067
|
+
if (reader.isEndGroup()) {
|
|
3068
|
+
break;
|
|
3069
|
+
}
|
|
3070
|
+
var field = reader.getFieldNumber();
|
|
3071
|
+
switch (field) {
|
|
3072
|
+
case 1:
|
|
3073
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3074
|
+
msg.addReferenceIds(value);
|
|
3075
|
+
break;
|
|
3076
|
+
default:
|
|
3077
|
+
reader.skipField();
|
|
3078
|
+
break;
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
return msg;
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3087
|
+
* @return {!Uint8Array}
|
|
3088
|
+
*/
|
|
3089
|
+
proto.DeleteGoodReceiptRequest.prototype.serializeBinary = function() {
|
|
3090
|
+
var writer = new jspb.BinaryWriter();
|
|
3091
|
+
proto.DeleteGoodReceiptRequest.serializeBinaryToWriter(this, writer);
|
|
3092
|
+
return writer.getResultBuffer();
|
|
3093
|
+
};
|
|
3094
|
+
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3098
|
+
* format), writing to the given BinaryWriter.
|
|
3099
|
+
* @param {!proto.DeleteGoodReceiptRequest} message
|
|
3100
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3101
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3102
|
+
*/
|
|
3103
|
+
proto.DeleteGoodReceiptRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3104
|
+
var f = undefined;
|
|
3105
|
+
f = message.getReferenceIdsList();
|
|
3106
|
+
if (f.length > 0) {
|
|
3107
|
+
writer.writeRepeatedString(
|
|
3108
|
+
1,
|
|
3109
|
+
f
|
|
3110
|
+
);
|
|
3111
|
+
}
|
|
3112
|
+
};
|
|
3113
|
+
|
|
3114
|
+
|
|
3115
|
+
/**
|
|
3116
|
+
* repeated string reference_ids = 1;
|
|
3117
|
+
* @return {!Array<string>}
|
|
3118
|
+
*/
|
|
3119
|
+
proto.DeleteGoodReceiptRequest.prototype.getReferenceIdsList = function() {
|
|
3120
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
3121
|
+
};
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
/**
|
|
3125
|
+
* @param {!Array<string>} value
|
|
3126
|
+
* @return {!proto.DeleteGoodReceiptRequest} returns this
|
|
3127
|
+
*/
|
|
3128
|
+
proto.DeleteGoodReceiptRequest.prototype.setReferenceIdsList = function(value) {
|
|
3129
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
3130
|
+
};
|
|
3131
|
+
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* @param {string} value
|
|
3135
|
+
* @param {number=} opt_index
|
|
3136
|
+
* @return {!proto.DeleteGoodReceiptRequest} returns this
|
|
3137
|
+
*/
|
|
3138
|
+
proto.DeleteGoodReceiptRequest.prototype.addReferenceIds = function(value, opt_index) {
|
|
3139
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3140
|
+
};
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* Clears the list making it empty but non-null.
|
|
3145
|
+
* @return {!proto.DeleteGoodReceiptRequest} returns this
|
|
3146
|
+
*/
|
|
3147
|
+
proto.DeleteGoodReceiptRequest.prototype.clearReferenceIdsList = function() {
|
|
3148
|
+
return this.setReferenceIdsList([]);
|
|
3149
|
+
};
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
/**
|
|
3154
|
+
* List of repeated fields within this message type.
|
|
3155
|
+
* @private {!Array<number>}
|
|
3156
|
+
* @const
|
|
3157
|
+
*/
|
|
3158
|
+
proto.GetGoodReceiptDetailResponse.repeatedFields_ = [1,2];
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3163
|
+
/**
|
|
3164
|
+
* Creates an object representation of this proto.
|
|
3165
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3166
|
+
* Optional fields that are not set will be set to undefined.
|
|
3167
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3168
|
+
* For the list of reserved names please see:
|
|
3169
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3170
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3171
|
+
* JSPB instance for transitional soy proto support:
|
|
3172
|
+
* http://goto/soy-param-migration
|
|
3173
|
+
* @return {!Object}
|
|
3174
|
+
*/
|
|
3175
|
+
proto.GetGoodReceiptDetailResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3176
|
+
return proto.GetGoodReceiptDetailResponse.toObject(opt_includeInstance, this);
|
|
3177
|
+
};
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
/**
|
|
3181
|
+
* Static version of the {@see toObject} method.
|
|
3182
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3183
|
+
* the JSPB instance for transitional soy proto support:
|
|
3184
|
+
* http://goto/soy-param-migration
|
|
3185
|
+
* @param {!proto.GetGoodReceiptDetailResponse} msg The msg instance to transform.
|
|
3186
|
+
* @return {!Object}
|
|
3187
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3188
|
+
*/
|
|
3189
|
+
proto.GetGoodReceiptDetailResponse.toObject = function(includeInstance, msg) {
|
|
3190
|
+
var f, obj = {
|
|
3191
|
+
transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
|
|
3192
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
|
|
3193
|
+
transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
|
|
3194
|
+
proto.GetGoodReceiptItemPreload.toObject, includeInstance)
|
|
3195
|
+
};
|
|
3196
|
+
|
|
3197
|
+
if (includeInstance) {
|
|
3198
|
+
obj.$jspbMessageInstance = msg;
|
|
3199
|
+
}
|
|
3200
|
+
return obj;
|
|
3201
|
+
};
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
|
|
3205
|
+
/**
|
|
3206
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3207
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3208
|
+
* @return {!proto.GetGoodReceiptDetailResponse}
|
|
3209
|
+
*/
|
|
3210
|
+
proto.GetGoodReceiptDetailResponse.deserializeBinary = function(bytes) {
|
|
3211
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3212
|
+
var msg = new proto.GetGoodReceiptDetailResponse;
|
|
3213
|
+
return proto.GetGoodReceiptDetailResponse.deserializeBinaryFromReader(msg, reader);
|
|
3214
|
+
};
|
|
3215
|
+
|
|
3216
|
+
|
|
3217
|
+
/**
|
|
3218
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3219
|
+
* given reader into the given message object.
|
|
3220
|
+
* @param {!proto.GetGoodReceiptDetailResponse} msg The message object to deserialize into.
|
|
3221
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3222
|
+
* @return {!proto.GetGoodReceiptDetailResponse}
|
|
3223
|
+
*/
|
|
3224
|
+
proto.GetGoodReceiptDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3225
|
+
while (reader.nextField()) {
|
|
3226
|
+
if (reader.isEndGroup()) {
|
|
3227
|
+
break;
|
|
3228
|
+
}
|
|
3229
|
+
var field = reader.getFieldNumber();
|
|
3230
|
+
switch (field) {
|
|
3231
|
+
case 1:
|
|
3232
|
+
var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
|
|
3233
|
+
reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
|
|
3234
|
+
msg.addTransactionBuilder(value);
|
|
3235
|
+
break;
|
|
3236
|
+
case 2:
|
|
3237
|
+
var value = new proto.GetGoodReceiptItemPreload;
|
|
3238
|
+
reader.readMessage(value,proto.GetGoodReceiptItemPreload.deserializeBinaryFromReader);
|
|
3239
|
+
msg.addTransactionBuilderItems(value);
|
|
3240
|
+
break;
|
|
3241
|
+
default:
|
|
3242
|
+
reader.skipField();
|
|
3243
|
+
break;
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
return msg;
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
|
|
3250
|
+
/**
|
|
3251
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3252
|
+
* @return {!Uint8Array}
|
|
3253
|
+
*/
|
|
3254
|
+
proto.GetGoodReceiptDetailResponse.prototype.serializeBinary = function() {
|
|
3255
|
+
var writer = new jspb.BinaryWriter();
|
|
3256
|
+
proto.GetGoodReceiptDetailResponse.serializeBinaryToWriter(this, writer);
|
|
3257
|
+
return writer.getResultBuffer();
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3263
|
+
* format), writing to the given BinaryWriter.
|
|
3264
|
+
* @param {!proto.GetGoodReceiptDetailResponse} message
|
|
3265
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3266
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3267
|
+
*/
|
|
3268
|
+
proto.GetGoodReceiptDetailResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3269
|
+
var f = undefined;
|
|
3270
|
+
f = message.getTransactionBuilderList();
|
|
3271
|
+
if (f.length > 0) {
|
|
3272
|
+
writer.writeRepeatedMessage(
|
|
3273
|
+
1,
|
|
3274
|
+
f,
|
|
3275
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
|
|
3276
|
+
);
|
|
3277
|
+
}
|
|
3278
|
+
f = message.getTransactionBuilderItemsList();
|
|
3279
|
+
if (f.length > 0) {
|
|
3280
|
+
writer.writeRepeatedMessage(
|
|
3281
|
+
2,
|
|
3282
|
+
f,
|
|
3283
|
+
proto.GetGoodReceiptItemPreload.serializeBinaryToWriter
|
|
3284
|
+
);
|
|
3285
|
+
}
|
|
3286
|
+
};
|
|
3287
|
+
|
|
3288
|
+
|
|
3289
|
+
/**
|
|
3290
|
+
* repeated TransactionBuilderFieldsDetail transaction_builder = 1;
|
|
3291
|
+
* @return {!Array<!proto.TransactionBuilderFieldsDetail>}
|
|
3292
|
+
*/
|
|
3293
|
+
proto.GetGoodReceiptDetailResponse.prototype.getTransactionBuilderList = function() {
|
|
3294
|
+
return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
|
|
3295
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
|
|
3299
|
+
/**
|
|
3300
|
+
* @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
|
|
3301
|
+
* @return {!proto.GetGoodReceiptDetailResponse} returns this
|
|
3302
|
+
*/
|
|
3303
|
+
proto.GetGoodReceiptDetailResponse.prototype.setTransactionBuilderList = function(value) {
|
|
3304
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3305
|
+
};
|
|
3306
|
+
|
|
3307
|
+
|
|
3308
|
+
/**
|
|
3309
|
+
* @param {!proto.TransactionBuilderFieldsDetail=} opt_value
|
|
3310
|
+
* @param {number=} opt_index
|
|
3311
|
+
* @return {!proto.TransactionBuilderFieldsDetail}
|
|
3312
|
+
*/
|
|
3313
|
+
proto.GetGoodReceiptDetailResponse.prototype.addTransactionBuilder = function(opt_value, opt_index) {
|
|
3314
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
|
|
3315
|
+
};
|
|
3316
|
+
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* Clears the list making it empty but non-null.
|
|
3320
|
+
* @return {!proto.GetGoodReceiptDetailResponse} returns this
|
|
3321
|
+
*/
|
|
3322
|
+
proto.GetGoodReceiptDetailResponse.prototype.clearTransactionBuilderList = function() {
|
|
3323
|
+
return this.setTransactionBuilderList([]);
|
|
3324
|
+
};
|
|
3325
|
+
|
|
3326
|
+
|
|
3327
|
+
/**
|
|
3328
|
+
* repeated GetGoodReceiptItemPreload transaction_builder_items = 2;
|
|
3329
|
+
* @return {!Array<!proto.GetGoodReceiptItemPreload>}
|
|
3330
|
+
*/
|
|
3331
|
+
proto.GetGoodReceiptDetailResponse.prototype.getTransactionBuilderItemsList = function() {
|
|
3332
|
+
return /** @type{!Array<!proto.GetGoodReceiptItemPreload>} */ (
|
|
3333
|
+
jspb.Message.getRepeatedWrapperField(this, proto.GetGoodReceiptItemPreload, 2));
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* @param {!Array<!proto.GetGoodReceiptItemPreload>} value
|
|
3339
|
+
* @return {!proto.GetGoodReceiptDetailResponse} returns this
|
|
3340
|
+
*/
|
|
3341
|
+
proto.GetGoodReceiptDetailResponse.prototype.setTransactionBuilderItemsList = function(value) {
|
|
3342
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
3343
|
+
};
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
/**
|
|
3347
|
+
* @param {!proto.GetGoodReceiptItemPreload=} opt_value
|
|
3348
|
+
* @param {number=} opt_index
|
|
3349
|
+
* @return {!proto.GetGoodReceiptItemPreload}
|
|
3350
|
+
*/
|
|
3351
|
+
proto.GetGoodReceiptDetailResponse.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
|
|
3352
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetGoodReceiptItemPreload, opt_index);
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
* Clears the list making it empty but non-null.
|
|
3358
|
+
* @return {!proto.GetGoodReceiptDetailResponse} returns this
|
|
3359
|
+
*/
|
|
3360
|
+
proto.GetGoodReceiptDetailResponse.prototype.clearTransactionBuilderItemsList = function() {
|
|
3361
|
+
return this.setTransactionBuilderItemsList([]);
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
|
|
3365
|
+
|
|
3366
|
+
/**
|
|
3367
|
+
* List of repeated fields within this message type.
|
|
3368
|
+
* @private {!Array<number>}
|
|
3369
|
+
* @const
|
|
3370
|
+
*/
|
|
3371
|
+
proto.GetGoodReceiptItemPreload.repeatedFields_ = [1,2];
|
|
3372
|
+
|
|
3373
|
+
|
|
3374
|
+
|
|
3375
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3376
|
+
/**
|
|
3377
|
+
* Creates an object representation of this proto.
|
|
3378
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3379
|
+
* Optional fields that are not set will be set to undefined.
|
|
3380
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3381
|
+
* For the list of reserved names please see:
|
|
3382
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3383
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3384
|
+
* JSPB instance for transitional soy proto support:
|
|
3385
|
+
* http://goto/soy-param-migration
|
|
3386
|
+
* @return {!Object}
|
|
3387
|
+
*/
|
|
3388
|
+
proto.GetGoodReceiptItemPreload.prototype.toObject = function(opt_includeInstance) {
|
|
3389
|
+
return proto.GetGoodReceiptItemPreload.toObject(opt_includeInstance, this);
|
|
3390
|
+
};
|
|
3391
|
+
|
|
3392
|
+
|
|
3393
|
+
/**
|
|
3394
|
+
* Static version of the {@see toObject} method.
|
|
3395
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3396
|
+
* the JSPB instance for transitional soy proto support:
|
|
3397
|
+
* http://goto/soy-param-migration
|
|
3398
|
+
* @param {!proto.GetGoodReceiptItemPreload} msg The msg instance to transform.
|
|
3399
|
+
* @return {!Object}
|
|
3400
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3401
|
+
*/
|
|
3402
|
+
proto.GetGoodReceiptItemPreload.toObject = function(includeInstance, msg) {
|
|
3403
|
+
var f, obj = {
|
|
3404
|
+
transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
|
|
3405
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
|
|
3406
|
+
transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
|
|
3407
|
+
proto.GetGoodReceiptItemDetailPreload.toObject, includeInstance)
|
|
3408
|
+
};
|
|
3409
|
+
|
|
3410
|
+
if (includeInstance) {
|
|
3411
|
+
obj.$jspbMessageInstance = msg;
|
|
3412
|
+
}
|
|
3413
|
+
return obj;
|
|
3414
|
+
};
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
|
|
3418
|
+
/**
|
|
3419
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3420
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3421
|
+
* @return {!proto.GetGoodReceiptItemPreload}
|
|
3422
|
+
*/
|
|
3423
|
+
proto.GetGoodReceiptItemPreload.deserializeBinary = function(bytes) {
|
|
3424
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3425
|
+
var msg = new proto.GetGoodReceiptItemPreload;
|
|
3426
|
+
return proto.GetGoodReceiptItemPreload.deserializeBinaryFromReader(msg, reader);
|
|
3427
|
+
};
|
|
3428
|
+
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3432
|
+
* given reader into the given message object.
|
|
3433
|
+
* @param {!proto.GetGoodReceiptItemPreload} msg The message object to deserialize into.
|
|
3434
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3435
|
+
* @return {!proto.GetGoodReceiptItemPreload}
|
|
3436
|
+
*/
|
|
3437
|
+
proto.GetGoodReceiptItemPreload.deserializeBinaryFromReader = function(msg, reader) {
|
|
3438
|
+
while (reader.nextField()) {
|
|
3439
|
+
if (reader.isEndGroup()) {
|
|
3440
|
+
break;
|
|
3441
|
+
}
|
|
3442
|
+
var field = reader.getFieldNumber();
|
|
3443
|
+
switch (field) {
|
|
3444
|
+
case 1:
|
|
3445
|
+
var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
|
|
3446
|
+
reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
|
|
3447
|
+
msg.addTransactionBuilderItem(value);
|
|
3448
|
+
break;
|
|
3449
|
+
case 2:
|
|
3450
|
+
var value = new proto.GetGoodReceiptItemDetailPreload;
|
|
3451
|
+
reader.readMessage(value,proto.GetGoodReceiptItemDetailPreload.deserializeBinaryFromReader);
|
|
3452
|
+
msg.addTransactionBuilderItemDetails(value);
|
|
3453
|
+
break;
|
|
3454
|
+
default:
|
|
3455
|
+
reader.skipField();
|
|
3456
|
+
break;
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
return msg;
|
|
3460
|
+
};
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3465
|
+
* @return {!Uint8Array}
|
|
3466
|
+
*/
|
|
3467
|
+
proto.GetGoodReceiptItemPreload.prototype.serializeBinary = function() {
|
|
3468
|
+
var writer = new jspb.BinaryWriter();
|
|
3469
|
+
proto.GetGoodReceiptItemPreload.serializeBinaryToWriter(this, writer);
|
|
3470
|
+
return writer.getResultBuffer();
|
|
3471
|
+
};
|
|
3472
|
+
|
|
3473
|
+
|
|
3474
|
+
/**
|
|
3475
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3476
|
+
* format), writing to the given BinaryWriter.
|
|
3477
|
+
* @param {!proto.GetGoodReceiptItemPreload} message
|
|
3478
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3479
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3480
|
+
*/
|
|
3481
|
+
proto.GetGoodReceiptItemPreload.serializeBinaryToWriter = function(message, writer) {
|
|
3482
|
+
var f = undefined;
|
|
3483
|
+
f = message.getTransactionBuilderItemList();
|
|
3484
|
+
if (f.length > 0) {
|
|
3485
|
+
writer.writeRepeatedMessage(
|
|
3486
|
+
1,
|
|
3487
|
+
f,
|
|
3488
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
|
|
3489
|
+
);
|
|
3490
|
+
}
|
|
3491
|
+
f = message.getTransactionBuilderItemDetailsList();
|
|
3492
|
+
if (f.length > 0) {
|
|
3493
|
+
writer.writeRepeatedMessage(
|
|
3494
|
+
2,
|
|
3495
|
+
f,
|
|
3496
|
+
proto.GetGoodReceiptItemDetailPreload.serializeBinaryToWriter
|
|
3497
|
+
);
|
|
3498
|
+
}
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
|
|
3504
|
+
* @return {!Array<!proto.TransactionBuilderFieldsDetail>}
|
|
3505
|
+
*/
|
|
3506
|
+
proto.GetGoodReceiptItemPreload.prototype.getTransactionBuilderItemList = function() {
|
|
3507
|
+
return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
|
|
3508
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
|
|
3509
|
+
};
|
|
3510
|
+
|
|
3511
|
+
|
|
3512
|
+
/**
|
|
3513
|
+
* @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
|
|
3514
|
+
* @return {!proto.GetGoodReceiptItemPreload} returns this
|
|
3515
|
+
*/
|
|
3516
|
+
proto.GetGoodReceiptItemPreload.prototype.setTransactionBuilderItemList = function(value) {
|
|
3517
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3518
|
+
};
|
|
3519
|
+
|
|
3520
|
+
|
|
3521
|
+
/**
|
|
3522
|
+
* @param {!proto.TransactionBuilderFieldsDetail=} opt_value
|
|
3523
|
+
* @param {number=} opt_index
|
|
3524
|
+
* @return {!proto.TransactionBuilderFieldsDetail}
|
|
3525
|
+
*/
|
|
3526
|
+
proto.GetGoodReceiptItemPreload.prototype.addTransactionBuilderItem = function(opt_value, opt_index) {
|
|
3527
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
|
|
3528
|
+
};
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
/**
|
|
3532
|
+
* Clears the list making it empty but non-null.
|
|
3533
|
+
* @return {!proto.GetGoodReceiptItemPreload} returns this
|
|
3534
|
+
*/
|
|
3535
|
+
proto.GetGoodReceiptItemPreload.prototype.clearTransactionBuilderItemList = function() {
|
|
3536
|
+
return this.setTransactionBuilderItemList([]);
|
|
3537
|
+
};
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
/**
|
|
3541
|
+
* repeated GetGoodReceiptItemDetailPreload transaction_builder_item_details = 2;
|
|
3542
|
+
* @return {!Array<!proto.GetGoodReceiptItemDetailPreload>}
|
|
3543
|
+
*/
|
|
3544
|
+
proto.GetGoodReceiptItemPreload.prototype.getTransactionBuilderItemDetailsList = function() {
|
|
3545
|
+
return /** @type{!Array<!proto.GetGoodReceiptItemDetailPreload>} */ (
|
|
3546
|
+
jspb.Message.getRepeatedWrapperField(this, proto.GetGoodReceiptItemDetailPreload, 2));
|
|
3547
|
+
};
|
|
3548
|
+
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
* @param {!Array<!proto.GetGoodReceiptItemDetailPreload>} value
|
|
3552
|
+
* @return {!proto.GetGoodReceiptItemPreload} returns this
|
|
3553
|
+
*/
|
|
3554
|
+
proto.GetGoodReceiptItemPreload.prototype.setTransactionBuilderItemDetailsList = function(value) {
|
|
3555
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
3556
|
+
};
|
|
3557
|
+
|
|
3558
|
+
|
|
3559
|
+
/**
|
|
3560
|
+
* @param {!proto.GetGoodReceiptItemDetailPreload=} opt_value
|
|
3561
|
+
* @param {number=} opt_index
|
|
3562
|
+
* @return {!proto.GetGoodReceiptItemDetailPreload}
|
|
3563
|
+
*/
|
|
3564
|
+
proto.GetGoodReceiptItemPreload.prototype.addTransactionBuilderItemDetails = function(opt_value, opt_index) {
|
|
3565
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetGoodReceiptItemDetailPreload, opt_index);
|
|
3566
|
+
};
|
|
3567
|
+
|
|
3568
|
+
|
|
3569
|
+
/**
|
|
3570
|
+
* Clears the list making it empty but non-null.
|
|
3571
|
+
* @return {!proto.GetGoodReceiptItemPreload} returns this
|
|
3572
|
+
*/
|
|
3573
|
+
proto.GetGoodReceiptItemPreload.prototype.clearTransactionBuilderItemDetailsList = function() {
|
|
3574
|
+
return this.setTransactionBuilderItemDetailsList([]);
|
|
3575
|
+
};
|
|
3576
|
+
|
|
3577
|
+
|
|
3578
|
+
|
|
3579
|
+
/**
|
|
3580
|
+
* List of repeated fields within this message type.
|
|
3581
|
+
* @private {!Array<number>}
|
|
3582
|
+
* @const
|
|
3583
|
+
*/
|
|
3584
|
+
proto.GetGoodReceiptItemDetailPreload.repeatedFields_ = [1];
|
|
3585
|
+
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3589
|
+
/**
|
|
3590
|
+
* Creates an object representation of this proto.
|
|
3591
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3592
|
+
* Optional fields that are not set will be set to undefined.
|
|
3593
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3594
|
+
* For the list of reserved names please see:
|
|
3595
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3596
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3597
|
+
* JSPB instance for transitional soy proto support:
|
|
3598
|
+
* http://goto/soy-param-migration
|
|
3599
|
+
* @return {!Object}
|
|
3600
|
+
*/
|
|
3601
|
+
proto.GetGoodReceiptItemDetailPreload.prototype.toObject = function(opt_includeInstance) {
|
|
3602
|
+
return proto.GetGoodReceiptItemDetailPreload.toObject(opt_includeInstance, this);
|
|
3603
|
+
};
|
|
3604
|
+
|
|
3605
|
+
|
|
3606
|
+
/**
|
|
3607
|
+
* Static version of the {@see toObject} method.
|
|
3608
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3609
|
+
* the JSPB instance for transitional soy proto support:
|
|
3610
|
+
* http://goto/soy-param-migration
|
|
3611
|
+
* @param {!proto.GetGoodReceiptItemDetailPreload} msg The msg instance to transform.
|
|
3612
|
+
* @return {!Object}
|
|
3613
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3614
|
+
*/
|
|
3615
|
+
proto.GetGoodReceiptItemDetailPreload.toObject = function(includeInstance, msg) {
|
|
3616
|
+
var f, obj = {
|
|
3617
|
+
transactionBuilderItemDetailList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailList(),
|
|
3618
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
|
|
3619
|
+
};
|
|
3620
|
+
|
|
3621
|
+
if (includeInstance) {
|
|
3622
|
+
obj.$jspbMessageInstance = msg;
|
|
3623
|
+
}
|
|
3624
|
+
return obj;
|
|
3625
|
+
};
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
|
|
3629
|
+
/**
|
|
3630
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3631
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3632
|
+
* @return {!proto.GetGoodReceiptItemDetailPreload}
|
|
3633
|
+
*/
|
|
3634
|
+
proto.GetGoodReceiptItemDetailPreload.deserializeBinary = function(bytes) {
|
|
3635
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3636
|
+
var msg = new proto.GetGoodReceiptItemDetailPreload;
|
|
3637
|
+
return proto.GetGoodReceiptItemDetailPreload.deserializeBinaryFromReader(msg, reader);
|
|
3638
|
+
};
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
/**
|
|
3642
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3643
|
+
* given reader into the given message object.
|
|
3644
|
+
* @param {!proto.GetGoodReceiptItemDetailPreload} msg The message object to deserialize into.
|
|
3645
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3646
|
+
* @return {!proto.GetGoodReceiptItemDetailPreload}
|
|
3647
|
+
*/
|
|
3648
|
+
proto.GetGoodReceiptItemDetailPreload.deserializeBinaryFromReader = function(msg, reader) {
|
|
3649
|
+
while (reader.nextField()) {
|
|
3650
|
+
if (reader.isEndGroup()) {
|
|
3651
|
+
break;
|
|
3652
|
+
}
|
|
3653
|
+
var field = reader.getFieldNumber();
|
|
3654
|
+
switch (field) {
|
|
3655
|
+
case 1:
|
|
3656
|
+
var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
|
|
3657
|
+
reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
|
|
3658
|
+
msg.addTransactionBuilderItemDetail(value);
|
|
3659
|
+
break;
|
|
3660
|
+
default:
|
|
3661
|
+
reader.skipField();
|
|
3662
|
+
break;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
return msg;
|
|
3666
|
+
};
|
|
3667
|
+
|
|
3668
|
+
|
|
3669
|
+
/**
|
|
3670
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3671
|
+
* @return {!Uint8Array}
|
|
3672
|
+
*/
|
|
3673
|
+
proto.GetGoodReceiptItemDetailPreload.prototype.serializeBinary = function() {
|
|
3674
|
+
var writer = new jspb.BinaryWriter();
|
|
3675
|
+
proto.GetGoodReceiptItemDetailPreload.serializeBinaryToWriter(this, writer);
|
|
3676
|
+
return writer.getResultBuffer();
|
|
3677
|
+
};
|
|
3678
|
+
|
|
3679
|
+
|
|
3680
|
+
/**
|
|
3681
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3682
|
+
* format), writing to the given BinaryWriter.
|
|
3683
|
+
* @param {!proto.GetGoodReceiptItemDetailPreload} message
|
|
3684
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3685
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3686
|
+
*/
|
|
3687
|
+
proto.GetGoodReceiptItemDetailPreload.serializeBinaryToWriter = function(message, writer) {
|
|
3688
|
+
var f = undefined;
|
|
3689
|
+
f = message.getTransactionBuilderItemDetailList();
|
|
3690
|
+
if (f.length > 0) {
|
|
3691
|
+
writer.writeRepeatedMessage(
|
|
3692
|
+
1,
|
|
3693
|
+
f,
|
|
3694
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
|
|
3695
|
+
);
|
|
3696
|
+
}
|
|
3697
|
+
};
|
|
3698
|
+
|
|
3699
|
+
|
|
3700
|
+
/**
|
|
3701
|
+
* repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
|
|
3702
|
+
* @return {!Array<!proto.TransactionBuilderFieldsDetail>}
|
|
3703
|
+
*/
|
|
3704
|
+
proto.GetGoodReceiptItemDetailPreload.prototype.getTransactionBuilderItemDetailList = function() {
|
|
3705
|
+
return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
|
|
3706
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
|
|
3712
|
+
* @return {!proto.GetGoodReceiptItemDetailPreload} returns this
|
|
3713
|
+
*/
|
|
3714
|
+
proto.GetGoodReceiptItemDetailPreload.prototype.setTransactionBuilderItemDetailList = function(value) {
|
|
3715
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3716
|
+
};
|
|
3717
|
+
|
|
3718
|
+
|
|
3719
|
+
/**
|
|
3720
|
+
* @param {!proto.TransactionBuilderFieldsDetail=} opt_value
|
|
3721
|
+
* @param {number=} opt_index
|
|
3722
|
+
* @return {!proto.TransactionBuilderFieldsDetail}
|
|
3723
|
+
*/
|
|
3724
|
+
proto.GetGoodReceiptItemDetailPreload.prototype.addTransactionBuilderItemDetail = function(opt_value, opt_index) {
|
|
3725
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
|
|
3726
|
+
};
|
|
3727
|
+
|
|
3728
|
+
|
|
3729
|
+
/**
|
|
3730
|
+
* Clears the list making it empty but non-null.
|
|
3731
|
+
* @return {!proto.GetGoodReceiptItemDetailPreload} returns this
|
|
3732
|
+
*/
|
|
3733
|
+
proto.GetGoodReceiptItemDetailPreload.prototype.clearTransactionBuilderItemDetailList = function() {
|
|
3734
|
+
return this.setTransactionBuilderItemDetailList([]);
|
|
3735
|
+
};
|
|
3736
|
+
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
/**
|
|
3740
|
+
* List of repeated fields within this message type.
|
|
3741
|
+
* @private {!Array<number>}
|
|
3742
|
+
* @const
|
|
3743
|
+
*/
|
|
3744
|
+
proto.DeleteGoodReceiptResponse.repeatedFields_ = [1];
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
|
|
3748
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3749
|
+
/**
|
|
3750
|
+
* Creates an object representation of this proto.
|
|
3751
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3752
|
+
* Optional fields that are not set will be set to undefined.
|
|
3753
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3754
|
+
* For the list of reserved names please see:
|
|
3755
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3756
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3757
|
+
* JSPB instance for transitional soy proto support:
|
|
3758
|
+
* http://goto/soy-param-migration
|
|
3759
|
+
* @return {!Object}
|
|
3760
|
+
*/
|
|
3761
|
+
proto.DeleteGoodReceiptResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3762
|
+
return proto.DeleteGoodReceiptResponse.toObject(opt_includeInstance, this);
|
|
3763
|
+
};
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
/**
|
|
3767
|
+
* Static version of the {@see toObject} method.
|
|
3768
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3769
|
+
* the JSPB instance for transitional soy proto support:
|
|
3770
|
+
* http://goto/soy-param-migration
|
|
3771
|
+
* @param {!proto.DeleteGoodReceiptResponse} msg The msg instance to transform.
|
|
3772
|
+
* @return {!Object}
|
|
3773
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3774
|
+
*/
|
|
3775
|
+
proto.DeleteGoodReceiptResponse.toObject = function(includeInstance, msg) {
|
|
3776
|
+
var f, obj = {
|
|
3777
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
3778
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3779
|
+
};
|
|
3780
|
+
|
|
3781
|
+
if (includeInstance) {
|
|
3782
|
+
obj.$jspbMessageInstance = msg;
|
|
3783
|
+
}
|
|
3784
|
+
return obj;
|
|
3785
|
+
};
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
|
|
3789
|
+
/**
|
|
3790
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3791
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3792
|
+
* @return {!proto.DeleteGoodReceiptResponse}
|
|
3793
|
+
*/
|
|
3794
|
+
proto.DeleteGoodReceiptResponse.deserializeBinary = function(bytes) {
|
|
3795
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3796
|
+
var msg = new proto.DeleteGoodReceiptResponse;
|
|
3797
|
+
return proto.DeleteGoodReceiptResponse.deserializeBinaryFromReader(msg, reader);
|
|
3798
|
+
};
|
|
3799
|
+
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3803
|
+
* given reader into the given message object.
|
|
3804
|
+
* @param {!proto.DeleteGoodReceiptResponse} msg The message object to deserialize into.
|
|
3805
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3806
|
+
* @return {!proto.DeleteGoodReceiptResponse}
|
|
3807
|
+
*/
|
|
3808
|
+
proto.DeleteGoodReceiptResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3809
|
+
while (reader.nextField()) {
|
|
3810
|
+
if (reader.isEndGroup()) {
|
|
3811
|
+
break;
|
|
3812
|
+
}
|
|
3813
|
+
var field = reader.getFieldNumber();
|
|
3814
|
+
switch (field) {
|
|
3815
|
+
case 1:
|
|
3816
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3817
|
+
msg.addReferenceIds(value);
|
|
3818
|
+
break;
|
|
3819
|
+
case 2:
|
|
3820
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3821
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3822
|
+
msg.setMeta(value);
|
|
3823
|
+
break;
|
|
3824
|
+
default:
|
|
3825
|
+
reader.skipField();
|
|
3826
|
+
break;
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
return msg;
|
|
3830
|
+
};
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
/**
|
|
3834
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3835
|
+
* @return {!Uint8Array}
|
|
3836
|
+
*/
|
|
3837
|
+
proto.DeleteGoodReceiptResponse.prototype.serializeBinary = function() {
|
|
3838
|
+
var writer = new jspb.BinaryWriter();
|
|
3839
|
+
proto.DeleteGoodReceiptResponse.serializeBinaryToWriter(this, writer);
|
|
3840
|
+
return writer.getResultBuffer();
|
|
3841
|
+
};
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
/**
|
|
3845
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3846
|
+
* format), writing to the given BinaryWriter.
|
|
3847
|
+
* @param {!proto.DeleteGoodReceiptResponse} message
|
|
3848
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3849
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3850
|
+
*/
|
|
3851
|
+
proto.DeleteGoodReceiptResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3852
|
+
var f = undefined;
|
|
3853
|
+
f = message.getReferenceIdsList();
|
|
3854
|
+
if (f.length > 0) {
|
|
3855
|
+
writer.writeRepeatedString(
|
|
3856
|
+
1,
|
|
3857
|
+
f
|
|
3858
|
+
);
|
|
3859
|
+
}
|
|
3860
|
+
f = message.getMeta();
|
|
3861
|
+
if (f != null) {
|
|
3862
|
+
writer.writeMessage(
|
|
3863
|
+
2,
|
|
3864
|
+
f,
|
|
3865
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3866
|
+
);
|
|
3867
|
+
}
|
|
3868
|
+
};
|
|
3869
|
+
|
|
3870
|
+
|
|
3871
|
+
/**
|
|
3872
|
+
* repeated string reference_ids = 1;
|
|
3873
|
+
* @return {!Array<string>}
|
|
3874
|
+
*/
|
|
3875
|
+
proto.DeleteGoodReceiptResponse.prototype.getReferenceIdsList = function() {
|
|
3876
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
3877
|
+
};
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
/**
|
|
3881
|
+
* @param {!Array<string>} value
|
|
3882
|
+
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3883
|
+
*/
|
|
3884
|
+
proto.DeleteGoodReceiptResponse.prototype.setReferenceIdsList = function(value) {
|
|
3885
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
3886
|
+
};
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* @param {string} value
|
|
3891
|
+
* @param {number=} opt_index
|
|
3892
|
+
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3893
|
+
*/
|
|
3894
|
+
proto.DeleteGoodReceiptResponse.prototype.addReferenceIds = function(value, opt_index) {
|
|
3895
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3896
|
+
};
|
|
3897
|
+
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* Clears the list making it empty but non-null.
|
|
3901
|
+
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3902
|
+
*/
|
|
3903
|
+
proto.DeleteGoodReceiptResponse.prototype.clearReferenceIdsList = function() {
|
|
3904
|
+
return this.setReferenceIdsList([]);
|
|
3905
|
+
};
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
/**
|
|
3909
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3910
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3911
|
+
*/
|
|
3912
|
+
proto.DeleteGoodReceiptResponse.prototype.getMeta = function() {
|
|
3913
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3914
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3915
|
+
};
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
/**
|
|
3919
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3920
|
+
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3921
|
+
*/
|
|
3922
|
+
proto.DeleteGoodReceiptResponse.prototype.setMeta = function(value) {
|
|
3923
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3924
|
+
};
|
|
3925
|
+
|
|
3926
|
+
|
|
3927
|
+
/**
|
|
3928
|
+
* Clears the message field making it undefined.
|
|
3929
|
+
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3930
|
+
*/
|
|
3931
|
+
proto.DeleteGoodReceiptResponse.prototype.clearMeta = function() {
|
|
3932
|
+
return this.setMeta(undefined);
|
|
3933
|
+
};
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
/**
|
|
3937
|
+
* Returns whether this field is set.
|
|
3938
|
+
* @return {boolean}
|
|
3939
|
+
*/
|
|
3940
|
+
proto.DeleteGoodReceiptResponse.prototype.hasMeta = function() {
|
|
3941
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3942
|
+
};
|
|
3943
|
+
|
|
3944
|
+
|
|
3945
|
+
goog.object.extend(exports, proto);
|