@aldiokta/protocgen 1.1.23 → 1.1.24

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 (169) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2726 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2989 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +294 -0
  7. package/prisca/v1/bidding/bidding_pb.js +7488 -0
  8. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
  9. package/prisca/v1/chart_of_account/chart_of_account_pb.js +2959 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -0
  14. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
  15. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3100 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  20. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  21. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4335 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +1052 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +177 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2904 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
  29. package/prisca/v1/core/item_transaction/item_transaction_pb.js +4270 -0
  30. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  31. package/prisca/v1/core/job_grade/job_grade_pb.js +2657 -0
  32. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  33. package/prisca/v1/core/job_position/job_position_pb.js +3814 -0
  34. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  35. package/prisca/v1/core/job_title/job_title_pb.js +3010 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +78 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +2087 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3251 -0
  40. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  41. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4232 -0
  46. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  47. package/prisca/v1/core/material_group/material_group_pb.js +2828 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +182 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +3104 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2978 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3084 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2597 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +179 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +3061 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2784 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +177 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2512 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2850 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +78 -0
  79. package/prisca/v1/core/users/users_pb.js +1653 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +4024 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7577 -0
  84. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
  85. package/prisca/v1/delivery_order/delivery_order_pb.js +4661 -0
  86. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  87. package/prisca/v1/document_type/document_type_pb.js +2798 -0
  88. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  89. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3328 -0
  90. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  91. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  92. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
  93. package/prisca/v1/good_receipt/good_receipt_pb.js +35 -0
  94. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  95. package/prisca/v1/purchase_order/purchase_order_pb.js +5049 -0
  96. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +523 -0
  97. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  98. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  99. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2927 -0
  100. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +178 -0
  101. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2546 -0
  102. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +179 -0
  103. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2590 -0
  104. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  105. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  106. package/prisca/v1/quotation/quotation_grpc_pb.js +207 -0
  107. package/prisca/v1/quotation/quotation_pb.js +3582 -0
  108. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +193 -0
  109. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5961 -0
  110. package/prisca/v1/valuation/valuation_grpc_pb.js +366 -0
  111. package/prisca/v1/valuation/valuation_pb.js +7812 -0
  112. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  113. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6363 -0
  114. package/prisca/v1/account_assignment/account_assignment.proto +0 -81
  115. package/prisca/v1/account_group/account_group.proto +0 -88
  116. package/prisca/v1/bidding/bidding.proto +0 -221
  117. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -89
  118. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  119. package/prisca/v1/core/auth/auth.proto +0 -150
  120. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  121. package/prisca/v1/core/company/company.proto +0 -92
  122. package/prisca/v1/core/currency/currency.proto +0 -76
  123. package/prisca/v1/core/department_material/department_material.proto +0 -69
  124. package/prisca/v1/core/employee/employee.proto +0 -129
  125. package/prisca/v1/core/file_upload/file_upload.proto +0 -37
  126. package/prisca/v1/core/incoterm/incoterm.proto +0 -85
  127. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -134
  128. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  129. package/prisca/v1/core/job_position/job_position.proto +0 -113
  130. package/prisca/v1/core/job_title/job_title.proto +0 -89
  131. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -66
  132. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -96
  133. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  134. package/prisca/v1/core/location/location.proto +0 -289
  135. package/prisca/v1/core/material/material.proto +0 -131
  136. package/prisca/v1/core/material_group/material_group.proto +0 -85
  137. package/prisca/v1/core/material_type/material_type.proto +0 -95
  138. package/prisca/v1/core/messaging/email_template.proto +0 -75
  139. package/prisca/v1/core/messaging/messaging.proto +0 -29
  140. package/prisca/v1/core/number_range/number_range.proto +0 -89
  141. package/prisca/v1/core/organization/organization.proto +0 -94
  142. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  143. package/prisca/v1/core/price_condition/price_condition.proto +0 -93
  144. package/prisca/v1/core/procurement/procurement.proto +0 -54
  145. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  146. package/prisca/v1/core/report/report.proto +0 -90
  147. package/prisca/v1/core/report/user_report.proto +0 -74
  148. package/prisca/v1/core/tax_code/tax_code.proto +0 -82
  149. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -74
  150. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  151. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  152. package/prisca/v1/core/users/users.proto +0 -55
  153. package/prisca/v1/core/work_location/work_location.proto +0 -122
  154. package/prisca/v1/core/workflow/workflow.proto +0 -218
  155. package/prisca/v1/delivery_order/delivery_order.proto +0 -147
  156. package/prisca/v1/document_type/document_type.proto +0 -82
  157. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -100
  158. package/prisca/v1/global/meta/meta.proto +0 -57
  159. package/prisca/v1/good_receipt/good_receipt.proto +0 -11
  160. package/prisca/v1/purchase_order/purchase_order.proto +0 -157
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -306
  162. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -89
  163. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -79
  164. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -81
  165. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  166. package/prisca/v1/quotation/quotation.proto +0 -118
  167. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -174
  168. package/prisca/v1/valuation/valuation.proto +0 -223
  169. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -226
