@aldiokta/protocgen 1.1.9 → 1.1.19

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