@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.
@@ -23,6 +23,8 @@ var global =
23
23
 
24
24
  var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_company_company_pb);
26
28
  goog.exportSymbol('proto.BasePurchasingOrganization', null, global);
27
29
  goog.exportSymbol('proto.CreatePurchasingOrganizationRequest', null, global);
28
30
  goog.exportSymbol('proto.CreatePurchasingOrganizationResponse', null, global);
@@ -299,8 +301,9 @@ proto.PurchasingOrganization.toObject = function(includeInstance, msg) {
299
301
  var f, obj = {
300
302
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
301
303
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
302
- organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
303
- organizations: (f = msg.getOrganizations()) && proto.PurOrg.toObject(includeInstance, f)
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
307
  };
305
308
 
306
309
  if (includeInstance) {
@@ -346,13 +349,17 @@ proto.PurchasingOrganization.deserializeBinaryFromReader = function(msg, reader)
346
349
  msg.setDescription(value);
347
350
  break;
348
351
  case 3:
349
- var value = /** @type {string} */ (reader.readString());
350
- msg.setOrganizationReferencesId(value);
352
+ var value = /** @type {boolean} */ (reader.readBool());
353
+ msg.setValidity(value);
351
354
  break;
352
355
  case 4:
353
- var value = new proto.PurOrg;
354
- reader.readMessage(value,proto.PurOrg.deserializeBinaryFromReader);
355
- msg.setOrganizations(value);
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);
356
363
  break;
357
364
  default:
358
365
  reader.skipField();
@@ -397,19 +404,26 @@ proto.PurchasingOrganization.serializeBinaryToWriter = function(message, writer)
397
404
  f
398
405
  );
399
406
  }
400
- f = message.getOrganizationReferencesId();
407
+ f = message.getValidity();
408
+ if (f) {
409
+ writer.writeBool(
410
+ 3,
411
+ f
412
+ );
413
+ }
414
+ f = message.getCompaniesReferencesId();
401
415
  if (f.length > 0) {
402
416
  writer.writeString(
403
- 3,
417
+ 4,
404
418
  f
405
419
  );
406
420
  }
407
- f = message.getOrganizations();
421
+ f = message.getCompany();
408
422
  if (f != null) {
409
423
  writer.writeMessage(
410
- 4,
424
+ 5,
411
425
  f,
412
- proto.PurOrg.serializeBinaryToWriter
426
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
413
427
  );
414
428
  }
415
429
  };
