@aldiokta/protocgen 1.0.4 → 1.0.6
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.
package/package.json
CHANGED
|
@@ -297,12 +297,11 @@ proto.Company.prototype.toObject = function(opt_includeInstance) {
|
|
|
297
297
|
*/
|
|
298
298
|
proto.Company.toObject = function(includeInstance, msg) {
|
|
299
299
|
var f, obj = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
parentRefId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
300
|
+
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
301
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
302
|
+
currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
303
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
304
|
+
parentRefId: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
306
305
|
};
|
|
307
306
|
|
|
308
307
|
if (includeInstance) {
|
|
@@ -340,27 +339,23 @@ proto.Company.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
340
339
|
var field = reader.getFieldNumber();
|
|
341
340
|
switch (field) {
|
|
342
341
|
case 1:
|
|
343
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
344
|
-
msg.setId(value);
|
|
345
|
-
break;
|
|
346
|
-
case 2:
|
|
347
342
|
var value = /** @type {string} */ (reader.readString());
|
|
348
343
|
msg.setCode(value);
|
|
349
344
|
break;
|
|
350
|
-
case
|
|
345
|
+
case 2:
|
|
351
346
|
var value = /** @type {string} */ (reader.readString());
|
|
352
347
|
msg.setName(value);
|
|
353
348
|
break;
|
|
354
|
-
case
|
|
349
|
+
case 3:
|
|
355
350
|
var value = /** @type {string} */ (reader.readString());
|
|
356
351
|
msg.setCurrencyCode(value);
|
|
357
352
|
break;
|
|
358
|
-
case
|
|
353
|
+
case 4:
|
|
359
354
|
var value = /** @type {string} */ (reader.readString());
|
|
360
355
|
msg.setDescription(value);
|
|
361
356
|
break;
|
|
362
|
-
case
|
|
363
|
-
var value = /** @type {
|
|
357
|
+
case 5:
|
|
358
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
364
359
|
msg.setParentRefId(value);
|
|
365
360
|
break;
|
|
366
361
|
default:
|
|
@@ -392,45 +387,38 @@ proto.Company.prototype.serializeBinary = function() {
|
|
|
392
387
|
*/
|
|
393
388
|
proto.Company.serializeBinaryToWriter = function(message, writer) {
|
|
394
389
|
var f = undefined;
|
|
395
|
-
f = message.getId();
|
|
396
|
-
if (f !== 0) {
|
|
397
|
-
writer.writeInt64(
|
|
398
|
-
1,
|
|
399
|
-
f
|
|
400
|
-
);
|
|
401
|
-
}
|
|
402
390
|
f = message.getCode();
|
|
403
391
|
if (f.length > 0) {
|
|
404
392
|
writer.writeString(
|
|
405
|
-
|
|
393
|
+
1,
|
|
406
394
|
f
|
|
407
395
|
);
|
|
408
396
|
}
|
|
409
397
|
f = message.getName();
|
|
410
398
|
if (f.length > 0) {
|
|
411
399
|
writer.writeString(
|
|
412
|
-
|
|
400
|
+
2,
|
|
413
401
|
f
|
|
414
402
|
);
|
|
415
403
|
}
|
|
416
404
|
f = message.getCurrencyCode();
|
|
417
405
|
if (f.length > 0) {
|
|
418
406
|
writer.writeString(
|
|
419
|
-
|
|
407
|
+
3,
|
|
420
408
|
f
|
|
421
409
|
);
|
|
422
410
|
}
|
|
423
411
|
f = message.getDescription();
|
|
424
412
|
if (f.length > 0) {
|
|
425
413
|
writer.writeString(
|
|
426
|
-
|
|
414
|
+
4,
|
|
427
415
|
f
|
|
428
416
|
);
|
|
429
417
|
}
|
|
430
418
|
f = message.getParentRefId();
|
|
431
|
-
if (f
|
|
432
|
-
writer.
|
|
433
|
-
|
|
419
|
+
if (f !== 0) {
|
|
420
|
+
writer.writeInt64(
|
|
421
|
+
5,
|
|
434
422
|
f
|
|
435
423
|
);
|
|
436
424
|
}
|
|
@@ -438,29 +426,11 @@ proto.Company.serializeBinaryToWriter = function(message, writer) {
|
|
|
438
426
|
|
|
439
427
|
|
|
440
428
|
/**
|
|
441
|
-
* optional
|
|
442
|
-
* @return {number}
|
|
443
|
-
*/
|
|
444
|
-
proto.Company.prototype.getId = function() {
|
|
445
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* @param {number} value
|
|
451
|
-
* @return {!proto.Company} returns this
|
|
452
|
-
*/
|
|
453
|
-
proto.Company.prototype.setId = function(value) {
|
|
454
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* optional string code = 2;
|
|
429
|
+
* optional string code = 1;
|
|
460
430
|
* @return {string}
|
|
461
431
|
*/
|
|
462
432
|
proto.Company.prototype.getCode = function() {
|
|
463
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
433
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
464
434
|
};
|
|
465
435
|
|
|
466
436
|
|
|
@@ -469,16 +439,16 @@ proto.Company.prototype.getCode = function() {
|
|
|
469
439
|
* @return {!proto.Company} returns this
|
|
470
440
|
*/
|
|
471
441
|
proto.Company.prototype.setCode = function(value) {
|
|
472
|
-
return jspb.Message.setProto3StringField(this,
|
|
442
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
473
443
|
};
|
|
474
444
|
|
|
475
445
|
|
|
476
446
|
/**
|
|
477
|
-
* optional string name =
|
|
447
|
+
* optional string name = 2;
|
|
478
448
|
* @return {string}
|
|
479
449
|
*/
|
|
480
450
|
proto.Company.prototype.getName = function() {
|
|
481
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
451
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
482
452
|
};
|
|
483
453
|
|
|
484
454
|
|
|
@@ -487,16 +457,16 @@ proto.Company.prototype.getName = function() {
|
|
|
487
457
|
* @return {!proto.Company} returns this
|
|
488
458
|
*/
|
|
489
459
|
proto.Company.prototype.setName = function(value) {
|
|
490
|
-
return jspb.Message.setProto3StringField(this,
|
|
460
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
491
461
|
};
|
|
492
462
|
|
|
493
463
|
|
|
494
464
|
/**
|
|
495
|
-
* optional string currency_code =
|
|
465
|
+
* optional string currency_code = 3;
|
|
496
466
|
* @return {string}
|
|
497
467
|
*/
|
|
498
468
|
proto.Company.prototype.getCurrencyCode = function() {
|
|
499
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
469
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
500
470
|
};
|
|
501
471
|
|
|
502
472
|
|
|
@@ -505,16 +475,16 @@ proto.Company.prototype.getCurrencyCode = function() {
|
|
|
505
475
|
* @return {!proto.Company} returns this
|
|
506
476
|
*/
|
|
507
477
|
proto.Company.prototype.setCurrencyCode = function(value) {
|
|
508
|
-
return jspb.Message.setProto3StringField(this,
|
|
478
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
509
479
|
};
|
|
510
480
|
|
|
511
481
|
|
|
512
482
|
/**
|
|
513
|
-
* optional string description =
|
|
483
|
+
* optional string description = 4;
|
|
514
484
|
* @return {string}
|
|
515
485
|
*/
|
|
516
486
|
proto.Company.prototype.getDescription = function() {
|
|
517
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
487
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
518
488
|
};
|
|
519
489
|
|
|
520
490
|
|
|
@@ -523,25 +493,25 @@ proto.Company.prototype.getDescription = function() {
|
|
|
523
493
|
* @return {!proto.Company} returns this
|
|
524
494
|
*/
|
|
525
495
|
proto.Company.prototype.setDescription = function(value) {
|
|
526
|
-
return jspb.Message.setProto3StringField(this,
|
|
496
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
527
497
|
};
|
|
528
498
|
|
|
529
499
|
|
|
530
500
|
/**
|
|
531
|
-
* optional
|
|
532
|
-
* @return {
|
|
501
|
+
* optional int64 parent_ref_id = 5;
|
|
502
|
+
* @return {number}
|
|
533
503
|
*/
|
|
534
504
|
proto.Company.prototype.getParentRefId = function() {
|
|
535
|
-
return /** @type {
|
|
505
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
536
506
|
};
|
|
537
507
|
|
|
538
508
|
|
|
539
509
|
/**
|
|
540
|
-
* @param {
|
|
510
|
+
* @param {number} value
|
|
541
511
|
* @return {!proto.Company} returns this
|
|
542
512
|
*/
|
|
543
513
|
proto.Company.prototype.setParentRefId = function(value) {
|
|
544
|
-
return jspb.Message.
|
|
514
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
545
515
|
};
|
|
546
516
|
|
|
547
517
|
|
|
@@ -297,6 +297,7 @@ proto.WorkLocation.prototype.toObject = function(opt_includeInstance) {
|
|
|
297
297
|
*/
|
|
298
298
|
proto.WorkLocation.toObject = function(includeInstance, msg) {
|
|
299
299
|
var f, obj = {
|
|
300
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
300
301
|
companiesRefId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
301
302
|
code: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
302
303
|
locationName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
@@ -355,6 +356,10 @@ proto.WorkLocation.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
355
356
|
}
|
|
356
357
|
var field = reader.getFieldNumber();
|
|
357
358
|
switch (field) {
|
|
359
|
+
case 1:
|
|
360
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
361
|
+
msg.setId(value);
|
|
362
|
+
break;
|
|
358
363
|
case 2:
|
|
359
364
|
var value = /** @type {number} */ (reader.readInt64());
|
|
360
365
|
msg.setCompaniesRefId(value);
|
|
@@ -472,6 +477,13 @@ proto.WorkLocation.prototype.serializeBinary = function() {
|
|
|
472
477
|
*/
|
|
473
478
|
proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
|
|
474
479
|
var f = undefined;
|
|
480
|
+
f = message.getId();
|
|
481
|
+
if (f !== 0) {
|
|
482
|
+
writer.writeInt64(
|
|
483
|
+
1,
|
|
484
|
+
f
|
|
485
|
+
);
|
|
486
|
+
}
|
|
475
487
|
f = message.getCompaniesRefId();
|
|
476
488
|
if (f !== 0) {
|
|
477
489
|
writer.writeInt64(
|
|
@@ -629,6 +641,24 @@ proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
|
|
|
629
641
|
};
|
|
630
642
|
|
|
631
643
|
|
|
644
|
+
/**
|
|
645
|
+
* optional int64 id = 1;
|
|
646
|
+
* @return {number}
|
|
647
|
+
*/
|
|
648
|
+
proto.WorkLocation.prototype.getId = function() {
|
|
649
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* @param {number} value
|
|
655
|
+
* @return {!proto.WorkLocation} returns this
|
|
656
|
+
*/
|
|
657
|
+
proto.WorkLocation.prototype.setId = function(value) {
|
|
658
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
|
|
632
662
|
/**
|
|
633
663
|
* optional int64 companies_ref_id = 2;
|
|
634
664
|
* @return {number}
|