mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
366 lines
14 KiB
C#
366 lines
14 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: MessageSection.proto
|
|
// </auto-generated>
|
|
#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 {
|
|
|
|
/// <summary>Holder for reflection information generated from MessageSection.proto</summary>
|
|
public static partial class MessageSectionReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for MessageSection.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static MessageSectionReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChRNZXNzYWdlU2VjdGlvbi5wcm90bxoRTWVzc2FnZUl0ZW0ucHJvdG8aGk1l",
|
|
"c3NhZ2VTZWN0aW9uU3RhdHVzLnByb3RvIpcBCg5NZXNzYWdlU2VjdGlvbhIf",
|
|
"CglpdGVtX2xpc3QYBiADKAsyDC5NZXNzYWdlSXRlbRIlCgZzdGF0dXMYDCAB",
|
|
"KA4yFS5NZXNzYWdlU2VjdGlvblN0YXR1cxIWCg5mcm96ZW5faXRlbV9pZBgC",
|
|
"IAEoDRIKCgJpZBgNIAEoDRIZChFtZXNzYWdlX2l0ZW1fbGlzdBgDIAMoDUIe",
|
|
"qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MessageItemReflection.Descriptor, global::EggLink.DanhengServer.Proto.MessageSectionStatusReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MessageSection), global::EggLink.DanhengServer.Proto.MessageSection.Parser, new[]{ "ItemList", "Status", "FrozenItemId", "Id", "MessageItemList" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class MessageSection : pb::IMessage<MessageSection>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<MessageSection> _parser = new pb::MessageParser<MessageSection>(() => new MessageSection());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<MessageSection> 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.MessageSectionReflection.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 MessageSection() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MessageSection(MessageSection other) : this() {
|
|
itemList_ = other.itemList_.Clone();
|
|
status_ = other.status_;
|
|
frozenItemId_ = other.frozenItemId_;
|
|
id_ = other.id_;
|
|
messageItemList_ = other.messageItemList_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MessageSection Clone() {
|
|
return new MessageSection(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "item_list" field.</summary>
|
|
public const int ItemListFieldNumber = 6;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.MessageItem> _repeated_itemList_codec
|
|
= pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.MessageItem.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.MessageItem> itemList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.MessageItem>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.MessageItem> ItemList {
|
|
get { return itemList_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "status" field.</summary>
|
|
public const int StatusFieldNumber = 12;
|
|
private global::EggLink.DanhengServer.Proto.MessageSectionStatus status_ = global::EggLink.DanhengServer.Proto.MessageSectionStatus.MessageSectionNone;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.MessageSectionStatus Status {
|
|
get { return status_; }
|
|
set {
|
|
status_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "frozen_item_id" field.</summary>
|
|
public const int FrozenItemIdFieldNumber = 2;
|
|
private uint frozenItemId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint FrozenItemId {
|
|
get { return frozenItemId_; }
|
|
set {
|
|
frozenItemId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 13;
|
|
private uint id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "message_item_list" field.</summary>
|
|
public const int MessageItemListFieldNumber = 3;
|
|
private static readonly pb::FieldCodec<uint> _repeated_messageItemList_codec
|
|
= pb::FieldCodec.ForUInt32(26);
|
|
private readonly pbc::RepeatedField<uint> messageItemList_ = new pbc::RepeatedField<uint>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<uint> MessageItemList {
|
|
get { return messageItemList_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as MessageSection);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(MessageSection other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!itemList_.Equals(other.itemList_)) return false;
|
|
if (Status != other.Status) return false;
|
|
if (FrozenItemId != other.FrozenItemId) return false;
|
|
if (Id != other.Id) return false;
|
|
if(!messageItemList_.Equals(other.messageItemList_)) 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;
|
|
hash ^= itemList_.GetHashCode();
|
|
if (Status != global::EggLink.DanhengServer.Proto.MessageSectionStatus.MessageSectionNone) hash ^= Status.GetHashCode();
|
|
if (FrozenItemId != 0) hash ^= FrozenItemId.GetHashCode();
|
|
if (Id != 0) hash ^= Id.GetHashCode();
|
|
hash ^= messageItemList_.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 (FrozenItemId != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(FrozenItemId);
|
|
}
|
|
messageItemList_.WriteTo(output, _repeated_messageItemList_codec);
|
|
itemList_.WriteTo(output, _repeated_itemList_codec);
|
|
if (Status != global::EggLink.DanhengServer.Proto.MessageSectionStatus.MessageSectionNone) {
|
|
output.WriteRawTag(96);
|
|
output.WriteEnum((int) Status);
|
|
}
|
|
if (Id != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
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 (FrozenItemId != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(FrozenItemId);
|
|
}
|
|
messageItemList_.WriteTo(ref output, _repeated_messageItemList_codec);
|
|
itemList_.WriteTo(ref output, _repeated_itemList_codec);
|
|
if (Status != global::EggLink.DanhengServer.Proto.MessageSectionStatus.MessageSectionNone) {
|
|
output.WriteRawTag(96);
|
|
output.WriteEnum((int) Status);
|
|
}
|
|
if (Id != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
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;
|
|
size += itemList_.CalculateSize(_repeated_itemList_codec);
|
|
if (Status != global::EggLink.DanhengServer.Proto.MessageSectionStatus.MessageSectionNone) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
|
|
}
|
|
if (FrozenItemId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrozenItemId);
|
|
}
|
|
if (Id != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
|
}
|
|
size += messageItemList_.CalculateSize(_repeated_messageItemList_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(MessageSection other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
itemList_.Add(other.itemList_);
|
|
if (other.Status != global::EggLink.DanhengServer.Proto.MessageSectionStatus.MessageSectionNone) {
|
|
Status = other.Status;
|
|
}
|
|
if (other.FrozenItemId != 0) {
|
|
FrozenItemId = other.FrozenItemId;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
messageItemList_.Add(other.messageItemList_);
|
|
_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 16: {
|
|
FrozenItemId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 26:
|
|
case 24: {
|
|
messageItemList_.AddEntriesFrom(input, _repeated_messageItemList_codec);
|
|
break;
|
|
}
|
|
case 50: {
|
|
itemList_.AddEntriesFrom(input, _repeated_itemList_codec);
|
|
break;
|
|
}
|
|
case 96: {
|
|
Status = (global::EggLink.DanhengServer.Proto.MessageSectionStatus) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Id = input.ReadUInt32();
|
|
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 16: {
|
|
FrozenItemId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 26:
|
|
case 24: {
|
|
messageItemList_.AddEntriesFrom(ref input, _repeated_messageItemList_codec);
|
|
break;
|
|
}
|
|
case 50: {
|
|
itemList_.AddEntriesFrom(ref input, _repeated_itemList_codec);
|
|
break;
|
|
}
|
|
case 96: {
|
|
Status = (global::EggLink.DanhengServer.Proto.MessageSectionStatus) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|