Files
DanhengServer-OpenSource/Proto/RogueFormulaSelectInfo.cs
2025-04-15 16:44:46 +08:00

490 lines
19 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RogueFormulaSelectInfo.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 RogueFormulaSelectInfo.proto</summary>
public static partial class RogueFormulaSelectInfoReflection {
#region Descriptor
/// <summary>File descriptor for RogueFormulaSelectInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RogueFormulaSelectInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChxSb2d1ZUZvcm11bGFTZWxlY3RJbmZvLnByb3RvGhJJdGVtQ29zdERhdGEu",
"cHJvdG8i/AEKFlJvZ3VlRm9ybXVsYVNlbGVjdEluZm8SIwobSGFuZGJvb2tV",
"bmxvY2tGb3JtdWxhSWRMaXN0GAEgAygNEhwKFFJvbGxGb3JtdWxhRnJlZUNv",
"dW50GAYgASgNEg4KBkhpbnRJZBgCIAEoDRIbChNSb2xsRm9ybXVsYU1heENv",
"dW50GAMgASgNEhgKEFJvbGxGb3JtdWxhQ291bnQYBCABKA0SKgoTUm9sbEZv",
"cm11bGFDb3N0RGF0YRgKIAEoCzINLkl0ZW1Db3N0RGF0YRIPCgdDYW5Sb2xs",
"GAsgASgIEhsKE1NlbGVjdEZvcm11bGFJZExpc3QYByADKA1CHqoCG0VnZ0xp",
"bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostDataReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueFormulaSelectInfo), global::EggLink.DanhengServer.Proto.RogueFormulaSelectInfo.Parser, new[]{ "HandbookUnlockFormulaIdList", "RollFormulaFreeCount", "HintId", "RollFormulaMaxCount", "RollFormulaCount", "RollFormulaCostData", "CanRoll", "SelectFormulaIdList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class RogueFormulaSelectInfo : pb::IMessage<RogueFormulaSelectInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<RogueFormulaSelectInfo> _parser = new pb::MessageParser<RogueFormulaSelectInfo>(() => new RogueFormulaSelectInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<RogueFormulaSelectInfo> 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.RogueFormulaSelectInfoReflection.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 RogueFormulaSelectInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueFormulaSelectInfo(RogueFormulaSelectInfo other) : this() {
handbookUnlockFormulaIdList_ = other.handbookUnlockFormulaIdList_.Clone();
rollFormulaFreeCount_ = other.rollFormulaFreeCount_;
hintId_ = other.hintId_;
rollFormulaMaxCount_ = other.rollFormulaMaxCount_;
rollFormulaCount_ = other.rollFormulaCount_;
rollFormulaCostData_ = other.rollFormulaCostData_ != null ? other.rollFormulaCostData_.Clone() : null;
canRoll_ = other.canRoll_;
selectFormulaIdList_ = other.selectFormulaIdList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueFormulaSelectInfo Clone() {
return new RogueFormulaSelectInfo(this);
}
/// <summary>Field number for the "HandbookUnlockFormulaIdList" field.</summary>
public const int HandbookUnlockFormulaIdListFieldNumber = 1;
private static readonly pb::FieldCodec<uint> _repeated_handbookUnlockFormulaIdList_codec
= pb::FieldCodec.ForUInt32(10);
private readonly pbc::RepeatedField<uint> handbookUnlockFormulaIdList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> HandbookUnlockFormulaIdList {
get { return handbookUnlockFormulaIdList_; }
}
/// <summary>Field number for the "RollFormulaFreeCount" field.</summary>
public const int RollFormulaFreeCountFieldNumber = 6;
private uint rollFormulaFreeCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint RollFormulaFreeCount {
get { return rollFormulaFreeCount_; }
set {
rollFormulaFreeCount_ = value;
}
}
/// <summary>Field number for the "HintId" field.</summary>
public const int HintIdFieldNumber = 2;
private uint hintId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint HintId {
get { return hintId_; }
set {
hintId_ = value;
}
}
/// <summary>Field number for the "RollFormulaMaxCount" field.</summary>
public const int RollFormulaMaxCountFieldNumber = 3;
private uint rollFormulaMaxCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint RollFormulaMaxCount {
get { return rollFormulaMaxCount_; }
set {
rollFormulaMaxCount_ = value;
}
}
/// <summary>Field number for the "RollFormulaCount" field.</summary>
public const int RollFormulaCountFieldNumber = 4;
private uint rollFormulaCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint RollFormulaCount {
get { return rollFormulaCount_; }
set {
rollFormulaCount_ = value;
}
}
/// <summary>Field number for the "RollFormulaCostData" field.</summary>
public const int RollFormulaCostDataFieldNumber = 10;
private global::EggLink.DanhengServer.Proto.ItemCostData rollFormulaCostData_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.ItemCostData RollFormulaCostData {
get { return rollFormulaCostData_; }
set {
rollFormulaCostData_ = value;
}
}
/// <summary>Field number for the "CanRoll" field.</summary>
public const int CanRollFieldNumber = 11;
private bool canRoll_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool CanRoll {
get { return canRoll_; }
set {
canRoll_ = value;
}
}
/// <summary>Field number for the "SelectFormulaIdList" field.</summary>
public const int SelectFormulaIdListFieldNumber = 7;
private static readonly pb::FieldCodec<uint> _repeated_selectFormulaIdList_codec
= pb::FieldCodec.ForUInt32(58);
private readonly pbc::RepeatedField<uint> selectFormulaIdList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> SelectFormulaIdList {
get { return selectFormulaIdList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as RogueFormulaSelectInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RogueFormulaSelectInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!handbookUnlockFormulaIdList_.Equals(other.handbookUnlockFormulaIdList_)) return false;
if (RollFormulaFreeCount != other.RollFormulaFreeCount) return false;
if (HintId != other.HintId) return false;
if (RollFormulaMaxCount != other.RollFormulaMaxCount) return false;
if (RollFormulaCount != other.RollFormulaCount) return false;
if (!object.Equals(RollFormulaCostData, other.RollFormulaCostData)) return false;
if (CanRoll != other.CanRoll) return false;
if(!selectFormulaIdList_.Equals(other.selectFormulaIdList_)) 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 ^= handbookUnlockFormulaIdList_.GetHashCode();
if (RollFormulaFreeCount != 0) hash ^= RollFormulaFreeCount.GetHashCode();
if (HintId != 0) hash ^= HintId.GetHashCode();
if (RollFormulaMaxCount != 0) hash ^= RollFormulaMaxCount.GetHashCode();
if (RollFormulaCount != 0) hash ^= RollFormulaCount.GetHashCode();
if (rollFormulaCostData_ != null) hash ^= RollFormulaCostData.GetHashCode();
if (CanRoll != false) hash ^= CanRoll.GetHashCode();
hash ^= selectFormulaIdList_.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
handbookUnlockFormulaIdList_.WriteTo(output, _repeated_handbookUnlockFormulaIdList_codec);
if (HintId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(HintId);
}
if (RollFormulaMaxCount != 0) {
output.WriteRawTag(24);
output.WriteUInt32(RollFormulaMaxCount);
}
if (RollFormulaCount != 0) {
output.WriteRawTag(32);
output.WriteUInt32(RollFormulaCount);
}
if (RollFormulaFreeCount != 0) {
output.WriteRawTag(48);
output.WriteUInt32(RollFormulaFreeCount);
}
selectFormulaIdList_.WriteTo(output, _repeated_selectFormulaIdList_codec);
if (rollFormulaCostData_ != null) {
output.WriteRawTag(82);
output.WriteMessage(RollFormulaCostData);
}
if (CanRoll != false) {
output.WriteRawTag(88);
output.WriteBool(CanRoll);
}
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) {
handbookUnlockFormulaIdList_.WriteTo(ref output, _repeated_handbookUnlockFormulaIdList_codec);
if (HintId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(HintId);
}
if (RollFormulaMaxCount != 0) {
output.WriteRawTag(24);
output.WriteUInt32(RollFormulaMaxCount);
}
if (RollFormulaCount != 0) {
output.WriteRawTag(32);
output.WriteUInt32(RollFormulaCount);
}
if (RollFormulaFreeCount != 0) {
output.WriteRawTag(48);
output.WriteUInt32(RollFormulaFreeCount);
}
selectFormulaIdList_.WriteTo(ref output, _repeated_selectFormulaIdList_codec);
if (rollFormulaCostData_ != null) {
output.WriteRawTag(82);
output.WriteMessage(RollFormulaCostData);
}
if (CanRoll != false) {
output.WriteRawTag(88);
output.WriteBool(CanRoll);
}
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 += handbookUnlockFormulaIdList_.CalculateSize(_repeated_handbookUnlockFormulaIdList_codec);
if (RollFormulaFreeCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollFormulaFreeCount);
}
if (HintId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HintId);
}
if (RollFormulaMaxCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollFormulaMaxCount);
}
if (RollFormulaCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollFormulaCount);
}
if (rollFormulaCostData_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(RollFormulaCostData);
}
if (CanRoll != false) {
size += 1 + 1;
}
size += selectFormulaIdList_.CalculateSize(_repeated_selectFormulaIdList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(RogueFormulaSelectInfo other) {
if (other == null) {
return;
}
handbookUnlockFormulaIdList_.Add(other.handbookUnlockFormulaIdList_);
if (other.RollFormulaFreeCount != 0) {
RollFormulaFreeCount = other.RollFormulaFreeCount;
}
if (other.HintId != 0) {
HintId = other.HintId;
}
if (other.RollFormulaMaxCount != 0) {
RollFormulaMaxCount = other.RollFormulaMaxCount;
}
if (other.RollFormulaCount != 0) {
RollFormulaCount = other.RollFormulaCount;
}
if (other.rollFormulaCostData_ != null) {
if (rollFormulaCostData_ == null) {
RollFormulaCostData = new global::EggLink.DanhengServer.Proto.ItemCostData();
}
RollFormulaCostData.MergeFrom(other.RollFormulaCostData);
}
if (other.CanRoll != false) {
CanRoll = other.CanRoll;
}
selectFormulaIdList_.Add(other.selectFormulaIdList_);
_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:
case 8: {
handbookUnlockFormulaIdList_.AddEntriesFrom(input, _repeated_handbookUnlockFormulaIdList_codec);
break;
}
case 16: {
HintId = input.ReadUInt32();
break;
}
case 24: {
RollFormulaMaxCount = input.ReadUInt32();
break;
}
case 32: {
RollFormulaCount = input.ReadUInt32();
break;
}
case 48: {
RollFormulaFreeCount = input.ReadUInt32();
break;
}
case 58:
case 56: {
selectFormulaIdList_.AddEntriesFrom(input, _repeated_selectFormulaIdList_codec);
break;
}
case 82: {
if (rollFormulaCostData_ == null) {
RollFormulaCostData = new global::EggLink.DanhengServer.Proto.ItemCostData();
}
input.ReadMessage(RollFormulaCostData);
break;
}
case 88: {
CanRoll = input.ReadBool();
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:
case 8: {
handbookUnlockFormulaIdList_.AddEntriesFrom(ref input, _repeated_handbookUnlockFormulaIdList_codec);
break;
}
case 16: {
HintId = input.ReadUInt32();
break;
}
case 24: {
RollFormulaMaxCount = input.ReadUInt32();
break;
}
case 32: {
RollFormulaCount = input.ReadUInt32();
break;
}
case 48: {
RollFormulaFreeCount = input.ReadUInt32();
break;
}
case 58:
case 56: {
selectFormulaIdList_.AddEntriesFrom(ref input, _repeated_selectFormulaIdList_codec);
break;
}
case 82: {
if (rollFormulaCostData_ == null) {
RollFormulaCostData = new global::EggLink.DanhengServer.Proto.ItemCostData();
}
input.ReadMessage(RollFormulaCostData);
break;
}
case 88: {
CanRoll = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code