// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ProcedureResponse.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 ProcedureResponse.proto public static partial class ProcedureResponseReflection { #region Descriptor /// File descriptor for ProcedureResponse.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ProcedureResponseReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChdQcm9jZWR1cmVSZXNwb25zZS5wcm90bxIPVGFuZ28uUE1SLlN0dWJzIlkK", "EVByb2NlZHVyZVJlc3BvbnNlEgwKBFR5cGUYASABKAUSDAoEVGltZRgCIAEo", "BRIUCgxSZXBseU1lc3NhZ2UYAyABKAkSEgoKUmVwbHlWYWx1ZRgEIAMoAkIb", "Chljb20udHdpbmUudGFuZ28ucG1yLnN0dWJzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.ProcedureResponse), global::Tango.PMR.Stubs.ProcedureResponse.Parser, new[]{ "Type", "Time", "ReplyMessage", "ReplyValue" }, null, null, null) })); } #endregion } #region Messages public sealed partial class ProcedureResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcedureResponse()); [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.ProcedureResponseReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProcedureResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProcedureResponse(ProcedureResponse other) : this() { type_ = other.type_; time_ = other.time_; replyMessage_ = other.replyMessage_; replyValue_ = other.replyValue_.Clone(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProcedureResponse Clone() { return new ProcedureResponse(this); } /// Field number for the "Type" field. public const int TypeFieldNumber = 1; private int type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Type { get { return type_; } set { type_ = value; } } /// Field number for the "Time" field. public const int TimeFieldNumber = 2; private int time_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Time { get { return time_; } set { time_ = value; } } /// Field number for the "ReplyMessage" field. public const int ReplyMessageFieldNumber = 3; private string replyMessage_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ReplyMessage { get { return replyMessage_; } set { replyMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "ReplyValue" field. public const int ReplyValueFieldNumber = 4; private static readonly pb::FieldCodec _repeated_replyValue_codec = pb::FieldCodec.ForFloat(34); private readonly pbc::RepeatedField replyValue_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField ReplyValue { get { return replyValue_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ProcedureResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ProcedureResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Type != other.Type) return false; if (Time != other.Time) return false; if (ReplyMessage != other.ReplyMessage) return false; if(!replyValue_.Equals(other.replyValue_)) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Type != 0) hash ^= Type.GetHashCode(); if (Time != 0) hash ^= Time.GetHashCode(); if (ReplyMessage.Length != 0) hash ^= ReplyMessage.GetHashCode(); hash ^= replyValue_.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 (Type != 0) { output.WriteRawTag(8); output.WriteInt32(Type); } if (Time != 0) { output.WriteRawTag(16); output.WriteInt32(Time); } if (ReplyMessage.Length != 0) { output.WriteRawTag(26); output.WriteString(ReplyMessage); } replyValue_.WriteTo(output, _repeated_replyValue_codec); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Type != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); } if (Time != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Time); } if (ReplyMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ReplyMessage); } size += replyValue_.CalculateSize(_repeated_replyValue_codec); return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ProcedureResponse other) { if (other == null) { return; } if (other.Type != 0) { Type = other.Type; } if (other.Time != 0) { Time = other.Time; } if (other.ReplyMessage.Length != 0) { ReplyMessage = other.ReplyMessage; } replyValue_.Add(other.replyValue_); } [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: { Type = input.ReadInt32(); break; } case 16: { Time = input.ReadInt32(); break; } case 26: { ReplyMessage = input.ReadString(); break; } case 34: case 37: { replyValue_.AddEntriesFrom(input, _repeated_replyValue_codec); break; } } } } } #endregion } #endregion Designer generated code