Files
DanhengServer-OpenSource/Proto/RaidInfoNotify.cs
2024-12-07 09:58:35 +08:00

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(
"ChRSYWlkSW5mb05vdGlmeS5wcm90bxoQUmFpZFN0YXR1cy5wcm90bxoUUmFp",
"ZFRhcmdldEluZm8ucHJvdG8aDkl0ZW1MaXN0LnByb3RvIrYBCg5SYWlkSW5m",
"b05vdGlmeRIPCgdyYWlkX2lkGAggASgNEhsKBnN0YXR1cxgCIAEoDjILLlJh",
"aWRTdGF0dXMSGAoQcmFpZF9maW5pc2hfdGltZRgGIAEoBBITCgt3b3JsZF9s",
"ZXZlbBgJIAEoDRIcCglpdGVtX2xpc3QYDSABKAsyCS5JdGVtTGlzdBIpChBy",
"YWlkX3RhcmdldF9pbmZvGAMgAygLMg8uUmFpZFRhcmdldEluZm9CHqoCG0Vn",
"Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RaidStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.RaidTargetInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemListReflection.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[]{ "RaidId", "Status", "RaidFinishTime", "WorldLevel", "ItemList", "RaidTargetInfo" }, 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() {
raidId_ = other.raidId_;
status_ = other.status_;
raidFinishTime_ = other.raidFinishTime_;
worldLevel_ = other.worldLevel_;
itemList_ = other.itemList_ != null ? other.itemList_.Clone() : null;
raidTargetInfo_ = other.raidTargetInfo_.Clone();
_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 "raid_id" field.</summary>
public const int RaidIdFieldNumber = 8;
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 "status" field.</summary>
public const int StatusFieldNumber = 2;
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 "raid_finish_time" field.</summary>
public const int RaidFinishTimeFieldNumber = 6;
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 "world_level" field.</summary>
public const int WorldLevelFieldNumber = 9;
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 "item_list" field.</summary>
public const int ItemListFieldNumber = 13;
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;
}
}
/// <summary>Field number for the "raid_target_info" field.</summary>
public const int RaidTargetInfoFieldNumber = 3;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RaidTargetInfo> _repeated_raidTargetInfo_codec
= pb::FieldCodec.ForMessage(26, 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_; }
}
[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 (RaidId != other.RaidId) return false;
if (Status != other.Status) return false;
if (RaidFinishTime != other.RaidFinishTime) return false;
if (WorldLevel != other.WorldLevel) return false;
if (!object.Equals(ItemList, other.ItemList)) return false;
if(!raidTargetInfo_.Equals(other.raidTargetInfo_)) 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 (RaidId != 0) hash ^= RaidId.GetHashCode();
if (Status != global::EggLink.DanhengServer.Proto.RaidStatus.None) hash ^= Status.GetHashCode();
if (RaidFinishTime != 0UL) hash ^= RaidFinishTime.GetHashCode();
if (WorldLevel != 0) hash ^= WorldLevel.GetHashCode();
if (itemList_ != null) hash ^= ItemList.GetHashCode();
hash ^= raidTargetInfo_.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.RaidStatus.None) {
output.WriteRawTag(16);
output.WriteEnum((int) Status);
}
raidTargetInfo_.WriteTo(output, _repeated_raidTargetInfo_codec);
if (RaidFinishTime != 0UL) {
output.WriteRawTag(48);
output.WriteUInt64(RaidFinishTime);
}
if (RaidId != 0) {
output.WriteRawTag(64);
output.WriteUInt32(RaidId);
}
if (WorldLevel != 0) {
output.WriteRawTag(72);
output.WriteUInt32(WorldLevel);
}
if (itemList_ != null) {
output.WriteRawTag(106);
output.WriteMessage(ItemList);
}
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.RaidStatus.None) {
output.WriteRawTag(16);
output.WriteEnum((int) Status);
}
raidTargetInfo_.WriteTo(ref output, _repeated_raidTargetInfo_codec);
if (RaidFinishTime != 0UL) {
output.WriteRawTag(48);
output.WriteUInt64(RaidFinishTime);
}
if (RaidId != 0) {
output.WriteRawTag(64);
output.WriteUInt32(RaidId);
}
if (WorldLevel != 0) {
output.WriteRawTag(72);
output.WriteUInt32(WorldLevel);
}
if (itemList_ != null) {
output.WriteRawTag(106);
output.WriteMessage(ItemList);
}
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 (RaidId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RaidId);
}
if (Status != global::EggLink.DanhengServer.Proto.RaidStatus.None) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (RaidFinishTime != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RaidFinishTime);
}
if (WorldLevel != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldLevel);
}
if (itemList_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ItemList);
}
size += raidTargetInfo_.CalculateSize(_repeated_raidTargetInfo_codec);
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.RaidId != 0) {
RaidId = other.RaidId;
}
if (other.Status != global::EggLink.DanhengServer.Proto.RaidStatus.None) {
Status = other.Status;
}
if (other.RaidFinishTime != 0UL) {
RaidFinishTime = other.RaidFinishTime;
}
if (other.WorldLevel != 0) {
WorldLevel = other.WorldLevel;
}
if (other.itemList_ != null) {
if (itemList_ == null) {
ItemList = new global::EggLink.DanhengServer.Proto.ItemList();
}
ItemList.MergeFrom(other.ItemList);
}
raidTargetInfo_.Add(other.raidTargetInfo_);
_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: {
Status = (global::EggLink.DanhengServer.Proto.RaidStatus) input.ReadEnum();
break;
}
case 26: {
raidTargetInfo_.AddEntriesFrom(input, _repeated_raidTargetInfo_codec);
break;
}
case 48: {
RaidFinishTime = input.ReadUInt64();
break;
}
case 64: {
RaidId = input.ReadUInt32();
break;
}
case 72: {
WorldLevel = input.ReadUInt32();
break;
}
case 106: {
if (itemList_ == null) {
ItemList = new global::EggLink.DanhengServer.Proto.ItemList();
}
input.ReadMessage(ItemList);
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: {
Status = (global::EggLink.DanhengServer.Proto.RaidStatus) input.ReadEnum();
break;
}
case 26: {
raidTargetInfo_.AddEntriesFrom(ref input, _repeated_raidTargetInfo_codec);
break;
}
case 48: {
RaidFinishTime = input.ReadUInt64();
break;
}
case 64: {
RaidId = input.ReadUInt32();
break;
}
case 72: {
WorldLevel = input.ReadUInt32();
break;
}
case 106: {
if (itemList_ == null) {
ItemList = new global::EggLink.DanhengServer.Proto.ItemList();
}
input.ReadMessage(ItemList);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code