// Generated by the protocol buffer compiler. DO NOT EDIT! // source: StubDispenserEEpromRequest.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 StubDispenserEEpromRequest.proto public static partial class StubDispenserEEpromRequestReflection { #region Descriptor /// File descriptor for StubDispenserEEpromRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StubDispenserEEpromRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiBTdHViRGlzcGVuc2VyRUVwcm9tUmVxdWVzdC5wcm90bxIPVGFuZ28uUE1S", "LlN0dWJzGh1TdHViRGlzcGVuc2VyRUVwcm9tRGF0YS5wcm90byKJAQoaU3R1", "YkRpc3BlbnNlckVFcHJvbVJlcXVlc3QSEwoLRGlzcGVuc2VySWQYASABKA0S", "EwoLQnVyblJlcXVlc3QYAiABKAgSQQoPRGlzcGVuc2VyRUVwcm9tGAMgASgL", "MiguVGFuZ28uUE1SLlN0dWJzLlN0dWJEaXNwZW5zZXJFRXByb21EYXRhQhsK", "GWNvbS50d2luZS50YW5nby5wbXIuc3R1YnNiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Stubs.StubDispenserEEpromDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.StubDispenserEEpromRequest), global::Tango.PMR.Stubs.StubDispenserEEpromRequest.Parser, new[]{ "DispenserId", "BurnRequest", "DispenserEEprom" }, null, null, null) })); } #endregion } #region Messages public sealed partial class StubDispenserEEpromRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StubDispenserEEpromRequest()); [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.StubDispenserEEpromRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubDispenserEEpromRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubDispenserEEpromRequest(StubDispenserEEpromRequest other) : this() { dispenserId_ = other.dispenserId_; burnRequest_ = other.burnRequest_; DispenserEEprom = other.dispenserEEprom_ != null ? other.DispenserEEprom.Clone() : null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubDispenserEEpromRequest Clone() { return new StubDispenserEEpromRequest(this); } /// Field number for the "DispenserId" field. public const int DispenserIdFieldNumber = 1; private uint dispenserId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint DispenserId { get { return dispenserId_; } set { dispenserId_ = value; } } /// Field number for the "BurnRequest" field. public const int BurnRequestFieldNumber = 2; private bool burnRequest_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool BurnRequest { get { return burnRequest_; } set { burnRequest_ = value; } } /// Field number for the "DispenserEEprom" field. public const int DispenserEEpromFieldNumber = 3; private global::Tango.PMR.Stubs.StubDispenserEEpromData dispenserEEprom_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Stubs.StubDispenserEEpromData DispenserEEprom { get { return dispenserEEprom_; } set { dispenserEEprom_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as StubDispenserEEpromRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(StubDispenserEEpromRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DispenserId != other.DispenserId) return false; if (BurnRequest != other.BurnRequest) return false; if (!object.Equals(DispenserEEprom, other.DispenserEEprom)) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (DispenserId != 0) hash ^= DispenserId.GetHashCode(); if (BurnRequest != false) hash ^= BurnRequest.GetHashCode(); if (dispenserEEprom_ != null) hash ^= DispenserEEprom.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 (DispenserId != 0) { output.WriteRawTag(8); output.WriteUInt32(DispenserId); } if (BurnRequest != false) { output.WriteRawTag(16); output.WriteBool(BurnRequest); } if (dispenserEEprom_ != null) { output.WriteRawTag(26); output.WriteMessage(DispenserEEprom); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (DispenserId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DispenserId); } if (BurnRequest != false) { size += 1 + 1; } if (dispenserEEprom_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DispenserEEprom); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(StubDispenserEEpromRequest other) { if (other == null) { return; } if (other.DispenserId != 0) { DispenserId = other.DispenserId; } if (other.BurnRequest != false) { BurnRequest = other.BurnRequest; } if (other.dispenserEEprom_ != null) { if (dispenserEEprom_ == null) { dispenserEEprom_ = new global::Tango.PMR.Stubs.StubDispenserEEpromData(); } DispenserEEprom.MergeFrom(other.DispenserEEprom); } } [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: { DispenserId = input.ReadUInt32(); break; } case 16: { BurnRequest = input.ReadBool(); break; } case 26: { if (dispenserEEprom_ == null) { dispenserEEprom_ = new global::Tango.PMR.Stubs.StubDispenserEEpromData(); } input.ReadMessage(dispenserEEprom_); break; } } } } } #endregion } #endregion Designer generated code