Skip to content

Commit

Permalink
Remove line_ from new yoberda fields (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miro001 authored Jan 3, 2024
1 parent d745a8f commit 65276c9
Show file tree
Hide file tree
Showing 12 changed files with 263 additions and 263 deletions.
113 changes: 56 additions & 57 deletions gen/csharp/Ssn/Type/Candidate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static CandidateReflection() {
"bE5hbWUSOAoJbW9kZWxfdmVyGAIgASgLMhsuZ29vZ2xlLnByb3RvYnVmLklu",
"dDY0VmFsdWVSCG1vZGVsVmVyIlYKDUxpbmVDYW5kaWRhdGUSEgoEdGV4dBgB",
"IAEoCVIEdGV4dBIWCgZhbW91bnQYAiABKAFSBmFtb3VudBIZCghwYWdlX3Jl",
"ZhgGIAEoDVIHcGFnZVJlZiLGBAoVUHVyY2hhc2VMaW5lQ2FuZGlkYXRlEhkK",
"ZhgGIAEoDVIHcGFnZVJlZiLABAoVUHVyY2hhc2VMaW5lQ2FuZGlkYXRlEhkK",
"CHBhZ2VfcmVmGAEgASgNUgdwYWdlUmVmEhIKBGNvZGUYAiABKAlSBGNvZGUS",
"IAoLZGVzY3JpcHRpb24YAyABKAlSC2Rlc2NyaXB0aW9uEhoKCHF1YW50aXR5",
"GAQgASgJUghxdWFudGl0eRIfCgtpdGVtX251bWJlchgFIAEoCVIKaXRlbU51",
Expand All @@ -53,21 +53,20 @@ static CandidateReflection() {
"bEV4Y2xWYXQSGwoJdG90YWxfdmF0GAsgASgJUgh0b3RhbFZhdBIlCg5wZXJj",
"ZW50YWdlX3ZhdBgMIAEoCVINcGVyY2VudGFnZVZhdBItChN1bml0X3ByaWNl",
"X2luY2xfdmF0GA0gASgJUhB1bml0UHJpY2VJbmNsVmF0Ei0KE3VuaXRfcHJp",
"Y2VfZXhjbF92YXQYDiABKAlSEHVuaXRQcmljZUV4Y2xWYXQSHQoKbGluZV90",
"b3RhbBgPIAEoCVIJbGluZVRvdGFsEiYKD2xpbmVfdW5pdF9wcmljZRgQIAEo",
"CVINbGluZVVuaXRQcmljZUKaAQoRYWkudmlzbWEuc3NuLnR5cGVCDkNhbmRp",
"ZGF0ZVByb3RvUAFaNGdpdGh1Yi5jb20vZS1jb25vbWljL3ZtbGFwaXMvZ2Vu",
"L2dvL3Nzbi90eXBlO3NzbnR5cGWiAgNTVFiqAghTc24uVHlwZcoCCFNzblxU",
"eXBl4gIUU3NuXFR5cGVcR1BCTWV0YWRhdGHqAglTc246OlR5cGViBnByb3Rv",
"Mw=="));
"Y2VfZXhjbF92YXQYDiABKAlSEHVuaXRQcmljZUV4Y2xWYXQSFAoFdG90YWwY",
"ESABKAlSBXRvdGFsEh0KCnVuaXRfcHJpY2UYEiABKAlSCXVuaXRQcmljZUoE",
"CA8QEEoECBAQEUKaAQoRYWkudmlzbWEuc3NuLnR5cGVCDkNhbmRpZGF0ZVBy",
"b3RvUAFaNGdpdGh1Yi5jb20vZS1jb25vbWljL3ZtbGFwaXMvZ2VuL2dvL3Nz",
"bi90eXBlO3NzbnR5cGWiAgNTVFiqAghTc24uVHlwZcoCCFNzblxUeXBl4gIU",
"U3NuXFR5cGVcR1BCTWV0YWRhdGHqAglTc246OlR5cGViBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Ssn.Type.GeometryReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.Confidence), global::Ssn.Type.Confidence.Parser, new[]{ "Level", "Value" }, null, new[]{ typeof(global::Ssn.Type.Confidence.Types.Level) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.Candidate), global::Ssn.Type.Candidate.Parser, new[]{ "Value", "Text", "Confidence", "BoundingBox", "Type", "PageRef", "ModelMetadata" }, null, new[]{ typeof(global::Ssn.Type.Candidate.Types.Type) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.ModelSpec), global::Ssn.Type.ModelSpec.Parser, new[]{ "ModelName", "ModelVer" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.LineCandidate), global::Ssn.Type.LineCandidate.Parser, new[]{ "Text", "Amount", "PageRef" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.PurchaseLineCandidate), global::Ssn.Type.PurchaseLineCandidate.Parser, new[]{ "PageRef", "Code", "Description", "Quantity", "ItemNumber", "Unit", "TotalDiscount", "PercentageDiscount", "TotalInclVat", "TotalExclVat", "TotalVat", "PercentageVat", "UnitPriceInclVat", "UnitPriceExclVat", "LineTotal", "LineUnitPrice" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.PurchaseLineCandidate), global::Ssn.Type.PurchaseLineCandidate.Parser, new[]{ "PageRef", "Code", "Description", "Quantity", "ItemNumber", "Unit", "TotalDiscount", "PercentageDiscount", "TotalInclVat", "TotalExclVat", "TotalVat", "PercentageVat", "UnitPriceInclVat", "UnitPriceExclVat", "Total", "UnitPrice" }, null, null, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -1389,8 +1388,8 @@ public PurchaseLineCandidate(PurchaseLineCandidate other) : this() {
percentageVat_ = other.percentageVat_;
unitPriceInclVat_ = other.unitPriceInclVat_;
unitPriceExclVat_ = other.unitPriceExclVat_;
lineTotal_ = other.lineTotal_;
lineUnitPrice_ = other.lineUnitPrice_;
total_ = other.total_;
unitPrice_ = other.unitPrice_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -1611,33 +1610,33 @@ public string UnitPriceExclVat {
}
}

