@aldiokta/protocgen 1.1.23 → 1.1.24

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