Files
DanhengServer-OpenSource/Common/Proto/RogueDialogueEventParam.cs
2024-03-31 17:06:46 +08:00

385 lines
13 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RogueDialogueEventParam.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 RogueDialogueEventParam.proto</summary>
public static partial class RogueDialogueEventParamReflection {
#region Descriptor
/// <summary>File descriptor for RogueDialogueEventParam.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RogueDialogueEventParamReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch1Sb2d1ZURpYWxvZ3VlRXZlbnRQYXJhbS5wcm90byJ4ChdSb2d1ZURpYWxv",
"Z3VlRXZlbnRQYXJhbRIOCgZhcmdfaWQYCyABKA0SDQoFcmF0aW8YDSABKAIS",
"EQoJaW50X3ZhbHVlGAogASgFEhAKCGlzX3ZhbGlkGA8gASgIEhkKEWRpYWxv",
"Z3VlX2V2ZW50X2lkGAcgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu",
"UHJvdG9iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueDialogueEventParam), global::EggLink.DanhengServer.Proto.RogueDialogueEventParam.Parser, new[]{ "ArgId", "Ratio", "IntValue", "IsValid", "DialogueEventId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class RogueDialogueEventParam : pb::IMessage<RogueDialogueEventParam>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<RogueDialogueEventParam> _parser = new pb::MessageParser<RogueDialogueEventParam>(() => new RogueDialogueEventParam());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<RogueDialogueEventParam> 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.RogueDialogueEventParamReflection.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 RogueDialogueEventParam() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueDialogueEventParam(RogueDialogueEventParam other) : this() {
argId_ = other.argId_;
ratio_ = other.ratio_;
intValue_ = other.intValue_;
isValid_ = other.isValid_;
dialogueEventId_ = other.dialogueEventId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueDialogueEventParam Clone() {
return new RogueDialogueEventParam(this);
}
/// <summary>Field number for the "arg_id" field.</summary>
public const int ArgIdFieldNumber = 11;
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 "ratio" field.</summary>
public const int RatioFieldNumber = 13;
private float ratio_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Ratio {
get { return ratio_; }
set {
ratio_ = value;
}
}
/// <summary>Field number for the "int_value" field.</summary>
public const int IntValueFieldNumber = 10;
private int intValue_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int IntValue {
get { return intValue_; }
set {
intValue_ = value;
}
}
/// <summary>Field number for the "is_valid" field.</summary>
public const int IsValidFieldNumber = 15;
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 "dialogue_event_id" field.</summary>
public const int DialogueEventIdFieldNumber = 7;
private uint dialogueEventId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint DialogueEventId {
get { return dialogueEventId_; }
set {
dialogueEventId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as RogueDialogueEventParam);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RogueDialogueEventParam other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ArgId != other.ArgId) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Ratio, other.Ratio)) return false;
if (IntValue != other.IntValue) return false;
if (IsValid != other.IsValid) return false;
if (DialogueEventId != other.DialogueEventId) 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 (ArgId != 0) hash ^= ArgId.GetHashCode();
if (Ratio != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Ratio);
if (IntValue != 0) hash ^= IntValue.GetHashCode();
if (IsValid != false) hash ^= IsValid.GetHashCode();
if (DialogueEventId != 0) hash ^= DialogueEventId.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 (DialogueEventId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(DialogueEventId);
}
if (IntValue != 0) {
output.WriteRawTag(80);
output.WriteInt32(IntValue);
}
if (ArgId != 0) {
output.WriteRawTag(88);
output.WriteUInt32(ArgId);
}
if (Ratio != 0F) {
output.WriteRawTag(109);
output.WriteFloat(Ratio);
}
if (IsValid != false) {
output.WriteRawTag(120);
output.WriteBool(IsValid);
}
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 (DialogueEventId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(DialogueEventId);
}
if (IntValue != 0) {
output.WriteRawTag(80);
output.WriteInt32(IntValue);
}
if (ArgId != 0) {
output.WriteRawTag(88);
output.WriteUInt32(ArgId);
}
if (Ratio != 0F) {
output.WriteRawTag(109);
output.WriteFloat(Ratio);
}
if (IsValid != false) {
output.WriteRawTag(120);
output.WriteBool(IsValid);
}
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 (ArgId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ArgId);
}
if (Ratio != 0F) {
size += 1 + 4;
}
if (IntValue != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntValue);
}
if (IsValid != false) {
size += 1 + 1;
}
if (DialogueEventId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DialogueEventId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(RogueDialogueEventParam other) {
if (other == null) {
return;
}
if (other.ArgId != 0) {
ArgId = other.ArgId;
}
if (other.Ratio != 0F) {
Ratio = other.Ratio;
}
if (other.IntValue != 0) {
IntValue = other.IntValue;
}
if (other.IsValid != false) {
IsValid = other.IsValid;
}
if (other.DialogueEventId != 0) {
DialogueEventId = other.DialogueEventId;
}
_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 56: {
DialogueEventId = input.ReadUInt32();
break;
}
case 80: {
IntValue = input.ReadInt32();
break;
}
case 88: {
ArgId = input.ReadUInt32();
break;
}
case 109: {
Ratio = input.ReadFloat();
break;
}
case 120: {
IsValid = input.ReadBool();
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 56: {
DialogueEventId = input.ReadUInt32();
break;
}
case 80: {
IntValue = input.ReadInt32();
break;
}
case 88: {
ArgId = input.ReadUInt32();
break;
}
case 109: {
Ratio = input.ReadFloat();
break;
}
case 120: {
IsValid = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code