mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
423 lines
15 KiB
C#
423 lines
15 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: RevcMsgScNotify.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 RevcMsgScNotify.proto</summary>
|
|
public static partial class RevcMsgScNotifyReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for RevcMsgScNotify.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RevcMsgScNotifyReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChVSZXZjTXNnU2NOb3RpZnkucHJvdG8aDkNoYXRUeXBlLnByb3RvGg1Nc2dU",
|
|
"eXBlLnByb3RvIooBCg9SZXZjTXNnU2NOb3RpZnkSDgoGdG9fdWlkGAsgASgN",
|
|
"Eg0KBWVtb3RlGA4gASgNEgwKBHRleHQYCCABKAkSGgoIbXNnX3R5cGUYDyAB",
|
|
"KA4yCC5Nc2dUeXBlEhwKCWNoYXRfdHlwZRgNIAEoDjIJLkNoYXRUeXBlEhAK",
|
|
"CGZyb21fdWlkGAQgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv",
|
|
"dG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChatTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.MsgTypeReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RevcMsgScNotify), global::EggLink.DanhengServer.Proto.RevcMsgScNotify.Parser, new[]{ "ToUid", "Emote", "Text", "MsgType", "ChatType", "FromUid" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RevcMsgScNotify : pb::IMessage<RevcMsgScNotify>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RevcMsgScNotify> _parser = new pb::MessageParser<RevcMsgScNotify>(() => new RevcMsgScNotify());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RevcMsgScNotify> 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.RevcMsgScNotifyReflection.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 RevcMsgScNotify() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RevcMsgScNotify(RevcMsgScNotify other) : this() {
|
|
toUid_ = other.toUid_;
|
|
emote_ = other.emote_;
|
|
text_ = other.text_;
|
|
msgType_ = other.msgType_;
|
|
chatType_ = other.chatType_;
|
|
fromUid_ = other.fromUid_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RevcMsgScNotify Clone() {
|
|
return new RevcMsgScNotify(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "to_uid" field.</summary>
|
|
public const int ToUidFieldNumber = 11;
|
|
private uint toUid_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint ToUid {
|
|
get { return toUid_; }
|
|
set {
|
|
toUid_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "emote" field.</summary>
|
|
public const int EmoteFieldNumber = 14;
|
|
private uint emote_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Emote {
|
|
get { return emote_; }
|
|
set {
|
|
emote_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "text" field.</summary>
|
|
public const int TextFieldNumber = 8;
|
|
private string text_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Text {
|
|
get { return text_; }
|
|
set {
|
|
text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "msg_type" field.</summary>
|
|
public const int MsgTypeFieldNumber = 15;
|
|
private global::EggLink.DanhengServer.Proto.MsgType msgType_ = global::EggLink.DanhengServer.Proto.MsgType.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.MsgType MsgType {
|
|
get { return msgType_; }
|
|
set {
|
|
msgType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "chat_type" field.</summary>
|
|
public const int ChatTypeFieldNumber = 13;
|
|
private global::EggLink.DanhengServer.Proto.ChatType chatType_ = global::EggLink.DanhengServer.Proto.ChatType.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.ChatType ChatType {
|
|
get { return chatType_; }
|
|
set {
|
|
chatType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "from_uid" field.</summary>
|
|
public const int FromUidFieldNumber = 4;
|
|
private uint fromUid_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint FromUid {
|
|
get { return fromUid_; }
|
|
set {
|
|
fromUid_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RevcMsgScNotify);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RevcMsgScNotify other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (ToUid != other.ToUid) return false;
|
|
if (Emote != other.Emote) return false;
|
|
if (Text != other.Text) return false;
|
|
if (MsgType != other.MsgType) return false;
|
|
if (ChatType != other.ChatType) return false;
|
|
if (FromUid != other.FromUid) 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 (ToUid != 0) hash ^= ToUid.GetHashCode();
|
|
if (Emote != 0) hash ^= Emote.GetHashCode();
|
|
if (Text.Length != 0) hash ^= Text.GetHashCode();
|
|
if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) hash ^= MsgType.GetHashCode();
|
|
if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) hash ^= ChatType.GetHashCode();
|
|
if (FromUid != 0) hash ^= FromUid.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 (FromUid != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(FromUid);
|
|
}
|
|
if (Text.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(Text);
|
|
}
|
|
if (ToUid != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteUInt32(ToUid);
|
|
}
|
|
if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) {
|
|
output.WriteRawTag(104);
|
|
output.WriteEnum((int) ChatType);
|
|
}
|
|
if (Emote != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(Emote);
|
|
}
|
|
if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) {
|
|
output.WriteRawTag(120);
|
|
output.WriteEnum((int) MsgType);
|
|
}
|
|
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 (FromUid != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(FromUid);
|
|
}
|
|
if (Text.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(Text);
|
|
}
|
|
if (ToUid != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteUInt32(ToUid);
|
|
}
|
|
if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) {
|
|
output.WriteRawTag(104);
|
|
output.WriteEnum((int) ChatType);
|
|
}
|
|
if (Emote != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(Emote);
|
|
}
|
|
if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) {
|
|
output.WriteRawTag(120);
|
|
output.WriteEnum((int) MsgType);
|
|
}
|
|
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 (ToUid != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ToUid);
|
|
}
|
|
if (Emote != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Emote);
|
|
}
|
|
if (Text.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
|
|
}
|
|
if (MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MsgType);
|
|
}
|
|
if (ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChatType);
|
|
}
|
|
if (FromUid != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FromUid);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RevcMsgScNotify other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.ToUid != 0) {
|
|
ToUid = other.ToUid;
|
|
}
|
|
if (other.Emote != 0) {
|
|
Emote = other.Emote;
|
|
}
|
|
if (other.Text.Length != 0) {
|
|
Text = other.Text;
|
|
}
|
|
if (other.MsgType != global::EggLink.DanhengServer.Proto.MsgType.None) {
|
|
MsgType = other.MsgType;
|
|
}
|
|
if (other.ChatType != global::EggLink.DanhengServer.Proto.ChatType.None) {
|
|
ChatType = other.ChatType;
|
|
}
|
|
if (other.FromUid != 0) {
|
|
FromUid = other.FromUid;
|
|
}
|
|
_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 32: {
|
|
FromUid = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 66: {
|
|
Text = input.ReadString();
|
|
break;
|
|
}
|
|
case 88: {
|
|
ToUid = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
ChatType = (global::EggLink.DanhengServer.Proto.ChatType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 112: {
|
|
Emote = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum();
|
|
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 32: {
|
|
FromUid = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 66: {
|
|
Text = input.ReadString();
|
|
break;
|
|
}
|
|
case 88: {
|
|
ToUid = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
ChatType = (global::EggLink.DanhengServer.Proto.ChatType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 112: {
|
|
Emote = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
MsgType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|