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