mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-16 08:25:32 +01:00
460 lines
16 KiB
C#
460 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: StoryCondition.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 StoryCondition.proto</summary>
|
|
public static partial class StoryConditionReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for StoryCondition.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static StoryConditionReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChRTdG9yeUNvbmRpdGlvbi5wcm90byKrAQoOU3RvcnlDb25kaXRpb24SCgoC",
|
|
"aWQYASABKAUSFAoMY29uZGl0aW9uX2lkGAIgASgJEg8KB2NvbW1lbnQYAyAB",
|
|
"KAkSEAoIZXZfaWRzX2EYBCADKAkSEAoIZXZfaWRzX2IYBSADKAkSEgoKc3Rv",
|
|
"cnlfaWRfYRgGIAMoCRISCgpzdG9yeV9pZF9iGAcgAygJEhoKEnBsYXllcl93",
|
|
"b3JsZF9sZXZlbBgIIAEoBUIOqgILTm92YS5DbGllbnRiBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.StoryCondition), global::Nova.Client.StoryCondition.Parser, new[]{ "Id", "ConditionId", "Comment", "EvIdsA", "EvIdsB", "StoryIdA", "StoryIdB", "PlayerWorldLevel" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class StoryCondition : pb::IMessage<StoryCondition>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<StoryCondition> _parser = new pb::MessageParser<StoryCondition>(() => new StoryCondition());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<StoryCondition> 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.StoryConditionReflection.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 StoryCondition() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public StoryCondition(StoryCondition other) : this() {
|
|
id_ = other.id_;
|
|
conditionId_ = other.conditionId_;
|
|
comment_ = other.comment_;
|
|
evIdsA_ = other.evIdsA_.Clone();
|
|
evIdsB_ = other.evIdsB_.Clone();
|
|
storyIdA_ = other.storyIdA_.Clone();
|
|
storyIdB_ = other.storyIdB_.Clone();
|
|
playerWorldLevel_ = other.playerWorldLevel_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public StoryCondition Clone() {
|
|
return new StoryCondition(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 "condition_id" field.</summary>
|
|
public const int ConditionIdFieldNumber = 2;
|
|
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 "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 "ev_ids_a" field.</summary>
|
|
public const int EvIdsAFieldNumber = 4;
|
|
private static readonly pb::FieldCodec<string> _repeated_evIdsA_codec
|
|
= pb::FieldCodec.ForString(34);
|
|
private readonly pbc::RepeatedField<string> evIdsA_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<string> EvIdsA {
|
|
get { return evIdsA_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "ev_ids_b" field.</summary>
|
|
public const int EvIdsBFieldNumber = 5;
|
|
private static readonly pb::FieldCodec<string> _repeated_evIdsB_codec
|
|
= pb::FieldCodec.ForString(42);
|
|
private readonly pbc::RepeatedField<string> evIdsB_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<string> EvIdsB {
|
|
get { return evIdsB_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "story_id_a" field.</summary>
|
|
public const int StoryIdAFieldNumber = 6;
|
|
private static readonly pb::FieldCodec<string> _repeated_storyIdA_codec
|
|
= pb::FieldCodec.ForString(50);
|
|
private readonly pbc::RepeatedField<string> storyIdA_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<string> StoryIdA {
|
|
get { return storyIdA_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "story_id_b" field.</summary>
|
|
public const int StoryIdBFieldNumber = 7;
|
|
private static readonly pb::FieldCodec<string> _repeated_storyIdB_codec
|
|
= pb::FieldCodec.ForString(58);
|
|
private readonly pbc::RepeatedField<string> storyIdB_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<string> StoryIdB {
|
|
get { return storyIdB_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "player_world_level" field.</summary>
|
|
public const int PlayerWorldLevelFieldNumber = 8;
|
|
private int playerWorldLevel_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PlayerWorldLevel {
|
|
get { return playerWorldLevel_; }
|
|
set {
|
|
playerWorldLevel_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as StoryCondition);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(StoryCondition other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (ConditionId != other.ConditionId) return false;
|
|
if (Comment != other.Comment) return false;
|
|
if(!evIdsA_.Equals(other.evIdsA_)) return false;
|
|
if(!evIdsB_.Equals(other.evIdsB_)) return false;
|
|
if(!storyIdA_.Equals(other.storyIdA_)) return false;
|
|
if(!storyIdB_.Equals(other.storyIdB_)) return false;
|
|
if (PlayerWorldLevel != other.PlayerWorldLevel) 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 (ConditionId.Length != 0) hash ^= ConditionId.GetHashCode();
|
|
if (Comment.Length != 0) hash ^= Comment.GetHashCode();
|
|
hash ^= evIdsA_.GetHashCode();
|
|
hash ^= evIdsB_.GetHashCode();
|
|
hash ^= storyIdA_.GetHashCode();
|
|
hash ^= storyIdB_.GetHashCode();
|
|
if (PlayerWorldLevel != 0) hash ^= PlayerWorldLevel.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 (ConditionId.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(ConditionId);
|
|
}
|
|
if (Comment.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Comment);
|
|
}
|
|
evIdsA_.WriteTo(output, _repeated_evIdsA_codec);
|
|
evIdsB_.WriteTo(output, _repeated_evIdsB_codec);
|
|
storyIdA_.WriteTo(output, _repeated_storyIdA_codec);
|
|
storyIdB_.WriteTo(output, _repeated_storyIdB_codec);
|
|
if (PlayerWorldLevel != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteInt32(PlayerWorldLevel);
|
|
}
|
|
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 (ConditionId.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(ConditionId);
|
|
}
|
|
if (Comment.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Comment);
|
|
}
|
|
evIdsA_.WriteTo(ref output, _repeated_evIdsA_codec);
|
|
evIdsB_.WriteTo(ref output, _repeated_evIdsB_codec);
|
|
storyIdA_.WriteTo(ref output, _repeated_storyIdA_codec);
|
|
storyIdB_.WriteTo(ref output, _repeated_storyIdB_codec);
|
|
if (PlayerWorldLevel != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteInt32(PlayerWorldLevel);
|
|
}
|
|
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 (ConditionId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ConditionId);
|
|
}
|
|
if (Comment.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Comment);
|
|
}
|
|
size += evIdsA_.CalculateSize(_repeated_evIdsA_codec);
|
|
size += evIdsB_.CalculateSize(_repeated_evIdsB_codec);
|
|
size += storyIdA_.CalculateSize(_repeated_storyIdA_codec);
|
|
size += storyIdB_.CalculateSize(_repeated_storyIdB_codec);
|
|
if (PlayerWorldLevel != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerWorldLevel);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(StoryCondition other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.ConditionId.Length != 0) {
|
|
ConditionId = other.ConditionId;
|
|
}
|
|
if (other.Comment.Length != 0) {
|
|
Comment = other.Comment;
|
|
}
|
|
evIdsA_.Add(other.evIdsA_);
|
|
evIdsB_.Add(other.evIdsB_);
|
|
storyIdA_.Add(other.storyIdA_);
|
|
storyIdB_.Add(other.storyIdB_);
|
|
if (other.PlayerWorldLevel != 0) {
|
|
PlayerWorldLevel = other.PlayerWorldLevel;
|
|
}
|
|
_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: {
|
|
ConditionId = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Comment = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
evIdsA_.AddEntriesFrom(input, _repeated_evIdsA_codec);
|
|
break;
|
|
}
|
|
case 42: {
|
|
evIdsB_.AddEntriesFrom(input, _repeated_evIdsB_codec);
|
|
break;
|
|
}
|
|
case 50: {
|
|
storyIdA_.AddEntriesFrom(input, _repeated_storyIdA_codec);
|
|
break;
|
|
}
|
|
case 58: {
|
|
storyIdB_.AddEntriesFrom(input, _repeated_storyIdB_codec);
|
|
break;
|
|
}
|
|
case 64: {
|
|
PlayerWorldLevel = 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 18: {
|
|
ConditionId = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Comment = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
evIdsA_.AddEntriesFrom(ref input, _repeated_evIdsA_codec);
|
|
break;
|
|
}
|
|
case 42: {
|
|
evIdsB_.AddEntriesFrom(ref input, _repeated_evIdsB_codec);
|
|
break;
|
|
}
|
|
case 50: {
|
|
storyIdA_.AddEntriesFrom(ref input, _repeated_storyIdA_codec);
|
|
break;
|
|
}
|
|
case 58: {
|
|
storyIdB_.AddEntriesFrom(ref input, _repeated_storyIdB_codec);
|
|
break;
|
|
}
|
|
case 64: {
|
|
PlayerWorldLevel = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|