@aldiokta/protocgen 1.0.17 → 1.0.18

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.
@@ -297,29 +297,29 @@ 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),
301
- companiesRefId: jspb.Message.getFieldWithDefault(msg, 2, 0),
302
- code: jspb.Message.getFieldWithDefault(msg, 3, ""),
303
- locationName: jspb.Message.getFieldWithDefault(msg, 4, ""),
304
- alias: jspb.Message.getFieldWithDefault(msg, 5, ""),
305
- address: jspb.Message.getFieldWithDefault(msg, 6, ""),
306
- letterAddressLine1: jspb.Message.getFieldWithDefault(msg, 7, ""),
307
- letterAddressLine2: jspb.Message.getFieldWithDefault(msg, 8, ""),
308
- letterAddressLine3: jspb.Message.getFieldWithDefault(msg, 9, ""),
309
- phoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
310
- email: jspb.Message.getFieldWithDefault(msg, 11, ""),
311
- npwp: jspb.Message.getFieldWithDefault(msg, 12, ""),
312
- npwpAddress: jspb.Message.getFieldWithDefault(msg, 13, ""),
313
- latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
314
- longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
315
- radius: jspb.Message.getFieldWithDefault(msg, 16, 0),
316
- countryRefId: jspb.Message.getFieldWithDefault(msg, 17, 0),
317
- regionRefId: jspb.Message.getFieldWithDefault(msg, 18, 0),
318
- cityRefId: jspb.Message.getFieldWithDefault(msg, 19, 0),
319
- districtRefId: jspb.Message.getFieldWithDefault(msg, 20, 0),
320
- provinceRefId: jspb.Message.getFieldWithDefault(msg, 21, 0),
321
- areaRefId: jspb.Message.getFieldWithDefault(msg, 22, 0),
322
- taxOfficeLocation: jspb.Message.getFieldWithDefault(msg, 23, "")
300
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
301
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
302
+ locationName: jspb.Message.getFieldWithDefault(msg, 3, ""),
303
+ alias: jspb.Message.getFieldWithDefault(msg, 4, ""),
304
+ address: jspb.Message.getFieldWithDefault(msg, 5, ""),
305
+ letterAddressLine1: jspb.Message.getFieldWithDefault(msg, 6, ""),
306
+ letterAddressLine2: jspb.Message.getFieldWithDefault(msg, 7, ""),
307
+ letterAddressLine3: jspb.Message.getFieldWithDefault(msg, 8, ""),
308
+ phoneNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
309
+ email: jspb.Message.getFieldWithDefault(msg, 10, ""),
310
+ npwp: jspb.Message.getFieldWithDefault(msg, 11, ""),
311
+ npwpAddress: jspb.Message.getFieldWithDefault(msg, 12, ""),
312
+ latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
313
+ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
314
+ radius: jspb.Message.getFieldWithDefault(msg, 15, 0),
315
+ countryReferencesId: jspb.Message.getFieldWithDefault(msg, 16, 0),
316
+ regionReferencesId: jspb.Message.getFieldWithDefault(msg, 17, 0),
317
+ cityReferencesId: jspb.Message.getFieldWithDefault(msg, 18, 0),
318
+ districtReferencesId: jspb.Message.getFieldWithDefault(msg, 19, 0),
319
+ provinceReferencesId: jspb.Message.getFieldWithDefault(msg, 20, 0),
320
+ areaReferencesId: jspb.Message.getFieldWithDefault(msg, 21, 0),
321
+ taxOfficeLocation: jspb.Message.getFieldWithDefault(msg, 22, ""),
322
+ referencesId: jspb.Message.getFieldWithDefault(msg, 23, "")
323
323
  };
324
324
 
