mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
424 lines
16 KiB
C#
424 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: RogueCommonDialogueOptionInfo.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 RogueCommonDialogueOptionInfo.proto</summary>
|
|
public static partial class RogueCommonDialogueOptionInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for RogueCommonDialogueOptionInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RogueCommonDialogueOptionInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CiNSb2d1ZUNvbW1vbkRpYWxvZ3VlT3B0aW9uSW5mby5wcm90bxopUm9ndWVD",
|
|
"b21tb25EaWFsb2d1ZU9wdGlvblJlc3VsdEluZm8ucHJvdG8aKlJvZ3VlQ29t",
|
|
"bW9uRGlhbG9ndWVPcHRpb25EaXNwbGF5SW5mby5wcm90byLlAQodUm9ndWVD",
|
|
"b21tb25EaWFsb2d1ZU9wdGlvbkluZm8SEAoIaXNfdmFsaWQYDCABKAgSPAoN",
|
|
"ZGlzcGxheV92YWx1ZRgEIAEoCzIlLlJvZ3VlQ29tbW9uRGlhbG9ndWVPcHRp",
|
|
"b25EaXNwbGF5SW5mbxIPCgdjb25maXJtGAcgASgIEkAKEm9wdGlvbl9yZXN1",
|
|
"bHRfaW5mbxgBIAMoCzIkLlJvZ3VlQ29tbW9uRGlhbG9ndWVPcHRpb25SZXN1",
|
|
"bHRJbmZvEg4KBmFyZ19pZBgGIAEoDRIRCglvcHRpb25faWQYDyABKA1CHqoC",
|
|
"G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionResultInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionDisplayInfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionInfo), global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionInfo.Parser, new[]{ "IsValid", "DisplayValue", "Confirm", "OptionResultInfo", "ArgId", "OptionId" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RogueCommonDialogueOptionInfo : pb::IMessage<RogueCommonDialogueOptionInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RogueCommonDialogueOptionInfo> _parser = new pb::MessageParser<RogueCommonDialogueOptionInfo>(() => new RogueCommonDialogueOptionInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RogueCommonDialogueOptionInfo> 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.RogueCommonDialogueOptionInfoReflection.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 RogueCommonDialogueOptionInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueCommonDialogueOptionInfo(RogueCommonDialogueOptionInfo other) : this() {
|
|
isValid_ = other.isValid_;
|
|
displayValue_ = other.displayValue_ != null ? other.displayValue_.Clone() : null;
|
|
confirm_ = other.confirm_;
|
|
optionResultInfo_ = other.optionResultInfo_.Clone();
|
|
argId_ = other.argId_;
|
|
optionId_ = other.optionId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueCommonDialogueOptionInfo Clone() {
|
|
return new RogueCommonDialogueOptionInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "is_valid" field.</summary>
|
|
public const int IsValidFieldNumber = 12;
|
|
private bool isValid_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsValid {
|
|
get { return isValid_; }
|
|
set {
|
|
isValid_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "display_value" field.</summary>
|
|
public const int DisplayValueFieldNumber = 4;
|
|
private global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionDisplayInfo displayValue_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionDisplayInfo DisplayValue {
|
|
get { return displayValue_; }
|
|
set {
|
|
displayValue_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "confirm" field.</summary>
|
|
public const int ConfirmFieldNumber = 7;
|
|
private bool confirm_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Confirm {
|
|
get { return confirm_; }
|
|
set {
|
|
confirm_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "option_result_info" field.</summary>
|
|
public const int OptionResultInfoFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionResultInfo> _repeated_optionResultInfo_codec
|
|
= pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionResultInfo.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionResultInfo> optionResultInfo_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionResultInfo>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionResultInfo> OptionResultInfo {
|
|
get { return optionResultInfo_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "arg_id" field.</summary>
|
|
public const int ArgIdFieldNumber = 6;
|
|
private uint argId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint ArgId {
|
|
get { return argId_; }
|
|
set {
|
|
argId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "option_id" field.</summary>
|
|
public const int OptionIdFieldNumber = 15;
|
|
private uint optionId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint OptionId {
|
|
get { return optionId_; }
|
|
set {
|
|
optionId_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RogueCommonDialogueOptionInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RogueCommonDialogueOptionInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (IsValid != other.IsValid) return false;
|
|
if (!object.Equals(DisplayValue, other.DisplayValue)) return false;
|
|
if (Confirm != other.Confirm) return false;
|
|
if(!optionResultInfo_.Equals(other.optionResultInfo_)) return false;
|
|
if (ArgId != other.ArgId) return false;
|
|
if (OptionId != other.OptionId) 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 (IsValid != false) hash ^= IsValid.GetHashCode();
|
|
if (displayValue_ != null) hash ^= DisplayValue.GetHashCode();
|
|
if (Confirm != false) hash ^= Confirm.GetHashCode();
|
|
hash ^= optionResultInfo_.GetHashCode();
|
|
if (ArgId != 0) hash ^= ArgId.GetHashCode();
|
|
if (OptionId != 0) hash ^= OptionId.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
|
|
optionResultInfo_.WriteTo(output, _repeated_optionResultInfo_codec);
|
|
if (displayValue_ != null) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(DisplayValue);
|
|
}
|
|
if (ArgId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(ArgId);
|
|
}
|
|
if (Confirm != false) {
|
|
output.WriteRawTag(56);
|
|
output.WriteBool(Confirm);
|
|
}
|
|
if (IsValid != false) {
|
|
output.WriteRawTag(96);
|
|
output.WriteBool(IsValid);
|
|
}
|
|
if (OptionId != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(OptionId);
|
|
}
|
|
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) {
|
|
optionResultInfo_.WriteTo(ref output, _repeated_optionResultInfo_codec);
|
|
if (displayValue_ != null) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(DisplayValue);
|
|
}
|
|
if (ArgId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(ArgId);
|
|
}
|
|
if (Confirm != false) {
|
|
output.WriteRawTag(56);
|
|
output.WriteBool(Confirm);
|
|
}
|
|
if (IsValid != false) {
|
|
output.WriteRawTag(96);
|
|
output.WriteBool(IsValid);
|
|
}
|
|
if (OptionId != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteUInt32(OptionId);
|
|
}
|
|
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 (IsValid != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (displayValue_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DisplayValue);
|
|
}
|
|
if (Confirm != false) {
|
|
size += 1 + 1;
|
|
}
|
|
size += optionResultInfo_.CalculateSize(_repeated_optionResultInfo_codec);
|
|
if (ArgId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ArgId);
|
|
}
|
|
if (OptionId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(OptionId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RogueCommonDialogueOptionInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.IsValid != false) {
|
|
IsValid = other.IsValid;
|
|
}
|
|
if (other.displayValue_ != null) {
|
|
if (displayValue_ == null) {
|
|
DisplayValue = new global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionDisplayInfo();
|
|
}
|
|
DisplayValue.MergeFrom(other.DisplayValue);
|
|
}
|
|
if (other.Confirm != false) {
|
|
Confirm = other.Confirm;
|
|
}
|
|
optionResultInfo_.Add(other.optionResultInfo_);
|
|
if (other.ArgId != 0) {
|
|
ArgId = other.ArgId;
|
|
}
|
|
if (other.OptionId != 0) {
|
|
OptionId = other.OptionId;
|
|
}
|
|
_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 10: {
|
|
optionResultInfo_.AddEntriesFrom(input, _repeated_optionResultInfo_codec);
|
|
break;
|
|
}
|
|
case 34: {
|
|
if (displayValue_ == null) {
|
|
DisplayValue = new global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionDisplayInfo();
|
|
}
|
|
input.ReadMessage(DisplayValue);
|
|
break;
|
|
}
|
|
case 48: {
|
|
ArgId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
Confirm = input.ReadBool();
|
|
break;
|
|
}
|
|
case 96: {
|
|
IsValid = input.ReadBool();
|
|
break;
|
|
}
|
|
case 120: {
|
|
OptionId = 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 10: {
|
|
optionResultInfo_.AddEntriesFrom(ref input, _repeated_optionResultInfo_codec);
|
|
break;
|
|
}
|
|
case 34: {
|
|
if (displayValue_ == null) {
|
|
DisplayValue = new global::EggLink.DanhengServer.Proto.RogueCommonDialogueOptionDisplayInfo();
|
|
}
|
|
input.ReadMessage(DisplayValue);
|
|
break;
|
|
}
|
|
case 48: {
|
|
ArgId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
Confirm = input.ReadBool();
|
|
break;
|
|
}
|
|
case 96: {
|
|
IsValid = input.ReadBool();
|
|
break;
|
|
}
|
|
case 120: {
|
|
OptionId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|