@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,1300 @@
1
+ // source: prisca/v1/customer/customer_registration.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.RegisterCustomerRequest', null, global);
21
+ goog.exportSymbol('proto.RegisterCustomerResponse', null, global);
22
+ goog.exportSymbol('proto.RequestRegisterCustomerRequest', null, global);
23
+ goog.exportSymbol('proto.RequestRegisterCustomerResponse', null, global);
24
+ /**
25
+ * Generated by JsPbCodeGenerator.
26
+ * @param {Array=} opt_data Optional initial data array, typically from a
27
+ * server response, or constructed directly in Javascript. The array is used
28
+ * in place and becomes part of the constructed object. It is not cloned.
29
+ * If no data is provided, the constructed object will be empty, but still
30
+ * valid.
31
+ * @extends {jspb.Message}
32
+ * @constructor
33
+ */
34
+ proto.RequestRegisterCustomerRequest = function(opt_data) {
35
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
36
+ };
37
+ goog.inherits(proto.RequestRegisterCustomerRequest, jspb.Message);
38
+ if (goog.DEBUG && !COMPILED) {
39
+ /**
40
+ * @public
41
+ * @override
42
+ */
43
+ proto.RequestRegisterCustomerRequest.displayName = 'proto.RequestRegisterCustomerRequest';
44
+ }
45
+ /**
46
+ * Generated by JsPbCodeGenerator.
47
+ * @param {Array=} opt_data Optional initial data array, typically from a
48
+ * server response, or constructed directly in Javascript. The array is used
49
+ * in place and becomes part of the constructed object. It is not cloned.
50
+ * If no data is provided, the constructed object will be empty, but still
51
+ * valid.
52
+ * @extends {jspb.Message}
53
+ * @constructor
54
+ */
55
+ proto.RegisterCustomerRequest = function(opt_data) {
56
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
57
+ };
58
+ goog.inherits(proto.RegisterCustomerRequest, jspb.Message);
59
+ if (goog.DEBUG && !COMPILED) {
60
+ /**
61
+ * @public
62
+ * @override
63
+ */
64
+ proto.RegisterCustomerRequest.displayName = 'proto.RegisterCustomerRequest';
65
+ }
66
+ /**
67
+ * Generated by JsPbCodeGenerator.
68
+ * @param {Array=} opt_data Optional initial data array, typically from a
69
+ * server response, or constructed directly in Javascript. The array is used
70
+ * in place and becomes part of the constructed object. It is not cloned.
71
+ * If no data is provided, the constructed object will be empty, but still
72
+ * valid.
73
+ * @extends {jspb.Message}
74
+ * @constructor
75
+ */
76
+ proto.RequestRegisterCustomerResponse = function(opt_data) {
77
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
78
+ };
79
+ goog.inherits(proto.RequestRegisterCustomerResponse, jspb.Message);
80
+ if (goog.DEBUG && !COMPILED) {
81
+ /**
82
+ * @public
83
+ * @override
84
+ */
85
+ proto.RequestRegisterCustomerResponse.displayName = 'proto.RequestRegisterCustomerResponse';
86
+ }
87
+ /**
88
+ * Generated by JsPbCodeGenerator.
89
+ * @param {Array=} opt_data Optional initial data array, typically from a
90
+ * server response, or constructed directly in Javascript. The array is used
91
+ * in place and becomes part of the constructed object. It is not cloned.
92
+ * If no data is provided, the constructed object will be empty, but still
93
+ * valid.
94
+ * @extends {jspb.Message}
95
+ * @constructor
96
+ */
97
+ proto.RegisterCustomerResponse = function(opt_data) {
98
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
99
+ };
100
+ goog.inherits(proto.RegisterCustomerResponse, jspb.Message);
101
+ if (goog.DEBUG && !COMPILED) {
102
+ /**
103
+ * @public
104
+ * @override
105
+ */
106
+ proto.RegisterCustomerResponse.displayName = 'proto.RegisterCustomerResponse';
107
+ }
108
+
109
+
110
+
111
+ if (jspb.Message.GENERATE_TO_OBJECT) {
112
+ /**
113
+ * Creates an object representation of this proto.
114
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
115
+ * Optional fields that are not set will be set to undefined.
116
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
117
+ * For the list of reserved names please see:
118
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
119
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
120
+ * JSPB instance for transitional soy proto support:
121
+ * http://goto/soy-param-migration
122
+ * @return {!Object}
123
+ */
124
+ proto.RequestRegisterCustomerRequest.prototype.toObject = function(opt_includeInstance) {
125
+ return proto.RequestRegisterCustomerRequest.toObject(opt_includeInstance, this);
126
+ };
127
+
128
+
129
+ /**
130
+ * Static version of the {@see toObject} method.
131
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
132
+ * the JSPB instance for transitional soy proto support:
133
+ * http://goto/soy-param-migration
134
+ * @param {!proto.RequestRegisterCustomerRequest} msg The msg instance to transform.
135
+ * @return {!Object}
136
+ * @suppress {unusedLocalVariables} f is only used for nested messages
137
+ */
138
+ proto.RequestRegisterCustomerRequest.toObject = function(includeInstance, msg) {
139
+ var f, obj = {
140
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
141
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
142
+ bpGroupingReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
143
+ customerAccountGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
144
+ };
145
+
146
+ if (includeInstance) {
147
+ obj.$jspbMessageInstance = msg;
148
+ }
149
+ return obj;
150
+ };
151
+ }
152
+
153
+
154
+ /**
155
+ * Deserializes binary data (in protobuf wire format).
156
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
157
+ * @return {!proto.RequestRegisterCustomerRequest}
158
+ */
159
+ proto.RequestRegisterCustomerRequest.deserializeBinary = function(bytes) {
160
+ var reader = new jspb.BinaryReader(bytes);
161
+ var msg = new proto.RequestRegisterCustomerRequest;
162
+ return proto.RequestRegisterCustomerRequest.deserializeBinaryFromReader(msg, reader);
163
+ };
164
+
165
+
166
+ /**
167
+ * Deserializes binary data (in protobuf wire format) from the
168
+ * given reader into the given message object.
169
+ * @param {!proto.RequestRegisterCustomerRequest} msg The message object to deserialize into.
170
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
171
+ * @return {!proto.RequestRegisterCustomerRequest}
172
+ */
173
+ proto.RequestRegisterCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
174
+ while (reader.nextField()) {
175
+ if (reader.isEndGroup()) {
176
+ break;
177
+ }
178
+ var field = reader.getFieldNumber();
179
+ switch (field) {
180
+ case 1:
181
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
182
+ msg.setEmail(value);
183
+ break;
184
+ case 2:
185
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
186
+ msg.setName(value);
187
+ break;
188
+ case 3:
189
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
190
+ msg.setBpGroupingReferencesId(value);
191
+ break;
192
+ case 4:
193
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
194
+ msg.setCustomerAccountGroupReferencesId(value);
195
+ break;
196
+ default:
197
+ reader.skipField();
198
+ break;
199
+ }
200
+ }
201
+ return msg;
202
+ };
203
+
204
+
205
+ /**
206
+ * Serializes the message to binary data (in protobuf wire format).
207
+ * @return {!Uint8Array}
208
+ */
209
+ proto.RequestRegisterCustomerRequest.prototype.serializeBinary = function() {
210
+ var writer = new jspb.BinaryWriter();
211
+ proto.RequestRegisterCustomerRequest.serializeBinaryToWriter(this, writer);
212
+ return writer.getResultBuffer();
213
+ };
214
+
215
+
216
+ /**
217
+ * Serializes the given message to binary data (in protobuf wire
218
+ * format), writing to the given BinaryWriter.
219
+ * @param {!proto.RequestRegisterCustomerRequest} message
220
+ * @param {!jspb.BinaryWriter} writer
221
+ * @suppress {unusedLocalVariables} f is only used for nested messages
222
+ */
223
+ proto.RequestRegisterCustomerRequest.serializeBinaryToWriter = function(message, writer) {
224
+ var f = undefined;
225
+ f = message.getEmail();
226
+ if (f.length > 0) {
227
+ writer.writeString(
228
+ 1,
229
+ f
230
+ );
231
+ }
232
+ f = message.getName();
233
+ if (f.length > 0) {
234
+ writer.writeString(
235
+ 2,
236
+ f
237
+ );
238
+ }
239
+ f = message.getBpGroupingReferencesId();
240
+ if (f.length > 0) {
241
+ writer.writeString(
242
+ 3,
243
+ f
244
+ );
245
+ }
246
+ f = message.getCustomerAccountGroupReferencesId();
247
+ if (f.length > 0) {
248
+ writer.writeString(
249
+ 4,
250
+ f
251
+ );
252
+ }
253
+ };
254
+
255
+
256
+ /**
257
+ * optional string email = 1;
258
+ * @return {string}
259
+ */
260
+ proto.RequestRegisterCustomerRequest.prototype.getEmail = function() {
261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
262
+ };
263
+
264
+
265
+ /**
266
+ * @param {string} value
267
+ * @return {!proto.RequestRegisterCustomerRequest} returns this
268
+ */
269
+ proto.RequestRegisterCustomerRequest.prototype.setEmail = function(value) {
270
+ return jspb.Message.setProto3StringField(this, 1, value);
271
+ };
272
+
273
+
274
+ /**
275
+ * optional string name = 2;
276
+ * @return {string}
277
+ */
278
+ proto.RequestRegisterCustomerRequest.prototype.getName = function() {
279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
280
+ };
281
+
282
+
283
+ /**
284
+ * @param {string} value
285
+ * @return {!proto.RequestRegisterCustomerRequest} returns this
286
+ */
287
+ proto.RequestRegisterCustomerRequest.prototype.setName = function(value) {
288
+ return jspb.Message.setProto3StringField(this, 2, value);
289
+ };
290
+
291
+
292
+ /**
293
+ * optional string bp_grouping_references_id = 3;
294
+ * @return {string}
295
+ */
296
+ proto.RequestRegisterCustomerRequest.prototype.getBpGroupingReferencesId = function() {
297
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
298
+ };
299
+
300
+
301
+ /**
302
+ * @param {string} value
303
+ * @return {!proto.RequestRegisterCustomerRequest} returns this
304
+ */
305
+ proto.RequestRegisterCustomerRequest.prototype.setBpGroupingReferencesId = function(value) {
306
+ return jspb.Message.setProto3StringField(this, 3, value);
307
+ };
308
+
309
+
310
+ /**
311
+ * optional string customer_account_group_references_id = 4;
312
+ * @return {string}
313
+ */
314
+ proto.RequestRegisterCustomerRequest.prototype.getCustomerAccountGroupReferencesId = function() {
315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
316
+ };
317
+
318
+
319
+ /**
320
+ * @param {string} value
321
+ * @return {!proto.RequestRegisterCustomerRequest} returns this
322
+ */
323
+ proto.RequestRegisterCustomerRequest.prototype.setCustomerAccountGroupReferencesId = function(value) {
324
+ return jspb.Message.setProto3StringField(this, 4, value);
325
+ };
326
+
327
+
328
+
329
+
330
+
331
+ if (jspb.Message.GENERATE_TO_OBJECT) {
332
+ /**
333
+ * Creates an object representation of this proto.
334
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
335
+ * Optional fields that are not set will be set to undefined.
336
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
337
+ * For the list of reserved names please see:
338
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
339
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
340
+ * JSPB instance for transitional soy proto support:
341
+ * http://goto/soy-param-migration
342
+ * @return {!Object}
343
+ */
344
+ proto.RegisterCustomerRequest.prototype.toObject = function(opt_includeInstance) {
345
+ return proto.RegisterCustomerRequest.toObject(opt_includeInstance, this);
346
+ };
347
+
348
+
349
+ /**
350
+ * Static version of the {@see toObject} method.
351
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
352
+ * the JSPB instance for transitional soy proto support:
353
+ * http://goto/soy-param-migration
354
+ * @param {!proto.RegisterCustomerRequest} msg The msg instance to transform.
355
+ * @return {!Object}
356
+ * @suppress {unusedLocalVariables} f is only used for nested messages
357
+ */
358
+ proto.RegisterCustomerRequest.toObject = function(includeInstance, msg) {
359
+ var f, obj = {
360
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
361
+ street: jspb.Message.getFieldWithDefault(msg, 2, ""),
362
+ houseNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
363
+ postalCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
364
+ village: jspb.Message.getFieldWithDefault(msg, 5, ""),
365
+ city: jspb.Message.getFieldWithDefault(msg, 6, ""),
366
+ district: jspb.Message.getFieldWithDefault(msg, 7, ""),
367
+ province: jspb.Message.getFieldWithDefault(msg, 8, ""),
368
+ country: jspb.Message.getFieldWithDefault(msg, 9, ""),
369
+ npwp: jspb.Message.getFieldWithDefault(msg, 10, ""),
370
+ bankAccounts: jspb.Message.getFieldWithDefault(msg, 11, ""),
371
+ phoneNumber: jspb.Message.getFieldWithDefault(msg, 12, ""),
372
+ email: jspb.Message.getFieldWithDefault(msg, 13, ""),
373
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 14, ""),
374
+ token: jspb.Message.getFieldWithDefault(msg, 15, "")
375
+ };
376
+
377
+ if (includeInstance) {
378
+ obj.$jspbMessageInstance = msg;
379
+ }
380
+ return obj;
381
+ };
382
+ }
383
+
384
+
385
+ /**
386
+ * Deserializes binary data (in protobuf wire format).
387
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
388
+ * @return {!proto.RegisterCustomerRequest}
389
+ */
390
+ proto.RegisterCustomerRequest.deserializeBinary = function(bytes) {
391
+ var reader = new jspb.BinaryReader(bytes);
392
+ var msg = new proto.RegisterCustomerRequest;
393
+ return proto.RegisterCustomerRequest.deserializeBinaryFromReader(msg, reader);
394
+ };
395
+
396
+
397
+ /**
398
+ * Deserializes binary data (in protobuf wire format) from the
399
+ * given reader into the given message object.
400
+ * @param {!proto.RegisterCustomerRequest} msg The message object to deserialize into.
401
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
402
+ * @return {!proto.RegisterCustomerRequest}
403
+ */
404
+ proto.RegisterCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
405
+ while (reader.nextField()) {
406
+ if (reader.isEndGroup()) {
407
+ break;
408
+ }
409
+ var field = reader.getFieldNumber();
410
+ switch (field) {
411
+ case 1:
412
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
413
+ msg.setName(value);
414
+ break;
415
+ case 2:
416
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
417
+ msg.setStreet(value);
418
+ break;
419
+ case 3:
420
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
421
+ msg.setHouseNumber(value);
422
+ break;
423
+ case 4:
424
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
425
+ msg.setPostalCode(value);
426
+ break;
427
+ case 5:
428
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
429
+ msg.setVillage(value);
430
+ break;
431
+ case 6:
432
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
433
+ msg.setCity(value);
434
+ break;
435
+ case 7:
436
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
437
+ msg.setDistrict(value);
438
+ break;
439
+ case 8:
440
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
441
+ msg.setProvince(value);
442
+ break;
443
+ case 9:
444
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
445
+ msg.setCountry(value);
446
+ break;
447
+ case 10:
448
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
449
+ msg.setNpwp(value);
450
+ break;
451
+ case 11:
452
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
453
+ msg.setBankAccounts(value);
454
+ break;
455
+ case 12:
456
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
457
+ msg.setPhoneNumber(value);
458
+ break;
459
+ case 13:
460
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
461
+ msg.setEmail(value);
462
+ break;
463
+ case 14:
464
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
465
+ msg.setCustomTransaction(value);
466
+ break;
467
+ case 15:
468
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
469
+ msg.setToken(value);
470
+ break;
471
+ default:
472
+ reader.skipField();
473
+ break;
474
+ }
475
+ }
476
+ return msg;
477
+ };
478
+
479
+
480
+ /**
481
+ * Serializes the message to binary data (in protobuf wire format).
482
+ * @return {!Uint8Array}
483
+ */
484
+ proto.RegisterCustomerRequest.prototype.serializeBinary = function() {
485
+ var writer = new jspb.BinaryWriter();
486
+ proto.RegisterCustomerRequest.serializeBinaryToWriter(this, writer);
487
+ return writer.getResultBuffer();
488
+ };
489
+
490
+
491
+ /**
492
+ * Serializes the given message to binary data (in protobuf wire
493
+ * format), writing to the given BinaryWriter.
494
+ * @param {!proto.RegisterCustomerRequest} message
495
+ * @param {!jspb.BinaryWriter} writer
496
+ * @suppress {unusedLocalVariables} f is only used for nested messages
497
+ */
498
+ proto.RegisterCustomerRequest.serializeBinaryToWriter = function(message, writer) {
499
+ var f = undefined;
500
+ f = message.getName();
501
+ if (f.length > 0) {
502
+ writer.writeString(
503
+ 1,
504
+ f
505
+ );
506
+ }
507
+ f = message.getStreet();
508
+ if (f.length > 0) {
509
+ writer.writeString(
510
+ 2,
511
+ f
512
+ );
513
+ }
514
+ f = message.getHouseNumber();
515
+ if (f.length > 0) {
516
+ writer.writeString(
517
+ 3,
518
+ f
519
+ );
520
+ }
521
+ f = message.getPostalCode();
522
+ if (f.length > 0) {
523
+ writer.writeString(
524
+ 4,
525
+ f
526
+ );
527
+ }
528
+ f = message.getVillage();
529
+ if (f.length > 0) {
530
+ writer.writeString(
531
+ 5,
532
+ f
533
+ );
534
+ }
535
+ f = message.getCity();
536
+ if (f.length > 0) {
537
+ writer.writeString(
538
+ 6,
539
+ f
540
+ );
541
+ }
542
+ f = message.getDistrict();
543
+ if (f.length > 0) {
544
+ writer.writeString(
545
+ 7,
546
+ f
547
+ );
548
+ }
549
+ f = message.getProvince();
550
+ if (f.length > 0) {
551
+ writer.writeString(
552
+ 8,
553
+ f
554
+ );
555
+ }
556
+ f = message.getCountry();
557
+ if (f.length > 0) {
558
+ writer.writeString(
559
+ 9,
560
+ f
561
+ );
562
+ }
563
+ f = message.getNpwp();
564
+ if (f.length > 0) {
565
+ writer.writeString(
566
+ 10,
567
+ f
568
+ );
569
+ }
570
+ f = message.getBankAccounts();
571
+ if (f.length > 0) {
572
+ writer.writeString(
573
+ 11,
574
+ f
575
+ );
576
+ }
577
+ f = message.getPhoneNumber();
578
+ if (f.length > 0) {
579
+ writer.writeString(
580
+ 12,
581
+ f
582
+ );
583
+ }
584
+ f = message.getEmail();
585
+ if (f.length > 0) {
586
+ writer.writeString(
587
+ 13,
588
+ f
589
+ );
590
+ }
591
+ f = message.getCustomTransaction();
592
+ if (f.length > 0) {
593
+ writer.writeString(
594
+ 14,
595
+ f
596
+ );
597
+ }
598
+ f = message.getToken();
599
+ if (f.length > 0) {
600
+ writer.writeString(
601
+ 15,
602
+ f
603
+ );
604
+ }
605
+ };
606
+
607
+
608
+ /**
609
+ * optional string name = 1;
610
+ * @return {string}
611
+ */
612
+ proto.RegisterCustomerRequest.prototype.getName = function() {
613
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
614
+ };
615
+
616
+
617
+ /**
618
+ * @param {string} value
619
+ * @return {!proto.RegisterCustomerRequest} returns this
620
+ */
621
+ proto.RegisterCustomerRequest.prototype.setName = function(value) {
622
+ return jspb.Message.setProto3StringField(this, 1, value);
623
+ };
624
+
625
+
626
+ /**
627
+ * optional string street = 2;
628
+ * @return {string}
629
+ */
630
+ proto.RegisterCustomerRequest.prototype.getStreet = function() {
631
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
632
+ };
633
+
634
+
635
+ /**
636
+ * @param {string} value
637
+ * @return {!proto.RegisterCustomerRequest} returns this
638
+ */
639
+ proto.RegisterCustomerRequest.prototype.setStreet = function(value) {
640
+ return jspb.Message.setProto3StringField(this, 2, value);
641
+ };
642
+
643
+
644
+ /**
645
+ * optional string house_number = 3;
646
+ * @return {string}
647
+ */
648
+ proto.RegisterCustomerRequest.prototype.getHouseNumber = function() {
649
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
650
+ };
651
+
652
+
653
+ /**
654
+ * @param {string} value
655
+ * @return {!proto.RegisterCustomerRequest} returns this
656
+ */
657
+ proto.RegisterCustomerRequest.prototype.setHouseNumber = function(value) {
658
+ return jspb.Message.setProto3StringField(this, 3, value);
659
+ };
660
+
661
+
662
+ /**
663
+ * optional string postal_code = 4;
664
+ * @return {string}
665
+ */
666
+ proto.RegisterCustomerRequest.prototype.getPostalCode = function() {
667
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
668
+ };
669
+
670
+
671
+ /**
672
+ * @param {string} value
673
+ * @return {!proto.RegisterCustomerRequest} returns this
674
+ */
675
+ proto.RegisterCustomerRequest.prototype.setPostalCode = function(value) {
676
+ return jspb.Message.setProto3StringField(this, 4, value);
677
+ };
678
+
679
+
680
+ /**
681
+ * optional string village = 5;
682
+ * @return {string}
683
+ */
684
+ proto.RegisterCustomerRequest.prototype.getVillage = function() {
685
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
686
+ };
687
+
688
+
689
+ /**
690
+ * @param {string} value
691
+ * @return {!proto.RegisterCustomerRequest} returns this
692
+ */
693
+ proto.RegisterCustomerRequest.prototype.setVillage = function(value) {
694
+ return jspb.Message.setProto3StringField(this, 5, value);
695
+ };
696
+
697
+
698
+ /**
699
+ * optional string city = 6;
700
+ * @return {string}
701
+ */
702
+ proto.RegisterCustomerRequest.prototype.getCity = function() {
703
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
704
+ };
705
+
706
+
707
+ /**
708
+ * @param {string} value
709
+ * @return {!proto.RegisterCustomerRequest} returns this
710
+ */
711
+ proto.RegisterCustomerRequest.prototype.setCity = function(value) {
712
+ return jspb.Message.setProto3StringField(this, 6, value);
713
+ };
714
+
715
+
716
+ /**
717
+ * optional string district = 7;
718
+ * @return {string}
719
+ */
720
+ proto.RegisterCustomerRequest.prototype.getDistrict = function() {
721
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
722
+ };
723
+
724
+
725
+ /**
726
+ * @param {string} value
727
+ * @return {!proto.RegisterCustomerRequest} returns this
728
+ */
729
+ proto.RegisterCustomerRequest.prototype.setDistrict = function(value) {
730
+ return jspb.Message.setProto3StringField(this, 7, value);
731
+ };
732
+
733
+
734
+ /**
735
+ * optional string province = 8;
736
+ * @return {string}
737
+ */
738
+ proto.RegisterCustomerRequest.prototype.getProvince = function() {
739
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
740
+ };
741
+
742
+
743
+ /**
744
+ * @param {string} value
745
+ * @return {!proto.RegisterCustomerRequest} returns this
746
+ */
747
+ proto.RegisterCustomerRequest.prototype.setProvince = function(value) {
748
+ return jspb.Message.setProto3StringField(this, 8, value);
749
+ };
750
+
751
+
752
+ /**
753
+ * optional string country = 9;
754
+ * @return {string}
755
+ */
756
+ proto.RegisterCustomerRequest.prototype.getCountry = function() {
757
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
758
+ };
759
+
760
+
761
+ /**
762
+ * @param {string} value
763
+ * @return {!proto.RegisterCustomerRequest} returns this
764
+ */
765
+ proto.RegisterCustomerRequest.prototype.setCountry = function(value) {
766
+ return jspb.Message.setProto3StringField(this, 9, value);
767
+ };
768
+
769
+
770
+ /**
771
+ * optional string npwp = 10;
772
+ * @return {string}
773
+ */
774
+ proto.RegisterCustomerRequest.prototype.getNpwp = function() {
775
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
776
+ };
777
+
778
+
779
+ /**
780
+ * @param {string} value
781
+ * @return {!proto.RegisterCustomerRequest} returns this
782
+ */
783
+ proto.RegisterCustomerRequest.prototype.setNpwp = function(value) {
784
+ return jspb.Message.setProto3StringField(this, 10, value);
785
+ };
786
+
787
+
788
+ /**
789
+ * optional string bank_accounts = 11;
790
+ * @return {string}
791
+ */
792
+ proto.RegisterCustomerRequest.prototype.getBankAccounts = function() {
793
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
794
+ };
795
+
796
+
797
+ /**
798
+ * @param {string} value
799
+ * @return {!proto.RegisterCustomerRequest} returns this
800
+ */
801
+ proto.RegisterCustomerRequest.prototype.setBankAccounts = function(value) {
802
+ return jspb.Message.setProto3StringField(this, 11, value);
803
+ };
804
+
805
+
806
+ /**
807
+ * optional string phone_number = 12;
808
+ * @return {string}
809
+ */
810
+ proto.RegisterCustomerRequest.prototype.getPhoneNumber = function() {
811
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
812
+ };
813
+
814
+
815
+ /**
816
+ * @param {string} value
817
+ * @return {!proto.RegisterCustomerRequest} returns this
818
+ */
819
+ proto.RegisterCustomerRequest.prototype.setPhoneNumber = function(value) {
820
+ return jspb.Message.setProto3StringField(this, 12, value);
821
+ };
822
+
823
+
824
+ /**
825
+ * optional string email = 13;
826
+ * @return {string}
827
+ */
828
+ proto.RegisterCustomerRequest.prototype.getEmail = function() {
829
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
830
+ };
831
+
832
+
833
+ /**
834
+ * @param {string} value
835
+ * @return {!proto.RegisterCustomerRequest} returns this
836
+ */
837
+ proto.RegisterCustomerRequest.prototype.setEmail = function(value) {
838
+ return jspb.Message.setProto3StringField(this, 13, value);
839
+ };
840
+
841
+
842
+ /**
843
+ * optional string custom_transaction = 14;
844
+ * @return {string}
845
+ */
846
+ proto.RegisterCustomerRequest.prototype.getCustomTransaction = function() {
847
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
848
+ };
849
+
850
+
851
+ /**
852
+ * @param {string} value
853
+ * @return {!proto.RegisterCustomerRequest} returns this
854
+ */
855
+ proto.RegisterCustomerRequest.prototype.setCustomTransaction = function(value) {
856
+ return jspb.Message.setProto3StringField(this, 14, value);
857
+ };
858
+
859
+
860
+ /**
861
+ * optional string token = 15;
862
+ * @return {string}
863
+ */
864
+ proto.RegisterCustomerRequest.prototype.getToken = function() {
865
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
866
+ };
867
+
868
+
869
+ /**
870
+ * @param {string} value
871
+ * @return {!proto.RegisterCustomerRequest} returns this
872
+ */
873
+ proto.RegisterCustomerRequest.prototype.setToken = function(value) {
874
+ return jspb.Message.setProto3StringField(this, 15, value);
875
+ };
876
+
877
+
878
+
879
+
880
+
881
+ if (jspb.Message.GENERATE_TO_OBJECT) {
882
+ /**
883
+ * Creates an object representation of this proto.
884
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
885
+ * Optional fields that are not set will be set to undefined.
886
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
887
+ * For the list of reserved names please see:
888
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
889
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
890
+ * JSPB instance for transitional soy proto support:
891
+ * http://goto/soy-param-migration
892
+ * @return {!Object}
893
+ */
894
+ proto.RequestRegisterCustomerResponse.prototype.toObject = function(opt_includeInstance) {
895
+ return proto.RequestRegisterCustomerResponse.toObject(opt_includeInstance, this);
896
+ };
897
+
898
+
899
+ /**
900
+ * Static version of the {@see toObject} method.
901
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
902
+ * the JSPB instance for transitional soy proto support:
903
+ * http://goto/soy-param-migration
904
+ * @param {!proto.RequestRegisterCustomerResponse} msg The msg instance to transform.
905
+ * @return {!Object}
906
+ * @suppress {unusedLocalVariables} f is only used for nested messages
907
+ */
908
+ proto.RequestRegisterCustomerResponse.toObject = function(includeInstance, msg) {
909
+ var f, obj = {
910
+ registrationLink: jspb.Message.getFieldWithDefault(msg, 1, ""),
911
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
912
+ };
913
+
914
+ if (includeInstance) {
915
+ obj.$jspbMessageInstance = msg;
916
+ }
917
+ return obj;
918
+ };
919
+ }
920
+
921
+
922
+ /**
923
+ * Deserializes binary data (in protobuf wire format).
924
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
925
+ * @return {!proto.RequestRegisterCustomerResponse}
926
+ */
927
+ proto.RequestRegisterCustomerResponse.deserializeBinary = function(bytes) {
928
+ var reader = new jspb.BinaryReader(bytes);
929
+ var msg = new proto.RequestRegisterCustomerResponse;
930
+ return proto.RequestRegisterCustomerResponse.deserializeBinaryFromReader(msg, reader);
931
+ };
932
+
933
+
934
+ /**
935
+ * Deserializes binary data (in protobuf wire format) from the
936
+ * given reader into the given message object.
937
+ * @param {!proto.RequestRegisterCustomerResponse} msg The message object to deserialize into.
938
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
939
+ * @return {!proto.RequestRegisterCustomerResponse}
940
+ */
941
+ proto.RequestRegisterCustomerResponse.deserializeBinaryFromReader = function(msg, reader) {
942
+ while (reader.nextField()) {
943
+ if (reader.isEndGroup()) {
944
+ break;
945
+ }
946
+ var field = reader.getFieldNumber();
947
+ switch (field) {
948
+ case 1:
949
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
950
+ msg.setRegistrationLink(value);
951
+ break;
952
+ case 2:
953
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
954
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
955
+ msg.setMeta(value);
956
+ break;
957
+ default:
958
+ reader.skipField();
959
+ break;
960
+ }
961
+ }
962
+ return msg;
963
+ };
964
+
965
+
966
+ /**
967
+ * Serializes the message to binary data (in protobuf wire format).
968
+ * @return {!Uint8Array}
969
+ */
970
+ proto.RequestRegisterCustomerResponse.prototype.serializeBinary = function() {
971
+ var writer = new jspb.BinaryWriter();
972
+ proto.RequestRegisterCustomerResponse.serializeBinaryToWriter(this, writer);
973
+ return writer.getResultBuffer();
974
+ };
975
+
976
+
977
+ /**
978
+ * Serializes the given message to binary data (in protobuf wire
979
+ * format), writing to the given BinaryWriter.
980
+ * @param {!proto.RequestRegisterCustomerResponse} message
981
+ * @param {!jspb.BinaryWriter} writer
982
+ * @suppress {unusedLocalVariables} f is only used for nested messages
983
+ */
984
+ proto.RequestRegisterCustomerResponse.serializeBinaryToWriter = function(message, writer) {
985
+ var f = undefined;
986
+ f = message.getRegistrationLink();
987
+ if (f.length > 0) {
988
+ writer.writeString(
989
+ 1,
990
+ f
991
+ );
992
+ }
993
+ f = message.getMeta();
994
+ if (f != null) {
995
+ writer.writeMessage(
996
+ 2,
997
+ f,
998
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
999
+ );
1000
+ }
1001
+ };
1002
+
1003
+
1004
+ /**
1005
+ * optional string registration_link = 1;
1006
+ * @return {string}
1007
+ */
1008
+ proto.RequestRegisterCustomerResponse.prototype.getRegistrationLink = function() {
1009
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1010
+ };
1011
+
1012
+
1013
+ /**
1014
+ * @param {string} value
1015
+ * @return {!proto.RequestRegisterCustomerResponse} returns this
1016
+ */
1017
+ proto.RequestRegisterCustomerResponse.prototype.setRegistrationLink = function(value) {
1018
+ return jspb.Message.setProto3StringField(this, 1, value);
1019
+ };
1020
+
1021
+
1022
+ /**
1023
+ * optional prisca.v1.global.meta.Meta meta = 2;
1024
+ * @return {?proto.prisca.v1.global.meta.Meta}
1025
+ */
1026
+ proto.RequestRegisterCustomerResponse.prototype.getMeta = function() {
1027
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1028
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1029
+ };
1030
+
1031
+
1032
+ /**
1033
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1034
+ * @return {!proto.RequestRegisterCustomerResponse} returns this
1035
+ */
1036
+ proto.RequestRegisterCustomerResponse.prototype.setMeta = function(value) {
1037
+ return jspb.Message.setWrapperField(this, 2, value);
1038
+ };
1039
+
1040
+
1041
+ /**
1042
+ * Clears the message field making it undefined.
1043
+ * @return {!proto.RequestRegisterCustomerResponse} returns this
1044
+ */
1045
+ proto.RequestRegisterCustomerResponse.prototype.clearMeta = function() {
1046
+ return this.setMeta(undefined);
1047
+ };
1048
+
1049
+
1050
+ /**
1051
+ * Returns whether this field is set.
1052
+ * @return {boolean}
1053
+ */
1054
+ proto.RequestRegisterCustomerResponse.prototype.hasMeta = function() {
1055
+ return jspb.Message.getField(this, 2) != null;
1056
+ };
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1063
+ /**
1064
+ * Creates an object representation of this proto.
1065
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1066
+ * Optional fields that are not set will be set to undefined.
1067
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1068
+ * For the list of reserved names please see:
1069
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1070
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1071
+ * JSPB instance for transitional soy proto support:
1072
+ * http://goto/soy-param-migration
1073
+ * @return {!Object}
1074
+ */
1075
+ proto.RegisterCustomerResponse.prototype.toObject = function(opt_includeInstance) {
1076
+ return proto.RegisterCustomerResponse.toObject(opt_includeInstance, this);
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * Static version of the {@see toObject} method.
1082
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1083
+ * the JSPB instance for transitional soy proto support:
1084
+ * http://goto/soy-param-migration
1085
+ * @param {!proto.RegisterCustomerResponse} msg The msg instance to transform.
1086
+ * @return {!Object}
1087
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1088
+ */
1089
+ proto.RegisterCustomerResponse.toObject = function(includeInstance, msg) {
1090
+ var f, obj = {
1091
+ businessPartnerReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1092
+ customerReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1093
+ status: jspb.Message.getFieldWithDefault(msg, 3, ""),
1094
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1095
+ };
1096
+
1097
+ if (includeInstance) {
1098
+ obj.$jspbMessageInstance = msg;
1099
+ }
1100
+ return obj;
1101
+ };
1102
+ }
1103
+
1104
+
1105
+ /**
1106
+ * Deserializes binary data (in protobuf wire format).
1107
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1108
+ * @return {!proto.RegisterCustomerResponse}
1109
+ */
1110
+ proto.RegisterCustomerResponse.deserializeBinary = function(bytes) {
1111
+ var reader = new jspb.BinaryReader(bytes);
1112
+ var msg = new proto.RegisterCustomerResponse;
1113
+ return proto.RegisterCustomerResponse.deserializeBinaryFromReader(msg, reader);
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Deserializes binary data (in protobuf wire format) from the
1119
+ * given reader into the given message object.
1120
+ * @param {!proto.RegisterCustomerResponse} msg The message object to deserialize into.
1121
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1122
+ * @return {!proto.RegisterCustomerResponse}
1123
+ */
1124
+ proto.RegisterCustomerResponse.deserializeBinaryFromReader = function(msg, reader) {
1125
+ while (reader.nextField()) {
1126
+ if (reader.isEndGroup()) {
1127
+ break;
1128
+ }
1129
+ var field = reader.getFieldNumber();
1130
+ switch (field) {
1131
+ case 1:
1132
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1133
+ msg.setBusinessPartnerReferencesId(value);
1134
+ break;
1135
+ case 2:
1136
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1137
+ msg.setCustomerReferencesId(value);
1138
+ break;
1139
+ case 3:
1140
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1141
+ msg.setStatus(value);
1142
+ break;
1143
+ case 4:
1144
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1145
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1146
+ msg.setMeta(value);
1147
+ break;
1148
+ default:
1149
+ reader.skipField();
1150
+ break;
1151
+ }
1152
+ }
1153
+ return msg;
1154
+ };
1155
+
1156
+
1157
+ /**
1158
+ * Serializes the message to binary data (in protobuf wire format).
1159
+ * @return {!Uint8Array}
1160
+ */
1161
+ proto.RegisterCustomerResponse.prototype.serializeBinary = function() {
1162
+ var writer = new jspb.BinaryWriter();
1163
+ proto.RegisterCustomerResponse.serializeBinaryToWriter(this, writer);
1164
+ return writer.getResultBuffer();
1165
+ };
1166
+
1167
+
1168
+ /**
1169
+ * Serializes the given message to binary data (in protobuf wire
1170
+ * format), writing to the given BinaryWriter.
1171
+ * @param {!proto.RegisterCustomerResponse} message
1172
+ * @param {!jspb.BinaryWriter} writer
1173
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1174
+ */
1175
+ proto.RegisterCustomerResponse.serializeBinaryToWriter = function(message, writer) {
1176
+ var f = undefined;
1177
+ f = message.getBusinessPartnerReferencesId();
1178
+ if (f.length > 0) {
1179
+ writer.writeString(
1180
+ 1,
1181
+ f
1182
+ );
1183
+ }
1184
+ f = message.getCustomerReferencesId();
1185
+ if (f.length > 0) {
1186
+ writer.writeString(
1187
+ 2,
1188
+ f
1189
+ );
1190
+ }
1191
+ f = message.getStatus();
1192
+ if (f.length > 0) {
1193
+ writer.writeString(
1194
+ 3,
1195
+ f
1196
+ );
1197
+ }
1198
+ f = message.getMeta();
1199
+ if (f != null) {
1200
+ writer.writeMessage(
1201
+ 4,
1202
+ f,
1203
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1204
+ );
1205
+ }
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * optional string business_partner_references_id = 1;
1211
+ * @return {string}
1212
+ */
1213
+ proto.RegisterCustomerResponse.prototype.getBusinessPartnerReferencesId = function() {
1214
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * @param {string} value
1220
+ * @return {!proto.RegisterCustomerResponse} returns this
1221
+ */
1222
+ proto.RegisterCustomerResponse.prototype.setBusinessPartnerReferencesId = function(value) {
1223
+ return jspb.Message.setProto3StringField(this, 1, value);
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * optional string customer_references_id = 2;
1229
+ * @return {string}
1230
+ */
1231
+ proto.RegisterCustomerResponse.prototype.getCustomerReferencesId = function() {
1232
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * @param {string} value
1238
+ * @return {!proto.RegisterCustomerResponse} returns this
1239
+ */
1240
+ proto.RegisterCustomerResponse.prototype.setCustomerReferencesId = function(value) {
1241
+ return jspb.Message.setProto3StringField(this, 2, value);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * optional string status = 3;
1247
+ * @return {string}
1248
+ */
1249
+ proto.RegisterCustomerResponse.prototype.getStatus = function() {
1250
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1251
+ };
1252
+
1253
+
1254
+ /**
1255
+ * @param {string} value
1256
+ * @return {!proto.RegisterCustomerResponse} returns this
1257
+ */
1258
+ proto.RegisterCustomerResponse.prototype.setStatus = function(value) {
1259
+ return jspb.Message.setProto3StringField(this, 3, value);
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * optional prisca.v1.global.meta.Meta meta = 4;
1265
+ * @return {?proto.prisca.v1.global.meta.Meta}
1266
+ */
1267
+ proto.RegisterCustomerResponse.prototype.getMeta = function() {
1268
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1269
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 4));
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1275
+ * @return {!proto.RegisterCustomerResponse} returns this
1276
+ */
1277
+ proto.RegisterCustomerResponse.prototype.setMeta = function(value) {
1278
+ return jspb.Message.setWrapperField(this, 4, value);
1279
+ };
1280
+
1281
+
1282
+ /**
1283
+ * Clears the message field making it undefined.
1284
+ * @return {!proto.RegisterCustomerResponse} returns this
1285
+ */
1286
+ proto.RegisterCustomerResponse.prototype.clearMeta = function() {
1287
+ return this.setMeta(undefined);
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * Returns whether this field is set.
1293
+ * @return {boolean}
1294
+ */
1295
+ proto.RegisterCustomerResponse.prototype.hasMeta = function() {
1296
+ return jspb.Message.getField(this, 4) != null;
1297
+ };
1298
+
1299
+
1300
+ goog.object.extend(exports, proto);