mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-15 16:04:48 +01:00
429 lines
13 KiB
C#
429 lines
13 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Handbook.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 Handbook.proto</summary>
|
|
public static partial class HandbookReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for Handbook.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static HandbookReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cg5IYW5kYm9vay5wcm90byJjCghIYW5kYm9vaxIKCgJpZBgBIAEoBRINCgVp",
|
|
"bmRleBgCIAEoBRIMCgR0eXBlGAMgASgFEg8KB2NoYXJfaWQYBCABKAUSDwoH",
|
|
"c2tpbl9pZBgFIAEoBRIMCgRjb25kGAYgASgFQg6qAgtOb3ZhLkNsaWVudGIG",
|
|
"cHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Handbook), global::Nova.Client.Handbook.Parser, new[]{ "Id", "Index", "Type", "CharId", "SkinId", "Cond" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Handbook : pb::IMessage<Handbook>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Handbook> _parser = new pb::MessageParser<Handbook>(() => new Handbook());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Handbook> 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.HandbookReflection.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 Handbook() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Handbook(Handbook other) : this() {
|
|
id_ = other.id_;
|
|
index_ = other.index_;
|
|
type_ = other.type_;
|
|
charId_ = other.charId_;
|
|
skinId_ = other.skinId_;
|
|
cond_ = other.cond_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Handbook Clone() {
|
|
return new Handbook(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private int id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "index" field.</summary>
|
|
public const int IndexFieldNumber = 2;
|
|
private int index_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Index {
|
|
get { return index_; }
|
|
set {
|
|
index_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "type" field.</summary>
|
|
public const int TypeFieldNumber = 3;
|
|
private int type_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Type {
|
|
get { return type_; }
|
|
set {
|
|
type_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "char_id" field.</summary>
|
|
public const int CharIdFieldNumber = 4;
|
|
private int charId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CharId {
|
|
get { return charId_; }
|
|
set {
|
|
charId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "skin_id" field.</summary>
|
|
public const int SkinIdFieldNumber = 5;
|
|
private int skinId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int SkinId {
|
|
get { return skinId_; }
|
|
set {
|
|
skinId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cond" field.</summary>
|
|
public const int CondFieldNumber = 6;
|
|
private int cond_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Cond {
|
|
get { return cond_; }
|
|
set {
|
|
cond_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Handbook);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Handbook other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (Index != other.Index) return false;
|
|
if (Type != other.Type) return false;
|
|
if (CharId != other.CharId) return false;
|
|
if (SkinId != other.SkinId) return false;
|
|
if (Cond != other.Cond) 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 (Id != 0) hash ^= Id.GetHashCode();
|
|
if (Index != 0) hash ^= Index.GetHashCode();
|
|
if (Type != 0) hash ^= Type.GetHashCode();
|
|
if (CharId != 0) hash ^= CharId.GetHashCode();
|
|
if (SkinId != 0) hash ^= SkinId.GetHashCode();
|
|
if (Cond != 0) hash ^= Cond.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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Id);
|
|
}
|
|
if (Index != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(Index);
|
|
}
|
|
if (Type != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(Type);
|
|
}
|
|
if (CharId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(CharId);
|
|
}
|
|
if (SkinId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(SkinId);
|
|
}
|
|
if (Cond != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(Cond);
|
|
}
|
|
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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Id);
|
|
}
|
|
if (Index != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(Index);
|
|
}
|
|
if (Type != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(Type);
|
|
}
|
|
if (CharId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(CharId);
|
|
}
|
|
if (SkinId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(SkinId);
|
|
}
|
|
if (Cond != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(Cond);
|
|
}
|
|
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 (Id != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
|
|
}
|
|
if (Index != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
|
|
}
|
|
if (Type != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
|
|
}
|
|
if (CharId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId);
|
|
}
|
|
if (SkinId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkinId);
|
|
}
|
|
if (Cond != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cond);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Handbook other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.Index != 0) {
|
|
Index = other.Index;
|
|
}
|
|
if (other.Type != 0) {
|
|
Type = other.Type;
|
|
}
|
|
if (other.CharId != 0) {
|
|
CharId = other.CharId;
|
|
}
|
|
if (other.SkinId != 0) {
|
|
SkinId = other.SkinId;
|
|
}
|
|
if (other.Cond != 0) {
|
|
Cond = other.Cond;
|
|
}
|
|
_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: {
|
|
Id = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Index = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Type = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
CharId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
SkinId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Cond = 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: {
|
|
Id = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Index = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Type = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
CharId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
SkinId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Cond = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|