|
@@ -1,805 +0,0 @@
|
|
-// 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
|
|
|