@aldiokta/protocgen 1.1.52 → 1.1.53

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.
@@ -323,7 +323,7 @@ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
323
323
  createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
324
324
  updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
325
325
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
326
- value: jspb.Message.getFieldWithDefault(msg, 11, 0)
326
+ value: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0)
327
327
  };
328
328
 
329
329
  if (includeInstance) {
@@ -401,7 +401,7 @@ proto.TaxCode.deserializeBinaryFromReader = function(msg, reader) {
401
401
  msg.setCompaniesReferencesId(value);
402
402
  break;
403
403
  case 11:
404
- var value = /** @type {number} */ (reader.readInt64());
404
+ var value = /** @type {number} */ (reader.readFloat());
405
405
  msg.setValue(value);
406
406
  break;
407
407
  default:
@@ -504,8 +504,8 @@ proto.TaxCode.serializeBinaryToWriter = function(message, writer) {
504
504
  );
505
505
  }
506
506
  f = message.getValue();
507
- if (f !== 0) {
508
- writer.writeInt64(
507
+ if (f !== 0.0) {
508
+ writer.writeFloat(
509
509
  11,
510
510
  f
511
511
  );
@@ -694,11 +694,11 @@ proto.TaxCode.prototype.setCompaniesReferencesId = function(value) {
694
694
 
695
695
 
696
696
  /**
697
- * optional int64 value = 11;
697
+ * optional float value = 11;
698
698
  * @return {number}
699
699
  */
700
700
  proto.TaxCode.prototype.getValue = function() {
701
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
701
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
702
702
  };
703
703
 
704
704
 
@@ -707,7 +707,7 @@ proto.TaxCode.prototype.getValue = function() {
707
707
  * @return {!proto.TaxCode} returns this
708
708
  */
709
709
  proto.TaxCode.prototype.setValue = function(value) {
710
- return jspb.Message.setProto3IntField(this, 11, value);
710
+ return jspb.Message.setProto3FloatField(this, 11, value);
711
711
  };
712
712
 
713
713
 
@@ -746,7 +746,7 @@ proto.BaseTaxCode.toObject = function(includeInstance, msg) {
746
746
  code: jspb.Message.getFieldWithDefault(msg, 1, ""),
747
747
  codeName: jspb.Message.getFieldWithDefault(msg, 2, ""),
748
748
  procedure: jspb.Message.getFieldWithDefault(msg, 3, ""),
749
- value: jspb.Message.getFieldWithDefault(msg, 4, 0)
749
+ value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
750
750
  };
751
751
 
752
752
  if (includeInstance) {
@@ -796,7 +796,7 @@ proto.BaseTaxCode.deserializeBinaryFromReader = function(msg, reader) {
796
796
  msg.setProcedure(value);
797
797
  break;
798
798
  case 4:
799
- var value = /** @type {number} */ (reader.readInt64());
799
+ var value = /** @type {number} */ (reader.readFloat());
800
800
  msg.setValue(value);
801
801
  break;
802
802
  default:
@@ -850,8 +850,8 @@ proto.BaseTaxCode.serializeBinaryToWriter = function(message, writer) {
850
850
  );
851
851
  }
852
852
  f = message.getValue();
853
- if (f !== 0) {
854
- writer.writeInt64(
853
+ if (f !== 0.0) {
854
+ writer.writeFloat(
855
855
  4,
856
856
  f
857
857
  );
@@ -914,11 +914,11 @@ proto.BaseTaxCode.prototype.setProcedure = function(value) {
914
914
 
915
915
 
916
916
  /**
917
- * optional int64 value = 4;
917
+ * optional float value = 4;
918
918
  * @return {number}
919
919
  */
920
920
  proto.BaseTaxCode.prototype.getValue = function() {
921
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
921
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
922
922
  };
923
923
 
924
924
 
@@ -927,7 +927,7 @@ proto.BaseTaxCode.prototype.getValue = function() {
927
927
  * @return {!proto.BaseTaxCode} returns this
928
928
  */
929
929
  proto.BaseTaxCode.prototype.setValue = function(value) {
930
- return jspb.Message.setProto3IntField(this, 4, value);
930
+ return jspb.Message.setProto3FloatField(this, 4, value);
931
931
  };
932
932
 
933
933