@@ -0,0 +1,3061 @@
1
+ // source: prisca/v1/core/price_condition/price_condition.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_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_company_company_pb);
28
+ var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
29
+ goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
30
+ goog.exportSymbol('proto.BasePriceCondition', null, global);
31
+ goog.exportSymbol('proto.CreatePriceConditionRequest', null, global);
32
+ goog.exportSymbol('proto.CreatePriceConditionResponse', null, global);
33
+ goog.exportSymbol('proto.DeletePriceConditionReq', null, global);
34
+ goog.exportSymbol('proto.DeletePriceConditionRes', null, global);
35
+ goog.exportSymbol('proto.GetByIdPriceConditionRequest', null, global);
36
+ goog.exportSymbol('proto.GetByIdPriceConditionResponse', null, global);
37
+ goog.exportSymbol('proto.GetListPriceConditionRequest', null, global);
38
+ goog.exportSymbol('proto.GetListPriceConditionResponse', null, global);
39
+ goog.exportSymbol('proto.PriceCondition', null, global);
40
+ goog.exportSymbol('proto.UpdatePriceConditionRequest', null, global);
41
+ goog.exportSymbol('proto.UpdatePriceConditionResponse', null, global);
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.PriceCondition = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
+ };
55
+ goog.inherits(proto.PriceCondition, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.PriceCondition.displayName = 'proto.PriceCondition';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.BasePriceCondition = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.BasePriceCondition, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.BasePriceCondition.displayName = 'proto.BasePriceCondition';
83
+ }
84
+ /**
85
+ * Generated by JsPbCodeGenerator.
86
+ * @param {Array=} opt_data Optional initial data array, typically from a
87
+ * server response, or constructed directly in Javascript. The array is used
88
+ * in place and becomes part of the constructed object. It is not cloned.
89
+ * If no data is provided, the constructed object will be empty, but still
90
+ * valid.
91
+ * @extends {jspb.Message}
92
+ * @constructor
93
+ */
94
+ proto.GetByIdPriceConditionRequest = function(opt_data) {
95
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
96
+ };
97
+ goog.inherits(proto.GetByIdPriceConditionRequest, jspb.Message);
98
+ if (goog.DEBUG && !COMPILED) {
99
+ /**
100
+ * @public
101
+ * @override
102
+ */
103
+ proto.GetByIdPriceConditionRequest.displayName = 'proto.GetByIdPriceConditionRequest';
104
+ }
105
+ /**
106
+ * Generated by JsPbCodeGenerator.
107
+ * @param {Array=} opt_data Optional initial data array, typically from a
108
+ * server response, or constructed directly in Javascript. The array is used
109
+ * in place and becomes part of the constructed object. It is not cloned.
110
+ * If no data is provided, the constructed object will be empty, but still
111
+ * valid.
112
+ * @extends {jspb.Message}
113
+ * @constructor
114
+ */
115
+ proto.CreatePriceConditionRequest = function(opt_data) {
116
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
117
+ };
118
+ goog.inherits(proto.CreatePriceConditionRequest, jspb.Message);
119
+ if (goog.DEBUG && !COMPILED) {
120
+ /**
121
+ * @public
122
+ * @override
123
+ */
124
+ proto.CreatePriceConditionRequest.displayName = 'proto.CreatePriceConditionRequest';
125
+ }
126
+ /**
127
+ * Generated by JsPbCodeGenerator.
128
+ * @param {Array=} opt_data Optional initial data array, typically from a
129
+ * server response, or constructed directly in Javascript. The array is used
130
+ * in place and becomes part of the constructed object. It is not cloned.
131
+ * If no data is provided, the constructed object will be empty, but still
132
+ * valid.
133
+ * @extends {jspb.Message}
134
+ * @constructor
135
+ */
136
+ proto.UpdatePriceConditionRequest = function(opt_data) {
137
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
138
+ };
139
+ goog.inherits(proto.UpdatePriceConditionRequest, jspb.Message);
140
+ if (goog.DEBUG && !COMPILED) {
141
+ /**
142
+ * @public
143
+ * @override
144
+ */
145
+ proto.UpdatePriceConditionRequest.displayName = 'proto.UpdatePriceConditionRequest';
146
+ }
147
+ /**
148
+ * Generated by JsPbCodeGenerator.
149
+ * @param {Array=} opt_data Optional initial data array, typically from a
150
+ * server response, or constructed directly in Javascript. The array is used
151
+ * in place and becomes part of the constructed object. It is not cloned.
152
+ * If no data is provided, the constructed object will be empty, but still
153
+ * valid.
154
+ * @extends {jspb.Message}
155
+ * @constructor
156
+ */
157
+ proto.GetListPriceConditionRequest = function(opt_data) {
158
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
159
+ };
160
+ goog.inherits(proto.GetListPriceConditionRequest, jspb.Message);
161
+ if (goog.DEBUG && !COMPILED) {
162
+ /**
163
+ * @public
164
+ * @override
165
+ */
166
+ proto.GetListPriceConditionRequest.displayName = 'proto.GetListPriceConditionRequest';
167
+ }
168
+ /**
169
+ * Generated by JsPbCodeGenerator.
170
+ * @param {Array=} opt_data Optional initial data array, typically from a
171
+ * server response, or constructed directly in Javascript. The array is used
172
+ * in place and becomes part of the constructed object. It is not cloned.
173
+ * If no data is provided, the constructed object will be empty, but still
174
+ * valid.
175
+ * @extends {jspb.Message}
176
+ * @constructor
177
+ */
178
+ proto.DeletePriceConditionReq = function(opt_data) {
179
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePriceConditionReq.repeatedFields_, null);
180
+ };
181
+ goog.inherits(proto.DeletePriceConditionReq, jspb.Message);
182
+ if (goog.DEBUG && !COMPILED) {
183
+ /**
184
+ * @public
185
+ * @override
186
+ */
187
+ proto.DeletePriceConditionReq.displayName = 'proto.DeletePriceConditionReq';
188
+ }
189
+ /**
190
+ * Generated by JsPbCodeGenerator.
191
+ * @param {Array=} opt_data Optional initial data array, typically from a
192
+ * server response, or constructed directly in Javascript. The array is used
193
+ * in place and becomes part of the constructed object. It is not cloned.
194
+ * If no data is provided, the constructed object will be empty, but still
195
+ * valid.
196
+ * @extends {jspb.Message}
197
+ * @constructor
198
+ */
199
+ proto.CreatePriceConditionResponse = function(opt_data) {
200
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
201
+ };
202
+ goog.inherits(proto.CreatePriceConditionResponse, jspb.Message);
203
+ if (goog.DEBUG && !COMPILED) {
204
+ /**
205
+ * @public
206
+ * @override
207
+ */
208
+ proto.CreatePriceConditionResponse.displayName = 'proto.CreatePriceConditionResponse';
209
+ }
210
+ /**
211
+ * Generated by JsPbCodeGenerator.
212
+ * @param {Array=} opt_data Optional initial data array, typically from a
213
+ * server response, or constructed directly in Javascript. The array is used
214
+ * in place and becomes part of the constructed object. It is not cloned.
215
+ * If no data is provided, the constructed object will be empty, but still
216
+ * valid.
217
+ * @extends {jspb.Message}
218
+ * @constructor
219
+ */
220
+ proto.GetListPriceConditionResponse = function(opt_data) {
221
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListPriceConditionResponse.repeatedFields_, null);
222
+ };
223
+ goog.inherits(proto.GetListPriceConditionResponse, jspb.Message);
224
+ if (goog.DEBUG && !COMPILED) {
225
+ /**
226
+ * @public
227
+ * @override
228
+ */
229
+ proto.GetListPriceConditionResponse.displayName = 'proto.GetListPriceConditionResponse';
230
+ }
231
+ /**
232
+ * Generated by JsPbCodeGenerator.
233
+ * @param {Array=} opt_data Optional initial data array, typically from a
234
+ * server response, or constructed directly in Javascript. The array is used
235
+ * in place and becomes part of the constructed object. It is not cloned.
236
+ * If no data is provided, the constructed object will be empty, but still
237
+ * valid.
238
+ * @extends {jspb.Message}
239
+ * @constructor
240
+ */
241
+ proto.UpdatePriceConditionResponse = function(opt_data) {
242
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
243
+ };
244
+ goog.inherits(proto.UpdatePriceConditionResponse, jspb.Message);
245
+ if (goog.DEBUG && !COMPILED) {
246
+ /**
247
+ * @public
248
+ * @override
249
+ */
250
+ proto.UpdatePriceConditionResponse.displayName = 'proto.UpdatePriceConditionResponse';
251
+ }
252
+ /**
253
+ * Generated by JsPbCodeGenerator.
254
+ * @param {Array=} opt_data Optional initial data array, typically from a
255
+ * server response, or constructed directly in Javascript. The array is used
256
+ * in place and becomes part of the constructed object. It is not cloned.
257
+ * If no data is provided, the constructed object will be empty, but still
258
+ * valid.
259
+ * @extends {jspb.Message}
260
+ * @constructor
261
+ */
262
+ proto.GetByIdPriceConditionResponse = function(opt_data) {
263
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
264
+ };
265
+ goog.inherits(proto.GetByIdPriceConditionResponse, jspb.Message);
266
+ if (goog.DEBUG && !COMPILED) {
267
+ /**
268
+ * @public
269
+ * @override
270
+ */
271
+ proto.GetByIdPriceConditionResponse.displayName = 'proto.GetByIdPriceConditionResponse';
272
+ }
273
+ /**
274
+ * Generated by JsPbCodeGenerator.
275
+ * @param {Array=} opt_data Optional initial data array, typically from a
276
+ * server response, or constructed directly in Javascript. The array is used
277
+ * in place and becomes part of the constructed object. It is not cloned.
278
+ * If no data is provided, the constructed object will be empty, but still
279
+ * valid.
280
+ * @extends {jspb.Message}
281
+ * @constructor
282
+ */
283
+ proto.DeletePriceConditionRes = function(opt_data) {
284
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePriceConditionRes.repeatedFields_, null);
285
+ };
286
+ goog.inherits(proto.DeletePriceConditionRes, jspb.Message);
287
+ if (goog.DEBUG && !COMPILED) {
288
+ /**
289
+ * @public
290
+ * @override
291
+ */
292
+ proto.DeletePriceConditionRes.displayName = 'proto.DeletePriceConditionRes';
293
+ }
294
+
295
+
296
+
297
+ if (jspb.Message.GENERATE_TO_OBJECT) {
298
+ /**
299
+ * Creates an object representation of this proto.
300
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
301
+ * Optional fields that are not set will be set to undefined.
302
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
303
+ * For the list of reserved names please see:
304
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
305
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
306
+ * JSPB instance for transitional soy proto support:
307
+ * http://goto/soy-param-migration
308
+ * @return {!Object}
309
+ */
310
+ proto.PriceCondition.prototype.toObject = function(opt_includeInstance) {
311
+ return proto.PriceCondition.toObject(opt_includeInstance, this);
312
+ };
313
+
314
+
315
+ /**
316
+ * Static version of the {@see toObject} method.
317
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
318
+ * the JSPB instance for transitional soy proto support:
319
+ * http://goto/soy-param-migration
320
+ * @param {!proto.PriceCondition} msg The msg instance to transform.
321
+ * @return {!Object}
322
+ * @suppress {unusedLocalVariables} f is only used for nested messages
323
+ */
324
+ proto.PriceCondition.toObject = function(includeInstance, msg) {
325
+ var f, obj = {
326
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
327
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
328
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
329
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
330
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
331
+ divide: jspb.Message.getFieldWithDefault(msg, 6, 0),
332
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 7, ""),
333
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 8, ""),
334
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
335
+ createdAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
336
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
337
+ referencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
338
+ companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
339
+ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
340
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
341
+ };
342
+
343
+ if (includeInstance) {
344
+ obj.$jspbMessageInstance = msg;
345
+ }
346
+ return obj;
347
+ };
348
+ }
349
+
350
+
351
+ /**
352
+ * Deserializes binary data (in protobuf wire format).
353
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
354
+ * @return {!proto.PriceCondition}
355
+ */
356
+ proto.PriceCondition.deserializeBinary = function(bytes) {
357
+ var reader = new jspb.BinaryReader(bytes);
358
+ var msg = new proto.PriceCondition;
359
+ return proto.PriceCondition.deserializeBinaryFromReader(msg, reader);
360
+ };
361
+
362
+
363
+ /**
364
+ * Deserializes binary data (in protobuf wire format) from the
365
+ * given reader into the given message object.
366
+ * @param {!proto.PriceCondition} msg The message object to deserialize into.
367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
368
+ * @return {!proto.PriceCondition}
369
+ */
370
+ proto.PriceCondition.deserializeBinaryFromReader = function(msg, reader) {
371
+ while (reader.nextField()) {
372
+ if (reader.isEndGroup()) {
373
+ break;
374
+ }
375
+ var field = reader.getFieldNumber();
376
+ switch (field) {
377
+ case 1:
378
+ var value = /** @type {number} */ (reader.readInt64());
379
+ msg.setId(value);
380
+ break;
381
+ case 2:
382
+ var value = /** @type {string} */ (reader.readString());
383
+ msg.setType(value);
384
+ break;
385
+ case 3:
386
+ var value = /** @type {string} */ (reader.readString());
387
+ msg.setDescription(value);
388
+ break;
389
+ case 4:
390
+ var value = /** @type {number} */ (reader.readFloat());
391
+ msg.setAmount(value);
392
+ break;
393
+ case 5:
394
+ var value = /** @type {string} */ (reader.readString());
395
+ msg.setCurrency(value);
396
+ break;
397
+ case 6:
398
+ var value = /** @type {number} */ (reader.readInt64());
399
+ msg.setDivide(value);
400
+ break;
401
+ case 7:
402
+ var value = /** @type {string} */ (reader.readString());
403
+ msg.setUnitOfMeasure(value);
404
+ break;
405
+ case 8:
406
+ var value = /** @type {string} */ (reader.readString());
407
+ msg.setCustomTransaction(value);
408
+ break;
409
+ case 9:
410
+ var value = /** @type {string} */ (reader.readString());
411
+ msg.setCompaniesReferencesId(value);
412
+ break;
413
+ case 10:
414
+ var value = /** @type {string} */ (reader.readString());
415
+ msg.setCreatedAt(value);
416
+ break;
417
+ case 11:
418
+ var value = /** @type {string} */ (reader.readString());
419
+ msg.setUpdatedAt(value);
420
+ break;
421
+ case 12:
422
+ var value = /** @type {string} */ (reader.readString());
423
+ msg.setReferencesId(value);
424
+ break;
425
+ case 13:
426
+ var value = new prisca_v1_core_company_company_pb.Company;
427
+ reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
428
+ msg.setCompanies(value);
429
+ break;
430
+ case 14:
431
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
432
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
433
+ msg.setCreatedByEmployee(value);
434
+ break;
435
+ case 15:
436
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
437
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
438
+ msg.setUpdatedByEmployee(value);
439
+ break;
440
+ default:
441
+ reader.skipField();
442
+ break;
443
+ }
444
+ }
445
+ return msg;
446
+ };
447
+
448
+
449
+ /**
450
+ * Serializes the message to binary data (in protobuf wire format).
451
+ * @return {!Uint8Array}
452
+ */
453
+ proto.PriceCondition.prototype.serializeBinary = function() {
454
+ var writer = new jspb.BinaryWriter();
455
+ proto.PriceCondition.serializeBinaryToWriter(this, writer);
456
+ return writer.getResultBuffer();
457
+ };
458
+
459
+
460
+ /**
461
+ * Serializes the given message to binary data (in protobuf wire
462
+ * format), writing to the given BinaryWriter.
463
+ * @param {!proto.PriceCondition} message
464
+ * @param {!jspb.BinaryWriter} writer
465
+ * @suppress {unusedLocalVariables} f is only used for nested messages
466
+ */
467
+ proto.PriceCondition.serializeBinaryToWriter = function(message, writer) {
468
+ var f = undefined;
469
+ f = message.getId();
470
+ if (f !== 0) {
471
+ writer.writeInt64(
472
+ 1,
473
+ f
474
+ );
475
+ }
476
+ f = message.getType();
477
+ if (f.length > 0) {
478
+ writer.writeString(
479
+ 2,
480
+ f
481
+ );
482
+ }
483
+ f = message.getDescription();
484
+ if (f.length > 0) {
485
+ writer.writeString(
486
+ 3,
487
+ f
488
+ );
489
+ }
490
+ f = message.getAmount();
491
+ if (f !== 0.0) {
492
+ writer.writeFloat(
493
+ 4,
494
+ f
495
+ );
496
+ }
497
+ f = message.getCurrency();
498
+ if (f.length > 0) {
499
+ writer.writeString(
500
+ 5,
501
+ f
502
+ );
503
+ }
504
+ f = message.getDivide();
505
+ if (f !== 0) {
506
+ writer.writeInt64(
507
+ 6,
508
+ f
509
+ );
510
+ }
511
+ f = message.getUnitOfMeasure();
512
+ if (f.length > 0) {
513
+ writer.writeString(
514
+ 7,
515
+ f
516
+ );
517
+ }
518
+ f = message.getCustomTransaction();
519
+ if (f.length > 0) {
520
+ writer.writeString(
521
+ 8,
522
+ f
523
+ );
524
+ }
525
+ f = message.getCompaniesReferencesId();
526
+ if (f.length > 0) {
527
+ writer.writeString(
528
+ 9,
529
+ f
530
+ );
531
+ }
532
+ f = message.getCreatedAt();
533
+ if (f.length > 0) {
534
+ writer.writeString(
535
+ 10,
536
+ f
537
+ );
538
+ }
539
+ f = message.getUpdatedAt();
540
+ if (f.length > 0) {
541
+ writer.writeString(
542
+ 11,
543
+ f
544
+ );
545
+ }
546
+ f = message.getReferencesId();
547
+ if (f.length > 0) {
548
+ writer.writeString(
549
+ 12,
550
+ f
551
+ );
552
+ }
553
+ f = message.getCompanies();
554
+ if (f != null) {
555
+ writer.writeMessage(
556
+ 13,
557
+ f,
558
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
559
+ );
560
+ }
561
+ f = message.getCreatedByEmployee();
562
+ if (f != null) {
563
+ writer.writeMessage(
564
+ 14,
565
+ f,
566
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
567
+ );
568
+ }
569
+ f = message.getUpdatedByEmployee();
570
+ if (f != null) {
571
+ writer.writeMessage(
572
+ 15,
573
+ f,
574
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
575
+ );
576
+ }
577
+ };
578
+
579
+
580
+ /**
581
+ * optional int64 id = 1;
582
+ * @return {number}
583
+ */
584
+ proto.PriceCondition.prototype.getId = function() {
585
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
586
+ };
587
+
588
+
589
+ /**
590
+ * @param {number} value
591
+ * @return {!proto.PriceCondition} returns this
592
+ */
593
+ proto.PriceCondition.prototype.setId = function(value) {
594
+ return jspb.Message.setProto3IntField(this, 1, value);
595
+ };
596
+
597
+
598
+ /**
599
+ * optional string type = 2;
600
+ * @return {string}
601
+ */
602
+ proto.PriceCondition.prototype.getType = function() {
603
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
604
+ };
605
+
606
+
607
+ /**
608
+ * @param {string} value
609
+ * @return {!proto.PriceCondition} returns this
610
+ */
611
+ proto.PriceCondition.prototype.setType = function(value) {
612
+ return jspb.Message.setProto3StringField(this, 2, value);
613
+ };
614
+
615
+
616
+ /**
617
+ * optional string description = 3;
618
+ * @return {string}
619
+ */
620
+ proto.PriceCondition.prototype.getDescription = function() {
621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
622
+ };
623
+
624
+
625
+ /**
626
+ * @param {string} value
627
+ * @return {!proto.PriceCondition} returns this
628
+ */
629
+ proto.PriceCondition.prototype.setDescription = function(value) {
630
+ return jspb.Message.setProto3StringField(this, 3, value);
631
+ };
632
+
633
+
634
+ /**
635
+ * optional float amount = 4;
636
+ * @return {number}
637
+ */
638
+ proto.PriceCondition.prototype.getAmount = function() {
639
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
640
+ };
641
+
642
+
643
+ /**
644
+ * @param {number} value
645
+ * @return {!proto.PriceCondition} returns this
646
+ */
647
+ proto.PriceCondition.prototype.setAmount = function(value) {
648
+ return jspb.Message.setProto3FloatField(this, 4, value);
649
+ };
650
+
651
+
652
+ /**
653
+ * optional string currency = 5;
654
+ * @return {string}
655
+ */
656
+ proto.PriceCondition.prototype.getCurrency = function() {
657
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
658
+ };
659
+
660
+
661
+ /**
662
+ * @param {string} value
663
+ * @return {!proto.PriceCondition} returns this
664
+ */
665
+ proto.PriceCondition.prototype.setCurrency = function(value) {
666
+ return jspb.Message.setProto3StringField(this, 5, value);
667
+ };
668
+
669
+
670
+ /**
671
+ * optional int64 divide = 6;
672
+ * @return {number}
673
+ */
674
+ proto.PriceCondition.prototype.getDivide = function() {
675
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
676
+ };
677
+
678
+
679
+ /**
680
+ * @param {number} value
681
+ * @return {!proto.PriceCondition} returns this
682
+ */
683
+ proto.PriceCondition.prototype.setDivide = function(value) {
684
+ return jspb.Message.setProto3IntField(this, 6, value);
685
+ };
686
+
687
+
688
+ /**
689
+ * optional string unit_of_measure = 7;
690
+ * @return {string}
691
+ */
692
+ proto.PriceCondition.prototype.getUnitOfMeasure = function() {
693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
694
+ };
695
+
696
+
697
+ /**
698
+ * @param {string} value
699
+ * @return {!proto.PriceCondition} returns this
700
+ */
701
+ proto.PriceCondition.prototype.setUnitOfMeasure = function(value) {
702
+ return jspb.Message.setProto3StringField(this, 7, value);
703
+ };
704
+
705
+
706
+ /**
707
+ * optional string custom_transaction = 8;
708
+ * @return {string}
709
+ */
710
+ proto.PriceCondition.prototype.getCustomTransaction = function() {
711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
712
+ };
713
+
714
+
715
+ /**
716
+ * @param {string} value
717
+ * @return {!proto.PriceCondition} returns this
718
+ */
719
+ proto.PriceCondition.prototype.setCustomTransaction = function(value) {
720
+ return jspb.Message.setProto3StringField(this, 8, value);
721
+ };
722
+
723
+
724
+ /**
725
+ * optional string companies_references_id = 9;
726
+ * @return {string}
727
+ */
728
+ proto.PriceCondition.prototype.getCompaniesReferencesId = function() {
729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
730
+ };
731
+
732
+
733
+ /**
734
+ * @param {string} value
735
+ * @return {!proto.PriceCondition} returns this
736
+ */
737
+ proto.PriceCondition.prototype.setCompaniesReferencesId = function(value) {
738
+ return jspb.Message.setProto3StringField(this, 9, value);
739
+ };
740
+
741
+
742
+ /**
743
+ * optional string created_at = 10;
744
+ * @return {string}
745
+ */
746
+ proto.PriceCondition.prototype.getCreatedAt = function() {
747
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
748
+ };
749
+
750
+
751
+ /**
752
+ * @param {string} value
753
+ * @return {!proto.PriceCondition} returns this
754
+ */
755
+ proto.PriceCondition.prototype.setCreatedAt = function(value) {
756
+ return jspb.Message.setProto3StringField(this, 10, value);
757
+ };
758
+
759
+
760
+ /**
761
+ * optional string updated_at = 11;
762
+ * @return {string}
763
+ */
764
+ proto.PriceCondition.prototype.getUpdatedAt = function() {
765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
766
+ };
767
+
768
+
769
+ /**
770
+ * @param {string} value
771
+ * @return {!proto.PriceCondition} returns this
772
+ */
773
+ proto.PriceCondition.prototype.setUpdatedAt = function(value) {
774
+ return jspb.Message.setProto3StringField(this, 11, value);
775
+ };
776
+
777
+
778
+ /**
779
+ * optional string references_id = 12;
780
+ * @return {string}
781
+ */
782
+ proto.PriceCondition.prototype.getReferencesId = function() {
783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
784
+ };
785
+
786
+
787
+ /**
788
+ * @param {string} value
789
+ * @return {!proto.PriceCondition} returns this
790
+ */
791
+ proto.PriceCondition.prototype.setReferencesId = function(value) {
792
+ return jspb.Message.setProto3StringField(this, 12, value);
793
+ };
794
+
795
+
796
+ /**
797
+ * optional Company companies = 13;
798
+ * @return {?proto.Company}
799
+ */
800
+ proto.PriceCondition.prototype.getCompanies = function() {
801
+ return /** @type{?proto.Company} */ (
802
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 13));
803
+ };
804
+
805
+
806
+ /**
807
+ * @param {?proto.Company|undefined} value
808
+ * @return {!proto.PriceCondition} returns this
809
+ */
810
+ proto.PriceCondition.prototype.setCompanies = function(value) {
811
+ return jspb.Message.setWrapperField(this, 13, value);
812
+ };
813
+
814
+
815
+ /**
816
+ * Clears the message field making it undefined.
817
+ * @return {!proto.PriceCondition} returns this
818
+ */
819
+ proto.PriceCondition.prototype.clearCompanies = function() {
820
+ return this.setCompanies(undefined);
821
+ };
822
+
823
+
824
+ /**
825
+ * Returns whether this field is set.
826
+ * @return {boolean}
827
+ */
828
+ proto.PriceCondition.prototype.hasCompanies = function() {
829
+ return jspb.Message.getField(this, 13) != null;
830
+ };
831
+
832
+
833
+ /**
834
+ * optional Employee created_by_employee = 14;
835
+ * @return {?proto.Employee}
836
+ */
837
+ proto.PriceCondition.prototype.getCreatedByEmployee = function() {
838
+ return /** @type{?proto.Employee} */ (
839
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 14));
840
+ };
841
+
842
+
843
+ /**
844
+ * @param {?proto.Employee|undefined} value
845
+ * @return {!proto.PriceCondition} returns this
846
+ */
847
+ proto.PriceCondition.prototype.setCreatedByEmployee = function(value) {
848
+ return jspb.Message.setWrapperField(this, 14, value);
849
+ };
850
+
851
+
852
+ /**
853
+ * Clears the message field making it undefined.
854
+ * @return {!proto.PriceCondition} returns this
855
+ */
856
+ proto.PriceCondition.prototype.clearCreatedByEmployee = function() {
857
+ return this.setCreatedByEmployee(undefined);
858
+ };
859
+
860
+
861
+ /**
862
+ * Returns whether this field is set.
863
+ * @return {boolean}
864
+ */
865
+ proto.PriceCondition.prototype.hasCreatedByEmployee = function() {
866
+ return jspb.Message.getField(this, 14) != null;
867
+ };
868
+
869
+
870
+ /**
871
+ * optional Employee updated_by_employee = 15;
872
+ * @return {?proto.Employee}
873
+ */
874
+ proto.PriceCondition.prototype.getUpdatedByEmployee = function() {
875
+ return /** @type{?proto.Employee} */ (
876
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 15));
877
+ };
878
+
879
+
880
+ /**
881
+ * @param {?proto.Employee|undefined} value
882
+ * @return {!proto.PriceCondition} returns this
883
+ */
884
+ proto.PriceCondition.prototype.setUpdatedByEmployee = function(value) {
885
+ return jspb.Message.setWrapperField(this, 15, value);
886
+ };
887
+
888
+
889
+ /**
890
+ * Clears the message field making it undefined.
891
+ * @return {!proto.PriceCondition} returns this
892
+ */
893
+ proto.PriceCondition.prototype.clearUpdatedByEmployee = function() {
894
+ return this.setUpdatedByEmployee(undefined);
895
+ };
896
+
897
+
898
+ /**
899
+ * Returns whether this field is set.
900
+ * @return {boolean}
901
+ */
902
+ proto.PriceCondition.prototype.hasUpdatedByEmployee = function() {
903
+ return jspb.Message.getField(this, 15) != null;
904
+ };
905
+
906
+
907
+
908
+
909
+
910
+ if (jspb.Message.GENERATE_TO_OBJECT) {
911
+ /**
912
+ * Creates an object representation of this proto.
913
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
914
+ * Optional fields that are not set will be set to undefined.
915
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
916
+ * For the list of reserved names please see:
917
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
918
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
919
+ * JSPB instance for transitional soy proto support:
920
+ * http://goto/soy-param-migration
921
+ * @return {!Object}
922
+ */
923
+ proto.BasePriceCondition.prototype.toObject = function(opt_includeInstance) {
924
+ return proto.BasePriceCondition.toObject(opt_includeInstance, this);
925
+ };
926
+
927
+
928
+ /**
929
+ * Static version of the {@see toObject} method.
930
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
931
+ * the JSPB instance for transitional soy proto support:
932
+ * http://goto/soy-param-migration
933
+ * @param {!proto.BasePriceCondition} msg The msg instance to transform.
934
+ * @return {!Object}
935
+ * @suppress {unusedLocalVariables} f is only used for nested messages
936
+ */
937
+ proto.BasePriceCondition.toObject = function(includeInstance, msg) {
938
+ var f, obj = {
939
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
940
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
941
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
942
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
943
+ divide: jspb.Message.getFieldWithDefault(msg, 6, 0),
944
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 7, ""),
945
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 8, "")
946
+ };
947
+
948
+ if (includeInstance) {
949
+ obj.$jspbMessageInstance = msg;
950
+ }
951
+ return obj;
952
+ };
953
+ }
954
+
955
+
956
+ /**
957
+ * Deserializes binary data (in protobuf wire format).
958
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
959
+ * @return {!proto.BasePriceCondition}
960
+ */
961
+ proto.BasePriceCondition.deserializeBinary = function(bytes) {
962
+ var reader = new jspb.BinaryReader(bytes);
963
+ var msg = new proto.BasePriceCondition;
964
+ return proto.BasePriceCondition.deserializeBinaryFromReader(msg, reader);
965
+ };
966
+
967
+
968
+ /**
969
+ * Deserializes binary data (in protobuf wire format) from the
970
+ * given reader into the given message object.
971
+ * @param {!proto.BasePriceCondition} msg The message object to deserialize into.
972
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
973
+ * @return {!proto.BasePriceCondition}
974
+ */
975
+ proto.BasePriceCondition.deserializeBinaryFromReader = function(msg, reader) {
976
+ while (reader.nextField()) {
977
+ if (reader.isEndGroup()) {
978
+ break;
979
+ }
980
+ var field = reader.getFieldNumber();
981
+ switch (field) {
982
+ case 2:
983
+ var value = /** @type {string} */ (reader.readString());
984
+ msg.setType(value);
985
+ break;
986
+ case 3:
987
+ var value = /** @type {string} */ (reader.readString());
988
+ msg.setDescription(value);
989
+ break;
990
+ case 4:
991
+ var value = /** @type {number} */ (reader.readFloat());
992
+ msg.setAmount(value);
993
+ break;
994
+ case 5:
995
+ var value = /** @type {string} */ (reader.readString());
996
+ msg.setCurrency(value);
997
+ break;
998
+ case 6:
999
+ var value = /** @type {number} */ (reader.readInt64());
1000
+ msg.setDivide(value);
1001
+ break;
1002
+ case 7:
1003
+ var value = /** @type {string} */ (reader.readString());
1004
+ msg.setUnitOfMeasure(value);
1005
+ break;
1006
+ case 8:
1007
+ var value = /** @type {string} */ (reader.readString());
1008
+ msg.setCustomTransaction(value);
1009
+ break;
1010
+ default:
1011
+ reader.skipField();
1012
+ break;
1013
+ }
1014
+ }
1015
+ return msg;
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * Serializes the message to binary data (in protobuf wire format).
1021
+ * @return {!Uint8Array}
1022
+ */
1023
+ proto.BasePriceCondition.prototype.serializeBinary = function() {
1024
+ var writer = new jspb.BinaryWriter();
1025
+ proto.BasePriceCondition.serializeBinaryToWriter(this, writer);
1026
+ return writer.getResultBuffer();
1027
+ };
1028
+
1029
+
1030
+ /**
1031
+ * Serializes the given message to binary data (in protobuf wire
1032
+ * format), writing to the given BinaryWriter.
1033
+ * @param {!proto.BasePriceCondition} message
1034
+ * @param {!jspb.BinaryWriter} writer
1035
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1036
+ */
1037
+ proto.BasePriceCondition.serializeBinaryToWriter = function(message, writer) {
1038
+ var f = undefined;
1039
+ f = message.getType();
1040
+ if (f.length > 0) {
1041
+ writer.writeString(
1042
+ 2,
1043
+ f
1044
+ );
1045
+ }
1046
+ f = message.getDescription();
1047
+ if (f.length > 0) {
1048
+ writer.writeString(
1049
+ 3,
1050
+ f
1051
+ );
1052
+ }
1053
+ f = message.getAmount();
1054
+ if (f !== 0.0) {
1055
+ writer.writeFloat(
1056
+ 4,
1057
+ f
1058
+ );
1059
+ }
1060
+ f = message.getCurrency();
1061
+ if (f.length > 0) {
1062
+ writer.writeString(
1063
+ 5,
1064
+ f
1065
+ );
1066
+ }
1067
+ f = message.getDivide();
1068
+ if (f !== 0) {
1069
+ writer.writeInt64(
1070
+ 6,
1071
+ f
1072
+ );
1073
+ }
1074
+ f = message.getUnitOfMeasure();
1075
+ if (f.length > 0) {
1076
+ writer.writeString(
1077
+ 7,
1078
+ f
1079
+ );
1080
+ }
1081
+ f = message.getCustomTransaction();
1082
+ if (f.length > 0) {
1083
+ writer.writeString(
1084
+ 8,
1085
+ f
1086
+ );
1087
+ }
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * optional string type = 2;
1093
+ * @return {string}
1094
+ */
1095
+ proto.BasePriceCondition.prototype.getType = function() {
1096
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * @param {string} value
1102
+ * @return {!proto.BasePriceCondition} returns this
1103
+ */
1104
+ proto.BasePriceCondition.prototype.setType = function(value) {
1105
+ return jspb.Message.setProto3StringField(this, 2, value);
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * optional string description = 3;
1111
+ * @return {string}
1112
+ */
1113
+ proto.BasePriceCondition.prototype.getDescription = function() {
1114
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1115
+ };
1116
+
1117
+
1118
+ /**
1119
+ * @param {string} value
1120
+ * @return {!proto.BasePriceCondition} returns this
1121
+ */
1122
+ proto.BasePriceCondition.prototype.setDescription = function(value) {
1123
+ return jspb.Message.setProto3StringField(this, 3, value);
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * optional float amount = 4;
1129
+ * @return {number}
1130
+ */
1131
+ proto.BasePriceCondition.prototype.getAmount = function() {
1132
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * @param {number} value
1138
+ * @return {!proto.BasePriceCondition} returns this
1139
+ */
1140
+ proto.BasePriceCondition.prototype.setAmount = function(value) {
1141
+ return jspb.Message.setProto3FloatField(this, 4, value);
1142
+ };
1143
+
1144
+
1145
+ /**
1146
+ * optional string currency = 5;
1147
+ * @return {string}
1148
+ */
1149
+ proto.BasePriceCondition.prototype.getCurrency = function() {
1150
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * @param {string} value
1156
+ * @return {!proto.BasePriceCondition} returns this
1157
+ */
1158
+ proto.BasePriceCondition.prototype.setCurrency = function(value) {
1159
+ return jspb.Message.setProto3StringField(this, 5, value);
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * optional int64 divide = 6;
1165
+ * @return {number}
1166
+ */
1167
+ proto.BasePriceCondition.prototype.getDivide = function() {
1168
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * @param {number} value
1174
+ * @return {!proto.BasePriceCondition} returns this
1175
+ */
1176
+ proto.BasePriceCondition.prototype.setDivide = function(value) {
1177
+ return jspb.Message.setProto3IntField(this, 6, value);
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * optional string unit_of_measure = 7;
1183
+ * @return {string}
1184
+ */
1185
+ proto.BasePriceCondition.prototype.getUnitOfMeasure = function() {
1186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1187
+ };
1188
+
1189
+
1190
+ /**
1191
+ * @param {string} value
1192
+ * @return {!proto.BasePriceCondition} returns this
1193
+ */
1194
+ proto.BasePriceCondition.prototype.setUnitOfMeasure = function(value) {
1195
+ return jspb.Message.setProto3StringField(this, 7, value);
1196
+ };
1197
+
1198
+
1199
+ /**
1200
+ * optional string custom_transaction = 8;
1201
+ * @return {string}
1202
+ */
1203
+ proto.BasePriceCondition.prototype.getCustomTransaction = function() {
1204
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1205
+ };
1206
+
1207
+
1208
+ /**
1209
+ * @param {string} value
1210
+ * @return {!proto.BasePriceCondition} returns this
1211
+ */
1212
+ proto.BasePriceCondition.prototype.setCustomTransaction = function(value) {
1213
+ return jspb.Message.setProto3StringField(this, 8, value);
1214
+ };
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1221
+ /**
1222
+ * Creates an object representation of this proto.
1223
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1224
+ * Optional fields that are not set will be set to undefined.
1225
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1226
+ * For the list of reserved names please see:
1227
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1228
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1229
+ * JSPB instance for transitional soy proto support:
1230
+ * http://goto/soy-param-migration
1231
+ * @return {!Object}
1232
+ */
1233
+ proto.GetByIdPriceConditionRequest.prototype.toObject = function(opt_includeInstance) {
1234
+ return proto.GetByIdPriceConditionRequest.toObject(opt_includeInstance, this);
1235
+ };
1236
+
1237
+
1238
+ /**
1239
+ * Static version of the {@see toObject} method.
1240
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1241
+ * the JSPB instance for transitional soy proto support:
1242
+ * http://goto/soy-param-migration
1243
+ * @param {!proto.GetByIdPriceConditionRequest} msg The msg instance to transform.
1244
+ * @return {!Object}
1245
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1246
+ */
1247
+ proto.GetByIdPriceConditionRequest.toObject = function(includeInstance, msg) {
1248
+ var f, obj = {
1249
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1250
+ };
1251
+
1252
+ if (includeInstance) {
1253
+ obj.$jspbMessageInstance = msg;
1254
+ }
1255
+ return obj;
1256
+ };
1257
+ }
1258
+
1259
+
1260
+ /**
1261
+ * Deserializes binary data (in protobuf wire format).
1262
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1263
+ * @return {!proto.GetByIdPriceConditionRequest}
1264
+ */
1265
+ proto.GetByIdPriceConditionRequest.deserializeBinary = function(bytes) {
1266
+ var reader = new jspb.BinaryReader(bytes);
1267
+ var msg = new proto.GetByIdPriceConditionRequest;
1268
+ return proto.GetByIdPriceConditionRequest.deserializeBinaryFromReader(msg, reader);
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * Deserializes binary data (in protobuf wire format) from the
1274
+ * given reader into the given message object.
1275
+ * @param {!proto.GetByIdPriceConditionRequest} msg The message object to deserialize into.
1276
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1277
+ * @return {!proto.GetByIdPriceConditionRequest}
1278
+ */
1279
+ proto.GetByIdPriceConditionRequest.deserializeBinaryFromReader = function(msg, reader) {
1280
+ while (reader.nextField()) {
1281
+ if (reader.isEndGroup()) {
1282
+ break;
1283
+ }
1284
+ var field = reader.getFieldNumber();
1285
+ switch (field) {
1286
+ case 1:
1287
+ var value = /** @type {string} */ (reader.readString());
1288
+ msg.setReferencesId(value);
1289
+ break;
1290
+ default:
1291
+ reader.skipField();
1292
+ break;
1293
+ }
1294
+ }
1295
+ return msg;
1296
+ };
1297
+
1298
+
1299
+ /**
1300
+ * Serializes the message to binary data (in protobuf wire format).
1301
+ * @return {!Uint8Array}
1302
+ */
1303
+ proto.GetByIdPriceConditionRequest.prototype.serializeBinary = function() {
1304
+ var writer = new jspb.BinaryWriter();
1305
+ proto.GetByIdPriceConditionRequest.serializeBinaryToWriter(this, writer);
1306
+ return writer.getResultBuffer();
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * Serializes the given message to binary data (in protobuf wire
1312
+ * format), writing to the given BinaryWriter.
1313
+ * @param {!proto.GetByIdPriceConditionRequest} message
1314
+ * @param {!jspb.BinaryWriter} writer
1315
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1316
+ */
1317
+ proto.GetByIdPriceConditionRequest.serializeBinaryToWriter = function(message, writer) {
1318
+ var f = undefined;
1319
+ f = message.getReferencesId();
1320
+ if (f.length > 0) {
1321
+ writer.writeString(
1322
+ 1,
1323
+ f
1324
+ );
1325
+ }
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * optional string references_id = 1;
1331
+ * @return {string}
1332
+ */
1333
+ proto.GetByIdPriceConditionRequest.prototype.getReferencesId = function() {
1334
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * @param {string} value
1340
+ * @return {!proto.GetByIdPriceConditionRequest} returns this
1341
+ */
1342
+ proto.GetByIdPriceConditionRequest.prototype.setReferencesId = function(value) {
1343
+ return jspb.Message.setProto3StringField(this, 1, value);
1344
+ };
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1351
+ /**
1352
+ * Creates an object representation of this proto.
1353
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1354
+ * Optional fields that are not set will be set to undefined.
1355
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1356
+ * For the list of reserved names please see:
1357
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1358
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1359
+ * JSPB instance for transitional soy proto support:
1360
+ * http://goto/soy-param-migration
1361
+ * @return {!Object}
1362
+ */
1363
+ proto.CreatePriceConditionRequest.prototype.toObject = function(opt_includeInstance) {
1364
+ return proto.CreatePriceConditionRequest.toObject(opt_includeInstance, this);
1365
+ };
1366
+
1367
+
1368
+ /**
1369
+ * Static version of the {@see toObject} method.
1370
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1371
+ * the JSPB instance for transitional soy proto support:
1372
+ * http://goto/soy-param-migration
1373
+ * @param {!proto.CreatePriceConditionRequest} msg The msg instance to transform.
1374
+ * @return {!Object}
1375
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1376
+ */
1377
+ proto.CreatePriceConditionRequest.toObject = function(includeInstance, msg) {
1378
+ var f, obj = {
1379
+ priceCondition: (f = msg.getPriceCondition()) && proto.BasePriceCondition.toObject(includeInstance, f)
1380
+ };
1381
+
1382
+ if (includeInstance) {
1383
+ obj.$jspbMessageInstance = msg;
1384
+ }
1385
+ return obj;
1386
+ };
1387
+ }
1388
+
1389
+
1390
+ /**
1391
+ * Deserializes binary data (in protobuf wire format).
1392
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1393
+ * @return {!proto.CreatePriceConditionRequest}
1394
+ */
1395
+ proto.CreatePriceConditionRequest.deserializeBinary = function(bytes) {
1396
+ var reader = new jspb.BinaryReader(bytes);
1397
+ var msg = new proto.CreatePriceConditionRequest;
1398
+ return proto.CreatePriceConditionRequest.deserializeBinaryFromReader(msg, reader);
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Deserializes binary data (in protobuf wire format) from the
1404
+ * given reader into the given message object.
1405
+ * @param {!proto.CreatePriceConditionRequest} msg The message object to deserialize into.
1406
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1407
+ * @return {!proto.CreatePriceConditionRequest}
1408
+ */
1409
+ proto.CreatePriceConditionRequest.deserializeBinaryFromReader = function(msg, reader) {
1410
+ while (reader.nextField()) {
1411
+ if (reader.isEndGroup()) {
1412
+ break;
1413
+ }
1414
+ var field = reader.getFieldNumber();
1415
+ switch (field) {
1416
+ case 1:
1417
+ var value = new proto.BasePriceCondition;
1418
+ reader.readMessage(value,proto.BasePriceCondition.deserializeBinaryFromReader);
1419
+ msg.setPriceCondition(value);
1420
+ break;
1421
+ default:
1422
+ reader.skipField();
1423
+ break;
1424
+ }
1425
+ }
1426
+ return msg;
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * Serializes the message to binary data (in protobuf wire format).
1432
+ * @return {!Uint8Array}
1433
+ */
1434
+ proto.CreatePriceConditionRequest.prototype.serializeBinary = function() {
1435
+ var writer = new jspb.BinaryWriter();
1436
+ proto.CreatePriceConditionRequest.serializeBinaryToWriter(this, writer);
1437
+ return writer.getResultBuffer();
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * Serializes the given message to binary data (in protobuf wire
1443
+ * format), writing to the given BinaryWriter.
1444
+ * @param {!proto.CreatePriceConditionRequest} message
1445
+ * @param {!jspb.BinaryWriter} writer
1446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1447
+ */
1448
+ proto.CreatePriceConditionRequest.serializeBinaryToWriter = function(message, writer) {
1449
+ var f = undefined;
1450
+ f = message.getPriceCondition();
1451
+ if (f != null) {
1452
+ writer.writeMessage(
1453
+ 1,
1454
+ f,
1455
+ proto.BasePriceCondition.serializeBinaryToWriter
1456
+ );
1457
+ }
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * optional BasePriceCondition price_condition = 1;
1463
+ * @return {?proto.BasePriceCondition}
1464
+ */
1465
+ proto.CreatePriceConditionRequest.prototype.getPriceCondition = function() {
1466
+ return /** @type{?proto.BasePriceCondition} */ (
1467
+ jspb.Message.getWrapperField(this, proto.BasePriceCondition, 1));
1468
+ };
1469
+
1470
+
1471
+ /**
1472
+ * @param {?proto.BasePriceCondition|undefined} value
1473
+ * @return {!proto.CreatePriceConditionRequest} returns this
1474
+ */
1475
+ proto.CreatePriceConditionRequest.prototype.setPriceCondition = function(value) {
1476
+ return jspb.Message.setWrapperField(this, 1, value);
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Clears the message field making it undefined.
1482
+ * @return {!proto.CreatePriceConditionRequest} returns this
1483
+ */
1484
+ proto.CreatePriceConditionRequest.prototype.clearPriceCondition = function() {
1485
+ return this.setPriceCondition(undefined);
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * Returns whether this field is set.
1491
+ * @return {boolean}
1492
+ */
1493
+ proto.CreatePriceConditionRequest.prototype.hasPriceCondition = function() {
1494
+ return jspb.Message.getField(this, 1) != null;
1495
+ };
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1502
+ /**
1503
+ * Creates an object representation of this proto.
1504
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1505
+ * Optional fields that are not set will be set to undefined.
1506
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1507
+ * For the list of reserved names please see:
1508
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1509
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1510
+ * JSPB instance for transitional soy proto support:
1511
+ * http://goto/soy-param-migration
1512
+ * @return {!Object}
1513
+ */
1514
+ proto.UpdatePriceConditionRequest.prototype.toObject = function(opt_includeInstance) {
1515
+ return proto.UpdatePriceConditionRequest.toObject(opt_includeInstance, this);
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * Static version of the {@see toObject} method.
1521
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1522
+ * the JSPB instance for transitional soy proto support:
1523
+ * http://goto/soy-param-migration
1524
+ * @param {!proto.UpdatePriceConditionRequest} msg The msg instance to transform.
1525
+ * @return {!Object}
1526
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1527
+ */
1528
+ proto.UpdatePriceConditionRequest.toObject = function(includeInstance, msg) {
1529
+ var f, obj = {
1530
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1531
+ priceCondition: (f = msg.getPriceCondition()) && proto.BasePriceCondition.toObject(includeInstance, f)
1532
+ };
1533
+
1534
+ if (includeInstance) {
1535
+ obj.$jspbMessageInstance = msg;
1536
+ }
1537
+ return obj;
1538
+ };
1539
+ }
1540
+
1541
+
1542
+ /**
1543
+ * Deserializes binary data (in protobuf wire format).
1544
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1545
+ * @return {!proto.UpdatePriceConditionRequest}
1546
+ */
1547
+ proto.UpdatePriceConditionRequest.deserializeBinary = function(bytes) {
1548
+ var reader = new jspb.BinaryReader(bytes);
1549
+ var msg = new proto.UpdatePriceConditionRequest;
1550
+ return proto.UpdatePriceConditionRequest.deserializeBinaryFromReader(msg, reader);
1551
+ };
1552
+
1553
+
1554
+ /**
1555
+ * Deserializes binary data (in protobuf wire format) from the
1556
+ * given reader into the given message object.
1557
+ * @param {!proto.UpdatePriceConditionRequest} msg The message object to deserialize into.
1558
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1559
+ * @return {!proto.UpdatePriceConditionRequest}
1560
+ */
1561
+ proto.UpdatePriceConditionRequest.deserializeBinaryFromReader = function(msg, reader) {
1562
+ while (reader.nextField()) {
1563
+ if (reader.isEndGroup()) {
1564
+ break;
1565
+ }
1566
+ var field = reader.getFieldNumber();
1567
+ switch (field) {
1568
+ case 1:
1569
+ var value = /** @type {string} */ (reader.readString());
1570
+ msg.setReferencesId(value);
1571
+ break;
1572
+ case 2:
1573
+ var value = new proto.BasePriceCondition;
1574
+ reader.readMessage(value,proto.BasePriceCondition.deserializeBinaryFromReader);
1575
+ msg.setPriceCondition(value);
1576
+ break;
1577
+ default:
1578
+ reader.skipField();
1579
+ break;
1580
+ }
1581
+ }
1582
+ return msg;
1583
+ };
1584
+
1585
+
1586
+ /**
1587
+ * Serializes the message to binary data (in protobuf wire format).
1588
+ * @return {!Uint8Array}
1589
+ */
1590
+ proto.UpdatePriceConditionRequest.prototype.serializeBinary = function() {
1591
+ var writer = new jspb.BinaryWriter();
1592
+ proto.UpdatePriceConditionRequest.serializeBinaryToWriter(this, writer);
1593
+ return writer.getResultBuffer();
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * Serializes the given message to binary data (in protobuf wire
1599
+ * format), writing to the given BinaryWriter.
1600
+ * @param {!proto.UpdatePriceConditionRequest} message
1601
+ * @param {!jspb.BinaryWriter} writer
1602
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1603
+ */
1604
+ proto.UpdatePriceConditionRequest.serializeBinaryToWriter = function(message, writer) {
1605
+ var f = undefined;
1606
+ f = message.getReferencesId();
1607
+ if (f.length > 0) {
1608
+ writer.writeString(
1609
+ 1,
1610
+ f
1611
+ );
1612
+ }
1613
+ f = message.getPriceCondition();
1614
+ if (f != null) {
1615
+ writer.writeMessage(
1616
+ 2,
1617
+ f,
1618
+ proto.BasePriceCondition.serializeBinaryToWriter
1619
+ );
1620
+ }
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * optional string references_id = 1;
1626
+ * @return {string}
1627
+ */
1628
+ proto.UpdatePriceConditionRequest.prototype.getReferencesId = function() {
1629
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * @param {string} value
1635
+ * @return {!proto.UpdatePriceConditionRequest} returns this
1636
+ */
1637
+ proto.UpdatePriceConditionRequest.prototype.setReferencesId = function(value) {
1638
+ return jspb.Message.setProto3StringField(this, 1, value);
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * optional BasePriceCondition price_condition = 2;
1644
+ * @return {?proto.BasePriceCondition}
1645
+ */
1646
+ proto.UpdatePriceConditionRequest.prototype.getPriceCondition = function() {
1647
+ return /** @type{?proto.BasePriceCondition} */ (
1648
+ jspb.Message.getWrapperField(this, proto.BasePriceCondition, 2));
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * @param {?proto.BasePriceCondition|undefined} value
1654
+ * @return {!proto.UpdatePriceConditionRequest} returns this
1655
+ */
1656
+ proto.UpdatePriceConditionRequest.prototype.setPriceCondition = function(value) {
1657
+ return jspb.Message.setWrapperField(this, 2, value);
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * Clears the message field making it undefined.
1663
+ * @return {!proto.UpdatePriceConditionRequest} returns this
1664
+ */
1665
+ proto.UpdatePriceConditionRequest.prototype.clearPriceCondition = function() {
1666
+ return this.setPriceCondition(undefined);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * Returns whether this field is set.
1672
+ * @return {boolean}
1673
+ */
1674
+ proto.UpdatePriceConditionRequest.prototype.hasPriceCondition = function() {
1675
+ return jspb.Message.getField(this, 2) != null;
1676
+ };
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1683
+ /**
1684
+ * Creates an object representation of this proto.
1685
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1686
+ * Optional fields that are not set will be set to undefined.
1687
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1688
+ * For the list of reserved names please see:
1689
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1690
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1691
+ * JSPB instance for transitional soy proto support:
1692
+ * http://goto/soy-param-migration
1693
+ * @return {!Object}
1694
+ */
1695
+ proto.GetListPriceConditionRequest.prototype.toObject = function(opt_includeInstance) {
1696
+ return proto.GetListPriceConditionRequest.toObject(opt_includeInstance, this);
1697
+ };
1698
+
1699
+
1700
+ /**
1701
+ * Static version of the {@see toObject} method.
1702
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1703
+ * the JSPB instance for transitional soy proto support:
1704
+ * http://goto/soy-param-migration
1705
+ * @param {!proto.GetListPriceConditionRequest} msg The msg instance to transform.
1706
+ * @return {!Object}
1707
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1708
+ */
1709
+ proto.GetListPriceConditionRequest.toObject = function(includeInstance, msg) {
1710
+ var f, obj = {
1711
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1712
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1713
+ };
1714
+
1715
+ if (includeInstance) {
1716
+ obj.$jspbMessageInstance = msg;
1717
+ }
1718
+ return obj;
1719
+ };
1720
+ }
1721
+
1722
+
1723
+ /**
1724
+ * Deserializes binary data (in protobuf wire format).
1725
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1726
+ * @return {!proto.GetListPriceConditionRequest}
1727
+ */
1728
+ proto.GetListPriceConditionRequest.deserializeBinary = function(bytes) {
1729
+ var reader = new jspb.BinaryReader(bytes);
1730
+ var msg = new proto.GetListPriceConditionRequest;
1731
+ return proto.GetListPriceConditionRequest.deserializeBinaryFromReader(msg, reader);
1732
+ };
1733
+
1734
+
1735
+ /**
1736
+ * Deserializes binary data (in protobuf wire format) from the
1737
+ * given reader into the given message object.
1738
+ * @param {!proto.GetListPriceConditionRequest} msg The message object to deserialize into.
1739
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1740
+ * @return {!proto.GetListPriceConditionRequest}
1741
+ */
1742
+ proto.GetListPriceConditionRequest.deserializeBinaryFromReader = function(msg, reader) {
1743
+ while (reader.nextField()) {
1744
+ if (reader.isEndGroup()) {
1745
+ break;
1746
+ }
1747
+ var field = reader.getFieldNumber();
1748
+ switch (field) {
1749
+ case 1:
1750
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1751
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1752
+ msg.setPagination(value);
1753
+ break;
1754
+ case 2:
1755
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1756
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1757
+ msg.setQuery(value);
1758
+ break;
1759
+ default:
1760
+ reader.skipField();
1761
+ break;
1762
+ }
1763
+ }
1764
+ return msg;
1765
+ };
1766
+
1767
+
1768
+ /**
1769
+ * Serializes the message to binary data (in protobuf wire format).
1770
+ * @return {!Uint8Array}
1771
+ */
1772
+ proto.GetListPriceConditionRequest.prototype.serializeBinary = function() {
1773
+ var writer = new jspb.BinaryWriter();
1774
+ proto.GetListPriceConditionRequest.serializeBinaryToWriter(this, writer);
1775
+ return writer.getResultBuffer();
1776
+ };
1777
+
1778
+
1779
+ /**
1780
+ * Serializes the given message to binary data (in protobuf wire
1781
+ * format), writing to the given BinaryWriter.
1782
+ * @param {!proto.GetListPriceConditionRequest} message
1783
+ * @param {!jspb.BinaryWriter} writer
1784
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1785
+ */
1786
+ proto.GetListPriceConditionRequest.serializeBinaryToWriter = function(message, writer) {
1787
+ var f = undefined;
1788
+ f = message.getPagination();
1789
+ if (f != null) {
1790
+ writer.writeMessage(
1791
+ 1,
1792
+ f,
1793
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1794
+ );
1795
+ }
1796
+ f = message.getQuery();
1797
+ if (f != null) {
1798
+ writer.writeMessage(
1799
+ 2,
1800
+ f,
1801
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1802
+ );
1803
+ }
1804
+ };
1805
+
1806
+
1807
+ /**
1808
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1809
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1810
+ */
1811
+ proto.GetListPriceConditionRequest.prototype.getPagination = function() {
1812
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1813
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1814
+ };
1815
+
1816
+
1817
+ /**
1818
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1819
+ * @return {!proto.GetListPriceConditionRequest} returns this
1820
+ */
1821
+ proto.GetListPriceConditionRequest.prototype.setPagination = function(value) {
1822
+ return jspb.Message.setWrapperField(this, 1, value);
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * Clears the message field making it undefined.
1828
+ * @return {!proto.GetListPriceConditionRequest} returns this
1829
+ */
1830
+ proto.GetListPriceConditionRequest.prototype.clearPagination = function() {
1831
+ return this.setPagination(undefined);
1832
+ };
1833
+
1834
+
1835
+ /**
1836
+ * Returns whether this field is set.
1837
+ * @return {boolean}
1838
+ */
1839
+ proto.GetListPriceConditionRequest.prototype.hasPagination = function() {
1840
+ return jspb.Message.getField(this, 1) != null;
1841
+ };
1842
+
1843
+
1844
+ /**
1845
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1846
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1847
+ */
1848
+ proto.GetListPriceConditionRequest.prototype.getQuery = function() {
1849
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1850
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1851
+ };
1852
+
1853
+
1854
+ /**
1855
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1856
+ * @return {!proto.GetListPriceConditionRequest} returns this
1857
+ */
1858
+ proto.GetListPriceConditionRequest.prototype.setQuery = function(value) {
1859
+ return jspb.Message.setWrapperField(this, 2, value);
1860
+ };
1861
+
1862
+
1863
+ /**
1864
+ * Clears the message field making it undefined.
1865
+ * @return {!proto.GetListPriceConditionRequest} returns this
1866
+ */
1867
+ proto.GetListPriceConditionRequest.prototype.clearQuery = function() {
1868
+ return this.setQuery(undefined);
1869
+ };
1870
+
1871
+
1872
+ /**
1873
+ * Returns whether this field is set.
1874
+ * @return {boolean}
1875
+ */
1876
+ proto.GetListPriceConditionRequest.prototype.hasQuery = function() {
1877
+ return jspb.Message.getField(this, 2) != null;
1878
+ };
1879
+
1880
+
1881
+
1882
+ /**
1883
+ * List of repeated fields within this message type.
1884
+ * @private {!Array<number>}
1885
+ * @const
1886
+ */
1887
+ proto.DeletePriceConditionReq.repeatedFields_ = [1];
1888
+
1889
+
1890
+
1891
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1892
+ /**
1893
+ * Creates an object representation of this proto.
1894
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1895
+ * Optional fields that are not set will be set to undefined.
1896
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1897
+ * For the list of reserved names please see:
1898
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1899
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1900
+ * JSPB instance for transitional soy proto support:
1901
+ * http://goto/soy-param-migration
1902
+ * @return {!Object}
1903
+ */
1904
+ proto.DeletePriceConditionReq.prototype.toObject = function(opt_includeInstance) {
1905
+ return proto.DeletePriceConditionReq.toObject(opt_includeInstance, this);
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * Static version of the {@see toObject} method.
1911
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1912
+ * the JSPB instance for transitional soy proto support:
1913
+ * http://goto/soy-param-migration
1914
+ * @param {!proto.DeletePriceConditionReq} msg The msg instance to transform.
1915
+ * @return {!Object}
1916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1917
+ */
1918
+ proto.DeletePriceConditionReq.toObject = function(includeInstance, msg) {
1919
+ var f, obj = {
1920
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1921
+ };
1922
+
1923
+ if (includeInstance) {
1924
+ obj.$jspbMessageInstance = msg;
1925
+ }
1926
+ return obj;
1927
+ };
1928
+ }
1929
+
1930
+
1931
+ /**
1932
+ * Deserializes binary data (in protobuf wire format).
1933
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1934
+ * @return {!proto.DeletePriceConditionReq}
1935
+ */
1936
+ proto.DeletePriceConditionReq.deserializeBinary = function(bytes) {
1937
+ var reader = new jspb.BinaryReader(bytes);
1938
+ var msg = new proto.DeletePriceConditionReq;
1939
+ return proto.DeletePriceConditionReq.deserializeBinaryFromReader(msg, reader);
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * Deserializes binary data (in protobuf wire format) from the
1945
+ * given reader into the given message object.
1946
+ * @param {!proto.DeletePriceConditionReq} msg The message object to deserialize into.
1947
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1948
+ * @return {!proto.DeletePriceConditionReq}
1949
+ */
1950
+ proto.DeletePriceConditionReq.deserializeBinaryFromReader = function(msg, reader) {
1951
+ while (reader.nextField()) {
1952
+ if (reader.isEndGroup()) {
1953
+ break;
1954
+ }
1955
+ var field = reader.getFieldNumber();
1956
+ switch (field) {
1957
+ case 1:
1958
+ var value = /** @type {string} */ (reader.readString());
1959
+ msg.addReferenceIds(value);
1960
+ break;
1961
+ default:
1962
+ reader.skipField();
1963
+ break;
1964
+ }
1965
+ }
1966
+ return msg;
1967
+ };
1968
+
1969
+
1970
+ /**
1971
+ * Serializes the message to binary data (in protobuf wire format).
1972
+ * @return {!Uint8Array}
1973
+ */
1974
+ proto.DeletePriceConditionReq.prototype.serializeBinary = function() {
1975
+ var writer = new jspb.BinaryWriter();
1976
+ proto.DeletePriceConditionReq.serializeBinaryToWriter(this, writer);
1977
+ return writer.getResultBuffer();
1978
+ };
1979
+
1980
+
1981
+ /**
1982
+ * Serializes the given message to binary data (in protobuf wire
1983
+ * format), writing to the given BinaryWriter.
1984
+ * @param {!proto.DeletePriceConditionReq} message
1985
+ * @param {!jspb.BinaryWriter} writer
1986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1987
+ */
1988
+ proto.DeletePriceConditionReq.serializeBinaryToWriter = function(message, writer) {
1989
+ var f = undefined;
1990
+ f = message.getReferenceIdsList();
1991
+ if (f.length > 0) {
1992
+ writer.writeRepeatedString(
1993
+ 1,
1994
+ f
1995
+ );
1996
+ }
1997
+ };
1998
+
1999
+
2000
+ /**
2001
+ * repeated string reference_ids = 1;
2002
+ * @return {!Array<string>}
2003
+ */
2004
+ proto.DeletePriceConditionReq.prototype.getReferenceIdsList = function() {
2005
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2006
+ };
2007
+
2008
+
2009
+ /**
2010
+ * @param {!Array<string>} value
2011
+ * @return {!proto.DeletePriceConditionReq} returns this
2012
+ */
2013
+ proto.DeletePriceConditionReq.prototype.setReferenceIdsList = function(value) {
2014
+ return jspb.Message.setField(this, 1, value || []);
2015
+ };
2016
+
2017
+
2018
+ /**
2019
+ * @param {string} value
2020
+ * @param {number=} opt_index
2021
+ * @return {!proto.DeletePriceConditionReq} returns this
2022
+ */
2023
+ proto.DeletePriceConditionReq.prototype.addReferenceIds = function(value, opt_index) {
2024
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2025
+ };
2026
+
2027
+
2028
+ /**
2029
+ * Clears the list making it empty but non-null.
2030
+ * @return {!proto.DeletePriceConditionReq} returns this
2031
+ */
2032
+ proto.DeletePriceConditionReq.prototype.clearReferenceIdsList = function() {
2033
+ return this.setReferenceIdsList([]);
2034
+ };
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2041
+ /**
2042
+ * Creates an object representation of this proto.
2043
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2044
+ * Optional fields that are not set will be set to undefined.
2045
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2046
+ * For the list of reserved names please see:
2047
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2048
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2049
+ * JSPB instance for transitional soy proto support:
2050
+ * http://goto/soy-param-migration
2051
+ * @return {!Object}
2052
+ */
2053
+ proto.CreatePriceConditionResponse.prototype.toObject = function(opt_includeInstance) {
2054
+ return proto.CreatePriceConditionResponse.toObject(opt_includeInstance, this);
2055
+ };
2056
+
2057
+
2058
+ /**
2059
+ * Static version of the {@see toObject} method.
2060
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2061
+ * the JSPB instance for transitional soy proto support:
2062
+ * http://goto/soy-param-migration
2063
+ * @param {!proto.CreatePriceConditionResponse} msg The msg instance to transform.
2064
+ * @return {!Object}
2065
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2066
+ */
2067
+ proto.CreatePriceConditionResponse.toObject = function(includeInstance, msg) {
2068
+ var f, obj = {
2069
+ priceCondition: (f = msg.getPriceCondition()) && proto.PriceCondition.toObject(includeInstance, f),
2070
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2071
+ };
2072
+
2073
+ if (includeInstance) {
2074
+ obj.$jspbMessageInstance = msg;
2075
+ }
2076
+ return obj;
2077
+ };
2078
+ }
2079
+
2080
+
2081
+ /**
2082
+ * Deserializes binary data (in protobuf wire format).
2083
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2084
+ * @return {!proto.CreatePriceConditionResponse}
2085
+ */
2086
+ proto.CreatePriceConditionResponse.deserializeBinary = function(bytes) {
2087
+ var reader = new jspb.BinaryReader(bytes);
2088
+ var msg = new proto.CreatePriceConditionResponse;
2089
+ return proto.CreatePriceConditionResponse.deserializeBinaryFromReader(msg, reader);
2090
+ };
2091
+
2092
+
2093
+ /**
2094
+ * Deserializes binary data (in protobuf wire format) from the
2095
+ * given reader into the given message object.
2096
+ * @param {!proto.CreatePriceConditionResponse} msg The message object to deserialize into.
2097
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2098
+ * @return {!proto.CreatePriceConditionResponse}
2099
+ */
2100
+ proto.CreatePriceConditionResponse.deserializeBinaryFromReader = function(msg, reader) {
2101
+ while (reader.nextField()) {
2102
+ if (reader.isEndGroup()) {
2103
+ break;
2104
+ }
2105
+ var field = reader.getFieldNumber();
2106
+ switch (field) {
2107
+ case 1:
2108
+ var value = new proto.PriceCondition;
2109
+ reader.readMessage(value,proto.PriceCondition.deserializeBinaryFromReader);
2110
+ msg.setPriceCondition(value);
2111
+ break;
2112
+ case 2:
2113
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2114
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2115
+ msg.setMeta(value);
2116
+ break;
2117
+ default:
2118
+ reader.skipField();
2119
+ break;
2120
+ }
2121
+ }
2122
+ return msg;
2123
+ };
2124
+
2125
+
2126
+ /**
2127
+ * Serializes the message to binary data (in protobuf wire format).
2128
+ * @return {!Uint8Array}
2129
+ */
2130
+ proto.CreatePriceConditionResponse.prototype.serializeBinary = function() {
2131
+ var writer = new jspb.BinaryWriter();
2132
+ proto.CreatePriceConditionResponse.serializeBinaryToWriter(this, writer);
2133
+ return writer.getResultBuffer();
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * Serializes the given message to binary data (in protobuf wire
2139
+ * format), writing to the given BinaryWriter.
2140
+ * @param {!proto.CreatePriceConditionResponse} message
2141
+ * @param {!jspb.BinaryWriter} writer
2142
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2143
+ */
2144
+ proto.CreatePriceConditionResponse.serializeBinaryToWriter = function(message, writer) {
2145
+ var f = undefined;
2146
+ f = message.getPriceCondition();
2147
+ if (f != null) {
2148
+ writer.writeMessage(
2149
+ 1,
2150
+ f,
2151
+ proto.PriceCondition.serializeBinaryToWriter
2152
+ );
2153
+ }
2154
+ f = message.getMeta();
2155
+ if (f != null) {
2156
+ writer.writeMessage(
2157
+ 2,
2158
+ f,
2159
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2160
+ );
2161
+ }
2162
+ };
2163
+
2164
+
2165
+ /**
2166
+ * optional PriceCondition price_condition = 1;
2167
+ * @return {?proto.PriceCondition}
2168
+ */
2169
+ proto.CreatePriceConditionResponse.prototype.getPriceCondition = function() {
2170
+ return /** @type{?proto.PriceCondition} */ (
2171
+ jspb.Message.getWrapperField(this, proto.PriceCondition, 1));
2172
+ };
2173
+
2174
+
2175
+ /**
2176
+ * @param {?proto.PriceCondition|undefined} value
2177
+ * @return {!proto.CreatePriceConditionResponse} returns this
2178
+ */
2179
+ proto.CreatePriceConditionResponse.prototype.setPriceCondition = function(value) {
2180
+ return jspb.Message.setWrapperField(this, 1, value);
2181
+ };
2182
+
2183
+
2184
+ /**
2185
+ * Clears the message field making it undefined.
2186
+ * @return {!proto.CreatePriceConditionResponse} returns this
2187
+ */
2188
+ proto.CreatePriceConditionResponse.prototype.clearPriceCondition = function() {
2189
+ return this.setPriceCondition(undefined);
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * Returns whether this field is set.
2195
+ * @return {boolean}
2196
+ */
2197
+ proto.CreatePriceConditionResponse.prototype.hasPriceCondition = function() {
2198
+ return jspb.Message.getField(this, 1) != null;
2199
+ };
2200
+
2201
+
2202
+ /**
2203
+ * optional prisca.v1.global.meta.Meta meta = 2;
2204
+ * @return {?proto.prisca.v1.global.meta.Meta}
2205
+ */
2206
+ proto.CreatePriceConditionResponse.prototype.getMeta = function() {
2207
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2208
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2209
+ };
2210
+
2211
+
2212
+ /**
2213
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2214
+ * @return {!proto.CreatePriceConditionResponse} returns this
2215
+ */
2216
+ proto.CreatePriceConditionResponse.prototype.setMeta = function(value) {
2217
+ return jspb.Message.setWrapperField(this, 2, value);
2218
+ };
2219
+
2220
+
2221
+ /**
2222
+ * Clears the message field making it undefined.
2223
+ * @return {!proto.CreatePriceConditionResponse} returns this
2224
+ */
2225
+ proto.CreatePriceConditionResponse.prototype.clearMeta = function() {
2226
+ return this.setMeta(undefined);
2227
+ };
2228
+
2229
+
2230
+ /**
2231
+ * Returns whether this field is set.
2232
+ * @return {boolean}
2233
+ */
2234
+ proto.CreatePriceConditionResponse.prototype.hasMeta = function() {
2235
+ return jspb.Message.getField(this, 2) != null;
2236
+ };
2237
+
2238
+
2239
+
2240
+ /**
2241
+ * List of repeated fields within this message type.
2242
+ * @private {!Array<number>}
2243
+ * @const
2244
+ */
2245
+ proto.GetListPriceConditionResponse.repeatedFields_ = [1];
2246
+
2247
+
2248
+
2249
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2250
+ /**
2251
+ * Creates an object representation of this proto.
2252
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2253
+ * Optional fields that are not set will be set to undefined.
2254
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2255
+ * For the list of reserved names please see:
2256
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2257
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2258
+ * JSPB instance for transitional soy proto support:
2259
+ * http://goto/soy-param-migration
2260
+ * @return {!Object}
2261
+ */
2262
+ proto.GetListPriceConditionResponse.prototype.toObject = function(opt_includeInstance) {
2263
+ return proto.GetListPriceConditionResponse.toObject(opt_includeInstance, this);
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * Static version of the {@see toObject} method.
2269
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2270
+ * the JSPB instance for transitional soy proto support:
2271
+ * http://goto/soy-param-migration
2272
+ * @param {!proto.GetListPriceConditionResponse} msg The msg instance to transform.
2273
+ * @return {!Object}
2274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2275
+ */
2276
+ proto.GetListPriceConditionResponse.toObject = function(includeInstance, msg) {
2277
+ var f, obj = {
2278
+ priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
2279
+ proto.PriceCondition.toObject, includeInstance),
2280
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2281
+ };
2282
+
2283
+ if (includeInstance) {
2284
+ obj.$jspbMessageInstance = msg;
2285
+ }
2286
+ return obj;
2287
+ };
2288
+ }
2289
+
2290
+
2291
+ /**
2292
+ * Deserializes binary data (in protobuf wire format).
2293
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2294
+ * @return {!proto.GetListPriceConditionResponse}
2295
+ */
2296
+ proto.GetListPriceConditionResponse.deserializeBinary = function(bytes) {
2297
+ var reader = new jspb.BinaryReader(bytes);
2298
+ var msg = new proto.GetListPriceConditionResponse;
2299
+ return proto.GetListPriceConditionResponse.deserializeBinaryFromReader(msg, reader);
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * Deserializes binary data (in protobuf wire format) from the
2305
+ * given reader into the given message object.
2306
+ * @param {!proto.GetListPriceConditionResponse} msg The message object to deserialize into.
2307
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2308
+ * @return {!proto.GetListPriceConditionResponse}
2309
+ */
2310
+ proto.GetListPriceConditionResponse.deserializeBinaryFromReader = function(msg, reader) {
2311
+ while (reader.nextField()) {
2312
+ if (reader.isEndGroup()) {
2313
+ break;
2314
+ }
2315
+ var field = reader.getFieldNumber();
2316
+ switch (field) {
2317
+ case 1:
2318
+ var value = new proto.PriceCondition;
2319
+ reader.readMessage(value,proto.PriceCondition.deserializeBinaryFromReader);
2320
+ msg.addPriceCondition(value);
2321
+ break;
2322
+ case 2:
2323
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2324
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2325
+ msg.setMeta(value);
2326
+ break;
2327
+ default:
2328
+ reader.skipField();
2329
+ break;
2330
+ }
2331
+ }
2332
+ return msg;
2333
+ };
2334
+
2335
+
2336
+ /**
2337
+ * Serializes the message to binary data (in protobuf wire format).
2338
+ * @return {!Uint8Array}
2339
+ */
2340
+ proto.GetListPriceConditionResponse.prototype.serializeBinary = function() {
2341
+ var writer = new jspb.BinaryWriter();
2342
+ proto.GetListPriceConditionResponse.serializeBinaryToWriter(this, writer);
2343
+ return writer.getResultBuffer();
2344
+ };
2345
+
2346
+
2347
+ /**
2348
+ * Serializes the given message to binary data (in protobuf wire
2349
+ * format), writing to the given BinaryWriter.
2350
+ * @param {!proto.GetListPriceConditionResponse} message
2351
+ * @param {!jspb.BinaryWriter} writer
2352
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2353
+ */
2354
+ proto.GetListPriceConditionResponse.serializeBinaryToWriter = function(message, writer) {
2355
+ var f = undefined;
2356
+ f = message.getPriceConditionList();
2357
+ if (f.length > 0) {
2358
+ writer.writeRepeatedMessage(
2359
+ 1,
2360
+ f,
2361
+ proto.PriceCondition.serializeBinaryToWriter
2362
+ );
2363
+ }
2364
+ f = message.getMeta();
2365
+ if (f != null) {
2366
+ writer.writeMessage(
2367
+ 2,
2368
+ f,
2369
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2370
+ );
2371
+ }
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * repeated PriceCondition price_condition = 1;
2377
+ * @return {!Array<!proto.PriceCondition>}
2378
+ */
2379
+ proto.GetListPriceConditionResponse.prototype.getPriceConditionList = function() {
2380
+ return /** @type{!Array<!proto.PriceCondition>} */ (
2381
+ jspb.Message.getRepeatedWrapperField(this, proto.PriceCondition, 1));
2382
+ };
2383
+
2384
+
2385
+ /**
2386
+ * @param {!Array<!proto.PriceCondition>} value
2387
+ * @return {!proto.GetListPriceConditionResponse} returns this
2388
+ */
2389
+ proto.GetListPriceConditionResponse.prototype.setPriceConditionList = function(value) {
2390
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2391
+ };
2392
+
2393
+
2394
+ /**
2395
+ * @param {!proto.PriceCondition=} opt_value
2396
+ * @param {number=} opt_index
2397
+ * @return {!proto.PriceCondition}
2398
+ */
2399
+ proto.GetListPriceConditionResponse.prototype.addPriceCondition = function(opt_value, opt_index) {
2400
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PriceCondition, opt_index);
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * Clears the list making it empty but non-null.
2406
+ * @return {!proto.GetListPriceConditionResponse} returns this
2407
+ */
2408
+ proto.GetListPriceConditionResponse.prototype.clearPriceConditionList = function() {
2409
+ return this.setPriceConditionList([]);
2410
+ };
2411
+
2412
+
2413
+ /**
2414
+ * optional prisca.v1.global.meta.Meta meta = 2;
2415
+ * @return {?proto.prisca.v1.global.meta.Meta}
2416
+ */
2417
+ proto.GetListPriceConditionResponse.prototype.getMeta = function() {
2418
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2419
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2425
+ * @return {!proto.GetListPriceConditionResponse} returns this
2426
+ */
2427
+ proto.GetListPriceConditionResponse.prototype.setMeta = function(value) {
2428
+ return jspb.Message.setWrapperField(this, 2, value);
2429
+ };
2430
+
2431
+
2432
+ /**
2433
+ * Clears the message field making it undefined.
2434
+ * @return {!proto.GetListPriceConditionResponse} returns this
2435
+ */
2436
+ proto.GetListPriceConditionResponse.prototype.clearMeta = function() {
2437
+ return this.setMeta(undefined);
2438
+ };
2439
+
2440
+
2441
+ /**
2442
+ * Returns whether this field is set.
2443
+ * @return {boolean}
2444
+ */
2445
+ proto.GetListPriceConditionResponse.prototype.hasMeta = function() {
2446
+ return jspb.Message.getField(this, 2) != null;
2447
+ };
2448
+
2449
+
2450
+
2451
+
2452
+
2453
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2454
+ /**
2455
+ * Creates an object representation of this proto.
2456
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2457
+ * Optional fields that are not set will be set to undefined.
2458
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2459
+ * For the list of reserved names please see:
2460
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2461
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2462
+ * JSPB instance for transitional soy proto support:
2463
+ * http://goto/soy-param-migration
2464
+ * @return {!Object}
2465
+ */
2466
+ proto.UpdatePriceConditionResponse.prototype.toObject = function(opt_includeInstance) {
2467
+ return proto.UpdatePriceConditionResponse.toObject(opt_includeInstance, this);
2468
+ };
2469
+
2470
+
2471
+ /**
2472
+ * Static version of the {@see toObject} method.
2473
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2474
+ * the JSPB instance for transitional soy proto support:
2475
+ * http://goto/soy-param-migration
2476
+ * @param {!proto.UpdatePriceConditionResponse} msg The msg instance to transform.
2477
+ * @return {!Object}
2478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2479
+ */
2480
+ proto.UpdatePriceConditionResponse.toObject = function(includeInstance, msg) {
2481
+ var f, obj = {
2482
+ priceCondition: (f = msg.getPriceCondition()) && proto.PriceCondition.toObject(includeInstance, f),
2483
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2484
+ };
2485
+
2486
+ if (includeInstance) {
2487
+ obj.$jspbMessageInstance = msg;
2488
+ }
2489
+ return obj;
2490
+ };
2491
+ }
2492
+
2493
+
2494
+ /**
2495
+ * Deserializes binary data (in protobuf wire format).
2496
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2497
+ * @return {!proto.UpdatePriceConditionResponse}
2498
+ */
2499
+ proto.UpdatePriceConditionResponse.deserializeBinary = function(bytes) {
2500
+ var reader = new jspb.BinaryReader(bytes);
2501
+ var msg = new proto.UpdatePriceConditionResponse;
2502
+ return proto.UpdatePriceConditionResponse.deserializeBinaryFromReader(msg, reader);
2503
+ };
2504
+
2505
+
2506
+ /**
2507
+ * Deserializes binary data (in protobuf wire format) from the
2508
+ * given reader into the given message object.
2509
+ * @param {!proto.UpdatePriceConditionResponse} msg The message object to deserialize into.
2510
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2511
+ * @return {!proto.UpdatePriceConditionResponse}
2512
+ */
2513
+ proto.UpdatePriceConditionResponse.deserializeBinaryFromReader = function(msg, reader) {
2514
+ while (reader.nextField()) {
2515
+ if (reader.isEndGroup()) {
2516
+ break;
2517
+ }
2518
+ var field = reader.getFieldNumber();
2519
+ switch (field) {
2520
+ case 1:
2521
+ var value = new proto.PriceCondition;
2522
+ reader.readMessage(value,proto.PriceCondition.deserializeBinaryFromReader);
2523
+ msg.setPriceCondition(value);
2524
+ break;
2525
+ case 2:
2526
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2527
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2528
+ msg.setMeta(value);
2529
+ break;
2530
+ default:
2531
+ reader.skipField();
2532
+ break;
2533
+ }
2534
+ }
2535
+ return msg;
2536
+ };
2537
+
2538
+
2539
+ /**
2540
+ * Serializes the message to binary data (in protobuf wire format).
2541
+ * @return {!Uint8Array}
2542
+ */
2543
+ proto.UpdatePriceConditionResponse.prototype.serializeBinary = function() {
2544
+ var writer = new jspb.BinaryWriter();
2545
+ proto.UpdatePriceConditionResponse.serializeBinaryToWriter(this, writer);
2546
+ return writer.getResultBuffer();
2547
+ };
2548
+
2549
+
2550
+ /**
2551
+ * Serializes the given message to binary data (in protobuf wire
2552
+ * format), writing to the given BinaryWriter.
2553
+ * @param {!proto.UpdatePriceConditionResponse} message
2554
+ * @param {!jspb.BinaryWriter} writer
2555
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2556
+ */
2557
+ proto.UpdatePriceConditionResponse.serializeBinaryToWriter = function(message, writer) {
2558
+ var f = undefined;
2559
+ f = message.getPriceCondition();
2560
+ if (f != null) {
2561
+ writer.writeMessage(
2562
+ 1,
2563
+ f,
2564
+ proto.PriceCondition.serializeBinaryToWriter
2565
+ );
2566
+ }
2567
+ f = message.getMeta();
2568
+ if (f != null) {
2569
+ writer.writeMessage(
2570
+ 2,
2571
+ f,
2572
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2573
+ );
2574
+ }
2575
+ };
2576
+
2577
+
2578
+ /**
2579
+ * optional PriceCondition price_condition = 1;
2580
+ * @return {?proto.PriceCondition}
2581
+ */
2582
+ proto.UpdatePriceConditionResponse.prototype.getPriceCondition = function() {
2583
+ return /** @type{?proto.PriceCondition} */ (
2584
+ jspb.Message.getWrapperField(this, proto.PriceCondition, 1));
2585
+ };
2586
+
2587
+
2588
+ /**
2589
+ * @param {?proto.PriceCondition|undefined} value
2590
+ * @return {!proto.UpdatePriceConditionResponse} returns this
2591
+ */
2592
+ proto.UpdatePriceConditionResponse.prototype.setPriceCondition = function(value) {
2593
+ return jspb.Message.setWrapperField(this, 1, value);
2594
+ };
2595
+
2596
+
2597
+ /**
2598
+ * Clears the message field making it undefined.
2599
+ * @return {!proto.UpdatePriceConditionResponse} returns this
2600
+ */
2601
+ proto.UpdatePriceConditionResponse.prototype.clearPriceCondition = function() {
2602
+ return this.setPriceCondition(undefined);
2603
+ };
2604
+
2605
+
2606
+ /**
2607
+ * Returns whether this field is set.
2608
+ * @return {boolean}
2609
+ */
2610
+ proto.UpdatePriceConditionResponse.prototype.hasPriceCondition = function() {
2611
+ return jspb.Message.getField(this, 1) != null;
2612
+ };
2613
+
2614
+
2615
+ /**
2616
+ * optional prisca.v1.global.meta.Meta meta = 2;
2617
+ * @return {?proto.prisca.v1.global.meta.Meta}
2618
+ */
2619
+ proto.UpdatePriceConditionResponse.prototype.getMeta = function() {
2620
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2621
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2627
+ * @return {!proto.UpdatePriceConditionResponse} returns this
2628
+ */
2629
+ proto.UpdatePriceConditionResponse.prototype.setMeta = function(value) {
2630
+ return jspb.Message.setWrapperField(this, 2, value);
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * Clears the message field making it undefined.
2636
+ * @return {!proto.UpdatePriceConditionResponse} returns this
2637
+ */
2638
+ proto.UpdatePriceConditionResponse.prototype.clearMeta = function() {
2639
+ return this.setMeta(undefined);
2640
+ };
2641
+
2642
+
2643
+ /**
2644
+ * Returns whether this field is set.
2645
+ * @return {boolean}
2646
+ */
2647
+ proto.UpdatePriceConditionResponse.prototype.hasMeta = function() {
2648
+ return jspb.Message.getField(this, 2) != null;
2649
+ };
2650
+
2651
+
2652
+
2653
+
2654
+
2655
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2656
+ /**
2657
+ * Creates an object representation of this proto.
2658
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2659
+ * Optional fields that are not set will be set to undefined.
2660
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2661
+ * For the list of reserved names please see:
2662
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2663
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2664
+ * JSPB instance for transitional soy proto support:
2665
+ * http://goto/soy-param-migration
2666
+ * @return {!Object}
2667
+ */
2668
+ proto.GetByIdPriceConditionResponse.prototype.toObject = function(opt_includeInstance) {
2669
+ return proto.GetByIdPriceConditionResponse.toObject(opt_includeInstance, this);
2670
+ };
2671
+
2672
+
2673
+ /**
2674
+ * Static version of the {@see toObject} method.
2675
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2676
+ * the JSPB instance for transitional soy proto support:
2677
+ * http://goto/soy-param-migration
2678
+ * @param {!proto.GetByIdPriceConditionResponse} msg The msg instance to transform.
2679
+ * @return {!Object}
2680
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2681
+ */
2682
+ proto.GetByIdPriceConditionResponse.toObject = function(includeInstance, msg) {
2683
+ var f, obj = {
2684
+ priceCondition: (f = msg.getPriceCondition()) && proto.PriceCondition.toObject(includeInstance, f),
2685
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2686
+ };
2687
+
2688
+ if (includeInstance) {
2689
+ obj.$jspbMessageInstance = msg;
2690
+ }
2691
+ return obj;
2692
+ };
2693
+ }
2694
+
2695
+
2696
+ /**
2697
+ * Deserializes binary data (in protobuf wire format).
2698
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2699
+ * @return {!proto.GetByIdPriceConditionResponse}
2700
+ */
2701
+ proto.GetByIdPriceConditionResponse.deserializeBinary = function(bytes) {
2702
+ var reader = new jspb.BinaryReader(bytes);
2703
+ var msg = new proto.GetByIdPriceConditionResponse;
2704
+ return proto.GetByIdPriceConditionResponse.deserializeBinaryFromReader(msg, reader);
2705
+ };
2706
+
2707
+
2708
+ /**
2709
+ * Deserializes binary data (in protobuf wire format) from the
2710
+ * given reader into the given message object.
2711
+ * @param {!proto.GetByIdPriceConditionResponse} msg The message object to deserialize into.
2712
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2713
+ * @return {!proto.GetByIdPriceConditionResponse}
2714
+ */
2715
+ proto.GetByIdPriceConditionResponse.deserializeBinaryFromReader = function(msg, reader) {
2716
+ while (reader.nextField()) {
2717
+ if (reader.isEndGroup()) {
2718
+ break;
2719
+ }
2720
+ var field = reader.getFieldNumber();
2721
+ switch (field) {
2722
+ case 1:
2723
+ var value = new proto.PriceCondition;
2724
+ reader.readMessage(value,proto.PriceCondition.deserializeBinaryFromReader);
2725
+ msg.setPriceCondition(value);
2726
+ break;
2727
+ case 2:
2728
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2729
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2730
+ msg.setMeta(value);
2731
+ break;
2732
+ default:
2733
+ reader.skipField();
2734
+ break;
2735
+ }
2736
+ }
2737
+ return msg;
2738
+ };
2739
+
2740
+
2741
+ /**
2742
+ * Serializes the message to binary data (in protobuf wire format).
2743
+ * @return {!Uint8Array}
2744
+ */
2745
+ proto.GetByIdPriceConditionResponse.prototype.serializeBinary = function() {
2746
+ var writer = new jspb.BinaryWriter();
2747
+ proto.GetByIdPriceConditionResponse.serializeBinaryToWriter(this, writer);
2748
+ return writer.getResultBuffer();
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * Serializes the given message to binary data (in protobuf wire
2754
+ * format), writing to the given BinaryWriter.
2755
+ * @param {!proto.GetByIdPriceConditionResponse} message
2756
+ * @param {!jspb.BinaryWriter} writer
2757
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2758
+ */
2759
+ proto.GetByIdPriceConditionResponse.serializeBinaryToWriter = function(message, writer) {
2760
+ var f = undefined;
2761
+ f = message.getPriceCondition();
2762
+ if (f != null) {
2763
+ writer.writeMessage(
2764
+ 1,
2765
+ f,
2766
+ proto.PriceCondition.serializeBinaryToWriter
2767
+ );
2768
+ }
2769
+ f = message.getMeta();
2770
+ if (f != null) {
2771
+ writer.writeMessage(
2772
+ 2,
2773
+ f,
2774
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2775
+ );
2776
+ }
2777
+ };
2778
+
2779
+
2780
+ /**
2781
+ * optional PriceCondition price_condition = 1;
2782
+ * @return {?proto.PriceCondition}
2783
+ */
2784
+ proto.GetByIdPriceConditionResponse.prototype.getPriceCondition = function() {
2785
+ return /** @type{?proto.PriceCondition} */ (
2786
+ jspb.Message.getWrapperField(this, proto.PriceCondition, 1));
2787
+ };
2788
+
2789
+
2790
+ /**
2791
+ * @param {?proto.PriceCondition|undefined} value
2792
+ * @return {!proto.GetByIdPriceConditionResponse} returns this
2793
+ */
2794
+ proto.GetByIdPriceConditionResponse.prototype.setPriceCondition = function(value) {
2795
+ return jspb.Message.setWrapperField(this, 1, value);
2796
+ };
2797
+
2798
+
2799
+ /**
2800
+ * Clears the message field making it undefined.
2801
+ * @return {!proto.GetByIdPriceConditionResponse} returns this
2802
+ */
2803
+ proto.GetByIdPriceConditionResponse.prototype.clearPriceCondition = function() {
2804
+ return this.setPriceCondition(undefined);
2805
+ };
2806
+
2807
+
2808
+ /**
2809
+ * Returns whether this field is set.
2810
+ * @return {boolean}
2811
+ */
2812
+ proto.GetByIdPriceConditionResponse.prototype.hasPriceCondition = function() {
2813
+ return jspb.Message.getField(this, 1) != null;
2814
+ };
2815
+
2816
+
2817
+ /**
2818
+ * optional prisca.v1.global.meta.Meta meta = 2;
2819
+ * @return {?proto.prisca.v1.global.meta.Meta}
2820
+ */
2821
+ proto.GetByIdPriceConditionResponse.prototype.getMeta = function() {
2822
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2823
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2824
+ };
2825
+
2826
+
2827
+ /**
2828
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2829
+ * @return {!proto.GetByIdPriceConditionResponse} returns this
2830
+ */
2831
+ proto.GetByIdPriceConditionResponse.prototype.setMeta = function(value) {
2832
+ return jspb.Message.setWrapperField(this, 2, value);
2833
+ };
2834
+
2835
+
2836
+ /**
2837
+ * Clears the message field making it undefined.
2838
+ * @return {!proto.GetByIdPriceConditionResponse} returns this
2839
+ */
2840
+ proto.GetByIdPriceConditionResponse.prototype.clearMeta = function() {
2841
+ return this.setMeta(undefined);
2842
+ };
2843
+
2844
+
2845
+ /**
2846
+ * Returns whether this field is set.
2847
+ * @return {boolean}
2848
+ */
2849
+ proto.GetByIdPriceConditionResponse.prototype.hasMeta = function() {
2850
+ return jspb.Message.getField(this, 2) != null;
2851
+ };
2852
+
2853
+
2854
+
2855
+ /**
2856
+ * List of repeated fields within this message type.
2857
+ * @private {!Array<number>}
2858
+ * @const
2859
+ */
2860
+ proto.DeletePriceConditionRes.repeatedFields_ = [1];
2861
+
2862
+
2863
+
2864
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2865
+ /**
2866
+ * Creates an object representation of this proto.
2867
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2868
+ * Optional fields that are not set will be set to undefined.
2869
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2870
+ * For the list of reserved names please see:
2871
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2872
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2873
+ * JSPB instance for transitional soy proto support:
2874
+ * http://goto/soy-param-migration
2875
+ * @return {!Object}
2876
+ */
2877
+ proto.DeletePriceConditionRes.prototype.toObject = function(opt_includeInstance) {
2878
+ return proto.DeletePriceConditionRes.toObject(opt_includeInstance, this);
2879
+ };
2880
+
2881
+
2882
+ /**
2883
+ * Static version of the {@see toObject} method.
2884
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2885
+ * the JSPB instance for transitional soy proto support:
2886
+ * http://goto/soy-param-migration
2887
+ * @param {!proto.DeletePriceConditionRes} msg The msg instance to transform.
2888
+ * @return {!Object}
2889
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2890
+ */
2891
+ proto.DeletePriceConditionRes.toObject = function(includeInstance, msg) {
2892
+ var f, obj = {
2893
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2894
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2895
+ };
2896
+
2897
+ if (includeInstance) {
2898
+ obj.$jspbMessageInstance = msg;
2899
+ }
2900
+ return obj;
2901
+ };
2902
+ }
2903
+
2904
+
2905
+ /**
2906
+ * Deserializes binary data (in protobuf wire format).
2907
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2908
+ * @return {!proto.DeletePriceConditionRes}
2909
+ */
2910
+ proto.DeletePriceConditionRes.deserializeBinary = function(bytes) {
2911
+ var reader = new jspb.BinaryReader(bytes);
2912
+ var msg = new proto.DeletePriceConditionRes;
2913
+ return proto.DeletePriceConditionRes.deserializeBinaryFromReader(msg, reader);
2914
+ };
2915
+
2916
+
2917
+ /**
2918
+ * Deserializes binary data (in protobuf wire format) from the
2919
+ * given reader into the given message object.
2920
+ * @param {!proto.DeletePriceConditionRes} msg The message object to deserialize into.
2921
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2922
+ * @return {!proto.DeletePriceConditionRes}
2923
+ */
2924
+ proto.DeletePriceConditionRes.deserializeBinaryFromReader = function(msg, reader) {
2925
+ while (reader.nextField()) {
2926
+ if (reader.isEndGroup()) {
2927
+ break;
2928
+ }
2929
+ var field = reader.getFieldNumber();
2930
+ switch (field) {
2931
+ case 1:
2932
+ var value = /** @type {string} */ (reader.readString());
2933
+ msg.addReferenceIds(value);
2934
+ break;
2935
+ case 2:
2936
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2937
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2938
+ msg.setMeta(value);
2939
+ break;
2940
+ default:
2941
+ reader.skipField();
2942
+ break;
2943
+ }
2944
+ }
2945
+ return msg;
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * Serializes the message to binary data (in protobuf wire format).
2951
+ * @return {!Uint8Array}
2952
+ */
2953
+ proto.DeletePriceConditionRes.prototype.serializeBinary = function() {
2954
+ var writer = new jspb.BinaryWriter();
2955
+ proto.DeletePriceConditionRes.serializeBinaryToWriter(this, writer);
2956
+ return writer.getResultBuffer();
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * Serializes the given message to binary data (in protobuf wire
2962
+ * format), writing to the given BinaryWriter.
2963
+ * @param {!proto.DeletePriceConditionRes} message
2964
+ * @param {!jspb.BinaryWriter} writer
2965
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2966
+ */
2967
+ proto.DeletePriceConditionRes.serializeBinaryToWriter = function(message, writer) {
2968
+ var f = undefined;
2969
+ f = message.getReferenceIdsList();
2970
+ if (f.length > 0) {
2971
+ writer.writeRepeatedString(
2972
+ 1,
2973
+ f
2974
+ );
2975
+ }
2976
+ f = message.getMeta();
2977
+ if (f != null) {
2978
+ writer.writeMessage(
2979
+ 2,
2980
+ f,
2981
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2982
+ );
2983
+ }
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * repeated string reference_ids = 1;
2989
+ * @return {!Array<string>}
2990
+ */
2991
+ proto.DeletePriceConditionRes.prototype.getReferenceIdsList = function() {
2992
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2993
+ };
2994
+
2995
+
2996
+ /**
2997
+ * @param {!Array<string>} value
2998
+ * @return {!proto.DeletePriceConditionRes} returns this
2999
+ */
3000
+ proto.DeletePriceConditionRes.prototype.setReferenceIdsList = function(value) {
3001
+ return jspb.Message.setField(this, 1, value || []);
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * @param {string} value
3007
+ * @param {number=} opt_index
3008
+ * @return {!proto.DeletePriceConditionRes} returns this
3009
+ */
3010
+ proto.DeletePriceConditionRes.prototype.addReferenceIds = function(value, opt_index) {
3011
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3012
+ };
3013
+
3014
+
3015
+ /**
3016
+ * Clears the list making it empty but non-null.
3017
+ * @return {!proto.DeletePriceConditionRes} returns this
3018
+ */
3019
+ proto.DeletePriceConditionRes.prototype.clearReferenceIdsList = function() {
3020
+ return this.setReferenceIdsList([]);
3021
+ };
3022
+
3023
+
3024
+ /**
3025
+ * optional prisca.v1.global.meta.Meta meta = 2;
3026
+ * @return {?proto.prisca.v1.global.meta.Meta}
3027
+ */
3028
+ proto.DeletePriceConditionRes.prototype.getMeta = function() {
3029
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3030
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3036
+ * @return {!proto.DeletePriceConditionRes} returns this
3037
+ */
3038
+ proto.DeletePriceConditionRes.prototype.setMeta = function(value) {
3039
+ return jspb.Message.setWrapperField(this, 2, value);
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * Clears the message field making it undefined.
3045
+ * @return {!proto.DeletePriceConditionRes} returns this
3046
+ */
3047
+ proto.DeletePriceConditionRes.prototype.clearMeta = function() {
3048
+ return this.setMeta(undefined);
3049
+ };
3050
+
3051
+
3052
+ /**
3053
+ * Returns whether this field is set.
3054
+ * @return {boolean}
3055
+ */
3056
+ proto.DeletePriceConditionRes.prototype.hasMeta = function() {
3057
+ return jspb.Message.getField(this, 2) != null;
3058
+ };
3059
+
3060
+
3061
+ goog.object.extend(exports, proto);