// Generated by the protocol buffer compiler. DO NOT EDIT! // source: MessageContainer.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.Common { /// Holder for reflection information generated from MessageContainer.proto public static partial class MessageContainerReflection { #region Descriptor /// File descriptor for MessageContainer.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static MessageContainerReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChZNZXNzYWdlQ29udGFpbmVyLnByb3RvEhBUYW5nby5QTVIuQ29tbW9uGhFN", "ZXNzYWdlVHlwZS5wcm90bxoPRXJyb3JDb2RlLnByb3RvIrwBChBNZXNzYWdl", "Q29udGFpbmVyEisKBFR5cGUYASABKA4yHS5UYW5nby5QTVIuQ29tbW9uLk1l", "c3NhZ2VUeXBlEg0KBVRva2VuGAIgASgJEhIKCkNvbnRpbnVvdXMYAyABKAgS", "EQoJQ29tcGxldGVkGAQgASgIEgwKBERhdGEYBSABKAwSCwoDQ1JDGAYgASgN", "EioKBUVycm9yGAcgASgOMhsuVGFuZ28uUE1SLkNvbW1vbi5FcnJvckNvZGVC", "HAoaY29tLnR3aW5lLnRhbmdvLnBtci5jb21tb25iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Common.MessageTypeReflection.Descriptor, global::Tango.PMR.Common.ErrorCodeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Common.MessageContainer), global::Tango.PMR.Common.MessageContainer.Parser, new[]{ "Type", "Token", "Continuous", "Completed", "Data", "CRC", "Error" }, null, null, null) })); } #endregion } #region Messages public sealed partial class MessageContainer : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageContainer()); [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.Common.MessageContainerReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MessageContainer() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MessageContainer(MessageContainer other) : this() { type_ = other.type_; token_ = other.token_; continuous_ = other.continuous_; completed_ = other.completed_; data_ = other.data_; cRC_ = other.cRC_; error_ = other.error_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MessageContainer Clone() { return new MessageContainer(this); } /// Field number for the "Type" field. public const int TypeFieldNumber = 1; private global::Tango.PMR.Common.MessageType type_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Common.MessageType Type { get { return type_; } set { type_ = value; } } /// Field number for the "Token" field. public const int TokenFieldNumber = 2; private string token_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Token { get { return token_; } set { token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Continuous" field. public const int ContinuousFieldNumber = 3; private bool continuous_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Continuous { get { return continuous_; } set { continuous_ = value; } } /// Field number for the "Completed" field. public const int CompletedFieldNumber = 4; private bool completed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Completed { get { return completed_; } set { completed_ = value; } } /// Field number for the "Data" field. public const int DataFieldNumber = 5; private pb::ByteString data_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString Data { get { return data_; } set { data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "CRC" field. public const int CRCFieldNumber = 6; private uint cRC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint CRC { get { return cRC_; } set { cRC_ = value; } } /// Field number for the "Error" field. public const int ErrorFieldNumber = 7; private global::Tango.PMR.Common.ErrorCode error_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Common.ErrorCode Error { get { return error_; } set { error_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MessageContainer); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MessageContainer other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Type != other.Type) return false; if (Token != other.Token) return false; if (Continuous != other.Continuous) return false; if (Completed != other.Completed) return false; if (Data != other.Data) return false; if (CRC != other.CRC) return false; if (Error != other.Error) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Type != 0) hash ^= Type.GetHashCode(); if (Token.Length != 0) hash ^= Token.GetHashCode(); if (Continuous != false) hash ^= Continuous.GetHashCode(); if (Completed != false) hash ^= Completed.GetHashCode(); if (Data.Length != 0) hash ^= Data.GetHashCode(); if (CRC != 0) hash ^= CRC.GetHashCode(); if (Error != 0) hash ^= Error.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.WriteEnum((int) Type); } if (Token.Length != 0) { output.WriteRawTag(18); output.WriteString(Token); } if (Continuous != false) { output.WriteRawTag(24); output.WriteBool(Continuous); } if (Completed != false) { output.WriteRawTag(32); output.WriteBool(Completed); } if (Data.Length != 0) { output.WriteRawTag(42); output.WriteBytes(Data); } if (CRC != 0) { output.WriteRawTag(48); output.WriteUInt32(CRC); } if (Error != 0) { output.WriteRawTag(56); output.WriteEnum((int) Error); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Type != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Token.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); } if (Continuous != false) { size += 1 + 1; } if (Completed != false) { size += 1 + 1; } if (Data.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); } if (CRC != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CRC); } if (Error != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Error); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MessageContainer other) { if (other == null) { return; } if (other.Type != 0) { Type = other.Type; } if (other.Token.Length != 0) { Token = other.Token; } if (other.Continuous != false) { Continuous = other.Continuous; } if (other.Completed != false) { Completed = other.Completed; } if (other.Data.Length != 0) { Data = other.Data; } if (other.CRC != 0) { CRC = other.CRC; } if (other.Error != 0) { Error = other.Error; } } [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_ = (global::Tango.PMR.Common.MessageType) input.ReadEnum(); break; } case 18: { Token = input.ReadString(); break; } case 24: { Continuous = input.ReadBool(); break; } case 32: { Completed = input.ReadBool(); break; } case 42: { Data = input.ReadBytes(); break; } case 48: { CRC = input.ReadUInt32(); break; } case 56: { error_ = (global::Tango.PMR.Common.ErrorCode) input.ReadEnum(); break; } } } } } #endregion } #endregion Designer generated code