123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: lobby.proto
- #pragma warning disable 1591, 0612, 3021
- #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 Protos {
- /// <summary>Holder for reflection information generated from lobby.proto</summary>
- public static partial class LobbyReflection {
- #region Descriptor
- /// <summary>File descriptor for lobby.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static LobbyReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cgtsb2JieS5wcm90bxIGcHJvdG9zGg51c2VyaW5mby5wcm90bxoMcmVzdWx0",
- "LnByb3RvIjMKDUxvYmJ5Sm9pblB1c2gSIgoIVXNlckluZm8YASABKAsyEC5w",
- "cm90b3MuVXNlckluZm8iIAoOTG9iYnlMZWF2ZVB1c2gSDgoGVXNlcklEGAEg",
- "ASgNIhYKFExvYmJ5VXNlckxpc3RSZXF1ZXN0IlgKFUxvYmJ5VXNlckxpc3RS",
- "ZXNwb25zZRIeCgZSZXN1bHQYASABKAsyDi5wcm90b3MuUmVzdWx0Eh8KBVVz",
- "ZXJzGAIgAygLMhAucHJvdG9zLlVzZXJJbmZvIiUKE0xvYmJ5R2V0VXNlclJl",
- "cXVlc3QSDgoGVXNlcklEGAEgASgNIlYKFExvYmJ5R2V0VXNlclJlc3BvbnNl",
- "Eh4KBlJlc3VsdBgBIAEoCzIOLnByb3Rvcy5SZXN1bHQSHgoEVXNlchgCIAEo",
- "CzIQLnByb3Rvcy5Vc2VySW5mb2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyJoinPush), global::Protos.LobbyJoinPush.Parser, new[]{ "UserInfo" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyLeavePush), global::Protos.LobbyLeavePush.Parser, new[]{ "UserID" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyUserListRequest), global::Protos.LobbyUserListRequest.Parser, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyUserListResponse), global::Protos.LobbyUserListResponse.Parser, new[]{ "Result", "Users" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyGetUserRequest), global::Protos.LobbyGetUserRequest.Parser, new[]{ "UserID" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyGetUserResponse), global::Protos.LobbyGetUserResponse.Parser, new[]{ "Result", "User" }, null, null, null)
- }));
- }
- #endregion
- }
- #region Messages
- /// <summary>
- /// 用户加入大厅
- /// </summary>
- public sealed partial class LobbyJoinPush : pb::IMessage<LobbyJoinPush> {
- private static readonly pb::MessageParser<LobbyJoinPush> _parser = new pb::MessageParser<LobbyJoinPush>(() => new LobbyJoinPush());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<LobbyJoinPush> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyJoinPush() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyJoinPush(LobbyJoinPush other) : this() {
- UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyJoinPush Clone() {
- return new LobbyJoinPush(this);
- }
- /// <summary>Field number for the "UserInfo" field.</summary>
- public const int UserInfoFieldNumber = 1;
- private global::Protos.UserInfo userInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Protos.UserInfo UserInfo {
- get { return userInfo_; }
- set {
- userInfo_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LobbyJoinPush);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LobbyJoinPush other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(UserInfo, other.UserInfo)) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (userInfo_ != null) hash ^= UserInfo.GetHashCode();
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (userInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(UserInfo);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (userInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LobbyJoinPush other) {
- if (other == null) {
- return;
- }
- if (other.userInfo_ != null) {
- if (userInfo_ == null) {
- userInfo_ = new global::Protos.UserInfo();
- }
- UserInfo.MergeFrom(other.UserInfo);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (userInfo_ == null) {
- userInfo_ = new global::Protos.UserInfo();
- }
- input.ReadMessage(userInfo_);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// 用户离开大厅
- /// </summary>
- public sealed partial class LobbyLeavePush : pb::IMessage<LobbyLeavePush> {
- private static readonly pb::MessageParser<LobbyLeavePush> _parser = new pb::MessageParser<LobbyLeavePush>(() => new LobbyLeavePush());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<LobbyLeavePush> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyLeavePush() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyLeavePush(LobbyLeavePush other) : this() {
- userID_ = other.userID_;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyLeavePush Clone() {
- return new LobbyLeavePush(this);
- }
- /// <summary>Field number for the "UserID" field.</summary>
- public const int UserIDFieldNumber = 1;
- private uint userID_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint UserID {
- get { return userID_; }
- set {
- userID_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LobbyLeavePush);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LobbyLeavePush other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (UserID != other.UserID) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (UserID != 0) hash ^= UserID.GetHashCode();
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (UserID != 0) {
- output.WriteRawTag(8);
- output.WriteUInt32(UserID);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (UserID != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LobbyLeavePush other) {
- if (other == null) {
- return;
- }
- if (other.UserID != 0) {
- UserID = other.UserID;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- UserID = input.ReadUInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class LobbyUserListRequest : pb::IMessage<LobbyUserListRequest> {
- private static readonly pb::MessageParser<LobbyUserListRequest> _parser = new pb::MessageParser<LobbyUserListRequest>(() => new LobbyUserListRequest());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<LobbyUserListRequest> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyUserListRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyUserListRequest(LobbyUserListRequest other) : this() {
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyUserListRequest Clone() {
- return new LobbyUserListRequest(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LobbyUserListRequest);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LobbyUserListRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LobbyUserListRequest other) {
- if (other == null) {
- return;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- }
- }
- }
- }
- public sealed partial class LobbyUserListResponse : pb::IMessage<LobbyUserListResponse> {
- private static readonly pb::MessageParser<LobbyUserListResponse> _parser = new pb::MessageParser<LobbyUserListResponse>(() => new LobbyUserListResponse());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<LobbyUserListResponse> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[3]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyUserListResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyUserListResponse(LobbyUserListResponse other) : this() {
- Result = other.result_ != null ? other.Result.Clone() : null;
- users_ = other.users_.Clone();
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyUserListResponse Clone() {
- return new LobbyUserListResponse(this);
- }
- /// <summary>Field number for the "Result" field.</summary>
- public const int ResultFieldNumber = 1;
- private global::Protos.Result result_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Protos.Result Result {
- get { return result_; }
- set {
- result_ = value;
- }
- }
- /// <summary>Field number for the "Users" field.</summary>
- public const int UsersFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Protos.UserInfo> _repeated_users_codec
- = pb::FieldCodec.ForMessage(18, global::Protos.UserInfo.Parser);
- private readonly pbc::RepeatedField<global::Protos.UserInfo> users_ = new pbc::RepeatedField<global::Protos.UserInfo>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Protos.UserInfo> Users {
- get { return users_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LobbyUserListResponse);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LobbyUserListResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Result, other.Result)) return false;
- if(!users_.Equals(other.users_)) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (result_ != null) hash ^= Result.GetHashCode();
- hash ^= users_.GetHashCode();
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (result_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Result);
- }
- users_.WriteTo(output, _repeated_users_codec);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (result_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
- }
- size += users_.CalculateSize(_repeated_users_codec);
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LobbyUserListResponse other) {
- if (other == null) {
- return;
- }
- if (other.result_ != null) {
- if (result_ == null) {
- result_ = new global::Protos.Result();
- }
- Result.MergeFrom(other.Result);
- }
- users_.Add(other.users_);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (result_ == null) {
- result_ = new global::Protos.Result();
- }
- input.ReadMessage(result_);
- break;
- }
- case 18: {
- users_.AddEntriesFrom(input, _repeated_users_codec);
- break;
- }
- }
- }
- }
- }
- public sealed partial class LobbyGetUserRequest : pb::IMessage<LobbyGetUserRequest> {
- private static readonly pb::MessageParser<LobbyGetUserRequest> _parser = new pb::MessageParser<LobbyGetUserRequest>(() => new LobbyGetUserRequest());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<LobbyGetUserRequest> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[4]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyGetUserRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyGetUserRequest(LobbyGetUserRequest other) : this() {
- userID_ = other.userID_;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyGetUserRequest Clone() {
- return new LobbyGetUserRequest(this);
- }
- /// <summary>Field number for the "UserID" field.</summary>
- public const int UserIDFieldNumber = 1;
- private uint userID_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint UserID {
- get { return userID_; }
- set {
- userID_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LobbyGetUserRequest);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LobbyGetUserRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (UserID != other.UserID) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (UserID != 0) hash ^= UserID.GetHashCode();
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (UserID != 0) {
- output.WriteRawTag(8);
- output.WriteUInt32(UserID);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (UserID != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LobbyGetUserRequest other) {
- if (other == null) {
- return;
- }
- if (other.UserID != 0) {
- UserID = other.UserID;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- UserID = input.ReadUInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class LobbyGetUserResponse : pb::IMessage<LobbyGetUserResponse> {
- private static readonly pb::MessageParser<LobbyGetUserResponse> _parser = new pb::MessageParser<LobbyGetUserResponse>(() => new LobbyGetUserResponse());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<LobbyGetUserResponse> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[5]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyGetUserResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyGetUserResponse(LobbyGetUserResponse other) : this() {
- Result = other.result_ != null ? other.Result.Clone() : null;
- User = other.user_ != null ? other.User.Clone() : null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LobbyGetUserResponse Clone() {
- return new LobbyGetUserResponse(this);
- }
- /// <summary>Field number for the "Result" field.</summary>
- public const int ResultFieldNumber = 1;
- private global::Protos.Result result_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Protos.Result Result {
- get { return result_; }
- set {
- result_ = value;
- }
- }
- /// <summary>Field number for the "User" field.</summary>
- public const int UserFieldNumber = 2;
- private global::Protos.UserInfo user_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Protos.UserInfo User {
- get { return user_; }
- set {
- user_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LobbyGetUserResponse);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LobbyGetUserResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Result, other.Result)) return false;
- if (!object.Equals(User, other.User)) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (result_ != null) hash ^= Result.GetHashCode();
- if (user_ != null) hash ^= User.GetHashCode();
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (result_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Result);
- }
- if (user_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(User);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (result_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
- }
- if (user_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LobbyGetUserResponse other) {
- if (other == null) {
- return;
- }
- if (other.result_ != null) {
- if (result_ == null) {
- result_ = new global::Protos.Result();
- }
- Result.MergeFrom(other.Result);
- }
- if (other.user_ != null) {
- if (user_ == null) {
- user_ = new global::Protos.UserInfo();
- }
- User.MergeFrom(other.User);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- if (result_ == null) {
- result_ = new global::Protos.Result();
- }
- input.ReadMessage(result_);
- break;
- }
- case 18: {
- if (user_ == null) {
- user_ = new global::Protos.UserInfo();
- }
- input.ReadMessage(user_);
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|