From fa8fc2fad637ad81f8586d1e3cedac7141516897 Mon Sep 17 00:00:00 2001 From: Clark Alesna Date: Wed, 31 Jan 2024 22:12:45 +0800 Subject: [PATCH] Added .NET codegen --- .gitignore | 5 +- UTxORPC.csproj | 18 + cardano/buf.gen.yaml | 8 + cardano/gen/dotnet/Cardano.cs | 13350 ++++++++++++++++++++++++++++++++ sync/buf.gen.yaml | 8 + sync/gen/dotnet/Sync.cs | 2094 +++++ sync/gen/dotnet/SyncGrpc.cs | 317 + 7 files changed, 15799 insertions(+), 1 deletion(-) create mode 100644 UTxORPC.csproj create mode 100644 cardano/gen/dotnet/Cardano.cs create mode 100644 sync/gen/dotnet/Sync.cs create mode 100644 sync/gen/dotnet/SyncGrpc.cs diff --git a/.gitignore b/.gitignore index 519e950..a6355b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .DS_Store -dist-newstyle \ No newline at end of file +dist-newstyle +# .NET build files +bin +obj \ No newline at end of file diff --git a/UTxORPC.csproj b/UTxORPC.csproj new file mode 100644 index 0000000..7a57991 --- /dev/null +++ b/UTxORPC.csproj @@ -0,0 +1,18 @@ + + + + net8.0 + enable + enable + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + \ No newline at end of file diff --git a/cardano/buf.gen.yaml b/cardano/buf.gen.yaml index c6554cc..0eb839f 100644 --- a/cardano/buf.gen.yaml +++ b/cardano/buf.gen.yaml @@ -71,3 +71,11 @@ plugins: - plugin: haskell-protolens path: proto-lens-protoc out: gen/haskell + + # dotnet + + - plugin: buf.build/grpc/csharp:v1.60.0 + out: gen/dotnet + + - plugin: buf.build/protocolbuffers/csharp + out: gen/dotnet diff --git a/cardano/gen/dotnet/Cardano.cs b/cardano/gen/dotnet/Cardano.cs new file mode 100644 index 0000000..07fbc8c --- /dev/null +++ b/cardano/gen/dotnet/Cardano.cs @@ -0,0 +1,13350 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: utxorpc/cardano/v1/cardano.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Utxorpc.Cardano.V1 { + + /// Holder for reflection information generated from utxorpc/cardano/v1/cardano.proto + public static partial class CardanoReflection { + + #region Descriptor + /// File descriptor for utxorpc/cardano/v1/cardano.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CardanoReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiB1dHhvcnBjL2NhcmRhbm8vdjEvY2FyZGFuby5wcm90bxISdXR4b3JwYy5j", + "YXJkYW5vLnYxIn8KCFJlZGVlbWVyEj0KB3B1cnBvc2UYASABKA4yIy51dHhv", + "cnBjLmNhcmRhbm8udjEuUmVkZWVtZXJQdXJwb3NlUgdwdXJwb3NlEjQKBWRh", + "dHVtGAIgASgLMh4udXR4b3JwYy5jYXJkYW5vLnYxLlBsdXR1c0RhdGFSBWRh", + "dHVtIroBCgdUeElucHV0EhcKB3R4X2hhc2gYASABKAxSBnR4SGFzaBIhCgxv", + "dXRwdXRfaW5kZXgYAiABKA1SC291dHB1dEluZGV4EjkKCWFzX291dHB1dBgD", + "IAEoCzIcLnV0eG9ycGMuY2FyZGFuby52MS5UeE91dHB1dFIIYXNPdXRwdXQS", + "OAoIcmVkZWVtZXIYBCABKAsyHC51dHhvcnBjLmNhcmRhbm8udjEuUmVkZWVt", + "ZXJSCHJlZGVlbWVyIvkBCghUeE91dHB1dBIYCgdhZGRyZXNzGAEgASgMUgdh", + "ZGRyZXNzEhIKBGNvaW4YAiABKARSBGNvaW4SNgoGYXNzZXRzGAMgAygLMh4u", + "dXR4b3JwYy5jYXJkYW5vLnYxLk11bHRpYXNzZXRSBmFzc2V0cxI0CgVkYXR1", + "bRgEIAEoCzIeLnV0eG9ycGMuY2FyZGFuby52MS5QbHV0dXNEYXRhUgVkYXR1", + "bRIdCgpkYXR1bV9oYXNoGAUgASgMUglkYXR1bUhhc2gSMgoGc2NyaXB0GAYg", + "ASgLMhoudXR4b3JwYy5jYXJkYW5vLnYxLlNjcmlwdFIGc2NyaXB0IlkKBUFz", + "c2V0EhIKBG5hbWUYASABKAxSBG5hbWUSHwoLb3V0cHV0X2NvaW4YAiABKARS", + "Cm91dHB1dENvaW4SGwoJbWludF9jb2luGAMgASgDUghtaW50Q29pbiJcCgpN", + "dWx0aWFzc2V0EhsKCXBvbGljeV9pZBgBIAEoDFIIcG9saWN5SWQSMQoGYXNz", + "ZXRzGAIgAygLMhkudXR4b3JwYy5jYXJkYW5vLnYxLkFzc2V0UgZhc3NldHMi", + "NAoKVHhWYWxpZGl0eRIUCgVzdGFydBgBIAEoBFIFc3RhcnQSEAoDdHRsGAIg", + "ASgEUgN0dGwivwEKCkNvbGxhdGVyYWwSOwoKY29sbGF0ZXJhbBgBIAMoCzIb", + "LnV0eG9ycGMuY2FyZGFuby52MS5UeElucHV0Ugpjb2xsYXRlcmFsEkkKEWNv", + "bGxhdGVyYWxfcmV0dXJuGAIgASgLMhwudXR4b3JwYy5jYXJkYW5vLnYxLlR4", + "T3V0cHV0UhBjb2xsYXRlcmFsUmV0dXJuEikKEHRvdGFsX2NvbGxhdGVyYWwY", + "AyABKARSD3RvdGFsQ29sbGF0ZXJhbCJHCgpXaXRoZHJhd2FsEiUKDnJld2Fy", + "ZF9hY2NvdW50GAEgASgMUg1yZXdhcmRBY2NvdW50EhIKBGNvaW4YAiABKARS", + "BGNvaW4iyAEKCldpdG5lc3NTZXQSQQoLdmtleXdpdG5lc3MYASADKAsyHy51", + "dHhvcnBjLmNhcmRhbm8udjEuVktleVdpdG5lc3NSC3ZrZXl3aXRuZXNzEjIK", + "BnNjcmlwdBgCIAMoCzIaLnV0eG9ycGMuY2FyZGFuby52MS5TY3JpcHRSBnNj", + "cmlwdBJDCg1wbHV0dXNfZGF0dW1zGAMgAygLMh4udXR4b3JwYy5jYXJkYW5v", + "LnYxLlBsdXR1c0RhdGFSDHBsdXR1c0RhdHVtcyJ5CgdBdXhEYXRhEjgKCG1l", + "dGFkYXRhGAEgAygLMhwudXR4b3JwYy5jYXJkYW5vLnYxLk1ldGFkYXRhUght", + "ZXRhZGF0YRI0CgdzY3JpcHRzGAIgAygLMhoudXR4b3JwYy5jYXJkYW5vLnYx", + "LlNjcmlwdFIHc2NyaXB0cyKbBQoCVHgSMwoGaW5wdXRzGAEgAygLMhsudXR4", + "b3JwYy5jYXJkYW5vLnYxLlR4SW5wdXRSBmlucHV0cxI2CgdvdXRwdXRzGAIg", + "AygLMhwudXR4b3JwYy5jYXJkYW5vLnYxLlR4T3V0cHV0UgdvdXRwdXRzEkMK", + "DGNlcnRpZmljYXRlcxgDIAMoCzIfLnV0eG9ycGMuY2FyZGFuby52MS5DZXJ0", + "aWZpY2F0ZVIMY2VydGlmaWNhdGVzEkAKC3dpdGhkcmF3YWxzGAQgAygLMh4u", + "dXR4b3JwYy5jYXJkYW5vLnYxLldpdGhkcmF3YWxSC3dpdGhkcmF3YWxzEjIK", + "BG1pbnQYBSADKAsyHi51dHhvcnBjLmNhcmRhbm8udjEuTXVsdGlhc3NldFIE", + "bWludBJGChByZWZlcmVuY2VfaW5wdXRzGAYgAygLMhsudXR4b3JwYy5jYXJk", + "YW5vLnYxLlR4SW5wdXRSD3JlZmVyZW5jZUlucHV0cxI8Cgl3aXRuZXNzZXMY", + "ByABKAsyHi51dHhvcnBjLmNhcmRhbm8udjEuV2l0bmVzc1NldFIJd2l0bmVz", + "c2VzEj4KCmNvbGxhdGVyYWwYCCABKAsyHi51dHhvcnBjLmNhcmRhbm8udjEu", + "Q29sbGF0ZXJhbFIKY29sbGF0ZXJhbBIQCgNmZWUYCSABKARSA2ZlZRI6Cgh2", + "YWxpZGl0eRgKIAEoCzIeLnV0eG9ycGMuY2FyZGFuby52MS5UeFZhbGlkaXR5", + "Ugh2YWxpZGl0eRIeCgpzdWNjZXNzZnVsGAsgASgIUgpzdWNjZXNzZnVsEjkK", + "CWF1eGlsaWFyeRgMIAEoCzIbLnV0eG9ycGMuY2FyZGFuby52MS5BdXhEYXRh", + "UglhdXhpbGlhcnkiNQoLQmxvY2tIZWFkZXISEgoEc2xvdBgBIAEoBFIEc2xv", + "dBISCgRoYXNoGAIgASgMUgRoYXNoIjMKCUJsb2NrQm9keRImCgJ0eBgBIAMo", + "CzIWLnV0eG9ycGMuY2FyZGFuby52MS5UeFICdHgicwoFQmxvY2sSNwoGaGVh", + "ZGVyGAEgASgLMh8udXR4b3JwYy5jYXJkYW5vLnYxLkJsb2NrSGVhZGVyUgZo", + "ZWFkZXISMQoEYm9keRgCIAEoCzIdLnV0eG9ycGMuY2FyZGFuby52MS5CbG9j", + "a0JvZHlSBGJvZHkiPwoLVktleVdpdG5lc3MSEgoEdmtleRgBIAEoDFIEdmtl", + "eRIcCglzaWduYXR1cmUYAiABKAxSCXNpZ25hdHVyZSLxAgoMTmF0aXZlU2Ny", + "aXB0EiUKDXNjcmlwdF9wdWJrZXkYASABKAxIAFIMc2NyaXB0UHVia2V5EkUK", + "CnNjcmlwdF9hbGwYAiABKAsyJC51dHhvcnBjLmNhcmRhbm8udjEuTmF0aXZl", + "U2NyaXB0TGlzdEgAUglzY3JpcHRBbGwSRQoKc2NyaXB0X2FueRgDIAEoCzIk", + "LnV0eG9ycGMuY2FyZGFuby52MS5OYXRpdmVTY3JpcHRMaXN0SABSCXNjcmlw", + "dEFueRJDCg1zY3JpcHRfbl9vZl9rGAQgASgLMh4udXR4b3JwYy5jYXJkYW5v", + "LnYxLlNjcmlwdE5PZktIAFIKc2NyaXB0Tk9mSxInCg5pbnZhbGlkX2JlZm9y", + "ZRgFIAEoBEgAUg1pbnZhbGlkQmVmb3JlEi0KEWludmFsaWRfaGVyZWFmdGVy", + "GAYgASgESABSEGludmFsaWRIZXJlYWZ0ZXJCDwoNbmF0aXZlX3NjcmlwdCJK", + "ChBOYXRpdmVTY3JpcHRMaXN0EjYKBWl0ZW1zGAEgAygLMiAudXR4b3JwYy5j", + "YXJkYW5vLnYxLk5hdGl2ZVNjcmlwdFIFaXRlbXMiVgoKU2NyaXB0Tk9mSxIM", + "CgFrGAEgASgNUgFrEjoKB3NjcmlwdHMYAiADKAsyIC51dHhvcnBjLmNhcmRh", + "bm8udjEuTmF0aXZlU2NyaXB0UgdzY3JpcHRzInsKBkNvbnN0chIQCgN0YWcY", + "ASABKA1SA3RhZxInCg9hbnlfY29uc3RydWN0b3IYAiABKARSDmFueUNvbnN0", + "cnVjdG9yEjYKBmZpZWxkcxgDIAMoCzIeLnV0eG9ycGMuY2FyZGFuby52MS5Q", + "bHV0dXNEYXRhUgZmaWVsZHMiYwoGQmlnSW50EhIKA2ludBgBIAEoA0gAUgNp", + "bnQSHAoJYmlnX3VfaW50GAIgASgMSABSB2JpZ1VJbnQSHAoJYmlnX25faW50", + "GAMgASgMSABSB2JpZ05JbnRCCQoHYmlnX2ludCJ4Cg5QbHV0dXNEYXRhUGFp", + "chIwCgNrZXkYASABKAsyHi51dHhvcnBjLmNhcmRhbm8udjEuUGx1dHVzRGF0", + "YVIDa2V5EjQKBXZhbHVlGAIgASgLMh4udXR4b3JwYy5jYXJkYW5vLnYxLlBs", + "dXR1c0RhdGFSBXZhbHVlIqMCCgpQbHV0dXNEYXRhEjQKBmNvbnN0chgBIAEo", + "CzIaLnV0eG9ycGMuY2FyZGFuby52MS5Db25zdHJIAFIGY29uc3RyEjUKA21h", + "cBgCIAEoCzIhLnV0eG9ycGMuY2FyZGFuby52MS5QbHV0dXNEYXRhTWFwSABS", + "A21hcBI1CgdiaWdfaW50GAMgASgLMhoudXR4b3JwYy5jYXJkYW5vLnYxLkJp", + "Z0ludEgAUgZiaWdJbnQSJQoNYm91bmRlZF9ieXRlcxgEIAEoDEgAUgxib3Vu", + "ZGVkQnl0ZXMSOwoFYXJyYXkYBSABKAsyIy51dHhvcnBjLmNhcmRhbm8udjEu", + "UGx1dHVzRGF0YUFycmF5SABSBWFycmF5Qg0KC3BsdXR1c19kYXRhIkkKDVBs", + "dXR1c0RhdGFNYXASOAoFcGFpcnMYASADKAsyIi51dHhvcnBjLmNhcmRhbm8u", + "djEuUGx1dHVzRGF0YVBhaXJSBXBhaXJzIkcKD1BsdXR1c0RhdGFBcnJheRI0", + "CgVpdGVtcxgBIAMoCzIeLnV0eG9ycGMuY2FyZGFuby52MS5QbHV0dXNEYXRh", + "UgVpdGVtcyKMAQoGU2NyaXB0EjoKBm5hdGl2ZRgBIAEoCzIgLnV0eG9ycGMu", + "Y2FyZGFuby52MS5OYXRpdmVTY3JpcHRIAFIGbmF0aXZlEh0KCXBsdXR1c192", + "MRgCIAEoDEgAUghwbHV0dXNWMRIdCglwbHV0dXNfdjIYAyABKAxIAFIIcGx1", + "dHVzVjJCCAoGc2NyaXB0IswBCglNZXRhZGF0dW0SEgoDaW50GAEgASgDSABS", + "A2ludBIWCgVieXRlcxgCIAEoDEgAUgVieXRlcxIUCgR0ZXh0GAMgASgJSABS", + "BHRleHQSOgoFYXJyYXkYBCABKAsyIi51dHhvcnBjLmNhcmRhbm8udjEuTWV0", + "YWRhdHVtQXJyYXlIAFIFYXJyYXkSNAoDbWFwGAUgASgLMiAudXR4b3JwYy5j", + "YXJkYW5vLnYxLk1ldGFkYXR1bU1hcEgAUgNtYXBCCwoJbWV0YWRhdHVtIkUK", + "Dk1ldGFkYXR1bUFycmF5EjMKBWl0ZW1zGAEgAygLMh0udXR4b3JwYy5jYXJk", + "YW5vLnYxLk1ldGFkYXR1bVIFaXRlbXMiRwoMTWV0YWRhdHVtTWFwEjcKBXBh", + "aXJzGAEgAygLMiEudXR4b3JwYy5jYXJkYW5vLnYxLk1ldGFkYXR1bVBhaXJS", + "BXBhaXJzInUKDU1ldGFkYXR1bVBhaXISLwoDa2V5GAEgASgLMh0udXR4b3Jw", + "Yy5jYXJkYW5vLnYxLk1ldGFkYXR1bVIDa2V5EjMKBXZhbHVlGAIgASgLMh0u", + "dXR4b3JwYy5jYXJkYW5vLnYxLk1ldGFkYXR1bVIFdmFsdWUiVQoITWV0YWRh", + "dGESFAoFbGFiZWwYASABKARSBWxhYmVsEjMKBXZhbHVlGAIgASgLMh0udXR4", + "b3JwYy5jYXJkYW5vLnYxLk1ldGFkYXR1bVIFdmFsdWUibgoPU3Rha2VDcmVk", + "ZW50aWFsEiQKDWFkZHJfa2V5X2hhc2gYASABKAxIAFILYWRkcktleUhhc2gS", + "IQoLc2NyaXB0X2hhc2gYAiABKAxIAFIKc2NyaXB0SGFzaEISChBzdGFrZV9j", + "cmVkZW50aWFsIlAKDlJhdGlvbmFsTnVtYmVyEhwKCW51bWVyYXRvchgBIAEo", + "BVIJbnVtZXJhdG9yEiAKC2Rlbm9taW5hdG9yGAIgASgNUgtkZW5vbWluYXRv", + "ciJgCgVSZWxheRITCgVpcF92NBgBIAEoDFIEaXBWNBITCgVpcF92NhgCIAEo", + "DFIEaXBWNhIZCghkbnNfbmFtZRgDIAEoCVIHZG5zTmFtZRISCgRwb3J0GAQg", + "ASgNUgRwb3J0IjQKDFBvb2xNZXRhZGF0YRIQCgN1cmwYASABKAlSA3VybBIS", + "CgRoYXNoGAIgASgMUgRoYXNoIu4ECgtDZXJ0aWZpY2F0ZRJUChJzdGFrZV9y", + "ZWdpc3RyYXRpb24YASABKAsyIy51dHhvcnBjLmNhcmRhbm8udjEuU3Rha2VD", + "cmVkZW50aWFsSABSEXN0YWtlUmVnaXN0cmF0aW9uElgKFHN0YWtlX2RlcmVn", + "aXN0cmF0aW9uGAIgASgLMiMudXR4b3JwYy5jYXJkYW5vLnYxLlN0YWtlQ3Jl", + "ZGVudGlhbEgAUhNzdGFrZURlcmVnaXN0cmF0aW9uElQKEHN0YWtlX2RlbGVn", + "YXRpb24YAyABKAsyJy51dHhvcnBjLmNhcmRhbm8udjEuU3Rha2VEZWxlZ2F0", + "aW9uQ2VydEgAUg9zdGFrZURlbGVnYXRpb24SVwoRcG9vbF9yZWdpc3RyYXRp", + "b24YBCABKAsyKC51dHhvcnBjLmNhcmRhbm8udjEuUG9vbFJlZ2lzdHJhdGlv", + "bkNlcnRIAFIQcG9vbFJlZ2lzdHJhdGlvbhJRCg9wb29sX3JldGlyZW1lbnQY", + "BSABKAsyJi51dHhvcnBjLmNhcmRhbm8udjEuUG9vbFJldGlyZW1lbnRDZXJ0", + "SABSDnBvb2xSZXRpcmVtZW50EmQKFmdlbmVzaXNfa2V5X2RlbGVnYXRpb24Y", + "BiABKAsyLC51dHhvcnBjLmNhcmRhbm8udjEuR2VuZXNpc0tleURlbGVnYXRp", + "b25DZXJ0SABSFGdlbmVzaXNLZXlEZWxlZ2F0aW9uEjgKCG1pcl9jZXJ0GAcg", + "ASgLMhsudXR4b3JwYy5jYXJkYW5vLnYxLk1pckNlcnRIAFIHbWlyQ2VydEIN", + "CgtjZXJ0aWZpY2F0ZSKIAQoTU3Rha2VEZWxlZ2F0aW9uQ2VydBJOChBzdGFr", + "ZV9jcmVkZW50aWFsGAEgASgLMiMudXR4b3JwYy5jYXJkYW5vLnYxLlN0YWtl", + "Q3JlZGVudGlhbFIPc3Rha2VDcmVkZW50aWFsEiEKDHBvb2xfa2V5aGFzaBgC", + "IAEoDFILcG9vbEtleWhhc2gi/QIKFFBvb2xSZWdpc3RyYXRpb25DZXJ0EhoK", + "CG9wZXJhdG9yGAEgASgMUghvcGVyYXRvchIfCgt2cmZfa2V5aGFzaBgCIAEo", + "DFIKdnJmS2V5aGFzaBIWCgZwbGVkZ2UYAyABKARSBnBsZWRnZRISCgRjb3N0", + "GAQgASgEUgRjb3N0EjoKBm1hcmdpbhgFIAEoCzIiLnV0eG9ycGMuY2FyZGFu", + "by52MS5SYXRpb25hbE51bWJlclIGbWFyZ2luEiUKDnJld2FyZF9hY2NvdW50", + "GAYgASgMUg1yZXdhcmRBY2NvdW50Eh8KC3Bvb2xfb3duZXJzGAcgAygMUgpw", + "b29sT3duZXJzEjEKBnJlbGF5cxgIIAMoCzIZLnV0eG9ycGMuY2FyZGFuby52", + "MS5SZWxheVIGcmVsYXlzEkUKDXBvb2xfbWV0YWRhdGEYCSABKAsyIC51dHhv", + "cnBjLmNhcmRhbm8udjEuUG9vbE1ldGFkYXRhUgxwb29sTWV0YWRhdGEiTQoS", + "UG9vbFJldGlyZW1lbnRDZXJ0EiEKDHBvb2xfa2V5aGFzaBgBIAEoDFILcG9v", + "bEtleWhhc2gSFAoFZXBvY2gYAiABKARSBWVwb2NoIpIBChhHZW5lc2lzS2V5", + "RGVsZWdhdGlvbkNlcnQSIQoMZ2VuZXNpc19oYXNoGAEgASgMUgtnZW5lc2lz", + "SGFzaBIyChVnZW5lc2lzX2RlbGVnYXRlX2hhc2gYAiABKAxSE2dlbmVzaXNE", + "ZWxlZ2F0ZUhhc2gSHwoLdnJmX2tleWhhc2gYAyABKAxSCnZyZktleWhhc2gi", + "egoJTWlyVGFyZ2V0Ek4KEHN0YWtlX2NyZWRlbnRpYWwYASABKAsyIy51dHhv", + "cnBjLmNhcmRhbm8udjEuU3Rha2VDcmVkZW50aWFsUg9zdGFrZUNyZWRlbnRp", + "YWwSHQoKZGVsdGFfY29pbhgCIAEoA1IJZGVsdGFDb2luIogBCgdNaXJDZXJ0", + "EjEKBGZyb20YASABKA4yHS51dHhvcnBjLmNhcmRhbm8udjEuTWlyU291cmNl", + "UgRmcm9tEi0KAnRvGAIgAygLMh0udXR4b3JwYy5jYXJkYW5vLnYxLk1pclRh", + "cmdldFICdG8SGwoJb3RoZXJfcG90GAMgASgEUghvdGhlclBvdCLfAQoOQWRk", + "cmVzc1BhdHRlcm4SIwoNYnlyb25fYWRkcmVzcxgBIAEoDFIMYnlyb25BZGRy", + "ZXNzEiEKDHBheW1lbnRfcGFydBgCIAEoDFILcGF5bWVudFBhcnQSJwoPZGVs", + "ZWdhdGlvbl9wYXJ0GAMgASgMUg5kZWxlZ2F0aW9uUGFydBIqChFwYXltZW50", + "X2lzX3NjcmlwdBgEIAEoCFIPcGF5bWVudElzU2NyaXB0EjAKFGRlbGVnYXRp", + "b25faXNfc2NyaXB0GAUgASgIUhJkZWxlZ2F0aW9uSXNTY3JpcHQiDgoMQXNz", + "ZXRQYXR0ZXJuIg8KDU91dHB1dFBhdHRlcm4iDgoMRGF0dW1QYXR0ZXJuIqYC", + "CglUeFBhdHRlcm4SQgoKYW55X291dHB1dBgBIAEoCzIhLnV0eG9ycGMuY2Fy", + "ZGFuby52MS5PdXRwdXRQYXR0ZXJuSABSCWFueU91dHB1dBJFCgthbnlfYWRk", + "cmVzcxgCIAEoCzIiLnV0eG9ycGMuY2FyZGFuby52MS5BZGRyZXNzUGF0dGVy", + "bkgAUgphbnlBZGRyZXNzEj8KCWFueV9hc3NldBgDIAEoCzIgLnV0eG9ycGMu", + "Y2FyZGFuby52MS5Bc3NldFBhdHRlcm5IAFIIYW55QXNzZXQSPwoJYW55X2Rh", + "dHVtGAQgASgLMiAudXR4b3JwYy5jYXJkYW5vLnYxLkRhdHVtUGF0dGVybkgA", + "UghhbnlEYXR1bUIMCgp0eF9wYXR0ZXJuKqIBCg9SZWRlZW1lclB1cnBvc2US", + "IAocUkVERUVNRVJfUFVSUE9TRV9VTlNQRUNJRklFRBAAEhoKFlJFREVFTUVS", + "X1BVUlBPU0VfU1BFTkQQARIZChVSRURFRU1FUl9QVVJQT1NFX01JTlQQAhIZ", + "ChVSRURFRU1FUl9QVVJQT1NFX0NFUlQQAxIbChdSRURFRU1FUl9QVVJQT1NF", + "X1JFV0FSRBAEKlkKCU1pclNvdXJjZRIaChZNSVJfU09VUkNFX1VOU1BFQ0lG", + "SUVEEAASFwoTTUlSX1NPVVJDRV9SRVNFUlZFUxABEhcKE01JUl9TT1VSQ0Vf", + "VFJFQVNVUlkQAkLVAQoWY29tLnV0eG9ycGMuY2FyZGFuby52MUIMQ2FyZGFu", + "b1Byb3RvUAFaQ2dpdGh1Yi5jb20vdXR4b3JwYy9zcGVjL2NhcmRhbm8vZ2Vu", + "L2dvL3V0eG9ycGMvY2FyZGFuby92MTtjYXJkYW5vdjGiAgNVQ1iqAhJVdHhv", + "cnBjLkNhcmRhbm8uVjHKAhJVdHhvcnBjXENhcmRhbm9cVjHiAh5VdHhvcnBj", + "XENhcmRhbm9cVjFcR1BCTWV0YWRhdGHqAhRVdHhvcnBjOjpDYXJkYW5vOjpW", + "MWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Utxorpc.Cardano.V1.RedeemerPurpose), typeof(global::Utxorpc.Cardano.V1.MirSource), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Redeemer), global::Utxorpc.Cardano.V1.Redeemer.Parser, new[]{ "Purpose", "Datum" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.TxInput), global::Utxorpc.Cardano.V1.TxInput.Parser, new[]{ "TxHash", "OutputIndex", "AsOutput", "Redeemer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.TxOutput), global::Utxorpc.Cardano.V1.TxOutput.Parser, new[]{ "Address", "Coin", "Assets", "Datum", "DatumHash", "Script" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Asset), global::Utxorpc.Cardano.V1.Asset.Parser, new[]{ "Name", "OutputCoin", "MintCoin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Multiasset), global::Utxorpc.Cardano.V1.Multiasset.Parser, new[]{ "PolicyId", "Assets" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.TxValidity), global::Utxorpc.Cardano.V1.TxValidity.Parser, new[]{ "Start", "Ttl" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Collateral), global::Utxorpc.Cardano.V1.Collateral.Parser, new[]{ "Collateral_", "CollateralReturn", "TotalCollateral" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Withdrawal), global::Utxorpc.Cardano.V1.Withdrawal.Parser, new[]{ "RewardAccount", "Coin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.WitnessSet), global::Utxorpc.Cardano.V1.WitnessSet.Parser, new[]{ "Vkeywitness", "Script", "PlutusDatums" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.AuxData), global::Utxorpc.Cardano.V1.AuxData.Parser, new[]{ "Metadata", "Scripts" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Tx), global::Utxorpc.Cardano.V1.Tx.Parser, new[]{ "Inputs", "Outputs", "Certificates", "Withdrawals", "Mint", "ReferenceInputs", "Witnesses", "Collateral", "Fee", "Validity", "Successful", "Auxiliary" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.BlockHeader), global::Utxorpc.Cardano.V1.BlockHeader.Parser, new[]{ "Slot", "Hash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.BlockBody), global::Utxorpc.Cardano.V1.BlockBody.Parser, new[]{ "Tx" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Block), global::Utxorpc.Cardano.V1.Block.Parser, new[]{ "Header", "Body" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.VKeyWitness), global::Utxorpc.Cardano.V1.VKeyWitness.Parser, new[]{ "Vkey", "Signature" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.NativeScript), global::Utxorpc.Cardano.V1.NativeScript.Parser, new[]{ "ScriptPubkey", "ScriptAll", "ScriptAny", "ScriptNOfK", "InvalidBefore", "InvalidHereafter" }, new[]{ "NativeScript" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.NativeScriptList), global::Utxorpc.Cardano.V1.NativeScriptList.Parser, new[]{ "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.ScriptNOfK), global::Utxorpc.Cardano.V1.ScriptNOfK.Parser, new[]{ "K", "Scripts" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Constr), global::Utxorpc.Cardano.V1.Constr.Parser, new[]{ "Tag", "AnyConstructor", "Fields" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.BigInt), global::Utxorpc.Cardano.V1.BigInt.Parser, new[]{ "Int", "BigUInt", "BigNInt" }, new[]{ "BigInt" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.PlutusDataPair), global::Utxorpc.Cardano.V1.PlutusDataPair.Parser, new[]{ "Key", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.PlutusData), global::Utxorpc.Cardano.V1.PlutusData.Parser, new[]{ "Constr", "Map", "BigInt", "BoundedBytes", "Array" }, new[]{ "PlutusData" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.PlutusDataMap), global::Utxorpc.Cardano.V1.PlutusDataMap.Parser, new[]{ "Pairs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.PlutusDataArray), global::Utxorpc.Cardano.V1.PlutusDataArray.Parser, new[]{ "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Script), global::Utxorpc.Cardano.V1.Script.Parser, new[]{ "Native", "PlutusV1", "PlutusV2" }, new[]{ "Script" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Metadatum), global::Utxorpc.Cardano.V1.Metadatum.Parser, new[]{ "Int", "Bytes", "Text", "Array", "Map" }, new[]{ "Metadatum" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.MetadatumArray), global::Utxorpc.Cardano.V1.MetadatumArray.Parser, new[]{ "Items" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.MetadatumMap), global::Utxorpc.Cardano.V1.MetadatumMap.Parser, new[]{ "Pairs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.MetadatumPair), global::Utxorpc.Cardano.V1.MetadatumPair.Parser, new[]{ "Key", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Metadata), global::Utxorpc.Cardano.V1.Metadata.Parser, new[]{ "Label", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.StakeCredential), global::Utxorpc.Cardano.V1.StakeCredential.Parser, new[]{ "AddrKeyHash", "ScriptHash" }, new[]{ "StakeCredential" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.RationalNumber), global::Utxorpc.Cardano.V1.RationalNumber.Parser, new[]{ "Numerator", "Denominator" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Relay), global::Utxorpc.Cardano.V1.Relay.Parser, new[]{ "IpV4", "IpV6", "DnsName", "Port" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.PoolMetadata), global::Utxorpc.Cardano.V1.PoolMetadata.Parser, new[]{ "Url", "Hash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.Certificate), global::Utxorpc.Cardano.V1.Certificate.Parser, new[]{ "StakeRegistration", "StakeDeregistration", "StakeDelegation", "PoolRegistration", "PoolRetirement", "GenesisKeyDelegation", "MirCert" }, new[]{ "Certificate" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.StakeDelegationCert), global::Utxorpc.Cardano.V1.StakeDelegationCert.Parser, new[]{ "StakeCredential", "PoolKeyhash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.PoolRegistrationCert), global::Utxorpc.Cardano.V1.PoolRegistrationCert.Parser, new[]{ "Operator", "VrfKeyhash", "Pledge", "Cost", "Margin", "RewardAccount", "PoolOwners", "Relays", "PoolMetadata" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.PoolRetirementCert), global::Utxorpc.Cardano.V1.PoolRetirementCert.Parser, new[]{ "PoolKeyhash", "Epoch" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.GenesisKeyDelegationCert), global::Utxorpc.Cardano.V1.GenesisKeyDelegationCert.Parser, new[]{ "GenesisHash", "GenesisDelegateHash", "VrfKeyhash" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.MirTarget), global::Utxorpc.Cardano.V1.MirTarget.Parser, new[]{ "StakeCredential", "DeltaCoin" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.MirCert), global::Utxorpc.Cardano.V1.MirCert.Parser, new[]{ "From", "To", "OtherPot" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.AddressPattern), global::Utxorpc.Cardano.V1.AddressPattern.Parser, new[]{ "ByronAddress", "PaymentPart", "DelegationPart", "PaymentIsScript", "DelegationIsScript" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.AssetPattern), global::Utxorpc.Cardano.V1.AssetPattern.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.OutputPattern), global::Utxorpc.Cardano.V1.OutputPattern.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.DatumPattern), global::Utxorpc.Cardano.V1.DatumPattern.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Utxorpc.Cardano.V1.TxPattern), global::Utxorpc.Cardano.V1.TxPattern.Parser, new[]{ "AnyOutput", "AnyAddress", "AnyAsset", "AnyDatum" }, new[]{ "TxPattern" }, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// Purpose of the redeemer in a transaction. + /// + public enum RedeemerPurpose { + [pbr::OriginalName("REDEEMER_PURPOSE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("REDEEMER_PURPOSE_SPEND")] Spend = 1, + [pbr::OriginalName("REDEEMER_PURPOSE_MINT")] Mint = 2, + [pbr::OriginalName("REDEEMER_PURPOSE_CERT")] Cert = 3, + [pbr::OriginalName("REDEEMER_PURPOSE_REWARD")] Reward = 4, + } + + public enum MirSource { + [pbr::OriginalName("MIR_SOURCE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("MIR_SOURCE_RESERVES")] Reserves = 1, + [pbr::OriginalName("MIR_SOURCE_TREASURY")] Treasury = 2, + } + + #endregion + + #region Messages + /// + /// Redeemer information for a Plutus script. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Redeemer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Redeemer()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[0]; } + } + + [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 Redeemer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Redeemer(Redeemer other) : this() { + purpose_ = other.purpose_; + datum_ = other.datum_ != null ? other.datum_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Redeemer Clone() { + return new Redeemer(this); + } + + /// Field number for the "purpose" field. + public const int PurposeFieldNumber = 1; + private global::Utxorpc.Cardano.V1.RedeemerPurpose purpose_ = global::Utxorpc.Cardano.V1.RedeemerPurpose.Unspecified; + /// + /// Purpose of the redeemer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.RedeemerPurpose Purpose { + get { return purpose_; } + set { + purpose_ = value; + } + } + + /// Field number for the "datum" field. + public const int DatumFieldNumber = 2; + private global::Utxorpc.Cardano.V1.PlutusData datum_; + /// + /// Plutus data associated with the redeemer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.PlutusData Datum { + get { return datum_; } + set { + datum_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Redeemer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Redeemer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Purpose != other.Purpose) return false; + if (!object.Equals(Datum, other.Datum)) 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 (Purpose != global::Utxorpc.Cardano.V1.RedeemerPurpose.Unspecified) hash ^= Purpose.GetHashCode(); + if (datum_ != null) hash ^= Datum.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 (Purpose != global::Utxorpc.Cardano.V1.RedeemerPurpose.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Purpose); + } + if (datum_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Datum); + } + 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 (Purpose != global::Utxorpc.Cardano.V1.RedeemerPurpose.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Purpose); + } + if (datum_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Datum); + } + 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 (Purpose != global::Utxorpc.Cardano.V1.RedeemerPurpose.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Purpose); + } + if (datum_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Datum); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Redeemer other) { + if (other == null) { + return; + } + if (other.Purpose != global::Utxorpc.Cardano.V1.RedeemerPurpose.Unspecified) { + Purpose = other.Purpose; + } + if (other.datum_ != null) { + if (datum_ == null) { + Datum = new global::Utxorpc.Cardano.V1.PlutusData(); + } + Datum.MergeFrom(other.Datum); + } + _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 8: { + Purpose = (global::Utxorpc.Cardano.V1.RedeemerPurpose) input.ReadEnum(); + break; + } + case 18: { + if (datum_ == null) { + Datum = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Datum); + 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 8: { + Purpose = (global::Utxorpc.Cardano.V1.RedeemerPurpose) input.ReadEnum(); + break; + } + case 18: { + if (datum_ == null) { + Datum = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Datum); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a transaction input in the Cardano blockchain. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TxInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TxInput()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[1]; } + } + + [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 TxInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TxInput(TxInput other) : this() { + txHash_ = other.txHash_; + outputIndex_ = other.outputIndex_; + asOutput_ = other.asOutput_ != null ? other.asOutput_.Clone() : null; + redeemer_ = other.redeemer_ != null ? other.redeemer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TxInput Clone() { + return new TxInput(this); + } + + /// Field number for the "tx_hash" field. + public const int TxHashFieldNumber = 1; + private pb::ByteString txHash_ = pb::ByteString.Empty; + /// + /// Hash of the previous transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString TxHash { + get { return txHash_; } + set { + txHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "output_index" field. + public const int OutputIndexFieldNumber = 2; + private uint outputIndex_; + /// + /// Index of the output in the previous transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OutputIndex { + get { return outputIndex_; } + set { + outputIndex_ = value; + } + } + + /// Field number for the "as_output" field. + public const int AsOutputFieldNumber = 3; + private global::Utxorpc.Cardano.V1.TxOutput asOutput_; + /// + /// Content of the input represented as output of the related transaction + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.TxOutput AsOutput { + get { return asOutput_; } + set { + asOutput_ = value; + } + } + + /// Field number for the "redeemer" field. + public const int RedeemerFieldNumber = 4; + private global::Utxorpc.Cardano.V1.Redeemer redeemer_; + /// + /// Redeemer for the Plutus script. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.Redeemer Redeemer { + get { return redeemer_; } + set { + redeemer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TxInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TxInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TxHash != other.TxHash) return false; + if (OutputIndex != other.OutputIndex) return false; + if (!object.Equals(AsOutput, other.AsOutput)) return false; + if (!object.Equals(Redeemer, other.Redeemer)) 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 (TxHash.Length != 0) hash ^= TxHash.GetHashCode(); + if (OutputIndex != 0) hash ^= OutputIndex.GetHashCode(); + if (asOutput_ != null) hash ^= AsOutput.GetHashCode(); + if (redeemer_ != null) hash ^= Redeemer.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 (TxHash.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(TxHash); + } + if (OutputIndex != 0) { + output.WriteRawTag(16); + output.WriteUInt32(OutputIndex); + } + if (asOutput_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AsOutput); + } + if (redeemer_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Redeemer); + } + 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 (TxHash.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(TxHash); + } + if (OutputIndex != 0) { + output.WriteRawTag(16); + output.WriteUInt32(OutputIndex); + } + if (asOutput_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AsOutput); + } + if (redeemer_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Redeemer); + } + 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 (TxHash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(TxHash); + } + if (OutputIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OutputIndex); + } + if (asOutput_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsOutput); + } + if (redeemer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Redeemer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TxInput other) { + if (other == null) { + return; + } + if (other.TxHash.Length != 0) { + TxHash = other.TxHash; + } + if (other.OutputIndex != 0) { + OutputIndex = other.OutputIndex; + } + if (other.asOutput_ != null) { + if (asOutput_ == null) { + AsOutput = new global::Utxorpc.Cardano.V1.TxOutput(); + } + AsOutput.MergeFrom(other.AsOutput); + } + if (other.redeemer_ != null) { + if (redeemer_ == null) { + Redeemer = new global::Utxorpc.Cardano.V1.Redeemer(); + } + Redeemer.MergeFrom(other.Redeemer); + } + _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: { + TxHash = input.ReadBytes(); + break; + } + case 16: { + OutputIndex = input.ReadUInt32(); + break; + } + case 26: { + if (asOutput_ == null) { + AsOutput = new global::Utxorpc.Cardano.V1.TxOutput(); + } + input.ReadMessage(AsOutput); + break; + } + case 34: { + if (redeemer_ == null) { + Redeemer = new global::Utxorpc.Cardano.V1.Redeemer(); + } + input.ReadMessage(Redeemer); + 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: { + TxHash = input.ReadBytes(); + break; + } + case 16: { + OutputIndex = input.ReadUInt32(); + break; + } + case 26: { + if (asOutput_ == null) { + AsOutput = new global::Utxorpc.Cardano.V1.TxOutput(); + } + input.ReadMessage(AsOutput); + break; + } + case 34: { + if (redeemer_ == null) { + Redeemer = new global::Utxorpc.Cardano.V1.Redeemer(); + } + input.ReadMessage(Redeemer); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a transaction output in the Cardano blockchain. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TxOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TxOutput()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[2]; } + } + + [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 TxOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TxOutput(TxOutput other) : this() { + address_ = other.address_; + coin_ = other.coin_; + assets_ = other.assets_.Clone(); + datum_ = other.datum_ != null ? other.datum_.Clone() : null; + datumHash_ = other.datumHash_; + script_ = other.script_ != null ? other.script_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TxOutput Clone() { + return new TxOutput(this); + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 1; + private pb::ByteString address_ = pb::ByteString.Empty; + /// + /// Address receiving the output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "coin" field. + public const int CoinFieldNumber = 2; + private ulong coin_; + /// + /// Amount of ADA in the output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Coin { + get { return coin_; } + set { + coin_ = value; + } + } + + /// Field number for the "assets" field. + public const int AssetsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_assets_codec + = pb::FieldCodec.ForMessage(26, global::Utxorpc.Cardano.V1.Multiasset.Parser); + private readonly pbc::RepeatedField assets_ = new pbc::RepeatedField(); + /// + /// Additional native (non-ADA) assets in the output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Assets { + get { return assets_; } + } + + /// Field number for the "datum" field. + public const int DatumFieldNumber = 4; + private global::Utxorpc.Cardano.V1.PlutusData datum_; + /// + /// Plutus data associated with the output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.PlutusData Datum { + get { return datum_; } + set { + datum_ = value; + } + } + + /// Field number for the "datum_hash" field. + public const int DatumHashFieldNumber = 5; + private pb::ByteString datumHash_ = pb::ByteString.Empty; + /// + /// Hash of the Plutus data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString DatumHash { + get { return datumHash_; } + set { + datumHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "script" field. + public const int ScriptFieldNumber = 6; + private global::Utxorpc.Cardano.V1.Script script_; + /// + /// Script associated with the output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.Script Script { + get { return script_; } + set { + script_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TxOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TxOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Address != other.Address) return false; + if (Coin != other.Coin) return false; + if(!assets_.Equals(other.assets_)) return false; + if (!object.Equals(Datum, other.Datum)) return false; + if (DatumHash != other.DatumHash) return false; + if (!object.Equals(Script, other.Script)) 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 (Address.Length != 0) hash ^= Address.GetHashCode(); + if (Coin != 0UL) hash ^= Coin.GetHashCode(); + hash ^= assets_.GetHashCode(); + if (datum_ != null) hash ^= Datum.GetHashCode(); + if (DatumHash.Length != 0) hash ^= DatumHash.GetHashCode(); + if (script_ != null) hash ^= Script.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 (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } + if (Coin != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Coin); + } + assets_.WriteTo(output, _repeated_assets_codec); + if (datum_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Datum); + } + if (DatumHash.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(DatumHash); + } + if (script_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Script); + } + 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 (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } + if (Coin != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Coin); + } + assets_.WriteTo(ref output, _repeated_assets_codec); + if (datum_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Datum); + } + if (DatumHash.Length != 0) { + output.WriteRawTag(42); + output.WriteBytes(DatumHash); + } + if (script_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Script); + } + 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 (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } + if (Coin != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Coin); + } + size += assets_.CalculateSize(_repeated_assets_codec); + if (datum_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Datum); + } + if (DatumHash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(DatumHash); + } + if (script_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Script); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TxOutput other) { + if (other == null) { + return; + } + if (other.Address.Length != 0) { + Address = other.Address; + } + if (other.Coin != 0UL) { + Coin = other.Coin; + } + assets_.Add(other.assets_); + if (other.datum_ != null) { + if (datum_ == null) { + Datum = new global::Utxorpc.Cardano.V1.PlutusData(); + } + Datum.MergeFrom(other.Datum); + } + if (other.DatumHash.Length != 0) { + DatumHash = other.DatumHash; + } + if (other.script_ != null) { + if (script_ == null) { + Script = new global::Utxorpc.Cardano.V1.Script(); + } + Script.MergeFrom(other.Script); + } + _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: { + Address = input.ReadBytes(); + break; + } + case 16: { + Coin = input.ReadUInt64(); + break; + } + case 26: { + assets_.AddEntriesFrom(input, _repeated_assets_codec); + break; + } + case 34: { + if (datum_ == null) { + Datum = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Datum); + break; + } + case 42: { + DatumHash = input.ReadBytes(); + break; + } + case 50: { + if (script_ == null) { + Script = new global::Utxorpc.Cardano.V1.Script(); + } + input.ReadMessage(Script); + 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: { + Address = input.ReadBytes(); + break; + } + case 16: { + Coin = input.ReadUInt64(); + break; + } + case 26: { + assets_.AddEntriesFrom(ref input, _repeated_assets_codec); + break; + } + case 34: { + if (datum_ == null) { + Datum = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Datum); + break; + } + case 42: { + DatumHash = input.ReadBytes(); + break; + } + case 50: { + if (script_ == null) { + Script = new global::Utxorpc.Cardano.V1.Script(); + } + input.ReadMessage(Script); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a custom asset in the Cardano blockchain. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Asset : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Asset()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[3]; } + } + + [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 Asset() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Asset(Asset other) : this() { + name_ = other.name_; + outputCoin_ = other.outputCoin_; + mintCoin_ = other.mintCoin_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Asset Clone() { + return new Asset(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private pb::ByteString name_ = pb::ByteString.Empty; + /// + /// Name of the custom asset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "output_coin" field. + public const int OutputCoinFieldNumber = 2; + private ulong outputCoin_; + /// + /// Quantity of the custom asset in case of an output. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong OutputCoin { + get { return outputCoin_; } + set { + outputCoin_ = value; + } + } + + /// Field number for the "mint_coin" field. + public const int MintCoinFieldNumber = 3; + private long mintCoin_; + /// + /// Quantity of the custom asset in case of a mint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MintCoin { + get { return mintCoin_; } + set { + mintCoin_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Asset); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Asset other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (OutputCoin != other.OutputCoin) return false; + if (MintCoin != other.MintCoin) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (OutputCoin != 0UL) hash ^= OutputCoin.GetHashCode(); + if (MintCoin != 0L) hash ^= MintCoin.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Name); + } + if (OutputCoin != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(OutputCoin); + } + if (MintCoin != 0L) { + output.WriteRawTag(24); + output.WriteInt64(MintCoin); + } + 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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Name); + } + if (OutputCoin != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(OutputCoin); + } + if (MintCoin != 0L) { + output.WriteRawTag(24); + output.WriteInt64(MintCoin); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Name); + } + if (OutputCoin != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputCoin); + } + if (MintCoin != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MintCoin); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Asset other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.OutputCoin != 0UL) { + OutputCoin = other.OutputCoin; + } + if (other.MintCoin != 0L) { + MintCoin = other.MintCoin; + } + _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: { + Name = input.ReadBytes(); + break; + } + case 16: { + OutputCoin = input.ReadUInt64(); + break; + } + case 24: { + MintCoin = input.ReadInt64(); + 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: { + Name = input.ReadBytes(); + break; + } + case 16: { + OutputCoin = input.ReadUInt64(); + break; + } + case 24: { + MintCoin = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a multi-asset group in the Cardano blockchain. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Multiasset : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Multiasset()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[4]; } + } + + [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 Multiasset() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Multiasset(Multiasset other) : this() { + policyId_ = other.policyId_; + assets_ = other.assets_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Multiasset Clone() { + return new Multiasset(this); + } + + /// Field number for the "policy_id" field. + public const int PolicyIdFieldNumber = 1; + private pb::ByteString policyId_ = pb::ByteString.Empty; + /// + /// Policy ID governing the custom assets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString PolicyId { + get { return policyId_; } + set { + policyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "assets" field. + public const int AssetsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_assets_codec + = pb::FieldCodec.ForMessage(18, global::Utxorpc.Cardano.V1.Asset.Parser); + private readonly pbc::RepeatedField assets_ = new pbc::RepeatedField(); + /// + /// List of custom assets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Assets { + get { return assets_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Multiasset); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Multiasset other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PolicyId != other.PolicyId) return false; + if(!assets_.Equals(other.assets_)) 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 (PolicyId.Length != 0) hash ^= PolicyId.GetHashCode(); + hash ^= assets_.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 (PolicyId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PolicyId); + } + assets_.WriteTo(output, _repeated_assets_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) { + if (PolicyId.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(PolicyId); + } + assets_.WriteTo(ref output, _repeated_assets_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; + if (PolicyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(PolicyId); + } + size += assets_.CalculateSize(_repeated_assets_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Multiasset other) { + if (other == null) { + return; + } + if (other.PolicyId.Length != 0) { + PolicyId = other.PolicyId; + } + assets_.Add(other.assets_); + _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: { + PolicyId = input.ReadBytes(); + break; + } + case 18: { + assets_.AddEntriesFrom(input, _repeated_assets_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: { + PolicyId = input.ReadBytes(); + break; + } + case 18: { + assets_.AddEntriesFrom(ref input, _repeated_assets_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the validity interval of a transaction. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TxValidity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TxValidity()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[5]; } + } + + [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 TxValidity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TxValidity(TxValidity other) : this() { + start_ = other.start_; + ttl_ = other.ttl_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TxValidity Clone() { + return new TxValidity(this); + } + + /// Field number for the "start" field. + public const int StartFieldNumber = 1; + private ulong start_; + /// + /// Start of the validity interval. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Start { + get { return start_; } + set { + start_ = value; + } + } + + /// Field number for the "ttl" field. + public const int TtlFieldNumber = 2; + private ulong ttl_; + /// + /// End of the validity interval (TTL: Time to Live). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Ttl { + get { return ttl_; } + set { + ttl_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TxValidity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TxValidity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Start != other.Start) return false; + if (Ttl != other.Ttl) 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 (Start != 0UL) hash ^= Start.GetHashCode(); + if (Ttl != 0UL) hash ^= Ttl.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 (Start != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(Start); + } + if (Ttl != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Ttl); + } + 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 (Start != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(Start); + } + if (Ttl != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Ttl); + } + 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 (Start != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Start); + } + if (Ttl != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Ttl); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TxValidity other) { + if (other == null) { + return; + } + if (other.Start != 0UL) { + Start = other.Start; + } + if (other.Ttl != 0UL) { + Ttl = other.Ttl; + } + _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 8: { + Start = input.ReadUInt64(); + break; + } + case 16: { + Ttl = input.ReadUInt64(); + 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 8: { + Start = input.ReadUInt64(); + break; + } + case 16: { + Ttl = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents the collateral information for a transaction. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Collateral : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Collateral()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[6]; } + } + + [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 Collateral() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Collateral(Collateral other) : this() { + collateral_ = other.collateral_.Clone(); + collateralReturn_ = other.collateralReturn_ != null ? other.collateralReturn_.Clone() : null; + totalCollateral_ = other.totalCollateral_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Collateral Clone() { + return new Collateral(this); + } + + /// Field number for the "collateral" field. + public const int Collateral_FieldNumber = 1; + private static readonly pb::FieldCodec _repeated_collateral_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.TxInput.Parser); + private readonly pbc::RepeatedField collateral_ = new pbc::RepeatedField(); + /// + /// Collateral inputs for the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Collateral_ { + get { return collateral_; } + } + + /// Field number for the "collateral_return" field. + public const int CollateralReturnFieldNumber = 2; + private global::Utxorpc.Cardano.V1.TxOutput collateralReturn_; + /// + /// Collateral return in case of script failure. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.TxOutput CollateralReturn { + get { return collateralReturn_; } + set { + collateralReturn_ = value; + } + } + + /// Field number for the "total_collateral" field. + public const int TotalCollateralFieldNumber = 3; + private ulong totalCollateral_; + /// + /// Total amount of collateral. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TotalCollateral { + get { return totalCollateral_; } + set { + totalCollateral_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Collateral); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Collateral other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!collateral_.Equals(other.collateral_)) return false; + if (!object.Equals(CollateralReturn, other.CollateralReturn)) return false; + if (TotalCollateral != other.TotalCollateral) 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 ^= collateral_.GetHashCode(); + if (collateralReturn_ != null) hash ^= CollateralReturn.GetHashCode(); + if (TotalCollateral != 0UL) hash ^= TotalCollateral.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 + collateral_.WriteTo(output, _repeated_collateral_codec); + if (collateralReturn_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CollateralReturn); + } + if (TotalCollateral != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(TotalCollateral); + } + 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) { + collateral_.WriteTo(ref output, _repeated_collateral_codec); + if (collateralReturn_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CollateralReturn); + } + if (TotalCollateral != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(TotalCollateral); + } + 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 += collateral_.CalculateSize(_repeated_collateral_codec); + if (collateralReturn_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CollateralReturn); + } + if (TotalCollateral != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalCollateral); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Collateral other) { + if (other == null) { + return; + } + collateral_.Add(other.collateral_); + if (other.collateralReturn_ != null) { + if (collateralReturn_ == null) { + CollateralReturn = new global::Utxorpc.Cardano.V1.TxOutput(); + } + CollateralReturn.MergeFrom(other.CollateralReturn); + } + if (other.TotalCollateral != 0UL) { + TotalCollateral = other.TotalCollateral; + } + _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: { + collateral_.AddEntriesFrom(input, _repeated_collateral_codec); + break; + } + case 18: { + if (collateralReturn_ == null) { + CollateralReturn = new global::Utxorpc.Cardano.V1.TxOutput(); + } + input.ReadMessage(CollateralReturn); + break; + } + case 24: { + TotalCollateral = input.ReadUInt64(); + 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: { + collateral_.AddEntriesFrom(ref input, _repeated_collateral_codec); + break; + } + case 18: { + if (collateralReturn_ == null) { + CollateralReturn = new global::Utxorpc.Cardano.V1.TxOutput(); + } + input.ReadMessage(CollateralReturn); + break; + } + case 24: { + TotalCollateral = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a withdrawal from a reward account. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Withdrawal : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Withdrawal()); + 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::Utxorpc.Cardano.V1.CardanoReflection.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 Withdrawal() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Withdrawal(Withdrawal other) : this() { + rewardAccount_ = other.rewardAccount_; + coin_ = other.coin_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Withdrawal Clone() { + return new Withdrawal(this); + } + + /// Field number for the "reward_account" field. + public const int RewardAccountFieldNumber = 1; + private pb::ByteString rewardAccount_ = pb::ByteString.Empty; + /// + /// Address of the reward account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RewardAccount { + get { return rewardAccount_; } + set { + rewardAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "coin" field. + public const int CoinFieldNumber = 2; + private ulong coin_; + /// + /// Amount of ADA withdrawn. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Coin { + get { return coin_; } + set { + coin_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Withdrawal); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Withdrawal other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RewardAccount != other.RewardAccount) return false; + if (Coin != other.Coin) 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 (RewardAccount.Length != 0) hash ^= RewardAccount.GetHashCode(); + if (Coin != 0UL) hash ^= Coin.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 (RewardAccount.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(RewardAccount); + } + if (Coin != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Coin); + } + 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 (RewardAccount.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(RewardAccount); + } + if (Coin != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(Coin); + } + 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 (RewardAccount.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RewardAccount); + } + if (Coin != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Coin); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Withdrawal other) { + if (other == null) { + return; + } + if (other.RewardAccount.Length != 0) { + RewardAccount = other.RewardAccount; + } + if (other.Coin != 0UL) { + Coin = other.Coin; + } + _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: { + RewardAccount = input.ReadBytes(); + break; + } + case 16: { + Coin = input.ReadUInt64(); + 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: { + RewardAccount = input.ReadBytes(); + break; + } + case 16: { + Coin = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a set of witnesses that validate a transaction + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WitnessSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WitnessSet()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[8]; } + } + + [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 WitnessSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WitnessSet(WitnessSet other) : this() { + vkeywitness_ = other.vkeywitness_.Clone(); + script_ = other.script_.Clone(); + plutusDatums_ = other.plutusDatums_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WitnessSet Clone() { + return new WitnessSet(this); + } + + /// Field number for the "vkeywitness" field. + public const int VkeywitnessFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_vkeywitness_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.VKeyWitness.Parser); + private readonly pbc::RepeatedField vkeywitness_ = new pbc::RepeatedField(); + /// + /// List of VKey witnesses. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Vkeywitness { + get { return vkeywitness_; } + } + + /// Field number for the "script" field. + public const int ScriptFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_script_codec + = pb::FieldCodec.ForMessage(18, global::Utxorpc.Cardano.V1.Script.Parser); + private readonly pbc::RepeatedField script_ = new pbc::RepeatedField(); + /// + /// List of scripts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Script { + get { return script_; } + } + + /// Field number for the "plutus_datums" field. + public const int PlutusDatumsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_plutusDatums_codec + = pb::FieldCodec.ForMessage(26, global::Utxorpc.Cardano.V1.PlutusData.Parser); + private readonly pbc::RepeatedField plutusDatums_ = new pbc::RepeatedField(); + /// + /// List of Plutus data elements associated with the transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PlutusDatums { + get { return plutusDatums_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WitnessSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WitnessSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!vkeywitness_.Equals(other.vkeywitness_)) return false; + if(!script_.Equals(other.script_)) return false; + if(!plutusDatums_.Equals(other.plutusDatums_)) 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 ^= vkeywitness_.GetHashCode(); + hash ^= script_.GetHashCode(); + hash ^= plutusDatums_.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 + vkeywitness_.WriteTo(output, _repeated_vkeywitness_codec); + script_.WriteTo(output, _repeated_script_codec); + plutusDatums_.WriteTo(output, _repeated_plutusDatums_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) { + vkeywitness_.WriteTo(ref output, _repeated_vkeywitness_codec); + script_.WriteTo(ref output, _repeated_script_codec); + plutusDatums_.WriteTo(ref output, _repeated_plutusDatums_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 += vkeywitness_.CalculateSize(_repeated_vkeywitness_codec); + size += script_.CalculateSize(_repeated_script_codec); + size += plutusDatums_.CalculateSize(_repeated_plutusDatums_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WitnessSet other) { + if (other == null) { + return; + } + vkeywitness_.Add(other.vkeywitness_); + script_.Add(other.script_); + plutusDatums_.Add(other.plutusDatums_); + _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: { + vkeywitness_.AddEntriesFrom(input, _repeated_vkeywitness_codec); + break; + } + case 18: { + script_.AddEntriesFrom(input, _repeated_script_codec); + break; + } + case 26: { + plutusDatums_.AddEntriesFrom(input, _repeated_plutusDatums_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: { + vkeywitness_.AddEntriesFrom(ref input, _repeated_vkeywitness_codec); + break; + } + case 18: { + script_.AddEntriesFrom(ref input, _repeated_script_codec); + break; + } + case 26: { + plutusDatums_.AddEntriesFrom(ref input, _repeated_plutusDatums_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Auxiliary data not directly tied to the validation process + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AuxData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuxData()); + 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::Utxorpc.Cardano.V1.CardanoReflection.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 AuxData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuxData(AuxData other) : this() { + metadata_ = other.metadata_.Clone(); + scripts_ = other.scripts_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuxData Clone() { + return new AuxData(this); + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_metadata_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.Metadata.Parser); + private readonly pbc::RepeatedField metadata_ = new pbc::RepeatedField(); + /// + /// List of auxiliary metadata elements. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Metadata { + get { return metadata_; } + } + + /// Field number for the "scripts" field. + public const int ScriptsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_scripts_codec + = pb::FieldCodec.ForMessage(18, global::Utxorpc.Cardano.V1.Script.Parser); + private readonly pbc::RepeatedField scripts_ = new pbc::RepeatedField(); + /// + /// List of auxiliary scripts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Scripts { + get { return scripts_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AuxData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuxData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!metadata_.Equals(other.metadata_)) return false; + if(!scripts_.Equals(other.scripts_)) 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 ^= metadata_.GetHashCode(); + hash ^= scripts_.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 + metadata_.WriteTo(output, _repeated_metadata_codec); + scripts_.WriteTo(output, _repeated_scripts_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) { + metadata_.WriteTo(ref output, _repeated_metadata_codec); + scripts_.WriteTo(ref output, _repeated_scripts_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 += metadata_.CalculateSize(_repeated_metadata_codec); + size += scripts_.CalculateSize(_repeated_scripts_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuxData other) { + if (other == null) { + return; + } + metadata_.Add(other.metadata_); + scripts_.Add(other.scripts_); + _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: { + metadata_.AddEntriesFrom(input, _repeated_metadata_codec); + break; + } + case 18: { + scripts_.AddEntriesFrom(input, _repeated_scripts_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: { + metadata_.AddEntriesFrom(ref input, _repeated_metadata_codec); + break; + } + case 18: { + scripts_.AddEntriesFrom(ref input, _repeated_scripts_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a transaction in the Cardano blockchain. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Tx : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Tx()); + 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::Utxorpc.Cardano.V1.CardanoReflection.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 Tx() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Tx(Tx other) : this() { + inputs_ = other.inputs_.Clone(); + outputs_ = other.outputs_.Clone(); + certificates_ = other.certificates_.Clone(); + withdrawals_ = other.withdrawals_.Clone(); + mint_ = other.mint_.Clone(); + referenceInputs_ = other.referenceInputs_.Clone(); + witnesses_ = other.witnesses_ != null ? other.witnesses_.Clone() : null; + collateral_ = other.collateral_ != null ? other.collateral_.Clone() : null; + fee_ = other.fee_; + validity_ = other.validity_ != null ? other.validity_.Clone() : null; + successful_ = other.successful_; + auxiliary_ = other.auxiliary_ != null ? other.auxiliary_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Tx Clone() { + return new Tx(this); + } + + /// Field number for the "inputs" field. + public const int InputsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_inputs_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.TxInput.Parser); + private readonly pbc::RepeatedField inputs_ = new pbc::RepeatedField(); + /// + /// List of transaction inputs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Inputs { + get { return inputs_; } + } + + /// Field number for the "outputs" field. + public const int OutputsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_outputs_codec + = pb::FieldCodec.ForMessage(18, global::Utxorpc.Cardano.V1.TxOutput.Parser); + private readonly pbc::RepeatedField outputs_ = new pbc::RepeatedField(); + /// + /// List of transaction outputs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Outputs { + get { return outputs_; } + } + + /// Field number for the "certificates" field. + public const int CertificatesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_certificates_codec + = pb::FieldCodec.ForMessage(26, global::Utxorpc.Cardano.V1.Certificate.Parser); + private readonly pbc::RepeatedField certificates_ = new pbc::RepeatedField(); + /// + /// List of certificates + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Certificates { + get { return certificates_; } + } + + /// Field number for the "withdrawals" field. + public const int WithdrawalsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_withdrawals_codec + = pb::FieldCodec.ForMessage(34, global::Utxorpc.Cardano.V1.Withdrawal.Parser); + private readonly pbc::RepeatedField withdrawals_ = new pbc::RepeatedField(); + /// + /// List of withdrawals + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Withdrawals { + get { return withdrawals_; } + } + + /// Field number for the "mint" field. + public const int MintFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_mint_codec + = pb::FieldCodec.ForMessage(42, global::Utxorpc.Cardano.V1.Multiasset.Parser); + private readonly pbc::RepeatedField mint_ = new pbc::RepeatedField(); + /// + /// List of minted custom assets + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Mint { + get { return mint_; } + } + + /// Field number for the "reference_inputs" field. + public const int ReferenceInputsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_referenceInputs_codec + = pb::FieldCodec.ForMessage(50, global::Utxorpc.Cardano.V1.TxInput.Parser); + private readonly pbc::RepeatedField referenceInputs_ = new pbc::RepeatedField(); + /// + /// List of reference inputs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ReferenceInputs { + get { return referenceInputs_; } + } + + /// Field number for the "witnesses" field. + public const int WitnessesFieldNumber = 7; + private global::Utxorpc.Cardano.V1.WitnessSet witnesses_; + /// + /// Witnesses that validte the transaction + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.WitnessSet Witnesses { + get { return witnesses_; } + set { + witnesses_ = value; + } + } + + /// Field number for the "collateral" field. + public const int CollateralFieldNumber = 8; + private global::Utxorpc.Cardano.V1.Collateral collateral_; + /// + /// Collateral details in case of failed transaction + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.Collateral Collateral { + get { return collateral_; } + set { + collateral_ = value; + } + } + + /// Field number for the "fee" field. + public const int FeeFieldNumber = 9; + private ulong fee_; + /// + /// Transaction fee in ADA + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Fee { + get { return fee_; } + set { + fee_ = value; + } + } + + /// Field number for the "validity" field. + public const int ValidityFieldNumber = 10; + private global::Utxorpc.Cardano.V1.TxValidity validity_; + /// + /// Validity interval of the transaction + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.TxValidity Validity { + get { return validity_; } + set { + validity_ = value; + } + } + + /// Field number for the "successful" field. + public const int SuccessfulFieldNumber = 11; + private bool successful_; + /// + /// Flag indicating whether the transaction was successful + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Successful { + get { return successful_; } + set { + successful_ = value; + } + } + + /// Field number for the "auxiliary" field. + public const int AuxiliaryFieldNumber = 12; + private global::Utxorpc.Cardano.V1.AuxData auxiliary_; + /// + /// Auxiliary data not directly tied to the validation process + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.AuxData Auxiliary { + get { return auxiliary_; } + set { + auxiliary_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Tx); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Tx other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!inputs_.Equals(other.inputs_)) return false; + if(!outputs_.Equals(other.outputs_)) return false; + if(!certificates_.Equals(other.certificates_)) return false; + if(!withdrawals_.Equals(other.withdrawals_)) return false; + if(!mint_.Equals(other.mint_)) return false; + if(!referenceInputs_.Equals(other.referenceInputs_)) return false; + if (!object.Equals(Witnesses, other.Witnesses)) return false; + if (!object.Equals(Collateral, other.Collateral)) return false; + if (Fee != other.Fee) return false; + if (!object.Equals(Validity, other.Validity)) return false; + if (Successful != other.Successful) return false; + if (!object.Equals(Auxiliary, other.Auxiliary)) 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 ^= inputs_.GetHashCode(); + hash ^= outputs_.GetHashCode(); + hash ^= certificates_.GetHashCode(); + hash ^= withdrawals_.GetHashCode(); + hash ^= mint_.GetHashCode(); + hash ^= referenceInputs_.GetHashCode(); + if (witnesses_ != null) hash ^= Witnesses.GetHashCode(); + if (collateral_ != null) hash ^= Collateral.GetHashCode(); + if (Fee != 0UL) hash ^= Fee.GetHashCode(); + if (validity_ != null) hash ^= Validity.GetHashCode(); + if (Successful != false) hash ^= Successful.GetHashCode(); + if (auxiliary_ != null) hash ^= Auxiliary.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 + inputs_.WriteTo(output, _repeated_inputs_codec); + outputs_.WriteTo(output, _repeated_outputs_codec); + certificates_.WriteTo(output, _repeated_certificates_codec); + withdrawals_.WriteTo(output, _repeated_withdrawals_codec); + mint_.WriteTo(output, _repeated_mint_codec); + referenceInputs_.WriteTo(output, _repeated_referenceInputs_codec); + if (witnesses_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Witnesses); + } + if (collateral_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Collateral); + } + if (Fee != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(Fee); + } + if (validity_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Validity); + } + if (Successful != false) { + output.WriteRawTag(88); + output.WriteBool(Successful); + } + if (auxiliary_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Auxiliary); + } + 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) { + inputs_.WriteTo(ref output, _repeated_inputs_codec); + outputs_.WriteTo(ref output, _repeated_outputs_codec); + certificates_.WriteTo(ref output, _repeated_certificates_codec); + withdrawals_.WriteTo(ref output, _repeated_withdrawals_codec); + mint_.WriteTo(ref output, _repeated_mint_codec); + referenceInputs_.WriteTo(ref output, _repeated_referenceInputs_codec); + if (witnesses_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Witnesses); + } + if (collateral_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Collateral); + } + if (Fee != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(Fee); + } + if (validity_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Validity); + } + if (Successful != false) { + output.WriteRawTag(88); + output.WriteBool(Successful); + } + if (auxiliary_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Auxiliary); + } + 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 += inputs_.CalculateSize(_repeated_inputs_codec); + size += outputs_.CalculateSize(_repeated_outputs_codec); + size += certificates_.CalculateSize(_repeated_certificates_codec); + size += withdrawals_.CalculateSize(_repeated_withdrawals_codec); + size += mint_.CalculateSize(_repeated_mint_codec); + size += referenceInputs_.CalculateSize(_repeated_referenceInputs_codec); + if (witnesses_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Witnesses); + } + if (collateral_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Collateral); + } + if (Fee != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Fee); + } + if (validity_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validity); + } + if (Successful != false) { + size += 1 + 1; + } + if (auxiliary_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Auxiliary); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Tx other) { + if (other == null) { + return; + } + inputs_.Add(other.inputs_); + outputs_.Add(other.outputs_); + certificates_.Add(other.certificates_); + withdrawals_.Add(other.withdrawals_); + mint_.Add(other.mint_); + referenceInputs_.Add(other.referenceInputs_); + if (other.witnesses_ != null) { + if (witnesses_ == null) { + Witnesses = new global::Utxorpc.Cardano.V1.WitnessSet(); + } + Witnesses.MergeFrom(other.Witnesses); + } + if (other.collateral_ != null) { + if (collateral_ == null) { + Collateral = new global::Utxorpc.Cardano.V1.Collateral(); + } + Collateral.MergeFrom(other.Collateral); + } + if (other.Fee != 0UL) { + Fee = other.Fee; + } + if (other.validity_ != null) { + if (validity_ == null) { + Validity = new global::Utxorpc.Cardano.V1.TxValidity(); + } + Validity.MergeFrom(other.Validity); + } + if (other.Successful != false) { + Successful = other.Successful; + } + if (other.auxiliary_ != null) { + if (auxiliary_ == null) { + Auxiliary = new global::Utxorpc.Cardano.V1.AuxData(); + } + Auxiliary.MergeFrom(other.Auxiliary); + } + _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: { + inputs_.AddEntriesFrom(input, _repeated_inputs_codec); + break; + } + case 18: { + outputs_.AddEntriesFrom(input, _repeated_outputs_codec); + break; + } + case 26: { + certificates_.AddEntriesFrom(input, _repeated_certificates_codec); + break; + } + case 34: { + withdrawals_.AddEntriesFrom(input, _repeated_withdrawals_codec); + break; + } + case 42: { + mint_.AddEntriesFrom(input, _repeated_mint_codec); + break; + } + case 50: { + referenceInputs_.AddEntriesFrom(input, _repeated_referenceInputs_codec); + break; + } + case 58: { + if (witnesses_ == null) { + Witnesses = new global::Utxorpc.Cardano.V1.WitnessSet(); + } + input.ReadMessage(Witnesses); + break; + } + case 66: { + if (collateral_ == null) { + Collateral = new global::Utxorpc.Cardano.V1.Collateral(); + } + input.ReadMessage(Collateral); + break; + } + case 72: { + Fee = input.ReadUInt64(); + break; + } + case 82: { + if (validity_ == null) { + Validity = new global::Utxorpc.Cardano.V1.TxValidity(); + } + input.ReadMessage(Validity); + break; + } + case 88: { + Successful = input.ReadBool(); + break; + } + case 98: { + if (auxiliary_ == null) { + Auxiliary = new global::Utxorpc.Cardano.V1.AuxData(); + } + input.ReadMessage(Auxiliary); + 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: { + inputs_.AddEntriesFrom(ref input, _repeated_inputs_codec); + break; + } + case 18: { + outputs_.AddEntriesFrom(ref input, _repeated_outputs_codec); + break; + } + case 26: { + certificates_.AddEntriesFrom(ref input, _repeated_certificates_codec); + break; + } + case 34: { + withdrawals_.AddEntriesFrom(ref input, _repeated_withdrawals_codec); + break; + } + case 42: { + mint_.AddEntriesFrom(ref input, _repeated_mint_codec); + break; + } + case 50: { + referenceInputs_.AddEntriesFrom(ref input, _repeated_referenceInputs_codec); + break; + } + case 58: { + if (witnesses_ == null) { + Witnesses = new global::Utxorpc.Cardano.V1.WitnessSet(); + } + input.ReadMessage(Witnesses); + break; + } + case 66: { + if (collateral_ == null) { + Collateral = new global::Utxorpc.Cardano.V1.Collateral(); + } + input.ReadMessage(Collateral); + break; + } + case 72: { + Fee = input.ReadUInt64(); + break; + } + case 82: { + if (validity_ == null) { + Validity = new global::Utxorpc.Cardano.V1.TxValidity(); + } + input.ReadMessage(Validity); + break; + } + case 88: { + Successful = input.ReadBool(); + break; + } + case 98: { + if (auxiliary_ == null) { + Auxiliary = new global::Utxorpc.Cardano.V1.AuxData(); + } + input.ReadMessage(Auxiliary); + break; + } + } + } + } + #endif + + } + + /// + /// Contains the header information for a block. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BlockHeader : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockHeader()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[11]; } + } + + [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 BlockHeader() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlockHeader(BlockHeader other) : this() { + slot_ = other.slot_; + hash_ = other.hash_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlockHeader Clone() { + return new BlockHeader(this); + } + + /// Field number for the "slot" field. + public const int SlotFieldNumber = 1; + private ulong slot_; + /// + /// Slot number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Slot { + get { return slot_; } + set { + slot_ = value; + } + } + + /// Field number for the "hash" field. + public const int HashFieldNumber = 2; + private pb::ByteString hash_ = pb::ByteString.Empty; + /// + /// Block hash. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Hash { + get { return hash_; } + set { + hash_ = 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 BlockHeader); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlockHeader other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Slot != other.Slot) return false; + if (Hash != other.Hash) 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 (Slot != 0UL) hash ^= Slot.GetHashCode(); + if (Hash.Length != 0) hash ^= Hash.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 (Slot != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(Slot); + } + if (Hash.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Hash); + } + 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 (Slot != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(Slot); + } + if (Hash.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Hash); + } + 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 (Slot != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Slot); + } + if (Hash.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Hash); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlockHeader other) { + if (other == null) { + return; + } + if (other.Slot != 0UL) { + Slot = other.Slot; + } + if (other.Hash.Length != 0) { + Hash = other.Hash; + } + _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 8: { + Slot = input.ReadUInt64(); + break; + } + case 18: { + Hash = input.ReadBytes(); + 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 8: { + Slot = input.ReadUInt64(); + break; + } + case 18: { + Hash = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + /// + /// Contains the transaction data for a block. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BlockBody : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockBody()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[12]; } + } + + [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 BlockBody() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlockBody(BlockBody other) : this() { + tx_ = other.tx_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlockBody Clone() { + return new BlockBody(this); + } + + /// Field number for the "tx" field. + public const int TxFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_tx_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.Tx.Parser); + private readonly pbc::RepeatedField tx_ = new pbc::RepeatedField(); + /// + /// List of transactions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tx { + get { return tx_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlockBody); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlockBody other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!tx_.Equals(other.tx_)) 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 ^= tx_.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 + tx_.WriteTo(output, _repeated_tx_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) { + tx_.WriteTo(ref output, _repeated_tx_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 += tx_.CalculateSize(_repeated_tx_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlockBody other) { + if (other == null) { + return; + } + tx_.Add(other.tx_); + _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: { + tx_.AddEntriesFrom(input, _repeated_tx_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: { + tx_.AddEntriesFrom(ref input, _repeated_tx_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a complete block, including header and body. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Block : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Block()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[13]; } + } + + [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 Block() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Block(Block other) : this() { + header_ = other.header_ != null ? other.header_.Clone() : null; + body_ = other.body_ != null ? other.body_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Block Clone() { + return new Block(this); + } + + /// Field number for the "header" field. + public const int HeaderFieldNumber = 1; + private global::Utxorpc.Cardano.V1.BlockHeader header_; + /// + /// Block header. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.BlockHeader Header { + get { return header_; } + set { + header_ = value; + } + } + + /// Field number for the "body" field. + public const int BodyFieldNumber = 2; + private global::Utxorpc.Cardano.V1.BlockBody body_; + /// + /// Block body. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.BlockBody Body { + get { return body_; } + set { + body_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Block); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Block other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Header, other.Header)) return false; + if (!object.Equals(Body, other.Body)) 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 (header_ != null) hash ^= Header.GetHashCode(); + if (body_ != null) hash ^= Body.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 (header_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Header); + } + if (body_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Body); + } + 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 (header_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Header); + } + if (body_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Body); + } + 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 (header_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Header); + } + if (body_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Body); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Block other) { + if (other == null) { + return; + } + if (other.header_ != null) { + if (header_ == null) { + Header = new global::Utxorpc.Cardano.V1.BlockHeader(); + } + Header.MergeFrom(other.Header); + } + if (other.body_ != null) { + if (body_ == null) { + Body = new global::Utxorpc.Cardano.V1.BlockBody(); + } + Body.MergeFrom(other.Body); + } + _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 (header_ == null) { + Header = new global::Utxorpc.Cardano.V1.BlockHeader(); + } + input.ReadMessage(Header); + break; + } + case 18: { + if (body_ == null) { + Body = new global::Utxorpc.Cardano.V1.BlockBody(); + } + input.ReadMessage(Body); + 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 (header_ == null) { + Header = new global::Utxorpc.Cardano.V1.BlockHeader(); + } + input.ReadMessage(Header); + break; + } + case 18: { + if (body_ == null) { + Body = new global::Utxorpc.Cardano.V1.BlockBody(); + } + input.ReadMessage(Body); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a VKey witness used to sign a transaction. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VKeyWitness : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VKeyWitness()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[14]; } + } + + [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 VKeyWitness() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VKeyWitness(VKeyWitness other) : this() { + vkey_ = other.vkey_; + signature_ = other.signature_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VKeyWitness Clone() { + return new VKeyWitness(this); + } + + /// Field number for the "vkey" field. + public const int VkeyFieldNumber = 1; + private pb::ByteString vkey_ = pb::ByteString.Empty; + /// + /// Verification key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Vkey { + get { return vkey_; } + set { + vkey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "signature" field. + public const int SignatureFieldNumber = 2; + private pb::ByteString signature_ = pb::ByteString.Empty; + /// + /// Signature generated using the associated private key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Signature { + get { return signature_; } + set { + signature_ = 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 VKeyWitness); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VKeyWitness other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Vkey != other.Vkey) return false; + if (Signature != other.Signature) 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 (Vkey.Length != 0) hash ^= Vkey.GetHashCode(); + if (Signature.Length != 0) hash ^= Signature.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 (Vkey.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Vkey); + } + if (Signature.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Signature); + } + 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 (Vkey.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Vkey); + } + if (Signature.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Signature); + } + 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 (Vkey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Vkey); + } + if (Signature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Signature); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VKeyWitness other) { + if (other == null) { + return; + } + if (other.Vkey.Length != 0) { + Vkey = other.Vkey; + } + if (other.Signature.Length != 0) { + Signature = other.Signature; + } + _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: { + Vkey = input.ReadBytes(); + break; + } + case 18: { + Signature = input.ReadBytes(); + 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: { + Vkey = input.ReadBytes(); + break; + } + case 18: { + Signature = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a native script in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NativeScript : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NativeScript()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[15]; } + } + + [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 NativeScript() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NativeScript(NativeScript other) : this() { + switch (other.NativeScriptCase) { + case NativeScriptOneofCase.ScriptPubkey: + ScriptPubkey = other.ScriptPubkey; + break; + case NativeScriptOneofCase.ScriptAll: + ScriptAll = other.ScriptAll.Clone(); + break; + case NativeScriptOneofCase.ScriptAny: + ScriptAny = other.ScriptAny.Clone(); + break; + case NativeScriptOneofCase.ScriptNOfK: + ScriptNOfK = other.ScriptNOfK.Clone(); + break; + case NativeScriptOneofCase.InvalidBefore: + InvalidBefore = other.InvalidBefore; + break; + case NativeScriptOneofCase.InvalidHereafter: + InvalidHereafter = other.InvalidHereafter; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NativeScript Clone() { + return new NativeScript(this); + } + + /// Field number for the "script_pubkey" field. + public const int ScriptPubkeyFieldNumber = 1; + /// + /// Script based on an address key hash. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString ScriptPubkey { + get { return HasScriptPubkey ? (pb::ByteString) nativeScript_ : pb::ByteString.Empty; } + set { + nativeScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + nativeScriptCase_ = NativeScriptOneofCase.ScriptPubkey; + } + } + /// Gets whether the "script_pubkey" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasScriptPubkey { + get { return nativeScriptCase_ == NativeScriptOneofCase.ScriptPubkey; } + } + /// Clears the value of the oneof if it's currently set to "script_pubkey" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearScriptPubkey() { + if (HasScriptPubkey) { + ClearNativeScript(); + } + } + + /// Field number for the "script_all" field. + public const int ScriptAllFieldNumber = 2; + /// + /// Script that requires all nested scripts to be satisfied. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.NativeScriptList ScriptAll { + get { return nativeScriptCase_ == NativeScriptOneofCase.ScriptAll ? (global::Utxorpc.Cardano.V1.NativeScriptList) nativeScript_ : null; } + set { + nativeScript_ = value; + nativeScriptCase_ = value == null ? NativeScriptOneofCase.None : NativeScriptOneofCase.ScriptAll; + } + } + + /// Field number for the "script_any" field. + public const int ScriptAnyFieldNumber = 3; + /// + /// Script that requires any of the nested scripts to be satisfied. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.NativeScriptList ScriptAny { + get { return nativeScriptCase_ == NativeScriptOneofCase.ScriptAny ? (global::Utxorpc.Cardano.V1.NativeScriptList) nativeScript_ : null; } + set { + nativeScript_ = value; + nativeScriptCase_ = value == null ? NativeScriptOneofCase.None : NativeScriptOneofCase.ScriptAny; + } + } + + /// Field number for the "script_n_of_k" field. + public const int ScriptNOfKFieldNumber = 4; + /// + /// Script that requires k out of n nested scripts to be satisfied. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.ScriptNOfK ScriptNOfK { + get { return nativeScriptCase_ == NativeScriptOneofCase.ScriptNOfK ? (global::Utxorpc.Cardano.V1.ScriptNOfK) nativeScript_ : null; } + set { + nativeScript_ = value; + nativeScriptCase_ = value == null ? NativeScriptOneofCase.None : NativeScriptOneofCase.ScriptNOfK; + } + } + + /// Field number for the "invalid_before" field. + public const int InvalidBeforeFieldNumber = 5; + /// + /// Slot number before which the script is invalid. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong InvalidBefore { + get { return HasInvalidBefore ? (ulong) nativeScript_ : 0UL; } + set { + nativeScript_ = value; + nativeScriptCase_ = NativeScriptOneofCase.InvalidBefore; + } + } + /// Gets whether the "invalid_before" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInvalidBefore { + get { return nativeScriptCase_ == NativeScriptOneofCase.InvalidBefore; } + } + /// Clears the value of the oneof if it's currently set to "invalid_before" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInvalidBefore() { + if (HasInvalidBefore) { + ClearNativeScript(); + } + } + + /// Field number for the "invalid_hereafter" field. + public const int InvalidHereafterFieldNumber = 6; + /// + /// Slot number after which the script is invalid. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong InvalidHereafter { + get { return HasInvalidHereafter ? (ulong) nativeScript_ : 0UL; } + set { + nativeScript_ = value; + nativeScriptCase_ = NativeScriptOneofCase.InvalidHereafter; + } + } + /// Gets whether the "invalid_hereafter" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInvalidHereafter { + get { return nativeScriptCase_ == NativeScriptOneofCase.InvalidHereafter; } + } + /// Clears the value of the oneof if it's currently set to "invalid_hereafter" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInvalidHereafter() { + if (HasInvalidHereafter) { + ClearNativeScript(); + } + } + + private object nativeScript_; + /// Enum of possible cases for the "native_script" oneof. + public enum NativeScriptOneofCase { + None = 0, + ScriptPubkey = 1, + ScriptAll = 2, + ScriptAny = 3, + ScriptNOfK = 4, + InvalidBefore = 5, + InvalidHereafter = 6, + } + private NativeScriptOneofCase nativeScriptCase_ = NativeScriptOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NativeScriptOneofCase NativeScriptCase { + get { return nativeScriptCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNativeScript() { + nativeScriptCase_ = NativeScriptOneofCase.None; + nativeScript_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NativeScript); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NativeScript other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ScriptPubkey != other.ScriptPubkey) return false; + if (!object.Equals(ScriptAll, other.ScriptAll)) return false; + if (!object.Equals(ScriptAny, other.ScriptAny)) return false; + if (!object.Equals(ScriptNOfK, other.ScriptNOfK)) return false; + if (InvalidBefore != other.InvalidBefore) return false; + if (InvalidHereafter != other.InvalidHereafter) return false; + if (NativeScriptCase != other.NativeScriptCase) 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 (HasScriptPubkey) hash ^= ScriptPubkey.GetHashCode(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAll) hash ^= ScriptAll.GetHashCode(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAny) hash ^= ScriptAny.GetHashCode(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptNOfK) hash ^= ScriptNOfK.GetHashCode(); + if (HasInvalidBefore) hash ^= InvalidBefore.GetHashCode(); + if (HasInvalidHereafter) hash ^= InvalidHereafter.GetHashCode(); + hash ^= (int) nativeScriptCase_; + 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 (HasScriptPubkey) { + output.WriteRawTag(10); + output.WriteBytes(ScriptPubkey); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAll) { + output.WriteRawTag(18); + output.WriteMessage(ScriptAll); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAny) { + output.WriteRawTag(26); + output.WriteMessage(ScriptAny); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptNOfK) { + output.WriteRawTag(34); + output.WriteMessage(ScriptNOfK); + } + if (HasInvalidBefore) { + output.WriteRawTag(40); + output.WriteUInt64(InvalidBefore); + } + if (HasInvalidHereafter) { + output.WriteRawTag(48); + output.WriteUInt64(InvalidHereafter); + } + 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 (HasScriptPubkey) { + output.WriteRawTag(10); + output.WriteBytes(ScriptPubkey); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAll) { + output.WriteRawTag(18); + output.WriteMessage(ScriptAll); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAny) { + output.WriteRawTag(26); + output.WriteMessage(ScriptAny); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptNOfK) { + output.WriteRawTag(34); + output.WriteMessage(ScriptNOfK); + } + if (HasInvalidBefore) { + output.WriteRawTag(40); + output.WriteUInt64(InvalidBefore); + } + if (HasInvalidHereafter) { + output.WriteRawTag(48); + output.WriteUInt64(InvalidHereafter); + } + 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 (HasScriptPubkey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(ScriptPubkey); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAll) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScriptAll); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAny) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScriptAny); + } + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptNOfK) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScriptNOfK); + } + if (HasInvalidBefore) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(InvalidBefore); + } + if (HasInvalidHereafter) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(InvalidHereafter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NativeScript other) { + if (other == null) { + return; + } + switch (other.NativeScriptCase) { + case NativeScriptOneofCase.ScriptPubkey: + ScriptPubkey = other.ScriptPubkey; + break; + case NativeScriptOneofCase.ScriptAll: + if (ScriptAll == null) { + ScriptAll = new global::Utxorpc.Cardano.V1.NativeScriptList(); + } + ScriptAll.MergeFrom(other.ScriptAll); + break; + case NativeScriptOneofCase.ScriptAny: + if (ScriptAny == null) { + ScriptAny = new global::Utxorpc.Cardano.V1.NativeScriptList(); + } + ScriptAny.MergeFrom(other.ScriptAny); + break; + case NativeScriptOneofCase.ScriptNOfK: + if (ScriptNOfK == null) { + ScriptNOfK = new global::Utxorpc.Cardano.V1.ScriptNOfK(); + } + ScriptNOfK.MergeFrom(other.ScriptNOfK); + break; + case NativeScriptOneofCase.InvalidBefore: + InvalidBefore = other.InvalidBefore; + break; + case NativeScriptOneofCase.InvalidHereafter: + InvalidHereafter = other.InvalidHereafter; + break; + } + + _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: { + ScriptPubkey = input.ReadBytes(); + break; + } + case 18: { + global::Utxorpc.Cardano.V1.NativeScriptList subBuilder = new global::Utxorpc.Cardano.V1.NativeScriptList(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAll) { + subBuilder.MergeFrom(ScriptAll); + } + input.ReadMessage(subBuilder); + ScriptAll = subBuilder; + break; + } + case 26: { + global::Utxorpc.Cardano.V1.NativeScriptList subBuilder = new global::Utxorpc.Cardano.V1.NativeScriptList(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAny) { + subBuilder.MergeFrom(ScriptAny); + } + input.ReadMessage(subBuilder); + ScriptAny = subBuilder; + break; + } + case 34: { + global::Utxorpc.Cardano.V1.ScriptNOfK subBuilder = new global::Utxorpc.Cardano.V1.ScriptNOfK(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptNOfK) { + subBuilder.MergeFrom(ScriptNOfK); + } + input.ReadMessage(subBuilder); + ScriptNOfK = subBuilder; + break; + } + case 40: { + InvalidBefore = input.ReadUInt64(); + break; + } + case 48: { + InvalidHereafter = input.ReadUInt64(); + 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: { + ScriptPubkey = input.ReadBytes(); + break; + } + case 18: { + global::Utxorpc.Cardano.V1.NativeScriptList subBuilder = new global::Utxorpc.Cardano.V1.NativeScriptList(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAll) { + subBuilder.MergeFrom(ScriptAll); + } + input.ReadMessage(subBuilder); + ScriptAll = subBuilder; + break; + } + case 26: { + global::Utxorpc.Cardano.V1.NativeScriptList subBuilder = new global::Utxorpc.Cardano.V1.NativeScriptList(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptAny) { + subBuilder.MergeFrom(ScriptAny); + } + input.ReadMessage(subBuilder); + ScriptAny = subBuilder; + break; + } + case 34: { + global::Utxorpc.Cardano.V1.ScriptNOfK subBuilder = new global::Utxorpc.Cardano.V1.ScriptNOfK(); + if (nativeScriptCase_ == NativeScriptOneofCase.ScriptNOfK) { + subBuilder.MergeFrom(ScriptNOfK); + } + input.ReadMessage(subBuilder); + ScriptNOfK = subBuilder; + break; + } + case 40: { + InvalidBefore = input.ReadUInt64(); + break; + } + case 48: { + InvalidHereafter = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a list of native scripts. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NativeScriptList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NativeScriptList()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[16]; } + } + + [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 NativeScriptList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NativeScriptList(NativeScriptList other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NativeScriptList Clone() { + return new NativeScriptList(this); + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.NativeScript.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// + /// List of native scripts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NativeScriptList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NativeScriptList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!items_.Equals(other.items_)) 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 ^= items_.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 + items_.WriteTo(output, _repeated_items_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) { + items_.WriteTo(ref output, _repeated_items_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 += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NativeScriptList other) { + if (other == null) { + return; + } + items_.Add(other.items_); + _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: { + items_.AddEntriesFrom(input, _repeated_items_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: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a "k out of n" native script. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ScriptNOfK : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScriptNOfK()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[17]; } + } + + [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 ScriptNOfK() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptNOfK(ScriptNOfK other) : this() { + k_ = other.k_; + scripts_ = other.scripts_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScriptNOfK Clone() { + return new ScriptNOfK(this); + } + + /// Field number for the "k" field. + public const int KFieldNumber = 1; + private uint k_; + /// + /// The number of required satisfied scripts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint K { + get { return k_; } + set { + k_ = value; + } + } + + /// Field number for the "scripts" field. + public const int ScriptsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_scripts_codec + = pb::FieldCodec.ForMessage(18, global::Utxorpc.Cardano.V1.NativeScript.Parser); + private readonly pbc::RepeatedField scripts_ = new pbc::RepeatedField(); + /// + /// List of native scripts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Scripts { + get { return scripts_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScriptNOfK); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScriptNOfK other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (K != other.K) return false; + if(!scripts_.Equals(other.scripts_)) 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 (K != 0) hash ^= K.GetHashCode(); + hash ^= scripts_.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 (K != 0) { + output.WriteRawTag(8); + output.WriteUInt32(K); + } + scripts_.WriteTo(output, _repeated_scripts_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) { + if (K != 0) { + output.WriteRawTag(8); + output.WriteUInt32(K); + } + scripts_.WriteTo(ref output, _repeated_scripts_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; + if (K != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(K); + } + size += scripts_.CalculateSize(_repeated_scripts_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScriptNOfK other) { + if (other == null) { + return; + } + if (other.K != 0) { + K = other.K; + } + scripts_.Add(other.scripts_); + _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 8: { + K = input.ReadUInt32(); + break; + } + case 18: { + scripts_.AddEntriesFrom(input, _repeated_scripts_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 8: { + K = input.ReadUInt32(); + break; + } + case 18: { + scripts_.AddEntriesFrom(ref input, _repeated_scripts_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a constructor for Plutus data in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Constr : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Constr()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[18]; } + } + + [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 Constr() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Constr(Constr other) : this() { + tag_ = other.tag_; + anyConstructor_ = other.anyConstructor_; + fields_ = other.fields_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Constr Clone() { + return new Constr(this); + } + + /// Field number for the "tag" field. + public const int TagFieldNumber = 1; + private uint tag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Tag { + get { return tag_; } + set { + tag_ = value; + } + } + + /// Field number for the "any_constructor" field. + public const int AnyConstructorFieldNumber = 2; + private ulong anyConstructor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong AnyConstructor { + get { return anyConstructor_; } + set { + anyConstructor_ = value; + } + } + + /// Field number for the "fields" field. + public const int FieldsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_fields_codec + = pb::FieldCodec.ForMessage(26, global::Utxorpc.Cardano.V1.PlutusData.Parser); + private readonly pbc::RepeatedField fields_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fields { + get { return fields_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Constr); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Constr other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Tag != other.Tag) return false; + if (AnyConstructor != other.AnyConstructor) return false; + if(!fields_.Equals(other.fields_)) 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 (Tag != 0) hash ^= Tag.GetHashCode(); + if (AnyConstructor != 0UL) hash ^= AnyConstructor.GetHashCode(); + hash ^= fields_.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 (Tag != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Tag); + } + if (AnyConstructor != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(AnyConstructor); + } + fields_.WriteTo(output, _repeated_fields_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) { + if (Tag != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Tag); + } + if (AnyConstructor != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(AnyConstructor); + } + fields_.WriteTo(ref output, _repeated_fields_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; + if (Tag != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Tag); + } + if (AnyConstructor != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AnyConstructor); + } + size += fields_.CalculateSize(_repeated_fields_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Constr other) { + if (other == null) { + return; + } + if (other.Tag != 0) { + Tag = other.Tag; + } + if (other.AnyConstructor != 0UL) { + AnyConstructor = other.AnyConstructor; + } + fields_.Add(other.fields_); + _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 8: { + Tag = input.ReadUInt32(); + break; + } + case 16: { + AnyConstructor = input.ReadUInt64(); + break; + } + case 26: { + fields_.AddEntriesFrom(input, _repeated_fields_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 8: { + Tag = input.ReadUInt32(); + break; + } + case 16: { + AnyConstructor = input.ReadUInt64(); + break; + } + case 26: { + fields_.AddEntriesFrom(ref input, _repeated_fields_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a big integer for Plutus data in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BigInt : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BigInt()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[19]; } + } + + [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 BigInt() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigInt(BigInt other) : this() { + switch (other.BigIntCase) { + case BigIntOneofCase.Int: + Int = other.Int; + break; + case BigIntOneofCase.BigUInt: + BigUInt = other.BigUInt; + break; + case BigIntOneofCase.BigNInt: + BigNInt = other.BigNInt; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigInt Clone() { + return new BigInt(this); + } + + /// Field number for the "int" field. + public const int IntFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Int { + get { return HasInt ? (long) bigInt_ : 0L; } + set { + bigInt_ = value; + bigIntCase_ = BigIntOneofCase.Int; + } + } + /// Gets whether the "int" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInt { + get { return bigIntCase_ == BigIntOneofCase.Int; } + } + /// Clears the value of the oneof if it's currently set to "int" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInt() { + if (HasInt) { + ClearBigInt(); + } + } + + /// Field number for the "big_u_int" field. + public const int BigUIntFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString BigUInt { + get { return HasBigUInt ? (pb::ByteString) bigInt_ : pb::ByteString.Empty; } + set { + bigInt_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + bigIntCase_ = BigIntOneofCase.BigUInt; + } + } + /// Gets whether the "big_u_int" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBigUInt { + get { return bigIntCase_ == BigIntOneofCase.BigUInt; } + } + /// Clears the value of the oneof if it's currently set to "big_u_int" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBigUInt() { + if (HasBigUInt) { + ClearBigInt(); + } + } + + /// Field number for the "big_n_int" field. + public const int BigNIntFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString BigNInt { + get { return HasBigNInt ? (pb::ByteString) bigInt_ : pb::ByteString.Empty; } + set { + bigInt_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + bigIntCase_ = BigIntOneofCase.BigNInt; + } + } + /// Gets whether the "big_n_int" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBigNInt { + get { return bigIntCase_ == BigIntOneofCase.BigNInt; } + } + /// Clears the value of the oneof if it's currently set to "big_n_int" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBigNInt() { + if (HasBigNInt) { + ClearBigInt(); + } + } + + private object bigInt_; + /// Enum of possible cases for the "big_int" oneof. + public enum BigIntOneofCase { + None = 0, + Int = 1, + BigUInt = 2, + BigNInt = 3, + } + private BigIntOneofCase bigIntCase_ = BigIntOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigIntOneofCase BigIntCase { + get { return bigIntCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBigInt() { + bigIntCase_ = BigIntOneofCase.None; + bigInt_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BigInt); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BigInt other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Int != other.Int) return false; + if (BigUInt != other.BigUInt) return false; + if (BigNInt != other.BigNInt) return false; + if (BigIntCase != other.BigIntCase) 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 (HasInt) hash ^= Int.GetHashCode(); + if (HasBigUInt) hash ^= BigUInt.GetHashCode(); + if (HasBigNInt) hash ^= BigNInt.GetHashCode(); + hash ^= (int) bigIntCase_; + 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 (HasInt) { + output.WriteRawTag(8); + output.WriteInt64(Int); + } + if (HasBigUInt) { + output.WriteRawTag(18); + output.WriteBytes(BigUInt); + } + if (HasBigNInt) { + output.WriteRawTag(26); + output.WriteBytes(BigNInt); + } + 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 (HasInt) { + output.WriteRawTag(8); + output.WriteInt64(Int); + } + if (HasBigUInt) { + output.WriteRawTag(18); + output.WriteBytes(BigUInt); + } + if (HasBigNInt) { + output.WriteRawTag(26); + output.WriteBytes(BigNInt); + } + 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 (HasInt) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Int); + } + if (HasBigUInt) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(BigUInt); + } + if (HasBigNInt) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(BigNInt); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BigInt other) { + if (other == null) { + return; + } + switch (other.BigIntCase) { + case BigIntOneofCase.Int: + Int = other.Int; + break; + case BigIntOneofCase.BigUInt: + BigUInt = other.BigUInt; + break; + case BigIntOneofCase.BigNInt: + BigNInt = other.BigNInt; + break; + } + + _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 8: { + Int = input.ReadInt64(); + break; + } + case 18: { + BigUInt = input.ReadBytes(); + break; + } + case 26: { + BigNInt = input.ReadBytes(); + 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 8: { + Int = input.ReadInt64(); + break; + } + case 18: { + BigUInt = input.ReadBytes(); + break; + } + case 26: { + BigNInt = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a key-value pair for Plutus data in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlutusDataPair : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlutusDataPair()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[20]; } + } + + [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 PlutusDataPair() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusDataPair(PlutusDataPair other) : this() { + key_ = other.key_ != null ? other.key_.Clone() : null; + value_ = other.value_ != null ? other.value_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusDataPair Clone() { + return new PlutusDataPair(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private global::Utxorpc.Cardano.V1.PlutusData key_; + /// + /// Key of the pair. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.PlutusData Key { + get { return key_; } + set { + key_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private global::Utxorpc.Cardano.V1.PlutusData value_; + /// + /// Value of the pair. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.PlutusData Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlutusDataPair); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlutusDataPair other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Key, other.Key)) return false; + if (!object.Equals(Value, other.Value)) 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 (key_ != null) hash ^= Key.GetHashCode(); + if (value_ != null) hash ^= Value.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 (key_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + 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 (key_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + if (value_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Value); + } + 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 (key_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); + } + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlutusDataPair other) { + if (other == null) { + return; + } + if (other.key_ != null) { + if (key_ == null) { + Key = new global::Utxorpc.Cardano.V1.PlutusData(); + } + Key.MergeFrom(other.Key); + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::Utxorpc.Cardano.V1.PlutusData(); + } + Value.MergeFrom(other.Value); + } + _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 (key_ == null) { + Key = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Key); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Value); + 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 (key_ == null) { + Key = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Key); + break; + } + case 18: { + if (value_ == null) { + Value = new global::Utxorpc.Cardano.V1.PlutusData(); + } + input.ReadMessage(Value); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a Plutus data item in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlutusData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlutusData()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[21]; } + } + + [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 PlutusData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusData(PlutusData other) : this() { + switch (other.PlutusDataCase) { + case PlutusDataOneofCase.Constr: + Constr = other.Constr.Clone(); + break; + case PlutusDataOneofCase.Map: + Map = other.Map.Clone(); + break; + case PlutusDataOneofCase.BigInt: + BigInt = other.BigInt.Clone(); + break; + case PlutusDataOneofCase.BoundedBytes: + BoundedBytes = other.BoundedBytes; + break; + case PlutusDataOneofCase.Array: + Array = other.Array.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusData Clone() { + return new PlutusData(this); + } + + /// Field number for the "constr" field. + public const int ConstrFieldNumber = 1; + /// + /// Constructor. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.Constr Constr { + get { return plutusDataCase_ == PlutusDataOneofCase.Constr ? (global::Utxorpc.Cardano.V1.Constr) plutusData_ : null; } + set { + plutusData_ = value; + plutusDataCase_ = value == null ? PlutusDataOneofCase.None : PlutusDataOneofCase.Constr; + } + } + + /// Field number for the "map" field. + public const int MapFieldNumber = 2; + /// + /// Map of Plutus data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.PlutusDataMap Map { + get { return plutusDataCase_ == PlutusDataOneofCase.Map ? (global::Utxorpc.Cardano.V1.PlutusDataMap) plutusData_ : null; } + set { + plutusData_ = value; + plutusDataCase_ = value == null ? PlutusDataOneofCase.None : PlutusDataOneofCase.Map; + } + } + + /// Field number for the "big_int" field. + public const int BigIntFieldNumber = 3; + /// + /// Big integer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.BigInt BigInt { + get { return plutusDataCase_ == PlutusDataOneofCase.BigInt ? (global::Utxorpc.Cardano.V1.BigInt) plutusData_ : null; } + set { + plutusData_ = value; + plutusDataCase_ = value == null ? PlutusDataOneofCase.None : PlutusDataOneofCase.BigInt; + } + } + + /// Field number for the "bounded_bytes" field. + public const int BoundedBytesFieldNumber = 4; + /// + /// Bounded bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString BoundedBytes { + get { return HasBoundedBytes ? (pb::ByteString) plutusData_ : pb::ByteString.Empty; } + set { + plutusData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + plutusDataCase_ = PlutusDataOneofCase.BoundedBytes; + } + } + /// Gets whether the "bounded_bytes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBoundedBytes { + get { return plutusDataCase_ == PlutusDataOneofCase.BoundedBytes; } + } + /// Clears the value of the oneof if it's currently set to "bounded_bytes" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBoundedBytes() { + if (HasBoundedBytes) { + ClearPlutusData(); + } + } + + /// Field number for the "array" field. + public const int ArrayFieldNumber = 5; + /// + /// Array of Plutus data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Utxorpc.Cardano.V1.PlutusDataArray Array { + get { return plutusDataCase_ == PlutusDataOneofCase.Array ? (global::Utxorpc.Cardano.V1.PlutusDataArray) plutusData_ : null; } + set { + plutusData_ = value; + plutusDataCase_ = value == null ? PlutusDataOneofCase.None : PlutusDataOneofCase.Array; + } + } + + private object plutusData_; + /// Enum of possible cases for the "plutus_data" oneof. + public enum PlutusDataOneofCase { + None = 0, + Constr = 1, + Map = 2, + BigInt = 3, + BoundedBytes = 4, + Array = 5, + } + private PlutusDataOneofCase plutusDataCase_ = PlutusDataOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusDataOneofCase PlutusDataCase { + get { return plutusDataCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlutusData() { + plutusDataCase_ = PlutusDataOneofCase.None; + plutusData_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlutusData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlutusData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Constr, other.Constr)) return false; + if (!object.Equals(Map, other.Map)) return false; + if (!object.Equals(BigInt, other.BigInt)) return false; + if (BoundedBytes != other.BoundedBytes) return false; + if (!object.Equals(Array, other.Array)) return false; + if (PlutusDataCase != other.PlutusDataCase) 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 (plutusDataCase_ == PlutusDataOneofCase.Constr) hash ^= Constr.GetHashCode(); + if (plutusDataCase_ == PlutusDataOneofCase.Map) hash ^= Map.GetHashCode(); + if (plutusDataCase_ == PlutusDataOneofCase.BigInt) hash ^= BigInt.GetHashCode(); + if (HasBoundedBytes) hash ^= BoundedBytes.GetHashCode(); + if (plutusDataCase_ == PlutusDataOneofCase.Array) hash ^= Array.GetHashCode(); + hash ^= (int) plutusDataCase_; + 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 (plutusDataCase_ == PlutusDataOneofCase.Constr) { + output.WriteRawTag(10); + output.WriteMessage(Constr); + } + if (plutusDataCase_ == PlutusDataOneofCase.Map) { + output.WriteRawTag(18); + output.WriteMessage(Map); + } + if (plutusDataCase_ == PlutusDataOneofCase.BigInt) { + output.WriteRawTag(26); + output.WriteMessage(BigInt); + } + if (HasBoundedBytes) { + output.WriteRawTag(34); + output.WriteBytes(BoundedBytes); + } + if (plutusDataCase_ == PlutusDataOneofCase.Array) { + output.WriteRawTag(42); + output.WriteMessage(Array); + } + 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 (plutusDataCase_ == PlutusDataOneofCase.Constr) { + output.WriteRawTag(10); + output.WriteMessage(Constr); + } + if (plutusDataCase_ == PlutusDataOneofCase.Map) { + output.WriteRawTag(18); + output.WriteMessage(Map); + } + if (plutusDataCase_ == PlutusDataOneofCase.BigInt) { + output.WriteRawTag(26); + output.WriteMessage(BigInt); + } + if (HasBoundedBytes) { + output.WriteRawTag(34); + output.WriteBytes(BoundedBytes); + } + if (plutusDataCase_ == PlutusDataOneofCase.Array) { + output.WriteRawTag(42); + output.WriteMessage(Array); + } + 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 (plutusDataCase_ == PlutusDataOneofCase.Constr) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Constr); + } + if (plutusDataCase_ == PlutusDataOneofCase.Map) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Map); + } + if (plutusDataCase_ == PlutusDataOneofCase.BigInt) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BigInt); + } + if (HasBoundedBytes) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(BoundedBytes); + } + if (plutusDataCase_ == PlutusDataOneofCase.Array) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Array); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlutusData other) { + if (other == null) { + return; + } + switch (other.PlutusDataCase) { + case PlutusDataOneofCase.Constr: + if (Constr == null) { + Constr = new global::Utxorpc.Cardano.V1.Constr(); + } + Constr.MergeFrom(other.Constr); + break; + case PlutusDataOneofCase.Map: + if (Map == null) { + Map = new global::Utxorpc.Cardano.V1.PlutusDataMap(); + } + Map.MergeFrom(other.Map); + break; + case PlutusDataOneofCase.BigInt: + if (BigInt == null) { + BigInt = new global::Utxorpc.Cardano.V1.BigInt(); + } + BigInt.MergeFrom(other.BigInt); + break; + case PlutusDataOneofCase.BoundedBytes: + BoundedBytes = other.BoundedBytes; + break; + case PlutusDataOneofCase.Array: + if (Array == null) { + Array = new global::Utxorpc.Cardano.V1.PlutusDataArray(); + } + Array.MergeFrom(other.Array); + break; + } + + _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: { + global::Utxorpc.Cardano.V1.Constr subBuilder = new global::Utxorpc.Cardano.V1.Constr(); + if (plutusDataCase_ == PlutusDataOneofCase.Constr) { + subBuilder.MergeFrom(Constr); + } + input.ReadMessage(subBuilder); + Constr = subBuilder; + break; + } + case 18: { + global::Utxorpc.Cardano.V1.PlutusDataMap subBuilder = new global::Utxorpc.Cardano.V1.PlutusDataMap(); + if (plutusDataCase_ == PlutusDataOneofCase.Map) { + subBuilder.MergeFrom(Map); + } + input.ReadMessage(subBuilder); + Map = subBuilder; + break; + } + case 26: { + global::Utxorpc.Cardano.V1.BigInt subBuilder = new global::Utxorpc.Cardano.V1.BigInt(); + if (plutusDataCase_ == PlutusDataOneofCase.BigInt) { + subBuilder.MergeFrom(BigInt); + } + input.ReadMessage(subBuilder); + BigInt = subBuilder; + break; + } + case 34: { + BoundedBytes = input.ReadBytes(); + break; + } + case 42: { + global::Utxorpc.Cardano.V1.PlutusDataArray subBuilder = new global::Utxorpc.Cardano.V1.PlutusDataArray(); + if (plutusDataCase_ == PlutusDataOneofCase.Array) { + subBuilder.MergeFrom(Array); + } + input.ReadMessage(subBuilder); + Array = subBuilder; + 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: { + global::Utxorpc.Cardano.V1.Constr subBuilder = new global::Utxorpc.Cardano.V1.Constr(); + if (plutusDataCase_ == PlutusDataOneofCase.Constr) { + subBuilder.MergeFrom(Constr); + } + input.ReadMessage(subBuilder); + Constr = subBuilder; + break; + } + case 18: { + global::Utxorpc.Cardano.V1.PlutusDataMap subBuilder = new global::Utxorpc.Cardano.V1.PlutusDataMap(); + if (plutusDataCase_ == PlutusDataOneofCase.Map) { + subBuilder.MergeFrom(Map); + } + input.ReadMessage(subBuilder); + Map = subBuilder; + break; + } + case 26: { + global::Utxorpc.Cardano.V1.BigInt subBuilder = new global::Utxorpc.Cardano.V1.BigInt(); + if (plutusDataCase_ == PlutusDataOneofCase.BigInt) { + subBuilder.MergeFrom(BigInt); + } + input.ReadMessage(subBuilder); + BigInt = subBuilder; + break; + } + case 34: { + BoundedBytes = input.ReadBytes(); + break; + } + case 42: { + global::Utxorpc.Cardano.V1.PlutusDataArray subBuilder = new global::Utxorpc.Cardano.V1.PlutusDataArray(); + if (plutusDataCase_ == PlutusDataOneofCase.Array) { + subBuilder.MergeFrom(Array); + } + input.ReadMessage(subBuilder); + Array = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// Represents a map of Plutus data in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlutusDataMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlutusDataMap()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[22]; } + } + + [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 PlutusDataMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusDataMap(PlutusDataMap other) : this() { + pairs_ = other.pairs_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusDataMap Clone() { + return new PlutusDataMap(this); + } + + /// Field number for the "pairs" field. + public const int PairsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_pairs_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.PlutusDataPair.Parser); + private readonly pbc::RepeatedField pairs_ = new pbc::RepeatedField(); + /// + /// List of key-value pairs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Pairs { + get { return pairs_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlutusDataMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlutusDataMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!pairs_.Equals(other.pairs_)) 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 ^= pairs_.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 + pairs_.WriteTo(output, _repeated_pairs_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) { + pairs_.WriteTo(ref output, _repeated_pairs_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 += pairs_.CalculateSize(_repeated_pairs_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlutusDataMap other) { + if (other == null) { + return; + } + pairs_.Add(other.pairs_); + _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: { + pairs_.AddEntriesFrom(input, _repeated_pairs_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: { + pairs_.AddEntriesFrom(ref input, _repeated_pairs_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents an array of Plutus data in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PlutusDataArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlutusDataArray()); + 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::Utxorpc.Cardano.V1.CardanoReflection.Descriptor.MessageTypes[23]; } + } + + [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 PlutusDataArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusDataArray(PlutusDataArray other) : this() { + items_ = other.items_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlutusDataArray Clone() { + return new PlutusDataArray(this); + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(10, global::Utxorpc.Cardano.V1.PlutusData.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// + /// List of Plutus data items. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlutusDataArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlutusDataArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!items_.Equals(other.items_)) 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 ^= items_.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 + items_.WriteTo(output, _repeated_items_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) { + items_.WriteTo(ref output, _repeated_items_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 += items_.CalculateSize(_repeated_items_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlutusDataArray other) { + if (other == null) { + return; + } + items_.Add(other.items_); + _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: { + items_.AddEntriesFrom(input, _repeated_items_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: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a script in Cardano. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Script : pb::IMessage