Files
Novaria/NTR.Common/protos/CharacterDes.cs
2025-01-08 20:08:36 -05:00

589 lines
20 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CharacterDes.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 CharacterDes.proto</summary>
public static partial class CharacterDesReflection {
#region Descriptor
/// <summary>File descriptor for CharacterDes.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static CharacterDesReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChJDaGFyYWN0ZXJEZXMucHJvdG8iywEKDENoYXJhY3RlckRlcxIKCgJpZBgB",
"IAEoBRINCgVhbGlhcxgCIAEoCRINCgVjbl9jdhgDIAEoCRINCgVqcF9jdhgE",
"IAEoCRISCgpjaGFyX2NvbG9yGAUgASgJEhgKEGNoYXJfc2tpbGxfY29sb3IY",
"BiABKAkSEAoIY2hhcl9kZXMYByABKAkSCwoDdGFnGAggAygFEg0KBWZvcmNl",
"GAkgASgFEhMKC3ByZWZlcl90YWdzGAogAygFEhEKCWhhdGVfdGFncxgLIAMo",
"BUIOqgILTm92YS5DbGllbnRiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.CharacterDes), global::Nova.Client.CharacterDes.Parser, new[]{ "Id", "Alias", "CnCv", "JpCv", "CharColor", "CharSkillColor", "CharDes", "Tag", "Force", "PreferTags", "HateTags" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class CharacterDes : pb::IMessage<CharacterDes>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CharacterDes> _parser = new pb::MessageParser<CharacterDes>(() => new CharacterDes());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<CharacterDes> 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.CharacterDesReflection.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 CharacterDes() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CharacterDes(CharacterDes other) : this() {
id_ = other.id_;
alias_ = other.alias_;
cnCv_ = other.cnCv_;
jpCv_ = other.jpCv_;
charColor_ = other.charColor_;
charSkillColor_ = other.charSkillColor_;
charDes_ = other.charDes_;
tag_ = other.tag_.Clone();
force_ = other.force_;
preferTags_ = other.preferTags_.Clone();
hateTags_ = other.hateTags_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CharacterDes Clone() {
return new CharacterDes(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 "alias" field.</summary>
public const int AliasFieldNumber = 2;
private string alias_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Alias {
get { return alias_; }
set {
alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "cn_cv" field.</summary>
public const int CnCvFieldNumber = 3;
private string cnCv_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CnCv {
get { return cnCv_; }
set {
cnCv_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "jp_cv" field.</summary>
public const int JpCvFieldNumber = 4;
private string jpCv_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string JpCv {
get { return jpCv_; }
set {
jpCv_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "char_color" field.</summary>
public const int CharColorFieldNumber = 5;
private string charColor_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CharColor {
get { return charColor_; }
set {
charColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "char_skill_color" field.</summary>
public const int CharSkillColorFieldNumber = 6;
private string charSkillColor_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CharSkillColor {
get { return charSkillColor_; }
set {
charSkillColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "char_des" field.</summary>
public const int CharDesFieldNumber = 7;
private string charDes_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CharDes {
get { return charDes_; }
set {
charDes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "tag" field.</summary>
public const int TagFieldNumber = 8;
private static readonly pb::FieldCodec<int> _repeated_tag_codec
= pb::FieldCodec.ForInt32(66);
private readonly pbc::RepeatedField<int> tag_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> Tag {
get { return tag_; }
}
/// <summary>Field number for the "force" field.</summary>
public const int ForceFieldNumber = 9;
private int force_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Force {
get { return force_; }
set {
force_ = value;
}
}
/// <summary>Field number for the "prefer_tags" field.</summary>
public const int PreferTagsFieldNumber = 10;
private static readonly pb::FieldCodec<int> _repeated_preferTags_codec
= pb::FieldCodec.ForInt32(82);
private readonly pbc::RepeatedField<int> preferTags_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> PreferTags {
get { return preferTags_; }
}
/// <summary>Field number for the "hate_tags" field.</summary>
public const int HateTagsFieldNumber = 11;
private static readonly pb::FieldCodec<int> _repeated_hateTags_codec
= pb::FieldCodec.ForInt32(90);
private readonly pbc::RepeatedField<int> hateTags_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> HateTags {
get { return hateTags_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CharacterDes);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CharacterDes other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Alias != other.Alias) return false;
if (CnCv != other.CnCv) return false;
if (JpCv != other.JpCv) return false;
if (CharColor != other.CharColor) return false;
if (CharSkillColor != other.CharSkillColor) return false;
if (CharDes != other.CharDes) return false;
if(!tag_.Equals(other.tag_)) return false;
if (Force != other.Force) return false;
if(!preferTags_.Equals(other.preferTags_)) return false;
if(!hateTags_.Equals(other.hateTags_)) 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 (Alias.Length != 0) hash ^= Alias.GetHashCode();
if (CnCv.Length != 0) hash ^= CnCv.GetHashCode();
if (JpCv.Length != 0) hash ^= JpCv.GetHashCode();
if (CharColor.Length != 0) hash ^= CharColor.GetHashCode();
if (CharSkillColor.Length != 0) hash ^= CharSkillColor.GetHashCode();
if (CharDes.Length != 0) hash ^= CharDes.GetHashCode();
hash ^= tag_.GetHashCode();
if (Force != 0) hash ^= Force.GetHashCode();
hash ^= preferTags_.GetHashCode();
hash ^= hateTags_.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 (Alias.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Alias);
}
if (CnCv.Length != 0) {
output.WriteRawTag(26);
output.WriteString(CnCv);
}
if (JpCv.Length != 0) {
output.WriteRawTag(34);
output.WriteString(JpCv);
}
if (CharColor.Length != 0) {
output.WriteRawTag(42);
output.WriteString(CharColor);
}
if (CharSkillColor.Length != 0) {
output.WriteRawTag(50);
output.WriteString(CharSkillColor);
}
if (CharDes.Length != 0) {
output.WriteRawTag(58);
output.WriteString(CharDes);
}
tag_.WriteTo(output, _repeated_tag_codec);
if (Force != 0) {
output.WriteRawTag(72);
output.WriteInt32(Force);
}
preferTags_.WriteTo(output, _repeated_preferTags_codec);
hateTags_.WriteTo(output, _repeated_hateTags_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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Alias.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Alias);
}
if (CnCv.Length != 0) {
output.WriteRawTag(26);
output.WriteString(CnCv);
}
if (JpCv.Length != 0) {
output.WriteRawTag(34);
output.WriteString(JpCv);
}
if (CharColor.Length != 0) {
output.WriteRawTag(42);
output.WriteString(CharColor);
}
if (CharSkillColor.Length != 0) {
output.WriteRawTag(50);
output.WriteString(CharSkillColor);
}
if (CharDes.Length != 0) {
output.WriteRawTag(58);
output.WriteString(CharDes);
}
tag_.WriteTo(ref output, _repeated_tag_codec);
if (Force != 0) {
output.WriteRawTag(72);
output.WriteInt32(Force);
}
preferTags_.WriteTo(ref output, _repeated_preferTags_codec);
hateTags_.WriteTo(ref output, _repeated_hateTags_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;
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Alias.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias);
}
if (CnCv.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CnCv);
}
if (JpCv.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(JpCv);
}
if (CharColor.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CharColor);
}
if (CharSkillColor.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CharSkillColor);
}
if (CharDes.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CharDes);
}
size += tag_.CalculateSize(_repeated_tag_codec);
if (Force != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Force);
}
size += preferTags_.CalculateSize(_repeated_preferTags_codec);
size += hateTags_.CalculateSize(_repeated_hateTags_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CharacterDes other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Alias.Length != 0) {
Alias = other.Alias;
}
if (other.CnCv.Length != 0) {
CnCv = other.CnCv;
}
if (other.JpCv.Length != 0) {
JpCv = other.JpCv;
}
if (other.CharColor.Length != 0) {
CharColor = other.CharColor;
}
if (other.CharSkillColor.Length != 0) {
CharSkillColor = other.CharSkillColor;
}
if (other.CharDes.Length != 0) {
CharDes = other.CharDes;
}
tag_.Add(other.tag_);
if (other.Force != 0) {
Force = other.Force;
}
preferTags_.Add(other.preferTags_);
hateTags_.Add(other.hateTags_);
_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 18: {
Alias = input.ReadString();
break;
}
case 26: {
CnCv = input.ReadString();
break;
}
case 34: {
JpCv = input.ReadString();
break;
}
case 42: {
CharColor = input.ReadString();
break;
}
case 50: {
CharSkillColor = input.ReadString();
break;
}
case 58: {
CharDes = input.ReadString();
break;
}
case 66:
case 64: {
tag_.AddEntriesFrom(input, _repeated_tag_codec);
break;
}
case 72: {
Force = input.ReadInt32();
break;
}
case 82:
case 80: {
preferTags_.AddEntriesFrom(input, _repeated_preferTags_codec);
break;
}
case 90:
case 88: {
hateTags_.AddEntriesFrom(input, _repeated_hateTags_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) {
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 18: {
Alias = input.ReadString();
break;
}
case 26: {
CnCv = input.ReadString();
break;
}
case 34: {
JpCv = input.ReadString();
break;
}
case 42: {
CharColor = input.ReadString();
break;
}
case 50: {
CharSkillColor = input.ReadString();
break;
}
case 58: {
CharDes = input.ReadString();
break;
}
case 66:
case 64: {
tag_.AddEntriesFrom(ref input, _repeated_tag_codec);
break;
}
case 72: {
Force = input.ReadInt32();
break;
}
case 82:
case 80: {
preferTags_.AddEntriesFrom(ref input, _repeated_preferTags_codec);
break;
}
case 90:
case 88: {
hateTags_.AddEntriesFrom(ref input, _repeated_hateTags_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code