Files
Novaria/Novaria.Common/Protos/NPCConfig.cs

635 lines
20 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: NPCConfig.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 NPCConfig.proto</summary>
public static partial class NPCConfigReflection {
#region Descriptor
/// <summary>File descriptor for NPCConfig.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static NPCConfigReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cg9OUENDb25maWcucHJvdG8i1AEKCU5QQ0NvbmZpZxIKCgJpZBgBIAEoBRIM",
"CgR0eXBlGAIgASgFEgwKBG5hbWUYAyABKAkSDAoEZGVzYxgEIAEoCRIQCghs",
"aXRlcmFyeRgFIAEoCRIVCg1yZWZyZXNoX3BvaW50GAYgASgFEhMKC2ZpcnN0",
"X2xpbmVzGAcgASgFEg0KBWxpbmVzGAggAygFEgwKBGNoYXQYCSADKAUSEQoJ",
"Y2hhdF9wcm9wGAogASgFEhEKCWNoYXRfdGltZRgLIAEoBRIQCghuX3BfY19p",
"ZBgMIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.NPCConfig), global::Nova.Client.NPCConfig.Parser, new[]{ "Id", "Type", "Name", "Desc", "Literary", "RefreshPoint", "FirstLines", "Lines", "Chat", "ChatProp", "ChatTime", "NPCId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class NPCConfig : pb::IMessage<NPCConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<NPCConfig> _parser = new pb::MessageParser<NPCConfig>(() => new NPCConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<NPCConfig> 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.NPCConfigReflection.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 NPCConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NPCConfig(NPCConfig other) : this() {
id_ = other.id_;
type_ = other.type_;
name_ = other.name_;
desc_ = other.desc_;
literary_ = other.literary_;
refreshPoint_ = other.refreshPoint_;
firstLines_ = other.firstLines_;
lines_ = other.lines_.Clone();
chat_ = other.chat_.Clone();
chatProp_ = other.chatProp_;
chatTime_ = other.chatTime_;
nPCId_ = other.nPCId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NPCConfig Clone() {
return new NPCConfig(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 "type" field.</summary>
public const int TypeFieldNumber = 2;
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 "name" field.</summary>
public const int NameFieldNumber = 3;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "desc" field.</summary>
public const int DescFieldNumber = 4;
private string desc_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Desc {
get { return desc_; }
set {
desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "literary" field.</summary>
public const int LiteraryFieldNumber = 5;
private string literary_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Literary {
get { return literary_; }
set {
literary_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "refresh_point" field.</summary>
public const int RefreshPointFieldNumber = 6;
private int refreshPoint_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RefreshPoint {
get { return refreshPoint_; }
set {
refreshPoint_ = value;
}
}
/// <summary>Field number for the "first_lines" field.</summary>
public const int FirstLinesFieldNumber = 7;
private int firstLines_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int FirstLines {
get { return firstLines_; }
set {
firstLines_ = value;
}
}
/// <summary>Field number for the "lines" field.</summary>
public const int LinesFieldNumber = 8;
private static readonly pb::FieldCodec<int> _repeated_lines_codec
= pb::FieldCodec.ForInt32(66);
private readonly pbc::RepeatedField<int> lines_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> Lines {
get { return lines_; }
}
/// <summary>Field number for the "chat" field.</summary>
public const int ChatFieldNumber = 9;
private static readonly pb::FieldCodec<int> _repeated_chat_codec
= pb::FieldCodec.ForInt32(74);
private readonly pbc::RepeatedField<int> chat_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> Chat {
get { return chat_; }
}
/// <summary>Field number for the "chat_prop" field.</summary>
public const int ChatPropFieldNumber = 10;
private int chatProp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ChatProp {
get { return chatProp_; }
set {
chatProp_ = value;
}
}
/// <summary>Field number for the "chat_time" field.</summary>
public const int ChatTimeFieldNumber = 11;
private int chatTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ChatTime {
get { return chatTime_; }
set {
chatTime_ = value;
}
}
/// <summary>Field number for the "n_p_c_id" field.</summary>
public const int NPCIdFieldNumber = 12;
private int nPCId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NPCId {
get { return nPCId_; }
set {
nPCId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as NPCConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(NPCConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Type != other.Type) return false;
if (Name != other.Name) return false;
if (Desc != other.Desc) return false;
if (Literary != other.Literary) return false;
if (RefreshPoint != other.RefreshPoint) return false;
if (FirstLines != other.FirstLines) return false;
if(!lines_.Equals(other.lines_)) return false;
if(!chat_.Equals(other.chat_)) return false;
if (ChatProp != other.ChatProp) return false;
if (ChatTime != other.ChatTime) return false;
if (NPCId != other.NPCId) 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 (Type != 0) hash ^= Type.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Desc.Length != 0) hash ^= Desc.GetHashCode();
if (Literary.Length != 0) hash ^= Literary.GetHashCode();
if (RefreshPoint != 0) hash ^= RefreshPoint.GetHashCode();
if (FirstLines != 0) hash ^= FirstLines.GetHashCode();
hash ^= lines_.GetHashCode();
hash ^= chat_.GetHashCode();
if (ChatProp != 0) hash ^= ChatProp.GetHashCode();
if (ChatTime != 0) hash ^= ChatTime.GetHashCode();
if (NPCId != 0) hash ^= NPCId.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 (Type != 0) {
output.WriteRawTag(16);
output.WriteInt32(Type);
}
if (Name.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Name);
}
if (Desc.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Desc);
}
if (Literary.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Literary);
}
if (RefreshPoint != 0) {
output.WriteRawTag(48);
output.WriteInt32(RefreshPoint);
}
if (FirstLines != 0) {
output.WriteRawTag(56);
output.WriteInt32(FirstLines);
}
lines_.WriteTo(output, _repeated_lines_codec);
chat_.WriteTo(output, _repeated_chat_codec);
if (ChatProp != 0) {
output.WriteRawTag(80);
output.WriteInt32(ChatProp);
}
if (ChatTime != 0) {
output.WriteRawTag(88);
output.WriteInt32(ChatTime);
}
if (NPCId != 0) {
output.WriteRawTag(96);
output.WriteInt32(NPCId);
}
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 (Type != 0) {
output.WriteRawTag(16);
output.WriteInt32(Type);
}
if (Name.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Name);
}
if (Desc.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Desc);
}
if (Literary.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Literary);
}
if (RefreshPoint != 0) {
output.WriteRawTag(48);
output.WriteInt32(RefreshPoint);
}
if (FirstLines != 0) {
output.WriteRawTag(56);
output.WriteInt32(FirstLines);
}
lines_.WriteTo(ref output, _repeated_lines_codec);
chat_.WriteTo(ref output, _repeated_chat_codec);
if (ChatProp != 0) {
output.WriteRawTag(80);
output.WriteInt32(ChatProp);
}
if (ChatTime != 0) {
output.WriteRawTag(88);
output.WriteInt32(ChatTime);
}
if (NPCId != 0) {
output.WriteRawTag(96);
output.WriteInt32(NPCId);
}
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 (Type != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Desc.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc);
}
if (Literary.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Literary);
}
if (RefreshPoint != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshPoint);
}
if (FirstLines != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(FirstLines);
}
size += lines_.CalculateSize(_repeated_lines_codec);
size += chat_.CalculateSize(_repeated_chat_codec);
if (ChatProp != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChatProp);
}
if (ChatTime != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChatTime);
}
if (NPCId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NPCId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(NPCConfig other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Type != 0) {
Type = other.Type;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Desc.Length != 0) {
Desc = other.Desc;
}
if (other.Literary.Length != 0) {
Literary = other.Literary;
}
if (other.RefreshPoint != 0) {
RefreshPoint = other.RefreshPoint;
}
if (other.FirstLines != 0) {
FirstLines = other.FirstLines;
}
lines_.Add(other.lines_);
chat_.Add(other.chat_);
if (other.ChatProp != 0) {
ChatProp = other.ChatProp;
}
if (other.ChatTime != 0) {
ChatTime = other.ChatTime;
}
if (other.NPCId != 0) {
NPCId = other.NPCId;
}
_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: {
Type = input.ReadInt32();
break;
}
case 26: {
Name = input.ReadString();
break;
}
case 34: {
Desc = input.ReadString();
break;
}
case 42: {
Literary = input.ReadString();
break;
}
case 48: {
RefreshPoint = input.ReadInt32();
break;
}
case 56: {
FirstLines = input.ReadInt32();
break;
}
case 66:
case 64: {
lines_.AddEntriesFrom(input, _repeated_lines_codec);
break;
}
case 74:
case 72: {
chat_.AddEntriesFrom(input, _repeated_chat_codec);
break;
}
case 80: {
ChatProp = input.ReadInt32();
break;
}
case 88: {
ChatTime = input.ReadInt32();
break;
}
case 96: {
NPCId = 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: {
Type = input.ReadInt32();
break;
}
case 26: {
Name = input.ReadString();
break;
}
case 34: {
Desc = input.ReadString();
break;
}
case 42: {
Literary = input.ReadString();
break;
}
case 48: {
RefreshPoint = input.ReadInt32();
break;
}
case 56: {
FirstLines = input.ReadInt32();
break;
}
case 66:
case 64: {
lines_.AddEntriesFrom(ref input, _repeated_lines_codec);
break;
}
case 74:
case 72: {
chat_.AddEntriesFrom(ref input, _repeated_chat_codec);
break;
}
case 80: {
ChatProp = input.ReadInt32();
break;
}
case 88: {
ChatTime = input.ReadInt32();
break;
}
case 96: {
NPCId = input.ReadInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code