// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SetValveStateRequest.proto #pragma warning disable 1591, 0612, 3021 #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 Tango.PMR.Diagnostics { /// Holder for reflection information generated from SetValveStateRequest.proto public static partial class SetValveStateRequestReflection { #region Descriptor /// File descriptor for SetValveStateRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static SetValveStateRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChpTZXRWYWx2ZVN0YXRlUmVxdWVzdC5wcm90bxIVVGFuZ28uUE1SLkRpYWdu", "b3N0aWNzGg9WYWx2ZVR5cGUucHJvdG8aFFZhbHZlU3RhdGVDb2RlLnByb3Rv", "IoEBChRTZXRWYWx2ZVN0YXRlUmVxdWVzdBIzCglWYWx2ZVR5cGUYASABKA4y", "IC5UYW5nby5QTVIuRGlhZ25vc3RpY3MuVmFsdmVUeXBlEjQKBVN0YXRlGAIg", "ASgOMiUuVGFuZ28uUE1SLkRpYWdub3N0aWNzLlZhbHZlU3RhdGVDb2RlQiEK", "H2NvbS50d2luZS50YW5nby5wbXIuZGlhZ25vc3RpY3NiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.ValveTypeReflection.Descriptor, global::Tango.PMR.Diagnostics.ValveStateCodeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.SetValveStateRequest), global::Tango.PMR.Diagnostics.SetValveStateRequest.Parser, new[]{ "ValveType", "State" }, null, null, null) })); } #endregion } #region Messages public sealed partial class SetValveStateRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetValveStateRequest()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tango.PMR.Diagnostics.SetValveStateRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SetValveStateRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SetValveStateRequest(SetValveStateRequest other) : this() { valveType_ = other.valveType_; state_ = other.state_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SetValveStateRequest Clone() { return new SetValveStateRequest(this); } /// Field number for the "ValveType" field. public const int ValveTypeFieldNumber = 1; private global::Tango.PMR.Diagnostics.ValveType valveType_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Diagnostics.ValveType ValveType { get { return valveType_; } set { valveType_ = value; } } /// Field number for the "State" field. public const int StateFieldNumber = 2; private global::Tango.PMR.Diagnostics.ValveStateCode state_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Diagnostics.ValveStateCode State { get { return state_; } set { state_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SetValveStateRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SetValveStateRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ValveType != other.ValveType) return false; if (State != other.State) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ValveType != 0) hash ^= ValveType.GetHashCode(); if (State != 0) hash ^= State.GetHashCode(); return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (ValveType != 0) { output.WriteRawTag(8); output.WriteEnum((int) ValveType); } if (State != 0) { output.WriteRawTag(16); output.WriteEnum((int) State); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ValveType != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValveType); } if (State != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SetValveStateRequest other) { if (other == null) { return; } if (other.ValveType != 0) { ValveType = other.ValveType; } if (other.State != 0) { State = other.State; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { valveType_ = (global::Tango.PMR.Diagnostics.ValveType) input.ReadEnum(); break; } case 16: { state_ = (global::Tango.PMR.Diagnostics.ValveStateCode) input.ReadEnum(); break; } } } } } #endregion } #endregion Designer generated code