Files
Novaria/Novaria.Common/Protos/StoryChapter.cs

594 lines
20 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: StoryChapter.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 StoryChapter.proto</summary>
public static partial class StoryChapterReflection {
#region Descriptor
/// <summary>File descriptor for StoryChapter.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static StoryChapterReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChJTdG9yeUNoYXB0ZXIucHJvdG8i3AEKDFN0b3J5Q2hhcHRlchIKCgJpZBgB",
"IAEoBRIMCgR0eXBlGAIgASgFEhMKC3dvcmxkX2NsYXNzGAMgASgFEhQKDHBy",
"ZXZfc3RvcmllcxgEIAMoCRINCgVpbmRleBgFIAEoCRIMCgRuYW1lGAYgASgJ",
"EgwKBGRlc2MYByABKAkSFAoMY2hhcHRlcl9pY29uGAggASgJEhIKCnRpbWVf",
"c3RhbXAYCSADKAkSFAoMY2hhcHRlcl95ZWFyGAogASgJEhwKFHVubG9ja19z",
"aG93X3N0b3J5X2lkGAsgASgFQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StoryChapter), global::Nova.Client.StoryChapter.Parser, new[]{ "Id", "Type", "WorldClass", "PrevStories", "Index", "Name", "Desc", "ChapterIcon", "TimeStamp", "ChapterYear", "UnlockShowStoryId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class StoryChapter : pb::IMessage<StoryChapter>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<StoryChapter> _parser = new pb::MessageParser<StoryChapter>(() => new StoryChapter());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<StoryChapter> 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.StoryChapterReflection.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 StoryChapter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public StoryChapter(StoryChapter other) : this() {
id_ = other.id_;
type_ = other.type_;
worldClass_ = other.worldClass_;
prevStories_ = other.prevStories_.Clone();
index_ = other.index_;
name_ = other.name_;
desc_ = other.desc_;
chapterIcon_ = other.chapterIcon_;
timeStamp_ = other.timeStamp_.Clone();
chapterYear_ = other.chapterYear_;
unlockShowStoryId_ = other.unlockShowStoryId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public StoryChapter Clone() {
return new StoryChapter(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 "world_class" field.</summary>
public const int WorldClassFieldNumber = 3;
private int worldClass_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int WorldClass {
get { return worldClass_; }
set {
worldClass_ = value;
}
}
/// <summary>Field number for the "prev_stories" field.</summary>
public const int PrevStoriesFieldNumber = 4;
private static readonly pb::FieldCodec<string> _repeated_prevStories_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField<string> prevStories_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> PrevStories {
get { return prevStories_; }
}
/// <summary>Field number for the "index" field.</summary>
public const int IndexFieldNumber = 5;
private string index_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Index {
get { return index_; }
set {
index_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 6;
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 = 7;
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 "chapter_icon" field.</summary>
public const int ChapterIconFieldNumber = 8;
private string chapterIcon_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChapterIcon {
get { return chapterIcon_; }
set {
chapterIcon_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "time_stamp" field.</summary>
public const int TimeStampFieldNumber = 9;
private static readonly pb::FieldCodec<string> _repeated_timeStamp_codec
= pb::FieldCodec.ForString(74);
private readonly pbc::RepeatedField<string> timeStamp_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> TimeStamp {
get { return timeStamp_; }
}
/// <summary>Field number for the "chapter_year" field.</summary>
public const int ChapterYearFieldNumber = 10;
private string chapterYear_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ChapterYear {
get { return chapterYear_; }
set {
chapterYear_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "unlock_show_story_id" field.</summary>
public const int UnlockShowStoryIdFieldNumber = 11;
private int unlockShowStoryId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int UnlockShowStoryId {
get { return unlockShowStoryId_; }
set {
unlockShowStoryId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as StoryChapter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(StoryChapter 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 (WorldClass != other.WorldClass) return false;
if(!prevStories_.Equals(other.prevStories_)) return false;
if (Index != other.Index) return false;
if (Name != other.Name) return false;
if (Desc != other.Desc) return false;
if (ChapterIcon != other.ChapterIcon) return false;
if(!timeStamp_.Equals(other.timeStamp_)) return false;
if (ChapterYear != other.ChapterYear) return false;
if (UnlockShowStoryId != other.UnlockShowStoryId) 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 (WorldClass != 0) hash ^= WorldClass.GetHashCode();
hash ^= prevStories_.GetHashCode();
if (Index.Length != 0) hash ^= Index.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Desc.Length != 0) hash ^= Desc.GetHashCode();
if (ChapterIcon.Length != 0) hash ^= ChapterIcon.GetHashCode();
hash ^= timeStamp_.GetHashCode();
if (ChapterYear.Length != 0) hash ^= ChapterYear.GetHashCode();
if (UnlockShowStoryId != 0) hash ^= UnlockShowStoryId.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 (WorldClass != 0) {
output.WriteRawTag(24);
output.WriteInt32(WorldClass);
}
prevStories_.WriteTo(output, _repeated_prevStories_codec);
if (Index.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Index);
}
if (Name.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Name);
}
if (Desc.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Desc);
}
if (ChapterIcon.Length != 0) {
output.WriteRawTag(66);
output.WriteString(ChapterIcon);
}
timeStamp_.WriteTo(output, _repeated_timeStamp_codec);
if (ChapterYear.Length != 0) {
output.WriteRawTag(82);
output.WriteString(ChapterYear);
}
if (UnlockShowStoryId != 0) {
output.WriteRawTag(88);
output.WriteInt32(UnlockShowStoryId);
}
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 (WorldClass != 0) {
output.WriteRawTag(24);
output.WriteInt32(WorldClass);
}
prevStories_.WriteTo(ref output, _repeated_prevStories_codec);
if (Index.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Index);
}
if (Name.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Name);
}
if (Desc.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Desc);
}
if (ChapterIcon.Length != 0) {
output.WriteRawTag(66);
output.WriteString(ChapterIcon);
}
timeStamp_.WriteTo(ref output, _repeated_timeStamp_codec);
if (ChapterYear.Length != 0) {
output.WriteRawTag(82);
output.WriteString(ChapterYear);
}
if (UnlockShowStoryId != 0) {
output.WriteRawTag(88);
output.WriteInt32(UnlockShowStoryId);
}
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 (WorldClass != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(WorldClass);
}
size += prevStories_.CalculateSize(_repeated_prevStories_codec);
if (Index.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Index);
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Desc.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc);
}
if (ChapterIcon.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChapterIcon);
}
size += timeStamp_.CalculateSize(_repeated_timeStamp_codec);
if (ChapterYear.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChapterYear);
}
if (UnlockShowStoryId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockShowStoryId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(StoryChapter other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Type != 0) {
Type = other.Type;
}
if (other.WorldClass != 0) {
WorldClass = other.WorldClass;
}
prevStories_.Add(other.prevStories_);
if (other.Index.Length != 0) {
Index = other.Index;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Desc.Length != 0) {
Desc = other.Desc;
}
if (other.ChapterIcon.Length != 0) {
ChapterIcon = other.ChapterIcon;
}
timeStamp_.Add(other.timeStamp_);
if (other.ChapterYear.Length != 0) {
ChapterYear = other.ChapterYear;
}
if (other.UnlockShowStoryId != 0) {
UnlockShowStoryId = other.UnlockShowStoryId;
}
_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 24: {
WorldClass = input.ReadInt32();
break;
}
case 34: {
prevStories_.AddEntriesFrom(input, _repeated_prevStories_codec);
break;
}
case 42: {
Index = input.ReadString();
break;
}
case 50: {
Name = input.ReadString();
break;
}
case 58: {
Desc = input.ReadString();
break;
}
case 66: {
ChapterIcon = input.ReadString();
break;
}
case 74: {
timeStamp_.AddEntriesFrom(input, _repeated_timeStamp_codec);
break;
}
case 82: {
ChapterYear = input.ReadString();
break;
}
case 88: {
UnlockShowStoryId = 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 24: {
WorldClass = input.ReadInt32();
break;
}
case 34: {
prevStories_.AddEntriesFrom(ref input, _repeated_prevStories_codec);
break;
}
case 42: {
Index = input.ReadString();
break;
}
case 50: {
Name = input.ReadString();
break;
}
case 58: {
Desc = input.ReadString();
break;
}
case 66: {
ChapterIcon = input.ReadString();
break;
}
case 74: {
timeStamp_.AddEntriesFrom(ref input, _repeated_timeStamp_codec);
break;
}
case 82: {
ChapterYear = input.ReadString();
break;
}
case 88: {
UnlockShowStoryId = input.ReadInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code