From 128ea17b12be6f7a0cc72f0c83398fe8a84253bb Mon Sep 17 00:00:00 2001 From: MiroJ Date: Mon, 21 Oct 2024 13:53:41 +0200 Subject: [PATCH] Vat Distribution (#221) * Vat levels draft * Vol 2 --- gen/csharp/Ssn/Annotator/V1/Annotator.cs | 228 +++-- gen/csharp/Ssn/Mlservice/V2/Mlservice.cs | 484 ++++++++- gen/csharp/Ssn/Type/Candidate.cs | 297 +++++- gen/descriptor.bin | Bin 301590 -> 302402 bytes gen/go/ssn/annotator/v1/annotator.pb.go | 580 ++++++----- gen/go/ssn/mlservice/v2/mlservice.pb.go | 382 +++++-- gen/go/ssn/type/candidate.pb.go | 155 ++- .../ssn/annotator/v1/AnnotatorProto.java | 217 ++-- .../v1/DocumentAnnotatorResponse.java | 442 ++++++++ .../DocumentAnnotatorResponseOrBuilder.java | 44 + .../ai/visma/ssn/annotator/v1/Feature.java | 17 + .../ssn/mlservice/v2/MlserviceProto.java | 57 +- .../mlservice/v2/VatDistributionRequest.java | 789 ++++++++++++++ .../v2/VatDistributionRequestOrBuilder.java | 42 + .../mlservice/v2/VatDistributionResponse.java | 759 ++++++++++++++ .../v2/VatDistributionResponseOrBuilder.java | 33 + .../ai/visma/ssn/type/CandidateProto.java | 25 +- .../ssn/type/VatDistributionCandidate.java | 962 ++++++++++++++++++ .../VatDistributionCandidateOrBuilder.java | 76 ++ gen/js/ssn/annotator/v1/annotator_pb.d.ts | 7 + gen/js/ssn/annotator/v1/annotator_pb.js | 60 +- gen/js/ssn/mlservice/v2/mlservice_pb.d.ts | 50 + gen/js/ssn/mlservice/v2/mlservice_pb.js | 439 ++++++++ gen/js/ssn/type/candidate_pb.d.ts | 28 + gen/js/ssn/type/candidate_pb.js | 233 +++++ gen/openapiv2/ssn/v1.swagger.json | 30 +- gen/python/ssn/annotator/v1/annotator_pb2.py | 34 +- gen/python/ssn/annotator/v1/annotator_pb2.pyi | 8 +- gen/python/ssn/mlservice/v2/mlservice_pb2.py | 10 +- gen/python/ssn/mlservice/v2/mlservice_pb2.pyi | 16 + gen/python/ssn/type/candidate_pb2.py | 4 +- gen/python/ssn/type/candidate_pb2.pyi | 10 + proto/ssn/annotator/v1/annotator.proto | 4 + proto/ssn/mlservice/v2/mlservice.proto | 10 + proto/ssn/type/candidate.proto | 9 + 35 files changed, 5847 insertions(+), 694 deletions(-) create mode 100644 gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequest.java create mode 100644 gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequestOrBuilder.java create mode 100644 gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponse.java create mode 100644 gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponseOrBuilder.java create mode 100644 gen/java/ai/visma/ssn/type/VatDistributionCandidate.java create mode 100644 gen/java/ai/visma/ssn/type/VatDistributionCandidateOrBuilder.java diff --git a/gen/csharp/Ssn/Annotator/V1/Annotator.cs b/gen/csharp/Ssn/Annotator/V1/Annotator.cs index 3c319a34..ed6c0bcf 100644 --- a/gen/csharp/Ssn/Annotator/V1/Annotator.cs +++ b/gen/csharp/Ssn/Annotator/V1/Annotator.cs @@ -28,11 +28,11 @@ static AnnotatorReflection() { "YXRvci52MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoucHJvdG9j", "LWdlbi1vcGVuYXBpdjIvb3B0aW9ucy9hbm5vdGF0aW9ucy5wcm90bxoYc3Nu", "L3R5cGUvY2FuZGlkYXRlLnByb3RvGh5zc24vdHlwZS90ZXh0X2Fubm90YXRp", - "b24ucHJvdG8aE3Nzbi90eXBlL3RpZXIucHJvdG8ipQkKB0ZlYXR1cmUSMgoE", + "b24ucHJvdG8aE3Nzbi90eXBlL3RpZXIucHJvdG8iuwkKB0ZlYXR1cmUSMgoE", "dHlwZRgBIAEoDjIeLnNzbi5hbm5vdGF0b3IudjEuRmVhdHVyZS5UeXBlUgR0", "eXBlEh8KC21heF9yZXN1bHRzGAIgASgFUgptYXhSZXN1bHRzEkEKDm1pbl9j", "b25maWRlbmNlGAMgASgOMhouc3NuLnR5cGUuQ29uZmlkZW5jZS5MZXZlbFIN", - "bWluQ29uZmlkZW5jZSKBCAoEVHlwZRILCgdERUZBVUxUEAASEwoPVEVYVF9B", + "bWluQ29uZmlkZW5jZSKXCAoEVHlwZRILCgdERUZBVUxUEAASEwoPVEVYVF9B", "Tk5PVEFUSU9OEAESDgoKT1JERVJfREFURRACEhQKEFBBWU1FTlRfRFVFX0RB", "VEUQAxIMCghDVVJSRU5DWRAEEg0KCVRPVEFMX1ZBVBAFEhIKDlRPVEFMX0lO", "Q0xfVkFUEAYSEgoOVE9UQUxfRVhDTF9WQVQQBxIZChVTVVBQTElFUl9DT1JQ", @@ -55,105 +55,108 @@ static AnnotatorReflection() { "REVSX05VTUJFUhAmEhQKEFJFQ0VJVkVSX0FERFJFU1MQKBIZChVSRUNFSVZF", "Ul9DT1VOVFJZX0NPREUQKRIRCg1SRUNFSVZFUl9OQU1FECoSFwoTUkVDRUlW", "RVJfVkFUX05VTUJFUhArEhIKDlBVUkNIQVNFX0xJTkVTECwSDgoKUEFHRV9U", - "RVhUUxAtIvsBChhEb2N1bWVudEFubm90YXRvclJlcXVlc3QSNgoIZG9jdW1l", - "bnQYASABKAsyGi5zc24uYW5ub3RhdG9yLnYxLkRvY3VtZW50Ughkb2N1bWVu", - "dBI1CghmZWF0dXJlcxgCIAMoCzIZLnNzbi5hbm5vdGF0b3IudjEuRmVhdHVy", - "ZVIIZmVhdHVyZXMSEgoEdGFncxgDIAMoCVIEdGFncxIiCgR0aWVyGAQgASgO", - "Mg4uc3NuLnR5cGUuVGllclIEdGllchIaCghzZWdtZW50cxgFIAMoCVIIc2Vn", - "bWVudHMSHAoJcXVlc3Rpb25zGAYgAygJUglxdWVzdGlvbnMilBcKGURvY3Vt", - "ZW50QW5ub3RhdG9yUmVzcG9uc2USMgoKb3JkZXJfZGF0ZRgBIAMoCzITLnNz", - "bi50eXBlLkNhbmRpZGF0ZVIJb3JkZXJEYXRlEj0KEHBheW1lbnRfZHVlX2Rh", - "dGUYAiADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSDnBheW1lbnREdWVEYXRl", - "Ei8KCGN1cnJlbmN5GAMgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUghjdXJy", - "ZW5jeRIwCgl0b3RhbF92YXQYBCADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVS", - "CHRvdGFsVmF0EjkKDnRvdGFsX2luY2xfdmF0GAUgAygLMhMuc3NuLnR5cGUu", - "Q2FuZGlkYXRlUgx0b3RhbEluY2xWYXQSOQoOdG90YWxfZXhjbF92YXQYBiAD", - "KAsyEy5zc24udHlwZS5DYW5kaWRhdGVSDHRvdGFsRXhjbFZhdBJHChVzdXBw", - "bGllcl9jb3Jwb3JhdGVfaWQYByADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVS", - "E3N1cHBsaWVyQ29ycG9yYXRlSWQSRwoVc3VwcGxpZXJfY291bnRyeV9jb2Rl", - "GAggAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhNzdXBwbGllckNvdW50cnlD", - "b2RlEjgKDWRvY3VtZW50X3R5cGUYCSADKAsyEy5zc24udHlwZS5DYW5kaWRh", - "dGVSDGRvY3VtZW50VHlwZRI6Cg5wYXltZW50X21ldGhvZBgKIAMoCzITLnNz", - "bi50eXBlLkNhbmRpZGF0ZVINcGF5bWVudE1ldGhvZBJGChVjcmVkaXRfY2Fy", - "ZF9sYXN0X2ZvdXIYCyADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSEmNyZWRp", - "dENhcmRMYXN0Rm91chI6Cg5pbnZvaWNlX251bWJlchgMIAMoCzITLnNzbi50", - "eXBlLkNhbmRpZGF0ZVINaW52b2ljZU51bWJlchJBCg90ZXh0X2Fubm90YXRp", - "b24YDSABKAsyGC5zc24udHlwZS5UZXh0QW5ub3RhdGlvblIOdGV4dEFubm90", - "YXRpb24SPAoQb2NyX2xpbmVfZGtfdHlwZRgOIAMoCzITLnNzbi50eXBlLkNh", - "bmRpZGF0ZVINb2NyTGluZURrVHlwZRJHChZvY3JfbGluZV9ka19wYXltZW50", - "X2lkGA8gAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhJvY3JMaW5lRGtQYXlt", - "ZW50SWQSSQoXb2NyX2xpbmVfZGtfY3JlZGl0b3JfaWQYECADKAsyEy5zc24u", - "dHlwZS5DYW5kaWRhdGVSE29jckxpbmVEa0NyZWRpdG9ySWQSRwoWb2NyX2xp", - "bmVfc2VfcGF5bWVudF9pZBgRIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIS", - "b2NyTGluZVNlUGF5bWVudElkEloKIG9jcl9saW5lX3NlX2JhbmtnaXJvX2Ny", - "ZWRpdG9yX2lkGBIgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhtvY3JMaW5l", - "U2VCYW5rZ2lyb0NyZWRpdG9ySWQSWgogb2NyX2xpbmVfc2VfcGx1c2dpcm9f", - "Y3JlZGl0b3JfaWQYEyADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSG29jckxp", - "bmVTZVBsdXNnaXJvQ3JlZGl0b3JJZBJHChZvY3JfbGluZV9ub19wYXltZW50", - "X2lkGBQgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhJvY3JMaW5lTm9QYXlt", - "ZW50SWQSRwoWb2NyX2xpbmVfZmlfcGF5bWVudF9pZBgVIAMoCzITLnNzbi50", - "eXBlLkNhbmRpZGF0ZVISb2NyTGluZUZpUGF5bWVudElkEkcKFm9jcl9saW5l", - "X25sX3BheW1lbnRfaWQYFiADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSEm9j", - "ckxpbmVObFBheW1lbnRJZBJHChZvY3JfbGluZV9iZV9wYXltZW50X2lkGCgg", - "AygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhJvY3JMaW5lQmVQYXltZW50SWQS", - "EgoEdGV4dBgXIAEoCVIEdGV4dBIfCgtmZWVkYmFja19pZBgYIAEoCVIKZmVl", - "ZGJhY2tJZBInCgRpYmFuGBkgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUgRp", - "YmFuEi0KBWxpbmVzGBogAygLMhcuc3NuLnR5cGUuTGluZUNhbmRpZGF0ZVIF", - "bGluZXMSGAoHcHJldmlldxgbIAEoCVIHcHJldmlldxJDChNiYW5rX2FjY291", - "bnRfbnVtYmVyGBwgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhFiYW5rQWNj", - "b3VudE51bWJlchJNChhiYW5rX3JlZ2lzdHJhdGlvbl9udW1iZXIYHSADKAsy", - "Ey5zc24udHlwZS5DYW5kaWRhdGVSFmJhbmtSZWdpc3RyYXRpb25OdW1iZXIS", - "JQoDYmljGB4gAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUgNiaWMSPAoPZG9j", - "dW1lbnRfbnVtYmVyGB8gAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUg5kb2N1", - "bWVudE51bWJlchI4Cg1kb2N1bWVudF9kYXRlGCAgAygLMhMuc3NuLnR5cGUu", - "Q2FuZGlkYXRlUgxkb2N1bWVudERhdGUSNgoMb3JkZXJfbnVtYmVyGCEgAygL", - "MhMuc3NuLnR5cGUuQ2FuZGlkYXRlUgtvcmRlck51bWJlchI4Cg1zdXBwbGll", - "cl9uYW1lGCIgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUgxzdXBwbGllck5h", - "bWUSQwoTc3VwcGxpZXJfdmF0X251bWJlchgjIAMoCzITLnNzbi50eXBlLkNh", - "bmRpZGF0ZVIRc3VwcGxpZXJWYXROdW1iZXISVQocc3VwcGxpZXJfb3JnYW5p", - "c2F0aW9uX251bWJlchgkIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIac3Vw", - "cGxpZXJPcmdhbmlzYXRpb25OdW1iZXISPgoQc3VwcGxpZXJfYWRkcmVzcxgl", - "IAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIPc3VwcGxpZXJBZGRyZXNzEjwK", - "D2N1c3RvbWVyX251bWJlchgmIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIO", - "Y3VzdG9tZXJOdW1iZXISRwoVcmVjZWl2ZXJfb3JkZXJfbnVtYmVyGCcgAygL", - "MhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhNyZWNlaXZlck9yZGVyTnVtYmVyEj4K", - "EHJlY2VpdmVyX2FkZHJlc3MYKSADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVS", - "D3JlY2VpdmVyQWRkcmVzcxJHChVyZWNlaXZlcl9jb3VudHJ5X2NvZGUYKiAD", - "KAsyEy5zc24udHlwZS5DYW5kaWRhdGVSE3JlY2VpdmVyQ291bnRyeUNvZGUS", - "OAoNcmVjZWl2ZXJfbmFtZRgrIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIM", - "cmVjZWl2ZXJOYW1lEkMKE3JlY2VpdmVyX3ZhdF9udW1iZXIYLCADKAsyEy5z", - "c24udHlwZS5DYW5kaWRhdGVSEXJlY2VpdmVyVmF0TnVtYmVyEkYKDnB1cmNo", - "YXNlX2xpbmVzGC0gAygLMh8uc3NuLnR5cGUuUHVyY2hhc2VMaW5lQ2FuZGlk", - "YXRlUg1wdXJjaGFzZUxpbmVzEjMKB2Fuc3dlcnMYLiADKAsyGS5zc24udHlw", - "ZS5BbnN3ZXJDYW5kaWRhdGVSB2Fuc3dlcnMSMQoKcGFnZV90ZXh0cxgvIAMo", - "CzISLnNzbi50eXBlLlBhZ2VUZXh0UglwYWdlVGV4dHMiXgoIRG9jdW1lbnQS", - "GAoHY29udGVudBgBIAEoDFIHY29udGVudBI4CgZzb3VyY2UYAiABKAsyIC5z", - "c24uYW5ub3RhdG9yLnYxLkRvY3VtZW50U291cmNlUgZzb3VyY2UiKwoORG9j", - "dW1lbnRTb3VyY2USGQoIaHR0cF91cmkYASABKAlSB2h0dHBVcmkibwoXRG9j", - "dW1lbnRRdWVzdGlvblJlcXVlc3QSNgoIZG9jdW1lbnQYASABKAsyGi5zc24u", - "YW5ub3RhdG9yLnYxLkRvY3VtZW50Ughkb2N1bWVudBIcCglxdWVzdGlvbnMY", - "AiADKAlSCXF1ZXN0aW9ucyJVChhEb2N1bWVudFF1ZXN0aW9uUmVzcG9uc2US", - "MwoHYW5zd2VycxgCIAMoCzIZLnNzbi50eXBlLkFuc3dlckNhbmRpZGF0ZVIH", - "YW5zd2Vyc0oECAEQAjK9AgoRRG9jdW1lbnRBbm5vdGF0b3ISjQEKEEFubm90", - "YXRlRG9jdW1lbnQSKi5zc24uYW5ub3RhdG9yLnYxLkRvY3VtZW50QW5ub3Rh", - "dG9yUmVxdWVzdBorLnNzbi5hbm5vdGF0b3IudjEuRG9jdW1lbnRBbm5vdGF0", - "b3JSZXNwb25zZSIggtPkkwIaOgEqIhUvdjEvZG9jdW1lbnQ6YW5ub3RhdGUS", - "lwEKFkFuc3dlckRvY3VtZW50UXVlc3Rpb24SKS5zc24uYW5ub3RhdG9yLnYx", - "LkRvY3VtZW50UXVlc3Rpb25SZXF1ZXN0Giouc3NuLmFubm90YXRvci52MS5E", - "b2N1bWVudFF1ZXN0aW9uUmVzcG9uc2UiJoLT5JMCIDoBKiIbL3YxL2RvY3Vt", - "ZW50OmFuc3dlcnF1ZXN0aW9uQogCChlhaS52aXNtYS5zc24uYW5ub3RhdG9y", - "LnYxQg5Bbm5vdGF0b3JQcm90b1ABWj5naXRodWIuY29tL2UtY29ub21pYy92", - "bWxhcGlzL2dlbi9nby9zc24vYW5ub3RhdG9yL3YxO2Fubm90YXRvcqICA1NB", - "WKoCEFNzbi5Bbm5vdGF0b3IuVjHKAhBTc25cQW5ub3RhdG9yXFYx4gIcU3Nu", - "XEFubm90YXRvclxWMVxHUEJNZXRhZGF0YeoCElNzbjo6QW5ub3RhdG9yOjpW", - "MZJBOBIPCglTbWFydFNjYW4yAnYxKgECMhBhcHBsaWNhdGlvbi9qc29uOhBh", - "cHBsaWNhdGlvbi9qc29uYgZwcm90bzM=")); + "RVhUUxAtEhQKEFZBVF9ESVNUUklCVVRJT04QLiL7AQoYRG9jdW1lbnRBbm5v", + "dGF0b3JSZXF1ZXN0EjYKCGRvY3VtZW50GAEgASgLMhouc3NuLmFubm90YXRv", + "ci52MS5Eb2N1bWVudFIIZG9jdW1lbnQSNQoIZmVhdHVyZXMYAiADKAsyGS5z", + "c24uYW5ub3RhdG9yLnYxLkZlYXR1cmVSCGZlYXR1cmVzEhIKBHRhZ3MYAyAD", + "KAlSBHRhZ3MSIgoEdGllchgEIAEoDjIOLnNzbi50eXBlLlRpZXJSBHRpZXIS", + "GgoIc2VnbWVudHMYBSADKAlSCHNlZ21lbnRzEhwKCXF1ZXN0aW9ucxgGIAMo", + "CVIJcXVlc3Rpb25zIvgXChlEb2N1bWVudEFubm90YXRvclJlc3BvbnNlEjIK", + "Cm9yZGVyX2RhdGUYASADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSCW9yZGVy", + "RGF0ZRI9ChBwYXltZW50X2R1ZV9kYXRlGAIgAygLMhMuc3NuLnR5cGUuQ2Fu", + "ZGlkYXRlUg5wYXltZW50RHVlRGF0ZRIvCghjdXJyZW5jeRgDIAMoCzITLnNz", + "bi50eXBlLkNhbmRpZGF0ZVIIY3VycmVuY3kSMAoJdG90YWxfdmF0GAQgAygL", + "MhMuc3NuLnR5cGUuQ2FuZGlkYXRlUgh0b3RhbFZhdBI5Cg50b3RhbF9pbmNs", + "X3ZhdBgFIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIMdG90YWxJbmNsVmF0", + "EjkKDnRvdGFsX2V4Y2xfdmF0GAYgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRl", + "Ugx0b3RhbEV4Y2xWYXQSRwoVc3VwcGxpZXJfY29ycG9yYXRlX2lkGAcgAygL", + "MhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhNzdXBwbGllckNvcnBvcmF0ZUlkEkcK", + "FXN1cHBsaWVyX2NvdW50cnlfY29kZRgIIAMoCzITLnNzbi50eXBlLkNhbmRp", + "ZGF0ZVITc3VwcGxpZXJDb3VudHJ5Q29kZRI4Cg1kb2N1bWVudF90eXBlGAkg", + "AygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUgxkb2N1bWVudFR5cGUSOgoOcGF5", + "bWVudF9tZXRob2QYCiADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSDXBheW1l", + "bnRNZXRob2QSRgoVY3JlZGl0X2NhcmRfbGFzdF9mb3VyGAsgAygLMhMuc3Nu", + "LnR5cGUuQ2FuZGlkYXRlUhJjcmVkaXRDYXJkTGFzdEZvdXISOgoOaW52b2lj", + "ZV9udW1iZXIYDCADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSDWludm9pY2VO", + "dW1iZXISQQoPdGV4dF9hbm5vdGF0aW9uGA0gASgLMhguc3NuLnR5cGUuVGV4", + "dEFubm90YXRpb25SDnRleHRBbm5vdGF0aW9uEjwKEG9jcl9saW5lX2RrX3R5", + "cGUYDiADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSDW9jckxpbmVEa1R5cGUS", + "RwoWb2NyX2xpbmVfZGtfcGF5bWVudF9pZBgPIAMoCzITLnNzbi50eXBlLkNh", + "bmRpZGF0ZVISb2NyTGluZURrUGF5bWVudElkEkkKF29jcl9saW5lX2RrX2Ny", + "ZWRpdG9yX2lkGBAgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhNvY3JMaW5l", + "RGtDcmVkaXRvcklkEkcKFm9jcl9saW5lX3NlX3BheW1lbnRfaWQYESADKAsy", + "Ey5zc24udHlwZS5DYW5kaWRhdGVSEm9jckxpbmVTZVBheW1lbnRJZBJaCiBv", + "Y3JfbGluZV9zZV9iYW5rZ2lyb19jcmVkaXRvcl9pZBgSIAMoCzITLnNzbi50", + "eXBlLkNhbmRpZGF0ZVIbb2NyTGluZVNlQmFua2dpcm9DcmVkaXRvcklkEloK", + "IG9jcl9saW5lX3NlX3BsdXNnaXJvX2NyZWRpdG9yX2lkGBMgAygLMhMuc3Nu", + "LnR5cGUuQ2FuZGlkYXRlUhtvY3JMaW5lU2VQbHVzZ2lyb0NyZWRpdG9ySWQS", + "RwoWb2NyX2xpbmVfbm9fcGF5bWVudF9pZBgUIAMoCzITLnNzbi50eXBlLkNh", + "bmRpZGF0ZVISb2NyTGluZU5vUGF5bWVudElkEkcKFm9jcl9saW5lX2ZpX3Bh", + "eW1lbnRfaWQYFSADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSEm9jckxpbmVG", + "aVBheW1lbnRJZBJHChZvY3JfbGluZV9ubF9wYXltZW50X2lkGBYgAygLMhMu", + "c3NuLnR5cGUuQ2FuZGlkYXRlUhJvY3JMaW5lTmxQYXltZW50SWQSRwoWb2Ny", + "X2xpbmVfYmVfcGF5bWVudF9pZBgoIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0", + "ZVISb2NyTGluZUJlUGF5bWVudElkEhIKBHRleHQYFyABKAlSBHRleHQSHwoL", + "ZmVlZGJhY2tfaWQYGCABKAlSCmZlZWRiYWNrSWQSJwoEaWJhbhgZIAMoCzIT", + "LnNzbi50eXBlLkNhbmRpZGF0ZVIEaWJhbhItCgVsaW5lcxgaIAMoCzIXLnNz", + "bi50eXBlLkxpbmVDYW5kaWRhdGVSBWxpbmVzEhgKB3ByZXZpZXcYGyABKAlS", + "B3ByZXZpZXcSQwoTYmFua19hY2NvdW50X251bWJlchgcIAMoCzITLnNzbi50", + "eXBlLkNhbmRpZGF0ZVIRYmFua0FjY291bnROdW1iZXISTQoYYmFua19yZWdp", + "c3RyYXRpb25fbnVtYmVyGB0gAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhZi", + "YW5rUmVnaXN0cmF0aW9uTnVtYmVyEiUKA2JpYxgeIAMoCzITLnNzbi50eXBl", + "LkNhbmRpZGF0ZVIDYmljEjwKD2RvY3VtZW50X251bWJlchgfIAMoCzITLnNz", + "bi50eXBlLkNhbmRpZGF0ZVIOZG9jdW1lbnROdW1iZXISOAoNZG9jdW1lbnRf", + "ZGF0ZRggIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIMZG9jdW1lbnREYXRl", + "EjYKDG9yZGVyX251bWJlchghIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIL", + "b3JkZXJOdW1iZXISOAoNc3VwcGxpZXJfbmFtZRgiIAMoCzITLnNzbi50eXBl", + "LkNhbmRpZGF0ZVIMc3VwcGxpZXJOYW1lEkMKE3N1cHBsaWVyX3ZhdF9udW1i", + "ZXIYIyADKAsyEy5zc24udHlwZS5DYW5kaWRhdGVSEXN1cHBsaWVyVmF0TnVt", + "YmVyElUKHHN1cHBsaWVyX29yZ2FuaXNhdGlvbl9udW1iZXIYJCADKAsyEy5z", + "c24udHlwZS5DYW5kaWRhdGVSGnN1cHBsaWVyT3JnYW5pc2F0aW9uTnVtYmVy", + "Ej4KEHN1cHBsaWVyX2FkZHJlc3MYJSADKAsyEy5zc24udHlwZS5DYW5kaWRh", + "dGVSD3N1cHBsaWVyQWRkcmVzcxI8Cg9jdXN0b21lcl9udW1iZXIYJiADKAsy", + "Ey5zc24udHlwZS5DYW5kaWRhdGVSDmN1c3RvbWVyTnVtYmVyEkcKFXJlY2Vp", + "dmVyX29yZGVyX251bWJlchgnIAMoCzITLnNzbi50eXBlLkNhbmRpZGF0ZVIT", + "cmVjZWl2ZXJPcmRlck51bWJlchI+ChByZWNlaXZlcl9hZGRyZXNzGCkgAygL", + "MhMuc3NuLnR5cGUuQ2FuZGlkYXRlUg9yZWNlaXZlckFkZHJlc3MSRwoVcmVj", + "ZWl2ZXJfY291bnRyeV9jb2RlGCogAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRl", + "UhNyZWNlaXZlckNvdW50cnlDb2RlEjgKDXJlY2VpdmVyX25hbWUYKyADKAsy", + "Ey5zc24udHlwZS5DYW5kaWRhdGVSDHJlY2VpdmVyTmFtZRJDChNyZWNlaXZl", + "cl92YXRfbnVtYmVyGCwgAygLMhMuc3NuLnR5cGUuQ2FuZGlkYXRlUhFyZWNl", + "aXZlclZhdE51bWJlchJGCg5wdXJjaGFzZV9saW5lcxgtIAMoCzIfLnNzbi50", + "eXBlLlB1cmNoYXNlTGluZUNhbmRpZGF0ZVINcHVyY2hhc2VMaW5lcxIzCgdh", + "bnN3ZXJzGC4gAygLMhkuc3NuLnR5cGUuQW5zd2VyQ2FuZGlkYXRlUgdhbnN3", + "ZXJzEjEKCnBhZ2VfdGV4dHMYLyADKAsyEi5zc24udHlwZS5QYWdlVGV4dFIJ", + "cGFnZVRleHRzEmIKG3ZhdF9kaXN0cmlidXRpb25fY2FuZGlkYXRlcxgwIAMo", + "CzIiLnNzbi50eXBlLlZhdERpc3RyaWJ1dGlvbkNhbmRpZGF0ZVIZdmF0RGlz", + "dHJpYnV0aW9uQ2FuZGlkYXRlcyJeCghEb2N1bWVudBIYCgdjb250ZW50GAEg", + "ASgMUgdjb250ZW50EjgKBnNvdXJjZRgCIAEoCzIgLnNzbi5hbm5vdGF0b3Iu", + "djEuRG9jdW1lbnRTb3VyY2VSBnNvdXJjZSIrCg5Eb2N1bWVudFNvdXJjZRIZ", + "CghodHRwX3VyaRgBIAEoCVIHaHR0cFVyaSJvChdEb2N1bWVudFF1ZXN0aW9u", + "UmVxdWVzdBI2Cghkb2N1bWVudBgBIAEoCzIaLnNzbi5hbm5vdGF0b3IudjEu", + "RG9jdW1lbnRSCGRvY3VtZW50EhwKCXF1ZXN0aW9ucxgCIAMoCVIJcXVlc3Rp", + "b25zIlUKGERvY3VtZW50UXVlc3Rpb25SZXNwb25zZRIzCgdhbnN3ZXJzGAIg", + "AygLMhkuc3NuLnR5cGUuQW5zd2VyQ2FuZGlkYXRlUgdhbnN3ZXJzSgQIARAC", + "Mr0CChFEb2N1bWVudEFubm90YXRvchKNAQoQQW5ub3RhdGVEb2N1bWVudBIq", + "LnNzbi5hbm5vdGF0b3IudjEuRG9jdW1lbnRBbm5vdGF0b3JSZXF1ZXN0Gisu", + "c3NuLmFubm90YXRvci52MS5Eb2N1bWVudEFubm90YXRvclJlc3BvbnNlIiCC", + "0+STAho6ASoiFS92MS9kb2N1bWVudDphbm5vdGF0ZRKXAQoWQW5zd2VyRG9j", + "dW1lbnRRdWVzdGlvbhIpLnNzbi5hbm5vdGF0b3IudjEuRG9jdW1lbnRRdWVz", + "dGlvblJlcXVlc3QaKi5zc24uYW5ub3RhdG9yLnYxLkRvY3VtZW50UXVlc3Rp", + "b25SZXNwb25zZSImgtPkkwIgOgEqIhsvdjEvZG9jdW1lbnQ6YW5zd2VycXVl", + "c3Rpb25CiAIKGWFpLnZpc21hLnNzbi5hbm5vdGF0b3IudjFCDkFubm90YXRv", + "clByb3RvUAFaPmdpdGh1Yi5jb20vZS1jb25vbWljL3ZtbGFwaXMvZ2VuL2dv", + "L3Nzbi9hbm5vdGF0b3IvdjE7YW5ub3RhdG9yogIDU0FYqgIQU3NuLkFubm90", + "YXRvci5WMcoCEFNzblxBbm5vdGF0b3JcVjHiAhxTc25cQW5ub3RhdG9yXFYx", + "XEdQQk1ldGFkYXRh6gISU3NuOjpBbm5vdGF0b3I6OlYxkkE4Eg8KCVNtYXJ0", + "U2NhbjICdjEqAQIyEGFwcGxpY2F0aW9uL2pzb246EGFwcGxpY2F0aW9uL2pz", + "b25iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, global::Ssn.Type.CandidateReflection.Descriptor, global::Ssn.Type.TextAnnotationReflection.Descriptor, global::Ssn.Type.TierReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Annotator.V1.Feature), global::Ssn.Annotator.V1.Feature.Parser, new[]{ "Type", "MaxResults", "MinConfidence" }, null, new[]{ typeof(global::Ssn.Annotator.V1.Feature.Types.Type) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Annotator.V1.DocumentAnnotatorRequest), global::Ssn.Annotator.V1.DocumentAnnotatorRequest.Parser, new[]{ "Document", "Features", "Tags", "Tier", "Segments", "Questions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Annotator.V1.DocumentAnnotatorResponse), global::Ssn.Annotator.V1.DocumentAnnotatorResponse.Parser, new[]{ "OrderDate", "PaymentDueDate", "Currency", "TotalVat", "TotalInclVat", "TotalExclVat", "SupplierCorporateId", "SupplierCountryCode", "DocumentType", "PaymentMethod", "CreditCardLastFour", "InvoiceNumber", "TextAnnotation", "OcrLineDkType", "OcrLineDkPaymentId", "OcrLineDkCreditorId", "OcrLineSePaymentId", "OcrLineSeBankgiroCreditorId", "OcrLineSePlusgiroCreditorId", "OcrLineNoPaymentId", "OcrLineFiPaymentId", "OcrLineNlPaymentId", "OcrLineBePaymentId", "Text", "FeedbackId", "Iban", "Lines", "Preview", "BankAccountNumber", "BankRegistrationNumber", "Bic", "DocumentNumber", "DocumentDate", "OrderNumber", "SupplierName", "SupplierVatNumber", "SupplierOrganisationNumber", "SupplierAddress", "CustomerNumber", "ReceiverOrderNumber", "ReceiverAddress", "ReceiverCountryCode", "ReceiverName", "ReceiverVatNumber", "PurchaseLines", "Answers", "PageTexts" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Annotator.V1.DocumentAnnotatorResponse), global::Ssn.Annotator.V1.DocumentAnnotatorResponse.Parser, new[]{ "OrderDate", "PaymentDueDate", "Currency", "TotalVat", "TotalInclVat", "TotalExclVat", "SupplierCorporateId", "SupplierCountryCode", "DocumentType", "PaymentMethod", "CreditCardLastFour", "InvoiceNumber", "TextAnnotation", "OcrLineDkType", "OcrLineDkPaymentId", "OcrLineDkCreditorId", "OcrLineSePaymentId", "OcrLineSeBankgiroCreditorId", "OcrLineSePlusgiroCreditorId", "OcrLineNoPaymentId", "OcrLineFiPaymentId", "OcrLineNlPaymentId", "OcrLineBePaymentId", "Text", "FeedbackId", "Iban", "Lines", "Preview", "BankAccountNumber", "BankRegistrationNumber", "Bic", "DocumentNumber", "DocumentDate", "OrderNumber", "SupplierName", "SupplierVatNumber", "SupplierOrganisationNumber", "SupplierAddress", "CustomerNumber", "ReceiverOrderNumber", "ReceiverAddress", "ReceiverCountryCode", "ReceiverName", "ReceiverVatNumber", "PurchaseLines", "Answers", "PageTexts", "VatDistributionCandidates" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Annotator.V1.Document), global::Ssn.Annotator.V1.Document.Parser, new[]{ "Content", "Source" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Annotator.V1.DocumentSource), global::Ssn.Annotator.V1.DocumentSource.Parser, new[]{ "HttpUri" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Annotator.V1.DocumentQuestionRequest), global::Ssn.Annotator.V1.DocumentQuestionRequest.Parser, new[]{ "Document", "Questions" }, null, null, null, null), @@ -626,6 +629,10 @@ public enum Type { /// Page texts /// [pbr::OriginalName("PAGE_TEXTS")] PageTexts = 45, + /// + /// VAT distribution + /// + [pbr::OriginalName("VAT_DISTRIBUTION")] VatDistribution = 46, } } @@ -1053,6 +1060,7 @@ public DocumentAnnotatorResponse(DocumentAnnotatorResponse other) : this() { purchaseLines_ = other.purchaseLines_.Clone(); answers_ = other.answers_.Clone(); pageTexts_ = other.pageTexts_.Clone(); + vatDistributionCandidates_ = other.vatDistributionCandidates_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1766,6 +1774,20 @@ public string Preview { get { return pageTexts_; } } + /// Field number for the "vat_distribution_candidates" field. + public const int VatDistributionCandidatesFieldNumber = 48; + private static readonly pb::FieldCodec _repeated_vatDistributionCandidates_codec + = pb::FieldCodec.ForMessage(386, global::Ssn.Type.VatDistributionCandidate.Parser); + private readonly pbc::RepeatedField vatDistributionCandidates_ = new pbc::RepeatedField(); + /// + /// Vat levels for the document, each vat level has vat level percentage and vat level amount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField VatDistributionCandidates { + get { return vatDistributionCandidates_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1828,6 +1850,7 @@ public bool Equals(DocumentAnnotatorResponse other) { if(!purchaseLines_.Equals(other.purchaseLines_)) return false; if(!answers_.Equals(other.answers_)) return false; if(!pageTexts_.Equals(other.pageTexts_)) return false; + if(!vatDistributionCandidates_.Equals(other.vatDistributionCandidates_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1882,6 +1905,7 @@ public override int GetHashCode() { hash ^= purchaseLines_.GetHashCode(); hash ^= answers_.GetHashCode(); hash ^= pageTexts_.GetHashCode(); + hash ^= vatDistributionCandidates_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1959,6 +1983,7 @@ public void WriteTo(pb::CodedOutputStream output) { purchaseLines_.WriteTo(output, _repeated_purchaseLines_codec); answers_.WriteTo(output, _repeated_answers_codec); pageTexts_.WriteTo(output, _repeated_pageTexts_codec); + vatDistributionCandidates_.WriteTo(output, _repeated_vatDistributionCandidates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2028,6 +2053,7 @@ public void WriteTo(pb::CodedOutputStream output) { purchaseLines_.WriteTo(ref output, _repeated_purchaseLines_codec); answers_.WriteTo(ref output, _repeated_answers_codec); pageTexts_.WriteTo(ref output, _repeated_pageTexts_codec); + vatDistributionCandidates_.WriteTo(ref output, _repeated_vatDistributionCandidates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2093,6 +2119,7 @@ public int CalculateSize() { size += purchaseLines_.CalculateSize(_repeated_purchaseLines_codec); size += answers_.CalculateSize(_repeated_answers_codec); size += pageTexts_.CalculateSize(_repeated_pageTexts_codec); + size += vatDistributionCandidates_.CalculateSize(_repeated_vatDistributionCandidates_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2163,6 +2190,7 @@ public void MergeFrom(DocumentAnnotatorResponse other) { purchaseLines_.Add(other.purchaseLines_); answers_.Add(other.answers_); pageTexts_.Add(other.pageTexts_); + vatDistributionCandidates_.Add(other.vatDistributionCandidates_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2369,6 +2397,10 @@ public void MergeFrom(pb::CodedInputStream input) { pageTexts_.AddEntriesFrom(input, _repeated_pageTexts_codec); break; } + case 386: { + vatDistributionCandidates_.AddEntriesFrom(input, _repeated_vatDistributionCandidates_codec); + break; + } } } #endif @@ -2575,6 +2607,10 @@ public void MergeFrom(pb::CodedInputStream input) { pageTexts_.AddEntriesFrom(ref input, _repeated_pageTexts_codec); break; } + case 386: { + vatDistributionCandidates_.AddEntriesFrom(ref input, _repeated_vatDistributionCandidates_codec); + break; + } } } } diff --git a/gen/csharp/Ssn/Mlservice/V2/Mlservice.cs b/gen/csharp/Ssn/Mlservice/V2/Mlservice.cs index e718309c..bcf8badf 100644 --- a/gen/csharp/Ssn/Mlservice/V2/Mlservice.cs +++ b/gen/csharp/Ssn/Mlservice/V2/Mlservice.cs @@ -148,18 +148,24 @@ static MlserviceReflection() { "ZS5UZXh0QW5ub3RhdGlvblIOdGV4dEFubm90YXRpb24SFAoFaW1hZ2UYAiAB", "KAxSBWltYWdlEhwKCXF1ZXN0aW9ucxgDIAMoCVIJcXVlc3Rpb25zIkQKDURv", "Y1FBUmVzcG9uc2USMwoHYW5zd2VycxgBIAMoCzIZLnNzbi50eXBlLkFuc3dl", - "ckNhbmRpZGF0ZVIHYW5zd2VyczKYAgoJTWxTZXJ2aWNlElcKCkZlYXR1cmVH", - "ZW4SIy5zc24ubWxzZXJ2aWNlLnYyLkZlYXR1cmVHZW5SZXF1ZXN0GiQuc3Nu", - "Lm1sc2VydmljZS52Mi5GZWF0dXJlR2VuUmVzcG9uc2USTgoHUHJlZGljdBIg", - "LnNzbi5tbHNlcnZpY2UudjIuUHJlZGljdFJlcXVlc3QaIS5zc24ubWxzZXJ2", - "aWNlLnYyLlByZWRpY3RSZXNwb25zZRJiChFGZWF0dXJlR2VuUHJlZGljdBIq", - "LnNzbi5tbHNlcnZpY2UudjIuRmVhdHVyZUdlblByZWRpY3RSZXF1ZXN0GiEu", - "c3NuLm1sc2VydmljZS52Mi5QcmVkaWN0UmVzcG9uc2VCzQEKGWFpLnZpc21h", - "LnNzbi5tbHNlcnZpY2UudjJCDk1sc2VydmljZVByb3RvUAFaPmdpdGh1Yi5j", - "b20vZS1jb25vbWljL3ZtbGFwaXMvZ2VuL2dvL3Nzbi9tbHNlcnZpY2UvdjI7", - "bWxzZXJ2aWNlogIDU01YqgIQU3NuLk1sc2VydmljZS5WMsoCEFNzblxNbHNl", - "cnZpY2VcVjLiAhxTc25cTWxzZXJ2aWNlXFYyXEdQQk1ldGFkYXRh6gISU3Nu", - "OjpNbHNlcnZpY2U6OlYyYgZwcm90bzM=")); + "ckNhbmRpZGF0ZVIHYW5zd2VycyKUAQoWVmF0RGlzdHJpYnV0aW9uUmVxdWVz", + "dBJBCg90ZXh0X2Fubm90YXRpb24YASABKAsyGC5zc24udHlwZS5UZXh0QW5u", + "b3RhdGlvblIOdGV4dEFubm90YXRpb24SFAoFaW1hZ2UYAiABKAxSBWltYWdl", + "EiEKDGNvdW50cnlfY29kZRgDIAEoCVILY291bnRyeUNvZGUifQoXVmF0RGlz", + "dHJpYnV0aW9uUmVzcG9uc2USYgobdmF0X2Rpc3RyaWJ1dGlvbl9jYW5kaWRh", + "dGVzGAEgAygLMiIuc3NuLnR5cGUuVmF0RGlzdHJpYnV0aW9uQ2FuZGlkYXRl", + "Uhl2YXREaXN0cmlidXRpb25DYW5kaWRhdGVzMpgCCglNbFNlcnZpY2USVwoK", + "RmVhdHVyZUdlbhIjLnNzbi5tbHNlcnZpY2UudjIuRmVhdHVyZUdlblJlcXVl", + "c3QaJC5zc24ubWxzZXJ2aWNlLnYyLkZlYXR1cmVHZW5SZXNwb25zZRJOCgdQ", + "cmVkaWN0EiAuc3NuLm1sc2VydmljZS52Mi5QcmVkaWN0UmVxdWVzdBohLnNz", + "bi5tbHNlcnZpY2UudjIuUHJlZGljdFJlc3BvbnNlEmIKEUZlYXR1cmVHZW5Q", + "cmVkaWN0Eiouc3NuLm1sc2VydmljZS52Mi5GZWF0dXJlR2VuUHJlZGljdFJl", + "cXVlc3QaIS5zc24ubWxzZXJ2aWNlLnYyLlByZWRpY3RSZXNwb25zZULNAQoZ", + "YWkudmlzbWEuc3NuLm1sc2VydmljZS52MkIOTWxzZXJ2aWNlUHJvdG9QAVo+", + "Z2l0aHViLmNvbS9lLWNvbm9taWMvdm1sYXBpcy9nZW4vZ28vc3NuL21sc2Vy", + "dmljZS92MjttbHNlcnZpY2WiAgNTTViqAhBTc24uTWxzZXJ2aWNlLlYyygIQ", + "U3NuXE1sc2VydmljZVxWMuICHFNzblxNbHNlcnZpY2VcVjJcR1BCTWV0YWRh", + "dGHqAhJTc246Ok1sc2VydmljZTo6VjJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Type.DateReflection.Descriptor, global::Ssn.Type.CandidateReflection.Descriptor, global::Ssn.Type.TextAnnotationReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -171,7 +177,9 @@ static MlserviceReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Mlservice.V2.PurchaseLinesRequest), global::Ssn.Mlservice.V2.PurchaseLinesRequest.Parser, new[]{ "TextAnnotation", "Image" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Mlservice.V2.PurchaseLinesResponse), global::Ssn.Mlservice.V2.PurchaseLinesResponse.Parser, new[]{ "PurchaseLines" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Mlservice.V2.DocQARequest), global::Ssn.Mlservice.V2.DocQARequest.Parser, new[]{ "TextAnnotation", "Image", "Questions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Mlservice.V2.DocQAResponse), global::Ssn.Mlservice.V2.DocQAResponse.Parser, new[]{ "Answers" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Mlservice.V2.DocQAResponse), global::Ssn.Mlservice.V2.DocQAResponse.Parser, new[]{ "Answers" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Mlservice.V2.VatDistributionRequest), global::Ssn.Mlservice.V2.VatDistributionRequest.Parser, new[]{ "TextAnnotation", "Image", "CountryCode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Mlservice.V2.VatDistributionResponse), global::Ssn.Mlservice.V2.VatDistributionResponse.Parser, new[]{ "VatDistributionCandidates" }, null, null, null, null) })); } #endregion @@ -4790,6 +4798,456 @@ public void MergeFrom(pb::CodedInputStream input) { } + public sealed partial class VatDistributionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VatDistributionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Mlservice.V2.MlserviceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionRequest(VatDistributionRequest other) : this() { + textAnnotation_ = other.textAnnotation_ != null ? other.textAnnotation_.Clone() : null; + image_ = other.image_; + countryCode_ = other.countryCode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionRequest Clone() { + return new VatDistributionRequest(this); + } + + /// Field number for the "text_annotation" field. + public const int TextAnnotationFieldNumber = 1; + private global::Ssn.Type.TextAnnotation textAnnotation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Ssn.Type.TextAnnotation TextAnnotation { + get { return textAnnotation_; } + set { + textAnnotation_ = value; + } + } + + /// Field number for the "image" field. + public const int ImageFieldNumber = 2; + private pb::ByteString image_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Image { + get { return image_; } + set { + image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "country_code" field. + public const int CountryCodeFieldNumber = 3; + private string countryCode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CountryCode { + get { return countryCode_; } + set { + countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VatDistributionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VatDistributionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TextAnnotation, other.TextAnnotation)) return false; + if (Image != other.Image) return false; + if (CountryCode != other.CountryCode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (textAnnotation_ != null) hash ^= TextAnnotation.GetHashCode(); + if (Image.Length != 0) hash ^= Image.GetHashCode(); + if (CountryCode.Length != 0) hash ^= CountryCode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (textAnnotation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TextAnnotation); + } + if (Image.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Image); + } + if (CountryCode.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CountryCode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (textAnnotation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(TextAnnotation); + } + if (Image.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Image); + } + if (CountryCode.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CountryCode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (textAnnotation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextAnnotation); + } + if (Image.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Image); + } + if (CountryCode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VatDistributionRequest other) { + if (other == null) { + return; + } + if (other.textAnnotation_ != null) { + if (textAnnotation_ == null) { + TextAnnotation = new global::Ssn.Type.TextAnnotation(); + } + TextAnnotation.MergeFrom(other.TextAnnotation); + } + if (other.Image.Length != 0) { + Image = other.Image; + } + if (other.CountryCode.Length != 0) { + CountryCode = other.CountryCode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (textAnnotation_ == null) { + TextAnnotation = new global::Ssn.Type.TextAnnotation(); + } + input.ReadMessage(TextAnnotation); + break; + } + case 18: { + Image = input.ReadBytes(); + break; + } + case 26: { + CountryCode = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (textAnnotation_ == null) { + TextAnnotation = new global::Ssn.Type.TextAnnotation(); + } + input.ReadMessage(TextAnnotation); + break; + } + case 18: { + Image = input.ReadBytes(); + break; + } + case 26: { + CountryCode = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class VatDistributionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VatDistributionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Mlservice.V2.MlserviceReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionResponse(VatDistributionResponse other) : this() { + vatDistributionCandidates_ = other.vatDistributionCandidates_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionResponse Clone() { + return new VatDistributionResponse(this); + } + + /// Field number for the "vat_distribution_candidates" field. + public const int VatDistributionCandidatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_vatDistributionCandidates_codec + = pb::FieldCodec.ForMessage(10, global::Ssn.Type.VatDistributionCandidate.Parser); + private readonly pbc::RepeatedField vatDistributionCandidates_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField VatDistributionCandidates { + get { return vatDistributionCandidates_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VatDistributionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VatDistributionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!vatDistributionCandidates_.Equals(other.vatDistributionCandidates_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= vatDistributionCandidates_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + vatDistributionCandidates_.WriteTo(output, _repeated_vatDistributionCandidates_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + vatDistributionCandidates_.WriteTo(ref output, _repeated_vatDistributionCandidates_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += vatDistributionCandidates_.CalculateSize(_repeated_vatDistributionCandidates_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VatDistributionResponse other) { + if (other == null) { + return; + } + vatDistributionCandidates_.Add(other.vatDistributionCandidates_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + vatDistributionCandidates_.AddEntriesFrom(input, _repeated_vatDistributionCandidates_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + vatDistributionCandidates_.AddEntriesFrom(ref input, _repeated_vatDistributionCandidates_codec); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/gen/csharp/Ssn/Type/Candidate.cs b/gen/csharp/Ssn/Type/Candidate.cs index 7c40e518..a666ad8e 100644 --- a/gen/csharp/Ssn/Type/Candidate.cs +++ b/gen/csharp/Ssn/Type/Candidate.cs @@ -62,11 +62,14 @@ static CandidateReflection() { "ZW5jZVIKY29uZmlkZW5jZRI6Cg5tb2RlbF9tZXRhZGF0YRgHIAEoCzITLnNz", "bi50eXBlLk1vZGVsU3BlY1INbW9kZWxNZXRhZGF0YRIZCghwYWdlX3JlZhgI", "IAEoDVIHcGFnZVJlZiI5CghQYWdlVGV4dBIZCghwYWdlX3JlZhgBIAEoDVIH", - "cGFnZVJlZhISCgR0ZXh0GAIgASgJUgR0ZXh0QpoBChFhaS52aXNtYS5zc24u", - "dHlwZUIOQ2FuZGlkYXRlUHJvdG9QAVo0Z2l0aHViLmNvbS9lLWNvbm9taWMv", - "dm1sYXBpcy9nZW4vZ28vc3NuL3R5cGU7c3NudHlwZaICA1NUWKoCCFNzbi5U", - "eXBlygIIU3NuXFR5cGXiAhRTc25cVHlwZVxHUEJNZXRhZGF0YeoCCVNzbjo6", - "VHlwZWIGcHJvdG8z")); + "cGFnZVJlZhISCgR0ZXh0GAIgASgJUgR0ZXh0Io4BChhWYXREaXN0cmlidXRp", + "b25DYW5kaWRhdGUSHgoKcGVyY2VudGFnZRgBIAEoCVIKcGVyY2VudGFnZRIW", + "CgZhbW91bnQYAiABKAlSBmFtb3VudBI6Cg5tb2RlbF9tZXRhZGF0YRgDIAEo", + "CzITLnNzbi50eXBlLk1vZGVsU3BlY1INbW9kZWxNZXRhZGF0YUKaAQoRYWku", + "dmlzbWEuc3NuLnR5cGVCDkNhbmRpZGF0ZVByb3RvUAFaNGdpdGh1Yi5jb20v", + "ZS1jb25vbWljL3ZtbGFwaXMvZ2VuL2dvL3Nzbi90eXBlO3NzbnR5cGWiAgNT", + "VFiqAghTc24uVHlwZcoCCFNzblxUeXBl4gIUU3NuXFR5cGVcR1BCTWV0YWRh", + "dGHqAglTc246OlR5cGViBnByb3RvMw==")); 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[] { @@ -76,7 +79,8 @@ static CandidateReflection() { 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", "Total", "UnitPrice", "ModelMetadata" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.AnswerCandidate), global::Ssn.Type.AnswerCandidate.Parser, new[]{ "Question", "Answer", "Confidence", "ModelMetadata", "PageRef" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.PageText), global::Ssn.Type.PageText.Parser, new[]{ "PageRef", "Text" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.PageText), global::Ssn.Type.PageText.Parser, new[]{ "PageRef", "Text" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Ssn.Type.VatDistributionCandidate), global::Ssn.Type.VatDistributionCandidate.Parser, new[]{ "Percentage", "Amount", "ModelMetadata" }, null, null, null, null) })); } #endregion @@ -2794,6 +2798,287 @@ public void MergeFrom(pb::CodedInputStream input) { } + public sealed partial class VatDistributionCandidate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VatDistributionCandidate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Ssn.Type.CandidateReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionCandidate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionCandidate(VatDistributionCandidate other) : this() { + percentage_ = other.percentage_; + amount_ = other.amount_; + modelMetadata_ = other.modelMetadata_ != null ? other.modelMetadata_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VatDistributionCandidate Clone() { + return new VatDistributionCandidate(this); + } + + /// Field number for the "percentage" field. + public const int PercentageFieldNumber = 1; + private string percentage_ = ""; + /// + /// The vat distribution candidate percentage + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Percentage { + get { return percentage_; } + set { + percentage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private string amount_ = ""; + /// + /// The vat distribution candidate amount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Amount { + get { return amount_; } + set { + amount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "model_metadata" field. + public const int ModelMetadataFieldNumber = 3; + private global::Ssn.Type.ModelSpec modelMetadata_; + /// + /// Model metadata + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Ssn.Type.ModelSpec ModelMetadata { + get { return modelMetadata_; } + set { + modelMetadata_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VatDistributionCandidate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VatDistributionCandidate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Percentage != other.Percentage) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(ModelMetadata, other.ModelMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Percentage.Length != 0) hash ^= Percentage.GetHashCode(); + if (Amount.Length != 0) hash ^= Amount.GetHashCode(); + if (modelMetadata_ != null) hash ^= ModelMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Percentage.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Percentage); + } + if (Amount.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Amount); + } + if (modelMetadata_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ModelMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Percentage.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Percentage); + } + if (Amount.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Amount); + } + if (modelMetadata_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ModelMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Percentage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Percentage); + } + if (Amount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Amount); + } + if (modelMetadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModelMetadata); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VatDistributionCandidate other) { + if (other == null) { + return; + } + if (other.Percentage.Length != 0) { + Percentage = other.Percentage; + } + if (other.Amount.Length != 0) { + Amount = other.Amount; + } + if (other.modelMetadata_ != null) { + if (modelMetadata_ == null) { + ModelMetadata = new global::Ssn.Type.ModelSpec(); + } + ModelMetadata.MergeFrom(other.ModelMetadata); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Percentage = input.ReadString(); + break; + } + case 18: { + Amount = input.ReadString(); + break; + } + case 26: { + if (modelMetadata_ == null) { + ModelMetadata = new global::Ssn.Type.ModelSpec(); + } + input.ReadMessage(ModelMetadata); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Percentage = input.ReadString(); + break; + } + case 18: { + Amount = input.ReadString(); + break; + } + case 26: { + if (modelMetadata_ == null) { + ModelMetadata = new global::Ssn.Type.ModelSpec(); + } + input.ReadMessage(ModelMetadata); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/gen/descriptor.bin b/gen/descriptor.bin index dec3cd50214cdb8a2f69654ad21f729cbba89706..b544fdf55b0eaf77a98686ca14918c190e52a56a 100644 GIT binary patch delta 5224 zcmajjYit$A6$fyi@$t1i7yKC8*uKWs*Tyew-)rOW<~k_}X(16I0h0%BgPlMN7=aTh zRV5dd)Cg*b(Ij(;CISu!SUnK{>>Y>x2A64ukS@d#S*PL}*x;C#{{btv? z&W+EsZERoH-qzKjqEc?^*u17=V^`Z79YqwQ+RTNI9Z}{8NKWS7|9JACjIeD1Y!ON-5};W2E48 z73w22kPORIPAA2Elo69NBy+k*QQS|WC{iD5UE2|RtF0^6{#fy`H9_?;SGtsAWtvG% zv$+{T2)Lgz^MWu{ad$tBE0k00h0wZ(M1G{^|6Rx%gWw{Biy$w!2w5gG+rJ3mB6~>X z$*8@CP^?LmMRH>E&49)9lKqrbn=VAiHiZ2w0YuZ7NDuCKTza~96CB}kFRKCo4d3Ni{IrA2^E}ZxD;?{W!UdTyQ zJisc@tD3n;w^s6B_+N#xSpTA#iw74~@!R1wYPBrEK(Bm!pjVC#^p>KgSZZy!xgxP; z%f>|4+nYKP|7%4pEC%ym*V^DWO`M-9zgz1qic`W{6c3-^Su}nZR)WMzNFkM4m0^aG zIfYYHTDAE3VCxj_%zm*#hRh+6Q2Y*YB%)&I=6|dVDYIp|cMe7qC*`{Xn1*+#uvnHG z*sQSa`uB5qLVP=kkR5XzMACLj_htkkreHf|Wy?)A1&up(>9f2!zLP|{pJJwdCuMl+ zD@B;8-)WZDVw-|%_Uhj~%dd3zk|^<0%tZIn__`oON-xC|_O2imdY4kPe^(g%U2|8A zfkvk0KHL>H4-u9RLT^bT#JPPG_6k7=wa*mdrFNtBJrXfLm)M3uE`fTF!YXLBC+B(f zlI_!b6fN^9^a=N7&?q1w3?yOizHqKDnXdK|o*~`l<|H9dRX-I+d^Q1(T{UH>7uKkzi1JaBKM#PW}Kx zqjP^F8fFLmO2auHc%2q3ROlm0IVikmmFd(+lu<4_F)PB%$^eOYq%GFDxxHhvK0BB5 zbn{$Zl*D1LBAkT24N$n$){79t07Ywq5EmPu`UbhdifG)YznaUP$$d^RbF|M1W@+rB zXu=oFy4y#Sn&mPpV2%#z_49Z|@}LvU^X8xvOg9cvwAvTU)EuOVb#k>85FOH?=eRw2 z$O&eK4mrWh&>@P}_(H15p}Kncx)m@bNA$j2*;dYrtO#!hEi=2IC*IBAJ6j%N)9zkA(iIQuzs={a1^i_4loK)`oN_`Ygi~%LG9jFz#!2!?D@ets_09$S zy_VBXkPuEgK|(m~dLbd4rm55AZn8vJ@fn@*BKJLY#t~rZ?YPx>|FLbyb;pYeO46kpcaiy&Nff`V|_2@1kx zCnyM)jo{5?p5iOIa}n1juQ(wO!WAdvLAc_2kq6<5=|#OAhkV6X^|?hHPhNFGK7^}I z$cJ#%3HcDN8llk&1&XifWGheVzUG7i2-loY0O6Vw3LsoFLbesgDZWl(W(4mZ-g+E| z#}!*S`6YA zMJxQP7K6A&RW)*}M?@6g*0)~fpCxZQA_C$zh0Fb%2#DKM5j@@_AZ}A#gIsD0FHw9) zA9;nBH{WrEmmuX1W#;%o2~zG*UV)r!Q^qU4OJZ82TL1P{F4R+>;;gyBK##|`qj5Au zDR*6O#>2f!(Mi5L9`0S5Jk{c{}n&d+##2`F$LJYz~_b(BH@Q@Nsa=sPH6+hDLOL#%c zBPWzYc;tj~2#+XQ=hsjU;St3f{TeD1Zx#C6C0spws~DY(3J_bx=*vq5h^=Duuc`vX zR)HeCKf4Kvw+T#gT>oJy7wb(+@wCQ)U}7i0+UBeYu(pZOiJbszo4~}bupO#Y+@rr) z%ByDgIH3|kj}s~(^oZz8zeAM}dPK`pa=I0&6z>pXa-?pwnoPZG8RsQ&G$^SG;0^~? z0o)-*->j+t?hyC`dD?>2=8gXHGM$Tn(XDV4kO0p+@m;y?i;( zNbYt*4TRlJsDZFsjJ}c7K-ewtPuy&UTD;opKQ8CV$v!94Lg;fsErdSTi&_YMrWalf z6Y(0ZpI(6)`kgQlLcbFxLg;rjOoY&HYVZcO4zJL9a0Smy?r}mLggs8EgRsXflsX7| z%tA3+Zz1Zjzt!=TJgr4Lp&o*ELOlfSmPb7VZI;Jhg(VvB+B~>#C9kEH0cSM87!cv$ z9ijoofT)}9FOUWp17cQ-Jm5VE=BDobPDnu5FT&$}Apv2(C=H&a2?+ZIo~7%o(5U!;5HCcQ#;~c5t?ziN zWBr!c>z$ipUHJOZ-nr(@4fs6M5bJ1Lvo?m!wRc8rZQGW|B76zy_P^r9@Ok91md8I` z2+@cKEiM);{zlY!K!k%g@J7^mK*ZRTh zr5VRmvkjud`qR}sk~l2w!%T#|KZg^J3~gF8r@EIEu55 zi%f4%iV)s$kzZiFG!;4_Qoi&(vza&{GQ6E`n&G~{zpt$W5k?B3H*g4X?ia$}ZzF{I zh4A;=X~OKchlRi2P7`LojWEbHpO1!xzduE*Jz05MPlTX`h23up?3Y3#BIT4{pxLR6 z2z(GQ-^@bT6?`qkSagIDpxUoRc#N$!v?$ZmXJgxH`f^f;Ca+bbpdN%?Jt5n*lfiOF ch}4t8az}`IPKrdM?)xb>4gT^C{z>z{0exZSl>h($ delta 4428 zcmYM%Yiv}<6$kJ=vuD@#EXHR1Hum~~U)bKY4G!jUos?EBZPT=bgpd*-Bu$g3QbbGB z4{0kAXdobm7{`!NWeI2<;ty^^RYh1poR}aLRVhLgA!JcR2%@4A5=9gtiYWch?7co8 z_QSa|=XcM{+`V_^^JC`ykIkDO(`Rq1>BSQ#-lo4M?Z&ONM1R<>^GqTZ8zj42QR&3y zLDFTm=X$*R?Jo}zern>&L-B*ZxxZLN1BxU9aSBc0%QD7A)drRPzpz);i8HGV$j8 zB3-DNV;nPy7WLM|a360f(hcsCiW%NvSFPZAnH{8(=$CL830EmE6@_sZ&MwkF^(koF zWq-edH)nQ{$_x9DyGr>bQHYdXR9>N1`xIq(z%Ktbuh}v{YHrv^A!UGS+M^ID1C+_? zSz0lfV>mE|| zVP|3=M!5uP52Z}h>N}U@>Lo>>_E5Smq%fwTXfUJ{B!rQq5-v>52_-kwAu{E9i<@Bd z1~o)g)gguGJyKO+=QyfB=oZcOjU)FxDlUye-?^ePOvP=7N!5jooC~8W7*z~Q6`0j6 zh)s3W8`Ln>rb7yy_sY~HKp~8%gm0Z0Py$8mB@<0e0@B{x)F@UaX({$Qm0LSEbW8aS zdK1=8CEVhT*x!Dae-?~Hy7Fr{LaAC`7((QXP`WJ&p^s2Ur+&>54m@DL^*C<|4v65E z?tlpHi8(;&Y$&*;J3u`P^g1tK=|=6X$9Y3ADuRMADuTPsD5YCM!L8UR&2QH)dI8ax z9rzx<6pV@B7H&)gw{T;WZViRF%c1rT{jwJ@z2mmy34S#g7l9#+i+}|~nC=V(hA>WD z-JyULIc(2B=szq%0>WVt+&Uc=!L8F_CmfIaBGCEh#OvSZNeYgNk#v{ENWwTu>4jkx zNf<|IQJ>!Ii9ExT_O+G#dN3(M9)w8|@*qr#kOyJX3Cp~YZ+ObqKFR&TlnD6{rbNhx zFh%K(u!ejHQcol!G z|C9(C!YL6ngi|sK4dE0mTCDMQcaLSt@M*hy6%Pfcg-C%oEkp{$X(=KF;iOZwXCdVbb!K&~PboBf)*gO}>w>d#(?ZEy5fK)0BQRtYHp>X?BF1c}Z_?aj*eAzzx3}=GNB9ub7EJ7)S%OaFQ zxa@>3FO(U+VoyB7JzK7bPzK?O2xSnih)@RMiW7>wP;U4tsioD}LAWoFQssD8;mS-1 z?5bepz^)2b4(zJK^f$d$VfdQ;)f!%rxkf5K6f2N(jS32*5INVV*yy!BrPAe4h9B5}t>Yi`KMIe z&4zc{8yk4(@|_|yL)a-oGlZRLW~bB)VW+~^;p<*#!Jb^Hh1I=oJXQA1=kbolg=jo2 zum;3xfi<9JmbeAhfWi{@d8^g%Zu`~qyd>ByLMw#bBD6x-t!DNbtq^uAd}9}Qp$&U^ zyJjQz27@BBK^PRF4Z@&|rwziO8&9r=`Pg^cQyWpkkO=c342duw!jRN3AHtBUAvdS( z*fZPU1zs8qi_i{XScG;6!)j)?(hgx*;Tg&OSvm~wvwwbp`}+5Z&;ene2ptgi$&=9m zVV`?4{;B*#bYeq1(efg{O8p~Zbix=>sc5Uv31dXHFAkrLP8cI#ub21?ItEOn%l>xEe4J7NU$QnLq|M(JjKYLJwEQEt9RTBzX2nSVd z^uo+SIH>T#bcejSNsg-6AHsuz+b)l){9--j>WjOB!kGQXkNNZLm~DjYD9pQ_l2ut2x9|5V{%?M~TAY@ZWE&sqS2>ilH8axq6a*Xj9Qsgb=Ay(NlyF^-QU3mt9%U-4lQL3IBS*{{f)d BEG_^5 diff --git a/gen/go/ssn/annotator/v1/annotator.pb.go b/gen/go/ssn/annotator/v1/annotator.pb.go index 2628b460..e6620678 100644 --- a/gen/go/ssn/annotator/v1/annotator.pb.go +++ b/gen/go/ssn/annotator/v1/annotator.pb.go @@ -119,6 +119,8 @@ const ( Feature_PURCHASE_LINES Feature_Type = 44 // Page texts Feature_PAGE_TEXTS Feature_Type = 45 + // VAT distribution + Feature_VAT_DISTRIBUTION Feature_Type = 46 ) // Enum value maps for Feature_Type. @@ -170,6 +172,7 @@ var ( 43: "RECEIVER_VAT_NUMBER", 44: "PURCHASE_LINES", 45: "PAGE_TEXTS", + 46: "VAT_DISTRIBUTION", } Feature_Type_value = map[string]int32{ "DEFAULT": 0, @@ -218,6 +221,7 @@ var ( "RECEIVER_VAT_NUMBER": 43, "PURCHASE_LINES": 44, "PAGE_TEXTS": 45, + "VAT_DISTRIBUTION": 46, } ) @@ -543,6 +547,8 @@ type DocumentAnnotatorResponse struct { Answers []*_type.AnswerCandidate `protobuf:"bytes,46,rep,name=answers,proto3" json:"answers,omitempty"` // The page texts of the document PageTexts []*_type.PageText `protobuf:"bytes,47,rep,name=page_texts,json=pageTexts,proto3" json:"page_texts,omitempty"` + // Vat levels for the document, each vat level has vat level percentage and vat level amount + VatDistributionCandidates []*_type.VatDistributionCandidate `protobuf:"bytes,48,rep,name=vat_distribution_candidates,json=vatDistributionCandidates,proto3" json:"vat_distribution_candidates,omitempty"` } func (x *DocumentAnnotatorResponse) Reset() { @@ -906,6 +912,13 @@ func (x *DocumentAnnotatorResponse) GetPageTexts() []*_type.PageText { return nil } +func (x *DocumentAnnotatorResponse) GetVatDistributionCandidates() []*_type.VatDistributionCandidate { + if x != nil { + return x.VatDistributionCandidates + } + return nil +} + type Document struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1138,7 +1151,7 @@ var file_ssn_annotator_v1_annotator_proto_rawDesc = []byte{ 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x73, 0x73, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xa5, 0x09, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x32, 0x0a, + 0x6f, 0x22, 0xbb, 0x09, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, @@ -1148,7 +1161,7 @@ var file_ssn_annotator_v1_annotator_proto_rawDesc = []byte{ 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0d, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x81, 0x08, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, + 0x64, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x97, 0x08, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, @@ -1212,267 +1225,274 @@ var file_ssn_annotator_v1_annotator_proto_rawDesc = []byte{ 0x52, 0x45, 0x43, 0x45, 0x49, 0x56, 0x45, 0x52, 0x5f, 0x56, 0x41, 0x54, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x2b, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x55, 0x52, 0x43, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x53, 0x10, 0x2c, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x41, 0x47, - 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x53, 0x10, 0x2d, 0x22, 0xfb, 0x01, 0x0a, 0x18, 0x44, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x35, - 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x22, 0x0a, 0x04, 0x74, 0x69, 0x65, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x52, 0x04, 0x74, 0x69, 0x65, 0x72, 0x12, 0x1a, 0x0a, - 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x94, 0x17, 0x0a, 0x19, 0x44, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x64, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x09, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x10, 0x70, 0x61, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, - 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x44, 0x75, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x30, 0x0a, 0x09, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, - 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x61, 0x74, 0x12, 0x39, 0x0a, 0x0e, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x5f, 0x76, 0x61, 0x74, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, - 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x49, - 0x6e, 0x63, 0x6c, 0x56, 0x61, 0x74, 0x12, 0x39, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, - 0x65, 0x78, 0x63, 0x6c, 0x5f, 0x76, 0x61, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, + 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x53, 0x10, 0x2d, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x41, 0x54, + 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x2e, 0x22, + 0xfb, 0x01, 0x0a, 0x18, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, + 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, + 0x22, 0x0a, 0x04, 0x74, 0x69, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, + 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x52, 0x04, 0x74, + 0x69, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xf8, 0x17, + 0x0a, 0x19, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0a, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x44, 0x61, 0x74, 0x65, 0x12, + 0x3d, 0x0a, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75, 0x65, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0e, + 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x75, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x2f, + 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, + 0x30, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x74, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, + 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x61, + 0x74, 0x12, 0x39, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x5f, + 0x76, 0x61, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x49, 0x6e, 0x63, 0x6c, 0x56, 0x61, 0x74, 0x12, 0x39, 0x0a, 0x0e, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x63, 0x6c, 0x5f, 0x76, 0x61, 0x74, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x45, 0x78, 0x63, 0x6c, 0x56, 0x61, 0x74, 0x12, 0x47, 0x0a, 0x15, 0x73, 0x75, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x72, 0x70, 0x6f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x73, 0x75, 0x70, + 0x70, 0x6c, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x72, 0x70, 0x6f, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x12, 0x47, 0x0a, 0x15, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x0d, 0x64, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, + 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, + 0x46, 0x0a, 0x15, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x72, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x78, 0x63, 0x6c, 0x56, 0x61, - 0x74, 0x12, 0x47, 0x0a, 0x15, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x72, 0x70, 0x6f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x61, 0x74, 0x65, 0x52, 0x12, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4c, + 0x61, 0x73, 0x74, 0x46, 0x6f, 0x75, 0x72, 0x12, 0x3a, 0x0a, 0x0e, 0x69, 0x6e, 0x76, 0x6f, 0x69, + 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, + 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x10, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, + 0x6e, 0x65, 0x5f, 0x64, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x43, - 0x6f, 0x72, 0x70, 0x6f, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x15, 0x73, 0x75, - 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, - 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, - 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x0c, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, - 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, - 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x46, 0x0a, 0x15, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x66, 0x6f, - 0x75, 0x72, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x4c, 0x61, 0x73, 0x74, 0x46, 0x6f, 0x75, - 0x72, 0x12, 0x3a, 0x0a, 0x0e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0d, - 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x41, 0x0a, - 0x0f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0e, 0x74, 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x3c, 0x0a, 0x10, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x6b, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x0d, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x44, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x47, - 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x6b, 0x5f, 0x70, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x44, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, + 0x5f, 0x64, 0x6b, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0f, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, + 0x6e, 0x65, 0x44, 0x6b, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x49, 0x0a, + 0x17, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x6b, 0x5f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x44, 0x6b, 0x50, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x17, 0x6f, 0x63, 0x72, 0x5f, 0x6c, - 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x6b, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x6f, - 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x44, 0x6b, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, - 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, - 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x11, 0x20, 0x03, + 0x61, 0x74, 0x65, 0x52, 0x13, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x44, 0x6b, 0x43, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, + 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, + 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x12, 0x5a, 0x0a, 0x20, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, + 0x5f, 0x62, 0x61, 0x6e, 0x6b, 0x67, 0x69, 0x72, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, + 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x1b, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x42, 0x61, 0x6e, 0x6b, 0x67, + 0x69, 0x72, 0x6f, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x5a, 0x0a, + 0x20, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x5f, 0x70, 0x6c, 0x75, + 0x73, 0x67, 0x69, 0x72, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x1b, 0x6f, 0x63, + 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x50, 0x6c, 0x75, 0x73, 0x67, 0x69, 0x72, 0x6f, 0x43, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, + 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x6f, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, + 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x66, + 0x69, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, - 0x53, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x20, 0x6f, - 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x5f, 0x62, 0x61, 0x6e, 0x6b, 0x67, - 0x69, 0x72, 0x6f, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x1b, 0x6f, 0x63, 0x72, 0x4c, - 0x69, 0x6e, 0x65, 0x53, 0x65, 0x42, 0x61, 0x6e, 0x6b, 0x67, 0x69, 0x72, 0x6f, 0x43, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x20, 0x6f, 0x63, 0x72, 0x5f, 0x6c, - 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x5f, 0x70, 0x6c, 0x75, 0x73, 0x67, 0x69, 0x72, 0x6f, 0x5f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x13, 0x20, 0x03, 0x28, + 0x46, 0x69, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, + 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x6c, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, + 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x4e, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, + 0x5f, 0x62, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x28, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, + 0x6e, 0x65, 0x42, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, + 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, + 0x49, 0x64, 0x12, 0x27, 0x0a, 0x04, 0x69, 0x62, 0x61, 0x6e, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x04, 0x69, 0x62, 0x61, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x6c, + 0x69, 0x6e, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x73, 0x6e, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, + 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x65, 0x77, 0x12, 0x43, 0x0a, 0x13, 0x62, 0x61, 0x6e, 0x6b, 0x5f, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, - 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x1b, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x53, - 0x65, 0x50, 0x6c, 0x75, 0x73, 0x67, 0x69, 0x72, 0x6f, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x6f, - 0x72, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, - 0x6e, 0x6f, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x14, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, - 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, - 0x65, 0x4e, 0x6f, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, - 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x66, 0x69, 0x5f, 0x70, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, - 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x46, 0x69, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, - 0x65, 0x5f, 0x6e, 0x6c, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x16, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, - 0x69, 0x6e, 0x65, 0x4e, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x47, - 0x0a, 0x16, 0x6f, 0x63, 0x72, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x62, 0x65, 0x5f, 0x70, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x28, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x12, 0x6f, 0x63, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x42, 0x65, 0x50, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, - 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x66, - 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x04, - 0x69, 0x62, 0x61, 0x6e, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x04, 0x69, 0x62, 0x61, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x1a, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, - 0x4c, 0x69, 0x6e, 0x65, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x05, 0x6c, - 0x69, 0x6e, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, - 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x43, - 0x0a, 0x13, 0x62, 0x61, 0x6e, 0x6b, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, + 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x11, 0x62, 0x61, 0x6e, 0x6b, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x18, 0x62, 0x61, 0x6e, + 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x11, 0x62, 0x61, 0x6e, 0x6b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x18, 0x62, 0x61, 0x6e, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, - 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x16, 0x62, 0x61, 0x6e, 0x6b, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x12, 0x25, 0x0a, 0x03, 0x62, 0x69, 0x63, 0x18, 0x1e, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x52, 0x16, 0x62, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x03, 0x62, 0x69, 0x63, 0x18, + 0x1e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x03, 0x62, 0x69, 0x63, 0x12, + 0x3c, 0x0a, 0x0f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x64, + 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x38, 0x0a, + 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x20, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x64, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, + 0x38, 0x0a, 0x0d, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x22, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x73, 0x75, 0x70, + 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x13, 0x73, 0x75, 0x70, + 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x18, 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x11, 0x73, 0x75, 0x70, + 0x70, 0x6c, 0x69, 0x65, 0x72, 0x56, 0x61, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x55, + 0x0a, 0x1c, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x6f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x24, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x1a, 0x73, 0x75, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x25, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x03, 0x62, 0x69, 0x63, 0x12, 0x3c, 0x0a, 0x0f, 0x64, 0x6f, 0x63, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, - 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, - 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x20, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x0c, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, - 0x65, 0x12, 0x36, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0d, 0x73, 0x75, 0x70, - 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x22, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x13, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, - 0x76, 0x61, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x23, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x56, - 0x61, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x55, 0x0a, 0x1c, 0x73, 0x75, 0x70, 0x70, - 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x24, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3c, 0x0a, 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, + 0x72, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x1a, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4f, 0x72, 0x67, - 0x61, 0x6e, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, - 0x3e, 0x0a, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x25, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0f, - 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x3c, 0x0a, 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x47, 0x0a, - 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x27, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, + 0x61, 0x74, 0x65, 0x52, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x27, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, + 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x72, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x10, + 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x29, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x15, + 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, + 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x2a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, + 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, + 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x29, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, - 0x2a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, - 0x38, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x2b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x13, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x18, 0x2c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x11, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x72, 0x56, 0x61, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x46, - 0x0a, 0x0e, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x2e, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x4c, 0x69, 0x6e, 0x65, 0x43, 0x61, - 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, - 0x65, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, - 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, 0x2f, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x54, - 0x65, 0x78, 0x74, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x65, 0x78, 0x74, 0x73, 0x22, 0x5e, - 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x2b, - 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x68, 0x74, 0x74, 0x70, 0x55, 0x72, 0x69, 0x22, 0x6f, 0x0a, 0x17, 0x44, - 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x55, 0x0a, 0x18, - 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, - 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x73, 0x6e, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x64, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x4a, 0x04, 0x08, - 0x01, 0x10, 0x02, 0x32, 0xbd, 0x02, 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x8d, 0x01, 0x0a, 0x10, 0x41, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2a, + 0x65, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x43, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x74, 0x5f, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, + 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x56, 0x61, 0x74, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0e, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, + 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x2d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, + 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, + 0x4c, 0x69, 0x6e, 0x65, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0d, 0x70, + 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x07, + 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x43, + 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, + 0x2f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x54, 0x65, 0x78, 0x74, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, + 0x65, 0x78, 0x74, 0x73, 0x12, 0x62, 0x0a, 0x1b, 0x76, 0x61, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, + 0x74, 0x65, 0x73, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x73, 0x6e, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x56, 0x61, 0x74, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x19, 0x76, + 0x61, 0x74, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, + 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x73, 0x22, 0x5e, 0x0a, 0x08, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x38, + 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x73, 0x6e, - 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, - 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, - 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x3a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x12, 0x97, 0x01, 0x0a, 0x16, 0x41, 0x6e, - 0x73, 0x77, 0x65, 0x72, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x2b, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x74, + 0x74, 0x70, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x74, + 0x74, 0x70, 0x55, 0x72, 0x69, 0x22, 0x6f, 0x0a, 0x17, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x36, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, + 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x55, 0x0a, 0x18, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x41, + 0x6e, 0x73, 0x77, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, + 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x32, 0xbd, 0x02, + 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x8d, 0x01, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, + 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x69, 0x6f, 0x6e, 0x42, 0x88, 0x02, 0x92, 0x41, 0x38, 0x12, 0x0f, 0x0a, 0x09, 0x53, 0x6d, 0x61, - 0x72, 0x74, 0x53, 0x63, 0x61, 0x6e, 0x32, 0x02, 0x76, 0x31, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, - 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, - 0x6e, 0x0a, 0x19, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, 0x6e, 0x2e, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x41, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x2d, 0x63, 0x6f, 0x6e, - 0x6f, 0x6d, 0x69, 0x63, 0x2f, 0x76, 0x6d, 0x6c, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x73, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, - 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0xa2, 0x02, - 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, 0x10, 0x53, 0x73, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x53, 0x73, 0x6e, 0x5c, 0x41, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x53, 0x73, 0x6e, - 0x5c, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x53, 0x73, 0x6e, 0x3a, - 0x3a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x97, 0x01, 0x0a, 0x16, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x44, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, + 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, + 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x61, + 0x6e, 0x73, 0x77, 0x65, 0x72, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x88, 0x02, + 0x92, 0x41, 0x38, 0x12, 0x0f, 0x0a, 0x09, 0x53, 0x6d, 0x61, 0x72, 0x74, 0x53, 0x63, 0x61, 0x6e, + 0x32, 0x02, 0x76, 0x31, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x0a, 0x19, 0x61, 0x69, 0x2e, + 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x2f, 0x76, + 0x6d, 0x6c, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x73, + 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x58, 0xaa, 0x02, + 0x10, 0x53, 0x73, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x10, 0x53, 0x73, 0x6e, 0x5c, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x6f, + 0x72, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x53, 0x73, 0x6e, 0x5c, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x6f, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x53, 0x73, 0x6e, 0x3a, 0x3a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1490,22 +1510,23 @@ func file_ssn_annotator_v1_annotator_proto_rawDescGZIP() []byte { var file_ssn_annotator_v1_annotator_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_ssn_annotator_v1_annotator_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_ssn_annotator_v1_annotator_proto_goTypes = []interface{}{ - (Feature_Type)(0), // 0: ssn.annotator.v1.Feature.Type - (*Feature)(nil), // 1: ssn.annotator.v1.Feature - (*DocumentAnnotatorRequest)(nil), // 2: ssn.annotator.v1.DocumentAnnotatorRequest - (*DocumentAnnotatorResponse)(nil), // 3: ssn.annotator.v1.DocumentAnnotatorResponse - (*Document)(nil), // 4: ssn.annotator.v1.Document - (*DocumentSource)(nil), // 5: ssn.annotator.v1.DocumentSource - (*DocumentQuestionRequest)(nil), // 6: ssn.annotator.v1.DocumentQuestionRequest - (*DocumentQuestionResponse)(nil), // 7: ssn.annotator.v1.DocumentQuestionResponse - (_type.Confidence_Level)(0), // 8: ssn.type.Confidence.Level - (_type.Tier)(0), // 9: ssn.type.Tier - (*_type.Candidate)(nil), // 10: ssn.type.Candidate - (*_type.TextAnnotation)(nil), // 11: ssn.type.TextAnnotation - (*_type.LineCandidate)(nil), // 12: ssn.type.LineCandidate - (*_type.PurchaseLineCandidate)(nil), // 13: ssn.type.PurchaseLineCandidate - (*_type.AnswerCandidate)(nil), // 14: ssn.type.AnswerCandidate - (*_type.PageText)(nil), // 15: ssn.type.PageText + (Feature_Type)(0), // 0: ssn.annotator.v1.Feature.Type + (*Feature)(nil), // 1: ssn.annotator.v1.Feature + (*DocumentAnnotatorRequest)(nil), // 2: ssn.annotator.v1.DocumentAnnotatorRequest + (*DocumentAnnotatorResponse)(nil), // 3: ssn.annotator.v1.DocumentAnnotatorResponse + (*Document)(nil), // 4: ssn.annotator.v1.Document + (*DocumentSource)(nil), // 5: ssn.annotator.v1.DocumentSource + (*DocumentQuestionRequest)(nil), // 6: ssn.annotator.v1.DocumentQuestionRequest + (*DocumentQuestionResponse)(nil), // 7: ssn.annotator.v1.DocumentQuestionResponse + (_type.Confidence_Level)(0), // 8: ssn.type.Confidence.Level + (_type.Tier)(0), // 9: ssn.type.Tier + (*_type.Candidate)(nil), // 10: ssn.type.Candidate + (*_type.TextAnnotation)(nil), // 11: ssn.type.TextAnnotation + (*_type.LineCandidate)(nil), // 12: ssn.type.LineCandidate + (*_type.PurchaseLineCandidate)(nil), // 13: ssn.type.PurchaseLineCandidate + (*_type.AnswerCandidate)(nil), // 14: ssn.type.AnswerCandidate + (*_type.PageText)(nil), // 15: ssn.type.PageText + (*_type.VatDistributionCandidate)(nil), // 16: ssn.type.VatDistributionCandidate } var file_ssn_annotator_v1_annotator_proto_depIdxs = []int32{ 0, // 0: ssn.annotator.v1.Feature.type:type_name -> ssn.annotator.v1.Feature.Type @@ -1557,18 +1578,19 @@ var file_ssn_annotator_v1_annotator_proto_depIdxs = []int32{ 13, // 46: ssn.annotator.v1.DocumentAnnotatorResponse.purchase_lines:type_name -> ssn.type.PurchaseLineCandidate 14, // 47: ssn.annotator.v1.DocumentAnnotatorResponse.answers:type_name -> ssn.type.AnswerCandidate 15, // 48: ssn.annotator.v1.DocumentAnnotatorResponse.page_texts:type_name -> ssn.type.PageText - 5, // 49: ssn.annotator.v1.Document.source:type_name -> ssn.annotator.v1.DocumentSource - 4, // 50: ssn.annotator.v1.DocumentQuestionRequest.document:type_name -> ssn.annotator.v1.Document - 14, // 51: ssn.annotator.v1.DocumentQuestionResponse.answers:type_name -> ssn.type.AnswerCandidate - 2, // 52: ssn.annotator.v1.DocumentAnnotator.AnnotateDocument:input_type -> ssn.annotator.v1.DocumentAnnotatorRequest - 6, // 53: ssn.annotator.v1.DocumentAnnotator.AnswerDocumentQuestion:input_type -> ssn.annotator.v1.DocumentQuestionRequest - 3, // 54: ssn.annotator.v1.DocumentAnnotator.AnnotateDocument:output_type -> ssn.annotator.v1.DocumentAnnotatorResponse - 7, // 55: ssn.annotator.v1.DocumentAnnotator.AnswerDocumentQuestion:output_type -> ssn.annotator.v1.DocumentQuestionResponse - 54, // [54:56] is the sub-list for method output_type - 52, // [52:54] is the sub-list for method input_type - 52, // [52:52] is the sub-list for extension type_name - 52, // [52:52] is the sub-list for extension extendee - 0, // [0:52] is the sub-list for field type_name + 16, // 49: ssn.annotator.v1.DocumentAnnotatorResponse.vat_distribution_candidates:type_name -> ssn.type.VatDistributionCandidate + 5, // 50: ssn.annotator.v1.Document.source:type_name -> ssn.annotator.v1.DocumentSource + 4, // 51: ssn.annotator.v1.DocumentQuestionRequest.document:type_name -> ssn.annotator.v1.Document + 14, // 52: ssn.annotator.v1.DocumentQuestionResponse.answers:type_name -> ssn.type.AnswerCandidate + 2, // 53: ssn.annotator.v1.DocumentAnnotator.AnnotateDocument:input_type -> ssn.annotator.v1.DocumentAnnotatorRequest + 6, // 54: ssn.annotator.v1.DocumentAnnotator.AnswerDocumentQuestion:input_type -> ssn.annotator.v1.DocumentQuestionRequest + 3, // 55: ssn.annotator.v1.DocumentAnnotator.AnnotateDocument:output_type -> ssn.annotator.v1.DocumentAnnotatorResponse + 7, // 56: ssn.annotator.v1.DocumentAnnotator.AnswerDocumentQuestion:output_type -> ssn.annotator.v1.DocumentQuestionResponse + 55, // [55:57] is the sub-list for method output_type + 53, // [53:55] is the sub-list for method input_type + 53, // [53:53] is the sub-list for extension type_name + 53, // [53:53] is the sub-list for extension extendee + 0, // [0:53] is the sub-list for field type_name } func init() { file_ssn_annotator_v1_annotator_proto_init() } diff --git a/gen/go/ssn/mlservice/v2/mlservice.pb.go b/gen/go/ssn/mlservice/v2/mlservice.pb.go index 9af30b9d..20a0b5b6 100644 --- a/gen/go/ssn/mlservice/v2/mlservice.pb.go +++ b/gen/go/ssn/mlservice/v2/mlservice.pb.go @@ -806,6 +806,116 @@ func (x *DocQAResponse) GetAnswers() []*_type.AnswerCandidate { return nil } +type VatDistributionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TextAnnotation *_type.TextAnnotation `protobuf:"bytes,1,opt,name=text_annotation,json=textAnnotation,proto3" json:"text_annotation,omitempty"` + Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` +} + +func (x *VatDistributionRequest) Reset() { + *x = VatDistributionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VatDistributionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VatDistributionRequest) ProtoMessage() {} + +func (x *VatDistributionRequest) ProtoReflect() protoreflect.Message { + mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VatDistributionRequest.ProtoReflect.Descriptor instead. +func (*VatDistributionRequest) Descriptor() ([]byte, []int) { + return file_ssn_mlservice_v2_mlservice_proto_rawDescGZIP(), []int{9} +} + +func (x *VatDistributionRequest) GetTextAnnotation() *_type.TextAnnotation { + if x != nil { + return x.TextAnnotation + } + return nil +} + +func (x *VatDistributionRequest) GetImage() []byte { + if x != nil { + return x.Image + } + return nil +} + +func (x *VatDistributionRequest) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +type VatDistributionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VatDistributionCandidates []*_type.VatDistributionCandidate `protobuf:"bytes,1,rep,name=vat_distribution_candidates,json=vatDistributionCandidates,proto3" json:"vat_distribution_candidates,omitempty"` +} + +func (x *VatDistributionResponse) Reset() { + *x = VatDistributionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VatDistributionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VatDistributionResponse) ProtoMessage() {} + +func (x *VatDistributionResponse) ProtoReflect() protoreflect.Message { + mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VatDistributionResponse.ProtoReflect.Descriptor instead. +func (*VatDistributionResponse) Descriptor() ([]byte, []int) { + return file_ssn_mlservice_v2_mlservice_proto_rawDescGZIP(), []int{10} +} + +func (x *VatDistributionResponse) GetVatDistributionCandidates() []*_type.VatDistributionCandidate { + if x != nil { + return x.VatDistributionCandidates + } + return nil +} + type FeatureGenRequest_TruthLabels struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -857,7 +967,7 @@ type FeatureGenRequest_TruthLabels struct { func (x *FeatureGenRequest_TruthLabels) Reset() { *x = FeatureGenRequest_TruthLabels{} if protoimpl.UnsafeEnabled { - mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[9] + mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -870,7 +980,7 @@ func (x *FeatureGenRequest_TruthLabels) String() string { func (*FeatureGenRequest_TruthLabels) ProtoMessage() {} func (x *FeatureGenRequest_TruthLabels) ProtoReflect() protoreflect.Message { - mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[9] + mi := &file_ssn_mlservice_v2_mlservice_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1518,39 +1628,56 @@ var file_ssn_mlservice_v2_mlservice_proto_rawDesc = []byte{ 0x51, 0x41, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x43, 0x61, 0x6e, - 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x32, - 0x98, 0x02, 0x0a, 0x09, 0x4d, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, - 0x0a, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, 0x6e, 0x12, 0x23, 0x2e, 0x73, 0x73, - 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x24, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x07, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, - 0x74, 0x12, 0x20, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x11, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x47, 0x65, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x73, - 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, + 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x22, + 0x94, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x74, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0f, 0x74, 0x65, + 0x78, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x54, + 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, + 0x65, 0x78, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, + 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x7d, 0x0a, 0x17, 0x56, 0x61, 0x74, 0x44, 0x69, 0x73, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x62, 0x0a, 0x1b, 0x76, 0x61, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x2e, 0x56, 0x61, 0x74, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x19, 0x76, 0x61, 0x74, 0x44, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x64, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x73, 0x32, 0x98, 0x02, 0x0a, 0x09, 0x4d, 0x6c, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x0a, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, + 0x6e, 0x12, 0x23, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x47, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x07, + 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x12, 0x20, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, - 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xcd, 0x01, 0x0a, 0x19, 0x61, - 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0e, 0x4d, 0x6c, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x6f, 0x6d, 0x69, 0x63, - 0x2f, 0x76, 0x6d, 0x6c, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, - 0x73, 0x73, 0x6e, 0x2f, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x32, - 0x3b, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x53, 0x4d, 0x58, - 0xaa, 0x02, 0x10, 0x53, 0x73, 0x6e, 0x2e, 0x4d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x56, 0x32, 0xca, 0x02, 0x10, 0x53, 0x73, 0x6e, 0x5c, 0x4d, 0x6c, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1c, 0x53, 0x73, 0x6e, 0x5c, 0x4d, 0x6c, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x53, 0x73, 0x6e, 0x3a, 0x3a, 0x4d, 0x6c, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x73, 0x6e, 0x2e, + 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, + 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x11, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, + 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x47, 0x65, 0x6e, 0x50, + 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x73, 0x73, 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, + 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0xcd, 0x01, 0x0a, 0x19, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, + 0x6e, 0x2e, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0e, + 0x4d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x2d, 0x63, + 0x6f, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x2f, 0x76, 0x6d, 0x6c, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x73, 0x6e, 0x2f, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0xa2, 0x02, 0x03, 0x53, 0x4d, 0x58, 0xaa, 0x02, 0x10, 0x53, 0x73, 0x6e, 0x2e, 0x4d, 0x6c, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x10, 0x53, 0x73, 0x6e, 0x5c, + 0x4d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x1c, 0x53, + 0x73, 0x6e, 0x5c, 0x4d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x56, 0x32, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x53, 0x73, + 0x6e, 0x3a, 0x3a, 0x4d, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x3a, 0x3a, 0x56, 0x32, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1565,89 +1692,94 @@ func file_ssn_mlservice_v2_mlservice_proto_rawDescGZIP() []byte { return file_ssn_mlservice_v2_mlservice_proto_rawDescData } -var file_ssn_mlservice_v2_mlservice_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_ssn_mlservice_v2_mlservice_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_ssn_mlservice_v2_mlservice_proto_goTypes = []interface{}{ - (*FeatureGenRequest)(nil), // 0: ssn.mlservice.v2.FeatureGenRequest - (*FeatureGenResponse)(nil), // 1: ssn.mlservice.v2.FeatureGenResponse - (*PredictRequest)(nil), // 2: ssn.mlservice.v2.PredictRequest - (*PredictResponse)(nil), // 3: ssn.mlservice.v2.PredictResponse - (*FeatureGenPredictRequest)(nil), // 4: ssn.mlservice.v2.FeatureGenPredictRequest - (*PurchaseLinesRequest)(nil), // 5: ssn.mlservice.v2.PurchaseLinesRequest - (*PurchaseLinesResponse)(nil), // 6: ssn.mlservice.v2.PurchaseLinesResponse - (*DocQARequest)(nil), // 7: ssn.mlservice.v2.DocQARequest - (*DocQAResponse)(nil), // 8: ssn.mlservice.v2.DocQAResponse - (*FeatureGenRequest_TruthLabels)(nil), // 9: ssn.mlservice.v2.FeatureGenRequest.TruthLabels - (*_type.TextAnnotation)(nil), // 10: ssn.type.TextAnnotation - (*_type.Candidate)(nil), // 11: ssn.type.Candidate - (*_type.LineCandidate)(nil), // 12: ssn.type.LineCandidate - (*_type.PurchaseLineCandidate)(nil), // 13: ssn.type.PurchaseLineCandidate - (*_type.AnswerCandidate)(nil), // 14: ssn.type.AnswerCandidate - (*date.Date)(nil), // 15: google.type.Date + (*FeatureGenRequest)(nil), // 0: ssn.mlservice.v2.FeatureGenRequest + (*FeatureGenResponse)(nil), // 1: ssn.mlservice.v2.FeatureGenResponse + (*PredictRequest)(nil), // 2: ssn.mlservice.v2.PredictRequest + (*PredictResponse)(nil), // 3: ssn.mlservice.v2.PredictResponse + (*FeatureGenPredictRequest)(nil), // 4: ssn.mlservice.v2.FeatureGenPredictRequest + (*PurchaseLinesRequest)(nil), // 5: ssn.mlservice.v2.PurchaseLinesRequest + (*PurchaseLinesResponse)(nil), // 6: ssn.mlservice.v2.PurchaseLinesResponse + (*DocQARequest)(nil), // 7: ssn.mlservice.v2.DocQARequest + (*DocQAResponse)(nil), // 8: ssn.mlservice.v2.DocQAResponse + (*VatDistributionRequest)(nil), // 9: ssn.mlservice.v2.VatDistributionRequest + (*VatDistributionResponse)(nil), // 10: ssn.mlservice.v2.VatDistributionResponse + (*FeatureGenRequest_TruthLabels)(nil), // 11: ssn.mlservice.v2.FeatureGenRequest.TruthLabels + (*_type.TextAnnotation)(nil), // 12: ssn.type.TextAnnotation + (*_type.Candidate)(nil), // 13: ssn.type.Candidate + (*_type.LineCandidate)(nil), // 14: ssn.type.LineCandidate + (*_type.PurchaseLineCandidate)(nil), // 15: ssn.type.PurchaseLineCandidate + (*_type.AnswerCandidate)(nil), // 16: ssn.type.AnswerCandidate + (*_type.VatDistributionCandidate)(nil), // 17: ssn.type.VatDistributionCandidate + (*date.Date)(nil), // 18: google.type.Date } var file_ssn_mlservice_v2_mlservice_proto_depIdxs = []int32{ - 9, // 0: ssn.mlservice.v2.FeatureGenRequest.truth_labels:type_name -> ssn.mlservice.v2.FeatureGenRequest.TruthLabels - 10, // 1: ssn.mlservice.v2.FeatureGenRequest.text_annotation:type_name -> ssn.type.TextAnnotation - 11, // 2: ssn.mlservice.v2.PredictResponse.order_date:type_name -> ssn.type.Candidate - 11, // 3: ssn.mlservice.v2.PredictResponse.payment_due_date:type_name -> ssn.type.Candidate - 11, // 4: ssn.mlservice.v2.PredictResponse.currency:type_name -> ssn.type.Candidate - 11, // 5: ssn.mlservice.v2.PredictResponse.total_vat:type_name -> ssn.type.Candidate - 11, // 6: ssn.mlservice.v2.PredictResponse.total_incl_vat:type_name -> ssn.type.Candidate - 11, // 7: ssn.mlservice.v2.PredictResponse.total_excl_vat:type_name -> ssn.type.Candidate - 11, // 8: ssn.mlservice.v2.PredictResponse.supplier_corporate_id:type_name -> ssn.type.Candidate - 11, // 9: ssn.mlservice.v2.PredictResponse.supplier_country_code:type_name -> ssn.type.Candidate - 11, // 10: ssn.mlservice.v2.PredictResponse.document_type:type_name -> ssn.type.Candidate - 11, // 11: ssn.mlservice.v2.PredictResponse.payment_method:type_name -> ssn.type.Candidate - 11, // 12: ssn.mlservice.v2.PredictResponse.credit_card_number:type_name -> ssn.type.Candidate - 11, // 13: ssn.mlservice.v2.PredictResponse.invoice_number:type_name -> ssn.type.Candidate - 11, // 14: ssn.mlservice.v2.PredictResponse.ocr_line_dk_type:type_name -> ssn.type.Candidate - 11, // 15: ssn.mlservice.v2.PredictResponse.ocr_line_dk_payment_id:type_name -> ssn.type.Candidate - 11, // 16: ssn.mlservice.v2.PredictResponse.ocr_line_dk_creditor_id:type_name -> ssn.type.Candidate - 11, // 17: ssn.mlservice.v2.PredictResponse.ocr_line_se_payment_id:type_name -> ssn.type.Candidate - 11, // 18: ssn.mlservice.v2.PredictResponse.ocr_line_se_bankgiro_creditor_id:type_name -> ssn.type.Candidate - 11, // 19: ssn.mlservice.v2.PredictResponse.ocr_line_se_plusgiro_creditor_id:type_name -> ssn.type.Candidate - 11, // 20: ssn.mlservice.v2.PredictResponse.ocr_line_no_payment_id:type_name -> ssn.type.Candidate - 11, // 21: ssn.mlservice.v2.PredictResponse.ocr_line_fi_payment_id:type_name -> ssn.type.Candidate - 11, // 22: ssn.mlservice.v2.PredictResponse.ocr_line_nl_payment_id:type_name -> ssn.type.Candidate - 11, // 23: ssn.mlservice.v2.PredictResponse.iban:type_name -> ssn.type.Candidate - 12, // 24: ssn.mlservice.v2.PredictResponse.lines:type_name -> ssn.type.LineCandidate - 11, // 25: ssn.mlservice.v2.PredictResponse.bank_account_number:type_name -> ssn.type.Candidate - 11, // 26: ssn.mlservice.v2.PredictResponse.bank_registration_number:type_name -> ssn.type.Candidate - 11, // 27: ssn.mlservice.v2.PredictResponse.bic:type_name -> ssn.type.Candidate - 11, // 28: ssn.mlservice.v2.PredictResponse.document_number:type_name -> ssn.type.Candidate - 11, // 29: ssn.mlservice.v2.PredictResponse.document_date:type_name -> ssn.type.Candidate - 11, // 30: ssn.mlservice.v2.PredictResponse.order_number:type_name -> ssn.type.Candidate - 11, // 31: ssn.mlservice.v2.PredictResponse.supplier_name:type_name -> ssn.type.Candidate - 11, // 32: ssn.mlservice.v2.PredictResponse.supplier_vat_number:type_name -> ssn.type.Candidate - 11, // 33: ssn.mlservice.v2.PredictResponse.supplier_organisation_number:type_name -> ssn.type.Candidate - 11, // 34: ssn.mlservice.v2.PredictResponse.supplier_address:type_name -> ssn.type.Candidate - 11, // 35: ssn.mlservice.v2.PredictResponse.credit_card_last_four:type_name -> ssn.type.Candidate - 11, // 36: ssn.mlservice.v2.PredictResponse.customer_number:type_name -> ssn.type.Candidate - 11, // 37: ssn.mlservice.v2.PredictResponse.receiver_order_number:type_name -> ssn.type.Candidate - 11, // 38: ssn.mlservice.v2.PredictResponse.ocr_line_be_payment_id:type_name -> ssn.type.Candidate - 11, // 39: ssn.mlservice.v2.PredictResponse.receiver_address:type_name -> ssn.type.Candidate - 11, // 40: ssn.mlservice.v2.PredictResponse.receiver_country_code:type_name -> ssn.type.Candidate - 11, // 41: ssn.mlservice.v2.PredictResponse.receiver_name:type_name -> ssn.type.Candidate - 11, // 42: ssn.mlservice.v2.PredictResponse.receiver_vat_number:type_name -> ssn.type.Candidate + 11, // 0: ssn.mlservice.v2.FeatureGenRequest.truth_labels:type_name -> ssn.mlservice.v2.FeatureGenRequest.TruthLabels + 12, // 1: ssn.mlservice.v2.FeatureGenRequest.text_annotation:type_name -> ssn.type.TextAnnotation + 13, // 2: ssn.mlservice.v2.PredictResponse.order_date:type_name -> ssn.type.Candidate + 13, // 3: ssn.mlservice.v2.PredictResponse.payment_due_date:type_name -> ssn.type.Candidate + 13, // 4: ssn.mlservice.v2.PredictResponse.currency:type_name -> ssn.type.Candidate + 13, // 5: ssn.mlservice.v2.PredictResponse.total_vat:type_name -> ssn.type.Candidate + 13, // 6: ssn.mlservice.v2.PredictResponse.total_incl_vat:type_name -> ssn.type.Candidate + 13, // 7: ssn.mlservice.v2.PredictResponse.total_excl_vat:type_name -> ssn.type.Candidate + 13, // 8: ssn.mlservice.v2.PredictResponse.supplier_corporate_id:type_name -> ssn.type.Candidate + 13, // 9: ssn.mlservice.v2.PredictResponse.supplier_country_code:type_name -> ssn.type.Candidate + 13, // 10: ssn.mlservice.v2.PredictResponse.document_type:type_name -> ssn.type.Candidate + 13, // 11: ssn.mlservice.v2.PredictResponse.payment_method:type_name -> ssn.type.Candidate + 13, // 12: ssn.mlservice.v2.PredictResponse.credit_card_number:type_name -> ssn.type.Candidate + 13, // 13: ssn.mlservice.v2.PredictResponse.invoice_number:type_name -> ssn.type.Candidate + 13, // 14: ssn.mlservice.v2.PredictResponse.ocr_line_dk_type:type_name -> ssn.type.Candidate + 13, // 15: ssn.mlservice.v2.PredictResponse.ocr_line_dk_payment_id:type_name -> ssn.type.Candidate + 13, // 16: ssn.mlservice.v2.PredictResponse.ocr_line_dk_creditor_id:type_name -> ssn.type.Candidate + 13, // 17: ssn.mlservice.v2.PredictResponse.ocr_line_se_payment_id:type_name -> ssn.type.Candidate + 13, // 18: ssn.mlservice.v2.PredictResponse.ocr_line_se_bankgiro_creditor_id:type_name -> ssn.type.Candidate + 13, // 19: ssn.mlservice.v2.PredictResponse.ocr_line_se_plusgiro_creditor_id:type_name -> ssn.type.Candidate + 13, // 20: ssn.mlservice.v2.PredictResponse.ocr_line_no_payment_id:type_name -> ssn.type.Candidate + 13, // 21: ssn.mlservice.v2.PredictResponse.ocr_line_fi_payment_id:type_name -> ssn.type.Candidate + 13, // 22: ssn.mlservice.v2.PredictResponse.ocr_line_nl_payment_id:type_name -> ssn.type.Candidate + 13, // 23: ssn.mlservice.v2.PredictResponse.iban:type_name -> ssn.type.Candidate + 14, // 24: ssn.mlservice.v2.PredictResponse.lines:type_name -> ssn.type.LineCandidate + 13, // 25: ssn.mlservice.v2.PredictResponse.bank_account_number:type_name -> ssn.type.Candidate + 13, // 26: ssn.mlservice.v2.PredictResponse.bank_registration_number:type_name -> ssn.type.Candidate + 13, // 27: ssn.mlservice.v2.PredictResponse.bic:type_name -> ssn.type.Candidate + 13, // 28: ssn.mlservice.v2.PredictResponse.document_number:type_name -> ssn.type.Candidate + 13, // 29: ssn.mlservice.v2.PredictResponse.document_date:type_name -> ssn.type.Candidate + 13, // 30: ssn.mlservice.v2.PredictResponse.order_number:type_name -> ssn.type.Candidate + 13, // 31: ssn.mlservice.v2.PredictResponse.supplier_name:type_name -> ssn.type.Candidate + 13, // 32: ssn.mlservice.v2.PredictResponse.supplier_vat_number:type_name -> ssn.type.Candidate + 13, // 33: ssn.mlservice.v2.PredictResponse.supplier_organisation_number:type_name -> ssn.type.Candidate + 13, // 34: ssn.mlservice.v2.PredictResponse.supplier_address:type_name -> ssn.type.Candidate + 13, // 35: ssn.mlservice.v2.PredictResponse.credit_card_last_four:type_name -> ssn.type.Candidate + 13, // 36: ssn.mlservice.v2.PredictResponse.customer_number:type_name -> ssn.type.Candidate + 13, // 37: ssn.mlservice.v2.PredictResponse.receiver_order_number:type_name -> ssn.type.Candidate + 13, // 38: ssn.mlservice.v2.PredictResponse.ocr_line_be_payment_id:type_name -> ssn.type.Candidate + 13, // 39: ssn.mlservice.v2.PredictResponse.receiver_address:type_name -> ssn.type.Candidate + 13, // 40: ssn.mlservice.v2.PredictResponse.receiver_country_code:type_name -> ssn.type.Candidate + 13, // 41: ssn.mlservice.v2.PredictResponse.receiver_name:type_name -> ssn.type.Candidate + 13, // 42: ssn.mlservice.v2.PredictResponse.receiver_vat_number:type_name -> ssn.type.Candidate 0, // 43: ssn.mlservice.v2.FeatureGenPredictRequest.feature_gen_request:type_name -> ssn.mlservice.v2.FeatureGenRequest 2, // 44: ssn.mlservice.v2.FeatureGenPredictRequest.predict_request:type_name -> ssn.mlservice.v2.PredictRequest - 10, // 45: ssn.mlservice.v2.PurchaseLinesRequest.text_annotation:type_name -> ssn.type.TextAnnotation - 13, // 46: ssn.mlservice.v2.PurchaseLinesResponse.purchase_lines:type_name -> ssn.type.PurchaseLineCandidate - 10, // 47: ssn.mlservice.v2.DocQARequest.text_annotation:type_name -> ssn.type.TextAnnotation - 14, // 48: ssn.mlservice.v2.DocQAResponse.answers:type_name -> ssn.type.AnswerCandidate - 15, // 49: ssn.mlservice.v2.FeatureGenRequest.TruthLabels.order_date:type_name -> google.type.Date - 15, // 50: ssn.mlservice.v2.FeatureGenRequest.TruthLabels.payment_due_date:type_name -> google.type.Date - 15, // 51: ssn.mlservice.v2.FeatureGenRequest.TruthLabels.document_date:type_name -> google.type.Date - 0, // 52: ssn.mlservice.v2.MlService.FeatureGen:input_type -> ssn.mlservice.v2.FeatureGenRequest - 2, // 53: ssn.mlservice.v2.MlService.Predict:input_type -> ssn.mlservice.v2.PredictRequest - 4, // 54: ssn.mlservice.v2.MlService.FeatureGenPredict:input_type -> ssn.mlservice.v2.FeatureGenPredictRequest - 1, // 55: ssn.mlservice.v2.MlService.FeatureGen:output_type -> ssn.mlservice.v2.FeatureGenResponse - 3, // 56: ssn.mlservice.v2.MlService.Predict:output_type -> ssn.mlservice.v2.PredictResponse - 3, // 57: ssn.mlservice.v2.MlService.FeatureGenPredict:output_type -> ssn.mlservice.v2.PredictResponse - 55, // [55:58] is the sub-list for method output_type - 52, // [52:55] is the sub-list for method input_type - 52, // [52:52] is the sub-list for extension type_name - 52, // [52:52] is the sub-list for extension extendee - 0, // [0:52] is the sub-list for field type_name + 12, // 45: ssn.mlservice.v2.PurchaseLinesRequest.text_annotation:type_name -> ssn.type.TextAnnotation + 15, // 46: ssn.mlservice.v2.PurchaseLinesResponse.purchase_lines:type_name -> ssn.type.PurchaseLineCandidate + 12, // 47: ssn.mlservice.v2.DocQARequest.text_annotation:type_name -> ssn.type.TextAnnotation + 16, // 48: ssn.mlservice.v2.DocQAResponse.answers:type_name -> ssn.type.AnswerCandidate + 12, // 49: ssn.mlservice.v2.VatDistributionRequest.text_annotation:type_name -> ssn.type.TextAnnotation + 17, // 50: ssn.mlservice.v2.VatDistributionResponse.vat_distribution_candidates:type_name -> ssn.type.VatDistributionCandidate + 18, // 51: ssn.mlservice.v2.FeatureGenRequest.TruthLabels.order_date:type_name -> google.type.Date + 18, // 52: ssn.mlservice.v2.FeatureGenRequest.TruthLabels.payment_due_date:type_name -> google.type.Date + 18, // 53: ssn.mlservice.v2.FeatureGenRequest.TruthLabels.document_date:type_name -> google.type.Date + 0, // 54: ssn.mlservice.v2.MlService.FeatureGen:input_type -> ssn.mlservice.v2.FeatureGenRequest + 2, // 55: ssn.mlservice.v2.MlService.Predict:input_type -> ssn.mlservice.v2.PredictRequest + 4, // 56: ssn.mlservice.v2.MlService.FeatureGenPredict:input_type -> ssn.mlservice.v2.FeatureGenPredictRequest + 1, // 57: ssn.mlservice.v2.MlService.FeatureGen:output_type -> ssn.mlservice.v2.FeatureGenResponse + 3, // 58: ssn.mlservice.v2.MlService.Predict:output_type -> ssn.mlservice.v2.PredictResponse + 3, // 59: ssn.mlservice.v2.MlService.FeatureGenPredict:output_type -> ssn.mlservice.v2.PredictResponse + 57, // [57:60] is the sub-list for method output_type + 54, // [54:57] is the sub-list for method input_type + 54, // [54:54] is the sub-list for extension type_name + 54, // [54:54] is the sub-list for extension extendee + 0, // [0:54] is the sub-list for field type_name } func init() { file_ssn_mlservice_v2_mlservice_proto_init() } @@ -1765,6 +1897,30 @@ func file_ssn_mlservice_v2_mlservice_proto_init() { } } file_ssn_mlservice_v2_mlservice_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VatDistributionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_mlservice_v2_mlservice_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VatDistributionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_ssn_mlservice_v2_mlservice_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FeatureGenRequest_TruthLabels); i { case 0: return &v.state @@ -1783,7 +1939,7 @@ func file_ssn_mlservice_v2_mlservice_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_ssn_mlservice_v2_mlservice_proto_rawDesc, NumEnums: 0, - NumMessages: 10, + NumMessages: 12, NumExtensions: 0, NumServices: 1, }, diff --git a/gen/go/ssn/type/candidate.pb.go b/gen/go/ssn/type/candidate.pb.go index dfffd265..2420713f 100644 --- a/gen/go/ssn/type/candidate.pb.go +++ b/gen/go/ssn/type/candidate.pb.go @@ -769,6 +769,72 @@ func (x *PageText) GetText() string { return "" } +type VatDistributionCandidate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The vat distribution candidate percentage + Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"` + // The vat distribution candidate amount + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + // Model metadata + ModelMetadata *ModelSpec `protobuf:"bytes,3,opt,name=model_metadata,json=modelMetadata,proto3" json:"model_metadata,omitempty"` +} + +func (x *VatDistributionCandidate) Reset() { + *x = VatDistributionCandidate{} + if protoimpl.UnsafeEnabled { + mi := &file_ssn_type_candidate_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VatDistributionCandidate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VatDistributionCandidate) ProtoMessage() {} + +func (x *VatDistributionCandidate) ProtoReflect() protoreflect.Message { + mi := &file_ssn_type_candidate_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VatDistributionCandidate.ProtoReflect.Descriptor instead. +func (*VatDistributionCandidate) Descriptor() ([]byte, []int) { + return file_ssn_type_candidate_proto_rawDescGZIP(), []int{7} +} + +func (x *VatDistributionCandidate) GetPercentage() string { + if x != nil { + return x.Percentage + } + return "" +} + +func (x *VatDistributionCandidate) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *VatDistributionCandidate) GetModelMetadata() *ModelSpec { + if x != nil { + return x.ModelMetadata + } + return nil +} + var File_ssn_type_candidate_proto protoreflect.FileDescriptor var file_ssn_type_candidate_proto_rawDesc = []byte{ @@ -880,17 +946,26 @@ var file_ssn_type_candidate_proto_rawDesc = []byte{ 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, 0x54, 0x65, 0x78, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x61, 0x67, 0x65, 0x52, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x61, 0x69, - 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, - 0x0e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x2d, - 0x63, 0x6f, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x2f, 0x76, 0x6d, 0x6c, 0x61, 0x70, 0x69, 0x73, 0x2f, - 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x73, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x3b, - 0x73, 0x73, 0x6e, 0x74, 0x79, 0x70, 0x65, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x08, - 0x53, 0x73, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0xca, 0x02, 0x08, 0x53, 0x73, 0x6e, 0x5c, 0x54, - 0x79, 0x70, 0x65, 0xe2, 0x02, 0x14, 0x53, 0x73, 0x6e, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x53, 0x73, 0x6e, - 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x8e, 0x01, 0x0a, 0x18, 0x56, 0x61, + 0x74, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6e, + 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, + 0x74, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, + 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3a, + 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0d, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x61, + 0x69, 0x2e, 0x76, 0x69, 0x73, 0x6d, 0x61, 0x2e, 0x73, 0x73, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x42, 0x0e, 0x43, 0x61, 0x6e, 0x64, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, + 0x2d, 0x63, 0x6f, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x2f, 0x76, 0x6d, 0x6c, 0x61, 0x70, 0x69, 0x73, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x73, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x3b, 0x73, 0x73, 0x6e, 0x74, 0x79, 0x70, 0x65, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, + 0x08, 0x53, 0x73, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0xca, 0x02, 0x08, 0x53, 0x73, 0x6e, 0x5c, + 0x54, 0x79, 0x70, 0x65, 0xe2, 0x02, 0x14, 0x53, 0x73, 0x6e, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x53, 0x73, + 0x6e, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -906,37 +981,39 @@ func file_ssn_type_candidate_proto_rawDescGZIP() []byte { } var file_ssn_type_candidate_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_ssn_type_candidate_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_ssn_type_candidate_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_ssn_type_candidate_proto_goTypes = []interface{}{ - (Confidence_Level)(0), // 0: ssn.type.Confidence.Level - (Candidate_Type)(0), // 1: ssn.type.Candidate.Type - (*Confidence)(nil), // 2: ssn.type.Confidence - (*Candidate)(nil), // 3: ssn.type.Candidate - (*ModelSpec)(nil), // 4: ssn.type.ModelSpec - (*LineCandidate)(nil), // 5: ssn.type.LineCandidate - (*PurchaseLineCandidate)(nil), // 6: ssn.type.PurchaseLineCandidate - (*AnswerCandidate)(nil), // 7: ssn.type.AnswerCandidate - (*PageText)(nil), // 8: ssn.type.PageText - (*wrapperspb.FloatValue)(nil), // 9: google.protobuf.FloatValue - (*BoundingPoly)(nil), // 10: ssn.type.BoundingPoly - (*wrapperspb.Int64Value)(nil), // 11: google.protobuf.Int64Value + (Confidence_Level)(0), // 0: ssn.type.Confidence.Level + (Candidate_Type)(0), // 1: ssn.type.Candidate.Type + (*Confidence)(nil), // 2: ssn.type.Confidence + (*Candidate)(nil), // 3: ssn.type.Candidate + (*ModelSpec)(nil), // 4: ssn.type.ModelSpec + (*LineCandidate)(nil), // 5: ssn.type.LineCandidate + (*PurchaseLineCandidate)(nil), // 6: ssn.type.PurchaseLineCandidate + (*AnswerCandidate)(nil), // 7: ssn.type.AnswerCandidate + (*PageText)(nil), // 8: ssn.type.PageText + (*VatDistributionCandidate)(nil), // 9: ssn.type.VatDistributionCandidate + (*wrapperspb.FloatValue)(nil), // 10: google.protobuf.FloatValue + (*BoundingPoly)(nil), // 11: ssn.type.BoundingPoly + (*wrapperspb.Int64Value)(nil), // 12: google.protobuf.Int64Value } var file_ssn_type_candidate_proto_depIdxs = []int32{ 0, // 0: ssn.type.Confidence.level:type_name -> ssn.type.Confidence.Level - 9, // 1: ssn.type.Confidence.value:type_name -> google.protobuf.FloatValue + 10, // 1: ssn.type.Confidence.value:type_name -> google.protobuf.FloatValue 2, // 2: ssn.type.Candidate.confidence:type_name -> ssn.type.Confidence - 10, // 3: ssn.type.Candidate.bounding_box:type_name -> ssn.type.BoundingPoly + 11, // 3: ssn.type.Candidate.bounding_box:type_name -> ssn.type.BoundingPoly 1, // 4: ssn.type.Candidate.type:type_name -> ssn.type.Candidate.Type 4, // 5: ssn.type.Candidate.model_metadata:type_name -> ssn.type.ModelSpec - 11, // 6: ssn.type.ModelSpec.model_ver:type_name -> google.protobuf.Int64Value + 12, // 6: ssn.type.ModelSpec.model_ver:type_name -> google.protobuf.Int64Value 4, // 7: ssn.type.PurchaseLineCandidate.model_metadata:type_name -> ssn.type.ModelSpec 2, // 8: ssn.type.AnswerCandidate.confidence:type_name -> ssn.type.Confidence 4, // 9: ssn.type.AnswerCandidate.model_metadata:type_name -> ssn.type.ModelSpec - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 4, // 10: ssn.type.VatDistributionCandidate.model_metadata:type_name -> ssn.type.ModelSpec + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_ssn_type_candidate_proto_init() } @@ -1030,6 +1107,18 @@ func file_ssn_type_candidate_proto_init() { return nil } } + file_ssn_type_candidate_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VatDistributionCandidate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1037,7 +1126,7 @@ func file_ssn_type_candidate_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_ssn_type_candidate_proto_rawDesc, NumEnums: 2, - NumMessages: 7, + NumMessages: 8, NumExtensions: 0, NumServices: 0, }, diff --git a/gen/java/ai/visma/ssn/annotator/v1/AnnotatorProto.java b/gen/java/ai/visma/ssn/annotator/v1/AnnotatorProto.java index 4cd19825..e7a06445 100644 --- a/gen/java/ai/visma/ssn/annotator/v1/AnnotatorProto.java +++ b/gen/java/ai/visma/ssn/annotator/v1/AnnotatorProto.java @@ -63,11 +63,11 @@ public static void registerAllExtensions( "to\032.protoc-gen-openapiv2/options/annotat" + "ions.proto\032\030ssn/type/candidate.proto\032\036ss" + "n/type/text_annotation.proto\032\023ssn/type/t" + - "ier.proto\"\245\t\n\007Feature\0222\n\004type\030\001 \001(\0162\036.ss" + + "ier.proto\"\273\t\n\007Feature\0222\n\004type\030\001 \001(\0162\036.ss" + "n.annotator.v1.Feature.TypeR\004type\022\037\n\013max" + "_results\030\002 \001(\005R\nmaxResults\022A\n\016min_confid" + "ence\030\003 \001(\0162\032.ssn.type.Confidence.LevelR\r" + - "minConfidence\"\201\010\n\004Type\022\013\n\007DEFAULT\020\000\022\023\n\017T" + + "minConfidence\"\227\010\n\004Type\022\013\n\007DEFAULT\020\000\022\023\n\017T" + "EXT_ANNOTATION\020\001\022\016\n\nORDER_DATE\020\002\022\024\n\020PAYM" + "ENT_DUE_DATE\020\003\022\014\n\010CURRENCY\020\004\022\r\n\tTOTAL_VA" + "T\020\005\022\022\n\016TOTAL_INCL_VAT\020\006\022\022\n\016TOTAL_EXCL_VA" + @@ -93,110 +93,113 @@ public static void registerAllExtensions( "IVER_ADDRESS\020(\022\031\n\025RECEIVER_COUNTRY_CODE\020" + ")\022\021\n\rRECEIVER_NAME\020*\022\027\n\023RECEIVER_VAT_NUM" + "BER\020+\022\022\n\016PURCHASE_LINES\020,\022\016\n\nPAGE_TEXTS\020" + - "-\"\373\001\n\030DocumentAnnotatorRequest\0226\n\010docume" + - "nt\030\001 \001(\0132\032.ssn.annotator.v1.DocumentR\010do" + - "cument\0225\n\010features\030\002 \003(\0132\031.ssn.annotator" + - ".v1.FeatureR\010features\022\022\n\004tags\030\003 \003(\tR\004tag" + - "s\022\"\n\004tier\030\004 \001(\0162\016.ssn.type.TierR\004tier\022\032\n" + - "\010segments\030\005 \003(\tR\010segments\022\034\n\tquestions\030\006" + - " \003(\tR\tquestions\"\224\027\n\031DocumentAnnotatorRes" + - "ponse\0222\n\norder_date\030\001 \003(\0132\023.ssn.type.Can" + - "didateR\torderDate\022=\n\020payment_due_date\030\002 " + - "\003(\0132\023.ssn.type.CandidateR\016paymentDueDate" + - "\022/\n\010currency\030\003 \003(\0132\023.ssn.type.CandidateR" + - "\010currency\0220\n\ttotal_vat\030\004 \003(\0132\023.ssn.type." + - "CandidateR\010totalVat\0229\n\016total_incl_vat\030\005 " + - "\003(\0132\023.ssn.type.CandidateR\014totalInclVat\0229" + - "\n\016total_excl_vat\030\006 \003(\0132\023.ssn.type.Candid" + - "ateR\014totalExclVat\022G\n\025supplier_corporate_" + - "id\030\007 \003(\0132\023.ssn.type.CandidateR\023supplierC" + - "orporateId\022G\n\025supplier_country_code\030\010 \003(" + - "\0132\023.ssn.type.CandidateR\023supplierCountryC" + - "ode\0228\n\rdocument_type\030\t \003(\0132\023.ssn.type.Ca" + - "ndidateR\014documentType\022:\n\016payment_method\030" + - "\n \003(\0132\023.ssn.type.CandidateR\rpaymentMetho" + - "d\022F\n\025credit_card_last_four\030\013 \003(\0132\023.ssn.t" + - "ype.CandidateR\022creditCardLastFour\022:\n\016inv" + - "oice_number\030\014 \003(\0132\023.ssn.type.CandidateR\r" + - "invoiceNumber\022A\n\017text_annotation\030\r \001(\0132\030" + - ".ssn.type.TextAnnotationR\016textAnnotation" + - "\022<\n\020ocr_line_dk_type\030\016 \003(\0132\023.ssn.type.Ca" + - "ndidateR\rocrLineDkType\022G\n\026ocr_line_dk_pa" + - "yment_id\030\017 \003(\0132\023.ssn.type.CandidateR\022ocr" + - "LineDkPaymentId\022I\n\027ocr_line_dk_creditor_" + - "id\030\020 \003(\0132\023.ssn.type.CandidateR\023ocrLineDk" + - "CreditorId\022G\n\026ocr_line_se_payment_id\030\021 \003" + - "(\0132\023.ssn.type.CandidateR\022ocrLineSePaymen" + - "tId\022Z\n ocr_line_se_bankgiro_creditor_id\030" + - "\022 \003(\0132\023.ssn.type.CandidateR\033ocrLineSeBan" + - "kgiroCreditorId\022Z\n ocr_line_se_plusgiro_" + - "creditor_id\030\023 \003(\0132\023.ssn.type.CandidateR\033" + - "ocrLineSePlusgiroCreditorId\022G\n\026ocr_line_" + - "no_payment_id\030\024 \003(\0132\023.ssn.type.Candidate" + - "R\022ocrLineNoPaymentId\022G\n\026ocr_line_fi_paym" + - "ent_id\030\025 \003(\0132\023.ssn.type.CandidateR\022ocrLi" + - "neFiPaymentId\022G\n\026ocr_line_nl_payment_id\030" + - "\026 \003(\0132\023.ssn.type.CandidateR\022ocrLineNlPay" + - "mentId\022G\n\026ocr_line_be_payment_id\030( \003(\0132\023" + - ".ssn.type.CandidateR\022ocrLineBePaymentId\022" + - "\022\n\004text\030\027 \001(\tR\004text\022\037\n\013feedback_id\030\030 \001(\t" + - "R\nfeedbackId\022\'\n\004iban\030\031 \003(\0132\023.ssn.type.Ca" + - "ndidateR\004iban\022-\n\005lines\030\032 \003(\0132\027.ssn.type." + - "LineCandidateR\005lines\022\030\n\007preview\030\033 \001(\tR\007p" + - "review\022C\n\023bank_account_number\030\034 \003(\0132\023.ss" + - "n.type.CandidateR\021bankAccountNumber\022M\n\030b" + - "ank_registration_number\030\035 \003(\0132\023.ssn.type" + - ".CandidateR\026bankRegistrationNumber\022%\n\003bi" + - "c\030\036 \003(\0132\023.ssn.type.CandidateR\003bic\022<\n\017doc" + - "ument_number\030\037 \003(\0132\023.ssn.type.CandidateR" + - "\016documentNumber\0228\n\rdocument_date\030 \003(\0132\023" + - ".ssn.type.CandidateR\014documentDate\0226\n\014ord" + - "er_number\030! \003(\0132\023.ssn.type.CandidateR\013or" + - "derNumber\0228\n\rsupplier_name\030\" \003(\0132\023.ssn.t" + - "ype.CandidateR\014supplierName\022C\n\023supplier_" + - "vat_number\030# \003(\0132\023.ssn.type.CandidateR\021s" + - "upplierVatNumber\022U\n\034supplier_organisatio" + - "n_number\030$ \003(\0132\023.ssn.type.CandidateR\032sup" + - "plierOrganisationNumber\022>\n\020supplier_addr" + - "ess\030% \003(\0132\023.ssn.type.CandidateR\017supplier" + - "Address\022<\n\017customer_number\030& \003(\0132\023.ssn.t" + - "ype.CandidateR\016customerNumber\022G\n\025receive" + - "r_order_number\030\' \003(\0132\023.ssn.type.Candidat" + - "eR\023receiverOrderNumber\022>\n\020receiver_addre" + - "ss\030) \003(\0132\023.ssn.type.CandidateR\017receiverA" + - "ddress\022G\n\025receiver_country_code\030* \003(\0132\023." + - "ssn.type.CandidateR\023receiverCountryCode\022" + - "8\n\rreceiver_name\030+ \003(\0132\023.ssn.type.Candid" + - "ateR\014receiverName\022C\n\023receiver_vat_number" + - "\030, \003(\0132\023.ssn.type.CandidateR\021receiverVat" + - "Number\022F\n\016purchase_lines\030- \003(\0132\037.ssn.typ" + - "e.PurchaseLineCandidateR\rpurchaseLines\0223" + - "\n\007answers\030. \003(\0132\031.ssn.type.AnswerCandida" + - "teR\007answers\0221\n\npage_texts\030/ \003(\0132\022.ssn.ty" + - "pe.PageTextR\tpageTexts\"^\n\010Document\022\030\n\007co" + - "ntent\030\001 \001(\014R\007content\0228\n\006source\030\002 \001(\0132 .s" + - "sn.annotator.v1.DocumentSourceR\006source\"+" + - "\n\016DocumentSource\022\031\n\010http_uri\030\001 \001(\tR\007http" + - "Uri\"o\n\027DocumentQuestionRequest\0226\n\010docume" + - "nt\030\001 \001(\0132\032.ssn.annotator.v1.DocumentR\010do" + - "cument\022\034\n\tquestions\030\002 \003(\tR\tquestions\"U\n\030" + - "DocumentQuestionResponse\0223\n\007answers\030\002 \003(" + - "\0132\031.ssn.type.AnswerCandidateR\007answersJ\004\010" + - "\001\020\0022\275\002\n\021DocumentAnnotator\022\215\001\n\020AnnotateDo" + - "cument\022*.ssn.annotator.v1.DocumentAnnota" + - "torRequest\032+.ssn.annotator.v1.DocumentAn" + - "notatorResponse\" \202\323\344\223\002\032\"\025/v1/document:an" + - "notate:\001*\022\227\001\n\026AnswerDocumentQuestion\022).s" + - "sn.annotator.v1.DocumentQuestionRequest\032" + - "*.ssn.annotator.v1.DocumentQuestionRespo" + - "nse\"&\202\323\344\223\002 \"\033/v1/document:answerquestion" + - ":\001*B\210\002\n\031ai.visma.ssn.annotator.v1B\016Annot" + - "atorProtoP\001Z>github.com/e-conomic/vmlapi" + - "s/gen/go/ssn/annotator/v1;annotator\242\002\003SA" + - "X\252\002\020Ssn.Annotator.V1\312\002\020Ssn\\Annotator\\V1\342" + - "\002\034Ssn\\Annotator\\V1\\GPBMetadata\352\002\022Ssn::An" + - "notator::V1\222A8\022\017\n\tSmartScan2\002v1*\001\0022\020appl" + - "ication/json:\020application/jsonb\006proto3" + "-\022\024\n\020VAT_DISTRIBUTION\020.\"\373\001\n\030DocumentAnno" + + "tatorRequest\0226\n\010document\030\001 \001(\0132\032.ssn.ann" + + "otator.v1.DocumentR\010document\0225\n\010features" + + "\030\002 \003(\0132\031.ssn.annotator.v1.FeatureR\010featu" + + "res\022\022\n\004tags\030\003 \003(\tR\004tags\022\"\n\004tier\030\004 \001(\0162\016." + + "ssn.type.TierR\004tier\022\032\n\010segments\030\005 \003(\tR\010s" + + "egments\022\034\n\tquestions\030\006 \003(\tR\tquestions\"\370\027" + + "\n\031DocumentAnnotatorResponse\0222\n\norder_dat" + + "e\030\001 \003(\0132\023.ssn.type.CandidateR\torderDate\022" + + "=\n\020payment_due_date\030\002 \003(\0132\023.ssn.type.Can" + + "didateR\016paymentDueDate\022/\n\010currency\030\003 \003(\013" + + "2\023.ssn.type.CandidateR\010currency\0220\n\ttotal" + + "_vat\030\004 \003(\0132\023.ssn.type.CandidateR\010totalVa" + + "t\0229\n\016total_incl_vat\030\005 \003(\0132\023.ssn.type.Can" + + "didateR\014totalInclVat\0229\n\016total_excl_vat\030\006" + + " \003(\0132\023.ssn.type.CandidateR\014totalExclVat\022" + + "G\n\025supplier_corporate_id\030\007 \003(\0132\023.ssn.typ" + + "e.CandidateR\023supplierCorporateId\022G\n\025supp" + + "lier_country_code\030\010 \003(\0132\023.ssn.type.Candi" + + "dateR\023supplierCountryCode\0228\n\rdocument_ty" + + "pe\030\t \003(\0132\023.ssn.type.CandidateR\014documentT" + + "ype\022:\n\016payment_method\030\n \003(\0132\023.ssn.type.C" + + "andidateR\rpaymentMethod\022F\n\025credit_card_l" + + "ast_four\030\013 \003(\0132\023.ssn.type.CandidateR\022cre" + + "ditCardLastFour\022:\n\016invoice_number\030\014 \003(\0132" + + "\023.ssn.type.CandidateR\rinvoiceNumber\022A\n\017t" + + "ext_annotation\030\r \001(\0132\030.ssn.type.TextAnno" + + "tationR\016textAnnotation\022<\n\020ocr_line_dk_ty" + + "pe\030\016 \003(\0132\023.ssn.type.CandidateR\rocrLineDk" + + "Type\022G\n\026ocr_line_dk_payment_id\030\017 \003(\0132\023.s" + + "sn.type.CandidateR\022ocrLineDkPaymentId\022I\n" + + "\027ocr_line_dk_creditor_id\030\020 \003(\0132\023.ssn.typ" + + "e.CandidateR\023ocrLineDkCreditorId\022G\n\026ocr_" + + "line_se_payment_id\030\021 \003(\0132\023.ssn.type.Cand" + + "idateR\022ocrLineSePaymentId\022Z\n ocr_line_se" + + "_bankgiro_creditor_id\030\022 \003(\0132\023.ssn.type.C" + + "andidateR\033ocrLineSeBankgiroCreditorId\022Z\n" + + " ocr_line_se_plusgiro_creditor_id\030\023 \003(\0132" + + "\023.ssn.type.CandidateR\033ocrLineSePlusgiroC" + + "reditorId\022G\n\026ocr_line_no_payment_id\030\024 \003(" + + "\0132\023.ssn.type.CandidateR\022ocrLineNoPayment" + + "Id\022G\n\026ocr_line_fi_payment_id\030\025 \003(\0132\023.ssn" + + ".type.CandidateR\022ocrLineFiPaymentId\022G\n\026o" + + "cr_line_nl_payment_id\030\026 \003(\0132\023.ssn.type.C" + + "andidateR\022ocrLineNlPaymentId\022G\n\026ocr_line" + + "_be_payment_id\030( \003(\0132\023.ssn.type.Candidat" + + "eR\022ocrLineBePaymentId\022\022\n\004text\030\027 \001(\tR\004tex" + + "t\022\037\n\013feedback_id\030\030 \001(\tR\nfeedbackId\022\'\n\004ib" + + "an\030\031 \003(\0132\023.ssn.type.CandidateR\004iban\022-\n\005l" + + "ines\030\032 \003(\0132\027.ssn.type.LineCandidateR\005lin" + + "es\022\030\n\007preview\030\033 \001(\tR\007preview\022C\n\023bank_acc" + + "ount_number\030\034 \003(\0132\023.ssn.type.CandidateR\021" + + "bankAccountNumber\022M\n\030bank_registration_n" + + "umber\030\035 \003(\0132\023.ssn.type.CandidateR\026bankRe" + + "gistrationNumber\022%\n\003bic\030\036 \003(\0132\023.ssn.type" + + ".CandidateR\003bic\022<\n\017document_number\030\037 \003(\013" + + "2\023.ssn.type.CandidateR\016documentNumber\0228\n" + + "\rdocument_date\030 \003(\0132\023.ssn.type.Candidat" + + "eR\014documentDate\0226\n\014order_number\030! \003(\0132\023." + + "ssn.type.CandidateR\013orderNumber\0228\n\rsuppl" + + "ier_name\030\" \003(\0132\023.ssn.type.CandidateR\014sup" + + "plierName\022C\n\023supplier_vat_number\030# \003(\0132\023" + + ".ssn.type.CandidateR\021supplierVatNumber\022U" + + "\n\034supplier_organisation_number\030$ \003(\0132\023.s" + + "sn.type.CandidateR\032supplierOrganisationN" + + "umber\022>\n\020supplier_address\030% \003(\0132\023.ssn.ty" + + "pe.CandidateR\017supplierAddress\022<\n\017custome" + + "r_number\030& \003(\0132\023.ssn.type.CandidateR\016cus" + + "tomerNumber\022G\n\025receiver_order_number\030\' \003" + + "(\0132\023.ssn.type.CandidateR\023receiverOrderNu" + + "mber\022>\n\020receiver_address\030) \003(\0132\023.ssn.typ" + + "e.CandidateR\017receiverAddress\022G\n\025receiver" + + "_country_code\030* \003(\0132\023.ssn.type.Candidate" + + "R\023receiverCountryCode\0228\n\rreceiver_name\030+" + + " \003(\0132\023.ssn.type.CandidateR\014receiverName\022" + + "C\n\023receiver_vat_number\030, \003(\0132\023.ssn.type." + + "CandidateR\021receiverVatNumber\022F\n\016purchase" + + "_lines\030- \003(\0132\037.ssn.type.PurchaseLineCand" + + "idateR\rpurchaseLines\0223\n\007answers\030. \003(\0132\031." + + "ssn.type.AnswerCandidateR\007answers\0221\n\npag" + + "e_texts\030/ \003(\0132\022.ssn.type.PageTextR\tpageT" + + "exts\022b\n\033vat_distribution_candidates\0300 \003(" + + "\0132\".ssn.type.VatDistributionCandidateR\031v" + + "atDistributionCandidates\"^\n\010Document\022\030\n\007" + + "content\030\001 \001(\014R\007content\0228\n\006source\030\002 \001(\0132 " + + ".ssn.annotator.v1.DocumentSourceR\006source" + + "\"+\n\016DocumentSource\022\031\n\010http_uri\030\001 \001(\tR\007ht" + + "tpUri\"o\n\027DocumentQuestionRequest\0226\n\010docu" + + "ment\030\001 \001(\0132\032.ssn.annotator.v1.DocumentR\010" + + "document\022\034\n\tquestions\030\002 \003(\tR\tquestions\"U" + + "\n\030DocumentQuestionResponse\0223\n\007answers\030\002 " + + "\003(\0132\031.ssn.type.AnswerCandidateR\007answersJ" + + "\004\010\001\020\0022\275\002\n\021DocumentAnnotator\022\215\001\n\020Annotate" + + "Document\022*.ssn.annotator.v1.DocumentAnno" + + "tatorRequest\032+.ssn.annotator.v1.Document" + + "AnnotatorResponse\" \202\323\344\223\002\032\"\025/v1/document:" + + "annotate:\001*\022\227\001\n\026AnswerDocumentQuestion\022)" + + ".ssn.annotator.v1.DocumentQuestionReques" + + "t\032*.ssn.annotator.v1.DocumentQuestionRes" + + "ponse\"&\202\323\344\223\002 \"\033/v1/document:answerquesti" + + "on:\001*B\210\002\n\031ai.visma.ssn.annotator.v1B\016Ann" + + "otatorProtoP\001Z>github.com/e-conomic/vmla" + + "pis/gen/go/ssn/annotator/v1;annotator\242\002\003" + + "SAX\252\002\020Ssn.Annotator.V1\312\002\020Ssn\\Annotator\\V" + + "1\342\002\034Ssn\\Annotator\\V1\\GPBMetadata\352\002\022Ssn::" + + "Annotator::V1\222A8\022\017\n\tSmartScan2\002v1*\001\0022\020ap" + + "plication/json:\020application/jsonb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -224,7 +227,7 @@ public static void registerAllExtensions( internal_static_ssn_annotator_v1_DocumentAnnotatorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ssn_annotator_v1_DocumentAnnotatorResponse_descriptor, - new java.lang.String[] { "OrderDate", "PaymentDueDate", "Currency", "TotalVat", "TotalInclVat", "TotalExclVat", "SupplierCorporateId", "SupplierCountryCode", "DocumentType", "PaymentMethod", "CreditCardLastFour", "InvoiceNumber", "TextAnnotation", "OcrLineDkType", "OcrLineDkPaymentId", "OcrLineDkCreditorId", "OcrLineSePaymentId", "OcrLineSeBankgiroCreditorId", "OcrLineSePlusgiroCreditorId", "OcrLineNoPaymentId", "OcrLineFiPaymentId", "OcrLineNlPaymentId", "OcrLineBePaymentId", "Text", "FeedbackId", "Iban", "Lines", "Preview", "BankAccountNumber", "BankRegistrationNumber", "Bic", "DocumentNumber", "DocumentDate", "OrderNumber", "SupplierName", "SupplierVatNumber", "SupplierOrganisationNumber", "SupplierAddress", "CustomerNumber", "ReceiverOrderNumber", "ReceiverAddress", "ReceiverCountryCode", "ReceiverName", "ReceiverVatNumber", "PurchaseLines", "Answers", "PageTexts", }); + new java.lang.String[] { "OrderDate", "PaymentDueDate", "Currency", "TotalVat", "TotalInclVat", "TotalExclVat", "SupplierCorporateId", "SupplierCountryCode", "DocumentType", "PaymentMethod", "CreditCardLastFour", "InvoiceNumber", "TextAnnotation", "OcrLineDkType", "OcrLineDkPaymentId", "OcrLineDkCreditorId", "OcrLineSePaymentId", "OcrLineSeBankgiroCreditorId", "OcrLineSePlusgiroCreditorId", "OcrLineNoPaymentId", "OcrLineFiPaymentId", "OcrLineNlPaymentId", "OcrLineBePaymentId", "Text", "FeedbackId", "Iban", "Lines", "Preview", "BankAccountNumber", "BankRegistrationNumber", "Bic", "DocumentNumber", "DocumentDate", "OrderNumber", "SupplierName", "SupplierVatNumber", "SupplierOrganisationNumber", "SupplierAddress", "CustomerNumber", "ReceiverOrderNumber", "ReceiverAddress", "ReceiverCountryCode", "ReceiverName", "ReceiverVatNumber", "PurchaseLines", "Answers", "PageTexts", "VatDistributionCandidates", }); internal_static_ssn_annotator_v1_Document_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_ssn_annotator_v1_Document_fieldAccessorTable = new diff --git a/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponse.java b/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponse.java index 2bb38edc..f6cd6425 100644 --- a/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponse.java +++ b/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponse.java @@ -62,6 +62,7 @@ private DocumentAnnotatorResponse() { purchaseLines_ = java.util.Collections.emptyList(); answers_ = java.util.Collections.emptyList(); pageTexts_ = java.util.Collections.emptyList(); + vatDistributionCandidates_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -3093,6 +3094,67 @@ public ai.visma.ssn.type.PageTextOrBuilder getPageTextsOrBuilder( return pageTexts_.get(index); } + public static final int VAT_DISTRIBUTION_CANDIDATES_FIELD_NUMBER = 48; + @SuppressWarnings("serial") + private java.util.List vatDistributionCandidates_; + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public java.util.List getVatDistributionCandidatesList() { + return vatDistributionCandidates_; + } + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public java.util.List + getVatDistributionCandidatesOrBuilderList() { + return vatDistributionCandidates_; + } + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public int getVatDistributionCandidatesCount() { + return vatDistributionCandidates_.size(); + } + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidate getVatDistributionCandidates(int index) { + return vatDistributionCandidates_.get(index); + } + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidateOrBuilder getVatDistributionCandidatesOrBuilder( + int index) { + return vatDistributionCandidates_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -3248,6 +3310,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < pageTexts_.size(); i++) { output.writeMessage(47, pageTexts_.get(i)); } + for (int i = 0; i < vatDistributionCandidates_.size(); i++) { + output.writeMessage(48, vatDistributionCandidates_.get(i)); + } getUnknownFields().writeTo(output); } @@ -3442,6 +3507,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(47, pageTexts_.get(i)); } + for (int i = 0; i < vatDistributionCandidates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(48, vatDistributionCandidates_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3554,6 +3623,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAnswersList())) return false; if (!getPageTextsList() .equals(other.getPageTextsList())) return false; + if (!getVatDistributionCandidatesList() + .equals(other.getVatDistributionCandidatesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3747,6 +3818,10 @@ public int hashCode() { hash = (37 * hash) + PAGE_TEXTS_FIELD_NUMBER; hash = (53 * hash) + getPageTextsList().hashCode(); } + if (getVatDistributionCandidatesCount() > 0) { + hash = (37 * hash) + VAT_DISTRIBUTION_CANDIDATES_FIELD_NUMBER; + hash = (53 * hash) + getVatDistributionCandidatesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4188,6 +4263,13 @@ public Builder clear() { pageTextsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00004000); + if (vatDistributionCandidatesBuilder_ == null) { + vatDistributionCandidates_ = java.util.Collections.emptyList(); + } else { + vatDistributionCandidates_ = null; + vatDistributionCandidatesBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00008000); return this; } @@ -4609,6 +4691,15 @@ private void buildPartialRepeatedFields(ai.visma.ssn.annotator.v1.DocumentAnnota } else { result.pageTexts_ = pageTextsBuilder_.build(); } + if (vatDistributionCandidatesBuilder_ == null) { + if (((bitField1_ & 0x00008000) != 0)) { + vatDistributionCandidates_ = java.util.Collections.unmodifiableList(vatDistributionCandidates_); + bitField1_ = (bitField1_ & ~0x00008000); + } + result.vatDistributionCandidates_ = vatDistributionCandidates_; + } else { + result.vatDistributionCandidates_ = vatDistributionCandidatesBuilder_.build(); + } } private void buildPartial0(ai.visma.ssn.annotator.v1.DocumentAnnotatorResponse result) { @@ -5813,6 +5904,32 @@ public Builder mergeFrom(ai.visma.ssn.annotator.v1.DocumentAnnotatorResponse oth } } } + if (vatDistributionCandidatesBuilder_ == null) { + if (!other.vatDistributionCandidates_.isEmpty()) { + if (vatDistributionCandidates_.isEmpty()) { + vatDistributionCandidates_ = other.vatDistributionCandidates_; + bitField1_ = (bitField1_ & ~0x00008000); + } else { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.addAll(other.vatDistributionCandidates_); + } + onChanged(); + } + } else { + if (!other.vatDistributionCandidates_.isEmpty()) { + if (vatDistributionCandidatesBuilder_.isEmpty()) { + vatDistributionCandidatesBuilder_.dispose(); + vatDistributionCandidatesBuilder_ = null; + vatDistributionCandidates_ = other.vatDistributionCandidates_; + bitField1_ = (bitField1_ & ~0x00008000); + vatDistributionCandidatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVatDistributionCandidatesFieldBuilder() : null; + } else { + vatDistributionCandidatesBuilder_.addAllMessages(other.vatDistributionCandidates_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6420,6 +6537,19 @@ public Builder mergeFrom( } break; } // case 378 + case 386: { + ai.visma.ssn.type.VatDistributionCandidate m = + input.readMessage( + ai.visma.ssn.type.VatDistributionCandidate.parser(), + extensionRegistry); + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(m); + } else { + vatDistributionCandidatesBuilder_.addMessage(m); + } + break; + } // case 386 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -21027,6 +21157,318 @@ public ai.visma.ssn.type.PageText.Builder addPageTextsBuilder( } return pageTextsBuilder_; } + + private java.util.List vatDistributionCandidates_ = + java.util.Collections.emptyList(); + private void ensureVatDistributionCandidatesIsMutable() { + if (!((bitField1_ & 0x00008000) != 0)) { + vatDistributionCandidates_ = new java.util.ArrayList(vatDistributionCandidates_); + bitField1_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + ai.visma.ssn.type.VatDistributionCandidate, ai.visma.ssn.type.VatDistributionCandidate.Builder, ai.visma.ssn.type.VatDistributionCandidateOrBuilder> vatDistributionCandidatesBuilder_; + + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public java.util.List getVatDistributionCandidatesList() { + if (vatDistributionCandidatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(vatDistributionCandidates_); + } else { + return vatDistributionCandidatesBuilder_.getMessageList(); + } + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public int getVatDistributionCandidatesCount() { + if (vatDistributionCandidatesBuilder_ == null) { + return vatDistributionCandidates_.size(); + } else { + return vatDistributionCandidatesBuilder_.getCount(); + } + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate getVatDistributionCandidates(int index) { + if (vatDistributionCandidatesBuilder_ == null) { + return vatDistributionCandidates_.get(index); + } else { + return vatDistributionCandidatesBuilder_.getMessage(index); + } + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder setVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate value) { + if (vatDistributionCandidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.set(index, value); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder setVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate.Builder builderForValue) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.set(index, builderForValue.build()); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates(ai.visma.ssn.type.VatDistributionCandidate value) { + if (vatDistributionCandidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(value); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate value) { + if (vatDistributionCandidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(index, value); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates( + ai.visma.ssn.type.VatDistributionCandidate.Builder builderForValue) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(builderForValue.build()); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate.Builder builderForValue) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(index, builderForValue.build()); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder addAllVatDistributionCandidates( + java.lang.Iterable values) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vatDistributionCandidates_); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder clearVatDistributionCandidates() { + if (vatDistributionCandidatesBuilder_ == null) { + vatDistributionCandidates_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00008000); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.clear(); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public Builder removeVatDistributionCandidates(int index) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.remove(index); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate.Builder getVatDistributionCandidatesBuilder( + int index) { + return getVatDistributionCandidatesFieldBuilder().getBuilder(index); + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidateOrBuilder getVatDistributionCandidatesOrBuilder( + int index) { + if (vatDistributionCandidatesBuilder_ == null) { + return vatDistributionCandidates_.get(index); } else { + return vatDistributionCandidatesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public java.util.List + getVatDistributionCandidatesOrBuilderList() { + if (vatDistributionCandidatesBuilder_ != null) { + return vatDistributionCandidatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vatDistributionCandidates_); + } + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate.Builder addVatDistributionCandidatesBuilder() { + return getVatDistributionCandidatesFieldBuilder().addBuilder( + ai.visma.ssn.type.VatDistributionCandidate.getDefaultInstance()); + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate.Builder addVatDistributionCandidatesBuilder( + int index) { + return getVatDistributionCandidatesFieldBuilder().addBuilder( + index, ai.visma.ssn.type.VatDistributionCandidate.getDefaultInstance()); + } + /** + *
+     * Vat levels for the document, each vat level has vat level percentage and vat level amount
+     * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + public java.util.List + getVatDistributionCandidatesBuilderList() { + return getVatDistributionCandidatesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + ai.visma.ssn.type.VatDistributionCandidate, ai.visma.ssn.type.VatDistributionCandidate.Builder, ai.visma.ssn.type.VatDistributionCandidateOrBuilder> + getVatDistributionCandidatesFieldBuilder() { + if (vatDistributionCandidatesBuilder_ == null) { + vatDistributionCandidatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + ai.visma.ssn.type.VatDistributionCandidate, ai.visma.ssn.type.VatDistributionCandidate.Builder, ai.visma.ssn.type.VatDistributionCandidateOrBuilder>( + vatDistributionCandidates_, + ((bitField1_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); + vatDistributionCandidates_ = null; + } + return vatDistributionCandidatesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponseOrBuilder.java b/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponseOrBuilder.java index c2eb0ced..644c883c 100644 --- a/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponseOrBuilder.java +++ b/gen/java/ai/visma/ssn/annotator/v1/DocumentAnnotatorResponseOrBuilder.java @@ -2192,4 +2192,48 @@ ai.visma.ssn.type.AnswerCandidateOrBuilder getAnswersOrBuilder( */ ai.visma.ssn.type.PageTextOrBuilder getPageTextsOrBuilder( int index); + + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + java.util.List + getVatDistributionCandidatesList(); + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + ai.visma.ssn.type.VatDistributionCandidate getVatDistributionCandidates(int index); + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + int getVatDistributionCandidatesCount(); + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + java.util.List + getVatDistributionCandidatesOrBuilderList(); + /** + *
+   * Vat levels for the document, each vat level has vat level percentage and vat level amount
+   * 
+ * + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 48 [json_name = "vatDistributionCandidates"]; + */ + ai.visma.ssn.type.VatDistributionCandidateOrBuilder getVatDistributionCandidatesOrBuilder( + int index); } diff --git a/gen/java/ai/visma/ssn/annotator/v1/Feature.java b/gen/java/ai/visma/ssn/annotator/v1/Feature.java index eaa0308a..555b5d7a 100644 --- a/gen/java/ai/visma/ssn/annotator/v1/Feature.java +++ b/gen/java/ai/visma/ssn/annotator/v1/Feature.java @@ -414,6 +414,14 @@ public enum Type * PAGE_TEXTS = 45; */ PAGE_TEXTS(45), + /** + *
+     * VAT distribution
+     * 
+ * + * VAT_DISTRIBUTION = 46; + */ + VAT_DISTRIBUTION(46), UNRECOGNIZED(-1), ; @@ -786,6 +794,14 @@ public enum Type * PAGE_TEXTS = 45; */ public static final int PAGE_TEXTS_VALUE = 45; + /** + *
+     * VAT distribution
+     * 
+ * + * VAT_DISTRIBUTION = 46; + */ + public static final int VAT_DISTRIBUTION_VALUE = 46; public final int getNumber() { @@ -858,6 +874,7 @@ public static Type forNumber(int value) { case 43: return RECEIVER_VAT_NUMBER; case 44: return PURCHASE_LINES; case 45: return PAGE_TEXTS; + case 46: return VAT_DISTRIBUTION; default: return null; } } diff --git a/gen/java/ai/visma/ssn/mlservice/v2/MlserviceProto.java b/gen/java/ai/visma/ssn/mlservice/v2/MlserviceProto.java index 76a6a2e7..f33013bb 100644 --- a/gen/java/ai/visma/ssn/mlservice/v2/MlserviceProto.java +++ b/gen/java/ai/visma/ssn/mlservice/v2/MlserviceProto.java @@ -64,6 +64,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ssn_mlservice_v2_DocQAResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_mlservice_v2_VatDistributionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ssn_mlservice_v2_VatDistributionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_mlservice_v2_VatDistributionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ssn_mlservice_v2_VatDistributionResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -212,20 +222,27 @@ public static void registerAllExtensions( "n.type.TextAnnotationR\016textAnnotation\022\024\n" + "\005image\030\002 \001(\014R\005image\022\034\n\tquestions\030\003 \003(\tR\t" + "questions\"D\n\rDocQAResponse\0223\n\007answers\030\001 " + - "\003(\0132\031.ssn.type.AnswerCandidateR\007answers2" + - "\230\002\n\tMlService\022W\n\nFeatureGen\022#.ssn.mlserv" + - "ice.v2.FeatureGenRequest\032$.ssn.mlservice" + - ".v2.FeatureGenResponse\022N\n\007Predict\022 .ssn." + - "mlservice.v2.PredictRequest\032!.ssn.mlserv" + - "ice.v2.PredictResponse\022b\n\021FeatureGenPred" + - "ict\022*.ssn.mlservice.v2.FeatureGenPredict" + - "Request\032!.ssn.mlservice.v2.PredictRespon" + - "seB\315\001\n\031ai.visma.ssn.mlservice.v2B\016Mlserv" + - "iceProtoP\001Z>github.com/e-conomic/vmlapis" + - "/gen/go/ssn/mlservice/v2;mlservice\242\002\003SMX" + - "\252\002\020Ssn.Mlservice.V2\312\002\020Ssn\\Mlservice\\V2\342\002" + - "\034Ssn\\Mlservice\\V2\\GPBMetadata\352\002\022Ssn::Mls" + - "ervice::V2b\006proto3" + "\003(\0132\031.ssn.type.AnswerCandidateR\007answers\"" + + "\224\001\n\026VatDistributionRequest\022A\n\017text_annot" + + "ation\030\001 \001(\0132\030.ssn.type.TextAnnotationR\016t" + + "extAnnotation\022\024\n\005image\030\002 \001(\014R\005image\022!\n\014c" + + "ountry_code\030\003 \001(\tR\013countryCode\"}\n\027VatDis" + + "tributionResponse\022b\n\033vat_distribution_ca" + + "ndidates\030\001 \003(\0132\".ssn.type.VatDistributio" + + "nCandidateR\031vatDistributionCandidates2\230\002" + + "\n\tMlService\022W\n\nFeatureGen\022#.ssn.mlservic" + + "e.v2.FeatureGenRequest\032$.ssn.mlservice.v" + + "2.FeatureGenResponse\022N\n\007Predict\022 .ssn.ml" + + "service.v2.PredictRequest\032!.ssn.mlservic" + + "e.v2.PredictResponse\022b\n\021FeatureGenPredic" + + "t\022*.ssn.mlservice.v2.FeatureGenPredictRe" + + "quest\032!.ssn.mlservice.v2.PredictResponse" + + "B\315\001\n\031ai.visma.ssn.mlservice.v2B\016Mlservic" + + "eProtoP\001Z>github.com/e-conomic/vmlapis/g" + + "en/go/ssn/mlservice/v2;mlservice\242\002\003SMX\252\002" + + "\020Ssn.Mlservice.V2\312\002\020Ssn\\Mlservice\\V2\342\002\034S" + + "sn\\Mlservice\\V2\\GPBMetadata\352\002\022Ssn::Mlser" + + "vice::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -294,6 +311,18 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ssn_mlservice_v2_DocQAResponse_descriptor, new java.lang.String[] { "Answers", }); + internal_static_ssn_mlservice_v2_VatDistributionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_ssn_mlservice_v2_VatDistributionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ssn_mlservice_v2_VatDistributionRequest_descriptor, + new java.lang.String[] { "TextAnnotation", "Image", "CountryCode", }); + internal_static_ssn_mlservice_v2_VatDistributionResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_ssn_mlservice_v2_VatDistributionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ssn_mlservice_v2_VatDistributionResponse_descriptor, + new java.lang.String[] { "VatDistributionCandidates", }); com.google.type.DateProto.getDescriptor(); ai.visma.ssn.type.CandidateProto.getDescriptor(); ai.visma.ssn.type.TextAnnotationProto.getDescriptor(); diff --git a/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequest.java b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequest.java new file mode 100644 index 00000000..fb12e848 --- /dev/null +++ b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequest.java @@ -0,0 +1,789 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/mlservice/v2/mlservice.proto + +package ai.visma.ssn.mlservice.v2; + +/** + * Protobuf type {@code ssn.mlservice.v2.VatDistributionRequest} + */ +public final class VatDistributionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ssn.mlservice.v2.VatDistributionRequest) + VatDistributionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use VatDistributionRequest.newBuilder() to construct. + private VatDistributionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VatDistributionRequest() { + image_ = com.google.protobuf.ByteString.EMPTY; + countryCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VatDistributionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.mlservice.v2.VatDistributionRequest.class, ai.visma.ssn.mlservice.v2.VatDistributionRequest.Builder.class); + } + + public static final int TEXT_ANNOTATION_FIELD_NUMBER = 1; + private ai.visma.ssn.type.TextAnnotation textAnnotation_; + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + * @return Whether the textAnnotation field is set. + */ + @java.lang.Override + public boolean hasTextAnnotation() { + return textAnnotation_ != null; + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + * @return The textAnnotation. + */ + @java.lang.Override + public ai.visma.ssn.type.TextAnnotation getTextAnnotation() { + return textAnnotation_ == null ? ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + @java.lang.Override + public ai.visma.ssn.type.TextAnnotationOrBuilder getTextAnnotationOrBuilder() { + return textAnnotation_ == null ? ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; + } + + public static final int IMAGE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString image_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes image = 2 [json_name = "image"]; + * @return The image. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImage() { + return image_; + } + + public static final int COUNTRY_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object countryCode_ = ""; + /** + * string country_code = 3 [json_name = "countryCode"]; + * @return The countryCode. + */ + @java.lang.Override + public java.lang.String getCountryCode() { + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } + } + /** + * string country_code = 3 [json_name = "countryCode"]; + * @return The bytes for countryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCountryCodeBytes() { + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (textAnnotation_ != null) { + output.writeMessage(1, getTextAnnotation()); + } + if (!image_.isEmpty()) { + output.writeBytes(2, image_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, countryCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (textAnnotation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTextAnnotation()); + } + if (!image_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, image_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, countryCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.mlservice.v2.VatDistributionRequest)) { + return super.equals(obj); + } + ai.visma.ssn.mlservice.v2.VatDistributionRequest other = (ai.visma.ssn.mlservice.v2.VatDistributionRequest) obj; + + if (hasTextAnnotation() != other.hasTextAnnotation()) return false; + if (hasTextAnnotation()) { + if (!getTextAnnotation() + .equals(other.getTextAnnotation())) return false; + } + if (!getImage() + .equals(other.getImage())) return false; + if (!getCountryCode() + .equals(other.getCountryCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTextAnnotation()) { + hash = (37 * hash) + TEXT_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getTextAnnotation().hashCode(); + } + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCountryCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.mlservice.v2.VatDistributionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.mlservice.v2.VatDistributionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.mlservice.v2.VatDistributionRequest) + ai.visma.ssn.mlservice.v2.VatDistributionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.mlservice.v2.VatDistributionRequest.class, ai.visma.ssn.mlservice.v2.VatDistributionRequest.Builder.class); + } + + // Construct using ai.visma.ssn.mlservice.v2.VatDistributionRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + textAnnotation_ = null; + if (textAnnotationBuilder_ != null) { + textAnnotationBuilder_.dispose(); + textAnnotationBuilder_ = null; + } + image_ = com.google.protobuf.ByteString.EMPTY; + countryCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionRequest_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionRequest getDefaultInstanceForType() { + return ai.visma.ssn.mlservice.v2.VatDistributionRequest.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionRequest build() { + ai.visma.ssn.mlservice.v2.VatDistributionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionRequest buildPartial() { + ai.visma.ssn.mlservice.v2.VatDistributionRequest result = new ai.visma.ssn.mlservice.v2.VatDistributionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(ai.visma.ssn.mlservice.v2.VatDistributionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.textAnnotation_ = textAnnotationBuilder_ == null + ? textAnnotation_ + : textAnnotationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.image_ = image_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.countryCode_ = countryCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.mlservice.v2.VatDistributionRequest) { + return mergeFrom((ai.visma.ssn.mlservice.v2.VatDistributionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.mlservice.v2.VatDistributionRequest other) { + if (other == ai.visma.ssn.mlservice.v2.VatDistributionRequest.getDefaultInstance()) return this; + if (other.hasTextAnnotation()) { + mergeTextAnnotation(other.getTextAnnotation()); + } + if (other.getImage() != com.google.protobuf.ByteString.EMPTY) { + setImage(other.getImage()); + } + if (!other.getCountryCode().isEmpty()) { + countryCode_ = other.countryCode_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTextAnnotationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + image_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + countryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private ai.visma.ssn.type.TextAnnotation textAnnotation_; + private com.google.protobuf.SingleFieldBuilderV3< + ai.visma.ssn.type.TextAnnotation, ai.visma.ssn.type.TextAnnotation.Builder, ai.visma.ssn.type.TextAnnotationOrBuilder> textAnnotationBuilder_; + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + * @return Whether the textAnnotation field is set. + */ + public boolean hasTextAnnotation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + * @return The textAnnotation. + */ + public ai.visma.ssn.type.TextAnnotation getTextAnnotation() { + if (textAnnotationBuilder_ == null) { + return textAnnotation_ == null ? ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; + } else { + return textAnnotationBuilder_.getMessage(); + } + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + public Builder setTextAnnotation(ai.visma.ssn.type.TextAnnotation value) { + if (textAnnotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textAnnotation_ = value; + } else { + textAnnotationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + public Builder setTextAnnotation( + ai.visma.ssn.type.TextAnnotation.Builder builderForValue) { + if (textAnnotationBuilder_ == null) { + textAnnotation_ = builderForValue.build(); + } else { + textAnnotationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + public Builder mergeTextAnnotation(ai.visma.ssn.type.TextAnnotation value) { + if (textAnnotationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + textAnnotation_ != null && + textAnnotation_ != ai.visma.ssn.type.TextAnnotation.getDefaultInstance()) { + getTextAnnotationBuilder().mergeFrom(value); + } else { + textAnnotation_ = value; + } + } else { + textAnnotationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + public Builder clearTextAnnotation() { + bitField0_ = (bitField0_ & ~0x00000001); + textAnnotation_ = null; + if (textAnnotationBuilder_ != null) { + textAnnotationBuilder_.dispose(); + textAnnotationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + public ai.visma.ssn.type.TextAnnotation.Builder getTextAnnotationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTextAnnotationFieldBuilder().getBuilder(); + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + public ai.visma.ssn.type.TextAnnotationOrBuilder getTextAnnotationOrBuilder() { + if (textAnnotationBuilder_ != null) { + return textAnnotationBuilder_.getMessageOrBuilder(); + } else { + return textAnnotation_ == null ? + ai.visma.ssn.type.TextAnnotation.getDefaultInstance() : textAnnotation_; + } + } + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + ai.visma.ssn.type.TextAnnotation, ai.visma.ssn.type.TextAnnotation.Builder, ai.visma.ssn.type.TextAnnotationOrBuilder> + getTextAnnotationFieldBuilder() { + if (textAnnotationBuilder_ == null) { + textAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ai.visma.ssn.type.TextAnnotation, ai.visma.ssn.type.TextAnnotation.Builder, ai.visma.ssn.type.TextAnnotationOrBuilder>( + getTextAnnotation(), + getParentForChildren(), + isClean()); + textAnnotation_ = null; + } + return textAnnotationBuilder_; + } + + private com.google.protobuf.ByteString image_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes image = 2 [json_name = "image"]; + * @return The image. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImage() { + return image_; + } + /** + * bytes image = 2 [json_name = "image"]; + * @param value The image to set. + * @return This builder for chaining. + */ + public Builder setImage(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + image_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bytes image = 2 [json_name = "image"]; + * @return This builder for chaining. + */ + public Builder clearImage() { + bitField0_ = (bitField0_ & ~0x00000002); + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + + private java.lang.Object countryCode_ = ""; + /** + * string country_code = 3 [json_name = "countryCode"]; + * @return The countryCode. + */ + public java.lang.String getCountryCode() { + java.lang.Object ref = countryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string country_code = 3 [json_name = "countryCode"]; + * @return The bytes for countryCode. + */ + public com.google.protobuf.ByteString + getCountryCodeBytes() { + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string country_code = 3 [json_name = "countryCode"]; + * @param value The countryCode to set. + * @return This builder for chaining. + */ + public Builder setCountryCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + countryCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string country_code = 3 [json_name = "countryCode"]; + * @return This builder for chaining. + */ + public Builder clearCountryCode() { + countryCode_ = getDefaultInstance().getCountryCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string country_code = 3 [json_name = "countryCode"]; + * @param value The bytes for countryCode to set. + * @return This builder for chaining. + */ + public Builder setCountryCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + countryCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ssn.mlservice.v2.VatDistributionRequest) + } + + // @@protoc_insertion_point(class_scope:ssn.mlservice.v2.VatDistributionRequest) + private static final ai.visma.ssn.mlservice.v2.VatDistributionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.mlservice.v2.VatDistributionRequest(); + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VatDistributionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequestOrBuilder.java b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequestOrBuilder.java new file mode 100644 index 00000000..eed91a18 --- /dev/null +++ b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionRequestOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/mlservice/v2/mlservice.proto + +package ai.visma.ssn.mlservice.v2; + +public interface VatDistributionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.mlservice.v2.VatDistributionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + * @return Whether the textAnnotation field is set. + */ + boolean hasTextAnnotation(); + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + * @return The textAnnotation. + */ + ai.visma.ssn.type.TextAnnotation getTextAnnotation(); + /** + * .ssn.type.TextAnnotation text_annotation = 1 [json_name = "textAnnotation"]; + */ + ai.visma.ssn.type.TextAnnotationOrBuilder getTextAnnotationOrBuilder(); + + /** + * bytes image = 2 [json_name = "image"]; + * @return The image. + */ + com.google.protobuf.ByteString getImage(); + + /** + * string country_code = 3 [json_name = "countryCode"]; + * @return The countryCode. + */ + java.lang.String getCountryCode(); + /** + * string country_code = 3 [json_name = "countryCode"]; + * @return The bytes for countryCode. + */ + com.google.protobuf.ByteString + getCountryCodeBytes(); +} diff --git a/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponse.java b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponse.java new file mode 100644 index 00000000..f0f2aca0 --- /dev/null +++ b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponse.java @@ -0,0 +1,759 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/mlservice/v2/mlservice.proto + +package ai.visma.ssn.mlservice.v2; + +/** + * Protobuf type {@code ssn.mlservice.v2.VatDistributionResponse} + */ +public final class VatDistributionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ssn.mlservice.v2.VatDistributionResponse) + VatDistributionResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use VatDistributionResponse.newBuilder() to construct. + private VatDistributionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VatDistributionResponse() { + vatDistributionCandidates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VatDistributionResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.mlservice.v2.VatDistributionResponse.class, ai.visma.ssn.mlservice.v2.VatDistributionResponse.Builder.class); + } + + public static final int VAT_DISTRIBUTION_CANDIDATES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List vatDistributionCandidates_; + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public java.util.List getVatDistributionCandidatesList() { + return vatDistributionCandidates_; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public java.util.List + getVatDistributionCandidatesOrBuilderList() { + return vatDistributionCandidates_; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public int getVatDistributionCandidatesCount() { + return vatDistributionCandidates_.size(); + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidate getVatDistributionCandidates(int index) { + return vatDistributionCandidates_.get(index); + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidateOrBuilder getVatDistributionCandidatesOrBuilder( + int index) { + return vatDistributionCandidates_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < vatDistributionCandidates_.size(); i++) { + output.writeMessage(1, vatDistributionCandidates_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < vatDistributionCandidates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vatDistributionCandidates_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.mlservice.v2.VatDistributionResponse)) { + return super.equals(obj); + } + ai.visma.ssn.mlservice.v2.VatDistributionResponse other = (ai.visma.ssn.mlservice.v2.VatDistributionResponse) obj; + + if (!getVatDistributionCandidatesList() + .equals(other.getVatDistributionCandidatesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVatDistributionCandidatesCount() > 0) { + hash = (37 * hash) + VAT_DISTRIBUTION_CANDIDATES_FIELD_NUMBER; + hash = (53 * hash) + getVatDistributionCandidatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.mlservice.v2.VatDistributionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.mlservice.v2.VatDistributionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.mlservice.v2.VatDistributionResponse) + ai.visma.ssn.mlservice.v2.VatDistributionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.mlservice.v2.VatDistributionResponse.class, ai.visma.ssn.mlservice.v2.VatDistributionResponse.Builder.class); + } + + // Construct using ai.visma.ssn.mlservice.v2.VatDistributionResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vatDistributionCandidatesBuilder_ == null) { + vatDistributionCandidates_ = java.util.Collections.emptyList(); + } else { + vatDistributionCandidates_ = null; + vatDistributionCandidatesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.mlservice.v2.MlserviceProto.internal_static_ssn_mlservice_v2_VatDistributionResponse_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionResponse getDefaultInstanceForType() { + return ai.visma.ssn.mlservice.v2.VatDistributionResponse.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionResponse build() { + ai.visma.ssn.mlservice.v2.VatDistributionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionResponse buildPartial() { + ai.visma.ssn.mlservice.v2.VatDistributionResponse result = new ai.visma.ssn.mlservice.v2.VatDistributionResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ai.visma.ssn.mlservice.v2.VatDistributionResponse result) { + if (vatDistributionCandidatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vatDistributionCandidates_ = java.util.Collections.unmodifiableList(vatDistributionCandidates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vatDistributionCandidates_ = vatDistributionCandidates_; + } else { + result.vatDistributionCandidates_ = vatDistributionCandidatesBuilder_.build(); + } + } + + private void buildPartial0(ai.visma.ssn.mlservice.v2.VatDistributionResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.mlservice.v2.VatDistributionResponse) { + return mergeFrom((ai.visma.ssn.mlservice.v2.VatDistributionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.mlservice.v2.VatDistributionResponse other) { + if (other == ai.visma.ssn.mlservice.v2.VatDistributionResponse.getDefaultInstance()) return this; + if (vatDistributionCandidatesBuilder_ == null) { + if (!other.vatDistributionCandidates_.isEmpty()) { + if (vatDistributionCandidates_.isEmpty()) { + vatDistributionCandidates_ = other.vatDistributionCandidates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.addAll(other.vatDistributionCandidates_); + } + onChanged(); + } + } else { + if (!other.vatDistributionCandidates_.isEmpty()) { + if (vatDistributionCandidatesBuilder_.isEmpty()) { + vatDistributionCandidatesBuilder_.dispose(); + vatDistributionCandidatesBuilder_ = null; + vatDistributionCandidates_ = other.vatDistributionCandidates_; + bitField0_ = (bitField0_ & ~0x00000001); + vatDistributionCandidatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVatDistributionCandidatesFieldBuilder() : null; + } else { + vatDistributionCandidatesBuilder_.addAllMessages(other.vatDistributionCandidates_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ai.visma.ssn.type.VatDistributionCandidate m = + input.readMessage( + ai.visma.ssn.type.VatDistributionCandidate.parser(), + extensionRegistry); + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(m); + } else { + vatDistributionCandidatesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List vatDistributionCandidates_ = + java.util.Collections.emptyList(); + private void ensureVatDistributionCandidatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vatDistributionCandidates_ = new java.util.ArrayList(vatDistributionCandidates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + ai.visma.ssn.type.VatDistributionCandidate, ai.visma.ssn.type.VatDistributionCandidate.Builder, ai.visma.ssn.type.VatDistributionCandidateOrBuilder> vatDistributionCandidatesBuilder_; + + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public java.util.List getVatDistributionCandidatesList() { + if (vatDistributionCandidatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(vatDistributionCandidates_); + } else { + return vatDistributionCandidatesBuilder_.getMessageList(); + } + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public int getVatDistributionCandidatesCount() { + if (vatDistributionCandidatesBuilder_ == null) { + return vatDistributionCandidates_.size(); + } else { + return vatDistributionCandidatesBuilder_.getCount(); + } + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate getVatDistributionCandidates(int index) { + if (vatDistributionCandidatesBuilder_ == null) { + return vatDistributionCandidates_.get(index); + } else { + return vatDistributionCandidatesBuilder_.getMessage(index); + } + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder setVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate value) { + if (vatDistributionCandidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.set(index, value); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder setVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate.Builder builderForValue) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.set(index, builderForValue.build()); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates(ai.visma.ssn.type.VatDistributionCandidate value) { + if (vatDistributionCandidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(value); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate value) { + if (vatDistributionCandidatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(index, value); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates( + ai.visma.ssn.type.VatDistributionCandidate.Builder builderForValue) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(builderForValue.build()); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder addVatDistributionCandidates( + int index, ai.visma.ssn.type.VatDistributionCandidate.Builder builderForValue) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.add(index, builderForValue.build()); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder addAllVatDistributionCandidates( + java.lang.Iterable values) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vatDistributionCandidates_); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder clearVatDistributionCandidates() { + if (vatDistributionCandidatesBuilder_ == null) { + vatDistributionCandidates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.clear(); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public Builder removeVatDistributionCandidates(int index) { + if (vatDistributionCandidatesBuilder_ == null) { + ensureVatDistributionCandidatesIsMutable(); + vatDistributionCandidates_.remove(index); + onChanged(); + } else { + vatDistributionCandidatesBuilder_.remove(index); + } + return this; + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate.Builder getVatDistributionCandidatesBuilder( + int index) { + return getVatDistributionCandidatesFieldBuilder().getBuilder(index); + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidateOrBuilder getVatDistributionCandidatesOrBuilder( + int index) { + if (vatDistributionCandidatesBuilder_ == null) { + return vatDistributionCandidates_.get(index); } else { + return vatDistributionCandidatesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public java.util.List + getVatDistributionCandidatesOrBuilderList() { + if (vatDistributionCandidatesBuilder_ != null) { + return vatDistributionCandidatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vatDistributionCandidates_); + } + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate.Builder addVatDistributionCandidatesBuilder() { + return getVatDistributionCandidatesFieldBuilder().addBuilder( + ai.visma.ssn.type.VatDistributionCandidate.getDefaultInstance()); + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public ai.visma.ssn.type.VatDistributionCandidate.Builder addVatDistributionCandidatesBuilder( + int index) { + return getVatDistributionCandidatesFieldBuilder().addBuilder( + index, ai.visma.ssn.type.VatDistributionCandidate.getDefaultInstance()); + } + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + public java.util.List + getVatDistributionCandidatesBuilderList() { + return getVatDistributionCandidatesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + ai.visma.ssn.type.VatDistributionCandidate, ai.visma.ssn.type.VatDistributionCandidate.Builder, ai.visma.ssn.type.VatDistributionCandidateOrBuilder> + getVatDistributionCandidatesFieldBuilder() { + if (vatDistributionCandidatesBuilder_ == null) { + vatDistributionCandidatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + ai.visma.ssn.type.VatDistributionCandidate, ai.visma.ssn.type.VatDistributionCandidate.Builder, ai.visma.ssn.type.VatDistributionCandidateOrBuilder>( + vatDistributionCandidates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + vatDistributionCandidates_ = null; + } + return vatDistributionCandidatesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ssn.mlservice.v2.VatDistributionResponse) + } + + // @@protoc_insertion_point(class_scope:ssn.mlservice.v2.VatDistributionResponse) + private static final ai.visma.ssn.mlservice.v2.VatDistributionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.mlservice.v2.VatDistributionResponse(); + } + + public static ai.visma.ssn.mlservice.v2.VatDistributionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VatDistributionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.mlservice.v2.VatDistributionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponseOrBuilder.java b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponseOrBuilder.java new file mode 100644 index 00000000..5b7070bc --- /dev/null +++ b/gen/java/ai/visma/ssn/mlservice/v2/VatDistributionResponseOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/mlservice/v2/mlservice.proto + +package ai.visma.ssn.mlservice.v2; + +public interface VatDistributionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.mlservice.v2.VatDistributionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + java.util.List + getVatDistributionCandidatesList(); + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + ai.visma.ssn.type.VatDistributionCandidate getVatDistributionCandidates(int index); + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + int getVatDistributionCandidatesCount(); + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + java.util.List + getVatDistributionCandidatesOrBuilderList(); + /** + * repeated .ssn.type.VatDistributionCandidate vat_distribution_candidates = 1 [json_name = "vatDistributionCandidates"]; + */ + ai.visma.ssn.type.VatDistributionCandidateOrBuilder getVatDistributionCandidatesOrBuilder( + int index); +} diff --git a/gen/java/ai/visma/ssn/type/CandidateProto.java b/gen/java/ai/visma/ssn/type/CandidateProto.java index 75cb37f7..30d90e34 100644 --- a/gen/java/ai/visma/ssn/type/CandidateProto.java +++ b/gen/java/ai/visma/ssn/type/CandidateProto.java @@ -49,6 +49,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ssn_type_PageText_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ssn_type_VatDistributionCandidate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_ssn_type_VatDistributionCandidate_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -101,11 +106,15 @@ public static void registerAllExtensions( "_metadata\030\007 \001(\0132\023.ssn.type.ModelSpecR\rmo" + "delMetadata\022\031\n\010page_ref\030\010 \001(\rR\007pageRef\"9" + "\n\010PageText\022\031\n\010page_ref\030\001 \001(\rR\007pageRef\022\022\n" + - "\004text\030\002 \001(\tR\004textB\232\001\n\021ai.visma.ssn.typeB" + - "\016CandidateProtoP\001Z4github.com/e-conomic/" + - "vmlapis/gen/go/ssn/type;ssntype\242\002\003STX\252\002\010" + - "Ssn.Type\312\002\010Ssn\\Type\342\002\024Ssn\\Type\\GPBMetada" + - "ta\352\002\tSsn::Typeb\006proto3" + "\004text\030\002 \001(\tR\004text\"\216\001\n\030VatDistributionCan" + + "didate\022\036\n\npercentage\030\001 \001(\tR\npercentage\022\026" + + "\n\006amount\030\002 \001(\tR\006amount\022:\n\016model_metadata" + + "\030\003 \001(\0132\023.ssn.type.ModelSpecR\rmodelMetada" + + "taB\232\001\n\021ai.visma.ssn.typeB\016CandidateProto" + + "P\001Z4github.com/e-conomic/vmlapis/gen/go/" + + "ssn/type;ssntype\242\002\003STX\252\002\010Ssn.Type\312\002\010Ssn\\" + + "Type\342\002\024Ssn\\Type\\GPBMetadata\352\002\tSsn::Typeb" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -155,6 +164,12 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ssn_type_PageText_descriptor, new java.lang.String[] { "PageRef", "Text", }); + internal_static_ssn_type_VatDistributionCandidate_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_ssn_type_VatDistributionCandidate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_ssn_type_VatDistributionCandidate_descriptor, + new java.lang.String[] { "Percentage", "Amount", "ModelMetadata", }); com.google.protobuf.WrappersProto.getDescriptor(); ai.visma.ssn.type.GeometryProto.getDescriptor(); } diff --git a/gen/java/ai/visma/ssn/type/VatDistributionCandidate.java b/gen/java/ai/visma/ssn/type/VatDistributionCandidate.java new file mode 100644 index 00000000..d530860e --- /dev/null +++ b/gen/java/ai/visma/ssn/type/VatDistributionCandidate.java @@ -0,0 +1,962 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/type/candidate.proto + +package ai.visma.ssn.type; + +/** + * Protobuf type {@code ssn.type.VatDistributionCandidate} + */ +public final class VatDistributionCandidate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:ssn.type.VatDistributionCandidate) + VatDistributionCandidateOrBuilder { +private static final long serialVersionUID = 0L; + // Use VatDistributionCandidate.newBuilder() to construct. + private VatDistributionCandidate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VatDistributionCandidate() { + percentage_ = ""; + amount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VatDistributionCandidate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.type.CandidateProto.internal_static_ssn_type_VatDistributionCandidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.type.CandidateProto.internal_static_ssn_type_VatDistributionCandidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.type.VatDistributionCandidate.class, ai.visma.ssn.type.VatDistributionCandidate.Builder.class); + } + + public static final int PERCENTAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object percentage_ = ""; + /** + *
+   * The vat distribution candidate percentage
+   * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @return The percentage. + */ + @java.lang.Override + public java.lang.String getPercentage() { + java.lang.Object ref = percentage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + percentage_ = s; + return s; + } + } + /** + *
+   * The vat distribution candidate percentage
+   * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @return The bytes for percentage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPercentageBytes() { + java.lang.Object ref = percentage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + percentage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object amount_ = ""; + /** + *
+   * The vat distribution candidate amount
+   * 
+ * + * string amount = 2 [json_name = "amount"]; + * @return The amount. + */ + @java.lang.Override + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
+   * The vat distribution candidate amount
+   * 
+ * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_METADATA_FIELD_NUMBER = 3; + private ai.visma.ssn.type.ModelSpec modelMetadata_; + /** + *
+   * Model metadata
+   * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + * @return Whether the modelMetadata field is set. + */ + @java.lang.Override + public boolean hasModelMetadata() { + return modelMetadata_ != null; + } + /** + *
+   * Model metadata
+   * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + * @return The modelMetadata. + */ + @java.lang.Override + public ai.visma.ssn.type.ModelSpec getModelMetadata() { + return modelMetadata_ == null ? ai.visma.ssn.type.ModelSpec.getDefaultInstance() : modelMetadata_; + } + /** + *
+   * Model metadata
+   * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + @java.lang.Override + public ai.visma.ssn.type.ModelSpecOrBuilder getModelMetadataOrBuilder() { + return modelMetadata_ == null ? ai.visma.ssn.type.ModelSpec.getDefaultInstance() : modelMetadata_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(percentage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, percentage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(amount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); + } + if (modelMetadata_ != null) { + output.writeMessage(3, getModelMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(percentage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, percentage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(amount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); + } + if (modelMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getModelMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ai.visma.ssn.type.VatDistributionCandidate)) { + return super.equals(obj); + } + ai.visma.ssn.type.VatDistributionCandidate other = (ai.visma.ssn.type.VatDistributionCandidate) obj; + + if (!getPercentage() + .equals(other.getPercentage())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (hasModelMetadata() != other.hasModelMetadata()) return false; + if (hasModelMetadata()) { + if (!getModelMetadata() + .equals(other.getModelMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getPercentage().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + if (hasModelMetadata()) { + hash = (37 * hash) + MODEL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getModelMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static ai.visma.ssn.type.VatDistributionCandidate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static ai.visma.ssn.type.VatDistributionCandidate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static ai.visma.ssn.type.VatDistributionCandidate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ai.visma.ssn.type.VatDistributionCandidate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code ssn.type.VatDistributionCandidate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:ssn.type.VatDistributionCandidate) + ai.visma.ssn.type.VatDistributionCandidateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return ai.visma.ssn.type.CandidateProto.internal_static_ssn_type_VatDistributionCandidate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return ai.visma.ssn.type.CandidateProto.internal_static_ssn_type_VatDistributionCandidate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + ai.visma.ssn.type.VatDistributionCandidate.class, ai.visma.ssn.type.VatDistributionCandidate.Builder.class); + } + + // Construct using ai.visma.ssn.type.VatDistributionCandidate.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + percentage_ = ""; + amount_ = ""; + modelMetadata_ = null; + if (modelMetadataBuilder_ != null) { + modelMetadataBuilder_.dispose(); + modelMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return ai.visma.ssn.type.CandidateProto.internal_static_ssn_type_VatDistributionCandidate_descriptor; + } + + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidate getDefaultInstanceForType() { + return ai.visma.ssn.type.VatDistributionCandidate.getDefaultInstance(); + } + + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidate build() { + ai.visma.ssn.type.VatDistributionCandidate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidate buildPartial() { + ai.visma.ssn.type.VatDistributionCandidate result = new ai.visma.ssn.type.VatDistributionCandidate(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(ai.visma.ssn.type.VatDistributionCandidate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.percentage_ = percentage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.amount_ = amount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelMetadata_ = modelMetadataBuilder_ == null + ? modelMetadata_ + : modelMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ai.visma.ssn.type.VatDistributionCandidate) { + return mergeFrom((ai.visma.ssn.type.VatDistributionCandidate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ai.visma.ssn.type.VatDistributionCandidate other) { + if (other == ai.visma.ssn.type.VatDistributionCandidate.getDefaultInstance()) return this; + if (!other.getPercentage().isEmpty()) { + percentage_ = other.percentage_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasModelMetadata()) { + mergeModelMetadata(other.getModelMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + percentage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + amount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getModelMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object percentage_ = ""; + /** + *
+     * The vat distribution candidate percentage
+     * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @return The percentage. + */ + public java.lang.String getPercentage() { + java.lang.Object ref = percentage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + percentage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The vat distribution candidate percentage
+     * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @return The bytes for percentage. + */ + public com.google.protobuf.ByteString + getPercentageBytes() { + java.lang.Object ref = percentage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + percentage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The vat distribution candidate percentage
+     * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @param value The percentage to set. + * @return This builder for chaining. + */ + public Builder setPercentage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + percentage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The vat distribution candidate percentage
+     * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @return This builder for chaining. + */ + public Builder clearPercentage() { + percentage_ = getDefaultInstance().getPercentage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The vat distribution candidate percentage
+     * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @param value The bytes for percentage to set. + * @return This builder for chaining. + */ + public Builder setPercentageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + percentage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object amount_ = ""; + /** + *
+     * The vat distribution candidate amount
+     * 
+ * + * string amount = 2 [json_name = "amount"]; + * @return The amount. + */ + public java.lang.String getAmount() { + java.lang.Object ref = amount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The vat distribution candidate amount
+     * 
+ * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + java.lang.Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The vat distribution candidate amount
+     * 
+ * + * string amount = 2 [json_name = "amount"]; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + amount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The vat distribution candidate amount
+     * 
+ * + * string amount = 2 [json_name = "amount"]; + * @return This builder for chaining. + */ + public Builder clearAmount() { + amount_ = getDefaultInstance().getAmount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The vat distribution candidate amount
+     * 
+ * + * string amount = 2 [json_name = "amount"]; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + amount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private ai.visma.ssn.type.ModelSpec modelMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + ai.visma.ssn.type.ModelSpec, ai.visma.ssn.type.ModelSpec.Builder, ai.visma.ssn.type.ModelSpecOrBuilder> modelMetadataBuilder_; + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + * @return Whether the modelMetadata field is set. + */ + public boolean hasModelMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + * @return The modelMetadata. + */ + public ai.visma.ssn.type.ModelSpec getModelMetadata() { + if (modelMetadataBuilder_ == null) { + return modelMetadata_ == null ? ai.visma.ssn.type.ModelSpec.getDefaultInstance() : modelMetadata_; + } else { + return modelMetadataBuilder_.getMessage(); + } + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + public Builder setModelMetadata(ai.visma.ssn.type.ModelSpec value) { + if (modelMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMetadata_ = value; + } else { + modelMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + public Builder setModelMetadata( + ai.visma.ssn.type.ModelSpec.Builder builderForValue) { + if (modelMetadataBuilder_ == null) { + modelMetadata_ = builderForValue.build(); + } else { + modelMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + public Builder mergeModelMetadata(ai.visma.ssn.type.ModelSpec value) { + if (modelMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + modelMetadata_ != null && + modelMetadata_ != ai.visma.ssn.type.ModelSpec.getDefaultInstance()) { + getModelMetadataBuilder().mergeFrom(value); + } else { + modelMetadata_ = value; + } + } else { + modelMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + public Builder clearModelMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + modelMetadata_ = null; + if (modelMetadataBuilder_ != null) { + modelMetadataBuilder_.dispose(); + modelMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + public ai.visma.ssn.type.ModelSpec.Builder getModelMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getModelMetadataFieldBuilder().getBuilder(); + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + public ai.visma.ssn.type.ModelSpecOrBuilder getModelMetadataOrBuilder() { + if (modelMetadataBuilder_ != null) { + return modelMetadataBuilder_.getMessageOrBuilder(); + } else { + return modelMetadata_ == null ? + ai.visma.ssn.type.ModelSpec.getDefaultInstance() : modelMetadata_; + } + } + /** + *
+     * Model metadata
+     * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + ai.visma.ssn.type.ModelSpec, ai.visma.ssn.type.ModelSpec.Builder, ai.visma.ssn.type.ModelSpecOrBuilder> + getModelMetadataFieldBuilder() { + if (modelMetadataBuilder_ == null) { + modelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + ai.visma.ssn.type.ModelSpec, ai.visma.ssn.type.ModelSpec.Builder, ai.visma.ssn.type.ModelSpecOrBuilder>( + getModelMetadata(), + getParentForChildren(), + isClean()); + modelMetadata_ = null; + } + return modelMetadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:ssn.type.VatDistributionCandidate) + } + + // @@protoc_insertion_point(class_scope:ssn.type.VatDistributionCandidate) + private static final ai.visma.ssn.type.VatDistributionCandidate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ai.visma.ssn.type.VatDistributionCandidate(); + } + + public static ai.visma.ssn.type.VatDistributionCandidate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VatDistributionCandidate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ai.visma.ssn.type.VatDistributionCandidate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/gen/java/ai/visma/ssn/type/VatDistributionCandidateOrBuilder.java b/gen/java/ai/visma/ssn/type/VatDistributionCandidateOrBuilder.java new file mode 100644 index 00000000..62cd7fea --- /dev/null +++ b/gen/java/ai/visma/ssn/type/VatDistributionCandidateOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ssn/type/candidate.proto + +package ai.visma.ssn.type; + +public interface VatDistributionCandidateOrBuilder extends + // @@protoc_insertion_point(interface_extends:ssn.type.VatDistributionCandidate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The vat distribution candidate percentage
+   * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @return The percentage. + */ + java.lang.String getPercentage(); + /** + *
+   * The vat distribution candidate percentage
+   * 
+ * + * string percentage = 1 [json_name = "percentage"]; + * @return The bytes for percentage. + */ + com.google.protobuf.ByteString + getPercentageBytes(); + + /** + *
+   * The vat distribution candidate amount
+   * 
+ * + * string amount = 2 [json_name = "amount"]; + * @return The amount. + */ + java.lang.String getAmount(); + /** + *
+   * The vat distribution candidate amount
+   * 
+ * + * string amount = 2 [json_name = "amount"]; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + *
+   * Model metadata
+   * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + * @return Whether the modelMetadata field is set. + */ + boolean hasModelMetadata(); + /** + *
+   * Model metadata
+   * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + * @return The modelMetadata. + */ + ai.visma.ssn.type.ModelSpec getModelMetadata(); + /** + *
+   * Model metadata
+   * 
+ * + * .ssn.type.ModelSpec model_metadata = 3 [json_name = "modelMetadata"]; + */ + ai.visma.ssn.type.ModelSpecOrBuilder getModelMetadataOrBuilder(); +} diff --git a/gen/js/ssn/annotator/v1/annotator_pb.d.ts b/gen/js/ssn/annotator/v1/annotator_pb.d.ts index 9904d023..9f8e764e 100644 --- a/gen/js/ssn/annotator/v1/annotator_pb.d.ts +++ b/gen/js/ssn/annotator/v1/annotator_pb.d.ts @@ -79,6 +79,7 @@ export namespace Feature { RECEIVER_VAT_NUMBER = 43, PURCHASE_LINES = 44, PAGE_TEXTS = 45, + VAT_DISTRIBUTION = 46, } } @@ -360,6 +361,11 @@ export class DocumentAnnotatorResponse extends jspb.Message { clearPageTextsList(): DocumentAnnotatorResponse; addPageTexts(value?: ssn_type_candidate_pb.PageText, index?: number): ssn_type_candidate_pb.PageText; + getVatDistributionCandidatesList(): Array; + setVatDistributionCandidatesList(value: Array): DocumentAnnotatorResponse; + clearVatDistributionCandidatesList(): DocumentAnnotatorResponse; + addVatDistributionCandidates(value?: ssn_type_candidate_pb.VatDistributionCandidate, index?: number): ssn_type_candidate_pb.VatDistributionCandidate; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DocumentAnnotatorResponse.AsObject; static toObject(includeInstance: boolean, msg: DocumentAnnotatorResponse): DocumentAnnotatorResponse.AsObject; @@ -417,6 +423,7 @@ export namespace DocumentAnnotatorResponse { purchaseLinesList: Array, answersList: Array, pageTextsList: Array, + vatDistributionCandidatesList: Array, } } diff --git a/gen/js/ssn/annotator/v1/annotator_pb.js b/gen/js/ssn/annotator/v1/annotator_pb.js index 4cce7861..ef738c2a 100644 --- a/gen/js/ssn/annotator/v1/annotator_pb.js +++ b/gen/js/ssn/annotator/v1/annotator_pb.js @@ -371,7 +371,8 @@ proto.ssn.annotator.v1.Feature.Type = { RECEIVER_NAME: 42, RECEIVER_VAT_NUMBER: 43, PURCHASE_LINES: 44, - PAGE_TEXTS: 45 + PAGE_TEXTS: 45, + VAT_DISTRIBUTION: 46 }; /** @@ -822,7 +823,7 @@ proto.ssn.annotator.v1.DocumentAnnotatorRequest.prototype.clearQuestionsList = f * @private {!Array} * @const */ -proto.ssn.annotator.v1.DocumentAnnotatorResponse.repeatedFields_ = [1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,40,25,26,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47]; +proto.ssn.annotator.v1.DocumentAnnotatorResponse.repeatedFields_ = [1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,40,25,26,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48]; @@ -944,7 +945,9 @@ proto.ssn.annotator.v1.DocumentAnnotatorResponse.toObject = function(includeInst answersList: jspb.Message.toObjectList(msg.getAnswersList(), ssn_type_candidate_pb.AnswerCandidate.toObject, includeInstance), pageTextsList: jspb.Message.toObjectList(msg.getPageTextsList(), - ssn_type_candidate_pb.PageText.toObject, includeInstance) + ssn_type_candidate_pb.PageText.toObject, includeInstance), + vatDistributionCandidatesList: jspb.Message.toObjectList(msg.getVatDistributionCandidatesList(), + ssn_type_candidate_pb.VatDistributionCandidate.toObject, includeInstance) }; if (includeInstance) { @@ -1213,6 +1216,11 @@ proto.ssn.annotator.v1.DocumentAnnotatorResponse.deserializeBinaryFromReader = f reader.readMessage(value,ssn_type_candidate_pb.PageText.deserializeBinaryFromReader); msg.addPageTexts(value); break; + case 48: + var value = new ssn_type_candidate_pb.VatDistributionCandidate; + reader.readMessage(value,ssn_type_candidate_pb.VatDistributionCandidate.deserializeBinaryFromReader); + msg.addVatDistributionCandidates(value); + break; default: reader.skipField(); break; @@ -1615,6 +1623,14 @@ proto.ssn.annotator.v1.DocumentAnnotatorResponse.serializeBinaryToWriter = funct ssn_type_candidate_pb.PageText.serializeBinaryToWriter ); } + f = message.getVatDistributionCandidatesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 48, + f, + ssn_type_candidate_pb.VatDistributionCandidate.serializeBinaryToWriter + ); + } }; @@ -3343,6 +3359,44 @@ proto.ssn.annotator.v1.DocumentAnnotatorResponse.prototype.clearPageTextsList = }; +/** + * repeated ssn.type.VatDistributionCandidate vat_distribution_candidates = 48; + * @return {!Array} + */ +proto.ssn.annotator.v1.DocumentAnnotatorResponse.prototype.getVatDistributionCandidatesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, ssn_type_candidate_pb.VatDistributionCandidate, 48)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.annotator.v1.DocumentAnnotatorResponse} returns this +*/ +proto.ssn.annotator.v1.DocumentAnnotatorResponse.prototype.setVatDistributionCandidatesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 48, value); +}; + + +/** + * @param {!proto.ssn.type.VatDistributionCandidate=} opt_value + * @param {number=} opt_index + * @return {!proto.ssn.type.VatDistributionCandidate} + */ +proto.ssn.annotator.v1.DocumentAnnotatorResponse.prototype.addVatDistributionCandidates = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 48, opt_value, proto.ssn.type.VatDistributionCandidate, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.annotator.v1.DocumentAnnotatorResponse} returns this + */ +proto.ssn.annotator.v1.DocumentAnnotatorResponse.prototype.clearVatDistributionCandidatesList = function() { + return this.setVatDistributionCandidatesList([]); +}; + + diff --git a/gen/js/ssn/mlservice/v2/mlservice_pb.d.ts b/gen/js/ssn/mlservice/v2/mlservice_pb.d.ts index 6f8bbb52..e58f5c34 100644 --- a/gen/js/ssn/mlservice/v2/mlservice_pb.d.ts +++ b/gen/js/ssn/mlservice/v2/mlservice_pb.d.ts @@ -632,3 +632,53 @@ export namespace DocQAResponse { } } +export class VatDistributionRequest extends jspb.Message { + getTextAnnotation(): ssn_type_text_annotation_pb.TextAnnotation | undefined; + setTextAnnotation(value?: ssn_type_text_annotation_pb.TextAnnotation): VatDistributionRequest; + hasTextAnnotation(): boolean; + clearTextAnnotation(): VatDistributionRequest; + + getImage(): Uint8Array | string; + getImage_asU8(): Uint8Array; + getImage_asB64(): string; + setImage(value: Uint8Array | string): VatDistributionRequest; + + getCountryCode(): string; + setCountryCode(value: string): VatDistributionRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VatDistributionRequest.AsObject; + static toObject(includeInstance: boolean, msg: VatDistributionRequest): VatDistributionRequest.AsObject; + static serializeBinaryToWriter(message: VatDistributionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VatDistributionRequest; + static deserializeBinaryFromReader(message: VatDistributionRequest, reader: jspb.BinaryReader): VatDistributionRequest; +} + +export namespace VatDistributionRequest { + export type AsObject = { + textAnnotation?: ssn_type_text_annotation_pb.TextAnnotation.AsObject, + image: Uint8Array | string, + countryCode: string, + } +} + +export class VatDistributionResponse extends jspb.Message { + getVatDistributionCandidatesList(): Array; + setVatDistributionCandidatesList(value: Array): VatDistributionResponse; + clearVatDistributionCandidatesList(): VatDistributionResponse; + addVatDistributionCandidates(value?: ssn_type_candidate_pb.VatDistributionCandidate, index?: number): ssn_type_candidate_pb.VatDistributionCandidate; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VatDistributionResponse.AsObject; + static toObject(includeInstance: boolean, msg: VatDistributionResponse): VatDistributionResponse.AsObject; + static serializeBinaryToWriter(message: VatDistributionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VatDistributionResponse; + static deserializeBinaryFromReader(message: VatDistributionResponse, reader: jspb.BinaryReader): VatDistributionResponse; +} + +export namespace VatDistributionResponse { + export type AsObject = { + vatDistributionCandidatesList: Array, + } +} + diff --git a/gen/js/ssn/mlservice/v2/mlservice_pb.js b/gen/js/ssn/mlservice/v2/mlservice_pb.js index e282c43a..1392e505 100644 --- a/gen/js/ssn/mlservice/v2/mlservice_pb.js +++ b/gen/js/ssn/mlservice/v2/mlservice_pb.js @@ -37,6 +37,8 @@ goog.exportSymbol('proto.ssn.mlservice.v2.PredictRequest', null, global); goog.exportSymbol('proto.ssn.mlservice.v2.PredictResponse', null, global); goog.exportSymbol('proto.ssn.mlservice.v2.PurchaseLinesRequest', null, global); goog.exportSymbol('proto.ssn.mlservice.v2.PurchaseLinesResponse', null, global); +goog.exportSymbol('proto.ssn.mlservice.v2.VatDistributionRequest', null, global); +goog.exportSymbol('proto.ssn.mlservice.v2.VatDistributionResponse', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -247,6 +249,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.ssn.mlservice.v2.DocQAResponse.displayName = 'proto.ssn.mlservice.v2.DocQAResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.mlservice.v2.VatDistributionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ssn.mlservice.v2.VatDistributionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.mlservice.v2.VatDistributionRequest.displayName = 'proto.ssn.mlservice.v2.VatDistributionRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.mlservice.v2.VatDistributionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ssn.mlservice.v2.VatDistributionResponse.repeatedFields_, null); +}; +goog.inherits(proto.ssn.mlservice.v2.VatDistributionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.mlservice.v2.VatDistributionResponse.displayName = 'proto.ssn.mlservice.v2.VatDistributionResponse'; +} @@ -5341,4 +5385,399 @@ proto.ssn.mlservice.v2.DocQAResponse.prototype.clearAnswersList = function() { }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.mlservice.v2.VatDistributionRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.mlservice.v2.VatDistributionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.mlservice.v2.VatDistributionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + textAnnotation: (f = msg.getTextAnnotation()) && ssn_type_text_annotation_pb.TextAnnotation.toObject(includeInstance, f), + image: msg.getImage_asB64(), + countryCode: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.mlservice.v2.VatDistributionRequest} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.mlservice.v2.VatDistributionRequest; + return proto.ssn.mlservice.v2.VatDistributionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.mlservice.v2.VatDistributionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.mlservice.v2.VatDistributionRequest} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ssn_type_text_annotation_pb.TextAnnotation; + reader.readMessage(value,ssn_type_text_annotation_pb.TextAnnotation.deserializeBinaryFromReader); + msg.setTextAnnotation(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setImage(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setCountryCode(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.mlservice.v2.VatDistributionRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.mlservice.v2.VatDistributionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.mlservice.v2.VatDistributionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTextAnnotation(); + if (f != null) { + writer.writeMessage( + 1, + f, + ssn_type_text_annotation_pb.TextAnnotation.serializeBinaryToWriter + ); + } + f = message.getImage_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getCountryCode(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional ssn.type.TextAnnotation text_annotation = 1; + * @return {?proto.ssn.type.TextAnnotation} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.getTextAnnotation = function() { + return /** @type{?proto.ssn.type.TextAnnotation} */ ( + jspb.Message.getWrapperField(this, ssn_type_text_annotation_pb.TextAnnotation, 1)); +}; + + +/** + * @param {?proto.ssn.type.TextAnnotation|undefined} value + * @return {!proto.ssn.mlservice.v2.VatDistributionRequest} returns this +*/ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.setTextAnnotation = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ssn.mlservice.v2.VatDistributionRequest} returns this + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.clearTextAnnotation = function() { + return this.setTextAnnotation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.hasTextAnnotation = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes image = 2; + * @return {!(string|Uint8Array)} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.getImage = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes image = 2; + * This is a type-conversion wrapper around `getImage()` + * @return {string} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.getImage_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getImage())); +}; + + +/** + * optional bytes image = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getImage()` + * @return {!Uint8Array} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.getImage_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getImage())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ssn.mlservice.v2.VatDistributionRequest} returns this + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.setImage = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional string country_code = 3; + * @return {string} + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.getCountryCode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.mlservice.v2.VatDistributionRequest} returns this + */ +proto.ssn.mlservice.v2.VatDistributionRequest.prototype.setCountryCode = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ssn.mlservice.v2.VatDistributionResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.mlservice.v2.VatDistributionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.mlservice.v2.VatDistributionResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.mlservice.v2.VatDistributionResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.mlservice.v2.VatDistributionResponse.toObject = function(includeInstance, msg) { + var f, obj = { + vatDistributionCandidatesList: jspb.Message.toObjectList(msg.getVatDistributionCandidatesList(), + ssn_type_candidate_pb.VatDistributionCandidate.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.mlservice.v2.VatDistributionResponse} + */ +proto.ssn.mlservice.v2.VatDistributionResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.mlservice.v2.VatDistributionResponse; + return proto.ssn.mlservice.v2.VatDistributionResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.mlservice.v2.VatDistributionResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.mlservice.v2.VatDistributionResponse} + */ +proto.ssn.mlservice.v2.VatDistributionResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ssn_type_candidate_pb.VatDistributionCandidate; + reader.readMessage(value,ssn_type_candidate_pb.VatDistributionCandidate.deserializeBinaryFromReader); + msg.addVatDistributionCandidates(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.mlservice.v2.VatDistributionResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.mlservice.v2.VatDistributionResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.mlservice.v2.VatDistributionResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.mlservice.v2.VatDistributionResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVatDistributionCandidatesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + ssn_type_candidate_pb.VatDistributionCandidate.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ssn.type.VatDistributionCandidate vat_distribution_candidates = 1; + * @return {!Array} + */ +proto.ssn.mlservice.v2.VatDistributionResponse.prototype.getVatDistributionCandidatesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, ssn_type_candidate_pb.VatDistributionCandidate, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ssn.mlservice.v2.VatDistributionResponse} returns this +*/ +proto.ssn.mlservice.v2.VatDistributionResponse.prototype.setVatDistributionCandidatesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ssn.type.VatDistributionCandidate=} opt_value + * @param {number=} opt_index + * @return {!proto.ssn.type.VatDistributionCandidate} + */ +proto.ssn.mlservice.v2.VatDistributionResponse.prototype.addVatDistributionCandidates = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ssn.type.VatDistributionCandidate, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ssn.mlservice.v2.VatDistributionResponse} returns this + */ +proto.ssn.mlservice.v2.VatDistributionResponse.prototype.clearVatDistributionCandidatesList = function() { + return this.setVatDistributionCandidatesList([]); +}; + + goog.object.extend(exports, proto.ssn.mlservice.v2); diff --git a/gen/js/ssn/type/candidate_pb.d.ts b/gen/js/ssn/type/candidate_pb.d.ts index 97d69997..1b2bb54b 100644 --- a/gen/js/ssn/type/candidate_pb.d.ts +++ b/gen/js/ssn/type/candidate_pb.d.ts @@ -285,3 +285,31 @@ export namespace PageText { } } +export class VatDistributionCandidate extends jspb.Message { + getPercentage(): string; + setPercentage(value: string): VatDistributionCandidate; + + getAmount(): string; + setAmount(value: string): VatDistributionCandidate; + + getModelMetadata(): ModelSpec | undefined; + setModelMetadata(value?: ModelSpec): VatDistributionCandidate; + hasModelMetadata(): boolean; + clearModelMetadata(): VatDistributionCandidate; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VatDistributionCandidate.AsObject; + static toObject(includeInstance: boolean, msg: VatDistributionCandidate): VatDistributionCandidate.AsObject; + static serializeBinaryToWriter(message: VatDistributionCandidate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VatDistributionCandidate; + static deserializeBinaryFromReader(message: VatDistributionCandidate, reader: jspb.BinaryReader): VatDistributionCandidate; +} + +export namespace VatDistributionCandidate { + export type AsObject = { + percentage: string, + amount: string, + modelMetadata?: ModelSpec.AsObject, + } +} + diff --git a/gen/js/ssn/type/candidate_pb.js b/gen/js/ssn/type/candidate_pb.js index 34ffbff2..4cc4cad3 100644 --- a/gen/js/ssn/type/candidate_pb.js +++ b/gen/js/ssn/type/candidate_pb.js @@ -34,6 +34,7 @@ goog.exportSymbol('proto.ssn.type.LineCandidate', null, global); goog.exportSymbol('proto.ssn.type.ModelSpec', null, global); goog.exportSymbol('proto.ssn.type.PageText', null, global); goog.exportSymbol('proto.ssn.type.PurchaseLineCandidate', null, global); +goog.exportSymbol('proto.ssn.type.VatDistributionCandidate', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -181,6 +182,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.ssn.type.PageText.displayName = 'proto.ssn.type.PageText'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.ssn.type.VatDistributionCandidate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ssn.type.VatDistributionCandidate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ssn.type.VatDistributionCandidate.displayName = 'proto.ssn.type.VatDistributionCandidate'; +} @@ -2210,4 +2232,215 @@ proto.ssn.type.PageText.prototype.setText = function(value) { }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.ssn.type.VatDistributionCandidate.prototype.toObject = function(opt_includeInstance) { + return proto.ssn.type.VatDistributionCandidate.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.ssn.type.VatDistributionCandidate} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.type.VatDistributionCandidate.toObject = function(includeInstance, msg) { + var f, obj = { + percentage: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelMetadata: (f = msg.getModelMetadata()) && proto.ssn.type.ModelSpec.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ssn.type.VatDistributionCandidate} + */ +proto.ssn.type.VatDistributionCandidate.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ssn.type.VatDistributionCandidate; + return proto.ssn.type.VatDistributionCandidate.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ssn.type.VatDistributionCandidate} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ssn.type.VatDistributionCandidate} + */ +proto.ssn.type.VatDistributionCandidate.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPercentage(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAmount(value); + break; + case 3: + var value = new proto.ssn.type.ModelSpec; + reader.readMessage(value,proto.ssn.type.ModelSpec.deserializeBinaryFromReader); + msg.setModelMetadata(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ssn.type.VatDistributionCandidate.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ssn.type.VatDistributionCandidate.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ssn.type.VatDistributionCandidate} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ssn.type.VatDistributionCandidate.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPercentage(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getModelMetadata(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ssn.type.ModelSpec.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string percentage = 1; + * @return {string} + */ +proto.ssn.type.VatDistributionCandidate.prototype.getPercentage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.type.VatDistributionCandidate} returns this + */ +proto.ssn.type.VatDistributionCandidate.prototype.setPercentage = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string amount = 2; + * @return {string} + */ +proto.ssn.type.VatDistributionCandidate.prototype.getAmount = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ssn.type.VatDistributionCandidate} returns this + */ +proto.ssn.type.VatDistributionCandidate.prototype.setAmount = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional ModelSpec model_metadata = 3; + * @return {?proto.ssn.type.ModelSpec} + */ +proto.ssn.type.VatDistributionCandidate.prototype.getModelMetadata = function() { + return /** @type{?proto.ssn.type.ModelSpec} */ ( + jspb.Message.getWrapperField(this, proto.ssn.type.ModelSpec, 3)); +}; + + +/** + * @param {?proto.ssn.type.ModelSpec|undefined} value + * @return {!proto.ssn.type.VatDistributionCandidate} returns this +*/ +proto.ssn.type.VatDistributionCandidate.prototype.setModelMetadata = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ssn.type.VatDistributionCandidate} returns this + */ +proto.ssn.type.VatDistributionCandidate.prototype.clearModelMetadata = function() { + return this.setModelMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ssn.type.VatDistributionCandidate.prototype.hasModelMetadata = function() { + return jspb.Message.getField(this, 3) != null; +}; + + goog.object.extend(exports, proto.ssn.type); diff --git a/gen/openapiv2/ssn/v1.swagger.json b/gen/openapiv2/ssn/v1.swagger.json index efc0e57c..e266d77b 100644 --- a/gen/openapiv2/ssn/v1.swagger.json +++ b/gen/openapiv2/ssn/v1.swagger.json @@ -1103,6 +1103,23 @@ "default": "DEFAULT", "description": " - DEFAULT: Use the default tier. Defaults to the STANDARD option or account default, if set." }, + "typeVatDistributionCandidate": { + "type": "object", + "properties": { + "percentage": { + "type": "string", + "title": "The vat distribution candidate percentage" + }, + "amount": { + "type": "string", + "title": "The vat distribution candidate amount" + }, + "modelMetadata": { + "$ref": "#/definitions/typeModelSpec", + "title": "Model metadata" + } + } + }, "typeVertex": { "type": "object", "properties": { @@ -1649,6 +1666,14 @@ "$ref": "#/definitions/typePageText" }, "title": "The page texts of the document" + }, + "vatDistributionCandidates": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/typeVatDistributionCandidate" + }, + "title": "Vat levels for the document, each vat level has vat level percentage and vat level amount" } } }, @@ -1754,10 +1779,11 @@ "RECEIVER_NAME", "RECEIVER_VAT_NUMBER", "PURCHASE_LINES", - "PAGE_TEXTS" + "PAGE_TEXTS", + "VAT_DISTRIBUTION" ], "default": "DEFAULT", - "title": "- DEFAULT: Run default feature set\n - TEXT_ANNOTATION: Return text annotation\n - ORDER_DATE: Run order date detection\n - PAYMENT_DUE_DATE: Run due date detection\n - CURRENCY: Run currency detection\n - TOTAL_VAT: Run total vat detection\n - TOTAL_INCL_VAT: Run total incl vat detection\n - TOTAL_EXCL_VAT: Run total excl vat detection\n - SUPPLIER_CORPORATE_ID: [DEPRECATED] Run supplier corporate id detection.\nUse SUPPLIER_ORGANISATION_NUMBER or SUPPLIER_VAT_NUMBER instead.\n - SUPPLIER_COUNTRY_CODE: Run country code detection\n - DOCUMENT_TYPE: Run document type detection\n - PAYMENT_METHOD: Run pyment method detection\n - CREDIT_CARD_LAST_FOUR: Run credit card number detection\n - INVOICE_NUMBER: [DEPRECATED] Run invoice number detection\n - OCR_LINE_DK_TYPE: Run danish ocr line detection, for the type\n - OCR_LINE_DK_PAYMENT_ID: Run danish ocr line detection, for the payment id\n - OCR_LINE_DK_CREDITOR_ID: Run danish ocr line detection, for the creditor id\n - OCR_LINE_SE_PAYMENT_ID: Run swedish ocr line detection for the payment id\n - OCR_LINE_SE_BANKGIRO_CREDITOR_ID: Run swedish ocr line detection for the bankgiro creditor id\n - OCR_LINE_SE_PLUSGIRO_CREDITOR_ID: Run swedish ocr line detection for the plusgiro creditor id\n - OCR_LINE_NO_PAYMENT_ID: Run norwegian ocr line detection or the payment id\n - OCR_LINE_FI_PAYMENT_ID: Run finish ocr line detection or the payment id\n - OCR_LINE_NL_PAYMENT_ID: Run dutch ocr line detection for the payment id\n - OCR_LINE_BE_PAYMENT_ID: Run belgian ocr line detection for the payment id\n - TEXT: Return document text\n - IBAN: Run IBAN detection\n - LINES: Run LINES detection\n - PREVIEW: Run first page of PDF to PNG conversion\n - BANK_ACCOUNT_NUMBER: Run bank account number detection\n - BANK_REGISTRATION_NUMBER: Run bank registration number detection\n - BIC: Run business identifier code detection\n - DOCUMENT_NUMBER: Run document number detection\n - DOCUMENT_DATE: Run document date detection\n - ORDER_NUMBER: Run order number detection\n - SUPPLIER_NAME: Run supplier name detection\n - SUPPLIER_VAT_NUMBER: [EXPERIMENTAL] Run supplier VAT detection\n - SUPPLIER_ORGANISATION_NUMBER: [EXPERIMENTAL] Run supplier organisation number detection\n - SUPPLIER_ADDRESS: [EXPERIMENTAL] Run supplier address detection\n - CUSTOMER_NUMBER: [EXPERIMENTAL] Run customer identifier detection\n - RECEIVER_ORDER_NUMBER: Receiver order number\n - RECEIVER_ADDRESS: Receiver address\n - RECEIVER_COUNTRY_CODE: Receiver country code\n - RECEIVER_NAME: Receiver name\n - RECEIVER_VAT_NUMBER: Receiver VAT number\n - PURCHASE_LINES: Purchase Lines\n - PAGE_TEXTS: Page texts" + "title": "- DEFAULT: Run default feature set\n - TEXT_ANNOTATION: Return text annotation\n - ORDER_DATE: Run order date detection\n - PAYMENT_DUE_DATE: Run due date detection\n - CURRENCY: Run currency detection\n - TOTAL_VAT: Run total vat detection\n - TOTAL_INCL_VAT: Run total incl vat detection\n - TOTAL_EXCL_VAT: Run total excl vat detection\n - SUPPLIER_CORPORATE_ID: [DEPRECATED] Run supplier corporate id detection.\nUse SUPPLIER_ORGANISATION_NUMBER or SUPPLIER_VAT_NUMBER instead.\n - SUPPLIER_COUNTRY_CODE: Run country code detection\n - DOCUMENT_TYPE: Run document type detection\n - PAYMENT_METHOD: Run pyment method detection\n - CREDIT_CARD_LAST_FOUR: Run credit card number detection\n - INVOICE_NUMBER: [DEPRECATED] Run invoice number detection\n - OCR_LINE_DK_TYPE: Run danish ocr line detection, for the type\n - OCR_LINE_DK_PAYMENT_ID: Run danish ocr line detection, for the payment id\n - OCR_LINE_DK_CREDITOR_ID: Run danish ocr line detection, for the creditor id\n - OCR_LINE_SE_PAYMENT_ID: Run swedish ocr line detection for the payment id\n - OCR_LINE_SE_BANKGIRO_CREDITOR_ID: Run swedish ocr line detection for the bankgiro creditor id\n - OCR_LINE_SE_PLUSGIRO_CREDITOR_ID: Run swedish ocr line detection for the plusgiro creditor id\n - OCR_LINE_NO_PAYMENT_ID: Run norwegian ocr line detection or the payment id\n - OCR_LINE_FI_PAYMENT_ID: Run finish ocr line detection or the payment id\n - OCR_LINE_NL_PAYMENT_ID: Run dutch ocr line detection for the payment id\n - OCR_LINE_BE_PAYMENT_ID: Run belgian ocr line detection for the payment id\n - TEXT: Return document text\n - IBAN: Run IBAN detection\n - LINES: Run LINES detection\n - PREVIEW: Run first page of PDF to PNG conversion\n - BANK_ACCOUNT_NUMBER: Run bank account number detection\n - BANK_REGISTRATION_NUMBER: Run bank registration number detection\n - BIC: Run business identifier code detection\n - DOCUMENT_NUMBER: Run document number detection\n - DOCUMENT_DATE: Run document date detection\n - ORDER_NUMBER: Run order number detection\n - SUPPLIER_NAME: Run supplier name detection\n - SUPPLIER_VAT_NUMBER: [EXPERIMENTAL] Run supplier VAT detection\n - SUPPLIER_ORGANISATION_NUMBER: [EXPERIMENTAL] Run supplier organisation number detection\n - SUPPLIER_ADDRESS: [EXPERIMENTAL] Run supplier address detection\n - CUSTOMER_NUMBER: [EXPERIMENTAL] Run customer identifier detection\n - RECEIVER_ORDER_NUMBER: Receiver order number\n - RECEIVER_ADDRESS: Receiver address\n - RECEIVER_COUNTRY_CODE: Receiver country code\n - RECEIVER_NAME: Receiver name\n - RECEIVER_VAT_NUMBER: Receiver VAT number\n - PURCHASE_LINES: Purchase Lines\n - PAGE_TEXTS: Page texts\n - VAT_DISTRIBUTION: VAT distribution" }, "v1FeedbackMetrics": { "type": "object", diff --git a/gen/python/ssn/annotator/v1/annotator_pb2.py b/gen/python/ssn/annotator/v1/annotator_pb2.py index 106d2949..f932738a 100644 --- a/gen/python/ssn/annotator/v1/annotator_pb2.py +++ b/gen/python/ssn/annotator/v1/annotator_pb2.py @@ -18,7 +18,7 @@ from vml_proto.ssn.type import tier_pb2 as ssn_dot_type_dot_tier__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n ssn/annotator/v1/annotator.proto\x12\x10ssn.annotator.v1\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x18ssn/type/candidate.proto\x1a\x1essn/type/text_annotation.proto\x1a\x13ssn/type/tier.proto\"\xa5\t\n\x07\x46\x65\x61ture\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32\x1e.ssn.annotator.v1.Feature.TypeR\x04type\x12\x1f\n\x0bmax_results\x18\x02 \x01(\x05R\nmaxResults\x12\x41\n\x0emin_confidence\x18\x03 \x01(\x0e\x32\x1a.ssn.type.Confidence.LevelR\rminConfidence\"\x81\x08\n\x04Type\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x13\n\x0fTEXT_ANNOTATION\x10\x01\x12\x0e\n\nORDER_DATE\x10\x02\x12\x14\n\x10PAYMENT_DUE_DATE\x10\x03\x12\x0c\n\x08\x43URRENCY\x10\x04\x12\r\n\tTOTAL_VAT\x10\x05\x12\x12\n\x0eTOTAL_INCL_VAT\x10\x06\x12\x12\n\x0eTOTAL_EXCL_VAT\x10\x07\x12\x19\n\x15SUPPLIER_CORPORATE_ID\x10\x08\x12\x19\n\x15SUPPLIER_COUNTRY_CODE\x10\t\x12\x11\n\rDOCUMENT_TYPE\x10\n\x12\x12\n\x0ePAYMENT_METHOD\x10\x0b\x12\x19\n\x15\x43REDIT_CARD_LAST_FOUR\x10\x0c\x12\x12\n\x0eINVOICE_NUMBER\x10\r\x12\x14\n\x10OCR_LINE_DK_TYPE\x10\x0e\x12\x1a\n\x16OCR_LINE_DK_PAYMENT_ID\x10\x0f\x12\x1b\n\x17OCR_LINE_DK_CREDITOR_ID\x10\x10\x12\x1a\n\x16OCR_LINE_SE_PAYMENT_ID\x10\x11\x12$\n OCR_LINE_SE_BANKGIRO_CREDITOR_ID\x10\x12\x12$\n OCR_LINE_SE_PLUSGIRO_CREDITOR_ID\x10\x13\x12\x1a\n\x16OCR_LINE_NO_PAYMENT_ID\x10\x14\x12\x1a\n\x16OCR_LINE_FI_PAYMENT_ID\x10\x15\x12\x1a\n\x16OCR_LINE_NL_PAYMENT_ID\x10\x16\x12\x1a\n\x16OCR_LINE_BE_PAYMENT_ID\x10\'\x12\x08\n\x04TEXT\x10\x17\x12\x08\n\x04IBAN\x10\x18\x12\t\n\x05LINES\x10\x19\x12\x0b\n\x07PREVIEW\x10\x1a\x12\x17\n\x13\x42\x41NK_ACCOUNT_NUMBER\x10\x1b\x12\x1c\n\x18\x42\x41NK_REGISTRATION_NUMBER\x10\x1c\x12\x07\n\x03\x42IC\x10\x1d\x12\x13\n\x0f\x44OCUMENT_NUMBER\x10\x1e\x12\x11\n\rDOCUMENT_DATE\x10\x1f\x12\x10\n\x0cORDER_NUMBER\x10 \x12\x11\n\rSUPPLIER_NAME\x10!\x12\x17\n\x13SUPPLIER_VAT_NUMBER\x10\"\x12 \n\x1cSUPPLIER_ORGANISATION_NUMBER\x10#\x12\x14\n\x10SUPPLIER_ADDRESS\x10$\x12\x13\n\x0f\x43USTOMER_NUMBER\x10%\x12\x19\n\x15RECEIVER_ORDER_NUMBER\x10&\x12\x14\n\x10RECEIVER_ADDRESS\x10(\x12\x19\n\x15RECEIVER_COUNTRY_CODE\x10)\x12\x11\n\rRECEIVER_NAME\x10*\x12\x17\n\x13RECEIVER_VAT_NUMBER\x10+\x12\x12\n\x0ePURCHASE_LINES\x10,\x12\x0e\n\nPAGE_TEXTS\x10-\"\xfb\x01\n\x18\x44ocumentAnnotatorRequest\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\x1a.ssn.annotator.v1.DocumentR\x08\x64ocument\x12\x35\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x19.ssn.annotator.v1.FeatureR\x08\x66\x65\x61tures\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\"\n\x04tier\x18\x04 \x01(\x0e\x32\x0e.ssn.type.TierR\x04tier\x12\x1a\n\x08segments\x18\x05 \x03(\tR\x08segments\x12\x1c\n\tquestions\x18\x06 \x03(\tR\tquestions\"\x94\x17\n\x19\x44ocumentAnnotatorResponse\x12\x32\n\norder_date\x18\x01 \x03(\x0b\x32\x13.ssn.type.CandidateR\torderDate\x12=\n\x10payment_due_date\x18\x02 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0epaymentDueDate\x12/\n\x08\x63urrency\x18\x03 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08\x63urrency\x12\x30\n\ttotal_vat\x18\x04 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08totalVat\x12\x39\n\x0etotal_incl_vat\x18\x05 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalInclVat\x12\x39\n\x0etotal_excl_vat\x18\x06 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalExclVat\x12G\n\x15supplier_corporate_id\x18\x07 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCorporateId\x12G\n\x15supplier_country_code\x18\x08 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCountryCode\x12\x38\n\rdocument_type\x18\t \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentType\x12:\n\x0epayment_method\x18\n \x03(\x0b\x32\x13.ssn.type.CandidateR\rpaymentMethod\x12\x46\n\x15\x63redit_card_last_four\x18\x0b \x03(\x0b\x32\x13.ssn.type.CandidateR\x12\x63reditCardLastFour\x12:\n\x0einvoice_number\x18\x0c \x03(\x0b\x32\x13.ssn.type.CandidateR\rinvoiceNumber\x12\x41\n\x0ftext_annotation\x18\r \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12<\n\x10ocr_line_dk_type\x18\x0e \x03(\x0b\x32\x13.ssn.type.CandidateR\rocrLineDkType\x12G\n\x16ocr_line_dk_payment_id\x18\x0f \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineDkPaymentId\x12I\n\x17ocr_line_dk_creditor_id\x18\x10 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13ocrLineDkCreditorId\x12G\n\x16ocr_line_se_payment_id\x18\x11 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineSePaymentId\x12Z\n ocr_line_se_bankgiro_creditor_id\x18\x12 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSeBankgiroCreditorId\x12Z\n ocr_line_se_plusgiro_creditor_id\x18\x13 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSePlusgiroCreditorId\x12G\n\x16ocr_line_no_payment_id\x18\x14 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNoPaymentId\x12G\n\x16ocr_line_fi_payment_id\x18\x15 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineFiPaymentId\x12G\n\x16ocr_line_nl_payment_id\x18\x16 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNlPaymentId\x12G\n\x16ocr_line_be_payment_id\x18( \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineBePaymentId\x12\x12\n\x04text\x18\x17 \x01(\tR\x04text\x12\x1f\n\x0b\x66\x65\x65\x64\x62\x61\x63k_id\x18\x18 \x01(\tR\nfeedbackId\x12\'\n\x04iban\x18\x19 \x03(\x0b\x32\x13.ssn.type.CandidateR\x04iban\x12-\n\x05lines\x18\x1a \x03(\x0b\x32\x17.ssn.type.LineCandidateR\x05lines\x12\x18\n\x07preview\x18\x1b \x01(\tR\x07preview\x12\x43\n\x13\x62\x61nk_account_number\x18\x1c \x03(\x0b\x32\x13.ssn.type.CandidateR\x11\x62\x61nkAccountNumber\x12M\n\x18\x62\x61nk_registration_number\x18\x1d \x03(\x0b\x32\x13.ssn.type.CandidateR\x16\x62\x61nkRegistrationNumber\x12%\n\x03\x62ic\x18\x1e \x03(\x0b\x32\x13.ssn.type.CandidateR\x03\x62ic\x12<\n\x0f\x64ocument_number\x18\x1f \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x64ocumentNumber\x12\x38\n\rdocument_date\x18 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentDate\x12\x36\n\x0corder_number\x18! \x03(\x0b\x32\x13.ssn.type.CandidateR\x0borderNumber\x12\x38\n\rsupplier_name\x18\" \x03(\x0b\x32\x13.ssn.type.CandidateR\x0csupplierName\x12\x43\n\x13supplier_vat_number\x18# \x03(\x0b\x32\x13.ssn.type.CandidateR\x11supplierVatNumber\x12U\n\x1csupplier_organisation_number\x18$ \x03(\x0b\x32\x13.ssn.type.CandidateR\x1asupplierOrganisationNumber\x12>\n\x10supplier_address\x18% \x03(\x0b\x32\x13.ssn.type.CandidateR\x0fsupplierAddress\x12<\n\x0f\x63ustomer_number\x18& \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x63ustomerNumber\x12G\n\x15receiver_order_number\x18\' \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverOrderNumber\x12>\n\x10receiver_address\x18) \x03(\x0b\x32\x13.ssn.type.CandidateR\x0freceiverAddress\x12G\n\x15receiver_country_code\x18* \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverCountryCode\x12\x38\n\rreceiver_name\x18+ \x03(\x0b\x32\x13.ssn.type.CandidateR\x0creceiverName\x12\x43\n\x13receiver_vat_number\x18, \x03(\x0b\x32\x13.ssn.type.CandidateR\x11receiverVatNumber\x12\x46\n\x0epurchase_lines\x18- \x03(\x0b\x32\x1f.ssn.type.PurchaseLineCandidateR\rpurchaseLines\x12\x33\n\x07\x61nswers\x18. \x03(\x0b\x32\x19.ssn.type.AnswerCandidateR\x07\x61nswers\x12\x31\n\npage_texts\x18/ \x03(\x0b\x32\x12.ssn.type.PageTextR\tpageTexts\"^\n\x08\x44ocument\x12\x18\n\x07\x63ontent\x18\x01 \x01(\x0cR\x07\x63ontent\x12\x38\n\x06source\x18\x02 \x01(\x0b\x32 .ssn.annotator.v1.DocumentSourceR\x06source\"+\n\x0e\x44ocumentSource\x12\x19\n\x08http_uri\x18\x01 \x01(\tR\x07httpUri\"o\n\x17\x44ocumentQuestionRequest\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\x1a.ssn.annotator.v1.DocumentR\x08\x64ocument\x12\x1c\n\tquestions\x18\x02 \x03(\tR\tquestions\"U\n\x18\x44ocumentQuestionResponse\x12\x33\n\x07\x61nswers\x18\x02 \x03(\x0b\x32\x19.ssn.type.AnswerCandidateR\x07\x61nswersJ\x04\x08\x01\x10\x02\x32\xbd\x02\n\x11\x44ocumentAnnotator\x12\x8d\x01\n\x10\x41nnotateDocument\x12*.ssn.annotator.v1.DocumentAnnotatorRequest\x1a+.ssn.annotator.v1.DocumentAnnotatorResponse\" \x82\xd3\xe4\x93\x02\x1a\"\x15/v1/document:annotate:\x01*\x12\x97\x01\n\x16\x41nswerDocumentQuestion\x12).ssn.annotator.v1.DocumentQuestionRequest\x1a*.ssn.annotator.v1.DocumentQuestionResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1/document:answerquestion:\x01*B{Z>github.com/e-conomic/vmlapis/gen/go/ssn/annotator/v1;annotator\x92\x41\x38\x12\x0f\n\tSmartScan2\x02v1*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n ssn/annotator/v1/annotator.proto\x12\x10ssn.annotator.v1\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x18ssn/type/candidate.proto\x1a\x1essn/type/text_annotation.proto\x1a\x13ssn/type/tier.proto\"\xbb\t\n\x07\x46\x65\x61ture\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32\x1e.ssn.annotator.v1.Feature.TypeR\x04type\x12\x1f\n\x0bmax_results\x18\x02 \x01(\x05R\nmaxResults\x12\x41\n\x0emin_confidence\x18\x03 \x01(\x0e\x32\x1a.ssn.type.Confidence.LevelR\rminConfidence\"\x97\x08\n\x04Type\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x13\n\x0fTEXT_ANNOTATION\x10\x01\x12\x0e\n\nORDER_DATE\x10\x02\x12\x14\n\x10PAYMENT_DUE_DATE\x10\x03\x12\x0c\n\x08\x43URRENCY\x10\x04\x12\r\n\tTOTAL_VAT\x10\x05\x12\x12\n\x0eTOTAL_INCL_VAT\x10\x06\x12\x12\n\x0eTOTAL_EXCL_VAT\x10\x07\x12\x19\n\x15SUPPLIER_CORPORATE_ID\x10\x08\x12\x19\n\x15SUPPLIER_COUNTRY_CODE\x10\t\x12\x11\n\rDOCUMENT_TYPE\x10\n\x12\x12\n\x0ePAYMENT_METHOD\x10\x0b\x12\x19\n\x15\x43REDIT_CARD_LAST_FOUR\x10\x0c\x12\x12\n\x0eINVOICE_NUMBER\x10\r\x12\x14\n\x10OCR_LINE_DK_TYPE\x10\x0e\x12\x1a\n\x16OCR_LINE_DK_PAYMENT_ID\x10\x0f\x12\x1b\n\x17OCR_LINE_DK_CREDITOR_ID\x10\x10\x12\x1a\n\x16OCR_LINE_SE_PAYMENT_ID\x10\x11\x12$\n OCR_LINE_SE_BANKGIRO_CREDITOR_ID\x10\x12\x12$\n OCR_LINE_SE_PLUSGIRO_CREDITOR_ID\x10\x13\x12\x1a\n\x16OCR_LINE_NO_PAYMENT_ID\x10\x14\x12\x1a\n\x16OCR_LINE_FI_PAYMENT_ID\x10\x15\x12\x1a\n\x16OCR_LINE_NL_PAYMENT_ID\x10\x16\x12\x1a\n\x16OCR_LINE_BE_PAYMENT_ID\x10\'\x12\x08\n\x04TEXT\x10\x17\x12\x08\n\x04IBAN\x10\x18\x12\t\n\x05LINES\x10\x19\x12\x0b\n\x07PREVIEW\x10\x1a\x12\x17\n\x13\x42\x41NK_ACCOUNT_NUMBER\x10\x1b\x12\x1c\n\x18\x42\x41NK_REGISTRATION_NUMBER\x10\x1c\x12\x07\n\x03\x42IC\x10\x1d\x12\x13\n\x0f\x44OCUMENT_NUMBER\x10\x1e\x12\x11\n\rDOCUMENT_DATE\x10\x1f\x12\x10\n\x0cORDER_NUMBER\x10 \x12\x11\n\rSUPPLIER_NAME\x10!\x12\x17\n\x13SUPPLIER_VAT_NUMBER\x10\"\x12 \n\x1cSUPPLIER_ORGANISATION_NUMBER\x10#\x12\x14\n\x10SUPPLIER_ADDRESS\x10$\x12\x13\n\x0f\x43USTOMER_NUMBER\x10%\x12\x19\n\x15RECEIVER_ORDER_NUMBER\x10&\x12\x14\n\x10RECEIVER_ADDRESS\x10(\x12\x19\n\x15RECEIVER_COUNTRY_CODE\x10)\x12\x11\n\rRECEIVER_NAME\x10*\x12\x17\n\x13RECEIVER_VAT_NUMBER\x10+\x12\x12\n\x0ePURCHASE_LINES\x10,\x12\x0e\n\nPAGE_TEXTS\x10-\x12\x14\n\x10VAT_DISTRIBUTION\x10.\"\xfb\x01\n\x18\x44ocumentAnnotatorRequest\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\x1a.ssn.annotator.v1.DocumentR\x08\x64ocument\x12\x35\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x19.ssn.annotator.v1.FeatureR\x08\x66\x65\x61tures\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\"\n\x04tier\x18\x04 \x01(\x0e\x32\x0e.ssn.type.TierR\x04tier\x12\x1a\n\x08segments\x18\x05 \x03(\tR\x08segments\x12\x1c\n\tquestions\x18\x06 \x03(\tR\tquestions\"\xf8\x17\n\x19\x44ocumentAnnotatorResponse\x12\x32\n\norder_date\x18\x01 \x03(\x0b\x32\x13.ssn.type.CandidateR\torderDate\x12=\n\x10payment_due_date\x18\x02 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0epaymentDueDate\x12/\n\x08\x63urrency\x18\x03 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08\x63urrency\x12\x30\n\ttotal_vat\x18\x04 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08totalVat\x12\x39\n\x0etotal_incl_vat\x18\x05 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalInclVat\x12\x39\n\x0etotal_excl_vat\x18\x06 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalExclVat\x12G\n\x15supplier_corporate_id\x18\x07 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCorporateId\x12G\n\x15supplier_country_code\x18\x08 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCountryCode\x12\x38\n\rdocument_type\x18\t \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentType\x12:\n\x0epayment_method\x18\n \x03(\x0b\x32\x13.ssn.type.CandidateR\rpaymentMethod\x12\x46\n\x15\x63redit_card_last_four\x18\x0b \x03(\x0b\x32\x13.ssn.type.CandidateR\x12\x63reditCardLastFour\x12:\n\x0einvoice_number\x18\x0c \x03(\x0b\x32\x13.ssn.type.CandidateR\rinvoiceNumber\x12\x41\n\x0ftext_annotation\x18\r \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12<\n\x10ocr_line_dk_type\x18\x0e \x03(\x0b\x32\x13.ssn.type.CandidateR\rocrLineDkType\x12G\n\x16ocr_line_dk_payment_id\x18\x0f \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineDkPaymentId\x12I\n\x17ocr_line_dk_creditor_id\x18\x10 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13ocrLineDkCreditorId\x12G\n\x16ocr_line_se_payment_id\x18\x11 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineSePaymentId\x12Z\n ocr_line_se_bankgiro_creditor_id\x18\x12 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSeBankgiroCreditorId\x12Z\n ocr_line_se_plusgiro_creditor_id\x18\x13 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSePlusgiroCreditorId\x12G\n\x16ocr_line_no_payment_id\x18\x14 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNoPaymentId\x12G\n\x16ocr_line_fi_payment_id\x18\x15 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineFiPaymentId\x12G\n\x16ocr_line_nl_payment_id\x18\x16 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNlPaymentId\x12G\n\x16ocr_line_be_payment_id\x18( \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineBePaymentId\x12\x12\n\x04text\x18\x17 \x01(\tR\x04text\x12\x1f\n\x0b\x66\x65\x65\x64\x62\x61\x63k_id\x18\x18 \x01(\tR\nfeedbackId\x12\'\n\x04iban\x18\x19 \x03(\x0b\x32\x13.ssn.type.CandidateR\x04iban\x12-\n\x05lines\x18\x1a \x03(\x0b\x32\x17.ssn.type.LineCandidateR\x05lines\x12\x18\n\x07preview\x18\x1b \x01(\tR\x07preview\x12\x43\n\x13\x62\x61nk_account_number\x18\x1c \x03(\x0b\x32\x13.ssn.type.CandidateR\x11\x62\x61nkAccountNumber\x12M\n\x18\x62\x61nk_registration_number\x18\x1d \x03(\x0b\x32\x13.ssn.type.CandidateR\x16\x62\x61nkRegistrationNumber\x12%\n\x03\x62ic\x18\x1e \x03(\x0b\x32\x13.ssn.type.CandidateR\x03\x62ic\x12<\n\x0f\x64ocument_number\x18\x1f \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x64ocumentNumber\x12\x38\n\rdocument_date\x18 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentDate\x12\x36\n\x0corder_number\x18! \x03(\x0b\x32\x13.ssn.type.CandidateR\x0borderNumber\x12\x38\n\rsupplier_name\x18\" \x03(\x0b\x32\x13.ssn.type.CandidateR\x0csupplierName\x12\x43\n\x13supplier_vat_number\x18# \x03(\x0b\x32\x13.ssn.type.CandidateR\x11supplierVatNumber\x12U\n\x1csupplier_organisation_number\x18$ \x03(\x0b\x32\x13.ssn.type.CandidateR\x1asupplierOrganisationNumber\x12>\n\x10supplier_address\x18% \x03(\x0b\x32\x13.ssn.type.CandidateR\x0fsupplierAddress\x12<\n\x0f\x63ustomer_number\x18& \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x63ustomerNumber\x12G\n\x15receiver_order_number\x18\' \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverOrderNumber\x12>\n\x10receiver_address\x18) \x03(\x0b\x32\x13.ssn.type.CandidateR\x0freceiverAddress\x12G\n\x15receiver_country_code\x18* \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverCountryCode\x12\x38\n\rreceiver_name\x18+ \x03(\x0b\x32\x13.ssn.type.CandidateR\x0creceiverName\x12\x43\n\x13receiver_vat_number\x18, \x03(\x0b\x32\x13.ssn.type.CandidateR\x11receiverVatNumber\x12\x46\n\x0epurchase_lines\x18- \x03(\x0b\x32\x1f.ssn.type.PurchaseLineCandidateR\rpurchaseLines\x12\x33\n\x07\x61nswers\x18. \x03(\x0b\x32\x19.ssn.type.AnswerCandidateR\x07\x61nswers\x12\x31\n\npage_texts\x18/ \x03(\x0b\x32\x12.ssn.type.PageTextR\tpageTexts\x12\x62\n\x1bvat_distribution_candidates\x18\x30 \x03(\x0b\x32\".ssn.type.VatDistributionCandidateR\x19vatDistributionCandidates\"^\n\x08\x44ocument\x12\x18\n\x07\x63ontent\x18\x01 \x01(\x0cR\x07\x63ontent\x12\x38\n\x06source\x18\x02 \x01(\x0b\x32 .ssn.annotator.v1.DocumentSourceR\x06source\"+\n\x0e\x44ocumentSource\x12\x19\n\x08http_uri\x18\x01 \x01(\tR\x07httpUri\"o\n\x17\x44ocumentQuestionRequest\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\x1a.ssn.annotator.v1.DocumentR\x08\x64ocument\x12\x1c\n\tquestions\x18\x02 \x03(\tR\tquestions\"U\n\x18\x44ocumentQuestionResponse\x12\x33\n\x07\x61nswers\x18\x02 \x03(\x0b\x32\x19.ssn.type.AnswerCandidateR\x07\x61nswersJ\x04\x08\x01\x10\x02\x32\xbd\x02\n\x11\x44ocumentAnnotator\x12\x8d\x01\n\x10\x41nnotateDocument\x12*.ssn.annotator.v1.DocumentAnnotatorRequest\x1a+.ssn.annotator.v1.DocumentAnnotatorResponse\" \x82\xd3\xe4\x93\x02\x1a\"\x15/v1/document:annotate:\x01*\x12\x97\x01\n\x16\x41nswerDocumentQuestion\x12).ssn.annotator.v1.DocumentQuestionRequest\x1a*.ssn.annotator.v1.DocumentQuestionResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1/document:answerquestion:\x01*B{Z>github.com/e-conomic/vmlapis/gen/go/ssn/annotator/v1;annotator\x92\x41\x38\x12\x0f\n\tSmartScan2\x02v1*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -32,21 +32,21 @@ _DOCUMENTANNOTATOR.methods_by_name['AnswerDocumentQuestion']._options = None _DOCUMENTANNOTATOR.methods_by_name['AnswerDocumentQuestion']._serialized_options = b'\202\323\344\223\002 \"\033/v1/document:answerquestion:\001*' _globals['_FEATURE']._serialized_start=212 - _globals['_FEATURE']._serialized_end=1401 + _globals['_FEATURE']._serialized_end=1423 _globals['_FEATURE_TYPE']._serialized_start=376 - _globals['_FEATURE_TYPE']._serialized_end=1401 - _globals['_DOCUMENTANNOTATORREQUEST']._serialized_start=1404 - _globals['_DOCUMENTANNOTATORREQUEST']._serialized_end=1655 - _globals['_DOCUMENTANNOTATORRESPONSE']._serialized_start=1658 - _globals['_DOCUMENTANNOTATORRESPONSE']._serialized_end=4622 - _globals['_DOCUMENT']._serialized_start=4624 - _globals['_DOCUMENT']._serialized_end=4718 - _globals['_DOCUMENTSOURCE']._serialized_start=4720 - _globals['_DOCUMENTSOURCE']._serialized_end=4763 - _globals['_DOCUMENTQUESTIONREQUEST']._serialized_start=4765 - _globals['_DOCUMENTQUESTIONREQUEST']._serialized_end=4876 - _globals['_DOCUMENTQUESTIONRESPONSE']._serialized_start=4878 - _globals['_DOCUMENTQUESTIONRESPONSE']._serialized_end=4963 - _globals['_DOCUMENTANNOTATOR']._serialized_start=4966 - _globals['_DOCUMENTANNOTATOR']._serialized_end=5283 + _globals['_FEATURE_TYPE']._serialized_end=1423 + _globals['_DOCUMENTANNOTATORREQUEST']._serialized_start=1426 + _globals['_DOCUMENTANNOTATORREQUEST']._serialized_end=1677 + _globals['_DOCUMENTANNOTATORRESPONSE']._serialized_start=1680 + _globals['_DOCUMENTANNOTATORRESPONSE']._serialized_end=4744 + _globals['_DOCUMENT']._serialized_start=4746 + _globals['_DOCUMENT']._serialized_end=4840 + _globals['_DOCUMENTSOURCE']._serialized_start=4842 + _globals['_DOCUMENTSOURCE']._serialized_end=4885 + _globals['_DOCUMENTQUESTIONREQUEST']._serialized_start=4887 + _globals['_DOCUMENTQUESTIONREQUEST']._serialized_end=4998 + _globals['_DOCUMENTQUESTIONRESPONSE']._serialized_start=5000 + _globals['_DOCUMENTQUESTIONRESPONSE']._serialized_end=5085 + _globals['_DOCUMENTANNOTATOR']._serialized_start=5088 + _globals['_DOCUMENTANNOTATOR']._serialized_end=5405 # @@protoc_insertion_point(module_scope) diff --git a/gen/python/ssn/annotator/v1/annotator_pb2.pyi b/gen/python/ssn/annotator/v1/annotator_pb2.pyi index 2803d764..3c40d89e 100644 --- a/gen/python/ssn/annotator/v1/annotator_pb2.pyi +++ b/gen/python/ssn/annotator/v1/annotator_pb2.pyi @@ -61,6 +61,7 @@ class Feature(_message.Message): RECEIVER_VAT_NUMBER: _ClassVar[Feature.Type] PURCHASE_LINES: _ClassVar[Feature.Type] PAGE_TEXTS: _ClassVar[Feature.Type] + VAT_DISTRIBUTION: _ClassVar[Feature.Type] DEFAULT: Feature.Type TEXT_ANNOTATION: Feature.Type ORDER_DATE: Feature.Type @@ -107,6 +108,7 @@ class Feature(_message.Message): RECEIVER_VAT_NUMBER: Feature.Type PURCHASE_LINES: Feature.Type PAGE_TEXTS: Feature.Type + VAT_DISTRIBUTION: Feature.Type TYPE_FIELD_NUMBER: _ClassVar[int] MAX_RESULTS_FIELD_NUMBER: _ClassVar[int] MIN_CONFIDENCE_FIELD_NUMBER: _ClassVar[int] @@ -132,7 +134,7 @@ class DocumentAnnotatorRequest(_message.Message): def __init__(self, document: _Optional[_Union[Document, _Mapping]] = ..., features: _Optional[_Iterable[_Union[Feature, _Mapping]]] = ..., tags: _Optional[_Iterable[str]] = ..., tier: _Optional[_Union[_tier_pb2.Tier, str]] = ..., segments: _Optional[_Iterable[str]] = ..., questions: _Optional[_Iterable[str]] = ...) -> None: ... class DocumentAnnotatorResponse(_message.Message): - __slots__ = ["order_date", "payment_due_date", "currency", "total_vat", "total_incl_vat", "total_excl_vat", "supplier_corporate_id", "supplier_country_code", "document_type", "payment_method", "credit_card_last_four", "invoice_number", "text_annotation", "ocr_line_dk_type", "ocr_line_dk_payment_id", "ocr_line_dk_creditor_id", "ocr_line_se_payment_id", "ocr_line_se_bankgiro_creditor_id", "ocr_line_se_plusgiro_creditor_id", "ocr_line_no_payment_id", "ocr_line_fi_payment_id", "ocr_line_nl_payment_id", "ocr_line_be_payment_id", "text", "feedback_id", "iban", "lines", "preview", "bank_account_number", "bank_registration_number", "bic", "document_number", "document_date", "order_number", "supplier_name", "supplier_vat_number", "supplier_organisation_number", "supplier_address", "customer_number", "receiver_order_number", "receiver_address", "receiver_country_code", "receiver_name", "receiver_vat_number", "purchase_lines", "answers", "page_texts"] + __slots__ = ["order_date", "payment_due_date", "currency", "total_vat", "total_incl_vat", "total_excl_vat", "supplier_corporate_id", "supplier_country_code", "document_type", "payment_method", "credit_card_last_four", "invoice_number", "text_annotation", "ocr_line_dk_type", "ocr_line_dk_payment_id", "ocr_line_dk_creditor_id", "ocr_line_se_payment_id", "ocr_line_se_bankgiro_creditor_id", "ocr_line_se_plusgiro_creditor_id", "ocr_line_no_payment_id", "ocr_line_fi_payment_id", "ocr_line_nl_payment_id", "ocr_line_be_payment_id", "text", "feedback_id", "iban", "lines", "preview", "bank_account_number", "bank_registration_number", "bic", "document_number", "document_date", "order_number", "supplier_name", "supplier_vat_number", "supplier_organisation_number", "supplier_address", "customer_number", "receiver_order_number", "receiver_address", "receiver_country_code", "receiver_name", "receiver_vat_number", "purchase_lines", "answers", "page_texts", "vat_distribution_candidates"] ORDER_DATE_FIELD_NUMBER: _ClassVar[int] PAYMENT_DUE_DATE_FIELD_NUMBER: _ClassVar[int] CURRENCY_FIELD_NUMBER: _ClassVar[int] @@ -180,6 +182,7 @@ class DocumentAnnotatorResponse(_message.Message): PURCHASE_LINES_FIELD_NUMBER: _ClassVar[int] ANSWERS_FIELD_NUMBER: _ClassVar[int] PAGE_TEXTS_FIELD_NUMBER: _ClassVar[int] + VAT_DISTRIBUTION_CANDIDATES_FIELD_NUMBER: _ClassVar[int] order_date: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.Candidate] payment_due_date: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.Candidate] currency: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.Candidate] @@ -227,7 +230,8 @@ class DocumentAnnotatorResponse(_message.Message): purchase_lines: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.PurchaseLineCandidate] answers: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.AnswerCandidate] page_texts: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.PageText] - def __init__(self, order_date: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., payment_due_date: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., currency: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., total_vat: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., total_incl_vat: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., total_excl_vat: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_corporate_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_country_code: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., document_type: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., payment_method: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., credit_card_last_four: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., invoice_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., text_annotation: _Optional[_Union[_text_annotation_pb2.TextAnnotation, _Mapping]] = ..., ocr_line_dk_type: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_dk_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_dk_creditor_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_se_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_se_bankgiro_creditor_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_se_plusgiro_creditor_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_no_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_fi_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_nl_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_be_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., text: _Optional[str] = ..., feedback_id: _Optional[str] = ..., iban: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., lines: _Optional[_Iterable[_Union[_candidate_pb2.LineCandidate, _Mapping]]] = ..., preview: _Optional[str] = ..., bank_account_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., bank_registration_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., bic: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., document_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., document_date: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., order_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_name: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_vat_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_organisation_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_address: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., customer_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_order_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_address: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_country_code: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_name: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_vat_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., purchase_lines: _Optional[_Iterable[_Union[_candidate_pb2.PurchaseLineCandidate, _Mapping]]] = ..., answers: _Optional[_Iterable[_Union[_candidate_pb2.AnswerCandidate, _Mapping]]] = ..., page_texts: _Optional[_Iterable[_Union[_candidate_pb2.PageText, _Mapping]]] = ...) -> None: ... + vat_distribution_candidates: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.VatDistributionCandidate] + def __init__(self, order_date: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., payment_due_date: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., currency: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., total_vat: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., total_incl_vat: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., total_excl_vat: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_corporate_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_country_code: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., document_type: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., payment_method: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., credit_card_last_four: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., invoice_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., text_annotation: _Optional[_Union[_text_annotation_pb2.TextAnnotation, _Mapping]] = ..., ocr_line_dk_type: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_dk_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_dk_creditor_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_se_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_se_bankgiro_creditor_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_se_plusgiro_creditor_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_no_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_fi_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_nl_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., ocr_line_be_payment_id: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., text: _Optional[str] = ..., feedback_id: _Optional[str] = ..., iban: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., lines: _Optional[_Iterable[_Union[_candidate_pb2.LineCandidate, _Mapping]]] = ..., preview: _Optional[str] = ..., bank_account_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., bank_registration_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., bic: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., document_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., document_date: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., order_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_name: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_vat_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_organisation_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., supplier_address: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., customer_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_order_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_address: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_country_code: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_name: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., receiver_vat_number: _Optional[_Iterable[_Union[_candidate_pb2.Candidate, _Mapping]]] = ..., purchase_lines: _Optional[_Iterable[_Union[_candidate_pb2.PurchaseLineCandidate, _Mapping]]] = ..., answers: _Optional[_Iterable[_Union[_candidate_pb2.AnswerCandidate, _Mapping]]] = ..., page_texts: _Optional[_Iterable[_Union[_candidate_pb2.PageText, _Mapping]]] = ..., vat_distribution_candidates: _Optional[_Iterable[_Union[_candidate_pb2.VatDistributionCandidate, _Mapping]]] = ...) -> None: ... class Document(_message.Message): __slots__ = ["content", "source"] diff --git a/gen/python/ssn/mlservice/v2/mlservice_pb2.py b/gen/python/ssn/mlservice/v2/mlservice_pb2.py index 3ab38d55..8c3c43e8 100644 --- a/gen/python/ssn/mlservice/v2/mlservice_pb2.py +++ b/gen/python/ssn/mlservice/v2/mlservice_pb2.py @@ -16,7 +16,7 @@ from vml_proto.ssn.type import text_annotation_pb2 as ssn_dot_type_dot_text__annotation__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n ssn/mlservice/v2/mlservice.proto\x12\x10ssn.mlservice.v2\x1a\x16google/type/date.proto\x1a\x18ssn/type/candidate.proto\x1a\x1essn/type/text_annotation.proto\"\x86\x10\n\x11\x46\x65\x61tureGenRequest\x12R\n\x0ctruth_labels\x18\x01 \x01(\x0b\x32/.ssn.mlservice.v2.FeatureGenRequest.TruthLabelsR\x0btruthLabels\x12\x41\n\x0ftext_annotation\x18\x02 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x0e\n\x02id\x18\x03 \x01(\tR\x02id\x1a\xc9\x0e\n\x0bTruthLabels\x12$\n\x0etotal_incl_vat\x18\x01 \x01(\x01R\x0ctotalInclVat\x12\x1b\n\ttotal_vat\x18\x02 \x01(\x01R\x08totalVat\x12$\n\x0etotal_excl_vat\x18\x03 \x01(\x01R\x0ctotalExclVat\x12\x30\n\norder_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateR\torderDate\x12;\n\x10payment_due_date\x18\x05 \x01(\x0b\x32\x11.google.type.DateR\x0epaymentDueDate\x12#\n\rdocument_type\x18\x06 \x01(\tR\x0c\x64ocumentType\x12\x1a\n\x08\x63urrency\x18\x07 \x01(\tR\x08\x63urrency\x12,\n\x12\x63redit_card_number\x18\x08 \x01(\tR\x10\x63reditCardNumber\x12%\n\x0epayment_method\x18\t \x01(\tR\rpaymentMethod\x12\'\n\x10ocr_line_dk_type\x18\n \x01(\tR\rocrLineDkType\x12\x32\n\x16ocr_line_dk_payment_id\x18\x0b \x01(\tR\x12ocrLineDkPaymentId\x12\x34\n\x17ocr_line_dk_creditor_id\x18\x0c \x01(\tR\x13ocrLineDkCreditorId\x12\x32\n\x16ocr_line_se_payment_id\x18\r \x01(\tR\x12ocrLineSePaymentId\x12\x45\n ocr_line_se_bankgiro_creditor_id\x18\x0e \x01(\tR\x1bocrLineSeBankgiroCreditorId\x12\x45\n ocr_line_se_plusgiro_creditor_id\x18\x0f \x01(\tR\x1bocrLineSePlusgiroCreditorId\x12\x32\n\x16ocr_line_no_payment_id\x18\x10 \x01(\tR\x12ocrLineNoPaymentId\x12\x32\n\x16ocr_line_fi_payment_id\x18\x11 \x01(\tR\x12ocrLineFiPaymentId\x12\x32\n\x16ocr_line_nl_payment_id\x18\x12 \x01(\tR\x12ocrLineNlPaymentId\x12\x32\n\x15supplier_corporate_id\x18\x13 \x01(\tR\x13supplierCorporateId\x12\x32\n\x15supplier_country_code\x18\x14 \x01(\tR\x13supplierCountryCode\x12%\n\x0einvoice_number\x18\x15 \x01(\tR\rinvoiceNumber\x12\x12\n\x04iban\x18\x16 \x01(\tR\x04iban\x12.\n\x13\x62\x61nk_account_number\x18\x17 \x01(\tR\x11\x62\x61nkAccountNumber\x12\x38\n\x18\x62\x61nk_registration_number\x18\x18 \x01(\tR\x16\x62\x61nkRegistrationNumber\x12#\n\rsupplier_name\x18\x19 \x01(\tR\x0csupplierName\x12\x10\n\x03\x62ic\x18\x1a \x01(\tR\x03\x62ic\x12\'\n\x0f\x64ocument_number\x18\x1b \x01(\tR\x0e\x64ocumentNumber\x12\x36\n\rdocument_date\x18\x1c \x01(\x0b\x32\x11.google.type.DateR\x0c\x64ocumentDate\x12!\n\x0corder_number\x18\x1d \x01(\tR\x0borderNumber\x12.\n\x13supplier_vat_number\x18\x1e \x01(\tR\x11supplierVatNumber\x12@\n\x1csupplier_organisation_number\x18\x1f \x01(\tR\x1asupplierOrganisationNumber\x12)\n\x10supplier_address\x18 \x01(\tR\x0fsupplierAddress\x12\x31\n\x15\x63redit_card_last_four\x18! \x01(\tR\x12\x63reditCardLastFour\x12\'\n\x0f\x63ustomer_number\x18\" \x01(\tR\x0e\x63ustomerNumber\x12\x32\n\x15receiver_order_number\x18# \x01(\tR\x13receiverOrderNumber\x12\x32\n\x16ocr_line_be_payment_id\x18$ \x01(\tR\x12ocrLineBePaymentId\x12)\n\x10receiver_address\x18% \x01(\tR\x0freceiverAddress\x12\x32\n\x15receiver_country_code\x18& \x01(\tR\x13receiverCountryCode\x12#\n\rreceiver_name\x18\' \x01(\tR\x0creceiverName\x12.\n\x13receiver_vat_number\x18( \x01(\tR\x11receiverVatNumber\"\x1a\n\x12\x46\x65\x61tureGenResponseJ\x04\x08\x01\x10\x02\"G\n\x0ePredictRequest\x12/\n\x14top_n_most_confident\x18\x02 \x01(\rR\x11topNMostConfidentJ\x04\x08\x01\x10\x02\"\x8b\x15\n\x0fPredictResponse\x12\x32\n\norder_date\x18\x01 \x03(\x0b\x32\x13.ssn.type.CandidateR\torderDate\x12=\n\x10payment_due_date\x18\x02 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0epaymentDueDate\x12/\n\x08\x63urrency\x18\x03 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08\x63urrency\x12\x30\n\ttotal_vat\x18\x04 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08totalVat\x12\x39\n\x0etotal_incl_vat\x18\x05 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalInclVat\x12\x39\n\x0etotal_excl_vat\x18\x06 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalExclVat\x12G\n\x15supplier_corporate_id\x18\x07 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCorporateId\x12G\n\x15supplier_country_code\x18\x08 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCountryCode\x12\x38\n\rdocument_type\x18\t \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentType\x12:\n\x0epayment_method\x18\n \x03(\x0b\x32\x13.ssn.type.CandidateR\rpaymentMethod\x12\x41\n\x12\x63redit_card_number\x18\x0b \x03(\x0b\x32\x13.ssn.type.CandidateR\x10\x63reditCardNumber\x12:\n\x0einvoice_number\x18\x0c \x03(\x0b\x32\x13.ssn.type.CandidateR\rinvoiceNumber\x12<\n\x10ocr_line_dk_type\x18\r \x03(\x0b\x32\x13.ssn.type.CandidateR\rocrLineDkType\x12G\n\x16ocr_line_dk_payment_id\x18\x0e \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineDkPaymentId\x12I\n\x17ocr_line_dk_creditor_id\x18\x0f \x03(\x0b\x32\x13.ssn.type.CandidateR\x13ocrLineDkCreditorId\x12G\n\x16ocr_line_se_payment_id\x18\x10 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineSePaymentId\x12Z\n ocr_line_se_bankgiro_creditor_id\x18\x11 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSeBankgiroCreditorId\x12Z\n ocr_line_se_plusgiro_creditor_id\x18\x12 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSePlusgiroCreditorId\x12G\n\x16ocr_line_no_payment_id\x18\x13 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNoPaymentId\x12G\n\x16ocr_line_fi_payment_id\x18\x14 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineFiPaymentId\x12G\n\x16ocr_line_nl_payment_id\x18\x15 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNlPaymentId\x12\'\n\x04iban\x18\x16 \x03(\x0b\x32\x13.ssn.type.CandidateR\x04iban\x12-\n\x05lines\x18\x17 \x03(\x0b\x32\x17.ssn.type.LineCandidateR\x05lines\x12\x43\n\x13\x62\x61nk_account_number\x18\x18 \x03(\x0b\x32\x13.ssn.type.CandidateR\x11\x62\x61nkAccountNumber\x12M\n\x18\x62\x61nk_registration_number\x18\x19 \x03(\x0b\x32\x13.ssn.type.CandidateR\x16\x62\x61nkRegistrationNumber\x12%\n\x03\x62ic\x18\x1a \x03(\x0b\x32\x13.ssn.type.CandidateR\x03\x62ic\x12<\n\x0f\x64ocument_number\x18\x1b \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x64ocumentNumber\x12\x38\n\rdocument_date\x18\x1c \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentDate\x12\x36\n\x0corder_number\x18\x1d \x03(\x0b\x32\x13.ssn.type.CandidateR\x0borderNumber\x12\x38\n\rsupplier_name\x18\x1e \x03(\x0b\x32\x13.ssn.type.CandidateR\x0csupplierName\x12\x43\n\x13supplier_vat_number\x18\x1f \x03(\x0b\x32\x13.ssn.type.CandidateR\x11supplierVatNumber\x12U\n\x1csupplier_organisation_number\x18 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1asupplierOrganisationNumber\x12>\n\x10supplier_address\x18! \x03(\x0b\x32\x13.ssn.type.CandidateR\x0fsupplierAddress\x12\x46\n\x15\x63redit_card_last_four\x18\" \x03(\x0b\x32\x13.ssn.type.CandidateR\x12\x63reditCardLastFour\x12<\n\x0f\x63ustomer_number\x18# \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x63ustomerNumber\x12G\n\x15receiver_order_number\x18$ \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverOrderNumber\x12G\n\x16ocr_line_be_payment_id\x18% \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineBePaymentId\x12>\n\x10receiver_address\x18& \x03(\x0b\x32\x13.ssn.type.CandidateR\x0freceiverAddress\x12G\n\x15receiver_country_code\x18\' \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverCountryCode\x12\x38\n\rreceiver_name\x18( \x03(\x0b\x32\x13.ssn.type.CandidateR\x0creceiverName\x12\x43\n\x13receiver_vat_number\x18) \x03(\x0b\x32\x13.ssn.type.CandidateR\x11receiverVatNumber\"\xba\x01\n\x18\x46\x65\x61tureGenPredictRequest\x12S\n\x13\x66\x65\x61ture_gen_request\x18\x01 \x01(\x0b\x32#.ssn.mlservice.v2.FeatureGenRequestR\x11\x66\x65\x61tureGenRequest\x12I\n\x0fpredict_request\x18\x02 \x01(\x0b\x32 .ssn.mlservice.v2.PredictRequestR\x0epredictRequest\"o\n\x14PurchaseLinesRequest\x12\x41\n\x0ftext_annotation\x18\x01 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image\"_\n\x15PurchaseLinesResponse\x12\x46\n\x0epurchase_lines\x18\x01 \x03(\x0b\x32\x1f.ssn.type.PurchaseLineCandidateR\rpurchaseLines\"\x85\x01\n\x0c\x44ocQARequest\x12\x41\n\x0ftext_annotation\x18\x01 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image\x12\x1c\n\tquestions\x18\x03 \x03(\tR\tquestions\"D\n\rDocQAResponse\x12\x33\n\x07\x61nswers\x18\x01 \x03(\x0b\x32\x19.ssn.type.AnswerCandidateR\x07\x61nswers2\x98\x02\n\tMlService\x12W\n\nFeatureGen\x12#.ssn.mlservice.v2.FeatureGenRequest\x1a$.ssn.mlservice.v2.FeatureGenResponse\x12N\n\x07Predict\x12 .ssn.mlservice.v2.PredictRequest\x1a!.ssn.mlservice.v2.PredictResponse\x12\x62\n\x11\x46\x65\x61tureGenPredict\x12*.ssn.mlservice.v2.FeatureGenPredictRequest\x1a!.ssn.mlservice.v2.PredictResponseBQB\x0fMlServiceProtosZ>github.com/e-conomic/vmlapis/gen/go/ssn/mlservice/v2;mlserviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n ssn/mlservice/v2/mlservice.proto\x12\x10ssn.mlservice.v2\x1a\x16google/type/date.proto\x1a\x18ssn/type/candidate.proto\x1a\x1essn/type/text_annotation.proto\"\x86\x10\n\x11\x46\x65\x61tureGenRequest\x12R\n\x0ctruth_labels\x18\x01 \x01(\x0b\x32/.ssn.mlservice.v2.FeatureGenRequest.TruthLabelsR\x0btruthLabels\x12\x41\n\x0ftext_annotation\x18\x02 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x0e\n\x02id\x18\x03 \x01(\tR\x02id\x1a\xc9\x0e\n\x0bTruthLabels\x12$\n\x0etotal_incl_vat\x18\x01 \x01(\x01R\x0ctotalInclVat\x12\x1b\n\ttotal_vat\x18\x02 \x01(\x01R\x08totalVat\x12$\n\x0etotal_excl_vat\x18\x03 \x01(\x01R\x0ctotalExclVat\x12\x30\n\norder_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateR\torderDate\x12;\n\x10payment_due_date\x18\x05 \x01(\x0b\x32\x11.google.type.DateR\x0epaymentDueDate\x12#\n\rdocument_type\x18\x06 \x01(\tR\x0c\x64ocumentType\x12\x1a\n\x08\x63urrency\x18\x07 \x01(\tR\x08\x63urrency\x12,\n\x12\x63redit_card_number\x18\x08 \x01(\tR\x10\x63reditCardNumber\x12%\n\x0epayment_method\x18\t \x01(\tR\rpaymentMethod\x12\'\n\x10ocr_line_dk_type\x18\n \x01(\tR\rocrLineDkType\x12\x32\n\x16ocr_line_dk_payment_id\x18\x0b \x01(\tR\x12ocrLineDkPaymentId\x12\x34\n\x17ocr_line_dk_creditor_id\x18\x0c \x01(\tR\x13ocrLineDkCreditorId\x12\x32\n\x16ocr_line_se_payment_id\x18\r \x01(\tR\x12ocrLineSePaymentId\x12\x45\n ocr_line_se_bankgiro_creditor_id\x18\x0e \x01(\tR\x1bocrLineSeBankgiroCreditorId\x12\x45\n ocr_line_se_plusgiro_creditor_id\x18\x0f \x01(\tR\x1bocrLineSePlusgiroCreditorId\x12\x32\n\x16ocr_line_no_payment_id\x18\x10 \x01(\tR\x12ocrLineNoPaymentId\x12\x32\n\x16ocr_line_fi_payment_id\x18\x11 \x01(\tR\x12ocrLineFiPaymentId\x12\x32\n\x16ocr_line_nl_payment_id\x18\x12 \x01(\tR\x12ocrLineNlPaymentId\x12\x32\n\x15supplier_corporate_id\x18\x13 \x01(\tR\x13supplierCorporateId\x12\x32\n\x15supplier_country_code\x18\x14 \x01(\tR\x13supplierCountryCode\x12%\n\x0einvoice_number\x18\x15 \x01(\tR\rinvoiceNumber\x12\x12\n\x04iban\x18\x16 \x01(\tR\x04iban\x12.\n\x13\x62\x61nk_account_number\x18\x17 \x01(\tR\x11\x62\x61nkAccountNumber\x12\x38\n\x18\x62\x61nk_registration_number\x18\x18 \x01(\tR\x16\x62\x61nkRegistrationNumber\x12#\n\rsupplier_name\x18\x19 \x01(\tR\x0csupplierName\x12\x10\n\x03\x62ic\x18\x1a \x01(\tR\x03\x62ic\x12\'\n\x0f\x64ocument_number\x18\x1b \x01(\tR\x0e\x64ocumentNumber\x12\x36\n\rdocument_date\x18\x1c \x01(\x0b\x32\x11.google.type.DateR\x0c\x64ocumentDate\x12!\n\x0corder_number\x18\x1d \x01(\tR\x0borderNumber\x12.\n\x13supplier_vat_number\x18\x1e \x01(\tR\x11supplierVatNumber\x12@\n\x1csupplier_organisation_number\x18\x1f \x01(\tR\x1asupplierOrganisationNumber\x12)\n\x10supplier_address\x18 \x01(\tR\x0fsupplierAddress\x12\x31\n\x15\x63redit_card_last_four\x18! \x01(\tR\x12\x63reditCardLastFour\x12\'\n\x0f\x63ustomer_number\x18\" \x01(\tR\x0e\x63ustomerNumber\x12\x32\n\x15receiver_order_number\x18# \x01(\tR\x13receiverOrderNumber\x12\x32\n\x16ocr_line_be_payment_id\x18$ \x01(\tR\x12ocrLineBePaymentId\x12)\n\x10receiver_address\x18% \x01(\tR\x0freceiverAddress\x12\x32\n\x15receiver_country_code\x18& \x01(\tR\x13receiverCountryCode\x12#\n\rreceiver_name\x18\' \x01(\tR\x0creceiverName\x12.\n\x13receiver_vat_number\x18( \x01(\tR\x11receiverVatNumber\"\x1a\n\x12\x46\x65\x61tureGenResponseJ\x04\x08\x01\x10\x02\"G\n\x0ePredictRequest\x12/\n\x14top_n_most_confident\x18\x02 \x01(\rR\x11topNMostConfidentJ\x04\x08\x01\x10\x02\"\x8b\x15\n\x0fPredictResponse\x12\x32\n\norder_date\x18\x01 \x03(\x0b\x32\x13.ssn.type.CandidateR\torderDate\x12=\n\x10payment_due_date\x18\x02 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0epaymentDueDate\x12/\n\x08\x63urrency\x18\x03 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08\x63urrency\x12\x30\n\ttotal_vat\x18\x04 \x03(\x0b\x32\x13.ssn.type.CandidateR\x08totalVat\x12\x39\n\x0etotal_incl_vat\x18\x05 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalInclVat\x12\x39\n\x0etotal_excl_vat\x18\x06 \x03(\x0b\x32\x13.ssn.type.CandidateR\x0ctotalExclVat\x12G\n\x15supplier_corporate_id\x18\x07 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCorporateId\x12G\n\x15supplier_country_code\x18\x08 \x03(\x0b\x32\x13.ssn.type.CandidateR\x13supplierCountryCode\x12\x38\n\rdocument_type\x18\t \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentType\x12:\n\x0epayment_method\x18\n \x03(\x0b\x32\x13.ssn.type.CandidateR\rpaymentMethod\x12\x41\n\x12\x63redit_card_number\x18\x0b \x03(\x0b\x32\x13.ssn.type.CandidateR\x10\x63reditCardNumber\x12:\n\x0einvoice_number\x18\x0c \x03(\x0b\x32\x13.ssn.type.CandidateR\rinvoiceNumber\x12<\n\x10ocr_line_dk_type\x18\r \x03(\x0b\x32\x13.ssn.type.CandidateR\rocrLineDkType\x12G\n\x16ocr_line_dk_payment_id\x18\x0e \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineDkPaymentId\x12I\n\x17ocr_line_dk_creditor_id\x18\x0f \x03(\x0b\x32\x13.ssn.type.CandidateR\x13ocrLineDkCreditorId\x12G\n\x16ocr_line_se_payment_id\x18\x10 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineSePaymentId\x12Z\n ocr_line_se_bankgiro_creditor_id\x18\x11 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSeBankgiroCreditorId\x12Z\n ocr_line_se_plusgiro_creditor_id\x18\x12 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1bocrLineSePlusgiroCreditorId\x12G\n\x16ocr_line_no_payment_id\x18\x13 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNoPaymentId\x12G\n\x16ocr_line_fi_payment_id\x18\x14 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineFiPaymentId\x12G\n\x16ocr_line_nl_payment_id\x18\x15 \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineNlPaymentId\x12\'\n\x04iban\x18\x16 \x03(\x0b\x32\x13.ssn.type.CandidateR\x04iban\x12-\n\x05lines\x18\x17 \x03(\x0b\x32\x17.ssn.type.LineCandidateR\x05lines\x12\x43\n\x13\x62\x61nk_account_number\x18\x18 \x03(\x0b\x32\x13.ssn.type.CandidateR\x11\x62\x61nkAccountNumber\x12M\n\x18\x62\x61nk_registration_number\x18\x19 \x03(\x0b\x32\x13.ssn.type.CandidateR\x16\x62\x61nkRegistrationNumber\x12%\n\x03\x62ic\x18\x1a \x03(\x0b\x32\x13.ssn.type.CandidateR\x03\x62ic\x12<\n\x0f\x64ocument_number\x18\x1b \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x64ocumentNumber\x12\x38\n\rdocument_date\x18\x1c \x03(\x0b\x32\x13.ssn.type.CandidateR\x0c\x64ocumentDate\x12\x36\n\x0corder_number\x18\x1d \x03(\x0b\x32\x13.ssn.type.CandidateR\x0borderNumber\x12\x38\n\rsupplier_name\x18\x1e \x03(\x0b\x32\x13.ssn.type.CandidateR\x0csupplierName\x12\x43\n\x13supplier_vat_number\x18\x1f \x03(\x0b\x32\x13.ssn.type.CandidateR\x11supplierVatNumber\x12U\n\x1csupplier_organisation_number\x18 \x03(\x0b\x32\x13.ssn.type.CandidateR\x1asupplierOrganisationNumber\x12>\n\x10supplier_address\x18! \x03(\x0b\x32\x13.ssn.type.CandidateR\x0fsupplierAddress\x12\x46\n\x15\x63redit_card_last_four\x18\" \x03(\x0b\x32\x13.ssn.type.CandidateR\x12\x63reditCardLastFour\x12<\n\x0f\x63ustomer_number\x18# \x03(\x0b\x32\x13.ssn.type.CandidateR\x0e\x63ustomerNumber\x12G\n\x15receiver_order_number\x18$ \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverOrderNumber\x12G\n\x16ocr_line_be_payment_id\x18% \x03(\x0b\x32\x13.ssn.type.CandidateR\x12ocrLineBePaymentId\x12>\n\x10receiver_address\x18& \x03(\x0b\x32\x13.ssn.type.CandidateR\x0freceiverAddress\x12G\n\x15receiver_country_code\x18\' \x03(\x0b\x32\x13.ssn.type.CandidateR\x13receiverCountryCode\x12\x38\n\rreceiver_name\x18( \x03(\x0b\x32\x13.ssn.type.CandidateR\x0creceiverName\x12\x43\n\x13receiver_vat_number\x18) \x03(\x0b\x32\x13.ssn.type.CandidateR\x11receiverVatNumber\"\xba\x01\n\x18\x46\x65\x61tureGenPredictRequest\x12S\n\x13\x66\x65\x61ture_gen_request\x18\x01 \x01(\x0b\x32#.ssn.mlservice.v2.FeatureGenRequestR\x11\x66\x65\x61tureGenRequest\x12I\n\x0fpredict_request\x18\x02 \x01(\x0b\x32 .ssn.mlservice.v2.PredictRequestR\x0epredictRequest\"o\n\x14PurchaseLinesRequest\x12\x41\n\x0ftext_annotation\x18\x01 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image\"_\n\x15PurchaseLinesResponse\x12\x46\n\x0epurchase_lines\x18\x01 \x03(\x0b\x32\x1f.ssn.type.PurchaseLineCandidateR\rpurchaseLines\"\x85\x01\n\x0c\x44ocQARequest\x12\x41\n\x0ftext_annotation\x18\x01 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image\x12\x1c\n\tquestions\x18\x03 \x03(\tR\tquestions\"D\n\rDocQAResponse\x12\x33\n\x07\x61nswers\x18\x01 \x03(\x0b\x32\x19.ssn.type.AnswerCandidateR\x07\x61nswers\"\x94\x01\n\x16VatDistributionRequest\x12\x41\n\x0ftext_annotation\x18\x01 \x01(\x0b\x32\x18.ssn.type.TextAnnotationR\x0etextAnnotation\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image\x12!\n\x0c\x63ountry_code\x18\x03 \x01(\tR\x0b\x63ountryCode\"}\n\x17VatDistributionResponse\x12\x62\n\x1bvat_distribution_candidates\x18\x01 \x03(\x0b\x32\".ssn.type.VatDistributionCandidateR\x19vatDistributionCandidates2\x98\x02\n\tMlService\x12W\n\nFeatureGen\x12#.ssn.mlservice.v2.FeatureGenRequest\x1a$.ssn.mlservice.v2.FeatureGenResponse\x12N\n\x07Predict\x12 .ssn.mlservice.v2.PredictRequest\x1a!.ssn.mlservice.v2.PredictResponse\x12\x62\n\x11\x46\x65\x61tureGenPredict\x12*.ssn.mlservice.v2.FeatureGenPredictRequest\x1a!.ssn.mlservice.v2.PredictResponseBQB\x0fMlServiceProtosZ>github.com/e-conomic/vmlapis/gen/go/ssn/mlservice/v2;mlserviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -45,6 +45,10 @@ _globals['_DOCQAREQUEST']._serialized_end=5529 _globals['_DOCQARESPONSE']._serialized_start=5531 _globals['_DOCQARESPONSE']._serialized_end=5599 - _globals['_MLSERVICE']._serialized_start=5602 - _globals['_MLSERVICE']._serialized_end=5882 + _globals['_VATDISTRIBUTIONREQUEST']._serialized_start=5602 + _globals['_VATDISTRIBUTIONREQUEST']._serialized_end=5750 + _globals['_VATDISTRIBUTIONRESPONSE']._serialized_start=5752 + _globals['_VATDISTRIBUTIONRESPONSE']._serialized_end=5877 + _globals['_MLSERVICE']._serialized_start=5880 + _globals['_MLSERVICE']._serialized_end=6160 # @@protoc_insertion_point(module_scope) diff --git a/gen/python/ssn/mlservice/v2/mlservice_pb2.pyi b/gen/python/ssn/mlservice/v2/mlservice_pb2.pyi index e8fc2589..a41dbbed 100644 --- a/gen/python/ssn/mlservice/v2/mlservice_pb2.pyi +++ b/gen/python/ssn/mlservice/v2/mlservice_pb2.pyi @@ -234,3 +234,19 @@ class DocQAResponse(_message.Message): ANSWERS_FIELD_NUMBER: _ClassVar[int] answers: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.AnswerCandidate] def __init__(self, answers: _Optional[_Iterable[_Union[_candidate_pb2.AnswerCandidate, _Mapping]]] = ...) -> None: ... + +class VatDistributionRequest(_message.Message): + __slots__ = ["text_annotation", "image", "country_code"] + TEXT_ANNOTATION_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + COUNTRY_CODE_FIELD_NUMBER: _ClassVar[int] + text_annotation: _text_annotation_pb2.TextAnnotation + image: bytes + country_code: str + def __init__(self, text_annotation: _Optional[_Union[_text_annotation_pb2.TextAnnotation, _Mapping]] = ..., image: _Optional[bytes] = ..., country_code: _Optional[str] = ...) -> None: ... + +class VatDistributionResponse(_message.Message): + __slots__ = ["vat_distribution_candidates"] + VAT_DISTRIBUTION_CANDIDATES_FIELD_NUMBER: _ClassVar[int] + vat_distribution_candidates: _containers.RepeatedCompositeFieldContainer[_candidate_pb2.VatDistributionCandidate] + def __init__(self, vat_distribution_candidates: _Optional[_Iterable[_Union[_candidate_pb2.VatDistributionCandidate, _Mapping]]] = ...) -> None: ... diff --git a/gen/python/ssn/type/candidate_pb2.py b/gen/python/ssn/type/candidate_pb2.py index f59c75ad..b873e8da 100644 --- a/gen/python/ssn/type/candidate_pb2.py +++ b/gen/python/ssn/type/candidate_pb2.py @@ -15,7 +15,7 @@ from vml_proto.ssn.type import geometry_pb2 as ssn_dot_type_dot_geometry__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18ssn/type/candidate.proto\x12\x08ssn.type\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17ssn/type/geometry.proto\"\xc0\x01\n\nConfidence\x12\x30\n\x05level\x18\x01 \x01(\x0e\x32\x1a.ssn.type.Confidence.LevelR\x05level\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.FloatValueR\x05value\"M\n\x05Level\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08VERY_LOW\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\x07\n\x03MID\x10\x03\x12\x08\n\x04HIGH\x10\x04\x12\r\n\tVERY_HIGH\x10\x05\"\xd9\x02\n\tCandidate\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x12\n\x04text\x18\x02 \x01(\tR\x04text\x12\x34\n\nconfidence\x18\x03 \x01(\x0b\x32\x14.ssn.type.ConfidenceR\nconfidence\x12\x39\n\x0c\x62ounding_box\x18\x04 \x01(\x0b\x32\x16.ssn.type.BoundingPolyR\x0b\x62oundingBox\x12,\n\x04type\x18\x05 \x01(\x0e\x32\x18.ssn.type.Candidate.TypeR\x04type\x12\x19\n\x08page_ref\x18\x06 \x01(\rR\x07pageRef\x12:\n\x0emodel_metadata\x18\x07 \x01(\x0b\x32\x13.ssn.type.ModelSpecR\rmodelMetadata\",\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x46IELD\x10\x01\x12\x0c\n\x08\x44OCUMENT\x10\x02\"d\n\tModelSpec\x12\x1d\n\nmodel_name\x18\x01 \x01(\tR\tmodelName\x12\x38\n\tmodel_ver\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueR\x08modelVer\"V\n\rLineCandidate\x12\x12\n\x04text\x18\x01 \x01(\tR\x04text\x12\x16\n\x06\x61mount\x18\x02 \x01(\x01R\x06\x61mount\x12\x19\n\x08page_ref\x18\x06 \x01(\rR\x07pageRef\"\xfc\x04\n\x15PurchaseLineCandidate\x12\x19\n\x08page_ref\x18\x01 \x01(\rR\x07pageRef\x12\x12\n\x04\x63ode\x18\x02 \x01(\tR\x04\x63ode\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1a\n\x08quantity\x18\x04 \x01(\tR\x08quantity\x12\x1f\n\x0bitem_number\x18\x05 \x01(\tR\nitemNumber\x12\x12\n\x04unit\x18\x06 \x01(\tR\x04unit\x12%\n\x0etotal_discount\x18\x07 \x01(\tR\rtotalDiscount\x12/\n\x13percentage_discount\x18\x08 \x01(\tR\x12percentageDiscount\x12$\n\x0etotal_incl_vat\x18\t \x01(\tR\x0ctotalInclVat\x12$\n\x0etotal_excl_vat\x18\n \x01(\tR\x0ctotalExclVat\x12\x1b\n\ttotal_vat\x18\x0b \x01(\tR\x08totalVat\x12%\n\x0epercentage_vat\x18\x0c \x01(\tR\rpercentageVat\x12-\n\x13unit_price_incl_vat\x18\r \x01(\tR\x10unitPriceInclVat\x12-\n\x13unit_price_excl_vat\x18\x0e \x01(\tR\x10unitPriceExclVat\x12\x14\n\x05total\x18\x11 \x01(\tR\x05total\x12\x1d\n\nunit_price\x18\x12 \x01(\tR\tunitPrice\x12:\n\x0emodel_metadata\x18\x13 \x01(\x0b\x32\x13.ssn.type.ModelSpecR\rmodelMetadataJ\x04\x08\x0f\x10\x10J\x04\x08\x10\x10\x11\"\xd2\x01\n\x0f\x41nswerCandidate\x12\x1a\n\x08question\x18\x01 \x01(\tR\x08question\x12\x16\n\x06\x61nswer\x18\x02 \x01(\tR\x06\x61nswer\x12\x34\n\nconfidence\x18\x03 \x01(\x0b\x32\x14.ssn.type.ConfidenceR\nconfidence\x12:\n\x0emodel_metadata\x18\x07 \x01(\x0b\x32\x13.ssn.type.ModelSpecR\rmodelMetadata\x12\x19\n\x08page_ref\x18\x08 \x01(\rR\x07pageRef\"9\n\x08PageText\x12\x19\n\x08page_ref\x18\x01 \x01(\rR\x07pageRef\x12\x12\n\x04text\x18\x02 \x01(\tR\x04textB6Z4github.com/e-conomic/vmlapis/gen/go/ssn/type;ssntypeb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18ssn/type/candidate.proto\x12\x08ssn.type\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17ssn/type/geometry.proto\"\xc0\x01\n\nConfidence\x12\x30\n\x05level\x18\x01 \x01(\x0e\x32\x1a.ssn.type.Confidence.LevelR\x05level\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.FloatValueR\x05value\"M\n\x05Level\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08VERY_LOW\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\x07\n\x03MID\x10\x03\x12\x08\n\x04HIGH\x10\x04\x12\r\n\tVERY_HIGH\x10\x05\"\xd9\x02\n\tCandidate\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x12\n\x04text\x18\x02 \x01(\tR\x04text\x12\x34\n\nconfidence\x18\x03 \x01(\x0b\x32\x14.ssn.type.ConfidenceR\nconfidence\x12\x39\n\x0c\x62ounding_box\x18\x04 \x01(\x0b\x32\x16.ssn.type.BoundingPolyR\x0b\x62oundingBox\x12,\n\x04type\x18\x05 \x01(\x0e\x32\x18.ssn.type.Candidate.TypeR\x04type\x12\x19\n\x08page_ref\x18\x06 \x01(\rR\x07pageRef\x12:\n\x0emodel_metadata\x18\x07 \x01(\x0b\x32\x13.ssn.type.ModelSpecR\rmodelMetadata\",\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x46IELD\x10\x01\x12\x0c\n\x08\x44OCUMENT\x10\x02\"d\n\tModelSpec\x12\x1d\n\nmodel_name\x18\x01 \x01(\tR\tmodelName\x12\x38\n\tmodel_ver\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueR\x08modelVer\"V\n\rLineCandidate\x12\x12\n\x04text\x18\x01 \x01(\tR\x04text\x12\x16\n\x06\x61mount\x18\x02 \x01(\x01R\x06\x61mount\x12\x19\n\x08page_ref\x18\x06 \x01(\rR\x07pageRef\"\xfc\x04\n\x15PurchaseLineCandidate\x12\x19\n\x08page_ref\x18\x01 \x01(\rR\x07pageRef\x12\x12\n\x04\x63ode\x18\x02 \x01(\tR\x04\x63ode\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1a\n\x08quantity\x18\x04 \x01(\tR\x08quantity\x12\x1f\n\x0bitem_number\x18\x05 \x01(\tR\nitemNumber\x12\x12\n\x04unit\x18\x06 \x01(\tR\x04unit\x12%\n\x0etotal_discount\x18\x07 \x01(\tR\rtotalDiscount\x12/\n\x13percentage_discount\x18\x08 \x01(\tR\x12percentageDiscount\x12$\n\x0etotal_incl_vat\x18\t \x01(\tR\x0ctotalInclVat\x12$\n\x0etotal_excl_vat\x18\n \x01(\tR\x0ctotalExclVat\x12\x1b\n\ttotal_vat\x18\x0b \x01(\tR\x08totalVat\x12%\n\x0epercentage_vat\x18\x0c \x01(\tR\rpercentageVat\x12-\n\x13unit_price_incl_vat\x18\r \x01(\tR\x10unitPriceInclVat\x12-\n\x13unit_price_excl_vat\x18\x0e \x01(\tR\x10unitPriceExclVat\x12\x14\n\x05total\x18\x11 \x01(\tR\x05total\x12\x1d\n\nunit_price\x18\x12 \x01(\tR\tunitPrice\x12:\n\x0emodel_metadata\x18\x13 \x01(\x0b\x32\x13.ssn.type.ModelSpecR\rmodelMetadataJ\x04\x08\x0f\x10\x10J\x04\x08\x10\x10\x11\"\xd2\x01\n\x0f\x41nswerCandidate\x12\x1a\n\x08question\x18\x01 \x01(\tR\x08question\x12\x16\n\x06\x61nswer\x18\x02 \x01(\tR\x06\x61nswer\x12\x34\n\nconfidence\x18\x03 \x01(\x0b\x32\x14.ssn.type.ConfidenceR\nconfidence\x12:\n\x0emodel_metadata\x18\x07 \x01(\x0b\x32\x13.ssn.type.ModelSpecR\rmodelMetadata\x12\x19\n\x08page_ref\x18\x08 \x01(\rR\x07pageRef\"9\n\x08PageText\x12\x19\n\x08page_ref\x18\x01 \x01(\rR\x07pageRef\x12\x12\n\x04text\x18\x02 \x01(\tR\x04text\"\x8e\x01\n\x18VatDistributionCandidate\x12\x1e\n\npercentage\x18\x01 \x01(\tR\npercentage\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\x12:\n\x0emodel_metadata\x18\x03 \x01(\x0b\x32\x13.ssn.type.ModelSpecR\rmodelMetadataB6Z4github.com/e-conomic/vmlapis/gen/go/ssn/type;ssntypeb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -42,4 +42,6 @@ _globals['_ANSWERCANDIDATE']._serialized_end=1678 _globals['_PAGETEXT']._serialized_start=1680 _globals['_PAGETEXT']._serialized_end=1737 + _globals['_VATDISTRIBUTIONCANDIDATE']._serialized_start=1740 + _globals['_VATDISTRIBUTIONCANDIDATE']._serialized_end=1882 # @@protoc_insertion_point(module_scope) diff --git a/gen/python/ssn/type/candidate_pb2.pyi b/gen/python/ssn/type/candidate_pb2.pyi index 03ff47da..4fd8ebf7 100644 --- a/gen/python/ssn/type/candidate_pb2.pyi +++ b/gen/python/ssn/type/candidate_pb2.pyi @@ -132,3 +132,13 @@ class PageText(_message.Message): page_ref: int text: str def __init__(self, page_ref: _Optional[int] = ..., text: _Optional[str] = ...) -> None: ... + +class VatDistributionCandidate(_message.Message): + __slots__ = ["percentage", "amount", "model_metadata"] + PERCENTAGE_FIELD_NUMBER: _ClassVar[int] + AMOUNT_FIELD_NUMBER: _ClassVar[int] + MODEL_METADATA_FIELD_NUMBER: _ClassVar[int] + percentage: str + amount: str + model_metadata: ModelSpec + def __init__(self, percentage: _Optional[str] = ..., amount: _Optional[str] = ..., model_metadata: _Optional[_Union[ModelSpec, _Mapping]] = ...) -> None: ... diff --git a/proto/ssn/annotator/v1/annotator.proto b/proto/ssn/annotator/v1/annotator.proto index 7fe30349..76a5e294 100644 --- a/proto/ssn/annotator/v1/annotator.proto +++ b/proto/ssn/annotator/v1/annotator.proto @@ -130,6 +130,8 @@ message Feature { PURCHASE_LINES = 44; // Page texts PAGE_TEXTS = 45; + // VAT distribution + VAT_DISTRIBUTION = 46; } // The feature type. Type type = 1; @@ -287,6 +289,8 @@ message DocumentAnnotatorResponse { repeated ssn.type.AnswerCandidate answers = 46; // The page texts of the document repeated ssn.type.PageText page_texts = 47; + // Vat levels for the document, each vat level has vat level percentage and vat level amount + repeated ssn.type.VatDistributionCandidate vat_distribution_candidates = 48; } message Document { diff --git a/proto/ssn/mlservice/v2/mlservice.proto b/proto/ssn/mlservice/v2/mlservice.proto index 3bacddba..f442c55e 100644 --- a/proto/ssn/mlservice/v2/mlservice.proto +++ b/proto/ssn/mlservice/v2/mlservice.proto @@ -146,3 +146,13 @@ message DocQARequest { message DocQAResponse { repeated ssn.type.AnswerCandidate answers = 1; } + +message VatDistributionRequest { + ssn.type.TextAnnotation text_annotation = 1; + bytes image = 2; + string country_code = 3; +} + +message VatDistributionResponse { + repeated ssn.type.VatDistributionCandidate vat_distribution_candidates = 1; +} diff --git a/proto/ssn/type/candidate.proto b/proto/ssn/type/candidate.proto index 697413b4..c31abac6 100644 --- a/proto/ssn/type/candidate.proto +++ b/proto/ssn/type/candidate.proto @@ -142,3 +142,12 @@ message PageText { // The text content of the page string text = 2; } + +message VatDistributionCandidate { + // The vat distribution candidate percentage + string percentage = 1; + // The vat distribution candidate amount + string amount = 2; + // Model metadata + ModelSpec model_metadata = 3; +}