Files
DanhengServer-OpenSource/Proto/LobbyBasicInfo.cs
2025-06-06 17:50:07 +08:00

340 lines
13 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: LobbyBasicInfo.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 LobbyBasicInfo.proto</summary>
public static partial class LobbyBasicInfoReflection {
#region Descriptor
/// <summary>File descriptor for LobbyBasicInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static LobbyBasicInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChRMb2JieUJhc2ljSW5mby5wcm90bxoVTG9iYnlQbGF5ZXJJbmZvLnByb3Rv",
"GhNMb2JieUdhbWVJbmZvLnByb3RvGhpMb2JieVBsYXllckJhc2ljSW5mby5w",
"cm90byKMAQoOTG9iYnlCYXNpY0luZm8SKQoKYmFzaWNfaW5mbxgBIAEoCzIV",
"LkxvYmJ5UGxheWVyQmFzaWNJbmZvEisKEXBsYXllcl9sb2JieV9pbmZvGAIg",
"ASgLMhAuTG9iYnlQbGF5ZXJJbmZvEiIKCnN0YWdlX2luZm8YAyABKAsyDi5M",
"b2JieUdhbWVJbmZvQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9i",
"BnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LobbyPlayerInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.LobbyGameInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.LobbyPlayerBasicInfoReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LobbyBasicInfo), global::EggLink.DanhengServer.Proto.LobbyBasicInfo.Parser, new[]{ "BasicInfo", "PlayerLobbyInfo", "StageInfo" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class LobbyBasicInfo : pb::IMessage<LobbyBasicInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<LobbyBasicInfo> _parser = new pb::MessageParser<LobbyBasicInfo>(() => new LobbyBasicInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<LobbyBasicInfo> 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.LobbyBasicInfoReflection.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 LobbyBasicInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LobbyBasicInfo(LobbyBasicInfo other) : this() {
basicInfo_ = other.basicInfo_ != null ? other.basicInfo_.Clone() : null;
playerLobbyInfo_ = other.playerLobbyInfo_ != null ? other.playerLobbyInfo_.Clone() : null;
stageInfo_ = other.stageInfo_ != null ? other.stageInfo_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LobbyBasicInfo Clone() {
return new LobbyBasicInfo(this);
}
/// <summary>Field number for the "basic_info" field.</summary>
public const int BasicInfoFieldNumber = 1;
private global::EggLink.DanhengServer.Proto.LobbyPlayerBasicInfo basicInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.LobbyPlayerBasicInfo BasicInfo {
get { return basicInfo_; }
set {
basicInfo_ = value;
}
}
/// <summary>Field number for the "player_lobby_info" field.</summary>
public const int PlayerLobbyInfoFieldNumber = 2;
private global::EggLink.DanhengServer.Proto.LobbyPlayerInfo playerLobbyInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.LobbyPlayerInfo PlayerLobbyInfo {
get { return playerLobbyInfo_; }
set {
playerLobbyInfo_ = value;
}
}
/// <summary>Field number for the "stage_info" field.</summary>
public const int StageInfoFieldNumber = 3;
private global::EggLink.DanhengServer.Proto.LobbyGameInfo stageInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.LobbyGameInfo StageInfo {
get { return stageInfo_; }
set {
stageInfo_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LobbyBasicInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LobbyBasicInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(BasicInfo, other.BasicInfo)) return false;
if (!object.Equals(PlayerLobbyInfo, other.PlayerLobbyInfo)) return false;
if (!object.Equals(StageInfo, other.StageInfo)) 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 (basicInfo_ != null) hash ^= BasicInfo.GetHashCode();
if (playerLobbyInfo_ != null) hash ^= PlayerLobbyInfo.GetHashCode();
if (stageInfo_ != null) hash ^= StageInfo.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 (basicInfo_ != null) {
output.WriteRawTag(10);
output.WriteMessage(BasicInfo);
}
if (playerLobbyInfo_ != null) {
output.WriteRawTag(18);
output.WriteMessage(PlayerLobbyInfo);
}
if (stageInfo_ != null) {
output.WriteRawTag(26);
output.WriteMessage(StageInfo);
}
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 (basicInfo_ != null) {
output.WriteRawTag(10);
output.WriteMessage(BasicInfo);
}
if (playerLobbyInfo_ != null) {
output.WriteRawTag(18);
output.WriteMessage(PlayerLobbyInfo);
}
if (stageInfo_ != null) {
output.WriteRawTag(26);
output.WriteMessage(StageInfo);
}
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 (basicInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BasicInfo);
}
if (playerLobbyInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerLobbyInfo);
}
if (stageInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(StageInfo);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LobbyBasicInfo other) {
if (other == null) {
return;
}
if (other.basicInfo_ != null) {
if (basicInfo_ == null) {
BasicInfo = new global::EggLink.DanhengServer.Proto.LobbyPlayerBasicInfo();
}
BasicInfo.MergeFrom(other.BasicInfo);
}
if (other.playerLobbyInfo_ != null) {
if (playerLobbyInfo_ == null) {
PlayerLobbyInfo = new global::EggLink.DanhengServer.Proto.LobbyPlayerInfo();
}
PlayerLobbyInfo.MergeFrom(other.PlayerLobbyInfo);
}
if (other.stageInfo_ != null) {
if (stageInfo_ == null) {
StageInfo = new global::EggLink.DanhengServer.Proto.LobbyGameInfo();
}
StageInfo.MergeFrom(other.StageInfo);
}
_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: {
if (basicInfo_ == null) {
BasicInfo = new global::EggLink.DanhengServer.Proto.LobbyPlayerBasicInfo();
}
input.ReadMessage(BasicInfo);
break;
}
case 18: {
if (playerLobbyInfo_ == null) {
PlayerLobbyInfo = new global::EggLink.DanhengServer.Proto.LobbyPlayerInfo();
}
input.ReadMessage(PlayerLobbyInfo);
break;
}
case 26: {
if (stageInfo_ == null) {
StageInfo = new global::EggLink.DanhengServer.Proto.LobbyGameInfo();
}
input.ReadMessage(StageInfo);
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: {
if (basicInfo_ == null) {
BasicInfo = new global::EggLink.DanhengServer.Proto.LobbyPlayerBasicInfo();
}
input.ReadMessage(BasicInfo);
break;
}
case 18: {
if (playerLobbyInfo_ == null) {
PlayerLobbyInfo = new global::EggLink.DanhengServer.Proto.LobbyPlayerInfo();
}
input.ReadMessage(PlayerLobbyInfo);
break;
}
case 26: {
if (stageInfo_ == null) {
StageInfo = new global::EggLink.DanhengServer.Proto.LobbyGameInfo();
}
input.ReadMessage(StageInfo);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code