// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: ChatMessageData.proto // #pragma warning disable 1591, 0612, 3021, 8981 #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 EggLink.DanhengServer.Proto { /// Holder for reflection information generated from ChatMessageData.proto public static partial class ChatMessageDataReflection { #region Descriptor /// File descriptor for ChatMessageData.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ChatMessageDataReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChVDaGF0TWVzc2FnZURhdGEucHJvdG8aDU1zZ1R5cGUucHJvdG8aEUpES1BI", "T0ZMRkVOLnByb3RvIp8BCg9DaGF0TWVzc2FnZURhdGESDwoHY29udGVudBgK", "IAEoCRIQCghleHRyYV9pZBgLIAEoDRITCgtjcmVhdGVfdGltZRgNIAEoBBIR", "CglzZW5kZXJfaWQYBSABKA0SIQoLRU5MTUJDQ0pGQkcYCCABKAsyDC5KREtQ", "SE9GTEZFThIeCgxtZXNzYWdlX3R5cGUYDyABKA4yCC5Nc2dUeXBlQh6qAhtF", "Z2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MsgTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.JDKPHOFLFENReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChatMessageData), global::EggLink.DanhengServer.Proto.ChatMessageData.Parser, new[]{ "Content", "ExtraId", "CreateTime", "SenderId", "ENLMBCCJFBG", "MessageType" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ChatMessageData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChatMessageData()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::EggLink.DanhengServer.Proto.ChatMessageDataReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChatMessageData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChatMessageData(ChatMessageData other) : this() { content_ = other.content_; extraId_ = other.extraId_; createTime_ = other.createTime_; senderId_ = other.senderId_; eNLMBCCJFBG_ = other.eNLMBCCJFBG_ != null ? other.eNLMBCCJFBG_.Clone() : null; messageType_ = other.messageType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChatMessageData Clone() { return new ChatMessageData(this); } /// Field number for the "content" field. public const int ContentFieldNumber = 10; private string content_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Content { get { return content_; } set { content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "extra_id" field. public const int ExtraIdFieldNumber = 11; private uint extraId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint ExtraId { get { return extraId_; } set { extraId_ = value; } } /// Field number for the "create_time" field. public const int CreateTimeFieldNumber = 13; private ulong createTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong CreateTime { get { return createTime_; } set { createTime_ = value; } } /// Field number for the "sender_id" field. public const int SenderIdFieldNumber = 5; private uint senderId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SenderId { get { return senderId_; } set { senderId_ = value; } } /// Field number for the "ENLMBCCJFBG" field. public const int ENLMBCCJFBGFieldNumber = 8; private global::EggLink.DanhengServer.Proto.JDKPHOFLFEN eNLMBCCJFBG_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.JDKPHOFLFEN ENLMBCCJFBG { get { return eNLMBCCJFBG_; } set { eNLMBCCJFBG_ = value; } } /// Field number for the "message_type" field. public const int MessageTypeFieldNumber = 15; private global::EggLink.DanhengServer.Proto.MsgType messageType_ = global::EggLink.DanhengServer.Proto.MsgType.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.MsgType MessageType { get { return messageType_; } set { messageType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ChatMessageData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ChatMessageData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Content != other.Content) return false; if (ExtraId != other.ExtraId) return false; if (CreateTime != other.CreateTime) return false; if (SenderId != other.SenderId) return false; if (!object.Equals(ENLMBCCJFBG, other.ENLMBCCJFBG)) return false; if (MessageType != other.MessageType) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Content.Length != 0) hash ^= Content.GetHashCode(); if (ExtraId != 0) hash ^= ExtraId.GetHashCode(); if (CreateTime != 0UL) hash ^= CreateTime.GetHashCode(); if (SenderId != 0) hash ^= SenderId.GetHashCode(); if (eNLMBCCJFBG_ != null) hash ^= ENLMBCCJFBG.GetHashCode(); if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) hash ^= MessageType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (SenderId != 0) { output.WriteRawTag(40); output.WriteUInt32(SenderId); } if (eNLMBCCJFBG_ != null) { output.WriteRawTag(66); output.WriteMessage(ENLMBCCJFBG); } if (Content.Length != 0) { output.WriteRawTag(82); output.WriteString(Content); } if (ExtraId != 0) { output.WriteRawTag(88); output.WriteUInt32(ExtraId); } if (CreateTime != 0UL) { output.WriteRawTag(104); output.WriteUInt64(CreateTime); } if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) { output.WriteRawTag(120); output.WriteEnum((int) MessageType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (SenderId != 0) { output.WriteRawTag(40); output.WriteUInt32(SenderId); } if (eNLMBCCJFBG_ != null) { output.WriteRawTag(66); output.WriteMessage(ENLMBCCJFBG); } if (Content.Length != 0) { output.WriteRawTag(82); output.WriteString(Content); } if (ExtraId != 0) { output.WriteRawTag(88); output.WriteUInt32(ExtraId); } if (CreateTime != 0UL) { output.WriteRawTag(104); output.WriteUInt64(CreateTime); } if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) { output.WriteRawTag(120); output.WriteEnum((int) MessageType); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Content.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); } if (ExtraId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExtraId); } if (CreateTime != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateTime); } if (SenderId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SenderId); } if (eNLMBCCJFBG_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ENLMBCCJFBG); } if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ChatMessageData other) { if (other == null) { return; } if (other.Content.Length != 0) { Content = other.Content; } if (other.ExtraId != 0) { ExtraId = other.ExtraId; } if (other.CreateTime != 0UL) { CreateTime = other.CreateTime; } if (other.SenderId != 0) { SenderId = other.SenderId; } if (other.eNLMBCCJFBG_ != null) { if (eNLMBCCJFBG_ == null) { ENLMBCCJFBG = new global::EggLink.DanhengServer.Proto.JDKPHOFLFEN(); } ENLMBCCJFBG.MergeFrom(other.ENLMBCCJFBG); } if (other.MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) { MessageType = other.MessageType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 40: { SenderId = input.ReadUInt32(); break; } case 66: { if (eNLMBCCJFBG_ == null) { ENLMBCCJFBG = new global::EggLink.DanhengServer.Proto.JDKPHOFLFEN(); } input.ReadMessage(ENLMBCCJFBG); break; } case 82: { Content = input.ReadString(); break; } case 88: { ExtraId = input.ReadUInt32(); break; } case 104: { CreateTime = input.ReadUInt64(); break; } case 120: { MessageType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 40: { SenderId = input.ReadUInt32(); break; } case 66: { if (eNLMBCCJFBG_ == null) { ENLMBCCJFBG = new global::EggLink.DanhengServer.Proto.JDKPHOFLFEN(); } input.ReadMessage(ENLMBCCJFBG); break; } case 82: { Content = input.ReadString(); break; } case 88: { ExtraId = input.ReadUInt32(); break; } case 104: { CreateTime = input.ReadUInt64(); break; } case 120: { MessageType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum(); break; } } } } #endif } #endregion } #endregion Designer generated code