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