@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,3498 @@
1
+ // source: prisca/v1/customer/customer.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.BaseCustomerRequest', null, global);
21
+ goog.exportSymbol('proto.CreateCustomerRequest', null, global);
22
+ goog.exportSymbol('proto.CreateCustomerResponse', null, global);
23
+ goog.exportSymbol('proto.Customer', null, global);
24
+ goog.exportSymbol('proto.DeleteCustomerRequest', null, global);
25
+ goog.exportSymbol('proto.DeleteCustomerResponse', null, global);
26
+ goog.exportSymbol('proto.GetCustomerByIdRequest', null, global);
27
+ goog.exportSymbol('proto.GetCustomerByIdResponse', null, global);
28
+ goog.exportSymbol('proto.GetListCustomerRequest', null, global);
29
+ goog.exportSymbol('proto.GetListCustomerResponse', null, global);
30
+ goog.exportSymbol('proto.UpdateCustomerRequest', null, global);
31
+ goog.exportSymbol('proto.UpdateCustomerResponse', null, global);
32
+ /**
33
+ * Generated by JsPbCodeGenerator.
34
+ * @param {Array=} opt_data Optional initial data array, typically from a
35
+ * server response, or constructed directly in Javascript. The array is used
36
+ * in place and becomes part of the constructed object. It is not cloned.
37
+ * If no data is provided, the constructed object will be empty, but still
38
+ * valid.
39
+ * @extends {jspb.Message}
40
+ * @constructor
41
+ */
42
+ proto.Customer = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.Customer, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.Customer.displayName = 'proto.Customer';
52
+ }
53
+ /**
54
+ * Generated by JsPbCodeGenerator.
55
+ * @param {Array=} opt_data Optional initial data array, typically from a
56
+ * server response, or constructed directly in Javascript. The array is used
57
+ * in place and becomes part of the constructed object. It is not cloned.
58
+ * If no data is provided, the constructed object will be empty, but still
59
+ * valid.
60
+ * @extends {jspb.Message}
61
+ * @constructor
62
+ */
63
+ proto.BaseCustomerRequest = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.BaseCustomerRequest, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.BaseCustomerRequest.displayName = 'proto.BaseCustomerRequest';
73
+ }
74
+ /**
75
+ * Generated by JsPbCodeGenerator.
76
+ * @param {Array=} opt_data Optional initial data array, typically from a
77
+ * server response, or constructed directly in Javascript. The array is used
78
+ * in place and becomes part of the constructed object. It is not cloned.
79
+ * If no data is provided, the constructed object will be empty, but still
80
+ * valid.
81
+ * @extends {jspb.Message}
82
+ * @constructor
83
+ */
84
+ proto.GetCustomerByIdRequest = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.GetCustomerByIdRequest, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.GetCustomerByIdRequest.displayName = 'proto.GetCustomerByIdRequest';
94
+ }
95
+ /**
96
+ * Generated by JsPbCodeGenerator.
97
+ * @param {Array=} opt_data Optional initial data array, typically from a
98
+ * server response, or constructed directly in Javascript. The array is used
99
+ * in place and becomes part of the constructed object. It is not cloned.
100
+ * If no data is provided, the constructed object will be empty, but still
101
+ * valid.
102
+ * @extends {jspb.Message}
103
+ * @constructor
104
+ */
105
+ proto.GetListCustomerRequest = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.GetListCustomerRequest, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ /**
111
+ * @public
112
+ * @override
113
+ */
114
+ proto.GetListCustomerRequest.displayName = 'proto.GetListCustomerRequest';
115
+ }
116
+ /**
117
+ * Generated by JsPbCodeGenerator.
118
+ * @param {Array=} opt_data Optional initial data array, typically from a
119
+ * server response, or constructed directly in Javascript. The array is used
120
+ * in place and becomes part of the constructed object. It is not cloned.
121
+ * If no data is provided, the constructed object will be empty, but still
122
+ * valid.
123
+ * @extends {jspb.Message}
124
+ * @constructor
125
+ */
126
+ proto.CreateCustomerRequest = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
128
+ };
129
+ goog.inherits(proto.CreateCustomerRequest, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.CreateCustomerRequest.displayName = 'proto.CreateCustomerRequest';
136
+ }
137
+ /**
138
+ * Generated by JsPbCodeGenerator.
139
+ * @param {Array=} opt_data Optional initial data array, typically from a
140
+ * server response, or constructed directly in Javascript. The array is used
141
+ * in place and becomes part of the constructed object. It is not cloned.
142
+ * If no data is provided, the constructed object will be empty, but still
143
+ * valid.
144
+ * @extends {jspb.Message}
145
+ * @constructor
146
+ */
147
+ proto.UpdateCustomerRequest = function(opt_data) {
148
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
+ };
150
+ goog.inherits(proto.UpdateCustomerRequest, jspb.Message);
151
+ if (goog.DEBUG && !COMPILED) {
152
+ /**
153
+ * @public
154
+ * @override
155
+ */
156
+ proto.UpdateCustomerRequest.displayName = 'proto.UpdateCustomerRequest';
157
+ }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.DeleteCustomerRequest = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteCustomerRequest.repeatedFields_, null);
170
+ };
171
+ goog.inherits(proto.DeleteCustomerRequest, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.DeleteCustomerRequest.displayName = 'proto.DeleteCustomerRequest';
178
+ }
179
+ /**
180
+ * Generated by JsPbCodeGenerator.
181
+ * @param {Array=} opt_data Optional initial data array, typically from a
182
+ * server response, or constructed directly in Javascript. The array is used
183
+ * in place and becomes part of the constructed object. It is not cloned.
184
+ * If no data is provided, the constructed object will be empty, but still
185
+ * valid.
186
+ * @extends {jspb.Message}
187
+ * @constructor
188
+ */
189
+ proto.CreateCustomerResponse = function(opt_data) {
190
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
191
+ };
192
+ goog.inherits(proto.CreateCustomerResponse, jspb.Message);
193
+ if (goog.DEBUG && !COMPILED) {
194
+ /**
195
+ * @public
196
+ * @override
197
+ */
198
+ proto.CreateCustomerResponse.displayName = 'proto.CreateCustomerResponse';
199
+ }
200
+ /**
201
+ * Generated by JsPbCodeGenerator.
202
+ * @param {Array=} opt_data Optional initial data array, typically from a
203
+ * server response, or constructed directly in Javascript. The array is used
204
+ * in place and becomes part of the constructed object. It is not cloned.
205
+ * If no data is provided, the constructed object will be empty, but still
206
+ * valid.
207
+ * @extends {jspb.Message}
208
+ * @constructor
209
+ */
210
+ proto.UpdateCustomerResponse = function(opt_data) {
211
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
212
+ };
213
+ goog.inherits(proto.UpdateCustomerResponse, jspb.Message);
214
+ if (goog.DEBUG && !COMPILED) {
215
+ /**
216
+ * @public
217
+ * @override
218
+ */
219
+ proto.UpdateCustomerResponse.displayName = 'proto.UpdateCustomerResponse';
220
+ }
221
+ /**
222
+ * Generated by JsPbCodeGenerator.
223
+ * @param {Array=} opt_data Optional initial data array, typically from a
224
+ * server response, or constructed directly in Javascript. The array is used
225
+ * in place and becomes part of the constructed object. It is not cloned.
226
+ * If no data is provided, the constructed object will be empty, but still
227
+ * valid.
228
+ * @extends {jspb.Message}
229
+ * @constructor
230
+ */
231
+ proto.GetCustomerByIdResponse = function(opt_data) {
232
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
233
+ };
234
+ goog.inherits(proto.GetCustomerByIdResponse, jspb.Message);
235
+ if (goog.DEBUG && !COMPILED) {
236
+ /**
237
+ * @public
238
+ * @override
239
+ */
240
+ proto.GetCustomerByIdResponse.displayName = 'proto.GetCustomerByIdResponse';
241
+ }
242
+ /**
243
+ * Generated by JsPbCodeGenerator.
244
+ * @param {Array=} opt_data Optional initial data array, typically from a
245
+ * server response, or constructed directly in Javascript. The array is used
246
+ * in place and becomes part of the constructed object. It is not cloned.
247
+ * If no data is provided, the constructed object will be empty, but still
248
+ * valid.
249
+ * @extends {jspb.Message}
250
+ * @constructor
251
+ */
252
+ proto.GetListCustomerResponse = function(opt_data) {
253
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListCustomerResponse.repeatedFields_, null);
254
+ };
255
+ goog.inherits(proto.GetListCustomerResponse, jspb.Message);
256
+ if (goog.DEBUG && !COMPILED) {
257
+ /**
258
+ * @public
259
+ * @override
260
+ */
261
+ proto.GetListCustomerResponse.displayName = 'proto.GetListCustomerResponse';
262
+ }
263
+ /**
264
+ * Generated by JsPbCodeGenerator.
265
+ * @param {Array=} opt_data Optional initial data array, typically from a
266
+ * server response, or constructed directly in Javascript. The array is used
267
+ * in place and becomes part of the constructed object. It is not cloned.
268
+ * If no data is provided, the constructed object will be empty, but still
269
+ * valid.
270
+ * @extends {jspb.Message}
271
+ * @constructor
272
+ */
273
+ proto.DeleteCustomerResponse = function(opt_data) {
274
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteCustomerResponse.repeatedFields_, null);
275
+ };
276
+ goog.inherits(proto.DeleteCustomerResponse, jspb.Message);
277
+ if (goog.DEBUG && !COMPILED) {
278
+ /**
279
+ * @public
280
+ * @override
281
+ */
282
+ proto.DeleteCustomerResponse.displayName = 'proto.DeleteCustomerResponse';
283
+ }
284
+
285
+
286
+
287
+ if (jspb.Message.GENERATE_TO_OBJECT) {
288
+ /**
289
+ * Creates an object representation of this proto.
290
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
291
+ * Optional fields that are not set will be set to undefined.
292
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
293
+ * For the list of reserved names please see:
294
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
295
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
296
+ * JSPB instance for transitional soy proto support:
297
+ * http://goto/soy-param-migration
298
+ * @return {!Object}
299
+ */
300
+ proto.Customer.prototype.toObject = function(opt_includeInstance) {
301
+ return proto.Customer.toObject(opt_includeInstance, this);
302
+ };
303
+
304
+
305
+ /**
306
+ * Static version of the {@see toObject} method.
307
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
308
+ * the JSPB instance for transitional soy proto support:
309
+ * http://goto/soy-param-migration
310
+ * @param {!proto.Customer} msg The msg instance to transform.
311
+ * @return {!Object}
312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
313
+ */
314
+ proto.Customer.toObject = function(includeInstance, msg) {
315
+ var f, obj = {
316
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
317
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
318
+ customerNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
319
+ customerAccountGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
320
+ businessPartnerReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
321
+ name: jspb.Message.getFieldWithDefault(msg, 6, ""),
322
+ street: jspb.Message.getFieldWithDefault(msg, 7, ""),
323
+ houseNumber: jspb.Message.getFieldWithDefault(msg, 8, ""),
324
+ postalCode: jspb.Message.getFieldWithDefault(msg, 9, ""),
325
+ village: jspb.Message.getFieldWithDefault(msg, 10, ""),
326
+ city: jspb.Message.getFieldWithDefault(msg, 11, ""),
327
+ district: jspb.Message.getFieldWithDefault(msg, 12, ""),
328
+ province: jspb.Message.getFieldWithDefault(msg, 13, ""),
329
+ country: jspb.Message.getFieldWithDefault(msg, 14, ""),
330
+ npwp: jspb.Message.getFieldWithDefault(msg, 15, ""),
331
+ bankAccounts: jspb.Message.getFieldWithDefault(msg, 16, ""),
332
+ phoneNumber: jspb.Message.getFieldWithDefault(msg, 17, ""),
333
+ email: jspb.Message.getFieldWithDefault(msg, 18, ""),
334
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 19, ""),
335
+ createdAt: jspb.Message.getFieldWithDefault(msg, 20, ""),
336
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 21, ""),
337
+ createdBy: jspb.Message.getFieldWithDefault(msg, 22, ""),
338
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 23, "")
339
+ };
340
+
341
+ if (includeInstance) {
342
+ obj.$jspbMessageInstance = msg;
343
+ }
344
+ return obj;
345
+ };
346
+ }
347
+
348
+
349
+ /**
350
+ * Deserializes binary data (in protobuf wire format).
351
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
352
+ * @return {!proto.Customer}
353
+ */
354
+ proto.Customer.deserializeBinary = function(bytes) {
355
+ var reader = new jspb.BinaryReader(bytes);
356
+ var msg = new proto.Customer;
357
+ return proto.Customer.deserializeBinaryFromReader(msg, reader);
358
+ };
359
+
360
+
361
+ /**
362
+ * Deserializes binary data (in protobuf wire format) from the
363
+ * given reader into the given message object.
364
+ * @param {!proto.Customer} msg The message object to deserialize into.
365
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
366
+ * @return {!proto.Customer}
367
+ */
368
+ proto.Customer.deserializeBinaryFromReader = function(msg, reader) {
369
+ while (reader.nextField()) {
370
+ if (reader.isEndGroup()) {
371
+ break;
372
+ }
373
+ var field = reader.getFieldNumber();
374
+ switch (field) {
375
+ case 1:
376
+ var value = /** @type {number} */ (reader.readInt64());
377
+ msg.setId(value);
378
+ break;
379
+ case 2:
380
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
381
+ msg.setReferencesId(value);
382
+ break;
383
+ case 3:
384
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
385
+ msg.setCustomerNumber(value);
386
+ break;
387
+ case 4:
388
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
389
+ msg.setCustomerAccountGroupReferencesId(value);
390
+ break;
391
+ case 5:
392
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
393
+ msg.setBusinessPartnerReferencesId(value);
394
+ break;
395
+ case 6:
396
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
397
+ msg.setName(value);
398
+ break;
399
+ case 7:
400
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
401
+ msg.setStreet(value);
402
+ break;
403
+ case 8:
404
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
405
+ msg.setHouseNumber(value);
406
+ break;
407
+ case 9:
408
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
409
+ msg.setPostalCode(value);
410
+ break;
411
+ case 10:
412
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
413
+ msg.setVillage(value);
414
+ break;
415
+ case 11:
416
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
417
+ msg.setCity(value);
418
+ break;
419
+ case 12:
420
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
421
+ msg.setDistrict(value);
422
+ break;
423
+ case 13:
424
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
425
+ msg.setProvince(value);
426
+ break;
427
+ case 14:
428
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
429
+ msg.setCountry(value);
430
+ break;
431
+ case 15:
432
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
433
+ msg.setNpwp(value);
434
+ break;
435
+ case 16:
436
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
437
+ msg.setBankAccounts(value);
438
+ break;
439
+ case 17:
440
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
441
+ msg.setPhoneNumber(value);
442
+ break;
443
+ case 18:
444
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
445
+ msg.setEmail(value);
446
+ break;
447
+ case 19:
448
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
449
+ msg.setCompaniesReferencesId(value);
450
+ break;
451
+ case 20:
452
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
453
+ msg.setCreatedAt(value);
454
+ break;
455
+ case 21:
456
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
457
+ msg.setUpdatedAt(value);
458
+ break;
459
+ case 22:
460
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
461
+ msg.setCreatedBy(value);
462
+ break;
463
+ case 23:
464
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
465
+ msg.setUpdatedBy(value);
466
+ break;
467
+ default:
468
+ reader.skipField();
469
+ break;
470
+ }
471
+ }
472
+ return msg;
473
+ };
474
+
475
+
476
+ /**
477
+ * Serializes the message to binary data (in protobuf wire format).
478
+ * @return {!Uint8Array}
479
+ */
480
+ proto.Customer.prototype.serializeBinary = function() {
481
+ var writer = new jspb.BinaryWriter();
482
+ proto.Customer.serializeBinaryToWriter(this, writer);
483
+ return writer.getResultBuffer();
484
+ };
485
+
486
+
487
+ /**
488
+ * Serializes the given message to binary data (in protobuf wire
489
+ * format), writing to the given BinaryWriter.
490
+ * @param {!proto.Customer} message
491
+ * @param {!jspb.BinaryWriter} writer
492
+ * @suppress {unusedLocalVariables} f is only used for nested messages
493
+ */
494
+ proto.Customer.serializeBinaryToWriter = function(message, writer) {
495
+ var f = undefined;
496
+ f = message.getId();
497
+ if (f !== 0) {
498
+ writer.writeInt64(
499
+ 1,
500
+ f
501
+ );
502
+ }
503
+ f = message.getReferencesId();
504
+ if (f.length > 0) {
505
+ writer.writeString(
506
+ 2,
507
+ f
508
+ );
509
+ }
510
+ f = message.getCustomerNumber();
511
+ if (f.length > 0) {
512
+ writer.writeString(
513
+ 3,
514
+ f
515
+ );
516
+ }
517
+ f = message.getCustomerAccountGroupReferencesId();
518
+ if (f.length > 0) {
519
+ writer.writeString(
520
+ 4,
521
+ f
522
+ );
523
+ }
524
+ f = message.getBusinessPartnerReferencesId();
525
+ if (f.length > 0) {
526
+ writer.writeString(
527
+ 5,
528
+ f
529
+ );
530
+ }
531
+ f = message.getName();
532
+ if (f.length > 0) {
533
+ writer.writeString(
534
+ 6,
535
+ f
536
+ );
537
+ }
538
+ f = message.getStreet();
539
+ if (f.length > 0) {
540
+ writer.writeString(
541
+ 7,
542
+ f
543
+ );
544
+ }
545
+ f = message.getHouseNumber();
546
+ if (f.length > 0) {
547
+ writer.writeString(
548
+ 8,
549
+ f
550
+ );
551
+ }
552
+ f = message.getPostalCode();
553
+ if (f.length > 0) {
554
+ writer.writeString(
555
+ 9,
556
+ f
557
+ );
558
+ }
559
+ f = message.getVillage();
560
+ if (f.length > 0) {
561
+ writer.writeString(
562
+ 10,
563
+ f
564
+ );
565
+ }
566
+ f = message.getCity();
567
+ if (f.length > 0) {
568
+ writer.writeString(
569
+ 11,
570
+ f
571
+ );
572
+ }
573
+ f = message.getDistrict();
574
+ if (f.length > 0) {
575
+ writer.writeString(
576
+ 12,
577
+ f
578
+ );
579
+ }
580
+ f = message.getProvince();
581
+ if (f.length > 0) {
582
+ writer.writeString(
583
+ 13,
584
+ f
585
+ );
586
+ }
587
+ f = message.getCountry();
588
+ if (f.length > 0) {
589
+ writer.writeString(
590
+ 14,
591
+ f
592
+ );
593
+ }
594
+ f = message.getNpwp();
595
+ if (f.length > 0) {
596
+ writer.writeString(
597
+ 15,
598
+ f
599
+ );
600
+ }
601
+ f = message.getBankAccounts();
602
+ if (f.length > 0) {
603
+ writer.writeString(
604
+ 16,
605
+ f
606
+ );
607
+ }
608
+ f = message.getPhoneNumber();
609
+ if (f.length > 0) {
610
+ writer.writeString(
611
+ 17,
612
+ f
613
+ );
614
+ }
615
+ f = message.getEmail();
616
+ if (f.length > 0) {
617
+ writer.writeString(
618
+ 18,
619
+ f
620
+ );
621
+ }
622
+ f = message.getCompaniesReferencesId();
623
+ if (f.length > 0) {
624
+ writer.writeString(
625
+ 19,
626
+ f
627
+ );
628
+ }
629
+ f = message.getCreatedAt();
630
+ if (f.length > 0) {
631
+ writer.writeString(
632
+ 20,
633
+ f
634
+ );
635
+ }
636
+ f = message.getUpdatedAt();
637
+ if (f.length > 0) {
638
+ writer.writeString(
639
+ 21,
640
+ f
641
+ );
642
+ }
643
+ f = message.getCreatedBy();
644
+ if (f.length > 0) {
645
+ writer.writeString(
646
+ 22,
647
+ f
648
+ );
649
+ }
650
+ f = message.getUpdatedBy();
651
+ if (f.length > 0) {
652
+ writer.writeString(
653
+ 23,
654
+ f
655
+ );
656
+ }
657
+ };
658
+
659
+
660
+ /**
661
+ * optional int64 id = 1;
662
+ * @return {number}
663
+ */
664
+ proto.Customer.prototype.getId = function() {
665
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
666
+ };
667
+
668
+
669
+ /**
670
+ * @param {number} value
671
+ * @return {!proto.Customer} returns this
672
+ */
673
+ proto.Customer.prototype.setId = function(value) {
674
+ return jspb.Message.setProto3IntField(this, 1, value);
675
+ };
676
+
677
+
678
+ /**
679
+ * optional string references_id = 2;
680
+ * @return {string}
681
+ */
682
+ proto.Customer.prototype.getReferencesId = function() {
683
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
684
+ };
685
+
686
+
687
+ /**
688
+ * @param {string} value
689
+ * @return {!proto.Customer} returns this
690
+ */
691
+ proto.Customer.prototype.setReferencesId = function(value) {
692
+ return jspb.Message.setProto3StringField(this, 2, value);
693
+ };
694
+
695
+
696
+ /**
697
+ * optional string customer_number = 3;
698
+ * @return {string}
699
+ */
700
+ proto.Customer.prototype.getCustomerNumber = function() {
701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
702
+ };
703
+
704
+
705
+ /**
706
+ * @param {string} value
707
+ * @return {!proto.Customer} returns this
708
+ */
709
+ proto.Customer.prototype.setCustomerNumber = function(value) {
710
+ return jspb.Message.setProto3StringField(this, 3, value);
711
+ };
712
+
713
+
714
+ /**
715
+ * optional string customer_account_group_references_id = 4;
716
+ * @return {string}
717
+ */
718
+ proto.Customer.prototype.getCustomerAccountGroupReferencesId = function() {
719
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
720
+ };
721
+
722
+
723
+ /**
724
+ * @param {string} value
725
+ * @return {!proto.Customer} returns this
726
+ */
727
+ proto.Customer.prototype.setCustomerAccountGroupReferencesId = function(value) {
728
+ return jspb.Message.setProto3StringField(this, 4, value);
729
+ };
730
+
731
+
732
+ /**
733
+ * optional string business_partner_references_id = 5;
734
+ * @return {string}
735
+ */
736
+ proto.Customer.prototype.getBusinessPartnerReferencesId = function() {
737
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
738
+ };
739
+
740
+
741
+ /**
742
+ * @param {string} value
743
+ * @return {!proto.Customer} returns this
744
+ */
745
+ proto.Customer.prototype.setBusinessPartnerReferencesId = function(value) {
746
+ return jspb.Message.setProto3StringField(this, 5, value);
747
+ };
748
+
749
+
750
+ /**
751
+ * optional string name = 6;
752
+ * @return {string}
753
+ */
754
+ proto.Customer.prototype.getName = function() {
755
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
756
+ };
757
+
758
+
759
+ /**
760
+ * @param {string} value
761
+ * @return {!proto.Customer} returns this
762
+ */
763
+ proto.Customer.prototype.setName = function(value) {
764
+ return jspb.Message.setProto3StringField(this, 6, value);
765
+ };
766
+
767
+
768
+ /**
769
+ * optional string street = 7;
770
+ * @return {string}
771
+ */
772
+ proto.Customer.prototype.getStreet = function() {
773
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {string} value
779
+ * @return {!proto.Customer} returns this
780
+ */
781
+ proto.Customer.prototype.setStreet = function(value) {
782
+ return jspb.Message.setProto3StringField(this, 7, value);
783
+ };
784
+
785
+
786
+ /**
787
+ * optional string house_number = 8;
788
+ * @return {string}
789
+ */
790
+ proto.Customer.prototype.getHouseNumber = function() {
791
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
792
+ };
793
+
794
+
795
+ /**
796
+ * @param {string} value
797
+ * @return {!proto.Customer} returns this
798
+ */
799
+ proto.Customer.prototype.setHouseNumber = function(value) {
800
+ return jspb.Message.setProto3StringField(this, 8, value);
801
+ };
802
+
803
+
804
+ /**
805
+ * optional string postal_code = 9;
806
+ * @return {string}
807
+ */
808
+ proto.Customer.prototype.getPostalCode = function() {
809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
810
+ };
811
+
812
+
813
+ /**
814
+ * @param {string} value
815
+ * @return {!proto.Customer} returns this
816
+ */
817
+ proto.Customer.prototype.setPostalCode = function(value) {
818
+ return jspb.Message.setProto3StringField(this, 9, value);
819
+ };
820
+
821
+
822
+ /**
823
+ * optional string village = 10;
824
+ * @return {string}
825
+ */
826
+ proto.Customer.prototype.getVillage = function() {
827
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
828
+ };
829
+
830
+
831
+ /**
832
+ * @param {string} value
833
+ * @return {!proto.Customer} returns this
834
+ */
835
+ proto.Customer.prototype.setVillage = function(value) {
836
+ return jspb.Message.setProto3StringField(this, 10, value);
837
+ };
838
+
839
+
840
+ /**
841
+ * optional string city = 11;
842
+ * @return {string}
843
+ */
844
+ proto.Customer.prototype.getCity = function() {
845
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
846
+ };
847
+
848
+
849
+ /**
850
+ * @param {string} value
851
+ * @return {!proto.Customer} returns this
852
+ */
853
+ proto.Customer.prototype.setCity = function(value) {
854
+ return jspb.Message.setProto3StringField(this, 11, value);
855
+ };
856
+
857
+
858
+ /**
859
+ * optional string district = 12;
860
+ * @return {string}
861
+ */
862
+ proto.Customer.prototype.getDistrict = function() {
863
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
864
+ };
865
+
866
+
867
+ /**
868
+ * @param {string} value
869
+ * @return {!proto.Customer} returns this
870
+ */
871
+ proto.Customer.prototype.setDistrict = function(value) {
872
+ return jspb.Message.setProto3StringField(this, 12, value);
873
+ };
874
+
875
+
876
+ /**
877
+ * optional string province = 13;
878
+ * @return {string}
879
+ */
880
+ proto.Customer.prototype.getProvince = function() {
881
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
882
+ };
883
+
884
+
885
+ /**
886
+ * @param {string} value
887
+ * @return {!proto.Customer} returns this
888
+ */
889
+ proto.Customer.prototype.setProvince = function(value) {
890
+ return jspb.Message.setProto3StringField(this, 13, value);
891
+ };
892
+
893
+
894
+ /**
895
+ * optional string country = 14;
896
+ * @return {string}
897
+ */
898
+ proto.Customer.prototype.getCountry = function() {
899
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
900
+ };
901
+
902
+
903
+ /**
904
+ * @param {string} value
905
+ * @return {!proto.Customer} returns this
906
+ */
907
+ proto.Customer.prototype.setCountry = function(value) {
908
+ return jspb.Message.setProto3StringField(this, 14, value);
909
+ };
910
+
911
+
912
+ /**
913
+ * optional string npwp = 15;
914
+ * @return {string}
915
+ */
916
+ proto.Customer.prototype.getNpwp = function() {
917
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
918
+ };
919
+
920
+
921
+ /**
922
+ * @param {string} value
923
+ * @return {!proto.Customer} returns this
924
+ */
925
+ proto.Customer.prototype.setNpwp = function(value) {
926
+ return jspb.Message.setProto3StringField(this, 15, value);
927
+ };
928
+
929
+
930
+ /**
931
+ * optional string bank_accounts = 16;
932
+ * @return {string}
933
+ */
934
+ proto.Customer.prototype.getBankAccounts = function() {
935
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
936
+ };
937
+
938
+
939
+ /**
940
+ * @param {string} value
941
+ * @return {!proto.Customer} returns this
942
+ */
943
+ proto.Customer.prototype.setBankAccounts = function(value) {
944
+ return jspb.Message.setProto3StringField(this, 16, value);
945
+ };
946
+
947
+
948
+ /**
949
+ * optional string phone_number = 17;
950
+ * @return {string}
951
+ */
952
+ proto.Customer.prototype.getPhoneNumber = function() {
953
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
954
+ };
955
+
956
+
957
+ /**
958
+ * @param {string} value
959
+ * @return {!proto.Customer} returns this
960
+ */
961
+ proto.Customer.prototype.setPhoneNumber = function(value) {
962
+ return jspb.Message.setProto3StringField(this, 17, value);
963
+ };
964
+
965
+
966
+ /**
967
+ * optional string email = 18;
968
+ * @return {string}
969
+ */
970
+ proto.Customer.prototype.getEmail = function() {
971
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
972
+ };
973
+
974
+
975
+ /**
976
+ * @param {string} value
977
+ * @return {!proto.Customer} returns this
978
+ */
979
+ proto.Customer.prototype.setEmail = function(value) {
980
+ return jspb.Message.setProto3StringField(this, 18, value);
981
+ };
982
+
983
+
984
+ /**
985
+ * optional string companies_references_id = 19;
986
+ * @return {string}
987
+ */
988
+ proto.Customer.prototype.getCompaniesReferencesId = function() {
989
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
990
+ };
991
+
992
+
993
+ /**
994
+ * @param {string} value
995
+ * @return {!proto.Customer} returns this
996
+ */
997
+ proto.Customer.prototype.setCompaniesReferencesId = function(value) {
998
+ return jspb.Message.setProto3StringField(this, 19, value);
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * optional string created_at = 20;
1004
+ * @return {string}
1005
+ */
1006
+ proto.Customer.prototype.getCreatedAt = function() {
1007
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * @param {string} value
1013
+ * @return {!proto.Customer} returns this
1014
+ */
1015
+ proto.Customer.prototype.setCreatedAt = function(value) {
1016
+ return jspb.Message.setProto3StringField(this, 20, value);
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * optional string updated_at = 21;
1022
+ * @return {string}
1023
+ */
1024
+ proto.Customer.prototype.getUpdatedAt = function() {
1025
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * @param {string} value
1031
+ * @return {!proto.Customer} returns this
1032
+ */
1033
+ proto.Customer.prototype.setUpdatedAt = function(value) {
1034
+ return jspb.Message.setProto3StringField(this, 21, value);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * optional string created_by = 22;
1040
+ * @return {string}
1041
+ */
1042
+ proto.Customer.prototype.getCreatedBy = function() {
1043
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * @param {string} value
1049
+ * @return {!proto.Customer} returns this
1050
+ */
1051
+ proto.Customer.prototype.setCreatedBy = function(value) {
1052
+ return jspb.Message.setProto3StringField(this, 22, value);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * optional string updated_by = 23;
1058
+ * @return {string}
1059
+ */
1060
+ proto.Customer.prototype.getUpdatedBy = function() {
1061
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1062
+ };
1063
+
1064
+
1065
+ /**
1066
+ * @param {string} value
1067
+ * @return {!proto.Customer} returns this
1068
+ */
1069
+ proto.Customer.prototype.setUpdatedBy = function(value) {
1070
+ return jspb.Message.setProto3StringField(this, 23, value);
1071
+ };
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1078
+ /**
1079
+ * Creates an object representation of this proto.
1080
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1081
+ * Optional fields that are not set will be set to undefined.
1082
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1083
+ * For the list of reserved names please see:
1084
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1085
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1086
+ * JSPB instance for transitional soy proto support:
1087
+ * http://goto/soy-param-migration
1088
+ * @return {!Object}
1089
+ */
1090
+ proto.BaseCustomerRequest.prototype.toObject = function(opt_includeInstance) {
1091
+ return proto.BaseCustomerRequest.toObject(opt_includeInstance, this);
1092
+ };
1093
+
1094
+
1095
+ /**
1096
+ * Static version of the {@see toObject} method.
1097
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1098
+ * the JSPB instance for transitional soy proto support:
1099
+ * http://goto/soy-param-migration
1100
+ * @param {!proto.BaseCustomerRequest} msg The msg instance to transform.
1101
+ * @return {!Object}
1102
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1103
+ */
1104
+ proto.BaseCustomerRequest.toObject = function(includeInstance, msg) {
1105
+ var f, obj = {
1106
+ customerAccountGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1107
+ businessPartnerReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1108
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1109
+ street: jspb.Message.getFieldWithDefault(msg, 4, ""),
1110
+ houseNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
1111
+ postalCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
1112
+ village: jspb.Message.getFieldWithDefault(msg, 7, ""),
1113
+ city: jspb.Message.getFieldWithDefault(msg, 8, ""),
1114
+ district: jspb.Message.getFieldWithDefault(msg, 9, ""),
1115
+ province: jspb.Message.getFieldWithDefault(msg, 10, ""),
1116
+ country: jspb.Message.getFieldWithDefault(msg, 11, ""),
1117
+ npwp: jspb.Message.getFieldWithDefault(msg, 12, ""),
1118
+ bankAccounts: jspb.Message.getFieldWithDefault(msg, 13, ""),
1119
+ phoneNumber: jspb.Message.getFieldWithDefault(msg, 14, ""),
1120
+ email: jspb.Message.getFieldWithDefault(msg, 15, ""),
1121
+ externalCustomerNumber: jspb.Message.getFieldWithDefault(msg, 16, "")
1122
+ };
1123
+
1124
+ if (includeInstance) {
1125
+ obj.$jspbMessageInstance = msg;
1126
+ }
1127
+ return obj;
1128
+ };
1129
+ }
1130
+
1131
+
1132
+ /**
1133
+ * Deserializes binary data (in protobuf wire format).
1134
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1135
+ * @return {!proto.BaseCustomerRequest}
1136
+ */
1137
+ proto.BaseCustomerRequest.deserializeBinary = function(bytes) {
1138
+ var reader = new jspb.BinaryReader(bytes);
1139
+ var msg = new proto.BaseCustomerRequest;
1140
+ return proto.BaseCustomerRequest.deserializeBinaryFromReader(msg, reader);
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * Deserializes binary data (in protobuf wire format) from the
1146
+ * given reader into the given message object.
1147
+ * @param {!proto.BaseCustomerRequest} msg The message object to deserialize into.
1148
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1149
+ * @return {!proto.BaseCustomerRequest}
1150
+ */
1151
+ proto.BaseCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
1152
+ while (reader.nextField()) {
1153
+ if (reader.isEndGroup()) {
1154
+ break;
1155
+ }
1156
+ var field = reader.getFieldNumber();
1157
+ switch (field) {
1158
+ case 1:
1159
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1160
+ msg.setCustomerAccountGroupReferencesId(value);
1161
+ break;
1162
+ case 2:
1163
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1164
+ msg.setBusinessPartnerReferencesId(value);
1165
+ break;
1166
+ case 3:
1167
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1168
+ msg.setName(value);
1169
+ break;
1170
+ case 4:
1171
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1172
+ msg.setStreet(value);
1173
+ break;
1174
+ case 5:
1175
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1176
+ msg.setHouseNumber(value);
1177
+ break;
1178
+ case 6:
1179
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1180
+ msg.setPostalCode(value);
1181
+ break;
1182
+ case 7:
1183
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1184
+ msg.setVillage(value);
1185
+ break;
1186
+ case 8:
1187
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1188
+ msg.setCity(value);
1189
+ break;
1190
+ case 9:
1191
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1192
+ msg.setDistrict(value);
1193
+ break;
1194
+ case 10:
1195
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1196
+ msg.setProvince(value);
1197
+ break;
1198
+ case 11:
1199
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1200
+ msg.setCountry(value);
1201
+ break;
1202
+ case 12:
1203
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1204
+ msg.setNpwp(value);
1205
+ break;
1206
+ case 13:
1207
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1208
+ msg.setBankAccounts(value);
1209
+ break;
1210
+ case 14:
1211
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1212
+ msg.setPhoneNumber(value);
1213
+ break;
1214
+ case 15:
1215
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1216
+ msg.setEmail(value);
1217
+ break;
1218
+ case 16:
1219
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1220
+ msg.setExternalCustomerNumber(value);
1221
+ break;
1222
+ default:
1223
+ reader.skipField();
1224
+ break;
1225
+ }
1226
+ }
1227
+ return msg;
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Serializes the message to binary data (in protobuf wire format).
1233
+ * @return {!Uint8Array}
1234
+ */
1235
+ proto.BaseCustomerRequest.prototype.serializeBinary = function() {
1236
+ var writer = new jspb.BinaryWriter();
1237
+ proto.BaseCustomerRequest.serializeBinaryToWriter(this, writer);
1238
+ return writer.getResultBuffer();
1239
+ };
1240
+
1241
+
1242
+ /**
1243
+ * Serializes the given message to binary data (in protobuf wire
1244
+ * format), writing to the given BinaryWriter.
1245
+ * @param {!proto.BaseCustomerRequest} message
1246
+ * @param {!jspb.BinaryWriter} writer
1247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1248
+ */
1249
+ proto.BaseCustomerRequest.serializeBinaryToWriter = function(message, writer) {
1250
+ var f = undefined;
1251
+ f = message.getCustomerAccountGroupReferencesId();
1252
+ if (f.length > 0) {
1253
+ writer.writeString(
1254
+ 1,
1255
+ f
1256
+ );
1257
+ }
1258
+ f = message.getBusinessPartnerReferencesId();
1259
+ if (f.length > 0) {
1260
+ writer.writeString(
1261
+ 2,
1262
+ f
1263
+ );
1264
+ }
1265
+ f = message.getName();
1266
+ if (f.length > 0) {
1267
+ writer.writeString(
1268
+ 3,
1269
+ f
1270
+ );
1271
+ }
1272
+ f = message.getStreet();
1273
+ if (f.length > 0) {
1274
+ writer.writeString(
1275
+ 4,
1276
+ f
1277
+ );
1278
+ }
1279
+ f = message.getHouseNumber();
1280
+ if (f.length > 0) {
1281
+ writer.writeString(
1282
+ 5,
1283
+ f
1284
+ );
1285
+ }
1286
+ f = message.getPostalCode();
1287
+ if (f.length > 0) {
1288
+ writer.writeString(
1289
+ 6,
1290
+ f
1291
+ );
1292
+ }
1293
+ f = message.getVillage();
1294
+ if (f.length > 0) {
1295
+ writer.writeString(
1296
+ 7,
1297
+ f
1298
+ );
1299
+ }
1300
+ f = message.getCity();
1301
+ if (f.length > 0) {
1302
+ writer.writeString(
1303
+ 8,
1304
+ f
1305
+ );
1306
+ }
1307
+ f = message.getDistrict();
1308
+ if (f.length > 0) {
1309
+ writer.writeString(
1310
+ 9,
1311
+ f
1312
+ );
1313
+ }
1314
+ f = message.getProvince();
1315
+ if (f.length > 0) {
1316
+ writer.writeString(
1317
+ 10,
1318
+ f
1319
+ );
1320
+ }
1321
+ f = message.getCountry();
1322
+ if (f.length > 0) {
1323
+ writer.writeString(
1324
+ 11,
1325
+ f
1326
+ );
1327
+ }
1328
+ f = message.getNpwp();
1329
+ if (f.length > 0) {
1330
+ writer.writeString(
1331
+ 12,
1332
+ f
1333
+ );
1334
+ }
1335
+ f = message.getBankAccounts();
1336
+ if (f.length > 0) {
1337
+ writer.writeString(
1338
+ 13,
1339
+ f
1340
+ );
1341
+ }
1342
+ f = message.getPhoneNumber();
1343
+ if (f.length > 0) {
1344
+ writer.writeString(
1345
+ 14,
1346
+ f
1347
+ );
1348
+ }
1349
+ f = message.getEmail();
1350
+ if (f.length > 0) {
1351
+ writer.writeString(
1352
+ 15,
1353
+ f
1354
+ );
1355
+ }
1356
+ f = message.getExternalCustomerNumber();
1357
+ if (f.length > 0) {
1358
+ writer.writeString(
1359
+ 16,
1360
+ f
1361
+ );
1362
+ }
1363
+ };
1364
+
1365
+
1366
+ /**
1367
+ * optional string customer_account_group_references_id = 1;
1368
+ * @return {string}
1369
+ */
1370
+ proto.BaseCustomerRequest.prototype.getCustomerAccountGroupReferencesId = function() {
1371
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * @param {string} value
1377
+ * @return {!proto.BaseCustomerRequest} returns this
1378
+ */
1379
+ proto.BaseCustomerRequest.prototype.setCustomerAccountGroupReferencesId = function(value) {
1380
+ return jspb.Message.setProto3StringField(this, 1, value);
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * optional string business_partner_references_id = 2;
1386
+ * @return {string}
1387
+ */
1388
+ proto.BaseCustomerRequest.prototype.getBusinessPartnerReferencesId = function() {
1389
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1390
+ };
1391
+
1392
+
1393
+ /**
1394
+ * @param {string} value
1395
+ * @return {!proto.BaseCustomerRequest} returns this
1396
+ */
1397
+ proto.BaseCustomerRequest.prototype.setBusinessPartnerReferencesId = function(value) {
1398
+ return jspb.Message.setProto3StringField(this, 2, value);
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * optional string name = 3;
1404
+ * @return {string}
1405
+ */
1406
+ proto.BaseCustomerRequest.prototype.getName = function() {
1407
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1408
+ };
1409
+
1410
+
1411
+ /**
1412
+ * @param {string} value
1413
+ * @return {!proto.BaseCustomerRequest} returns this
1414
+ */
1415
+ proto.BaseCustomerRequest.prototype.setName = function(value) {
1416
+ return jspb.Message.setProto3StringField(this, 3, value);
1417
+ };
1418
+
1419
+
1420
+ /**
1421
+ * optional string street = 4;
1422
+ * @return {string}
1423
+ */
1424
+ proto.BaseCustomerRequest.prototype.getStreet = function() {
1425
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1426
+ };
1427
+
1428
+
1429
+ /**
1430
+ * @param {string} value
1431
+ * @return {!proto.BaseCustomerRequest} returns this
1432
+ */
1433
+ proto.BaseCustomerRequest.prototype.setStreet = function(value) {
1434
+ return jspb.Message.setProto3StringField(this, 4, value);
1435
+ };
1436
+
1437
+
1438
+ /**
1439
+ * optional string house_number = 5;
1440
+ * @return {string}
1441
+ */
1442
+ proto.BaseCustomerRequest.prototype.getHouseNumber = function() {
1443
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * @param {string} value
1449
+ * @return {!proto.BaseCustomerRequest} returns this
1450
+ */
1451
+ proto.BaseCustomerRequest.prototype.setHouseNumber = function(value) {
1452
+ return jspb.Message.setProto3StringField(this, 5, value);
1453
+ };
1454
+
1455
+
1456
+ /**
1457
+ * optional string postal_code = 6;
1458
+ * @return {string}
1459
+ */
1460
+ proto.BaseCustomerRequest.prototype.getPostalCode = function() {
1461
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1462
+ };
1463
+
1464
+
1465
+ /**
1466
+ * @param {string} value
1467
+ * @return {!proto.BaseCustomerRequest} returns this
1468
+ */
1469
+ proto.BaseCustomerRequest.prototype.setPostalCode = function(value) {
1470
+ return jspb.Message.setProto3StringField(this, 6, value);
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * optional string village = 7;
1476
+ * @return {string}
1477
+ */
1478
+ proto.BaseCustomerRequest.prototype.getVillage = function() {
1479
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1480
+ };
1481
+
1482
+
1483
+ /**
1484
+ * @param {string} value
1485
+ * @return {!proto.BaseCustomerRequest} returns this
1486
+ */
1487
+ proto.BaseCustomerRequest.prototype.setVillage = function(value) {
1488
+ return jspb.Message.setProto3StringField(this, 7, value);
1489
+ };
1490
+
1491
+
1492
+ /**
1493
+ * optional string city = 8;
1494
+ * @return {string}
1495
+ */
1496
+ proto.BaseCustomerRequest.prototype.getCity = function() {
1497
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1498
+ };
1499
+
1500
+
1501
+ /**
1502
+ * @param {string} value
1503
+ * @return {!proto.BaseCustomerRequest} returns this
1504
+ */
1505
+ proto.BaseCustomerRequest.prototype.setCity = function(value) {
1506
+ return jspb.Message.setProto3StringField(this, 8, value);
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * optional string district = 9;
1512
+ * @return {string}
1513
+ */
1514
+ proto.BaseCustomerRequest.prototype.getDistrict = function() {
1515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * @param {string} value
1521
+ * @return {!proto.BaseCustomerRequest} returns this
1522
+ */
1523
+ proto.BaseCustomerRequest.prototype.setDistrict = function(value) {
1524
+ return jspb.Message.setProto3StringField(this, 9, value);
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * optional string province = 10;
1530
+ * @return {string}
1531
+ */
1532
+ proto.BaseCustomerRequest.prototype.getProvince = function() {
1533
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1534
+ };
1535
+
1536
+
1537
+ /**
1538
+ * @param {string} value
1539
+ * @return {!proto.BaseCustomerRequest} returns this
1540
+ */
1541
+ proto.BaseCustomerRequest.prototype.setProvince = function(value) {
1542
+ return jspb.Message.setProto3StringField(this, 10, value);
1543
+ };
1544
+
1545
+
1546
+ /**
1547
+ * optional string country = 11;
1548
+ * @return {string}
1549
+ */
1550
+ proto.BaseCustomerRequest.prototype.getCountry = function() {
1551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1552
+ };
1553
+
1554
+
1555
+ /**
1556
+ * @param {string} value
1557
+ * @return {!proto.BaseCustomerRequest} returns this
1558
+ */
1559
+ proto.BaseCustomerRequest.prototype.setCountry = function(value) {
1560
+ return jspb.Message.setProto3StringField(this, 11, value);
1561
+ };
1562
+
1563
+
1564
+ /**
1565
+ * optional string npwp = 12;
1566
+ * @return {string}
1567
+ */
1568
+ proto.BaseCustomerRequest.prototype.getNpwp = function() {
1569
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1570
+ };
1571
+
1572
+
1573
+ /**
1574
+ * @param {string} value
1575
+ * @return {!proto.BaseCustomerRequest} returns this
1576
+ */
1577
+ proto.BaseCustomerRequest.prototype.setNpwp = function(value) {
1578
+ return jspb.Message.setProto3StringField(this, 12, value);
1579
+ };
1580
+
1581
+
1582
+ /**
1583
+ * optional string bank_accounts = 13;
1584
+ * @return {string}
1585
+ */
1586
+ proto.BaseCustomerRequest.prototype.getBankAccounts = function() {
1587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1588
+ };
1589
+
1590
+
1591
+ /**
1592
+ * @param {string} value
1593
+ * @return {!proto.BaseCustomerRequest} returns this
1594
+ */
1595
+ proto.BaseCustomerRequest.prototype.setBankAccounts = function(value) {
1596
+ return jspb.Message.setProto3StringField(this, 13, value);
1597
+ };
1598
+
1599
+
1600
+ /**
1601
+ * optional string phone_number = 14;
1602
+ * @return {string}
1603
+ */
1604
+ proto.BaseCustomerRequest.prototype.getPhoneNumber = function() {
1605
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * @param {string} value
1611
+ * @return {!proto.BaseCustomerRequest} returns this
1612
+ */
1613
+ proto.BaseCustomerRequest.prototype.setPhoneNumber = function(value) {
1614
+ return jspb.Message.setProto3StringField(this, 14, value);
1615
+ };
1616
+
1617
+
1618
+ /**
1619
+ * optional string email = 15;
1620
+ * @return {string}
1621
+ */
1622
+ proto.BaseCustomerRequest.prototype.getEmail = function() {
1623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1624
+ };
1625
+
1626
+
1627
+ /**
1628
+ * @param {string} value
1629
+ * @return {!proto.BaseCustomerRequest} returns this
1630
+ */
1631
+ proto.BaseCustomerRequest.prototype.setEmail = function(value) {
1632
+ return jspb.Message.setProto3StringField(this, 15, value);
1633
+ };
1634
+
1635
+
1636
+ /**
1637
+ * optional string external_customer_number = 16;
1638
+ * @return {string}
1639
+ */
1640
+ proto.BaseCustomerRequest.prototype.getExternalCustomerNumber = function() {
1641
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * @param {string} value
1647
+ * @return {!proto.BaseCustomerRequest} returns this
1648
+ */
1649
+ proto.BaseCustomerRequest.prototype.setExternalCustomerNumber = function(value) {
1650
+ return jspb.Message.setProto3StringField(this, 16, value);
1651
+ };
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1658
+ /**
1659
+ * Creates an object representation of this proto.
1660
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1661
+ * Optional fields that are not set will be set to undefined.
1662
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1663
+ * For the list of reserved names please see:
1664
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1665
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1666
+ * JSPB instance for transitional soy proto support:
1667
+ * http://goto/soy-param-migration
1668
+ * @return {!Object}
1669
+ */
1670
+ proto.GetCustomerByIdRequest.prototype.toObject = function(opt_includeInstance) {
1671
+ return proto.GetCustomerByIdRequest.toObject(opt_includeInstance, this);
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * Static version of the {@see toObject} method.
1677
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1678
+ * the JSPB instance for transitional soy proto support:
1679
+ * http://goto/soy-param-migration
1680
+ * @param {!proto.GetCustomerByIdRequest} msg The msg instance to transform.
1681
+ * @return {!Object}
1682
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1683
+ */
1684
+ proto.GetCustomerByIdRequest.toObject = function(includeInstance, msg) {
1685
+ var f, obj = {
1686
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1687
+ };
1688
+
1689
+ if (includeInstance) {
1690
+ obj.$jspbMessageInstance = msg;
1691
+ }
1692
+ return obj;
1693
+ };
1694
+ }
1695
+
1696
+
1697
+ /**
1698
+ * Deserializes binary data (in protobuf wire format).
1699
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1700
+ * @return {!proto.GetCustomerByIdRequest}
1701
+ */
1702
+ proto.GetCustomerByIdRequest.deserializeBinary = function(bytes) {
1703
+ var reader = new jspb.BinaryReader(bytes);
1704
+ var msg = new proto.GetCustomerByIdRequest;
1705
+ return proto.GetCustomerByIdRequest.deserializeBinaryFromReader(msg, reader);
1706
+ };
1707
+
1708
+
1709
+ /**
1710
+ * Deserializes binary data (in protobuf wire format) from the
1711
+ * given reader into the given message object.
1712
+ * @param {!proto.GetCustomerByIdRequest} msg The message object to deserialize into.
1713
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1714
+ * @return {!proto.GetCustomerByIdRequest}
1715
+ */
1716
+ proto.GetCustomerByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1717
+ while (reader.nextField()) {
1718
+ if (reader.isEndGroup()) {
1719
+ break;
1720
+ }
1721
+ var field = reader.getFieldNumber();
1722
+ switch (field) {
1723
+ case 1:
1724
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1725
+ msg.setReferencesId(value);
1726
+ break;
1727
+ default:
1728
+ reader.skipField();
1729
+ break;
1730
+ }
1731
+ }
1732
+ return msg;
1733
+ };
1734
+
1735
+
1736
+ /**
1737
+ * Serializes the message to binary data (in protobuf wire format).
1738
+ * @return {!Uint8Array}
1739
+ */
1740
+ proto.GetCustomerByIdRequest.prototype.serializeBinary = function() {
1741
+ var writer = new jspb.BinaryWriter();
1742
+ proto.GetCustomerByIdRequest.serializeBinaryToWriter(this, writer);
1743
+ return writer.getResultBuffer();
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * Serializes the given message to binary data (in protobuf wire
1749
+ * format), writing to the given BinaryWriter.
1750
+ * @param {!proto.GetCustomerByIdRequest} message
1751
+ * @param {!jspb.BinaryWriter} writer
1752
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1753
+ */
1754
+ proto.GetCustomerByIdRequest.serializeBinaryToWriter = function(message, writer) {
1755
+ var f = undefined;
1756
+ f = message.getReferencesId();
1757
+ if (f.length > 0) {
1758
+ writer.writeString(
1759
+ 1,
1760
+ f
1761
+ );
1762
+ }
1763
+ };
1764
+
1765
+
1766
+ /**
1767
+ * optional string references_id = 1;
1768
+ * @return {string}
1769
+ */
1770
+ proto.GetCustomerByIdRequest.prototype.getReferencesId = function() {
1771
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1772
+ };
1773
+
1774
+
1775
+ /**
1776
+ * @param {string} value
1777
+ * @return {!proto.GetCustomerByIdRequest} returns this
1778
+ */
1779
+ proto.GetCustomerByIdRequest.prototype.setReferencesId = function(value) {
1780
+ return jspb.Message.setProto3StringField(this, 1, value);
1781
+ };
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1788
+ /**
1789
+ * Creates an object representation of this proto.
1790
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1791
+ * Optional fields that are not set will be set to undefined.
1792
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1793
+ * For the list of reserved names please see:
1794
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1795
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1796
+ * JSPB instance for transitional soy proto support:
1797
+ * http://goto/soy-param-migration
1798
+ * @return {!Object}
1799
+ */
1800
+ proto.GetListCustomerRequest.prototype.toObject = function(opt_includeInstance) {
1801
+ return proto.GetListCustomerRequest.toObject(opt_includeInstance, this);
1802
+ };
1803
+
1804
+
1805
+ /**
1806
+ * Static version of the {@see toObject} method.
1807
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1808
+ * the JSPB instance for transitional soy proto support:
1809
+ * http://goto/soy-param-migration
1810
+ * @param {!proto.GetListCustomerRequest} msg The msg instance to transform.
1811
+ * @return {!Object}
1812
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1813
+ */
1814
+ proto.GetListCustomerRequest.toObject = function(includeInstance, msg) {
1815
+ var f, obj = {
1816
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1817
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1818
+ };
1819
+
1820
+ if (includeInstance) {
1821
+ obj.$jspbMessageInstance = msg;
1822
+ }
1823
+ return obj;
1824
+ };
1825
+ }
1826
+
1827
+
1828
+ /**
1829
+ * Deserializes binary data (in protobuf wire format).
1830
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1831
+ * @return {!proto.GetListCustomerRequest}
1832
+ */
1833
+ proto.GetListCustomerRequest.deserializeBinary = function(bytes) {
1834
+ var reader = new jspb.BinaryReader(bytes);
1835
+ var msg = new proto.GetListCustomerRequest;
1836
+ return proto.GetListCustomerRequest.deserializeBinaryFromReader(msg, reader);
1837
+ };
1838
+
1839
+
1840
+ /**
1841
+ * Deserializes binary data (in protobuf wire format) from the
1842
+ * given reader into the given message object.
1843
+ * @param {!proto.GetListCustomerRequest} msg The message object to deserialize into.
1844
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1845
+ * @return {!proto.GetListCustomerRequest}
1846
+ */
1847
+ proto.GetListCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
1848
+ while (reader.nextField()) {
1849
+ if (reader.isEndGroup()) {
1850
+ break;
1851
+ }
1852
+ var field = reader.getFieldNumber();
1853
+ switch (field) {
1854
+ case 1:
1855
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1856
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1857
+ msg.setPagination(value);
1858
+ break;
1859
+ case 2:
1860
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1861
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1862
+ msg.setQuery(value);
1863
+ break;
1864
+ default:
1865
+ reader.skipField();
1866
+ break;
1867
+ }
1868
+ }
1869
+ return msg;
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * Serializes the message to binary data (in protobuf wire format).
1875
+ * @return {!Uint8Array}
1876
+ */
1877
+ proto.GetListCustomerRequest.prototype.serializeBinary = function() {
1878
+ var writer = new jspb.BinaryWriter();
1879
+ proto.GetListCustomerRequest.serializeBinaryToWriter(this, writer);
1880
+ return writer.getResultBuffer();
1881
+ };
1882
+
1883
+
1884
+ /**
1885
+ * Serializes the given message to binary data (in protobuf wire
1886
+ * format), writing to the given BinaryWriter.
1887
+ * @param {!proto.GetListCustomerRequest} message
1888
+ * @param {!jspb.BinaryWriter} writer
1889
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1890
+ */
1891
+ proto.GetListCustomerRequest.serializeBinaryToWriter = function(message, writer) {
1892
+ var f = undefined;
1893
+ f = message.getPagination();
1894
+ if (f != null) {
1895
+ writer.writeMessage(
1896
+ 1,
1897
+ f,
1898
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1899
+ );
1900
+ }
1901
+ f = message.getQuery();
1902
+ if (f != null) {
1903
+ writer.writeMessage(
1904
+ 2,
1905
+ f,
1906
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1907
+ );
1908
+ }
1909
+ };
1910
+
1911
+
1912
+ /**
1913
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1914
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1915
+ */
1916
+ proto.GetListCustomerRequest.prototype.getPagination = function() {
1917
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1918
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1919
+ };
1920
+
1921
+
1922
+ /**
1923
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1924
+ * @return {!proto.GetListCustomerRequest} returns this
1925
+ */
1926
+ proto.GetListCustomerRequest.prototype.setPagination = function(value) {
1927
+ return jspb.Message.setWrapperField(this, 1, value);
1928
+ };
1929
+
1930
+
1931
+ /**
1932
+ * Clears the message field making it undefined.
1933
+ * @return {!proto.GetListCustomerRequest} returns this
1934
+ */
1935
+ proto.GetListCustomerRequest.prototype.clearPagination = function() {
1936
+ return this.setPagination(undefined);
1937
+ };
1938
+
1939
+
1940
+ /**
1941
+ * Returns whether this field is set.
1942
+ * @return {boolean}
1943
+ */
1944
+ proto.GetListCustomerRequest.prototype.hasPagination = function() {
1945
+ return jspb.Message.getField(this, 1) != null;
1946
+ };
1947
+
1948
+
1949
+ /**
1950
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1951
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1952
+ */
1953
+ proto.GetListCustomerRequest.prototype.getQuery = function() {
1954
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1955
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1956
+ };
1957
+
1958
+
1959
+ /**
1960
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1961
+ * @return {!proto.GetListCustomerRequest} returns this
1962
+ */
1963
+ proto.GetListCustomerRequest.prototype.setQuery = function(value) {
1964
+ return jspb.Message.setWrapperField(this, 2, value);
1965
+ };
1966
+
1967
+
1968
+ /**
1969
+ * Clears the message field making it undefined.
1970
+ * @return {!proto.GetListCustomerRequest} returns this
1971
+ */
1972
+ proto.GetListCustomerRequest.prototype.clearQuery = function() {
1973
+ return this.setQuery(undefined);
1974
+ };
1975
+
1976
+
1977
+ /**
1978
+ * Returns whether this field is set.
1979
+ * @return {boolean}
1980
+ */
1981
+ proto.GetListCustomerRequest.prototype.hasQuery = function() {
1982
+ return jspb.Message.getField(this, 2) != null;
1983
+ };
1984
+
1985
+
1986
+
1987
+
1988
+
1989
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1990
+ /**
1991
+ * Creates an object representation of this proto.
1992
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1993
+ * Optional fields that are not set will be set to undefined.
1994
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1995
+ * For the list of reserved names please see:
1996
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1997
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1998
+ * JSPB instance for transitional soy proto support:
1999
+ * http://goto/soy-param-migration
2000
+ * @return {!Object}
2001
+ */
2002
+ proto.CreateCustomerRequest.prototype.toObject = function(opt_includeInstance) {
2003
+ return proto.CreateCustomerRequest.toObject(opt_includeInstance, this);
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Static version of the {@see toObject} method.
2009
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2010
+ * the JSPB instance for transitional soy proto support:
2011
+ * http://goto/soy-param-migration
2012
+ * @param {!proto.CreateCustomerRequest} msg The msg instance to transform.
2013
+ * @return {!Object}
2014
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2015
+ */
2016
+ proto.CreateCustomerRequest.toObject = function(includeInstance, msg) {
2017
+ var f, obj = {
2018
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseCustomerRequest.toObject(includeInstance, f)
2019
+ };
2020
+
2021
+ if (includeInstance) {
2022
+ obj.$jspbMessageInstance = msg;
2023
+ }
2024
+ return obj;
2025
+ };
2026
+ }
2027
+
2028
+
2029
+ /**
2030
+ * Deserializes binary data (in protobuf wire format).
2031
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2032
+ * @return {!proto.CreateCustomerRequest}
2033
+ */
2034
+ proto.CreateCustomerRequest.deserializeBinary = function(bytes) {
2035
+ var reader = new jspb.BinaryReader(bytes);
2036
+ var msg = new proto.CreateCustomerRequest;
2037
+ return proto.CreateCustomerRequest.deserializeBinaryFromReader(msg, reader);
2038
+ };
2039
+
2040
+
2041
+ /**
2042
+ * Deserializes binary data (in protobuf wire format) from the
2043
+ * given reader into the given message object.
2044
+ * @param {!proto.CreateCustomerRequest} msg The message object to deserialize into.
2045
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2046
+ * @return {!proto.CreateCustomerRequest}
2047
+ */
2048
+ proto.CreateCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
2049
+ while (reader.nextField()) {
2050
+ if (reader.isEndGroup()) {
2051
+ break;
2052
+ }
2053
+ var field = reader.getFieldNumber();
2054
+ switch (field) {
2055
+ case 1:
2056
+ var value = new proto.BaseCustomerRequest;
2057
+ reader.readMessage(value,proto.BaseCustomerRequest.deserializeBinaryFromReader);
2058
+ msg.setBaseRequest(value);
2059
+ break;
2060
+ default:
2061
+ reader.skipField();
2062
+ break;
2063
+ }
2064
+ }
2065
+ return msg;
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * Serializes the message to binary data (in protobuf wire format).
2071
+ * @return {!Uint8Array}
2072
+ */
2073
+ proto.CreateCustomerRequest.prototype.serializeBinary = function() {
2074
+ var writer = new jspb.BinaryWriter();
2075
+ proto.CreateCustomerRequest.serializeBinaryToWriter(this, writer);
2076
+ return writer.getResultBuffer();
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * Serializes the given message to binary data (in protobuf wire
2082
+ * format), writing to the given BinaryWriter.
2083
+ * @param {!proto.CreateCustomerRequest} message
2084
+ * @param {!jspb.BinaryWriter} writer
2085
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2086
+ */
2087
+ proto.CreateCustomerRequest.serializeBinaryToWriter = function(message, writer) {
2088
+ var f = undefined;
2089
+ f = message.getBaseRequest();
2090
+ if (f != null) {
2091
+ writer.writeMessage(
2092
+ 1,
2093
+ f,
2094
+ proto.BaseCustomerRequest.serializeBinaryToWriter
2095
+ );
2096
+ }
2097
+ };
2098
+
2099
+
2100
+ /**
2101
+ * optional BaseCustomerRequest base_request = 1;
2102
+ * @return {?proto.BaseCustomerRequest}
2103
+ */
2104
+ proto.CreateCustomerRequest.prototype.getBaseRequest = function() {
2105
+ return /** @type{?proto.BaseCustomerRequest} */ (
2106
+ jspb.Message.getWrapperField(this, proto.BaseCustomerRequest, 1));
2107
+ };
2108
+
2109
+
2110
+ /**
2111
+ * @param {?proto.BaseCustomerRequest|undefined} value
2112
+ * @return {!proto.CreateCustomerRequest} returns this
2113
+ */
2114
+ proto.CreateCustomerRequest.prototype.setBaseRequest = function(value) {
2115
+ return jspb.Message.setWrapperField(this, 1, value);
2116
+ };
2117
+
2118
+
2119
+ /**
2120
+ * Clears the message field making it undefined.
2121
+ * @return {!proto.CreateCustomerRequest} returns this
2122
+ */
2123
+ proto.CreateCustomerRequest.prototype.clearBaseRequest = function() {
2124
+ return this.setBaseRequest(undefined);
2125
+ };
2126
+
2127
+
2128
+ /**
2129
+ * Returns whether this field is set.
2130
+ * @return {boolean}
2131
+ */
2132
+ proto.CreateCustomerRequest.prototype.hasBaseRequest = function() {
2133
+ return jspb.Message.getField(this, 1) != null;
2134
+ };
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2141
+ /**
2142
+ * Creates an object representation of this proto.
2143
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2144
+ * Optional fields that are not set will be set to undefined.
2145
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2146
+ * For the list of reserved names please see:
2147
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2148
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2149
+ * JSPB instance for transitional soy proto support:
2150
+ * http://goto/soy-param-migration
2151
+ * @return {!Object}
2152
+ */
2153
+ proto.UpdateCustomerRequest.prototype.toObject = function(opt_includeInstance) {
2154
+ return proto.UpdateCustomerRequest.toObject(opt_includeInstance, this);
2155
+ };
2156
+
2157
+
2158
+ /**
2159
+ * Static version of the {@see toObject} method.
2160
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2161
+ * the JSPB instance for transitional soy proto support:
2162
+ * http://goto/soy-param-migration
2163
+ * @param {!proto.UpdateCustomerRequest} msg The msg instance to transform.
2164
+ * @return {!Object}
2165
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2166
+ */
2167
+ proto.UpdateCustomerRequest.toObject = function(includeInstance, msg) {
2168
+ var f, obj = {
2169
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2170
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseCustomerRequest.toObject(includeInstance, f)
2171
+ };
2172
+
2173
+ if (includeInstance) {
2174
+ obj.$jspbMessageInstance = msg;
2175
+ }
2176
+ return obj;
2177
+ };
2178
+ }
2179
+
2180
+
2181
+ /**
2182
+ * Deserializes binary data (in protobuf wire format).
2183
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2184
+ * @return {!proto.UpdateCustomerRequest}
2185
+ */
2186
+ proto.UpdateCustomerRequest.deserializeBinary = function(bytes) {
2187
+ var reader = new jspb.BinaryReader(bytes);
2188
+ var msg = new proto.UpdateCustomerRequest;
2189
+ return proto.UpdateCustomerRequest.deserializeBinaryFromReader(msg, reader);
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * Deserializes binary data (in protobuf wire format) from the
2195
+ * given reader into the given message object.
2196
+ * @param {!proto.UpdateCustomerRequest} msg The message object to deserialize into.
2197
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2198
+ * @return {!proto.UpdateCustomerRequest}
2199
+ */
2200
+ proto.UpdateCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
2201
+ while (reader.nextField()) {
2202
+ if (reader.isEndGroup()) {
2203
+ break;
2204
+ }
2205
+ var field = reader.getFieldNumber();
2206
+ switch (field) {
2207
+ case 1:
2208
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2209
+ msg.setReferencesId(value);
2210
+ break;
2211
+ case 2:
2212
+ var value = new proto.BaseCustomerRequest;
2213
+ reader.readMessage(value,proto.BaseCustomerRequest.deserializeBinaryFromReader);
2214
+ msg.setBaseRequest(value);
2215
+ break;
2216
+ default:
2217
+ reader.skipField();
2218
+ break;
2219
+ }
2220
+ }
2221
+ return msg;
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * Serializes the message to binary data (in protobuf wire format).
2227
+ * @return {!Uint8Array}
2228
+ */
2229
+ proto.UpdateCustomerRequest.prototype.serializeBinary = function() {
2230
+ var writer = new jspb.BinaryWriter();
2231
+ proto.UpdateCustomerRequest.serializeBinaryToWriter(this, writer);
2232
+ return writer.getResultBuffer();
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * Serializes the given message to binary data (in protobuf wire
2238
+ * format), writing to the given BinaryWriter.
2239
+ * @param {!proto.UpdateCustomerRequest} message
2240
+ * @param {!jspb.BinaryWriter} writer
2241
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2242
+ */
2243
+ proto.UpdateCustomerRequest.serializeBinaryToWriter = function(message, writer) {
2244
+ var f = undefined;
2245
+ f = message.getReferencesId();
2246
+ if (f.length > 0) {
2247
+ writer.writeString(
2248
+ 1,
2249
+ f
2250
+ );
2251
+ }
2252
+ f = message.getBaseRequest();
2253
+ if (f != null) {
2254
+ writer.writeMessage(
2255
+ 2,
2256
+ f,
2257
+ proto.BaseCustomerRequest.serializeBinaryToWriter
2258
+ );
2259
+ }
2260
+ };
2261
+
2262
+
2263
+ /**
2264
+ * optional string references_id = 1;
2265
+ * @return {string}
2266
+ */
2267
+ proto.UpdateCustomerRequest.prototype.getReferencesId = function() {
2268
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2269
+ };
2270
+
2271
+
2272
+ /**
2273
+ * @param {string} value
2274
+ * @return {!proto.UpdateCustomerRequest} returns this
2275
+ */
2276
+ proto.UpdateCustomerRequest.prototype.setReferencesId = function(value) {
2277
+ return jspb.Message.setProto3StringField(this, 1, value);
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * optional BaseCustomerRequest base_request = 2;
2283
+ * @return {?proto.BaseCustomerRequest}
2284
+ */
2285
+ proto.UpdateCustomerRequest.prototype.getBaseRequest = function() {
2286
+ return /** @type{?proto.BaseCustomerRequest} */ (
2287
+ jspb.Message.getWrapperField(this, proto.BaseCustomerRequest, 2));
2288
+ };
2289
+
2290
+
2291
+ /**
2292
+ * @param {?proto.BaseCustomerRequest|undefined} value
2293
+ * @return {!proto.UpdateCustomerRequest} returns this
2294
+ */
2295
+ proto.UpdateCustomerRequest.prototype.setBaseRequest = function(value) {
2296
+ return jspb.Message.setWrapperField(this, 2, value);
2297
+ };
2298
+
2299
+
2300
+ /**
2301
+ * Clears the message field making it undefined.
2302
+ * @return {!proto.UpdateCustomerRequest} returns this
2303
+ */
2304
+ proto.UpdateCustomerRequest.prototype.clearBaseRequest = function() {
2305
+ return this.setBaseRequest(undefined);
2306
+ };
2307
+
2308
+
2309
+ /**
2310
+ * Returns whether this field is set.
2311
+ * @return {boolean}
2312
+ */
2313
+ proto.UpdateCustomerRequest.prototype.hasBaseRequest = function() {
2314
+ return jspb.Message.getField(this, 2) != null;
2315
+ };
2316
+
2317
+
2318
+
2319
+ /**
2320
+ * List of repeated fields within this message type.
2321
+ * @private {!Array<number>}
2322
+ * @const
2323
+ */
2324
+ proto.DeleteCustomerRequest.repeatedFields_ = [1];
2325
+
2326
+
2327
+
2328
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2329
+ /**
2330
+ * Creates an object representation of this proto.
2331
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2332
+ * Optional fields that are not set will be set to undefined.
2333
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2334
+ * For the list of reserved names please see:
2335
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2336
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2337
+ * JSPB instance for transitional soy proto support:
2338
+ * http://goto/soy-param-migration
2339
+ * @return {!Object}
2340
+ */
2341
+ proto.DeleteCustomerRequest.prototype.toObject = function(opt_includeInstance) {
2342
+ return proto.DeleteCustomerRequest.toObject(opt_includeInstance, this);
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * Static version of the {@see toObject} method.
2348
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2349
+ * the JSPB instance for transitional soy proto support:
2350
+ * http://goto/soy-param-migration
2351
+ * @param {!proto.DeleteCustomerRequest} msg The msg instance to transform.
2352
+ * @return {!Object}
2353
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2354
+ */
2355
+ proto.DeleteCustomerRequest.toObject = function(includeInstance, msg) {
2356
+ var f, obj = {
2357
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2358
+ };
2359
+
2360
+ if (includeInstance) {
2361
+ obj.$jspbMessageInstance = msg;
2362
+ }
2363
+ return obj;
2364
+ };
2365
+ }
2366
+
2367
+
2368
+ /**
2369
+ * Deserializes binary data (in protobuf wire format).
2370
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2371
+ * @return {!proto.DeleteCustomerRequest}
2372
+ */
2373
+ proto.DeleteCustomerRequest.deserializeBinary = function(bytes) {
2374
+ var reader = new jspb.BinaryReader(bytes);
2375
+ var msg = new proto.DeleteCustomerRequest;
2376
+ return proto.DeleteCustomerRequest.deserializeBinaryFromReader(msg, reader);
2377
+ };
2378
+
2379
+
2380
+ /**
2381
+ * Deserializes binary data (in protobuf wire format) from the
2382
+ * given reader into the given message object.
2383
+ * @param {!proto.DeleteCustomerRequest} msg The message object to deserialize into.
2384
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2385
+ * @return {!proto.DeleteCustomerRequest}
2386
+ */
2387
+ proto.DeleteCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
2388
+ while (reader.nextField()) {
2389
+ if (reader.isEndGroup()) {
2390
+ break;
2391
+ }
2392
+ var field = reader.getFieldNumber();
2393
+ switch (field) {
2394
+ case 1:
2395
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2396
+ msg.addReferenceIds(value);
2397
+ break;
2398
+ default:
2399
+ reader.skipField();
2400
+ break;
2401
+ }
2402
+ }
2403
+ return msg;
2404
+ };
2405
+
2406
+
2407
+ /**
2408
+ * Serializes the message to binary data (in protobuf wire format).
2409
+ * @return {!Uint8Array}
2410
+ */
2411
+ proto.DeleteCustomerRequest.prototype.serializeBinary = function() {
2412
+ var writer = new jspb.BinaryWriter();
2413
+ proto.DeleteCustomerRequest.serializeBinaryToWriter(this, writer);
2414
+ return writer.getResultBuffer();
2415
+ };
2416
+
2417
+
2418
+ /**
2419
+ * Serializes the given message to binary data (in protobuf wire
2420
+ * format), writing to the given BinaryWriter.
2421
+ * @param {!proto.DeleteCustomerRequest} message
2422
+ * @param {!jspb.BinaryWriter} writer
2423
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2424
+ */
2425
+ proto.DeleteCustomerRequest.serializeBinaryToWriter = function(message, writer) {
2426
+ var f = undefined;
2427
+ f = message.getReferenceIdsList();
2428
+ if (f.length > 0) {
2429
+ writer.writeRepeatedString(
2430
+ 1,
2431
+ f
2432
+ );
2433
+ }
2434
+ };
2435
+
2436
+
2437
+ /**
2438
+ * repeated string reference_ids = 1;
2439
+ * @return {!Array<string>}
2440
+ */
2441
+ proto.DeleteCustomerRequest.prototype.getReferenceIdsList = function() {
2442
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2443
+ };
2444
+
2445
+
2446
+ /**
2447
+ * @param {!Array<string>} value
2448
+ * @return {!proto.DeleteCustomerRequest} returns this
2449
+ */
2450
+ proto.DeleteCustomerRequest.prototype.setReferenceIdsList = function(value) {
2451
+ return jspb.Message.setField(this, 1, value || []);
2452
+ };
2453
+
2454
+
2455
+ /**
2456
+ * @param {string} value
2457
+ * @param {number=} opt_index
2458
+ * @return {!proto.DeleteCustomerRequest} returns this
2459
+ */
2460
+ proto.DeleteCustomerRequest.prototype.addReferenceIds = function(value, opt_index) {
2461
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2462
+ };
2463
+
2464
+
2465
+ /**
2466
+ * Clears the list making it empty but non-null.
2467
+ * @return {!proto.DeleteCustomerRequest} returns this
2468
+ */
2469
+ proto.DeleteCustomerRequest.prototype.clearReferenceIdsList = function() {
2470
+ return this.setReferenceIdsList([]);
2471
+ };
2472
+
2473
+
2474
+
2475
+
2476
+
2477
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2478
+ /**
2479
+ * Creates an object representation of this proto.
2480
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2481
+ * Optional fields that are not set will be set to undefined.
2482
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2483
+ * For the list of reserved names please see:
2484
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2485
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2486
+ * JSPB instance for transitional soy proto support:
2487
+ * http://goto/soy-param-migration
2488
+ * @return {!Object}
2489
+ */
2490
+ proto.CreateCustomerResponse.prototype.toObject = function(opt_includeInstance) {
2491
+ return proto.CreateCustomerResponse.toObject(opt_includeInstance, this);
2492
+ };
2493
+
2494
+
2495
+ /**
2496
+ * Static version of the {@see toObject} method.
2497
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2498
+ * the JSPB instance for transitional soy proto support:
2499
+ * http://goto/soy-param-migration
2500
+ * @param {!proto.CreateCustomerResponse} msg The msg instance to transform.
2501
+ * @return {!Object}
2502
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2503
+ */
2504
+ proto.CreateCustomerResponse.toObject = function(includeInstance, msg) {
2505
+ var f, obj = {
2506
+ customer: (f = msg.getCustomer()) && proto.Customer.toObject(includeInstance, f),
2507
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2508
+ };
2509
+
2510
+ if (includeInstance) {
2511
+ obj.$jspbMessageInstance = msg;
2512
+ }
2513
+ return obj;
2514
+ };
2515
+ }
2516
+
2517
+
2518
+ /**
2519
+ * Deserializes binary data (in protobuf wire format).
2520
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2521
+ * @return {!proto.CreateCustomerResponse}
2522
+ */
2523
+ proto.CreateCustomerResponse.deserializeBinary = function(bytes) {
2524
+ var reader = new jspb.BinaryReader(bytes);
2525
+ var msg = new proto.CreateCustomerResponse;
2526
+ return proto.CreateCustomerResponse.deserializeBinaryFromReader(msg, reader);
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Deserializes binary data (in protobuf wire format) from the
2532
+ * given reader into the given message object.
2533
+ * @param {!proto.CreateCustomerResponse} msg The message object to deserialize into.
2534
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2535
+ * @return {!proto.CreateCustomerResponse}
2536
+ */
2537
+ proto.CreateCustomerResponse.deserializeBinaryFromReader = function(msg, reader) {
2538
+ while (reader.nextField()) {
2539
+ if (reader.isEndGroup()) {
2540
+ break;
2541
+ }
2542
+ var field = reader.getFieldNumber();
2543
+ switch (field) {
2544
+ case 1:
2545
+ var value = new proto.Customer;
2546
+ reader.readMessage(value,proto.Customer.deserializeBinaryFromReader);
2547
+ msg.setCustomer(value);
2548
+ break;
2549
+ case 2:
2550
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2551
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2552
+ msg.setMeta(value);
2553
+ break;
2554
+ default:
2555
+ reader.skipField();
2556
+ break;
2557
+ }
2558
+ }
2559
+ return msg;
2560
+ };
2561
+
2562
+
2563
+ /**
2564
+ * Serializes the message to binary data (in protobuf wire format).
2565
+ * @return {!Uint8Array}
2566
+ */
2567
+ proto.CreateCustomerResponse.prototype.serializeBinary = function() {
2568
+ var writer = new jspb.BinaryWriter();
2569
+ proto.CreateCustomerResponse.serializeBinaryToWriter(this, writer);
2570
+ return writer.getResultBuffer();
2571
+ };
2572
+
2573
+
2574
+ /**
2575
+ * Serializes the given message to binary data (in protobuf wire
2576
+ * format), writing to the given BinaryWriter.
2577
+ * @param {!proto.CreateCustomerResponse} message
2578
+ * @param {!jspb.BinaryWriter} writer
2579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2580
+ */
2581
+ proto.CreateCustomerResponse.serializeBinaryToWriter = function(message, writer) {
2582
+ var f = undefined;
2583
+ f = message.getCustomer();
2584
+ if (f != null) {
2585
+ writer.writeMessage(
2586
+ 1,
2587
+ f,
2588
+ proto.Customer.serializeBinaryToWriter
2589
+ );
2590
+ }
2591
+ f = message.getMeta();
2592
+ if (f != null) {
2593
+ writer.writeMessage(
2594
+ 2,
2595
+ f,
2596
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2597
+ );
2598
+ }
2599
+ };
2600
+
2601
+
2602
+ /**
2603
+ * optional Customer customer = 1;
2604
+ * @return {?proto.Customer}
2605
+ */
2606
+ proto.CreateCustomerResponse.prototype.getCustomer = function() {
2607
+ return /** @type{?proto.Customer} */ (
2608
+ jspb.Message.getWrapperField(this, proto.Customer, 1));
2609
+ };
2610
+
2611
+
2612
+ /**
2613
+ * @param {?proto.Customer|undefined} value
2614
+ * @return {!proto.CreateCustomerResponse} returns this
2615
+ */
2616
+ proto.CreateCustomerResponse.prototype.setCustomer = function(value) {
2617
+ return jspb.Message.setWrapperField(this, 1, value);
2618
+ };
2619
+
2620
+
2621
+ /**
2622
+ * Clears the message field making it undefined.
2623
+ * @return {!proto.CreateCustomerResponse} returns this
2624
+ */
2625
+ proto.CreateCustomerResponse.prototype.clearCustomer = function() {
2626
+ return this.setCustomer(undefined);
2627
+ };
2628
+
2629
+
2630
+ /**
2631
+ * Returns whether this field is set.
2632
+ * @return {boolean}
2633
+ */
2634
+ proto.CreateCustomerResponse.prototype.hasCustomer = function() {
2635
+ return jspb.Message.getField(this, 1) != null;
2636
+ };
2637
+
2638
+
2639
+ /**
2640
+ * optional prisca.v1.global.meta.Meta meta = 2;
2641
+ * @return {?proto.prisca.v1.global.meta.Meta}
2642
+ */
2643
+ proto.CreateCustomerResponse.prototype.getMeta = function() {
2644
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2645
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2646
+ };
2647
+
2648
+
2649
+ /**
2650
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2651
+ * @return {!proto.CreateCustomerResponse} returns this
2652
+ */
2653
+ proto.CreateCustomerResponse.prototype.setMeta = function(value) {
2654
+ return jspb.Message.setWrapperField(this, 2, value);
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * Clears the message field making it undefined.
2660
+ * @return {!proto.CreateCustomerResponse} returns this
2661
+ */
2662
+ proto.CreateCustomerResponse.prototype.clearMeta = function() {
2663
+ return this.setMeta(undefined);
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * Returns whether this field is set.
2669
+ * @return {boolean}
2670
+ */
2671
+ proto.CreateCustomerResponse.prototype.hasMeta = function() {
2672
+ return jspb.Message.getField(this, 2) != null;
2673
+ };
2674
+
2675
+
2676
+
2677
+
2678
+
2679
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2680
+ /**
2681
+ * Creates an object representation of this proto.
2682
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2683
+ * Optional fields that are not set will be set to undefined.
2684
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2685
+ * For the list of reserved names please see:
2686
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2687
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2688
+ * JSPB instance for transitional soy proto support:
2689
+ * http://goto/soy-param-migration
2690
+ * @return {!Object}
2691
+ */
2692
+ proto.UpdateCustomerResponse.prototype.toObject = function(opt_includeInstance) {
2693
+ return proto.UpdateCustomerResponse.toObject(opt_includeInstance, this);
2694
+ };
2695
+
2696
+
2697
+ /**
2698
+ * Static version of the {@see toObject} method.
2699
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2700
+ * the JSPB instance for transitional soy proto support:
2701
+ * http://goto/soy-param-migration
2702
+ * @param {!proto.UpdateCustomerResponse} msg The msg instance to transform.
2703
+ * @return {!Object}
2704
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2705
+ */
2706
+ proto.UpdateCustomerResponse.toObject = function(includeInstance, msg) {
2707
+ var f, obj = {
2708
+ customer: (f = msg.getCustomer()) && proto.Customer.toObject(includeInstance, f),
2709
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2710
+ };
2711
+
2712
+ if (includeInstance) {
2713
+ obj.$jspbMessageInstance = msg;
2714
+ }
2715
+ return obj;
2716
+ };
2717
+ }
2718
+
2719
+
2720
+ /**
2721
+ * Deserializes binary data (in protobuf wire format).
2722
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2723
+ * @return {!proto.UpdateCustomerResponse}
2724
+ */
2725
+ proto.UpdateCustomerResponse.deserializeBinary = function(bytes) {
2726
+ var reader = new jspb.BinaryReader(bytes);
2727
+ var msg = new proto.UpdateCustomerResponse;
2728
+ return proto.UpdateCustomerResponse.deserializeBinaryFromReader(msg, reader);
2729
+ };
2730
+
2731
+
2732
+ /**
2733
+ * Deserializes binary data (in protobuf wire format) from the
2734
+ * given reader into the given message object.
2735
+ * @param {!proto.UpdateCustomerResponse} msg The message object to deserialize into.
2736
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2737
+ * @return {!proto.UpdateCustomerResponse}
2738
+ */
2739
+ proto.UpdateCustomerResponse.deserializeBinaryFromReader = function(msg, reader) {
2740
+ while (reader.nextField()) {
2741
+ if (reader.isEndGroup()) {
2742
+ break;
2743
+ }
2744
+ var field = reader.getFieldNumber();
2745
+ switch (field) {
2746
+ case 1:
2747
+ var value = new proto.Customer;
2748
+ reader.readMessage(value,proto.Customer.deserializeBinaryFromReader);
2749
+ msg.setCustomer(value);
2750
+ break;
2751
+ case 2:
2752
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2753
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2754
+ msg.setMeta(value);
2755
+ break;
2756
+ default:
2757
+ reader.skipField();
2758
+ break;
2759
+ }
2760
+ }
2761
+ return msg;
2762
+ };
2763
+
2764
+
2765
+ /**
2766
+ * Serializes the message to binary data (in protobuf wire format).
2767
+ * @return {!Uint8Array}
2768
+ */
2769
+ proto.UpdateCustomerResponse.prototype.serializeBinary = function() {
2770
+ var writer = new jspb.BinaryWriter();
2771
+ proto.UpdateCustomerResponse.serializeBinaryToWriter(this, writer);
2772
+ return writer.getResultBuffer();
2773
+ };
2774
+
2775
+
2776
+ /**
2777
+ * Serializes the given message to binary data (in protobuf wire
2778
+ * format), writing to the given BinaryWriter.
2779
+ * @param {!proto.UpdateCustomerResponse} message
2780
+ * @param {!jspb.BinaryWriter} writer
2781
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2782
+ */
2783
+ proto.UpdateCustomerResponse.serializeBinaryToWriter = function(message, writer) {
2784
+ var f = undefined;
2785
+ f = message.getCustomer();
2786
+ if (f != null) {
2787
+ writer.writeMessage(
2788
+ 1,
2789
+ f,
2790
+ proto.Customer.serializeBinaryToWriter
2791
+ );
2792
+ }
2793
+ f = message.getMeta();
2794
+ if (f != null) {
2795
+ writer.writeMessage(
2796
+ 2,
2797
+ f,
2798
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2799
+ );
2800
+ }
2801
+ };
2802
+
2803
+
2804
+ /**
2805
+ * optional Customer customer = 1;
2806
+ * @return {?proto.Customer}
2807
+ */
2808
+ proto.UpdateCustomerResponse.prototype.getCustomer = function() {
2809
+ return /** @type{?proto.Customer} */ (
2810
+ jspb.Message.getWrapperField(this, proto.Customer, 1));
2811
+ };
2812
+
2813
+
2814
+ /**
2815
+ * @param {?proto.Customer|undefined} value
2816
+ * @return {!proto.UpdateCustomerResponse} returns this
2817
+ */
2818
+ proto.UpdateCustomerResponse.prototype.setCustomer = function(value) {
2819
+ return jspb.Message.setWrapperField(this, 1, value);
2820
+ };
2821
+
2822
+
2823
+ /**
2824
+ * Clears the message field making it undefined.
2825
+ * @return {!proto.UpdateCustomerResponse} returns this
2826
+ */
2827
+ proto.UpdateCustomerResponse.prototype.clearCustomer = function() {
2828
+ return this.setCustomer(undefined);
2829
+ };
2830
+
2831
+
2832
+ /**
2833
+ * Returns whether this field is set.
2834
+ * @return {boolean}
2835
+ */
2836
+ proto.UpdateCustomerResponse.prototype.hasCustomer = function() {
2837
+ return jspb.Message.getField(this, 1) != null;
2838
+ };
2839
+
2840
+
2841
+ /**
2842
+ * optional prisca.v1.global.meta.Meta meta = 2;
2843
+ * @return {?proto.prisca.v1.global.meta.Meta}
2844
+ */
2845
+ proto.UpdateCustomerResponse.prototype.getMeta = function() {
2846
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2847
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2848
+ };
2849
+
2850
+
2851
+ /**
2852
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2853
+ * @return {!proto.UpdateCustomerResponse} returns this
2854
+ */
2855
+ proto.UpdateCustomerResponse.prototype.setMeta = function(value) {
2856
+ return jspb.Message.setWrapperField(this, 2, value);
2857
+ };
2858
+
2859
+
2860
+ /**
2861
+ * Clears the message field making it undefined.
2862
+ * @return {!proto.UpdateCustomerResponse} returns this
2863
+ */
2864
+ proto.UpdateCustomerResponse.prototype.clearMeta = function() {
2865
+ return this.setMeta(undefined);
2866
+ };
2867
+
2868
+
2869
+ /**
2870
+ * Returns whether this field is set.
2871
+ * @return {boolean}
2872
+ */
2873
+ proto.UpdateCustomerResponse.prototype.hasMeta = function() {
2874
+ return jspb.Message.getField(this, 2) != null;
2875
+ };
2876
+
2877
+
2878
+
2879
+
2880
+
2881
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2882
+ /**
2883
+ * Creates an object representation of this proto.
2884
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2885
+ * Optional fields that are not set will be set to undefined.
2886
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2887
+ * For the list of reserved names please see:
2888
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2889
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2890
+ * JSPB instance for transitional soy proto support:
2891
+ * http://goto/soy-param-migration
2892
+ * @return {!Object}
2893
+ */
2894
+ proto.GetCustomerByIdResponse.prototype.toObject = function(opt_includeInstance) {
2895
+ return proto.GetCustomerByIdResponse.toObject(opt_includeInstance, this);
2896
+ };
2897
+
2898
+
2899
+ /**
2900
+ * Static version of the {@see toObject} method.
2901
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2902
+ * the JSPB instance for transitional soy proto support:
2903
+ * http://goto/soy-param-migration
2904
+ * @param {!proto.GetCustomerByIdResponse} msg The msg instance to transform.
2905
+ * @return {!Object}
2906
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2907
+ */
2908
+ proto.GetCustomerByIdResponse.toObject = function(includeInstance, msg) {
2909
+ var f, obj = {
2910
+ customer: (f = msg.getCustomer()) && proto.Customer.toObject(includeInstance, f),
2911
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2912
+ };
2913
+
2914
+ if (includeInstance) {
2915
+ obj.$jspbMessageInstance = msg;
2916
+ }
2917
+ return obj;
2918
+ };
2919
+ }
2920
+
2921
+
2922
+ /**
2923
+ * Deserializes binary data (in protobuf wire format).
2924
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2925
+ * @return {!proto.GetCustomerByIdResponse}
2926
+ */
2927
+ proto.GetCustomerByIdResponse.deserializeBinary = function(bytes) {
2928
+ var reader = new jspb.BinaryReader(bytes);
2929
+ var msg = new proto.GetCustomerByIdResponse;
2930
+ return proto.GetCustomerByIdResponse.deserializeBinaryFromReader(msg, reader);
2931
+ };
2932
+
2933
+
2934
+ /**
2935
+ * Deserializes binary data (in protobuf wire format) from the
2936
+ * given reader into the given message object.
2937
+ * @param {!proto.GetCustomerByIdResponse} msg The message object to deserialize into.
2938
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2939
+ * @return {!proto.GetCustomerByIdResponse}
2940
+ */
2941
+ proto.GetCustomerByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2942
+ while (reader.nextField()) {
2943
+ if (reader.isEndGroup()) {
2944
+ break;
2945
+ }
2946
+ var field = reader.getFieldNumber();
2947
+ switch (field) {
2948
+ case 1:
2949
+ var value = new proto.Customer;
2950
+ reader.readMessage(value,proto.Customer.deserializeBinaryFromReader);
2951
+ msg.setCustomer(value);
2952
+ break;
2953
+ case 2:
2954
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2955
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2956
+ msg.setMeta(value);
2957
+ break;
2958
+ default:
2959
+ reader.skipField();
2960
+ break;
2961
+ }
2962
+ }
2963
+ return msg;
2964
+ };
2965
+
2966
+
2967
+ /**
2968
+ * Serializes the message to binary data (in protobuf wire format).
2969
+ * @return {!Uint8Array}
2970
+ */
2971
+ proto.GetCustomerByIdResponse.prototype.serializeBinary = function() {
2972
+ var writer = new jspb.BinaryWriter();
2973
+ proto.GetCustomerByIdResponse.serializeBinaryToWriter(this, writer);
2974
+ return writer.getResultBuffer();
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * Serializes the given message to binary data (in protobuf wire
2980
+ * format), writing to the given BinaryWriter.
2981
+ * @param {!proto.GetCustomerByIdResponse} message
2982
+ * @param {!jspb.BinaryWriter} writer
2983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2984
+ */
2985
+ proto.GetCustomerByIdResponse.serializeBinaryToWriter = function(message, writer) {
2986
+ var f = undefined;
2987
+ f = message.getCustomer();
2988
+ if (f != null) {
2989
+ writer.writeMessage(
2990
+ 1,
2991
+ f,
2992
+ proto.Customer.serializeBinaryToWriter
2993
+ );
2994
+ }
2995
+ f = message.getMeta();
2996
+ if (f != null) {
2997
+ writer.writeMessage(
2998
+ 2,
2999
+ f,
3000
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3001
+ );
3002
+ }
3003
+ };
3004
+
3005
+
3006
+ /**
3007
+ * optional Customer customer = 1;
3008
+ * @return {?proto.Customer}
3009
+ */
3010
+ proto.GetCustomerByIdResponse.prototype.getCustomer = function() {
3011
+ return /** @type{?proto.Customer} */ (
3012
+ jspb.Message.getWrapperField(this, proto.Customer, 1));
3013
+ };
3014
+
3015
+
3016
+ /**
3017
+ * @param {?proto.Customer|undefined} value
3018
+ * @return {!proto.GetCustomerByIdResponse} returns this
3019
+ */
3020
+ proto.GetCustomerByIdResponse.prototype.setCustomer = function(value) {
3021
+ return jspb.Message.setWrapperField(this, 1, value);
3022
+ };
3023
+
3024
+
3025
+ /**
3026
+ * Clears the message field making it undefined.
3027
+ * @return {!proto.GetCustomerByIdResponse} returns this
3028
+ */
3029
+ proto.GetCustomerByIdResponse.prototype.clearCustomer = function() {
3030
+ return this.setCustomer(undefined);
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * Returns whether this field is set.
3036
+ * @return {boolean}
3037
+ */
3038
+ proto.GetCustomerByIdResponse.prototype.hasCustomer = function() {
3039
+ return jspb.Message.getField(this, 1) != null;
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * optional prisca.v1.global.meta.Meta meta = 2;
3045
+ * @return {?proto.prisca.v1.global.meta.Meta}
3046
+ */
3047
+ proto.GetCustomerByIdResponse.prototype.getMeta = function() {
3048
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3049
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3050
+ };
3051
+
3052
+
3053
+ /**
3054
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3055
+ * @return {!proto.GetCustomerByIdResponse} returns this
3056
+ */
3057
+ proto.GetCustomerByIdResponse.prototype.setMeta = function(value) {
3058
+ return jspb.Message.setWrapperField(this, 2, value);
3059
+ };
3060
+
3061
+
3062
+ /**
3063
+ * Clears the message field making it undefined.
3064
+ * @return {!proto.GetCustomerByIdResponse} returns this
3065
+ */
3066
+ proto.GetCustomerByIdResponse.prototype.clearMeta = function() {
3067
+ return this.setMeta(undefined);
3068
+ };
3069
+
3070
+
3071
+ /**
3072
+ * Returns whether this field is set.
3073
+ * @return {boolean}
3074
+ */
3075
+ proto.GetCustomerByIdResponse.prototype.hasMeta = function() {
3076
+ return jspb.Message.getField(this, 2) != null;
3077
+ };
3078
+
3079
+
3080
+
3081
+ /**
3082
+ * List of repeated fields within this message type.
3083
+ * @private {!Array<number>}
3084
+ * @const
3085
+ */
3086
+ proto.GetListCustomerResponse.repeatedFields_ = [1];
3087
+
3088
+
3089
+
3090
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3091
+ /**
3092
+ * Creates an object representation of this proto.
3093
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3094
+ * Optional fields that are not set will be set to undefined.
3095
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3096
+ * For the list of reserved names please see:
3097
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3098
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3099
+ * JSPB instance for transitional soy proto support:
3100
+ * http://goto/soy-param-migration
3101
+ * @return {!Object}
3102
+ */
3103
+ proto.GetListCustomerResponse.prototype.toObject = function(opt_includeInstance) {
3104
+ return proto.GetListCustomerResponse.toObject(opt_includeInstance, this);
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * Static version of the {@see toObject} method.
3110
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3111
+ * the JSPB instance for transitional soy proto support:
3112
+ * http://goto/soy-param-migration
3113
+ * @param {!proto.GetListCustomerResponse} msg The msg instance to transform.
3114
+ * @return {!Object}
3115
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3116
+ */
3117
+ proto.GetListCustomerResponse.toObject = function(includeInstance, msg) {
3118
+ var f, obj = {
3119
+ customersList: jspb.Message.toObjectList(msg.getCustomersList(),
3120
+ proto.Customer.toObject, includeInstance),
3121
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3122
+ };
3123
+
3124
+ if (includeInstance) {
3125
+ obj.$jspbMessageInstance = msg;
3126
+ }
3127
+ return obj;
3128
+ };
3129
+ }
3130
+
3131
+
3132
+ /**
3133
+ * Deserializes binary data (in protobuf wire format).
3134
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3135
+ * @return {!proto.GetListCustomerResponse}
3136
+ */
3137
+ proto.GetListCustomerResponse.deserializeBinary = function(bytes) {
3138
+ var reader = new jspb.BinaryReader(bytes);
3139
+ var msg = new proto.GetListCustomerResponse;
3140
+ return proto.GetListCustomerResponse.deserializeBinaryFromReader(msg, reader);
3141
+ };
3142
+
3143
+
3144
+ /**
3145
+ * Deserializes binary data (in protobuf wire format) from the
3146
+ * given reader into the given message object.
3147
+ * @param {!proto.GetListCustomerResponse} msg The message object to deserialize into.
3148
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3149
+ * @return {!proto.GetListCustomerResponse}
3150
+ */
3151
+ proto.GetListCustomerResponse.deserializeBinaryFromReader = function(msg, reader) {
3152
+ while (reader.nextField()) {
3153
+ if (reader.isEndGroup()) {
3154
+ break;
3155
+ }
3156
+ var field = reader.getFieldNumber();
3157
+ switch (field) {
3158
+ case 1:
3159
+ var value = new proto.Customer;
3160
+ reader.readMessage(value,proto.Customer.deserializeBinaryFromReader);
3161
+ msg.addCustomers(value);
3162
+ break;
3163
+ case 2:
3164
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3165
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3166
+ msg.setMeta(value);
3167
+ break;
3168
+ default:
3169
+ reader.skipField();
3170
+ break;
3171
+ }
3172
+ }
3173
+ return msg;
3174
+ };
3175
+
3176
+
3177
+ /**
3178
+ * Serializes the message to binary data (in protobuf wire format).
3179
+ * @return {!Uint8Array}
3180
+ */
3181
+ proto.GetListCustomerResponse.prototype.serializeBinary = function() {
3182
+ var writer = new jspb.BinaryWriter();
3183
+ proto.GetListCustomerResponse.serializeBinaryToWriter(this, writer);
3184
+ return writer.getResultBuffer();
3185
+ };
3186
+
3187
+
3188
+ /**
3189
+ * Serializes the given message to binary data (in protobuf wire
3190
+ * format), writing to the given BinaryWriter.
3191
+ * @param {!proto.GetListCustomerResponse} message
3192
+ * @param {!jspb.BinaryWriter} writer
3193
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3194
+ */
3195
+ proto.GetListCustomerResponse.serializeBinaryToWriter = function(message, writer) {
3196
+ var f = undefined;
3197
+ f = message.getCustomersList();
3198
+ if (f.length > 0) {
3199
+ writer.writeRepeatedMessage(
3200
+ 1,
3201
+ f,
3202
+ proto.Customer.serializeBinaryToWriter
3203
+ );
3204
+ }
3205
+ f = message.getMeta();
3206
+ if (f != null) {
3207
+ writer.writeMessage(
3208
+ 2,
3209
+ f,
3210
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3211
+ );
3212
+ }
3213
+ };
3214
+
3215
+
3216
+ /**
3217
+ * repeated Customer customers = 1;
3218
+ * @return {!Array<!proto.Customer>}
3219
+ */
3220
+ proto.GetListCustomerResponse.prototype.getCustomersList = function() {
3221
+ return /** @type{!Array<!proto.Customer>} */ (
3222
+ jspb.Message.getRepeatedWrapperField(this, proto.Customer, 1));
3223
+ };
3224
+
3225
+
3226
+ /**
3227
+ * @param {!Array<!proto.Customer>} value
3228
+ * @return {!proto.GetListCustomerResponse} returns this
3229
+ */
3230
+ proto.GetListCustomerResponse.prototype.setCustomersList = function(value) {
3231
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3232
+ };
3233
+
3234
+
3235
+ /**
3236
+ * @param {!proto.Customer=} opt_value
3237
+ * @param {number=} opt_index
3238
+ * @return {!proto.Customer}
3239
+ */
3240
+ proto.GetListCustomerResponse.prototype.addCustomers = function(opt_value, opt_index) {
3241
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Customer, opt_index);
3242
+ };
3243
+
3244
+
3245
+ /**
3246
+ * Clears the list making it empty but non-null.
3247
+ * @return {!proto.GetListCustomerResponse} returns this
3248
+ */
3249
+ proto.GetListCustomerResponse.prototype.clearCustomersList = function() {
3250
+ return this.setCustomersList([]);
3251
+ };
3252
+
3253
+
3254
+ /**
3255
+ * optional prisca.v1.global.meta.Meta meta = 2;
3256
+ * @return {?proto.prisca.v1.global.meta.Meta}
3257
+ */
3258
+ proto.GetListCustomerResponse.prototype.getMeta = function() {
3259
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3260
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3261
+ };
3262
+
3263
+
3264
+ /**
3265
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3266
+ * @return {!proto.GetListCustomerResponse} returns this
3267
+ */
3268
+ proto.GetListCustomerResponse.prototype.setMeta = function(value) {
3269
+ return jspb.Message.setWrapperField(this, 2, value);
3270
+ };
3271
+
3272
+
3273
+ /**
3274
+ * Clears the message field making it undefined.
3275
+ * @return {!proto.GetListCustomerResponse} returns this
3276
+ */
3277
+ proto.GetListCustomerResponse.prototype.clearMeta = function() {
3278
+ return this.setMeta(undefined);
3279
+ };
3280
+
3281
+
3282
+ /**
3283
+ * Returns whether this field is set.
3284
+ * @return {boolean}
3285
+ */
3286
+ proto.GetListCustomerResponse.prototype.hasMeta = function() {
3287
+ return jspb.Message.getField(this, 2) != null;
3288
+ };
3289
+
3290
+
3291
+
3292
+ /**
3293
+ * List of repeated fields within this message type.
3294
+ * @private {!Array<number>}
3295
+ * @const
3296
+ */
3297
+ proto.DeleteCustomerResponse.repeatedFields_ = [1];
3298
+
3299
+
3300
+
3301
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3302
+ /**
3303
+ * Creates an object representation of this proto.
3304
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3305
+ * Optional fields that are not set will be set to undefined.
3306
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3307
+ * For the list of reserved names please see:
3308
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3309
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3310
+ * JSPB instance for transitional soy proto support:
3311
+ * http://goto/soy-param-migration
3312
+ * @return {!Object}
3313
+ */
3314
+ proto.DeleteCustomerResponse.prototype.toObject = function(opt_includeInstance) {
3315
+ return proto.DeleteCustomerResponse.toObject(opt_includeInstance, this);
3316
+ };
3317
+
3318
+
3319
+ /**
3320
+ * Static version of the {@see toObject} method.
3321
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3322
+ * the JSPB instance for transitional soy proto support:
3323
+ * http://goto/soy-param-migration
3324
+ * @param {!proto.DeleteCustomerResponse} msg The msg instance to transform.
3325
+ * @return {!Object}
3326
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3327
+ */
3328
+ proto.DeleteCustomerResponse.toObject = function(includeInstance, msg) {
3329
+ var f, obj = {
3330
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3331
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3332
+ };
3333
+
3334
+ if (includeInstance) {
3335
+ obj.$jspbMessageInstance = msg;
3336
+ }
3337
+ return obj;
3338
+ };
3339
+ }
3340
+
3341
+
3342
+ /**
3343
+ * Deserializes binary data (in protobuf wire format).
3344
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3345
+ * @return {!proto.DeleteCustomerResponse}
3346
+ */
3347
+ proto.DeleteCustomerResponse.deserializeBinary = function(bytes) {
3348
+ var reader = new jspb.BinaryReader(bytes);
3349
+ var msg = new proto.DeleteCustomerResponse;
3350
+ return proto.DeleteCustomerResponse.deserializeBinaryFromReader(msg, reader);
3351
+ };
3352
+
3353
+
3354
+ /**
3355
+ * Deserializes binary data (in protobuf wire format) from the
3356
+ * given reader into the given message object.
3357
+ * @param {!proto.DeleteCustomerResponse} msg The message object to deserialize into.
3358
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3359
+ * @return {!proto.DeleteCustomerResponse}
3360
+ */
3361
+ proto.DeleteCustomerResponse.deserializeBinaryFromReader = function(msg, reader) {
3362
+ while (reader.nextField()) {
3363
+ if (reader.isEndGroup()) {
3364
+ break;
3365
+ }
3366
+ var field = reader.getFieldNumber();
3367
+ switch (field) {
3368
+ case 1:
3369
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3370
+ msg.addReferenceIds(value);
3371
+ break;
3372
+ case 2:
3373
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3374
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3375
+ msg.setMeta(value);
3376
+ break;
3377
+ default:
3378
+ reader.skipField();
3379
+ break;
3380
+ }
3381
+ }
3382
+ return msg;
3383
+ };
3384
+
3385
+
3386
+ /**
3387
+ * Serializes the message to binary data (in protobuf wire format).
3388
+ * @return {!Uint8Array}
3389
+ */
3390
+ proto.DeleteCustomerResponse.prototype.serializeBinary = function() {
3391
+ var writer = new jspb.BinaryWriter();
3392
+ proto.DeleteCustomerResponse.serializeBinaryToWriter(this, writer);
3393
+ return writer.getResultBuffer();
3394
+ };
3395
+
3396
+
3397
+ /**
3398
+ * Serializes the given message to binary data (in protobuf wire
3399
+ * format), writing to the given BinaryWriter.
3400
+ * @param {!proto.DeleteCustomerResponse} message
3401
+ * @param {!jspb.BinaryWriter} writer
3402
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3403
+ */
3404
+ proto.DeleteCustomerResponse.serializeBinaryToWriter = function(message, writer) {
3405
+ var f = undefined;
3406
+ f = message.getReferenceIdsList();
3407
+ if (f.length > 0) {
3408
+ writer.writeRepeatedString(
3409
+ 1,
3410
+ f
3411
+ );
3412
+ }
3413
+ f = message.getMeta();
3414
+ if (f != null) {
3415
+ writer.writeMessage(
3416
+ 2,
3417
+ f,
3418
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3419
+ );
3420
+ }
3421
+ };
3422
+
3423
+
3424
+ /**
3425
+ * repeated string reference_ids = 1;
3426
+ * @return {!Array<string>}
3427
+ */
3428
+ proto.DeleteCustomerResponse.prototype.getReferenceIdsList = function() {
3429
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3430
+ };
3431
+
3432
+
3433
+ /**
3434
+ * @param {!Array<string>} value
3435
+ * @return {!proto.DeleteCustomerResponse} returns this
3436
+ */
3437
+ proto.DeleteCustomerResponse.prototype.setReferenceIdsList = function(value) {
3438
+ return jspb.Message.setField(this, 1, value || []);
3439
+ };
3440
+
3441
+
3442
+ /**
3443
+ * @param {string} value
3444
+ * @param {number=} opt_index
3445
+ * @return {!proto.DeleteCustomerResponse} returns this
3446
+ */
3447
+ proto.DeleteCustomerResponse.prototype.addReferenceIds = function(value, opt_index) {
3448
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3449
+ };
3450
+
3451
+
3452
+ /**
3453
+ * Clears the list making it empty but non-null.
3454
+ * @return {!proto.DeleteCustomerResponse} returns this
3455
+ */
3456
+ proto.DeleteCustomerResponse.prototype.clearReferenceIdsList = function() {
3457
+ return this.setReferenceIdsList([]);
3458
+ };
3459
+
3460
+
3461
+ /**
3462
+ * optional prisca.v1.global.meta.Meta meta = 2;
3463
+ * @return {?proto.prisca.v1.global.meta.Meta}
3464
+ */
3465
+ proto.DeleteCustomerResponse.prototype.getMeta = function() {
3466
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3467
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3473
+ * @return {!proto.DeleteCustomerResponse} returns this
3474
+ */
3475
+ proto.DeleteCustomerResponse.prototype.setMeta = function(value) {
3476
+ return jspb.Message.setWrapperField(this, 2, value);
3477
+ };
3478
+
3479
+
3480
+ /**
3481
+ * Clears the message field making it undefined.
3482
+ * @return {!proto.DeleteCustomerResponse} returns this
3483
+ */
3484
+ proto.DeleteCustomerResponse.prototype.clearMeta = function() {
3485
+ return this.setMeta(undefined);
3486
+ };
3487
+
3488
+
3489
+ /**
3490
+ * Returns whether this field is set.
3491
+ * @return {boolean}
3492
+ */
3493
+ proto.DeleteCustomerResponse.prototype.hasMeta = function() {
3494
+ return jspb.Message.getField(this, 2) != null;
3495
+ };
3496
+
3497
+
3498
+ goog.object.extend(exports, proto);