@aldiokta/protocgen 1.1.43 → 1.1.45

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