Files
DanhengServer-OpenSource/Proto/PlayCardBrief.cs
2025-05-25 09:26:31 +08:00

300 lines
11 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: PlayCardBrief.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 PlayCardBrief.proto</summary>
public static partial class PlayCardBriefReflection {
#region Descriptor
/// <summary>File descriptor for PlayCardBrief.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static PlayCardBriefReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChNQbGF5Q2FyZEJyaWVmLnByb3RvGhRQbGF5U2tpbGxCcmllZi5wcm90byJh",
"Cg1QbGF5Q2FyZEJyaWVmEhIKCmJhc2VfdmFsdWUYAyABKA0SEQoJdW5pcXVl",
"X2lkGAwgASgNEikKEHNraWxsX2JyaWVmX2xpc3QYByADKAsyDy5QbGF5U2tp",
"bGxCcmllZkIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90",
"bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PlaySkillBriefReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PlayCardBrief), global::EggLink.DanhengServer.Proto.PlayCardBrief.Parser, new[]{ "BaseValue", "UniqueId", "SkillBriefList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class PlayCardBrief : pb::IMessage<PlayCardBrief>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PlayCardBrief> _parser = new pb::MessageParser<PlayCardBrief>(() => new PlayCardBrief());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PlayCardBrief> 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.PlayCardBriefReflection.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 PlayCardBrief() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PlayCardBrief(PlayCardBrief other) : this() {
baseValue_ = other.baseValue_;
uniqueId_ = other.uniqueId_;
skillBriefList_ = other.skillBriefList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PlayCardBrief Clone() {
return new PlayCardBrief(this);
}
/// <summary>Field number for the "base_value" field.</summary>
public const int BaseValueFieldNumber = 3;
private uint baseValue_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BaseValue {
get { return baseValue_; }
set {
baseValue_ = value;
}
}
/// <summary>Field number for the "unique_id" field.</summary>
public const int UniqueIdFieldNumber = 12;
private uint uniqueId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint UniqueId {
get { return uniqueId_; }
set {
uniqueId_ = value;
}
}
/// <summary>Field number for the "skill_brief_list" field.</summary>
public const int SkillBriefListFieldNumber = 7;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.PlaySkillBrief> _repeated_skillBriefList_codec
= pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.PlaySkillBrief.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.PlaySkillBrief> skillBriefList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.PlaySkillBrief>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.PlaySkillBrief> SkillBriefList {
get { return skillBriefList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PlayCardBrief);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PlayCardBrief other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (BaseValue != other.BaseValue) return false;
if (UniqueId != other.UniqueId) return false;
if(!skillBriefList_.Equals(other.skillBriefList_)) 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 (BaseValue != 0) hash ^= BaseValue.GetHashCode();
if (UniqueId != 0) hash ^= UniqueId.GetHashCode();
hash ^= skillBriefList_.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 (BaseValue != 0) {
output.WriteRawTag(24);
output.WriteUInt32(BaseValue);
}
skillBriefList_.WriteTo(output, _repeated_skillBriefList_codec);
if (UniqueId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(UniqueId);
}
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 (BaseValue != 0) {
output.WriteRawTag(24);
output.WriteUInt32(BaseValue);
}
skillBriefList_.WriteTo(ref output, _repeated_skillBriefList_codec);
if (UniqueId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(UniqueId);
}
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 (BaseValue != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseValue);
}
if (UniqueId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UniqueId);
}
size += skillBriefList_.CalculateSize(_repeated_skillBriefList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PlayCardBrief other) {
if (other == null) {
return;
}
if (other.BaseValue != 0) {
BaseValue = other.BaseValue;
}
if (other.UniqueId != 0) {
UniqueId = other.UniqueId;
}
skillBriefList_.Add(other.skillBriefList_);
_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: {
BaseValue = input.ReadUInt32();
break;
}
case 58: {
skillBriefList_.AddEntriesFrom(input, _repeated_skillBriefList_codec);
break;
}
case 96: {
UniqueId = 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 24: {
BaseValue = input.ReadUInt32();
break;
}
case 58: {
skillBriefList_.AddEntriesFrom(ref input, _repeated_skillBriefList_codec);
break;
}
case 96: {
UniqueId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code