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