@@ -452,11 +466,29 @@ proto.PurchasingOrganization.prototype.setDescription = function(value) {
452
466
 
453
467
 
454
468
  /**
455
- * optional string organization_references_id = 3;
469
+ * optional bool validity = 3;
470
+ * @return {boolean}
471
+ */
472
+ proto.PurchasingOrganization.prototype.getValidity = function() {
473
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
474
+ };
475
+
476
+
477
+ /**
478
+ * @param {boolean} value
479
+ * @return {!proto.PurchasingOrganization} returns this
480
+ */
481
+ proto.PurchasingOrganization.prototype.setValidity = function(value) {
482
+ return jspb.Message.setProto3BooleanField(this, 3, value);
483
+ };
484
+
485
+
486
+ /**
487
+ * optional string companies_references_id = 4;
456
488
  * @return {string}
457
489
  */
458
- proto.PurchasingOrganization.prototype.getOrganizationReferencesId = function() {
459
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
490
+ proto.PurchasingOrganization.prototype.getCompaniesReferencesId = function() {
491
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
460
492
  };
461
493
 
462
494
 
@@ -464,27 +496,27 @@ proto.PurchasingOrganization.prototype.getOrganizationReferencesId = function()
464
496
  * @param {string} value
465
497
  * @return {!proto.PurchasingOrganization} returns this
466
498
  */
467
- proto.PurchasingOrganization.prototype.setOrganizationReferencesId = function(value) {
468
- return jspb.Message.setProto3StringField(this, 3, value);
499
+ proto.PurchasingOrganization.prototype.setCompaniesReferencesId = function(value) {
500
+ return jspb.Message.setProto3StringField(this, 4, value);
469
501
  };
470
502
 
471
503
 
472
504
  /**
473
- * optional PurOrg organizations = 4;
474
- * @return {?proto.PurOrg}
505
+ * optional Company company = 5;
506
+ * @return {?proto.Company}
475
507
  */
476
- proto.PurchasingOrganization.prototype.getOrganizations = function() {
477
- return /** @type{?proto.PurOrg} */ (
478
- jspb.Message.getWrapperField(this, proto.PurOrg, 4));
508
+ proto.PurchasingOrganization.prototype.getCompany = function() {
509
+ return /** @type{?proto.Company} */ (
510
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 5));
479
511
  };
480
512
 
481
513
 
482
514
  /**
483
- * @param {?proto.PurOrg|undefined} value
515
+ * @param {?proto.Company|undefined} value
484
516
  * @return {!proto.PurchasingOrganization} returns this
485
517
  */
486
- proto.PurchasingOrganization.prototype.setOrganizations = function(value) {
487
- return jspb.Message.setWrapperField(this, 4, value);
518
+ proto.PurchasingOrganization.prototype.setCompany = function(value) {
519
+ return jspb.Message.setWrapperField(this, 5, value);
488
520
  };
489
521
 
490
522
 
@@ -492,8 +524,8 @@ proto.PurchasingOrganization.prototype.setOrganizations = function(value) {
492
524
  * Clears the message field making it undefined.
493
525
  * @return {!proto.PurchasingOrganization} returns this
494
526
  */
495
- proto.PurchasingOrganization.prototype.clearOrganizations = function() {
496
- return this.setOrganizations(undefined);
527
+ proto.PurchasingOrganization.prototype.clearCompany = function() {
528
+ return this.setCompany(undefined);
497
529
  };
498
530
 
499
531
 
@@ -501,8 +533,8 @@ proto.PurchasingOrganization.prototype.clearOrganizations = function() {
501
533
  * Returns whether this field is set.
502
534
  * @return {boolean}
503
535
  */
504
- proto.PurchasingOrganization.prototype.hasOrganizations = function() {
505
- return jspb.Message.getField(this, 4) != null;
536
+ proto.PurchasingOrganization.prototype.hasCompany = function() {
537
+ return jspb.Message.getField(this, 5) != null;
506
538
  };
507
539
 
508
540
 
@@ -540,8 +572,8 @@ proto.BasePurchasingOrganization.toObject = function(includeInstance, msg) {
540
572
  var f, obj = {
541
573
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
542
574
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
543
- organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
544
- validity: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
575
+ validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
576
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
545
577
  };
546
578
 
547
579
  if (includeInstance) {
@@ -587,13 +619,13 @@ proto.BasePurchasingOrganization.deserializeBinaryFromReader = function(msg, rea
587
619
  msg.setDescription(value);
588
620
  break;
589
621
  case 3:
590
- var value = /** @type {string} */ (reader.readString());
591
- msg.setOrganizationReferencesId(value);
592
- break;
593
- case 4:
594
622
  var value = /** @type {boolean} */ (reader.readBool());
595
623
  msg.setValidity(value);
596
624
  break;
625
+ case 4:
626
+ var value = /** @type {string} */ (reader.readString());
627
+ msg.setCompaniesReferencesId(value);
628
+ break;
597
629
  default:
598
630
  reader.skipField();
599
631
  break;
@@ -637,16 +669,16 @@ proto.BasePurchasingOrganization.serializeBinaryToWriter = function(message, wri
637
669
  f
638
670
  );
639
671
  }
640
- f = message.getOrganizationReferencesId();
641
- if (f.length > 0) {
642
- writer.writeString(
672
+ f = message.getValidity();
673
+ if (f) {
674
+ writer.writeBool(
643
675
  3,
644
676
  f
645
677
  );
646
678
  }
647
- f = message.getValidity();
648
- if (f) {
649
- writer.writeBool(
679
+ f = message.getCompaniesReferencesId();
680
+ if (f.length > 0) {
681
+ writer.writeString(
650
682
  4,
651
683
  f
652
684
  );
@@ -691,38 +723,38 @@ proto.BasePurchasingOrganization.prototype.setDescription = function(value) {
691
723
 
692
724
 
693
725
  /**
694
- * optional string organization_references_id = 3;
695
- * @return {string}
726
+ * optional bool validity = 3;
727
+ * @return {boolean}
696
728
  */
697
- proto.BasePurchasingOrganization.prototype.getOrganizationReferencesId = function() {
698
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
729
+ proto.BasePurchasingOrganization.prototype.getValidity = function() {
730
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
699
731
  };
700
732
 
701
733
 
702
734
  /**
703
- * @param {string} value
735
+ * @param {boolean} value
704
736
  * @return {!proto.BasePurchasingOrganization} returns this
705
737
  */
706
- proto.BasePurchasingOrganization.prototype.setOrganizationReferencesId = function(value) {
707
- return jspb.Message.setProto3StringField(this, 3, value);
738
+ proto.BasePurchasingOrganization.prototype.setValidity = function(value) {
739
+ return jspb.Message.setProto3BooleanField(this, 3, value);
708
740
  };
709
741
 
710
742
 
711
743
  /**
712
- * optional bool validity = 4;
713
- * @return {boolean}
744
+ * optional string companies_references_id = 4;
745
+ * @return {string}
714
746
  */
715
- proto.BasePurchasingOrganization.prototype.getValidity = function() {
716
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
747
+ proto.BasePurchasingOrganization.prototype.getCompaniesReferencesId = function() {
748
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
717
749
  };
718
750
 
719
751
 
720
752
  /**
721
- * @param {boolean} value
753
+ * @param {string} value
722
754
  * @return {!proto.BasePurchasingOrganization} returns this
723
755
  */
724
- proto.BasePurchasingOrganization.prototype.setValidity = function(value) {
725
- return jspb.Message.setProto3BooleanField(this, 4, value);
756
+ proto.BasePurchasingOrganization.prototype.setCompaniesReferencesId = function(value) {
757
+ return jspb.Message.setProto3StringField(this, 4, value);
726
758
  };
727
759
 
728
760
 
@@ -5,6 +5,7 @@ var grpc = require('@grpc/grpc-js');
5
5
  var prisca_v1_purchasing_organization_assignment_purchasing_organization_assignment_pb = require('../../../prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js');
6
6
  var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
7
7
  var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
8
+ var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
8
9
 
9
10
  function serialize_AssignPOrganizationGetByIdRequest(arg) {
10
11
  if (!(arg instanceof prisca_v1_purchasing_organization_assignment_purchasing_organization_assignment_pb.AssignPOrganizationGetByIdRequest)) {
@@ -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.AssignPOrganization', null, global);
29
31
  goog.exportSymbol('proto.AssignPOrganizationGetByIdRequest', null, global);
30
32
  goog.exportSymbol('proto.AssignPOrganizationGetByIdResponse', null, global);
@@ -33,7 +35,6 @@ goog.exportSymbol('proto.CreateAssignPOrganizationRequest', null, global);
33
35
  goog.exportSymbol('proto.CreateAssignPOrganizationResponse', null, global);
34
36
  goog.exportSymbol('proto.GetListAssignPOrganizationRequest', null, global);
35
37
  goog.exportSymbol('proto.GetListAssignPOrganizationResponse', null, global);
36
- goog.exportSymbol('proto.POCompany', null, global);
37
38
  goog.exportSymbol('proto.UpdateAssignPOrganizationRequest', null, global);
38
39
  goog.exportSymbol('proto.UpdateAssignPOrganizationResponse', null, global);
39
40
  /**
@@ -78,27 +79,6 @@ if (goog.DEBUG && !COMPILED) {
78
79
  */
79
80
  proto.BaseAssignPOrganization.displayName = 'proto.BaseAssignPOrganization';
80
81
  }
81
- /**
82
- * Generated by JsPbCodeGenerator.
83
- * @param {Array=} opt_data Optional initial data array, typically from a
84
- * server response, or constructed directly in Javascript. The array is used
85
- * in place and becomes part of the constructed object. It is not cloned.
86
- * If no data is provided, the constructed object will be empty, but still
87
- * valid.
88
- * @extends {jspb.Message}
89
- * @constructor
90
- */
91
- proto.POCompany = function(opt_data) {
92
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
93
- };
94
- goog.inherits(proto.POCompany, jspb.Message);
95
- if (goog.DEBUG && !COMPILED) {
96
- /**
97
- * @public
98
- * @override
99
- */
100
- proto.POCompany.displayName = 'proto.POCompany';
101
- }
102
82
  /**
103
83
  * Generated by JsPbCodeGenerator.
104
84
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -461,7 +441,7 @@ proto.BaseAssignPOrganization.toObject = function(includeInstance, msg) {
461
441
  var f, obj = {
462
442
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
463
443
  referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
464
- companies: (f = msg.getCompanies()) && proto.POCompany.toObject(includeInstance, f),
444
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
465
445
  purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
466
446
  purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.BasePurchasingOrganization.toObject(includeInstance, f)
467
447
  };
@@ -509,9 +489,9 @@ proto.BaseAssignPOrganization.deserializeBinaryFromReader = function(msg, reader
509
489
  msg.setReferencesId(value);
510
490
  break;
511
491
  case 3:
512
- var value = new proto.POCompany;
513
- reader.readMessage(value,proto.POCompany.deserializeBinaryFromReader);
514
- msg.setCompanies(value);
492
+ var value = new prisca_v1_core_company_company_pb.Company;
493
+ reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
494
+ msg.setCompany(value);
515
495
  break;
516
496
  case 4:
517
497
  var value = /** @type {string} */ (reader.readString());
@@ -565,12 +545,12 @@ proto.BaseAssignPOrganization.serializeBinaryToWriter = function(message, writer
565
545
  f
566
546
  );
567
547
  }
568
- f = message.getCompanies();
548
+ f = message.getCompany();
569
549
  if (f != null) {
570
550
  writer.writeMessage(
571
551
  3,
572
552
  f,
573
- proto.POCompany.serializeBinaryToWriter
553
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
574
554
  );
575
555
  }
576
556
  f = message.getPurchasingOrganizationReferencesId();
@@ -628,20 +608,20 @@ proto.BaseAssignPOrganization.prototype.setReferencesId = function(value) {
628
608
 
629
609
 
630
610
  /**
631
- * optional POCompany companies = 3;
632
- * @return {?proto.POCompany}
611
+ * optional Company company = 3;
612
+ * @return {?proto.Company}
633
613
  */
634
- proto.BaseAssignPOrganization.prototype.getCompanies = function() {
635
- return /** @type{?proto.POCompany} */ (
636
- jspb.Message.getWrapperField(this, proto.POCompany, 3));
614
+ proto.BaseAssignPOrganization.prototype.getCompany = function() {
615
+ return /** @type{?proto.Company} */ (
616
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 3));
637
617
  };
638
618
 
639
619
 
640
620
  /**
641
- * @param {?proto.POCompany|undefined} value
621
+ * @param {?proto.Company|undefined} value
642
622
  * @return {!proto.BaseAssignPOrganization} returns this
643
623
  */
644
- proto.BaseAssignPOrganization.prototype.setCompanies = function(value) {
624
+ proto.BaseAssignPOrganization.prototype.setCompany = function(value) {
645
625
  return jspb.Message.setWrapperField(this, 3, value);
646
626
  };
647
627
 
@@ -650,8 +630,8 @@ proto.BaseAssignPOrganization.prototype.setCompanies = function(value) {
650
630
  * Clears the message field making it undefined.
651
631
  * @return {!proto.BaseAssignPOrganization} returns this
652
632
  */
653
- proto.BaseAssignPOrganization.prototype.clearCompanies = function() {
654
- return this.setCompanies(undefined);
633
+ proto.BaseAssignPOrganization.prototype.clearCompany = function() {
634
+ return this.setCompany(undefined);
655
635
  };
656
636
 
657
637
 
@@ -659,7 +639,7 @@ proto.BaseAssignPOrganization.prototype.clearCompanies = function() {
659
639
  * Returns whether this field is set.
660
640
  * @return {boolean}
661
641
  */
662
- proto.BaseAssignPOrganization.prototype.hasCompanies = function() {
642
+ proto.BaseAssignPOrganization.prototype.hasCompany = function() {
663
643
  return jspb.Message.getField(this, 3) != null;
664
644
  };
665
645
 
@@ -722,196 +702,6 @@ proto.BaseAssignPOrganization.prototype.hasPurchasingOrganizations = function()
722
702
 
723
703
 
724
704
 
725
- if (jspb.Message.GENERATE_TO_OBJECT) {
726
- /**
727
- * Creates an object representation of this proto.
728
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
729
- * Optional fields that are not set will be set to undefined.
730
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
731
- * For the list of reserved names please see:
732
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
733
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
734
- * JSPB instance for transitional soy proto support:
735
- * http://goto/soy-param-migration
736
- * @return {!Object}
737
- */
738
- proto.POCompany.prototype.toObject = function(opt_includeInstance) {
739
- return proto.POCompany.toObject(opt_includeInstance, this);
740
- };
741
-
742
-
743
- /**
744
- * Static version of the {@see toObject} method.
745
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
746
- * the JSPB instance for transitional soy proto support:
747
- * http://goto/soy-param-migration
748
- * @param {!proto.POCompany} msg The msg instance to transform.
749
- * @return {!Object}
750
- * @suppress {unusedLocalVariables} f is only used for nested messages
751
- */
752
- proto.POCompany.toObject = function(includeInstance, msg) {
753
- var f, obj = {
754
- code: jspb.Message.getFieldWithDefault(msg, 1, ""),
755
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
756
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
757
- };
758
-
759
- if (includeInstance) {
760
- obj.$jspbMessageInstance = msg;
761
- }
762
- return obj;
763
- };
764
- }
765
-
766
-
767
- /**
768
- * Deserializes binary data (in protobuf wire format).
769
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
770
- * @return {!proto.POCompany}
771
- */
772
- proto.POCompany.deserializeBinary = function(bytes) {
773
- var reader = new jspb.BinaryReader(bytes);
774
- var msg = new proto.POCompany;
775
- return proto.POCompany.deserializeBinaryFromReader(msg, reader);
776
- };
777
-
778
-
779
- /**
780
- * Deserializes binary data (in protobuf wire format) from the
781
- * given reader into the given message object.
782
- * @param {!proto.POCompany} msg The message object to deserialize into.
783
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
784
- * @return {!proto.POCompany}
785
- */
786
- proto.POCompany.deserializeBinaryFromReader = function(msg, reader) {
787
- while (reader.nextField()) {
788
- if (reader.isEndGroup()) {
789
- break;
790
- }
791
- var field = reader.getFieldNumber();
792
- switch (field) {
793
- case 1:
794
- var value = /** @type {string} */ (reader.readString());
795
- msg.setCode(value);
796
- break;
797
- case 2:
798
- var value = /** @type {string} */ (reader.readString());
799
- msg.setName(value);
800
- break;
801
- case 3:
802
- var value = /** @type {string} */ (reader.readString());
803
- msg.setReferencesId(value);
804
- break;
805
- default:
806
- reader.skipField();
807
- break;
808
- }
809
- }
810
- return msg;
811
- };
812
-
813
-
814
- /**
815
- * Serializes the message to binary data (in protobuf wire format).
816
- * @return {!Uint8Array}
817
- */
818
- proto.POCompany.prototype.serializeBinary = function() {
819
- var writer = new jspb.BinaryWriter();
820
- proto.POCompany.serializeBinaryToWriter(this, writer);
821
- return writer.getResultBuffer();
822
- };
823
-
824
-
825
- /**
826
- * Serializes the given message to binary data (in protobuf wire
827
- * format), writing to the given BinaryWriter.
828
- * @param {!proto.POCompany} message
829
- * @param {!jspb.BinaryWriter} writer
830
- * @suppress {unusedLocalVariables} f is only used for nested messages
831
- */
832
- proto.POCompany.serializeBinaryToWriter = function(message, writer) {
833
- var f = undefined;
834
- f = message.getCode();
835
- if (f.length > 0) {
836
- writer.writeString(
837
- 1,
838
- f
839
- );
840
- }
841
- f = message.getName();
842
- if (f.length > 0) {
843
- writer.writeString(
844
- 2,
845
- f
846
- );
847
- }
848
- f = message.getReferencesId();
849
- if (f.length > 0) {
850
- writer.writeString(
851
- 3,
852
- f
853
- );
854
- }
855
- };
856
-
857
-
858
- /**
859
- * optional string code = 1;
860
- * @return {string}
861
- */
862
- proto.POCompany.prototype.getCode = function() {
863
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
864
- };
865
-
866
-
867
- /**
868
- * @param {string} value
869
- * @return {!proto.POCompany} returns this
870
- */
871
- proto.POCompany.prototype.setCode = function(value) {
872
- return jspb.Message.setProto3StringField(this, 1, value);
873
- };
874
-
875
-
876
- /**
877
- * optional string name = 2;
878
- * @return {string}
879
- */
880
- proto.POCompany.prototype.getName = function() {
881
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
882
- };
883
-
884
-
885
- /**
886
- * @param {string} value
887
- * @return {!proto.POCompany} returns this
888
- */
889
- proto.POCompany.prototype.setName = function(value) {
890
- return jspb.Message.setProto3StringField(this, 2, value);
891
- };
892
-
893
-
894
- /**
895
- * optional string references_id = 3;
896
- * @return {string}
897
- */
898
- proto.POCompany.prototype.getReferencesId = function() {
899
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
900
- };
901
-
902
-
903
- /**
904
- * @param {string} value
905
- * @return {!proto.POCompany} returns this
906
- */
907
- proto.POCompany.prototype.setReferencesId = function(value) {
908
- return jspb.Message.setProto3StringField(this, 3, value);
909
- };
910
-
911
-
912
-
913
-
914
-
915
705
  if (jspb.Message.GENERATE_TO_OBJECT) {
916
706
  /**
917
707
  * Creates an object representation of this proto.
@@ -5,6 +5,7 @@ var grpc = require('@grpc/grpc-js');
5
5
  var prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb = require('../../../prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js');
6
6
  var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
7
7
  var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
8
+ var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
8
9
 
9
10
  function serialize_CreatePlantPOrganizationRequest(arg) {
10
11
  if (!(arg instanceof prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb.CreatePlantPOrganizationRequest)) {