@aldiokta/protocgen 1.1.9 → 1.1.19

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 (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +79 -0
  3. package/prisca/v1/account_group/account_group.proto +86 -0
  4. package/prisca/v1/bidding/bidding.proto +159 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +87 -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 +31 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +76 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +120 -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 +42 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -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 +86 -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 +83 -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 +77 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -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 +45 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +216 -0
  43. package/prisca/v1/document_type/document_type.proto +80 -0
  44. package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
  45. package/prisca/v1/global/meta/meta.proto +57 -0
  46. package/prisca/v1/purchase_order/purchase_order.proto +155 -0
  47. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
  48. package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
  49. package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
  50. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  52. package/prisca/v1/quotation/quotation.proto +82 -0
  53. package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
  54. package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
  55. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  56. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  57. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  58. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  59. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -174
  60. package/prisca/v1/bidding/bidding_pb.js +0 -3793
  61. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  62. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  63. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  64. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  65. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  66. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  67. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  68. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  69. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  70. package/prisca/v1/core/company/company_pb.js +0 -3048
  71. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  72. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  73. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  74. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  75. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  76. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  77. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  78. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
  79. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  80. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  81. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  82. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
  83. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  84. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  85. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  86. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  87. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  88. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  89. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  90. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  91. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  92. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  93. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  94. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  95. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  96. package/prisca/v1/core/location/location_pb.js +0 -10879
  97. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  98. package/prisca/v1/core/material/material_pb.js +0 -4180
  99. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  100. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  101. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  102. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  103. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  104. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  105. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  106. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  107. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  108. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  109. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  110. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  111. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  112. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  113. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  114. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  115. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  116. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  117. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  118. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  119. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  120. package/prisca/v1/core/report/report_pb.js +0 -2822
  121. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  122. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  123. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  124. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  125. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  126. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  127. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  128. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  129. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  130. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  131. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  132. package/prisca/v1/core/users/users_pb.js +0 -1246
  133. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  134. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  135. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  136. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  137. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  138. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  139. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  140. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  141. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  142. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  143. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  144. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4989
  145. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
  146. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  147. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  148. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  149. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  150. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  151. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  152. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  153. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  154. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  155. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
  156. package/prisca/v1/quotation/quotation_pb.js +0 -3971
  157. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  158. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  159. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  160. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -1,3880 +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
- };
2275
-
2276
- if (includeInstance) {
2277
- obj.$jspbMessageInstance = msg;
2278
- }
2279
- return obj;
2280
- };
2281
- }
2282
-
2283
-
2284
- /**
2285
- * Deserializes binary data (in protobuf wire format).
2286
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2287
- * @return {!proto.BaseItemTransaction}
2288
- */
2289
- proto.BaseItemTransaction.deserializeBinary = function(bytes) {
2290
- var reader = new jspb.BinaryReader(bytes);
2291
- var msg = new proto.BaseItemTransaction;
2292
- return proto.BaseItemTransaction.deserializeBinaryFromReader(msg, reader);
2293
- };
2294
-
2295
-
2296
- /**
2297
- * Deserializes binary data (in protobuf wire format) from the
2298
- * given reader into the given message object.
2299
- * @param {!proto.BaseItemTransaction} msg The message object to deserialize into.
2300
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2301
- * @return {!proto.BaseItemTransaction}
2302
- */
2303
- proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
2304
- while (reader.nextField()) {
2305
- if (reader.isEndGroup()) {
2306
- break;
2307
- }
2308
- var field = reader.getFieldNumber();
2309
- switch (field) {
2310
- case 1:
2311
- var value = /** @type {string} */ (reader.readString());
2312
- msg.setTransactionReferences(value);
2313
- break;
2314
- case 2:
2315
- var value = /** @type {string} */ (reader.readString());
2316
- msg.setAccAssigment(value);
2317
- break;
2318
- case 3:
2319
- var value = /** @type {string} */ (reader.readString());
2320
- msg.setMaterialGroup(value);
2321
- break;
2322
- case 4:
2323
- var value = /** @type {string} */ (reader.readString());
2324
- msg.setMaterialCode(value);
2325
- break;
2326
- case 5:
2327
- var value = /** @type {string} */ (reader.readString());
2328
- msg.setDetailDescription(value);
2329
- break;
2330
- case 6:
2331
- var value = /** @type {string} */ (reader.readString());
2332
- msg.setDescription(value);
2333
- break;
2334
- case 7:
2335
- var value = /** @type {number} */ (reader.readFloat());
2336
- msg.setQuantity(value);
2337
- break;
2338
- case 8:
2339
- var value = /** @type {string} */ (reader.readString());
2340
- msg.setUnitOfMeasure(value);
2341
- break;
2342
- case 9:
2343
- var value = /** @type {number} */ (reader.readFloat());
2344
- msg.setEstimatedUnitPrice(value);
2345
- break;
2346
- case 10:
2347
- var value = /** @type {string} */ (reader.readString());
2348
- msg.setDeliveryDate(value);
2349
- break;
2350
- case 11:
2351
- var value = /** @type {string} */ (reader.readString());
2352
- msg.setPlannedDeliveryTime(value);
2353
- break;
2354
- case 12:
2355
- var value = /** @type {string} */ (reader.readString());
2356
- msg.setCustomTransaction(value);
2357
- break;
2358
- case 13:
2359
- var value = new proto.BaseItemTransactionDetail;
2360
- reader.readMessage(value,proto.BaseItemTransactionDetail.deserializeBinaryFromReader);
2361
- msg.addItemTransactionDetail(value);
2362
- break;
2363
- case 14:
2364
- var value = new proto.BaseItemTransactionPriceCondition;
2365
- reader.readMessage(value,proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader);
2366
- msg.addItemTransactionPriceCondition(value);
2367
- break;
2368
- case 15:
2369
- var value = /** @type {string} */ (reader.readString());
2370
- msg.setPreviousReferences(value);
2371
- break;
2372
- case 16:
2373
- var value = /** @type {string} */ (reader.readString());
2374
- msg.setPreviousTransactionReferences(value);
2375
- break;
2376
- case 17:
2377
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
2378
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2379
- msg.addFiles(value);
2380
- break;
2381
- case 18:
2382
- var value = /** @type {string} */ (reader.readString());
2383
- msg.setCurrency(value);
2384
- break;
2385
- default:
2386
- reader.skipField();
2387
- break;
2388
- }
2389
- }
2390
- return msg;
2391
- };
2392
-
2393
-
2394
- /**
2395
- * Serializes the message to binary data (in protobuf wire format).
2396
- * @return {!Uint8Array}
2397
- */
2398
- proto.BaseItemTransaction.prototype.serializeBinary = function() {
2399
- var writer = new jspb.BinaryWriter();
2400
- proto.BaseItemTransaction.serializeBinaryToWriter(this, writer);
2401
- return writer.getResultBuffer();
2402
- };
2403
-
2404
-
2405
- /**
2406
- * Serializes the given message to binary data (in protobuf wire
2407
- * format), writing to the given BinaryWriter.
2408
- * @param {!proto.BaseItemTransaction} message
2409
- * @param {!jspb.BinaryWriter} writer
2410
- * @suppress {unusedLocalVariables} f is only used for nested messages
2411
- */
2412
- proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
2413
- var f = undefined;
2414
- f = message.getTransactionReferences();
2415
- if (f.length > 0) {
2416
- writer.writeString(
2417
- 1,
2418
- f
2419
- );
2420
- }
2421
- f = message.getAccAssigment();
2422
- if (f.length > 0) {
2423
- writer.writeString(
2424
- 2,
2425
- f
2426
- );
2427
- }
2428
- f = message.getMaterialGroup();
2429
- if (f.length > 0) {
2430
- writer.writeString(
2431
- 3,
2432
- f
2433
- );
2434
- }
2435
- f = message.getMaterialCode();
2436
- if (f.length > 0) {
2437
- writer.writeString(
2438
- 4,
2439
- f
2440
- );
2441
- }
2442
- f = message.getDetailDescription();
2443
- if (f.length > 0) {
2444
- writer.writeString(
2445
- 5,
2446
- f
2447
- );
2448
- }
2449
- f = message.getDescription();
2450
- if (f.length > 0) {
2451
- writer.writeString(
2452
- 6,
2453
- f
2454
- );
2455
- }
2456
- f = message.getQuantity();
2457
- if (f !== 0.0) {
2458
- writer.writeFloat(
2459
- 7,
2460
- f
2461
- );
2462
- }
2463
- f = message.getUnitOfMeasure();
2464
- if (f.length > 0) {
2465
- writer.writeString(
2466
- 8,
2467
- f
2468
- );
2469
- }
2470
- f = message.getEstimatedUnitPrice();
2471
- if (f !== 0.0) {
2472
- writer.writeFloat(
2473
- 9,
2474
- f
2475
- );
2476
- }
2477
- f = message.getDeliveryDate();
2478
- if (f.length > 0) {
2479
- writer.writeString(
2480
- 10,
2481
- f
2482
- );
2483
- }
2484
- f = message.getPlannedDeliveryTime();
2485
- if (f.length > 0) {
2486
- writer.writeString(
2487
- 11,
2488
- f
2489
- );
2490
- }
2491
- f = message.getCustomTransaction();
2492
- if (f.length > 0) {
2493
- writer.writeString(
2494
- 12,
2495
- f
2496
- );
2497
- }
2498
- f = message.getItemTransactionDetailList();
2499
- if (f.length > 0) {
2500
- writer.writeRepeatedMessage(
2501
- 13,
2502
- f,
2503
- proto.BaseItemTransactionDetail.serializeBinaryToWriter
2504
- );
2505
- }
2506
- f = message.getItemTransactionPriceConditionList();
2507
- if (f.length > 0) {
2508
- writer.writeRepeatedMessage(
2509
- 14,
2510
- f,
2511
- proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter
2512
- );
2513
- }
2514
- f = message.getPreviousReferences();
2515
- if (f.length > 0) {
2516
- writer.writeString(
2517
- 15,
2518
- f
2519
- );
2520
- }
2521
- f = message.getPreviousTransactionReferences();
2522
- if (f.length > 0) {
2523
- writer.writeString(
2524
- 16,
2525
- f
2526
- );
2527
- }
2528
- f = message.getFilesList();
2529
- if (f.length > 0) {
2530
- writer.writeRepeatedMessage(
2531
- 17,
2532
- f,
2533
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
2534
- );
2535
- }
2536
- f = message.getCurrency();
2537
- if (f.length > 0) {
2538
- writer.writeString(
2539
- 18,
2540
- f
2541
- );
2542
- }
2543
- };
2544
-
2545
-
2546
- /**
2547
- * optional string transaction_references = 1;
2548
- * @return {string}
2549
- */
2550
- proto.BaseItemTransaction.prototype.getTransactionReferences = function() {
2551
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2552
- };
2553
-
2554
-
2555
- /**
2556
- * @param {string} value
2557
- * @return {!proto.BaseItemTransaction} returns this
2558
- */
2559
- proto.BaseItemTransaction.prototype.setTransactionReferences = function(value) {
2560
- return jspb.Message.setProto3StringField(this, 1, value);
2561
- };
2562
-
2563
-
2564
- /**
2565
- * optional string acc_assigment = 2;
2566
- * @return {string}
2567
- */
2568
- proto.BaseItemTransaction.prototype.getAccAssigment = function() {
2569
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2570
- };
2571
-
2572
-
2573
- /**
2574
- * @param {string} value
2575
- * @return {!proto.BaseItemTransaction} returns this
2576
- */
2577
- proto.BaseItemTransaction.prototype.setAccAssigment = function(value) {
2578
- return jspb.Message.setProto3StringField(this, 2, value);
2579
- };
2580
-
2581
-
2582
- /**
2583
- * optional string material_group = 3;
2584
- * @return {string}
2585
- */
2586
- proto.BaseItemTransaction.prototype.getMaterialGroup = function() {
2587
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2588
- };
2589
-
2590
-
2591
- /**
2592
- * @param {string} value
2593
- * @return {!proto.BaseItemTransaction} returns this
2594
- */
2595
- proto.BaseItemTransaction.prototype.setMaterialGroup = function(value) {
2596
- return jspb.Message.setProto3StringField(this, 3, value);
2597
- };
2598
-
2599
-
2600
- /**
2601
- * optional string material_code = 4;
2602
- * @return {string}
2603
- */
2604
- proto.BaseItemTransaction.prototype.getMaterialCode = function() {
2605
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2606
- };
2607
-
2608
-
2609
- /**
2610
- * @param {string} value
2611
- * @return {!proto.BaseItemTransaction} returns this
2612
- */
2613
- proto.BaseItemTransaction.prototype.setMaterialCode = function(value) {
2614
- return jspb.Message.setProto3StringField(this, 4, value);
2615
- };
2616
-
2617
-
2618
- /**
2619
- * optional string detail_description = 5;
2620
- * @return {string}
2621
- */
2622
- proto.BaseItemTransaction.prototype.getDetailDescription = function() {
2623
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2624
- };
2625
-
2626
-
2627
- /**
2628
- * @param {string} value
2629
- * @return {!proto.BaseItemTransaction} returns this
2630
- */
2631
- proto.BaseItemTransaction.prototype.setDetailDescription = function(value) {
2632
- return jspb.Message.setProto3StringField(this, 5, value);
2633
- };
2634
-
2635
-
2636
- /**
2637
- * optional string description = 6;
2638
- * @return {string}
2639
- */
2640
- proto.BaseItemTransaction.prototype.getDescription = function() {
2641
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2642
- };
2643
-
2644
-
2645
- /**
2646
- * @param {string} value
2647
- * @return {!proto.BaseItemTransaction} returns this
2648
- */
2649
- proto.BaseItemTransaction.prototype.setDescription = function(value) {
2650
- return jspb.Message.setProto3StringField(this, 6, value);
2651
- };
2652
-
2653
-
2654
- /**
2655
- * optional float quantity = 7;
2656
- * @return {number}
2657
- */
2658
- proto.BaseItemTransaction.prototype.getQuantity = function() {
2659
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
2660
- };
2661
-
2662
-
2663
- /**
2664
- * @param {number} value
2665
- * @return {!proto.BaseItemTransaction} returns this
2666
- */
2667
- proto.BaseItemTransaction.prototype.setQuantity = function(value) {
2668
- return jspb.Message.setProto3FloatField(this, 7, value);
2669
- };
2670
-
2671
-
2672
- /**
2673
- * optional string unit_of_measure = 8;
2674
- * @return {string}
2675
- */
2676
- proto.BaseItemTransaction.prototype.getUnitOfMeasure = function() {
2677
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2678
- };
2679
-
2680
-
2681
- /**
2682
- * @param {string} value
2683
- * @return {!proto.BaseItemTransaction} returns this
2684
- */
2685
- proto.BaseItemTransaction.prototype.setUnitOfMeasure = function(value) {
2686
- return jspb.Message.setProto3StringField(this, 8, value);
2687
- };
2688
-
2689
-
2690
- /**
2691
- * optional float estimated_unit_price = 9;
2692
- * @return {number}
2693
- */
2694
- proto.BaseItemTransaction.prototype.getEstimatedUnitPrice = function() {
2695
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
2696
- };
2697
-
2698
-
2699
- /**
2700
- * @param {number} value
2701
- * @return {!proto.BaseItemTransaction} returns this
2702
- */
2703
- proto.BaseItemTransaction.prototype.setEstimatedUnitPrice = function(value) {
2704
- return jspb.Message.setProto3FloatField(this, 9, value);
2705
- };
2706
-
2707
-
2708
- /**
2709
- * optional string delivery_date = 10;
2710
- * @return {string}
2711
- */
2712
- proto.BaseItemTransaction.prototype.getDeliveryDate = function() {
2713
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2714
- };
2715
-
2716
-
2717
- /**
2718
- * @param {string} value
2719
- * @return {!proto.BaseItemTransaction} returns this
2720
- */
2721
- proto.BaseItemTransaction.prototype.setDeliveryDate = function(value) {
2722
- return jspb.Message.setProto3StringField(this, 10, value);
2723
- };
2724
-
2725
-
2726
- /**
2727
- * optional string planned_delivery_time = 11;
2728
- * @return {string}
2729
- */
2730
- proto.BaseItemTransaction.prototype.getPlannedDeliveryTime = function() {
2731
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2732
- };
2733
-
2734
-
2735
- /**
2736
- * @param {string} value
2737
- * @return {!proto.BaseItemTransaction} returns this
2738
- */
2739
- proto.BaseItemTransaction.prototype.setPlannedDeliveryTime = function(value) {
2740
- return jspb.Message.setProto3StringField(this, 11, value);
2741
- };
2742
-
2743
-
2744
- /**
2745
- * optional string custom_transaction = 12;
2746
- * @return {string}
2747
- */
2748
- proto.BaseItemTransaction.prototype.getCustomTransaction = function() {
2749
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2750
- };
2751
-
2752
-
2753
- /**
2754
- * @param {string} value
2755
- * @return {!proto.BaseItemTransaction} returns this
2756
- */
2757
- proto.BaseItemTransaction.prototype.setCustomTransaction = function(value) {
2758
- return jspb.Message.setProto3StringField(this, 12, value);
2759
- };
2760
-
2761
-
2762
- /**
2763
- * repeated BaseItemTransactionDetail item_transaction_detail = 13;
2764
- * @return {!Array<!proto.BaseItemTransactionDetail>}
2765
- */
2766
- proto.BaseItemTransaction.prototype.getItemTransactionDetailList = function() {
2767
- return /** @type{!Array<!proto.BaseItemTransactionDetail>} */ (
2768
- jspb.Message.getRepeatedWrapperField(this, proto.BaseItemTransactionDetail, 13));
2769
- };
2770
-
2771
-
2772
- /**
2773
- * @param {!Array<!proto.BaseItemTransactionDetail>} value
2774
- * @return {!proto.BaseItemTransaction} returns this
2775
- */
2776
- proto.BaseItemTransaction.prototype.setItemTransactionDetailList = function(value) {
2777
- return jspb.Message.setRepeatedWrapperField(this, 13, value);
2778
- };
2779
-
2780
-
2781
- /**
2782
- * @param {!proto.BaseItemTransactionDetail=} opt_value
2783
- * @param {number=} opt_index
2784
- * @return {!proto.BaseItemTransactionDetail}
2785
- */
2786
- proto.BaseItemTransaction.prototype.addItemTransactionDetail = function(opt_value, opt_index) {
2787
- return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.BaseItemTransactionDetail, opt_index);
2788
- };
2789
-
2790
-
2791
- /**
2792
- * Clears the list making it empty but non-null.
2793
- * @return {!proto.BaseItemTransaction} returns this
2794
- */
2795
- proto.BaseItemTransaction.prototype.clearItemTransactionDetailList = function() {
2796
- return this.setItemTransactionDetailList([]);
2797
- };
2798
-
2799
-
2800
- /**
2801
- * repeated BaseItemTransactionPriceCondition item_transaction_price_condition = 14;
2802
- * @return {!Array<!proto.BaseItemTransactionPriceCondition>}
2803
- */
2804
- proto.BaseItemTransaction.prototype.getItemTransactionPriceConditionList = function() {
2805
- return /** @type{!Array<!proto.BaseItemTransactionPriceCondition>} */ (
2806
- jspb.Message.getRepeatedWrapperField(this, proto.BaseItemTransactionPriceCondition, 14));
2807
- };
2808
-
2809
-
2810
- /**
2811
- * @param {!Array<!proto.BaseItemTransactionPriceCondition>} value
2812
- * @return {!proto.BaseItemTransaction} returns this
2813
- */
2814
- proto.BaseItemTransaction.prototype.setItemTransactionPriceConditionList = function(value) {
2815
- return jspb.Message.setRepeatedWrapperField(this, 14, value);
2816
- };
2817
-
2818
-
2819
- /**
2820
- * @param {!proto.BaseItemTransactionPriceCondition=} opt_value
2821
- * @param {number=} opt_index
2822
- * @return {!proto.BaseItemTransactionPriceCondition}
2823
- */
2824
- proto.BaseItemTransaction.prototype.addItemTransactionPriceCondition = function(opt_value, opt_index) {
2825
- return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.BaseItemTransactionPriceCondition, opt_index);
2826
- };
2827
-
2828
-
2829
- /**
2830
- * Clears the list making it empty but non-null.
2831
- * @return {!proto.BaseItemTransaction} returns this
2832
- */
2833
- proto.BaseItemTransaction.prototype.clearItemTransactionPriceConditionList = function() {
2834
- return this.setItemTransactionPriceConditionList([]);
2835
- };
2836
-
2837
-
2838
- /**
2839
- * optional string previous_references = 15;
2840
- * @return {string}
2841
- */
2842
- proto.BaseItemTransaction.prototype.getPreviousReferences = function() {
2843
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2844
- };
2845
-
2846
-
2847
- /**
2848
- * @param {string} value
2849
- * @return {!proto.BaseItemTransaction} returns this
2850
- */
2851
- proto.BaseItemTransaction.prototype.setPreviousReferences = function(value) {
2852
- return jspb.Message.setProto3StringField(this, 15, value);
2853
- };
2854
-
2855
-
2856
- /**
2857
- * optional string previous_transaction_references = 16;
2858
- * @return {string}
2859
- */
2860
- proto.BaseItemTransaction.prototype.getPreviousTransactionReferences = function() {
2861
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
2862
- };
2863
-
2864
-
2865
- /**
2866
- * @param {string} value
2867
- * @return {!proto.BaseItemTransaction} returns this
2868
- */
2869
- proto.BaseItemTransaction.prototype.setPreviousTransactionReferences = function(value) {
2870
- return jspb.Message.setProto3StringField(this, 16, value);
2871
- };
2872
-
2873
-
2874
- /**
2875
- * repeated FileUploadReferencesReq files = 17;
2876
- * @return {!Array<!proto.FileUploadReferencesReq>}
2877
- */
2878
- proto.BaseItemTransaction.prototype.getFilesList = function() {
2879
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
2880
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 17));
2881
- };
2882
-
2883
-
2884
- /**
2885
- * @param {!Array<!proto.FileUploadReferencesReq>} value
2886
- * @return {!proto.BaseItemTransaction} returns this
2887
- */
2888
- proto.BaseItemTransaction.prototype.setFilesList = function(value) {
2889
- return jspb.Message.setRepeatedWrapperField(this, 17, value);
2890
- };
2891
-
2892
-
2893
- /**
2894
- * @param {!proto.FileUploadReferencesReq=} opt_value
2895
- * @param {number=} opt_index
2896
- * @return {!proto.FileUploadReferencesReq}
2897
- */
2898
- proto.BaseItemTransaction.prototype.addFiles = function(opt_value, opt_index) {
2899
- return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.FileUploadReferencesReq, opt_index);
2900
- };
2901
-
2902
-
2903
- /**
2904
- * Clears the list making it empty but non-null.
2905
- * @return {!proto.BaseItemTransaction} returns this
2906
- */
2907
- proto.BaseItemTransaction.prototype.clearFilesList = function() {
2908
- return this.setFilesList([]);
2909
- };
2910
-
2911
-
2912
- /**
2913
- * optional string currency = 18;
2914
- * @return {string}
2915
- */
2916
- proto.BaseItemTransaction.prototype.getCurrency = function() {
2917
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
2918
- };
2919
-
2920
-
2921
- /**
2922
- * @param {string} value
2923
- * @return {!proto.BaseItemTransaction} returns this
2924
- */
2925
- proto.BaseItemTransaction.prototype.setCurrency = function(value) {
2926
- return jspb.Message.setProto3StringField(this, 18, value);
2927
- };
2928
-
2929
-
2930
-
2931
- /**
2932
- * List of repeated fields within this message type.
2933
- * @private {!Array<number>}
2934
- * @const
2935
- */
2936
- proto.BaseItemTransactionDetail.repeatedFields_ = [18];
2937
-
2938
-
2939
-
2940
- if (jspb.Message.GENERATE_TO_OBJECT) {
2941
- /**
2942
- * Creates an object representation of this proto.
2943
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2944
- * Optional fields that are not set will be set to undefined.
2945
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2946
- * For the list of reserved names please see:
2947
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2948
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2949
- * JSPB instance for transitional soy proto support:
2950
- * http://goto/soy-param-migration
2951
- * @return {!Object}
2952
- */
2953
- proto.BaseItemTransactionDetail.prototype.toObject = function(opt_includeInstance) {
2954
- return proto.BaseItemTransactionDetail.toObject(opt_includeInstance, this);
2955
- };
2956
-
2957
-
2958
- /**
2959
- * Static version of the {@see toObject} method.
2960
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2961
- * the JSPB instance for transitional soy proto support:
2962
- * http://goto/soy-param-migration
2963
- * @param {!proto.BaseItemTransactionDetail} msg The msg instance to transform.
2964
- * @return {!Object}
2965
- * @suppress {unusedLocalVariables} f is only used for nested messages
2966
- */
2967
- proto.BaseItemTransactionDetail.toObject = function(includeInstance, msg) {
2968
- var f, obj = {
2969
- glAccount: jspb.Message.getFieldWithDefault(msg, 1, ""),
2970
- glAccountDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
2971
- unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 3, ""),
2972
- valuationPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2973
- requisitioner: jspb.Message.getFieldWithDefault(msg, 5, ""),
2974
- customTransaction: jspb.Message.getFieldWithDefault(msg, 6, ""),
2975
- distribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
2976
- quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
2977
- assetNo: jspb.Message.getFieldWithDefault(msg, 9, ""),
2978
- itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 10, ""),
2979
- costCenter: jspb.Message.getFieldWithDefault(msg, 11, ""),
2980
- orderNumber: jspb.Message.getFieldWithDefault(msg, 12, ""),
2981
- orderDescription: jspb.Message.getFieldWithDefault(msg, 13, ""),
2982
- serviceNo: jspb.Message.getFieldWithDefault(msg, 14, ""),
2983
- serviceDescription: jspb.Message.getFieldWithDefault(msg, 15, ""),
2984
- amountPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
2985
- materialCode: jspb.Message.getFieldWithDefault(msg, 17, ""),
2986
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
2987
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
2988
- };
2989
-
2990
- if (includeInstance) {
2991
- obj.$jspbMessageInstance = msg;
2992
- }
2993
- return obj;
2994
- };
2995
- }
2996
-
2997
-
2998
- /**
2999
- * Deserializes binary data (in protobuf wire format).
3000
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3001
- * @return {!proto.BaseItemTransactionDetail}
3002
- */
3003
- proto.BaseItemTransactionDetail.deserializeBinary = function(bytes) {
3004
- var reader = new jspb.BinaryReader(bytes);
3005
- var msg = new proto.BaseItemTransactionDetail;
3006
- return proto.BaseItemTransactionDetail.deserializeBinaryFromReader(msg, reader);
3007
- };
3008
-
3009
-
3010
- /**
3011
- * Deserializes binary data (in protobuf wire format) from the
3012
- * given reader into the given message object.
3013
- * @param {!proto.BaseItemTransactionDetail} msg The message object to deserialize into.
3014
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3015
- * @return {!proto.BaseItemTransactionDetail}
3016
- */
3017
- proto.BaseItemTransactionDetail.deserializeBinaryFromReader = function(msg, reader) {
3018
- while (reader.nextField()) {
3019
- if (reader.isEndGroup()) {
3020
- break;
3021
- }
3022
- var field = reader.getFieldNumber();
3023
- switch (field) {
3024
- case 1:
3025
- var value = /** @type {string} */ (reader.readString());
3026
- msg.setGlAccount(value);
3027
- break;
3028
- case 2:
3029
- var value = /** @type {string} */ (reader.readString());
3030
- msg.setGlAccountDescription(value);
3031
- break;
3032
- case 3:
3033
- var value = /** @type {string} */ (reader.readString());
3034
- msg.setUnitOfMeasure(value);
3035
- break;
3036
- case 4:
3037
- var value = /** @type {number} */ (reader.readFloat());
3038
- msg.setValuationPrice(value);
3039
- break;
3040
- case 5:
3041
- var value = /** @type {string} */ (reader.readString());
3042
- msg.setRequisitioner(value);
3043
- break;
3044
- case 6:
3045
- var value = /** @type {string} */ (reader.readString());
3046
- msg.setCustomTransaction(value);
3047
- break;
3048
- case 7:
3049
- var value = /** @type {number} */ (reader.readFloat());
3050
- msg.setDistribution(value);
3051
- break;
3052
- case 8:
3053
- var value = /** @type {number} */ (reader.readFloat());
3054
- msg.setQuantity(value);
3055
- break;
3056
- case 9:
3057
- var value = /** @type {string} */ (reader.readString());
3058
- msg.setAssetNo(value);
3059
- break;
3060
- case 10:
3061
- var value = /** @type {string} */ (reader.readString());
3062
- msg.setItemTransactionRef(value);
3063
- break;
3064
- case 11:
3065
- var value = /** @type {string} */ (reader.readString());
3066
- msg.setCostCenter(value);
3067
- break;
3068
- case 12:
3069
- var value = /** @type {string} */ (reader.readString());
3070
- msg.setOrderNumber(value);
3071
- break;
3072
- case 13:
3073
- var value = /** @type {string} */ (reader.readString());
3074
- msg.setOrderDescription(value);
3075
- break;
3076
- case 14:
3077
- var value = /** @type {string} */ (reader.readString());
3078
- msg.setServiceNo(value);
3079
- break;
3080
- case 15:
3081
- var value = /** @type {string} */ (reader.readString());
3082
- msg.setServiceDescription(value);
3083
- break;
3084
- case 16:
3085
- var value = /** @type {number} */ (reader.readFloat());
3086
- msg.setAmountPrice(value);
3087
- break;
3088
- case 17:
3089
- var value = /** @type {string} */ (reader.readString());
3090
- msg.setMaterialCode(value);
3091
- break;
3092
- case 18:
3093
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
3094
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
3095
- msg.addFiles(value);
3096
- break;
3097
- default:
3098
- reader.skipField();
3099
- break;
3100
- }
3101
- }
3102
- return msg;
3103
- };
3104
-
3105
-
3106
- /**
3107
- * Serializes the message to binary data (in protobuf wire format).
3108
- * @return {!Uint8Array}
3109
- */
3110
- proto.BaseItemTransactionDetail.prototype.serializeBinary = function() {
3111
- var writer = new jspb.BinaryWriter();
3112
- proto.BaseItemTransactionDetail.serializeBinaryToWriter(this, writer);
3113
- return writer.getResultBuffer();
3114
- };
3115
-
3116
-
3117
- /**
3118
- * Serializes the given message to binary data (in protobuf wire
3119
- * format), writing to the given BinaryWriter.
3120
- * @param {!proto.BaseItemTransactionDetail} message
3121
- * @param {!jspb.BinaryWriter} writer
3122
- * @suppress {unusedLocalVariables} f is only used for nested messages
3123
- */
3124
- proto.BaseItemTransactionDetail.serializeBinaryToWriter = function(message, writer) {
3125
- var f = undefined;
3126
- f = message.getGlAccount();
3127
- if (f.length > 0) {
3128
- writer.writeString(
3129
- 1,
3130
- f
3131
- );
3132
- }
3133
- f = message.getGlAccountDescription();
3134
- if (f.length > 0) {
3135
- writer.writeString(
3136
- 2,
3137
- f
3138
- );
3139
- }
3140
- f = message.getUnitOfMeasure();
3141
- if (f.length > 0) {
3142
- writer.writeString(
3143
- 3,
3144
- f
3145
- );
3146
- }
3147
- f = message.getValuationPrice();
3148
- if (f !== 0.0) {
3149
- writer.writeFloat(
3150
- 4,
3151
- f
3152
- );
3153
- }
3154
- f = message.getRequisitioner();
3155
- if (f.length > 0) {
3156
- writer.writeString(
3157
- 5,
3158
- f
3159
- );
3160
- }
3161
- f = message.getCustomTransaction();
3162
- if (f.length > 0) {
3163
- writer.writeString(
3164
- 6,
3165
- f
3166
- );
3167
- }
3168
- f = message.getDistribution();
3169
- if (f !== 0.0) {
3170
- writer.writeFloat(
3171
- 7,
3172
- f
3173
- );
3174
- }
3175
- f = message.getQuantity();
3176
- if (f !== 0.0) {
3177
- writer.writeFloat(
3178
- 8,
3179
- f
3180
- );
3181
- }
3182
- f = message.getAssetNo();
3183
- if (f.length > 0) {
3184
- writer.writeString(
3185
- 9,
3186
- f
3187
- );
3188
- }
3189
- f = message.getItemTransactionRef();
3190
- if (f.length > 0) {
3191
- writer.writeString(
3192
- 10,
3193
- f
3194
- );
3195
- }
3196
- f = message.getCostCenter();
3197
- if (f.length > 0) {
3198
- writer.writeString(
3199
- 11,
3200
- f
3201
- );
3202
- }
3203
- f = message.getOrderNumber();
3204
- if (f.length > 0) {
3205
- writer.writeString(
3206
- 12,
3207
- f
3208
- );
3209
- }
3210
- f = message.getOrderDescription();
3211
- if (f.length > 0) {
3212
- writer.writeString(
3213
- 13,
3214
- f
3215
- );
3216
- }
3217
- f = message.getServiceNo();
3218
- if (f.length > 0) {
3219
- writer.writeString(
3220
- 14,
3221
- f
3222
- );
3223
- }
3224
- f = message.getServiceDescription();
3225
- if (f.length > 0) {
3226
- writer.writeString(
3227
- 15,
3228
- f
3229
- );
3230
- }
3231
- f = message.getAmountPrice();
3232
- if (f !== 0.0) {
3233
- writer.writeFloat(
3234
- 16,
3235
- f
3236
- );
3237
- }
3238
- f = message.getMaterialCode();
3239
- if (f.length > 0) {
3240
- writer.writeString(
3241
- 17,
3242
- f
3243
- );
3244
- }
3245
- f = message.getFilesList();
3246
- if (f.length > 0) {
3247
- writer.writeRepeatedMessage(
3248
- 18,
3249
- f,
3250
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3251
- );
3252
- }
3253
- };
3254
-
3255
-
3256
- /**
3257
- * optional string gl_account = 1;
3258
- * @return {string}
3259
- */
3260
- proto.BaseItemTransactionDetail.prototype.getGlAccount = function() {
3261
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3262
- };
3263
-
3264
-
3265
- /**
3266
- * @param {string} value
3267
- * @return {!proto.BaseItemTransactionDetail} returns this
3268
- */
3269
- proto.BaseItemTransactionDetail.prototype.setGlAccount = function(value) {
3270
- return jspb.Message.setProto3StringField(this, 1, value);
3271
- };
3272
-
3273
-
3274
- /**
3275
- * optional string gl_account_description = 2;
3276
- * @return {string}
3277
- */
3278
- proto.BaseItemTransactionDetail.prototype.getGlAccountDescription = function() {
3279
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3280
- };
3281
-
3282
-
3283
- /**
3284
- * @param {string} value
3285
- * @return {!proto.BaseItemTransactionDetail} returns this
3286
- */
3287
- proto.BaseItemTransactionDetail.prototype.setGlAccountDescription = function(value) {
3288
- return jspb.Message.setProto3StringField(this, 2, value);
3289
- };
3290
-
3291
-
3292
- /**
3293
- * optional string unit_of_measure = 3;
3294
- * @return {string}
3295
- */
3296
- proto.BaseItemTransactionDetail.prototype.getUnitOfMeasure = function() {
3297
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3298
- };
3299
-
3300
-
3301
- /**
3302
- * @param {string} value
3303
- * @return {!proto.BaseItemTransactionDetail} returns this
3304
- */
3305
- proto.BaseItemTransactionDetail.prototype.setUnitOfMeasure = function(value) {
3306
- return jspb.Message.setProto3StringField(this, 3, value);
3307
- };
3308
-
3309
-
3310
- /**
3311
- * optional float valuation_price = 4;
3312
- * @return {number}
3313
- */
3314
- proto.BaseItemTransactionDetail.prototype.getValuationPrice = function() {
3315
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
3316
- };
3317
-
3318
-
3319
- /**
3320
- * @param {number} value
3321
- * @return {!proto.BaseItemTransactionDetail} returns this
3322
- */
3323
- proto.BaseItemTransactionDetail.prototype.setValuationPrice = function(value) {
3324
- return jspb.Message.setProto3FloatField(this, 4, value);
3325
- };
3326
-
3327
-
3328
- /**
3329
- * optional string requisitioner = 5;
3330
- * @return {string}
3331
- */
3332
- proto.BaseItemTransactionDetail.prototype.getRequisitioner = function() {
3333
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3334
- };
3335
-
3336
-
3337
- /**
3338
- * @param {string} value
3339
- * @return {!proto.BaseItemTransactionDetail} returns this
3340
- */
3341
- proto.BaseItemTransactionDetail.prototype.setRequisitioner = function(value) {
3342
- return jspb.Message.setProto3StringField(this, 5, value);
3343
- };
3344
-
3345
-
3346
- /**
3347
- * optional string custom_transaction = 6;
3348
- * @return {string}
3349
- */
3350
- proto.BaseItemTransactionDetail.prototype.getCustomTransaction = function() {
3351
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3352
- };
3353
-
3354
-
3355
- /**
3356
- * @param {string} value
3357
- * @return {!proto.BaseItemTransactionDetail} returns this
3358
- */
3359
- proto.BaseItemTransactionDetail.prototype.setCustomTransaction = function(value) {
3360
- return jspb.Message.setProto3StringField(this, 6, value);
3361
- };
3362
-
3363
-
3364
- /**
3365
- * optional float distribution = 7;
3366
- * @return {number}
3367
- */
3368
- proto.BaseItemTransactionDetail.prototype.getDistribution = function() {
3369
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
3370
- };
3371
-
3372
-
3373
- /**
3374
- * @param {number} value
3375
- * @return {!proto.BaseItemTransactionDetail} returns this
3376
- */
3377
- proto.BaseItemTransactionDetail.prototype.setDistribution = function(value) {
3378
- return jspb.Message.setProto3FloatField(this, 7, value);
3379
- };
3380
-
3381
-
3382
- /**
3383
- * optional float quantity = 8;
3384
- * @return {number}
3385
- */
3386
- proto.BaseItemTransactionDetail.prototype.getQuantity = function() {
3387
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
3388
- };
3389
-
3390
-
3391
- /**
3392
- * @param {number} value
3393
- * @return {!proto.BaseItemTransactionDetail} returns this
3394
- */
3395
- proto.BaseItemTransactionDetail.prototype.setQuantity = function(value) {
3396
- return jspb.Message.setProto3FloatField(this, 8, value);
3397
- };
3398
-
3399
-
3400
- /**
3401
- * optional string asset_no = 9;
3402
- * @return {string}
3403
- */
3404
- proto.BaseItemTransactionDetail.prototype.getAssetNo = function() {
3405
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3406
- };
3407
-
3408
-
3409
- /**
3410
- * @param {string} value
3411
- * @return {!proto.BaseItemTransactionDetail} returns this
3412
- */
3413
- proto.BaseItemTransactionDetail.prototype.setAssetNo = function(value) {
3414
- return jspb.Message.setProto3StringField(this, 9, value);
3415
- };
3416
-
3417
-
3418
- /**
3419
- * optional string item_transaction_ref = 10;
3420
- * @return {string}
3421
- */
3422
- proto.BaseItemTransactionDetail.prototype.getItemTransactionRef = function() {
3423
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3424
- };
3425
-
3426
-
3427
- /**
3428
- * @param {string} value
3429
- * @return {!proto.BaseItemTransactionDetail} returns this
3430
- */
3431
- proto.BaseItemTransactionDetail.prototype.setItemTransactionRef = function(value) {
3432
- return jspb.Message.setProto3StringField(this, 10, value);
3433
- };
3434
-
3435
-
3436
- /**
3437
- * optional string cost_center = 11;
3438
- * @return {string}
3439
- */
3440
- proto.BaseItemTransactionDetail.prototype.getCostCenter = function() {
3441
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3442
- };
3443
-
3444
-
3445
- /**
3446
- * @param {string} value
3447
- * @return {!proto.BaseItemTransactionDetail} returns this
3448
- */
3449
- proto.BaseItemTransactionDetail.prototype.setCostCenter = function(value) {
3450
- return jspb.Message.setProto3StringField(this, 11, value);
3451
- };
3452
-
3453
-
3454
- /**
3455
- * optional string order_number = 12;
3456
- * @return {string}
3457
- */
3458
- proto.BaseItemTransactionDetail.prototype.getOrderNumber = function() {
3459
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3460
- };
3461
-
3462
-
3463
- /**
3464
- * @param {string} value
3465
- * @return {!proto.BaseItemTransactionDetail} returns this
3466
- */
3467
- proto.BaseItemTransactionDetail.prototype.setOrderNumber = function(value) {
3468
- return jspb.Message.setProto3StringField(this, 12, value);
3469
- };
3470
-
3471
-
3472
- /**
3473
- * optional string order_description = 13;
3474
- * @return {string}
3475
- */
3476
- proto.BaseItemTransactionDetail.prototype.getOrderDescription = function() {
3477
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3478
- };
3479
-
3480
-
3481
- /**
3482
- * @param {string} value
3483
- * @return {!proto.BaseItemTransactionDetail} returns this
3484
- */
3485
- proto.BaseItemTransactionDetail.prototype.setOrderDescription = function(value) {
3486
- return jspb.Message.setProto3StringField(this, 13, value);
3487
- };
3488
-
3489
-
3490
- /**
3491
- * optional string service_no = 14;
3492
- * @return {string}
3493
- */
3494
- proto.BaseItemTransactionDetail.prototype.getServiceNo = function() {
3495
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3496
- };
3497
-
3498
-
3499
- /**
3500
- * @param {string} value
3501
- * @return {!proto.BaseItemTransactionDetail} returns this
3502
- */
3503
- proto.BaseItemTransactionDetail.prototype.setServiceNo = function(value) {
3504
- return jspb.Message.setProto3StringField(this, 14, value);
3505
- };
3506
-
3507
-
3508
- /**
3509
- * optional string service_description = 15;
3510
- * @return {string}
3511
- */
3512
- proto.BaseItemTransactionDetail.prototype.getServiceDescription = function() {
3513
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3514
- };
3515
-
3516
-
3517
- /**
3518
- * @param {string} value
3519
- * @return {!proto.BaseItemTransactionDetail} returns this
3520
- */
3521
- proto.BaseItemTransactionDetail.prototype.setServiceDescription = function(value) {
3522
- return jspb.Message.setProto3StringField(this, 15, value);
3523
- };
3524
-
3525
-
3526
- /**
3527
- * optional float amount_price = 16;
3528
- * @return {number}
3529
- */
3530
- proto.BaseItemTransactionDetail.prototype.getAmountPrice = function() {
3531
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
3532
- };
3533
-
3534
-
3535
- /**
3536
- * @param {number} value
3537
- * @return {!proto.BaseItemTransactionDetail} returns this
3538
- */
3539
- proto.BaseItemTransactionDetail.prototype.setAmountPrice = function(value) {
3540
- return jspb.Message.setProto3FloatField(this, 16, value);
3541
- };
3542
-
3543
-
3544
- /**
3545
- * optional string material_code = 17;
3546
- * @return {string}
3547
- */
3548
- proto.BaseItemTransactionDetail.prototype.getMaterialCode = function() {
3549
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
3550
- };
3551
-
3552
-
3553
- /**
3554
- * @param {string} value
3555
- * @return {!proto.BaseItemTransactionDetail} returns this
3556
- */
3557
- proto.BaseItemTransactionDetail.prototype.setMaterialCode = function(value) {
3558
- return jspb.Message.setProto3StringField(this, 17, value);
3559
- };
3560
-
3561
-
3562
- /**
3563
- * repeated FileUploadReferencesReq files = 18;
3564
- * @return {!Array<!proto.FileUploadReferencesReq>}
3565
- */
3566
- proto.BaseItemTransactionDetail.prototype.getFilesList = function() {
3567
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3568
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 18));
3569
- };
3570
-
3571
-
3572
- /**
3573
- * @param {!Array<!proto.FileUploadReferencesReq>} value
3574
- * @return {!proto.BaseItemTransactionDetail} returns this
3575
- */
3576
- proto.BaseItemTransactionDetail.prototype.setFilesList = function(value) {
3577
- return jspb.Message.setRepeatedWrapperField(this, 18, value);
3578
- };
3579
-
3580
-
3581
- /**
3582
- * @param {!proto.FileUploadReferencesReq=} opt_value
3583
- * @param {number=} opt_index
3584
- * @return {!proto.FileUploadReferencesReq}
3585
- */
3586
- proto.BaseItemTransactionDetail.prototype.addFiles = function(opt_value, opt_index) {
3587
- return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.FileUploadReferencesReq, opt_index);
3588
- };
3589
-
3590
-
3591
- /**
3592
- * Clears the list making it empty but non-null.
3593
- * @return {!proto.BaseItemTransactionDetail} returns this
3594
- */
3595
- proto.BaseItemTransactionDetail.prototype.clearFilesList = function() {
3596
- return this.setFilesList([]);
3597
- };
3598
-
3599
-
3600
-
3601
-
3602
-
3603
- if (jspb.Message.GENERATE_TO_OBJECT) {
3604
- /**
3605
- * Creates an object representation of this proto.
3606
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3607
- * Optional fields that are not set will be set to undefined.
3608
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3609
- * For the list of reserved names please see:
3610
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3611
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3612
- * JSPB instance for transitional soy proto support:
3613
- * http://goto/soy-param-migration
3614
- * @return {!Object}
3615
- */
3616
- proto.BaseItemTransactionPriceCondition.prototype.toObject = function(opt_includeInstance) {
3617
- return proto.BaseItemTransactionPriceCondition.toObject(opt_includeInstance, this);
3618
- };
3619
-
3620
-
3621
- /**
3622
- * Static version of the {@see toObject} method.
3623
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3624
- * the JSPB instance for transitional soy proto support:
3625
- * http://goto/soy-param-migration
3626
- * @param {!proto.BaseItemTransactionPriceCondition} msg The msg instance to transform.
3627
- * @return {!Object}
3628
- * @suppress {unusedLocalVariables} f is only used for nested messages
3629
- */
3630
- proto.BaseItemTransactionPriceCondition.toObject = function(includeInstance, msg) {
3631
- var f, obj = {
3632
- amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
3633
- operator: jspb.Message.getFieldWithDefault(msg, 2, ""),
3634
- divide: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
3635
- type: jspb.Message.getFieldWithDefault(msg, 4, ""),
3636
- name: jspb.Message.getFieldWithDefault(msg, 5, ""),
3637
- itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 6, "")
3638
- };
3639
-
3640
- if (includeInstance) {
3641
- obj.$jspbMessageInstance = msg;
3642
- }
3643
- return obj;
3644
- };
3645
- }
3646
-
3647
-
3648
- /**
3649
- * Deserializes binary data (in protobuf wire format).
3650
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3651
- * @return {!proto.BaseItemTransactionPriceCondition}
3652
- */
3653
- proto.BaseItemTransactionPriceCondition.deserializeBinary = function(bytes) {
3654
- var reader = new jspb.BinaryReader(bytes);
3655
- var msg = new proto.BaseItemTransactionPriceCondition;
3656
- return proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader(msg, reader);
3657
- };
3658
-
3659
-
3660
- /**
3661
- * Deserializes binary data (in protobuf wire format) from the
3662
- * given reader into the given message object.
3663
- * @param {!proto.BaseItemTransactionPriceCondition} msg The message object to deserialize into.
3664
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3665
- * @return {!proto.BaseItemTransactionPriceCondition}
3666
- */
3667
- proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader = function(msg, reader) {
3668
- while (reader.nextField()) {
3669
- if (reader.isEndGroup()) {
3670
- break;
3671
- }
3672
- var field = reader.getFieldNumber();
3673
- switch (field) {
3674
- case 1:
3675
- var value = /** @type {number} */ (reader.readFloat());
3676
- msg.setAmount(value);
3677
- break;
3678
- case 2:
3679
- var value = /** @type {string} */ (reader.readString());
3680
- msg.setOperator(value);
3681
- break;
3682
- case 3:
3683
- var value = /** @type {number} */ (reader.readFloat());
3684
- msg.setDivide(value);
3685
- break;
3686
- case 4:
3687
- var value = /** @type {string} */ (reader.readString());
3688
- msg.setType(value);
3689
- break;
3690
- case 5:
3691
- var value = /** @type {string} */ (reader.readString());
3692
- msg.setName(value);
3693
- break;
3694
- case 6:
3695
- var value = /** @type {string} */ (reader.readString());
3696
- msg.setItemTransactionRef(value);
3697
- break;
3698
- default:
3699
- reader.skipField();
3700
- break;
3701
- }
3702
- }
3703
- return msg;
3704
- };
3705
-
3706
-
3707
- /**
3708
- * Serializes the message to binary data (in protobuf wire format).
3709
- * @return {!Uint8Array}
3710
- */
3711
- proto.BaseItemTransactionPriceCondition.prototype.serializeBinary = function() {
3712
- var writer = new jspb.BinaryWriter();
3713
- proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter(this, writer);
3714
- return writer.getResultBuffer();
3715
- };
3716
-
3717
-
3718
- /**
3719
- * Serializes the given message to binary data (in protobuf wire
3720
- * format), writing to the given BinaryWriter.
3721
- * @param {!proto.BaseItemTransactionPriceCondition} message
3722
- * @param {!jspb.BinaryWriter} writer
3723
- * @suppress {unusedLocalVariables} f is only used for nested messages
3724
- */
3725
- proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter = function(message, writer) {
3726
- var f = undefined;
3727
- f = message.getAmount();
3728
- if (f !== 0.0) {
3729
- writer.writeFloat(
3730
- 1,
3731
- f
3732
- );
3733
- }
3734
- f = message.getOperator();
3735
- if (f.length > 0) {
3736
- writer.writeString(
3737
- 2,
3738
- f
3739
- );
3740
- }
3741
- f = message.getDivide();
3742
- if (f !== 0.0) {
3743
- writer.writeFloat(
3744
- 3,
3745
- f
3746
- );
3747
- }
3748
- f = message.getType();
3749
- if (f.length > 0) {
3750
- writer.writeString(
3751
- 4,
3752
- f
3753
- );
3754
- }
3755
- f = message.getName();
3756
- if (f.length > 0) {
3757
- writer.writeString(
3758
- 5,
3759
- f
3760
- );
3761
- }
3762
- f = message.getItemTransactionRef();
3763
- if (f.length > 0) {
3764
- writer.writeString(
3765
- 6,
3766
- f
3767
- );
3768
- }
3769
- };
3770
-
3771
-
3772
- /**
3773
- * optional float amount = 1;
3774
- * @return {number}
3775
- */
3776
- proto.BaseItemTransactionPriceCondition.prototype.getAmount = function() {
3777
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
3778
- };
3779
-
3780
-
3781
- /**
3782
- * @param {number} value
3783
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
3784
- */
3785
- proto.BaseItemTransactionPriceCondition.prototype.setAmount = function(value) {
3786
- return jspb.Message.setProto3FloatField(this, 1, value);
3787
- };
3788
-
3789
-
3790
- /**
3791
- * optional string operator = 2;
3792
- * @return {string}
3793
- */
3794
- proto.BaseItemTransactionPriceCondition.prototype.getOperator = function() {
3795
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3796
- };
3797
-
3798
-
3799
- /**
3800
- * @param {string} value
3801
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
3802
- */
3803
- proto.BaseItemTransactionPriceCondition.prototype.setOperator = function(value) {
3804
- return jspb.Message.setProto3StringField(this, 2, value);
3805
- };
3806
-
3807
-
3808
- /**
3809
- * optional float divide = 3;
3810
- * @return {number}
3811
- */
3812
- proto.BaseItemTransactionPriceCondition.prototype.getDivide = function() {
3813
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
3814
- };
3815
-
3816
-
3817
- /**
3818
- * @param {number} value
3819
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
3820
- */
3821
- proto.BaseItemTransactionPriceCondition.prototype.setDivide = function(value) {
3822
- return jspb.Message.setProto3FloatField(this, 3, value);
3823
- };
3824
-
3825
-
3826
- /**
3827
- * optional string type = 4;
3828
- * @return {string}
3829
- */
3830
- proto.BaseItemTransactionPriceCondition.prototype.getType = function() {
3831
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3832
- };
3833
-
3834
-
3835
- /**
3836
- * @param {string} value
3837
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
3838
- */
3839
- proto.BaseItemTransactionPriceCondition.prototype.setType = function(value) {
3840
- return jspb.Message.setProto3StringField(this, 4, value);
3841
- };
3842
-
3843
-
3844
- /**
3845
- * optional string name = 5;
3846
- * @return {string}
3847
- */
3848
- proto.BaseItemTransactionPriceCondition.prototype.getName = function() {
3849
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3850
- };
3851
-
3852
-
3853
- /**
3854
- * @param {string} value
3855
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
3856
- */
3857
- proto.BaseItemTransactionPriceCondition.prototype.setName = function(value) {
3858
- return jspb.Message.setProto3StringField(this, 5, value);
3859
- };
3860
-
3861
-
3862
- /**
3863
- * optional string item_transaction_ref = 6;
3864
- * @return {string}
3865
- */
3866
- proto.BaseItemTransactionPriceCondition.prototype.getItemTransactionRef = function() {
3867
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3868
- };
3869
-
3870
-
3871
- /**
3872
- * @param {string} value
3873
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
3874
- */
3875
- proto.BaseItemTransactionPriceCondition.prototype.setItemTransactionRef = function(value) {
3876
- return jspb.Message.setProto3StringField(this, 6, value);
3877
- };
3878
-
3879
-
3880
- goog.object.extend(exports, proto);