@aldiokta/protocgen 1.1.43 → 1.1.45

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