@aldiokta/protocgen 1.0.48 → 1.0.50

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.
@@ -301,9 +301,7 @@ proto.PurchasingOrganization.toObject = function(includeInstance, msg) {
301
301
  var f, obj = {
302
302
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
303
303
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
304
- validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
305
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
306
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f)
304
+ validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
307
305
  };
308
306
 
309
307
  if (includeInstance) {
@@ -352,15 +350,6 @@ proto.PurchasingOrganization.deserializeBinaryFromReader = function(msg, reader)
352
350
  var value = /** @type {boolean} */ (reader.readBool());
353
351
  msg.setValidity(value);
354
352
  break;
355
- case 4:
356
- var value = /** @type {string} */ (reader.readString());
357
- msg.setCompaniesReferencesId(value);
358
- break;
359
- case 5:
360
- var value = new prisca_v1_core_company_company_pb.Company;
361
- reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
362
- msg.setCompany(value);
363
- break;
364
353
  default:
365
354
  reader.skipField();
366
355
  break;
@@ -411,21 +400,6 @@ proto.PurchasingOrganization.serializeBinaryToWriter = function(message, writer)
411
400
  f
412
401
  );
413
402
  }
414
- f = message.getCompaniesReferencesId();
415
- if (f.length > 0) {
416
- writer.writeString(
417
- 4,
418
- f
419
- );
420
- }
421
- f = message.getCompany();
422
- if (f != null) {
423
- writer.writeMessage(
424
- 5,
425
- f,
426
- prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
427
- );
428
- }
429
403
  };
430
404
 
431
405
 
@@ -483,61 +457,6 @@ proto.PurchasingOrganization.prototype.setValidity = function(value) {
483
457
  };
484
458
 
485
459
 
486
- /**
487
- * optional string companies_references_id = 4;
488
- * @return {string}
489
- */
490
- proto.PurchasingOrganization.prototype.getCompaniesReferencesId = function() {
491
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
492
- };
493
-
494
-
495
- /**
496
- * @param {string} value
497
- * @return {!proto.PurchasingOrganization} returns this
498
- */
499
- proto.PurchasingOrganization.prototype.setCompaniesReferencesId = function(value) {
500
- return jspb.Message.setProto3StringField(this, 4, value);
501
- };
502
-
503
-
504
- /**
505
- * optional Company company = 5;
506
- * @return {?proto.Company}
507
- */
508
- proto.PurchasingOrganization.prototype.getCompany = function() {
509
- return /** @type{?proto.Company} */ (
510
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 5));
511
- };
512
-
513
-
514
- /**
515
- * @param {?proto.Company|undefined} value
516
- * @return {!proto.PurchasingOrganization} returns this
517
- */
518
- proto.PurchasingOrganization.prototype.setCompany = function(value) {
519
- return jspb.Message.setWrapperField(this, 5, value);
520
- };
521
-
522
-
523
- /**
524
- * Clears the message field making it undefined.
525
- * @return {!proto.PurchasingOrganization} returns this
526
- */
527
- proto.PurchasingOrganization.prototype.clearCompany = function() {
528
- return this.setCompany(undefined);
529
- };
530
-
531
-
532
- /**
533
- * Returns whether this field is set.
534
- * @return {boolean}
535
- */
536
- proto.PurchasingOrganization.prototype.hasCompany = function() {
537
- return jspb.Message.getField(this, 5) != null;
538
- };
539
-
540
-
541
460
 
542
461
 
543
462
 
@@ -572,8 +491,7 @@ proto.BasePurchasingOrganization.toObject = function(includeInstance, msg) {
572
491
  var f, obj = {
573
492
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
574
493
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
575
- validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
576
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
494
+ validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
577
495
  };
578
496
 
579
497
  if (includeInstance) {
@@ -622,10 +540,6 @@ proto.BasePurchasingOrganization.deserializeBinaryFromReader = function(msg, rea
622
540
  var value = /** @type {boolean} */ (reader.readBool());
623
541
  msg.setValidity(value);
624
542
  break;
625
- case 4:
626
- var value = /** @type {string} */ (reader.readString());
627
- msg.setCompaniesReferencesId(value);
628
- break;
629
543
  default:
630
544
  reader.skipField();
631
545
  break;
@@ -676,13 +590,6 @@ proto.BasePurchasingOrganization.serializeBinaryToWriter = function(message, wri
676
590
  f
677
591
  );
678
592
  }
679
- f = message.getCompaniesReferencesId();
680
- if (f.length > 0) {
681
- writer.writeString(
682
- 4,
683
- f
684
- );
685
- }
686
593
  };
687
594
 
688
595
 
@@ -740,24 +647,6 @@ proto.BasePurchasingOrganization.prototype.setValidity = function(value) {
740
647
  };
741
648
 
742
649
 
743
- /**
744
- * optional string companies_references_id = 4;
745
- * @return {string}
746
- */
747
- proto.BasePurchasingOrganization.prototype.getCompaniesReferencesId = function() {
748
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
749
- };
750
-
751
-
752
- /**
753
- * @param {string} value
754
- * @return {!proto.BasePurchasingOrganization} returns this
755
- */
756
- proto.BasePurchasingOrganization.prototype.setCompaniesReferencesId = function(value) {
757
- return jspb.Message.setProto3StringField(this, 4, value);
758
- };
759
-
760
-
761
650
 
762
651
 
763
652