/// <summary>Field number for the "line_total" field.</summary>
public const int LineTotalFieldNumber = 15;
private string lineTotal_ = "";
/// <summary>Field number for the "total" field.</summary>
public const int TotalFieldNumber = 17;
private string total_ = "";
/// <summary>
/// Line total is the total price of the line (with/without vat)
/// Total is the total price of the line (with/without vat)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string LineTotal {
get { return lineTotal_; }
public string Total {
get { return total_; }
set {
lineTotal_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
total_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

/// <summary>Field number for the "line_unit_price" field.</summary>
public const int LineUnitPriceFieldNumber = 16;
private string lineUnitPrice_ = "";
/// <summary>Field number for the "unit_price" field.</summary>
public const int UnitPriceFieldNumber = 18;
private string unitPrice_ = "";
/// <summary>
/// Line unit price is the unit price of the line (with/without vat)
/// Unit price is the unit price of the line (with/without vat)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string LineUnitPrice {
get { return lineUnitPrice_; }
public string UnitPrice {
get { return unitPrice_; }
set {
lineUnitPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
unitPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

Expand Down Expand Up @@ -1670,8 +1669,8 @@ public bool Equals(PurchaseLineCandidate other) {
if (PercentageVat != other.PercentageVat) return false;
if (UnitPriceInclVat != other.UnitPriceInclVat) return false;
if (UnitPriceExclVat != other.UnitPriceExclVat) return false;
if (LineTotal != other.LineTotal) return false;
if (LineUnitPrice != other.LineUnitPrice) return false;
if (Total != other.Total) return false;
if (UnitPrice != other.UnitPrice) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -1693,8 +1692,8 @@ public override int GetHashCode() {
if (PercentageVat.Length != 0) hash ^= PercentageVat.GetHashCode();
if (UnitPriceInclVat.Length != 0) hash ^= UnitPriceInclVat.GetHashCode();
if (UnitPriceExclVat.Length != 0) hash ^= UnitPriceExclVat.GetHashCode();
if (LineTotal.Length != 0) hash ^= LineTotal.GetHashCode();
if (LineUnitPrice.Length != 0) hash ^= LineUnitPrice.GetHashCode();
if (Total.Length != 0) hash ^= Total.GetHashCode();
if (UnitPrice.Length != 0) hash ^= UnitPrice.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -1769,13 +1768,13 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(114);
output.WriteString(UnitPriceExclVat);
}
if (LineTotal.Length != 0) {
output.WriteRawTag(122);
output.WriteString(LineTotal);
if (Total.Length != 0) {
output.WriteRawTag(138, 1);
output.WriteString(Total);
}
if (LineUnitPrice.Length != 0) {
output.WriteRawTag(130, 1);
output.WriteString(LineUnitPrice);
if (UnitPrice.Length != 0) {
output.WriteRawTag(146, 1);
output.WriteString(UnitPrice);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
Expand Down Expand Up @@ -1843,13 +1842,13 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(114);
output.WriteString(UnitPriceExclVat);
}
if (LineTotal.Length != 0) {
output.WriteRawTag(122);
output.WriteString(LineTotal);
if (Total.Length != 0) {
output.WriteRawTag(138, 1);
output.WriteString(Total);
}
if (LineUnitPrice.Length != 0) {
output.WriteRawTag(130, 1);
output.WriteString(LineUnitPrice);
if (UnitPrice.Length != 0) {
output.WriteRawTag(146, 1);
output.WriteString(UnitPrice);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
Expand Down Expand Up @@ -1903,11 +1902,11 @@ public int CalculateSize() {
if (UnitPriceExclVat.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitPriceExclVat);
}
if (LineTotal.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(LineTotal);
if (Total.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Total);
}
if (LineUnitPrice.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(LineUnitPrice);
if (UnitPrice.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(UnitPrice);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
Expand Down Expand Up @@ -1963,11 +1962,11 @@ public void MergeFrom(PurchaseLineCandidate other) {
if (other.UnitPriceExclVat.Length != 0) {
UnitPriceExclVat = other.UnitPriceExclVat;
}
if (other.LineTotal.Length != 0) {
LineTotal = other.LineTotal;
if (other.Total.Length != 0) {
Total = other.Total;
}
if (other.LineUnitPrice.Length != 0) {
LineUnitPrice = other.LineUnitPrice;
if (other.UnitPrice.Length != 0) {
UnitPrice = other.UnitPrice;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
Expand Down Expand Up @@ -2040,12 +2039,12 @@ public void MergeFrom(pb::CodedInputStream input) {
UnitPriceExclVat = input.ReadString();
break;
}
case 122: {
LineTotal = input.ReadString();
case 138: {
Total = input.ReadString();
break;
}
case 130: {
LineUnitPrice = input.ReadString();
case 146: {
UnitPrice = input.ReadString();
break;
}
}
Expand Down Expand Up @@ -2119,12 +2118,12 @@ public void MergeFrom(pb::CodedInputStream input) {
UnitPriceExclVat = input.ReadString();
break;
}
case 122: {
LineTotal = input.ReadString();
case 138: {
Total = input.ReadString();
break;
}
case 130: {
LineUnitPrice = input.ReadString();
case 146: {
UnitPrice = input.ReadString();
break;
}
}
Expand Down
Binary file modified gen/descriptor.bin
Binary file not shown.
50 changes: 25 additions & 25 deletions gen/go/ssn/type/candidate.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions gen/java/ai/visma/ssn/type/CandidateProto.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 65276c9

Please sign in to comment.