@aldiokta/protocgen 1.1.21 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +93 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -229
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6335
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3048
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3910
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4180
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  135. package/prisca/v1/core/users/users_pb.js +0 -1246
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  140. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  141. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  142. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  143. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  144. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  145. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  146. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  147. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4959
  148. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  149. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  150. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  151. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  152. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  153. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  154. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  155. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  156. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  158. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -152
  159. package/prisca/v1/quotation/quotation_pb.js +0 -2319
  160. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  161. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  162. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  163. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  164. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  165. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -1,2319 +0,0 @@
1
- // source: prisca/v1/quotation/quotation.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
- var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendor_domain/vendor_domain_pb.js');
27
- goog.object.extend(proto, prisca_v1_vendor_domain_vendor_domain_pb);
28
- var prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb = require('../../../prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js');
29
- goog.object.extend(proto, prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb);
30
- var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
31
- goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
32
- var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
33
- goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
34
- var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
35
- goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
36
- var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
37
- goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
38
- var prisca_v1_request_for_quotation_request_for_quotation_pb = require('../../../prisca/v1/request_for_quotation/request_for_quotation_pb.js');
39
- goog.object.extend(proto, prisca_v1_request_for_quotation_request_for_quotation_pb);
40
- var prisca_v1_bidding_bidding_pb = require('../../../prisca/v1/bidding/bidding_pb.js');
41
- goog.object.extend(proto, prisca_v1_bidding_bidding_pb);
42
- goog.exportSymbol('proto.BaseQuotationRequest', null, global);
43
- goog.exportSymbol('proto.GetListQuotationRequest', null, global);
44
- goog.exportSymbol('proto.GetListQuotationResponse', null, global);
45
- goog.exportSymbol('proto.GetQuotationByIdRequest', null, global);
46
- goog.exportSymbol('proto.GetQuotationByIdResponse', null, global);
47
- goog.exportSymbol('proto.GetQuotationDetailResponse', null, global);
48
- goog.exportSymbol('proto.UpdateQuotationRequest', null, global);
49
- goog.exportSymbol('proto.UpdateQuotationResponse', null, global);
50
- /**
51
- * Generated by JsPbCodeGenerator.
52
- * @param {Array=} opt_data Optional initial data array, typically from a
53
- * server response, or constructed directly in Javascript. The array is used
54
- * in place and becomes part of the constructed object. It is not cloned.
55
- * If no data is provided, the constructed object will be empty, but still
56
- * valid.
57
- * @extends {jspb.Message}
58
- * @constructor
59
- */
60
- proto.BaseQuotationRequest = function(opt_data) {
61
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseQuotationRequest.repeatedFields_, null);
62
- };
63
- goog.inherits(proto.BaseQuotationRequest, jspb.Message);
64
- if (goog.DEBUG && !COMPILED) {
65
- /**
66
- * @public
67
- * @override
68
- */
69
- proto.BaseQuotationRequest.displayName = 'proto.BaseQuotationRequest';
70
- }
71
- /**
72
- * Generated by JsPbCodeGenerator.
73
- * @param {Array=} opt_data Optional initial data array, typically from a
74
- * server response, or constructed directly in Javascript. The array is used
75
- * in place and becomes part of the constructed object. It is not cloned.
76
- * If no data is provided, the constructed object will be empty, but still
77
- * valid.
78
- * @extends {jspb.Message}
79
- * @constructor
80
- */
81
- proto.GetQuotationByIdRequest = function(opt_data) {
82
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
- };
84
- goog.inherits(proto.GetQuotationByIdRequest, jspb.Message);
85
- if (goog.DEBUG && !COMPILED) {
86
- /**
87
- * @public
88
- * @override
89
- */
90
- proto.GetQuotationByIdRequest.displayName = 'proto.GetQuotationByIdRequest';
91
- }
92
- /**
93
- * Generated by JsPbCodeGenerator.
94
- * @param {Array=} opt_data Optional initial data array, typically from a
95
- * server response, or constructed directly in Javascript. The array is used
96
- * in place and becomes part of the constructed object. It is not cloned.
97
- * If no data is provided, the constructed object will be empty, but still
98
- * valid.
99
- * @extends {jspb.Message}
100
- * @constructor
101
- */
102
- proto.UpdateQuotationRequest = function(opt_data) {
103
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
- };
105
- goog.inherits(proto.UpdateQuotationRequest, jspb.Message);
106
- if (goog.DEBUG && !COMPILED) {
107
- /**
108
- * @public
109
- * @override
110
- */
111
- proto.UpdateQuotationRequest.displayName = 'proto.UpdateQuotationRequest';
112
- }
113
- /**
114
- * Generated by JsPbCodeGenerator.
115
- * @param {Array=} opt_data Optional initial data array, typically from a
116
- * server response, or constructed directly in Javascript. The array is used
117
- * in place and becomes part of the constructed object. It is not cloned.
118
- * If no data is provided, the constructed object will be empty, but still
119
- * valid.
120
- * @extends {jspb.Message}
121
- * @constructor
122
- */
123
- proto.GetListQuotationRequest = function(opt_data) {
124
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
- };
126
- goog.inherits(proto.GetListQuotationRequest, jspb.Message);
127
- if (goog.DEBUG && !COMPILED) {
128
- /**
129
- * @public
130
- * @override
131
- */
132
- proto.GetListQuotationRequest.displayName = 'proto.GetListQuotationRequest';
133
- }
134
- /**
135
- * Generated by JsPbCodeGenerator.
136
- * @param {Array=} opt_data Optional initial data array, typically from a
137
- * server response, or constructed directly in Javascript. The array is used
138
- * in place and becomes part of the constructed object. It is not cloned.
139
- * If no data is provided, the constructed object will be empty, but still
140
- * valid.
141
- * @extends {jspb.Message}
142
- * @constructor
143
- */
144
- proto.GetQuotationByIdResponse = function(opt_data) {
145
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
146
- };
147
- goog.inherits(proto.GetQuotationByIdResponse, jspb.Message);
148
- if (goog.DEBUG && !COMPILED) {
149
- /**
150
- * @public
151
- * @override
152
- */
153
- proto.GetQuotationByIdResponse.displayName = 'proto.GetQuotationByIdResponse';
154
- }
155
- /**
156
- * Generated by JsPbCodeGenerator.
157
- * @param {Array=} opt_data Optional initial data array, typically from a
158
- * server response, or constructed directly in Javascript. The array is used
159
- * in place and becomes part of the constructed object. It is not cloned.
160
- * If no data is provided, the constructed object will be empty, but still
161
- * valid.
162
- * @extends {jspb.Message}
163
- * @constructor
164
- */
165
- proto.GetQuotationDetailResponse = function(opt_data) {
166
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetQuotationDetailResponse.repeatedFields_, null);
167
- };
168
- goog.inherits(proto.GetQuotationDetailResponse, jspb.Message);
169
- if (goog.DEBUG && !COMPILED) {
170
- /**
171
- * @public
172
- * @override
173
- */
174
- proto.GetQuotationDetailResponse.displayName = 'proto.GetQuotationDetailResponse';
175
- }
176
- /**
177
- * Generated by JsPbCodeGenerator.
178
- * @param {Array=} opt_data Optional initial data array, typically from a
179
- * server response, or constructed directly in Javascript. The array is used
180
- * in place and becomes part of the constructed object. It is not cloned.
181
- * If no data is provided, the constructed object will be empty, but still
182
- * valid.
183
- * @extends {jspb.Message}
184
- * @constructor
185
- */
186
- proto.GetListQuotationResponse = function(opt_data) {
187
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListQuotationResponse.repeatedFields_, null);
188
- };
189
- goog.inherits(proto.GetListQuotationResponse, jspb.Message);
190
- if (goog.DEBUG && !COMPILED) {
191
- /**
192
- * @public
193
- * @override
194
- */
195
- proto.GetListQuotationResponse.displayName = 'proto.GetListQuotationResponse';
196
- }
197
- /**
198
- * Generated by JsPbCodeGenerator.
199
- * @param {Array=} opt_data Optional initial data array, typically from a
200
- * server response, or constructed directly in Javascript. The array is used
201
- * in place and becomes part of the constructed object. It is not cloned.
202
- * If no data is provided, the constructed object will be empty, but still
203
- * valid.
204
- * @extends {jspb.Message}
205
- * @constructor
206
- */
207
- proto.UpdateQuotationResponse = function(opt_data) {
208
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
209
- };
210
- goog.inherits(proto.UpdateQuotationResponse, jspb.Message);
211
- if (goog.DEBUG && !COMPILED) {
212
- /**
213
- * @public
214
- * @override
215
- */
216
- proto.UpdateQuotationResponse.displayName = 'proto.UpdateQuotationResponse';
217
- }
218
-
219
- /**
220
- * List of repeated fields within this message type.
221
- * @private {!Array<number>}
222
- * @const
223
- */
224
- proto.BaseQuotationRequest.repeatedFields_ = [20];
225
-
226
-
227
-
228
- if (jspb.Message.GENERATE_TO_OBJECT) {
229
- /**
230
- * Creates an object representation of this proto.
231
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
232
- * Optional fields that are not set will be set to undefined.
233
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
234
- * For the list of reserved names please see:
235
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
236
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
237
- * JSPB instance for transitional soy proto support:
238
- * http://goto/soy-param-migration
239
- * @return {!Object}
240
- */
241
- proto.BaseQuotationRequest.prototype.toObject = function(opt_includeInstance) {
242
- return proto.BaseQuotationRequest.toObject(opt_includeInstance, this);
243
- };
244
-
245
-
246
- /**
247
- * Static version of the {@see toObject} method.
248
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
249
- * the JSPB instance for transitional soy proto support:
250
- * http://goto/soy-param-migration
251
- * @param {!proto.BaseQuotationRequest} msg The msg instance to transform.
252
- * @return {!Object}
253
- * @suppress {unusedLocalVariables} f is only used for nested messages
254
- */
255
- proto.BaseQuotationRequest.toObject = function(includeInstance, msg) {
256
- var f, obj = {
257
- description: jspb.Message.getFieldWithDefault(msg, 1, ""),
258
- detail: jspb.Message.getFieldWithDefault(msg, 2, ""),
259
- prQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
260
- remainingQuantityPo: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
261
- replacement: jspb.Message.getFieldWithDefault(msg, 5, ""),
262
- quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
263
- price: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
264
- vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
265
- biddingReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
266
- termOfPayment: jspb.Message.getFieldWithDefault(msg, 10, ""),
267
- deliveryDate: jspb.Message.getFieldWithDefault(msg, 11, ""),
268
- deliveryPoint: jspb.Message.getFieldWithDefault(msg, 12, ""),
269
- vendorSource: jspb.Message.getFieldWithDefault(msg, 13, ""),
270
- setWinner: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
271
- notesForVendor: jspb.Message.getFieldWithDefault(msg, 15, ""),
272
- termOfCondition: jspb.Message.getFieldWithDefault(msg, 16, ""),
273
- customTransaction: jspb.Message.getFieldWithDefault(msg, 17, ""),
274
- plant: jspb.Message.getFieldWithDefault(msg, 18, ""),
275
- department: jspb.Message.getFieldWithDefault(msg, 19, ""),
276
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
277
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
278
- visible: jspb.Message.getBooleanFieldWithDefault(msg, 21, false)
279
- };
280
-
281
- if (includeInstance) {
282
- obj.$jspbMessageInstance = msg;
283
- }
284
- return obj;
285
- };
286
- }
287
-
288
-
289
- /**
290
- * Deserializes binary data (in protobuf wire format).
291
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
292
- * @return {!proto.BaseQuotationRequest}
293
- */
294
- proto.BaseQuotationRequest.deserializeBinary = function(bytes) {
295
- var reader = new jspb.BinaryReader(bytes);
296
- var msg = new proto.BaseQuotationRequest;
297
- return proto.BaseQuotationRequest.deserializeBinaryFromReader(msg, reader);
298
- };
299
-
300
-
301
- /**
302
- * Deserializes binary data (in protobuf wire format) from the
303
- * given reader into the given message object.
304
- * @param {!proto.BaseQuotationRequest} msg The message object to deserialize into.
305
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
306
- * @return {!proto.BaseQuotationRequest}
307
- */
308
- proto.BaseQuotationRequest.deserializeBinaryFromReader = function(msg, reader) {
309
- while (reader.nextField()) {
310
- if (reader.isEndGroup()) {
311
- break;
312
- }
313
- var field = reader.getFieldNumber();
314
- switch (field) {
315
- case 1:
316
- var value = /** @type {string} */ (reader.readString());
317
- msg.setDescription(value);
318
- break;
319
- case 2:
320
- var value = /** @type {string} */ (reader.readString());
321
- msg.setDetail(value);
322
- break;
323
- case 3:
324
- var value = /** @type {number} */ (reader.readFloat());
325
- msg.setPrQuantity(value);
326
- break;
327
- case 4:
328
- var value = /** @type {number} */ (reader.readFloat());
329
- msg.setRemainingQuantityPo(value);
330
- break;
331
- case 5:
332
- var value = /** @type {string} */ (reader.readString());
333
- msg.setReplacement(value);
334
- break;
335
- case 6:
336
- var value = /** @type {number} */ (reader.readFloat());
337
- msg.setQuantity(value);
338
- break;
339
- case 7:
340
- var value = /** @type {number} */ (reader.readFloat());
341
- msg.setPrice(value);
342
- break;
343
- case 8:
344
- var value = /** @type {string} */ (reader.readString());
345
- msg.setVendorReferencesId(value);
346
- break;
347
- case 9:
348
- var value = /** @type {string} */ (reader.readString());
349
- msg.setBiddingReferencesId(value);
350
- break;
351
- case 10:
352
- var value = /** @type {string} */ (reader.readString());
353
- msg.setTermOfPayment(value);
354
- break;
355
- case 11:
356
- var value = /** @type {string} */ (reader.readString());
357
- msg.setDeliveryDate(value);
358
- break;
359
- case 12:
360
- var value = /** @type {string} */ (reader.readString());
361
- msg.setDeliveryPoint(value);
362
- break;
363
- case 13:
364
- var value = /** @type {string} */ (reader.readString());
365
- msg.setVendorSource(value);
366
- break;
367
- case 14:
368
- var value = /** @type {boolean} */ (reader.readBool());
369
- msg.setSetWinner(value);
370
- break;
371
- case 15:
372
- var value = /** @type {string} */ (reader.readString());
373
- msg.setNotesForVendor(value);
374
- break;
375
- case 16:
376
- var value = /** @type {string} */ (reader.readString());
377
- msg.setTermOfCondition(value);
378
- break;
379
- case 17:
380
- var value = /** @type {string} */ (reader.readString());
381
- msg.setCustomTransaction(value);
382
- break;
383
- case 18:
384
- var value = /** @type {string} */ (reader.readString());
385
- msg.setPlant(value);
386
- break;
387
- case 19:
388
- var value = /** @type {string} */ (reader.readString());
389
- msg.setDepartment(value);
390
- break;
391
- case 20:
392
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
393
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
394
- msg.addItemTransactions(value);
395
- break;
396
- case 21:
397
- var value = /** @type {boolean} */ (reader.readBool());
398
- msg.setVisible(value);
399
- break;
400
- default:
401
- reader.skipField();
402
- break;
403
- }
404
- }
405
- return msg;
406
- };
407
-
408
-
409
- /**
410
- * Serializes the message to binary data (in protobuf wire format).
411
- * @return {!Uint8Array}
412
- */
413
- proto.BaseQuotationRequest.prototype.serializeBinary = function() {
414
- var writer = new jspb.BinaryWriter();
415
- proto.BaseQuotationRequest.serializeBinaryToWriter(this, writer);
416
- return writer.getResultBuffer();
417
- };
418
-
419
-
420
- /**
421
- * Serializes the given message to binary data (in protobuf wire
422
- * format), writing to the given BinaryWriter.
423
- * @param {!proto.BaseQuotationRequest} message
424
- * @param {!jspb.BinaryWriter} writer
425
- * @suppress {unusedLocalVariables} f is only used for nested messages
426
- */
427
- proto.BaseQuotationRequest.serializeBinaryToWriter = function(message, writer) {
428
- var f = undefined;
429
- f = message.getDescription();
430
- if (f.length > 0) {
431
- writer.writeString(
432
- 1,
433
- f
434
- );
435
- }
436
- f = message.getDetail();
437
- if (f.length > 0) {
438
- writer.writeString(
439
- 2,
440
- f
441
- );
442
- }
443
- f = message.getPrQuantity();
444
- if (f !== 0.0) {
445
- writer.writeFloat(
446
- 3,
447
- f
448
- );
449
- }
450
- f = message.getRemainingQuantityPo();
451
- if (f !== 0.0) {
452
- writer.writeFloat(
453
- 4,
454
- f
455
- );
456
- }
457
- f = message.getReplacement();
458
- if (f.length > 0) {
459
- writer.writeString(
460
- 5,
461
- f
462
- );
463
- }
464
- f = message.getQuantity();
465
- if (f !== 0.0) {
466
- writer.writeFloat(
467
- 6,
468
- f
469
- );
470
- }
471
- f = message.getPrice();
472
- if (f !== 0.0) {
473
- writer.writeFloat(
474
- 7,
475
- f
476
- );
477
- }
478
- f = message.getVendorReferencesId();
479
- if (f.length > 0) {
480
- writer.writeString(
481
- 8,
482
- f
483
- );
484
- }
485
- f = message.getBiddingReferencesId();
486
- if (f.length > 0) {
487
- writer.writeString(
488
- 9,
489
- f
490
- );
491
- }
492
- f = message.getTermOfPayment();
493
- if (f.length > 0) {
494
- writer.writeString(
495
- 10,
496
- f
497
- );
498
- }
499
- f = message.getDeliveryDate();
500
- if (f.length > 0) {
501
- writer.writeString(
502
- 11,
503
- f
504
- );
505
- }
506
- f = message.getDeliveryPoint();
507
- if (f.length > 0) {
508
- writer.writeString(
509
- 12,
510
- f
511
- );
512
- }
513
- f = message.getVendorSource();
514
- if (f.length > 0) {
515
- writer.writeString(
516
- 13,
517
- f
518
- );
519
- }
520
- f = message.getSetWinner();
521
- if (f) {
522
- writer.writeBool(
523
- 14,
524
- f
525
- );
526
- }
527
- f = message.getNotesForVendor();
528
- if (f.length > 0) {
529
- writer.writeString(
530
- 15,
531
- f
532
- );
533
- }
534
- f = message.getTermOfCondition();
535
- if (f.length > 0) {
536
- writer.writeString(
537
- 16,
538
- f
539
- );
540
- }
541
- f = message.getCustomTransaction();
542
- if (f.length > 0) {
543
- writer.writeString(
544
- 17,
545
- f
546
- );
547
- }
548
- f = message.getPlant();
549
- if (f.length > 0) {
550
- writer.writeString(
551
- 18,
552
- f
553
- );
554
- }
555
- f = message.getDepartment();
556
- if (f.length > 0) {
557
- writer.writeString(
558
- 19,
559
- f
560
- );
561
- }
562
- f = message.getItemTransactionsList();
563
- if (f.length > 0) {
564
- writer.writeRepeatedMessage(
565
- 20,
566
- f,
567
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
568
- );
569
- }
570
- f = message.getVisible();
571
- if (f) {
572
- writer.writeBool(
573
- 21,
574
- f
575
- );
576
- }
577
- };
578
-
579
-
580
- /**
581
- * optional string description = 1;
582
- * @return {string}
583
- */
584
- proto.BaseQuotationRequest.prototype.getDescription = function() {
585
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
586
- };
587
-
588
-
589
- /**
590
- * @param {string} value
591
- * @return {!proto.BaseQuotationRequest} returns this
592
- */
593
- proto.BaseQuotationRequest.prototype.setDescription = function(value) {
594
- return jspb.Message.setProto3StringField(this, 1, value);
595
- };
596
-
597
-
598
- /**
599
- * optional string detail = 2;
600
- * @return {string}
601
- */
602
- proto.BaseQuotationRequest.prototype.getDetail = function() {
603
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
604
- };
605
-
606
-
607
- /**
608
- * @param {string} value
609
- * @return {!proto.BaseQuotationRequest} returns this
610
- */
611
- proto.BaseQuotationRequest.prototype.setDetail = function(value) {
612
- return jspb.Message.setProto3StringField(this, 2, value);
613
- };
614
-
615
-
616
- /**
617
- * optional float pr_quantity = 3;
618
- * @return {number}
619
- */
620
- proto.BaseQuotationRequest.prototype.getPrQuantity = function() {
621
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
622
- };
623
-
624
-
625
- /**
626
- * @param {number} value
627
- * @return {!proto.BaseQuotationRequest} returns this
628
- */
629
- proto.BaseQuotationRequest.prototype.setPrQuantity = function(value) {
630
- return jspb.Message.setProto3FloatField(this, 3, value);
631
- };
632
-
633
-
634
- /**
635
- * optional float remaining_quantity_po = 4;
636
- * @return {number}
637
- */
638
- proto.BaseQuotationRequest.prototype.getRemainingQuantityPo = function() {
639
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
640
- };
641
-
642
-
643
- /**
644
- * @param {number} value
645
- * @return {!proto.BaseQuotationRequest} returns this
646
- */
647
- proto.BaseQuotationRequest.prototype.setRemainingQuantityPo = function(value) {
648
- return jspb.Message.setProto3FloatField(this, 4, value);
649
- };
650
-
651
-
652
- /**
653
- * optional string replacement = 5;
654
- * @return {string}
655
- */
656
- proto.BaseQuotationRequest.prototype.getReplacement = function() {
657
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
658
- };
659
-
660
-
661
- /**
662
- * @param {string} value
663
- * @return {!proto.BaseQuotationRequest} returns this
664
- */
665
- proto.BaseQuotationRequest.prototype.setReplacement = function(value) {
666
- return jspb.Message.setProto3StringField(this, 5, value);
667
- };
668
-
669
-
670
- /**
671
- * optional float quantity = 6;
672
- * @return {number}
673
- */
674
- proto.BaseQuotationRequest.prototype.getQuantity = function() {
675
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
676
- };
677
-
678
-
679
- /**
680
- * @param {number} value
681
- * @return {!proto.BaseQuotationRequest} returns this
682
- */
683
- proto.BaseQuotationRequest.prototype.setQuantity = function(value) {
684
- return jspb.Message.setProto3FloatField(this, 6, value);
685
- };
686
-
687
-
688
- /**
689
- * optional float price = 7;
690
- * @return {number}
691
- */
692
- proto.BaseQuotationRequest.prototype.getPrice = function() {
693
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
694
- };
695
-
696
-
697
- /**
698
- * @param {number} value
699
- * @return {!proto.BaseQuotationRequest} returns this
700
- */
701
- proto.BaseQuotationRequest.prototype.setPrice = function(value) {
702
- return jspb.Message.setProto3FloatField(this, 7, value);
703
- };
704
-
705
-
706
- /**
707
- * optional string vendor_references_id = 8;
708
- * @return {string}
709
- */
710
- proto.BaseQuotationRequest.prototype.getVendorReferencesId = function() {
711
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
712
- };
713
-
714
-
715
- /**
716
- * @param {string} value
717
- * @return {!proto.BaseQuotationRequest} returns this
718
- */
719
- proto.BaseQuotationRequest.prototype.setVendorReferencesId = function(value) {
720
- return jspb.Message.setProto3StringField(this, 8, value);
721
- };
722
-
723
-
724
- /**
725
- * optional string bidding_references_id = 9;
726
- * @return {string}
727
- */
728
- proto.BaseQuotationRequest.prototype.getBiddingReferencesId = function() {
729
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
730
- };
731
-
732
-
733
- /**
734
- * @param {string} value
735
- * @return {!proto.BaseQuotationRequest} returns this
736
- */
737
- proto.BaseQuotationRequest.prototype.setBiddingReferencesId = function(value) {
738
- return jspb.Message.setProto3StringField(this, 9, value);
739
- };
740
-
741
-
742
- /**
743
- * optional string term_of_payment = 10;
744
- * @return {string}
745
- */
746
- proto.BaseQuotationRequest.prototype.getTermOfPayment = function() {
747
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
748
- };
749
-
750
-
751
- /**
752
- * @param {string} value
753
- * @return {!proto.BaseQuotationRequest} returns this
754
- */
755
- proto.BaseQuotationRequest.prototype.setTermOfPayment = function(value) {
756
- return jspb.Message.setProto3StringField(this, 10, value);
757
- };
758
-
759
-
760
- /**
761
- * optional string delivery_date = 11;
762
- * @return {string}
763
- */
764
- proto.BaseQuotationRequest.prototype.getDeliveryDate = function() {
765
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
766
- };
767
-
768
-
769
- /**
770
- * @param {string} value
771
- * @return {!proto.BaseQuotationRequest} returns this
772
- */
773
- proto.BaseQuotationRequest.prototype.setDeliveryDate = function(value) {
774
- return jspb.Message.setProto3StringField(this, 11, value);
775
- };
776
-
777
-
778
- /**
779
- * optional string delivery_point = 12;
780
- * @return {string}
781
- */
782
- proto.BaseQuotationRequest.prototype.getDeliveryPoint = function() {
783
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
784
- };
785
-
786
-
787
- /**
788
- * @param {string} value
789
- * @return {!proto.BaseQuotationRequest} returns this
790
- */
791
- proto.BaseQuotationRequest.prototype.setDeliveryPoint = function(value) {
792
- return jspb.Message.setProto3StringField(this, 12, value);
793
- };
794
-
795
-
796
- /**
797
- * optional string vendor_source = 13;
798
- * @return {string}
799
- */
800
- proto.BaseQuotationRequest.prototype.getVendorSource = function() {
801
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
802
- };
803
-
804
-
805
- /**
806
- * @param {string} value
807
- * @return {!proto.BaseQuotationRequest} returns this
808
- */
809
- proto.BaseQuotationRequest.prototype.setVendorSource = function(value) {
810
- return jspb.Message.setProto3StringField(this, 13, value);
811
- };
812
-
813
-
814
- /**
815
- * optional bool set_winner = 14;
816
- * @return {boolean}
817
- */
818
- proto.BaseQuotationRequest.prototype.getSetWinner = function() {
819
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
820
- };
821
-
822
-
823
- /**
824
- * @param {boolean} value
825
- * @return {!proto.BaseQuotationRequest} returns this
826
- */
827
- proto.BaseQuotationRequest.prototype.setSetWinner = function(value) {
828
- return jspb.Message.setProto3BooleanField(this, 14, value);
829
- };
830
-
831
-
832
- /**
833
- * optional string notes_for_vendor = 15;
834
- * @return {string}
835
- */
836
- proto.BaseQuotationRequest.prototype.getNotesForVendor = function() {
837
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
838
- };
839
-
840
-
841
- /**
842
- * @param {string} value
843
- * @return {!proto.BaseQuotationRequest} returns this
844
- */
845
- proto.BaseQuotationRequest.prototype.setNotesForVendor = function(value) {
846
- return jspb.Message.setProto3StringField(this, 15, value);
847
- };
848
-
849
-
850
- /**
851
- * optional string term_of_condition = 16;
852
- * @return {string}
853
- */
854
- proto.BaseQuotationRequest.prototype.getTermOfCondition = function() {
855
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
856
- };
857
-
858
-
859
- /**
860
- * @param {string} value
861
- * @return {!proto.BaseQuotationRequest} returns this
862
- */
863
- proto.BaseQuotationRequest.prototype.setTermOfCondition = function(value) {
864
- return jspb.Message.setProto3StringField(this, 16, value);
865
- };
866
-
867
-
868
- /**
869
- * optional string custom_transaction = 17;
870
- * @return {string}
871
- */
872
- proto.BaseQuotationRequest.prototype.getCustomTransaction = function() {
873
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
874
- };
875
-
876
-
877
- /**
878
- * @param {string} value
879
- * @return {!proto.BaseQuotationRequest} returns this
880
- */
881
- proto.BaseQuotationRequest.prototype.setCustomTransaction = function(value) {
882
- return jspb.Message.setProto3StringField(this, 17, value);
883
- };
884
-
885
-
886
- /**
887
- * optional string plant = 18;
888
- * @return {string}
889
- */
890
- proto.BaseQuotationRequest.prototype.getPlant = function() {
891
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
892
- };
893
-
894
-
895
- /**
896
- * @param {string} value
897
- * @return {!proto.BaseQuotationRequest} returns this
898
- */
899
- proto.BaseQuotationRequest.prototype.setPlant = function(value) {
900
- return jspb.Message.setProto3StringField(this, 18, value);
901
- };
902
-
903
-
904
- /**
905
- * optional string department = 19;
906
- * @return {string}
907
- */
908
- proto.BaseQuotationRequest.prototype.getDepartment = function() {
909
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
910
- };
911
-
912
-
913
- /**
914
- * @param {string} value
915
- * @return {!proto.BaseQuotationRequest} returns this
916
- */
917
- proto.BaseQuotationRequest.prototype.setDepartment = function(value) {
918
- return jspb.Message.setProto3StringField(this, 19, value);
919
- };
920
-
921
-
922
- /**
923
- * repeated ItemTransaction item_transactions = 20;
924
- * @return {!Array<!proto.ItemTransaction>}
925
- */
926
- proto.BaseQuotationRequest.prototype.getItemTransactionsList = function() {
927
- return /** @type{!Array<!proto.ItemTransaction>} */ (
928
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 20));
929
- };
930
-
931
-
932
- /**
933
- * @param {!Array<!proto.ItemTransaction>} value
934
- * @return {!proto.BaseQuotationRequest} returns this
935
- */
936
- proto.BaseQuotationRequest.prototype.setItemTransactionsList = function(value) {
937
- return jspb.Message.setRepeatedWrapperField(this, 20, value);
938
- };
939
-
940
-
941
- /**
942
- * @param {!proto.ItemTransaction=} opt_value
943
- * @param {number=} opt_index
944
- * @return {!proto.ItemTransaction}
945
- */
946
- proto.BaseQuotationRequest.prototype.addItemTransactions = function(opt_value, opt_index) {
947
- return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.ItemTransaction, opt_index);
948
- };
949
-
950
-
951
- /**
952
- * Clears the list making it empty but non-null.
953
- * @return {!proto.BaseQuotationRequest} returns this
954
- */
955
- proto.BaseQuotationRequest.prototype.clearItemTransactionsList = function() {
956
- return this.setItemTransactionsList([]);
957
- };
958
-
959
-
960
- /**
961
- * optional bool visible = 21;
962
- * @return {boolean}
963
- */
964
- proto.BaseQuotationRequest.prototype.getVisible = function() {
965
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
966
- };
967
-
968
-
969
- /**
970
- * @param {boolean} value
971
- * @return {!proto.BaseQuotationRequest} returns this
972
- */
973
- proto.BaseQuotationRequest.prototype.setVisible = function(value) {
974
- return jspb.Message.setProto3BooleanField(this, 21, value);
975
- };
976
-
977
-
978
-
979
-
980
-
981
- if (jspb.Message.GENERATE_TO_OBJECT) {
982
- /**
983
- * Creates an object representation of this proto.
984
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
985
- * Optional fields that are not set will be set to undefined.
986
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
987
- * For the list of reserved names please see:
988
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
989
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
990
- * JSPB instance for transitional soy proto support:
991
- * http://goto/soy-param-migration
992
- * @return {!Object}
993
- */
994
- proto.GetQuotationByIdRequest.prototype.toObject = function(opt_includeInstance) {
995
- return proto.GetQuotationByIdRequest.toObject(opt_includeInstance, this);
996
- };
997
-
998
-
999
- /**
1000
- * Static version of the {@see toObject} method.
1001
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1002
- * the JSPB instance for transitional soy proto support:
1003
- * http://goto/soy-param-migration
1004
- * @param {!proto.GetQuotationByIdRequest} msg The msg instance to transform.
1005
- * @return {!Object}
1006
- * @suppress {unusedLocalVariables} f is only used for nested messages
1007
- */
1008
- proto.GetQuotationByIdRequest.toObject = function(includeInstance, msg) {
1009
- var f, obj = {
1010
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1011
- };
1012
-
1013
- if (includeInstance) {
1014
- obj.$jspbMessageInstance = msg;
1015
- }
1016
- return obj;
1017
- };
1018
- }
1019
-
1020
-
1021
- /**
1022
- * Deserializes binary data (in protobuf wire format).
1023
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1024
- * @return {!proto.GetQuotationByIdRequest}
1025
- */
1026
- proto.GetQuotationByIdRequest.deserializeBinary = function(bytes) {
1027
- var reader = new jspb.BinaryReader(bytes);
1028
- var msg = new proto.GetQuotationByIdRequest;
1029
- return proto.GetQuotationByIdRequest.deserializeBinaryFromReader(msg, reader);
1030
- };
1031
-
1032
-
1033
- /**
1034
- * Deserializes binary data (in protobuf wire format) from the
1035
- * given reader into the given message object.
1036
- * @param {!proto.GetQuotationByIdRequest} msg The message object to deserialize into.
1037
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1038
- * @return {!proto.GetQuotationByIdRequest}
1039
- */
1040
- proto.GetQuotationByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1041
- while (reader.nextField()) {
1042
- if (reader.isEndGroup()) {
1043
- break;
1044
- }
1045
- var field = reader.getFieldNumber();
1046
- switch (field) {
1047
- case 1:
1048
- var value = /** @type {string} */ (reader.readString());
1049
- msg.setReferencesId(value);
1050
- break;
1051
- default:
1052
- reader.skipField();
1053
- break;
1054
- }
1055
- }
1056
- return msg;
1057
- };
1058
-
1059
-
1060
- /**
1061
- * Serializes the message to binary data (in protobuf wire format).
1062
- * @return {!Uint8Array}
1063
- */
1064
- proto.GetQuotationByIdRequest.prototype.serializeBinary = function() {
1065
- var writer = new jspb.BinaryWriter();
1066
- proto.GetQuotationByIdRequest.serializeBinaryToWriter(this, writer);
1067
- return writer.getResultBuffer();
1068
- };
1069
-
1070
-
1071
- /**
1072
- * Serializes the given message to binary data (in protobuf wire
1073
- * format), writing to the given BinaryWriter.
1074
- * @param {!proto.GetQuotationByIdRequest} message
1075
- * @param {!jspb.BinaryWriter} writer
1076
- * @suppress {unusedLocalVariables} f is only used for nested messages
1077
- */
1078
- proto.GetQuotationByIdRequest.serializeBinaryToWriter = function(message, writer) {
1079
- var f = undefined;
1080
- f = message.getReferencesId();
1081
- if (f.length > 0) {
1082
- writer.writeString(
1083
- 1,
1084
- f
1085
- );
1086
- }
1087
- };
1088
-
1089
-
1090
- /**
1091
- * optional string references_id = 1;
1092
- * @return {string}
1093
- */
1094
- proto.GetQuotationByIdRequest.prototype.getReferencesId = function() {
1095
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1096
- };
1097
-
1098
-
1099
- /**
1100
- * @param {string} value
1101
- * @return {!proto.GetQuotationByIdRequest} returns this
1102
- */
1103
- proto.GetQuotationByIdRequest.prototype.setReferencesId = function(value) {
1104
- return jspb.Message.setProto3StringField(this, 1, value);
1105
- };
1106
-
1107
-
1108
-
1109
-
1110
-
1111
- if (jspb.Message.GENERATE_TO_OBJECT) {
1112
- /**
1113
- * Creates an object representation of this proto.
1114
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1115
- * Optional fields that are not set will be set to undefined.
1116
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1117
- * For the list of reserved names please see:
1118
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1119
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1120
- * JSPB instance for transitional soy proto support:
1121
- * http://goto/soy-param-migration
1122
- * @return {!Object}
1123
- */
1124
- proto.UpdateQuotationRequest.prototype.toObject = function(opt_includeInstance) {
1125
- return proto.UpdateQuotationRequest.toObject(opt_includeInstance, this);
1126
- };
1127
-
1128
-
1129
- /**
1130
- * Static version of the {@see toObject} method.
1131
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1132
- * the JSPB instance for transitional soy proto support:
1133
- * http://goto/soy-param-migration
1134
- * @param {!proto.UpdateQuotationRequest} msg The msg instance to transform.
1135
- * @return {!Object}
1136
- * @suppress {unusedLocalVariables} f is only used for nested messages
1137
- */
1138
- proto.UpdateQuotationRequest.toObject = function(includeInstance, msg) {
1139
- var f, obj = {
1140
- baseQuotation: (f = msg.getBaseQuotation()) && proto.BaseQuotationRequest.toObject(includeInstance, f),
1141
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
1142
- };
1143
-
1144
- if (includeInstance) {
1145
- obj.$jspbMessageInstance = msg;
1146
- }
1147
- return obj;
1148
- };
1149
- }
1150
-
1151
-
1152
- /**
1153
- * Deserializes binary data (in protobuf wire format).
1154
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1155
- * @return {!proto.UpdateQuotationRequest}
1156
- */
1157
- proto.UpdateQuotationRequest.deserializeBinary = function(bytes) {
1158
- var reader = new jspb.BinaryReader(bytes);
1159
- var msg = new proto.UpdateQuotationRequest;
1160
- return proto.UpdateQuotationRequest.deserializeBinaryFromReader(msg, reader);
1161
- };
1162
-
1163
-
1164
- /**
1165
- * Deserializes binary data (in protobuf wire format) from the
1166
- * given reader into the given message object.
1167
- * @param {!proto.UpdateQuotationRequest} msg The message object to deserialize into.
1168
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1169
- * @return {!proto.UpdateQuotationRequest}
1170
- */
1171
- proto.UpdateQuotationRequest.deserializeBinaryFromReader = function(msg, reader) {
1172
- while (reader.nextField()) {
1173
- if (reader.isEndGroup()) {
1174
- break;
1175
- }
1176
- var field = reader.getFieldNumber();
1177
- switch (field) {
1178
- case 1:
1179
- var value = new proto.BaseQuotationRequest;
1180
- reader.readMessage(value,proto.BaseQuotationRequest.deserializeBinaryFromReader);
1181
- msg.setBaseQuotation(value);
1182
- break;
1183
- case 2:
1184
- var value = /** @type {string} */ (reader.readString());
1185
- msg.setReferencesId(value);
1186
- break;
1187
- default:
1188
- reader.skipField();
1189
- break;
1190
- }
1191
- }
1192
- return msg;
1193
- };
1194
-
1195
-
1196
- /**
1197
- * Serializes the message to binary data (in protobuf wire format).
1198
- * @return {!Uint8Array}
1199
- */
1200
- proto.UpdateQuotationRequest.prototype.serializeBinary = function() {
1201
- var writer = new jspb.BinaryWriter();
1202
- proto.UpdateQuotationRequest.serializeBinaryToWriter(this, writer);
1203
- return writer.getResultBuffer();
1204
- };
1205
-
1206
-
1207
- /**
1208
- * Serializes the given message to binary data (in protobuf wire
1209
- * format), writing to the given BinaryWriter.
1210
- * @param {!proto.UpdateQuotationRequest} message
1211
- * @param {!jspb.BinaryWriter} writer
1212
- * @suppress {unusedLocalVariables} f is only used for nested messages
1213
- */
1214
- proto.UpdateQuotationRequest.serializeBinaryToWriter = function(message, writer) {
1215
- var f = undefined;
1216
- f = message.getBaseQuotation();
1217
- if (f != null) {
1218
- writer.writeMessage(
1219
- 1,
1220
- f,
1221
- proto.BaseQuotationRequest.serializeBinaryToWriter
1222
- );
1223
- }
1224
- f = message.getReferencesId();
1225
- if (f.length > 0) {
1226
- writer.writeString(
1227
- 2,
1228
- f
1229
- );
1230
- }
1231
- };
1232
-
1233
-
1234
- /**
1235
- * optional BaseQuotationRequest base_quotation = 1;
1236
- * @return {?proto.BaseQuotationRequest}
1237
- */
1238
- proto.UpdateQuotationRequest.prototype.getBaseQuotation = function() {
1239
- return /** @type{?proto.BaseQuotationRequest} */ (
1240
- jspb.Message.getWrapperField(this, proto.BaseQuotationRequest, 1));
1241
- };
1242
-
1243
-
1244
- /**
1245
- * @param {?proto.BaseQuotationRequest|undefined} value
1246
- * @return {!proto.UpdateQuotationRequest} returns this
1247
- */
1248
- proto.UpdateQuotationRequest.prototype.setBaseQuotation = function(value) {
1249
- return jspb.Message.setWrapperField(this, 1, value);
1250
- };
1251
-
1252
-
1253
- /**
1254
- * Clears the message field making it undefined.
1255
- * @return {!proto.UpdateQuotationRequest} returns this
1256
- */
1257
- proto.UpdateQuotationRequest.prototype.clearBaseQuotation = function() {
1258
- return this.setBaseQuotation(undefined);
1259
- };
1260
-
1261
-
1262
- /**
1263
- * Returns whether this field is set.
1264
- * @return {boolean}
1265
- */
1266
- proto.UpdateQuotationRequest.prototype.hasBaseQuotation = function() {
1267
- return jspb.Message.getField(this, 1) != null;
1268
- };
1269
-
1270
-
1271
- /**
1272
- * optional string references_id = 2;
1273
- * @return {string}
1274
- */
1275
- proto.UpdateQuotationRequest.prototype.getReferencesId = function() {
1276
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1277
- };
1278
-
1279
-
1280
- /**
1281
- * @param {string} value
1282
- * @return {!proto.UpdateQuotationRequest} returns this
1283
- */
1284
- proto.UpdateQuotationRequest.prototype.setReferencesId = function(value) {
1285
- return jspb.Message.setProto3StringField(this, 2, value);
1286
- };
1287
-
1288
-
1289
-
1290
-
1291
-
1292
- if (jspb.Message.GENERATE_TO_OBJECT) {
1293
- /**
1294
- * Creates an object representation of this proto.
1295
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1296
- * Optional fields that are not set will be set to undefined.
1297
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1298
- * For the list of reserved names please see:
1299
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1300
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1301
- * JSPB instance for transitional soy proto support:
1302
- * http://goto/soy-param-migration
1303
- * @return {!Object}
1304
- */
1305
- proto.GetListQuotationRequest.prototype.toObject = function(opt_includeInstance) {
1306
- return proto.GetListQuotationRequest.toObject(opt_includeInstance, this);
1307
- };
1308
-
1309
-
1310
- /**
1311
- * Static version of the {@see toObject} method.
1312
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1313
- * the JSPB instance for transitional soy proto support:
1314
- * http://goto/soy-param-migration
1315
- * @param {!proto.GetListQuotationRequest} msg The msg instance to transform.
1316
- * @return {!Object}
1317
- * @suppress {unusedLocalVariables} f is only used for nested messages
1318
- */
1319
- proto.GetListQuotationRequest.toObject = function(includeInstance, msg) {
1320
- var f, obj = {
1321
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1322
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1323
- };
1324
-
1325
- if (includeInstance) {
1326
- obj.$jspbMessageInstance = msg;
1327
- }
1328
- return obj;
1329
- };
1330
- }
1331
-
1332
-
1333
- /**
1334
- * Deserializes binary data (in protobuf wire format).
1335
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1336
- * @return {!proto.GetListQuotationRequest}
1337
- */
1338
- proto.GetListQuotationRequest.deserializeBinary = function(bytes) {
1339
- var reader = new jspb.BinaryReader(bytes);
1340
- var msg = new proto.GetListQuotationRequest;
1341
- return proto.GetListQuotationRequest.deserializeBinaryFromReader(msg, reader);
1342
- };
1343
-
1344
-
1345
- /**
1346
- * Deserializes binary data (in protobuf wire format) from the
1347
- * given reader into the given message object.
1348
- * @param {!proto.GetListQuotationRequest} msg The message object to deserialize into.
1349
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1350
- * @return {!proto.GetListQuotationRequest}
1351
- */
1352
- proto.GetListQuotationRequest.deserializeBinaryFromReader = function(msg, reader) {
1353
- while (reader.nextField()) {
1354
- if (reader.isEndGroup()) {
1355
- break;
1356
- }
1357
- var field = reader.getFieldNumber();
1358
- switch (field) {
1359
- case 1:
1360
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1361
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1362
- msg.setPagination(value);
1363
- break;
1364
- case 2:
1365
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1366
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1367
- msg.setQuery(value);
1368
- break;
1369
- default:
1370
- reader.skipField();
1371
- break;
1372
- }
1373
- }
1374
- return msg;
1375
- };
1376
-
1377
-
1378
- /**
1379
- * Serializes the message to binary data (in protobuf wire format).
1380
- * @return {!Uint8Array}
1381
- */
1382
- proto.GetListQuotationRequest.prototype.serializeBinary = function() {
1383
- var writer = new jspb.BinaryWriter();
1384
- proto.GetListQuotationRequest.serializeBinaryToWriter(this, writer);
1385
- return writer.getResultBuffer();
1386
- };
1387
-
1388
-
1389
- /**
1390
- * Serializes the given message to binary data (in protobuf wire
1391
- * format), writing to the given BinaryWriter.
1392
- * @param {!proto.GetListQuotationRequest} message
1393
- * @param {!jspb.BinaryWriter} writer
1394
- * @suppress {unusedLocalVariables} f is only used for nested messages
1395
- */
1396
- proto.GetListQuotationRequest.serializeBinaryToWriter = function(message, writer) {
1397
- var f = undefined;
1398
- f = message.getPagination();
1399
- if (f != null) {
1400
- writer.writeMessage(
1401
- 1,
1402
- f,
1403
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1404
- );
1405
- }
1406
- f = message.getQuery();
1407
- if (f != null) {
1408
- writer.writeMessage(
1409
- 2,
1410
- f,
1411
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1412
- );
1413
- }
1414
- };
1415
-
1416
-
1417
- /**
1418
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1419
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1420
- */
1421
- proto.GetListQuotationRequest.prototype.getPagination = function() {
1422
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1423
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1424
- };
1425
-
1426
-
1427
- /**
1428
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1429
- * @return {!proto.GetListQuotationRequest} returns this
1430
- */
1431
- proto.GetListQuotationRequest.prototype.setPagination = function(value) {
1432
- return jspb.Message.setWrapperField(this, 1, value);
1433
- };
1434
-
1435
-
1436
- /**
1437
- * Clears the message field making it undefined.
1438
- * @return {!proto.GetListQuotationRequest} returns this
1439
- */
1440
- proto.GetListQuotationRequest.prototype.clearPagination = function() {
1441
- return this.setPagination(undefined);
1442
- };
1443
-
1444
-
1445
- /**
1446
- * Returns whether this field is set.
1447
- * @return {boolean}
1448
- */
1449
- proto.GetListQuotationRequest.prototype.hasPagination = function() {
1450
- return jspb.Message.getField(this, 1) != null;
1451
- };
1452
-
1453
-
1454
- /**
1455
- * optional prisca.v1.global.meta.FilterRequest query = 2;
1456
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
1457
- */
1458
- proto.GetListQuotationRequest.prototype.getQuery = function() {
1459
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1460
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1461
- };
1462
-
1463
-
1464
- /**
1465
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1466
- * @return {!proto.GetListQuotationRequest} returns this
1467
- */
1468
- proto.GetListQuotationRequest.prototype.setQuery = function(value) {
1469
- return jspb.Message.setWrapperField(this, 2, value);
1470
- };
1471
-
1472
-
1473
- /**
1474
- * Clears the message field making it undefined.
1475
- * @return {!proto.GetListQuotationRequest} returns this
1476
- */
1477
- proto.GetListQuotationRequest.prototype.clearQuery = function() {
1478
- return this.setQuery(undefined);
1479
- };
1480
-
1481
-
1482
- /**
1483
- * Returns whether this field is set.
1484
- * @return {boolean}
1485
- */
1486
- proto.GetListQuotationRequest.prototype.hasQuery = function() {
1487
- return jspb.Message.getField(this, 2) != null;
1488
- };
1489
-
1490
-
1491
-
1492
-
1493
-
1494
- if (jspb.Message.GENERATE_TO_OBJECT) {
1495
- /**
1496
- * Creates an object representation of this proto.
1497
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1498
- * Optional fields that are not set will be set to undefined.
1499
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1500
- * For the list of reserved names please see:
1501
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1502
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1503
- * JSPB instance for transitional soy proto support:
1504
- * http://goto/soy-param-migration
1505
- * @return {!Object}
1506
- */
1507
- proto.GetQuotationByIdResponse.prototype.toObject = function(opt_includeInstance) {
1508
- return proto.GetQuotationByIdResponse.toObject(opt_includeInstance, this);
1509
- };
1510
-
1511
-
1512
- /**
1513
- * Static version of the {@see toObject} method.
1514
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1515
- * the JSPB instance for transitional soy proto support:
1516
- * http://goto/soy-param-migration
1517
- * @param {!proto.GetQuotationByIdResponse} msg The msg instance to transform.
1518
- * @return {!Object}
1519
- * @suppress {unusedLocalVariables} f is only used for nested messages
1520
- */
1521
- proto.GetQuotationByIdResponse.toObject = function(includeInstance, msg) {
1522
- var f, obj = {
1523
- quotation: (f = msg.getQuotation()) && prisca_v1_bidding_bidding_pb.Quotation.toObject(includeInstance, f),
1524
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1525
- };
1526
-
1527
- if (includeInstance) {
1528
- obj.$jspbMessageInstance = msg;
1529
- }
1530
- return obj;
1531
- };
1532
- }
1533
-
1534
-
1535
- /**
1536
- * Deserializes binary data (in protobuf wire format).
1537
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1538
- * @return {!proto.GetQuotationByIdResponse}
1539
- */
1540
- proto.GetQuotationByIdResponse.deserializeBinary = function(bytes) {
1541
- var reader = new jspb.BinaryReader(bytes);
1542
- var msg = new proto.GetQuotationByIdResponse;
1543
- return proto.GetQuotationByIdResponse.deserializeBinaryFromReader(msg, reader);
1544
- };
1545
-
1546
-
1547
- /**
1548
- * Deserializes binary data (in protobuf wire format) from the
1549
- * given reader into the given message object.
1550
- * @param {!proto.GetQuotationByIdResponse} msg The message object to deserialize into.
1551
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1552
- * @return {!proto.GetQuotationByIdResponse}
1553
- */
1554
- proto.GetQuotationByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
1555
- while (reader.nextField()) {
1556
- if (reader.isEndGroup()) {
1557
- break;
1558
- }
1559
- var field = reader.getFieldNumber();
1560
- switch (field) {
1561
- case 1:
1562
- var value = new prisca_v1_bidding_bidding_pb.Quotation;
1563
- reader.readMessage(value,prisca_v1_bidding_bidding_pb.Quotation.deserializeBinaryFromReader);
1564
- msg.setQuotation(value);
1565
- break;
1566
- case 2:
1567
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1568
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1569
- msg.setMeta(value);
1570
- break;
1571
- default:
1572
- reader.skipField();
1573
- break;
1574
- }
1575
- }
1576
- return msg;
1577
- };
1578
-
1579
-
1580
- /**
1581
- * Serializes the message to binary data (in protobuf wire format).
1582
- * @return {!Uint8Array}
1583
- */
1584
- proto.GetQuotationByIdResponse.prototype.serializeBinary = function() {
1585
- var writer = new jspb.BinaryWriter();
1586
- proto.GetQuotationByIdResponse.serializeBinaryToWriter(this, writer);
1587
- return writer.getResultBuffer();
1588
- };
1589
-
1590
-
1591
- /**
1592
- * Serializes the given message to binary data (in protobuf wire
1593
- * format), writing to the given BinaryWriter.
1594
- * @param {!proto.GetQuotationByIdResponse} message
1595
- * @param {!jspb.BinaryWriter} writer
1596
- * @suppress {unusedLocalVariables} f is only used for nested messages
1597
- */
1598
- proto.GetQuotationByIdResponse.serializeBinaryToWriter = function(message, writer) {
1599
- var f = undefined;
1600
- f = message.getQuotation();
1601
- if (f != null) {
1602
- writer.writeMessage(
1603
- 1,
1604
- f,
1605
- prisca_v1_bidding_bidding_pb.Quotation.serializeBinaryToWriter
1606
- );
1607
- }
1608
- f = message.getMeta();
1609
- if (f != null) {
1610
- writer.writeMessage(
1611
- 2,
1612
- f,
1613
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1614
- );
1615
- }
1616
- };
1617
-
1618
-
1619
- /**
1620
- * optional Quotation quotation = 1;
1621
- * @return {?proto.Quotation}
1622
- */
1623
- proto.GetQuotationByIdResponse.prototype.getQuotation = function() {
1624
- return /** @type{?proto.Quotation} */ (
1625
- jspb.Message.getWrapperField(this, prisca_v1_bidding_bidding_pb.Quotation, 1));
1626
- };
1627
-
1628
-
1629
- /**
1630
- * @param {?proto.Quotation|undefined} value
1631
- * @return {!proto.GetQuotationByIdResponse} returns this
1632
- */
1633
- proto.GetQuotationByIdResponse.prototype.setQuotation = function(value) {
1634
- return jspb.Message.setWrapperField(this, 1, value);
1635
- };
1636
-
1637
-
1638
- /**
1639
- * Clears the message field making it undefined.
1640
- * @return {!proto.GetQuotationByIdResponse} returns this
1641
- */
1642
- proto.GetQuotationByIdResponse.prototype.clearQuotation = function() {
1643
- return this.setQuotation(undefined);
1644
- };
1645
-
1646
-
1647
- /**
1648
- * Returns whether this field is set.
1649
- * @return {boolean}
1650
- */
1651
- proto.GetQuotationByIdResponse.prototype.hasQuotation = function() {
1652
- return jspb.Message.getField(this, 1) != null;
1653
- };
1654
-
1655
-
1656
- /**
1657
- * optional prisca.v1.global.meta.Meta meta = 2;
1658
- * @return {?proto.prisca.v1.global.meta.Meta}
1659
- */
1660
- proto.GetQuotationByIdResponse.prototype.getMeta = function() {
1661
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1662
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1663
- };
1664
-
1665
-
1666
- /**
1667
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1668
- * @return {!proto.GetQuotationByIdResponse} returns this
1669
- */
1670
- proto.GetQuotationByIdResponse.prototype.setMeta = function(value) {
1671
- return jspb.Message.setWrapperField(this, 2, value);
1672
- };
1673
-
1674
-
1675
- /**
1676
- * Clears the message field making it undefined.
1677
- * @return {!proto.GetQuotationByIdResponse} returns this
1678
- */
1679
- proto.GetQuotationByIdResponse.prototype.clearMeta = function() {
1680
- return this.setMeta(undefined);
1681
- };
1682
-
1683
-
1684
- /**
1685
- * Returns whether this field is set.
1686
- * @return {boolean}
1687
- */
1688
- proto.GetQuotationByIdResponse.prototype.hasMeta = function() {
1689
- return jspb.Message.getField(this, 2) != null;
1690
- };
1691
-
1692
-
1693
-
1694
- /**
1695
- * List of repeated fields within this message type.
1696
- * @private {!Array<number>}
1697
- * @const
1698
- */
1699
- proto.GetQuotationDetailResponse.repeatedFields_ = [1,2];
1700
-
1701
-
1702
-
1703
- if (jspb.Message.GENERATE_TO_OBJECT) {
1704
- /**
1705
- * Creates an object representation of this proto.
1706
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1707
- * Optional fields that are not set will be set to undefined.
1708
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1709
- * For the list of reserved names please see:
1710
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1711
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1712
- * JSPB instance for transitional soy proto support:
1713
- * http://goto/soy-param-migration
1714
- * @return {!Object}
1715
- */
1716
- proto.GetQuotationDetailResponse.prototype.toObject = function(opt_includeInstance) {
1717
- return proto.GetQuotationDetailResponse.toObject(opt_includeInstance, this);
1718
- };
1719
-
1720
-
1721
- /**
1722
- * Static version of the {@see toObject} method.
1723
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1724
- * the JSPB instance for transitional soy proto support:
1725
- * http://goto/soy-param-migration
1726
- * @param {!proto.GetQuotationDetailResponse} msg The msg instance to transform.
1727
- * @return {!Object}
1728
- * @suppress {unusedLocalVariables} f is only used for nested messages
1729
- */
1730
- proto.GetQuotationDetailResponse.toObject = function(includeInstance, msg) {
1731
- var f, obj = {
1732
- transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
1733
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
1734
- transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
1735
- prisca_v1_bidding_bidding_pb.GetQuotationItemPreload.toObject, includeInstance)
1736
- };
1737
-
1738
- if (includeInstance) {
1739
- obj.$jspbMessageInstance = msg;
1740
- }
1741
- return obj;
1742
- };
1743
- }
1744
-
1745
-
1746
- /**
1747
- * Deserializes binary data (in protobuf wire format).
1748
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1749
- * @return {!proto.GetQuotationDetailResponse}
1750
- */
1751
- proto.GetQuotationDetailResponse.deserializeBinary = function(bytes) {
1752
- var reader = new jspb.BinaryReader(bytes);
1753
- var msg = new proto.GetQuotationDetailResponse;
1754
- return proto.GetQuotationDetailResponse.deserializeBinaryFromReader(msg, reader);
1755
- };
1756
-
1757
-
1758
- /**
1759
- * Deserializes binary data (in protobuf wire format) from the
1760
- * given reader into the given message object.
1761
- * @param {!proto.GetQuotationDetailResponse} msg The message object to deserialize into.
1762
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1763
- * @return {!proto.GetQuotationDetailResponse}
1764
- */
1765
- proto.GetQuotationDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
1766
- while (reader.nextField()) {
1767
- if (reader.isEndGroup()) {
1768
- break;
1769
- }
1770
- var field = reader.getFieldNumber();
1771
- switch (field) {
1772
- case 1:
1773
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
1774
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
1775
- msg.addTransactionBuilder(value);
1776
- break;
1777
- case 2:
1778
- var value = new prisca_v1_bidding_bidding_pb.GetQuotationItemPreload;
1779
- reader.readMessage(value,prisca_v1_bidding_bidding_pb.GetQuotationItemPreload.deserializeBinaryFromReader);
1780
- msg.addTransactionBuilderItems(value);
1781
- break;
1782
- default:
1783
- reader.skipField();
1784
- break;
1785
- }
1786
- }
1787
- return msg;
1788
- };
1789
-
1790
-
1791
- /**
1792
- * Serializes the message to binary data (in protobuf wire format).
1793
- * @return {!Uint8Array}
1794
- */
1795
- proto.GetQuotationDetailResponse.prototype.serializeBinary = function() {
1796
- var writer = new jspb.BinaryWriter();
1797
- proto.GetQuotationDetailResponse.serializeBinaryToWriter(this, writer);
1798
- return writer.getResultBuffer();
1799
- };
1800
-
1801
-
1802
- /**
1803
- * Serializes the given message to binary data (in protobuf wire
1804
- * format), writing to the given BinaryWriter.
1805
- * @param {!proto.GetQuotationDetailResponse} message
1806
- * @param {!jspb.BinaryWriter} writer
1807
- * @suppress {unusedLocalVariables} f is only used for nested messages
1808
- */
1809
- proto.GetQuotationDetailResponse.serializeBinaryToWriter = function(message, writer) {
1810
- var f = undefined;
1811
- f = message.getTransactionBuilderList();
1812
- if (f.length > 0) {
1813
- writer.writeRepeatedMessage(
1814
- 1,
1815
- f,
1816
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
1817
- );
1818
- }
1819
- f = message.getTransactionBuilderItemsList();
1820
- if (f.length > 0) {
1821
- writer.writeRepeatedMessage(
1822
- 2,
1823
- f,
1824
- prisca_v1_bidding_bidding_pb.GetQuotationItemPreload.serializeBinaryToWriter
1825
- );
1826
- }
1827
- };
1828
-
1829
-
1830
- /**
1831
- * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
1832
- * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
1833
- */
1834
- proto.GetQuotationDetailResponse.prototype.getTransactionBuilderList = function() {
1835
- return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
1836
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
1837
- };
1838
-
1839
-
1840
- /**
1841
- * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
1842
- * @return {!proto.GetQuotationDetailResponse} returns this
1843
- */
1844
- proto.GetQuotationDetailResponse.prototype.setTransactionBuilderList = function(value) {
1845
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1846
- };
1847
-
1848
-
1849
- /**
1850
- * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
1851
- * @param {number=} opt_index
1852
- * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
1853
- */
1854
- proto.GetQuotationDetailResponse.prototype.addTransactionBuilder = function(opt_value, opt_index) {
1855
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
1856
- };
1857
-
1858
-
1859
- /**
1860
- * Clears the list making it empty but non-null.
1861
- * @return {!proto.GetQuotationDetailResponse} returns this
1862
- */
1863
- proto.GetQuotationDetailResponse.prototype.clearTransactionBuilderList = function() {
1864
- return this.setTransactionBuilderList([]);
1865
- };
1866
-
1867
-
1868
- /**
1869
- * repeated GetQuotationItemPreload transaction_builder_items = 2;
1870
- * @return {!Array<!proto.GetQuotationItemPreload>}
1871
- */
1872
- proto.GetQuotationDetailResponse.prototype.getTransactionBuilderItemsList = function() {
1873
- return /** @type{!Array<!proto.GetQuotationItemPreload>} */ (
1874
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_bidding_bidding_pb.GetQuotationItemPreload, 2));
1875
- };
1876
-
1877
-
1878
- /**
1879
- * @param {!Array<!proto.GetQuotationItemPreload>} value
1880
- * @return {!proto.GetQuotationDetailResponse} returns this
1881
- */
1882
- proto.GetQuotationDetailResponse.prototype.setTransactionBuilderItemsList = function(value) {
1883
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
1884
- };
1885
-
1886
-
1887
- /**
1888
- * @param {!proto.GetQuotationItemPreload=} opt_value
1889
- * @param {number=} opt_index
1890
- * @return {!proto.GetQuotationItemPreload}
1891
- */
1892
- proto.GetQuotationDetailResponse.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
1893
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetQuotationItemPreload, opt_index);
1894
- };
1895
-
1896
-
1897
- /**
1898
- * Clears the list making it empty but non-null.
1899
- * @return {!proto.GetQuotationDetailResponse} returns this
1900
- */
1901
- proto.GetQuotationDetailResponse.prototype.clearTransactionBuilderItemsList = function() {
1902
- return this.setTransactionBuilderItemsList([]);
1903
- };
1904
-
1905
-
1906
-
1907
- /**
1908
- * List of repeated fields within this message type.
1909
- * @private {!Array<number>}
1910
- * @const
1911
- */
1912
- proto.GetListQuotationResponse.repeatedFields_ = [1];
1913
-
1914
-
1915
-
1916
- if (jspb.Message.GENERATE_TO_OBJECT) {
1917
- /**
1918
- * Creates an object representation of this proto.
1919
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1920
- * Optional fields that are not set will be set to undefined.
1921
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1922
- * For the list of reserved names please see:
1923
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1924
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1925
- * JSPB instance for transitional soy proto support:
1926
- * http://goto/soy-param-migration
1927
- * @return {!Object}
1928
- */
1929
- proto.GetListQuotationResponse.prototype.toObject = function(opt_includeInstance) {
1930
- return proto.GetListQuotationResponse.toObject(opt_includeInstance, this);
1931
- };
1932
-
1933
-
1934
- /**
1935
- * Static version of the {@see toObject} method.
1936
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1937
- * the JSPB instance for transitional soy proto support:
1938
- * http://goto/soy-param-migration
1939
- * @param {!proto.GetListQuotationResponse} msg The msg instance to transform.
1940
- * @return {!Object}
1941
- * @suppress {unusedLocalVariables} f is only used for nested messages
1942
- */
1943
- proto.GetListQuotationResponse.toObject = function(includeInstance, msg) {
1944
- var f, obj = {
1945
- quotationsList: jspb.Message.toObjectList(msg.getQuotationsList(),
1946
- prisca_v1_bidding_bidding_pb.Quotation.toObject, includeInstance),
1947
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1948
- };
1949
-
1950
- if (includeInstance) {
1951
- obj.$jspbMessageInstance = msg;
1952
- }
1953
- return obj;
1954
- };
1955
- }
1956
-
1957
-
1958
- /**
1959
- * Deserializes binary data (in protobuf wire format).
1960
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1961
- * @return {!proto.GetListQuotationResponse}
1962
- */
1963
- proto.GetListQuotationResponse.deserializeBinary = function(bytes) {
1964
- var reader = new jspb.BinaryReader(bytes);
1965
- var msg = new proto.GetListQuotationResponse;
1966
- return proto.GetListQuotationResponse.deserializeBinaryFromReader(msg, reader);
1967
- };
1968
-
1969
-
1970
- /**
1971
- * Deserializes binary data (in protobuf wire format) from the
1972
- * given reader into the given message object.
1973
- * @param {!proto.GetListQuotationResponse} msg The message object to deserialize into.
1974
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1975
- * @return {!proto.GetListQuotationResponse}
1976
- */
1977
- proto.GetListQuotationResponse.deserializeBinaryFromReader = function(msg, reader) {
1978
- while (reader.nextField()) {
1979
- if (reader.isEndGroup()) {
1980
- break;
1981
- }
1982
- var field = reader.getFieldNumber();
1983
- switch (field) {
1984
- case 1:
1985
- var value = new prisca_v1_bidding_bidding_pb.Quotation;
1986
- reader.readMessage(value,prisca_v1_bidding_bidding_pb.Quotation.deserializeBinaryFromReader);
1987
- msg.addQuotations(value);
1988
- break;
1989
- case 2:
1990
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1991
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1992
- msg.setMeta(value);
1993
- break;
1994
- default:
1995
- reader.skipField();
1996
- break;
1997
- }
1998
- }
1999
- return msg;
2000
- };
2001
-
2002
-
2003
- /**
2004
- * Serializes the message to binary data (in protobuf wire format).
2005
- * @return {!Uint8Array}
2006
- */
2007
- proto.GetListQuotationResponse.prototype.serializeBinary = function() {
2008
- var writer = new jspb.BinaryWriter();
2009
- proto.GetListQuotationResponse.serializeBinaryToWriter(this, writer);
2010
- return writer.getResultBuffer();
2011
- };
2012
-
2013
-
2014
- /**
2015
- * Serializes the given message to binary data (in protobuf wire
2016
- * format), writing to the given BinaryWriter.
2017
- * @param {!proto.GetListQuotationResponse} message
2018
- * @param {!jspb.BinaryWriter} writer
2019
- * @suppress {unusedLocalVariables} f is only used for nested messages
2020
- */
2021
- proto.GetListQuotationResponse.serializeBinaryToWriter = function(message, writer) {
2022
- var f = undefined;
2023
- f = message.getQuotationsList();
2024
- if (f.length > 0) {
2025
- writer.writeRepeatedMessage(
2026
- 1,
2027
- f,
2028
- prisca_v1_bidding_bidding_pb.Quotation.serializeBinaryToWriter
2029
- );
2030
- }
2031
- f = message.getMeta();
2032
- if (f != null) {
2033
- writer.writeMessage(
2034
- 2,
2035
- f,
2036
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2037
- );
2038
- }
2039
- };
2040
-
2041
-
2042
- /**
2043
- * repeated Quotation quotations = 1;
2044
- * @return {!Array<!proto.Quotation>}
2045
- */
2046
- proto.GetListQuotationResponse.prototype.getQuotationsList = function() {
2047
- return /** @type{!Array<!proto.Quotation>} */ (
2048
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_bidding_bidding_pb.Quotation, 1));
2049
- };
2050
-
2051
-
2052
- /**
2053
- * @param {!Array<!proto.Quotation>} value
2054
- * @return {!proto.GetListQuotationResponse} returns this
2055
- */
2056
- proto.GetListQuotationResponse.prototype.setQuotationsList = function(value) {
2057
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2058
- };
2059
-
2060
-
2061
- /**
2062
- * @param {!proto.Quotation=} opt_value
2063
- * @param {number=} opt_index
2064
- * @return {!proto.Quotation}
2065
- */
2066
- proto.GetListQuotationResponse.prototype.addQuotations = function(opt_value, opt_index) {
2067
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Quotation, opt_index);
2068
- };
2069
-
2070
-
2071
- /**
2072
- * Clears the list making it empty but non-null.
2073
- * @return {!proto.GetListQuotationResponse} returns this
2074
- */
2075
- proto.GetListQuotationResponse.prototype.clearQuotationsList = function() {
2076
- return this.setQuotationsList([]);
2077
- };
2078
-
2079
-
2080
- /**
2081
- * optional prisca.v1.global.meta.Meta meta = 2;
2082
- * @return {?proto.prisca.v1.global.meta.Meta}
2083
- */
2084
- proto.GetListQuotationResponse.prototype.getMeta = function() {
2085
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2086
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2087
- };
2088
-
2089
-
2090
- /**
2091
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2092
- * @return {!proto.GetListQuotationResponse} returns this
2093
- */
2094
- proto.GetListQuotationResponse.prototype.setMeta = function(value) {
2095
- return jspb.Message.setWrapperField(this, 2, value);
2096
- };
2097
-
2098
-
2099
- /**
2100
- * Clears the message field making it undefined.
2101
- * @return {!proto.GetListQuotationResponse} returns this
2102
- */
2103
- proto.GetListQuotationResponse.prototype.clearMeta = function() {
2104
- return this.setMeta(undefined);
2105
- };
2106
-
2107
-
2108
- /**
2109
- * Returns whether this field is set.
2110
- * @return {boolean}
2111
- */
2112
- proto.GetListQuotationResponse.prototype.hasMeta = function() {
2113
- return jspb.Message.getField(this, 2) != null;
2114
- };
2115
-
2116
-
2117
-
2118
-
2119
-
2120
- if (jspb.Message.GENERATE_TO_OBJECT) {
2121
- /**
2122
- * Creates an object representation of this proto.
2123
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2124
- * Optional fields that are not set will be set to undefined.
2125
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2126
- * For the list of reserved names please see:
2127
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2128
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2129
- * JSPB instance for transitional soy proto support:
2130
- * http://goto/soy-param-migration
2131
- * @return {!Object}
2132
- */
2133
- proto.UpdateQuotationResponse.prototype.toObject = function(opt_includeInstance) {
2134
- return proto.UpdateQuotationResponse.toObject(opt_includeInstance, this);
2135
- };
2136
-
2137
-
2138
- /**
2139
- * Static version of the {@see toObject} method.
2140
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2141
- * the JSPB instance for transitional soy proto support:
2142
- * http://goto/soy-param-migration
2143
- * @param {!proto.UpdateQuotationResponse} msg The msg instance to transform.
2144
- * @return {!Object}
2145
- * @suppress {unusedLocalVariables} f is only used for nested messages
2146
- */
2147
- proto.UpdateQuotationResponse.toObject = function(includeInstance, msg) {
2148
- var f, obj = {
2149
- quotation: (f = msg.getQuotation()) && prisca_v1_bidding_bidding_pb.Quotation.toObject(includeInstance, f),
2150
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2151
- };
2152
-
2153
- if (includeInstance) {
2154
- obj.$jspbMessageInstance = msg;
2155
- }
2156
- return obj;
2157
- };
2158
- }
2159
-
2160
-
2161
- /**
2162
- * Deserializes binary data (in protobuf wire format).
2163
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2164
- * @return {!proto.UpdateQuotationResponse}
2165
- */
2166
- proto.UpdateQuotationResponse.deserializeBinary = function(bytes) {
2167
- var reader = new jspb.BinaryReader(bytes);
2168
- var msg = new proto.UpdateQuotationResponse;
2169
- return proto.UpdateQuotationResponse.deserializeBinaryFromReader(msg, reader);
2170
- };
2171
-
2172
-
2173
- /**
2174
- * Deserializes binary data (in protobuf wire format) from the
2175
- * given reader into the given message object.
2176
- * @param {!proto.UpdateQuotationResponse} msg The message object to deserialize into.
2177
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2178
- * @return {!proto.UpdateQuotationResponse}
2179
- */
2180
- proto.UpdateQuotationResponse.deserializeBinaryFromReader = function(msg, reader) {
2181
- while (reader.nextField()) {
2182
- if (reader.isEndGroup()) {
2183
- break;
2184
- }
2185
- var field = reader.getFieldNumber();
2186
- switch (field) {
2187
- case 1:
2188
- var value = new prisca_v1_bidding_bidding_pb.Quotation;
2189
- reader.readMessage(value,prisca_v1_bidding_bidding_pb.Quotation.deserializeBinaryFromReader);
2190
- msg.setQuotation(value);
2191
- break;
2192
- case 2:
2193
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2194
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2195
- msg.setMeta(value);
2196
- break;
2197
- default:
2198
- reader.skipField();
2199
- break;
2200
- }
2201
- }
2202
- return msg;
2203
- };
2204
-
2205
-
2206
- /**
2207
- * Serializes the message to binary data (in protobuf wire format).
2208
- * @return {!Uint8Array}
2209
- */
2210
- proto.UpdateQuotationResponse.prototype.serializeBinary = function() {
2211
- var writer = new jspb.BinaryWriter();
2212
- proto.UpdateQuotationResponse.serializeBinaryToWriter(this, writer);
2213
- return writer.getResultBuffer();
2214
- };
2215
-
2216
-
2217
- /**
2218
- * Serializes the given message to binary data (in protobuf wire
2219
- * format), writing to the given BinaryWriter.
2220
- * @param {!proto.UpdateQuotationResponse} message
2221
- * @param {!jspb.BinaryWriter} writer
2222
- * @suppress {unusedLocalVariables} f is only used for nested messages
2223
- */
2224
- proto.UpdateQuotationResponse.serializeBinaryToWriter = function(message, writer) {
2225
- var f = undefined;
2226
- f = message.getQuotation();
2227
- if (f != null) {
2228
- writer.writeMessage(
2229
- 1,
2230
- f,
2231
- prisca_v1_bidding_bidding_pb.Quotation.serializeBinaryToWriter
2232
- );
2233
- }
2234
- f = message.getMeta();
2235
- if (f != null) {
2236
- writer.writeMessage(
2237
- 2,
2238
- f,
2239
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2240
- );
2241
- }
2242
- };
2243
-
2244
-
2245
- /**
2246
- * optional Quotation quotation = 1;
2247
- * @return {?proto.Quotation}
2248
- */
2249
- proto.UpdateQuotationResponse.prototype.getQuotation = function() {
2250
- return /** @type{?proto.Quotation} */ (
2251
- jspb.Message.getWrapperField(this, prisca_v1_bidding_bidding_pb.Quotation, 1));
2252
- };
2253
-
2254
-
2255
- /**
2256
- * @param {?proto.Quotation|undefined} value
2257
- * @return {!proto.UpdateQuotationResponse} returns this
2258
- */
2259
- proto.UpdateQuotationResponse.prototype.setQuotation = function(value) {
2260
- return jspb.Message.setWrapperField(this, 1, value);
2261
- };
2262
-
2263
-
2264
- /**
2265
- * Clears the message field making it undefined.
2266
- * @return {!proto.UpdateQuotationResponse} returns this
2267
- */
2268
- proto.UpdateQuotationResponse.prototype.clearQuotation = function() {
2269
- return this.setQuotation(undefined);
2270
- };
2271
-
2272
-
2273
- /**
2274
- * Returns whether this field is set.
2275
- * @return {boolean}
2276
- */
2277
- proto.UpdateQuotationResponse.prototype.hasQuotation = function() {
2278
- return jspb.Message.getField(this, 1) != null;
2279
- };
2280
-
2281
-
2282
- /**
2283
- * optional prisca.v1.global.meta.Meta meta = 2;
2284
- * @return {?proto.prisca.v1.global.meta.Meta}
2285
- */
2286
- proto.UpdateQuotationResponse.prototype.getMeta = function() {
2287
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2288
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2289
- };
2290
-
2291
-
2292
- /**
2293
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2294
- * @return {!proto.UpdateQuotationResponse} returns this
2295
- */
2296
- proto.UpdateQuotationResponse.prototype.setMeta = function(value) {
2297
- return jspb.Message.setWrapperField(this, 2, value);
2298
- };
2299
-
2300
-
2301
- /**
2302
- * Clears the message field making it undefined.
2303
- * @return {!proto.UpdateQuotationResponse} returns this
2304
- */
2305
- proto.UpdateQuotationResponse.prototype.clearMeta = function() {
2306
- return this.setMeta(undefined);
2307
- };
2308
-
2309
-
2310
- /**
2311
- * Returns whether this field is set.
2312
- * @return {boolean}
2313
- */
2314
- proto.UpdateQuotationResponse.prototype.hasMeta = function() {
2315
- return jspb.Message.getField(this, 2) != null;
2316
- };
2317
-
2318
-
2319
- goog.object.extend(exports, proto);