Files
DanhengServer-OpenSource/Proto/RogueFormulaSelectInfo.cs
2025-08-15 12:52:47 +08:00

491 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",
"cHJvdG8ilwIKFlJvZ3VlRm9ybXVsYVNlbGVjdEluZm8SHgoWcm9sbF9mb3Jt",
"dWxhX21heF9jb3VudBgLIAEoDRIaChJyb2xsX2Zvcm11bGFfY291bnQYDyAB",
"KA0SFgoOc2VsZWN0X2hpbnRfaWQYAyABKA0SJwofaGFuZGJvb2tfdW5sb2Nr",
"X2Zvcm11bGFfaWRfbGlzdBgKIAMoDRItChZyb2xsX2Zvcm11bGFfY29zdF9k",
"YXRhGAggASgLMg0uSXRlbUNvc3REYXRhEh8KF3JvbGxfZm9ybXVsYV9mcmVl",
"X2NvdW50GA0gASgNEhAKCGNhbl9yb2xsGAEgASgIEh4KFnNlbGVjdF9mb3Jt",
"dWxhX2lkX2xpc3QYAiADKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Q",
"cm90b2IGcHJvdG8z"));
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[]{ "RollFormulaMaxCount", "RollFormulaCount", "SelectHintId", "HandbookUnlockFormulaIdList", "RollFormulaCostData", "RollFormulaFreeCount", "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() {
rollFormulaMaxCount_ = other.rollFormulaMaxCount_;
rollFormulaCount_ = other.rollFormulaCount_;
selectHintId_ = other.selectHintId_;
handbookUnlockFormulaIdList_ = other.handbookUnlockFormulaIdList_.Clone();
rollFormulaCostData_ = other.rollFormulaCostData_ != null ? other.rollFormulaCostData_.Clone() : null;
rollFormulaFreeCount_ = other.rollFormulaFreeCount_;
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 "roll_formula_max_count" field.</summary>
public const int RollFormulaMaxCountFieldNumber = 11;
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 "roll_formula_count" field.</summary>
public const int RollFormulaCountFieldNumber = 15;
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 "select_hint_id" field.</summary>
public const int SelectHintIdFieldNumber = 3;
private uint selectHintId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint SelectHintId {
get { return selectHintId_; }
set {
selectHintId_ = value;
}
}
/// <summary>Field number for the "handbook_unlock_formula_id_list" field.</summary>
public const int HandbookUnlockFormulaIdListFieldNumber = 10;
private static readonly pb::FieldCodec<uint> _repeated_handbookUnlockFormulaIdList_codec
= pb::FieldCodec.ForUInt32(82);
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 "roll_formula_cost_data" field.</summary>
public const int RollFormulaCostDataFieldNumber = 8;
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 "roll_formula_free_count" field.</summary>
public const int RollFormulaFreeCountFieldNumber = 13;
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 "can_roll" field.</summary>
public const int CanRollFieldNumber = 1;
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 "select_formula_id_list" field.</summary>
public const int SelectFormulaIdListFieldNumber = 2;
private static readonly pb::FieldCodec<uint> _repeated_selectFormulaIdList_codec
= pb::FieldCodec.ForUInt32(18);
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 (RollFormulaMaxCount != other.RollFormulaMaxCount) return false;
if (RollFormulaCount != other.RollFormulaCount) return false;
if (SelectHintId != other.SelectHintId) return false;
if(!handbookUnlockFormulaIdList_.Equals(other.handbookUnlockFormulaIdList_)) return false;
if (!object.Equals(RollFormulaCostData, other.RollFormulaCostData)) return false;
if (RollFormulaFreeCount != other.RollFormulaFreeCount) 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;
if (RollFormulaMaxCount != 0) hash ^= RollFormulaMaxCount.GetHashCode();
if (RollFormulaCount != 0) hash ^= RollFormulaCount.GetHashCode();
if (SelectHintId != 0) hash ^= SelectHintId.GetHashCode();
hash ^= handbookUnlockFormulaIdList_.GetHashCode();
if (rollFormulaCostData_ != null) hash ^= RollFormulaCostData.GetHashCode();
if (RollFormulaFreeCount != 0) hash ^= RollFormulaFreeCount.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
if (CanRoll != false) {
output.WriteRawTag(8);
output.WriteBool(CanRoll);
}
selectFormulaIdList_.WriteTo(output, _repeated_selectFormulaIdList_codec);
if (SelectHintId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(SelectHintId);
}
if (rollFormulaCostData_ != null) {
output.WriteRawTag(66);
output.WriteMessage(RollFormulaCostData);
}
handbookUnlockFormulaIdList_.WriteTo(output, _repeated_handbookUnlockFormulaIdList_codec);
if (RollFormulaMaxCount != 0) {
output.WriteRawTag(88);
output.WriteUInt32(RollFormulaMaxCount);
}
if (RollFormulaFreeCount != 0) {
output.WriteRawTag(104);
output.WriteUInt32(RollFormulaFreeCount);
}
if (RollFormulaCount != 0) {
output.WriteRawTag(120);
output.WriteUInt32(RollFormulaCount);
}
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 (CanRoll != false) {
output.WriteRawTag(8);
output.WriteBool(CanRoll);
}
selectFormulaIdList_.WriteTo(ref output, _repeated_selectFormulaIdList_codec);
if (SelectHintId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(SelectHintId);
}
if (rollFormulaCostData_ != null) {
output.WriteRawTag(66);
output.WriteMessage(RollFormulaCostData);
}
handbookUnlockFormulaIdList_.WriteTo(ref output, _repeated_handbookUnlockFormulaIdList_codec);
if (RollFormulaMaxCount != 0) {
output.WriteRawTag(88);
output.WriteUInt32(RollFormulaMaxCount);
}
if (RollFormulaFreeCount != 0) {
output.WriteRawTag(104);
output.WriteUInt32(RollFormulaFreeCount);
}
if (RollFormulaCount != 0) {
output.WriteRawTag(120);
output.WriteUInt32(RollFormulaCount);
}
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 (RollFormulaMaxCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollFormulaMaxCount);
}
if (RollFormulaCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollFormulaCount);
}
if (SelectHintId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SelectHintId);
}
size += handbookUnlockFormulaIdList_.CalculateSize(_repeated_handbookUnlockFormulaIdList_codec);
if (rollFormulaCostData_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(RollFormulaCostData);
}
if (RollFormulaFreeCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RollFormulaFreeCount);
}
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;
}
if (other.RollFormulaMaxCount != 0) {
RollFormulaMaxCount = other.RollFormulaMaxCount;
}
if (other.RollFormulaCount != 0) {
RollFormulaCount = other.RollFormulaCount;
}
if (other.SelectHintId != 0) {
SelectHintId = other.SelectHintId;
}
handbookUnlockFormulaIdList_.Add(other.handbookUnlockFormulaIdList_);
if (other.rollFormulaCostData_ != null) {
if (rollFormulaCostData_ == null) {
RollFormulaCostData = new global::EggLink.DanhengServer.Proto.ItemCostData();
}
RollFormulaCostData.MergeFrom(other.RollFormulaCostData);
}
if (other.RollFormulaFreeCount != 0) {
RollFormulaFreeCount = other.RollFormulaFreeCount;
}
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 8: {
CanRoll = input.ReadBool();
break;
}
case 18:
case 16: {
selectFormulaIdList_.AddEntriesFrom(input, _repeated_selectFormulaIdList_codec);
break;
}
case 24: {
SelectHintId = input.ReadUInt32();
break;
}
case 66: {
if (rollFormulaCostData_ == null) {
RollFormulaCostData = new global::EggLink.DanhengServer.Proto.ItemCostData();
}
input.ReadMessage(RollFormulaCostData);
break;
}
case 82:
case 80: {
handbookUnlockFormulaIdList_.AddEntriesFrom(input, _repeated_handbookUnlockFormulaIdList_codec);
break;
}
case 88: {
RollFormulaMaxCount = input.ReadUInt32();
break;
}
case 104: {
RollFormulaFreeCount = input.ReadUInt32();
break;
}
case 120: {
RollFormulaCount = 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 8: {
CanRoll = input.ReadBool();
break;
}
case 18:
case 16: {
selectFormulaIdList_.AddEntriesFrom(ref input, _repeated_selectFormulaIdList_codec);
break;
}
case 24: {
SelectHintId = input.ReadUInt32();
break;
}
case 66: {
if (rollFormulaCostData_ == null) {
RollFormulaCostData = new global::EggLink.DanhengServer.Proto.ItemCostData();
}
input.ReadMessage(RollFormulaCostData);
break;
}
case 82:
case 80: {
handbookUnlockFormulaIdList_.AddEntriesFrom(ref input, _repeated_handbookUnlockFormulaIdList_codec);
break;
}
case 88: {
RollFormulaMaxCount = input.ReadUInt32();
break;
}
case 104: {
RollFormulaFreeCount = input.ReadUInt32();
break;
}
case 120: {
RollFormulaCount = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code