Files
DanhengServer-OpenSource/Proto/PunkLordMonsterInfoScNotify.cs

361 lines
14 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: PunkLordMonsterInfoScNotify.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 PunkLordMonsterInfoScNotify.proto</summary>
public static partial class PunkLordMonsterInfoScNotifyReflection {
#region Descriptor
/// <summary>File descriptor for PunkLordMonsterInfoScNotify.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static PunkLordMonsterInfoScNotifyReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiFQdW5rTG9yZE1vbnN0ZXJJbmZvU2NOb3RpZnkucHJvdG8aHlB1bmtMb3Jk",
"TW9uc3RlckJhc2ljSW5mby5wcm90bxolUHVua0xvcmRNb25zdGVySW5mb05v",
"dGlmeVJlYXNvbi5wcm90bxoaUHVua0xvcmRCYXR0bGVSZWNvcmQucHJvdG8i",
"xwEKG1B1bmtMb3JkTW9uc3RlckluZm9TY05vdGlmeRItCgpiYXNpY19pbmZv",
"GAwgASgLMhkuUHVua0xvcmRNb25zdGVyQmFzaWNJbmZvEiwKDWJhdHRsZV9y",
"ZWNvcmQYDyABKAsyFS5QdW5rTG9yZEJhdHRsZVJlY29yZBIwCgZyZWFzb24Y",
"AyABKA4yIC5QdW5rTG9yZE1vbnN0ZXJJbmZvTm90aWZ5UmVhc29uEhkKEWF0",
"dGFja2VyX3VpZF9saXN0GA4gAygNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2",
"ZXIuUHJvdG9iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PunkLordMonsterBasicInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReasonReflection.Descriptor, global::EggLink.DanhengServer.Proto.PunkLordBattleRecordReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoScNotify), global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoScNotify.Parser, new[]{ "BasicInfo", "BattleRecord", "Reason", "AttackerUidList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class PunkLordMonsterInfoScNotify : pb::IMessage<PunkLordMonsterInfoScNotify>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PunkLordMonsterInfoScNotify> _parser = new pb::MessageParser<PunkLordMonsterInfoScNotify>(() => new PunkLordMonsterInfoScNotify());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PunkLordMonsterInfoScNotify> 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.PunkLordMonsterInfoScNotifyReflection.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 PunkLordMonsterInfoScNotify() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PunkLordMonsterInfoScNotify(PunkLordMonsterInfoScNotify other) : this() {
basicInfo_ = other.basicInfo_ != null ? other.basicInfo_.Clone() : null;
battleRecord_ = other.battleRecord_ != null ? other.battleRecord_.Clone() : null;
reason_ = other.reason_;
attackerUidList_ = other.attackerUidList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PunkLordMonsterInfoScNotify Clone() {
return new PunkLordMonsterInfoScNotify(this);
}
/// <summary>Field number for the "basic_info" field.</summary>
public const int BasicInfoFieldNumber = 12;
private global::EggLink.DanhengServer.Proto.PunkLordMonsterBasicInfo basicInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.PunkLordMonsterBasicInfo BasicInfo {
get { return basicInfo_; }
set {
basicInfo_ = value;
}
}
/// <summary>Field number for the "battle_record" field.</summary>
public const int BattleRecordFieldNumber = 15;
private global::EggLink.DanhengServer.Proto.PunkLordBattleRecord battleRecord_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.PunkLordBattleRecord BattleRecord {
get { return battleRecord_; }
set {
battleRecord_ = value;
}
}
/// <summary>Field number for the "reason" field.</summary>
public const int ReasonFieldNumber = 3;
private global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason reason_ = global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason Reason {
get { return reason_; }
set {
reason_ = value;
}
}
/// <summary>Field number for the "attacker_uid_list" field.</summary>
public const int AttackerUidListFieldNumber = 14;
private static readonly pb::FieldCodec<uint> _repeated_attackerUidList_codec
= pb::FieldCodec.ForUInt32(114);
private readonly pbc::RepeatedField<uint> attackerUidList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> AttackerUidList {
get { return attackerUidList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PunkLordMonsterInfoScNotify);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PunkLordMonsterInfoScNotify other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(BasicInfo, other.BasicInfo)) return false;
if (!object.Equals(BattleRecord, other.BattleRecord)) return false;
if (Reason != other.Reason) return false;
if(!attackerUidList_.Equals(other.attackerUidList_)) 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 (basicInfo_ != null) hash ^= BasicInfo.GetHashCode();
if (battleRecord_ != null) hash ^= BattleRecord.GetHashCode();
if (Reason != global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason.None) hash ^= Reason.GetHashCode();
hash ^= attackerUidList_.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 (Reason != global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason.None) {
output.WriteRawTag(24);
output.WriteEnum((int) Reason);
}
if (basicInfo_ != null) {
output.WriteRawTag(98);
output.WriteMessage(BasicInfo);
}
attackerUidList_.WriteTo(output, _repeated_attackerUidList_codec);
if (battleRecord_ != null) {
output.WriteRawTag(122);
output.WriteMessage(BattleRecord);
}
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 (Reason != global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason.None) {
output.WriteRawTag(24);
output.WriteEnum((int) Reason);
}
if (basicInfo_ != null) {
output.WriteRawTag(98);
output.WriteMessage(BasicInfo);
}
attackerUidList_.WriteTo(ref output, _repeated_attackerUidList_codec);
if (battleRecord_ != null) {
output.WriteRawTag(122);
output.WriteMessage(BattleRecord);
}
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 (basicInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BasicInfo);
}
if (battleRecord_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleRecord);
}
if (Reason != global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason.None) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
}
size += attackerUidList_.CalculateSize(_repeated_attackerUidList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PunkLordMonsterInfoScNotify other) {
if (other == null) {
return;
}
if (other.basicInfo_ != null) {
if (basicInfo_ == null) {
BasicInfo = new global::EggLink.DanhengServer.Proto.PunkLordMonsterBasicInfo();
}
BasicInfo.MergeFrom(other.BasicInfo);
}
if (other.battleRecord_ != null) {
if (battleRecord_ == null) {
BattleRecord = new global::EggLink.DanhengServer.Proto.PunkLordBattleRecord();
}
BattleRecord.MergeFrom(other.BattleRecord);
}
if (other.Reason != global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason.None) {
Reason = other.Reason;
}
attackerUidList_.Add(other.attackerUidList_);
_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: {
Reason = (global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason) input.ReadEnum();
break;
}
case 98: {
if (basicInfo_ == null) {
BasicInfo = new global::EggLink.DanhengServer.Proto.PunkLordMonsterBasicInfo();
}
input.ReadMessage(BasicInfo);
break;
}
case 114:
case 112: {
attackerUidList_.AddEntriesFrom(input, _repeated_attackerUidList_codec);
break;
}
case 122: {
if (battleRecord_ == null) {
BattleRecord = new global::EggLink.DanhengServer.Proto.PunkLordBattleRecord();
}
input.ReadMessage(BattleRecord);
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: {
Reason = (global::EggLink.DanhengServer.Proto.PunkLordMonsterInfoNotifyReason) input.ReadEnum();
break;
}
case 98: {
if (basicInfo_ == null) {
BasicInfo = new global::EggLink.DanhengServer.Proto.PunkLordMonsterBasicInfo();
}
input.ReadMessage(BasicInfo);
break;
}
case 114:
case 112: {
attackerUidList_.AddEntriesFrom(ref input, _repeated_attackerUidList_codec);
break;
}
case 122: {
if (battleRecord_ == null) {
BattleRecord = new global::EggLink.DanhengServer.Proto.PunkLordBattleRecord();
}
input.ReadMessage(BattleRecord);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code