@aldiokta/protocgen 1.0.42 → 1.0.44

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.
@@ -25,6 +25,8 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
26
  var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
27
27
  goog.object.extend(proto, prisca_v1_purchasing_organization_purchasing_organization_pb);
28
+ var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
29
+ goog.object.extend(proto, prisca_v1_core_company_company_pb);
28
30
  goog.exportSymbol('proto.BasePlantPOrganization', null, global);
29
31
  goog.exportSymbol('proto.CreatePlantPOrganizationRequest', null, global);
30
32
  goog.exportSymbol('proto.CreatePlantPOrganizationResponse', null, global);
@@ -301,7 +303,8 @@ proto.PlantPOrganization.toObject = function(includeInstance, msg) {
301
303
  var f, obj = {
302
304
  purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
303
305
  plantReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
304
- description: jspb.Message.getFieldWithDefault(msg, 3, "")
306
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
307
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
305
308
  };
306
309
 
307
310
  if (includeInstance) {
@@ -350,6 +353,10 @@ proto.PlantPOrganization.deserializeBinaryFromReader = function(msg, reader) {
350
353
  var value = /** @type {string} */ (reader.readString());
351
354
  msg.setDescription(value);
352
355
  break;
356
+ case 4:
357
+ var value = /** @type {string} */ (reader.readString());
358
+ msg.setCompaniesReferencesId(value);
359
+ break;
353
360
  default:
354
361
  reader.skipField();
355
362
  break;
@@ -400,6 +407,13 @@ proto.PlantPOrganization.serializeBinaryToWriter = function(message, writer) {
400
407
  f
401
408
  );
402
409
  }
410
+ f = message.getCompaniesReferencesId();
411
+ if (f.length > 0) {
412
+ writer.writeString(
413
+ 4,
414
+ f
415
+ );
416
+ }
403
417
  };
404
418
 
405
419
 
@@ -457,6 +471,24 @@ proto.PlantPOrganization.prototype.setDescription = function(value) {
457
471
  };
458
472
 
459
473
 
474
+ /**
475
+ * optional string companies_references_id = 4;
476
+ * @return {string}
477
+ */
478
+ proto.PlantPOrganization.prototype.getCompaniesReferencesId = function() {
479
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
480
+ };
481
+
482
+
483
+ /**
484
+ * @param {string} value
485
+ * @return {!proto.PlantPOrganization} returns this
486
+ */
487
+ proto.PlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
488
+ return jspb.Message.setProto3StringField(this, 4, value);
489
+ };
490
+
491
+
460
492
 
461
493
 
462
494
 
@@ -491,7 +523,9 @@ proto.BasePlantPOrganization.toObject = function(includeInstance, msg) {
491
523
  var f, obj = {
492
524
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
493
525
  plant: (f = msg.getPlant()) && proto.POWorkLocation.toObject(includeInstance, f),
494
- purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.toObject(includeInstance, f)
526
+ purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.toObject(includeInstance, f),
527
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
528
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
495
529
  };
496
530
 
497
531
  if (includeInstance) {
@@ -542,6 +576,15 @@ proto.BasePlantPOrganization.deserializeBinaryFromReader = function(msg, reader)
542
576
  reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.deserializeBinaryFromReader);
543
577
  msg.setPurchasingOrganizations(value);
544
578
  break;
579
+ case 4:
580
+ var value = new prisca_v1_core_company_company_pb.Company;
581
+ reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
582
+ msg.setCompany(value);
583
+ break;
584
+ case 5:
585
+ var value = /** @type {string} */ (reader.readString());
586
+ msg.setCompaniesReferencesId(value);
587
+ break;
545
588
  default:
546
589
  reader.skipField();
547
590
  break;
@@ -594,6 +637,21 @@ proto.BasePlantPOrganization.serializeBinaryToWriter = function(message, writer)
594
637
  prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.serializeBinaryToWriter
595
638
  );
596
639
  }
640
+ f = message.getCompany();
641
+ if (f != null) {
642
+ writer.writeMessage(
643
+ 4,
644
+ f,
645
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
646
+ );
647
+ }
648
+ f = message.getCompaniesReferencesId();
649
+ if (f.length > 0) {
650
+ writer.writeString(
651
+ 5,
652
+ f
653
+ );
654
+ }
597
655
  };
598
656
 
599
657
 
@@ -689,6 +747,61 @@ proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
689
747
  };
690
748
 
691
749
 
750
+ /**
751
+ * optional Company company = 4;
752
+ * @return {?proto.Company}
753
+ */
754
+ proto.BasePlantPOrganization.prototype.getCompany = function() {
755
+ return /** @type{?proto.Company} */ (
756
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 4));
757
+ };
758
+
759
+
760
+ /**
761
+ * @param {?proto.Company|undefined} value
762
+ * @return {!proto.BasePlantPOrganization} returns this
763
+ */
764
+ proto.BasePlantPOrganization.prototype.setCompany = function(value) {
765
+ return jspb.Message.setWrapperField(this, 4, value);
766
+ };
767
+
768
+
769
+ /**
770
+ * Clears the message field making it undefined.
771
+ * @return {!proto.BasePlantPOrganization} returns this
772
+ */
773
+ proto.BasePlantPOrganization.prototype.clearCompany = function() {
774
+ return this.setCompany(undefined);
775
+ };
776
+
777
+
778
+ /**
779
+ * Returns whether this field is set.
780
+ * @return {boolean}
781
+ */
782
+ proto.BasePlantPOrganization.prototype.hasCompany = function() {
783
+ return jspb.Message.getField(this, 4) != null;
784
+ };
785
+
786
+
787
+ /**
788
+ * optional string companies_references_id = 5;
789
+ * @return {string}
790
+ */
791
+ proto.BasePlantPOrganization.prototype.getCompaniesReferencesId = function() {
792
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
793
+ };
794
+
795
+
796
+ /**
797
+ * @param {string} value
798
+ * @return {!proto.BasePlantPOrganization} returns this
799
+ */
800
+ proto.BasePlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
801
+ return jspb.Message.setProto3StringField(this, 5, value);
802
+ };
803
+
804
+
692
805
 
693
806
 
694
807