@aldiokta/protocgen 1.1.66 → 1.1.68

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