Files
DanhengServer-OpenSource/Proto/BenefitItemConfig.cs
2025-04-19 11:45:24 +08:00

402 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BenefitItemConfig.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 BenefitItemConfig.proto</summary>
public static partial class BenefitItemConfigReflection {
#region Descriptor
/// <summary>File descriptor for BenefitItemConfig.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static BenefitItemConfigReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChdCZW5lZml0SXRlbUNvbmZpZy5wcm90bxoXQmVuZWZpdFJld2FyZEl0ZW0u",
"cHJvdG8aEkx1Y2t5S29pSW5mby5wcm90byLEAQoRQmVuZWZpdEl0ZW1Db25m",
"aWcSMwoXcm9ndWVfc2NvcmVfcmV3YXJkX2luZm8YCyADKAsyEi5CZW5lZml0",
"UmV3YXJkSXRlbRIlCg5sdWNreV9rb2lfbGlzdBgFIAMoCzINLkx1Y2t5S29p",
"SW5mbxIQCghlbmRfdGltZRgPIAEoBBISCgpiZWdpbl90aW1lGAEgASgEEhgK",
"EHJldmVhbF9udW1fbGltaXQYDSABKA0SEwoLcmV2ZWFsX3RpbWUYAyABKARC",
"HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BenefitRewardItemReflection.Descriptor, global::EggLink.DanhengServer.Proto.LuckyKoiInfoReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BenefitItemConfig), global::EggLink.DanhengServer.Proto.BenefitItemConfig.Parser, new[]{ "RogueScoreRewardInfo", "LuckyKoiList", "EndTime", "BeginTime", "RevealNumLimit", "RevealTime" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class BenefitItemConfig : pb::IMessage<BenefitItemConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BenefitItemConfig> _parser = new pb::MessageParser<BenefitItemConfig>(() => new BenefitItemConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BenefitItemConfig> 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.BenefitItemConfigReflection.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 BenefitItemConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BenefitItemConfig(BenefitItemConfig other) : this() {
rogueScoreRewardInfo_ = other.rogueScoreRewardInfo_.Clone();
luckyKoiList_ = other.luckyKoiList_.Clone();
endTime_ = other.endTime_;
beginTime_ = other.beginTime_;
revealNumLimit_ = other.revealNumLimit_;
revealTime_ = other.revealTime_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BenefitItemConfig Clone() {
return new BenefitItemConfig(this);
}
/// <summary>Field number for the "rogue_score_reward_info" field.</summary>
public const int RogueScoreRewardInfoFieldNumber = 11;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BenefitRewardItem> _repeated_rogueScoreRewardInfo_codec
= pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.BenefitRewardItem.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BenefitRewardItem> rogueScoreRewardInfo_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BenefitRewardItem>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BenefitRewardItem> RogueScoreRewardInfo {
get { return rogueScoreRewardInfo_; }
}
/// <summary>Field number for the "lucky_koi_list" field.</summary>
public const int LuckyKoiListFieldNumber = 5;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.LuckyKoiInfo> _repeated_luckyKoiList_codec
= pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.LuckyKoiInfo.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.LuckyKoiInfo> luckyKoiList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.LuckyKoiInfo>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.LuckyKoiInfo> LuckyKoiList {
get { return luckyKoiList_; }
}
/// <summary>Field number for the "end_time" field.</summary>
public const int EndTimeFieldNumber = 15;
private ulong endTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong EndTime {
get { return endTime_; }
set {
endTime_ = value;
}
}
/// <summary>Field number for the "begin_time" field.</summary>
public const int BeginTimeFieldNumber = 1;
private ulong beginTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong BeginTime {
get { return beginTime_; }
set {
beginTime_ = value;
}
}
/// <summary>Field number for the "reveal_num_limit" field.</summary>
public const int RevealNumLimitFieldNumber = 13;
private uint revealNumLimit_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint RevealNumLimit {
get { return revealNumLimit_; }
set {
revealNumLimit_ = value;
}
}
/// <summary>Field number for the "reveal_time" field.</summary>
public const int RevealTimeFieldNumber = 3;
private ulong revealTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong RevealTime {
get { return revealTime_; }
set {
revealTime_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BenefitItemConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BenefitItemConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!rogueScoreRewardInfo_.Equals(other.rogueScoreRewardInfo_)) return false;
if(!luckyKoiList_.Equals(other.luckyKoiList_)) return false;
if (EndTime != other.EndTime) return false;
if (BeginTime != other.BeginTime) return false;
if (RevealNumLimit != other.RevealNumLimit) return false;
if (RevealTime != other.RevealTime) 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 ^= rogueScoreRewardInfo_.GetHashCode();
hash ^= luckyKoiList_.GetHashCode();
if (EndTime != 0UL) hash ^= EndTime.GetHashCode();
if (BeginTime != 0UL) hash ^= BeginTime.GetHashCode();
if (RevealNumLimit != 0) hash ^= RevealNumLimit.GetHashCode();
if (RevealTime != 0UL) hash ^= RevealTime.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 (BeginTime != 0UL) {
output.WriteRawTag(8);
output.WriteUInt64(BeginTime);
}
if (RevealTime != 0UL) {
output.WriteRawTag(24);
output.WriteUInt64(RevealTime);
}
luckyKoiList_.WriteTo(output, _repeated_luckyKoiList_codec);
rogueScoreRewardInfo_.WriteTo(output, _repeated_rogueScoreRewardInfo_codec);
if (RevealNumLimit != 0) {
output.WriteRawTag(104);
output.WriteUInt32(RevealNumLimit);
}
if (EndTime != 0UL) {
output.WriteRawTag(120);
output.WriteUInt64(EndTime);
}
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 (BeginTime != 0UL) {
output.WriteRawTag(8);
output.WriteUInt64(BeginTime);
}
if (RevealTime != 0UL) {
output.WriteRawTag(24);
output.WriteUInt64(RevealTime);
}
luckyKoiList_.WriteTo(ref output, _repeated_luckyKoiList_codec);
rogueScoreRewardInfo_.WriteTo(ref output, _repeated_rogueScoreRewardInfo_codec);
if (RevealNumLimit != 0) {
output.WriteRawTag(104);
output.WriteUInt32(RevealNumLimit);
}
if (EndTime != 0UL) {
output.WriteRawTag(120);
output.WriteUInt64(EndTime);
}
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 += rogueScoreRewardInfo_.CalculateSize(_repeated_rogueScoreRewardInfo_codec);
size += luckyKoiList_.CalculateSize(_repeated_luckyKoiList_codec);
if (EndTime != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EndTime);
}
if (BeginTime != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BeginTime);
}
if (RevealNumLimit != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RevealNumLimit);
}
if (RevealTime != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RevealTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BenefitItemConfig other) {
if (other == null) {
return;
}
rogueScoreRewardInfo_.Add(other.rogueScoreRewardInfo_);
luckyKoiList_.Add(other.luckyKoiList_);
if (other.EndTime != 0UL) {
EndTime = other.EndTime;
}
if (other.BeginTime != 0UL) {
BeginTime = other.BeginTime;
}
if (other.RevealNumLimit != 0) {
RevealNumLimit = other.RevealNumLimit;
}
if (other.RevealTime != 0UL) {
RevealTime = other.RevealTime;
}
_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: {
BeginTime = input.ReadUInt64();
break;
}
case 24: {
RevealTime = input.ReadUInt64();
break;
}
case 42: {
luckyKoiList_.AddEntriesFrom(input, _repeated_luckyKoiList_codec);
break;
}
case 90: {
rogueScoreRewardInfo_.AddEntriesFrom(input, _repeated_rogueScoreRewardInfo_codec);
break;
}
case 104: {
RevealNumLimit = input.ReadUInt32();
break;
}
case 120: {
EndTime = input.ReadUInt64();
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: {
BeginTime = input.ReadUInt64();
break;
}
case 24: {
RevealTime = input.ReadUInt64();
break;
}
case 42: {
luckyKoiList_.AddEntriesFrom(ref input, _repeated_luckyKoiList_codec);
break;
}
case 90: {
rogueScoreRewardInfo_.AddEntriesFrom(ref input, _repeated_rogueScoreRewardInfo_codec);
break;
}
case 104: {
RevealNumLimit = input.ReadUInt32();
break;
}
case 120: {
EndTime = input.ReadUInt64();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code