mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
422 lines
16 KiB
C#
422 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: RaidInfoNotify.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 RaidInfoNotify.proto</summary>
|
|
public static partial class RaidInfoNotifyReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for RaidInfoNotify.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RaidInfoNotifyReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChRSYWlkSW5mb05vdGlmeS5wcm90bxoUUmFpZFRhcmdldEluZm8ucHJvdG8a",
|
|
"Dkl0ZW1MaXN0LnByb3RvGhBSYWlkU3RhdHVzLnByb3RvIrYBCg5SYWlkSW5m",
|
|
"b05vdGlmeRIbCgZzdGF0dXMYCCABKA4yCy5SYWlkU3RhdHVzEhMKC3dvcmxk",
|
|
"X2xldmVsGAQgASgNEhgKEHJhaWRfZmluaXNoX3RpbWUYDCABKAQSDwoHcmFp",
|
|
"ZF9pZBgHIAEoDRIpChByYWlkX3RhcmdldF9pbmZvGAUgAygLMg8uUmFpZFRh",
|
|
"cmdldEluZm8SHAoJaXRlbV9saXN0GAEgASgLMgkuSXRlbUxpc3RCHqoCG0Vn",
|
|
"Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RaidTargetInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, global::EggLink.DanhengServer.Proto.RaidStatusReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RaidInfoNotify), global::EggLink.DanhengServer.Proto.RaidInfoNotify.Parser, new[]{ "Status", "WorldLevel", "RaidFinishTime", "RaidId", "RaidTargetInfo", "ItemList" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RaidInfoNotify : pb::IMessage<RaidInfoNotify>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RaidInfoNotify> _parser = new pb::MessageParser<RaidInfoNotify>(() => new RaidInfoNotify());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RaidInfoNotify> 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.RaidInfoNotifyReflection.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 RaidInfoNotify() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RaidInfoNotify(RaidInfoNotify other) : this() {
|
|
status_ = other.status_;
|
|
worldLevel_ = other.worldLevel_;
|
|
raidFinishTime_ = other.raidFinishTime_;
|
|
raidId_ = other.raidId_;
|
|
raidTargetInfo_ = other.raidTargetInfo_.Clone();
|
|
itemList_ = other.itemList_ != null ? other.itemList_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RaidInfoNotify Clone() {
|
|
return new RaidInfoNotify(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "status" field.</summary>
|
|
public const int StatusFieldNumber = 8;
|
|
private global::EggLink.DanhengServer.Proto.RaidStatus status_ = global::EggLink.DanhengServer.Proto.RaidStatus.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RaidStatus Status {
|
|
get { return status_; }
|
|
set {
|
|
status_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "world_level" field.</summary>
|
|
public const int WorldLevelFieldNumber = 4;
|
|
private uint worldLevel_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint WorldLevel {
|
|
get { return worldLevel_; }
|
|
set {
|
|
worldLevel_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "raid_finish_time" field.</summary>
|
|
public const int RaidFinishTimeFieldNumber = 12;
|
|
private ulong raidFinishTime_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ulong RaidFinishTime {
|
|
get { return raidFinishTime_; }
|
|
set {
|
|
raidFinishTime_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "raid_id" field.</summary>
|
|
public const int RaidIdFieldNumber = 7;
|
|
private uint raidId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint RaidId {
|
|
get { return raidId_; }
|
|
set {
|
|
raidId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "raid_target_info" field.</summary>
|
|
public const int RaidTargetInfoFieldNumber = 5;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RaidTargetInfo> _repeated_raidTargetInfo_codec
|
|
= pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.RaidTargetInfo.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RaidTargetInfo> raidTargetInfo_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RaidTargetInfo>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RaidTargetInfo> RaidTargetInfo {
|
|
get { return raidTargetInfo_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "item_list" field.</summary>
|
|
public const int ItemListFieldNumber = 1;
|
|
private global::EggLink.DanhengServer.Proto.ItemList itemList_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.ItemList ItemList {
|
|
get { return itemList_; }
|
|
set {
|
|
itemList_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RaidInfoNotify);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RaidInfoNotify other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Status != other.Status) return false;
|
|
if (WorldLevel != other.WorldLevel) return false;
|
|
if (RaidFinishTime != other.RaidFinishTime) return false;
|
|
if (RaidId != other.RaidId) return false;
|
|
if(!raidTargetInfo_.Equals(other.raidTargetInfo_)) return false;
|
|
if (!object.Equals(ItemList, other.ItemList)) 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.RaidStatus.None) hash ^= Status.GetHashCode();
|
|
if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode();
|
|
if (RaidFinishTime != 0UL) hash ^= RaidFinishTime.GetHashCode();
|
|
if (RaidId != 0) hash ^= RaidId.GetHashCode();
|
|
hash ^= raidTargetInfo_.GetHashCode();
|
|
if (itemList_ != null) hash ^= ItemList.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 (itemList_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ItemList);
|
|
}
|
|
if (WorldLevel != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(WorldLevel);
|
|
}
|
|
raidTargetInfo_.WriteTo(output, _repeated_raidTargetInfo_codec);
|
|
if (RaidId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(RaidId);
|
|
}
|
|
if (Status != global::EggLink.DanhengServer.Proto.RaidStatus.None) {
|
|
output.WriteRawTag(64);
|
|
output.WriteEnum((int) Status);
|
|
}
|
|
if (RaidFinishTime != 0UL) {
|
|
output.WriteRawTag(96);
|
|
output.WriteUInt64(RaidFinishTime);
|
|
}
|
|
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 (itemList_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ItemList);
|
|
}
|
|
if (WorldLevel != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(WorldLevel);
|
|
}
|
|
raidTargetInfo_.WriteTo(ref output, _repeated_raidTargetInfo_codec);
|
|
if (RaidId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(RaidId);
|
|
}
|
|
if (Status != global::EggLink.DanhengServer.Proto.RaidStatus.None) {
|
|
output.WriteRawTag(64);
|
|
output.WriteEnum((int) Status);
|
|
}
|
|
if (RaidFinishTime != 0UL) {
|
|
output.WriteRawTag(96);
|
|
output.WriteUInt64(RaidFinishTime);
|
|
}
|
|
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.RaidStatus.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
|
|
}
|
|
if (WorldLevel != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel);
|
|
}
|
|
if (RaidFinishTime != 0UL) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RaidFinishTime);
|
|
}
|
|
if (RaidId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RaidId);
|
|
}
|
|
size += raidTargetInfo_.CalculateSize(_repeated_raidTargetInfo_codec);
|
|
if (itemList_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemList);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RaidInfoNotify other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Status != global::EggLink.DanhengServer.Proto.RaidStatus.None) {
|
|
Status = other.Status;
|
|
}
|
|
if (other.WorldLevel != 0) {
|
|
WorldLevel = other.WorldLevel;
|
|
}
|
|
if (other.RaidFinishTime != 0UL) {
|
|
RaidFinishTime = other.RaidFinishTime;
|
|
}
|
|
if (other.RaidId != 0) {
|
|
RaidId = other.RaidId;
|
|
}
|
|
raidTargetInfo_.Add(other.raidTargetInfo_);
|
|
if (other.itemList_ != null) {
|
|
if (itemList_ == null) {
|
|
ItemList = new global::EggLink.DanhengServer.Proto.ItemList();
|
|
}
|
|
ItemList.MergeFrom(other.ItemList);
|
|
}
|
|
_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 10: {
|
|
if (itemList_ == null) {
|
|
ItemList = new global::EggLink.DanhengServer.Proto.ItemList();
|
|
}
|
|
input.ReadMessage(ItemList);
|
|
break;
|
|
}
|
|
case 32: {
|
|
WorldLevel = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 42: {
|
|
raidTargetInfo_.AddEntriesFrom(input, _repeated_raidTargetInfo_codec);
|
|
break;
|
|
}
|
|
case 56: {
|
|
RaidId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
Status = (global::EggLink.DanhengServer.Proto.RaidStatus) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 96: {
|
|
RaidFinishTime = input.ReadUInt64();
|
|
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 10: {
|
|
if (itemList_ == null) {
|
|
ItemList = new global::EggLink.DanhengServer.Proto.ItemList();
|
|
}
|
|
input.ReadMessage(ItemList);
|
|
break;
|
|
}
|
|
case 32: {
|
|
WorldLevel = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 42: {
|
|
raidTargetInfo_.AddEntriesFrom(ref input, _repeated_raidTargetInfo_codec);
|
|
break;
|
|
}
|
|
case 56: {
|
|
RaidId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
Status = (global::EggLink.DanhengServer.Proto.RaidStatus) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 96: {
|
|
RaidFinishTime = input.ReadUInt64();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|