Files
Novaria/Novaria.Common/Protos/WorldClass.cs

466 lines
14 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WorldClass.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 Nova.Client {
/// <summary>Holder for reflection information generated from WorldClass.proto</summary>
public static partial class WorldClassReflection {
#region Descriptor
/// <summary>File descriptor for WorldClass.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static WorldClassReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChBXb3JsZENsYXNzLnByb3RvIoEBCgpXb3JsZENsYXNzEgwKBHJhbmsYASAB",
"KAUSCwoDZXhwGAIgASgFEg0KBWxpbWl0GAMgASgFEg0KBWFkZGVkGAQgASgF",
"EhQKDGRvdWJsZV9jb3VudBgFIAEoBRIOCgZyZXdhcmQYBiABKAkSFAoMcmV3",
"YXJkX2xpbWl0GAcgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.WorldClass), global::Nova.Client.WorldClass.Parser, new[]{ "Rank", "Exp", "Limit", "Added", "DoubleCount", "Reward", "RewardLimit" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class WorldClass : pb::IMessage<WorldClass>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<WorldClass> _parser = new pb::MessageParser<WorldClass>(() => new WorldClass());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<WorldClass> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Nova.Client.WorldClassReflection.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 WorldClass() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WorldClass(WorldClass other) : this() {
rank_ = other.rank_;
exp_ = other.exp_;
limit_ = other.limit_;
added_ = other.added_;
doubleCount_ = other.doubleCount_;
reward_ = other.reward_;
rewardLimit_ = other.rewardLimit_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WorldClass Clone() {
return new WorldClass(this);
}
/// <summary>Field number for the "rank" field.</summary>
public const int RankFieldNumber = 1;
private int rank_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Rank {
get { return rank_; }
set {
rank_ = value;
}
}
/// <summary>Field number for the "exp" field.</summary>
public const int ExpFieldNumber = 2;
private int exp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Exp {
get { return exp_; }
set {
exp_ = value;
}
}
/// <summary>Field number for the "limit" field.</summary>
public const int LimitFieldNumber = 3;
private int limit_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Limit {
get { return limit_; }
set {
limit_ = value;
}
}
/// <summary>Field number for the "added" field.</summary>
public const int AddedFieldNumber = 4;
private int added_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Added {
get { return added_; }
set {
added_ = value;
}
}
/// <summary>Field number for the "double_count" field.</summary>
public const int DoubleCountFieldNumber = 5;
private int doubleCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int DoubleCount {
get { return doubleCount_; }
set {
doubleCount_ = value;
}
}
/// <summary>Field number for the "reward" field.</summary>
public const int RewardFieldNumber = 6;
private string reward_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Reward {
get { return reward_; }
set {
reward_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "reward_limit" field.</summary>
public const int RewardLimitFieldNumber = 7;
private int rewardLimit_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RewardLimit {
get { return rewardLimit_; }
set {
rewardLimit_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as WorldClass);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WorldClass other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Rank != other.Rank) return false;
if (Exp != other.Exp) return false;
if (Limit != other.Limit) return false;
if (Added != other.Added) return false;
if (DoubleCount != other.DoubleCount) return false;
if (Reward != other.Reward) return false;
if (RewardLimit != other.RewardLimit) 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 (Rank != 0) hash ^= Rank.GetHashCode();
if (Exp != 0) hash ^= Exp.GetHashCode();
if (Limit != 0) hash ^= Limit.GetHashCode();
if (Added != 0) hash ^= Added.GetHashCode();
if (DoubleCount != 0) hash ^= DoubleCount.GetHashCode();
if (Reward.Length != 0) hash ^= Reward.GetHashCode();
if (RewardLimit != 0) hash ^= RewardLimit.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 (Rank != 0) {
output.WriteRawTag(8);
output.WriteInt32(Rank);
}
if (Exp != 0) {
output.WriteRawTag(16);
output.WriteInt32(Exp);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Added != 0) {
output.WriteRawTag(32);
output.WriteInt32(Added);
}
if (DoubleCount != 0) {
output.WriteRawTag(40);
output.WriteInt32(DoubleCount);
}
if (Reward.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Reward);
}
if (RewardLimit != 0) {
output.WriteRawTag(56);
output.WriteInt32(RewardLimit);
}
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 (Rank != 0) {
output.WriteRawTag(8);
output.WriteInt32(Rank);
}
if (Exp != 0) {
output.WriteRawTag(16);
output.WriteInt32(Exp);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Added != 0) {
output.WriteRawTag(32);
output.WriteInt32(Added);
}
if (DoubleCount != 0) {
output.WriteRawTag(40);
output.WriteInt32(DoubleCount);
}
if (Reward.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Reward);
}
if (RewardLimit != 0) {
output.WriteRawTag(56);
output.WriteInt32(RewardLimit);
}
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 (Rank != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank);
}
if (Exp != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp);
}
if (Limit != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit);
}
if (Added != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Added);
}
if (DoubleCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DoubleCount);
}
if (Reward.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Reward);
}
if (RewardLimit != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardLimit);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WorldClass other) {
if (other == null) {
return;
}
if (other.Rank != 0) {
Rank = other.Rank;
}
if (other.Exp != 0) {
Exp = other.Exp;
}
if (other.Limit != 0) {
Limit = other.Limit;
}
if (other.Added != 0) {
Added = other.Added;
}
if (other.DoubleCount != 0) {
DoubleCount = other.DoubleCount;
}
if (other.Reward.Length != 0) {
Reward = other.Reward;
}
if (other.RewardLimit != 0) {
RewardLimit = other.RewardLimit;
}
_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) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Rank = input.ReadInt32();
break;
}
case 16: {
Exp = input.ReadInt32();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Added = input.ReadInt32();
break;
}
case 40: {
DoubleCount = input.ReadInt32();
break;
}
case 50: {
Reward = input.ReadString();
break;
}
case 56: {
RewardLimit = input.ReadInt32();
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) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Rank = input.ReadInt32();
break;
}
case 16: {
Exp = input.ReadInt32();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Added = input.ReadInt32();
break;
}
case 40: {
DoubleCount = input.ReadInt32();
break;
}
case 50: {
Reward = input.ReadString();
break;
}
case 56: {
RewardLimit = input.ReadInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code