Files
Novaria/Novaria.Common/Protos/Story.cs

933 lines
30 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Story.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 Story.proto</summary>
public static partial class StoryReflection {
#region Descriptor
/// <summary>File descriptor for Story.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static StoryReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CgtTdG9yeS5wcm90byKFAwoFU3RvcnkSCgoCaWQYASABKAUSEAoIc3Rvcnlf",
"aWQYAiABKAkSDwoHY29tbWVudBgDIAEoCRIPCgdjaGFwdGVyGAQgASgFEg0K",
"BWluZGV4GAUgASgJEg0KBXRpdGxlGAYgASgJEgwKBGRlc2MYByABKAkSEwoL",
"dHJpYWxfYnVpbGQYCCABKAUSFAoMY29uZGl0aW9uX2lkGAkgASgJEhEKCWlz",
"X2JyYW5jaBgKIAEoCBIRCglpc19iYXR0bGUYCyABKAgSDgoGcmV3YXJkGAwg",
"ASgFEhYKDnJld2FyZF9kaXNwbGF5GA0gASgJEhcKD3BhcmVudF9zdG9yeV9p",
"ZBgOIAMoCRIUCgxoYXNfZXZpZGVuY2UYDyABKAgSFAoMYXZnX2x1YV9uYW1l",
"GBAgASgJEhAKCGZsb29yX2lkGBEgAygFEiAKGHByZXZpZXdfbW9uc3Rlcl9n",
"cm91cF9pZBgSIAEoBRIRCglyZWNvbW1lbmQYEyABKAkSCwoDYWltGBQgASgJ",
"Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Story), global::Nova.Client.Story.Parser, new[]{ "Id", "StoryId", "Comment", "Chapter", "Index", "Title", "Desc", "TrialBuild", "ConditionId", "IsBranch", "IsBattle", "Reward", "RewardDisplay", "ParentStoryId", "HasEvidence", "AvgLuaName", "FloorId", "PreviewMonsterGroupId", "Recommend", "Aim" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class Story : pb::IMessage<Story>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Story> _parser = new pb::MessageParser<Story>(() => new Story());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Story> 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.StoryReflection.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 Story() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Story(Story other) : this() {
id_ = other.id_;
storyId_ = other.storyId_;
comment_ = other.comment_;
chapter_ = other.chapter_;
index_ = other.index_;
title_ = other.title_;
desc_ = other.desc_;
trialBuild_ = other.trialBuild_;
conditionId_ = other.conditionId_;
isBranch_ = other.isBranch_;
isBattle_ = other.isBattle_;
reward_ = other.reward_;
rewardDisplay_ = other.rewardDisplay_;
parentStoryId_ = other.parentStoryId_.Clone();
hasEvidence_ = other.hasEvidence_;
avgLuaName_ = other.avgLuaName_;
floorId_ = other.floorId_.Clone();
previewMonsterGroupId_ = other.previewMonsterGroupId_;
recommend_ = other.recommend_;
aim_ = other.aim_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Story Clone() {
return new Story(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 "story_id" field.</summary>
public const int StoryIdFieldNumber = 2;
private string storyId_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string StoryId {
get { return storyId_; }
set {
storyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "comment" field.</summary>
public const int CommentFieldNumber = 3;
private string comment_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Comment {
get { return comment_; }
set {
comment_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "chapter" field.</summary>
public const int ChapterFieldNumber = 4;
private int chapter_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Chapter {
get { return chapter_; }
set {
chapter_ = value;
}
}
/// <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 "title" field.</summary>
public const int TitleFieldNumber = 6;
private string title_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Title {
get { return title_; }
set {
title_ = 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 "trial_build" field.</summary>
public const int TrialBuildFieldNumber = 8;
private int trialBuild_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int TrialBuild {
get { return trialBuild_; }
set {
trialBuild_ = value;
}
}
/// <summary>Field number for the "condition_id" field.</summary>
public const int ConditionIdFieldNumber = 9;
private string conditionId_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ConditionId {
get { return conditionId_; }
set {
conditionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "is_branch" field.</summary>
public const int IsBranchFieldNumber = 10;
private bool isBranch_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsBranch {
get { return isBranch_; }
set {
isBranch_ = value;
}
}
/// <summary>Field number for the "is_battle" field.</summary>
public const int IsBattleFieldNumber = 11;
private bool isBattle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsBattle {
get { return isBattle_; }
set {
isBattle_ = value;
}
}
/// <summary>Field number for the "reward" field.</summary>
public const int RewardFieldNumber = 12;
private int reward_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Reward {
get { return reward_; }
set {
reward_ = value;
}
}
/// <summary>Field number for the "reward_display" field.</summary>
public const int RewardDisplayFieldNumber = 13;
private string rewardDisplay_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RewardDisplay {
get { return rewardDisplay_; }
set {
rewardDisplay_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "parent_story_id" field.</summary>
public const int ParentStoryIdFieldNumber = 14;
private static readonly pb::FieldCodec<string> _repeated_parentStoryId_codec
= pb::FieldCodec.ForString(114);
private readonly pbc::RepeatedField<string> parentStoryId_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> ParentStoryId {
get { return parentStoryId_; }
}
/// <summary>Field number for the "has_evidence" field.</summary>
public const int HasEvidenceFieldNumber = 15;
private bool hasEvidence_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasEvidence {
get { return hasEvidence_; }
set {
hasEvidence_ = value;
}
}
/// <summary>Field number for the "avg_lua_name" field.</summary>
public const int AvgLuaNameFieldNumber = 16;
private string avgLuaName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AvgLuaName {
get { return avgLuaName_; }
set {
avgLuaName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "floor_id" field.</summary>
public const int FloorIdFieldNumber = 17;
private static readonly pb::FieldCodec<int> _repeated_floorId_codec
= pb::FieldCodec.ForInt32(138);
private readonly pbc::RepeatedField<int> floorId_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> FloorId {
get { return floorId_; }
}
/// <summary>Field number for the "preview_monster_group_id" field.</summary>
public const int PreviewMonsterGroupIdFieldNumber = 18;
private int previewMonsterGroupId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PreviewMonsterGroupId {
get { return previewMonsterGroupId_; }
set {
previewMonsterGroupId_ = value;
}
}
/// <summary>Field number for the "recommend" field.</summary>
public const int RecommendFieldNumber = 19;
private string recommend_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Recommend {
get { return recommend_; }
set {
recommend_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "aim" field.</summary>
public const int AimFieldNumber = 20;
private string aim_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Aim {
get { return aim_; }
set {
aim_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Story);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Story other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (StoryId != other.StoryId) return false;
if (Comment != other.Comment) return false;
if (Chapter != other.Chapter) return false;
if (Index != other.Index) return false;
if (Title != other.Title) return false;
if (Desc != other.Desc) return false;
if (TrialBuild != other.TrialBuild) return false;
if (ConditionId != other.ConditionId) return false;
if (IsBranch != other.IsBranch) return false;
if (IsBattle != other.IsBattle) return false;
if (Reward != other.Reward) return false;
if (RewardDisplay != other.RewardDisplay) return false;
if(!parentStoryId_.Equals(other.parentStoryId_)) return false;
if (HasEvidence != other.HasEvidence) return false;
if (AvgLuaName != other.AvgLuaName) return false;
if(!floorId_.Equals(other.floorId_)) return false;
if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false;
if (Recommend != other.Recommend) return false;
if (Aim != other.Aim) 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 (StoryId.Length != 0) hash ^= StoryId.GetHashCode();
if (Comment.Length != 0) hash ^= Comment.GetHashCode();
if (Chapter != 0) hash ^= Chapter.GetHashCode();
if (Index.Length != 0) hash ^= Index.GetHashCode();
if (Title.Length != 0) hash ^= Title.GetHashCode();
if (Desc.Length != 0) hash ^= Desc.GetHashCode();
if (TrialBuild != 0) hash ^= TrialBuild.GetHashCode();
if (ConditionId.Length != 0) hash ^= ConditionId.GetHashCode();
if (IsBranch != false) hash ^= IsBranch.GetHashCode();
if (IsBattle != false) hash ^= IsBattle.GetHashCode();
if (Reward != 0) hash ^= Reward.GetHashCode();
if (RewardDisplay.Length != 0) hash ^= RewardDisplay.GetHashCode();
hash ^= parentStoryId_.GetHashCode();
if (HasEvidence != false) hash ^= HasEvidence.GetHashCode();
if (AvgLuaName.Length != 0) hash ^= AvgLuaName.GetHashCode();
hash ^= floorId_.GetHashCode();
if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode();
if (Recommend.Length != 0) hash ^= Recommend.GetHashCode();
if (Aim.Length != 0) hash ^= Aim.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 (StoryId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(StoryId);
}
if (Comment.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Comment);
}
if (Chapter != 0) {
output.WriteRawTag(32);
output.WriteInt32(Chapter);
}
if (Index.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Index);
}
if (Title.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Title);
}
if (Desc.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Desc);
}
if (TrialBuild != 0) {
output.WriteRawTag(64);
output.WriteInt32(TrialBuild);
}
if (ConditionId.Length != 0) {
output.WriteRawTag(74);
output.WriteString(ConditionId);
}
if (IsBranch != false) {
output.WriteRawTag(80);
output.WriteBool(IsBranch);
}
if (IsBattle != false) {
output.WriteRawTag(88);
output.WriteBool(IsBattle);
}
if (Reward != 0) {
output.WriteRawTag(96);
output.WriteInt32(Reward);
}
if (RewardDisplay.Length != 0) {
output.WriteRawTag(106);
output.WriteString(RewardDisplay);
}
parentStoryId_.WriteTo(output, _repeated_parentStoryId_codec);
if (HasEvidence != false) {
output.WriteRawTag(120);
output.WriteBool(HasEvidence);
}
if (AvgLuaName.Length != 0) {
output.WriteRawTag(130, 1);
output.WriteString(AvgLuaName);
}
floorId_.WriteTo(output, _repeated_floorId_codec);
if (PreviewMonsterGroupId != 0) {
output.WriteRawTag(144, 1);
output.WriteInt32(PreviewMonsterGroupId);
}
if (Recommend.Length != 0) {
output.WriteRawTag(154, 1);
output.WriteString(Recommend);
}
if (Aim.Length != 0) {
output.WriteRawTag(162, 1);
output.WriteString(Aim);
}
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 (StoryId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(StoryId);
}
if (Comment.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Comment);
}
if (Chapter != 0) {
output.WriteRawTag(32);
output.WriteInt32(Chapter);
}
if (Index.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Index);
}
if (Title.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Title);
}
if (Desc.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Desc);
}
if (TrialBuild != 0) {
output.WriteRawTag(64);
output.WriteInt32(TrialBuild);
}
if (ConditionId.Length != 0) {
output.WriteRawTag(74);
output.WriteString(ConditionId);
}
if (IsBranch != false) {
output.WriteRawTag(80);
output.WriteBool(IsBranch);
}
if (IsBattle != false) {
output.WriteRawTag(88);
output.WriteBool(IsBattle);
}
if (Reward != 0) {
output.WriteRawTag(96);
output.WriteInt32(Reward);
}
if (RewardDisplay.Length != 0) {
output.WriteRawTag(106);
output.WriteString(RewardDisplay);
}
parentStoryId_.WriteTo(ref output, _repeated_parentStoryId_codec);
if (HasEvidence != false) {
output.WriteRawTag(120);
output.WriteBool(HasEvidence);
}
if (AvgLuaName.Length != 0) {
output.WriteRawTag(130, 1);
output.WriteString(AvgLuaName);
}
floorId_.WriteTo(ref output, _repeated_floorId_codec);
if (PreviewMonsterGroupId != 0) {
output.WriteRawTag(144, 1);
output.WriteInt32(PreviewMonsterGroupId);
}
if (Recommend.Length != 0) {
output.WriteRawTag(154, 1);
output.WriteString(Recommend);
}
if (Aim.Length != 0) {
output.WriteRawTag(162, 1);
output.WriteString(Aim);
}
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 (StoryId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StoryId);
}
if (Comment.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment);
}
if (Chapter != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Chapter);
}
if (Index.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Index);
}
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (Desc.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc);
}
if (TrialBuild != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TrialBuild);
}
if (ConditionId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ConditionId);
}
if (IsBranch != false) {
size += 1 + 1;
}
if (IsBattle != false) {
size += 1 + 1;
}
if (Reward != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward);
}
if (RewardDisplay.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RewardDisplay);
}
size += parentStoryId_.CalculateSize(_repeated_parentStoryId_codec);
if (HasEvidence != false) {
size += 1 + 1;
}
if (AvgLuaName.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(AvgLuaName);
}
size += floorId_.CalculateSize(_repeated_floorId_codec);
if (PreviewMonsterGroupId != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId);
}
if (Recommend.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Recommend);
}
if (Aim.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Aim);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Story other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.StoryId.Length != 0) {
StoryId = other.StoryId;
}
if (other.Comment.Length != 0) {
Comment = other.Comment;
}
if (other.Chapter != 0) {
Chapter = other.Chapter;
}
if (other.Index.Length != 0) {
Index = other.Index;
}
if (other.Title.Length != 0) {
Title = other.Title;
}
if (other.Desc.Length != 0) {
Desc = other.Desc;
}
if (other.TrialBuild != 0) {
TrialBuild = other.TrialBuild;
}
if (other.ConditionId.Length != 0) {
ConditionId = other.ConditionId;
}
if (other.IsBranch != false) {
IsBranch = other.IsBranch;
}
if (other.IsBattle != false) {
IsBattle = other.IsBattle;
}
if (other.Reward != 0) {
Reward = other.Reward;
}
if (other.RewardDisplay.Length != 0) {
RewardDisplay = other.RewardDisplay;
}
parentStoryId_.Add(other.parentStoryId_);
if (other.HasEvidence != false) {
HasEvidence = other.HasEvidence;
}
if (other.AvgLuaName.Length != 0) {
AvgLuaName = other.AvgLuaName;
}
floorId_.Add(other.floorId_);
if (other.PreviewMonsterGroupId != 0) {
PreviewMonsterGroupId = other.PreviewMonsterGroupId;
}
if (other.Recommend.Length != 0) {
Recommend = other.Recommend;
}
if (other.Aim.Length != 0) {
Aim = other.Aim;
}
_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: {
StoryId = input.ReadString();
break;
}
case 26: {
Comment = input.ReadString();
break;
}
case 32: {
Chapter = input.ReadInt32();
break;
}
case 42: {
Index = input.ReadString();
break;
}
case 50: {
Title = input.ReadString();
break;
}
case 58: {
Desc = input.ReadString();
break;
}
case 64: {
TrialBuild = input.ReadInt32();
break;
}
case 74: {
ConditionId = input.ReadString();
break;
}
case 80: {
IsBranch = input.ReadBool();
break;
}
case 88: {
IsBattle = input.ReadBool();
break;
}
case 96: {
Reward = input.ReadInt32();
break;
}
case 106: {
RewardDisplay = input.ReadString();
break;
}
case 114: {
parentStoryId_.AddEntriesFrom(input, _repeated_parentStoryId_codec);
break;
}
case 120: {
HasEvidence = input.ReadBool();
break;
}
case 130: {
AvgLuaName = input.ReadString();
break;
}
case 138:
case 136: {
floorId_.AddEntriesFrom(input, _repeated_floorId_codec);
break;
}
case 144: {
PreviewMonsterGroupId = input.ReadInt32();
break;
}
case 154: {
Recommend = input.ReadString();
break;
}
case 162: {
Aim = input.ReadString();
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: {
StoryId = input.ReadString();
break;
}
case 26: {
Comment = input.ReadString();
break;
}
case 32: {
Chapter = input.ReadInt32();
break;
}
case 42: {
Index = input.ReadString();
break;
}
case 50: {
Title = input.ReadString();
break;
}
case 58: {
Desc = input.ReadString();
break;
}
case 64: {
TrialBuild = input.ReadInt32();
break;
}
case 74: {
ConditionId = input.ReadString();
break;
}
case 80: {
IsBranch = input.ReadBool();
break;
}
case 88: {
IsBattle = input.ReadBool();
break;
}
case 96: {
Reward = input.ReadInt32();
break;
}
case 106: {
RewardDisplay = input.ReadString();
break;
}
case 114: {
parentStoryId_.AddEntriesFrom(ref input, _repeated_parentStoryId_codec);
break;
}
case 120: {
HasEvidence = input.ReadBool();
break;
}
case 130: {
AvgLuaName = input.ReadString();
break;
}
case 138:
case 136: {
floorId_.AddEntriesFrom(ref input, _repeated_floorId_codec);
break;
}
case 144: {
PreviewMonsterGroupId = input.ReadInt32();
break;
}
case 154: {
Recommend = input.ReadString();
break;
}
case 162: {
Aim = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code