@aldiokta/protocgen 1.1.45 → 1.1.46

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