From dde45c63b01fb3e685e826a3a5bca5ab05e0536c Mon Sep 17 00:00:00 2001 From: arthurkehrwald <50906979+arthurkehrwald@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:51:40 +0100 Subject: [PATCH] Ignore proto generated files --- .gitignore | 5 +- Runtime/GrpcInterface/Platform.cs | 6176 -------------------- Runtime/GrpcInterface/Platform.cs.meta | 11 - Runtime/GrpcInterface/PlatformGrpc.cs | 228 - Runtime/GrpcInterface/PlatformGrpc.cs.meta | 11 - VisualPinball.Engine.Mpf.csproj | 2 +- 6 files changed, 5 insertions(+), 6428 deletions(-) delete mode 100644 Runtime/GrpcInterface/Platform.cs delete mode 100644 Runtime/GrpcInterface/Platform.cs.meta delete mode 100644 Runtime/GrpcInterface/PlatformGrpc.cs delete mode 100644 Runtime/GrpcInterface/PlatformGrpc.cs.meta diff --git a/.gitignore b/.gitignore index 2a922a9b..4f73c241 100644 --- a/.gitignore +++ b/.gitignore @@ -358,4 +358,7 @@ VisualPinball.Engine.Mpf/machine/data/ *.DS_Store Dependencies/ -Dependencies.meta \ No newline at end of file +Dependencies.meta + +Runtime/GrpcInterface/Generated/ +Runtime/GrpcInterface/Generated.meta \ No newline at end of file diff --git a/Runtime/GrpcInterface/Platform.cs b/Runtime/GrpcInterface/Platform.cs deleted file mode 100644 index 79b595a4..00000000 --- a/Runtime/GrpcInterface/Platform.cs +++ /dev/null @@ -1,6176 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Runtime/GrpcInterface/platform.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 Mpf.Vpe { - - /// Holder for reflection information generated from Runtime/GrpcInterface/platform.proto - public static partial class PlatformReflection { - - #region Descriptor - /// File descriptor for Runtime/GrpcInterface/platform.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static PlatformReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiRSdW50aW1lL0dycGNJbnRlcmZhY2UvcGxhdGZvcm0ucHJvdG8SB21wZi52", - "cGUiDgoMRW1wdHlSZXF1ZXN0Ig8KDUVtcHR5UmVzcG9uc2UiDQoLUXVpdFJl", - "cXVlc3QimQEKDE1hY2hpbmVTdGF0ZRJNChVpbml0aWFsX3N3aXRjaF9zdGF0", - "ZXMYASADKAsyLi5tcGYudnBlLk1hY2hpbmVTdGF0ZS5Jbml0aWFsU3dpdGNo", - "U3RhdGVzRW50cnkaOgoYSW5pdGlhbFN3aXRjaFN0YXRlc0VudHJ5EgsKA2tl", - "eRgBIAEoCRINCgV2YWx1ZRgCIAEoCDoCOAEiTwoRU3dpdGNoRGVzY3JpcHRp", - "b24SDAoEbmFtZRgBIAEoCRIXCg9oYXJkd2FyZV9udW1iZXIYAiABKAkSEwoL", - "c3dpdGNoX3R5cGUYAyABKAkiOAoPQ29pbERlc2NyaXB0aW9uEgwKBG5hbWUY", - "ASABKAkSFwoPaGFyZHdhcmVfbnVtYmVyGAIgASgJImEKEExpZ2h0RGVzY3Jp", - "cHRpb24SDAoEbmFtZRgBIAEoCRIfChdoYXJkd2FyZV9jaGFubmVsX251bWJl", - "chgCIAEoCRIeChZoYXJkd2FyZV9jaGFubmVsX2NvbG9yGAMgASgJIpsBCg5E", - "bWREZXNjcmlwdGlvbhIMCgRuYW1lGAEgASgJEjsKDWNvbG9yX21hcHBpbmcY", - "AiABKA4yJC5tcGYudnBlLkRtZERlc2NyaXB0aW9uLkNvbG9yTWFwcGluZxIN", - "CgV3aWR0aBgDIAEoDRIOCgZoZWlnaHQYBCABKA0iHwoMQ29sb3JNYXBwaW5n", - "EgYKAkJXEAASBwoDUkdCEAEiOAoZU2VnbWVudERpc3BsYXlEZXNjcmlwdGlv", - "bhIMCgRuYW1lGAEgASgJEg0KBXdpZHRoGAIgASgNIvsBChJNYWNoaW5lRGVz", - "Y3JpcHRpb24SLAoIc3dpdGNoZXMYASADKAsyGi5tcGYudnBlLlN3aXRjaERl", - "c2NyaXB0aW9uEicKBWNvaWxzGAIgAygLMhgubXBmLnZwZS5Db2lsRGVzY3Jp", - "cHRpb24SKQoGbGlnaHRzGAMgAygLMhkubXBmLnZwZS5MaWdodERlc2NyaXB0", - "aW9uEiUKBGRtZHMYBCADKAsyFy5tcGYudnBlLkRtZERlc2NyaXB0aW9uEjwK", - "EHNlZ21lbnRfZGlzcGxheXMYBSADKAsyIi5tcGYudnBlLlNlZ21lbnREaXNw", - "bGF5RGVzY3JpcHRpb24iUQoNU3dpdGNoQ2hhbmdlcxIVCg1zd2l0Y2hfbnVt", - "YmVyGAEgASgJEhQKDHN3aXRjaF9zdGF0ZRgCIAEoCBITCgtjaGFuZ2VfdGlt", - "ZRgDIAEoBCJFChJTZXREbWRGcmFtZVJlcXVlc3QSDAoEbmFtZRgBIAEoCRIN", - "CgVmcmFtZRgCIAEoDBISCgpicmlnaHRuZXNzGAMgASgCIsABCh1TZXRTZWdt", - "ZW50RGlzcGxheUZyYW1lUmVxdWVzdBIMCgRuYW1lGAEgASgJEg0KBWZyYW1l", - "GAIgASgMEkoKBmNvbG9ycxgDIAMoCzI6Lm1wZi52cGUuU2V0U2VnbWVudERp", - "c3BsYXlGcmFtZVJlcXVlc3QuU2VnbWVudERpc3BsYXlDb2xvcho2ChNTZWdt", - "ZW50RGlzcGxheUNvbG9yEgkKAXIYASABKAISCQoBZxgCIAEoAhIJCgFiGAMg", - "ASgCIvgDCghDb21tYW5kcxIvCgpmYWRlX2xpZ2h0GAEgASgLMhkubXBmLnZw", - "ZS5GYWRlTGlnaHRSZXF1ZXN0SAASLwoKcHVsc2VfY29pbBgCIAEoCzIZLm1w", - "Zi52cGUuUHVsc2VDb2lsUmVxdWVzdEgAEjEKC2VuYWJsZV9jb2lsGAMgASgL", - "MhoubXBmLnZwZS5FbmFibGVDb2lsUmVxdWVzdEgAEjMKDGRpc2FibGVfY29p", - "bBgEIAEoCzIbLm1wZi52cGUuRGlzYWJsZUNvaWxSZXF1ZXN0SAASSAoXY29u", - "ZmlndXJlX2hhcmR3YXJlX3J1bGUYBSABKAsyJS5tcGYudnBlLkNvbmZpZ3Vy", - "ZUhhcmR3YXJlUnVsZVJlcXVlc3RIABJCChRyZW1vdmVfaGFyZHdhcmVfcnVs", - "ZRgGIAEoCzIiLm1wZi52cGUuUmVtb3ZlSGFyZHdhcmVSdWxlUmVxdWVzdEgA", - "EjgKEWRtZF9mcmFtZV9yZXF1ZXN0GAcgASgLMhsubXBmLnZwZS5TZXREbWRG", - "cmFtZVJlcXVlc3RIABJPCh1zZWdtZW50X2Rpc3BsYXlfZnJhbWVfcmVxdWVz", - "dBgIIAEoCzImLm1wZi52cGUuU2V0U2VnbWVudERpc3BsYXlGcmFtZVJlcXVl", - "c3RIAEIJCgdjb21tYW5kIqABChBGYWRlTGlnaHRSZXF1ZXN0EhYKDmNvbW1v", - "bl9mYWRlX21zGAEgASgNEjQKBWZhZGVzGAIgAygLMiUubXBmLnZwZS5GYWRl", - "TGlnaHRSZXF1ZXN0LkNoYW5uZWxGYWRlGj4KC0NoYW5uZWxGYWRlEhQKDGxp", - "Z2h0X251bWJlchgBIAEoCRIZChF0YXJnZXRfYnJpZ2h0bmVzcxgCIAEoAiJO", - "ChBQdWxzZUNvaWxSZXF1ZXN0EhMKC2NvaWxfbnVtYmVyGAEgASgJEhAKCHB1", - "bHNlX21zGAIgASgNEhMKC3B1bHNlX3Bvd2VyGAMgASgCImMKEUVuYWJsZUNv", - "aWxSZXF1ZXN0EhMKC2NvaWxfbnVtYmVyGAEgASgJEhAKCHB1bHNlX21zGAIg", - "ASgNEhMKC3B1bHNlX3Bvd2VyGAMgASgCEhIKCmhvbGRfcG93ZXIYBCABKAIi", - "KQoSRGlzYWJsZUNvaWxSZXF1ZXN0EhMKC2NvaWxfbnVtYmVyGAEgASgJIoUB", - "ChxDb25maWd1cmVIYXJkd2FyZVJ1bGVSZXF1ZXN0EhMKC2NvaWxfbnVtYmVy", - "GAEgASgJEhUKDXN3aXRjaF9udW1iZXIYAiABKAkSEAoIcHVsc2VfbXMYAyAB", - "KA0SEwoLcHVsc2VfcG93ZXIYBCABKAISEgoKaG9sZF9wb3dlchgFIAEoAiJH", - "ChlSZW1vdmVIYXJkd2FyZVJ1bGVSZXF1ZXN0EhMKC2NvaWxfbnVtYmVyGAEg", - "ASgJEhUKDXN3aXRjaF9udW1iZXIYAiABKAkiIwoMUGluZ1Jlc3BvbnNlEhMK", - "C21wZl92ZXJzaW9uGAEgASgJMskCChJNcGZIYXJkd2FyZVNlcnZpY2USMwoF", - "U3RhcnQSFS5tcGYudnBlLk1hY2hpbmVTdGF0ZRoRLm1wZi52cGUuQ29tbWFu", - "ZHMwARJLChVHZXRNYWNoaW5lRGVzY3JpcHRpb24SFS5tcGYudnBlLkVtcHR5", - "UmVxdWVzdBobLm1wZi52cGUuTWFjaGluZURlc2NyaXB0aW9uEkUKEVNlbmRT", - "d2l0Y2hDaGFuZ2VzEhYubXBmLnZwZS5Td2l0Y2hDaGFuZ2VzGhYubXBmLnZw", - "ZS5FbXB0eVJlc3BvbnNlKAESNAoEUXVpdBIULm1wZi52cGUuUXVpdFJlcXVl", - "c3QaFi5tcGYudnBlLkVtcHR5UmVzcG9uc2USNAoEUGluZxIVLm1wZi52cGUu", - "RW1wdHlSZXF1ZXN0GhUubXBmLnZwZS5QaW5nUmVzcG9uc2ViBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.EmptyRequest), global::Mpf.Vpe.EmptyRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.EmptyResponse), global::Mpf.Vpe.EmptyResponse.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.QuitRequest), global::Mpf.Vpe.QuitRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.MachineState), global::Mpf.Vpe.MachineState.Parser, new[]{ "InitialSwitchStates" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.SwitchDescription), global::Mpf.Vpe.SwitchDescription.Parser, new[]{ "Name", "HardwareNumber", "SwitchType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.CoilDescription), global::Mpf.Vpe.CoilDescription.Parser, new[]{ "Name", "HardwareNumber" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.LightDescription), global::Mpf.Vpe.LightDescription.Parser, new[]{ "Name", "HardwareChannelNumber", "HardwareChannelColor" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.DmdDescription), global::Mpf.Vpe.DmdDescription.Parser, new[]{ "Name", "ColorMapping", "Width", "Height" }, null, new[]{ typeof(global::Mpf.Vpe.DmdDescription.Types.ColorMapping) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.SegmentDisplayDescription), global::Mpf.Vpe.SegmentDisplayDescription.Parser, new[]{ "Name", "Width" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.MachineDescription), global::Mpf.Vpe.MachineDescription.Parser, new[]{ "Switches", "Coils", "Lights", "Dmds", "SegmentDisplays" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.SwitchChanges), global::Mpf.Vpe.SwitchChanges.Parser, new[]{ "SwitchNumber", "SwitchState", "ChangeTime" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.SetDmdFrameRequest), global::Mpf.Vpe.SetDmdFrameRequest.Parser, new[]{ "Name", "Frame", "Brightness" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.SetSegmentDisplayFrameRequest), global::Mpf.Vpe.SetSegmentDisplayFrameRequest.Parser, new[]{ "Name", "Frame", "Colors" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.SetSegmentDisplayFrameRequest.Types.SegmentDisplayColor), global::Mpf.Vpe.SetSegmentDisplayFrameRequest.Types.SegmentDisplayColor.Parser, new[]{ "R", "G", "B" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.Commands), global::Mpf.Vpe.Commands.Parser, new[]{ "FadeLight", "PulseCoil", "EnableCoil", "DisableCoil", "ConfigureHardwareRule", "RemoveHardwareRule", "DmdFrameRequest", "SegmentDisplayFrameRequest" }, new[]{ "Command" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.FadeLightRequest), global::Mpf.Vpe.FadeLightRequest.Parser, new[]{ "CommonFadeMs", "Fades" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.FadeLightRequest.Types.ChannelFade), global::Mpf.Vpe.FadeLightRequest.Types.ChannelFade.Parser, new[]{ "LightNumber", "TargetBrightness" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.PulseCoilRequest), global::Mpf.Vpe.PulseCoilRequest.Parser, new[]{ "CoilNumber", "PulseMs", "PulsePower" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.EnableCoilRequest), global::Mpf.Vpe.EnableCoilRequest.Parser, new[]{ "CoilNumber", "PulseMs", "PulsePower", "HoldPower" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.DisableCoilRequest), global::Mpf.Vpe.DisableCoilRequest.Parser, new[]{ "CoilNumber" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.ConfigureHardwareRuleRequest), global::Mpf.Vpe.ConfigureHardwareRuleRequest.Parser, new[]{ "CoilNumber", "SwitchNumber", "PulseMs", "PulsePower", "HoldPower" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.RemoveHardwareRuleRequest), global::Mpf.Vpe.RemoveHardwareRuleRequest.Parser, new[]{ "CoilNumber", "SwitchNumber" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Mpf.Vpe.PingResponse), global::Mpf.Vpe.PingResponse.Parser, new[]{ "MpfVersion" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class EmptyRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmptyRequest()); - 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::Mpf.Vpe.PlatformReflection.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 EmptyRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EmptyRequest(EmptyRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EmptyRequest Clone() { - return new EmptyRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EmptyRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EmptyRequest 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(EmptyRequest 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 EmptyResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmptyResponse()); - 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::Mpf.Vpe.PlatformReflection.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 EmptyResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EmptyResponse(EmptyResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EmptyResponse Clone() { - return new EmptyResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EmptyResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EmptyResponse 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(EmptyResponse 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 QuitRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QuitRequest()); - 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::Mpf.Vpe.PlatformReflection.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 QuitRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QuitRequest(QuitRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QuitRequest Clone() { - return new QuitRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as QuitRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(QuitRequest 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(QuitRequest 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 MachineState : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MachineState()); - 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::Mpf.Vpe.PlatformReflection.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 MachineState() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MachineState(MachineState other) : this() { - initialSwitchStates_ = other.initialSwitchStates_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MachineState Clone() { - return new MachineState(this); - } - - /// Field number for the "initial_switch_states" field. - public const int InitialSwitchStatesFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_initialSwitchStates_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForBool(16, false), 10); - private readonly pbc::MapField initialSwitchStates_ = new pbc::MapField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField InitialSwitchStates { - get { return initialSwitchStates_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MachineState); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MachineState other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!InitialSwitchStates.Equals(other.InitialSwitchStates)) 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 ^= InitialSwitchStates.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 - initialSwitchStates_.WriteTo(output, _map_initialSwitchStates_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) { - initialSwitchStates_.WriteTo(ref output, _map_initialSwitchStates_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 += initialSwitchStates_.CalculateSize(_map_initialSwitchStates_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MachineState other) { - if (other == null) { - return; - } - initialSwitchStates_.MergeFrom(other.initialSwitchStates_); - _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: { - initialSwitchStates_.AddEntriesFrom(input, _map_initialSwitchStates_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: { - initialSwitchStates_.AddEntriesFrom(ref input, _map_initialSwitchStates_codec); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SwitchDescription : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwitchDescription()); - 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::Mpf.Vpe.PlatformReflection.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 SwitchDescription() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SwitchDescription(SwitchDescription other) : this() { - name_ = other.name_; - hardwareNumber_ = other.hardwareNumber_; - switchType_ = other.switchType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SwitchDescription Clone() { - return new SwitchDescription(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_number" field. - public const int HardwareNumberFieldNumber = 2; - private string hardwareNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HardwareNumber { - get { return hardwareNumber_; } - set { - hardwareNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "switch_type" field. - public const int SwitchTypeFieldNumber = 3; - private string switchType_ = ""; - /// - /// NO or NC - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SwitchType { - get { return switchType_; } - set { - switchType_ = 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 SwitchDescription); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SwitchDescription other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (HardwareNumber != other.HardwareNumber) return false; - if (SwitchType != other.SwitchType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (HardwareNumber.Length != 0) hash ^= HardwareNumber.GetHashCode(); - if (SwitchType.Length != 0) hash ^= SwitchType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HardwareNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HardwareNumber); - } - if (SwitchType.Length != 0) { - output.WriteRawTag(26); - output.WriteString(SwitchType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HardwareNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HardwareNumber); - } - if (SwitchType.Length != 0) { - output.WriteRawTag(26); - output.WriteString(SwitchType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HardwareNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareNumber); - } - if (SwitchType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SwitchType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SwitchDescription other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.HardwareNumber.Length != 0) { - HardwareNumber = other.HardwareNumber; - } - if (other.SwitchType.Length != 0) { - SwitchType = other.SwitchType; - } - _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: { - Name = input.ReadString(); - break; - } - case 18: { - HardwareNumber = input.ReadString(); - break; - } - case 26: { - SwitchType = 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: { - Name = input.ReadString(); - break; - } - case 18: { - HardwareNumber = input.ReadString(); - break; - } - case 26: { - SwitchType = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class CoilDescription : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CoilDescription()); - 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::Mpf.Vpe.PlatformReflection.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 CoilDescription() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CoilDescription(CoilDescription other) : this() { - name_ = other.name_; - hardwareNumber_ = other.hardwareNumber_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CoilDescription Clone() { - return new CoilDescription(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_number" field. - public const int HardwareNumberFieldNumber = 2; - private string hardwareNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HardwareNumber { - get { return hardwareNumber_; } - set { - hardwareNumber_ = 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 CoilDescription); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CoilDescription other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (HardwareNumber != other.HardwareNumber) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (HardwareNumber.Length != 0) hash ^= HardwareNumber.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HardwareNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HardwareNumber); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HardwareNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HardwareNumber); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HardwareNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareNumber); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CoilDescription other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.HardwareNumber.Length != 0) { - HardwareNumber = other.HardwareNumber; - } - _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: { - Name = input.ReadString(); - break; - } - case 18: { - HardwareNumber = 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: { - Name = input.ReadString(); - break; - } - case 18: { - HardwareNumber = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LightDescription : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LightDescription()); - 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::Mpf.Vpe.PlatformReflection.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 LightDescription() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LightDescription(LightDescription other) : this() { - name_ = other.name_; - hardwareChannelNumber_ = other.hardwareChannelNumber_; - hardwareChannelColor_ = other.hardwareChannelColor_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LightDescription Clone() { - return new LightDescription(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_channel_number" field. - public const int HardwareChannelNumberFieldNumber = 2; - private string hardwareChannelNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HardwareChannelNumber { - get { return hardwareChannelNumber_; } - set { - hardwareChannelNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_channel_color" field. - public const int HardwareChannelColorFieldNumber = 3; - private string hardwareChannelColor_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HardwareChannelColor { - get { return hardwareChannelColor_; } - set { - hardwareChannelColor_ = 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 LightDescription); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LightDescription other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (HardwareChannelNumber != other.HardwareChannelNumber) return false; - if (HardwareChannelColor != other.HardwareChannelColor) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (HardwareChannelNumber.Length != 0) hash ^= HardwareChannelNumber.GetHashCode(); - if (HardwareChannelColor.Length != 0) hash ^= HardwareChannelColor.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HardwareChannelNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HardwareChannelNumber); - } - if (HardwareChannelColor.Length != 0) { - output.WriteRawTag(26); - output.WriteString(HardwareChannelColor); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HardwareChannelNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HardwareChannelNumber); - } - if (HardwareChannelColor.Length != 0) { - output.WriteRawTag(26); - output.WriteString(HardwareChannelColor); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HardwareChannelNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareChannelNumber); - } - if (HardwareChannelColor.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareChannelColor); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LightDescription other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.HardwareChannelNumber.Length != 0) { - HardwareChannelNumber = other.HardwareChannelNumber; - } - if (other.HardwareChannelColor.Length != 0) { - HardwareChannelColor = other.HardwareChannelColor; - } - _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: { - Name = input.ReadString(); - break; - } - case 18: { - HardwareChannelNumber = input.ReadString(); - break; - } - case 26: { - HardwareChannelColor = 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: { - Name = input.ReadString(); - break; - } - case 18: { - HardwareChannelNumber = input.ReadString(); - break; - } - case 26: { - HardwareChannelColor = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class DmdDescription : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DmdDescription()); - 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::Mpf.Vpe.PlatformReflection.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 DmdDescription() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DmdDescription(DmdDescription other) : this() { - name_ = other.name_; - colorMapping_ = other.colorMapping_; - width_ = other.width_; - height_ = other.height_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DmdDescription Clone() { - return new DmdDescription(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "color_mapping" field. - public const int ColorMappingFieldNumber = 2; - private global::Mpf.Vpe.DmdDescription.Types.ColorMapping colorMapping_ = global::Mpf.Vpe.DmdDescription.Types.ColorMapping.Bw; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.DmdDescription.Types.ColorMapping ColorMapping { - get { return colorMapping_; } - set { - colorMapping_ = value; - } - } - - /// Field number for the "width" field. - public const int WidthFieldNumber = 3; - private uint width_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Width { - get { return width_; } - set { - width_ = value; - } - } - - /// Field number for the "height" field. - public const int HeightFieldNumber = 4; - private uint height_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Height { - get { return height_; } - set { - height_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DmdDescription); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DmdDescription other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (ColorMapping != other.ColorMapping) return false; - if (Width != other.Width) return false; - if (Height != other.Height) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (ColorMapping != global::Mpf.Vpe.DmdDescription.Types.ColorMapping.Bw) hash ^= ColorMapping.GetHashCode(); - if (Width != 0) hash ^= Width.GetHashCode(); - if (Height != 0) hash ^= Height.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (ColorMapping != global::Mpf.Vpe.DmdDescription.Types.ColorMapping.Bw) { - output.WriteRawTag(16); - output.WriteEnum((int) ColorMapping); - } - if (Width != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Width); - } - if (Height != 0) { - output.WriteRawTag(32); - output.WriteUInt32(Height); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (ColorMapping != global::Mpf.Vpe.DmdDescription.Types.ColorMapping.Bw) { - output.WriteRawTag(16); - output.WriteEnum((int) ColorMapping); - } - if (Width != 0) { - output.WriteRawTag(24); - output.WriteUInt32(Width); - } - if (Height != 0) { - output.WriteRawTag(32); - output.WriteUInt32(Height); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (ColorMapping != global::Mpf.Vpe.DmdDescription.Types.ColorMapping.Bw) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ColorMapping); - } - if (Width != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); - } - if (Height != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DmdDescription other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.ColorMapping != global::Mpf.Vpe.DmdDescription.Types.ColorMapping.Bw) { - ColorMapping = other.ColorMapping; - } - if (other.Width != 0) { - Width = other.Width; - } - if (other.Height != 0) { - Height = other.Height; - } - _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: { - Name = input.ReadString(); - break; - } - case 16: { - ColorMapping = (global::Mpf.Vpe.DmdDescription.Types.ColorMapping) input.ReadEnum(); - break; - } - case 24: { - Width = input.ReadUInt32(); - break; - } - case 32: { - Height = 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 10: { - Name = input.ReadString(); - break; - } - case 16: { - ColorMapping = (global::Mpf.Vpe.DmdDescription.Types.ColorMapping) input.ReadEnum(); - break; - } - case 24: { - Width = input.ReadUInt32(); - break; - } - case 32: { - Height = input.ReadUInt32(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DmdDescription message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum ColorMapping { - [pbr::OriginalName("BW")] Bw = 0, - [pbr::OriginalName("RGB")] Rgb = 1, - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SegmentDisplayDescription : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SegmentDisplayDescription()); - 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::Mpf.Vpe.PlatformReflection.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 SegmentDisplayDescription() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SegmentDisplayDescription(SegmentDisplayDescription other) : this() { - name_ = other.name_; - width_ = other.width_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SegmentDisplayDescription Clone() { - return new SegmentDisplayDescription(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "width" field. - public const int WidthFieldNumber = 2; - private uint width_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Width { - get { return width_; } - set { - width_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SegmentDisplayDescription); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SegmentDisplayDescription other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Width != other.Width) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Width != 0) hash ^= Width.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Width != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Width); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Width != 0) { - output.WriteRawTag(16); - output.WriteUInt32(Width); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Width != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SegmentDisplayDescription other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Width != 0) { - Width = other.Width; - } - _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: { - Name = input.ReadString(); - break; - } - case 16: { - Width = 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 10: { - Name = input.ReadString(); - break; - } - case 16: { - Width = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class MachineDescription : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MachineDescription()); - 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::Mpf.Vpe.PlatformReflection.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 MachineDescription() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MachineDescription(MachineDescription other) : this() { - switches_ = other.switches_.Clone(); - coils_ = other.coils_.Clone(); - lights_ = other.lights_.Clone(); - dmds_ = other.dmds_.Clone(); - segmentDisplays_ = other.segmentDisplays_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MachineDescription Clone() { - return new MachineDescription(this); - } - - /// Field number for the "switches" field. - public const int SwitchesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_switches_codec - = pb::FieldCodec.ForMessage(10, global::Mpf.Vpe.SwitchDescription.Parser); - private readonly pbc::RepeatedField switches_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Switches { - get { return switches_; } - } - - /// Field number for the "coils" field. - public const int CoilsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_coils_codec - = pb::FieldCodec.ForMessage(18, global::Mpf.Vpe.CoilDescription.Parser); - private readonly pbc::RepeatedField coils_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Coils { - get { return coils_; } - } - - /// Field number for the "lights" field. - public const int LightsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_lights_codec - = pb::FieldCodec.ForMessage(26, global::Mpf.Vpe.LightDescription.Parser); - private readonly pbc::RepeatedField lights_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Lights { - get { return lights_; } - } - - /// Field number for the "dmds" field. - public const int DmdsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_dmds_codec - = pb::FieldCodec.ForMessage(34, global::Mpf.Vpe.DmdDescription.Parser); - private readonly pbc::RepeatedField dmds_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Dmds { - get { return dmds_; } - } - - /// Field number for the "segment_displays" field. - public const int SegmentDisplaysFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_segmentDisplays_codec - = pb::FieldCodec.ForMessage(42, global::Mpf.Vpe.SegmentDisplayDescription.Parser); - private readonly pbc::RepeatedField segmentDisplays_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SegmentDisplays { - get { return segmentDisplays_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MachineDescription); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MachineDescription other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!switches_.Equals(other.switches_)) return false; - if(!coils_.Equals(other.coils_)) return false; - if(!lights_.Equals(other.lights_)) return false; - if(!dmds_.Equals(other.dmds_)) return false; - if(!segmentDisplays_.Equals(other.segmentDisplays_)) 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 ^= switches_.GetHashCode(); - hash ^= coils_.GetHashCode(); - hash ^= lights_.GetHashCode(); - hash ^= dmds_.GetHashCode(); - hash ^= segmentDisplays_.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 - switches_.WriteTo(output, _repeated_switches_codec); - coils_.WriteTo(output, _repeated_coils_codec); - lights_.WriteTo(output, _repeated_lights_codec); - dmds_.WriteTo(output, _repeated_dmds_codec); - segmentDisplays_.WriteTo(output, _repeated_segmentDisplays_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) { - switches_.WriteTo(ref output, _repeated_switches_codec); - coils_.WriteTo(ref output, _repeated_coils_codec); - lights_.WriteTo(ref output, _repeated_lights_codec); - dmds_.WriteTo(ref output, _repeated_dmds_codec); - segmentDisplays_.WriteTo(ref output, _repeated_segmentDisplays_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 += switches_.CalculateSize(_repeated_switches_codec); - size += coils_.CalculateSize(_repeated_coils_codec); - size += lights_.CalculateSize(_repeated_lights_codec); - size += dmds_.CalculateSize(_repeated_dmds_codec); - size += segmentDisplays_.CalculateSize(_repeated_segmentDisplays_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MachineDescription other) { - if (other == null) { - return; - } - switches_.Add(other.switches_); - coils_.Add(other.coils_); - lights_.Add(other.lights_); - dmds_.Add(other.dmds_); - segmentDisplays_.Add(other.segmentDisplays_); - _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: { - switches_.AddEntriesFrom(input, _repeated_switches_codec); - break; - } - case 18: { - coils_.AddEntriesFrom(input, _repeated_coils_codec); - break; - } - case 26: { - lights_.AddEntriesFrom(input, _repeated_lights_codec); - break; - } - case 34: { - dmds_.AddEntriesFrom(input, _repeated_dmds_codec); - break; - } - case 42: { - segmentDisplays_.AddEntriesFrom(input, _repeated_segmentDisplays_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: { - switches_.AddEntriesFrom(ref input, _repeated_switches_codec); - break; - } - case 18: { - coils_.AddEntriesFrom(ref input, _repeated_coils_codec); - break; - } - case 26: { - lights_.AddEntriesFrom(ref input, _repeated_lights_codec); - break; - } - case 34: { - dmds_.AddEntriesFrom(ref input, _repeated_dmds_codec); - break; - } - case 42: { - segmentDisplays_.AddEntriesFrom(ref input, _repeated_segmentDisplays_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Platform streams switch changes to MPF - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SwitchChanges : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SwitchChanges()); - 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::Mpf.Vpe.PlatformReflection.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 SwitchChanges() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SwitchChanges(SwitchChanges other) : this() { - switchNumber_ = other.switchNumber_; - switchState_ = other.switchState_; - changeTime_ = other.changeTime_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SwitchChanges Clone() { - return new SwitchChanges(this); - } - - /// Field number for the "switch_number" field. - public const int SwitchNumberFieldNumber = 1; - private string switchNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SwitchNumber { - get { return switchNumber_; } - set { - switchNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "switch_state" field. - public const int SwitchStateFieldNumber = 2; - private bool switchState_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SwitchState { - get { return switchState_; } - set { - switchState_ = value; - } - } - - /// Field number for the "change_time" field. - public const int ChangeTimeFieldNumber = 3; - private ulong changeTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong ChangeTime { - get { return changeTime_; } - set { - changeTime_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SwitchChanges); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SwitchChanges other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SwitchNumber != other.SwitchNumber) return false; - if (SwitchState != other.SwitchState) return false; - if (ChangeTime != other.ChangeTime) 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 (SwitchNumber.Length != 0) hash ^= SwitchNumber.GetHashCode(); - if (SwitchState != false) hash ^= SwitchState.GetHashCode(); - if (ChangeTime != 0UL) hash ^= ChangeTime.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 (SwitchNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SwitchNumber); - } - if (SwitchState != false) { - output.WriteRawTag(16); - output.WriteBool(SwitchState); - } - if (ChangeTime != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(ChangeTime); - } - 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 (SwitchNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SwitchNumber); - } - if (SwitchState != false) { - output.WriteRawTag(16); - output.WriteBool(SwitchState); - } - if (ChangeTime != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(ChangeTime); - } - 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 (SwitchNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SwitchNumber); - } - if (SwitchState != false) { - size += 1 + 1; - } - if (ChangeTime != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ChangeTime); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SwitchChanges other) { - if (other == null) { - return; - } - if (other.SwitchNumber.Length != 0) { - SwitchNumber = other.SwitchNumber; - } - if (other.SwitchState != false) { - SwitchState = other.SwitchState; - } - if (other.ChangeTime != 0UL) { - ChangeTime = other.ChangeTime; - } - _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: { - SwitchNumber = input.ReadString(); - break; - } - case 16: { - SwitchState = input.ReadBool(); - break; - } - case 24: { - ChangeTime = 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: { - SwitchNumber = input.ReadString(); - break; - } - case 16: { - SwitchState = input.ReadBool(); - break; - } - case 24: { - ChangeTime = input.ReadUInt64(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetDmdFrameRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetDmdFrameRequest()); - 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::Mpf.Vpe.PlatformReflection.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 SetDmdFrameRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetDmdFrameRequest(SetDmdFrameRequest other) : this() { - name_ = other.name_; - frame_ = other.frame_; - brightness_ = other.brightness_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetDmdFrameRequest Clone() { - return new SetDmdFrameRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "frame" field. - public const int FrameFieldNumber = 2; - private pb::ByteString frame_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Frame { - get { return frame_; } - set { - frame_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "brightness" field. - public const int BrightnessFieldNumber = 3; - private float brightness_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Brightness { - get { return brightness_; } - set { - brightness_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SetDmdFrameRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetDmdFrameRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Frame != other.Frame) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Brightness, other.Brightness)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Frame.Length != 0) hash ^= Frame.GetHashCode(); - if (Brightness != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Brightness); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Frame.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Frame); - } - if (Brightness != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Brightness); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Frame.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Frame); - } - if (Brightness != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Brightness); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Frame.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Frame); - } - if (Brightness != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetDmdFrameRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Frame.Length != 0) { - Frame = other.Frame; - } - if (other.Brightness != 0F) { - Brightness = other.Brightness; - } - _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: { - Name = input.ReadString(); - break; - } - case 18: { - Frame = input.ReadBytes(); - break; - } - case 29: { - Brightness = input.ReadFloat(); - 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: { - Name = input.ReadString(); - break; - } - case 18: { - Frame = input.ReadBytes(); - break; - } - case 29: { - Brightness = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetSegmentDisplayFrameRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSegmentDisplayFrameRequest()); - 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::Mpf.Vpe.PlatformReflection.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 SetSegmentDisplayFrameRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetSegmentDisplayFrameRequest(SetSegmentDisplayFrameRequest other) : this() { - name_ = other.name_; - frame_ = other.frame_; - colors_ = other.colors_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetSegmentDisplayFrameRequest Clone() { - return new SetSegmentDisplayFrameRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "frame" field. - public const int FrameFieldNumber = 2; - private pb::ByteString frame_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Frame { - get { return frame_; } - set { - frame_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "colors" field. - public const int ColorsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_colors_codec - = pb::FieldCodec.ForMessage(26, global::Mpf.Vpe.SetSegmentDisplayFrameRequest.Types.SegmentDisplayColor.Parser); - private readonly pbc::RepeatedField colors_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Colors { - get { return colors_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SetSegmentDisplayFrameRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetSegmentDisplayFrameRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Frame != other.Frame) return false; - if(!colors_.Equals(other.colors_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Frame.Length != 0) hash ^= Frame.GetHashCode(); - hash ^= colors_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Frame.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Frame); - } - colors_.WriteTo(output, _repeated_colors_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Frame.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Frame); - } - colors_.WriteTo(ref output, _repeated_colors_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Frame.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Frame); - } - size += colors_.CalculateSize(_repeated_colors_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetSegmentDisplayFrameRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Frame.Length != 0) { - Frame = other.Frame; - } - colors_.Add(other.colors_); - _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: { - Name = input.ReadString(); - break; - } - case 18: { - Frame = input.ReadBytes(); - break; - } - case 26: { - colors_.AddEntriesFrom(input, _repeated_colors_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: { - Name = input.ReadString(); - break; - } - case 18: { - Frame = input.ReadBytes(); - break; - } - case 26: { - colors_.AddEntriesFrom(ref input, _repeated_colors_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the SetSegmentDisplayFrameRequest message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SegmentDisplayColor : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SegmentDisplayColor()); - 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::Mpf.Vpe.SetSegmentDisplayFrameRequest.Descriptor.NestedTypes[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 SegmentDisplayColor() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SegmentDisplayColor(SegmentDisplayColor other) : this() { - r_ = other.r_; - g_ = other.g_; - b_ = other.b_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SegmentDisplayColor Clone() { - return new SegmentDisplayColor(this); - } - - /// Field number for the "r" field. - public const int RFieldNumber = 1; - private float r_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float R { - get { return r_; } - set { - r_ = value; - } - } - - /// Field number for the "g" field. - public const int GFieldNumber = 2; - private float g_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float G { - get { return g_; } - set { - g_ = value; - } - } - - /// Field number for the "b" field. - public const int BFieldNumber = 3; - private float b_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float B { - get { return b_; } - set { - b_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SegmentDisplayColor); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SegmentDisplayColor other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) 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 (R != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); - if (G != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); - if (B != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); - 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 (R != 0F) { - output.WriteRawTag(13); - output.WriteFloat(R); - } - if (G != 0F) { - output.WriteRawTag(21); - output.WriteFloat(G); - } - if (B != 0F) { - output.WriteRawTag(29); - output.WriteFloat(B); - } - 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 (R != 0F) { - output.WriteRawTag(13); - output.WriteFloat(R); - } - if (G != 0F) { - output.WriteRawTag(21); - output.WriteFloat(G); - } - if (B != 0F) { - output.WriteRawTag(29); - output.WriteFloat(B); - } - 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 (R != 0F) { - size += 1 + 4; - } - if (G != 0F) { - size += 1 + 4; - } - if (B != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SegmentDisplayColor other) { - if (other == null) { - return; - } - if (other.R != 0F) { - R = other.R; - } - if (other.G != 0F) { - G = other.G; - } - if (other.B != 0F) { - B = other.B; - } - _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 13: { - R = input.ReadFloat(); - break; - } - case 21: { - G = input.ReadFloat(); - break; - } - case 29: { - B = input.ReadFloat(); - 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 13: { - R = input.ReadFloat(); - break; - } - case 21: { - G = input.ReadFloat(); - break; - } - case 29: { - B = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Commands : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Commands()); - 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::Mpf.Vpe.PlatformReflection.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 Commands() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Commands(Commands other) : this() { - switch (other.CommandCase) { - case CommandOneofCase.FadeLight: - FadeLight = other.FadeLight.Clone(); - break; - case CommandOneofCase.PulseCoil: - PulseCoil = other.PulseCoil.Clone(); - break; - case CommandOneofCase.EnableCoil: - EnableCoil = other.EnableCoil.Clone(); - break; - case CommandOneofCase.DisableCoil: - DisableCoil = other.DisableCoil.Clone(); - break; - case CommandOneofCase.ConfigureHardwareRule: - ConfigureHardwareRule = other.ConfigureHardwareRule.Clone(); - break; - case CommandOneofCase.RemoveHardwareRule: - RemoveHardwareRule = other.RemoveHardwareRule.Clone(); - break; - case CommandOneofCase.DmdFrameRequest: - DmdFrameRequest = other.DmdFrameRequest.Clone(); - break; - case CommandOneofCase.SegmentDisplayFrameRequest: - SegmentDisplayFrameRequest = other.SegmentDisplayFrameRequest.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Commands Clone() { - return new Commands(this); - } - - /// Field number for the "fade_light" field. - public const int FadeLightFieldNumber = 1; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.FadeLightRequest FadeLight { - get { return commandCase_ == CommandOneofCase.FadeLight ? (global::Mpf.Vpe.FadeLightRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.FadeLight; - } - } - - /// Field number for the "pulse_coil" field. - public const int PulseCoilFieldNumber = 2; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.PulseCoilRequest PulseCoil { - get { return commandCase_ == CommandOneofCase.PulseCoil ? (global::Mpf.Vpe.PulseCoilRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.PulseCoil; - } - } - - /// Field number for the "enable_coil" field. - public const int EnableCoilFieldNumber = 3; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.EnableCoilRequest EnableCoil { - get { return commandCase_ == CommandOneofCase.EnableCoil ? (global::Mpf.Vpe.EnableCoilRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.EnableCoil; - } - } - - /// Field number for the "disable_coil" field. - public const int DisableCoilFieldNumber = 4; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.DisableCoilRequest DisableCoil { - get { return commandCase_ == CommandOneofCase.DisableCoil ? (global::Mpf.Vpe.DisableCoilRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.DisableCoil; - } - } - - /// Field number for the "configure_hardware_rule" field. - public const int ConfigureHardwareRuleFieldNumber = 5; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.ConfigureHardwareRuleRequest ConfigureHardwareRule { - get { return commandCase_ == CommandOneofCase.ConfigureHardwareRule ? (global::Mpf.Vpe.ConfigureHardwareRuleRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.ConfigureHardwareRule; - } - } - - /// Field number for the "remove_hardware_rule" field. - public const int RemoveHardwareRuleFieldNumber = 6; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.RemoveHardwareRuleRequest RemoveHardwareRule { - get { return commandCase_ == CommandOneofCase.RemoveHardwareRule ? (global::Mpf.Vpe.RemoveHardwareRuleRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.RemoveHardwareRule; - } - } - - /// Field number for the "dmd_frame_request" field. - public const int DmdFrameRequestFieldNumber = 7; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.SetDmdFrameRequest DmdFrameRequest { - get { return commandCase_ == CommandOneofCase.DmdFrameRequest ? (global::Mpf.Vpe.SetDmdFrameRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.DmdFrameRequest; - } - } - - /// Field number for the "segment_display_frame_request" field. - public const int SegmentDisplayFrameRequestFieldNumber = 8; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Mpf.Vpe.SetSegmentDisplayFrameRequest SegmentDisplayFrameRequest { - get { return commandCase_ == CommandOneofCase.SegmentDisplayFrameRequest ? (global::Mpf.Vpe.SetSegmentDisplayFrameRequest) command_ : null; } - set { - command_ = value; - commandCase_ = value == null ? CommandOneofCase.None : CommandOneofCase.SegmentDisplayFrameRequest; - } - } - - private object command_; - /// Enum of possible cases for the "command" oneof. - public enum CommandOneofCase { - None = 0, - FadeLight = 1, - PulseCoil = 2, - EnableCoil = 3, - DisableCoil = 4, - ConfigureHardwareRule = 5, - RemoveHardwareRule = 6, - DmdFrameRequest = 7, - SegmentDisplayFrameRequest = 8, - } - private CommandOneofCase commandCase_ = CommandOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CommandOneofCase CommandCase { - get { return commandCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCommand() { - commandCase_ = CommandOneofCase.None; - command_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Commands); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Commands other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(FadeLight, other.FadeLight)) return false; - if (!object.Equals(PulseCoil, other.PulseCoil)) return false; - if (!object.Equals(EnableCoil, other.EnableCoil)) return false; - if (!object.Equals(DisableCoil, other.DisableCoil)) return false; - if (!object.Equals(ConfigureHardwareRule, other.ConfigureHardwareRule)) return false; - if (!object.Equals(RemoveHardwareRule, other.RemoveHardwareRule)) return false; - if (!object.Equals(DmdFrameRequest, other.DmdFrameRequest)) return false; - if (!object.Equals(SegmentDisplayFrameRequest, other.SegmentDisplayFrameRequest)) return false; - if (CommandCase != other.CommandCase) 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 (commandCase_ == CommandOneofCase.FadeLight) hash ^= FadeLight.GetHashCode(); - if (commandCase_ == CommandOneofCase.PulseCoil) hash ^= PulseCoil.GetHashCode(); - if (commandCase_ == CommandOneofCase.EnableCoil) hash ^= EnableCoil.GetHashCode(); - if (commandCase_ == CommandOneofCase.DisableCoil) hash ^= DisableCoil.GetHashCode(); - if (commandCase_ == CommandOneofCase.ConfigureHardwareRule) hash ^= ConfigureHardwareRule.GetHashCode(); - if (commandCase_ == CommandOneofCase.RemoveHardwareRule) hash ^= RemoveHardwareRule.GetHashCode(); - if (commandCase_ == CommandOneofCase.DmdFrameRequest) hash ^= DmdFrameRequest.GetHashCode(); - if (commandCase_ == CommandOneofCase.SegmentDisplayFrameRequest) hash ^= SegmentDisplayFrameRequest.GetHashCode(); - hash ^= (int) commandCase_; - 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 (commandCase_ == CommandOneofCase.FadeLight) { - output.WriteRawTag(10); - output.WriteMessage(FadeLight); - } - if (commandCase_ == CommandOneofCase.PulseCoil) { - output.WriteRawTag(18); - output.WriteMessage(PulseCoil); - } - if (commandCase_ == CommandOneofCase.EnableCoil) { - output.WriteRawTag(26); - output.WriteMessage(EnableCoil); - } - if (commandCase_ == CommandOneofCase.DisableCoil) { - output.WriteRawTag(34); - output.WriteMessage(DisableCoil); - } - if (commandCase_ == CommandOneofCase.ConfigureHardwareRule) { - output.WriteRawTag(42); - output.WriteMessage(ConfigureHardwareRule); - } - if (commandCase_ == CommandOneofCase.RemoveHardwareRule) { - output.WriteRawTag(50); - output.WriteMessage(RemoveHardwareRule); - } - if (commandCase_ == CommandOneofCase.DmdFrameRequest) { - output.WriteRawTag(58); - output.WriteMessage(DmdFrameRequest); - } - if (commandCase_ == CommandOneofCase.SegmentDisplayFrameRequest) { - output.WriteRawTag(66); - output.WriteMessage(SegmentDisplayFrameRequest); - } - 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 (commandCase_ == CommandOneofCase.FadeLight) { - output.WriteRawTag(10); - output.WriteMessage(FadeLight); - } - if (commandCase_ == CommandOneofCase.PulseCoil) { - output.WriteRawTag(18); - output.WriteMessage(PulseCoil); - } - if (commandCase_ == CommandOneofCase.EnableCoil) { - output.WriteRawTag(26); - output.WriteMessage(EnableCoil); - } - if (commandCase_ == CommandOneofCase.DisableCoil) { - output.WriteRawTag(34); - output.WriteMessage(DisableCoil); - } - if (commandCase_ == CommandOneofCase.ConfigureHardwareRule) { - output.WriteRawTag(42); - output.WriteMessage(ConfigureHardwareRule); - } - if (commandCase_ == CommandOneofCase.RemoveHardwareRule) { - output.WriteRawTag(50); - output.WriteMessage(RemoveHardwareRule); - } - if (commandCase_ == CommandOneofCase.DmdFrameRequest) { - output.WriteRawTag(58); - output.WriteMessage(DmdFrameRequest); - } - if (commandCase_ == CommandOneofCase.SegmentDisplayFrameRequest) { - output.WriteRawTag(66); - output.WriteMessage(SegmentDisplayFrameRequest); - } - 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 (commandCase_ == CommandOneofCase.FadeLight) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FadeLight); - } - if (commandCase_ == CommandOneofCase.PulseCoil) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PulseCoil); - } - if (commandCase_ == CommandOneofCase.EnableCoil) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnableCoil); - } - if (commandCase_ == CommandOneofCase.DisableCoil) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DisableCoil); - } - if (commandCase_ == CommandOneofCase.ConfigureHardwareRule) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConfigureHardwareRule); - } - if (commandCase_ == CommandOneofCase.RemoveHardwareRule) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoveHardwareRule); - } - if (commandCase_ == CommandOneofCase.DmdFrameRequest) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DmdFrameRequest); - } - if (commandCase_ == CommandOneofCase.SegmentDisplayFrameRequest) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SegmentDisplayFrameRequest); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Commands other) { - if (other == null) { - return; - } - switch (other.CommandCase) { - case CommandOneofCase.FadeLight: - if (FadeLight == null) { - FadeLight = new global::Mpf.Vpe.FadeLightRequest(); - } - FadeLight.MergeFrom(other.FadeLight); - break; - case CommandOneofCase.PulseCoil: - if (PulseCoil == null) { - PulseCoil = new global::Mpf.Vpe.PulseCoilRequest(); - } - PulseCoil.MergeFrom(other.PulseCoil); - break; - case CommandOneofCase.EnableCoil: - if (EnableCoil == null) { - EnableCoil = new global::Mpf.Vpe.EnableCoilRequest(); - } - EnableCoil.MergeFrom(other.EnableCoil); - break; - case CommandOneofCase.DisableCoil: - if (DisableCoil == null) { - DisableCoil = new global::Mpf.Vpe.DisableCoilRequest(); - } - DisableCoil.MergeFrom(other.DisableCoil); - break; - case CommandOneofCase.ConfigureHardwareRule: - if (ConfigureHardwareRule == null) { - ConfigureHardwareRule = new global::Mpf.Vpe.ConfigureHardwareRuleRequest(); - } - ConfigureHardwareRule.MergeFrom(other.ConfigureHardwareRule); - break; - case CommandOneofCase.RemoveHardwareRule: - if (RemoveHardwareRule == null) { - RemoveHardwareRule = new global::Mpf.Vpe.RemoveHardwareRuleRequest(); - } - RemoveHardwareRule.MergeFrom(other.RemoveHardwareRule); - break; - case CommandOneofCase.DmdFrameRequest: - if (DmdFrameRequest == null) { - DmdFrameRequest = new global::Mpf.Vpe.SetDmdFrameRequest(); - } - DmdFrameRequest.MergeFrom(other.DmdFrameRequest); - break; - case CommandOneofCase.SegmentDisplayFrameRequest: - if (SegmentDisplayFrameRequest == null) { - SegmentDisplayFrameRequest = new global::Mpf.Vpe.SetSegmentDisplayFrameRequest(); - } - SegmentDisplayFrameRequest.MergeFrom(other.SegmentDisplayFrameRequest); - 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: { - global::Mpf.Vpe.FadeLightRequest subBuilder = new global::Mpf.Vpe.FadeLightRequest(); - if (commandCase_ == CommandOneofCase.FadeLight) { - subBuilder.MergeFrom(FadeLight); - } - input.ReadMessage(subBuilder); - FadeLight = subBuilder; - break; - } - case 18: { - global::Mpf.Vpe.PulseCoilRequest subBuilder = new global::Mpf.Vpe.PulseCoilRequest(); - if (commandCase_ == CommandOneofCase.PulseCoil) { - subBuilder.MergeFrom(PulseCoil); - } - input.ReadMessage(subBuilder); - PulseCoil = subBuilder; - break; - } - case 26: { - global::Mpf.Vpe.EnableCoilRequest subBuilder = new global::Mpf.Vpe.EnableCoilRequest(); - if (commandCase_ == CommandOneofCase.EnableCoil) { - subBuilder.MergeFrom(EnableCoil); - } - input.ReadMessage(subBuilder); - EnableCoil = subBuilder; - break; - } - case 34: { - global::Mpf.Vpe.DisableCoilRequest subBuilder = new global::Mpf.Vpe.DisableCoilRequest(); - if (commandCase_ == CommandOneofCase.DisableCoil) { - subBuilder.MergeFrom(DisableCoil); - } - input.ReadMessage(subBuilder); - DisableCoil = subBuilder; - break; - } - case 42: { - global::Mpf.Vpe.ConfigureHardwareRuleRequest subBuilder = new global::Mpf.Vpe.ConfigureHardwareRuleRequest(); - if (commandCase_ == CommandOneofCase.ConfigureHardwareRule) { - subBuilder.MergeFrom(ConfigureHardwareRule); - } - input.ReadMessage(subBuilder); - ConfigureHardwareRule = subBuilder; - break; - } - case 50: { - global::Mpf.Vpe.RemoveHardwareRuleRequest subBuilder = new global::Mpf.Vpe.RemoveHardwareRuleRequest(); - if (commandCase_ == CommandOneofCase.RemoveHardwareRule) { - subBuilder.MergeFrom(RemoveHardwareRule); - } - input.ReadMessage(subBuilder); - RemoveHardwareRule = subBuilder; - break; - } - case 58: { - global::Mpf.Vpe.SetDmdFrameRequest subBuilder = new global::Mpf.Vpe.SetDmdFrameRequest(); - if (commandCase_ == CommandOneofCase.DmdFrameRequest) { - subBuilder.MergeFrom(DmdFrameRequest); - } - input.ReadMessage(subBuilder); - DmdFrameRequest = subBuilder; - break; - } - case 66: { - global::Mpf.Vpe.SetSegmentDisplayFrameRequest subBuilder = new global::Mpf.Vpe.SetSegmentDisplayFrameRequest(); - if (commandCase_ == CommandOneofCase.SegmentDisplayFrameRequest) { - subBuilder.MergeFrom(SegmentDisplayFrameRequest); - } - input.ReadMessage(subBuilder); - SegmentDisplayFrameRequest = 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: { - global::Mpf.Vpe.FadeLightRequest subBuilder = new global::Mpf.Vpe.FadeLightRequest(); - if (commandCase_ == CommandOneofCase.FadeLight) { - subBuilder.MergeFrom(FadeLight); - } - input.ReadMessage(subBuilder); - FadeLight = subBuilder; - break; - } - case 18: { - global::Mpf.Vpe.PulseCoilRequest subBuilder = new global::Mpf.Vpe.PulseCoilRequest(); - if (commandCase_ == CommandOneofCase.PulseCoil) { - subBuilder.MergeFrom(PulseCoil); - } - input.ReadMessage(subBuilder); - PulseCoil = subBuilder; - break; - } - case 26: { - global::Mpf.Vpe.EnableCoilRequest subBuilder = new global::Mpf.Vpe.EnableCoilRequest(); - if (commandCase_ == CommandOneofCase.EnableCoil) { - subBuilder.MergeFrom(EnableCoil); - } - input.ReadMessage(subBuilder); - EnableCoil = subBuilder; - break; - } - case 34: { - global::Mpf.Vpe.DisableCoilRequest subBuilder = new global::Mpf.Vpe.DisableCoilRequest(); - if (commandCase_ == CommandOneofCase.DisableCoil) { - subBuilder.MergeFrom(DisableCoil); - } - input.ReadMessage(subBuilder); - DisableCoil = subBuilder; - break; - } - case 42: { - global::Mpf.Vpe.ConfigureHardwareRuleRequest subBuilder = new global::Mpf.Vpe.ConfigureHardwareRuleRequest(); - if (commandCase_ == CommandOneofCase.ConfigureHardwareRule) { - subBuilder.MergeFrom(ConfigureHardwareRule); - } - input.ReadMessage(subBuilder); - ConfigureHardwareRule = subBuilder; - break; - } - case 50: { - global::Mpf.Vpe.RemoveHardwareRuleRequest subBuilder = new global::Mpf.Vpe.RemoveHardwareRuleRequest(); - if (commandCase_ == CommandOneofCase.RemoveHardwareRule) { - subBuilder.MergeFrom(RemoveHardwareRule); - } - input.ReadMessage(subBuilder); - RemoveHardwareRule = subBuilder; - break; - } - case 58: { - global::Mpf.Vpe.SetDmdFrameRequest subBuilder = new global::Mpf.Vpe.SetDmdFrameRequest(); - if (commandCase_ == CommandOneofCase.DmdFrameRequest) { - subBuilder.MergeFrom(DmdFrameRequest); - } - input.ReadMessage(subBuilder); - DmdFrameRequest = subBuilder; - break; - } - case 66: { - global::Mpf.Vpe.SetSegmentDisplayFrameRequest subBuilder = new global::Mpf.Vpe.SetSegmentDisplayFrameRequest(); - if (commandCase_ == CommandOneofCase.SegmentDisplayFrameRequest) { - subBuilder.MergeFrom(SegmentDisplayFrameRequest); - } - input.ReadMessage(subBuilder); - SegmentDisplayFrameRequest = subBuilder; - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FadeLightRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FadeLightRequest()); - 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::Mpf.Vpe.PlatformReflection.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 FadeLightRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FadeLightRequest(FadeLightRequest other) : this() { - commonFadeMs_ = other.commonFadeMs_; - fades_ = other.fades_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FadeLightRequest Clone() { - return new FadeLightRequest(this); - } - - /// Field number for the "common_fade_ms" field. - public const int CommonFadeMsFieldNumber = 1; - private uint commonFadeMs_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint CommonFadeMs { - get { return commonFadeMs_; } - set { - commonFadeMs_ = value; - } - } - - /// Field number for the "fades" field. - public const int FadesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_fades_codec - = pb::FieldCodec.ForMessage(18, global::Mpf.Vpe.FadeLightRequest.Types.ChannelFade.Parser); - private readonly pbc::RepeatedField fades_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Fades { - get { return fades_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FadeLightRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FadeLightRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CommonFadeMs != other.CommonFadeMs) return false; - if(!fades_.Equals(other.fades_)) 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 (CommonFadeMs != 0) hash ^= CommonFadeMs.GetHashCode(); - hash ^= fades_.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 (CommonFadeMs != 0) { - output.WriteRawTag(8); - output.WriteUInt32(CommonFadeMs); - } - fades_.WriteTo(output, _repeated_fades_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CommonFadeMs != 0) { - output.WriteRawTag(8); - output.WriteUInt32(CommonFadeMs); - } - fades_.WriteTo(ref output, _repeated_fades_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CommonFadeMs != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CommonFadeMs); - } - size += fades_.CalculateSize(_repeated_fades_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FadeLightRequest other) { - if (other == null) { - return; - } - if (other.CommonFadeMs != 0) { - CommonFadeMs = other.CommonFadeMs; - } - fades_.Add(other.fades_); - _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: { - CommonFadeMs = input.ReadUInt32(); - break; - } - case 18: { - fades_.AddEntriesFrom(input, _repeated_fades_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 8: { - CommonFadeMs = input.ReadUInt32(); - break; - } - case 18: { - fades_.AddEntriesFrom(ref input, _repeated_fades_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FadeLightRequest message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// This is up to discussion - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ChannelFade : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChannelFade()); - 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::Mpf.Vpe.FadeLightRequest.Descriptor.NestedTypes[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 ChannelFade() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChannelFade(ChannelFade other) : this() { - lightNumber_ = other.lightNumber_; - targetBrightness_ = other.targetBrightness_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChannelFade Clone() { - return new ChannelFade(this); - } - - /// Field number for the "light_number" field. - public const int LightNumberFieldNumber = 1; - private string lightNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LightNumber { - get { return lightNumber_; } - set { - lightNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "target_brightness" field. - public const int TargetBrightnessFieldNumber = 2; - private float targetBrightness_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float TargetBrightness { - get { return targetBrightness_; } - set { - targetBrightness_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChannelFade); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChannelFade other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LightNumber != other.LightNumber) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TargetBrightness, other.TargetBrightness)) 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 (LightNumber.Length != 0) hash ^= LightNumber.GetHashCode(); - if (TargetBrightness != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TargetBrightness); - 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 (LightNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(LightNumber); - } - if (TargetBrightness != 0F) { - output.WriteRawTag(21); - output.WriteFloat(TargetBrightness); - } - 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 (LightNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(LightNumber); - } - if (TargetBrightness != 0F) { - output.WriteRawTag(21); - output.WriteFloat(TargetBrightness); - } - 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 (LightNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LightNumber); - } - if (TargetBrightness != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChannelFade other) { - if (other == null) { - return; - } - if (other.LightNumber.Length != 0) { - LightNumber = other.LightNumber; - } - if (other.TargetBrightness != 0F) { - TargetBrightness = other.TargetBrightness; - } - _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: { - LightNumber = input.ReadString(); - break; - } - case 21: { - TargetBrightness = input.ReadFloat(); - 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: { - LightNumber = input.ReadString(); - break; - } - case 21: { - TargetBrightness = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Pulse a coil - /// If it has been enabled before disable it afterwards - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class PulseCoilRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PulseCoilRequest()); - 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::Mpf.Vpe.PlatformReflection.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 PulseCoilRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PulseCoilRequest(PulseCoilRequest other) : this() { - coilNumber_ = other.coilNumber_; - pulseMs_ = other.pulseMs_; - pulsePower_ = other.pulsePower_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PulseCoilRequest Clone() { - return new PulseCoilRequest(this); - } - - /// Field number for the "coil_number" field. - public const int CoilNumberFieldNumber = 1; - private string coilNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CoilNumber { - get { return coilNumber_; } - set { - coilNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "pulse_ms" field. - public const int PulseMsFieldNumber = 2; - private uint pulseMs_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PulseMs { - get { return pulseMs_; } - set { - pulseMs_ = value; - } - } - - /// Field number for the "pulse_power" field. - public const int PulsePowerFieldNumber = 3; - private float pulsePower_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float PulsePower { - get { return pulsePower_; } - set { - pulsePower_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PulseCoilRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PulseCoilRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CoilNumber != other.CoilNumber) return false; - if (PulseMs != other.PulseMs) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PulsePower, other.PulsePower)) 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 (CoilNumber.Length != 0) hash ^= CoilNumber.GetHashCode(); - if (PulseMs != 0) hash ^= PulseMs.GetHashCode(); - if (PulsePower != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PulsePower); - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (PulseMs != 0) { - output.WriteRawTag(16); - output.WriteUInt32(PulseMs); - } - if (PulsePower != 0F) { - output.WriteRawTag(29); - output.WriteFloat(PulsePower); - } - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (PulseMs != 0) { - output.WriteRawTag(16); - output.WriteUInt32(PulseMs); - } - if (PulsePower != 0F) { - output.WriteRawTag(29); - output.WriteFloat(PulsePower); - } - 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 (CoilNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CoilNumber); - } - if (PulseMs != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PulseMs); - } - if (PulsePower != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PulseCoilRequest other) { - if (other == null) { - return; - } - if (other.CoilNumber.Length != 0) { - CoilNumber = other.CoilNumber; - } - if (other.PulseMs != 0) { - PulseMs = other.PulseMs; - } - if (other.PulsePower != 0F) { - PulsePower = other.PulsePower; - } - _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: { - CoilNumber = input.ReadString(); - break; - } - case 16: { - PulseMs = input.ReadUInt32(); - break; - } - case 29: { - PulsePower = input.ReadFloat(); - 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: { - CoilNumber = input.ReadString(); - break; - } - case 16: { - PulseMs = input.ReadUInt32(); - break; - } - case 29: { - PulsePower = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - /// - /// Enable a coil - /// Not sure if hold_power is simulated in VPE or if we should remove it - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class EnableCoilRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnableCoilRequest()); - 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::Mpf.Vpe.PlatformReflection.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 EnableCoilRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnableCoilRequest(EnableCoilRequest other) : this() { - coilNumber_ = other.coilNumber_; - pulseMs_ = other.pulseMs_; - pulsePower_ = other.pulsePower_; - holdPower_ = other.holdPower_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnableCoilRequest Clone() { - return new EnableCoilRequest(this); - } - - /// Field number for the "coil_number" field. - public const int CoilNumberFieldNumber = 1; - private string coilNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CoilNumber { - get { return coilNumber_; } - set { - coilNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "pulse_ms" field. - public const int PulseMsFieldNumber = 2; - private uint pulseMs_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PulseMs { - get { return pulseMs_; } - set { - pulseMs_ = value; - } - } - - /// Field number for the "pulse_power" field. - public const int PulsePowerFieldNumber = 3; - private float pulsePower_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float PulsePower { - get { return pulsePower_; } - set { - pulsePower_ = value; - } - } - - /// Field number for the "hold_power" field. - public const int HoldPowerFieldNumber = 4; - private float holdPower_; - /// - /// Probably not important for VPE. Can a ball be knocked off from a magnet? - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float HoldPower { - get { return holdPower_; } - set { - holdPower_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EnableCoilRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnableCoilRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CoilNumber != other.CoilNumber) return false; - if (PulseMs != other.PulseMs) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PulsePower, other.PulsePower)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HoldPower, other.HoldPower)) 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 (CoilNumber.Length != 0) hash ^= CoilNumber.GetHashCode(); - if (PulseMs != 0) hash ^= PulseMs.GetHashCode(); - if (PulsePower != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PulsePower); - if (HoldPower != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HoldPower); - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (PulseMs != 0) { - output.WriteRawTag(16); - output.WriteUInt32(PulseMs); - } - if (PulsePower != 0F) { - output.WriteRawTag(29); - output.WriteFloat(PulsePower); - } - if (HoldPower != 0F) { - output.WriteRawTag(37); - output.WriteFloat(HoldPower); - } - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (PulseMs != 0) { - output.WriteRawTag(16); - output.WriteUInt32(PulseMs); - } - if (PulsePower != 0F) { - output.WriteRawTag(29); - output.WriteFloat(PulsePower); - } - if (HoldPower != 0F) { - output.WriteRawTag(37); - output.WriteFloat(HoldPower); - } - 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 (CoilNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CoilNumber); - } - if (PulseMs != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PulseMs); - } - if (PulsePower != 0F) { - size += 1 + 4; - } - if (HoldPower != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnableCoilRequest other) { - if (other == null) { - return; - } - if (other.CoilNumber.Length != 0) { - CoilNumber = other.CoilNumber; - } - if (other.PulseMs != 0) { - PulseMs = other.PulseMs; - } - if (other.PulsePower != 0F) { - PulsePower = other.PulsePower; - } - if (other.HoldPower != 0F) { - HoldPower = other.HoldPower; - } - _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: { - CoilNumber = input.ReadString(); - break; - } - case 16: { - PulseMs = input.ReadUInt32(); - break; - } - case 29: { - PulsePower = input.ReadFloat(); - break; - } - case 37: { - HoldPower = input.ReadFloat(); - 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: { - CoilNumber = input.ReadString(); - break; - } - case 16: { - PulseMs = input.ReadUInt32(); - break; - } - case 29: { - PulsePower = input.ReadFloat(); - break; - } - case 37: { - HoldPower = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - /// - /// Disable a coil - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class DisableCoilRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisableCoilRequest()); - 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::Mpf.Vpe.PlatformReflection.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 DisableCoilRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisableCoilRequest(DisableCoilRequest other) : this() { - coilNumber_ = other.coilNumber_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisableCoilRequest Clone() { - return new DisableCoilRequest(this); - } - - /// Field number for the "coil_number" field. - public const int CoilNumberFieldNumber = 1; - private string coilNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CoilNumber { - get { return coilNumber_; } - set { - coilNumber_ = 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 DisableCoilRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisableCoilRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CoilNumber != other.CoilNumber) 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 (CoilNumber.Length != 0) hash ^= CoilNumber.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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - 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 (CoilNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CoilNumber); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisableCoilRequest other) { - if (other == null) { - return; - } - if (other.CoilNumber.Length != 0) { - CoilNumber = other.CoilNumber; - } - _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: { - CoilNumber = 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: { - CoilNumber = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Configure a minimal hardware rule to hide latency from pops/slings/flippers - /// Dual-wound, EOS, cut-off rules and more are ignored here - /// Not sure if hold_power is simulated in VPE or if we should remove it - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ConfigureHardwareRuleRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigureHardwareRuleRequest()); - 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::Mpf.Vpe.PlatformReflection.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 ConfigureHardwareRuleRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConfigureHardwareRuleRequest(ConfigureHardwareRuleRequest other) : this() { - coilNumber_ = other.coilNumber_; - switchNumber_ = other.switchNumber_; - pulseMs_ = other.pulseMs_; - pulsePower_ = other.pulsePower_; - holdPower_ = other.holdPower_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConfigureHardwareRuleRequest Clone() { - return new ConfigureHardwareRuleRequest(this); - } - - /// Field number for the "coil_number" field. - public const int CoilNumberFieldNumber = 1; - private string coilNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CoilNumber { - get { return coilNumber_; } - set { - coilNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "switch_number" field. - public const int SwitchNumberFieldNumber = 2; - private string switchNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SwitchNumber { - get { return switchNumber_; } - set { - switchNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "pulse_ms" field. - public const int PulseMsFieldNumber = 3; - private uint pulseMs_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PulseMs { - get { return pulseMs_; } - set { - pulseMs_ = value; - } - } - - /// Field number for the "pulse_power" field. - public const int PulsePowerFieldNumber = 4; - private float pulsePower_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float PulsePower { - get { return pulsePower_; } - set { - pulsePower_ = value; - } - } - - /// Field number for the "hold_power" field. - public const int HoldPowerFieldNumber = 5; - private float holdPower_; - /// - /// Probably not important for VPE because knocking down a flipper will probably not happen there - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float HoldPower { - get { return holdPower_; } - set { - holdPower_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConfigureHardwareRuleRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConfigureHardwareRuleRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CoilNumber != other.CoilNumber) return false; - if (SwitchNumber != other.SwitchNumber) return false; - if (PulseMs != other.PulseMs) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PulsePower, other.PulsePower)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HoldPower, other.HoldPower)) 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 (CoilNumber.Length != 0) hash ^= CoilNumber.GetHashCode(); - if (SwitchNumber.Length != 0) hash ^= SwitchNumber.GetHashCode(); - if (PulseMs != 0) hash ^= PulseMs.GetHashCode(); - if (PulsePower != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PulsePower); - if (HoldPower != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HoldPower); - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (SwitchNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SwitchNumber); - } - if (PulseMs != 0) { - output.WriteRawTag(24); - output.WriteUInt32(PulseMs); - } - if (PulsePower != 0F) { - output.WriteRawTag(37); - output.WriteFloat(PulsePower); - } - if (HoldPower != 0F) { - output.WriteRawTag(45); - output.WriteFloat(HoldPower); - } - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (SwitchNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SwitchNumber); - } - if (PulseMs != 0) { - output.WriteRawTag(24); - output.WriteUInt32(PulseMs); - } - if (PulsePower != 0F) { - output.WriteRawTag(37); - output.WriteFloat(PulsePower); - } - if (HoldPower != 0F) { - output.WriteRawTag(45); - output.WriteFloat(HoldPower); - } - 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 (CoilNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CoilNumber); - } - if (SwitchNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SwitchNumber); - } - if (PulseMs != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PulseMs); - } - if (PulsePower != 0F) { - size += 1 + 4; - } - if (HoldPower != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConfigureHardwareRuleRequest other) { - if (other == null) { - return; - } - if (other.CoilNumber.Length != 0) { - CoilNumber = other.CoilNumber; - } - if (other.SwitchNumber.Length != 0) { - SwitchNumber = other.SwitchNumber; - } - if (other.PulseMs != 0) { - PulseMs = other.PulseMs; - } - if (other.PulsePower != 0F) { - PulsePower = other.PulsePower; - } - if (other.HoldPower != 0F) { - HoldPower = other.HoldPower; - } - _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: { - CoilNumber = input.ReadString(); - break; - } - case 18: { - SwitchNumber = input.ReadString(); - break; - } - case 24: { - PulseMs = input.ReadUInt32(); - break; - } - case 37: { - PulsePower = input.ReadFloat(); - break; - } - case 45: { - HoldPower = input.ReadFloat(); - 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: { - CoilNumber = input.ReadString(); - break; - } - case 18: { - SwitchNumber = input.ReadString(); - break; - } - case 24: { - PulseMs = input.ReadUInt32(); - break; - } - case 37: { - PulsePower = input.ReadFloat(); - break; - } - case 45: { - HoldPower = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - /// - /// Remove a rule between switch and coil - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RemoveHardwareRuleRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveHardwareRuleRequest()); - 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::Mpf.Vpe.PlatformReflection.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 RemoveHardwareRuleRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveHardwareRuleRequest(RemoveHardwareRuleRequest other) : this() { - coilNumber_ = other.coilNumber_; - switchNumber_ = other.switchNumber_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveHardwareRuleRequest Clone() { - return new RemoveHardwareRuleRequest(this); - } - - /// Field number for the "coil_number" field. - public const int CoilNumberFieldNumber = 1; - private string coilNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CoilNumber { - get { return coilNumber_; } - set { - coilNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "switch_number" field. - public const int SwitchNumberFieldNumber = 2; - private string switchNumber_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SwitchNumber { - get { return switchNumber_; } - set { - switchNumber_ = 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 RemoveHardwareRuleRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemoveHardwareRuleRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CoilNumber != other.CoilNumber) return false; - if (SwitchNumber != other.SwitchNumber) 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 (CoilNumber.Length != 0) hash ^= CoilNumber.GetHashCode(); - if (SwitchNumber.Length != 0) hash ^= SwitchNumber.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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (SwitchNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SwitchNumber); - } - 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 (CoilNumber.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CoilNumber); - } - if (SwitchNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SwitchNumber); - } - 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 (CoilNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CoilNumber); - } - if (SwitchNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SwitchNumber); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemoveHardwareRuleRequest other) { - if (other == null) { - return; - } - if (other.CoilNumber.Length != 0) { - CoilNumber = other.CoilNumber; - } - if (other.SwitchNumber.Length != 0) { - SwitchNumber = other.SwitchNumber; - } - _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: { - CoilNumber = input.ReadString(); - break; - } - case 18: { - SwitchNumber = 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: { - CoilNumber = input.ReadString(); - break; - } - case 18: { - SwitchNumber = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class PingResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PingResponse()); - 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::Mpf.Vpe.PlatformReflection.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 PingResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PingResponse(PingResponse other) : this() { - mpfVersion_ = other.mpfVersion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PingResponse Clone() { - return new PingResponse(this); - } - - /// Field number for the "mpf_version" field. - public const int MpfVersionFieldNumber = 1; - private string mpfVersion_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MpfVersion { - get { return mpfVersion_; } - set { - mpfVersion_ = 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 PingResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PingResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MpfVersion != other.MpfVersion) 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 (MpfVersion.Length != 0) hash ^= MpfVersion.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 (MpfVersion.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MpfVersion); - } - 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 (MpfVersion.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MpfVersion); - } - 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 (MpfVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MpfVersion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PingResponse other) { - if (other == null) { - return; - } - if (other.MpfVersion.Length != 0) { - MpfVersion = other.MpfVersion; - } - _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: { - MpfVersion = 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: { - MpfVersion = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Runtime/GrpcInterface/Platform.cs.meta b/Runtime/GrpcInterface/Platform.cs.meta deleted file mode 100644 index fc04e756..00000000 --- a/Runtime/GrpcInterface/Platform.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 13f9cdac892ec124c9a92bfc22329391 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/GrpcInterface/PlatformGrpc.cs b/Runtime/GrpcInterface/PlatformGrpc.cs deleted file mode 100644 index c4d0b3ea..00000000 --- a/Runtime/GrpcInterface/PlatformGrpc.cs +++ /dev/null @@ -1,228 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Runtime/GrpcInterface/platform.proto -// -#pragma warning disable 0414, 1591, 8981, 0612 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Mpf.Vpe { - public static partial class MpfHardwareService - { - static readonly string __ServiceName = "mpf.vpe.MpfHardwareService"; - - [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_mpf_vpe_MachineState = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.MachineState.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_mpf_vpe_Commands = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.Commands.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_mpf_vpe_EmptyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.EmptyRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_mpf_vpe_MachineDescription = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.MachineDescription.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_mpf_vpe_SwitchChanges = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.SwitchChanges.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_mpf_vpe_EmptyResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.EmptyResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_mpf_vpe_QuitRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.QuitRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_mpf_vpe_PingResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Mpf.Vpe.PingResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Start = new grpc::Method( - grpc::MethodType.ServerStreaming, - __ServiceName, - "Start", - __Marshaller_mpf_vpe_MachineState, - __Marshaller_mpf_vpe_Commands); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetMachineDescription = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetMachineDescription", - __Marshaller_mpf_vpe_EmptyRequest, - __Marshaller_mpf_vpe_MachineDescription); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SendSwitchChanges = new grpc::Method( - grpc::MethodType.ClientStreaming, - __ServiceName, - "SendSwitchChanges", - __Marshaller_mpf_vpe_SwitchChanges, - __Marshaller_mpf_vpe_EmptyResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Quit = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Quit", - __Marshaller_mpf_vpe_QuitRequest, - __Marshaller_mpf_vpe_EmptyResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Ping = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Ping", - __Marshaller_mpf_vpe_EmptyRequest, - __Marshaller_mpf_vpe_PingResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Mpf.Vpe.PlatformReflection.Descriptor.Services[0]; } - } - - /// Client for MpfHardwareService - public partial class MpfHardwareServiceClient : grpc::ClientBase - { - /// Creates a new client for MpfHardwareService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public MpfHardwareServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for MpfHardwareService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public MpfHardwareServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected MpfHardwareServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected MpfHardwareServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall Start(global::Mpf.Vpe.MachineState request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Start(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall Start(global::Mpf.Vpe.MachineState request, grpc::CallOptions options) - { - return CallInvoker.AsyncServerStreamingCall(__Method_Start, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Mpf.Vpe.MachineDescription GetMachineDescription(global::Mpf.Vpe.EmptyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMachineDescription(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Mpf.Vpe.MachineDescription GetMachineDescription(global::Mpf.Vpe.EmptyRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetMachineDescription, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMachineDescriptionAsync(global::Mpf.Vpe.EmptyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetMachineDescriptionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetMachineDescriptionAsync(global::Mpf.Vpe.EmptyRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetMachineDescription, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncClientStreamingCall SendSwitchChanges(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SendSwitchChanges(new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncClientStreamingCall SendSwitchChanges(grpc::CallOptions options) - { - return CallInvoker.AsyncClientStreamingCall(__Method_SendSwitchChanges, null, options); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Mpf.Vpe.EmptyResponse Quit(global::Mpf.Vpe.QuitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Quit(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Mpf.Vpe.EmptyResponse Quit(global::Mpf.Vpe.QuitRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Quit, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall QuitAsync(global::Mpf.Vpe.QuitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return QuitAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall QuitAsync(global::Mpf.Vpe.QuitRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Quit, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Mpf.Vpe.PingResponse Ping(global::Mpf.Vpe.EmptyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Ping(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Mpf.Vpe.PingResponse Ping(global::Mpf.Vpe.EmptyRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Ping, null, options, request); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PingAsync(global::Mpf.Vpe.EmptyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PingAsync(global::Mpf.Vpe.EmptyRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Ping, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override MpfHardwareServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new MpfHardwareServiceClient(configuration); - } - } - - } -} -#endregion diff --git a/Runtime/GrpcInterface/PlatformGrpc.cs.meta b/Runtime/GrpcInterface/PlatformGrpc.cs.meta deleted file mode 100644 index 744fa786..00000000 --- a/Runtime/GrpcInterface/PlatformGrpc.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bd6063c2a9c1bf54ebe09c824bcac720 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/VisualPinball.Engine.Mpf.csproj b/VisualPinball.Engine.Mpf.csproj index 84b65690..904744f5 100644 --- a/VisualPinball.Engine.Mpf.csproj +++ b/VisualPinball.Engine.Mpf.csproj @@ -49,7 +49,7 @@ - +