Files
DanhengServer-OpenSource/Common/Proto/ChatMessageData.cs
Somebody 89f9a4d121 Fix Bug
2024-07-17 21:29:18 +08:00

432 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ChatMessageData.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 ChatMessageData.proto</summary>
public static partial class ChatMessageDataReflection {
#region Descriptor
/// <summary>File descriptor for ChatMessageData.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ChatMessageDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChVDaGF0TWVzc2FnZURhdGEucHJvdG8aDU1zZ1R5cGUucHJvdG8aEUJJRU5F",
"QkNFSU9GLnByb3RvIqIBCg9DaGF0TWVzc2FnZURhdGESIQoLT0JGS0lET0lK",
"QkMYCyABKAsyDC5CSUVORUJDRUlPRhIQCghleHRyYV9pZBgBIAEoDRIeCgxt",
"ZXNzYWdlX3R5cGUYCiABKA4yCC5Nc2dUeXBlEhEKCXNlbmRlcl9pZBgHIAEo",
"DRIRCgl0aW1lc3RhbXAYAiABKAQSFAoMbWVzc2FnZV90ZXh0GAUgASgJQh6q",
"AhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MsgTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.BIENEBCEIOFReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChatMessageData), global::EggLink.DanhengServer.Proto.ChatMessageData.Parser, new[]{ "OBFKIDOIJBC", "ExtraId", "MessageType", "SenderId", "Timestamp", "MessageText" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class ChatMessageData : pb::IMessage<ChatMessageData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ChatMessageData> _parser = new pb::MessageParser<ChatMessageData>(() => new ChatMessageData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ChatMessageData> 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.ChatMessageDataReflection.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 ChatMessageData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ChatMessageData(ChatMessageData other) : this() {
oBFKIDOIJBC_ = other.oBFKIDOIJBC_ != null ? other.oBFKIDOIJBC_.Clone() : null;
extraId_ = other.extraId_;
messageType_ = other.messageType_;
senderId_ = other.senderId_;
timestamp_ = other.timestamp_;
messageText_ = other.messageText_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ChatMessageData Clone() {
return new ChatMessageData(this);
}
/// <summary>Field number for the "OBFKIDOIJBC" field.</summary>
public const int OBFKIDOIJBCFieldNumber = 11;
private global::EggLink.DanhengServer.Proto.BIENEBCEIOF oBFKIDOIJBC_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.BIENEBCEIOF OBFKIDOIJBC {
get { return oBFKIDOIJBC_; }
set {
oBFKIDOIJBC_ = value;
}
}
/// <summary>Field number for the "extra_id" field.</summary>
public const int ExtraIdFieldNumber = 1;
private uint extraId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint ExtraId {
get { return extraId_; }
set {
extraId_ = value;
}
}
/// <summary>Field number for the "message_type" field.</summary>
public const int MessageTypeFieldNumber = 10;
private global::EggLink.DanhengServer.Proto.MsgType messageType_ = global::EggLink.DanhengServer.Proto.MsgType.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.MsgType MessageType {
get { return messageType_; }
set {
messageType_ = value;
}
}
/// <summary>Field number for the "sender_id" field.</summary>
public const int SenderIdFieldNumber = 7;
private uint senderId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint SenderId {
get { return senderId_; }
set {
senderId_ = value;
}
}
/// <summary>Field number for the "timestamp" field.</summary>
public const int TimestampFieldNumber = 2;
private ulong timestamp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong Timestamp {
get { return timestamp_; }
set {
timestamp_ = value;
}
}
/// <summary>Field number for the "message_text" field.</summary>
public const int MessageTextFieldNumber = 5;
private string messageText_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string MessageText {
get { return messageText_; }
set {
messageText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ChatMessageData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ChatMessageData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(OBFKIDOIJBC, other.OBFKIDOIJBC)) return false;
if (ExtraId != other.ExtraId) return false;
if (MessageType != other.MessageType) return false;
if (SenderId != other.SenderId) return false;
if (Timestamp != other.Timestamp) return false;
if (MessageText != other.MessageText) 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 (oBFKIDOIJBC_ != null) hash ^= OBFKIDOIJBC.GetHashCode();
if (ExtraId != 0) hash ^= ExtraId.GetHashCode();
if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) hash ^= MessageType.GetHashCode();
if (SenderId != 0) hash ^= SenderId.GetHashCode();
if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode();
if (MessageText.Length != 0) hash ^= MessageText.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 (ExtraId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(ExtraId);
}
if (Timestamp != 0UL) {
output.WriteRawTag(16);
output.WriteUInt64(Timestamp);
}
if (MessageText.Length != 0) {
output.WriteRawTag(42);
output.WriteString(MessageText);
}
if (SenderId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(SenderId);
}
if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) {
output.WriteRawTag(80);
output.WriteEnum((int) MessageType);
}
if (oBFKIDOIJBC_ != null) {
output.WriteRawTag(90);
output.WriteMessage(OBFKIDOIJBC);
}
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 (ExtraId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(ExtraId);
}
if (Timestamp != 0UL) {
output.WriteRawTag(16);
output.WriteUInt64(Timestamp);
}
if (MessageText.Length != 0) {
output.WriteRawTag(42);
output.WriteString(MessageText);
}
if (SenderId != 0) {
output.WriteRawTag(56);
output.WriteUInt32(SenderId);
}
if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) {
output.WriteRawTag(80);
output.WriteEnum((int) MessageType);
}
if (oBFKIDOIJBC_ != null) {
output.WriteRawTag(90);
output.WriteMessage(OBFKIDOIJBC);
}
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 (oBFKIDOIJBC_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(OBFKIDOIJBC);
}
if (ExtraId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExtraId);
}
if (MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType);
}
if (SenderId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SenderId);
}
if (Timestamp != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp);
}
if (MessageText.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageText);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ChatMessageData other) {
if (other == null) {
return;
}
if (other.oBFKIDOIJBC_ != null) {
if (oBFKIDOIJBC_ == null) {
OBFKIDOIJBC = new global::EggLink.DanhengServer.Proto.BIENEBCEIOF();
}
OBFKIDOIJBC.MergeFrom(other.OBFKIDOIJBC);
}
if (other.ExtraId != 0) {
ExtraId = other.ExtraId;
}
if (other.MessageType != global::EggLink.DanhengServer.Proto.MsgType.None) {
MessageType = other.MessageType;
}
if (other.SenderId != 0) {
SenderId = other.SenderId;
}
if (other.Timestamp != 0UL) {
Timestamp = other.Timestamp;
}
if (other.MessageText.Length != 0) {
MessageText = other.MessageText;
}
_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: {
ExtraId = input.ReadUInt32();
break;
}
case 16: {
Timestamp = input.ReadUInt64();
break;
}
case 42: {
MessageText = input.ReadString();
break;
}
case 56: {
SenderId = input.ReadUInt32();
break;
}
case 80: {
MessageType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum();
break;
}
case 90: {
if (oBFKIDOIJBC_ == null) {
OBFKIDOIJBC = new global::EggLink.DanhengServer.Proto.BIENEBCEIOF();
}
input.ReadMessage(OBFKIDOIJBC);
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: {
ExtraId = input.ReadUInt32();
break;
}
case 16: {
Timestamp = input.ReadUInt64();
break;
}
case 42: {
MessageText = input.ReadString();
break;
}
case 56: {
SenderId = input.ReadUInt32();
break;
}
case 80: {
MessageType = (global::EggLink.DanhengServer.Proto.MsgType) input.ReadEnum();
break;
}
case 90: {
if (oBFKIDOIJBC_ == null) {
OBFKIDOIJBC = new global::EggLink.DanhengServer.Proto.BIENEBCEIOF();
}
input.ReadMessage(OBFKIDOIJBC);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code