// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: MessageGroup.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 MessageGroup.proto public static partial class MessageGroupReflection { #region Descriptor /// File descriptor for MessageGroup.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static MessageGroupReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChJNZXNzYWdlR3JvdXAucHJvdG8aFE1lc3NhZ2VTZWN0aW9uLnByb3RvGhhN", "ZXNzYWdlR3JvdXBTdGF0dXMucHJvdG8ioAEKDE1lc3NhZ2VHcm91cBIjCgZz", "dGF0dXMYAyABKA4yEy5NZXNzYWdlR3JvdXBTdGF0dXMSGgoSbWVzc2FnZV9z", "ZWN0aW9uX2lkGAQgASgNEgoKAmlkGAUgASgNEi0KFG1lc3NhZ2Vfc2VjdGlv", "bl9saXN0GA8gAygLMg8uTWVzc2FnZVNlY3Rpb24SFAoMcmVmcmVzaF90aW1l", "GAYgASgDQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv", "Mw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MessageSectionReflection.Descriptor, global::EggLink.DanhengServer.Proto.MessageGroupStatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MessageGroup), global::EggLink.DanhengServer.Proto.MessageGroup.Parser, new[]{ "Status", "MessageSectionId", "Id", "MessageSectionList", "RefreshTime" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class MessageGroup : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageGroup()); 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.MessageGroupReflection.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 MessageGroup() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MessageGroup(MessageGroup other) : this() { status_ = other.status_; messageSectionId_ = other.messageSectionId_; id_ = other.id_; messageSectionList_ = other.messageSectionList_.Clone(); refreshTime_ = other.refreshTime_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MessageGroup Clone() { return new MessageGroup(this); } /// Field number for the "status" field. public const int StatusFieldNumber = 3; private global::EggLink.DanhengServer.Proto.MessageGroupStatus status_ = global::EggLink.DanhengServer.Proto.MessageGroupStatus.MessageGroupNone; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.MessageGroupStatus Status { get { return status_; } set { status_ = value; } } /// Field number for the "message_section_id" field. public const int MessageSectionIdFieldNumber = 4; private uint messageSectionId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint MessageSectionId { get { return messageSectionId_; } set { messageSectionId_ = value; } } /// Field number for the "id" field. public const int IdFieldNumber = 5; private uint id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Id { get { return id_; } set { id_ = value; } } /// Field number for the "message_section_list" field. public const int MessageSectionListFieldNumber = 15; private static readonly pb::FieldCodec _repeated_messageSectionList_codec = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.MessageSection.Parser); private readonly pbc::RepeatedField messageSectionList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MessageSectionList { get { return messageSectionList_; } } /// Field number for the "refresh_time" field. public const int RefreshTimeFieldNumber = 6; private long refreshTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long RefreshTime { get { return refreshTime_; } set { refreshTime_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MessageGroup); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MessageGroup other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Status != other.Status) return false; if (MessageSectionId != other.MessageSectionId) return false; if (Id != other.Id) return false; if(!messageSectionList_.Equals(other.messageSectionList_)) return false; if (RefreshTime != other.RefreshTime) 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 (Status != global::EggLink.DanhengServer.Proto.MessageGroupStatus.MessageGroupNone) hash ^= Status.GetHashCode(); if (MessageSectionId != 0) hash ^= MessageSectionId.GetHashCode(); if (Id != 0) hash ^= Id.GetHashCode(); hash ^= messageSectionList_.GetHashCode(); if (RefreshTime != 0L) hash ^= RefreshTime.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 (Status != global::EggLink.DanhengServer.Proto.MessageGroupStatus.MessageGroupNone) { output.WriteRawTag(24); output.WriteEnum((int) Status); } if (MessageSectionId != 0) { output.WriteRawTag(32); output.WriteUInt32(MessageSectionId); } if (Id != 0) { output.WriteRawTag(40); output.WriteUInt32(Id); } if (RefreshTime != 0L) { output.WriteRawTag(48); output.WriteInt64(RefreshTime); } messageSectionList_.WriteTo(output, _repeated_messageSectionList_codec); 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 (Status != global::EggLink.DanhengServer.Proto.MessageGroupStatus.MessageGroupNone) { output.WriteRawTag(24); output.WriteEnum((int) Status); } if (MessageSectionId != 0) { output.WriteRawTag(32); output.WriteUInt32(MessageSectionId); } if (Id != 0) { output.WriteRawTag(40); output.WriteUInt32(Id); } if (RefreshTime != 0L) { output.WriteRawTag(48); output.WriteInt64(RefreshTime); } messageSectionList_.WriteTo(ref output, _repeated_messageSectionList_codec); 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 (Status != global::EggLink.DanhengServer.Proto.MessageGroupStatus.MessageGroupNone) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); } if (MessageSectionId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MessageSectionId); } if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); } size += messageSectionList_.CalculateSize(_repeated_messageSectionList_codec); if (RefreshTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(RefreshTime); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MessageGroup other) { if (other == null) { return; } if (other.Status != global::EggLink.DanhengServer.Proto.MessageGroupStatus.MessageGroupNone) { Status = other.Status; } if (other.MessageSectionId != 0) { MessageSectionId = other.MessageSectionId; } if (other.Id != 0) { Id = other.Id; } messageSectionList_.Add(other.messageSectionList_); if (other.RefreshTime != 0L) { RefreshTime = other.RefreshTime; } _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 24: { Status = (global::EggLink.DanhengServer.Proto.MessageGroupStatus) input.ReadEnum(); break; } case 32: { MessageSectionId = input.ReadUInt32(); break; } case 40: { Id = input.ReadUInt32(); break; } case 48: { RefreshTime = input.ReadInt64(); break; } case 122: { messageSectionList_.AddEntriesFrom(input, _repeated_messageSectionList_codec); 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 24: { Status = (global::EggLink.DanhengServer.Proto.MessageGroupStatus) input.ReadEnum(); break; } case 32: { MessageSectionId = input.ReadUInt32(); break; } case 40: { Id = input.ReadUInt32(); break; } case 48: { RefreshTime = input.ReadInt64(); break; } case 122: { messageSectionList_.AddEntriesFrom(ref input, _repeated_messageSectionList_codec); break; } } } } #endif } #endregion } #endregion Designer generated code