325
325
  if (includeInstance) {
@@ -357,96 +357,96 @@ proto.WorkLocation.deserializeBinaryFromReader = function(msg, reader) {
357
357
  var field = reader.getFieldNumber();
358
358
  switch (field) {
359
359
  case 1:
360
- var value = /** @type {number} */ (reader.readInt64());
361
- msg.setId(value);
360
+ var value = /** @type {string} */ (reader.readString());
361
+ msg.setCompaniesReferencesId(value);
362
362
  break;
363
363
  case 2:
364
- var value = /** @type {number} */ (reader.readInt64());
365
- msg.setCompaniesRefId(value);
366
- break;
367
- case 3:
368
364
  var value = /** @type {string} */ (reader.readString());
369
365
  msg.setCode(value);
370
366
  break;
371
- case 4:
367
+ case 3:
372
368
  var value = /** @type {string} */ (reader.readString());
373
369
  msg.setLocationName(value);
374
370
  break;
375
- case 5:
371
+ case 4:
376
372
  var value = /** @type {string} */ (reader.readString());
377
373
  msg.setAlias(value);
378
374
  break;
379
- case 6:
375
+ case 5:
380
376
  var value = /** @type {string} */ (reader.readString());
381
377
  msg.setAddress(value);
382
378
  break;
383
- case 7:
379
+ case 6:
384
380
  var value = /** @type {string} */ (reader.readString());
385
381
  msg.setLetterAddressLine1(value);
386
382
  break;
387
- case 8:
383
+ case 7:
388
384
  var value = /** @type {string} */ (reader.readString());
389
385
  msg.setLetterAddressLine2(value);
390
386
  break;
391
- case 9:
387
+ case 8:
392
388
  var value = /** @type {string} */ (reader.readString());
393
389
  msg.setLetterAddressLine3(value);
394
390
  break;
395
- case 10:
391
+ case 9:
396
392
  var value = /** @type {string} */ (reader.readString());
397
393
  msg.setPhoneNumber(value);
398
394
  break;
399
- case 11:
395
+ case 10:
400
396
  var value = /** @type {string} */ (reader.readString());
401
397
  msg.setEmail(value);
402
398
  break;
403
- case 12:
399
+ case 11:
404
400
  var value = /** @type {string} */ (reader.readString());
405
401
  msg.setNpwp(value);
406
402
  break;
407
- case 13:
403
+ case 12:
408
404
  var value = /** @type {string} */ (reader.readString());
409
405
  msg.setNpwpAddress(value);
410
406
  break;
411
- case 14:
407
+ case 13:
412
408
  var value = /** @type {number} */ (reader.readDouble());
413
409
  msg.setLatitude(value);
414
410
  break;
415
- case 15:
411
+ case 14:
416
412
  var value = /** @type {number} */ (reader.readDouble());
417
413
  msg.setLongitude(value);
418
414
  break;
419
- case 16:
415
+ case 15:
420
416
  var value = /** @type {number} */ (reader.readInt64());
421
417
  msg.setRadius(value);
422
418
  break;
419
+ case 16:
420
+ var value = /** @type {number} */ (reader.readInt64());
421
+ msg.setCountryReferencesId(value);
422
+ break;
423
423
  case 17:
424
424
  var value = /** @type {number} */ (reader.readInt64());
425
- msg.setCountryRefId(value);
425
+ msg.setRegionReferencesId(value);
426
426
  break;
427
427
  case 18:
428
428
  var value = /** @type {number} */ (reader.readInt64());
429
- msg.setRegionRefId(value);
429
+ msg.setCityReferencesId(value);
430
430
  break;
431
431
  case 19:
432
432
  var value = /** @type {number} */ (reader.readInt64());
433
- msg.setCityRefId(value);
433
+ msg.setDistrictReferencesId(value);
434
434
  break;
435
435
  case 20:
436
436
  var value = /** @type {number} */ (reader.readInt64());
437
- msg.setDistrictRefId(value);
437
+ msg.setProvinceReferencesId(value);
438
438
  break;
439
439
  case 21:
440
440
  var value = /** @type {number} */ (reader.readInt64());
441
- msg.setProvinceRefId(value);
441
+ msg.setAreaReferencesId(value);
442
442
  break;
443
443
  case 22:
444
- var value = /** @type {number} */ (reader.readInt64());
445
- msg.setAreaRefId(value);
444
+ var value = /** @type {string} */ (reader.readString());
445
+ msg.setTaxOfficeLocation(value);
446
446
  break;
447
447
  case 23:
448
448
  var value = /** @type {string} */ (reader.readString());
449
- msg.setTaxOfficeLocation(value);
449
+ msg.setReferencesId(value);
450
450
  break;
451
451
  default:
452
452
  reader.skipField();
@@ -477,161 +477,161 @@ proto.WorkLocation.prototype.serializeBinary = function() {
477
477
  */
478
478
  proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
479
479
  var f = undefined;
480
- f = message.getId();
481
- if (f !== 0) {
482
- writer.writeInt64(
480
+ f = message.getCompaniesReferencesId();
481
+ if (f.length > 0) {
482
+ writer.writeString(
483
483
  1,
484
484
  f
485
485
  );
486
486
  }
487
- f = message.getCompaniesRefId();
488
- if (f !== 0) {
489
- writer.writeInt64(
490
- 2,
491
- f
492
- );
493
- }
494
487
  f = message.getCode();
495
488
  if (f.length > 0) {
496
489
  writer.writeString(
497
- 3,
490
+ 2,
498
491
  f
499
492
  );
500
493
  }
501
494
  f = message.getLocationName();
502
495
  if (f.length > 0) {
503
496
  writer.writeString(
504
- 4,
497
+ 3,
505
498
  f
506
499
  );
507
500
  }
508
501
  f = message.getAlias();
509
502
  if (f.length > 0) {
510
503
  writer.writeString(
511
- 5,
504
+ 4,
512
505
  f
513
506
  );
514
507
  }
515
508
  f = message.getAddress();
516
509
  if (f.length > 0) {
517
510
  writer.writeString(
518
- 6,
511
+ 5,
519
512
  f
520
513
  );
521
514
  }
522
515
  f = message.getLetterAddressLine1();
523
516
  if (f.length > 0) {
524
517
  writer.writeString(
525
- 7,
518
+ 6,
526
519
  f
527
520
  );
528
521
  }
529
522
  f = message.getLetterAddressLine2();
530
523
  if (f.length > 0) {
531
524
  writer.writeString(
532
- 8,
525
+ 7,
533
526
  f
534
527
  );
535
528
  }
536
529
  f = message.getLetterAddressLine3();
537
530
  if (f.length > 0) {
538
531
  writer.writeString(
539
- 9,
532
+ 8,
540
533
  f
541
534
  );
542
535
  }
543
536
  f = message.getPhoneNumber();
544
537
  if (f.length > 0) {
545
538
  writer.writeString(
546
- 10,
539
+ 9,
547
540
  f
548
541
  );
549
542
  }
550
543
  f = message.getEmail();
551
544
  if (f.length > 0) {
552
545
  writer.writeString(
553
- 11,
546
+ 10,
554
547
  f
555
548
  );
556
549
  }
557
550
  f = message.getNpwp();
558
551
  if (f.length > 0) {
559
552
  writer.writeString(
560
- 12,
553
+ 11,
561
554
  f
562
555
  );
563
556
  }
564
557
  f = message.getNpwpAddress();
565
558
  if (f.length > 0) {
566
559
  writer.writeString(
567
- 13,
560
+ 12,
568
561
  f
569
562
  );
570
563
  }
571
564
  f = message.getLatitude();
572
565
  if (f !== 0.0) {
573
566
  writer.writeDouble(
574
- 14,
567
+ 13,
575
568
  f
576
569
  );
577
570
  }
578
571
  f = message.getLongitude();
579
572
  if (f !== 0.0) {
580
573
  writer.writeDouble(
581
- 15,
574
+ 14,
582
575
  f
583
576
  );
584
577
  }
585
578
  f = message.getRadius();
579
+ if (f !== 0) {
580
+ writer.writeInt64(
581
+ 15,
582
+ f
583
+ );
584
+ }
585
+ f = message.getCountryReferencesId();
586
586
  if (f !== 0) {
587
587
  writer.writeInt64(
588
588
  16,
589
589
  f
590
590
  );
591
591
  }
592
- f = message.getCountryRefId();
592
+ f = message.getRegionReferencesId();
593
593
  if (f !== 0) {
594
594
  writer.writeInt64(
595
595
  17,
596
596
  f
597
597
  );
598
598
  }
599
- f = message.getRegionRefId();
599
+ f = message.getCityReferencesId();
600
600
  if (f !== 0) {
601
601
  writer.writeInt64(
602
602
  18,
603
603
  f
604
604
  );
605
605
  }
606
- f = message.getCityRefId();
606
+ f = message.getDistrictReferencesId();
607
607
  if (f !== 0) {
608
608
  writer.writeInt64(
609
609
  19,
610
610
  f
611
611
  );
612
612
  }
613
- f = message.getDistrictRefId();
613
+ f = message.getProvinceReferencesId();
614
614
  if (f !== 0) {
615
615
  writer.writeInt64(
616
616
  20,
617
617
  f
618
618
  );
619
619
  }
620
- f = message.getProvinceRefId();
620
+ f = message.getAreaReferencesId();
621
621
  if (f !== 0) {
622
622
  writer.writeInt64(
623
623
  21,
624
624
  f
625
625
  );
626
626
  }
627
- f = message.getAreaRefId();
628
- if (f !== 0) {
629
- writer.writeInt64(
627
+ f = message.getTaxOfficeLocation();
628
+ if (f.length > 0) {
629
+ writer.writeString(
630
630
  22,
631
631
  f
632
632
  );
633
633
  }
634
- f = message.getTaxOfficeLocation();
634
+ f = message.getReferencesId();
635
635
  if (f.length > 0) {
636
636
  writer.writeString(
637
637
  23,
@@ -642,46 +642,46 @@ proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
642
642
 
643
643
 
644
644
  /**
645
- * optional int64 id = 1;
646
- * @return {number}
645
+ * optional string companies_references_id = 1;
646
+ * @return {string}
647
647
  */
648
- proto.WorkLocation.prototype.getId = function() {
649
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
648
+ proto.WorkLocation.prototype.getCompaniesReferencesId = function() {
649
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
650
650
  };
651
651
 
652
652
 
653
653
  /**
654
- * @param {number} value
654
+ * @param {string} value
655
655
  * @return {!proto.WorkLocation} returns this
656
656
  */
657
- proto.WorkLocation.prototype.setId = function(value) {
658
- return jspb.Message.setProto3IntField(this, 1, value);
657
+ proto.WorkLocation.prototype.setCompaniesReferencesId = function(value) {
658
+ return jspb.Message.setProto3StringField(this, 1, value);
659
659
  };
660
660
 
661
661
 
662
662
  /**
663
- * optional int64 companies_ref_id = 2;
664
- * @return {number}
663
+ * optional string code = 2;
664
+ * @return {string}
665
665
  */
666
- proto.WorkLocation.prototype.getCompaniesRefId = function() {
667
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
666
+ proto.WorkLocation.prototype.getCode = function() {
667
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
668
668
  };
669
669
 
670
670
 
671
671
  /**
672
- * @param {number} value
672
+ * @param {string} value
673
673
  * @return {!proto.WorkLocation} returns this
674
674
  */
675
- proto.WorkLocation.prototype.setCompaniesRefId = function(value) {
676
- return jspb.Message.setProto3IntField(this, 2, value);
675
+ proto.WorkLocation.prototype.setCode = function(value) {
676
+ return jspb.Message.setProto3StringField(this, 2, value);
677
677
  };
678
678
 
679
679
 
680
680
  /**
681
- * optional string code = 3;
681
+ * optional string location_name = 3;
682
682
  * @return {string}
683
683
  */
684
- proto.WorkLocation.prototype.getCode = function() {
684
+ proto.WorkLocation.prototype.getLocationName = function() {
685
685
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
686
686
  };
687
687
 
@@ -690,16 +690,16 @@ proto.WorkLocation.prototype.getCode = function() {
690
690
  * @param {string} value
691
691
  * @return {!proto.WorkLocation} returns this
692
692
  */
693
- proto.WorkLocation.prototype.setCode = function(value) {
693
+ proto.WorkLocation.prototype.setLocationName = function(value) {
694
694
  return jspb.Message.setProto3StringField(this, 3, value);
695
695
  };
696
696
 
697
697
 
698
698
  /**
699
- * optional string location_name = 4;
699
+ * optional string alias = 4;
700
700
  * @return {string}
701
701
  */
702
- proto.WorkLocation.prototype.getLocationName = function() {
702
+ proto.WorkLocation.prototype.getAlias = function() {
703
703
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
704
704
  };
705
705
 
@@ -708,16 +708,16 @@ proto.WorkLocation.prototype.getLocationName = function() {
708
708
  * @param {string} value
709
709
  * @return {!proto.WorkLocation} returns this
710
710
  */
711
- proto.WorkLocation.prototype.setLocationName = function(value) {
711
+ proto.WorkLocation.prototype.setAlias = function(value) {
712
712
  return jspb.Message.setProto3StringField(this, 4, value);
713
713
  };
714
714
 
715
715
 
716
716
  /**
717
- * optional string alias = 5;
717
+ * optional string address = 5;
718
718
  * @return {string}
719
719
  */
720
- proto.WorkLocation.prototype.getAlias = function() {
720
+ proto.WorkLocation.prototype.getAddress = function() {
721
721
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
722
722
  };
723
723
 
@@ -726,16 +726,16 @@ proto.WorkLocation.prototype.getAlias = function() {
726
726
  * @param {string} value
727
727
  * @return {!proto.WorkLocation} returns this
728
728
  */
729
- proto.WorkLocation.prototype.setAlias = function(value) {
729
+ proto.WorkLocation.prototype.setAddress = function(value) {
730
730
  return jspb.Message.setProto3StringField(this, 5, value);
731
731
  };
732
732
 
733
733
 
734
734
  /**
735
- * optional string address = 6;
735
+ * optional string letter_address_line1 = 6;
736
736
  * @return {string}
737
737
  */
738
- proto.WorkLocation.prototype.getAddress = function() {
738
+ proto.WorkLocation.prototype.getLetterAddressLine1 = function() {
739
739
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
740
740
  };
741
741
 
@@ -744,16 +744,16 @@ proto.WorkLocation.prototype.getAddress = function() {
744
744
  * @param {string} value
745
745
  * @return {!proto.WorkLocation} returns this
746
746
  */
747
- proto.WorkLocation.prototype.setAddress = function(value) {
747
+ proto.WorkLocation.prototype.setLetterAddressLine1 = function(value) {
748
748
  return jspb.Message.setProto3StringField(this, 6, value);
749
749
  };
750
750
 
751
751
 
752
752
  /**
753
- * optional string letter_address_line1 = 7;
753
+ * optional string letter_address_line2 = 7;
754
754
  * @return {string}
755
755
  */
756
- proto.WorkLocation.prototype.getLetterAddressLine1 = function() {
756
+ proto.WorkLocation.prototype.getLetterAddressLine2 = function() {
757
757
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
758
758
  };
759
759
 
@@ -762,16 +762,16 @@ proto.WorkLocation.prototype.getLetterAddressLine1 = function() {
762
762
  * @param {string} value
763
763
  * @return {!proto.WorkLocation} returns this
764
764
  */
765
- proto.WorkLocation.prototype.setLetterAddressLine1 = function(value) {
765
+ proto.WorkLocation.prototype.setLetterAddressLine2 = function(value) {
766
766
  return jspb.Message.setProto3StringField(this, 7, value);
767
767
  };
768
768
 
769
769
 
770
770
  /**
771
- * optional string letter_address_line2 = 8;
771
+ * optional string letter_address_line3 = 8;
772
772
  * @return {string}
773
773
  */
774
- proto.WorkLocation.prototype.getLetterAddressLine2 = function() {
774
+ proto.WorkLocation.prototype.getLetterAddressLine3 = function() {
775
775
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
776
776
  };
777
777
 
@@ -780,16 +780,16 @@ proto.WorkLocation.prototype.getLetterAddressLine2 = function() {
780
780
  * @param {string} value
781
781
  * @return {!proto.WorkLocation} returns this
782
782
  */
783
- proto.WorkLocation.prototype.setLetterAddressLine2 = function(value) {
783
+ proto.WorkLocation.prototype.setLetterAddressLine3 = function(value) {
784
784
  return jspb.Message.setProto3StringField(this, 8, value);
785
785
  };
786
786
 
787
787
 
788
788
  /**
789
- * optional string letter_address_line3 = 9;
789
+ * optional string phone_number = 9;
790
790
  * @return {string}
791
791
  */
792
- proto.WorkLocation.prototype.getLetterAddressLine3 = function() {
792
+ proto.WorkLocation.prototype.getPhoneNumber = function() {
793
793
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
794
794
  };
795
795
 
@@ -798,16 +798,16 @@ proto.WorkLocation.prototype.getLetterAddressLine3 = function() {
798
798
  * @param {string} value
799
799
  * @return {!proto.WorkLocation} returns this
800
800
  */
801
- proto.WorkLocation.prototype.setLetterAddressLine3 = function(value) {
801
+ proto.WorkLocation.prototype.setPhoneNumber = function(value) {
802
802
  return jspb.Message.setProto3StringField(this, 9, value);
803
803
  };
804
804
 
805
805
 
806
806
  /**
807
- * optional string phone_number = 10;
807
+ * optional string email = 10;
808
808
  * @return {string}
809
809
  */
810
- proto.WorkLocation.prototype.getPhoneNumber = function() {
810
+ proto.WorkLocation.prototype.getEmail = function() {
811
811
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
812
812
  };
813
813
 
@@ -816,16 +816,16 @@ proto.WorkLocation.prototype.getPhoneNumber = function() {
816
816
  * @param {string} value
817
817
  * @return {!proto.WorkLocation} returns this
818
818
  */
819
- proto.WorkLocation.prototype.setPhoneNumber = function(value) {
819
+ proto.WorkLocation.prototype.setEmail = function(value) {
820
820
  return jspb.Message.setProto3StringField(this, 10, value);
821
821
  };
822
822
 
823
823
 
824
824
  /**
825
- * optional string email = 11;
825
+ * optional string npwp = 11;
826
826
  * @return {string}
827
827
  */
828
- proto.WorkLocation.prototype.getEmail = function() {
828
+ proto.WorkLocation.prototype.getNpwp = function() {
829
829
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
830
830
  };
831
831
 
@@ -834,16 +834,16 @@ proto.WorkLocation.prototype.getEmail = function() {
834
834
  * @param {string} value
835
835
  * @return {!proto.WorkLocation} returns this
836
836
  */
837
- proto.WorkLocation.prototype.setEmail = function(value) {
837
+ proto.WorkLocation.prototype.setNpwp = function(value) {
838
838
  return jspb.Message.setProto3StringField(this, 11, value);
839
839
  };
840
840
 
841
841
 
842
842
  /**
843
- * optional string npwp = 12;
843
+ * optional string npwp_address = 12;
844
844
  * @return {string}
845
845
  */
846
- proto.WorkLocation.prototype.getNpwp = function() {
846
+ proto.WorkLocation.prototype.getNpwpAddress = function() {
847
847
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
848
848
  };
849
849
 
@@ -852,34 +852,34 @@ proto.WorkLocation.prototype.getNpwp = function() {
852
852
  * @param {string} value
853
853
  * @return {!proto.WorkLocation} returns this
854
854
  */
855
- proto.WorkLocation.prototype.setNpwp = function(value) {
855
+ proto.WorkLocation.prototype.setNpwpAddress = function(value) {
856
856
  return jspb.Message.setProto3StringField(this, 12, value);
857
857
  };
858
858
 
859
859
 
860
860
  /**
861
- * optional string npwp_address = 13;
862
- * @return {string}
861
+ * optional double latitude = 13;
862
+ * @return {number}
863
863
  */
864
- proto.WorkLocation.prototype.getNpwpAddress = function() {
865
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
864
+ proto.WorkLocation.prototype.getLatitude = function() {
865
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
866
866
  };
867
867
 
868
868
 
869
869
  /**
870
- * @param {string} value
870
+ * @param {number} value
871
871
  * @return {!proto.WorkLocation} returns this
872
872
  */
873
- proto.WorkLocation.prototype.setNpwpAddress = function(value) {
874
- return jspb.Message.setProto3StringField(this, 13, value);
873
+ proto.WorkLocation.prototype.setLatitude = function(value) {
874
+ return jspb.Message.setProto3FloatField(this, 13, value);
875
875
  };
876
876
 
877
877
 
878
878
  /**
879
- * optional double latitude = 14;
879
+ * optional double longitude = 14;
880
880
  * @return {number}
881
881
  */
882
- proto.WorkLocation.prototype.getLatitude = function() {
882
+ proto.WorkLocation.prototype.getLongitude = function() {
883
883
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 14, 0.0));
884
884
  };
885
885
 
@@ -888,17 +888,17 @@ proto.WorkLocation.prototype.getLatitude = function() {
888
888
  * @param {number} value
889
889
  * @return {!proto.WorkLocation} returns this
890
890
  */
891
- proto.WorkLocation.prototype.setLatitude = function(value) {
891
+ proto.WorkLocation.prototype.setLongitude = function(value) {
892
892
  return jspb.Message.setProto3FloatField(this, 14, value);
893
893
  };
894
894
 
895
895
 
896
896
  /**
897
- * optional double longitude = 15;
897
+ * optional int64 radius = 15;
898
898
  * @return {number}
899
899
  */
900
- proto.WorkLocation.prototype.getLongitude = function() {
901
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
900
+ proto.WorkLocation.prototype.getRadius = function() {
901
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
902
902
  };
903
903
 
904
904
 
@@ -906,16 +906,16 @@ proto.WorkLocation.prototype.getLongitude = function() {
906
906
  * @param {number} value
907
907
  * @return {!proto.WorkLocation} returns this
908
908
  */
909
- proto.WorkLocation.prototype.setLongitude = function(value) {
910
- return jspb.Message.setProto3FloatField(this, 15, value);
909
+ proto.WorkLocation.prototype.setRadius = function(value) {
910
+ return jspb.Message.setProto3IntField(this, 15, value);
911
911
  };
912
912
 
913
913
 
914
914
  /**
915
- * optional int64 radius = 16;
915
+ * optional int64 country_references_id = 16;
916
916
  * @return {number}
917
917
  */
918
- proto.WorkLocation.prototype.getRadius = function() {
918
+ proto.WorkLocation.prototype.getCountryReferencesId = function() {
919
919
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
920
920
  };
921
921
 
@@ -924,16 +924,16 @@ proto.WorkLocation.prototype.getRadius = function() {
924
924
  * @param {number} value
925
925
  * @return {!proto.WorkLocation} returns this
926
926
  */
927
- proto.WorkLocation.prototype.setRadius = function(value) {
927
+ proto.WorkLocation.prototype.setCountryReferencesId = function(value) {
928
928
  return jspb.Message.setProto3IntField(this, 16, value);
929
929
  };
930
930
 
931
931
 
932
932
  /**
933
- * optional int64 country_ref_id = 17;
933
+ * optional int64 region_references_id = 17;
934
934
  * @return {number}
935
935
  */
936
- proto.WorkLocation.prototype.getCountryRefId = function() {
936
+ proto.WorkLocation.prototype.getRegionReferencesId = function() {
937
937
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
938
938
  };
939
939
 
@@ -942,16 +942,16 @@ proto.WorkLocation.prototype.getCountryRefId = function() {
942
942
  * @param {number} value
943
943
  * @return {!proto.WorkLocation} returns this
944
944
  */
945
- proto.WorkLocation.prototype.setCountryRefId = function(value) {
945
+ proto.WorkLocation.prototype.setRegionReferencesId = function(value) {
946
946
  return jspb.Message.setProto3IntField(this, 17, value);
947
947
  };
948
948
 
949
949
 
950
950
  /**
951
- * optional int64 region_ref_id = 18;
951
+ * optional int64 city_references_id = 18;
952
952
  * @return {number}
953
953
  */
954
- proto.WorkLocation.prototype.getRegionRefId = function() {
954
+ proto.WorkLocation.prototype.getCityReferencesId = function() {
955
955
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
956
956
  };
957
957
 
@@ -960,16 +960,16 @@ proto.WorkLocation.prototype.getRegionRefId = function() {
960
960
  * @param {number} value
961
961
  * @return {!proto.WorkLocation} returns this
962
962
  */
963
- proto.WorkLocation.prototype.setRegionRefId = function(value) {
963
+ proto.WorkLocation.prototype.setCityReferencesId = function(value) {
964
964
  return jspb.Message.setProto3IntField(this, 18, value);
965
965
  };
966
966
 
967
967
 
968
968
  /**
969
- * optional int64 city_ref_id = 19;
969
+ * optional int64 district_references_id = 19;
970
970
  * @return {number}
971
971
  */
972
- proto.WorkLocation.prototype.getCityRefId = function() {
972
+ proto.WorkLocation.prototype.getDistrictReferencesId = function() {
973
973
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
974
974
  };
975
975
 
@@ -978,16 +978,16 @@ proto.WorkLocation.prototype.getCityRefId = function() {
978
978
  * @param {number} value
979
979
  * @return {!proto.WorkLocation} returns this
980
980
  */
981
- proto.WorkLocation.prototype.setCityRefId = function(value) {
981
+ proto.WorkLocation.prototype.setDistrictReferencesId = function(value) {
982
982
  return jspb.Message.setProto3IntField(this, 19, value);
983
983
  };
984
984
 
985
985
 
986
986
  /**
987
- * optional int64 district_ref_id = 20;
987
+ * optional int64 province_references_id = 20;
988
988
  * @return {number}
989
989
  */
990
- proto.WorkLocation.prototype.getDistrictRefId = function() {
990
+ proto.WorkLocation.prototype.getProvinceReferencesId = function() {
991
991
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
992
992
  };
993
993
 
@@ -996,16 +996,16 @@ proto.WorkLocation.prototype.getDistrictRefId = function() {
996
996
  * @param {number} value
997
997
  * @return {!proto.WorkLocation} returns this
998
998
  */
999
- proto.WorkLocation.prototype.setDistrictRefId = function(value) {
999
+ proto.WorkLocation.prototype.setProvinceReferencesId = function(value) {
1000
1000
  return jspb.Message.setProto3IntField(this, 20, value);
1001
1001
  };
1002
1002
 
1003
1003
 
1004
1004
  /**
1005
- * optional int64 province_ref_id = 21;
1005
+ * optional int64 area_references_id = 21;
1006
1006
  * @return {number}
1007
1007
  */
1008
- proto.WorkLocation.prototype.getProvinceRefId = function() {
1008
+ proto.WorkLocation.prototype.getAreaReferencesId = function() {
1009
1009
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
1010
1010
  };
1011
1011
 
@@ -1014,34 +1014,34 @@ proto.WorkLocation.prototype.getProvinceRefId = function() {
1014
1014
  * @param {number} value
1015
1015
  * @return {!proto.WorkLocation} returns this
1016
1016
  */
1017
- proto.WorkLocation.prototype.setProvinceRefId = function(value) {
1017
+ proto.WorkLocation.prototype.setAreaReferencesId = function(value) {
1018
1018
  return jspb.Message.setProto3IntField(this, 21, value);
1019
1019
  };
1020
1020
 
1021
1021
 
1022
1022
  /**
1023
- * optional int64 area_ref_id = 22;
1024
- * @return {number}
1023
+ * optional string tax_office_location = 22;
1024
+ * @return {string}
1025
1025
  */
1026
- proto.WorkLocation.prototype.getAreaRefId = function() {
1027
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
1026
+ proto.WorkLocation.prototype.getTaxOfficeLocation = function() {
1027
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1028
1028
  };
1029
1029
 
1030
1030
 
1031
1031
  /**
1032
- * @param {number} value
1032
+ * @param {string} value
1033
1033
  * @return {!proto.WorkLocation} returns this
1034
1034
  */
1035
- proto.WorkLocation.prototype.setAreaRefId = function(value) {
1036
- return jspb.Message.setProto3IntField(this, 22, value);
1035
+ proto.WorkLocation.prototype.setTaxOfficeLocation = function(value) {
1036
+ return jspb.Message.setProto3StringField(this, 22, value);
1037
1037
  };
1038
1038
 
1039
1039
 
1040
1040
  /**
1041
- * optional string tax_office_location = 23;
1041
+ * optional string references_id = 23;
1042
1042
  * @return {string}
1043
1043
  */
1044
- proto.WorkLocation.prototype.getTaxOfficeLocation = function() {
1044
+ proto.WorkLocation.prototype.getReferencesId = function() {
1045
1045
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1046
1046
  };
1047
1047
 
@@ -1050,7 +1050,7 @@ proto.WorkLocation.prototype.getTaxOfficeLocation = function() {
1050
1050
  * @param {string} value
1051
1051
  * @return {!proto.WorkLocation} returns this
1052
1052
  */
1053
- proto.WorkLocation.prototype.setTaxOfficeLocation = function(value) {
1053
+ proto.WorkLocation.prototype.setReferencesId = function(value) {
1054
1054
  return jspb.Message.setProto3StringField(this, 23, value);
1055
1055
  };
1056
1056
 
@@ -1087,7 +1087,7 @@ proto.WorkLocationGetByIdRequest.prototype.toObject = function(opt_includeInstan
1087
1087
  */
1088
1088
  proto.WorkLocationGetByIdRequest.toObject = function(includeInstance, msg) {
1089
1089
  var f, obj = {
1090
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1090
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1091
1091
  };
1092
1092
 
1093
1093
  if (includeInstance) {
@@ -1125,8 +1125,8 @@ proto.WorkLocationGetByIdRequest.deserializeBinaryFromReader = function(msg, rea
1125
1125
  var field = reader.getFieldNumber();
1126
1126
  switch (field) {
1127
1127
  case 1:
1128
- var value = /** @type {number} */ (reader.readInt64());
1129
- msg.setId(value);
1128
+ var value = /** @type {string} */ (reader.readString());
1129
+ msg.setReferencesId(value);
1130
1130
  break;
1131
1131
  default:
1132
1132
  reader.skipField();
@@ -1157,9 +1157,9 @@ proto.WorkLocationGetByIdRequest.prototype.serializeBinary = function() {
1157
1157
  */
1158
1158
  proto.WorkLocationGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
1159
1159
  var f = undefined;
1160
- f = message.getId();
1161
- if (f !== 0) {
1162
- writer.writeInt64(
1160
+ f = message.getReferencesId();
1161
+ if (f.length > 0) {
1162
+ writer.writeString(
1163
1163
  1,
1164
1164
  f
1165
1165
  );
@@ -1168,20 +1168,20 @@ proto.WorkLocationGetByIdRequest.serializeBinaryToWriter = function(message, wri
1168
1168
 
1169
1169
 
1170
1170
  /**
1171
- * optional int64 id = 1;
1172
- * @return {number}
1171
+ * optional string references_id = 1;
1172
+ * @return {string}
1173
1173
  */
1174
- proto.WorkLocationGetByIdRequest.prototype.getId = function() {
1175
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1174
+ proto.WorkLocationGetByIdRequest.prototype.getReferencesId = function() {
1175
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1176
1176
  };
1177
1177
 
1178
1178
 
1179
1179
  /**
1180
- * @param {number} value
1180
+ * @param {string} value
1181
1181
  * @return {!proto.WorkLocationGetByIdRequest} returns this
1182
1182
  */
1183
- proto.WorkLocationGetByIdRequest.prototype.setId = function(value) {
1184
- return jspb.Message.setProto3IntField(this, 1, value);
1183
+ proto.WorkLocationGetByIdRequest.prototype.setReferencesId = function(value) {
1184
+ return jspb.Message.setProto3StringField(this, 1, value);
1185
1185
  };
1186
1186
 
1187
1187
 
@@ -1368,7 +1368,7 @@ proto.UpdateWorkLocationRequest.prototype.toObject = function(opt_includeInstanc
1368
1368
  */
1369
1369
  proto.UpdateWorkLocationRequest.toObject = function(includeInstance, msg) {
1370
1370
  var f, obj = {
1371
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1371
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1372
1372
  workLocation: (f = msg.getWorkLocation()) && proto.WorkLocation.toObject(includeInstance, f)
1373
1373
  };
1374
1374
 
@@ -1407,8 +1407,8 @@ proto.UpdateWorkLocationRequest.deserializeBinaryFromReader = function(msg, read
1407
1407
  var field = reader.getFieldNumber();
1408
1408
  switch (field) {
1409
1409
  case 1:
1410
- var value = /** @type {number} */ (reader.readInt64());
1411
- msg.setId(value);
1410
+ var value = /** @type {string} */ (reader.readString());
1411
+ msg.setReferencesId(value);
1412
1412
  break;
1413
1413
  case 2:
1414
1414
  var value = new proto.WorkLocation;
@@ -1444,9 +1444,9 @@ proto.UpdateWorkLocationRequest.prototype.serializeBinary = function() {
1444
1444
  */
1445
1445
  proto.UpdateWorkLocationRequest.serializeBinaryToWriter = function(message, writer) {
1446
1446
  var f = undefined;
1447
- f = message.getId();
1448
- if (f !== 0) {
1449
- writer.writeInt64(
1447
+ f = message.getReferencesId();
1448
+ if (f.length > 0) {
1449
+ writer.writeString(
1450
1450
  1,
1451
1451
  f
1452
1452
  );
@@ -1463,20 +1463,20 @@ proto.UpdateWorkLocationRequest.serializeBinaryToWriter = function(message, writ
1463
1463
 
1464
1464
 
1465
1465
  /**
1466
- * optional int64 id = 1;
1467
- * @return {number}
1466
+ * optional string references_id = 1;
1467
+ * @return {string}
1468
1468
  */
1469
- proto.UpdateWorkLocationRequest.prototype.getId = function() {
1470
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1469
+ proto.UpdateWorkLocationRequest.prototype.getReferencesId = function() {
1470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1471
1471
  };
1472
1472
 
1473
1473
 
1474
1474
  /**
1475
- * @param {number} value
1475
+ * @param {string} value
1476
1476
  * @return {!proto.UpdateWorkLocationRequest} returns this
1477
1477
  */
1478
- proto.UpdateWorkLocationRequest.prototype.setId = function(value) {
1479
- return jspb.Message.setProto3IntField(this, 1, value);
1478
+ proto.UpdateWorkLocationRequest.prototype.setReferencesId = function(value) {
1479
+ return jspb.Message.setProto3StringField(this, 1, value);
1480
1480
  };
1481
1481
 
1482
1482
 
@@ -1549,7 +1549,7 @@ proto.DeleteWorkLocationRequest.prototype.toObject = function(opt_includeInstanc
1549
1549
  */
1550
1550
  proto.DeleteWorkLocationRequest.toObject = function(includeInstance, msg) {
1551
1551
  var f, obj = {
1552
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1552
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1553
1553
  };
1554
1554
 
1555
1555
  if (includeInstance) {
@@ -1587,8 +1587,8 @@ proto.DeleteWorkLocationRequest.deserializeBinaryFromReader = function(msg, read
1587
1587
  var field = reader.getFieldNumber();
1588
1588
  switch (field) {
1589
1589
  case 1:
1590
- var value = /** @type {number} */ (reader.readInt64());
1591
- msg.setId(value);
1590
+ var value = /** @type {string} */ (reader.readString());
1591
+ msg.setReferencesId(value);
1592
1592
  break;
1593
1593
  default:
1594
1594
  reader.skipField();
@@ -1619,9 +1619,9 @@ proto.DeleteWorkLocationRequest.prototype.serializeBinary = function() {
1619
1619
  */
1620
1620
  proto.DeleteWorkLocationRequest.serializeBinaryToWriter = function(message, writer) {
1621
1621
  var f = undefined;
1622
- f = message.getId();
1623
- if (f !== 0) {
1624
- writer.writeInt64(
1622
+ f = message.getReferencesId();
1623
+ if (f.length > 0) {
1624
+ writer.writeString(
1625
1625
  1,
1626
1626
  f
1627
1627
  );
@@ -1630,20 +1630,20 @@ proto.DeleteWorkLocationRequest.serializeBinaryToWriter = function(message, writ
1630
1630
 
1631
1631
 
1632
1632
  /**
1633
- * optional int64 id = 1;
1634
- * @return {number}
1633
+ * optional string references_id = 1;
1634
+ * @return {string}
1635
1635
  */
1636
- proto.DeleteWorkLocationRequest.prototype.getId = function() {
1637
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1636
+ proto.DeleteWorkLocationRequest.prototype.getReferencesId = function() {
1637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1638
1638
  };
1639
1639
 
1640
1640
 
1641
1641
  /**
1642
- * @param {number} value
1642
+ * @param {string} value
1643
1643
  * @return {!proto.DeleteWorkLocationRequest} returns this
1644
1644
  */
1645
- proto.DeleteWorkLocationRequest.prototype.setId = function(value) {
1646
- return jspb.Message.setProto3IntField(this, 1, value);
1645
+ proto.DeleteWorkLocationRequest.prototype.setReferencesId = function(value) {
1646
+ return jspb.Message.setProto3StringField(this, 1, value);
1647
1647
  };
1648
1648
 
1649
1649
 
@@ -1679,7 +1679,7 @@ proto.DeleteWorkLocationResponse.prototype.toObject = function(opt_includeInstan
1679
1679
  */
1680
1680
  proto.DeleteWorkLocationResponse.toObject = function(includeInstance, msg) {
1681
1681
  var f, obj = {
1682
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1682
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1683
1683
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1684
1684
  };
1685
1685
 
@@ -1718,8 +1718,8 @@ proto.DeleteWorkLocationResponse.deserializeBinaryFromReader = function(msg, rea
1718
1718
  var field = reader.getFieldNumber();
1719
1719
  switch (field) {
1720
1720
  case 1:
1721
- var value = /** @type {number} */ (reader.readInt64());
1722
- msg.setId(value);
1721
+ var value = /** @type {string} */ (reader.readString());
1722
+ msg.setReferencesId(value);
1723
1723
  break;
1724
1724
  case 2:
1725
1725
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -1755,9 +1755,9 @@ proto.DeleteWorkLocationResponse.prototype.serializeBinary = function() {
1755
1755
  */
1756
1756
  proto.DeleteWorkLocationResponse.serializeBinaryToWriter = function(message, writer) {
1757
1757
  var f = undefined;
1758
- f = message.getId();
1759
- if (f !== 0) {
1760
- writer.writeInt64(
1758
+ f = message.getReferencesId();
1759
+ if (f.length > 0) {
1760
+ writer.writeString(
1761
1761
  1,
1762
1762
  f
1763
1763
  );
@@ -1774,20 +1774,20 @@ proto.DeleteWorkLocationResponse.serializeBinaryToWriter = function(message, wri
1774
1774
 
1775
1775
 
1776
1776
  /**
1777
- * optional int64 id = 1;
1778
- * @return {number}
1777
+ * optional string references_id = 1;
1778
+ * @return {string}
1779
1779
  */
1780
- proto.DeleteWorkLocationResponse.prototype.getId = function() {
1781
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1780
+ proto.DeleteWorkLocationResponse.prototype.getReferencesId = function() {
1781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1782
1782
  };
1783
1783
 
1784
1784
 
1785
1785
  /**
1786
- * @param {number} value
1786
+ * @param {string} value
1787
1787
  * @return {!proto.DeleteWorkLocationResponse} returns this
1788
1788
  */
1789
- proto.DeleteWorkLocationResponse.prototype.setId = function(value) {
1790
- return jspb.Message.setProto3IntField(this, 1, value);
1789
+ proto.DeleteWorkLocationResponse.prototype.setReferencesId = function(value) {
1790
+ return jspb.Message.setProto3StringField(this, 1, value);
1791
1791
  };
1792
1792
 
1793
1793