@aldiokta/protocgen 1.1.21 → 1.1.23

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