Files
DanhengServer-OpenSource/Proto/RogueTournAreaInfo.cs

376 lines
13 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RogueTournAreaInfo.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 RogueTournAreaInfo.proto</summary>
public static partial class RogueTournAreaInfoReflection {
#region Descriptor
/// <summary>File descriptor for RogueTournAreaInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RogueTournAreaInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChhSb2d1ZVRvdXJuQXJlYUluZm8ucHJvdG8ijAEKElJvZ3VlVG91cm5BcmVh",
"SW5mbxImCh51bmxvY2tlZF90b3Vybl9kaWZmaWN1bHR5X2xpc3QYDSADKA0S",
"EQoJaXNfZmluaXNoGAYgASgIEhcKD2lzX3Rha2VuX3Jld2FyZBgIIAEoCBIR",
"Cglpc191bmxvY2sYCSABKAgSDwoHYXJlYV9pZBgDIAEoDUIeqgIbRWdnTGlu",
"ay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueTournAreaInfo), global::EggLink.DanhengServer.Proto.RogueTournAreaInfo.Parser, new[]{ "UnlockedTournDifficultyList", "IsFinish", "IsTakenReward", "IsUnlock", "AreaId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class RogueTournAreaInfo : pb::IMessage<RogueTournAreaInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<RogueTournAreaInfo> _parser = new pb::MessageParser<RogueTournAreaInfo>(() => new RogueTournAreaInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<RogueTournAreaInfo> 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.RogueTournAreaInfoReflection.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 RogueTournAreaInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueTournAreaInfo(RogueTournAreaInfo other) : this() {
unlockedTournDifficultyList_ = other.unlockedTournDifficultyList_.Clone();
isFinish_ = other.isFinish_;
isTakenReward_ = other.isTakenReward_;
isUnlock_ = other.isUnlock_;
areaId_ = other.areaId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueTournAreaInfo Clone() {
return new RogueTournAreaInfo(this);
}
/// <summary>Field number for the "unlocked_tourn_difficulty_list" field.</summary>
public const int UnlockedTournDifficultyListFieldNumber = 13;
private static readonly pb::FieldCodec<uint> _repeated_unlockedTournDifficultyList_codec
= pb::FieldCodec.ForUInt32(106);
private readonly pbc::RepeatedField<uint> unlockedTournDifficultyList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> UnlockedTournDifficultyList {
get { return unlockedTournDifficultyList_; }
}
/// <summary>Field number for the "is_finish" field.</summary>
public const int IsFinishFieldNumber = 6;
private bool isFinish_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsFinish {
get { return isFinish_; }
set {
isFinish_ = value;
}
}
/// <summary>Field number for the "is_taken_reward" field.</summary>
public const int IsTakenRewardFieldNumber = 8;
private bool isTakenReward_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsTakenReward {
get { return isTakenReward_; }
set {
isTakenReward_ = value;
}
}
/// <summary>Field number for the "is_unlock" field.</summary>
public const int IsUnlockFieldNumber = 9;
private bool isUnlock_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsUnlock {
get { return isUnlock_; }
set {
isUnlock_ = value;
}
}
/// <summary>Field number for the "area_id" field.</summary>
public const int AreaIdFieldNumber = 3;
private uint areaId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint AreaId {
get { return areaId_; }
set {
areaId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as RogueTournAreaInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RogueTournAreaInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!unlockedTournDifficultyList_.Equals(other.unlockedTournDifficultyList_)) return false;
if (IsFinish != other.IsFinish) return false;
if (IsTakenReward != other.IsTakenReward) return false;
if (IsUnlock != other.IsUnlock) return false;
if (AreaId != other.AreaId) 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 ^= unlockedTournDifficultyList_.GetHashCode();
if (IsFinish != false) hash ^= IsFinish.GetHashCode();
if (IsTakenReward != false) hash ^= IsTakenReward.GetHashCode();
if (IsUnlock != false) hash ^= IsUnlock.GetHashCode();
if (AreaId != 0) hash ^= AreaId.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 (AreaId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(AreaId);
}
if (IsFinish != false) {
output.WriteRawTag(48);
output.WriteBool(IsFinish);
}
if (IsTakenReward != false) {
output.WriteRawTag(64);
output.WriteBool(IsTakenReward);
}
if (IsUnlock != false) {
output.WriteRawTag(72);
output.WriteBool(IsUnlock);
}
unlockedTournDifficultyList_.WriteTo(output, _repeated_unlockedTournDifficultyList_codec);
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 (AreaId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(AreaId);
}
if (IsFinish != false) {
output.WriteRawTag(48);
output.WriteBool(IsFinish);
}
if (IsTakenReward != false) {
output.WriteRawTag(64);
output.WriteBool(IsTakenReward);
}
if (IsUnlock != false) {
output.WriteRawTag(72);
output.WriteBool(IsUnlock);
}
unlockedTournDifficultyList_.WriteTo(ref output, _repeated_unlockedTournDifficultyList_codec);
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 += unlockedTournDifficultyList_.CalculateSize(_repeated_unlockedTournDifficultyList_codec);
if (IsFinish != false) {
size += 1 + 1;
}
if (IsTakenReward != false) {
size += 1 + 1;
}
if (IsUnlock != false) {
size += 1 + 1;
}
if (AreaId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AreaId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(RogueTournAreaInfo other) {
if (other == null) {
return;
}
unlockedTournDifficultyList_.Add(other.unlockedTournDifficultyList_);
if (other.IsFinish != false) {
IsFinish = other.IsFinish;
}
if (other.IsTakenReward != false) {
IsTakenReward = other.IsTakenReward;
}
if (other.IsUnlock != false) {
IsUnlock = other.IsUnlock;
}
if (other.AreaId != 0) {
AreaId = other.AreaId;
}
_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: {
AreaId = input.ReadUInt32();
break;
}
case 48: {
IsFinish = input.ReadBool();
break;
}
case 64: {
IsTakenReward = input.ReadBool();
break;
}
case 72: {
IsUnlock = input.ReadBool();
break;
}
case 106:
case 104: {
unlockedTournDifficultyList_.AddEntriesFrom(input, _repeated_unlockedTournDifficultyList_codec);
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: {
AreaId = input.ReadUInt32();
break;
}
case 48: {
IsFinish = input.ReadBool();
break;
}
case 64: {
IsTakenReward = input.ReadBool();
break;
}
case 72: {
IsUnlock = input.ReadBool();
break;
}
case 106:
case 104: {
unlockedTournDifficultyList_.AddEntriesFrom(ref input, _repeated_unlockedTournDifficultyList_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code