// Generated by the protocol buffer compiler. DO NOT EDIT! // source: StubHeaterRequest.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.Stubs { /// Holder for reflection information generated from StubHeaterRequest.proto public static partial class StubHeaterRequestReflection { #region Descriptor /// File descriptor for StubHeaterRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StubHeaterRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChdTdHViSGVhdGVyUmVxdWVzdC5wcm90bxIPVGFuZ28uUE1SLlN0dWJzIl8K", "EVN0dWJIZWF0ZXJSZXF1ZXN0EhUKDUhlYXRlckdyb3VwSWQYASABKA0SFQoN", "SGVhdGVyR3JvdXBPbhgCIAEoCBIcChRIZWF0ZXJUZW1wZXJhdHVyZVJlcRgD", "IAEoDUIbChljb20udHdpbmUudGFuZ28ucG1yLnN0dWJzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.StubHeaterRequest), global::Tango.PMR.Stubs.StubHeaterRequest.Parser, new[]{ "HeaterGroupId", "HeaterGroupOn", "HeaterTemperatureReq" }, null, null, null) })); } #endregion } #region Messages public sealed partial class StubHeaterRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StubHeaterRequest()); [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.Stubs.StubHeaterRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubHeaterRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubHeaterRequest(StubHeaterRequest other) : this() { heaterGroupId_ = other.heaterGroupId_; heaterGroupOn_ = other.heaterGroupOn_; heaterTemperatureReq_ = other.heaterTemperatureReq_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubHeaterRequest Clone() { return new StubHeaterRequest(this); } /// Field number for the "HeaterGroupId" field. public const int HeaterGroupIdFieldNumber = 1; private uint heaterGroupId_; /// ///0..2 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint HeaterGroupId { get { return heaterGroupId_; } set { heaterGroupId_ = value; } } /// Field number for the "HeaterGroupOn" field. public const int HeaterGroupOnFieldNumber = 2; private bool heaterGroupOn_; /// /// 1-On 0-Off /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HeaterGroupOn { get { return heaterGroupOn_; } set { heaterGroupOn_ = value; } } /// Field number for the "HeaterTemperatureReq" field. public const int HeaterTemperatureReqFieldNumber = 3; private uint heaterTemperatureReq_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint HeaterTemperatureReq { get { return heaterTemperatureReq_; } set { heaterTemperatureReq_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as StubHeaterRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(StubHeaterRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HeaterGroupId != other.HeaterGroupId) return false; if (HeaterGroupOn != other.HeaterGroupOn) return false; if (HeaterTemperatureReq != other.HeaterTemperatureReq) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HeaterGroupId != 0) hash ^= HeaterGroupId.GetHashCode(); if (HeaterGroupOn != false) hash ^= HeaterGroupOn.GetHashCode(); if (HeaterTemperatureReq != 0) hash ^= HeaterTemperatureReq.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 (HeaterGroupId != 0) { output.WriteRawTag(8); output.WriteUInt32(HeaterGroupId); } if (HeaterGroupOn != false) { output.WriteRawTag(16); output.WriteBool(HeaterGroupOn); } if (HeaterTemperatureReq != 0) { output.WriteRawTag(24); output.WriteUInt32(HeaterTemperatureReq); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HeaterGroupId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HeaterGroupId); } if (HeaterGroupOn != false) { size += 1 + 1; } if (HeaterTemperatureReq != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HeaterTemperatureReq); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(StubHeaterRequest other) { if (other == null) { return; } if (other.HeaterGroupId != 0) { HeaterGroupId = other.HeaterGroupId; } if (other.HeaterGroupOn != false) { HeaterGroupOn = other.HeaterGroupOn; } if (other.HeaterTemperatureReq != 0) { HeaterTemperatureReq = other.HeaterTemperatureReq; } } [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: { HeaterGroupId = input.ReadUInt32(); break; } case 16: { HeaterGroupOn = input.ReadBool(); break; } case 24: { HeaterTemperatureReq = input.ReadUInt32(); break; } } } } } #endregion } #endregion Designer generated code