// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ValueComponentState.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 ValueComponentState.proto public static partial class ValueComponentStateReflection { #region Descriptor /// File descriptor for ValueComponentState.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ValueComponentStateReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChlWYWx1ZUNvbXBvbmVudFN0YXRlLnByb3RvEhVUYW5nby5QTVIuRGlhZ25v", "c3RpY3MaFFZhbHVlQ29tcG9uZW50LnByb3RvIl4KE1ZhbHVlQ29tcG9uZW50", "U3RhdGUSOAoJQ29tcG9uZW50GAEgASgOMiUuVGFuZ28uUE1SLkRpYWdub3N0", "aWNzLlZhbHVlQ29tcG9uZW50Eg0KBVZhbHVlGAIgASgBQiEKH2NvbS50d2lu", "ZS50YW5nby5wbXIuZGlhZ25vc3RpY3NiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.ValueComponentReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.ValueComponentState), global::Tango.PMR.Diagnostics.ValueComponentState.Parser, new[]{ "Component", "Value" }, null, null, null) })); } #endregion } #region Messages public sealed partial class ValueComponentState : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValueComponentState()); [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.ValueComponentStateReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ValueComponentState() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ValueComponentState(ValueComponentState other) : this() { component_ = other.component_; value_ = other.value_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ValueComponentState Clone() { return new ValueComponentState(this); } /// Field number for the "Component" field. public const int ComponentFieldNumber = 1; private global::Tango.PMR.Diagnostics.ValueComponent component_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Diagnostics.ValueComponent Component { get { return component_; } set { component_ = value; } } /// Field number for the "Value" field. public const int ValueFieldNumber = 2; private double value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Value { get { return value_; } set { value_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ValueComponentState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ValueComponentState other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Component != other.Component) return false; if (Value != other.Value) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Component != 0) hash ^= Component.GetHashCode(); if (Value != 0D) hash ^= Value.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 (Component != 0) { output.WriteRawTag(8); output.WriteEnum((int) Component); } if (Value != 0D) { output.WriteRawTag(17); output.WriteDouble(Value); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Component != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Component); } if (Value != 0D) { size += 1 + 8; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ValueComponentState other) { if (other == null) { return; } if (other.Component != 0) { Component = other.Component; } if (other.Value != 0D) { Value = other.Value; } } [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: { component_ = (global::Tango.PMR.Diagnostics.ValueComponent) input.ReadEnum(); break; } case 17: { Value = input.ReadDouble(); break; } } } } } #endregion } #endregion Designer generated code