From a462f68dbd9f2ab815a8ba49907cc6dbe6ca4176 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 26 Apr 2026 16:10:11 -0400 Subject: [PATCH 1/2] Issue #2: define protobuf contracts --- docs/Contracts.md | 46 + .../Generated/MxaccessGateway.cs | 18342 ++++++++++++++++ .../Generated/MxaccessGatewayGrpc.cs | 268 + .../Generated/MxaccessWorker.cs | 4176 ++++ .../MxGateway.Contracts.csproj | 15 + .../Protos/mxaccess_gateway.proto | 521 + .../Protos/mxaccess_worker.proto | 125 + .../ProtobufContractRoundTripTests.cs | 195 + 8 files changed, 23688 insertions(+) create mode 100644 docs/Contracts.md create mode 100644 src/MxGateway.Contracts/Generated/MxaccessGateway.cs create mode 100644 src/MxGateway.Contracts/Generated/MxaccessGatewayGrpc.cs create mode 100644 src/MxGateway.Contracts/Generated/MxaccessWorker.cs create mode 100644 src/MxGateway.Contracts/Protos/mxaccess_gateway.proto create mode 100644 src/MxGateway.Contracts/Protos/mxaccess_worker.proto create mode 100644 src/MxGateway.Tests/Contracts/ProtobufContractRoundTripTests.cs diff --git a/docs/Contracts.md b/docs/Contracts.md new file mode 100644 index 0000000..bc64d85 --- /dev/null +++ b/docs/Contracts.md @@ -0,0 +1,46 @@ +# Protobuf Contracts + +The contracts project contains the public gRPC API and the gateway-to-worker +IPC messages. The `.proto` files are the source of truth; generated C# files are +recreated by the contracts project build. + +## Files + +`src/MxGateway.Contracts/Protos/mxaccess_gateway.proto` defines the public +`MxAccessGateway` gRPC service, command payloads, command replies, event DTOs, +`MxValue`, `MxArray`, and `MxStatusProxy`. + +`src/MxGateway.Contracts/Protos/mxaccess_worker.proto` defines the named-pipe +worker IPC envelope and control messages. It imports +`mxaccess_gateway.proto` so the worker and gateway use the same command, reply, +event, value, and status shapes. + +Generated C# output is written to `src/MxGateway.Contracts/Generated/`. Do not +hand-edit generated files. + +## Generation + +Run the contracts build to regenerate C# protobuf and gRPC code: + +```bash +dotnet build src/MxGateway.Contracts/MxGateway.Contracts.csproj +``` + +Run the focused contract tests after changing either `.proto` file: + +```bash +dotnet test src/MxGateway.Tests/MxGateway.Tests.csproj --filter ProtobufContractRoundTripTests +``` + +The full solution build also regenerates the C# contracts before compiling +gateway and test projects: + +```bash +dotnet build src/MxGateway.sln +``` + +## Related Documentation + +- [Gateway Process Detailed Design](./gateway-process-design.md) +- [MXAccess Worker Instance Detailed Design](./mxaccess-worker-instance-design.md) +- [Protobuf Style Guide](./style-guides/ProtobufStyleGuide.md) diff --git a/src/MxGateway.Contracts/Generated/MxaccessGateway.cs b/src/MxGateway.Contracts/Generated/MxaccessGateway.cs new file mode 100644 index 0000000..7cf72d4 --- /dev/null +++ b/src/MxGateway.Contracts/Generated/MxaccessGateway.cs @@ -0,0 +1,18342 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: mxaccess_gateway.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 MxGateway.Contracts.Proto { + + /// Holder for reflection information generated from mxaccess_gateway.proto + public static partial class MxaccessGatewayReflection { + + #region Descriptor + /// File descriptor for mxaccess_gateway.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MxaccessGatewayReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZteGFjY2Vzc19nYXRld2F5LnByb3RvEhNteGFjY2Vzc19nYXRld2F5LnYx", + "Gh5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8aH2dvb2dsZS9wcm90", + "b2J1Zi90aW1lc3RhbXAucHJvdG8inwEKEk9wZW5TZXNzaW9uUmVxdWVzdBIZ", + "ChFyZXF1ZXN0ZWRfYmFja2VuZBgBIAEoCRIbChNjbGllbnRfc2Vzc2lvbl9u", + "YW1lGAIgASgJEh0KFWNsaWVudF9jb3JyZWxhdGlvbl9pZBgDIAEoCRIyCg9j", + "b21tYW5kX3RpbWVvdXQYBCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRp", + "b24iiAIKEE9wZW5TZXNzaW9uUmVwbHkSEgoKc2Vzc2lvbl9pZBgBIAEoCRIU", + "CgxiYWNrZW5kX25hbWUYAiABKAkSGQoRd29ya2VyX3Byb2Nlc3NfaWQYAyAB", + "KAUSHwoXd29ya2VyX3Byb3RvY29sX3ZlcnNpb24YBCABKA0SFAoMY2FwYWJp", + "bGl0aWVzGAUgAygJEjoKF2RlZmF1bHRfY29tbWFuZF90aW1lb3V0GAYgASgL", + "MhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjwKD3Byb3RvY29sX3N0YXR1", + "cxgHIAEoCzIjLm14YWNjZXNzX2dhdGV3YXkudjEuUHJvdG9jb2xTdGF0dXMi", + "SAoTQ2xvc2VTZXNzaW9uUmVxdWVzdBISCgpzZXNzaW9uX2lkGAEgASgJEh0K", + "FWNsaWVudF9jb3JyZWxhdGlvbl9pZBgCIAEoCSKdAQoRQ2xvc2VTZXNzaW9u", + "UmVwbHkSEgoKc2Vzc2lvbl9pZBgBIAEoCRI2CgtmaW5hbF9zdGF0ZRgCIAEo", + "DjIhLm14YWNjZXNzX2dhdGV3YXkudjEuU2Vzc2lvblN0YXRlEjwKD3Byb3Rv", + "Y29sX3N0YXR1cxgDIAEoCzIjLm14YWNjZXNzX2dhdGV3YXkudjEuUHJvdG9j", + "b2xTdGF0dXMiSAoTU3RyZWFtRXZlbnRzUmVxdWVzdBISCgpzZXNzaW9uX2lk", + "GAEgASgJEh0KFWFmdGVyX3dvcmtlcl9zZXF1ZW5jZRgCIAEoBCJ2ChBNeENv", + "bW1hbmRSZXF1ZXN0EhIKCnNlc3Npb25faWQYASABKAkSHQoVY2xpZW50X2Nv", + "cnJlbGF0aW9uX2lkGAIgASgJEi8KB2NvbW1hbmQYAyABKAsyHi5teGFjY2Vz", + "c19nYXRld2F5LnYxLk14Q29tbWFuZCKiDAoJTXhDb21tYW5kEjAKBGtpbmQY", + "ASABKA4yIi5teGFjY2Vzc19nYXRld2F5LnYxLk14Q29tbWFuZEtpbmQSOAoI", + "cmVnaXN0ZXIYCiABKAsyJC5teGFjY2Vzc19nYXRld2F5LnYxLlJlZ2lzdGVy", + "Q29tbWFuZEgAEjwKCnVucmVnaXN0ZXIYCyABKAsyJi5teGFjY2Vzc19nYXRl", + "d2F5LnYxLlVucmVnaXN0ZXJDb21tYW5kSAASNwoIYWRkX2l0ZW0YDCABKAsy", + "Iy5teGFjY2Vzc19nYXRld2F5LnYxLkFkZEl0ZW1Db21tYW5kSAASOQoJYWRk", + "X2l0ZW0yGA0gASgLMiQubXhhY2Nlc3NfZ2F0ZXdheS52MS5BZGRJdGVtMkNv", + "bW1hbmRIABI9CgtyZW1vdmVfaXRlbRgOIAEoCzImLm14YWNjZXNzX2dhdGV3", + "YXkudjEuUmVtb3ZlSXRlbUNvbW1hbmRIABI0CgZhZHZpc2UYDyABKAsyIi5t", + "eGFjY2Vzc19nYXRld2F5LnYxLkFkdmlzZUNvbW1hbmRIABI5Cgl1bl9hZHZp", + "c2UYECABKAsyJC5teGFjY2Vzc19nYXRld2F5LnYxLlVuQWR2aXNlQ29tbWFu", + "ZEgAEksKEmFkdmlzZV9zdXBlcnZpc29yeRgRIAEoCzItLm14YWNjZXNzX2dh", + "dGV3YXkudjEuQWR2aXNlU3VwZXJ2aXNvcnlDb21tYW5kSAASSAoRYWRkX2J1", + "ZmZlcmVkX2l0ZW0YEiABKAsyKy5teGFjY2Vzc19nYXRld2F5LnYxLkFkZEJ1", + "ZmZlcmVkSXRlbUNvbW1hbmRIABJdChxzZXRfYnVmZmVyZWRfdXBkYXRlX2lu", + "dGVydmFsGBMgASgLMjUubXhhY2Nlc3NfZ2F0ZXdheS52MS5TZXRCdWZmZXJl", + "ZFVwZGF0ZUludGVydmFsQ29tbWFuZEgAEjYKB3N1c3BlbmQYFCABKAsyIy5t", + "eGFjY2Vzc19nYXRld2F5LnYxLlN1c3BlbmRDb21tYW5kSAASOAoIYWN0aXZh", + "dGUYFSABKAsyJC5teGFjY2Vzc19nYXRld2F5LnYxLkFjdGl2YXRlQ29tbWFu", + "ZEgAEjIKBXdyaXRlGBYgASgLMiEubXhhY2Nlc3NfZ2F0ZXdheS52MS5Xcml0", + "ZUNvbW1hbmRIABI0CgZ3cml0ZTIYFyABKAsyIi5teGFjY2Vzc19nYXRld2F5", + "LnYxLldyaXRlMkNvbW1hbmRIABJBCg13cml0ZV9zZWN1cmVkGBggASgLMigu", + "bXhhY2Nlc3NfZ2F0ZXdheS52MS5Xcml0ZVNlY3VyZWRDb21tYW5kSAASQwoO", + "d3JpdGVfc2VjdXJlZDIYGSABKAsyKS5teGFjY2Vzc19nYXRld2F5LnYxLldy", + "aXRlU2VjdXJlZDJDb21tYW5kSAASSQoRYXV0aGVudGljYXRlX3VzZXIYGiAB", + "KAsyLC5teGFjY2Vzc19nYXRld2F5LnYxLkF1dGhlbnRpY2F0ZVVzZXJDb21t", + "YW5kSAASTQoUYXJjaGVzdHJhX3VzZXJfdG9faWQYGyABKAsyLS5teGFjY2Vz", + "c19nYXRld2F5LnYxLkFyY2hlc3RyQVVzZXJUb0lkQ29tbWFuZEgAEjAKBHBp", + "bmcYZCABKAsyIC5teGFjY2Vzc19nYXRld2F5LnYxLlBpbmdDb21tYW5kSAAS", + "SAoRZ2V0X3Nlc3Npb25fc3RhdGUYZSABKAsyKy5teGFjY2Vzc19nYXRld2F5", + "LnYxLkdldFNlc3Npb25TdGF0ZUNvbW1hbmRIABJECg9nZXRfd29ya2VyX2lu", + "Zm8YZiABKAsyKS5teGFjY2Vzc19nYXRld2F5LnYxLkdldFdvcmtlckluZm9D", + "b21tYW5kSAASPwoMZHJhaW5fZXZlbnRzGGcgASgLMicubXhhY2Nlc3NfZ2F0", + "ZXdheS52MS5EcmFpbkV2ZW50c0NvbW1hbmRIABJFCg9zaHV0ZG93bl93b3Jr", + "ZXIYaCABKAsyKi5teGFjY2Vzc19nYXRld2F5LnYxLlNodXRkb3duV29ya2Vy", + "Q29tbWFuZEgAQgkKB3BheWxvYWQiJgoPUmVnaXN0ZXJDb21tYW5kEhMKC2Ns", + "aWVudF9uYW1lGAEgASgJIioKEVVucmVnaXN0ZXJDb21tYW5kEhUKDXNlcnZl", + "cl9oYW5kbGUYASABKAUiQAoOQWRkSXRlbUNvbW1hbmQSFQoNc2VydmVyX2hh", + "bmRsZRgBIAEoBRIXCg9pdGVtX2RlZmluaXRpb24YAiABKAkiVwoPQWRkSXRl", + "bTJDb21tYW5kEhUKDXNlcnZlcl9oYW5kbGUYASABKAUSFwoPaXRlbV9kZWZp", + "bml0aW9uGAIgASgJEhQKDGl0ZW1fY29udGV4dBgDIAEoCSI/ChFSZW1vdmVJ", + "dGVtQ29tbWFuZBIVCg1zZXJ2ZXJfaGFuZGxlGAEgASgFEhMKC2l0ZW1faGFu", + "ZGxlGAIgASgFIjsKDUFkdmlzZUNvbW1hbmQSFQoNc2VydmVyX2hhbmRsZRgB", + "IAEoBRITCgtpdGVtX2hhbmRsZRgCIAEoBSI9Cg9VbkFkdmlzZUNvbW1hbmQS", + "FQoNc2VydmVyX2hhbmRsZRgBIAEoBRITCgtpdGVtX2hhbmRsZRgCIAEoBSJG", + "ChhBZHZpc2VTdXBlcnZpc29yeUNvbW1hbmQSFQoNc2VydmVyX2hhbmRsZRgB", + "IAEoBRITCgtpdGVtX2hhbmRsZRgCIAEoBSJeChZBZGRCdWZmZXJlZEl0ZW1D", + "b21tYW5kEhUKDXNlcnZlcl9oYW5kbGUYASABKAUSFwoPaXRlbV9kZWZpbml0", + "aW9uGAIgASgJEhQKDGl0ZW1fY29udGV4dBgDIAEoCSJfCiBTZXRCdWZmZXJl", + "ZFVwZGF0ZUludGVydmFsQ29tbWFuZBIVCg1zZXJ2ZXJfaGFuZGxlGAEgASgF", + "EiQKHHVwZGF0ZV9pbnRlcnZhbF9taWxsaXNlY29uZHMYAiABKAUiPAoOU3Vz", + "cGVuZENvbW1hbmQSFQoNc2VydmVyX2hhbmRsZRgBIAEoBRITCgtpdGVtX2hh", + "bmRsZRgCIAEoBSI9Cg9BY3RpdmF0ZUNvbW1hbmQSFQoNc2VydmVyX2hhbmRs", + "ZRgBIAEoBRITCgtpdGVtX2hhbmRsZRgCIAEoBSJ4CgxXcml0ZUNvbW1hbmQS", + "FQoNc2VydmVyX2hhbmRsZRgBIAEoBRITCgtpdGVtX2hhbmRsZRgCIAEoBRIr", + "CgV2YWx1ZRgDIAEoCzIcLm14YWNjZXNzX2dhdGV3YXkudjEuTXhWYWx1ZRIP", + "Cgd1c2VyX2lkGAQgASgFIrABCg1Xcml0ZTJDb21tYW5kEhUKDXNlcnZlcl9o", + "YW5kbGUYASABKAUSEwoLaXRlbV9oYW5kbGUYAiABKAUSKwoFdmFsdWUYAyAB", + "KAsyHC5teGFjY2Vzc19nYXRld2F5LnYxLk14VmFsdWUSNQoPdGltZXN0YW1w", + "X3ZhbHVlGAQgASgLMhwubXhhY2Nlc3NfZ2F0ZXdheS52MS5NeFZhbHVlEg8K", + "B3VzZXJfaWQYBSABKAUioQEKE1dyaXRlU2VjdXJlZENvbW1hbmQSFQoNc2Vy", + "dmVyX2hhbmRsZRgBIAEoBRITCgtpdGVtX2hhbmRsZRgCIAEoBRIXCg9jdXJy", + "ZW50X3VzZXJfaWQYAyABKAUSGAoQdmVyaWZpZXJfdXNlcl9pZBgEIAEoBRIr", + "CgV2YWx1ZRgFIAEoCzIcLm14YWNjZXNzX2dhdGV3YXkudjEuTXhWYWx1ZSLZ", + "AQoUV3JpdGVTZWN1cmVkMkNvbW1hbmQSFQoNc2VydmVyX2hhbmRsZRgBIAEo", + "BRITCgtpdGVtX2hhbmRsZRgCIAEoBRIXCg9jdXJyZW50X3VzZXJfaWQYAyAB", + "KAUSGAoQdmVyaWZpZXJfdXNlcl9pZBgEIAEoBRIrCgV2YWx1ZRgFIAEoCzIc", + "Lm14YWNjZXNzX2dhdGV3YXkudjEuTXhWYWx1ZRI1Cg90aW1lc3RhbXBfdmFs", + "dWUYBiABKAsyHC5teGFjY2Vzc19nYXRld2F5LnYxLk14VmFsdWUiYwoXQXV0", + "aGVudGljYXRlVXNlckNvbW1hbmQSFQoNc2VydmVyX2hhbmRsZRgBIAEoBRIT", + "Cgt2ZXJpZnlfdXNlchgCIAEoCRIcChR2ZXJpZnlfdXNlcl9wYXNzd29yZBgD", + "IAEoCSJHChhBcmNoZXN0ckFVc2VyVG9JZENvbW1hbmQSFQoNc2VydmVyX2hh", + "bmRsZRgBIAEoBRIUCgx1c2VyX2lkX2d1aWQYAiABKAkiHgoLUGluZ0NvbW1h", + "bmQSDwoHbWVzc2FnZRgBIAEoCSIYChZHZXRTZXNzaW9uU3RhdGVDb21tYW5k", + "IhYKFEdldFdvcmtlckluZm9Db21tYW5kIigKEkRyYWluRXZlbnRzQ29tbWFu", + "ZBISCgptYXhfZXZlbnRzGAEgASgNIkgKFVNodXRkb3duV29ya2VyQ29tbWFu", + "ZBIvCgxncmFjZV9wZXJpb2QYASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVy", + "YXRpb24ikAgKDk14Q29tbWFuZFJlcGx5EhIKCnNlc3Npb25faWQYASABKAkS", + "FgoOY29ycmVsYXRpb25faWQYAiABKAkSMAoEa2luZBgDIAEoDjIiLm14YWNj", + "ZXNzX2dhdGV3YXkudjEuTXhDb21tYW5kS2luZBI8Cg9wcm90b2NvbF9zdGF0", + "dXMYBCABKAsyIy5teGFjY2Vzc19nYXRld2F5LnYxLlByb3RvY29sU3RhdHVz", + "EhQKB2hyZXN1bHQYBSABKAVIAYgBARIyCgxyZXR1cm5fdmFsdWUYBiABKAsy", + "HC5teGFjY2Vzc19nYXRld2F5LnYxLk14VmFsdWUSNAoIc3RhdHVzZXMYByAD", + "KAsyIi5teGFjY2Vzc19nYXRld2F5LnYxLk14U3RhdHVzUHJveHkSGgoSZGlh", + "Z25vc3RpY19tZXNzYWdlGAggASgJEjYKCHJlZ2lzdGVyGBQgASgLMiIubXhh", + "Y2Nlc3NfZ2F0ZXdheS52MS5SZWdpc3RlclJlcGx5SAASNQoIYWRkX2l0ZW0Y", + "FSABKAsyIS5teGFjY2Vzc19nYXRld2F5LnYxLkFkZEl0ZW1SZXBseUgAEjcK", + "CWFkZF9pdGVtMhgWIAEoCzIiLm14YWNjZXNzX2dhdGV3YXkudjEuQWRkSXRl", + "bTJSZXBseUgAEkYKEWFkZF9idWZmZXJlZF9pdGVtGBcgASgLMikubXhhY2Nl", + "c3NfZ2F0ZXdheS52MS5BZGRCdWZmZXJlZEl0ZW1SZXBseUgAEjQKB3N1c3Bl", + "bmQYGCABKAsyIS5teGFjY2Vzc19nYXRld2F5LnYxLlN1c3BlbmRSZXBseUgA", + "EjYKCGFjdGl2YXRlGBkgASgLMiIubXhhY2Nlc3NfZ2F0ZXdheS52MS5BY3Rp", + "dmF0ZVJlcGx5SAASRwoRYXV0aGVudGljYXRlX3VzZXIYGiABKAsyKi5teGFj", + "Y2Vzc19nYXRld2F5LnYxLkF1dGhlbnRpY2F0ZVVzZXJSZXBseUgAEksKFGFy", + "Y2hlc3RyYV91c2VyX3RvX2lkGBsgASgLMisubXhhY2Nlc3NfZ2F0ZXdheS52", + "MS5BcmNoZXN0ckFVc2VyVG9JZFJlcGx5SAASPwoNc2Vzc2lvbl9zdGF0ZRhk", + "IAEoCzImLm14YWNjZXNzX2dhdGV3YXkudjEuU2Vzc2lvblN0YXRlUmVwbHlI", + "ABI7Cgt3b3JrZXJfaW5mbxhlIAEoCzIkLm14YWNjZXNzX2dhdGV3YXkudjEu", + "V29ya2VySW5mb1JlcGx5SAASPQoMZHJhaW5fZXZlbnRzGGYgASgLMiUubXhh", + "Y2Nlc3NfZ2F0ZXdheS52MS5EcmFpbkV2ZW50c1JlcGx5SABCCQoHcGF5bG9h", + "ZEIKCghfaHJlc3VsdCImCg1SZWdpc3RlclJlcGx5EhUKDXNlcnZlcl9oYW5k", + "bGUYASABKAUiIwoMQWRkSXRlbVJlcGx5EhMKC2l0ZW1faGFuZGxlGAEgASgF", + "IiQKDUFkZEl0ZW0yUmVwbHkSEwoLaXRlbV9oYW5kbGUYASABKAUiKwoUQWRk", + "QnVmZmVyZWRJdGVtUmVwbHkSEwoLaXRlbV9oYW5kbGUYASABKAUiQgoMU3Vz", + "cGVuZFJlcGx5EjIKBnN0YXR1cxgBIAEoCzIiLm14YWNjZXNzX2dhdGV3YXku", + "djEuTXhTdGF0dXNQcm94eSJDCg1BY3RpdmF0ZVJlcGx5EjIKBnN0YXR1cxgB", + "IAEoCzIiLm14YWNjZXNzX2dhdGV3YXkudjEuTXhTdGF0dXNQcm94eSIoChVB", + "dXRoZW50aWNhdGVVc2VyUmVwbHkSDwoHdXNlcl9pZBgBIAEoBSIpChZBcmNo", + "ZXN0ckFVc2VyVG9JZFJlcGx5Eg8KB3VzZXJfaWQYASABKAUiRQoRU2Vzc2lv", + "blN0YXRlUmVwbHkSMAoFc3RhdGUYASABKA4yIS5teGFjY2Vzc19nYXRld2F5", + "LnYxLlNlc3Npb25TdGF0ZSJ1Cg9Xb3JrZXJJbmZvUmVwbHkSGQoRd29ya2Vy", + "X3Byb2Nlc3NfaWQYASABKAUSFgoOd29ya2VyX3ZlcnNpb24YAiABKAkSFwoP", + "bXhhY2Nlc3NfcHJvZ2lkGAMgASgJEhYKDm14YWNjZXNzX2Nsc2lkGAQgASgJ", + "IkAKEERyYWluRXZlbnRzUmVwbHkSLAoGZXZlbnRzGAEgAygLMhwubXhhY2Nl", + "c3NfZ2F0ZXdheS52MS5NeEV2ZW50IpsGCgdNeEV2ZW50EjIKBmZhbWlseRgB", + "IAEoDjIiLm14YWNjZXNzX2dhdGV3YXkudjEuTXhFdmVudEZhbWlseRISCgpz", + "ZXNzaW9uX2lkGAIgASgJEhUKDXNlcnZlcl9oYW5kbGUYAyABKAUSEwoLaXRl", + "bV9oYW5kbGUYBCABKAUSKwoFdmFsdWUYBSABKAsyHC5teGFjY2Vzc19nYXRl", + "d2F5LnYxLk14VmFsdWUSDwoHcXVhbGl0eRgGIAEoBRI0ChBzb3VyY2VfdGlt", + "ZXN0YW1wGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI0Cghz", + "dGF0dXNlcxgIIAMoCzIiLm14YWNjZXNzX2dhdGV3YXkudjEuTXhTdGF0dXNQ", + "cm94eRIXCg93b3JrZXJfc2VxdWVuY2UYCSABKAQSNAoQd29ya2VyX3RpbWVz", + "dGFtcBgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASPQoZZ2F0", + "ZXdheV9yZWNlaXZlX3RpbWVzdGFtcBgLIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXASFAoHaHJlc3VsdBgMIAEoBUgBiAEBEhIKCnJhd19zdGF0", + "dXMYDSABKAkSQAoOb25fZGF0YV9jaGFuZ2UYFCABKAsyJi5teGFjY2Vzc19n", + "YXRld2F5LnYxLk9uRGF0YUNoYW5nZUV2ZW50SAASRgoRb25fd3JpdGVfY29t", + "cGxldGUYFSABKAsyKS5teGFjY2Vzc19nYXRld2F5LnYxLk9uV3JpdGVDb21w", + "bGV0ZUV2ZW50SAASSQoSb3BlcmF0aW9uX2NvbXBsZXRlGBYgASgLMisubXhh", + "Y2Nlc3NfZ2F0ZXdheS52MS5PcGVyYXRpb25Db21wbGV0ZUV2ZW50SAASUQoX", + "b25fYnVmZmVyZWRfZGF0YV9jaGFuZ2UYFyABKAsyLi5teGFjY2Vzc19nYXRl", + "d2F5LnYxLk9uQnVmZmVyZWREYXRhQ2hhbmdlRXZlbnRIAEIGCgRib2R5QgoK", + "CF9ocmVzdWx0IhMKEU9uRGF0YUNoYW5nZUV2ZW50IhYKFE9uV3JpdGVDb21w", + "bGV0ZUV2ZW50IhgKFk9wZXJhdGlvbkNvbXBsZXRlRXZlbnQi1AEKGU9uQnVm", + "ZmVyZWREYXRhQ2hhbmdlRXZlbnQSMgoJZGF0YV90eXBlGAEgASgOMh8ubXhh", + "Y2Nlc3NfZ2F0ZXdheS52MS5NeERhdGFUeXBlEjQKDnF1YWxpdHlfdmFsdWVz", + "GAIgASgLMhwubXhhY2Nlc3NfZ2F0ZXdheS52MS5NeEFycmF5EjYKEHRpbWVz", + "dGFtcF92YWx1ZXMYAyABKAsyHC5teGFjY2Vzc19nYXRld2F5LnYxLk14QXJy", + "YXkSFQoNcmF3X2RhdGFfdHlwZRgEIAEoBSLrAQoNTXhTdGF0dXNQcm94eRIP", + "CgdzdWNjZXNzGAEgASgFEjcKCGNhdGVnb3J5GAIgASgOMiUubXhhY2Nlc3Nf", + "Z2F0ZXdheS52MS5NeFN0YXR1c0NhdGVnb3J5EjgKC2RldGVjdGVkX2J5GAMg", + "ASgOMiMubXhhY2Nlc3NfZ2F0ZXdheS52MS5NeFN0YXR1c1NvdXJjZRIOCgZk", + "ZXRhaWwYBCABKAUSFAoMcmF3X2NhdGVnb3J5GAUgASgFEhcKD3Jhd19kZXRl", + "Y3RlZF9ieRgGIAEoBRIXCg9kaWFnbm9zdGljX3RleHQYByABKAkipwMKB014", + "VmFsdWUSMgoJZGF0YV90eXBlGAEgASgOMh8ubXhhY2Nlc3NfZ2F0ZXdheS52", + "MS5NeERhdGFUeXBlEhQKDHZhcmlhbnRfdHlwZRgCIAEoCRIPCgdpc19udWxs", + "GAMgASgIEhYKDnJhd19kaWFnbm9zdGljGAQgASgJEhUKDXJhd19kYXRhX3R5", + "cGUYBSABKAUSFAoKYm9vbF92YWx1ZRgKIAEoCEgAEhUKC2ludDMyX3ZhbHVl", + "GAsgASgFSAASFQoLaW50NjRfdmFsdWUYDCABKANIABIVCgtmbG9hdF92YWx1", + "ZRgNIAEoAkgAEhYKDGRvdWJsZV92YWx1ZRgOIAEoAUgAEhYKDHN0cmluZ192", + "YWx1ZRgPIAEoCUgAEjUKD3RpbWVzdGFtcF92YWx1ZRgQIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXBIABIzCgthcnJheV92YWx1ZRgRIAEoCzIc", + "Lm14YWNjZXNzX2dhdGV3YXkudjEuTXhBcnJheUgAEhMKCXJhd192YWx1ZRgS", + "IAEoDEgAQgYKBGtpbmQi/gQKB014QXJyYXkSOgoRZWxlbWVudF9kYXRhX3R5", + "cGUYASABKA4yHy5teGFjY2Vzc19nYXRld2F5LnYxLk14RGF0YVR5cGUSFAoM", + "dmFyaWFudF90eXBlGAIgASgJEhIKCmRpbWVuc2lvbnMYAyADKA0SFgoOcmF3", + "X2RpYWdub3N0aWMYBCABKAkSHQoVcmF3X2VsZW1lbnRfZGF0YV90eXBlGAUg", + "ASgFEjUKC2Jvb2xfdmFsdWVzGAogASgLMh4ubXhhY2Nlc3NfZ2F0ZXdheS52", + "MS5Cb29sQXJyYXlIABI3CgxpbnQzMl92YWx1ZXMYCyABKAsyHy5teGFjY2Vz", + "c19nYXRld2F5LnYxLkludDMyQXJyYXlIABI3CgxpbnQ2NF92YWx1ZXMYDCAB", + "KAsyHy5teGFjY2Vzc19nYXRld2F5LnYxLkludDY0QXJyYXlIABI3CgxmbG9h", + "dF92YWx1ZXMYDSABKAsyHy5teGFjY2Vzc19nYXRld2F5LnYxLkZsb2F0QXJy", + "YXlIABI5Cg1kb3VibGVfdmFsdWVzGA4gASgLMiAubXhhY2Nlc3NfZ2F0ZXdh", + "eS52MS5Eb3VibGVBcnJheUgAEjkKDXN0cmluZ192YWx1ZXMYDyABKAsyIC5t", + "eGFjY2Vzc19nYXRld2F5LnYxLlN0cmluZ0FycmF5SAASPwoQdGltZXN0YW1w", + "X3ZhbHVlcxgQIAEoCzIjLm14YWNjZXNzX2dhdGV3YXkudjEuVGltZXN0YW1w", + "QXJyYXlIABIzCgpyYXdfdmFsdWVzGBEgASgLMh0ubXhhY2Nlc3NfZ2F0ZXdh", + "eS52MS5SYXdBcnJheUgAQggKBnZhbHVlcyIbCglCb29sQXJyYXkSDgoGdmFs", + "dWVzGAEgAygIIhwKCkludDMyQXJyYXkSDgoGdmFsdWVzGAEgAygFIhwKCklu", + "dDY0QXJyYXkSDgoGdmFsdWVzGAEgAygDIhwKCkZsb2F0QXJyYXkSDgoGdmFs", + "dWVzGAEgAygCIh0KC0RvdWJsZUFycmF5Eg4KBnZhbHVlcxgBIAMoASIdCgtT", + "dHJpbmdBcnJheRIOCgZ2YWx1ZXMYASADKAkiPAoOVGltZXN0YW1wQXJyYXkS", + "KgoGdmFsdWVzGAEgAygLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCIa", + "CghSYXdBcnJheRIOCgZ2YWx1ZXMYASADKAwiWAoOUHJvdG9jb2xTdGF0dXMS", + "NQoEY29kZRgBIAEoDjInLm14YWNjZXNzX2dhdGV3YXkudjEuUHJvdG9jb2xT", + "dGF0dXNDb2RlEg8KB21lc3NhZ2UYAiABKAkqvwYKDU14Q29tbWFuZEtpbmQS", + "HwobTVhfQ09NTUFORF9LSU5EX1VOU1BFQ0lGSUVEEAASHAoYTVhfQ09NTUFO", + "RF9LSU5EX1JFR0lTVEVSEAESHgoaTVhfQ09NTUFORF9LSU5EX1VOUkVHSVNU", + "RVIQAhIcChhNWF9DT01NQU5EX0tJTkRfQUREX0lURU0QAxIdChlNWF9DT01N", + "QU5EX0tJTkRfQUREX0lURU0yEAQSHwobTVhfQ09NTUFORF9LSU5EX1JFTU9W", + "RV9JVEVNEAUSGgoWTVhfQ09NTUFORF9LSU5EX0FEVklTRRAGEh0KGU1YX0NP", + "TU1BTkRfS0lORF9VTl9BRFZJU0UQBxImCiJNWF9DT01NQU5EX0tJTkRfQURW", + "SVNFX1NVUEVSVklTT1JZEAgSJQohTVhfQ09NTUFORF9LSU5EX0FERF9CVUZG", + "RVJFRF9JVEVNEAkSMAosTVhfQ09NTUFORF9LSU5EX1NFVF9CVUZGRVJFRF9V", + "UERBVEVfSU5URVJWQUwQChIbChdNWF9DT01NQU5EX0tJTkRfU1VTUEVORBAL", + "EhwKGE1YX0NPTU1BTkRfS0lORF9BQ1RJVkFURRAMEhkKFU1YX0NPTU1BTkRf", + "S0lORF9XUklURRANEhoKFk1YX0NPTU1BTkRfS0lORF9XUklURTIQDhIhCh1N", + "WF9DT01NQU5EX0tJTkRfV1JJVEVfU0VDVVJFRBAPEiIKHk1YX0NPTU1BTkRf", + "S0lORF9XUklURV9TRUNVUkVEMhAQEiUKIU1YX0NPTU1BTkRfS0lORF9BVVRI", + "RU5USUNBVEVfVVNFUhAREigKJE1YX0NPTU1BTkRfS0lORF9BUkNIRVNUUkFf", + "VVNFUl9UT19JRBASEhgKFE1YX0NPTU1BTkRfS0lORF9QSU5HEGQSJQohTVhf", + "Q09NTUFORF9LSU5EX0dFVF9TRVNTSU9OX1NUQVRFEGUSIwofTVhfQ09NTUFO", + "RF9LSU5EX0dFVF9XT1JLRVJfSU5GTxBmEiAKHE1YX0NPTU1BTkRfS0lORF9E", + "UkFJTl9FVkVOVFMQZxIjCh9NWF9DT01NQU5EX0tJTkRfU0hVVERPV05fV09S", + "S0VSEGgq0AEKDU14RXZlbnRGYW1pbHkSHwobTVhfRVZFTlRfRkFNSUxZX1VO", + "U1BFQ0lGSUVEEAASIgoeTVhfRVZFTlRfRkFNSUxZX09OX0RBVEFfQ0hBTkdF", + "EAESJQohTVhfRVZFTlRfRkFNSUxZX09OX1dSSVRFX0NPTVBMRVRFEAISJgoi", + "TVhfRVZFTlRfRkFNSUxZX09QRVJBVElPTl9DT01QTEVURRADEisKJ01YX0VW", + "RU5UX0ZBTUlMWV9PTl9CVUZGRVJFRF9EQVRBX0NIQU5HRRAEKqUDChBNeFN0", + "YXR1c0NhdGVnb3J5EiIKHk1YX1NUQVRVU19DQVRFR09SWV9VTlNQRUNJRklF", + "RBAAEh4KGk1YX1NUQVRVU19DQVRFR09SWV9VTktOT1dOEAESGQoVTVhfU1RB", + "VFVTX0NBVEVHT1JZX09LEAISHgoaTVhfU1RBVFVTX0NBVEVHT1JZX1BFTkRJ", + "TkcQAxIeChpNWF9TVEFUVVNfQ0FURUdPUllfV0FSTklORxAEEioKJk1YX1NU", + "QVRVU19DQVRFR09SWV9DT01NVU5JQ0FUSU9OX0VSUk9SEAUSKgomTVhfU1RB", + "VFVTX0NBVEVHT1JZX0NPTkZJR1VSQVRJT05fRVJST1IQBhIoCiRNWF9TVEFU", + "VVNfQ0FURUdPUllfT1BFUkFUSU9OQUxfRVJST1IQBxIlCiFNWF9TVEFUVVNf", + "Q0FURUdPUllfU0VDVVJJVFlfRVJST1IQCBIlCiFNWF9TVEFUVVNfQ0FURUdP", + "UllfU09GVFdBUkVfRVJST1IQCRIiCh5NWF9TVEFUVVNfQ0FURUdPUllfT1RI", + "RVJfRVJST1IQCirKAgoOTXhTdGF0dXNTb3VyY2USIAocTVhfU1RBVFVTX1NP", + "VVJDRV9VTlNQRUNJRklFRBAAEhwKGE1YX1NUQVRVU19TT1VSQ0VfVU5LTk9X", + "ThABEiMKH01YX1NUQVRVU19TT1VSQ0VfUkVRVUVTVElOR19MTVgQAhIjCh9N", + "WF9TVEFUVVNfU09VUkNFX1JFU1BPTkRJTkdfTE1YEAMSIwofTVhfU1RBVFVT", + "X1NPVVJDRV9SRVFVRVNUSU5HX05NWBAEEiMKH01YX1NUQVRVU19TT1VSQ0Vf", + "UkVTUE9ORElOR19OTVgQBRIxCi1NWF9TVEFUVVNfU09VUkNFX1JFUVVFU1RJ", + "TkdfQVVUT01BVElPTl9PQkpFQ1QQBhIxCi1NWF9TVEFUVVNfU09VUkNFX1JF", + "U1BPTkRJTkdfQVVUT01BVElPTl9PQkpFQ1QQByrdBAoKTXhEYXRhVHlwZRIc", + "ChhNWF9EQVRBX1RZUEVfVU5TUEVDSUZJRUQQABIYChRNWF9EQVRBX1RZUEVf", + "VU5LTk9XThABEhgKFE1YX0RBVEFfVFlQRV9OT19EQVRBEAISGAoUTVhfREFU", + "QV9UWVBFX0JPT0xFQU4QAxIYChRNWF9EQVRBX1RZUEVfSU5URUdFUhAEEhYK", + "Ek1YX0RBVEFfVFlQRV9GTE9BVBAFEhcKE01YX0RBVEFfVFlQRV9ET1VCTEUQ", + "BhIXChNNWF9EQVRBX1RZUEVfU1RSSU5HEAcSFQoRTVhfREFUQV9UWVBFX1RJ", + "TUUQCBIdChlNWF9EQVRBX1RZUEVfRUxBUFNFRF9USU1FEAkSHwobTVhfREFU", + "QV9UWVBFX1JFRkVSRU5DRV9UWVBFEAoSHAoYTVhfREFUQV9UWVBFX1NUQVRV", + "U19UWVBFEAsSFQoRTVhfREFUQV9UWVBFX0VOVU0QDBItCilNWF9EQVRBX1RZ", + "UEVfU0VDVVJJVFlfQ0xBU1NJRklDQVRJT05fRU5VTRANEiIKHk1YX0RBVEFf", + "VFlQRV9EQVRBX1FVQUxJVFlfVFlQRRAOEh8KG01YX0RBVEFfVFlQRV9RVUFM", + "SUZJRURfRU5VTRAPEiEKHU1YX0RBVEFfVFlQRV9RVUFMSUZJRURfU1RSVUNU", + "EBASKQolTVhfREFUQV9UWVBFX0lOVEVSTkFUSU9OQUxJWkVEX1NUUklORxAR", + "EhsKF01YX0RBVEFfVFlQRV9CSUdfU1RSSU5HEBISFAoQTVhfREFUQV9UWVBF", + "X0VORBATKqMDChJQcm90b2NvbFN0YXR1c0NvZGUSJAogUFJPVE9DT0xfU1RB", + "VFVTX0NPREVfVU5TUEVDSUZJRUQQABIbChdQUk9UT0NPTF9TVEFUVVNfQ09E", + "RV9PSxABEigKJFBST1RPQ09MX1NUQVRVU19DT0RFX0lOVkFMSURfUkVRVUVT", + "VBACEioKJlBST1RPQ09MX1NUQVRVU19DT0RFX1NFU1NJT05fTk9UX0ZPVU5E", + "EAMSKgomUFJPVE9DT0xfU1RBVFVTX0NPREVfU0VTU0lPTl9OT1RfUkVBRFkQ", + "BBIrCidQUk9UT0NPTF9TVEFUVVNfQ09ERV9XT1JLRVJfVU5BVkFJTEFCTEUQ", + "BRIgChxQUk9UT0NPTF9TVEFUVVNfQ09ERV9USU1FT1VUEAYSIQodUFJPVE9D", + "T0xfU1RBVFVTX0NPREVfQ0FOQ0VMRUQQBxIrCidQUk9UT0NPTF9TVEFUVVNf", + "Q09ERV9QUk9UT0NPTF9WSU9MQVRJT04QCBIpCiVQUk9UT0NPTF9TVEFUVVNf", + "Q09ERV9NWEFDQ0VTU19GQUlMVVJFEAkqvwIKDFNlc3Npb25TdGF0ZRIdChlT", + "RVNTSU9OX1NUQVRFX1VOU1BFQ0lGSUVEEAASGgoWU0VTU0lPTl9TVEFURV9D", + "UkVBVElORxABEiEKHVNFU1NJT05fU1RBVEVfU1RBUlRJTkdfV09SS0VSEAIS", + "IgoeU0VTU0lPTl9TVEFURV9XQUlUSU5HX0ZPUl9QSVBFEAMSHQoZU0VTU0lP", + "Tl9TVEFURV9IQU5EU0hBS0lORxAEEiUKIVNFU1NJT05fU1RBVEVfSU5JVElB", + "TElaSU5HX1dPUktFUhAFEhcKE1NFU1NJT05fU1RBVEVfUkVBRFkQBhIZChVT", + "RVNTSU9OX1NUQVRFX0NMT1NJTkcQBxIYChRTRVNTSU9OX1NUQVRFX0NMT1NF", + "RBAIEhkKFVNFU1NJT05fU1RBVEVfRkFVTFRFRBAJMoIDCg9NeEFjY2Vzc0dh", + "dGV3YXkSXQoLT3BlblNlc3Npb24SJy5teGFjY2Vzc19nYXRld2F5LnYxLk9w", + "ZW5TZXNzaW9uUmVxdWVzdBolLm14YWNjZXNzX2dhdGV3YXkudjEuT3BlblNl", + "c3Npb25SZXBseRJgCgxDbG9zZVNlc3Npb24SKC5teGFjY2Vzc19nYXRld2F5", + "LnYxLkNsb3NlU2Vzc2lvblJlcXVlc3QaJi5teGFjY2Vzc19nYXRld2F5LnYx", + "LkNsb3NlU2Vzc2lvblJlcGx5ElQKBkludm9rZRIlLm14YWNjZXNzX2dhdGV3", + "YXkudjEuTXhDb21tYW5kUmVxdWVzdBojLm14YWNjZXNzX2dhdGV3YXkudjEu", + "TXhDb21tYW5kUmVwbHkSWAoMU3RyZWFtRXZlbnRzEigubXhhY2Nlc3NfZ2F0", + "ZXdheS52MS5TdHJlYW1FdmVudHNSZXF1ZXN0GhwubXhhY2Nlc3NfZ2F0ZXdh", + "eS52MS5NeEV2ZW50MAFCHKoCGU14R2F0ZXdheS5Db250cmFjdHMuUHJvdG9i", + "BnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::MxGateway.Contracts.Proto.MxCommandKind), typeof(global::MxGateway.Contracts.Proto.MxEventFamily), typeof(global::MxGateway.Contracts.Proto.MxStatusCategory), typeof(global::MxGateway.Contracts.Proto.MxStatusSource), typeof(global::MxGateway.Contracts.Proto.MxDataType), typeof(global::MxGateway.Contracts.Proto.ProtocolStatusCode), typeof(global::MxGateway.Contracts.Proto.SessionState), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.OpenSessionRequest), global::MxGateway.Contracts.Proto.OpenSessionRequest.Parser, new[]{ "RequestedBackend", "ClientSessionName", "ClientCorrelationId", "CommandTimeout" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.OpenSessionReply), global::MxGateway.Contracts.Proto.OpenSessionReply.Parser, new[]{ "SessionId", "BackendName", "WorkerProcessId", "WorkerProtocolVersion", "Capabilities", "DefaultCommandTimeout", "ProtocolStatus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.CloseSessionRequest), global::MxGateway.Contracts.Proto.CloseSessionRequest.Parser, new[]{ "SessionId", "ClientCorrelationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.CloseSessionReply), global::MxGateway.Contracts.Proto.CloseSessionReply.Parser, new[]{ "SessionId", "FinalState", "ProtocolStatus" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.StreamEventsRequest), global::MxGateway.Contracts.Proto.StreamEventsRequest.Parser, new[]{ "SessionId", "AfterWorkerSequence" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.MxCommandRequest), global::MxGateway.Contracts.Proto.MxCommandRequest.Parser, new[]{ "SessionId", "ClientCorrelationId", "Command" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.MxCommand), global::MxGateway.Contracts.Proto.MxCommand.Parser, new[]{ "Kind", "Register", "Unregister", "AddItem", "AddItem2", "RemoveItem", "Advise", "UnAdvise", "AdviseSupervisory", "AddBufferedItem", "SetBufferedUpdateInterval", "Suspend", "Activate", "Write", "Write2", "WriteSecured", "WriteSecured2", "AuthenticateUser", "ArchestraUserToId", "Ping", "GetSessionState", "GetWorkerInfo", "DrainEvents", "ShutdownWorker" }, new[]{ "Payload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.RegisterCommand), global::MxGateway.Contracts.Proto.RegisterCommand.Parser, new[]{ "ClientName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.UnregisterCommand), global::MxGateway.Contracts.Proto.UnregisterCommand.Parser, new[]{ "ServerHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AddItemCommand), global::MxGateway.Contracts.Proto.AddItemCommand.Parser, new[]{ "ServerHandle", "ItemDefinition" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AddItem2Command), global::MxGateway.Contracts.Proto.AddItem2Command.Parser, new[]{ "ServerHandle", "ItemDefinition", "ItemContext" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.RemoveItemCommand), global::MxGateway.Contracts.Proto.RemoveItemCommand.Parser, new[]{ "ServerHandle", "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AdviseCommand), global::MxGateway.Contracts.Proto.AdviseCommand.Parser, new[]{ "ServerHandle", "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.UnAdviseCommand), global::MxGateway.Contracts.Proto.UnAdviseCommand.Parser, new[]{ "ServerHandle", "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand), global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand.Parser, new[]{ "ServerHandle", "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AddBufferedItemCommand), global::MxGateway.Contracts.Proto.AddBufferedItemCommand.Parser, new[]{ "ServerHandle", "ItemDefinition", "ItemContext" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand), global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand.Parser, new[]{ "ServerHandle", "UpdateIntervalMilliseconds" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.SuspendCommand), global::MxGateway.Contracts.Proto.SuspendCommand.Parser, new[]{ "ServerHandle", "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.ActivateCommand), global::MxGateway.Contracts.Proto.ActivateCommand.Parser, new[]{ "ServerHandle", "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WriteCommand), global::MxGateway.Contracts.Proto.WriteCommand.Parser, new[]{ "ServerHandle", "ItemHandle", "Value", "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.Write2Command), global::MxGateway.Contracts.Proto.Write2Command.Parser, new[]{ "ServerHandle", "ItemHandle", "Value", "TimestampValue", "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WriteSecuredCommand), global::MxGateway.Contracts.Proto.WriteSecuredCommand.Parser, new[]{ "ServerHandle", "ItemHandle", "CurrentUserId", "VerifierUserId", "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WriteSecured2Command), global::MxGateway.Contracts.Proto.WriteSecured2Command.Parser, new[]{ "ServerHandle", "ItemHandle", "CurrentUserId", "VerifierUserId", "Value", "TimestampValue" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AuthenticateUserCommand), global::MxGateway.Contracts.Proto.AuthenticateUserCommand.Parser, new[]{ "ServerHandle", "VerifyUser", "VerifyUserPassword" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand), global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand.Parser, new[]{ "ServerHandle", "UserIdGuid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.PingCommand), global::MxGateway.Contracts.Proto.PingCommand.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.GetSessionStateCommand), global::MxGateway.Contracts.Proto.GetSessionStateCommand.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.GetWorkerInfoCommand), global::MxGateway.Contracts.Proto.GetWorkerInfoCommand.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.DrainEventsCommand), global::MxGateway.Contracts.Proto.DrainEventsCommand.Parser, new[]{ "MaxEvents" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.ShutdownWorkerCommand), global::MxGateway.Contracts.Proto.ShutdownWorkerCommand.Parser, new[]{ "GracePeriod" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.MxCommandReply), global::MxGateway.Contracts.Proto.MxCommandReply.Parser, new[]{ "SessionId", "CorrelationId", "Kind", "ProtocolStatus", "Hresult", "ReturnValue", "Statuses", "DiagnosticMessage", "Register", "AddItem", "AddItem2", "AddBufferedItem", "Suspend", "Activate", "AuthenticateUser", "ArchestraUserToId", "SessionState", "WorkerInfo", "DrainEvents" }, new[]{ "Payload", "Hresult" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.RegisterReply), global::MxGateway.Contracts.Proto.RegisterReply.Parser, new[]{ "ServerHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AddItemReply), global::MxGateway.Contracts.Proto.AddItemReply.Parser, new[]{ "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AddItem2Reply), global::MxGateway.Contracts.Proto.AddItem2Reply.Parser, new[]{ "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AddBufferedItemReply), global::MxGateway.Contracts.Proto.AddBufferedItemReply.Parser, new[]{ "ItemHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.SuspendReply), global::MxGateway.Contracts.Proto.SuspendReply.Parser, new[]{ "Status" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.ActivateReply), global::MxGateway.Contracts.Proto.ActivateReply.Parser, new[]{ "Status" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.AuthenticateUserReply), global::MxGateway.Contracts.Proto.AuthenticateUserReply.Parser, new[]{ "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply), global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply.Parser, new[]{ "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.SessionStateReply), global::MxGateway.Contracts.Proto.SessionStateReply.Parser, new[]{ "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerInfoReply), global::MxGateway.Contracts.Proto.WorkerInfoReply.Parser, new[]{ "WorkerProcessId", "WorkerVersion", "MxaccessProgid", "MxaccessClsid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.DrainEventsReply), global::MxGateway.Contracts.Proto.DrainEventsReply.Parser, new[]{ "Events" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.MxEvent), global::MxGateway.Contracts.Proto.MxEvent.Parser, new[]{ "Family", "SessionId", "ServerHandle", "ItemHandle", "Value", "Quality", "SourceTimestamp", "Statuses", "WorkerSequence", "WorkerTimestamp", "GatewayReceiveTimestamp", "Hresult", "RawStatus", "OnDataChange", "OnWriteComplete", "OperationComplete", "OnBufferedDataChange" }, new[]{ "Body", "Hresult" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.OnDataChangeEvent), global::MxGateway.Contracts.Proto.OnDataChangeEvent.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.OnWriteCompleteEvent), global::MxGateway.Contracts.Proto.OnWriteCompleteEvent.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.OperationCompleteEvent), global::MxGateway.Contracts.Proto.OperationCompleteEvent.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent), global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent.Parser, new[]{ "DataType", "QualityValues", "TimestampValues", "RawDataType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.MxStatusProxy), global::MxGateway.Contracts.Proto.MxStatusProxy.Parser, new[]{ "Success", "Category", "DetectedBy", "Detail", "RawCategory", "RawDetectedBy", "DiagnosticText" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.MxValue), global::MxGateway.Contracts.Proto.MxValue.Parser, new[]{ "DataType", "VariantType", "IsNull", "RawDiagnostic", "RawDataType", "BoolValue", "Int32Value", "Int64Value", "FloatValue", "DoubleValue", "StringValue", "TimestampValue", "ArrayValue", "RawValue" }, new[]{ "Kind" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.MxArray), global::MxGateway.Contracts.Proto.MxArray.Parser, new[]{ "ElementDataType", "VariantType", "Dimensions", "RawDiagnostic", "RawElementDataType", "BoolValues", "Int32Values", "Int64Values", "FloatValues", "DoubleValues", "StringValues", "TimestampValues", "RawValues" }, new[]{ "Values" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.BoolArray), global::MxGateway.Contracts.Proto.BoolArray.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.Int32Array), global::MxGateway.Contracts.Proto.Int32Array.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.Int64Array), global::MxGateway.Contracts.Proto.Int64Array.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.FloatArray), global::MxGateway.Contracts.Proto.FloatArray.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.DoubleArray), global::MxGateway.Contracts.Proto.DoubleArray.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.StringArray), global::MxGateway.Contracts.Proto.StringArray.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.TimestampArray), global::MxGateway.Contracts.Proto.TimestampArray.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.RawArray), global::MxGateway.Contracts.Proto.RawArray.Parser, new[]{ "Values" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.ProtocolStatus), global::MxGateway.Contracts.Proto.ProtocolStatus.Parser, new[]{ "Code", "Message" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum MxCommandKind { + [pbr::OriginalName("MX_COMMAND_KIND_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("MX_COMMAND_KIND_REGISTER")] Register = 1, + [pbr::OriginalName("MX_COMMAND_KIND_UNREGISTER")] Unregister = 2, + [pbr::OriginalName("MX_COMMAND_KIND_ADD_ITEM")] AddItem = 3, + [pbr::OriginalName("MX_COMMAND_KIND_ADD_ITEM2")] AddItem2 = 4, + [pbr::OriginalName("MX_COMMAND_KIND_REMOVE_ITEM")] RemoveItem = 5, + [pbr::OriginalName("MX_COMMAND_KIND_ADVISE")] Advise = 6, + [pbr::OriginalName("MX_COMMAND_KIND_UN_ADVISE")] UnAdvise = 7, + [pbr::OriginalName("MX_COMMAND_KIND_ADVISE_SUPERVISORY")] AdviseSupervisory = 8, + [pbr::OriginalName("MX_COMMAND_KIND_ADD_BUFFERED_ITEM")] AddBufferedItem = 9, + [pbr::OriginalName("MX_COMMAND_KIND_SET_BUFFERED_UPDATE_INTERVAL")] SetBufferedUpdateInterval = 10, + [pbr::OriginalName("MX_COMMAND_KIND_SUSPEND")] Suspend = 11, + [pbr::OriginalName("MX_COMMAND_KIND_ACTIVATE")] Activate = 12, + [pbr::OriginalName("MX_COMMAND_KIND_WRITE")] Write = 13, + [pbr::OriginalName("MX_COMMAND_KIND_WRITE2")] Write2 = 14, + [pbr::OriginalName("MX_COMMAND_KIND_WRITE_SECURED")] WriteSecured = 15, + [pbr::OriginalName("MX_COMMAND_KIND_WRITE_SECURED2")] WriteSecured2 = 16, + [pbr::OriginalName("MX_COMMAND_KIND_AUTHENTICATE_USER")] AuthenticateUser = 17, + [pbr::OriginalName("MX_COMMAND_KIND_ARCHESTRA_USER_TO_ID")] ArchestraUserToId = 18, + [pbr::OriginalName("MX_COMMAND_KIND_PING")] Ping = 100, + [pbr::OriginalName("MX_COMMAND_KIND_GET_SESSION_STATE")] GetSessionState = 101, + [pbr::OriginalName("MX_COMMAND_KIND_GET_WORKER_INFO")] GetWorkerInfo = 102, + [pbr::OriginalName("MX_COMMAND_KIND_DRAIN_EVENTS")] DrainEvents = 103, + [pbr::OriginalName("MX_COMMAND_KIND_SHUTDOWN_WORKER")] ShutdownWorker = 104, + } + + public enum MxEventFamily { + [pbr::OriginalName("MX_EVENT_FAMILY_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("MX_EVENT_FAMILY_ON_DATA_CHANGE")] OnDataChange = 1, + [pbr::OriginalName("MX_EVENT_FAMILY_ON_WRITE_COMPLETE")] OnWriteComplete = 2, + [pbr::OriginalName("MX_EVENT_FAMILY_OPERATION_COMPLETE")] OperationComplete = 3, + [pbr::OriginalName("MX_EVENT_FAMILY_ON_BUFFERED_DATA_CHANGE")] OnBufferedDataChange = 4, + } + + public enum MxStatusCategory { + [pbr::OriginalName("MX_STATUS_CATEGORY_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("MX_STATUS_CATEGORY_UNKNOWN")] Unknown = 1, + [pbr::OriginalName("MX_STATUS_CATEGORY_OK")] Ok = 2, + [pbr::OriginalName("MX_STATUS_CATEGORY_PENDING")] Pending = 3, + [pbr::OriginalName("MX_STATUS_CATEGORY_WARNING")] Warning = 4, + [pbr::OriginalName("MX_STATUS_CATEGORY_COMMUNICATION_ERROR")] CommunicationError = 5, + [pbr::OriginalName("MX_STATUS_CATEGORY_CONFIGURATION_ERROR")] ConfigurationError = 6, + [pbr::OriginalName("MX_STATUS_CATEGORY_OPERATIONAL_ERROR")] OperationalError = 7, + [pbr::OriginalName("MX_STATUS_CATEGORY_SECURITY_ERROR")] SecurityError = 8, + [pbr::OriginalName("MX_STATUS_CATEGORY_SOFTWARE_ERROR")] SoftwareError = 9, + [pbr::OriginalName("MX_STATUS_CATEGORY_OTHER_ERROR")] OtherError = 10, + } + + public enum MxStatusSource { + [pbr::OriginalName("MX_STATUS_SOURCE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("MX_STATUS_SOURCE_UNKNOWN")] Unknown = 1, + [pbr::OriginalName("MX_STATUS_SOURCE_REQUESTING_LMX")] RequestingLmx = 2, + [pbr::OriginalName("MX_STATUS_SOURCE_RESPONDING_LMX")] RespondingLmx = 3, + [pbr::OriginalName("MX_STATUS_SOURCE_REQUESTING_NMX")] RequestingNmx = 4, + [pbr::OriginalName("MX_STATUS_SOURCE_RESPONDING_NMX")] RespondingNmx = 5, + [pbr::OriginalName("MX_STATUS_SOURCE_REQUESTING_AUTOMATION_OBJECT")] RequestingAutomationObject = 6, + [pbr::OriginalName("MX_STATUS_SOURCE_RESPONDING_AUTOMATION_OBJECT")] RespondingAutomationObject = 7, + } + + public enum MxDataType { + [pbr::OriginalName("MX_DATA_TYPE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("MX_DATA_TYPE_UNKNOWN")] Unknown = 1, + [pbr::OriginalName("MX_DATA_TYPE_NO_DATA")] NoData = 2, + [pbr::OriginalName("MX_DATA_TYPE_BOOLEAN")] Boolean = 3, + [pbr::OriginalName("MX_DATA_TYPE_INTEGER")] Integer = 4, + [pbr::OriginalName("MX_DATA_TYPE_FLOAT")] Float = 5, + [pbr::OriginalName("MX_DATA_TYPE_DOUBLE")] Double = 6, + [pbr::OriginalName("MX_DATA_TYPE_STRING")] String = 7, + [pbr::OriginalName("MX_DATA_TYPE_TIME")] Time = 8, + [pbr::OriginalName("MX_DATA_TYPE_ELAPSED_TIME")] ElapsedTime = 9, + [pbr::OriginalName("MX_DATA_TYPE_REFERENCE_TYPE")] ReferenceType = 10, + [pbr::OriginalName("MX_DATA_TYPE_STATUS_TYPE")] StatusType = 11, + [pbr::OriginalName("MX_DATA_TYPE_ENUM")] Enum = 12, + [pbr::OriginalName("MX_DATA_TYPE_SECURITY_CLASSIFICATION_ENUM")] SecurityClassificationEnum = 13, + [pbr::OriginalName("MX_DATA_TYPE_DATA_QUALITY_TYPE")] DataQualityType = 14, + [pbr::OriginalName("MX_DATA_TYPE_QUALIFIED_ENUM")] QualifiedEnum = 15, + [pbr::OriginalName("MX_DATA_TYPE_QUALIFIED_STRUCT")] QualifiedStruct = 16, + [pbr::OriginalName("MX_DATA_TYPE_INTERNATIONALIZED_STRING")] InternationalizedString = 17, + [pbr::OriginalName("MX_DATA_TYPE_BIG_STRING")] BigString = 18, + [pbr::OriginalName("MX_DATA_TYPE_END")] End = 19, + } + + public enum ProtocolStatusCode { + [pbr::OriginalName("PROTOCOL_STATUS_CODE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_OK")] Ok = 1, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_INVALID_REQUEST")] InvalidRequest = 2, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_SESSION_NOT_FOUND")] SessionNotFound = 3, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_SESSION_NOT_READY")] SessionNotReady = 4, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_WORKER_UNAVAILABLE")] WorkerUnavailable = 5, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_TIMEOUT")] Timeout = 6, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_CANCELED")] Canceled = 7, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_PROTOCOL_VIOLATION")] ProtocolViolation = 8, + [pbr::OriginalName("PROTOCOL_STATUS_CODE_MXACCESS_FAILURE")] MxaccessFailure = 9, + } + + public enum SessionState { + [pbr::OriginalName("SESSION_STATE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("SESSION_STATE_CREATING")] Creating = 1, + [pbr::OriginalName("SESSION_STATE_STARTING_WORKER")] StartingWorker = 2, + [pbr::OriginalName("SESSION_STATE_WAITING_FOR_PIPE")] WaitingForPipe = 3, + [pbr::OriginalName("SESSION_STATE_HANDSHAKING")] Handshaking = 4, + [pbr::OriginalName("SESSION_STATE_INITIALIZING_WORKER")] InitializingWorker = 5, + [pbr::OriginalName("SESSION_STATE_READY")] Ready = 6, + [pbr::OriginalName("SESSION_STATE_CLOSING")] Closing = 7, + [pbr::OriginalName("SESSION_STATE_CLOSED")] Closed = 8, + [pbr::OriginalName("SESSION_STATE_FAULTED")] Faulted = 9, + } + + #endregion + + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OpenSessionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenSessionRequest()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 OpenSessionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenSessionRequest(OpenSessionRequest other) : this() { + requestedBackend_ = other.requestedBackend_; + clientSessionName_ = other.clientSessionName_; + clientCorrelationId_ = other.clientCorrelationId_; + commandTimeout_ = other.commandTimeout_ != null ? other.commandTimeout_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenSessionRequest Clone() { + return new OpenSessionRequest(this); + } + + /// Field number for the "requested_backend" field. + public const int RequestedBackendFieldNumber = 1; + private string requestedBackend_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestedBackend { + get { return requestedBackend_; } + set { + requestedBackend_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "client_session_name" field. + public const int ClientSessionNameFieldNumber = 2; + private string clientSessionName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClientSessionName { + get { return clientSessionName_; } + set { + clientSessionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "client_correlation_id" field. + public const int ClientCorrelationIdFieldNumber = 3; + private string clientCorrelationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClientCorrelationId { + get { return clientCorrelationId_; } + set { + clientCorrelationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "command_timeout" field. + public const int CommandTimeoutFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Duration commandTimeout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration CommandTimeout { + get { return commandTimeout_; } + set { + commandTimeout_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OpenSessionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OpenSessionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RequestedBackend != other.RequestedBackend) return false; + if (ClientSessionName != other.ClientSessionName) return false; + if (ClientCorrelationId != other.ClientCorrelationId) return false; + if (!object.Equals(CommandTimeout, other.CommandTimeout)) 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 (RequestedBackend.Length != 0) hash ^= RequestedBackend.GetHashCode(); + if (ClientSessionName.Length != 0) hash ^= ClientSessionName.GetHashCode(); + if (ClientCorrelationId.Length != 0) hash ^= ClientCorrelationId.GetHashCode(); + if (commandTimeout_ != null) hash ^= CommandTimeout.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 (RequestedBackend.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RequestedBackend); + } + if (ClientSessionName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClientSessionName); + } + if (ClientCorrelationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ClientCorrelationId); + } + if (commandTimeout_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CommandTimeout); + } + 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 (RequestedBackend.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RequestedBackend); + } + if (ClientSessionName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClientSessionName); + } + if (ClientCorrelationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ClientCorrelationId); + } + if (commandTimeout_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CommandTimeout); + } + 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 (RequestedBackend.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestedBackend); + } + if (ClientSessionName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientSessionName); + } + if (ClientCorrelationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientCorrelationId); + } + if (commandTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CommandTimeout); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OpenSessionRequest other) { + if (other == null) { + return; + } + if (other.RequestedBackend.Length != 0) { + RequestedBackend = other.RequestedBackend; + } + if (other.ClientSessionName.Length != 0) { + ClientSessionName = other.ClientSessionName; + } + if (other.ClientCorrelationId.Length != 0) { + ClientCorrelationId = other.ClientCorrelationId; + } + if (other.commandTimeout_ != null) { + if (commandTimeout_ == null) { + CommandTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + CommandTimeout.MergeFrom(other.CommandTimeout); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RequestedBackend = input.ReadString(); + break; + } + case 18: { + ClientSessionName = input.ReadString(); + break; + } + case 26: { + ClientCorrelationId = input.ReadString(); + break; + } + case 34: { + if (commandTimeout_ == null) { + CommandTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(CommandTimeout); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RequestedBackend = input.ReadString(); + break; + } + case 18: { + ClientSessionName = input.ReadString(); + break; + } + case 26: { + ClientCorrelationId = input.ReadString(); + break; + } + case 34: { + if (commandTimeout_ == null) { + CommandTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(CommandTimeout); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OpenSessionReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenSessionReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 OpenSessionReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenSessionReply(OpenSessionReply other) : this() { + sessionId_ = other.sessionId_; + backendName_ = other.backendName_; + workerProcessId_ = other.workerProcessId_; + workerProtocolVersion_ = other.workerProtocolVersion_; + capabilities_ = other.capabilities_.Clone(); + defaultCommandTimeout_ = other.defaultCommandTimeout_ != null ? other.defaultCommandTimeout_.Clone() : null; + protocolStatus_ = other.protocolStatus_ != null ? other.protocolStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OpenSessionReply Clone() { + return new OpenSessionReply(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backend_name" field. + public const int BackendNameFieldNumber = 2; + private string backendName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackendName { + get { return backendName_; } + set { + backendName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "worker_process_id" field. + public const int WorkerProcessIdFieldNumber = 3; + private int workerProcessId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorkerProcessId { + get { return workerProcessId_; } + set { + workerProcessId_ = value; + } + } + + /// Field number for the "worker_protocol_version" field. + public const int WorkerProtocolVersionFieldNumber = 4; + private uint workerProtocolVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WorkerProtocolVersion { + get { return workerProtocolVersion_; } + set { + workerProtocolVersion_ = value; + } + } + + /// Field number for the "capabilities" field. + public const int CapabilitiesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_capabilities_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField capabilities_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Capabilities { + get { return capabilities_; } + } + + /// Field number for the "default_command_timeout" field. + public const int DefaultCommandTimeoutFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Duration defaultCommandTimeout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration DefaultCommandTimeout { + get { return defaultCommandTimeout_; } + set { + defaultCommandTimeout_ = value; + } + } + + /// Field number for the "protocol_status" field. + public const int ProtocolStatusFieldNumber = 7; + private global::MxGateway.Contracts.Proto.ProtocolStatus protocolStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ProtocolStatus ProtocolStatus { + get { return protocolStatus_; } + set { + protocolStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OpenSessionReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OpenSessionReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) return false; + if (BackendName != other.BackendName) return false; + if (WorkerProcessId != other.WorkerProcessId) return false; + if (WorkerProtocolVersion != other.WorkerProtocolVersion) return false; + if(!capabilities_.Equals(other.capabilities_)) return false; + if (!object.Equals(DefaultCommandTimeout, other.DefaultCommandTimeout)) return false; + if (!object.Equals(ProtocolStatus, other.ProtocolStatus)) 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 (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (BackendName.Length != 0) hash ^= BackendName.GetHashCode(); + if (WorkerProcessId != 0) hash ^= WorkerProcessId.GetHashCode(); + if (WorkerProtocolVersion != 0) hash ^= WorkerProtocolVersion.GetHashCode(); + hash ^= capabilities_.GetHashCode(); + if (defaultCommandTimeout_ != null) hash ^= DefaultCommandTimeout.GetHashCode(); + if (protocolStatus_ != null) hash ^= ProtocolStatus.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (BackendName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackendName); + } + if (WorkerProcessId != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorkerProcessId); + } + if (WorkerProtocolVersion != 0) { + output.WriteRawTag(32); + output.WriteUInt32(WorkerProtocolVersion); + } + capabilities_.WriteTo(output, _repeated_capabilities_codec); + if (defaultCommandTimeout_ != null) { + output.WriteRawTag(50); + output.WriteMessage(DefaultCommandTimeout); + } + if (protocolStatus_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ProtocolStatus); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (BackendName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackendName); + } + if (WorkerProcessId != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorkerProcessId); + } + if (WorkerProtocolVersion != 0) { + output.WriteRawTag(32); + output.WriteUInt32(WorkerProtocolVersion); + } + capabilities_.WriteTo(ref output, _repeated_capabilities_codec); + if (defaultCommandTimeout_ != null) { + output.WriteRawTag(50); + output.WriteMessage(DefaultCommandTimeout); + } + if (protocolStatus_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ProtocolStatus); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (BackendName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackendName); + } + if (WorkerProcessId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorkerProcessId); + } + if (WorkerProtocolVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorkerProtocolVersion); + } + size += capabilities_.CalculateSize(_repeated_capabilities_codec); + if (defaultCommandTimeout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DefaultCommandTimeout); + } + if (protocolStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtocolStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OpenSessionReply other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.BackendName.Length != 0) { + BackendName = other.BackendName; + } + if (other.WorkerProcessId != 0) { + WorkerProcessId = other.WorkerProcessId; + } + if (other.WorkerProtocolVersion != 0) { + WorkerProtocolVersion = other.WorkerProtocolVersion; + } + capabilities_.Add(other.capabilities_); + if (other.defaultCommandTimeout_ != null) { + if (defaultCommandTimeout_ == null) { + DefaultCommandTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + DefaultCommandTimeout.MergeFrom(other.DefaultCommandTimeout); + } + if (other.protocolStatus_ != null) { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + ProtocolStatus.MergeFrom(other.ProtocolStatus); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + BackendName = input.ReadString(); + break; + } + case 24: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 32: { + WorkerProtocolVersion = input.ReadUInt32(); + break; + } + case 42: { + capabilities_.AddEntriesFrom(input, _repeated_capabilities_codec); + break; + } + case 50: { + if (defaultCommandTimeout_ == null) { + DefaultCommandTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(DefaultCommandTimeout); + break; + } + case 58: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + BackendName = input.ReadString(); + break; + } + case 24: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 32: { + WorkerProtocolVersion = input.ReadUInt32(); + break; + } + case 42: { + capabilities_.AddEntriesFrom(ref input, _repeated_capabilities_codec); + break; + } + case 50: { + if (defaultCommandTimeout_ == null) { + DefaultCommandTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(DefaultCommandTimeout); + break; + } + case 58: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CloseSessionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloseSessionRequest()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 CloseSessionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloseSessionRequest(CloseSessionRequest other) : this() { + sessionId_ = other.sessionId_; + clientCorrelationId_ = other.clientCorrelationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloseSessionRequest Clone() { + return new CloseSessionRequest(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "client_correlation_id" field. + public const int ClientCorrelationIdFieldNumber = 2; + private string clientCorrelationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClientCorrelationId { + get { return clientCorrelationId_; } + set { + clientCorrelationId_ = 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 CloseSessionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloseSessionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) return false; + if (ClientCorrelationId != other.ClientCorrelationId) 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 (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (ClientCorrelationId.Length != 0) hash ^= ClientCorrelationId.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (ClientCorrelationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClientCorrelationId); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (ClientCorrelationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClientCorrelationId); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (ClientCorrelationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientCorrelationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloseSessionRequest other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.ClientCorrelationId.Length != 0) { + ClientCorrelationId = other.ClientCorrelationId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + ClientCorrelationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + ClientCorrelationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CloseSessionReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CloseSessionReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 CloseSessionReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloseSessionReply(CloseSessionReply other) : this() { + sessionId_ = other.sessionId_; + finalState_ = other.finalState_; + protocolStatus_ = other.protocolStatus_ != null ? other.protocolStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CloseSessionReply Clone() { + return new CloseSessionReply(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "final_state" field. + public const int FinalStateFieldNumber = 2; + private global::MxGateway.Contracts.Proto.SessionState finalState_ = global::MxGateway.Contracts.Proto.SessionState.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.SessionState FinalState { + get { return finalState_; } + set { + finalState_ = value; + } + } + + /// Field number for the "protocol_status" field. + public const int ProtocolStatusFieldNumber = 3; + private global::MxGateway.Contracts.Proto.ProtocolStatus protocolStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ProtocolStatus ProtocolStatus { + get { return protocolStatus_; } + set { + protocolStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CloseSessionReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CloseSessionReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) return false; + if (FinalState != other.FinalState) return false; + if (!object.Equals(ProtocolStatus, other.ProtocolStatus)) 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 (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (FinalState != global::MxGateway.Contracts.Proto.SessionState.Unspecified) hash ^= FinalState.GetHashCode(); + if (protocolStatus_ != null) hash ^= ProtocolStatus.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (FinalState != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) FinalState); + } + if (protocolStatus_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ProtocolStatus); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (FinalState != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) FinalState); + } + if (protocolStatus_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ProtocolStatus); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (FinalState != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinalState); + } + if (protocolStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtocolStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CloseSessionReply other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.FinalState != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + FinalState = other.FinalState; + } + if (other.protocolStatus_ != null) { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + ProtocolStatus.MergeFrom(other.ProtocolStatus); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 16: { + FinalState = (global::MxGateway.Contracts.Proto.SessionState) input.ReadEnum(); + break; + } + case 26: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 16: { + FinalState = (global::MxGateway.Contracts.Proto.SessionState) input.ReadEnum(); + break; + } + case 26: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StreamEventsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamEventsRequest()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 StreamEventsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamEventsRequest(StreamEventsRequest other) : this() { + sessionId_ = other.sessionId_; + afterWorkerSequence_ = other.afterWorkerSequence_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StreamEventsRequest Clone() { + return new StreamEventsRequest(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "after_worker_sequence" field. + public const int AfterWorkerSequenceFieldNumber = 2; + private ulong afterWorkerSequence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong AfterWorkerSequence { + get { return afterWorkerSequence_; } + set { + afterWorkerSequence_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StreamEventsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StreamEventsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) return false; + if (AfterWorkerSequence != other.AfterWorkerSequence) 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 (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (AfterWorkerSequence != 0UL) hash ^= AfterWorkerSequence.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (AfterWorkerSequence != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(AfterWorkerSequence); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (AfterWorkerSequence != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(AfterWorkerSequence); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (AfterWorkerSequence != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AfterWorkerSequence); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StreamEventsRequest other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.AfterWorkerSequence != 0UL) { + AfterWorkerSequence = other.AfterWorkerSequence; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 16: { + AfterWorkerSequence = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 16: { + AfterWorkerSequence = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MxCommandRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MxCommandRequest()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 MxCommandRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxCommandRequest(MxCommandRequest other) : this() { + sessionId_ = other.sessionId_; + clientCorrelationId_ = other.clientCorrelationId_; + command_ = other.command_ != null ? other.command_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxCommandRequest Clone() { + return new MxCommandRequest(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "client_correlation_id" field. + public const int ClientCorrelationIdFieldNumber = 2; + private string clientCorrelationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClientCorrelationId { + get { return clientCorrelationId_; } + set { + clientCorrelationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "command" field. + public const int CommandFieldNumber = 3; + private global::MxGateway.Contracts.Proto.MxCommand command_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxCommand Command { + get { return command_; } + set { + command_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MxCommandRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MxCommandRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) return false; + if (ClientCorrelationId != other.ClientCorrelationId) return false; + if (!object.Equals(Command, other.Command)) 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 (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (ClientCorrelationId.Length != 0) hash ^= ClientCorrelationId.GetHashCode(); + if (command_ != null) hash ^= Command.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (ClientCorrelationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClientCorrelationId); + } + if (command_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Command); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (ClientCorrelationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClientCorrelationId); + } + if (command_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Command); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (ClientCorrelationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientCorrelationId); + } + if (command_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Command); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MxCommandRequest other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.ClientCorrelationId.Length != 0) { + ClientCorrelationId = other.ClientCorrelationId; + } + if (other.command_ != null) { + if (command_ == null) { + Command = new global::MxGateway.Contracts.Proto.MxCommand(); + } + Command.MergeFrom(other.Command); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + ClientCorrelationId = input.ReadString(); + break; + } + case 26: { + if (command_ == null) { + Command = new global::MxGateway.Contracts.Proto.MxCommand(); + } + input.ReadMessage(Command); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + ClientCorrelationId = input.ReadString(); + break; + } + case 26: { + if (command_ == null) { + Command = new global::MxGateway.Contracts.Proto.MxCommand(); + } + input.ReadMessage(Command); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MxCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MxCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 MxCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxCommand(MxCommand other) : this() { + kind_ = other.kind_; + switch (other.PayloadCase) { + case PayloadOneofCase.Register: + Register = other.Register.Clone(); + break; + case PayloadOneofCase.Unregister: + Unregister = other.Unregister.Clone(); + break; + case PayloadOneofCase.AddItem: + AddItem = other.AddItem.Clone(); + break; + case PayloadOneofCase.AddItem2: + AddItem2 = other.AddItem2.Clone(); + break; + case PayloadOneofCase.RemoveItem: + RemoveItem = other.RemoveItem.Clone(); + break; + case PayloadOneofCase.Advise: + Advise = other.Advise.Clone(); + break; + case PayloadOneofCase.UnAdvise: + UnAdvise = other.UnAdvise.Clone(); + break; + case PayloadOneofCase.AdviseSupervisory: + AdviseSupervisory = other.AdviseSupervisory.Clone(); + break; + case PayloadOneofCase.AddBufferedItem: + AddBufferedItem = other.AddBufferedItem.Clone(); + break; + case PayloadOneofCase.SetBufferedUpdateInterval: + SetBufferedUpdateInterval = other.SetBufferedUpdateInterval.Clone(); + break; + case PayloadOneofCase.Suspend: + Suspend = other.Suspend.Clone(); + break; + case PayloadOneofCase.Activate: + Activate = other.Activate.Clone(); + break; + case PayloadOneofCase.Write: + Write = other.Write.Clone(); + break; + case PayloadOneofCase.Write2: + Write2 = other.Write2.Clone(); + break; + case PayloadOneofCase.WriteSecured: + WriteSecured = other.WriteSecured.Clone(); + break; + case PayloadOneofCase.WriteSecured2: + WriteSecured2 = other.WriteSecured2.Clone(); + break; + case PayloadOneofCase.AuthenticateUser: + AuthenticateUser = other.AuthenticateUser.Clone(); + break; + case PayloadOneofCase.ArchestraUserToId: + ArchestraUserToId = other.ArchestraUserToId.Clone(); + break; + case PayloadOneofCase.Ping: + Ping = other.Ping.Clone(); + break; + case PayloadOneofCase.GetSessionState: + GetSessionState = other.GetSessionState.Clone(); + break; + case PayloadOneofCase.GetWorkerInfo: + GetWorkerInfo = other.GetWorkerInfo.Clone(); + break; + case PayloadOneofCase.DrainEvents: + DrainEvents = other.DrainEvents.Clone(); + break; + case PayloadOneofCase.ShutdownWorker: + ShutdownWorker = other.ShutdownWorker.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxCommand Clone() { + return new MxCommand(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxCommandKind kind_ = global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxCommandKind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + /// Field number for the "register" field. + public const int RegisterFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.RegisterCommand Register { + get { return payloadCase_ == PayloadOneofCase.Register ? (global::MxGateway.Contracts.Proto.RegisterCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Register; + } + } + + /// Field number for the "unregister" field. + public const int UnregisterFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.UnregisterCommand Unregister { + get { return payloadCase_ == PayloadOneofCase.Unregister ? (global::MxGateway.Contracts.Proto.UnregisterCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Unregister; + } + } + + /// Field number for the "add_item" field. + public const int AddItemFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AddItemCommand AddItem { + get { return payloadCase_ == PayloadOneofCase.AddItem ? (global::MxGateway.Contracts.Proto.AddItemCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AddItem; + } + } + + /// Field number for the "add_item2" field. + public const int AddItem2FieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AddItem2Command AddItem2 { + get { return payloadCase_ == PayloadOneofCase.AddItem2 ? (global::MxGateway.Contracts.Proto.AddItem2Command) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AddItem2; + } + } + + /// Field number for the "remove_item" field. + public const int RemoveItemFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.RemoveItemCommand RemoveItem { + get { return payloadCase_ == PayloadOneofCase.RemoveItem ? (global::MxGateway.Contracts.Proto.RemoveItemCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.RemoveItem; + } + } + + /// Field number for the "advise" field. + public const int AdviseFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AdviseCommand Advise { + get { return payloadCase_ == PayloadOneofCase.Advise ? (global::MxGateway.Contracts.Proto.AdviseCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Advise; + } + } + + /// Field number for the "un_advise" field. + public const int UnAdviseFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.UnAdviseCommand UnAdvise { + get { return payloadCase_ == PayloadOneofCase.UnAdvise ? (global::MxGateway.Contracts.Proto.UnAdviseCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.UnAdvise; + } + } + + /// Field number for the "advise_supervisory" field. + public const int AdviseSupervisoryFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand AdviseSupervisory { + get { return payloadCase_ == PayloadOneofCase.AdviseSupervisory ? (global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AdviseSupervisory; + } + } + + /// Field number for the "add_buffered_item" field. + public const int AddBufferedItemFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AddBufferedItemCommand AddBufferedItem { + get { return payloadCase_ == PayloadOneofCase.AddBufferedItem ? (global::MxGateway.Contracts.Proto.AddBufferedItemCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AddBufferedItem; + } + } + + /// Field number for the "set_buffered_update_interval" field. + public const int SetBufferedUpdateIntervalFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand SetBufferedUpdateInterval { + get { return payloadCase_ == PayloadOneofCase.SetBufferedUpdateInterval ? (global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.SetBufferedUpdateInterval; + } + } + + /// Field number for the "suspend" field. + public const int SuspendFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.SuspendCommand Suspend { + get { return payloadCase_ == PayloadOneofCase.Suspend ? (global::MxGateway.Contracts.Proto.SuspendCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Suspend; + } + } + + /// Field number for the "activate" field. + public const int ActivateFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ActivateCommand Activate { + get { return payloadCase_ == PayloadOneofCase.Activate ? (global::MxGateway.Contracts.Proto.ActivateCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Activate; + } + } + + /// Field number for the "write" field. + public const int WriteFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WriteCommand Write { + get { return payloadCase_ == PayloadOneofCase.Write ? (global::MxGateway.Contracts.Proto.WriteCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Write; + } + } + + /// Field number for the "write2" field. + public const int Write2FieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.Write2Command Write2 { + get { return payloadCase_ == PayloadOneofCase.Write2 ? (global::MxGateway.Contracts.Proto.Write2Command) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Write2; + } + } + + /// Field number for the "write_secured" field. + public const int WriteSecuredFieldNumber = 24; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WriteSecuredCommand WriteSecured { + get { return payloadCase_ == PayloadOneofCase.WriteSecured ? (global::MxGateway.Contracts.Proto.WriteSecuredCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.WriteSecured; + } + } + + /// Field number for the "write_secured2" field. + public const int WriteSecured2FieldNumber = 25; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WriteSecured2Command WriteSecured2 { + get { return payloadCase_ == PayloadOneofCase.WriteSecured2 ? (global::MxGateway.Contracts.Proto.WriteSecured2Command) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.WriteSecured2; + } + } + + /// Field number for the "authenticate_user" field. + public const int AuthenticateUserFieldNumber = 26; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AuthenticateUserCommand AuthenticateUser { + get { return payloadCase_ == PayloadOneofCase.AuthenticateUser ? (global::MxGateway.Contracts.Proto.AuthenticateUserCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AuthenticateUser; + } + } + + /// Field number for the "archestra_user_to_id" field. + public const int ArchestraUserToIdFieldNumber = 27; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand ArchestraUserToId { + get { return payloadCase_ == PayloadOneofCase.ArchestraUserToId ? (global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.ArchestraUserToId; + } + } + + /// Field number for the "ping" field. + public const int PingFieldNumber = 100; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.PingCommand Ping { + get { return payloadCase_ == PayloadOneofCase.Ping ? (global::MxGateway.Contracts.Proto.PingCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Ping; + } + } + + /// Field number for the "get_session_state" field. + public const int GetSessionStateFieldNumber = 101; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.GetSessionStateCommand GetSessionState { + get { return payloadCase_ == PayloadOneofCase.GetSessionState ? (global::MxGateway.Contracts.Proto.GetSessionStateCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.GetSessionState; + } + } + + /// Field number for the "get_worker_info" field. + public const int GetWorkerInfoFieldNumber = 102; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.GetWorkerInfoCommand GetWorkerInfo { + get { return payloadCase_ == PayloadOneofCase.GetWorkerInfo ? (global::MxGateway.Contracts.Proto.GetWorkerInfoCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.GetWorkerInfo; + } + } + + /// Field number for the "drain_events" field. + public const int DrainEventsFieldNumber = 103; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.DrainEventsCommand DrainEvents { + get { return payloadCase_ == PayloadOneofCase.DrainEvents ? (global::MxGateway.Contracts.Proto.DrainEventsCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.DrainEvents; + } + } + + /// Field number for the "shutdown_worker" field. + public const int ShutdownWorkerFieldNumber = 104; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ShutdownWorkerCommand ShutdownWorker { + get { return payloadCase_ == PayloadOneofCase.ShutdownWorker ? (global::MxGateway.Contracts.Proto.ShutdownWorkerCommand) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.ShutdownWorker; + } + } + + private object payload_; + /// Enum of possible cases for the "payload" oneof. + public enum PayloadOneofCase { + None = 0, + Register = 10, + Unregister = 11, + AddItem = 12, + AddItem2 = 13, + RemoveItem = 14, + Advise = 15, + UnAdvise = 16, + AdviseSupervisory = 17, + AddBufferedItem = 18, + SetBufferedUpdateInterval = 19, + Suspend = 20, + Activate = 21, + Write = 22, + Write2 = 23, + WriteSecured = 24, + WriteSecured2 = 25, + AuthenticateUser = 26, + ArchestraUserToId = 27, + Ping = 100, + GetSessionState = 101, + GetWorkerInfo = 102, + DrainEvents = 103, + ShutdownWorker = 104, + } + private PayloadOneofCase payloadCase_ = PayloadOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PayloadOneofCase PayloadCase { + get { return payloadCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayload() { + payloadCase_ = PayloadOneofCase.None; + payload_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MxCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MxCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + if (!object.Equals(Register, other.Register)) return false; + if (!object.Equals(Unregister, other.Unregister)) return false; + if (!object.Equals(AddItem, other.AddItem)) return false; + if (!object.Equals(AddItem2, other.AddItem2)) return false; + if (!object.Equals(RemoveItem, other.RemoveItem)) return false; + if (!object.Equals(Advise, other.Advise)) return false; + if (!object.Equals(UnAdvise, other.UnAdvise)) return false; + if (!object.Equals(AdviseSupervisory, other.AdviseSupervisory)) return false; + if (!object.Equals(AddBufferedItem, other.AddBufferedItem)) return false; + if (!object.Equals(SetBufferedUpdateInterval, other.SetBufferedUpdateInterval)) return false; + if (!object.Equals(Suspend, other.Suspend)) return false; + if (!object.Equals(Activate, other.Activate)) return false; + if (!object.Equals(Write, other.Write)) return false; + if (!object.Equals(Write2, other.Write2)) return false; + if (!object.Equals(WriteSecured, other.WriteSecured)) return false; + if (!object.Equals(WriteSecured2, other.WriteSecured2)) return false; + if (!object.Equals(AuthenticateUser, other.AuthenticateUser)) return false; + if (!object.Equals(ArchestraUserToId, other.ArchestraUserToId)) return false; + if (!object.Equals(Ping, other.Ping)) return false; + if (!object.Equals(GetSessionState, other.GetSessionState)) return false; + if (!object.Equals(GetWorkerInfo, other.GetWorkerInfo)) return false; + if (!object.Equals(DrainEvents, other.DrainEvents)) return false; + if (!object.Equals(ShutdownWorker, other.ShutdownWorker)) return false; + if (PayloadCase != other.PayloadCase) 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 (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) hash ^= Kind.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Register) hash ^= Register.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Unregister) hash ^= Unregister.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AddItem) hash ^= AddItem.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AddItem2) hash ^= AddItem2.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.RemoveItem) hash ^= RemoveItem.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Advise) hash ^= Advise.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.UnAdvise) hash ^= UnAdvise.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AdviseSupervisory) hash ^= AdviseSupervisory.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) hash ^= AddBufferedItem.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.SetBufferedUpdateInterval) hash ^= SetBufferedUpdateInterval.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Suspend) hash ^= Suspend.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Activate) hash ^= Activate.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Write) hash ^= Write.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Write2) hash ^= Write2.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.WriteSecured) hash ^= WriteSecured.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.WriteSecured2) hash ^= WriteSecured2.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) hash ^= AuthenticateUser.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) hash ^= ArchestraUserToId.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Ping) hash ^= Ping.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.GetSessionState) hash ^= GetSessionState.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.GetWorkerInfo) hash ^= GetWorkerInfo.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.DrainEvents) hash ^= DrainEvents.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.ShutdownWorker) hash ^= ShutdownWorker.GetHashCode(); + hash ^= (int) payloadCase_; + 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 (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (payloadCase_ == PayloadOneofCase.Register) { + output.WriteRawTag(82); + output.WriteMessage(Register); + } + if (payloadCase_ == PayloadOneofCase.Unregister) { + output.WriteRawTag(90); + output.WriteMessage(Unregister); + } + if (payloadCase_ == PayloadOneofCase.AddItem) { + output.WriteRawTag(98); + output.WriteMessage(AddItem); + } + if (payloadCase_ == PayloadOneofCase.AddItem2) { + output.WriteRawTag(106); + output.WriteMessage(AddItem2); + } + if (payloadCase_ == PayloadOneofCase.RemoveItem) { + output.WriteRawTag(114); + output.WriteMessage(RemoveItem); + } + if (payloadCase_ == PayloadOneofCase.Advise) { + output.WriteRawTag(122); + output.WriteMessage(Advise); + } + if (payloadCase_ == PayloadOneofCase.UnAdvise) { + output.WriteRawTag(130, 1); + output.WriteMessage(UnAdvise); + } + if (payloadCase_ == PayloadOneofCase.AdviseSupervisory) { + output.WriteRawTag(138, 1); + output.WriteMessage(AdviseSupervisory); + } + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + output.WriteRawTag(146, 1); + output.WriteMessage(AddBufferedItem); + } + if (payloadCase_ == PayloadOneofCase.SetBufferedUpdateInterval) { + output.WriteRawTag(154, 1); + output.WriteMessage(SetBufferedUpdateInterval); + } + if (payloadCase_ == PayloadOneofCase.Suspend) { + output.WriteRawTag(162, 1); + output.WriteMessage(Suspend); + } + if (payloadCase_ == PayloadOneofCase.Activate) { + output.WriteRawTag(170, 1); + output.WriteMessage(Activate); + } + if (payloadCase_ == PayloadOneofCase.Write) { + output.WriteRawTag(178, 1); + output.WriteMessage(Write); + } + if (payloadCase_ == PayloadOneofCase.Write2) { + output.WriteRawTag(186, 1); + output.WriteMessage(Write2); + } + if (payloadCase_ == PayloadOneofCase.WriteSecured) { + output.WriteRawTag(194, 1); + output.WriteMessage(WriteSecured); + } + if (payloadCase_ == PayloadOneofCase.WriteSecured2) { + output.WriteRawTag(202, 1); + output.WriteMessage(WriteSecured2); + } + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + output.WriteRawTag(210, 1); + output.WriteMessage(AuthenticateUser); + } + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + output.WriteRawTag(218, 1); + output.WriteMessage(ArchestraUserToId); + } + if (payloadCase_ == PayloadOneofCase.Ping) { + output.WriteRawTag(162, 6); + output.WriteMessage(Ping); + } + if (payloadCase_ == PayloadOneofCase.GetSessionState) { + output.WriteRawTag(170, 6); + output.WriteMessage(GetSessionState); + } + if (payloadCase_ == PayloadOneofCase.GetWorkerInfo) { + output.WriteRawTag(178, 6); + output.WriteMessage(GetWorkerInfo); + } + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + output.WriteRawTag(186, 6); + output.WriteMessage(DrainEvents); + } + if (payloadCase_ == PayloadOneofCase.ShutdownWorker) { + output.WriteRawTag(194, 6); + output.WriteMessage(ShutdownWorker); + } + 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 (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Kind); + } + if (payloadCase_ == PayloadOneofCase.Register) { + output.WriteRawTag(82); + output.WriteMessage(Register); + } + if (payloadCase_ == PayloadOneofCase.Unregister) { + output.WriteRawTag(90); + output.WriteMessage(Unregister); + } + if (payloadCase_ == PayloadOneofCase.AddItem) { + output.WriteRawTag(98); + output.WriteMessage(AddItem); + } + if (payloadCase_ == PayloadOneofCase.AddItem2) { + output.WriteRawTag(106); + output.WriteMessage(AddItem2); + } + if (payloadCase_ == PayloadOneofCase.RemoveItem) { + output.WriteRawTag(114); + output.WriteMessage(RemoveItem); + } + if (payloadCase_ == PayloadOneofCase.Advise) { + output.WriteRawTag(122); + output.WriteMessage(Advise); + } + if (payloadCase_ == PayloadOneofCase.UnAdvise) { + output.WriteRawTag(130, 1); + output.WriteMessage(UnAdvise); + } + if (payloadCase_ == PayloadOneofCase.AdviseSupervisory) { + output.WriteRawTag(138, 1); + output.WriteMessage(AdviseSupervisory); + } + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + output.WriteRawTag(146, 1); + output.WriteMessage(AddBufferedItem); + } + if (payloadCase_ == PayloadOneofCase.SetBufferedUpdateInterval) { + output.WriteRawTag(154, 1); + output.WriteMessage(SetBufferedUpdateInterval); + } + if (payloadCase_ == PayloadOneofCase.Suspend) { + output.WriteRawTag(162, 1); + output.WriteMessage(Suspend); + } + if (payloadCase_ == PayloadOneofCase.Activate) { + output.WriteRawTag(170, 1); + output.WriteMessage(Activate); + } + if (payloadCase_ == PayloadOneofCase.Write) { + output.WriteRawTag(178, 1); + output.WriteMessage(Write); + } + if (payloadCase_ == PayloadOneofCase.Write2) { + output.WriteRawTag(186, 1); + output.WriteMessage(Write2); + } + if (payloadCase_ == PayloadOneofCase.WriteSecured) { + output.WriteRawTag(194, 1); + output.WriteMessage(WriteSecured); + } + if (payloadCase_ == PayloadOneofCase.WriteSecured2) { + output.WriteRawTag(202, 1); + output.WriteMessage(WriteSecured2); + } + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + output.WriteRawTag(210, 1); + output.WriteMessage(AuthenticateUser); + } + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + output.WriteRawTag(218, 1); + output.WriteMessage(ArchestraUserToId); + } + if (payloadCase_ == PayloadOneofCase.Ping) { + output.WriteRawTag(162, 6); + output.WriteMessage(Ping); + } + if (payloadCase_ == PayloadOneofCase.GetSessionState) { + output.WriteRawTag(170, 6); + output.WriteMessage(GetSessionState); + } + if (payloadCase_ == PayloadOneofCase.GetWorkerInfo) { + output.WriteRawTag(178, 6); + output.WriteMessage(GetWorkerInfo); + } + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + output.WriteRawTag(186, 6); + output.WriteMessage(DrainEvents); + } + if (payloadCase_ == PayloadOneofCase.ShutdownWorker) { + output.WriteRawTag(194, 6); + output.WriteMessage(ShutdownWorker); + } + 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 (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (payloadCase_ == PayloadOneofCase.Register) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Register); + } + if (payloadCase_ == PayloadOneofCase.Unregister) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unregister); + } + if (payloadCase_ == PayloadOneofCase.AddItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AddItem); + } + if (payloadCase_ == PayloadOneofCase.AddItem2) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AddItem2); + } + if (payloadCase_ == PayloadOneofCase.RemoveItem) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoveItem); + } + if (payloadCase_ == PayloadOneofCase.Advise) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Advise); + } + if (payloadCase_ == PayloadOneofCase.UnAdvise) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UnAdvise); + } + if (payloadCase_ == PayloadOneofCase.AdviseSupervisory) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdviseSupervisory); + } + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AddBufferedItem); + } + if (payloadCase_ == PayloadOneofCase.SetBufferedUpdateInterval) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SetBufferedUpdateInterval); + } + if (payloadCase_ == PayloadOneofCase.Suspend) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Suspend); + } + if (payloadCase_ == PayloadOneofCase.Activate) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Activate); + } + if (payloadCase_ == PayloadOneofCase.Write) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Write); + } + if (payloadCase_ == PayloadOneofCase.Write2) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Write2); + } + if (payloadCase_ == PayloadOneofCase.WriteSecured) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WriteSecured); + } + if (payloadCase_ == PayloadOneofCase.WriteSecured2) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WriteSecured2); + } + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AuthenticateUser); + } + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ArchestraUserToId); + } + if (payloadCase_ == PayloadOneofCase.Ping) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Ping); + } + if (payloadCase_ == PayloadOneofCase.GetSessionState) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetSessionState); + } + if (payloadCase_ == PayloadOneofCase.GetWorkerInfo) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetWorkerInfo); + } + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DrainEvents); + } + if (payloadCase_ == PayloadOneofCase.ShutdownWorker) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShutdownWorker); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MxCommand other) { + if (other == null) { + return; + } + if (other.Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + Kind = other.Kind; + } + switch (other.PayloadCase) { + case PayloadOneofCase.Register: + if (Register == null) { + Register = new global::MxGateway.Contracts.Proto.RegisterCommand(); + } + Register.MergeFrom(other.Register); + break; + case PayloadOneofCase.Unregister: + if (Unregister == null) { + Unregister = new global::MxGateway.Contracts.Proto.UnregisterCommand(); + } + Unregister.MergeFrom(other.Unregister); + break; + case PayloadOneofCase.AddItem: + if (AddItem == null) { + AddItem = new global::MxGateway.Contracts.Proto.AddItemCommand(); + } + AddItem.MergeFrom(other.AddItem); + break; + case PayloadOneofCase.AddItem2: + if (AddItem2 == null) { + AddItem2 = new global::MxGateway.Contracts.Proto.AddItem2Command(); + } + AddItem2.MergeFrom(other.AddItem2); + break; + case PayloadOneofCase.RemoveItem: + if (RemoveItem == null) { + RemoveItem = new global::MxGateway.Contracts.Proto.RemoveItemCommand(); + } + RemoveItem.MergeFrom(other.RemoveItem); + break; + case PayloadOneofCase.Advise: + if (Advise == null) { + Advise = new global::MxGateway.Contracts.Proto.AdviseCommand(); + } + Advise.MergeFrom(other.Advise); + break; + case PayloadOneofCase.UnAdvise: + if (UnAdvise == null) { + UnAdvise = new global::MxGateway.Contracts.Proto.UnAdviseCommand(); + } + UnAdvise.MergeFrom(other.UnAdvise); + break; + case PayloadOneofCase.AdviseSupervisory: + if (AdviseSupervisory == null) { + AdviseSupervisory = new global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand(); + } + AdviseSupervisory.MergeFrom(other.AdviseSupervisory); + break; + case PayloadOneofCase.AddBufferedItem: + if (AddBufferedItem == null) { + AddBufferedItem = new global::MxGateway.Contracts.Proto.AddBufferedItemCommand(); + } + AddBufferedItem.MergeFrom(other.AddBufferedItem); + break; + case PayloadOneofCase.SetBufferedUpdateInterval: + if (SetBufferedUpdateInterval == null) { + SetBufferedUpdateInterval = new global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand(); + } + SetBufferedUpdateInterval.MergeFrom(other.SetBufferedUpdateInterval); + break; + case PayloadOneofCase.Suspend: + if (Suspend == null) { + Suspend = new global::MxGateway.Contracts.Proto.SuspendCommand(); + } + Suspend.MergeFrom(other.Suspend); + break; + case PayloadOneofCase.Activate: + if (Activate == null) { + Activate = new global::MxGateway.Contracts.Proto.ActivateCommand(); + } + Activate.MergeFrom(other.Activate); + break; + case PayloadOneofCase.Write: + if (Write == null) { + Write = new global::MxGateway.Contracts.Proto.WriteCommand(); + } + Write.MergeFrom(other.Write); + break; + case PayloadOneofCase.Write2: + if (Write2 == null) { + Write2 = new global::MxGateway.Contracts.Proto.Write2Command(); + } + Write2.MergeFrom(other.Write2); + break; + case PayloadOneofCase.WriteSecured: + if (WriteSecured == null) { + WriteSecured = new global::MxGateway.Contracts.Proto.WriteSecuredCommand(); + } + WriteSecured.MergeFrom(other.WriteSecured); + break; + case PayloadOneofCase.WriteSecured2: + if (WriteSecured2 == null) { + WriteSecured2 = new global::MxGateway.Contracts.Proto.WriteSecured2Command(); + } + WriteSecured2.MergeFrom(other.WriteSecured2); + break; + case PayloadOneofCase.AuthenticateUser: + if (AuthenticateUser == null) { + AuthenticateUser = new global::MxGateway.Contracts.Proto.AuthenticateUserCommand(); + } + AuthenticateUser.MergeFrom(other.AuthenticateUser); + break; + case PayloadOneofCase.ArchestraUserToId: + if (ArchestraUserToId == null) { + ArchestraUserToId = new global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand(); + } + ArchestraUserToId.MergeFrom(other.ArchestraUserToId); + break; + case PayloadOneofCase.Ping: + if (Ping == null) { + Ping = new global::MxGateway.Contracts.Proto.PingCommand(); + } + Ping.MergeFrom(other.Ping); + break; + case PayloadOneofCase.GetSessionState: + if (GetSessionState == null) { + GetSessionState = new global::MxGateway.Contracts.Proto.GetSessionStateCommand(); + } + GetSessionState.MergeFrom(other.GetSessionState); + break; + case PayloadOneofCase.GetWorkerInfo: + if (GetWorkerInfo == null) { + GetWorkerInfo = new global::MxGateway.Contracts.Proto.GetWorkerInfoCommand(); + } + GetWorkerInfo.MergeFrom(other.GetWorkerInfo); + break; + case PayloadOneofCase.DrainEvents: + if (DrainEvents == null) { + DrainEvents = new global::MxGateway.Contracts.Proto.DrainEventsCommand(); + } + DrainEvents.MergeFrom(other.DrainEvents); + break; + case PayloadOneofCase.ShutdownWorker: + if (ShutdownWorker == null) { + ShutdownWorker = new global::MxGateway.Contracts.Proto.ShutdownWorkerCommand(); + } + ShutdownWorker.MergeFrom(other.ShutdownWorker); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Kind = (global::MxGateway.Contracts.Proto.MxCommandKind) input.ReadEnum(); + break; + } + case 82: { + global::MxGateway.Contracts.Proto.RegisterCommand subBuilder = new global::MxGateway.Contracts.Proto.RegisterCommand(); + if (payloadCase_ == PayloadOneofCase.Register) { + subBuilder.MergeFrom(Register); + } + input.ReadMessage(subBuilder); + Register = subBuilder; + break; + } + case 90: { + global::MxGateway.Contracts.Proto.UnregisterCommand subBuilder = new global::MxGateway.Contracts.Proto.UnregisterCommand(); + if (payloadCase_ == PayloadOneofCase.Unregister) { + subBuilder.MergeFrom(Unregister); + } + input.ReadMessage(subBuilder); + Unregister = subBuilder; + break; + } + case 98: { + global::MxGateway.Contracts.Proto.AddItemCommand subBuilder = new global::MxGateway.Contracts.Proto.AddItemCommand(); + if (payloadCase_ == PayloadOneofCase.AddItem) { + subBuilder.MergeFrom(AddItem); + } + input.ReadMessage(subBuilder); + AddItem = subBuilder; + break; + } + case 106: { + global::MxGateway.Contracts.Proto.AddItem2Command subBuilder = new global::MxGateway.Contracts.Proto.AddItem2Command(); + if (payloadCase_ == PayloadOneofCase.AddItem2) { + subBuilder.MergeFrom(AddItem2); + } + input.ReadMessage(subBuilder); + AddItem2 = subBuilder; + break; + } + case 114: { + global::MxGateway.Contracts.Proto.RemoveItemCommand subBuilder = new global::MxGateway.Contracts.Proto.RemoveItemCommand(); + if (payloadCase_ == PayloadOneofCase.RemoveItem) { + subBuilder.MergeFrom(RemoveItem); + } + input.ReadMessage(subBuilder); + RemoveItem = subBuilder; + break; + } + case 122: { + global::MxGateway.Contracts.Proto.AdviseCommand subBuilder = new global::MxGateway.Contracts.Proto.AdviseCommand(); + if (payloadCase_ == PayloadOneofCase.Advise) { + subBuilder.MergeFrom(Advise); + } + input.ReadMessage(subBuilder); + Advise = subBuilder; + break; + } + case 130: { + global::MxGateway.Contracts.Proto.UnAdviseCommand subBuilder = new global::MxGateway.Contracts.Proto.UnAdviseCommand(); + if (payloadCase_ == PayloadOneofCase.UnAdvise) { + subBuilder.MergeFrom(UnAdvise); + } + input.ReadMessage(subBuilder); + UnAdvise = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand subBuilder = new global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand(); + if (payloadCase_ == PayloadOneofCase.AdviseSupervisory) { + subBuilder.MergeFrom(AdviseSupervisory); + } + input.ReadMessage(subBuilder); + AdviseSupervisory = subBuilder; + break; + } + case 146: { + global::MxGateway.Contracts.Proto.AddBufferedItemCommand subBuilder = new global::MxGateway.Contracts.Proto.AddBufferedItemCommand(); + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + subBuilder.MergeFrom(AddBufferedItem); + } + input.ReadMessage(subBuilder); + AddBufferedItem = subBuilder; + break; + } + case 154: { + global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand subBuilder = new global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand(); + if (payloadCase_ == PayloadOneofCase.SetBufferedUpdateInterval) { + subBuilder.MergeFrom(SetBufferedUpdateInterval); + } + input.ReadMessage(subBuilder); + SetBufferedUpdateInterval = subBuilder; + break; + } + case 162: { + global::MxGateway.Contracts.Proto.SuspendCommand subBuilder = new global::MxGateway.Contracts.Proto.SuspendCommand(); + if (payloadCase_ == PayloadOneofCase.Suspend) { + subBuilder.MergeFrom(Suspend); + } + input.ReadMessage(subBuilder); + Suspend = subBuilder; + break; + } + case 170: { + global::MxGateway.Contracts.Proto.ActivateCommand subBuilder = new global::MxGateway.Contracts.Proto.ActivateCommand(); + if (payloadCase_ == PayloadOneofCase.Activate) { + subBuilder.MergeFrom(Activate); + } + input.ReadMessage(subBuilder); + Activate = subBuilder; + break; + } + case 178: { + global::MxGateway.Contracts.Proto.WriteCommand subBuilder = new global::MxGateway.Contracts.Proto.WriteCommand(); + if (payloadCase_ == PayloadOneofCase.Write) { + subBuilder.MergeFrom(Write); + } + input.ReadMessage(subBuilder); + Write = subBuilder; + break; + } + case 186: { + global::MxGateway.Contracts.Proto.Write2Command subBuilder = new global::MxGateway.Contracts.Proto.Write2Command(); + if (payloadCase_ == PayloadOneofCase.Write2) { + subBuilder.MergeFrom(Write2); + } + input.ReadMessage(subBuilder); + Write2 = subBuilder; + break; + } + case 194: { + global::MxGateway.Contracts.Proto.WriteSecuredCommand subBuilder = new global::MxGateway.Contracts.Proto.WriteSecuredCommand(); + if (payloadCase_ == PayloadOneofCase.WriteSecured) { + subBuilder.MergeFrom(WriteSecured); + } + input.ReadMessage(subBuilder); + WriteSecured = subBuilder; + break; + } + case 202: { + global::MxGateway.Contracts.Proto.WriteSecured2Command subBuilder = new global::MxGateway.Contracts.Proto.WriteSecured2Command(); + if (payloadCase_ == PayloadOneofCase.WriteSecured2) { + subBuilder.MergeFrom(WriteSecured2); + } + input.ReadMessage(subBuilder); + WriteSecured2 = subBuilder; + break; + } + case 210: { + global::MxGateway.Contracts.Proto.AuthenticateUserCommand subBuilder = new global::MxGateway.Contracts.Proto.AuthenticateUserCommand(); + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + subBuilder.MergeFrom(AuthenticateUser); + } + input.ReadMessage(subBuilder); + AuthenticateUser = subBuilder; + break; + } + case 218: { + global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand subBuilder = new global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand(); + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + subBuilder.MergeFrom(ArchestraUserToId); + } + input.ReadMessage(subBuilder); + ArchestraUserToId = subBuilder; + break; + } + case 802: { + global::MxGateway.Contracts.Proto.PingCommand subBuilder = new global::MxGateway.Contracts.Proto.PingCommand(); + if (payloadCase_ == PayloadOneofCase.Ping) { + subBuilder.MergeFrom(Ping); + } + input.ReadMessage(subBuilder); + Ping = subBuilder; + break; + } + case 810: { + global::MxGateway.Contracts.Proto.GetSessionStateCommand subBuilder = new global::MxGateway.Contracts.Proto.GetSessionStateCommand(); + if (payloadCase_ == PayloadOneofCase.GetSessionState) { + subBuilder.MergeFrom(GetSessionState); + } + input.ReadMessage(subBuilder); + GetSessionState = subBuilder; + break; + } + case 818: { + global::MxGateway.Contracts.Proto.GetWorkerInfoCommand subBuilder = new global::MxGateway.Contracts.Proto.GetWorkerInfoCommand(); + if (payloadCase_ == PayloadOneofCase.GetWorkerInfo) { + subBuilder.MergeFrom(GetWorkerInfo); + } + input.ReadMessage(subBuilder); + GetWorkerInfo = subBuilder; + break; + } + case 826: { + global::MxGateway.Contracts.Proto.DrainEventsCommand subBuilder = new global::MxGateway.Contracts.Proto.DrainEventsCommand(); + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + subBuilder.MergeFrom(DrainEvents); + } + input.ReadMessage(subBuilder); + DrainEvents = subBuilder; + break; + } + case 834: { + global::MxGateway.Contracts.Proto.ShutdownWorkerCommand subBuilder = new global::MxGateway.Contracts.Proto.ShutdownWorkerCommand(); + if (payloadCase_ == PayloadOneofCase.ShutdownWorker) { + subBuilder.MergeFrom(ShutdownWorker); + } + input.ReadMessage(subBuilder); + ShutdownWorker = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Kind = (global::MxGateway.Contracts.Proto.MxCommandKind) input.ReadEnum(); + break; + } + case 82: { + global::MxGateway.Contracts.Proto.RegisterCommand subBuilder = new global::MxGateway.Contracts.Proto.RegisterCommand(); + if (payloadCase_ == PayloadOneofCase.Register) { + subBuilder.MergeFrom(Register); + } + input.ReadMessage(subBuilder); + Register = subBuilder; + break; + } + case 90: { + global::MxGateway.Contracts.Proto.UnregisterCommand subBuilder = new global::MxGateway.Contracts.Proto.UnregisterCommand(); + if (payloadCase_ == PayloadOneofCase.Unregister) { + subBuilder.MergeFrom(Unregister); + } + input.ReadMessage(subBuilder); + Unregister = subBuilder; + break; + } + case 98: { + global::MxGateway.Contracts.Proto.AddItemCommand subBuilder = new global::MxGateway.Contracts.Proto.AddItemCommand(); + if (payloadCase_ == PayloadOneofCase.AddItem) { + subBuilder.MergeFrom(AddItem); + } + input.ReadMessage(subBuilder); + AddItem = subBuilder; + break; + } + case 106: { + global::MxGateway.Contracts.Proto.AddItem2Command subBuilder = new global::MxGateway.Contracts.Proto.AddItem2Command(); + if (payloadCase_ == PayloadOneofCase.AddItem2) { + subBuilder.MergeFrom(AddItem2); + } + input.ReadMessage(subBuilder); + AddItem2 = subBuilder; + break; + } + case 114: { + global::MxGateway.Contracts.Proto.RemoveItemCommand subBuilder = new global::MxGateway.Contracts.Proto.RemoveItemCommand(); + if (payloadCase_ == PayloadOneofCase.RemoveItem) { + subBuilder.MergeFrom(RemoveItem); + } + input.ReadMessage(subBuilder); + RemoveItem = subBuilder; + break; + } + case 122: { + global::MxGateway.Contracts.Proto.AdviseCommand subBuilder = new global::MxGateway.Contracts.Proto.AdviseCommand(); + if (payloadCase_ == PayloadOneofCase.Advise) { + subBuilder.MergeFrom(Advise); + } + input.ReadMessage(subBuilder); + Advise = subBuilder; + break; + } + case 130: { + global::MxGateway.Contracts.Proto.UnAdviseCommand subBuilder = new global::MxGateway.Contracts.Proto.UnAdviseCommand(); + if (payloadCase_ == PayloadOneofCase.UnAdvise) { + subBuilder.MergeFrom(UnAdvise); + } + input.ReadMessage(subBuilder); + UnAdvise = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand subBuilder = new global::MxGateway.Contracts.Proto.AdviseSupervisoryCommand(); + if (payloadCase_ == PayloadOneofCase.AdviseSupervisory) { + subBuilder.MergeFrom(AdviseSupervisory); + } + input.ReadMessage(subBuilder); + AdviseSupervisory = subBuilder; + break; + } + case 146: { + global::MxGateway.Contracts.Proto.AddBufferedItemCommand subBuilder = new global::MxGateway.Contracts.Proto.AddBufferedItemCommand(); + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + subBuilder.MergeFrom(AddBufferedItem); + } + input.ReadMessage(subBuilder); + AddBufferedItem = subBuilder; + break; + } + case 154: { + global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand subBuilder = new global::MxGateway.Contracts.Proto.SetBufferedUpdateIntervalCommand(); + if (payloadCase_ == PayloadOneofCase.SetBufferedUpdateInterval) { + subBuilder.MergeFrom(SetBufferedUpdateInterval); + } + input.ReadMessage(subBuilder); + SetBufferedUpdateInterval = subBuilder; + break; + } + case 162: { + global::MxGateway.Contracts.Proto.SuspendCommand subBuilder = new global::MxGateway.Contracts.Proto.SuspendCommand(); + if (payloadCase_ == PayloadOneofCase.Suspend) { + subBuilder.MergeFrom(Suspend); + } + input.ReadMessage(subBuilder); + Suspend = subBuilder; + break; + } + case 170: { + global::MxGateway.Contracts.Proto.ActivateCommand subBuilder = new global::MxGateway.Contracts.Proto.ActivateCommand(); + if (payloadCase_ == PayloadOneofCase.Activate) { + subBuilder.MergeFrom(Activate); + } + input.ReadMessage(subBuilder); + Activate = subBuilder; + break; + } + case 178: { + global::MxGateway.Contracts.Proto.WriteCommand subBuilder = new global::MxGateway.Contracts.Proto.WriteCommand(); + if (payloadCase_ == PayloadOneofCase.Write) { + subBuilder.MergeFrom(Write); + } + input.ReadMessage(subBuilder); + Write = subBuilder; + break; + } + case 186: { + global::MxGateway.Contracts.Proto.Write2Command subBuilder = new global::MxGateway.Contracts.Proto.Write2Command(); + if (payloadCase_ == PayloadOneofCase.Write2) { + subBuilder.MergeFrom(Write2); + } + input.ReadMessage(subBuilder); + Write2 = subBuilder; + break; + } + case 194: { + global::MxGateway.Contracts.Proto.WriteSecuredCommand subBuilder = new global::MxGateway.Contracts.Proto.WriteSecuredCommand(); + if (payloadCase_ == PayloadOneofCase.WriteSecured) { + subBuilder.MergeFrom(WriteSecured); + } + input.ReadMessage(subBuilder); + WriteSecured = subBuilder; + break; + } + case 202: { + global::MxGateway.Contracts.Proto.WriteSecured2Command subBuilder = new global::MxGateway.Contracts.Proto.WriteSecured2Command(); + if (payloadCase_ == PayloadOneofCase.WriteSecured2) { + subBuilder.MergeFrom(WriteSecured2); + } + input.ReadMessage(subBuilder); + WriteSecured2 = subBuilder; + break; + } + case 210: { + global::MxGateway.Contracts.Proto.AuthenticateUserCommand subBuilder = new global::MxGateway.Contracts.Proto.AuthenticateUserCommand(); + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + subBuilder.MergeFrom(AuthenticateUser); + } + input.ReadMessage(subBuilder); + AuthenticateUser = subBuilder; + break; + } + case 218: { + global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand subBuilder = new global::MxGateway.Contracts.Proto.ArchestrAUserToIdCommand(); + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + subBuilder.MergeFrom(ArchestraUserToId); + } + input.ReadMessage(subBuilder); + ArchestraUserToId = subBuilder; + break; + } + case 802: { + global::MxGateway.Contracts.Proto.PingCommand subBuilder = new global::MxGateway.Contracts.Proto.PingCommand(); + if (payloadCase_ == PayloadOneofCase.Ping) { + subBuilder.MergeFrom(Ping); + } + input.ReadMessage(subBuilder); + Ping = subBuilder; + break; + } + case 810: { + global::MxGateway.Contracts.Proto.GetSessionStateCommand subBuilder = new global::MxGateway.Contracts.Proto.GetSessionStateCommand(); + if (payloadCase_ == PayloadOneofCase.GetSessionState) { + subBuilder.MergeFrom(GetSessionState); + } + input.ReadMessage(subBuilder); + GetSessionState = subBuilder; + break; + } + case 818: { + global::MxGateway.Contracts.Proto.GetWorkerInfoCommand subBuilder = new global::MxGateway.Contracts.Proto.GetWorkerInfoCommand(); + if (payloadCase_ == PayloadOneofCase.GetWorkerInfo) { + subBuilder.MergeFrom(GetWorkerInfo); + } + input.ReadMessage(subBuilder); + GetWorkerInfo = subBuilder; + break; + } + case 826: { + global::MxGateway.Contracts.Proto.DrainEventsCommand subBuilder = new global::MxGateway.Contracts.Proto.DrainEventsCommand(); + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + subBuilder.MergeFrom(DrainEvents); + } + input.ReadMessage(subBuilder); + DrainEvents = subBuilder; + break; + } + case 834: { + global::MxGateway.Contracts.Proto.ShutdownWorkerCommand subBuilder = new global::MxGateway.Contracts.Proto.ShutdownWorkerCommand(); + if (payloadCase_ == PayloadOneofCase.ShutdownWorker) { + subBuilder.MergeFrom(ShutdownWorker); + } + input.ReadMessage(subBuilder); + ShutdownWorker = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegisterCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 RegisterCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterCommand(RegisterCommand other) : this() { + clientName_ = other.clientName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterCommand Clone() { + return new RegisterCommand(this); + } + + /// Field number for the "client_name" field. + public const int ClientNameFieldNumber = 1; + private string clientName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClientName { + get { return clientName_; } + set { + clientName_ = 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 RegisterCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegisterCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClientName != other.ClientName) 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 (ClientName.Length != 0) hash ^= ClientName.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 (ClientName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ClientName); + } + 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 (ClientName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ClientName); + } + 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 (ClientName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegisterCommand other) { + if (other == null) { + return; + } + if (other.ClientName.Length != 0) { + ClientName = other.ClientName; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ClientName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ClientName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnregisterCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnregisterCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 UnregisterCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnregisterCommand(UnregisterCommand other) : this() { + serverHandle_ = other.serverHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnregisterCommand Clone() { + return new UnregisterCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnregisterCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnregisterCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnregisterCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddItemCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddItemCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 AddItemCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItemCommand(AddItemCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemDefinition_ = other.itemDefinition_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItemCommand Clone() { + return new AddItemCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_definition" field. + public const int ItemDefinitionFieldNumber = 2; + private string itemDefinition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemDefinition { + get { return itemDefinition_; } + set { + itemDefinition_ = 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 AddItemCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddItemCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemDefinition != other.ItemDefinition) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemDefinition.Length != 0) hash ^= ItemDefinition.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemDefinition.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ItemDefinition); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemDefinition.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ItemDefinition); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemDefinition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemDefinition); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddItemCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemDefinition.Length != 0) { + ItemDefinition = other.ItemDefinition; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + ItemDefinition = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + ItemDefinition = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddItem2Command : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddItem2Command()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 AddItem2Command() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItem2Command(AddItem2Command other) : this() { + serverHandle_ = other.serverHandle_; + itemDefinition_ = other.itemDefinition_; + itemContext_ = other.itemContext_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItem2Command Clone() { + return new AddItem2Command(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_definition" field. + public const int ItemDefinitionFieldNumber = 2; + private string itemDefinition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemDefinition { + get { return itemDefinition_; } + set { + itemDefinition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "item_context" field. + public const int ItemContextFieldNumber = 3; + private string itemContext_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemContext { + get { return itemContext_; } + set { + itemContext_ = 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 AddItem2Command); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddItem2Command other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemDefinition != other.ItemDefinition) return false; + if (ItemContext != other.ItemContext) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemDefinition.Length != 0) hash ^= ItemDefinition.GetHashCode(); + if (ItemContext.Length != 0) hash ^= ItemContext.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemDefinition.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ItemDefinition); + } + if (ItemContext.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ItemContext); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemDefinition.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ItemDefinition); + } + if (ItemContext.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ItemContext); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemDefinition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemDefinition); + } + if (ItemContext.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemContext); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddItem2Command other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemDefinition.Length != 0) { + ItemDefinition = other.ItemDefinition; + } + if (other.ItemContext.Length != 0) { + ItemContext = other.ItemContext; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + ItemDefinition = input.ReadString(); + break; + } + case 26: { + ItemContext = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + ItemDefinition = input.ReadString(); + break; + } + case 26: { + ItemContext = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RemoveItemCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveItemCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 RemoveItemCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveItemCommand(RemoveItemCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveItemCommand Clone() { + return new RemoveItemCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveItemCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveItemCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveItemCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AdviseCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdviseCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 AdviseCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdviseCommand(AdviseCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdviseCommand Clone() { + return new AdviseCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AdviseCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AdviseCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AdviseCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnAdviseCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnAdviseCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 UnAdviseCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnAdviseCommand(UnAdviseCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnAdviseCommand Clone() { + return new UnAdviseCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnAdviseCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnAdviseCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnAdviseCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AdviseSupervisoryCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdviseSupervisoryCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 AdviseSupervisoryCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdviseSupervisoryCommand(AdviseSupervisoryCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AdviseSupervisoryCommand Clone() { + return new AdviseSupervisoryCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AdviseSupervisoryCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AdviseSupervisoryCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AdviseSupervisoryCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddBufferedItemCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddBufferedItemCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 AddBufferedItemCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddBufferedItemCommand(AddBufferedItemCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemDefinition_ = other.itemDefinition_; + itemContext_ = other.itemContext_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddBufferedItemCommand Clone() { + return new AddBufferedItemCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_definition" field. + public const int ItemDefinitionFieldNumber = 2; + private string itemDefinition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemDefinition { + get { return itemDefinition_; } + set { + itemDefinition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "item_context" field. + public const int ItemContextFieldNumber = 3; + private string itemContext_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemContext { + get { return itemContext_; } + set { + itemContext_ = 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 AddBufferedItemCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddBufferedItemCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemDefinition != other.ItemDefinition) return false; + if (ItemContext != other.ItemContext) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemDefinition.Length != 0) hash ^= ItemDefinition.GetHashCode(); + if (ItemContext.Length != 0) hash ^= ItemContext.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemDefinition.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ItemDefinition); + } + if (ItemContext.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ItemContext); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemDefinition.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ItemDefinition); + } + if (ItemContext.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ItemContext); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemDefinition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemDefinition); + } + if (ItemContext.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemContext); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddBufferedItemCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemDefinition.Length != 0) { + ItemDefinition = other.ItemDefinition; + } + if (other.ItemContext.Length != 0) { + ItemContext = other.ItemContext; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + ItemDefinition = input.ReadString(); + break; + } + case 26: { + ItemContext = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + ItemDefinition = input.ReadString(); + break; + } + case 26: { + ItemContext = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetBufferedUpdateIntervalCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetBufferedUpdateIntervalCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 SetBufferedUpdateIntervalCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetBufferedUpdateIntervalCommand(SetBufferedUpdateIntervalCommand other) : this() { + serverHandle_ = other.serverHandle_; + updateIntervalMilliseconds_ = other.updateIntervalMilliseconds_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetBufferedUpdateIntervalCommand Clone() { + return new SetBufferedUpdateIntervalCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "update_interval_milliseconds" field. + public const int UpdateIntervalMillisecondsFieldNumber = 2; + private int updateIntervalMilliseconds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UpdateIntervalMilliseconds { + get { return updateIntervalMilliseconds_; } + set { + updateIntervalMilliseconds_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetBufferedUpdateIntervalCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetBufferedUpdateIntervalCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (UpdateIntervalMilliseconds != other.UpdateIntervalMilliseconds) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (UpdateIntervalMilliseconds != 0) hash ^= UpdateIntervalMilliseconds.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (UpdateIntervalMilliseconds != 0) { + output.WriteRawTag(16); + output.WriteInt32(UpdateIntervalMilliseconds); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (UpdateIntervalMilliseconds != 0) { + output.WriteRawTag(16); + output.WriteInt32(UpdateIntervalMilliseconds); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (UpdateIntervalMilliseconds != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UpdateIntervalMilliseconds); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetBufferedUpdateIntervalCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.UpdateIntervalMilliseconds != 0) { + UpdateIntervalMilliseconds = other.UpdateIntervalMilliseconds; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + UpdateIntervalMilliseconds = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + UpdateIntervalMilliseconds = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SuspendCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuspendCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 SuspendCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SuspendCommand(SuspendCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SuspendCommand Clone() { + return new SuspendCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SuspendCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SuspendCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SuspendCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivateCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 ActivateCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateCommand(ActivateCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateCommand Clone() { + return new ActivateCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WriteCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WriteCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 WriteCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WriteCommand(WriteCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + value_ = other.value_ != null ? other.value_.Clone() : null; + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WriteCommand Clone() { + return new WriteCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 3; + private global::MxGateway.Contracts.Proto.MxValue value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 4; + private int userId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WriteCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WriteCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) return false; + if (!object.Equals(Value, other.Value)) return false; + if (UserId != other.UserId) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.GetHashCode(); + if (value_ != null) hash ^= Value.GetHashCode(); + if (UserId != 0) hash ^= UserId.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (value_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Value); + } + if (UserId != 0) { + output.WriteRawTag(32); + output.WriteInt32(UserId); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (value_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Value); + } + if (UserId != 0) { + output.WriteRawTag(32); + output.WriteInt32(UserId); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (UserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WriteCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + Value.MergeFrom(other.Value); + } + if (other.UserId != 0) { + UserId = other.UserId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 26: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 32: { + UserId = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 26: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 32: { + UserId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Write2Command : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Write2Command()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 Write2Command() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Write2Command(Write2Command other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + value_ = other.value_ != null ? other.value_.Clone() : null; + timestampValue_ = other.timestampValue_ != null ? other.timestampValue_.Clone() : null; + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Write2Command Clone() { + return new Write2Command(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 3; + private global::MxGateway.Contracts.Proto.MxValue value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "timestamp_value" field. + public const int TimestampValueFieldNumber = 4; + private global::MxGateway.Contracts.Proto.MxValue timestampValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue TimestampValue { + get { return timestampValue_; } + set { + timestampValue_ = value; + } + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 5; + private int userId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Write2Command); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Write2Command other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) return false; + if (!object.Equals(Value, other.Value)) return false; + if (!object.Equals(TimestampValue, other.TimestampValue)) return false; + if (UserId != other.UserId) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.GetHashCode(); + if (value_ != null) hash ^= Value.GetHashCode(); + if (timestampValue_ != null) hash ^= TimestampValue.GetHashCode(); + if (UserId != 0) hash ^= UserId.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (value_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Value); + } + if (timestampValue_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TimestampValue); + } + if (UserId != 0) { + output.WriteRawTag(40); + output.WriteInt32(UserId); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (value_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Value); + } + if (timestampValue_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TimestampValue); + } + if (UserId != 0) { + output.WriteRawTag(40); + output.WriteInt32(UserId); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (timestampValue_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampValue); + } + if (UserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Write2Command other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + Value.MergeFrom(other.Value); + } + if (other.timestampValue_ != null) { + if (timestampValue_ == null) { + TimestampValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + TimestampValue.MergeFrom(other.TimestampValue); + } + if (other.UserId != 0) { + UserId = other.UserId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 26: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 34: { + if (timestampValue_ == null) { + TimestampValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(TimestampValue); + break; + } + case 40: { + UserId = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 26: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 34: { + if (timestampValue_ == null) { + TimestampValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(TimestampValue); + break; + } + case 40: { + UserId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WriteSecuredCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WriteSecuredCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 WriteSecuredCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WriteSecuredCommand(WriteSecuredCommand other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + currentUserId_ = other.currentUserId_; + verifierUserId_ = other.verifierUserId_; + 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 WriteSecuredCommand Clone() { + return new WriteSecuredCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + /// Field number for the "current_user_id" field. + public const int CurrentUserIdFieldNumber = 3; + private int currentUserId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrentUserId { + get { return currentUserId_; } + set { + currentUserId_ = value; + } + } + + /// Field number for the "verifier_user_id" field. + public const int VerifierUserIdFieldNumber = 4; + private int verifierUserId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VerifierUserId { + get { return verifierUserId_; } + set { + verifierUserId_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 5; + private global::MxGateway.Contracts.Proto.MxValue value_; + /// + /// Credential-sensitive write value. Implementations must not log this field + /// unless an explicit redacted value-logging path is enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue 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 WriteSecuredCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WriteSecuredCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) return false; + if (CurrentUserId != other.CurrentUserId) return false; + if (VerifierUserId != other.VerifierUserId) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.GetHashCode(); + if (CurrentUserId != 0) hash ^= CurrentUserId.GetHashCode(); + if (VerifierUserId != 0) hash ^= VerifierUserId.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (CurrentUserId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CurrentUserId); + } + if (VerifierUserId != 0) { + output.WriteRawTag(32); + output.WriteInt32(VerifierUserId); + } + if (value_ != null) { + output.WriteRawTag(42); + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (CurrentUserId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CurrentUserId); + } + if (VerifierUserId != 0) { + output.WriteRawTag(32); + output.WriteInt32(VerifierUserId); + } + if (value_ != null) { + output.WriteRawTag(42); + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (CurrentUserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrentUserId); + } + if (VerifierUserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VerifierUserId); + } + 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(WriteSecuredCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + if (other.CurrentUserId != 0) { + CurrentUserId = other.CurrentUserId; + } + if (other.VerifierUserId != 0) { + VerifierUserId = other.VerifierUserId; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 24: { + CurrentUserId = input.ReadInt32(); + break; + } + case 32: { + VerifierUserId = input.ReadInt32(); + break; + } + case 42: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 24: { + CurrentUserId = input.ReadInt32(); + break; + } + case 32: { + VerifierUserId = input.ReadInt32(); + break; + } + case 42: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WriteSecured2Command : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WriteSecured2Command()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 WriteSecured2Command() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WriteSecured2Command(WriteSecured2Command other) : this() { + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + currentUserId_ = other.currentUserId_; + verifierUserId_ = other.verifierUserId_; + value_ = other.value_ != null ? other.value_.Clone() : null; + timestampValue_ = other.timestampValue_ != null ? other.timestampValue_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WriteSecured2Command Clone() { + return new WriteSecured2Command(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 2; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + /// Field number for the "current_user_id" field. + public const int CurrentUserIdFieldNumber = 3; + private int currentUserId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrentUserId { + get { return currentUserId_; } + set { + currentUserId_ = value; + } + } + + /// Field number for the "verifier_user_id" field. + public const int VerifierUserIdFieldNumber = 4; + private int verifierUserId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int VerifierUserId { + get { return verifierUserId_; } + set { + verifierUserId_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 5; + private global::MxGateway.Contracts.Proto.MxValue value_; + /// + /// Credential-sensitive write value. Implementations must not log this field + /// unless an explicit redacted value-logging path is enabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "timestamp_value" field. + public const int TimestampValueFieldNumber = 6; + private global::MxGateway.Contracts.Proto.MxValue timestampValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue TimestampValue { + get { return timestampValue_; } + set { + timestampValue_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WriteSecured2Command); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WriteSecured2Command other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) return false; + if (CurrentUserId != other.CurrentUserId) return false; + if (VerifierUserId != other.VerifierUserId) return false; + if (!object.Equals(Value, other.Value)) return false; + if (!object.Equals(TimestampValue, other.TimestampValue)) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.GetHashCode(); + if (CurrentUserId != 0) hash ^= CurrentUserId.GetHashCode(); + if (VerifierUserId != 0) hash ^= VerifierUserId.GetHashCode(); + if (value_ != null) hash ^= Value.GetHashCode(); + if (timestampValue_ != null) hash ^= TimestampValue.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (CurrentUserId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CurrentUserId); + } + if (VerifierUserId != 0) { + output.WriteRawTag(32); + output.WriteInt32(VerifierUserId); + } + if (value_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Value); + } + if (timestampValue_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TimestampValue); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(16); + output.WriteInt32(ItemHandle); + } + if (CurrentUserId != 0) { + output.WriteRawTag(24); + output.WriteInt32(CurrentUserId); + } + if (VerifierUserId != 0) { + output.WriteRawTag(32); + output.WriteInt32(VerifierUserId); + } + if (value_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Value); + } + if (timestampValue_ != null) { + output.WriteRawTag(50); + output.WriteMessage(TimestampValue); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (CurrentUserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrentUserId); + } + if (VerifierUserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(VerifierUserId); + } + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (timestampValue_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WriteSecured2Command other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + if (other.CurrentUserId != 0) { + CurrentUserId = other.CurrentUserId; + } + if (other.VerifierUserId != 0) { + VerifierUserId = other.VerifierUserId; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + Value.MergeFrom(other.Value); + } + if (other.timestampValue_ != null) { + if (timestampValue_ == null) { + TimestampValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + TimestampValue.MergeFrom(other.TimestampValue); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 24: { + CurrentUserId = input.ReadInt32(); + break; + } + case 32: { + VerifierUserId = input.ReadInt32(); + break; + } + case 42: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 50: { + if (timestampValue_ == null) { + TimestampValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(TimestampValue); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 16: { + ItemHandle = input.ReadInt32(); + break; + } + case 24: { + CurrentUserId = input.ReadInt32(); + break; + } + case 32: { + VerifierUserId = input.ReadInt32(); + break; + } + case 42: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 50: { + if (timestampValue_ == null) { + TimestampValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(TimestampValue); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AuthenticateUserCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthenticateUserCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.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 AuthenticateUserCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthenticateUserCommand(AuthenticateUserCommand other) : this() { + serverHandle_ = other.serverHandle_; + verifyUser_ = other.verifyUser_; + verifyUserPassword_ = other.verifyUserPassword_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthenticateUserCommand Clone() { + return new AuthenticateUserCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "verify_user" field. + public const int VerifyUserFieldNumber = 2; + private string verifyUser_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VerifyUser { + get { return verifyUser_; } + set { + verifyUser_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "verify_user_password" field. + public const int VerifyUserPasswordFieldNumber = 3; + private string verifyUserPassword_ = ""; + /// + /// Raw MXAccess credential. Implementations must keep this field out of logs, + /// metrics labels, command lines, and diagnostics. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VerifyUserPassword { + get { return verifyUserPassword_; } + set { + verifyUserPassword_ = 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 AuthenticateUserCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuthenticateUserCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (VerifyUser != other.VerifyUser) return false; + if (VerifyUserPassword != other.VerifyUserPassword) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (VerifyUser.Length != 0) hash ^= VerifyUser.GetHashCode(); + if (VerifyUserPassword.Length != 0) hash ^= VerifyUserPassword.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (VerifyUser.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VerifyUser); + } + if (VerifyUserPassword.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VerifyUserPassword); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (VerifyUser.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VerifyUser); + } + if (VerifyUserPassword.Length != 0) { + output.WriteRawTag(26); + output.WriteString(VerifyUserPassword); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (VerifyUser.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VerifyUser); + } + if (VerifyUserPassword.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VerifyUserPassword); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuthenticateUserCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.VerifyUser.Length != 0) { + VerifyUser = other.VerifyUser; + } + if (other.VerifyUserPassword.Length != 0) { + VerifyUserPassword = other.VerifyUserPassword; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + VerifyUser = input.ReadString(); + break; + } + case 26: { + VerifyUserPassword = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + VerifyUser = input.ReadString(); + break; + } + case 26: { + VerifyUserPassword = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ArchestrAUserToIdCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArchestrAUserToIdCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[24]; } + } + + [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 ArchestrAUserToIdCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArchestrAUserToIdCommand(ArchestrAUserToIdCommand other) : this() { + serverHandle_ = other.serverHandle_; + userIdGuid_ = other.userIdGuid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArchestrAUserToIdCommand Clone() { + return new ArchestrAUserToIdCommand(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "user_id_guid" field. + public const int UserIdGuidFieldNumber = 2; + private string userIdGuid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserIdGuid { + get { return userIdGuid_; } + set { + userIdGuid_ = 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 ArchestrAUserToIdCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ArchestrAUserToIdCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) return false; + if (UserIdGuid != other.UserIdGuid) 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 (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (UserIdGuid.Length != 0) hash ^= UserIdGuid.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (UserIdGuid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserIdGuid); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + if (UserIdGuid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserIdGuid); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (UserIdGuid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserIdGuid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ArchestrAUserToIdCommand other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.UserIdGuid.Length != 0) { + UserIdGuid = other.UserIdGuid; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + UserIdGuid = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + case 18: { + UserIdGuid = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PingCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PingCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[25]; } + } + + [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 PingCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PingCommand(PingCommand other) : this() { + message_ = other.message_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PingCommand Clone() { + return new PingCommand(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private string message_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_; } + set { + message_ = 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 PingCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PingCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Message != other.Message) 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 (Message.Length != 0) hash ^= Message.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 (Message.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Message); + } + 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 (Message.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Message); + } + 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 (Message.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PingCommand other) { + if (other == null) { + return; + } + if (other.Message.Length != 0) { + Message = other.Message; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Message = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Message = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSessionStateCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStateCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[26]; } + } + + [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 GetSessionStateCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSessionStateCommand(GetSessionStateCommand other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSessionStateCommand Clone() { + return new GetSessionStateCommand(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSessionStateCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSessionStateCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSessionStateCommand other) { + if (other == null) { + return; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetWorkerInfoCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetWorkerInfoCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[27]; } + } + + [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 GetWorkerInfoCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetWorkerInfoCommand(GetWorkerInfoCommand other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetWorkerInfoCommand Clone() { + return new GetWorkerInfoCommand(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetWorkerInfoCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetWorkerInfoCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetWorkerInfoCommand other) { + if (other == null) { + return; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DrainEventsCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DrainEventsCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[28]; } + } + + [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 DrainEventsCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DrainEventsCommand(DrainEventsCommand other) : this() { + maxEvents_ = other.maxEvents_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DrainEventsCommand Clone() { + return new DrainEventsCommand(this); + } + + /// Field number for the "max_events" field. + public const int MaxEventsFieldNumber = 1; + private uint maxEvents_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxEvents { + get { return maxEvents_; } + set { + maxEvents_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DrainEventsCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DrainEventsCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxEvents != other.MaxEvents) 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 (MaxEvents != 0) hash ^= MaxEvents.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 (MaxEvents != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MaxEvents); + } + 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 (MaxEvents != 0) { + output.WriteRawTag(8); + output.WriteUInt32(MaxEvents); + } + 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 (MaxEvents != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxEvents); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DrainEventsCommand other) { + if (other == null) { + return; + } + if (other.MaxEvents != 0) { + MaxEvents = other.MaxEvents; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MaxEvents = input.ReadUInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MaxEvents = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ShutdownWorkerCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShutdownWorkerCommand()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[29]; } + } + + [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 ShutdownWorkerCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShutdownWorkerCommand(ShutdownWorkerCommand other) : this() { + gracePeriod_ = other.gracePeriod_ != null ? other.gracePeriod_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ShutdownWorkerCommand Clone() { + return new ShutdownWorkerCommand(this); + } + + /// Field number for the "grace_period" field. + public const int GracePeriodFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration gracePeriod_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration GracePeriod { + get { return gracePeriod_; } + set { + gracePeriod_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ShutdownWorkerCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ShutdownWorkerCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GracePeriod, other.GracePeriod)) 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 (gracePeriod_ != null) hash ^= GracePeriod.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 (gracePeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GracePeriod); + } + 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 (gracePeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GracePeriod); + } + 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 (gracePeriod_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GracePeriod); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ShutdownWorkerCommand other) { + if (other == null) { + return; + } + if (other.gracePeriod_ != null) { + if (gracePeriod_ == null) { + GracePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + GracePeriod.MergeFrom(other.GracePeriod); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (gracePeriod_ == null) { + GracePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(GracePeriod); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (gracePeriod_ == null) { + GracePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(GracePeriod); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MxCommandReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MxCommandReply()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[30]; } + } + + [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 MxCommandReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxCommandReply(MxCommandReply other) : this() { + _hasBits0 = other._hasBits0; + sessionId_ = other.sessionId_; + correlationId_ = other.correlationId_; + kind_ = other.kind_; + protocolStatus_ = other.protocolStatus_ != null ? other.protocolStatus_.Clone() : null; + hresult_ = other.hresult_; + returnValue_ = other.returnValue_ != null ? other.returnValue_.Clone() : null; + statuses_ = other.statuses_.Clone(); + diagnosticMessage_ = other.diagnosticMessage_; + switch (other.PayloadCase) { + case PayloadOneofCase.Register: + Register = other.Register.Clone(); + break; + case PayloadOneofCase.AddItem: + AddItem = other.AddItem.Clone(); + break; + case PayloadOneofCase.AddItem2: + AddItem2 = other.AddItem2.Clone(); + break; + case PayloadOneofCase.AddBufferedItem: + AddBufferedItem = other.AddBufferedItem.Clone(); + break; + case PayloadOneofCase.Suspend: + Suspend = other.Suspend.Clone(); + break; + case PayloadOneofCase.Activate: + Activate = other.Activate.Clone(); + break; + case PayloadOneofCase.AuthenticateUser: + AuthenticateUser = other.AuthenticateUser.Clone(); + break; + case PayloadOneofCase.ArchestraUserToId: + ArchestraUserToId = other.ArchestraUserToId.Clone(); + break; + case PayloadOneofCase.SessionState: + SessionState = other.SessionState.Clone(); + break; + case PayloadOneofCase.WorkerInfo: + WorkerInfo = other.WorkerInfo.Clone(); + break; + case PayloadOneofCase.DrainEvents: + DrainEvents = other.DrainEvents.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxCommandReply Clone() { + return new MxCommandReply(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "correlation_id" field. + public const int CorrelationIdFieldNumber = 2; + private string correlationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CorrelationId { + get { return correlationId_; } + set { + correlationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 3; + private global::MxGateway.Contracts.Proto.MxCommandKind kind_ = global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxCommandKind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + /// Field number for the "protocol_status" field. + public const int ProtocolStatusFieldNumber = 4; + private global::MxGateway.Contracts.Proto.ProtocolStatus protocolStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ProtocolStatus ProtocolStatus { + get { return protocolStatus_; } + set { + protocolStatus_ = value; + } + } + + /// Field number for the "hresult" field. + public const int HresultFieldNumber = 5; + private readonly static int HresultDefaultValue = 0; + + private int hresult_; + /// + /// HRESULT captured from MXAccess or a COM exception. This remains separate + /// from gateway protocol status so MXAccess parity details are not hidden by + /// transport failures. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hresult { + get { if ((_hasBits0 & 1) != 0) { return hresult_; } else { return HresultDefaultValue; } } + set { + _hasBits0 |= 1; + hresult_ = value; + } + } + /// Gets whether the "hresult" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHresult { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "hresult" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHresult() { + _hasBits0 &= ~1; + } + + /// Field number for the "return_value" field. + public const int ReturnValueFieldNumber = 6; + private global::MxGateway.Contracts.Proto.MxValue returnValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue ReturnValue { + get { return returnValue_; } + set { + returnValue_ = value; + } + } + + /// Field number for the "statuses" field. + public const int StatusesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_statuses_codec + = pb::FieldCodec.ForMessage(58, global::MxGateway.Contracts.Proto.MxStatusProxy.Parser); + private readonly pbc::RepeatedField statuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Statuses { + get { return statuses_; } + } + + /// Field number for the "diagnostic_message" field. + public const int DiagnosticMessageFieldNumber = 8; + private string diagnosticMessage_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiagnosticMessage { + get { return diagnosticMessage_; } + set { + diagnosticMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "register" field. + public const int RegisterFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.RegisterReply Register { + get { return payloadCase_ == PayloadOneofCase.Register ? (global::MxGateway.Contracts.Proto.RegisterReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Register; + } + } + + /// Field number for the "add_item" field. + public const int AddItemFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AddItemReply AddItem { + get { return payloadCase_ == PayloadOneofCase.AddItem ? (global::MxGateway.Contracts.Proto.AddItemReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AddItem; + } + } + + /// Field number for the "add_item2" field. + public const int AddItem2FieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AddItem2Reply AddItem2 { + get { return payloadCase_ == PayloadOneofCase.AddItem2 ? (global::MxGateway.Contracts.Proto.AddItem2Reply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AddItem2; + } + } + + /// Field number for the "add_buffered_item" field. + public const int AddBufferedItemFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AddBufferedItemReply AddBufferedItem { + get { return payloadCase_ == PayloadOneofCase.AddBufferedItem ? (global::MxGateway.Contracts.Proto.AddBufferedItemReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AddBufferedItem; + } + } + + /// Field number for the "suspend" field. + public const int SuspendFieldNumber = 24; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.SuspendReply Suspend { + get { return payloadCase_ == PayloadOneofCase.Suspend ? (global::MxGateway.Contracts.Proto.SuspendReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Suspend; + } + } + + /// Field number for the "activate" field. + public const int ActivateFieldNumber = 25; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ActivateReply Activate { + get { return payloadCase_ == PayloadOneofCase.Activate ? (global::MxGateway.Contracts.Proto.ActivateReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.Activate; + } + } + + /// Field number for the "authenticate_user" field. + public const int AuthenticateUserFieldNumber = 26; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.AuthenticateUserReply AuthenticateUser { + get { return payloadCase_ == PayloadOneofCase.AuthenticateUser ? (global::MxGateway.Contracts.Proto.AuthenticateUserReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.AuthenticateUser; + } + } + + /// Field number for the "archestra_user_to_id" field. + public const int ArchestraUserToIdFieldNumber = 27; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply ArchestraUserToId { + get { return payloadCase_ == PayloadOneofCase.ArchestraUserToId ? (global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.ArchestraUserToId; + } + } + + /// Field number for the "session_state" field. + public const int SessionStateFieldNumber = 100; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.SessionStateReply SessionState { + get { return payloadCase_ == PayloadOneofCase.SessionState ? (global::MxGateway.Contracts.Proto.SessionStateReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.SessionState; + } + } + + /// Field number for the "worker_info" field. + public const int WorkerInfoFieldNumber = 101; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerInfoReply WorkerInfo { + get { return payloadCase_ == PayloadOneofCase.WorkerInfo ? (global::MxGateway.Contracts.Proto.WorkerInfoReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.WorkerInfo; + } + } + + /// Field number for the "drain_events" field. + public const int DrainEventsFieldNumber = 102; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.DrainEventsReply DrainEvents { + get { return payloadCase_ == PayloadOneofCase.DrainEvents ? (global::MxGateway.Contracts.Proto.DrainEventsReply) payload_ : null; } + set { + payload_ = value; + payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.DrainEvents; + } + } + + private object payload_; + /// Enum of possible cases for the "payload" oneof. + public enum PayloadOneofCase { + None = 0, + Register = 20, + AddItem = 21, + AddItem2 = 22, + AddBufferedItem = 23, + Suspend = 24, + Activate = 25, + AuthenticateUser = 26, + ArchestraUserToId = 27, + SessionState = 100, + WorkerInfo = 101, + DrainEvents = 102, + } + private PayloadOneofCase payloadCase_ = PayloadOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PayloadOneofCase PayloadCase { + get { return payloadCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayload() { + payloadCase_ = PayloadOneofCase.None; + payload_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MxCommandReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MxCommandReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) return false; + if (CorrelationId != other.CorrelationId) return false; + if (Kind != other.Kind) return false; + if (!object.Equals(ProtocolStatus, other.ProtocolStatus)) return false; + if (Hresult != other.Hresult) return false; + if (!object.Equals(ReturnValue, other.ReturnValue)) return false; + if(!statuses_.Equals(other.statuses_)) return false; + if (DiagnosticMessage != other.DiagnosticMessage) return false; + if (!object.Equals(Register, other.Register)) return false; + if (!object.Equals(AddItem, other.AddItem)) return false; + if (!object.Equals(AddItem2, other.AddItem2)) return false; + if (!object.Equals(AddBufferedItem, other.AddBufferedItem)) return false; + if (!object.Equals(Suspend, other.Suspend)) return false; + if (!object.Equals(Activate, other.Activate)) return false; + if (!object.Equals(AuthenticateUser, other.AuthenticateUser)) return false; + if (!object.Equals(ArchestraUserToId, other.ArchestraUserToId)) return false; + if (!object.Equals(SessionState, other.SessionState)) return false; + if (!object.Equals(WorkerInfo, other.WorkerInfo)) return false; + if (!object.Equals(DrainEvents, other.DrainEvents)) return false; + if (PayloadCase != other.PayloadCase) 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 (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (CorrelationId.Length != 0) hash ^= CorrelationId.GetHashCode(); + if (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) hash ^= Kind.GetHashCode(); + if (protocolStatus_ != null) hash ^= ProtocolStatus.GetHashCode(); + if (HasHresult) hash ^= Hresult.GetHashCode(); + if (returnValue_ != null) hash ^= ReturnValue.GetHashCode(); + hash ^= statuses_.GetHashCode(); + if (DiagnosticMessage.Length != 0) hash ^= DiagnosticMessage.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Register) hash ^= Register.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AddItem) hash ^= AddItem.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AddItem2) hash ^= AddItem2.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) hash ^= AddBufferedItem.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Suspend) hash ^= Suspend.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.Activate) hash ^= Activate.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) hash ^= AuthenticateUser.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) hash ^= ArchestraUserToId.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.SessionState) hash ^= SessionState.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.WorkerInfo) hash ^= WorkerInfo.GetHashCode(); + if (payloadCase_ == PayloadOneofCase.DrainEvents) hash ^= DrainEvents.GetHashCode(); + hash ^= (int) payloadCase_; + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (CorrelationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CorrelationId); + } + if (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) Kind); + } + if (protocolStatus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ProtocolStatus); + } + if (HasHresult) { + output.WriteRawTag(40); + output.WriteInt32(Hresult); + } + if (returnValue_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReturnValue); + } + statuses_.WriteTo(output, _repeated_statuses_codec); + if (DiagnosticMessage.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DiagnosticMessage); + } + if (payloadCase_ == PayloadOneofCase.Register) { + output.WriteRawTag(162, 1); + output.WriteMessage(Register); + } + if (payloadCase_ == PayloadOneofCase.AddItem) { + output.WriteRawTag(170, 1); + output.WriteMessage(AddItem); + } + if (payloadCase_ == PayloadOneofCase.AddItem2) { + output.WriteRawTag(178, 1); + output.WriteMessage(AddItem2); + } + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + output.WriteRawTag(186, 1); + output.WriteMessage(AddBufferedItem); + } + if (payloadCase_ == PayloadOneofCase.Suspend) { + output.WriteRawTag(194, 1); + output.WriteMessage(Suspend); + } + if (payloadCase_ == PayloadOneofCase.Activate) { + output.WriteRawTag(202, 1); + output.WriteMessage(Activate); + } + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + output.WriteRawTag(210, 1); + output.WriteMessage(AuthenticateUser); + } + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + output.WriteRawTag(218, 1); + output.WriteMessage(ArchestraUserToId); + } + if (payloadCase_ == PayloadOneofCase.SessionState) { + output.WriteRawTag(162, 6); + output.WriteMessage(SessionState); + } + if (payloadCase_ == PayloadOneofCase.WorkerInfo) { + output.WriteRawTag(170, 6); + output.WriteMessage(WorkerInfo); + } + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + output.WriteRawTag(178, 6); + output.WriteMessage(DrainEvents); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (CorrelationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CorrelationId); + } + if (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) Kind); + } + if (protocolStatus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ProtocolStatus); + } + if (HasHresult) { + output.WriteRawTag(40); + output.WriteInt32(Hresult); + } + if (returnValue_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ReturnValue); + } + statuses_.WriteTo(ref output, _repeated_statuses_codec); + if (DiagnosticMessage.Length != 0) { + output.WriteRawTag(66); + output.WriteString(DiagnosticMessage); + } + if (payloadCase_ == PayloadOneofCase.Register) { + output.WriteRawTag(162, 1); + output.WriteMessage(Register); + } + if (payloadCase_ == PayloadOneofCase.AddItem) { + output.WriteRawTag(170, 1); + output.WriteMessage(AddItem); + } + if (payloadCase_ == PayloadOneofCase.AddItem2) { + output.WriteRawTag(178, 1); + output.WriteMessage(AddItem2); + } + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + output.WriteRawTag(186, 1); + output.WriteMessage(AddBufferedItem); + } + if (payloadCase_ == PayloadOneofCase.Suspend) { + output.WriteRawTag(194, 1); + output.WriteMessage(Suspend); + } + if (payloadCase_ == PayloadOneofCase.Activate) { + output.WriteRawTag(202, 1); + output.WriteMessage(Activate); + } + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + output.WriteRawTag(210, 1); + output.WriteMessage(AuthenticateUser); + } + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + output.WriteRawTag(218, 1); + output.WriteMessage(ArchestraUserToId); + } + if (payloadCase_ == PayloadOneofCase.SessionState) { + output.WriteRawTag(162, 6); + output.WriteMessage(SessionState); + } + if (payloadCase_ == PayloadOneofCase.WorkerInfo) { + output.WriteRawTag(170, 6); + output.WriteMessage(WorkerInfo); + } + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + output.WriteRawTag(178, 6); + output.WriteMessage(DrainEvents); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (CorrelationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationId); + } + if (Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (protocolStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtocolStatus); + } + if (HasHresult) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hresult); + } + if (returnValue_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReturnValue); + } + size += statuses_.CalculateSize(_repeated_statuses_codec); + if (DiagnosticMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiagnosticMessage); + } + if (payloadCase_ == PayloadOneofCase.Register) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Register); + } + if (payloadCase_ == PayloadOneofCase.AddItem) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AddItem); + } + if (payloadCase_ == PayloadOneofCase.AddItem2) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AddItem2); + } + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AddBufferedItem); + } + if (payloadCase_ == PayloadOneofCase.Suspend) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Suspend); + } + if (payloadCase_ == PayloadOneofCase.Activate) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Activate); + } + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AuthenticateUser); + } + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ArchestraUserToId); + } + if (payloadCase_ == PayloadOneofCase.SessionState) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SessionState); + } + if (payloadCase_ == PayloadOneofCase.WorkerInfo) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkerInfo); + } + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DrainEvents); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MxCommandReply other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.CorrelationId.Length != 0) { + CorrelationId = other.CorrelationId; + } + if (other.Kind != global::MxGateway.Contracts.Proto.MxCommandKind.Unspecified) { + Kind = other.Kind; + } + if (other.protocolStatus_ != null) { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + ProtocolStatus.MergeFrom(other.ProtocolStatus); + } + if (other.HasHresult) { + Hresult = other.Hresult; + } + if (other.returnValue_ != null) { + if (returnValue_ == null) { + ReturnValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + ReturnValue.MergeFrom(other.ReturnValue); + } + statuses_.Add(other.statuses_); + if (other.DiagnosticMessage.Length != 0) { + DiagnosticMessage = other.DiagnosticMessage; + } + switch (other.PayloadCase) { + case PayloadOneofCase.Register: + if (Register == null) { + Register = new global::MxGateway.Contracts.Proto.RegisterReply(); + } + Register.MergeFrom(other.Register); + break; + case PayloadOneofCase.AddItem: + if (AddItem == null) { + AddItem = new global::MxGateway.Contracts.Proto.AddItemReply(); + } + AddItem.MergeFrom(other.AddItem); + break; + case PayloadOneofCase.AddItem2: + if (AddItem2 == null) { + AddItem2 = new global::MxGateway.Contracts.Proto.AddItem2Reply(); + } + AddItem2.MergeFrom(other.AddItem2); + break; + case PayloadOneofCase.AddBufferedItem: + if (AddBufferedItem == null) { + AddBufferedItem = new global::MxGateway.Contracts.Proto.AddBufferedItemReply(); + } + AddBufferedItem.MergeFrom(other.AddBufferedItem); + break; + case PayloadOneofCase.Suspend: + if (Suspend == null) { + Suspend = new global::MxGateway.Contracts.Proto.SuspendReply(); + } + Suspend.MergeFrom(other.Suspend); + break; + case PayloadOneofCase.Activate: + if (Activate == null) { + Activate = new global::MxGateway.Contracts.Proto.ActivateReply(); + } + Activate.MergeFrom(other.Activate); + break; + case PayloadOneofCase.AuthenticateUser: + if (AuthenticateUser == null) { + AuthenticateUser = new global::MxGateway.Contracts.Proto.AuthenticateUserReply(); + } + AuthenticateUser.MergeFrom(other.AuthenticateUser); + break; + case PayloadOneofCase.ArchestraUserToId: + if (ArchestraUserToId == null) { + ArchestraUserToId = new global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply(); + } + ArchestraUserToId.MergeFrom(other.ArchestraUserToId); + break; + case PayloadOneofCase.SessionState: + if (SessionState == null) { + SessionState = new global::MxGateway.Contracts.Proto.SessionStateReply(); + } + SessionState.MergeFrom(other.SessionState); + break; + case PayloadOneofCase.WorkerInfo: + if (WorkerInfo == null) { + WorkerInfo = new global::MxGateway.Contracts.Proto.WorkerInfoReply(); + } + WorkerInfo.MergeFrom(other.WorkerInfo); + break; + case PayloadOneofCase.DrainEvents: + if (DrainEvents == null) { + DrainEvents = new global::MxGateway.Contracts.Proto.DrainEventsReply(); + } + DrainEvents.MergeFrom(other.DrainEvents); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + CorrelationId = input.ReadString(); + break; + } + case 24: { + Kind = (global::MxGateway.Contracts.Proto.MxCommandKind) input.ReadEnum(); + break; + } + case 34: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + break; + } + case 40: { + Hresult = input.ReadInt32(); + break; + } + case 50: { + if (returnValue_ == null) { + ReturnValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(ReturnValue); + break; + } + case 58: { + statuses_.AddEntriesFrom(input, _repeated_statuses_codec); + break; + } + case 66: { + DiagnosticMessage = input.ReadString(); + break; + } + case 162: { + global::MxGateway.Contracts.Proto.RegisterReply subBuilder = new global::MxGateway.Contracts.Proto.RegisterReply(); + if (payloadCase_ == PayloadOneofCase.Register) { + subBuilder.MergeFrom(Register); + } + input.ReadMessage(subBuilder); + Register = subBuilder; + break; + } + case 170: { + global::MxGateway.Contracts.Proto.AddItemReply subBuilder = new global::MxGateway.Contracts.Proto.AddItemReply(); + if (payloadCase_ == PayloadOneofCase.AddItem) { + subBuilder.MergeFrom(AddItem); + } + input.ReadMessage(subBuilder); + AddItem = subBuilder; + break; + } + case 178: { + global::MxGateway.Contracts.Proto.AddItem2Reply subBuilder = new global::MxGateway.Contracts.Proto.AddItem2Reply(); + if (payloadCase_ == PayloadOneofCase.AddItem2) { + subBuilder.MergeFrom(AddItem2); + } + input.ReadMessage(subBuilder); + AddItem2 = subBuilder; + break; + } + case 186: { + global::MxGateway.Contracts.Proto.AddBufferedItemReply subBuilder = new global::MxGateway.Contracts.Proto.AddBufferedItemReply(); + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + subBuilder.MergeFrom(AddBufferedItem); + } + input.ReadMessage(subBuilder); + AddBufferedItem = subBuilder; + break; + } + case 194: { + global::MxGateway.Contracts.Proto.SuspendReply subBuilder = new global::MxGateway.Contracts.Proto.SuspendReply(); + if (payloadCase_ == PayloadOneofCase.Suspend) { + subBuilder.MergeFrom(Suspend); + } + input.ReadMessage(subBuilder); + Suspend = subBuilder; + break; + } + case 202: { + global::MxGateway.Contracts.Proto.ActivateReply subBuilder = new global::MxGateway.Contracts.Proto.ActivateReply(); + if (payloadCase_ == PayloadOneofCase.Activate) { + subBuilder.MergeFrom(Activate); + } + input.ReadMessage(subBuilder); + Activate = subBuilder; + break; + } + case 210: { + global::MxGateway.Contracts.Proto.AuthenticateUserReply subBuilder = new global::MxGateway.Contracts.Proto.AuthenticateUserReply(); + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + subBuilder.MergeFrom(AuthenticateUser); + } + input.ReadMessage(subBuilder); + AuthenticateUser = subBuilder; + break; + } + case 218: { + global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply subBuilder = new global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply(); + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + subBuilder.MergeFrom(ArchestraUserToId); + } + input.ReadMessage(subBuilder); + ArchestraUserToId = subBuilder; + break; + } + case 802: { + global::MxGateway.Contracts.Proto.SessionStateReply subBuilder = new global::MxGateway.Contracts.Proto.SessionStateReply(); + if (payloadCase_ == PayloadOneofCase.SessionState) { + subBuilder.MergeFrom(SessionState); + } + input.ReadMessage(subBuilder); + SessionState = subBuilder; + break; + } + case 810: { + global::MxGateway.Contracts.Proto.WorkerInfoReply subBuilder = new global::MxGateway.Contracts.Proto.WorkerInfoReply(); + if (payloadCase_ == PayloadOneofCase.WorkerInfo) { + subBuilder.MergeFrom(WorkerInfo); + } + input.ReadMessage(subBuilder); + WorkerInfo = subBuilder; + break; + } + case 818: { + global::MxGateway.Contracts.Proto.DrainEventsReply subBuilder = new global::MxGateway.Contracts.Proto.DrainEventsReply(); + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + subBuilder.MergeFrom(DrainEvents); + } + input.ReadMessage(subBuilder); + DrainEvents = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + CorrelationId = input.ReadString(); + break; + } + case 24: { + Kind = (global::MxGateway.Contracts.Proto.MxCommandKind) input.ReadEnum(); + break; + } + case 34: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + break; + } + case 40: { + Hresult = input.ReadInt32(); + break; + } + case 50: { + if (returnValue_ == null) { + ReturnValue = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(ReturnValue); + break; + } + case 58: { + statuses_.AddEntriesFrom(ref input, _repeated_statuses_codec); + break; + } + case 66: { + DiagnosticMessage = input.ReadString(); + break; + } + case 162: { + global::MxGateway.Contracts.Proto.RegisterReply subBuilder = new global::MxGateway.Contracts.Proto.RegisterReply(); + if (payloadCase_ == PayloadOneofCase.Register) { + subBuilder.MergeFrom(Register); + } + input.ReadMessage(subBuilder); + Register = subBuilder; + break; + } + case 170: { + global::MxGateway.Contracts.Proto.AddItemReply subBuilder = new global::MxGateway.Contracts.Proto.AddItemReply(); + if (payloadCase_ == PayloadOneofCase.AddItem) { + subBuilder.MergeFrom(AddItem); + } + input.ReadMessage(subBuilder); + AddItem = subBuilder; + break; + } + case 178: { + global::MxGateway.Contracts.Proto.AddItem2Reply subBuilder = new global::MxGateway.Contracts.Proto.AddItem2Reply(); + if (payloadCase_ == PayloadOneofCase.AddItem2) { + subBuilder.MergeFrom(AddItem2); + } + input.ReadMessage(subBuilder); + AddItem2 = subBuilder; + break; + } + case 186: { + global::MxGateway.Contracts.Proto.AddBufferedItemReply subBuilder = new global::MxGateway.Contracts.Proto.AddBufferedItemReply(); + if (payloadCase_ == PayloadOneofCase.AddBufferedItem) { + subBuilder.MergeFrom(AddBufferedItem); + } + input.ReadMessage(subBuilder); + AddBufferedItem = subBuilder; + break; + } + case 194: { + global::MxGateway.Contracts.Proto.SuspendReply subBuilder = new global::MxGateway.Contracts.Proto.SuspendReply(); + if (payloadCase_ == PayloadOneofCase.Suspend) { + subBuilder.MergeFrom(Suspend); + } + input.ReadMessage(subBuilder); + Suspend = subBuilder; + break; + } + case 202: { + global::MxGateway.Contracts.Proto.ActivateReply subBuilder = new global::MxGateway.Contracts.Proto.ActivateReply(); + if (payloadCase_ == PayloadOneofCase.Activate) { + subBuilder.MergeFrom(Activate); + } + input.ReadMessage(subBuilder); + Activate = subBuilder; + break; + } + case 210: { + global::MxGateway.Contracts.Proto.AuthenticateUserReply subBuilder = new global::MxGateway.Contracts.Proto.AuthenticateUserReply(); + if (payloadCase_ == PayloadOneofCase.AuthenticateUser) { + subBuilder.MergeFrom(AuthenticateUser); + } + input.ReadMessage(subBuilder); + AuthenticateUser = subBuilder; + break; + } + case 218: { + global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply subBuilder = new global::MxGateway.Contracts.Proto.ArchestrAUserToIdReply(); + if (payloadCase_ == PayloadOneofCase.ArchestraUserToId) { + subBuilder.MergeFrom(ArchestraUserToId); + } + input.ReadMessage(subBuilder); + ArchestraUserToId = subBuilder; + break; + } + case 802: { + global::MxGateway.Contracts.Proto.SessionStateReply subBuilder = new global::MxGateway.Contracts.Proto.SessionStateReply(); + if (payloadCase_ == PayloadOneofCase.SessionState) { + subBuilder.MergeFrom(SessionState); + } + input.ReadMessage(subBuilder); + SessionState = subBuilder; + break; + } + case 810: { + global::MxGateway.Contracts.Proto.WorkerInfoReply subBuilder = new global::MxGateway.Contracts.Proto.WorkerInfoReply(); + if (payloadCase_ == PayloadOneofCase.WorkerInfo) { + subBuilder.MergeFrom(WorkerInfo); + } + input.ReadMessage(subBuilder); + WorkerInfo = subBuilder; + break; + } + case 818: { + global::MxGateway.Contracts.Proto.DrainEventsReply subBuilder = new global::MxGateway.Contracts.Proto.DrainEventsReply(); + if (payloadCase_ == PayloadOneofCase.DrainEvents) { + subBuilder.MergeFrom(DrainEvents); + } + input.ReadMessage(subBuilder); + DrainEvents = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegisterReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[31]; } + } + + [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 RegisterReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterReply(RegisterReply other) : this() { + serverHandle_ = other.serverHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterReply Clone() { + return new RegisterReply(this); + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 1; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegisterReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegisterReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerHandle != other.ServerHandle) 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 (ServerHandle != 0) hash ^= ServerHandle.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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + 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 (ServerHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ServerHandle); + } + 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 (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegisterReply other) { + if (other == null) { + return; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ServerHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddItemReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddItemReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[32]; } + } + + [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 AddItemReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItemReply(AddItemReply other) : this() { + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItemReply Clone() { + return new AddItemReply(this); + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 1; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddItemReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddItemReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemHandle != other.ItemHandle) 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 (ItemHandle != 0) hash ^= ItemHandle.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 (ItemHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ItemHandle); + } + 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 (ItemHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ItemHandle); + } + 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 (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddItemReply other) { + if (other == null) { + return; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddItem2Reply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddItem2Reply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[33]; } + } + + [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 AddItem2Reply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItem2Reply(AddItem2Reply other) : this() { + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddItem2Reply Clone() { + return new AddItem2Reply(this); + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 1; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddItem2Reply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddItem2Reply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemHandle != other.ItemHandle) 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 (ItemHandle != 0) hash ^= ItemHandle.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 (ItemHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ItemHandle); + } + 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 (ItemHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ItemHandle); + } + 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 (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddItem2Reply other) { + if (other == null) { + return; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddBufferedItemReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddBufferedItemReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[34]; } + } + + [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 AddBufferedItemReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddBufferedItemReply(AddBufferedItemReply other) : this() { + itemHandle_ = other.itemHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddBufferedItemReply Clone() { + return new AddBufferedItemReply(this); + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 1; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddBufferedItemReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddBufferedItemReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemHandle != other.ItemHandle) 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 (ItemHandle != 0) hash ^= ItemHandle.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 (ItemHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ItemHandle); + } + 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 (ItemHandle != 0) { + output.WriteRawTag(8); + output.WriteInt32(ItemHandle); + } + 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 (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddBufferedItemReply other) { + if (other == null) { + return; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ItemHandle = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemHandle = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SuspendReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuspendReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[35]; } + } + + [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 SuspendReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SuspendReply(SuspendReply other) : this() { + status_ = other.status_ != null ? other.status_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SuspendReply Clone() { + return new SuspendReply(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxStatusProxy status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxStatusProxy Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SuspendReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SuspendReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Status, other.Status)) 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 (status_ != null) hash ^= Status.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 (status_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Status); + } + 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 (status_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Status); + } + 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 (status_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SuspendReply other) { + if (other == null) { + return; + } + if (other.status_ != null) { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.MxStatusProxy(); + } + Status.MergeFrom(other.Status); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.MxStatusProxy(); + } + input.ReadMessage(Status); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.MxStatusProxy(); + } + input.ReadMessage(Status); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivateReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[36]; } + } + + [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 ActivateReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateReply(ActivateReply other) : this() { + status_ = other.status_ != null ? other.status_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateReply Clone() { + return new ActivateReply(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxStatusProxy status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxStatusProxy Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Status, other.Status)) 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 (status_ != null) hash ^= Status.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 (status_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Status); + } + 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 (status_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Status); + } + 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 (status_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateReply other) { + if (other == null) { + return; + } + if (other.status_ != null) { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.MxStatusProxy(); + } + Status.MergeFrom(other.Status); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.MxStatusProxy(); + } + input.ReadMessage(Status); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.MxStatusProxy(); + } + input.ReadMessage(Status); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AuthenticateUserReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthenticateUserReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[37]; } + } + + [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 AuthenticateUserReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthenticateUserReply(AuthenticateUserReply other) : this() { + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthenticateUserReply Clone() { + return new AuthenticateUserReply(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private int userId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AuthenticateUserReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuthenticateUserReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) 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 (UserId != 0) hash ^= UserId.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 (UserId != 0) { + output.WriteRawTag(8); + output.WriteInt32(UserId); + } + 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 (UserId != 0) { + output.WriteRawTag(8); + output.WriteInt32(UserId); + } + 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 (UserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuthenticateUserReply other) { + if (other == null) { + return; + } + if (other.UserId != 0) { + UserId = other.UserId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UserId = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UserId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ArchestrAUserToIdReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArchestrAUserToIdReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[38]; } + } + + [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 ArchestrAUserToIdReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArchestrAUserToIdReply(ArchestrAUserToIdReply other) : this() { + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ArchestrAUserToIdReply Clone() { + return new ArchestrAUserToIdReply(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private int userId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int UserId { + get { return userId_; } + set { + userId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ArchestrAUserToIdReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ArchestrAUserToIdReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) 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 (UserId != 0) hash ^= UserId.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 (UserId != 0) { + output.WriteRawTag(8); + output.WriteInt32(UserId); + } + 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 (UserId != 0) { + output.WriteRawTag(8); + output.WriteInt32(UserId); + } + 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 (UserId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ArchestrAUserToIdReply other) { + if (other == null) { + return; + } + if (other.UserId != 0) { + UserId = other.UserId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UserId = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UserId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SessionStateReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SessionStateReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[39]; } + } + + [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 SessionStateReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SessionStateReply(SessionStateReply other) : this() { + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SessionStateReply Clone() { + return new SessionStateReply(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private global::MxGateway.Contracts.Proto.SessionState state_ = global::MxGateway.Contracts.Proto.SessionState.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.SessionState State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SessionStateReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SessionStateReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) 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 (State != global::MxGateway.Contracts.Proto.SessionState.Unspecified) hash ^= State.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 (State != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 (State != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) State); + } + 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 (State != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SessionStateReply other) { + if (other == null) { + return; + } + if (other.State != global::MxGateway.Contracts.Proto.SessionState.Unspecified) { + State = other.State; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + State = (global::MxGateway.Contracts.Proto.SessionState) input.ReadEnum(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + State = (global::MxGateway.Contracts.Proto.SessionState) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerInfoReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerInfoReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[40]; } + } + + [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 WorkerInfoReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerInfoReply(WorkerInfoReply other) : this() { + workerProcessId_ = other.workerProcessId_; + workerVersion_ = other.workerVersion_; + mxaccessProgid_ = other.mxaccessProgid_; + mxaccessClsid_ = other.mxaccessClsid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerInfoReply Clone() { + return new WorkerInfoReply(this); + } + + /// Field number for the "worker_process_id" field. + public const int WorkerProcessIdFieldNumber = 1; + private int workerProcessId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorkerProcessId { + get { return workerProcessId_; } + set { + workerProcessId_ = value; + } + } + + /// Field number for the "worker_version" field. + public const int WorkerVersionFieldNumber = 2; + private string workerVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WorkerVersion { + get { return workerVersion_; } + set { + workerVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mxaccess_progid" field. + public const int MxaccessProgidFieldNumber = 3; + private string mxaccessProgid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MxaccessProgid { + get { return mxaccessProgid_; } + set { + mxaccessProgid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mxaccess_clsid" field. + public const int MxaccessClsidFieldNumber = 4; + private string mxaccessClsid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MxaccessClsid { + get { return mxaccessClsid_; } + set { + mxaccessClsid_ = 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 WorkerInfoReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerInfoReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WorkerProcessId != other.WorkerProcessId) return false; + if (WorkerVersion != other.WorkerVersion) return false; + if (MxaccessProgid != other.MxaccessProgid) return false; + if (MxaccessClsid != other.MxaccessClsid) 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 (WorkerProcessId != 0) hash ^= WorkerProcessId.GetHashCode(); + if (WorkerVersion.Length != 0) hash ^= WorkerVersion.GetHashCode(); + if (MxaccessProgid.Length != 0) hash ^= MxaccessProgid.GetHashCode(); + if (MxaccessClsid.Length != 0) hash ^= MxaccessClsid.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 (WorkerProcessId != 0) { + output.WriteRawTag(8); + output.WriteInt32(WorkerProcessId); + } + if (WorkerVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkerVersion); + } + if (MxaccessProgid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MxaccessProgid); + } + if (MxaccessClsid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MxaccessClsid); + } + 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 (WorkerProcessId != 0) { + output.WriteRawTag(8); + output.WriteInt32(WorkerProcessId); + } + if (WorkerVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(WorkerVersion); + } + if (MxaccessProgid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MxaccessProgid); + } + if (MxaccessClsid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MxaccessClsid); + } + 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 (WorkerProcessId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorkerProcessId); + } + if (WorkerVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkerVersion); + } + if (MxaccessProgid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MxaccessProgid); + } + if (MxaccessClsid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MxaccessClsid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerInfoReply other) { + if (other == null) { + return; + } + if (other.WorkerProcessId != 0) { + WorkerProcessId = other.WorkerProcessId; + } + if (other.WorkerVersion.Length != 0) { + WorkerVersion = other.WorkerVersion; + } + if (other.MxaccessProgid.Length != 0) { + MxaccessProgid = other.MxaccessProgid; + } + if (other.MxaccessClsid.Length != 0) { + MxaccessClsid = other.MxaccessClsid; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 18: { + WorkerVersion = input.ReadString(); + break; + } + case 26: { + MxaccessProgid = input.ReadString(); + break; + } + case 34: { + MxaccessClsid = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 18: { + WorkerVersion = input.ReadString(); + break; + } + case 26: { + MxaccessProgid = input.ReadString(); + break; + } + case 34: { + MxaccessClsid = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DrainEventsReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DrainEventsReply()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[41]; } + } + + [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 DrainEventsReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DrainEventsReply(DrainEventsReply other) : this() { + events_ = other.events_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DrainEventsReply Clone() { + return new DrainEventsReply(this); + } + + /// Field number for the "events" field. + public const int EventsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_events_codec + = pb::FieldCodec.ForMessage(10, global::MxGateway.Contracts.Proto.MxEvent.Parser); + private readonly pbc::RepeatedField events_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Events { + get { return events_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DrainEventsReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DrainEventsReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!events_.Equals(other.events_)) 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 ^= events_.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 + events_.WriteTo(output, _repeated_events_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) { + events_.WriteTo(ref output, _repeated_events_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 += events_.CalculateSize(_repeated_events_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DrainEventsReply other) { + if (other == null) { + return; + } + events_.Add(other.events_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + events_.AddEntriesFrom(input, _repeated_events_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + events_.AddEntriesFrom(ref input, _repeated_events_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MxEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MxEvent()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[42]; } + } + + [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 MxEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxEvent(MxEvent other) : this() { + _hasBits0 = other._hasBits0; + family_ = other.family_; + sessionId_ = other.sessionId_; + serverHandle_ = other.serverHandle_; + itemHandle_ = other.itemHandle_; + value_ = other.value_ != null ? other.value_.Clone() : null; + quality_ = other.quality_; + sourceTimestamp_ = other.sourceTimestamp_ != null ? other.sourceTimestamp_.Clone() : null; + statuses_ = other.statuses_.Clone(); + workerSequence_ = other.workerSequence_; + workerTimestamp_ = other.workerTimestamp_ != null ? other.workerTimestamp_.Clone() : null; + gatewayReceiveTimestamp_ = other.gatewayReceiveTimestamp_ != null ? other.gatewayReceiveTimestamp_.Clone() : null; + hresult_ = other.hresult_; + rawStatus_ = other.rawStatus_; + switch (other.BodyCase) { + case BodyOneofCase.OnDataChange: + OnDataChange = other.OnDataChange.Clone(); + break; + case BodyOneofCase.OnWriteComplete: + OnWriteComplete = other.OnWriteComplete.Clone(); + break; + case BodyOneofCase.OperationComplete: + OperationComplete = other.OperationComplete.Clone(); + break; + case BodyOneofCase.OnBufferedDataChange: + OnBufferedDataChange = other.OnBufferedDataChange.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxEvent Clone() { + return new MxEvent(this); + } + + /// Field number for the "family" field. + public const int FamilyFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxEventFamily family_ = global::MxGateway.Contracts.Proto.MxEventFamily.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxEventFamily Family { + get { return family_; } + set { + family_ = value; + } + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 2; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "server_handle" field. + public const int ServerHandleFieldNumber = 3; + private int serverHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServerHandle { + get { return serverHandle_; } + set { + serverHandle_ = value; + } + } + + /// Field number for the "item_handle" field. + public const int ItemHandleFieldNumber = 4; + private int itemHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemHandle { + get { return itemHandle_; } + set { + itemHandle_ = value; + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 5; + private global::MxGateway.Contracts.Proto.MxValue value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxValue Value { + get { return value_; } + set { + value_ = value; + } + } + + /// Field number for the "quality" field. + public const int QualityFieldNumber = 6; + private int quality_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Quality { + get { return quality_; } + set { + quality_ = value; + } + } + + /// Field number for the "source_timestamp" field. + public const int SourceTimestampFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp sourceTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp SourceTimestamp { + get { return sourceTimestamp_; } + set { + sourceTimestamp_ = value; + } + } + + /// Field number for the "statuses" field. + public const int StatusesFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_statuses_codec + = pb::FieldCodec.ForMessage(66, global::MxGateway.Contracts.Proto.MxStatusProxy.Parser); + private readonly pbc::RepeatedField statuses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Statuses { + get { return statuses_; } + } + + /// Field number for the "worker_sequence" field. + public const int WorkerSequenceFieldNumber = 9; + private ulong workerSequence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong WorkerSequence { + get { return workerSequence_; } + set { + workerSequence_ = value; + } + } + + /// Field number for the "worker_timestamp" field. + public const int WorkerTimestampFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp workerTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp WorkerTimestamp { + get { return workerTimestamp_; } + set { + workerTimestamp_ = value; + } + } + + /// Field number for the "gateway_receive_timestamp" field. + public const int GatewayReceiveTimestampFieldNumber = 11; + private global::Google.Protobuf.WellKnownTypes.Timestamp gatewayReceiveTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp GatewayReceiveTimestamp { + get { return gatewayReceiveTimestamp_; } + set { + gatewayReceiveTimestamp_ = value; + } + } + + /// Field number for the "hresult" field. + public const int HresultFieldNumber = 12; + private readonly static int HresultDefaultValue = 0; + + private int hresult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hresult { + get { if ((_hasBits0 & 1) != 0) { return hresult_; } else { return HresultDefaultValue; } } + set { + _hasBits0 |= 1; + hresult_ = value; + } + } + /// Gets whether the "hresult" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHresult { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "hresult" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHresult() { + _hasBits0 &= ~1; + } + + /// Field number for the "raw_status" field. + public const int RawStatusFieldNumber = 13; + private string rawStatus_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RawStatus { + get { return rawStatus_; } + set { + rawStatus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "on_data_change" field. + public const int OnDataChangeFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.OnDataChangeEvent OnDataChange { + get { return bodyCase_ == BodyOneofCase.OnDataChange ? (global::MxGateway.Contracts.Proto.OnDataChangeEvent) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.OnDataChange; + } + } + + /// Field number for the "on_write_complete" field. + public const int OnWriteCompleteFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.OnWriteCompleteEvent OnWriteComplete { + get { return bodyCase_ == BodyOneofCase.OnWriteComplete ? (global::MxGateway.Contracts.Proto.OnWriteCompleteEvent) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.OnWriteComplete; + } + } + + /// Field number for the "operation_complete" field. + public const int OperationCompleteFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.OperationCompleteEvent OperationComplete { + get { return bodyCase_ == BodyOneofCase.OperationComplete ? (global::MxGateway.Contracts.Proto.OperationCompleteEvent) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.OperationComplete; + } + } + + /// Field number for the "on_buffered_data_change" field. + public const int OnBufferedDataChangeFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent OnBufferedDataChange { + get { return bodyCase_ == BodyOneofCase.OnBufferedDataChange ? (global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.OnBufferedDataChange; + } + } + + private object body_; + /// Enum of possible cases for the "body" oneof. + public enum BodyOneofCase { + None = 0, + OnDataChange = 20, + OnWriteComplete = 21, + OperationComplete = 22, + OnBufferedDataChange = 23, + } + private BodyOneofCase bodyCase_ = BodyOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyOneofCase BodyCase { + get { return bodyCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBody() { + bodyCase_ = BodyOneofCase.None; + body_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MxEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MxEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Family != other.Family) return false; + if (SessionId != other.SessionId) return false; + if (ServerHandle != other.ServerHandle) return false; + if (ItemHandle != other.ItemHandle) return false; + if (!object.Equals(Value, other.Value)) return false; + if (Quality != other.Quality) return false; + if (!object.Equals(SourceTimestamp, other.SourceTimestamp)) return false; + if(!statuses_.Equals(other.statuses_)) return false; + if (WorkerSequence != other.WorkerSequence) return false; + if (!object.Equals(WorkerTimestamp, other.WorkerTimestamp)) return false; + if (!object.Equals(GatewayReceiveTimestamp, other.GatewayReceiveTimestamp)) return false; + if (Hresult != other.Hresult) return false; + if (RawStatus != other.RawStatus) return false; + if (!object.Equals(OnDataChange, other.OnDataChange)) return false; + if (!object.Equals(OnWriteComplete, other.OnWriteComplete)) return false; + if (!object.Equals(OperationComplete, other.OperationComplete)) return false; + if (!object.Equals(OnBufferedDataChange, other.OnBufferedDataChange)) return false; + if (BodyCase != other.BodyCase) 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 (Family != global::MxGateway.Contracts.Proto.MxEventFamily.Unspecified) hash ^= Family.GetHashCode(); + if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (ServerHandle != 0) hash ^= ServerHandle.GetHashCode(); + if (ItemHandle != 0) hash ^= ItemHandle.GetHashCode(); + if (value_ != null) hash ^= Value.GetHashCode(); + if (Quality != 0) hash ^= Quality.GetHashCode(); + if (sourceTimestamp_ != null) hash ^= SourceTimestamp.GetHashCode(); + hash ^= statuses_.GetHashCode(); + if (WorkerSequence != 0UL) hash ^= WorkerSequence.GetHashCode(); + if (workerTimestamp_ != null) hash ^= WorkerTimestamp.GetHashCode(); + if (gatewayReceiveTimestamp_ != null) hash ^= GatewayReceiveTimestamp.GetHashCode(); + if (HasHresult) hash ^= Hresult.GetHashCode(); + if (RawStatus.Length != 0) hash ^= RawStatus.GetHashCode(); + if (bodyCase_ == BodyOneofCase.OnDataChange) hash ^= OnDataChange.GetHashCode(); + if (bodyCase_ == BodyOneofCase.OnWriteComplete) hash ^= OnWriteComplete.GetHashCode(); + if (bodyCase_ == BodyOneofCase.OperationComplete) hash ^= OperationComplete.GetHashCode(); + if (bodyCase_ == BodyOneofCase.OnBufferedDataChange) hash ^= OnBufferedDataChange.GetHashCode(); + hash ^= (int) bodyCase_; + 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 (Family != global::MxGateway.Contracts.Proto.MxEventFamily.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Family); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } + if (ServerHandle != 0) { + output.WriteRawTag(24); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(32); + output.WriteInt32(ItemHandle); + } + if (value_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Value); + } + if (Quality != 0) { + output.WriteRawTag(48); + output.WriteInt32(Quality); + } + if (sourceTimestamp_ != null) { + output.WriteRawTag(58); + output.WriteMessage(SourceTimestamp); + } + statuses_.WriteTo(output, _repeated_statuses_codec); + if (WorkerSequence != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(WorkerSequence); + } + if (workerTimestamp_ != null) { + output.WriteRawTag(82); + output.WriteMessage(WorkerTimestamp); + } + if (gatewayReceiveTimestamp_ != null) { + output.WriteRawTag(90); + output.WriteMessage(GatewayReceiveTimestamp); + } + if (HasHresult) { + output.WriteRawTag(96); + output.WriteInt32(Hresult); + } + if (RawStatus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(RawStatus); + } + if (bodyCase_ == BodyOneofCase.OnDataChange) { + output.WriteRawTag(162, 1); + output.WriteMessage(OnDataChange); + } + if (bodyCase_ == BodyOneofCase.OnWriteComplete) { + output.WriteRawTag(170, 1); + output.WriteMessage(OnWriteComplete); + } + if (bodyCase_ == BodyOneofCase.OperationComplete) { + output.WriteRawTag(178, 1); + output.WriteMessage(OperationComplete); + } + if (bodyCase_ == BodyOneofCase.OnBufferedDataChange) { + output.WriteRawTag(186, 1); + output.WriteMessage(OnBufferedDataChange); + } + 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 (Family != global::MxGateway.Contracts.Proto.MxEventFamily.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Family); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } + if (ServerHandle != 0) { + output.WriteRawTag(24); + output.WriteInt32(ServerHandle); + } + if (ItemHandle != 0) { + output.WriteRawTag(32); + output.WriteInt32(ItemHandle); + } + if (value_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Value); + } + if (Quality != 0) { + output.WriteRawTag(48); + output.WriteInt32(Quality); + } + if (sourceTimestamp_ != null) { + output.WriteRawTag(58); + output.WriteMessage(SourceTimestamp); + } + statuses_.WriteTo(ref output, _repeated_statuses_codec); + if (WorkerSequence != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(WorkerSequence); + } + if (workerTimestamp_ != null) { + output.WriteRawTag(82); + output.WriteMessage(WorkerTimestamp); + } + if (gatewayReceiveTimestamp_ != null) { + output.WriteRawTag(90); + output.WriteMessage(GatewayReceiveTimestamp); + } + if (HasHresult) { + output.WriteRawTag(96); + output.WriteInt32(Hresult); + } + if (RawStatus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(RawStatus); + } + if (bodyCase_ == BodyOneofCase.OnDataChange) { + output.WriteRawTag(162, 1); + output.WriteMessage(OnDataChange); + } + if (bodyCase_ == BodyOneofCase.OnWriteComplete) { + output.WriteRawTag(170, 1); + output.WriteMessage(OnWriteComplete); + } + if (bodyCase_ == BodyOneofCase.OperationComplete) { + output.WriteRawTag(178, 1); + output.WriteMessage(OperationComplete); + } + if (bodyCase_ == BodyOneofCase.OnBufferedDataChange) { + output.WriteRawTag(186, 1); + output.WriteMessage(OnBufferedDataChange); + } + 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 (Family != global::MxGateway.Contracts.Proto.MxEventFamily.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Family); + } + if (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (ServerHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerHandle); + } + if (ItemHandle != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemHandle); + } + if (value_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); + } + if (Quality != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quality); + } + if (sourceTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceTimestamp); + } + size += statuses_.CalculateSize(_repeated_statuses_codec); + if (WorkerSequence != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(WorkerSequence); + } + if (workerTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerTimestamp); + } + if (gatewayReceiveTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayReceiveTimestamp); + } + if (HasHresult) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hresult); + } + if (RawStatus.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RawStatus); + } + if (bodyCase_ == BodyOneofCase.OnDataChange) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(OnDataChange); + } + if (bodyCase_ == BodyOneofCase.OnWriteComplete) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(OnWriteComplete); + } + if (bodyCase_ == BodyOneofCase.OperationComplete) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(OperationComplete); + } + if (bodyCase_ == BodyOneofCase.OnBufferedDataChange) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(OnBufferedDataChange); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MxEvent other) { + if (other == null) { + return; + } + if (other.Family != global::MxGateway.Contracts.Proto.MxEventFamily.Unspecified) { + Family = other.Family; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.ServerHandle != 0) { + ServerHandle = other.ServerHandle; + } + if (other.ItemHandle != 0) { + ItemHandle = other.ItemHandle; + } + if (other.value_ != null) { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + Value.MergeFrom(other.Value); + } + if (other.Quality != 0) { + Quality = other.Quality; + } + if (other.sourceTimestamp_ != null) { + if (sourceTimestamp_ == null) { + SourceTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + SourceTimestamp.MergeFrom(other.SourceTimestamp); + } + statuses_.Add(other.statuses_); + if (other.WorkerSequence != 0UL) { + WorkerSequence = other.WorkerSequence; + } + if (other.workerTimestamp_ != null) { + if (workerTimestamp_ == null) { + WorkerTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + WorkerTimestamp.MergeFrom(other.WorkerTimestamp); + } + if (other.gatewayReceiveTimestamp_ != null) { + if (gatewayReceiveTimestamp_ == null) { + GatewayReceiveTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + GatewayReceiveTimestamp.MergeFrom(other.GatewayReceiveTimestamp); + } + if (other.HasHresult) { + Hresult = other.Hresult; + } + if (other.RawStatus.Length != 0) { + RawStatus = other.RawStatus; + } + switch (other.BodyCase) { + case BodyOneofCase.OnDataChange: + if (OnDataChange == null) { + OnDataChange = new global::MxGateway.Contracts.Proto.OnDataChangeEvent(); + } + OnDataChange.MergeFrom(other.OnDataChange); + break; + case BodyOneofCase.OnWriteComplete: + if (OnWriteComplete == null) { + OnWriteComplete = new global::MxGateway.Contracts.Proto.OnWriteCompleteEvent(); + } + OnWriteComplete.MergeFrom(other.OnWriteComplete); + break; + case BodyOneofCase.OperationComplete: + if (OperationComplete == null) { + OperationComplete = new global::MxGateway.Contracts.Proto.OperationCompleteEvent(); + } + OperationComplete.MergeFrom(other.OperationComplete); + break; + case BodyOneofCase.OnBufferedDataChange: + if (OnBufferedDataChange == null) { + OnBufferedDataChange = new global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent(); + } + OnBufferedDataChange.MergeFrom(other.OnBufferedDataChange); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Family = (global::MxGateway.Contracts.Proto.MxEventFamily) input.ReadEnum(); + break; + } + case 18: { + SessionId = input.ReadString(); + break; + } + case 24: { + ServerHandle = input.ReadInt32(); + break; + } + case 32: { + ItemHandle = input.ReadInt32(); + break; + } + case 42: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 48: { + Quality = input.ReadInt32(); + break; + } + case 58: { + if (sourceTimestamp_ == null) { + SourceTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SourceTimestamp); + break; + } + case 66: { + statuses_.AddEntriesFrom(input, _repeated_statuses_codec); + break; + } + case 72: { + WorkerSequence = input.ReadUInt64(); + break; + } + case 82: { + if (workerTimestamp_ == null) { + WorkerTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(WorkerTimestamp); + break; + } + case 90: { + if (gatewayReceiveTimestamp_ == null) { + GatewayReceiveTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(GatewayReceiveTimestamp); + break; + } + case 96: { + Hresult = input.ReadInt32(); + break; + } + case 106: { + RawStatus = input.ReadString(); + break; + } + case 162: { + global::MxGateway.Contracts.Proto.OnDataChangeEvent subBuilder = new global::MxGateway.Contracts.Proto.OnDataChangeEvent(); + if (bodyCase_ == BodyOneofCase.OnDataChange) { + subBuilder.MergeFrom(OnDataChange); + } + input.ReadMessage(subBuilder); + OnDataChange = subBuilder; + break; + } + case 170: { + global::MxGateway.Contracts.Proto.OnWriteCompleteEvent subBuilder = new global::MxGateway.Contracts.Proto.OnWriteCompleteEvent(); + if (bodyCase_ == BodyOneofCase.OnWriteComplete) { + subBuilder.MergeFrom(OnWriteComplete); + } + input.ReadMessage(subBuilder); + OnWriteComplete = subBuilder; + break; + } + case 178: { + global::MxGateway.Contracts.Proto.OperationCompleteEvent subBuilder = new global::MxGateway.Contracts.Proto.OperationCompleteEvent(); + if (bodyCase_ == BodyOneofCase.OperationComplete) { + subBuilder.MergeFrom(OperationComplete); + } + input.ReadMessage(subBuilder); + OperationComplete = subBuilder; + break; + } + case 186: { + global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent subBuilder = new global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent(); + if (bodyCase_ == BodyOneofCase.OnBufferedDataChange) { + subBuilder.MergeFrom(OnBufferedDataChange); + } + input.ReadMessage(subBuilder); + OnBufferedDataChange = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Family = (global::MxGateway.Contracts.Proto.MxEventFamily) input.ReadEnum(); + break; + } + case 18: { + SessionId = input.ReadString(); + break; + } + case 24: { + ServerHandle = input.ReadInt32(); + break; + } + case 32: { + ItemHandle = input.ReadInt32(); + break; + } + case 42: { + if (value_ == null) { + Value = new global::MxGateway.Contracts.Proto.MxValue(); + } + input.ReadMessage(Value); + break; + } + case 48: { + Quality = input.ReadInt32(); + break; + } + case 58: { + if (sourceTimestamp_ == null) { + SourceTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(SourceTimestamp); + break; + } + case 66: { + statuses_.AddEntriesFrom(ref input, _repeated_statuses_codec); + break; + } + case 72: { + WorkerSequence = input.ReadUInt64(); + break; + } + case 82: { + if (workerTimestamp_ == null) { + WorkerTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(WorkerTimestamp); + break; + } + case 90: { + if (gatewayReceiveTimestamp_ == null) { + GatewayReceiveTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(GatewayReceiveTimestamp); + break; + } + case 96: { + Hresult = input.ReadInt32(); + break; + } + case 106: { + RawStatus = input.ReadString(); + break; + } + case 162: { + global::MxGateway.Contracts.Proto.OnDataChangeEvent subBuilder = new global::MxGateway.Contracts.Proto.OnDataChangeEvent(); + if (bodyCase_ == BodyOneofCase.OnDataChange) { + subBuilder.MergeFrom(OnDataChange); + } + input.ReadMessage(subBuilder); + OnDataChange = subBuilder; + break; + } + case 170: { + global::MxGateway.Contracts.Proto.OnWriteCompleteEvent subBuilder = new global::MxGateway.Contracts.Proto.OnWriteCompleteEvent(); + if (bodyCase_ == BodyOneofCase.OnWriteComplete) { + subBuilder.MergeFrom(OnWriteComplete); + } + input.ReadMessage(subBuilder); + OnWriteComplete = subBuilder; + break; + } + case 178: { + global::MxGateway.Contracts.Proto.OperationCompleteEvent subBuilder = new global::MxGateway.Contracts.Proto.OperationCompleteEvent(); + if (bodyCase_ == BodyOneofCase.OperationComplete) { + subBuilder.MergeFrom(OperationComplete); + } + input.ReadMessage(subBuilder); + OperationComplete = subBuilder; + break; + } + case 186: { + global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent subBuilder = new global::MxGateway.Contracts.Proto.OnBufferedDataChangeEvent(); + if (bodyCase_ == BodyOneofCase.OnBufferedDataChange) { + subBuilder.MergeFrom(OnBufferedDataChange); + } + input.ReadMessage(subBuilder); + OnBufferedDataChange = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OnDataChangeEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OnDataChangeEvent()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[43]; } + } + + [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 OnDataChangeEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnDataChangeEvent(OnDataChangeEvent other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnDataChangeEvent Clone() { + return new OnDataChangeEvent(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OnDataChangeEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OnDataChangeEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OnDataChangeEvent other) { + if (other == null) { + return; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OnWriteCompleteEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OnWriteCompleteEvent()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[44]; } + } + + [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 OnWriteCompleteEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnWriteCompleteEvent(OnWriteCompleteEvent other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnWriteCompleteEvent Clone() { + return new OnWriteCompleteEvent(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OnWriteCompleteEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OnWriteCompleteEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OnWriteCompleteEvent other) { + if (other == null) { + return; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OperationCompleteEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OperationCompleteEvent()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[45]; } + } + + [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 OperationCompleteEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationCompleteEvent(OperationCompleteEvent other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationCompleteEvent Clone() { + return new OperationCompleteEvent(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OperationCompleteEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OperationCompleteEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OperationCompleteEvent other) { + if (other == null) { + return; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OnBufferedDataChangeEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OnBufferedDataChangeEvent()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[46]; } + } + + [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 OnBufferedDataChangeEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnBufferedDataChangeEvent(OnBufferedDataChangeEvent other) : this() { + dataType_ = other.dataType_; + qualityValues_ = other.qualityValues_ != null ? other.qualityValues_.Clone() : null; + timestampValues_ = other.timestampValues_ != null ? other.timestampValues_.Clone() : null; + rawDataType_ = other.rawDataType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OnBufferedDataChangeEvent Clone() { + return new OnBufferedDataChangeEvent(this); + } + + /// Field number for the "data_type" field. + public const int DataTypeFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxDataType dataType_ = global::MxGateway.Contracts.Proto.MxDataType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxDataType DataType { + get { return dataType_; } + set { + dataType_ = value; + } + } + + /// Field number for the "quality_values" field. + public const int QualityValuesFieldNumber = 2; + private global::MxGateway.Contracts.Proto.MxArray qualityValues_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxArray QualityValues { + get { return qualityValues_; } + set { + qualityValues_ = value; + } + } + + /// Field number for the "timestamp_values" field. + public const int TimestampValuesFieldNumber = 3; + private global::MxGateway.Contracts.Proto.MxArray timestampValues_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxArray TimestampValues { + get { return timestampValues_; } + set { + timestampValues_ = value; + } + } + + /// Field number for the "raw_data_type" field. + public const int RawDataTypeFieldNumber = 4; + private int rawDataType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawDataType { + get { return rawDataType_; } + set { + rawDataType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OnBufferedDataChangeEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OnBufferedDataChangeEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DataType != other.DataType) return false; + if (!object.Equals(QualityValues, other.QualityValues)) return false; + if (!object.Equals(TimestampValues, other.TimestampValues)) return false; + if (RawDataType != other.RawDataType) 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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) hash ^= DataType.GetHashCode(); + if (qualityValues_ != null) hash ^= QualityValues.GetHashCode(); + if (timestampValues_ != null) hash ^= TimestampValues.GetHashCode(); + if (RawDataType != 0) hash ^= RawDataType.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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) DataType); + } + if (qualityValues_ != null) { + output.WriteRawTag(18); + output.WriteMessage(QualityValues); + } + if (timestampValues_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TimestampValues); + } + if (RawDataType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RawDataType); + } + 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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) DataType); + } + if (qualityValues_ != null) { + output.WriteRawTag(18); + output.WriteMessage(QualityValues); + } + if (timestampValues_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TimestampValues); + } + if (RawDataType != 0) { + output.WriteRawTag(32); + output.WriteInt32(RawDataType); + } + 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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataType); + } + if (qualityValues_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(QualityValues); + } + if (timestampValues_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampValues); + } + if (RawDataType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawDataType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OnBufferedDataChangeEvent other) { + if (other == null) { + return; + } + if (other.DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + DataType = other.DataType; + } + if (other.qualityValues_ != null) { + if (qualityValues_ == null) { + QualityValues = new global::MxGateway.Contracts.Proto.MxArray(); + } + QualityValues.MergeFrom(other.QualityValues); + } + if (other.timestampValues_ != null) { + if (timestampValues_ == null) { + TimestampValues = new global::MxGateway.Contracts.Proto.MxArray(); + } + TimestampValues.MergeFrom(other.TimestampValues); + } + if (other.RawDataType != 0) { + RawDataType = other.RawDataType; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DataType = (global::MxGateway.Contracts.Proto.MxDataType) input.ReadEnum(); + break; + } + case 18: { + if (qualityValues_ == null) { + QualityValues = new global::MxGateway.Contracts.Proto.MxArray(); + } + input.ReadMessage(QualityValues); + break; + } + case 26: { + if (timestampValues_ == null) { + TimestampValues = new global::MxGateway.Contracts.Proto.MxArray(); + } + input.ReadMessage(TimestampValues); + break; + } + case 32: { + RawDataType = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DataType = (global::MxGateway.Contracts.Proto.MxDataType) input.ReadEnum(); + break; + } + case 18: { + if (qualityValues_ == null) { + QualityValues = new global::MxGateway.Contracts.Proto.MxArray(); + } + input.ReadMessage(QualityValues); + break; + } + case 26: { + if (timestampValues_ == null) { + TimestampValues = new global::MxGateway.Contracts.Proto.MxArray(); + } + input.ReadMessage(TimestampValues); + break; + } + case 32: { + RawDataType = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MxStatusProxy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MxStatusProxy()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[47]; } + } + + [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 MxStatusProxy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxStatusProxy(MxStatusProxy other) : this() { + success_ = other.success_; + category_ = other.category_; + detectedBy_ = other.detectedBy_; + detail_ = other.detail_; + rawCategory_ = other.rawCategory_; + rawDetectedBy_ = other.rawDetectedBy_; + diagnosticText_ = other.diagnosticText_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxStatusProxy Clone() { + return new MxStatusProxy(this); + } + + /// Field number for the "success" field. + public const int SuccessFieldNumber = 1; + private int success_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Success { + get { return success_; } + set { + success_ = value; + } + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 2; + private global::MxGateway.Contracts.Proto.MxStatusCategory category_ = global::MxGateway.Contracts.Proto.MxStatusCategory.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxStatusCategory Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "detected_by" field. + public const int DetectedByFieldNumber = 3; + private global::MxGateway.Contracts.Proto.MxStatusSource detectedBy_ = global::MxGateway.Contracts.Proto.MxStatusSource.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxStatusSource DetectedBy { + get { return detectedBy_; } + set { + detectedBy_ = value; + } + } + + /// Field number for the "detail" field. + public const int DetailFieldNumber = 4; + private int detail_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Detail { + get { return detail_; } + set { + detail_ = value; + } + } + + /// Field number for the "raw_category" field. + public const int RawCategoryFieldNumber = 5; + private int rawCategory_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawCategory { + get { return rawCategory_; } + set { + rawCategory_ = value; + } + } + + /// Field number for the "raw_detected_by" field. + public const int RawDetectedByFieldNumber = 6; + private int rawDetectedBy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawDetectedBy { + get { return rawDetectedBy_; } + set { + rawDetectedBy_ = value; + } + } + + /// Field number for the "diagnostic_text" field. + public const int DiagnosticTextFieldNumber = 7; + private string diagnosticText_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiagnosticText { + get { return diagnosticText_; } + set { + diagnosticText_ = 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 MxStatusProxy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MxStatusProxy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Success != other.Success) return false; + if (Category != other.Category) return false; + if (DetectedBy != other.DetectedBy) return false; + if (Detail != other.Detail) return false; + if (RawCategory != other.RawCategory) return false; + if (RawDetectedBy != other.RawDetectedBy) return false; + if (DiagnosticText != other.DiagnosticText) 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 (Success != 0) hash ^= Success.GetHashCode(); + if (Category != global::MxGateway.Contracts.Proto.MxStatusCategory.Unspecified) hash ^= Category.GetHashCode(); + if (DetectedBy != global::MxGateway.Contracts.Proto.MxStatusSource.Unspecified) hash ^= DetectedBy.GetHashCode(); + if (Detail != 0) hash ^= Detail.GetHashCode(); + if (RawCategory != 0) hash ^= RawCategory.GetHashCode(); + if (RawDetectedBy != 0) hash ^= RawDetectedBy.GetHashCode(); + if (DiagnosticText.Length != 0) hash ^= DiagnosticText.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 (Success != 0) { + output.WriteRawTag(8); + output.WriteInt32(Success); + } + if (Category != global::MxGateway.Contracts.Proto.MxStatusCategory.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Category); + } + if (DetectedBy != global::MxGateway.Contracts.Proto.MxStatusSource.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) DetectedBy); + } + if (Detail != 0) { + output.WriteRawTag(32); + output.WriteInt32(Detail); + } + if (RawCategory != 0) { + output.WriteRawTag(40); + output.WriteInt32(RawCategory); + } + if (RawDetectedBy != 0) { + output.WriteRawTag(48); + output.WriteInt32(RawDetectedBy); + } + if (DiagnosticText.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DiagnosticText); + } + 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 (Success != 0) { + output.WriteRawTag(8); + output.WriteInt32(Success); + } + if (Category != global::MxGateway.Contracts.Proto.MxStatusCategory.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Category); + } + if (DetectedBy != global::MxGateway.Contracts.Proto.MxStatusSource.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) DetectedBy); + } + if (Detail != 0) { + output.WriteRawTag(32); + output.WriteInt32(Detail); + } + if (RawCategory != 0) { + output.WriteRawTag(40); + output.WriteInt32(RawCategory); + } + if (RawDetectedBy != 0) { + output.WriteRawTag(48); + output.WriteInt32(RawDetectedBy); + } + if (DiagnosticText.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DiagnosticText); + } + 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 (Success != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Success); + } + if (Category != global::MxGateway.Contracts.Proto.MxStatusCategory.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); + } + if (DetectedBy != global::MxGateway.Contracts.Proto.MxStatusSource.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DetectedBy); + } + if (Detail != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Detail); + } + if (RawCategory != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawCategory); + } + if (RawDetectedBy != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawDetectedBy); + } + if (DiagnosticText.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiagnosticText); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MxStatusProxy other) { + if (other == null) { + return; + } + if (other.Success != 0) { + Success = other.Success; + } + if (other.Category != global::MxGateway.Contracts.Proto.MxStatusCategory.Unspecified) { + Category = other.Category; + } + if (other.DetectedBy != global::MxGateway.Contracts.Proto.MxStatusSource.Unspecified) { + DetectedBy = other.DetectedBy; + } + if (other.Detail != 0) { + Detail = other.Detail; + } + if (other.RawCategory != 0) { + RawCategory = other.RawCategory; + } + if (other.RawDetectedBy != 0) { + RawDetectedBy = other.RawDetectedBy; + } + if (other.DiagnosticText.Length != 0) { + DiagnosticText = other.DiagnosticText; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Success = input.ReadInt32(); + break; + } + case 16: { + Category = (global::MxGateway.Contracts.Proto.MxStatusCategory) input.ReadEnum(); + break; + } + case 24: { + DetectedBy = (global::MxGateway.Contracts.Proto.MxStatusSource) input.ReadEnum(); + break; + } + case 32: { + Detail = input.ReadInt32(); + break; + } + case 40: { + RawCategory = input.ReadInt32(); + break; + } + case 48: { + RawDetectedBy = input.ReadInt32(); + break; + } + case 58: { + DiagnosticText = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Success = input.ReadInt32(); + break; + } + case 16: { + Category = (global::MxGateway.Contracts.Proto.MxStatusCategory) input.ReadEnum(); + break; + } + case 24: { + DetectedBy = (global::MxGateway.Contracts.Proto.MxStatusSource) input.ReadEnum(); + break; + } + case 32: { + Detail = input.ReadInt32(); + break; + } + case 40: { + RawCategory = input.ReadInt32(); + break; + } + case 48: { + RawDetectedBy = input.ReadInt32(); + break; + } + case 58: { + DiagnosticText = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MxValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MxValue()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[48]; } + } + + [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 MxValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxValue(MxValue other) : this() { + dataType_ = other.dataType_; + variantType_ = other.variantType_; + isNull_ = other.isNull_; + rawDiagnostic_ = other.rawDiagnostic_; + rawDataType_ = other.rawDataType_; + switch (other.KindCase) { + case KindOneofCase.BoolValue: + BoolValue = other.BoolValue; + break; + case KindOneofCase.Int32Value: + Int32Value = other.Int32Value; + break; + case KindOneofCase.Int64Value: + Int64Value = other.Int64Value; + break; + case KindOneofCase.FloatValue: + FloatValue = other.FloatValue; + break; + case KindOneofCase.DoubleValue: + DoubleValue = other.DoubleValue; + break; + case KindOneofCase.StringValue: + StringValue = other.StringValue; + break; + case KindOneofCase.TimestampValue: + TimestampValue = other.TimestampValue.Clone(); + break; + case KindOneofCase.ArrayValue: + ArrayValue = other.ArrayValue.Clone(); + break; + case KindOneofCase.RawValue: + RawValue = other.RawValue; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxValue Clone() { + return new MxValue(this); + } + + /// Field number for the "data_type" field. + public const int DataTypeFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxDataType dataType_ = global::MxGateway.Contracts.Proto.MxDataType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxDataType DataType { + get { return dataType_; } + set { + dataType_ = value; + } + } + + /// Field number for the "variant_type" field. + public const int VariantTypeFieldNumber = 2; + private string variantType_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VariantType { + get { return variantType_; } + set { + variantType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_null" field. + public const int IsNullFieldNumber = 3; + private bool isNull_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsNull { + get { return isNull_; } + set { + isNull_ = value; + } + } + + /// Field number for the "raw_diagnostic" field. + public const int RawDiagnosticFieldNumber = 4; + private string rawDiagnostic_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RawDiagnostic { + get { return rawDiagnostic_; } + set { + rawDiagnostic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "raw_data_type" field. + public const int RawDataTypeFieldNumber = 5; + private int rawDataType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawDataType { + get { return rawDataType_; } + set { + rawDataType_ = value; + } + } + + /// Field number for the "bool_value" field. + public const int BoolValueFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool BoolValue { + get { return HasBoolValue ? (bool) kind_ : false; } + set { + kind_ = value; + kindCase_ = KindOneofCase.BoolValue; + } + } + /// Gets whether the "bool_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBoolValue { + get { return kindCase_ == KindOneofCase.BoolValue; } + } + /// Clears the value of the oneof if it's currently set to "bool_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBoolValue() { + if (HasBoolValue) { + ClearKind(); + } + } + + /// Field number for the "int32_value" field. + public const int Int32ValueFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Int32Value { + get { return HasInt32Value ? (int) kind_ : 0; } + set { + kind_ = value; + kindCase_ = KindOneofCase.Int32Value; + } + } + /// Gets whether the "int32_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInt32Value { + get { return kindCase_ == KindOneofCase.Int32Value; } + } + /// Clears the value of the oneof if it's currently set to "int32_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInt32Value() { + if (HasInt32Value) { + ClearKind(); + } + } + + /// Field number for the "int64_value" field. + public const int Int64ValueFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Int64Value { + get { return HasInt64Value ? (long) kind_ : 0L; } + set { + kind_ = value; + kindCase_ = KindOneofCase.Int64Value; + } + } + /// Gets whether the "int64_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInt64Value { + get { return kindCase_ == KindOneofCase.Int64Value; } + } + /// Clears the value of the oneof if it's currently set to "int64_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInt64Value() { + if (HasInt64Value) { + ClearKind(); + } + } + + /// Field number for the "float_value" field. + public const int FloatValueFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FloatValue { + get { return HasFloatValue ? (float) kind_ : 0F; } + set { + kind_ = value; + kindCase_ = KindOneofCase.FloatValue; + } + } + /// Gets whether the "float_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFloatValue { + get { return kindCase_ == KindOneofCase.FloatValue; } + } + /// Clears the value of the oneof if it's currently set to "float_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFloatValue() { + if (HasFloatValue) { + ClearKind(); + } + } + + /// Field number for the "double_value" field. + public const int DoubleValueFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DoubleValue { + get { return HasDoubleValue ? (double) kind_ : 0D; } + set { + kind_ = value; + kindCase_ = KindOneofCase.DoubleValue; + } + } + /// Gets whether the "double_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDoubleValue { + get { return kindCase_ == KindOneofCase.DoubleValue; } + } + /// Clears the value of the oneof if it's currently set to "double_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDoubleValue() { + if (HasDoubleValue) { + ClearKind(); + } + } + + /// Field number for the "string_value" field. + public const int StringValueFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StringValue { + get { return HasStringValue ? (string) kind_ : ""; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + kindCase_ = KindOneofCase.StringValue; + } + } + /// Gets whether the "string_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStringValue { + get { return kindCase_ == KindOneofCase.StringValue; } + } + /// Clears the value of the oneof if it's currently set to "string_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStringValue() { + if (HasStringValue) { + ClearKind(); + } + } + + /// Field number for the "timestamp_value" field. + public const int TimestampValueFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampValue { + get { return kindCase_ == KindOneofCase.TimestampValue ? (global::Google.Protobuf.WellKnownTypes.Timestamp) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TimestampValue; + } + } + + /// Field number for the "array_value" field. + public const int ArrayValueFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxArray ArrayValue { + get { return kindCase_ == KindOneofCase.ArrayValue ? (global::MxGateway.Contracts.Proto.MxArray) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ArrayValue; + } + } + + /// Field number for the "raw_value" field. + public const int RawValueFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RawValue { + get { return HasRawValue ? (pb::ByteString) kind_ : pb::ByteString.Empty; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + kindCase_ = KindOneofCase.RawValue; + } + } + /// Gets whether the "raw_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRawValue { + get { return kindCase_ == KindOneofCase.RawValue; } + } + /// Clears the value of the oneof if it's currently set to "raw_value" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRawValue() { + if (HasRawValue) { + ClearKind(); + } + } + + private object kind_; + /// Enum of possible cases for the "kind" oneof. + public enum KindOneofCase { + None = 0, + BoolValue = 10, + Int32Value = 11, + Int64Value = 12, + FloatValue = 13, + DoubleValue = 14, + StringValue = 15, + TimestampValue = 16, + ArrayValue = 17, + RawValue = 18, + } + private KindOneofCase kindCase_ = KindOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KindOneofCase KindCase { + get { return kindCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + kindCase_ = KindOneofCase.None; + kind_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MxValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MxValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DataType != other.DataType) return false; + if (VariantType != other.VariantType) return false; + if (IsNull != other.IsNull) return false; + if (RawDiagnostic != other.RawDiagnostic) return false; + if (RawDataType != other.RawDataType) return false; + if (BoolValue != other.BoolValue) return false; + if (Int32Value != other.Int32Value) return false; + if (Int64Value != other.Int64Value) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FloatValue, other.FloatValue)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false; + if (StringValue != other.StringValue) return false; + if (!object.Equals(TimestampValue, other.TimestampValue)) return false; + if (!object.Equals(ArrayValue, other.ArrayValue)) return false; + if (RawValue != other.RawValue) return false; + if (KindCase != other.KindCase) 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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) hash ^= DataType.GetHashCode(); + if (VariantType.Length != 0) hash ^= VariantType.GetHashCode(); + if (IsNull != false) hash ^= IsNull.GetHashCode(); + if (RawDiagnostic.Length != 0) hash ^= RawDiagnostic.GetHashCode(); + if (RawDataType != 0) hash ^= RawDataType.GetHashCode(); + if (HasBoolValue) hash ^= BoolValue.GetHashCode(); + if (HasInt32Value) hash ^= Int32Value.GetHashCode(); + if (HasInt64Value) hash ^= Int64Value.GetHashCode(); + if (HasFloatValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FloatValue); + if (HasDoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue); + if (HasStringValue) hash ^= StringValue.GetHashCode(); + if (kindCase_ == KindOneofCase.TimestampValue) hash ^= TimestampValue.GetHashCode(); + if (kindCase_ == KindOneofCase.ArrayValue) hash ^= ArrayValue.GetHashCode(); + if (HasRawValue) hash ^= RawValue.GetHashCode(); + hash ^= (int) kindCase_; + 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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) DataType); + } + if (VariantType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VariantType); + } + if (IsNull != false) { + output.WriteRawTag(24); + output.WriteBool(IsNull); + } + if (RawDiagnostic.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RawDiagnostic); + } + if (RawDataType != 0) { + output.WriteRawTag(40); + output.WriteInt32(RawDataType); + } + if (HasBoolValue) { + output.WriteRawTag(80); + output.WriteBool(BoolValue); + } + if (HasInt32Value) { + output.WriteRawTag(88); + output.WriteInt32(Int32Value); + } + if (HasInt64Value) { + output.WriteRawTag(96); + output.WriteInt64(Int64Value); + } + if (HasFloatValue) { + output.WriteRawTag(109); + output.WriteFloat(FloatValue); + } + if (HasDoubleValue) { + output.WriteRawTag(113); + output.WriteDouble(DoubleValue); + } + if (HasStringValue) { + output.WriteRawTag(122); + output.WriteString(StringValue); + } + if (kindCase_ == KindOneofCase.TimestampValue) { + output.WriteRawTag(130, 1); + output.WriteMessage(TimestampValue); + } + if (kindCase_ == KindOneofCase.ArrayValue) { + output.WriteRawTag(138, 1); + output.WriteMessage(ArrayValue); + } + if (HasRawValue) { + output.WriteRawTag(146, 1); + output.WriteBytes(RawValue); + } + 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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) DataType); + } + if (VariantType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VariantType); + } + if (IsNull != false) { + output.WriteRawTag(24); + output.WriteBool(IsNull); + } + if (RawDiagnostic.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RawDiagnostic); + } + if (RawDataType != 0) { + output.WriteRawTag(40); + output.WriteInt32(RawDataType); + } + if (HasBoolValue) { + output.WriteRawTag(80); + output.WriteBool(BoolValue); + } + if (HasInt32Value) { + output.WriteRawTag(88); + output.WriteInt32(Int32Value); + } + if (HasInt64Value) { + output.WriteRawTag(96); + output.WriteInt64(Int64Value); + } + if (HasFloatValue) { + output.WriteRawTag(109); + output.WriteFloat(FloatValue); + } + if (HasDoubleValue) { + output.WriteRawTag(113); + output.WriteDouble(DoubleValue); + } + if (HasStringValue) { + output.WriteRawTag(122); + output.WriteString(StringValue); + } + if (kindCase_ == KindOneofCase.TimestampValue) { + output.WriteRawTag(130, 1); + output.WriteMessage(TimestampValue); + } + if (kindCase_ == KindOneofCase.ArrayValue) { + output.WriteRawTag(138, 1); + output.WriteMessage(ArrayValue); + } + if (HasRawValue) { + output.WriteRawTag(146, 1); + output.WriteBytes(RawValue); + } + 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 (DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataType); + } + if (VariantType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VariantType); + } + if (IsNull != false) { + size += 1 + 1; + } + if (RawDiagnostic.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RawDiagnostic); + } + if (RawDataType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawDataType); + } + if (HasBoolValue) { + size += 1 + 1; + } + if (HasInt32Value) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Int32Value); + } + if (HasInt64Value) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Int64Value); + } + if (HasFloatValue) { + size += 1 + 4; + } + if (HasDoubleValue) { + size += 1 + 8; + } + if (HasStringValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); + } + if (kindCase_ == KindOneofCase.TimestampValue) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimestampValue); + } + if (kindCase_ == KindOneofCase.ArrayValue) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ArrayValue); + } + if (HasRawValue) { + size += 2 + pb::CodedOutputStream.ComputeBytesSize(RawValue); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MxValue other) { + if (other == null) { + return; + } + if (other.DataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + DataType = other.DataType; + } + if (other.VariantType.Length != 0) { + VariantType = other.VariantType; + } + if (other.IsNull != false) { + IsNull = other.IsNull; + } + if (other.RawDiagnostic.Length != 0) { + RawDiagnostic = other.RawDiagnostic; + } + if (other.RawDataType != 0) { + RawDataType = other.RawDataType; + } + switch (other.KindCase) { + case KindOneofCase.BoolValue: + BoolValue = other.BoolValue; + break; + case KindOneofCase.Int32Value: + Int32Value = other.Int32Value; + break; + case KindOneofCase.Int64Value: + Int64Value = other.Int64Value; + break; + case KindOneofCase.FloatValue: + FloatValue = other.FloatValue; + break; + case KindOneofCase.DoubleValue: + DoubleValue = other.DoubleValue; + break; + case KindOneofCase.StringValue: + StringValue = other.StringValue; + break; + case KindOneofCase.TimestampValue: + if (TimestampValue == null) { + TimestampValue = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + TimestampValue.MergeFrom(other.TimestampValue); + break; + case KindOneofCase.ArrayValue: + if (ArrayValue == null) { + ArrayValue = new global::MxGateway.Contracts.Proto.MxArray(); + } + ArrayValue.MergeFrom(other.ArrayValue); + break; + case KindOneofCase.RawValue: + RawValue = other.RawValue; + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DataType = (global::MxGateway.Contracts.Proto.MxDataType) input.ReadEnum(); + break; + } + case 18: { + VariantType = input.ReadString(); + break; + } + case 24: { + IsNull = input.ReadBool(); + break; + } + case 34: { + RawDiagnostic = input.ReadString(); + break; + } + case 40: { + RawDataType = input.ReadInt32(); + break; + } + case 80: { + BoolValue = input.ReadBool(); + break; + } + case 88: { + Int32Value = input.ReadInt32(); + break; + } + case 96: { + Int64Value = input.ReadInt64(); + break; + } + case 109: { + FloatValue = input.ReadFloat(); + break; + } + case 113: { + DoubleValue = input.ReadDouble(); + break; + } + case 122: { + StringValue = input.ReadString(); + break; + } + case 130: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (kindCase_ == KindOneofCase.TimestampValue) { + subBuilder.MergeFrom(TimestampValue); + } + input.ReadMessage(subBuilder); + TimestampValue = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.MxArray subBuilder = new global::MxGateway.Contracts.Proto.MxArray(); + if (kindCase_ == KindOneofCase.ArrayValue) { + subBuilder.MergeFrom(ArrayValue); + } + input.ReadMessage(subBuilder); + ArrayValue = subBuilder; + break; + } + case 146: { + RawValue = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DataType = (global::MxGateway.Contracts.Proto.MxDataType) input.ReadEnum(); + break; + } + case 18: { + VariantType = input.ReadString(); + break; + } + case 24: { + IsNull = input.ReadBool(); + break; + } + case 34: { + RawDiagnostic = input.ReadString(); + break; + } + case 40: { + RawDataType = input.ReadInt32(); + break; + } + case 80: { + BoolValue = input.ReadBool(); + break; + } + case 88: { + Int32Value = input.ReadInt32(); + break; + } + case 96: { + Int64Value = input.ReadInt64(); + break; + } + case 109: { + FloatValue = input.ReadFloat(); + break; + } + case 113: { + DoubleValue = input.ReadDouble(); + break; + } + case 122: { + StringValue = input.ReadString(); + break; + } + case 130: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (kindCase_ == KindOneofCase.TimestampValue) { + subBuilder.MergeFrom(TimestampValue); + } + input.ReadMessage(subBuilder); + TimestampValue = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.MxArray subBuilder = new global::MxGateway.Contracts.Proto.MxArray(); + if (kindCase_ == KindOneofCase.ArrayValue) { + subBuilder.MergeFrom(ArrayValue); + } + input.ReadMessage(subBuilder); + ArrayValue = subBuilder; + break; + } + case 146: { + RawValue = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MxArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MxArray()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[49]; } + } + + [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 MxArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxArray(MxArray other) : this() { + elementDataType_ = other.elementDataType_; + variantType_ = other.variantType_; + dimensions_ = other.dimensions_.Clone(); + rawDiagnostic_ = other.rawDiagnostic_; + rawElementDataType_ = other.rawElementDataType_; + switch (other.ValuesCase) { + case ValuesOneofCase.BoolValues: + BoolValues = other.BoolValues.Clone(); + break; + case ValuesOneofCase.Int32Values: + Int32Values = other.Int32Values.Clone(); + break; + case ValuesOneofCase.Int64Values: + Int64Values = other.Int64Values.Clone(); + break; + case ValuesOneofCase.FloatValues: + FloatValues = other.FloatValues.Clone(); + break; + case ValuesOneofCase.DoubleValues: + DoubleValues = other.DoubleValues.Clone(); + break; + case ValuesOneofCase.StringValues: + StringValues = other.StringValues.Clone(); + break; + case ValuesOneofCase.TimestampValues: + TimestampValues = other.TimestampValues.Clone(); + break; + case ValuesOneofCase.RawValues: + RawValues = other.RawValues.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MxArray Clone() { + return new MxArray(this); + } + + /// Field number for the "element_data_type" field. + public const int ElementDataTypeFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxDataType elementDataType_ = global::MxGateway.Contracts.Proto.MxDataType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxDataType ElementDataType { + get { return elementDataType_; } + set { + elementDataType_ = value; + } + } + + /// Field number for the "variant_type" field. + public const int VariantTypeFieldNumber = 2; + private string variantType_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string VariantType { + get { return variantType_; } + set { + variantType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dimensions" field. + public const int DimensionsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_dimensions_codec + = pb::FieldCodec.ForUInt32(26); + private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Dimensions { + get { return dimensions_; } + } + + /// Field number for the "raw_diagnostic" field. + public const int RawDiagnosticFieldNumber = 4; + private string rawDiagnostic_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RawDiagnostic { + get { return rawDiagnostic_; } + set { + rawDiagnostic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "raw_element_data_type" field. + public const int RawElementDataTypeFieldNumber = 5; + private int rawElementDataType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RawElementDataType { + get { return rawElementDataType_; } + set { + rawElementDataType_ = value; + } + } + + /// Field number for the "bool_values" field. + public const int BoolValuesFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.BoolArray BoolValues { + get { return valuesCase_ == ValuesOneofCase.BoolValues ? (global::MxGateway.Contracts.Proto.BoolArray) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.BoolValues; + } + } + + /// Field number for the "int32_values" field. + public const int Int32ValuesFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.Int32Array Int32Values { + get { return valuesCase_ == ValuesOneofCase.Int32Values ? (global::MxGateway.Contracts.Proto.Int32Array) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.Int32Values; + } + } + + /// Field number for the "int64_values" field. + public const int Int64ValuesFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.Int64Array Int64Values { + get { return valuesCase_ == ValuesOneofCase.Int64Values ? (global::MxGateway.Contracts.Proto.Int64Array) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.Int64Values; + } + } + + /// Field number for the "float_values" field. + public const int FloatValuesFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.FloatArray FloatValues { + get { return valuesCase_ == ValuesOneofCase.FloatValues ? (global::MxGateway.Contracts.Proto.FloatArray) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.FloatValues; + } + } + + /// Field number for the "double_values" field. + public const int DoubleValuesFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.DoubleArray DoubleValues { + get { return valuesCase_ == ValuesOneofCase.DoubleValues ? (global::MxGateway.Contracts.Proto.DoubleArray) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.DoubleValues; + } + } + + /// Field number for the "string_values" field. + public const int StringValuesFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.StringArray StringValues { + get { return valuesCase_ == ValuesOneofCase.StringValues ? (global::MxGateway.Contracts.Proto.StringArray) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.StringValues; + } + } + + /// Field number for the "timestamp_values" field. + public const int TimestampValuesFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.TimestampArray TimestampValues { + get { return valuesCase_ == ValuesOneofCase.TimestampValues ? (global::MxGateway.Contracts.Proto.TimestampArray) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.TimestampValues; + } + } + + /// Field number for the "raw_values" field. + public const int RawValuesFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.RawArray RawValues { + get { return valuesCase_ == ValuesOneofCase.RawValues ? (global::MxGateway.Contracts.Proto.RawArray) values_ : null; } + set { + values_ = value; + valuesCase_ = value == null ? ValuesOneofCase.None : ValuesOneofCase.RawValues; + } + } + + private object values_; + /// Enum of possible cases for the "values" oneof. + public enum ValuesOneofCase { + None = 0, + BoolValues = 10, + Int32Values = 11, + Int64Values = 12, + FloatValues = 13, + DoubleValues = 14, + StringValues = 15, + TimestampValues = 16, + RawValues = 17, + } + private ValuesOneofCase valuesCase_ = ValuesOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValuesOneofCase ValuesCase { + get { return valuesCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValues() { + valuesCase_ = ValuesOneofCase.None; + values_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MxArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MxArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ElementDataType != other.ElementDataType) return false; + if (VariantType != other.VariantType) return false; + if(!dimensions_.Equals(other.dimensions_)) return false; + if (RawDiagnostic != other.RawDiagnostic) return false; + if (RawElementDataType != other.RawElementDataType) return false; + if (!object.Equals(BoolValues, other.BoolValues)) return false; + if (!object.Equals(Int32Values, other.Int32Values)) return false; + if (!object.Equals(Int64Values, other.Int64Values)) return false; + if (!object.Equals(FloatValues, other.FloatValues)) return false; + if (!object.Equals(DoubleValues, other.DoubleValues)) return false; + if (!object.Equals(StringValues, other.StringValues)) return false; + if (!object.Equals(TimestampValues, other.TimestampValues)) return false; + if (!object.Equals(RawValues, other.RawValues)) return false; + if (ValuesCase != other.ValuesCase) 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 (ElementDataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) hash ^= ElementDataType.GetHashCode(); + if (VariantType.Length != 0) hash ^= VariantType.GetHashCode(); + hash ^= dimensions_.GetHashCode(); + if (RawDiagnostic.Length != 0) hash ^= RawDiagnostic.GetHashCode(); + if (RawElementDataType != 0) hash ^= RawElementDataType.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.BoolValues) hash ^= BoolValues.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.Int32Values) hash ^= Int32Values.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.Int64Values) hash ^= Int64Values.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.FloatValues) hash ^= FloatValues.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.DoubleValues) hash ^= DoubleValues.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.StringValues) hash ^= StringValues.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.TimestampValues) hash ^= TimestampValues.GetHashCode(); + if (valuesCase_ == ValuesOneofCase.RawValues) hash ^= RawValues.GetHashCode(); + hash ^= (int) valuesCase_; + 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 (ElementDataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ElementDataType); + } + if (VariantType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VariantType); + } + dimensions_.WriteTo(output, _repeated_dimensions_codec); + if (RawDiagnostic.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RawDiagnostic); + } + if (RawElementDataType != 0) { + output.WriteRawTag(40); + output.WriteInt32(RawElementDataType); + } + if (valuesCase_ == ValuesOneofCase.BoolValues) { + output.WriteRawTag(82); + output.WriteMessage(BoolValues); + } + if (valuesCase_ == ValuesOneofCase.Int32Values) { + output.WriteRawTag(90); + output.WriteMessage(Int32Values); + } + if (valuesCase_ == ValuesOneofCase.Int64Values) { + output.WriteRawTag(98); + output.WriteMessage(Int64Values); + } + if (valuesCase_ == ValuesOneofCase.FloatValues) { + output.WriteRawTag(106); + output.WriteMessage(FloatValues); + } + if (valuesCase_ == ValuesOneofCase.DoubleValues) { + output.WriteRawTag(114); + output.WriteMessage(DoubleValues); + } + if (valuesCase_ == ValuesOneofCase.StringValues) { + output.WriteRawTag(122); + output.WriteMessage(StringValues); + } + if (valuesCase_ == ValuesOneofCase.TimestampValues) { + output.WriteRawTag(130, 1); + output.WriteMessage(TimestampValues); + } + if (valuesCase_ == ValuesOneofCase.RawValues) { + output.WriteRawTag(138, 1); + output.WriteMessage(RawValues); + } + 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 (ElementDataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ElementDataType); + } + if (VariantType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(VariantType); + } + dimensions_.WriteTo(ref output, _repeated_dimensions_codec); + if (RawDiagnostic.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RawDiagnostic); + } + if (RawElementDataType != 0) { + output.WriteRawTag(40); + output.WriteInt32(RawElementDataType); + } + if (valuesCase_ == ValuesOneofCase.BoolValues) { + output.WriteRawTag(82); + output.WriteMessage(BoolValues); + } + if (valuesCase_ == ValuesOneofCase.Int32Values) { + output.WriteRawTag(90); + output.WriteMessage(Int32Values); + } + if (valuesCase_ == ValuesOneofCase.Int64Values) { + output.WriteRawTag(98); + output.WriteMessage(Int64Values); + } + if (valuesCase_ == ValuesOneofCase.FloatValues) { + output.WriteRawTag(106); + output.WriteMessage(FloatValues); + } + if (valuesCase_ == ValuesOneofCase.DoubleValues) { + output.WriteRawTag(114); + output.WriteMessage(DoubleValues); + } + if (valuesCase_ == ValuesOneofCase.StringValues) { + output.WriteRawTag(122); + output.WriteMessage(StringValues); + } + if (valuesCase_ == ValuesOneofCase.TimestampValues) { + output.WriteRawTag(130, 1); + output.WriteMessage(TimestampValues); + } + if (valuesCase_ == ValuesOneofCase.RawValues) { + output.WriteRawTag(138, 1); + output.WriteMessage(RawValues); + } + 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 (ElementDataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ElementDataType); + } + if (VariantType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(VariantType); + } + size += dimensions_.CalculateSize(_repeated_dimensions_codec); + if (RawDiagnostic.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RawDiagnostic); + } + if (RawElementDataType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RawElementDataType); + } + if (valuesCase_ == ValuesOneofCase.BoolValues) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolValues); + } + if (valuesCase_ == ValuesOneofCase.Int32Values) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Int32Values); + } + if (valuesCase_ == ValuesOneofCase.Int64Values) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Int64Values); + } + if (valuesCase_ == ValuesOneofCase.FloatValues) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatValues); + } + if (valuesCase_ == ValuesOneofCase.DoubleValues) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DoubleValues); + } + if (valuesCase_ == ValuesOneofCase.StringValues) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringValues); + } + if (valuesCase_ == ValuesOneofCase.TimestampValues) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TimestampValues); + } + if (valuesCase_ == ValuesOneofCase.RawValues) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RawValues); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MxArray other) { + if (other == null) { + return; + } + if (other.ElementDataType != global::MxGateway.Contracts.Proto.MxDataType.Unspecified) { + ElementDataType = other.ElementDataType; + } + if (other.VariantType.Length != 0) { + VariantType = other.VariantType; + } + dimensions_.Add(other.dimensions_); + if (other.RawDiagnostic.Length != 0) { + RawDiagnostic = other.RawDiagnostic; + } + if (other.RawElementDataType != 0) { + RawElementDataType = other.RawElementDataType; + } + switch (other.ValuesCase) { + case ValuesOneofCase.BoolValues: + if (BoolValues == null) { + BoolValues = new global::MxGateway.Contracts.Proto.BoolArray(); + } + BoolValues.MergeFrom(other.BoolValues); + break; + case ValuesOneofCase.Int32Values: + if (Int32Values == null) { + Int32Values = new global::MxGateway.Contracts.Proto.Int32Array(); + } + Int32Values.MergeFrom(other.Int32Values); + break; + case ValuesOneofCase.Int64Values: + if (Int64Values == null) { + Int64Values = new global::MxGateway.Contracts.Proto.Int64Array(); + } + Int64Values.MergeFrom(other.Int64Values); + break; + case ValuesOneofCase.FloatValues: + if (FloatValues == null) { + FloatValues = new global::MxGateway.Contracts.Proto.FloatArray(); + } + FloatValues.MergeFrom(other.FloatValues); + break; + case ValuesOneofCase.DoubleValues: + if (DoubleValues == null) { + DoubleValues = new global::MxGateway.Contracts.Proto.DoubleArray(); + } + DoubleValues.MergeFrom(other.DoubleValues); + break; + case ValuesOneofCase.StringValues: + if (StringValues == null) { + StringValues = new global::MxGateway.Contracts.Proto.StringArray(); + } + StringValues.MergeFrom(other.StringValues); + break; + case ValuesOneofCase.TimestampValues: + if (TimestampValues == null) { + TimestampValues = new global::MxGateway.Contracts.Proto.TimestampArray(); + } + TimestampValues.MergeFrom(other.TimestampValues); + break; + case ValuesOneofCase.RawValues: + if (RawValues == null) { + RawValues = new global::MxGateway.Contracts.Proto.RawArray(); + } + RawValues.MergeFrom(other.RawValues); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ElementDataType = (global::MxGateway.Contracts.Proto.MxDataType) input.ReadEnum(); + break; + } + case 18: { + VariantType = input.ReadString(); + break; + } + case 26: + case 24: { + dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); + break; + } + case 34: { + RawDiagnostic = input.ReadString(); + break; + } + case 40: { + RawElementDataType = input.ReadInt32(); + break; + } + case 82: { + global::MxGateway.Contracts.Proto.BoolArray subBuilder = new global::MxGateway.Contracts.Proto.BoolArray(); + if (valuesCase_ == ValuesOneofCase.BoolValues) { + subBuilder.MergeFrom(BoolValues); + } + input.ReadMessage(subBuilder); + BoolValues = subBuilder; + break; + } + case 90: { + global::MxGateway.Contracts.Proto.Int32Array subBuilder = new global::MxGateway.Contracts.Proto.Int32Array(); + if (valuesCase_ == ValuesOneofCase.Int32Values) { + subBuilder.MergeFrom(Int32Values); + } + input.ReadMessage(subBuilder); + Int32Values = subBuilder; + break; + } + case 98: { + global::MxGateway.Contracts.Proto.Int64Array subBuilder = new global::MxGateway.Contracts.Proto.Int64Array(); + if (valuesCase_ == ValuesOneofCase.Int64Values) { + subBuilder.MergeFrom(Int64Values); + } + input.ReadMessage(subBuilder); + Int64Values = subBuilder; + break; + } + case 106: { + global::MxGateway.Contracts.Proto.FloatArray subBuilder = new global::MxGateway.Contracts.Proto.FloatArray(); + if (valuesCase_ == ValuesOneofCase.FloatValues) { + subBuilder.MergeFrom(FloatValues); + } + input.ReadMessage(subBuilder); + FloatValues = subBuilder; + break; + } + case 114: { + global::MxGateway.Contracts.Proto.DoubleArray subBuilder = new global::MxGateway.Contracts.Proto.DoubleArray(); + if (valuesCase_ == ValuesOneofCase.DoubleValues) { + subBuilder.MergeFrom(DoubleValues); + } + input.ReadMessage(subBuilder); + DoubleValues = subBuilder; + break; + } + case 122: { + global::MxGateway.Contracts.Proto.StringArray subBuilder = new global::MxGateway.Contracts.Proto.StringArray(); + if (valuesCase_ == ValuesOneofCase.StringValues) { + subBuilder.MergeFrom(StringValues); + } + input.ReadMessage(subBuilder); + StringValues = subBuilder; + break; + } + case 130: { + global::MxGateway.Contracts.Proto.TimestampArray subBuilder = new global::MxGateway.Contracts.Proto.TimestampArray(); + if (valuesCase_ == ValuesOneofCase.TimestampValues) { + subBuilder.MergeFrom(TimestampValues); + } + input.ReadMessage(subBuilder); + TimestampValues = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.RawArray subBuilder = new global::MxGateway.Contracts.Proto.RawArray(); + if (valuesCase_ == ValuesOneofCase.RawValues) { + subBuilder.MergeFrom(RawValues); + } + input.ReadMessage(subBuilder); + RawValues = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ElementDataType = (global::MxGateway.Contracts.Proto.MxDataType) input.ReadEnum(); + break; + } + case 18: { + VariantType = input.ReadString(); + break; + } + case 26: + case 24: { + dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); + break; + } + case 34: { + RawDiagnostic = input.ReadString(); + break; + } + case 40: { + RawElementDataType = input.ReadInt32(); + break; + } + case 82: { + global::MxGateway.Contracts.Proto.BoolArray subBuilder = new global::MxGateway.Contracts.Proto.BoolArray(); + if (valuesCase_ == ValuesOneofCase.BoolValues) { + subBuilder.MergeFrom(BoolValues); + } + input.ReadMessage(subBuilder); + BoolValues = subBuilder; + break; + } + case 90: { + global::MxGateway.Contracts.Proto.Int32Array subBuilder = new global::MxGateway.Contracts.Proto.Int32Array(); + if (valuesCase_ == ValuesOneofCase.Int32Values) { + subBuilder.MergeFrom(Int32Values); + } + input.ReadMessage(subBuilder); + Int32Values = subBuilder; + break; + } + case 98: { + global::MxGateway.Contracts.Proto.Int64Array subBuilder = new global::MxGateway.Contracts.Proto.Int64Array(); + if (valuesCase_ == ValuesOneofCase.Int64Values) { + subBuilder.MergeFrom(Int64Values); + } + input.ReadMessage(subBuilder); + Int64Values = subBuilder; + break; + } + case 106: { + global::MxGateway.Contracts.Proto.FloatArray subBuilder = new global::MxGateway.Contracts.Proto.FloatArray(); + if (valuesCase_ == ValuesOneofCase.FloatValues) { + subBuilder.MergeFrom(FloatValues); + } + input.ReadMessage(subBuilder); + FloatValues = subBuilder; + break; + } + case 114: { + global::MxGateway.Contracts.Proto.DoubleArray subBuilder = new global::MxGateway.Contracts.Proto.DoubleArray(); + if (valuesCase_ == ValuesOneofCase.DoubleValues) { + subBuilder.MergeFrom(DoubleValues); + } + input.ReadMessage(subBuilder); + DoubleValues = subBuilder; + break; + } + case 122: { + global::MxGateway.Contracts.Proto.StringArray subBuilder = new global::MxGateway.Contracts.Proto.StringArray(); + if (valuesCase_ == ValuesOneofCase.StringValues) { + subBuilder.MergeFrom(StringValues); + } + input.ReadMessage(subBuilder); + StringValues = subBuilder; + break; + } + case 130: { + global::MxGateway.Contracts.Proto.TimestampArray subBuilder = new global::MxGateway.Contracts.Proto.TimestampArray(); + if (valuesCase_ == ValuesOneofCase.TimestampValues) { + subBuilder.MergeFrom(TimestampValues); + } + input.ReadMessage(subBuilder); + TimestampValues = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.RawArray subBuilder = new global::MxGateway.Contracts.Proto.RawArray(); + if (valuesCase_ == ValuesOneofCase.RawValues) { + subBuilder.MergeFrom(RawValues); + } + input.ReadMessage(subBuilder); + RawValues = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BoolArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoolArray()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[50]; } + } + + [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 BoolArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoolArray(BoolArray other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BoolArray Clone() { + return new BoolArray(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForBool(10); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BoolArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BoolArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BoolArray other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Int32Array : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Int32Array()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[51]; } + } + + [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 Int32Array() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Int32Array(Int32Array other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Int32Array Clone() { + return new Int32Array(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForInt32(10); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Int32Array); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Int32Array other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Int32Array other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Int64Array : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Int64Array()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[52]; } + } + + [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 Int64Array() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Int64Array(Int64Array other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Int64Array Clone() { + return new Int64Array(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForInt64(10); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Int64Array); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Int64Array other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Int64Array other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FloatArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FloatArray()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[53]; } + } + + [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 FloatArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloatArray(FloatArray other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FloatArray Clone() { + return new FloatArray(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForFloat(10); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FloatArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FloatArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FloatArray other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 13: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 13: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DoubleArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DoubleArray()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[54]; } + } + + [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 DoubleArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoubleArray(DoubleArray other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DoubleArray Clone() { + return new DoubleArray(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForDouble(10); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DoubleArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DoubleArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DoubleArray other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 9: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 9: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StringArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringArray()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[55]; } + } + + [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 StringArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringArray(StringArray other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringArray Clone() { + return new StringArray(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StringArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StringArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StringArray other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TimestampArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TimestampArray()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[56]; } + } + + [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 TimestampArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimestampArray(TimestampArray other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TimestampArray Clone() { + return new TimestampArray(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TimestampArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TimestampArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TimestampArray other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RawArray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RawArray()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[57]; } + } + + [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 RawArray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawArray(RawArray other) : this() { + values_ = other.values_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RawArray Clone() { + return new RawArray(this); + } + + /// Field number for the "values" field. + public const int ValuesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_values_codec + = pb::FieldCodec.ForBytes(10); + private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Values { + get { return values_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RawArray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RawArray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!values_.Equals(other.values_)) 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 ^= values_.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 + values_.WriteTo(output, _repeated_values_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) { + values_.WriteTo(ref output, _repeated_values_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 += values_.CalculateSize(_repeated_values_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RawArray other) { + if (other == null) { + return; + } + values_.Add(other.values_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + values_.AddEntriesFrom(input, _repeated_values_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + values_.AddEntriesFrom(ref input, _repeated_values_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ProtocolStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtocolStatus()); + 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::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.MessageTypes[58]; } + } + + [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 ProtocolStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProtocolStatus(ProtocolStatus other) : this() { + code_ = other.code_; + message_ = other.message_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProtocolStatus Clone() { + return new ProtocolStatus(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private global::MxGateway.Contracts.Proto.ProtocolStatusCode code_ = global::MxGateway.Contracts.Proto.ProtocolStatusCode.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ProtocolStatusCode Code { + get { return code_; } + set { + code_ = value; + } + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private string message_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_; } + set { + message_ = 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 ProtocolStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProtocolStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Message != other.Message) 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 (Code != global::MxGateway.Contracts.Proto.ProtocolStatusCode.Unspecified) hash ^= Code.GetHashCode(); + if (Message.Length != 0) hash ^= Message.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 (Code != global::MxGateway.Contracts.Proto.ProtocolStatusCode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (Message.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Message); + } + 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 (Code != global::MxGateway.Contracts.Proto.ProtocolStatusCode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (Message.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Message); + } + 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 (Code != global::MxGateway.Contracts.Proto.ProtocolStatusCode.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (Message.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ProtocolStatus other) { + if (other == null) { + return; + } + if (other.Code != global::MxGateway.Contracts.Proto.ProtocolStatusCode.Unspecified) { + Code = other.Code; + } + if (other.Message.Length != 0) { + Message = other.Message; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Code = (global::MxGateway.Contracts.Proto.ProtocolStatusCode) input.ReadEnum(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Code = (global::MxGateway.Contracts.Proto.ProtocolStatusCode) input.ReadEnum(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/MxGateway.Contracts/Generated/MxaccessGatewayGrpc.cs b/src/MxGateway.Contracts/Generated/MxaccessGatewayGrpc.cs new file mode 100644 index 0000000..0165045 --- /dev/null +++ b/src/MxGateway.Contracts/Generated/MxaccessGatewayGrpc.cs @@ -0,0 +1,268 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: mxaccess_gateway.proto +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace MxGateway.Contracts.Proto { + /// + /// Public client API for MXAccess sessions hosted by the gateway. + /// + public static partial class MxAccessGateway + { + static readonly string __ServiceName = "mxaccess_gateway.v1.MxAccessGateway"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_OpenSessionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.OpenSessionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_OpenSessionReply = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.OpenSessionReply.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_CloseSessionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.CloseSessionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_CloseSessionReply = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.CloseSessionReply.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_MxCommandRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.MxCommandRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_MxCommandReply = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.MxCommandReply.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_StreamEventsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.StreamEventsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_mxaccess_gateway_v1_MxEvent = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::MxGateway.Contracts.Proto.MxEvent.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_OpenSession = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "OpenSession", + __Marshaller_mxaccess_gateway_v1_OpenSessionRequest, + __Marshaller_mxaccess_gateway_v1_OpenSessionReply); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CloseSession = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CloseSession", + __Marshaller_mxaccess_gateway_v1_CloseSessionRequest, + __Marshaller_mxaccess_gateway_v1_CloseSessionReply); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_Invoke = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "Invoke", + __Marshaller_mxaccess_gateway_v1_MxCommandRequest, + __Marshaller_mxaccess_gateway_v1_MxCommandReply); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamEvents = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "StreamEvents", + __Marshaller_mxaccess_gateway_v1_StreamEventsRequest, + __Marshaller_mxaccess_gateway_v1_MxEvent); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of MxAccessGateway + [grpc::BindServiceMethod(typeof(MxAccessGateway), "BindService")] + public abstract partial class MxAccessGatewayBase + { + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task OpenSession(global::MxGateway.Contracts.Proto.OpenSessionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CloseSession(global::MxGateway.Contracts.Proto.CloseSessionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task Invoke(global::MxGateway.Contracts.Proto.MxCommandRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task StreamEvents(global::MxGateway.Contracts.Proto.StreamEventsRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for MxAccessGateway + public partial class MxAccessGatewayClient : grpc::ClientBase + { + /// Creates a new client for MxAccessGateway + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public MxAccessGatewayClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for MxAccessGateway that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public MxAccessGatewayClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected MxAccessGatewayClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected MxAccessGatewayClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::MxGateway.Contracts.Proto.OpenSessionReply OpenSession(global::MxGateway.Contracts.Proto.OpenSessionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return OpenSession(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::MxGateway.Contracts.Proto.OpenSessionReply OpenSession(global::MxGateway.Contracts.Proto.OpenSessionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_OpenSession, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall OpenSessionAsync(global::MxGateway.Contracts.Proto.OpenSessionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return OpenSessionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall OpenSessionAsync(global::MxGateway.Contracts.Proto.OpenSessionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_OpenSession, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::MxGateway.Contracts.Proto.CloseSessionReply CloseSession(global::MxGateway.Contracts.Proto.CloseSessionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CloseSession(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::MxGateway.Contracts.Proto.CloseSessionReply CloseSession(global::MxGateway.Contracts.Proto.CloseSessionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CloseSession, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CloseSessionAsync(global::MxGateway.Contracts.Proto.CloseSessionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CloseSessionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CloseSessionAsync(global::MxGateway.Contracts.Proto.CloseSessionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CloseSession, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::MxGateway.Contracts.Proto.MxCommandReply Invoke(global::MxGateway.Contracts.Proto.MxCommandRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return Invoke(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::MxGateway.Contracts.Proto.MxCommandReply Invoke(global::MxGateway.Contracts.Proto.MxCommandRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_Invoke, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall InvokeAsync(global::MxGateway.Contracts.Proto.MxCommandRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return InvokeAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall InvokeAsync(global::MxGateway.Contracts.Proto.MxCommandRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_Invoke, null, options, request); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamEvents(global::MxGateway.Contracts.Proto.StreamEventsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamEvents(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncServerStreamingCall StreamEvents(global::MxGateway.Contracts.Proto.StreamEventsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_StreamEvents, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override MxAccessGatewayClient NewInstance(ClientBaseConfiguration configuration) + { + return new MxAccessGatewayClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(MxAccessGatewayBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_OpenSession, serviceImpl.OpenSession) + .AddMethod(__Method_CloseSession, serviceImpl.CloseSession) + .AddMethod(__Method_Invoke, serviceImpl.Invoke) + .AddMethod(__Method_StreamEvents, serviceImpl.StreamEvents).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, MxAccessGatewayBase serviceImpl) + { + serviceBinder.AddMethod(__Method_OpenSession, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.OpenSession)); + serviceBinder.AddMethod(__Method_CloseSession, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CloseSession)); + serviceBinder.AddMethod(__Method_Invoke, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Invoke)); + serviceBinder.AddMethod(__Method_StreamEvents, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.StreamEvents)); + } + + } +} +#endregion diff --git a/src/MxGateway.Contracts/Generated/MxaccessWorker.cs b/src/MxGateway.Contracts/Generated/MxaccessWorker.cs new file mode 100644 index 0000000..010e4eb --- /dev/null +++ b/src/MxGateway.Contracts/Generated/MxaccessWorker.cs @@ -0,0 +1,4176 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: mxaccess_worker.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 MxGateway.Contracts.Proto { + + /// Holder for reflection information generated from mxaccess_worker.proto + public static partial class MxaccessWorkerReflection { + + #region Descriptor + /// File descriptor for mxaccess_worker.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MxaccessWorkerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChVteGFjY2Vzc193b3JrZXIucHJvdG8SEm14YWNjZXNzX3dvcmtlci52MRoe", + "Z29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvGh9nb29nbGUvcHJvdG9i", + "dWYvdGltZXN0YW1wLnByb3RvGhZteGFjY2Vzc19nYXRld2F5LnByb3RvIpUG", + "Cg5Xb3JrZXJFbnZlbG9wZRIYChBwcm90b2NvbF92ZXJzaW9uGAEgASgNEhIK", + "CnNlc3Npb25faWQYAiABKAkSEAoIc2VxdWVuY2UYAyABKAQSFgoOY29ycmVs", + "YXRpb25faWQYBCABKAkSOQoNZ2F0ZXdheV9oZWxsbxgKIAEoCzIgLm14YWNj", + "ZXNzX3dvcmtlci52MS5HYXRld2F5SGVsbG9IABI3Cgx3b3JrZXJfaGVsbG8Y", + "CyABKAsyHy5teGFjY2Vzc193b3JrZXIudjEuV29ya2VySGVsbG9IABI3Cgx3", + "b3JrZXJfcmVhZHkYDCABKAsyHy5teGFjY2Vzc193b3JrZXIudjEuV29ya2Vy", + "UmVhZHlIABI7Cg53b3JrZXJfY29tbWFuZBgNIAEoCzIhLm14YWNjZXNzX3dv", + "cmtlci52MS5Xb3JrZXJDb21tYW5kSAASRgoUd29ya2VyX2NvbW1hbmRfcmVw", + "bHkYDiABKAsyJi5teGFjY2Vzc193b3JrZXIudjEuV29ya2VyQ29tbWFuZFJl", + "cGx5SAASOQoNd29ya2VyX2NhbmNlbBgPIAEoCzIgLm14YWNjZXNzX3dvcmtl", + "ci52MS5Xb3JrZXJDYW5jZWxIABI9Cg93b3JrZXJfc2h1dGRvd24YECABKAsy", + "Ii5teGFjY2Vzc193b3JrZXIudjEuV29ya2VyU2h1dGRvd25IABJEChN3b3Jr", + "ZXJfc2h1dGRvd25fYWNrGBEgASgLMiUubXhhY2Nlc3Nfd29ya2VyLnYxLldv", + "cmtlclNodXRkb3duQWNrSAASNwoMd29ya2VyX2V2ZW50GBIgASgLMh8ubXhh", + "Y2Nlc3Nfd29ya2VyLnYxLldvcmtlckV2ZW50SAASPwoQd29ya2VyX2hlYXJ0", + "YmVhdBgTIAEoCzIjLm14YWNjZXNzX3dvcmtlci52MS5Xb3JrZXJIZWFydGJl", + "YXRIABI3Cgx3b3JrZXJfZmF1bHQYFCABKAsyHy5teGFjY2Vzc193b3JrZXIu", + "djEuV29ya2VyRmF1bHRIAEIGCgRib2R5IloKDEdhdGV3YXlIZWxsbxIiChpz", + "dXBwb3J0ZWRfcHJvdG9jb2xfdmVyc2lvbhgBIAEoDRINCgVub25jZRgCIAEo", + "CRIXCg9nYXRld2F5X3ZlcnNpb24YAyABKAkiaQoLV29ya2VySGVsbG8SGAoQ", + "cHJvdG9jb2xfdmVyc2lvbhgBIAEoDRINCgVub25jZRgCIAEoCRIZChF3b3Jr", + "ZXJfcHJvY2Vzc19pZBgDIAEoBRIWCg53b3JrZXJfdmVyc2lvbhgEIAEoCSKO", + "AQoLV29ya2VyUmVhZHkSGQoRd29ya2VyX3Byb2Nlc3NfaWQYASABKAUSFwoP", + "bXhhY2Nlc3NfcHJvZ2lkGAIgASgJEhYKDm14YWNjZXNzX2Nsc2lkGAMgASgJ", + "EjMKD3JlYWR5X3RpbWVzdGFtcBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", + "aW1lc3RhbXAidwoNV29ya2VyQ29tbWFuZBIvCgdjb21tYW5kGAEgASgLMh4u", + "bXhhY2Nlc3NfZ2F0ZXdheS52MS5NeENvbW1hbmQSNQoRZW5xdWV1ZV90aW1l", + "c3RhbXAYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIoEBChJX", + "b3JrZXJDb21tYW5kUmVwbHkSMgoFcmVwbHkYASABKAsyIy5teGFjY2Vzc19n", + "YXRld2F5LnYxLk14Q29tbWFuZFJlcGx5EjcKE2NvbXBsZXRlZF90aW1lc3Rh", + "bXAYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIh4KDFdvcmtl", + "ckNhbmNlbBIOCgZyZWFzb24YASABKAkiUQoOV29ya2VyU2h1dGRvd24SLwoM", + "Z3JhY2VfcGVyaW9kGAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9u", + "Eg4KBnJlYXNvbhgCIAEoCSJIChFXb3JrZXJTaHV0ZG93bkFjaxIzCgZzdGF0", + "dXMYASABKAsyIy5teGFjY2Vzc19nYXRld2F5LnYxLlByb3RvY29sU3RhdHVz", + "IjoKC1dvcmtlckV2ZW50EisKBWV2ZW50GAEgASgLMhwubXhhY2Nlc3NfZ2F0", + "ZXdheS52MS5NeEV2ZW50IqUCCg9Xb3JrZXJIZWFydGJlYXQSGQoRd29ya2Vy", + "X3Byb2Nlc3NfaWQYASABKAUSLgoFc3RhdGUYAiABKA4yHy5teGFjY2Vzc193", + "b3JrZXIudjEuV29ya2VyU3RhdGUSPwobbGFzdF9zdGFfYWN0aXZpdHlfdGlt", + "ZXN0YW1wGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIdChVw", + "ZW5kaW5nX2NvbW1hbmRfY291bnQYBCABKA0SIgoab3V0Ym91bmRfZXZlbnRf", + "cXVldWVfZGVwdGgYBSABKA0SGwoTbGFzdF9ldmVudF9zZXF1ZW5jZRgGIAEo", + "BBImCh5jdXJyZW50X2NvbW1hbmRfY29ycmVsYXRpb25faWQYByABKAki9AEK", + "C1dvcmtlckZhdWx0EjkKCGNhdGVnb3J5GAEgASgOMicubXhhY2Nlc3Nfd29y", + "a2VyLnYxLldvcmtlckZhdWx0Q2F0ZWdvcnkSFgoOY29tbWFuZF9tZXRob2QY", + "AiABKAkSFAoHaHJlc3VsdBgDIAEoBUgAiAEBEhYKDmV4Y2VwdGlvbl90eXBl", + "GAQgASgJEhoKEmRpYWdub3N0aWNfbWVzc2FnZRgFIAEoCRI8Cg9wcm90b2Nv", + "bF9zdGF0dXMYBiABKAsyIy5teGFjY2Vzc19nYXRld2F5LnYxLlByb3RvY29s", + "U3RhdHVzQgoKCF9ocmVzdWx0KpcCCgtXb3JrZXJTdGF0ZRIcChhXT1JLRVJf", + "U1RBVEVfVU5TUEVDSUZJRUQQABIZChVXT1JLRVJfU1RBVEVfU1RBUlRJTkcQ", + "ARIcChhXT1JLRVJfU1RBVEVfSEFORFNIQUtJTkcQAhIhCh1XT1JLRVJfU1RB", + "VEVfSU5JVElBTElaSU5HX1NUQRADEhYKEldPUktFUl9TVEFURV9SRUFEWRAE", + "EiIKHldPUktFUl9TVEFURV9FWEVDVVRJTkdfQ09NTUFORBAFEh4KGldPUktF", + "Ul9TVEFURV9TSFVUVElOR19ET1dOEAYSGAoUV09SS0VSX1NUQVRFX1NUT1BQ", + "RUQQBxIYChRXT1JLRVJfU1RBVEVfRkFVTFRFRBAIKscEChNXb3JrZXJGYXVs", + "dENhdGVnb3J5EiUKIVdPUktFUl9GQVVMVF9DQVRFR09SWV9VTlNQRUNJRklF", + "RBAAEisKJ1dPUktFUl9GQVVMVF9DQVRFR09SWV9JTlZBTElEX0FSR1VNRU5U", + "UxABEjcKM1dPUktFUl9GQVVMVF9DQVRFR09SWV9HQVRFV0FZX0FVVEhFTlRJ", + "Q0FUSU9OX0ZBSUxFRBACEisKJ1dPUktFUl9GQVVMVF9DQVRFR09SWV9QUk9U", + "T0NPTF9NSVNNQVRDSBADEiwKKFdPUktFUl9GQVVMVF9DQVRFR09SWV9QUk9U", + "T0NPTF9WSU9MQVRJT04QBBIrCidXT1JLRVJfRkFVTFRfQ0FURUdPUllfUElQ", + "RV9ESVNDT05ORUNURUQQBRIyCi5XT1JLRVJfRkFVTFRfQ0FURUdPUllfTVhB", + "Q0NFU1NfQ1JFQVRJT05fRkFJTEVEEAYSMQotV09SS0VSX0ZBVUxUX0NBVEVH", + "T1JZX01YQUNDRVNTX0NPTU1BTkRfRkFJTEVEEAcSOgo2V09SS0VSX0ZBVUxU", + "X0NBVEVHT1JZX01YQUNDRVNTX0VWRU5UX0NPTlZFUlNJT05fRkFJTEVEEAgS", + "IgoeV09SS0VSX0ZBVUxUX0NBVEVHT1JZX1NUQV9IVU5HEAkSKAokV09SS0VS", + "X0ZBVUxUX0NBVEVHT1JZX1FVRVVFX09WRVJGTE9XEAoSKgomV09SS0VSX0ZB", + "VUxUX0NBVEVHT1JZX1NIVVRET1dOX1RJTUVPVVQQC0IcqgIZTXhHYXRld2F5", + "LkNvbnRyYWN0cy5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::MxGateway.Contracts.Proto.MxaccessGatewayReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::MxGateway.Contracts.Proto.WorkerState), typeof(global::MxGateway.Contracts.Proto.WorkerFaultCategory), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerEnvelope), global::MxGateway.Contracts.Proto.WorkerEnvelope.Parser, new[]{ "ProtocolVersion", "SessionId", "Sequence", "CorrelationId", "GatewayHello", "WorkerHello", "WorkerReady", "WorkerCommand", "WorkerCommandReply", "WorkerCancel", "WorkerShutdown", "WorkerShutdownAck", "WorkerEvent", "WorkerHeartbeat", "WorkerFault" }, new[]{ "Body" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.GatewayHello), global::MxGateway.Contracts.Proto.GatewayHello.Parser, new[]{ "SupportedProtocolVersion", "Nonce", "GatewayVersion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerHello), global::MxGateway.Contracts.Proto.WorkerHello.Parser, new[]{ "ProtocolVersion", "Nonce", "WorkerProcessId", "WorkerVersion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerReady), global::MxGateway.Contracts.Proto.WorkerReady.Parser, new[]{ "WorkerProcessId", "MxaccessProgid", "MxaccessClsid", "ReadyTimestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerCommand), global::MxGateway.Contracts.Proto.WorkerCommand.Parser, new[]{ "Command", "EnqueueTimestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerCommandReply), global::MxGateway.Contracts.Proto.WorkerCommandReply.Parser, new[]{ "Reply", "CompletedTimestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerCancel), global::MxGateway.Contracts.Proto.WorkerCancel.Parser, new[]{ "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerShutdown), global::MxGateway.Contracts.Proto.WorkerShutdown.Parser, new[]{ "GracePeriod", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerShutdownAck), global::MxGateway.Contracts.Proto.WorkerShutdownAck.Parser, new[]{ "Status" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerEvent), global::MxGateway.Contracts.Proto.WorkerEvent.Parser, new[]{ "Event" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerHeartbeat), global::MxGateway.Contracts.Proto.WorkerHeartbeat.Parser, new[]{ "WorkerProcessId", "State", "LastStaActivityTimestamp", "PendingCommandCount", "OutboundEventQueueDepth", "LastEventSequence", "CurrentCommandCorrelationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::MxGateway.Contracts.Proto.WorkerFault), global::MxGateway.Contracts.Proto.WorkerFault.Parser, new[]{ "Category", "CommandMethod", "Hresult", "ExceptionType", "DiagnosticMessage", "ProtocolStatus" }, new[]{ "Hresult" }, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum WorkerState { + [pbr::OriginalName("WORKER_STATE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("WORKER_STATE_STARTING")] Starting = 1, + [pbr::OriginalName("WORKER_STATE_HANDSHAKING")] Handshaking = 2, + [pbr::OriginalName("WORKER_STATE_INITIALIZING_STA")] InitializingSta = 3, + [pbr::OriginalName("WORKER_STATE_READY")] Ready = 4, + [pbr::OriginalName("WORKER_STATE_EXECUTING_COMMAND")] ExecutingCommand = 5, + [pbr::OriginalName("WORKER_STATE_SHUTTING_DOWN")] ShuttingDown = 6, + [pbr::OriginalName("WORKER_STATE_STOPPED")] Stopped = 7, + [pbr::OriginalName("WORKER_STATE_FAULTED")] Faulted = 8, + } + + public enum WorkerFaultCategory { + [pbr::OriginalName("WORKER_FAULT_CATEGORY_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_INVALID_ARGUMENTS")] InvalidArguments = 1, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_GATEWAY_AUTHENTICATION_FAILED")] GatewayAuthenticationFailed = 2, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_PROTOCOL_MISMATCH")] ProtocolMismatch = 3, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_PROTOCOL_VIOLATION")] ProtocolViolation = 4, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_PIPE_DISCONNECTED")] PipeDisconnected = 5, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_MXACCESS_CREATION_FAILED")] MxaccessCreationFailed = 6, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_MXACCESS_COMMAND_FAILED")] MxaccessCommandFailed = 7, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_MXACCESS_EVENT_CONVERSION_FAILED")] MxaccessEventConversionFailed = 8, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_STA_HUNG")] StaHung = 9, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_QUEUE_OVERFLOW")] QueueOverflow = 10, + [pbr::OriginalName("WORKER_FAULT_CATEGORY_SHUTDOWN_TIMEOUT")] ShutdownTimeout = 11, + } + + #endregion + + #region Messages + /// + /// Gateway-to-worker IPC envelope. Named-pipe framing prepends a little-endian + /// uint32 payload length to this protobuf payload. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerEnvelope : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerEnvelope()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerEnvelope() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerEnvelope(WorkerEnvelope other) : this() { + protocolVersion_ = other.protocolVersion_; + sessionId_ = other.sessionId_; + sequence_ = other.sequence_; + correlationId_ = other.correlationId_; + switch (other.BodyCase) { + case BodyOneofCase.GatewayHello: + GatewayHello = other.GatewayHello.Clone(); + break; + case BodyOneofCase.WorkerHello: + WorkerHello = other.WorkerHello.Clone(); + break; + case BodyOneofCase.WorkerReady: + WorkerReady = other.WorkerReady.Clone(); + break; + case BodyOneofCase.WorkerCommand: + WorkerCommand = other.WorkerCommand.Clone(); + break; + case BodyOneofCase.WorkerCommandReply: + WorkerCommandReply = other.WorkerCommandReply.Clone(); + break; + case BodyOneofCase.WorkerCancel: + WorkerCancel = other.WorkerCancel.Clone(); + break; + case BodyOneofCase.WorkerShutdown: + WorkerShutdown = other.WorkerShutdown.Clone(); + break; + case BodyOneofCase.WorkerShutdownAck: + WorkerShutdownAck = other.WorkerShutdownAck.Clone(); + break; + case BodyOneofCase.WorkerEvent: + WorkerEvent = other.WorkerEvent.Clone(); + break; + case BodyOneofCase.WorkerHeartbeat: + WorkerHeartbeat = other.WorkerHeartbeat.Clone(); + break; + case BodyOneofCase.WorkerFault: + WorkerFault = other.WorkerFault.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerEnvelope Clone() { + return new WorkerEnvelope(this); + } + + /// Field number for the "protocol_version" field. + public const int ProtocolVersionFieldNumber = 1; + private uint protocolVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ProtocolVersion { + get { return protocolVersion_; } + set { + protocolVersion_ = value; + } + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 2; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "sequence" field. + public const int SequenceFieldNumber = 3; + private ulong sequence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Sequence { + get { return sequence_; } + set { + sequence_ = value; + } + } + + /// Field number for the "correlation_id" field. + public const int CorrelationIdFieldNumber = 4; + private string correlationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CorrelationId { + get { return correlationId_; } + set { + correlationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_hello" field. + public const int GatewayHelloFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.GatewayHello GatewayHello { + get { return bodyCase_ == BodyOneofCase.GatewayHello ? (global::MxGateway.Contracts.Proto.GatewayHello) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.GatewayHello; + } + } + + /// Field number for the "worker_hello" field. + public const int WorkerHelloFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerHello WorkerHello { + get { return bodyCase_ == BodyOneofCase.WorkerHello ? (global::MxGateway.Contracts.Proto.WorkerHello) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerHello; + } + } + + /// Field number for the "worker_ready" field. + public const int WorkerReadyFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerReady WorkerReady { + get { return bodyCase_ == BodyOneofCase.WorkerReady ? (global::MxGateway.Contracts.Proto.WorkerReady) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerReady; + } + } + + /// Field number for the "worker_command" field. + public const int WorkerCommandFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerCommand WorkerCommand { + get { return bodyCase_ == BodyOneofCase.WorkerCommand ? (global::MxGateway.Contracts.Proto.WorkerCommand) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerCommand; + } + } + + /// Field number for the "worker_command_reply" field. + public const int WorkerCommandReplyFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerCommandReply WorkerCommandReply { + get { return bodyCase_ == BodyOneofCase.WorkerCommandReply ? (global::MxGateway.Contracts.Proto.WorkerCommandReply) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerCommandReply; + } + } + + /// Field number for the "worker_cancel" field. + public const int WorkerCancelFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerCancel WorkerCancel { + get { return bodyCase_ == BodyOneofCase.WorkerCancel ? (global::MxGateway.Contracts.Proto.WorkerCancel) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerCancel; + } + } + + /// Field number for the "worker_shutdown" field. + public const int WorkerShutdownFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerShutdown WorkerShutdown { + get { return bodyCase_ == BodyOneofCase.WorkerShutdown ? (global::MxGateway.Contracts.Proto.WorkerShutdown) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerShutdown; + } + } + + /// Field number for the "worker_shutdown_ack" field. + public const int WorkerShutdownAckFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerShutdownAck WorkerShutdownAck { + get { return bodyCase_ == BodyOneofCase.WorkerShutdownAck ? (global::MxGateway.Contracts.Proto.WorkerShutdownAck) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerShutdownAck; + } + } + + /// Field number for the "worker_event" field. + public const int WorkerEventFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerEvent WorkerEvent { + get { return bodyCase_ == BodyOneofCase.WorkerEvent ? (global::MxGateway.Contracts.Proto.WorkerEvent) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerEvent; + } + } + + /// Field number for the "worker_heartbeat" field. + public const int WorkerHeartbeatFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerHeartbeat WorkerHeartbeat { + get { return bodyCase_ == BodyOneofCase.WorkerHeartbeat ? (global::MxGateway.Contracts.Proto.WorkerHeartbeat) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerHeartbeat; + } + } + + /// Field number for the "worker_fault" field. + public const int WorkerFaultFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerFault WorkerFault { + get { return bodyCase_ == BodyOneofCase.WorkerFault ? (global::MxGateway.Contracts.Proto.WorkerFault) body_ : null; } + set { + body_ = value; + bodyCase_ = value == null ? BodyOneofCase.None : BodyOneofCase.WorkerFault; + } + } + + private object body_; + /// Enum of possible cases for the "body" oneof. + public enum BodyOneofCase { + None = 0, + GatewayHello = 10, + WorkerHello = 11, + WorkerReady = 12, + WorkerCommand = 13, + WorkerCommandReply = 14, + WorkerCancel = 15, + WorkerShutdown = 16, + WorkerShutdownAck = 17, + WorkerEvent = 18, + WorkerHeartbeat = 19, + WorkerFault = 20, + } + private BodyOneofCase bodyCase_ = BodyOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BodyOneofCase BodyCase { + get { return bodyCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBody() { + bodyCase_ = BodyOneofCase.None; + body_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkerEnvelope); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerEnvelope other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ProtocolVersion != other.ProtocolVersion) return false; + if (SessionId != other.SessionId) return false; + if (Sequence != other.Sequence) return false; + if (CorrelationId != other.CorrelationId) return false; + if (!object.Equals(GatewayHello, other.GatewayHello)) return false; + if (!object.Equals(WorkerHello, other.WorkerHello)) return false; + if (!object.Equals(WorkerReady, other.WorkerReady)) return false; + if (!object.Equals(WorkerCommand, other.WorkerCommand)) return false; + if (!object.Equals(WorkerCommandReply, other.WorkerCommandReply)) return false; + if (!object.Equals(WorkerCancel, other.WorkerCancel)) return false; + if (!object.Equals(WorkerShutdown, other.WorkerShutdown)) return false; + if (!object.Equals(WorkerShutdownAck, other.WorkerShutdownAck)) return false; + if (!object.Equals(WorkerEvent, other.WorkerEvent)) return false; + if (!object.Equals(WorkerHeartbeat, other.WorkerHeartbeat)) return false; + if (!object.Equals(WorkerFault, other.WorkerFault)) return false; + if (BodyCase != other.BodyCase) 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 (ProtocolVersion != 0) hash ^= ProtocolVersion.GetHashCode(); + if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (Sequence != 0UL) hash ^= Sequence.GetHashCode(); + if (CorrelationId.Length != 0) hash ^= CorrelationId.GetHashCode(); + if (bodyCase_ == BodyOneofCase.GatewayHello) hash ^= GatewayHello.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerHello) hash ^= WorkerHello.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerReady) hash ^= WorkerReady.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerCommand) hash ^= WorkerCommand.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerCommandReply) hash ^= WorkerCommandReply.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerCancel) hash ^= WorkerCancel.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerShutdown) hash ^= WorkerShutdown.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerShutdownAck) hash ^= WorkerShutdownAck.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerEvent) hash ^= WorkerEvent.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerHeartbeat) hash ^= WorkerHeartbeat.GetHashCode(); + if (bodyCase_ == BodyOneofCase.WorkerFault) hash ^= WorkerFault.GetHashCode(); + hash ^= (int) bodyCase_; + 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 (ProtocolVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ProtocolVersion); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } + if (Sequence != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(Sequence); + } + if (CorrelationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(CorrelationId); + } + if (bodyCase_ == BodyOneofCase.GatewayHello) { + output.WriteRawTag(82); + output.WriteMessage(GatewayHello); + } + if (bodyCase_ == BodyOneofCase.WorkerHello) { + output.WriteRawTag(90); + output.WriteMessage(WorkerHello); + } + if (bodyCase_ == BodyOneofCase.WorkerReady) { + output.WriteRawTag(98); + output.WriteMessage(WorkerReady); + } + if (bodyCase_ == BodyOneofCase.WorkerCommand) { + output.WriteRawTag(106); + output.WriteMessage(WorkerCommand); + } + if (bodyCase_ == BodyOneofCase.WorkerCommandReply) { + output.WriteRawTag(114); + output.WriteMessage(WorkerCommandReply); + } + if (bodyCase_ == BodyOneofCase.WorkerCancel) { + output.WriteRawTag(122); + output.WriteMessage(WorkerCancel); + } + if (bodyCase_ == BodyOneofCase.WorkerShutdown) { + output.WriteRawTag(130, 1); + output.WriteMessage(WorkerShutdown); + } + if (bodyCase_ == BodyOneofCase.WorkerShutdownAck) { + output.WriteRawTag(138, 1); + output.WriteMessage(WorkerShutdownAck); + } + if (bodyCase_ == BodyOneofCase.WorkerEvent) { + output.WriteRawTag(146, 1); + output.WriteMessage(WorkerEvent); + } + if (bodyCase_ == BodyOneofCase.WorkerHeartbeat) { + output.WriteRawTag(154, 1); + output.WriteMessage(WorkerHeartbeat); + } + if (bodyCase_ == BodyOneofCase.WorkerFault) { + output.WriteRawTag(162, 1); + output.WriteMessage(WorkerFault); + } + 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 (ProtocolVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ProtocolVersion); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } + if (Sequence != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(Sequence); + } + if (CorrelationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(CorrelationId); + } + if (bodyCase_ == BodyOneofCase.GatewayHello) { + output.WriteRawTag(82); + output.WriteMessage(GatewayHello); + } + if (bodyCase_ == BodyOneofCase.WorkerHello) { + output.WriteRawTag(90); + output.WriteMessage(WorkerHello); + } + if (bodyCase_ == BodyOneofCase.WorkerReady) { + output.WriteRawTag(98); + output.WriteMessage(WorkerReady); + } + if (bodyCase_ == BodyOneofCase.WorkerCommand) { + output.WriteRawTag(106); + output.WriteMessage(WorkerCommand); + } + if (bodyCase_ == BodyOneofCase.WorkerCommandReply) { + output.WriteRawTag(114); + output.WriteMessage(WorkerCommandReply); + } + if (bodyCase_ == BodyOneofCase.WorkerCancel) { + output.WriteRawTag(122); + output.WriteMessage(WorkerCancel); + } + if (bodyCase_ == BodyOneofCase.WorkerShutdown) { + output.WriteRawTag(130, 1); + output.WriteMessage(WorkerShutdown); + } + if (bodyCase_ == BodyOneofCase.WorkerShutdownAck) { + output.WriteRawTag(138, 1); + output.WriteMessage(WorkerShutdownAck); + } + if (bodyCase_ == BodyOneofCase.WorkerEvent) { + output.WriteRawTag(146, 1); + output.WriteMessage(WorkerEvent); + } + if (bodyCase_ == BodyOneofCase.WorkerHeartbeat) { + output.WriteRawTag(154, 1); + output.WriteMessage(WorkerHeartbeat); + } + if (bodyCase_ == BodyOneofCase.WorkerFault) { + output.WriteRawTag(162, 1); + output.WriteMessage(WorkerFault); + } + 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 (ProtocolVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ProtocolVersion); + } + if (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (Sequence != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Sequence); + } + if (CorrelationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationId); + } + if (bodyCase_ == BodyOneofCase.GatewayHello) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GatewayHello); + } + if (bodyCase_ == BodyOneofCase.WorkerHello) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerHello); + } + if (bodyCase_ == BodyOneofCase.WorkerReady) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerReady); + } + if (bodyCase_ == BodyOneofCase.WorkerCommand) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerCommand); + } + if (bodyCase_ == BodyOneofCase.WorkerCommandReply) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerCommandReply); + } + if (bodyCase_ == BodyOneofCase.WorkerCancel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WorkerCancel); + } + if (bodyCase_ == BodyOneofCase.WorkerShutdown) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkerShutdown); + } + if (bodyCase_ == BodyOneofCase.WorkerShutdownAck) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkerShutdownAck); + } + if (bodyCase_ == BodyOneofCase.WorkerEvent) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkerEvent); + } + if (bodyCase_ == BodyOneofCase.WorkerHeartbeat) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkerHeartbeat); + } + if (bodyCase_ == BodyOneofCase.WorkerFault) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(WorkerFault); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerEnvelope other) { + if (other == null) { + return; + } + if (other.ProtocolVersion != 0) { + ProtocolVersion = other.ProtocolVersion; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.Sequence != 0UL) { + Sequence = other.Sequence; + } + if (other.CorrelationId.Length != 0) { + CorrelationId = other.CorrelationId; + } + switch (other.BodyCase) { + case BodyOneofCase.GatewayHello: + if (GatewayHello == null) { + GatewayHello = new global::MxGateway.Contracts.Proto.GatewayHello(); + } + GatewayHello.MergeFrom(other.GatewayHello); + break; + case BodyOneofCase.WorkerHello: + if (WorkerHello == null) { + WorkerHello = new global::MxGateway.Contracts.Proto.WorkerHello(); + } + WorkerHello.MergeFrom(other.WorkerHello); + break; + case BodyOneofCase.WorkerReady: + if (WorkerReady == null) { + WorkerReady = new global::MxGateway.Contracts.Proto.WorkerReady(); + } + WorkerReady.MergeFrom(other.WorkerReady); + break; + case BodyOneofCase.WorkerCommand: + if (WorkerCommand == null) { + WorkerCommand = new global::MxGateway.Contracts.Proto.WorkerCommand(); + } + WorkerCommand.MergeFrom(other.WorkerCommand); + break; + case BodyOneofCase.WorkerCommandReply: + if (WorkerCommandReply == null) { + WorkerCommandReply = new global::MxGateway.Contracts.Proto.WorkerCommandReply(); + } + WorkerCommandReply.MergeFrom(other.WorkerCommandReply); + break; + case BodyOneofCase.WorkerCancel: + if (WorkerCancel == null) { + WorkerCancel = new global::MxGateway.Contracts.Proto.WorkerCancel(); + } + WorkerCancel.MergeFrom(other.WorkerCancel); + break; + case BodyOneofCase.WorkerShutdown: + if (WorkerShutdown == null) { + WorkerShutdown = new global::MxGateway.Contracts.Proto.WorkerShutdown(); + } + WorkerShutdown.MergeFrom(other.WorkerShutdown); + break; + case BodyOneofCase.WorkerShutdownAck: + if (WorkerShutdownAck == null) { + WorkerShutdownAck = new global::MxGateway.Contracts.Proto.WorkerShutdownAck(); + } + WorkerShutdownAck.MergeFrom(other.WorkerShutdownAck); + break; + case BodyOneofCase.WorkerEvent: + if (WorkerEvent == null) { + WorkerEvent = new global::MxGateway.Contracts.Proto.WorkerEvent(); + } + WorkerEvent.MergeFrom(other.WorkerEvent); + break; + case BodyOneofCase.WorkerHeartbeat: + if (WorkerHeartbeat == null) { + WorkerHeartbeat = new global::MxGateway.Contracts.Proto.WorkerHeartbeat(); + } + WorkerHeartbeat.MergeFrom(other.WorkerHeartbeat); + break; + case BodyOneofCase.WorkerFault: + if (WorkerFault == null) { + WorkerFault = new global::MxGateway.Contracts.Proto.WorkerFault(); + } + WorkerFault.MergeFrom(other.WorkerFault); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ProtocolVersion = input.ReadUInt32(); + break; + } + case 18: { + SessionId = input.ReadString(); + break; + } + case 24: { + Sequence = input.ReadUInt64(); + break; + } + case 34: { + CorrelationId = input.ReadString(); + break; + } + case 82: { + global::MxGateway.Contracts.Proto.GatewayHello subBuilder = new global::MxGateway.Contracts.Proto.GatewayHello(); + if (bodyCase_ == BodyOneofCase.GatewayHello) { + subBuilder.MergeFrom(GatewayHello); + } + input.ReadMessage(subBuilder); + GatewayHello = subBuilder; + break; + } + case 90: { + global::MxGateway.Contracts.Proto.WorkerHello subBuilder = new global::MxGateway.Contracts.Proto.WorkerHello(); + if (bodyCase_ == BodyOneofCase.WorkerHello) { + subBuilder.MergeFrom(WorkerHello); + } + input.ReadMessage(subBuilder); + WorkerHello = subBuilder; + break; + } + case 98: { + global::MxGateway.Contracts.Proto.WorkerReady subBuilder = new global::MxGateway.Contracts.Proto.WorkerReady(); + if (bodyCase_ == BodyOneofCase.WorkerReady) { + subBuilder.MergeFrom(WorkerReady); + } + input.ReadMessage(subBuilder); + WorkerReady = subBuilder; + break; + } + case 106: { + global::MxGateway.Contracts.Proto.WorkerCommand subBuilder = new global::MxGateway.Contracts.Proto.WorkerCommand(); + if (bodyCase_ == BodyOneofCase.WorkerCommand) { + subBuilder.MergeFrom(WorkerCommand); + } + input.ReadMessage(subBuilder); + WorkerCommand = subBuilder; + break; + } + case 114: { + global::MxGateway.Contracts.Proto.WorkerCommandReply subBuilder = new global::MxGateway.Contracts.Proto.WorkerCommandReply(); + if (bodyCase_ == BodyOneofCase.WorkerCommandReply) { + subBuilder.MergeFrom(WorkerCommandReply); + } + input.ReadMessage(subBuilder); + WorkerCommandReply = subBuilder; + break; + } + case 122: { + global::MxGateway.Contracts.Proto.WorkerCancel subBuilder = new global::MxGateway.Contracts.Proto.WorkerCancel(); + if (bodyCase_ == BodyOneofCase.WorkerCancel) { + subBuilder.MergeFrom(WorkerCancel); + } + input.ReadMessage(subBuilder); + WorkerCancel = subBuilder; + break; + } + case 130: { + global::MxGateway.Contracts.Proto.WorkerShutdown subBuilder = new global::MxGateway.Contracts.Proto.WorkerShutdown(); + if (bodyCase_ == BodyOneofCase.WorkerShutdown) { + subBuilder.MergeFrom(WorkerShutdown); + } + input.ReadMessage(subBuilder); + WorkerShutdown = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.WorkerShutdownAck subBuilder = new global::MxGateway.Contracts.Proto.WorkerShutdownAck(); + if (bodyCase_ == BodyOneofCase.WorkerShutdownAck) { + subBuilder.MergeFrom(WorkerShutdownAck); + } + input.ReadMessage(subBuilder); + WorkerShutdownAck = subBuilder; + break; + } + case 146: { + global::MxGateway.Contracts.Proto.WorkerEvent subBuilder = new global::MxGateway.Contracts.Proto.WorkerEvent(); + if (bodyCase_ == BodyOneofCase.WorkerEvent) { + subBuilder.MergeFrom(WorkerEvent); + } + input.ReadMessage(subBuilder); + WorkerEvent = subBuilder; + break; + } + case 154: { + global::MxGateway.Contracts.Proto.WorkerHeartbeat subBuilder = new global::MxGateway.Contracts.Proto.WorkerHeartbeat(); + if (bodyCase_ == BodyOneofCase.WorkerHeartbeat) { + subBuilder.MergeFrom(WorkerHeartbeat); + } + input.ReadMessage(subBuilder); + WorkerHeartbeat = subBuilder; + break; + } + case 162: { + global::MxGateway.Contracts.Proto.WorkerFault subBuilder = new global::MxGateway.Contracts.Proto.WorkerFault(); + if (bodyCase_ == BodyOneofCase.WorkerFault) { + subBuilder.MergeFrom(WorkerFault); + } + input.ReadMessage(subBuilder); + WorkerFault = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ProtocolVersion = input.ReadUInt32(); + break; + } + case 18: { + SessionId = input.ReadString(); + break; + } + case 24: { + Sequence = input.ReadUInt64(); + break; + } + case 34: { + CorrelationId = input.ReadString(); + break; + } + case 82: { + global::MxGateway.Contracts.Proto.GatewayHello subBuilder = new global::MxGateway.Contracts.Proto.GatewayHello(); + if (bodyCase_ == BodyOneofCase.GatewayHello) { + subBuilder.MergeFrom(GatewayHello); + } + input.ReadMessage(subBuilder); + GatewayHello = subBuilder; + break; + } + case 90: { + global::MxGateway.Contracts.Proto.WorkerHello subBuilder = new global::MxGateway.Contracts.Proto.WorkerHello(); + if (bodyCase_ == BodyOneofCase.WorkerHello) { + subBuilder.MergeFrom(WorkerHello); + } + input.ReadMessage(subBuilder); + WorkerHello = subBuilder; + break; + } + case 98: { + global::MxGateway.Contracts.Proto.WorkerReady subBuilder = new global::MxGateway.Contracts.Proto.WorkerReady(); + if (bodyCase_ == BodyOneofCase.WorkerReady) { + subBuilder.MergeFrom(WorkerReady); + } + input.ReadMessage(subBuilder); + WorkerReady = subBuilder; + break; + } + case 106: { + global::MxGateway.Contracts.Proto.WorkerCommand subBuilder = new global::MxGateway.Contracts.Proto.WorkerCommand(); + if (bodyCase_ == BodyOneofCase.WorkerCommand) { + subBuilder.MergeFrom(WorkerCommand); + } + input.ReadMessage(subBuilder); + WorkerCommand = subBuilder; + break; + } + case 114: { + global::MxGateway.Contracts.Proto.WorkerCommandReply subBuilder = new global::MxGateway.Contracts.Proto.WorkerCommandReply(); + if (bodyCase_ == BodyOneofCase.WorkerCommandReply) { + subBuilder.MergeFrom(WorkerCommandReply); + } + input.ReadMessage(subBuilder); + WorkerCommandReply = subBuilder; + break; + } + case 122: { + global::MxGateway.Contracts.Proto.WorkerCancel subBuilder = new global::MxGateway.Contracts.Proto.WorkerCancel(); + if (bodyCase_ == BodyOneofCase.WorkerCancel) { + subBuilder.MergeFrom(WorkerCancel); + } + input.ReadMessage(subBuilder); + WorkerCancel = subBuilder; + break; + } + case 130: { + global::MxGateway.Contracts.Proto.WorkerShutdown subBuilder = new global::MxGateway.Contracts.Proto.WorkerShutdown(); + if (bodyCase_ == BodyOneofCase.WorkerShutdown) { + subBuilder.MergeFrom(WorkerShutdown); + } + input.ReadMessage(subBuilder); + WorkerShutdown = subBuilder; + break; + } + case 138: { + global::MxGateway.Contracts.Proto.WorkerShutdownAck subBuilder = new global::MxGateway.Contracts.Proto.WorkerShutdownAck(); + if (bodyCase_ == BodyOneofCase.WorkerShutdownAck) { + subBuilder.MergeFrom(WorkerShutdownAck); + } + input.ReadMessage(subBuilder); + WorkerShutdownAck = subBuilder; + break; + } + case 146: { + global::MxGateway.Contracts.Proto.WorkerEvent subBuilder = new global::MxGateway.Contracts.Proto.WorkerEvent(); + if (bodyCase_ == BodyOneofCase.WorkerEvent) { + subBuilder.MergeFrom(WorkerEvent); + } + input.ReadMessage(subBuilder); + WorkerEvent = subBuilder; + break; + } + case 154: { + global::MxGateway.Contracts.Proto.WorkerHeartbeat subBuilder = new global::MxGateway.Contracts.Proto.WorkerHeartbeat(); + if (bodyCase_ == BodyOneofCase.WorkerHeartbeat) { + subBuilder.MergeFrom(WorkerHeartbeat); + } + input.ReadMessage(subBuilder); + WorkerHeartbeat = subBuilder; + break; + } + case 162: { + global::MxGateway.Contracts.Proto.WorkerFault subBuilder = new global::MxGateway.Contracts.Proto.WorkerFault(); + if (bodyCase_ == BodyOneofCase.WorkerFault) { + subBuilder.MergeFrom(WorkerFault); + } + input.ReadMessage(subBuilder); + WorkerFault = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GatewayHello : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GatewayHello()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 GatewayHello() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayHello(GatewayHello other) : this() { + supportedProtocolVersion_ = other.supportedProtocolVersion_; + nonce_ = other.nonce_; + gatewayVersion_ = other.gatewayVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GatewayHello Clone() { + return new GatewayHello(this); + } + + /// Field number for the "supported_protocol_version" field. + public const int SupportedProtocolVersionFieldNumber = 1; + private uint supportedProtocolVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SupportedProtocolVersion { + get { return supportedProtocolVersion_; } + set { + supportedProtocolVersion_ = value; + } + } + + /// Field number for the "nonce" field. + public const int NonceFieldNumber = 2; + private string nonce_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Nonce { + get { return nonce_; } + set { + nonce_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gateway_version" field. + public const int GatewayVersionFieldNumber = 3; + private string gatewayVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayVersion { + get { return gatewayVersion_; } + set { + gatewayVersion_ = 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 GatewayHello); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GatewayHello other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SupportedProtocolVersion != other.SupportedProtocolVersion) return false; + if (Nonce != other.Nonce) return false; + if (GatewayVersion != other.GatewayVersion) 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 (SupportedProtocolVersion != 0) hash ^= SupportedProtocolVersion.GetHashCode(); + if (Nonce.Length != 0) hash ^= Nonce.GetHashCode(); + if (GatewayVersion.Length != 0) hash ^= GatewayVersion.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 (SupportedProtocolVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SupportedProtocolVersion); + } + if (Nonce.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Nonce); + } + if (GatewayVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GatewayVersion); + } + 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 (SupportedProtocolVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(SupportedProtocolVersion); + } + if (Nonce.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Nonce); + } + if (GatewayVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GatewayVersion); + } + 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 (SupportedProtocolVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SupportedProtocolVersion); + } + if (Nonce.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Nonce); + } + if (GatewayVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GatewayHello other) { + if (other == null) { + return; + } + if (other.SupportedProtocolVersion != 0) { + SupportedProtocolVersion = other.SupportedProtocolVersion; + } + if (other.Nonce.Length != 0) { + Nonce = other.Nonce; + } + if (other.GatewayVersion.Length != 0) { + GatewayVersion = other.GatewayVersion; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SupportedProtocolVersion = input.ReadUInt32(); + break; + } + case 18: { + Nonce = input.ReadString(); + break; + } + case 26: { + GatewayVersion = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SupportedProtocolVersion = input.ReadUInt32(); + break; + } + case 18: { + Nonce = input.ReadString(); + break; + } + case 26: { + GatewayVersion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerHello : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerHello()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerHello() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerHello(WorkerHello other) : this() { + protocolVersion_ = other.protocolVersion_; + nonce_ = other.nonce_; + workerProcessId_ = other.workerProcessId_; + workerVersion_ = other.workerVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerHello Clone() { + return new WorkerHello(this); + } + + /// Field number for the "protocol_version" field. + public const int ProtocolVersionFieldNumber = 1; + private uint protocolVersion_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ProtocolVersion { + get { return protocolVersion_; } + set { + protocolVersion_ = value; + } + } + + /// Field number for the "nonce" field. + public const int NonceFieldNumber = 2; + private string nonce_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Nonce { + get { return nonce_; } + set { + nonce_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "worker_process_id" field. + public const int WorkerProcessIdFieldNumber = 3; + private int workerProcessId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorkerProcessId { + get { return workerProcessId_; } + set { + workerProcessId_ = value; + } + } + + /// Field number for the "worker_version" field. + public const int WorkerVersionFieldNumber = 4; + private string workerVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WorkerVersion { + get { return workerVersion_; } + set { + workerVersion_ = 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 WorkerHello); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerHello other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ProtocolVersion != other.ProtocolVersion) return false; + if (Nonce != other.Nonce) return false; + if (WorkerProcessId != other.WorkerProcessId) return false; + if (WorkerVersion != other.WorkerVersion) 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 (ProtocolVersion != 0) hash ^= ProtocolVersion.GetHashCode(); + if (Nonce.Length != 0) hash ^= Nonce.GetHashCode(); + if (WorkerProcessId != 0) hash ^= WorkerProcessId.GetHashCode(); + if (WorkerVersion.Length != 0) hash ^= WorkerVersion.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 (ProtocolVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ProtocolVersion); + } + if (Nonce.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Nonce); + } + if (WorkerProcessId != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorkerProcessId); + } + if (WorkerVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(WorkerVersion); + } + 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 (ProtocolVersion != 0) { + output.WriteRawTag(8); + output.WriteUInt32(ProtocolVersion); + } + if (Nonce.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Nonce); + } + if (WorkerProcessId != 0) { + output.WriteRawTag(24); + output.WriteInt32(WorkerProcessId); + } + if (WorkerVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(WorkerVersion); + } + 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 (ProtocolVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ProtocolVersion); + } + if (Nonce.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Nonce); + } + if (WorkerProcessId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorkerProcessId); + } + if (WorkerVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkerVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerHello other) { + if (other == null) { + return; + } + if (other.ProtocolVersion != 0) { + ProtocolVersion = other.ProtocolVersion; + } + if (other.Nonce.Length != 0) { + Nonce = other.Nonce; + } + if (other.WorkerProcessId != 0) { + WorkerProcessId = other.WorkerProcessId; + } + if (other.WorkerVersion.Length != 0) { + WorkerVersion = other.WorkerVersion; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ProtocolVersion = input.ReadUInt32(); + break; + } + case 18: { + Nonce = input.ReadString(); + break; + } + case 24: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 34: { + WorkerVersion = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ProtocolVersion = input.ReadUInt32(); + break; + } + case 18: { + Nonce = input.ReadString(); + break; + } + case 24: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 34: { + WorkerVersion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerReady : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerReady()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerReady() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerReady(WorkerReady other) : this() { + workerProcessId_ = other.workerProcessId_; + mxaccessProgid_ = other.mxaccessProgid_; + mxaccessClsid_ = other.mxaccessClsid_; + readyTimestamp_ = other.readyTimestamp_ != null ? other.readyTimestamp_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerReady Clone() { + return new WorkerReady(this); + } + + /// Field number for the "worker_process_id" field. + public const int WorkerProcessIdFieldNumber = 1; + private int workerProcessId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorkerProcessId { + get { return workerProcessId_; } + set { + workerProcessId_ = value; + } + } + + /// Field number for the "mxaccess_progid" field. + public const int MxaccessProgidFieldNumber = 2; + private string mxaccessProgid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MxaccessProgid { + get { return mxaccessProgid_; } + set { + mxaccessProgid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mxaccess_clsid" field. + public const int MxaccessClsidFieldNumber = 3; + private string mxaccessClsid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MxaccessClsid { + get { return mxaccessClsid_; } + set { + mxaccessClsid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ready_timestamp" field. + public const int ReadyTimestampFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp readyTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ReadyTimestamp { + get { return readyTimestamp_; } + set { + readyTimestamp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkerReady); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerReady other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WorkerProcessId != other.WorkerProcessId) return false; + if (MxaccessProgid != other.MxaccessProgid) return false; + if (MxaccessClsid != other.MxaccessClsid) return false; + if (!object.Equals(ReadyTimestamp, other.ReadyTimestamp)) 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 (WorkerProcessId != 0) hash ^= WorkerProcessId.GetHashCode(); + if (MxaccessProgid.Length != 0) hash ^= MxaccessProgid.GetHashCode(); + if (MxaccessClsid.Length != 0) hash ^= MxaccessClsid.GetHashCode(); + if (readyTimestamp_ != null) hash ^= ReadyTimestamp.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 (WorkerProcessId != 0) { + output.WriteRawTag(8); + output.WriteInt32(WorkerProcessId); + } + if (MxaccessProgid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MxaccessProgid); + } + if (MxaccessClsid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MxaccessClsid); + } + if (readyTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReadyTimestamp); + } + 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 (WorkerProcessId != 0) { + output.WriteRawTag(8); + output.WriteInt32(WorkerProcessId); + } + if (MxaccessProgid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MxaccessProgid); + } + if (MxaccessClsid.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MxaccessClsid); + } + if (readyTimestamp_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ReadyTimestamp); + } + 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 (WorkerProcessId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorkerProcessId); + } + if (MxaccessProgid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MxaccessProgid); + } + if (MxaccessClsid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MxaccessClsid); + } + if (readyTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReadyTimestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerReady other) { + if (other == null) { + return; + } + if (other.WorkerProcessId != 0) { + WorkerProcessId = other.WorkerProcessId; + } + if (other.MxaccessProgid.Length != 0) { + MxaccessProgid = other.MxaccessProgid; + } + if (other.MxaccessClsid.Length != 0) { + MxaccessClsid = other.MxaccessClsid; + } + if (other.readyTimestamp_ != null) { + if (readyTimestamp_ == null) { + ReadyTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ReadyTimestamp.MergeFrom(other.ReadyTimestamp); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 18: { + MxaccessProgid = input.ReadString(); + break; + } + case 26: { + MxaccessClsid = input.ReadString(); + break; + } + case 34: { + if (readyTimestamp_ == null) { + ReadyTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReadyTimestamp); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 18: { + MxaccessProgid = input.ReadString(); + break; + } + case 26: { + MxaccessClsid = input.ReadString(); + break; + } + case 34: { + if (readyTimestamp_ == null) { + ReadyTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ReadyTimestamp); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerCommand : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerCommand()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerCommand() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerCommand(WorkerCommand other) : this() { + command_ = other.command_ != null ? other.command_.Clone() : null; + enqueueTimestamp_ = other.enqueueTimestamp_ != null ? other.enqueueTimestamp_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerCommand Clone() { + return new WorkerCommand(this); + } + + /// Field number for the "command" field. + public const int CommandFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxCommand command_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxCommand Command { + get { return command_; } + set { + command_ = value; + } + } + + /// Field number for the "enqueue_timestamp" field. + public const int EnqueueTimestampFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp enqueueTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EnqueueTimestamp { + get { return enqueueTimestamp_; } + set { + enqueueTimestamp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkerCommand); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerCommand other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Command, other.Command)) return false; + if (!object.Equals(EnqueueTimestamp, other.EnqueueTimestamp)) 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 (command_ != null) hash ^= Command.GetHashCode(); + if (enqueueTimestamp_ != null) hash ^= EnqueueTimestamp.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 (command_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Command); + } + if (enqueueTimestamp_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EnqueueTimestamp); + } + 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 (command_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Command); + } + if (enqueueTimestamp_ != null) { + output.WriteRawTag(18); + output.WriteMessage(EnqueueTimestamp); + } + 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 (command_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Command); + } + if (enqueueTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnqueueTimestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerCommand other) { + if (other == null) { + return; + } + if (other.command_ != null) { + if (command_ == null) { + Command = new global::MxGateway.Contracts.Proto.MxCommand(); + } + Command.MergeFrom(other.Command); + } + if (other.enqueueTimestamp_ != null) { + if (enqueueTimestamp_ == null) { + EnqueueTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EnqueueTimestamp.MergeFrom(other.EnqueueTimestamp); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (command_ == null) { + Command = new global::MxGateway.Contracts.Proto.MxCommand(); + } + input.ReadMessage(Command); + break; + } + case 18: { + if (enqueueTimestamp_ == null) { + EnqueueTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EnqueueTimestamp); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (command_ == null) { + Command = new global::MxGateway.Contracts.Proto.MxCommand(); + } + input.ReadMessage(Command); + break; + } + case 18: { + if (enqueueTimestamp_ == null) { + EnqueueTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EnqueueTimestamp); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerCommandReply : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerCommandReply()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerCommandReply() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerCommandReply(WorkerCommandReply other) : this() { + reply_ = other.reply_ != null ? other.reply_.Clone() : null; + completedTimestamp_ = other.completedTimestamp_ != null ? other.completedTimestamp_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerCommandReply Clone() { + return new WorkerCommandReply(this); + } + + /// Field number for the "reply" field. + public const int ReplyFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxCommandReply reply_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxCommandReply Reply { + get { return reply_; } + set { + reply_ = value; + } + } + + /// Field number for the "completed_timestamp" field. + public const int CompletedTimestampFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp completedTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CompletedTimestamp { + get { return completedTimestamp_; } + set { + completedTimestamp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkerCommandReply); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerCommandReply other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Reply, other.Reply)) return false; + if (!object.Equals(CompletedTimestamp, other.CompletedTimestamp)) 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 (reply_ != null) hash ^= Reply.GetHashCode(); + if (completedTimestamp_ != null) hash ^= CompletedTimestamp.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 (reply_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Reply); + } + if (completedTimestamp_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CompletedTimestamp); + } + 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 (reply_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Reply); + } + if (completedTimestamp_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CompletedTimestamp); + } + 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 (reply_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Reply); + } + if (completedTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CompletedTimestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerCommandReply other) { + if (other == null) { + return; + } + if (other.reply_ != null) { + if (reply_ == null) { + Reply = new global::MxGateway.Contracts.Proto.MxCommandReply(); + } + Reply.MergeFrom(other.Reply); + } + if (other.completedTimestamp_ != null) { + if (completedTimestamp_ == null) { + CompletedTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CompletedTimestamp.MergeFrom(other.CompletedTimestamp); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (reply_ == null) { + Reply = new global::MxGateway.Contracts.Proto.MxCommandReply(); + } + input.ReadMessage(Reply); + break; + } + case 18: { + if (completedTimestamp_ == null) { + CompletedTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CompletedTimestamp); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (reply_ == null) { + Reply = new global::MxGateway.Contracts.Proto.MxCommandReply(); + } + input.ReadMessage(Reply); + break; + } + case 18: { + if (completedTimestamp_ == null) { + CompletedTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CompletedTimestamp); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerCancel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerCancel()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerCancel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerCancel(WorkerCancel other) : this() { + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerCancel Clone() { + return new WorkerCancel(this); + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 1; + private string reason_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = 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 WorkerCancel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerCancel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Reason != other.Reason) 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 (Reason.Length != 0) hash ^= Reason.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 (Reason.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Reason); + } + 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 (Reason.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Reason); + } + 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 (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerCancel other) { + if (other == null) { + return; + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Reason = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Reason = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerShutdown : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerShutdown()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerShutdown() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerShutdown(WorkerShutdown other) : this() { + gracePeriod_ = other.gracePeriod_ != null ? other.gracePeriod_.Clone() : null; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerShutdown Clone() { + return new WorkerShutdown(this); + } + + /// Field number for the "grace_period" field. + public const int GracePeriodFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration gracePeriod_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration GracePeriod { + get { return gracePeriod_; } + set { + gracePeriod_ = value; + } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 2; + private string reason_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = 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 WorkerShutdown); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerShutdown other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GracePeriod, other.GracePeriod)) return false; + if (Reason != other.Reason) 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 (gracePeriod_ != null) hash ^= GracePeriod.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.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 (gracePeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GracePeriod); + } + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } + 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 (gracePeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GracePeriod); + } + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } + 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 (gracePeriod_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GracePeriod); + } + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerShutdown other) { + if (other == null) { + return; + } + if (other.gracePeriod_ != null) { + if (gracePeriod_ == null) { + GracePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + GracePeriod.MergeFrom(other.GracePeriod); + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (gracePeriod_ == null) { + GracePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(GracePeriod); + break; + } + case 18: { + Reason = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (gracePeriod_ == null) { + GracePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(GracePeriod); + break; + } + case 18: { + Reason = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerShutdownAck : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerShutdownAck()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerShutdownAck() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerShutdownAck(WorkerShutdownAck other) : this() { + status_ = other.status_ != null ? other.status_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerShutdownAck Clone() { + return new WorkerShutdownAck(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 1; + private global::MxGateway.Contracts.Proto.ProtocolStatus status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ProtocolStatus Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkerShutdownAck); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerShutdownAck other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Status, other.Status)) 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 (status_ != null) hash ^= Status.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 (status_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Status); + } + 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 (status_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Status); + } + 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 (status_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerShutdownAck other) { + if (other == null) { + return; + } + if (other.status_ != null) { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + Status.MergeFrom(other.Status); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(Status); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (status_ == null) { + Status = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(Status); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerEvent()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerEvent(WorkerEvent other) : this() { + event_ = other.event_ != null ? other.event_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerEvent Clone() { + return new WorkerEvent(this); + } + + /// Field number for the "event" field. + public const int EventFieldNumber = 1; + private global::MxGateway.Contracts.Proto.MxEvent event_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.MxEvent Event { + get { return event_; } + set { + event_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkerEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Event, other.Event)) 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 (event_ != null) hash ^= Event.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 (event_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Event); + } + 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 (event_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Event); + } + 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 (event_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Event); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerEvent other) { + if (other == null) { + return; + } + if (other.event_ != null) { + if (event_ == null) { + Event = new global::MxGateway.Contracts.Proto.MxEvent(); + } + Event.MergeFrom(other.Event); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (event_ == null) { + Event = new global::MxGateway.Contracts.Proto.MxEvent(); + } + input.ReadMessage(Event); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (event_ == null) { + Event = new global::MxGateway.Contracts.Proto.MxEvent(); + } + input.ReadMessage(Event); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerHeartbeat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerHeartbeat()); + 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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerHeartbeat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerHeartbeat(WorkerHeartbeat other) : this() { + workerProcessId_ = other.workerProcessId_; + state_ = other.state_; + lastStaActivityTimestamp_ = other.lastStaActivityTimestamp_ != null ? other.lastStaActivityTimestamp_.Clone() : null; + pendingCommandCount_ = other.pendingCommandCount_; + outboundEventQueueDepth_ = other.outboundEventQueueDepth_; + lastEventSequence_ = other.lastEventSequence_; + currentCommandCorrelationId_ = other.currentCommandCorrelationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerHeartbeat Clone() { + return new WorkerHeartbeat(this); + } + + /// Field number for the "worker_process_id" field. + public const int WorkerProcessIdFieldNumber = 1; + private int workerProcessId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WorkerProcessId { + get { return workerProcessId_; } + set { + workerProcessId_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private global::MxGateway.Contracts.Proto.WorkerState state_ = global::MxGateway.Contracts.Proto.WorkerState.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerState State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "last_sta_activity_timestamp" field. + public const int LastStaActivityTimestampFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastStaActivityTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastStaActivityTimestamp { + get { return lastStaActivityTimestamp_; } + set { + lastStaActivityTimestamp_ = value; + } + } + + /// Field number for the "pending_command_count" field. + public const int PendingCommandCountFieldNumber = 4; + private uint pendingCommandCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PendingCommandCount { + get { return pendingCommandCount_; } + set { + pendingCommandCount_ = value; + } + } + + /// Field number for the "outbound_event_queue_depth" field. + public const int OutboundEventQueueDepthFieldNumber = 5; + private uint outboundEventQueueDepth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint OutboundEventQueueDepth { + get { return outboundEventQueueDepth_; } + set { + outboundEventQueueDepth_ = value; + } + } + + /// Field number for the "last_event_sequence" field. + public const int LastEventSequenceFieldNumber = 6; + private ulong lastEventSequence_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LastEventSequence { + get { return lastEventSequence_; } + set { + lastEventSequence_ = value; + } + } + + /// Field number for the "current_command_correlation_id" field. + public const int CurrentCommandCorrelationIdFieldNumber = 7; + private string currentCommandCorrelationId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CurrentCommandCorrelationId { + get { return currentCommandCorrelationId_; } + set { + currentCommandCorrelationId_ = 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 WorkerHeartbeat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerHeartbeat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WorkerProcessId != other.WorkerProcessId) return false; + if (State != other.State) return false; + if (!object.Equals(LastStaActivityTimestamp, other.LastStaActivityTimestamp)) return false; + if (PendingCommandCount != other.PendingCommandCount) return false; + if (OutboundEventQueueDepth != other.OutboundEventQueueDepth) return false; + if (LastEventSequence != other.LastEventSequence) return false; + if (CurrentCommandCorrelationId != other.CurrentCommandCorrelationId) 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 (WorkerProcessId != 0) hash ^= WorkerProcessId.GetHashCode(); + if (State != global::MxGateway.Contracts.Proto.WorkerState.Unspecified) hash ^= State.GetHashCode(); + if (lastStaActivityTimestamp_ != null) hash ^= LastStaActivityTimestamp.GetHashCode(); + if (PendingCommandCount != 0) hash ^= PendingCommandCount.GetHashCode(); + if (OutboundEventQueueDepth != 0) hash ^= OutboundEventQueueDepth.GetHashCode(); + if (LastEventSequence != 0UL) hash ^= LastEventSequence.GetHashCode(); + if (CurrentCommandCorrelationId.Length != 0) hash ^= CurrentCommandCorrelationId.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 (WorkerProcessId != 0) { + output.WriteRawTag(8); + output.WriteInt32(WorkerProcessId); + } + if (State != global::MxGateway.Contracts.Proto.WorkerState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (lastStaActivityTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LastStaActivityTimestamp); + } + if (PendingCommandCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PendingCommandCount); + } + if (OutboundEventQueueDepth != 0) { + output.WriteRawTag(40); + output.WriteUInt32(OutboundEventQueueDepth); + } + if (LastEventSequence != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(LastEventSequence); + } + if (CurrentCommandCorrelationId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CurrentCommandCorrelationId); + } + 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 (WorkerProcessId != 0) { + output.WriteRawTag(8); + output.WriteInt32(WorkerProcessId); + } + if (State != global::MxGateway.Contracts.Proto.WorkerState.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) State); + } + if (lastStaActivityTimestamp_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LastStaActivityTimestamp); + } + if (PendingCommandCount != 0) { + output.WriteRawTag(32); + output.WriteUInt32(PendingCommandCount); + } + if (OutboundEventQueueDepth != 0) { + output.WriteRawTag(40); + output.WriteUInt32(OutboundEventQueueDepth); + } + if (LastEventSequence != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(LastEventSequence); + } + if (CurrentCommandCorrelationId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(CurrentCommandCorrelationId); + } + 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 (WorkerProcessId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorkerProcessId); + } + if (State != global::MxGateway.Contracts.Proto.WorkerState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (lastStaActivityTimestamp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastStaActivityTimestamp); + } + if (PendingCommandCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PendingCommandCount); + } + if (OutboundEventQueueDepth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OutboundEventQueueDepth); + } + if (LastEventSequence != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LastEventSequence); + } + if (CurrentCommandCorrelationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrentCommandCorrelationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerHeartbeat other) { + if (other == null) { + return; + } + if (other.WorkerProcessId != 0) { + WorkerProcessId = other.WorkerProcessId; + } + if (other.State != global::MxGateway.Contracts.Proto.WorkerState.Unspecified) { + State = other.State; + } + if (other.lastStaActivityTimestamp_ != null) { + if (lastStaActivityTimestamp_ == null) { + LastStaActivityTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastStaActivityTimestamp.MergeFrom(other.LastStaActivityTimestamp); + } + if (other.PendingCommandCount != 0) { + PendingCommandCount = other.PendingCommandCount; + } + if (other.OutboundEventQueueDepth != 0) { + OutboundEventQueueDepth = other.OutboundEventQueueDepth; + } + if (other.LastEventSequence != 0UL) { + LastEventSequence = other.LastEventSequence; + } + if (other.CurrentCommandCorrelationId.Length != 0) { + CurrentCommandCorrelationId = other.CurrentCommandCorrelationId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 16: { + State = (global::MxGateway.Contracts.Proto.WorkerState) input.ReadEnum(); + break; + } + case 26: { + if (lastStaActivityTimestamp_ == null) { + LastStaActivityTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastStaActivityTimestamp); + break; + } + case 32: { + PendingCommandCount = input.ReadUInt32(); + break; + } + case 40: { + OutboundEventQueueDepth = input.ReadUInt32(); + break; + } + case 48: { + LastEventSequence = input.ReadUInt64(); + break; + } + case 58: { + CurrentCommandCorrelationId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + WorkerProcessId = input.ReadInt32(); + break; + } + case 16: { + State = (global::MxGateway.Contracts.Proto.WorkerState) input.ReadEnum(); + break; + } + case 26: { + if (lastStaActivityTimestamp_ == null) { + LastStaActivityTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastStaActivityTimestamp); + break; + } + case 32: { + PendingCommandCount = input.ReadUInt32(); + break; + } + case 40: { + OutboundEventQueueDepth = input.ReadUInt32(); + break; + } + case 48: { + LastEventSequence = input.ReadUInt64(); + break; + } + case 58: { + CurrentCommandCorrelationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class WorkerFault : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WorkerFault()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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::MxGateway.Contracts.Proto.MxaccessWorkerReflection.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 WorkerFault() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerFault(WorkerFault other) : this() { + _hasBits0 = other._hasBits0; + category_ = other.category_; + commandMethod_ = other.commandMethod_; + hresult_ = other.hresult_; + exceptionType_ = other.exceptionType_; + diagnosticMessage_ = other.diagnosticMessage_; + protocolStatus_ = other.protocolStatus_ != null ? other.protocolStatus_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WorkerFault Clone() { + return new WorkerFault(this); + } + + /// Field number for the "category" field. + public const int CategoryFieldNumber = 1; + private global::MxGateway.Contracts.Proto.WorkerFaultCategory category_ = global::MxGateway.Contracts.Proto.WorkerFaultCategory.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.WorkerFaultCategory Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "command_method" field. + public const int CommandMethodFieldNumber = 2; + private string commandMethod_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CommandMethod { + get { return commandMethod_; } + set { + commandMethod_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hresult" field. + public const int HresultFieldNumber = 3; + private readonly static int HresultDefaultValue = 0; + + private int hresult_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Hresult { + get { if ((_hasBits0 & 1) != 0) { return hresult_; } else { return HresultDefaultValue; } } + set { + _hasBits0 |= 1; + hresult_ = value; + } + } + /// Gets whether the "hresult" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHresult { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "hresult" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHresult() { + _hasBits0 &= ~1; + } + + /// Field number for the "exception_type" field. + public const int ExceptionTypeFieldNumber = 4; + private string exceptionType_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExceptionType { + get { return exceptionType_; } + set { + exceptionType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "diagnostic_message" field. + public const int DiagnosticMessageFieldNumber = 5; + private string diagnosticMessage_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DiagnosticMessage { + get { return diagnosticMessage_; } + set { + diagnosticMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "protocol_status" field. + public const int ProtocolStatusFieldNumber = 6; + private global::MxGateway.Contracts.Proto.ProtocolStatus protocolStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::MxGateway.Contracts.Proto.ProtocolStatus ProtocolStatus { + get { return protocolStatus_; } + set { + protocolStatus_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WorkerFault); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WorkerFault other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Category != other.Category) return false; + if (CommandMethod != other.CommandMethod) return false; + if (Hresult != other.Hresult) return false; + if (ExceptionType != other.ExceptionType) return false; + if (DiagnosticMessage != other.DiagnosticMessage) return false; + if (!object.Equals(ProtocolStatus, other.ProtocolStatus)) 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 (Category != global::MxGateway.Contracts.Proto.WorkerFaultCategory.Unspecified) hash ^= Category.GetHashCode(); + if (CommandMethod.Length != 0) hash ^= CommandMethod.GetHashCode(); + if (HasHresult) hash ^= Hresult.GetHashCode(); + if (ExceptionType.Length != 0) hash ^= ExceptionType.GetHashCode(); + if (DiagnosticMessage.Length != 0) hash ^= DiagnosticMessage.GetHashCode(); + if (protocolStatus_ != null) hash ^= ProtocolStatus.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 (Category != global::MxGateway.Contracts.Proto.WorkerFaultCategory.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Category); + } + if (CommandMethod.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CommandMethod); + } + if (HasHresult) { + output.WriteRawTag(24); + output.WriteInt32(Hresult); + } + if (ExceptionType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ExceptionType); + } + if (DiagnosticMessage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DiagnosticMessage); + } + if (protocolStatus_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ProtocolStatus); + } + 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 (Category != global::MxGateway.Contracts.Proto.WorkerFaultCategory.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Category); + } + if (CommandMethod.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CommandMethod); + } + if (HasHresult) { + output.WriteRawTag(24); + output.WriteInt32(Hresult); + } + if (ExceptionType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ExceptionType); + } + if (DiagnosticMessage.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DiagnosticMessage); + } + if (protocolStatus_ != null) { + output.WriteRawTag(50); + output.WriteMessage(ProtocolStatus); + } + 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 (Category != global::MxGateway.Contracts.Proto.WorkerFaultCategory.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); + } + if (CommandMethod.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CommandMethod); + } + if (HasHresult) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hresult); + } + if (ExceptionType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExceptionType); + } + if (DiagnosticMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DiagnosticMessage); + } + if (protocolStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtocolStatus); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WorkerFault other) { + if (other == null) { + return; + } + if (other.Category != global::MxGateway.Contracts.Proto.WorkerFaultCategory.Unspecified) { + Category = other.Category; + } + if (other.CommandMethod.Length != 0) { + CommandMethod = other.CommandMethod; + } + if (other.HasHresult) { + Hresult = other.Hresult; + } + if (other.ExceptionType.Length != 0) { + ExceptionType = other.ExceptionType; + } + if (other.DiagnosticMessage.Length != 0) { + DiagnosticMessage = other.DiagnosticMessage; + } + if (other.protocolStatus_ != null) { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + ProtocolStatus.MergeFrom(other.ProtocolStatus); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Category = (global::MxGateway.Contracts.Proto.WorkerFaultCategory) input.ReadEnum(); + break; + } + case 18: { + CommandMethod = input.ReadString(); + break; + } + case 24: { + Hresult = input.ReadInt32(); + break; + } + case 34: { + ExceptionType = input.ReadString(); + break; + } + case 42: { + DiagnosticMessage = input.ReadString(); + break; + } + case 50: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Category = (global::MxGateway.Contracts.Proto.WorkerFaultCategory) input.ReadEnum(); + break; + } + case 18: { + CommandMethod = input.ReadString(); + break; + } + case 24: { + Hresult = input.ReadInt32(); + break; + } + case 34: { + ExceptionType = input.ReadString(); + break; + } + case 42: { + DiagnosticMessage = input.ReadString(); + break; + } + case 50: { + if (protocolStatus_ == null) { + ProtocolStatus = new global::MxGateway.Contracts.Proto.ProtocolStatus(); + } + input.ReadMessage(ProtocolStatus); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/MxGateway.Contracts/MxGateway.Contracts.csproj b/src/MxGateway.Contracts/MxGateway.Contracts.csproj index 00b9359..bb44536 100644 --- a/src/MxGateway.Contracts/MxGateway.Contracts.csproj +++ b/src/MxGateway.Contracts/MxGateway.Contracts.csproj @@ -4,4 +4,19 @@ net10.0 + + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + diff --git a/src/MxGateway.Contracts/Protos/mxaccess_gateway.proto b/src/MxGateway.Contracts/Protos/mxaccess_gateway.proto new file mode 100644 index 0000000..6bdbfbb --- /dev/null +++ b/src/MxGateway.Contracts/Protos/mxaccess_gateway.proto @@ -0,0 +1,521 @@ +syntax = "proto3"; + +package mxaccess_gateway.v1; + +option csharp_namespace = "MxGateway.Contracts.Proto"; + +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +// Public client API for MXAccess sessions hosted by the gateway. +service MxAccessGateway { + rpc OpenSession(OpenSessionRequest) returns (OpenSessionReply); + rpc CloseSession(CloseSessionRequest) returns (CloseSessionReply); + rpc Invoke(MxCommandRequest) returns (MxCommandReply); + rpc StreamEvents(StreamEventsRequest) returns (stream MxEvent); +} + +message OpenSessionRequest { + string requested_backend = 1; + string client_session_name = 2; + string client_correlation_id = 3; + google.protobuf.Duration command_timeout = 4; +} + +message OpenSessionReply { + string session_id = 1; + string backend_name = 2; + int32 worker_process_id = 3; + uint32 worker_protocol_version = 4; + repeated string capabilities = 5; + google.protobuf.Duration default_command_timeout = 6; + ProtocolStatus protocol_status = 7; +} + +message CloseSessionRequest { + string session_id = 1; + string client_correlation_id = 2; +} + +message CloseSessionReply { + string session_id = 1; + SessionState final_state = 2; + ProtocolStatus protocol_status = 3; +} + +message StreamEventsRequest { + string session_id = 1; + uint64 after_worker_sequence = 2; +} + +message MxCommandRequest { + string session_id = 1; + string client_correlation_id = 2; + MxCommand command = 3; +} + +message MxCommand { + MxCommandKind kind = 1; + + oneof payload { + RegisterCommand register = 10; + UnregisterCommand unregister = 11; + AddItemCommand add_item = 12; + AddItem2Command add_item2 = 13; + RemoveItemCommand remove_item = 14; + AdviseCommand advise = 15; + UnAdviseCommand un_advise = 16; + AdviseSupervisoryCommand advise_supervisory = 17; + AddBufferedItemCommand add_buffered_item = 18; + SetBufferedUpdateIntervalCommand set_buffered_update_interval = 19; + SuspendCommand suspend = 20; + ActivateCommand activate = 21; + WriteCommand write = 22; + Write2Command write2 = 23; + WriteSecuredCommand write_secured = 24; + WriteSecured2Command write_secured2 = 25; + AuthenticateUserCommand authenticate_user = 26; + ArchestrAUserToIdCommand archestra_user_to_id = 27; + PingCommand ping = 100; + GetSessionStateCommand get_session_state = 101; + GetWorkerInfoCommand get_worker_info = 102; + DrainEventsCommand drain_events = 103; + ShutdownWorkerCommand shutdown_worker = 104; + } +} + +enum MxCommandKind { + MX_COMMAND_KIND_UNSPECIFIED = 0; + MX_COMMAND_KIND_REGISTER = 1; + MX_COMMAND_KIND_UNREGISTER = 2; + MX_COMMAND_KIND_ADD_ITEM = 3; + MX_COMMAND_KIND_ADD_ITEM2 = 4; + MX_COMMAND_KIND_REMOVE_ITEM = 5; + MX_COMMAND_KIND_ADVISE = 6; + MX_COMMAND_KIND_UN_ADVISE = 7; + MX_COMMAND_KIND_ADVISE_SUPERVISORY = 8; + MX_COMMAND_KIND_ADD_BUFFERED_ITEM = 9; + MX_COMMAND_KIND_SET_BUFFERED_UPDATE_INTERVAL = 10; + MX_COMMAND_KIND_SUSPEND = 11; + MX_COMMAND_KIND_ACTIVATE = 12; + MX_COMMAND_KIND_WRITE = 13; + MX_COMMAND_KIND_WRITE2 = 14; + MX_COMMAND_KIND_WRITE_SECURED = 15; + MX_COMMAND_KIND_WRITE_SECURED2 = 16; + MX_COMMAND_KIND_AUTHENTICATE_USER = 17; + MX_COMMAND_KIND_ARCHESTRA_USER_TO_ID = 18; + MX_COMMAND_KIND_PING = 100; + MX_COMMAND_KIND_GET_SESSION_STATE = 101; + MX_COMMAND_KIND_GET_WORKER_INFO = 102; + MX_COMMAND_KIND_DRAIN_EVENTS = 103; + MX_COMMAND_KIND_SHUTDOWN_WORKER = 104; +} + +message RegisterCommand { + string client_name = 1; +} + +message UnregisterCommand { + int32 server_handle = 1; +} + +message AddItemCommand { + int32 server_handle = 1; + string item_definition = 2; +} + +message AddItem2Command { + int32 server_handle = 1; + string item_definition = 2; + string item_context = 3; +} + +message RemoveItemCommand { + int32 server_handle = 1; + int32 item_handle = 2; +} + +message AdviseCommand { + int32 server_handle = 1; + int32 item_handle = 2; +} + +message UnAdviseCommand { + int32 server_handle = 1; + int32 item_handle = 2; +} + +message AdviseSupervisoryCommand { + int32 server_handle = 1; + int32 item_handle = 2; +} + +message AddBufferedItemCommand { + int32 server_handle = 1; + string item_definition = 2; + string item_context = 3; +} + +message SetBufferedUpdateIntervalCommand { + int32 server_handle = 1; + int32 update_interval_milliseconds = 2; +} + +message SuspendCommand { + int32 server_handle = 1; + int32 item_handle = 2; +} + +message ActivateCommand { + int32 server_handle = 1; + int32 item_handle = 2; +} + +message WriteCommand { + int32 server_handle = 1; + int32 item_handle = 2; + MxValue value = 3; + int32 user_id = 4; +} + +message Write2Command { + int32 server_handle = 1; + int32 item_handle = 2; + MxValue value = 3; + MxValue timestamp_value = 4; + int32 user_id = 5; +} + +message WriteSecuredCommand { + int32 server_handle = 1; + int32 item_handle = 2; + int32 current_user_id = 3; + int32 verifier_user_id = 4; + // Credential-sensitive write value. Implementations must not log this field + // unless an explicit redacted value-logging path is enabled. + MxValue value = 5; +} + +message WriteSecured2Command { + int32 server_handle = 1; + int32 item_handle = 2; + int32 current_user_id = 3; + int32 verifier_user_id = 4; + // Credential-sensitive write value. Implementations must not log this field + // unless an explicit redacted value-logging path is enabled. + MxValue value = 5; + MxValue timestamp_value = 6; +} + +message AuthenticateUserCommand { + int32 server_handle = 1; + string verify_user = 2; + // Raw MXAccess credential. Implementations must keep this field out of logs, + // metrics labels, command lines, and diagnostics. + string verify_user_password = 3; +} + +message ArchestrAUserToIdCommand { + int32 server_handle = 1; + string user_id_guid = 2; +} + +message PingCommand { + string message = 1; +} + +message GetSessionStateCommand { +} + +message GetWorkerInfoCommand { +} + +message DrainEventsCommand { + uint32 max_events = 1; +} + +message ShutdownWorkerCommand { + google.protobuf.Duration grace_period = 1; +} + +message MxCommandReply { + string session_id = 1; + string correlation_id = 2; + MxCommandKind kind = 3; + ProtocolStatus protocol_status = 4; + // HRESULT captured from MXAccess or a COM exception. This remains separate + // from gateway protocol status so MXAccess parity details are not hidden by + // transport failures. + optional int32 hresult = 5; + MxValue return_value = 6; + repeated MxStatusProxy statuses = 7; + string diagnostic_message = 8; + + oneof payload { + RegisterReply register = 20; + AddItemReply add_item = 21; + AddItem2Reply add_item2 = 22; + AddBufferedItemReply add_buffered_item = 23; + SuspendReply suspend = 24; + ActivateReply activate = 25; + AuthenticateUserReply authenticate_user = 26; + ArchestrAUserToIdReply archestra_user_to_id = 27; + SessionStateReply session_state = 100; + WorkerInfoReply worker_info = 101; + DrainEventsReply drain_events = 102; + } +} + +message RegisterReply { + int32 server_handle = 1; +} + +message AddItemReply { + int32 item_handle = 1; +} + +message AddItem2Reply { + int32 item_handle = 1; +} + +message AddBufferedItemReply { + int32 item_handle = 1; +} + +message SuspendReply { + MxStatusProxy status = 1; +} + +message ActivateReply { + MxStatusProxy status = 1; +} + +message AuthenticateUserReply { + int32 user_id = 1; +} + +message ArchestrAUserToIdReply { + int32 user_id = 1; +} + +message SessionStateReply { + SessionState state = 1; +} + +message WorkerInfoReply { + int32 worker_process_id = 1; + string worker_version = 2; + string mxaccess_progid = 3; + string mxaccess_clsid = 4; +} + +message DrainEventsReply { + repeated MxEvent events = 1; +} + +message MxEvent { + MxEventFamily family = 1; + string session_id = 2; + int32 server_handle = 3; + int32 item_handle = 4; + MxValue value = 5; + int32 quality = 6; + google.protobuf.Timestamp source_timestamp = 7; + repeated MxStatusProxy statuses = 8; + uint64 worker_sequence = 9; + google.protobuf.Timestamp worker_timestamp = 10; + google.protobuf.Timestamp gateway_receive_timestamp = 11; + optional int32 hresult = 12; + string raw_status = 13; + + oneof body { + OnDataChangeEvent on_data_change = 20; + OnWriteCompleteEvent on_write_complete = 21; + OperationCompleteEvent operation_complete = 22; + OnBufferedDataChangeEvent on_buffered_data_change = 23; + } +} + +enum MxEventFamily { + MX_EVENT_FAMILY_UNSPECIFIED = 0; + MX_EVENT_FAMILY_ON_DATA_CHANGE = 1; + MX_EVENT_FAMILY_ON_WRITE_COMPLETE = 2; + MX_EVENT_FAMILY_OPERATION_COMPLETE = 3; + MX_EVENT_FAMILY_ON_BUFFERED_DATA_CHANGE = 4; +} + +message OnDataChangeEvent { +} + +message OnWriteCompleteEvent { +} + +message OperationCompleteEvent { +} + +message OnBufferedDataChangeEvent { + MxDataType data_type = 1; + MxArray quality_values = 2; + MxArray timestamp_values = 3; + int32 raw_data_type = 4; +} + +message MxStatusProxy { + int32 success = 1; + MxStatusCategory category = 2; + MxStatusSource detected_by = 3; + int32 detail = 4; + int32 raw_category = 5; + int32 raw_detected_by = 6; + string diagnostic_text = 7; +} + +enum MxStatusCategory { + MX_STATUS_CATEGORY_UNSPECIFIED = 0; + MX_STATUS_CATEGORY_UNKNOWN = 1; + MX_STATUS_CATEGORY_OK = 2; + MX_STATUS_CATEGORY_PENDING = 3; + MX_STATUS_CATEGORY_WARNING = 4; + MX_STATUS_CATEGORY_COMMUNICATION_ERROR = 5; + MX_STATUS_CATEGORY_CONFIGURATION_ERROR = 6; + MX_STATUS_CATEGORY_OPERATIONAL_ERROR = 7; + MX_STATUS_CATEGORY_SECURITY_ERROR = 8; + MX_STATUS_CATEGORY_SOFTWARE_ERROR = 9; + MX_STATUS_CATEGORY_OTHER_ERROR = 10; +} + +enum MxStatusSource { + MX_STATUS_SOURCE_UNSPECIFIED = 0; + MX_STATUS_SOURCE_UNKNOWN = 1; + MX_STATUS_SOURCE_REQUESTING_LMX = 2; + MX_STATUS_SOURCE_RESPONDING_LMX = 3; + MX_STATUS_SOURCE_REQUESTING_NMX = 4; + MX_STATUS_SOURCE_RESPONDING_NMX = 5; + MX_STATUS_SOURCE_REQUESTING_AUTOMATION_OBJECT = 6; + MX_STATUS_SOURCE_RESPONDING_AUTOMATION_OBJECT = 7; +} + +message MxValue { + MxDataType data_type = 1; + string variant_type = 2; + bool is_null = 3; + string raw_diagnostic = 4; + int32 raw_data_type = 5; + + oneof kind { + bool bool_value = 10; + int32 int32_value = 11; + int64 int64_value = 12; + float float_value = 13; + double double_value = 14; + string string_value = 15; + google.protobuf.Timestamp timestamp_value = 16; + MxArray array_value = 17; + bytes raw_value = 18; + } +} + +message MxArray { + MxDataType element_data_type = 1; + string variant_type = 2; + repeated uint32 dimensions = 3; + string raw_diagnostic = 4; + int32 raw_element_data_type = 5; + + oneof values { + BoolArray bool_values = 10; + Int32Array int32_values = 11; + Int64Array int64_values = 12; + FloatArray float_values = 13; + DoubleArray double_values = 14; + StringArray string_values = 15; + TimestampArray timestamp_values = 16; + RawArray raw_values = 17; + } +} + +message BoolArray { + repeated bool values = 1; +} + +message Int32Array { + repeated int32 values = 1; +} + +message Int64Array { + repeated int64 values = 1; +} + +message FloatArray { + repeated float values = 1; +} + +message DoubleArray { + repeated double values = 1; +} + +message StringArray { + repeated string values = 1; +} + +message TimestampArray { + repeated google.protobuf.Timestamp values = 1; +} + +message RawArray { + repeated bytes values = 1; +} + +enum MxDataType { + MX_DATA_TYPE_UNSPECIFIED = 0; + MX_DATA_TYPE_UNKNOWN = 1; + MX_DATA_TYPE_NO_DATA = 2; + MX_DATA_TYPE_BOOLEAN = 3; + MX_DATA_TYPE_INTEGER = 4; + MX_DATA_TYPE_FLOAT = 5; + MX_DATA_TYPE_DOUBLE = 6; + MX_DATA_TYPE_STRING = 7; + MX_DATA_TYPE_TIME = 8; + MX_DATA_TYPE_ELAPSED_TIME = 9; + MX_DATA_TYPE_REFERENCE_TYPE = 10; + MX_DATA_TYPE_STATUS_TYPE = 11; + MX_DATA_TYPE_ENUM = 12; + MX_DATA_TYPE_SECURITY_CLASSIFICATION_ENUM = 13; + MX_DATA_TYPE_DATA_QUALITY_TYPE = 14; + MX_DATA_TYPE_QUALIFIED_ENUM = 15; + MX_DATA_TYPE_QUALIFIED_STRUCT = 16; + MX_DATA_TYPE_INTERNATIONALIZED_STRING = 17; + MX_DATA_TYPE_BIG_STRING = 18; + MX_DATA_TYPE_END = 19; +} + +message ProtocolStatus { + ProtocolStatusCode code = 1; + string message = 2; +} + +enum ProtocolStatusCode { + PROTOCOL_STATUS_CODE_UNSPECIFIED = 0; + PROTOCOL_STATUS_CODE_OK = 1; + PROTOCOL_STATUS_CODE_INVALID_REQUEST = 2; + PROTOCOL_STATUS_CODE_SESSION_NOT_FOUND = 3; + PROTOCOL_STATUS_CODE_SESSION_NOT_READY = 4; + PROTOCOL_STATUS_CODE_WORKER_UNAVAILABLE = 5; + PROTOCOL_STATUS_CODE_TIMEOUT = 6; + PROTOCOL_STATUS_CODE_CANCELED = 7; + PROTOCOL_STATUS_CODE_PROTOCOL_VIOLATION = 8; + PROTOCOL_STATUS_CODE_MXACCESS_FAILURE = 9; +} + +enum SessionState { + SESSION_STATE_UNSPECIFIED = 0; + SESSION_STATE_CREATING = 1; + SESSION_STATE_STARTING_WORKER = 2; + SESSION_STATE_WAITING_FOR_PIPE = 3; + SESSION_STATE_HANDSHAKING = 4; + SESSION_STATE_INITIALIZING_WORKER = 5; + SESSION_STATE_READY = 6; + SESSION_STATE_CLOSING = 7; + SESSION_STATE_CLOSED = 8; + SESSION_STATE_FAULTED = 9; +} diff --git a/src/MxGateway.Contracts/Protos/mxaccess_worker.proto b/src/MxGateway.Contracts/Protos/mxaccess_worker.proto new file mode 100644 index 0000000..f12e7ed --- /dev/null +++ b/src/MxGateway.Contracts/Protos/mxaccess_worker.proto @@ -0,0 +1,125 @@ +syntax = "proto3"; + +package mxaccess_worker.v1; + +option csharp_namespace = "MxGateway.Contracts.Proto"; + +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "mxaccess_gateway.proto"; + +// Gateway-to-worker IPC envelope. Named-pipe framing prepends a little-endian +// uint32 payload length to this protobuf payload. +message WorkerEnvelope { + uint32 protocol_version = 1; + string session_id = 2; + uint64 sequence = 3; + string correlation_id = 4; + + oneof body { + GatewayHello gateway_hello = 10; + WorkerHello worker_hello = 11; + WorkerReady worker_ready = 12; + WorkerCommand worker_command = 13; + WorkerCommandReply worker_command_reply = 14; + WorkerCancel worker_cancel = 15; + WorkerShutdown worker_shutdown = 16; + WorkerShutdownAck worker_shutdown_ack = 17; + WorkerEvent worker_event = 18; + WorkerHeartbeat worker_heartbeat = 19; + WorkerFault worker_fault = 20; + } +} + +message GatewayHello { + uint32 supported_protocol_version = 1; + string nonce = 2; + string gateway_version = 3; +} + +message WorkerHello { + uint32 protocol_version = 1; + string nonce = 2; + int32 worker_process_id = 3; + string worker_version = 4; +} + +message WorkerReady { + int32 worker_process_id = 1; + string mxaccess_progid = 2; + string mxaccess_clsid = 3; + google.protobuf.Timestamp ready_timestamp = 4; +} + +message WorkerCommand { + mxaccess_gateway.v1.MxCommand command = 1; + google.protobuf.Timestamp enqueue_timestamp = 2; +} + +message WorkerCommandReply { + mxaccess_gateway.v1.MxCommandReply reply = 1; + google.protobuf.Timestamp completed_timestamp = 2; +} + +message WorkerCancel { + string reason = 1; +} + +message WorkerShutdown { + google.protobuf.Duration grace_period = 1; + string reason = 2; +} + +message WorkerShutdownAck { + mxaccess_gateway.v1.ProtocolStatus status = 1; +} + +message WorkerEvent { + mxaccess_gateway.v1.MxEvent event = 1; +} + +message WorkerHeartbeat { + int32 worker_process_id = 1; + WorkerState state = 2; + google.protobuf.Timestamp last_sta_activity_timestamp = 3; + uint32 pending_command_count = 4; + uint32 outbound_event_queue_depth = 5; + uint64 last_event_sequence = 6; + string current_command_correlation_id = 7; +} + +message WorkerFault { + WorkerFaultCategory category = 1; + string command_method = 2; + optional int32 hresult = 3; + string exception_type = 4; + string diagnostic_message = 5; + mxaccess_gateway.v1.ProtocolStatus protocol_status = 6; +} + +enum WorkerState { + WORKER_STATE_UNSPECIFIED = 0; + WORKER_STATE_STARTING = 1; + WORKER_STATE_HANDSHAKING = 2; + WORKER_STATE_INITIALIZING_STA = 3; + WORKER_STATE_READY = 4; + WORKER_STATE_EXECUTING_COMMAND = 5; + WORKER_STATE_SHUTTING_DOWN = 6; + WORKER_STATE_STOPPED = 7; + WORKER_STATE_FAULTED = 8; +} + +enum WorkerFaultCategory { + WORKER_FAULT_CATEGORY_UNSPECIFIED = 0; + WORKER_FAULT_CATEGORY_INVALID_ARGUMENTS = 1; + WORKER_FAULT_CATEGORY_GATEWAY_AUTHENTICATION_FAILED = 2; + WORKER_FAULT_CATEGORY_PROTOCOL_MISMATCH = 3; + WORKER_FAULT_CATEGORY_PROTOCOL_VIOLATION = 4; + WORKER_FAULT_CATEGORY_PIPE_DISCONNECTED = 5; + WORKER_FAULT_CATEGORY_MXACCESS_CREATION_FAILED = 6; + WORKER_FAULT_CATEGORY_MXACCESS_COMMAND_FAILED = 7; + WORKER_FAULT_CATEGORY_MXACCESS_EVENT_CONVERSION_FAILED = 8; + WORKER_FAULT_CATEGORY_STA_HUNG = 9; + WORKER_FAULT_CATEGORY_QUEUE_OVERFLOW = 10; + WORKER_FAULT_CATEGORY_SHUTDOWN_TIMEOUT = 11; +} diff --git a/src/MxGateway.Tests/Contracts/ProtobufContractRoundTripTests.cs b/src/MxGateway.Tests/Contracts/ProtobufContractRoundTripTests.cs new file mode 100644 index 0000000..411b481 --- /dev/null +++ b/src/MxGateway.Tests/Contracts/ProtobufContractRoundTripTests.cs @@ -0,0 +1,195 @@ +using Google.Protobuf; +using Google.Protobuf.WellKnownTypes; +using MxGateway.Contracts; +using MxGateway.Contracts.Proto; + +namespace MxGateway.Tests.Contracts; + +public sealed class ProtobufContractRoundTripTests +{ + [Fact] + public void GatewayDescriptor_ContainsInitialPublicServiceMethods() + { + var service = Assert.Single( + MxaccessGatewayReflection.Descriptor.Services, + descriptor => descriptor.Name == "MxAccessGateway"); + + Assert.Contains(service.Methods, method => method.Name == "OpenSession"); + Assert.Contains(service.Methods, method => method.Name == "CloseSession"); + Assert.Contains(service.Methods, method => method.Name == "Invoke"); + Assert.Contains(service.Methods, method => method.Name == "StreamEvents"); + } + + [Fact] + public void WorkerEnvelopeDescriptor_ContainsRequiredCorrelationFields() + { + var fields = WorkerEnvelope.Descriptor.Fields.InDeclarationOrder(); + + Assert.Contains(fields, field => field.Name == "protocol_version"); + Assert.Contains(fields, field => field.Name == "session_id"); + Assert.Contains(fields, field => field.Name == "sequence"); + Assert.Contains(fields, field => field.Name == "correlation_id"); + } + + [Fact] + public void CommandRequest_RoundTripsMethodSpecificPayload() + { + var original = new MxCommandRequest + { + SessionId = "session-1", + ClientCorrelationId = "client-correlation-1", + Command = new MxCommand + { + Kind = MxCommandKind.Register, + Register = new RegisterCommand + { + ClientName = "mxaccessgw-test-client", + }, + }, + }; + + var parsed = MxCommandRequest.Parser.ParseFrom(original.ToByteArray()); + + Assert.Equal(original, parsed); + Assert.Equal(MxCommand.PayloadOneofCase.Register, parsed.Command.PayloadCase); + } + + [Fact] + public void CommandReply_RoundTripsHResultReturnValueOutParamsAndStatuses() + { + var original = new MxCommandReply + { + SessionId = "session-1", + CorrelationId = "gateway-correlation-1", + Kind = MxCommandKind.AddItem, + ProtocolStatus = new ProtocolStatus + { + Code = ProtocolStatusCode.Ok, + }, + Hresult = 0, + ReturnValue = new MxValue + { + DataType = MxDataType.Integer, + Int32Value = 1234, + VariantType = "VT_I4", + }, + AddItem = new AddItemReply + { + ItemHandle = 1234, + }, + }; + original.Statuses.Add(new MxStatusProxy + { + Success = 1, + Category = MxStatusCategory.Ok, + DetectedBy = MxStatusSource.RespondingLmx, + Detail = 0, + }); + + var parsed = MxCommandReply.Parser.ParseFrom(original.ToByteArray()); + + Assert.Equal(original, parsed); + Assert.True(parsed.HasHresult); + Assert.Equal(MxCommandReply.PayloadOneofCase.AddItem, parsed.PayloadCase); + Assert.Single(parsed.Statuses); + } + + [Fact] + public void Event_RoundTripsValueStatusSequenceAndBufferedBody() + { + var timestamp = Timestamp.FromDateTime(new DateTime(2026, 4, 26, 20, 0, 0, DateTimeKind.Utc)); + var original = new MxEvent + { + Family = MxEventFamily.OnBufferedDataChange, + SessionId = "session-1", + ServerHandle = 10, + ItemHandle = 20, + Value = new MxValue + { + DataType = MxDataType.Float, + ArrayValue = new MxArray + { + ElementDataType = MxDataType.Float, + FloatValues = new FloatArray + { + Values = { 1.5f, 2.5f }, + }, + Dimensions = { 2 }, + VariantType = "VT_ARRAY|VT_R4", + }, + }, + Quality = 192, + SourceTimestamp = timestamp, + WorkerSequence = 42, + WorkerTimestamp = timestamp, + GatewayReceiveTimestamp = timestamp, + OnBufferedDataChange = new OnBufferedDataChangeEvent + { + DataType = MxDataType.Float, + QualityValues = new MxArray + { + ElementDataType = MxDataType.Integer, + Int32Values = new Int32Array + { + Values = { 192, 192 }, + }, + Dimensions = { 2 }, + }, + TimestampValues = new MxArray + { + ElementDataType = MxDataType.Time, + TimestampValues = new TimestampArray + { + Values = { timestamp, timestamp }, + }, + Dimensions = { 2 }, + }, + }, + }; + original.Statuses.Add(new MxStatusProxy + { + Success = 1, + Category = MxStatusCategory.Ok, + DetectedBy = MxStatusSource.RespondingNmx, + Detail = 0, + }); + + var parsed = MxEvent.Parser.ParseFrom(original.ToByteArray()); + + Assert.Equal(original, parsed); + Assert.Equal(MxEvent.BodyOneofCase.OnBufferedDataChange, parsed.BodyCase); + Assert.Single(parsed.Statuses); + } + + [Fact] + public void WorkerEnvelope_RoundTripsProtocolFieldsAndCommandBody() + { + var original = new WorkerEnvelope + { + ProtocolVersion = GatewayContractInfo.WorkerProtocolVersion, + SessionId = "session-1", + Sequence = 7, + CorrelationId = "gateway-correlation-1", + WorkerCommand = new WorkerCommand + { + EnqueueTimestamp = Timestamp.FromDateTime( + new DateTime(2026, 4, 26, 20, 5, 0, DateTimeKind.Utc)), + Command = new MxCommand + { + Kind = MxCommandKind.Advise, + Advise = new AdviseCommand + { + ServerHandle = 10, + ItemHandle = 20, + }, + }, + }, + }; + + var parsed = WorkerEnvelope.Parser.ParseFrom(original.ToByteArray()); + + Assert.Equal(original, parsed); + Assert.Equal(WorkerEnvelope.BodyOneofCase.WorkerCommand, parsed.BodyCase); + Assert.Equal(MxCommand.PayloadOneofCase.Advise, parsed.WorkerCommand.Command.PayloadCase); + } +} From 91ea71b0b7971a77c555a57a312b5379211ab22c Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 26 Apr 2026 16:11:30 -0400 Subject: [PATCH 2/2] Issue #3: add gateway configuration and validation --- docs/gateway-process-design.md | 12 + .../Configuration/AuthenticationMode.cs | 7 + .../Configuration/AuthenticationOptions.cs | 12 + .../Configuration/DashboardOptions.cs | 20 ++ .../EffectiveAuthenticationConfiguration.cs | 7 + .../EffectiveDashboardConfiguration.cs | 11 + .../EffectiveEventConfiguration.cs | 5 + .../EffectiveGatewayConfiguration.cs | 9 + .../EffectiveProtocolConfiguration.cs | 3 + .../EffectiveSessionConfiguration.cs | 6 + .../EffectiveWorkerConfiguration.cs | 11 + .../Configuration/EventBackpressurePolicy.cs | 6 + .../Configuration/EventOptions.cs | 8 + .../GatewayConfigurationProvider.cs | 46 ++++ ...onfigurationServiceCollectionExtensions.cs | 19 ++ .../Configuration/GatewayOptions.cs | 18 ++ .../Configuration/GatewayOptionsValidator.cs | 210 ++++++++++++++++++ .../IGatewayConfigurationProvider.cs | 6 + .../Configuration/ProtocolOptions.cs | 8 + .../Configuration/SessionOptions.cs | 10 + .../Configuration/WorkerArchitecture.cs | 7 + .../Configuration/WorkerOptions.cs | 21 ++ src/MxGateway.Server/GatewayApplication.cs | 2 + src/MxGateway.Server/appsettings.json | 41 +++- .../Configuration/GatewayOptionsTests.cs | 119 ++++++++++ .../Gateway/GatewayApplicationTests.cs | 34 +++ 26 files changed, 657 insertions(+), 1 deletion(-) create mode 100644 src/MxGateway.Server/Configuration/AuthenticationMode.cs create mode 100644 src/MxGateway.Server/Configuration/AuthenticationOptions.cs create mode 100644 src/MxGateway.Server/Configuration/DashboardOptions.cs create mode 100644 src/MxGateway.Server/Configuration/EffectiveAuthenticationConfiguration.cs create mode 100644 src/MxGateway.Server/Configuration/EffectiveDashboardConfiguration.cs create mode 100644 src/MxGateway.Server/Configuration/EffectiveEventConfiguration.cs create mode 100644 src/MxGateway.Server/Configuration/EffectiveGatewayConfiguration.cs create mode 100644 src/MxGateway.Server/Configuration/EffectiveProtocolConfiguration.cs create mode 100644 src/MxGateway.Server/Configuration/EffectiveSessionConfiguration.cs create mode 100644 src/MxGateway.Server/Configuration/EffectiveWorkerConfiguration.cs create mode 100644 src/MxGateway.Server/Configuration/EventBackpressurePolicy.cs create mode 100644 src/MxGateway.Server/Configuration/EventOptions.cs create mode 100644 src/MxGateway.Server/Configuration/GatewayConfigurationProvider.cs create mode 100644 src/MxGateway.Server/Configuration/GatewayConfigurationServiceCollectionExtensions.cs create mode 100644 src/MxGateway.Server/Configuration/GatewayOptions.cs create mode 100644 src/MxGateway.Server/Configuration/GatewayOptionsValidator.cs create mode 100644 src/MxGateway.Server/Configuration/IGatewayConfigurationProvider.cs create mode 100644 src/MxGateway.Server/Configuration/ProtocolOptions.cs create mode 100644 src/MxGateway.Server/Configuration/SessionOptions.cs create mode 100644 src/MxGateway.Server/Configuration/WorkerArchitecture.cs create mode 100644 src/MxGateway.Server/Configuration/WorkerOptions.cs create mode 100644 src/MxGateway.Tests/Configuration/GatewayOptionsTests.cs diff --git a/docs/gateway-process-design.md b/docs/gateway-process-design.md index d94acb9..e23c77a 100644 --- a/docs/gateway-process-design.md +++ b/docs/gateway-process-design.md @@ -710,6 +710,18 @@ Suggested configuration shape: Do not scatter connection or path constants through implementation code. +`MxGateway.Server` binds this section to `GatewayOptions` at startup and +registers validation with `ValidateOnStart()`. Startup fails before the gateway +begins serving traffic when required authentication settings are missing, +timeouts or queue sizes are not positive, dashboard settings are malformed, or +the configured worker protocol version does not match the contract version. + +The gateway exposes read-only effective settings through +`IGatewayConfigurationProvider`. This projection is for dashboard settings and +diagnostics, so it redacts secret-related fields such as +`Authentication:PepperSecretName` and does not include raw API keys or key +material. + ## Galaxy Repository Metadata Galaxy hierarchy and tag metadata can be discovered through SQL Server when diff --git a/src/MxGateway.Server/Configuration/AuthenticationMode.cs b/src/MxGateway.Server/Configuration/AuthenticationMode.cs new file mode 100644 index 0000000..6559a0d --- /dev/null +++ b/src/MxGateway.Server/Configuration/AuthenticationMode.cs @@ -0,0 +1,7 @@ +namespace MxGateway.Server.Configuration; + +public enum AuthenticationMode +{ + ApiKey, + Disabled +} diff --git a/src/MxGateway.Server/Configuration/AuthenticationOptions.cs b/src/MxGateway.Server/Configuration/AuthenticationOptions.cs new file mode 100644 index 0000000..b3a9962 --- /dev/null +++ b/src/MxGateway.Server/Configuration/AuthenticationOptions.cs @@ -0,0 +1,12 @@ +namespace MxGateway.Server.Configuration; + +public sealed class AuthenticationOptions +{ + public AuthenticationMode Mode { get; init; } = AuthenticationMode.ApiKey; + + public string SqlitePath { get; init; } = @"C:\ProgramData\MxGateway\gateway-auth.db"; + + public string PepperSecretName { get; init; } = "MxGateway:ApiKeyPepper"; + + public bool RunMigrationsOnStartup { get; init; } = true; +} diff --git a/src/MxGateway.Server/Configuration/DashboardOptions.cs b/src/MxGateway.Server/Configuration/DashboardOptions.cs new file mode 100644 index 0000000..5c19e47 --- /dev/null +++ b/src/MxGateway.Server/Configuration/DashboardOptions.cs @@ -0,0 +1,20 @@ +namespace MxGateway.Server.Configuration; + +public sealed class DashboardOptions +{ + public bool Enabled { get; init; } = true; + + public string PathBase { get; init; } = "/dashboard"; + + public bool RequireAdminScope { get; init; } = true; + + public bool AllowAnonymousLocalhost { get; init; } + + public int SnapshotIntervalMilliseconds { get; init; } = 1_000; + + public int RecentFaultLimit { get; init; } = 100; + + public int RecentSessionLimit { get; init; } = 200; + + public bool ShowTagValues { get; init; } +} diff --git a/src/MxGateway.Server/Configuration/EffectiveAuthenticationConfiguration.cs b/src/MxGateway.Server/Configuration/EffectiveAuthenticationConfiguration.cs new file mode 100644 index 0000000..9e553e2 --- /dev/null +++ b/src/MxGateway.Server/Configuration/EffectiveAuthenticationConfiguration.cs @@ -0,0 +1,7 @@ +namespace MxGateway.Server.Configuration; + +public sealed record EffectiveAuthenticationConfiguration( + string Mode, + string SqlitePath, + string PepperSecretName, + bool RunMigrationsOnStartup); diff --git a/src/MxGateway.Server/Configuration/EffectiveDashboardConfiguration.cs b/src/MxGateway.Server/Configuration/EffectiveDashboardConfiguration.cs new file mode 100644 index 0000000..ee22a92 --- /dev/null +++ b/src/MxGateway.Server/Configuration/EffectiveDashboardConfiguration.cs @@ -0,0 +1,11 @@ +namespace MxGateway.Server.Configuration; + +public sealed record EffectiveDashboardConfiguration( + bool Enabled, + string PathBase, + bool RequireAdminScope, + bool AllowAnonymousLocalhost, + int SnapshotIntervalMilliseconds, + int RecentFaultLimit, + int RecentSessionLimit, + bool ShowTagValues); diff --git a/src/MxGateway.Server/Configuration/EffectiveEventConfiguration.cs b/src/MxGateway.Server/Configuration/EffectiveEventConfiguration.cs new file mode 100644 index 0000000..8fe5938 --- /dev/null +++ b/src/MxGateway.Server/Configuration/EffectiveEventConfiguration.cs @@ -0,0 +1,5 @@ +namespace MxGateway.Server.Configuration; + +public sealed record EffectiveEventConfiguration( + int QueueCapacity, + string BackpressurePolicy); diff --git a/src/MxGateway.Server/Configuration/EffectiveGatewayConfiguration.cs b/src/MxGateway.Server/Configuration/EffectiveGatewayConfiguration.cs new file mode 100644 index 0000000..5782537 --- /dev/null +++ b/src/MxGateway.Server/Configuration/EffectiveGatewayConfiguration.cs @@ -0,0 +1,9 @@ +namespace MxGateway.Server.Configuration; + +public sealed record EffectiveGatewayConfiguration( + EffectiveAuthenticationConfiguration Authentication, + EffectiveWorkerConfiguration Worker, + EffectiveSessionConfiguration Sessions, + EffectiveEventConfiguration Events, + EffectiveDashboardConfiguration Dashboard, + EffectiveProtocolConfiguration Protocol); diff --git a/src/MxGateway.Server/Configuration/EffectiveProtocolConfiguration.cs b/src/MxGateway.Server/Configuration/EffectiveProtocolConfiguration.cs new file mode 100644 index 0000000..00b0d7e --- /dev/null +++ b/src/MxGateway.Server/Configuration/EffectiveProtocolConfiguration.cs @@ -0,0 +1,3 @@ +namespace MxGateway.Server.Configuration; + +public sealed record EffectiveProtocolConfiguration(uint WorkerProtocolVersion); diff --git a/src/MxGateway.Server/Configuration/EffectiveSessionConfiguration.cs b/src/MxGateway.Server/Configuration/EffectiveSessionConfiguration.cs new file mode 100644 index 0000000..24e9e74 --- /dev/null +++ b/src/MxGateway.Server/Configuration/EffectiveSessionConfiguration.cs @@ -0,0 +1,6 @@ +namespace MxGateway.Server.Configuration; + +public sealed record EffectiveSessionConfiguration( + int DefaultCommandTimeoutSeconds, + int MaxSessions, + bool AllowMultipleEventSubscribers); diff --git a/src/MxGateway.Server/Configuration/EffectiveWorkerConfiguration.cs b/src/MxGateway.Server/Configuration/EffectiveWorkerConfiguration.cs new file mode 100644 index 0000000..68bd6b1 --- /dev/null +++ b/src/MxGateway.Server/Configuration/EffectiveWorkerConfiguration.cs @@ -0,0 +1,11 @@ +namespace MxGateway.Server.Configuration; + +public sealed record EffectiveWorkerConfiguration( + string ExecutablePath, + string? WorkingDirectory, + string RequiredArchitecture, + int StartupTimeoutSeconds, + int ShutdownTimeoutSeconds, + int HeartbeatIntervalSeconds, + int HeartbeatGraceSeconds, + int MaxMessageBytes); diff --git a/src/MxGateway.Server/Configuration/EventBackpressurePolicy.cs b/src/MxGateway.Server/Configuration/EventBackpressurePolicy.cs new file mode 100644 index 0000000..9d341e0 --- /dev/null +++ b/src/MxGateway.Server/Configuration/EventBackpressurePolicy.cs @@ -0,0 +1,6 @@ +namespace MxGateway.Server.Configuration; + +public enum EventBackpressurePolicy +{ + FailFast +} diff --git a/src/MxGateway.Server/Configuration/EventOptions.cs b/src/MxGateway.Server/Configuration/EventOptions.cs new file mode 100644 index 0000000..b93323e --- /dev/null +++ b/src/MxGateway.Server/Configuration/EventOptions.cs @@ -0,0 +1,8 @@ +namespace MxGateway.Server.Configuration; + +public sealed class EventOptions +{ + public int QueueCapacity { get; init; } = 10_000; + + public EventBackpressurePolicy BackpressurePolicy { get; init; } = EventBackpressurePolicy.FailFast; +} diff --git a/src/MxGateway.Server/Configuration/GatewayConfigurationProvider.cs b/src/MxGateway.Server/Configuration/GatewayConfigurationProvider.cs new file mode 100644 index 0000000..69c97bf --- /dev/null +++ b/src/MxGateway.Server/Configuration/GatewayConfigurationProvider.cs @@ -0,0 +1,46 @@ +using Microsoft.Extensions.Options; + +namespace MxGateway.Server.Configuration; + +public sealed class GatewayConfigurationProvider(IOptions options) : IGatewayConfigurationProvider +{ + public const string RedactedValue = "[redacted]"; + + public EffectiveGatewayConfiguration GetEffectiveConfiguration() + { + GatewayOptions value = options.Value; + + return new EffectiveGatewayConfiguration( + Authentication: new EffectiveAuthenticationConfiguration( + Mode: value.Authentication.Mode.ToString(), + SqlitePath: value.Authentication.SqlitePath, + PepperSecretName: RedactedValue, + RunMigrationsOnStartup: value.Authentication.RunMigrationsOnStartup), + Worker: new EffectiveWorkerConfiguration( + ExecutablePath: value.Worker.ExecutablePath, + WorkingDirectory: value.Worker.WorkingDirectory, + RequiredArchitecture: value.Worker.RequiredArchitecture.ToString(), + StartupTimeoutSeconds: value.Worker.StartupTimeoutSeconds, + ShutdownTimeoutSeconds: value.Worker.ShutdownTimeoutSeconds, + HeartbeatIntervalSeconds: value.Worker.HeartbeatIntervalSeconds, + HeartbeatGraceSeconds: value.Worker.HeartbeatGraceSeconds, + MaxMessageBytes: value.Worker.MaxMessageBytes), + Sessions: new EffectiveSessionConfiguration( + DefaultCommandTimeoutSeconds: value.Sessions.DefaultCommandTimeoutSeconds, + MaxSessions: value.Sessions.MaxSessions, + AllowMultipleEventSubscribers: value.Sessions.AllowMultipleEventSubscribers), + Events: new EffectiveEventConfiguration( + QueueCapacity: value.Events.QueueCapacity, + BackpressurePolicy: value.Events.BackpressurePolicy.ToString()), + Dashboard: new EffectiveDashboardConfiguration( + Enabled: value.Dashboard.Enabled, + PathBase: value.Dashboard.PathBase, + RequireAdminScope: value.Dashboard.RequireAdminScope, + AllowAnonymousLocalhost: value.Dashboard.AllowAnonymousLocalhost, + SnapshotIntervalMilliseconds: value.Dashboard.SnapshotIntervalMilliseconds, + RecentFaultLimit: value.Dashboard.RecentFaultLimit, + RecentSessionLimit: value.Dashboard.RecentSessionLimit, + ShowTagValues: value.Dashboard.ShowTagValues), + Protocol: new EffectiveProtocolConfiguration(value.Protocol.WorkerProtocolVersion)); + } +} diff --git a/src/MxGateway.Server/Configuration/GatewayConfigurationServiceCollectionExtensions.cs b/src/MxGateway.Server/Configuration/GatewayConfigurationServiceCollectionExtensions.cs new file mode 100644 index 0000000..9c23e61 --- /dev/null +++ b/src/MxGateway.Server/Configuration/GatewayConfigurationServiceCollectionExtensions.cs @@ -0,0 +1,19 @@ +using Microsoft.Extensions.Options; + +namespace MxGateway.Server.Configuration; + +public static class GatewayConfigurationServiceCollectionExtensions +{ + public static IServiceCollection AddGatewayConfiguration(this IServiceCollection services) + { + services + .AddOptions() + .BindConfiguration(GatewayOptions.SectionName) + .ValidateOnStart(); + + services.AddSingleton, GatewayOptionsValidator>(); + services.AddSingleton(); + + return services; + } +} diff --git a/src/MxGateway.Server/Configuration/GatewayOptions.cs b/src/MxGateway.Server/Configuration/GatewayOptions.cs new file mode 100644 index 0000000..b1b7585 --- /dev/null +++ b/src/MxGateway.Server/Configuration/GatewayOptions.cs @@ -0,0 +1,18 @@ +namespace MxGateway.Server.Configuration; + +public sealed class GatewayOptions +{ + public const string SectionName = "MxGateway"; + + public AuthenticationOptions Authentication { get; init; } = new(); + + public WorkerOptions Worker { get; init; } = new(); + + public SessionOptions Sessions { get; init; } = new(); + + public EventOptions Events { get; init; } = new(); + + public DashboardOptions Dashboard { get; init; } = new(); + + public ProtocolOptions Protocol { get; init; } = new(); +} diff --git a/src/MxGateway.Server/Configuration/GatewayOptionsValidator.cs b/src/MxGateway.Server/Configuration/GatewayOptionsValidator.cs new file mode 100644 index 0000000..c71856e --- /dev/null +++ b/src/MxGateway.Server/Configuration/GatewayOptionsValidator.cs @@ -0,0 +1,210 @@ +using Microsoft.Extensions.Options; +using MxGateway.Contracts; + +namespace MxGateway.Server.Configuration; + +public sealed class GatewayOptionsValidator : IValidateOptions +{ + private const int MinimumMaxMessageBytes = 1024; + private const int MaximumMaxMessageBytes = 256 * 1024 * 1024; + + public ValidateOptionsResult Validate(string? name, GatewayOptions options) + { + List failures = []; + + ValidateAuthentication(options.Authentication, failures); + ValidateWorker(options.Worker, failures); + ValidateSessions(options.Sessions, failures); + ValidateEvents(options.Events, failures); + ValidateDashboard(options.Dashboard, failures); + ValidateProtocol(options.Protocol, failures); + + return failures.Count == 0 + ? ValidateOptionsResult.Success + : ValidateOptionsResult.Fail(failures); + } + + private static void ValidateAuthentication(AuthenticationOptions options, List failures) + { + if (!Enum.IsDefined(options.Mode)) + { + failures.Add("MxGateway:Authentication:Mode must be a supported authentication mode."); + return; + } + + if (options.Mode == AuthenticationMode.ApiKey) + { + AddIfBlank( + options.SqlitePath, + "MxGateway:Authentication:SqlitePath is required when API-key authentication is enabled.", + failures); + AddIfInvalidPath( + options.SqlitePath, + "MxGateway:Authentication:SqlitePath must be a valid filesystem path.", + failures); + AddIfBlank( + options.PepperSecretName, + "MxGateway:Authentication:PepperSecretName is required when API-key authentication is enabled.", + failures); + } + } + + private static void ValidateWorker(WorkerOptions options, List failures) + { + AddIfBlank(options.ExecutablePath, "MxGateway:Worker:ExecutablePath is required.", failures); + AddIfInvalidPath( + options.ExecutablePath, + "MxGateway:Worker:ExecutablePath must be a valid filesystem path.", + failures); + + if (!string.IsNullOrWhiteSpace(options.ExecutablePath) + && !string.Equals(Path.GetExtension(options.ExecutablePath), ".exe", StringComparison.OrdinalIgnoreCase)) + { + failures.Add("MxGateway:Worker:ExecutablePath must point to a .exe file."); + } + + if (!string.IsNullOrWhiteSpace(options.WorkingDirectory)) + { + AddIfInvalidPath( + options.WorkingDirectory, + "MxGateway:Worker:WorkingDirectory must be a valid filesystem path.", + failures); + } + + if (!Enum.IsDefined(options.RequiredArchitecture)) + { + failures.Add("MxGateway:Worker:RequiredArchitecture must be a supported worker architecture."); + } + + AddIfNotPositive( + options.StartupTimeoutSeconds, + "MxGateway:Worker:StartupTimeoutSeconds must be greater than zero.", + failures); + AddIfNotPositive( + options.ShutdownTimeoutSeconds, + "MxGateway:Worker:ShutdownTimeoutSeconds must be greater than zero.", + failures); + AddIfNotPositive( + options.HeartbeatIntervalSeconds, + "MxGateway:Worker:HeartbeatIntervalSeconds must be greater than zero.", + failures); + AddIfNotPositive( + options.HeartbeatGraceSeconds, + "MxGateway:Worker:HeartbeatGraceSeconds must be greater than zero.", + failures); + + if (options.HeartbeatGraceSeconds < options.HeartbeatIntervalSeconds) + { + failures.Add( + "MxGateway:Worker:HeartbeatGraceSeconds must be greater than or equal to HeartbeatIntervalSeconds."); + } + + if (options.MaxMessageBytes is < MinimumMaxMessageBytes or > MaximumMaxMessageBytes) + { + failures.Add( + $"MxGateway:Worker:MaxMessageBytes must be between {MinimumMaxMessageBytes} and {MaximumMaxMessageBytes}."); + } + } + + private static void ValidateSessions(SessionOptions options, List failures) + { + AddIfNotPositive( + options.DefaultCommandTimeoutSeconds, + "MxGateway:Sessions:DefaultCommandTimeoutSeconds must be greater than zero.", + failures); + AddIfNotPositive(options.MaxSessions, "MxGateway:Sessions:MaxSessions must be greater than zero.", failures); + } + + private static void ValidateEvents(EventOptions options, List failures) + { + AddIfNotPositive(options.QueueCapacity, "MxGateway:Events:QueueCapacity must be greater than zero.", failures); + + if (!Enum.IsDefined(options.BackpressurePolicy)) + { + failures.Add("MxGateway:Events:BackpressurePolicy must be a supported backpressure policy."); + } + } + + private static void ValidateDashboard(DashboardOptions options, List failures) + { + if (options.Enabled) + { + AddIfBlank(options.PathBase, "MxGateway:Dashboard:PathBase is required when the dashboard is enabled.", failures); + if (!string.IsNullOrWhiteSpace(options.PathBase) && !options.PathBase.StartsWith('/')) + { + failures.Add("MxGateway:Dashboard:PathBase must start with '/'."); + } + } + + AddIfNotPositive( + options.SnapshotIntervalMilliseconds, + "MxGateway:Dashboard:SnapshotIntervalMilliseconds must be greater than zero.", + failures); + AddIfNegative( + options.RecentFaultLimit, + "MxGateway:Dashboard:RecentFaultLimit must be greater than or equal to zero.", + failures); + AddIfNegative( + options.RecentSessionLimit, + "MxGateway:Dashboard:RecentSessionLimit must be greater than or equal to zero.", + failures); + } + + private static void ValidateProtocol(ProtocolOptions options, List failures) + { + if (options.WorkerProtocolVersion != GatewayContractInfo.WorkerProtocolVersion) + { + failures.Add( + $"MxGateway:Protocol:WorkerProtocolVersion must be {GatewayContractInfo.WorkerProtocolVersion}."); + } + } + + private static void AddIfBlank(string? value, string message, List failures) + { + if (string.IsNullOrWhiteSpace(value)) + { + failures.Add(message); + } + } + + private static void AddIfNotPositive(int value, string message, List failures) + { + if (value <= 0) + { + failures.Add(message); + } + } + + private static void AddIfNegative(int value, string message, List failures) + { + if (value < 0) + { + failures.Add(message); + } + } + + private static void AddIfInvalidPath(string? value, string message, List failures) + { + if (string.IsNullOrWhiteSpace(value)) + { + return; + } + + try + { + _ = Path.GetFullPath(value); + } + catch (ArgumentException) + { + failures.Add(message); + } + catch (NotSupportedException) + { + failures.Add(message); + } + catch (PathTooLongException) + { + failures.Add(message); + } + } +} diff --git a/src/MxGateway.Server/Configuration/IGatewayConfigurationProvider.cs b/src/MxGateway.Server/Configuration/IGatewayConfigurationProvider.cs new file mode 100644 index 0000000..6393d19 --- /dev/null +++ b/src/MxGateway.Server/Configuration/IGatewayConfigurationProvider.cs @@ -0,0 +1,6 @@ +namespace MxGateway.Server.Configuration; + +public interface IGatewayConfigurationProvider +{ + EffectiveGatewayConfiguration GetEffectiveConfiguration(); +} diff --git a/src/MxGateway.Server/Configuration/ProtocolOptions.cs b/src/MxGateway.Server/Configuration/ProtocolOptions.cs new file mode 100644 index 0000000..4f75ec3 --- /dev/null +++ b/src/MxGateway.Server/Configuration/ProtocolOptions.cs @@ -0,0 +1,8 @@ +using MxGateway.Contracts; + +namespace MxGateway.Server.Configuration; + +public sealed class ProtocolOptions +{ + public uint WorkerProtocolVersion { get; init; } = GatewayContractInfo.WorkerProtocolVersion; +} diff --git a/src/MxGateway.Server/Configuration/SessionOptions.cs b/src/MxGateway.Server/Configuration/SessionOptions.cs new file mode 100644 index 0000000..ac0db35 --- /dev/null +++ b/src/MxGateway.Server/Configuration/SessionOptions.cs @@ -0,0 +1,10 @@ +namespace MxGateway.Server.Configuration; + +public sealed class SessionOptions +{ + public int DefaultCommandTimeoutSeconds { get; init; } = 30; + + public int MaxSessions { get; init; } = 64; + + public bool AllowMultipleEventSubscribers { get; init; } +} diff --git a/src/MxGateway.Server/Configuration/WorkerArchitecture.cs b/src/MxGateway.Server/Configuration/WorkerArchitecture.cs new file mode 100644 index 0000000..6de6f45 --- /dev/null +++ b/src/MxGateway.Server/Configuration/WorkerArchitecture.cs @@ -0,0 +1,7 @@ +namespace MxGateway.Server.Configuration; + +public enum WorkerArchitecture +{ + X86, + X64 +} diff --git a/src/MxGateway.Server/Configuration/WorkerOptions.cs b/src/MxGateway.Server/Configuration/WorkerOptions.cs new file mode 100644 index 0000000..98ee21f --- /dev/null +++ b/src/MxGateway.Server/Configuration/WorkerOptions.cs @@ -0,0 +1,21 @@ +namespace MxGateway.Server.Configuration; + +public sealed class WorkerOptions +{ + public string ExecutablePath { get; init; } = + @"src\MxGateway.Worker\bin\x86\Release\MxGateway.Worker.exe"; + + public string? WorkingDirectory { get; init; } + + public WorkerArchitecture RequiredArchitecture { get; init; } = WorkerArchitecture.X86; + + public int StartupTimeoutSeconds { get; init; } = 30; + + public int ShutdownTimeoutSeconds { get; init; } = 10; + + public int HeartbeatIntervalSeconds { get; init; } = 5; + + public int HeartbeatGraceSeconds { get; init; } = 15; + + public int MaxMessageBytes { get; init; } = 16 * 1024 * 1024; +} diff --git a/src/MxGateway.Server/GatewayApplication.cs b/src/MxGateway.Server/GatewayApplication.cs index 648b537..317f427 100644 --- a/src/MxGateway.Server/GatewayApplication.cs +++ b/src/MxGateway.Server/GatewayApplication.cs @@ -1,4 +1,5 @@ using MxGateway.Contracts; +using MxGateway.Server.Configuration; namespace MxGateway.Server; @@ -18,6 +19,7 @@ public static class GatewayApplication { WebApplicationBuilder builder = WebApplication.CreateBuilder(args); + builder.Services.AddGatewayConfiguration(); builder.Services.AddHealthChecks(); return builder; diff --git a/src/MxGateway.Server/appsettings.json b/src/MxGateway.Server/appsettings.json index 10f68b8..4786fe6 100644 --- a/src/MxGateway.Server/appsettings.json +++ b/src/MxGateway.Server/appsettings.json @@ -5,5 +5,44 @@ "Microsoft.AspNetCore": "Warning" } }, - "AllowedHosts": "*" + "AllowedHosts": "*", + "MxGateway": { + "Authentication": { + "Mode": "ApiKey", + "SqlitePath": "C:\\ProgramData\\MxGateway\\gateway-auth.db", + "PepperSecretName": "MxGateway:ApiKeyPepper", + "RunMigrationsOnStartup": true + }, + "Worker": { + "ExecutablePath": "src\\MxGateway.Worker\\bin\\x86\\Release\\MxGateway.Worker.exe", + "RequiredArchitecture": "X86", + "StartupTimeoutSeconds": 30, + "ShutdownTimeoutSeconds": 10, + "HeartbeatIntervalSeconds": 5, + "HeartbeatGraceSeconds": 15, + "MaxMessageBytes": 16777216 + }, + "Sessions": { + "DefaultCommandTimeoutSeconds": 30, + "MaxSessions": 64, + "AllowMultipleEventSubscribers": false + }, + "Events": { + "QueueCapacity": 10000, + "BackpressurePolicy": "FailFast" + }, + "Dashboard": { + "Enabled": true, + "PathBase": "/dashboard", + "RequireAdminScope": true, + "AllowAnonymousLocalhost": false, + "SnapshotIntervalMilliseconds": 1000, + "RecentFaultLimit": 100, + "RecentSessionLimit": 200, + "ShowTagValues": false + }, + "Protocol": { + "WorkerProtocolVersion": 1 + } + } } diff --git a/src/MxGateway.Tests/Configuration/GatewayOptionsTests.cs b/src/MxGateway.Tests/Configuration/GatewayOptionsTests.cs new file mode 100644 index 0000000..3a47905 --- /dev/null +++ b/src/MxGateway.Tests/Configuration/GatewayOptionsTests.cs @@ -0,0 +1,119 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; +using MxGateway.Server.Configuration; + +namespace MxGateway.Tests.Configuration; + +public sealed class GatewayOptionsTests +{ + [Fact] + public void OptionsBinding_UsesDesignDefaults() + { + GatewayOptions options = BindOptions(new Dictionary()); + + Assert.Equal(AuthenticationMode.ApiKey, options.Authentication.Mode); + Assert.Equal(@"C:\ProgramData\MxGateway\gateway-auth.db", options.Authentication.SqlitePath); + Assert.Equal("MxGateway:ApiKeyPepper", options.Authentication.PepperSecretName); + Assert.True(options.Authentication.RunMigrationsOnStartup); + + Assert.Equal(@"src\MxGateway.Worker\bin\x86\Release\MxGateway.Worker.exe", options.Worker.ExecutablePath); + Assert.Equal(WorkerArchitecture.X86, options.Worker.RequiredArchitecture); + Assert.Equal(30, options.Worker.StartupTimeoutSeconds); + Assert.Equal(10, options.Worker.ShutdownTimeoutSeconds); + Assert.Equal(5, options.Worker.HeartbeatIntervalSeconds); + Assert.Equal(15, options.Worker.HeartbeatGraceSeconds); + Assert.Equal(16 * 1024 * 1024, options.Worker.MaxMessageBytes); + + Assert.Equal(30, options.Sessions.DefaultCommandTimeoutSeconds); + Assert.Equal(64, options.Sessions.MaxSessions); + Assert.False(options.Sessions.AllowMultipleEventSubscribers); + + Assert.Equal(10_000, options.Events.QueueCapacity); + Assert.Equal(EventBackpressurePolicy.FailFast, options.Events.BackpressurePolicy); + + Assert.True(options.Dashboard.Enabled); + Assert.Equal("/dashboard", options.Dashboard.PathBase); + Assert.True(options.Dashboard.RequireAdminScope); + Assert.False(options.Dashboard.AllowAnonymousLocalhost); + Assert.Equal(1_000, options.Dashboard.SnapshotIntervalMilliseconds); + Assert.Equal(100, options.Dashboard.RecentFaultLimit); + Assert.Equal(200, options.Dashboard.RecentSessionLimit); + Assert.False(options.Dashboard.ShowTagValues); + + Assert.Equal(1u, options.Protocol.WorkerProtocolVersion); + } + + [Fact] + public void OptionsBinding_AppliesConfigurationOverrides() + { + GatewayOptions options = BindOptions( + new Dictionary + { + ["MxGateway:Authentication:Mode"] = "Disabled", + ["MxGateway:Worker:ExecutablePath"] = @"C:\Gateway\MxGateway.Worker.exe", + ["MxGateway:Sessions:MaxSessions"] = "12", + ["MxGateway:Events:QueueCapacity"] = "256", + ["MxGateway:Dashboard:Enabled"] = "false" + }); + + Assert.Equal(AuthenticationMode.Disabled, options.Authentication.Mode); + Assert.Equal(@"C:\Gateway\MxGateway.Worker.exe", options.Worker.ExecutablePath); + Assert.Equal(12, options.Sessions.MaxSessions); + Assert.Equal(256, options.Events.QueueCapacity); + Assert.False(options.Dashboard.Enabled); + } + + [Theory] + [InlineData("MxGateway:Worker:ExecutablePath", "worker.dll", "MxGateway:Worker:ExecutablePath must point to a .exe file.")] + [InlineData("MxGateway:Events:QueueCapacity", "0", "MxGateway:Events:QueueCapacity must be greater than zero.")] + [InlineData("MxGateway:Authentication:PepperSecretName", "", "MxGateway:Authentication:PepperSecretName is required")] + [InlineData("MxGateway:Dashboard:PathBase", "dashboard", "MxGateway:Dashboard:PathBase must start with '/'.")] + public void Validation_InvalidConfiguration_FailsClearly(string key, string value, string expectedFailure) + { + OptionsValidationException exception = Assert.Throws(() => + _ = BindOptions(new Dictionary { [key] = value })); + + Assert.Contains(exception.Failures, failure => failure.Contains(expectedFailure, StringComparison.Ordinal)); + } + + [Fact] + public void EffectiveConfiguration_RedactsPepperSecretName() + { + using ServiceProvider services = BuildServices( + new Dictionary + { + ["MxGateway:Authentication:PepperSecretName"] = "RawPepperSecretName" + }); + + IGatewayConfigurationProvider provider = services.GetRequiredService(); + + EffectiveGatewayConfiguration configuration = provider.GetEffectiveConfiguration(); + + Assert.Equal(GatewayConfigurationProvider.RedactedValue, configuration.Authentication.PepperSecretName); + Assert.DoesNotContain( + "RawPepperSecretName", + System.Text.Json.JsonSerializer.Serialize(configuration), + StringComparison.Ordinal); + } + + private static GatewayOptions BindOptions(IReadOnlyDictionary configurationValues) + { + using ServiceProvider services = BuildServices(configurationValues); + + return services.GetRequiredService>().Value; + } + + private static ServiceProvider BuildServices(IReadOnlyDictionary configurationValues) + { + IConfigurationRoot configuration = new ConfigurationBuilder() + .AddInMemoryCollection(configurationValues) + .Build(); + + ServiceCollection services = new(); + services.AddSingleton(configuration); + services.AddGatewayConfiguration(); + + return services.BuildServiceProvider(validateScopes: true); + } +} diff --git a/src/MxGateway.Tests/Gateway/GatewayApplicationTests.cs b/src/MxGateway.Tests/Gateway/GatewayApplicationTests.cs index 006798f..b5e30d6 100644 --- a/src/MxGateway.Tests/Gateway/GatewayApplicationTests.cs +++ b/src/MxGateway.Tests/Gateway/GatewayApplicationTests.cs @@ -1,5 +1,6 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.Options; using MxGateway.Server; namespace MxGateway.Tests.Gateway; @@ -19,4 +20,37 @@ public sealed class GatewayApplicationTests Assert.Equal("LiveHealth", endpoint.Metadata.GetMetadata()?.EndpointName); } + + [Theory] + [InlineData( + "MxGateway:Worker:ExecutablePath", + "worker.dll", + "MxGateway:Worker:ExecutablePath must point to a .exe file.")] + [InlineData( + "MxGateway:Events:QueueCapacity", + "0", + "MxGateway:Events:QueueCapacity must be greater than zero.")] + [InlineData( + "MxGateway:Authentication:PepperSecretName", + "", + "MxGateway:Authentication:PepperSecretName is required")] + [InlineData( + "MxGateway:Dashboard:PathBase", + "dashboard", + "MxGateway:Dashboard:PathBase must start with '/'.")] + public async Task StartAsync_InvalidGatewayConfiguration_FailsStartup( + string key, + string value, + string expectedFailure) + { + await using WebApplication app = GatewayApplication.Build( + [$"--{key}={value}", "--urls=http://127.0.0.1:0"]); + + OptionsValidationException exception = await Assert.ThrowsAsync( + () => app.StartAsync()); + + Assert.Contains( + exception.Failures, + failure => failure.Contains(expectedFailure, StringComparison.Ordinal)); + } }