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