Files
DanhengServer-OpenSource/Common/Proto/DialogueEvent.cs
2024-05-11 21:58:31 +08:00

404 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DialogueEvent.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 EggLink.DanhengServer.Proto {
/// <summary>Holder for reflection information generated from DialogueEvent.proto</summary>
public static partial class DialogueEventReflection {
#region Descriptor
/// <summary>File descriptor for DialogueEvent.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DialogueEventReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChNEaWFsb2d1ZUV2ZW50LnByb3RvGh1Sb2d1ZURpYWxvZ3VlRXZlbnRQYXJh",
"bS5wcm90byLEAQoNRGlhbG9ndWVFdmVudBIeChZkaWFsb2d1ZV9ldmVudF9p",
"ZF9saXN0GAsgAygNEhAKCGV2ZW50X2lkGA0gASgNEhMKC0tMSEVEUE1HUEpK",
"GAEgASgNEjsKGWRpYWxvZ3VlX2V2ZW50X3BhcmFtX2xpc3QYCSADKAsyGC5S",
"b2d1ZURpYWxvZ3VlRXZlbnRQYXJhbRIWCg5nYW1lX21vZGVfdHlwZRgGIAEo",
"DRIXCg9ldmVudF91bmlxdWVfaWQYBSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVu",
"Z1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueDialogueEventParamReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DialogueEvent), global::EggLink.DanhengServer.Proto.DialogueEvent.Parser, new[]{ "DialogueEventIdList", "EventId", "KLHEDPMGPJJ", "DialogueEventParamList", "GameModeType", "EventUniqueId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class DialogueEvent : pb::IMessage<DialogueEvent>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<DialogueEvent> _parser = new pb::MessageParser<DialogueEvent>(() => new DialogueEvent());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<DialogueEvent> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::EggLink.DanhengServer.Proto.DialogueEventReflection.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 DialogueEvent() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DialogueEvent(DialogueEvent other) : this() {
dialogueEventIdList_ = other.dialogueEventIdList_.Clone();
eventId_ = other.eventId_;
kLHEDPMGPJJ_ = other.kLHEDPMGPJJ_;
dialogueEventParamList_ = other.dialogueEventParamList_.Clone();
gameModeType_ = other.gameModeType_;
eventUniqueId_ = other.eventUniqueId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DialogueEvent Clone() {
return new DialogueEvent(this);
}
/// <summary>Field number for the "dialogue_event_id_list" field.</summary>
public const int DialogueEventIdListFieldNumber = 11;
private static readonly pb::FieldCodec<uint> _repeated_dialogueEventIdList_codec
= pb::FieldCodec.ForUInt32(90);
private readonly pbc::RepeatedField<uint> dialogueEventIdList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> DialogueEventIdList {
get { return dialogueEventIdList_; }
}
/// <summary>Field number for the "event_id" field.</summary>
public const int EventIdFieldNumber = 13;
private uint eventId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint EventId {
get { return eventId_; }
set {
eventId_ = value;
}
}
/// <summary>Field number for the "KLHEDPMGPJJ" field.</summary>
public const int KLHEDPMGPJJFieldNumber = 1;
private uint kLHEDPMGPJJ_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint KLHEDPMGPJJ {
get { return kLHEDPMGPJJ_; }
set {
kLHEDPMGPJJ_ = value;
}
}
/// <summary>Field number for the "dialogue_event_param_list" field.</summary>
public const int DialogueEventParamListFieldNumber = 9;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RogueDialogueEventParam> _repeated_dialogueEventParamList_codec
= pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.RogueDialogueEventParam.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueDialogueEventParam> dialogueEventParamList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueDialogueEventParam>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueDialogueEventParam> DialogueEventParamList {
get { return dialogueEventParamList_; }
}
/// <summary>Field number for the "game_mode_type" field.</summary>
public const int GameModeTypeFieldNumber = 6;
private uint gameModeType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint GameModeType {
get { return gameModeType_; }
set {
gameModeType_ = value;
}
}
/// <summary>Field number for the "event_unique_id" field.</summary>
public const int EventUniqueIdFieldNumber = 5;
private uint eventUniqueId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint EventUniqueId {
get { return eventUniqueId_; }
set {
eventUniqueId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DialogueEvent);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DialogueEvent other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!dialogueEventIdList_.Equals(other.dialogueEventIdList_)) return false;
if (EventId != other.EventId) return false;
if (KLHEDPMGPJJ != other.KLHEDPMGPJJ) return false;
if(!dialogueEventParamList_.Equals(other.dialogueEventParamList_)) return false;
if (GameModeType != other.GameModeType) return false;
if (EventUniqueId != other.EventUniqueId) 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;
hash ^= dialogueEventIdList_.GetHashCode();
if (EventId != 0) hash ^= EventId.GetHashCode();
if (KLHEDPMGPJJ != 0) hash ^= KLHEDPMGPJJ.GetHashCode();
hash ^= dialogueEventParamList_.GetHashCode();
if (GameModeType != 0) hash ^= GameModeType.GetHashCode();
if (EventUniqueId != 0) hash ^= EventUniqueId.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 (KLHEDPMGPJJ != 0) {
output.WriteRawTag(8);
output.WriteUInt32(KLHEDPMGPJJ);
}
if (EventUniqueId != 0) {
output.WriteRawTag(40);
output.WriteUInt32(EventUniqueId);
}
if (GameModeType != 0) {
output.WriteRawTag(48);
output.WriteUInt32(GameModeType);
}
dialogueEventParamList_.WriteTo(output, _repeated_dialogueEventParamList_codec);
dialogueEventIdList_.WriteTo(output, _repeated_dialogueEventIdList_codec);
if (EventId != 0) {
output.WriteRawTag(104);
output.WriteUInt32(EventId);
}
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 (KLHEDPMGPJJ != 0) {
output.WriteRawTag(8);
output.WriteUInt32(KLHEDPMGPJJ);
}
if (EventUniqueId != 0) {
output.WriteRawTag(40);
output.WriteUInt32(EventUniqueId);
}
if (GameModeType != 0) {
output.WriteRawTag(48);
output.WriteUInt32(GameModeType);
}
dialogueEventParamList_.WriteTo(ref output, _repeated_dialogueEventParamList_codec);
dialogueEventIdList_.WriteTo(ref output, _repeated_dialogueEventIdList_codec);
if (EventId != 0) {
output.WriteRawTag(104);
output.WriteUInt32(EventId);
}
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;
size += dialogueEventIdList_.CalculateSize(_repeated_dialogueEventIdList_codec);
if (EventId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EventId);
}
if (KLHEDPMGPJJ != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KLHEDPMGPJJ);
}
size += dialogueEventParamList_.CalculateSize(_repeated_dialogueEventParamList_codec);
if (GameModeType != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GameModeType);
}
if (EventUniqueId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EventUniqueId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DialogueEvent other) {
if (other == null) {
return;
}
dialogueEventIdList_.Add(other.dialogueEventIdList_);
if (other.EventId != 0) {
EventId = other.EventId;
}
if (other.KLHEDPMGPJJ != 0) {
KLHEDPMGPJJ = other.KLHEDPMGPJJ;
}
dialogueEventParamList_.Add(other.dialogueEventParamList_);
if (other.GameModeType != 0) {
GameModeType = other.GameModeType;
}
if (other.EventUniqueId != 0) {
EventUniqueId = other.EventUniqueId;
}
_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) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
KLHEDPMGPJJ = input.ReadUInt32();
break;
}
case 40: {
EventUniqueId = input.ReadUInt32();
break;
}
case 48: {
GameModeType = input.ReadUInt32();
break;
}
case 74: {
dialogueEventParamList_.AddEntriesFrom(input, _repeated_dialogueEventParamList_codec);
break;
}
case 90:
case 88: {
dialogueEventIdList_.AddEntriesFrom(input, _repeated_dialogueEventIdList_codec);
break;
}
case 104: {
EventId = input.ReadUInt32();
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) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
KLHEDPMGPJJ = input.ReadUInt32();
break;
}
case 40: {
EventUniqueId = input.ReadUInt32();
break;
}
case 48: {
GameModeType = input.ReadUInt32();
break;
}
case 74: {
dialogueEventParamList_.AddEntriesFrom(ref input, _repeated_dialogueEventParamList_codec);
break;
}
case 90:
case 88: {
dialogueEventIdList_.AddEntriesFrom(ref input, _repeated_dialogueEventIdList_codec);
break;
}
case 104: {
EventId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code