@aldiokta/protocgen 1.1.19 → 1.1.20

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