diff --git a/xiaofang/Assets/ProtoBuf/Proto/Config.cs b/xiaofang/Assets/ProtoBuf/Proto/Config.cs deleted file mode 100644 index 4b9a1401..00000000 --- a/xiaofang/Assets/ProtoBuf/Proto/Config.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: config.proto -// -#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; -/// Holder for reflection information generated from config.proto -public static partial class ConfigReflection { - - #region Descriptor - /// File descriptor for config.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConfigReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgxjb25maWcucHJvdG8qnQEKCkVSUk9SX0NPREUSCgoGRVJSX09rEAASEAoM", - "RVJSX05vUGxheWVyEAESDgoKRVJSX05vUm9vbRACEg0KCUVSUl9Ub2tlbhAE", - "Eg0KCUVSUl9Mb2dpbhAFEg4KCkVSUl9BY3Rpb24QBhIOCgpFUlJfUGFyYW1z", - "EAcSDgoKRVJSX1NlcnZlchAIEhMKD0VSUl9Ob0F1dGhvcml0eRAJQgdaBS4v", - "O3BiYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ERROR_CODE), }, null, null)); - } - #endregion - -} -#region Enums -/// -///错误码 -/// -public enum ERROR_CODE { - /// - ///OK - /// - [pbr::OriginalName("ERR_Ok")] ErrOk = 0, - /// - ///没有这个玩家 - /// - [pbr::OriginalName("ERR_NoPlayer")] ErrNoPlayer = 1, - /// - ///加入房间失败 - /// - [pbr::OriginalName("ERR_NoRoom")] ErrNoRoom = 2, - /// - ///Token验证失败 - /// - [pbr::OriginalName("ERR_Token")] ErrToken = 4, - /// - ///登录失败 - /// - [pbr::OriginalName("ERR_Login")] ErrLogin = 5, - /// - ///操作失败 - /// - [pbr::OriginalName("ERR_Action")] ErrAction = 6, - /// - ///参数错误 - /// - [pbr::OriginalName("ERR_Params")] ErrParams = 7, - /// - ///服务器内部错误 - /// - [pbr::OriginalName("ERR_Server")] ErrServer = 8, - /// - ///没有权限 - /// - [pbr::OriginalName("ERR_NoAuthority")] ErrNoAuthority = 9, -} - -#endregion - - -#endregion Designer generated code diff --git a/xiaofang/Assets/ProtoBuf/Proto/Hall.cs b/xiaofang/Assets/ProtoBuf/Proto/Hall.cs index 412b7f98..998c9be0 100644 --- a/xiaofang/Assets/ProtoBuf/Proto/Hall.cs +++ b/xiaofang/Assets/ProtoBuf/Proto/Hall.cs @@ -23,42 +23,45 @@ public static partial class HallReflection { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CgpoYWxsLnByb3RvIi8KDExvZ2luUmVxdWVzdBIOCgZ1c2VySWQYASABKAkS", - "DwoHYWNjb3VudBgCIAEoCSIuCg1Mb2dpblJlc3BvbnNlEg8KB21lc3NhZ2UY", - "ASABKAkSDAoEY29kZRgCIAEoBSIfCgxIZWxsb1JlcXVlc3QSDwoHbWVzc2Fn", - "ZRgBIAEoCSIgCg1IZWxsb1Jlc3BvbnNlEg8KB21lc3NhZ2UYASABKAkiIQoP", - "Sm9pblJvb21SZXF1ZXN0Eg4KBnJvb21JZBgBIAEoCSJUChBKb2luUm9vbVJl", - "c3BvbnNlEg8KB21lc3NhZ2UYASABKAkSDAoEY29kZRgCIAEoBRIhCgRkYXRh", - "GAMgASgLMhMuUGxheWVySm9pblJlc3BvbnNlIrcDChJQbGF5ZXJKb2luUmVz", - "cG9uc2USEAoIVXNlck5hbWUYASABKAkSDgoGUm9vbUlkGAIgASgJEg4KBlN0", - "YXR1cxgDIAEoBRIQCghSb2xlTmFtZRgEIAEoCRIUCgxJc0xlYWRpbmdOUEMY", - "BSABKAUSDgoGT25saW5lGAYgASgIEg4KBlJvbGVJZBgHIAEoBRITCgtHcm91", - "cExlYWRlchgIIAEoBRISCgpBY3Rpb25Nb2RlGAkgASgFEg0KBUdyb3VwGAog", - "ASgFEgkKAVgYCyABKAESCQoBWRgMIAEoARIJCgFaGA0gASgBEhMKC092ZXJz", - "ZWVDb25kGA4gASgJEhYKDlNlbmRGcmFtZUNvdW50GA8gASgFEhYKDk1vdmVT", - "cGVlZEZpcnN0GBAgASgFEhcKD01vdmVTcGVlZFNlY29uZBgRIAEoBRIWCg5N", - "b3ZlU3BlZWRUaGlyZBgSIAEoBRIQCghCZWFyTG9hZBgTIAEoBRISCgpQcm90", - "ZWN0aW9uGBQgASgFEg4KBkhlYWx0aBgVIAEoBRISCgpSb2xlU3RhdHVzGBYg", - "ASgFEg4KBlVzZXJJZBgXIAEoAyIpChNQcm9wVGVtcGxhdGVSZXF1ZXN0EhIK", - "CnRlbXBsYXRlSWQYASABKAMiSwoUUHJvcFRlbXBsYXRlUmVzcG9uc2USEgoK", - "VGVtcGxhdGVJZBgBIAEoAxILCgNOdW0YAiABKAMSEgoKTWF0ZXJpYWxJZBgD", - "IAEoAyI7Cg9QcGNQcm9wUmVzcG9uc2USKAoJcmVzcG9uc2VzGAEgAygLMhUu", - "UHJvcFRlbXBsYXRlUmVzcG9uc2UiWgoTUnBjUm9vbUluZm9SZXNwb25zZRIK", - "CgJJZBgBIAEoAxISCgpUZW1wbGF0ZUlkGAIgASgDEg4KBlN0YXR1cxgDIAEo", - "AxITCgtSZXNlcnZlRGF0ZRgEIAEoAyI5ChNVc2VyVGVtcGxhdGVSZXF1ZXN0", - "EhIKCnRlbXBsYXRlSWQYASABKAMSDgoGUm9vbUlkGAIgASgJIjgKDFVzZXJU", - "ZW1wbGF0ZRIoCglyZXNwb25zZXMYASADKAsyFS5Vc2VyVGVtcGxhdGVSZXNw", - "b25zZSKVAQoUVXNlclRlbXBsYXRlUmVzcG9uc2USDgoGUm9vbUlkGAEgASgD", - "Eg4KBlVzZXJJZBgCIAEoAxIOCgZTdGF0dXMYAyABKAUSEgoKVGVtcGxhdGVJ", - "ZBgEIAEoAxIOCgZSb2xlSWQYBSABKAMSEwoLQmlydGhBcmVhSWQYBiABKAMS", - "FAoMQ2hhcmdlQXJlYUlkGAcgASgDImIKD1VzZXJJbmZvUmVxdWVzdBIOCgZV", - "c2VySWQYASABKAMSDgoGU3RhdHVzGAIgASgFEg4KBlJvb21JZBgDIAEoCRIJ", - "CgF4GAQgASgCEgkKAXkYBSABKAISCQoBehgGIAEoAiISChBVc2VySW5mb1Jl", - "c3BvbnNlQgdaBS4vO3BiYgZwcm90bzM=")); + "DwoHYWNjb3VudBgCIAEoCSJfCg1Mb2dpblJlc3BvbnNlEg8KB21lc3NhZ2UY", + "ASABKAkSDAoEY29kZRgCIAEoBRIMCgRkYXRlGAQgASgJEiEKBGRhdGEYAyAB", + "KAsyEy5QbGF5ZXJKb2luUmVzcG9uc2UiHwoMSGVsbG9SZXF1ZXN0Eg8KB21l", + "c3NhZ2UYASABKAkiIAoNSGVsbG9SZXNwb25zZRIPCgdtZXNzYWdlGAEgASgJ", + "IiEKD0pvaW5Sb29tUmVxdWVzdBIOCgZyb29tSWQYASABKAkiVAoQSm9pblJv", + "b21SZXNwb25zZRIPCgdtZXNzYWdlGAEgASgJEgwKBGNvZGUYAiABKAUSIQoE", + "ZGF0YRgDIAEoCzITLlBsYXllckpvaW5SZXNwb25zZSK3AwoSUGxheWVySm9p", + "blJlc3BvbnNlEhAKCFVzZXJOYW1lGAEgASgJEg4KBlJvb21JZBgCIAEoCRIO", + "CgZTdGF0dXMYAyABKAUSEAoIUm9sZU5hbWUYBCABKAkSFAoMSXNMZWFkaW5n", + "TlBDGAUgASgFEg4KBk9ubGluZRgGIAEoCBIOCgZSb2xlSWQYByABKAUSEwoL", + "R3JvdXBMZWFkZXIYCCABKAUSEgoKQWN0aW9uTW9kZRgJIAEoBRINCgVHcm91", + "cBgKIAEoBRIJCgFYGAsgASgBEgkKAVkYDCABKAESCQoBWhgNIAEoARITCgtP", + "dmVyc2VlQ29uZBgOIAEoCRIWCg5TZW5kRnJhbWVDb3VudBgPIAEoBRIWCg5N", + "b3ZlU3BlZWRGaXJzdBgQIAEoBRIXCg9Nb3ZlU3BlZWRTZWNvbmQYESABKAUS", + "FgoOTW92ZVNwZWVkVGhpcmQYEiABKAUSEAoIQmVhckxvYWQYEyABKAUSEgoK", + "UHJvdGVjdGlvbhgUIAEoBRIOCgZIZWFsdGgYFSABKAUSEgoKUm9sZVN0YXR1", + "cxgWIAEoBRIOCgZVc2VySWQYFyABKAMiKQoTUHJvcFRlbXBsYXRlUmVxdWVz", + "dBISCgp0ZW1wbGF0ZUlkGAEgASgDIksKFFByb3BUZW1wbGF0ZVJlc3BvbnNl", + "EhIKClRlbXBsYXRlSWQYASABKAMSCwoDTnVtGAIgASgDEhIKCk1hdGVyaWFs", + "SWQYAyABKAMiOwoPUHBjUHJvcFJlc3BvbnNlEigKCXJlc3BvbnNlcxgBIAMo", + "CzIVLlByb3BUZW1wbGF0ZVJlc3BvbnNlIloKE1JwY1Jvb21JbmZvUmVzcG9u", + "c2USCgoCSWQYASABKAMSEgoKVGVtcGxhdGVJZBgCIAEoAxIOCgZTdGF0dXMY", + "AyABKAMSEwoLUmVzZXJ2ZURhdGUYBCABKAkiOQoTVXNlclRlbXBsYXRlUmVx", + "dWVzdBISCgp0ZW1wbGF0ZUlkGAEgASgDEg4KBlJvb21JZBgCIAEoCSI4CgxV", + "c2VyVGVtcGxhdGUSKAoJcmVzcG9uc2VzGAEgAygLMhUuVXNlclRlbXBsYXRl", + "UmVzcG9uc2Ui/wEKFFVzZXJUZW1wbGF0ZVJlc3BvbnNlEg4KBlJvb21JZBgB", + "IAEoAxIOCgZVc2VySWQYAiABKAMSDgoGU3RhdHVzGAMgASgFEhIKClRlbXBs", + "YXRlSWQYBCABKAMSDgoGUm9sZUlkGAUgASgDEhMKC0JpcnRoQXJlYUlkGAYg", + "ASgDEhQKDENoYXJnZUFyZWFJZBgHIAEoAxIJCgFYGAggASgCEgkKAVkYCSAB", + "KAISCQoBWhgKIAEoAhIWCg5Nb3ZlU3BlZWRGaXJzdBgLIAEoAxIXCg9Nb3Zl", + "U3BlZWRTZWNvbmQYDCABKAMSFgoOTW92ZVNwZWVkVGhpcmQYDSABKAMiYgoP", + "VXNlckluZm9SZXF1ZXN0Eg4KBlVzZXJJZBgBIAEoAxIOCgZTdGF0dXMYAiAB", + "KAUSDgoGUm9vbUlkGAMgASgJEgkKAXgYBCABKAISCQoBeRgFIAEoAhIJCgF6", + "GAYgASgCIhIKEFVzZXJJbmZvUmVzcG9uc2VCB1oFLi87cGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LoginRequest), global::LoginRequest.Parser, new[]{ "UserId", "Account" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LoginResponse), global::LoginResponse.Parser, new[]{ "Message", "Code" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LoginResponse), global::LoginResponse.Parser, new[]{ "Message", "Code", "Date", "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::HelloRequest), global::HelloRequest.Parser, new[]{ "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::HelloResponse), global::HelloResponse.Parser, new[]{ "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::JoinRoomRequest), global::JoinRoomRequest.Parser, new[]{ "RoomId" }, null, null, null, null), @@ -70,7 +73,7 @@ public static partial class HallReflection { new pbr::GeneratedClrTypeInfo(typeof(global::RpcRoomInfoResponse), global::RpcRoomInfoResponse.Parser, new[]{ "Id", "TemplateId", "Status", "ReserveDate" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateRequest), global::UserTemplateRequest.Parser, new[]{ "TemplateId", "RoomId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplate), global::UserTemplate.Parser, new[]{ "Responses" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateResponse), global::UserTemplateResponse.Parser, new[]{ "RoomId", "UserId", "Status", "TemplateId", "RoleId", "BirthAreaId", "ChargeAreaId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateResponse), global::UserTemplateResponse.Parser, new[]{ "RoomId", "UserId", "Status", "TemplateId", "RoleId", "BirthAreaId", "ChargeAreaId", "X", "Y", "Z", "MoveSpeedFirst", "MoveSpeedSecond", "MoveSpeedThird" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::UserInfoRequest), global::UserInfoRequest.Parser, new[]{ "UserId", "Status", "RoomId", "X", "Y", "Z" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::UserInfoResponse), global::UserInfoResponse.Parser, null, null, null, null, null) })); @@ -351,6 +354,8 @@ public sealed partial class LoginResponse : pb::IMessage public LoginResponse(LoginResponse other) : this() { message_ = other.message_; code_ = other.code_; + date_ = other.date_; + data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -384,6 +389,33 @@ public sealed partial class LoginResponse : pb::IMessage } } + /// Field number for the "date" field. + public const int DateFieldNumber = 4; + private string date_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Date { + get { return date_; } + set { + date_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 3; + private global::PlayerJoinResponse data_; + /// + /// 玩家信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::PlayerJoinResponse Data { + get { return data_; } + set { + data_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -401,6 +433,8 @@ public sealed partial class LoginResponse : pb::IMessage } if (Message != other.Message) return false; if (Code != other.Code) return false; + if (Date != other.Date) return false; + if (!object.Equals(Data, other.Data)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -410,6 +444,8 @@ public sealed partial class LoginResponse : pb::IMessage int hash = 1; if (Message.Length != 0) hash ^= Message.GetHashCode(); if (Code != 0) hash ^= Code.GetHashCode(); + if (Date.Length != 0) hash ^= Date.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -436,6 +472,14 @@ public sealed partial class LoginResponse : pb::IMessage output.WriteRawTag(16); output.WriteInt32(Code); } + if (data_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Data); + } + if (Date.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Date); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -454,6 +498,14 @@ public sealed partial class LoginResponse : pb::IMessage output.WriteRawTag(16); output.WriteInt32(Code); } + if (data_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Data); + } + if (Date.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Date); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -470,6 +522,12 @@ public sealed partial class LoginResponse : pb::IMessage if (Code != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); } + if (Date.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Date); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -488,6 +546,15 @@ public sealed partial class LoginResponse : pb::IMessage if (other.Code != 0) { Code = other.Code; } + if (other.Date.Length != 0) { + Date = other.Date; + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::PlayerJoinResponse(); + } + Data.MergeFrom(other.Data); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -515,6 +582,17 @@ public sealed partial class LoginResponse : pb::IMessage Code = input.ReadInt32(); break; } + case 26: { + if (data_ == null) { + Data = new global::PlayerJoinResponse(); + } + input.ReadMessage(Data); + break; + } + case 34: { + Date = input.ReadString(); + break; + } } } #endif @@ -542,6 +620,17 @@ public sealed partial class LoginResponse : pb::IMessage Code = input.ReadInt32(); break; } + case 26: { + if (data_ == null) { + Data = new global::PlayerJoinResponse(); + } + input.ReadMessage(Data); + break; + } + case 34: { + Date = input.ReadString(); + break; + } } } } @@ -3260,13 +3349,13 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessageField number for the "ReserveDate" field. public const int ReserveDateFieldNumber = 4; - private long reserveDate_; + private string reserveDate_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ReserveDate { + public string ReserveDate { get { return reserveDate_; } set { - reserveDate_ = value; + reserveDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -3299,7 +3388,7 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessageField number for the "X" field. + public const int XFieldNumber = 8; + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { return x_; } + set { + x_ = value; + } + } + + /// Field number for the "Y" field. + public const int YFieldNumber = 9; + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { return y_; } + set { + y_ = value; + } + } + + /// Field number for the "Z" field. + public const int ZFieldNumber = 10; + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { return z_; } + set { + z_ = value; + } + } + + /// Field number for the "MoveSpeedFirst" field. + public const int MoveSpeedFirstFieldNumber = 11; + private long moveSpeedFirst_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MoveSpeedFirst { + get { return moveSpeedFirst_; } + set { + moveSpeedFirst_ = value; + } + } + + /// Field number for the "MoveSpeedSecond" field. + public const int MoveSpeedSecondFieldNumber = 12; + private long moveSpeedSecond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MoveSpeedSecond { + get { return moveSpeedSecond_; } + set { + moveSpeedSecond_ = value; + } + } + + /// Field number for the "MoveSpeedThird" field. + public const int MoveSpeedThirdFieldNumber = 13; + private long moveSpeedThird_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MoveSpeedThird { + get { return moveSpeedThird_; } + set { + moveSpeedThird_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -4062,6 +4229,12 @@ public sealed partial class UserTemplateResponse : pb::IMessage fireValue_ = other.fireValue_; taskResponse_ = other.taskResponse_ != null ? other.taskResponse_.Clone() : null; objectResponse_ = other.objectResponse_ != null ? other.objectResponse_.Clone() : null; + npcResponse_ = other.npcResponse_ != null ? other.npcResponse_.Clone() : null; + voiceResponse_ = other.voiceResponse_ != null ? other.voiceResponse_.Clone() : null; + playerResponse_ = other.playerResponse_ != null ? other.playerResponse_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -195,7 +204,7 @@ public sealed partial class UserJoinResponse : pb::IMessage public const int MessageTypeFieldNumber = 6; private int messageType_; /// - ///事件状态 1 用户上线 2用户下线 3 用户加入房间 4 事故发生 5 火势 6 任务 7 对象操作 + ///事件状态 1 用户上线 2用户下线 3 用户加入房间 4 事故发生 5 火势 6 任务 7 对象操作 8 NPC 属性更新 9 语音信息 10 用户信息更新 11 房间开始 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -296,6 +305,51 @@ public sealed partial class UserJoinResponse : pb::IMessage } } + /// Field number for the "npcResponse" field. + public const int NpcResponseFieldNumber = 13; + private global::NpcInfoResponse npcResponse_; + /// + ///npc信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::NpcInfoResponse NpcResponse { + get { return npcResponse_; } + set { + npcResponse_ = value; + } + } + + /// Field number for the "voiceResponse" field. + public const int VoiceResponseFieldNumber = 14; + private global::VoiceTransportResponse voiceResponse_; + /// + ///语音信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::VoiceTransportResponse VoiceResponse { + get { return voiceResponse_; } + set { + voiceResponse_ = value; + } + } + + /// Field number for the "playerResponse" field. + public const int PlayerResponseFieldNumber = 15; + private global::PlayerJoinResponse playerResponse_; + /// + ///玩家信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::PlayerJoinResponse PlayerResponse { + get { return playerResponse_; } + set { + playerResponse_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -323,6 +377,9 @@ public sealed partial class UserJoinResponse : pb::IMessage if (FireValue != other.FireValue) return false; if (!object.Equals(TaskResponse, other.TaskResponse)) return false; if (!object.Equals(ObjectResponse, other.ObjectResponse)) return false; + if (!object.Equals(NpcResponse, other.NpcResponse)) return false; + if (!object.Equals(VoiceResponse, other.VoiceResponse)) return false; + if (!object.Equals(PlayerResponse, other.PlayerResponse)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -342,6 +399,9 @@ public sealed partial class UserJoinResponse : pb::IMessage if (FireValue != 0) hash ^= FireValue.GetHashCode(); if (taskResponse_ != null) hash ^= TaskResponse.GetHashCode(); if (objectResponse_ != null) hash ^= ObjectResponse.GetHashCode(); + if (npcResponse_ != null) hash ^= NpcResponse.GetHashCode(); + if (voiceResponse_ != null) hash ^= VoiceResponse.GetHashCode(); + if (playerResponse_ != null) hash ^= PlayerResponse.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -408,6 +468,18 @@ public sealed partial class UserJoinResponse : pb::IMessage output.WriteRawTag(98); output.WriteMessage(ObjectResponse); } + if (npcResponse_ != null) { + output.WriteRawTag(106); + output.WriteMessage(NpcResponse); + } + if (voiceResponse_ != null) { + output.WriteRawTag(114); + output.WriteMessage(VoiceResponse); + } + if (playerResponse_ != null) { + output.WriteRawTag(122); + output.WriteMessage(PlayerResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -466,6 +538,18 @@ public sealed partial class UserJoinResponse : pb::IMessage output.WriteRawTag(98); output.WriteMessage(ObjectResponse); } + if (npcResponse_ != null) { + output.WriteRawTag(106); + output.WriteMessage(NpcResponse); + } + if (voiceResponse_ != null) { + output.WriteRawTag(114); + output.WriteMessage(VoiceResponse); + } + if (playerResponse_ != null) { + output.WriteRawTag(122); + output.WriteMessage(PlayerResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -512,6 +596,15 @@ public sealed partial class UserJoinResponse : pb::IMessage if (objectResponse_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectResponse); } + if (npcResponse_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NpcResponse); + } + if (voiceResponse_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VoiceResponse); + } + if (playerResponse_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerResponse); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -566,6 +659,24 @@ public sealed partial class UserJoinResponse : pb::IMessage } ObjectResponse.MergeFrom(other.ObjectResponse); } + if (other.npcResponse_ != null) { + if (npcResponse_ == null) { + NpcResponse = new global::NpcInfoResponse(); + } + NpcResponse.MergeFrom(other.NpcResponse); + } + if (other.voiceResponse_ != null) { + if (voiceResponse_ == null) { + VoiceResponse = new global::VoiceTransportResponse(); + } + VoiceResponse.MergeFrom(other.VoiceResponse); + } + if (other.playerResponse_ != null) { + if (playerResponse_ == null) { + PlayerResponse = new global::PlayerJoinResponse(); + } + PlayerResponse.MergeFrom(other.PlayerResponse); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -639,6 +750,27 @@ public sealed partial class UserJoinResponse : pb::IMessage input.ReadMessage(ObjectResponse); break; } + case 106: { + if (npcResponse_ == null) { + NpcResponse = new global::NpcInfoResponse(); + } + input.ReadMessage(NpcResponse); + break; + } + case 114: { + if (voiceResponse_ == null) { + VoiceResponse = new global::VoiceTransportResponse(); + } + input.ReadMessage(VoiceResponse); + break; + } + case 122: { + if (playerResponse_ == null) { + PlayerResponse = new global::PlayerJoinResponse(); + } + input.ReadMessage(PlayerResponse); + break; + } } } #endif @@ -712,6 +844,268 @@ public sealed partial class UserJoinResponse : pb::IMessage input.ReadMessage(ObjectResponse); break; } + case 106: { + if (npcResponse_ == null) { + NpcResponse = new global::NpcInfoResponse(); + } + input.ReadMessage(NpcResponse); + break; + } + case 114: { + if (voiceResponse_ == null) { + VoiceResponse = new global::VoiceTransportResponse(); + } + input.ReadMessage(VoiceResponse); + break; + } + case 122: { + if (playerResponse_ == null) { + PlayerResponse = new global::PlayerJoinResponse(); + } + input.ReadMessage(PlayerResponse); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class VoiceTransportResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VoiceTransportResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::JoinReflection.Descriptor.MessageTypes[1]; } + } + + [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 VoiceTransportResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoiceTransportResponse(VoiceTransportResponse other) : this() { + appId_ = other.appId_; + channelName_ = other.channelName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoiceTransportResponse Clone() { + return new VoiceTransportResponse(this); + } + + /// Field number for the "appId" field. + public const int AppIdFieldNumber = 1; + private string appId_ = ""; + /// + /// 应用id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppId { + get { return appId_; } + set { + appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "channelName" field. + public const int ChannelNameFieldNumber = 2; + private string channelName_ = ""; + /// + /// 用户id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChannelName { + get { return channelName_; } + set { + channelName_ = 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 VoiceTransportResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VoiceTransportResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AppId != other.AppId) return false; + if (ChannelName != other.ChannelName) 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 (AppId.Length != 0) hash ^= AppId.GetHashCode(); + if (ChannelName.Length != 0) hash ^= ChannelName.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 (AppId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AppId); + } + if (ChannelName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChannelName); + } + 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 (AppId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AppId); + } + if (ChannelName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChannelName); + } + 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 (AppId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); + } + if (ChannelName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VoiceTransportResponse other) { + if (other == null) { + return; + } + if (other.AppId.Length != 0) { + AppId = other.AppId; + } + if (other.ChannelName.Length != 0) { + ChannelName = other.ChannelName; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + AppId = input.ReadString(); + break; + } + case 18: { + ChannelName = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + AppId = input.ReadString(); + break; + } + case 18: { + ChannelName = input.ReadString(); + break; + } } } } @@ -734,7 +1128,7 @@ public sealed partial class RoomUserResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::JoinReflection.Descriptor.MessageTypes[1]; } + get { return global::JoinReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -924,7 +1318,7 @@ public sealed partial class TaskInfoResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::JoinReflection.Descriptor.MessageTypes[2]; } + get { return global::JoinReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1805,7 +2199,7 @@ public sealed partial class ObjectInfoResponse : pb::IMessage roomId_ = other.roomId_; templateId_ = other.templateId_; sceneId_ = other.sceneId_; + mode_ = other.mode_; + subjectId_ = other.subjectId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -142,6 +147,36 @@ public sealed partial class NpcCreateRequest : pb::IMessage } } + /// Field number for the "mode" field. + public const int ModeFieldNumber = 4; + private string mode_ = ""; + /// + /// 难度 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mode { + get { return mode_; } + set { + mode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subjectId" field. + public const int SubjectIdFieldNumber = 5; + private string subjectId_ = ""; + /// + /// 训练科目 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SubjectId { + get { return subjectId_; } + set { + subjectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -160,6 +195,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage if (RoomId != other.RoomId) return false; if (TemplateId != other.TemplateId) return false; if (SceneId != other.SceneId) return false; + if (Mode != other.Mode) return false; + if (SubjectId != other.SubjectId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -170,6 +207,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); if (TemplateId != 0L) hash ^= TemplateId.GetHashCode(); if (SceneId.Length != 0) hash ^= SceneId.GetHashCode(); + if (Mode.Length != 0) hash ^= Mode.GetHashCode(); + if (SubjectId.Length != 0) hash ^= SubjectId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -200,6 +239,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage output.WriteRawTag(26); output.WriteString(SceneId); } + if (Mode.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Mode); + } + if (SubjectId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SubjectId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -222,6 +269,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage output.WriteRawTag(26); output.WriteString(SceneId); } + if (Mode.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Mode); + } + if (SubjectId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SubjectId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -241,6 +296,12 @@ public sealed partial class NpcCreateRequest : pb::IMessage if (SceneId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneId); } + if (Mode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mode); + } + if (SubjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SubjectId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -262,6 +323,12 @@ public sealed partial class NpcCreateRequest : pb::IMessage if (other.SceneId.Length != 0) { SceneId = other.SceneId; } + if (other.Mode.Length != 0) { + Mode = other.Mode; + } + if (other.SubjectId.Length != 0) { + SubjectId = other.SubjectId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -293,6 +360,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage SceneId = input.ReadString(); break; } + case 34: { + Mode = input.ReadString(); + break; + } + case 42: { + SubjectId = input.ReadString(); + break; + } } } #endif @@ -324,6 +399,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage SceneId = input.ReadString(); break; } + case 34: { + Mode = input.ReadString(); + break; + } + case 42: { + SubjectId = input.ReadString(); + break; + } } } } @@ -1555,6 +1638,7 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessageField number for the "sceneId" field. + public const int SceneIdFieldNumber = 6; + private string sceneId_ = ""; + /// + /// sceneId + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneId { + get { return sceneId_; } + set { + sceneId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1659,6 +1758,7 @@ public sealed partial class MoveRoomAoiRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcInfoResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::MoveReflection.Descriptor.MessageTypes[7]; } + } + + [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 NpcInfoResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcInfoResponse(NpcInfoResponse other) : this() { + npcId_ = other.npcId_; + injured_ = other.injured_; + stop_ = other.stop_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcInfoResponse Clone() { + return new NpcInfoResponse(this); + } + + /// Field number for the "npcId" field. + public const int NpcIdFieldNumber = 1; + private string npcId_ = ""; + /// + /// NPC Id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NpcId { + get { return npcId_; } + set { + npcId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "injured" field. + public const int InjuredFieldNumber = 2; + private bool injured_; + /// + /// 受伤 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Injured { + get { return injured_; } + set { + injured_ = value; + } + } + + /// Field number for the "stop" field. + public const int StopFieldNumber = 3; + private bool stop_; + /// + /// 是否停止下来 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Stop { + get { return stop_; } + set { + stop_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NpcInfoResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NpcInfoResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NpcId != other.NpcId) return false; + if (Injured != other.Injured) return false; + if (Stop != other.Stop) 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 (NpcId.Length != 0) hash ^= NpcId.GetHashCode(); + if (Injured != false) hash ^= Injured.GetHashCode(); + if (Stop != false) hash ^= Stop.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 (NpcId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NpcId); + } + if (Injured != false) { + output.WriteRawTag(16); + output.WriteBool(Injured); + } + if (Stop != false) { + output.WriteRawTag(24); + output.WriteBool(Stop); + } + 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 (NpcId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NpcId); + } + if (Injured != false) { + output.WriteRawTag(16); + output.WriteBool(Injured); + } + if (Stop != false) { + output.WriteRawTag(24); + output.WriteBool(Stop); + } + 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 (NpcId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NpcId); + } + if (Injured != false) { + size += 1 + 1; + } + if (Stop != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NpcInfoResponse other) { + if (other == null) { + return; + } + if (other.NpcId.Length != 0) { + NpcId = other.NpcId; + } + if (other.Injured != false) { + Injured = other.Injured; + } + if (other.Stop != false) { + Stop = other.Stop; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + NpcId = input.ReadString(); + break; + } + case 16: { + Injured = input.ReadBool(); + break; + } + case 24: { + Stop = input.ReadBool(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + NpcId = input.ReadString(); + break; + } + case 16: { + Injured = input.ReadBool(); + break; + } + case 24: { + Stop = input.ReadBool(); + break; + } + } + } + } + #endif + +} + #endregion diff --git a/xiaofang/Assets/ProtoBuf/Proto/NpcRequest.cs b/xiaofang/Assets/ProtoBuf/Proto/NpcRequest.cs new file mode 100644 index 00000000..b2de0813 --- /dev/null +++ b/xiaofang/Assets/ProtoBuf/Proto/NpcRequest.cs @@ -0,0 +1,594 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: npc_request.proto +// +#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; +/// Holder for reflection information generated from npc_request.proto +public static partial class NpcRequestReflection { + + #region Descriptor + /// File descriptor for npc_request.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static NpcRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFucGNfcmVxdWVzdC5wcm90byI9CgpucGNSZXF1ZXN0Eg8KB25wY0xpc3QY", + "ASADKAkSDgoGcm9vbUlkGAIgASgJEg4KBmFjdGlvbhgDIAEoBSJACg9OcGNT", + "aG9ja1JlcXVlc3QSDQoFdmFsdWUYAiABKAkSDgoGdXNlcklkGAMgASgJEg4K", + "BlJvb21JZBgBIAEoCUIHWgUuLztwYmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::npcRequest), global::npcRequest.Parser, new[]{ "NpcList", "RoomId", "Action" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::NpcShockRequest), global::NpcShockRequest.Parser, new[]{ "Value", "UserId", "RoomId" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class npcRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new npcRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::NpcRequestReflection.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 npcRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public npcRequest(npcRequest other) : this() { + npcList_ = other.npcList_.Clone(); + roomId_ = other.roomId_; + action_ = other.action_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public npcRequest Clone() { + return new npcRequest(this); + } + + /// Field number for the "npcList" field. + public const int NpcListFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_npcList_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField npcList_ = new pbc::RepeatedField(); + /// + /// NPC 列表Id 例如: [1,2,3,4,5,6,7,8,9] + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField NpcList { + get { return npcList_; } + } + + /// Field number for the "roomId" field. + public const int RoomIdFieldNumber = 2; + private string roomId_ = ""; + /// + /// 房间id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "action" field. + public const int ActionFieldNumber = 3; + private int action_; + /// + /// 触发的行为:1 进入烟雾 2 离开烟雾 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Action { + get { return action_; } + set { + action_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as npcRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(npcRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!npcList_.Equals(other.npcList_)) return false; + if (RoomId != other.RoomId) return false; + if (Action != other.Action) 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; + hash ^= npcList_.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (Action != 0) hash ^= Action.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 + npcList_.WriteTo(output, _repeated_npcList_codec); + if (RoomId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RoomId); + } + if (Action != 0) { + output.WriteRawTag(24); + output.WriteInt32(Action); + } + 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) { + npcList_.WriteTo(ref output, _repeated_npcList_codec); + if (RoomId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RoomId); + } + if (Action != 0) { + output.WriteRawTag(24); + output.WriteInt32(Action); + } + 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; + size += npcList_.CalculateSize(_repeated_npcList_codec); + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (Action != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Action); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(npcRequest other) { + if (other == null) { + return; + } + npcList_.Add(other.npcList_); + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.Action != 0) { + Action = other.Action; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + npcList_.AddEntriesFrom(input, _repeated_npcList_codec); + break; + } + case 18: { + RoomId = input.ReadString(); + break; + } + case 24: { + Action = input.ReadInt32(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + npcList_.AddEntriesFrom(ref input, _repeated_npcList_codec); + break; + } + case 18: { + RoomId = input.ReadString(); + break; + } + case 24: { + Action = input.ReadInt32(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class NpcShockRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcShockRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::NpcRequestReflection.Descriptor.MessageTypes[1]; } + } + + [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 NpcShockRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcShockRequest(NpcShockRequest other) : this() { + value_ = other.value_; + userId_ = other.userId_; + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NpcShockRequest Clone() { + return new NpcShockRequest(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private string value_ = ""; + /// + /// 选项的增加值 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "userId" field. + public const int UserIdFieldNumber = 3; + private string userId_ = ""; + /// + /// 用户id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 1; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = 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 NpcShockRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NpcShockRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + if (UserId != other.UserId) return false; + if (RoomId != other.RoomId) 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 (Value.Length != 0) hash ^= Value.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.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 (RoomId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RoomId); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (UserId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UserId); + } + 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 (RoomId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RoomId); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Value); + } + if (UserId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(UserId); + } + 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 (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NpcShockRequest other) { + if (other == null) { + return; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RoomId = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + case 26: { + UserId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RoomId = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + case 26: { + UserId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +#endregion + + +#endregion Designer generated code diff --git a/xiaofang/Assets/ProtoBuf/Proto/Config.cs.meta b/xiaofang/Assets/ProtoBuf/Proto/NpcRequest.cs.meta similarity index 83% rename from xiaofang/Assets/ProtoBuf/Proto/Config.cs.meta rename to xiaofang/Assets/ProtoBuf/Proto/NpcRequest.cs.meta index 40d31e9f..2962524b 100644 --- a/xiaofang/Assets/ProtoBuf/Proto/Config.cs.meta +++ b/xiaofang/Assets/ProtoBuf/Proto/NpcRequest.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6249125b6bd7a964aa825c041b9cab82 +guid: 271f1c208dd510142be4268127fc6dbc MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/xiaofang/Assets/ProtoBuf/Proto/Player.cs b/xiaofang/Assets/ProtoBuf/Proto/Player.cs new file mode 100644 index 00000000..c01fafa7 --- /dev/null +++ b/xiaofang/Assets/ProtoBuf/Proto/Player.cs @@ -0,0 +1,1213 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: player.proto +// +#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; +/// Holder for reflection information generated from player.proto +public static partial class PlayerReflection { + + #region Descriptor + /// File descriptor for player.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlayerReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxwbGF5ZXIucHJvdG8irgEKFlBsYXllckNhbGN1bGF0ZVJlcXVlc3QSEQoJ", + "aXNGaXJlSW5nGAEgASgIEhIKCmlzU21va2VJbmcYAiABKAgSFAoMZmlyZURp", + "c3RhbmNlGAMgASgCEg8KB2lzU2hvY2sYBiABKAgSDgoGcm9vbUlkGAQgASgJ", + "Eg8KB3NlY29uZHMYBSABKAUSFAoMaXNEZXRvbmF0aW9uGAcgASgIEg8KB2lz", + "V291bmQYCCABKAgiQAoQUGxheWVyTG9jYWxTdGF0ZRIMCgR0eXBlGAEgASgJ", + "Eg4KBnN0YXR1cxgCIAEoBRIOCgZyb29tSWQYAyABKAkiJAoSUGxheWVyTG9j", + "YWxSZXF1ZXN0Eg4KBnVzZXJJZBgBIAEoCSIlChNQbGF5ZXJMb2NhbFJlc3Bv", + "bnNlEg4KBnJvb21JZBgBIAEoCUIHWgUuLztwYmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::PlayerCalculateRequest), global::PlayerCalculateRequest.Parser, new[]{ "IsFireIng", "IsSmokeIng", "FireDistance", "IsShock", "RoomId", "Seconds", "IsDetonation", "IsWound" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::PlayerLocalState), global::PlayerLocalState.Parser, new[]{ "Type", "Status", "RoomId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::PlayerLocalRequest), global::PlayerLocalRequest.Parser, new[]{ "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::PlayerLocalResponse), global::PlayerLocalResponse.Parser, new[]{ "RoomId" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class PlayerCalculateRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerCalculateRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::PlayerReflection.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 PlayerCalculateRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerCalculateRequest(PlayerCalculateRequest other) : this() { + isFireIng_ = other.isFireIng_; + isSmokeIng_ = other.isSmokeIng_; + fireDistance_ = other.fireDistance_; + isShock_ = other.isShock_; + roomId_ = other.roomId_; + seconds_ = other.seconds_; + isDetonation_ = other.isDetonation_; + isWound_ = other.isWound_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerCalculateRequest Clone() { + return new PlayerCalculateRequest(this); + } + + /// Field number for the "isFireIng" field. + public const int IsFireIngFieldNumber = 1; + private bool isFireIng_; + /// + /// 处于火势边缘 true 在火势边缘 false 不在火势边缘 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsFireIng { + get { return isFireIng_; } + set { + isFireIng_ = value; + } + } + + /// Field number for the "isSmokeIng" field. + public const int IsSmokeIngFieldNumber = 2; + private bool isSmokeIng_; + /// + /// 处于烟雾中 true 在烟雾中 false 不在烟雾中 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsSmokeIng { + get { return isSmokeIng_; } + set { + isSmokeIng_ = value; + } + } + + /// Field number for the "fireDistance" field. + public const int FireDistanceFieldNumber = 3; + private float fireDistance_; + /// + /// 火势距离 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FireDistance { + get { return fireDistance_; } + set { + fireDistance_ = value; + } + } + + /// Field number for the "isShock" field. + public const int IsShockFieldNumber = 6; + private bool isShock_; + /// + /// 是否触电 true 触电 false 不触电 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsShock { + get { return isShock_; } + set { + isShock_ = value; + } + } + + /// Field number for the "roomId" field. + public const int RoomIdFieldNumber = 4; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "seconds" field. + public const int SecondsFieldNumber = 5; + private int seconds_; + /// + /// 持续时间 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Seconds { + get { return seconds_; } + set { + seconds_ = value; + } + } + + /// Field number for the "isDetonation" field. + public const int IsDetonationFieldNumber = 7; + private bool isDetonation_; + /// + /// 是否燃气爆燃 true 爆炸 false 不爆炸 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsDetonation { + get { return isDetonation_; } + set { + isDetonation_ = value; + } + } + + /// Field number for the "isWound" field. + public const int IsWoundFieldNumber = 8; + private bool isWound_; + /// + /// 是否被被消防水带击伤 true 被击伤 false 未被击伤 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsWound { + get { return isWound_; } + set { + isWound_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerCalculateRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerCalculateRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IsFireIng != other.IsFireIng) return false; + if (IsSmokeIng != other.IsSmokeIng) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FireDistance, other.FireDistance)) return false; + if (IsShock != other.IsShock) return false; + if (RoomId != other.RoomId) return false; + if (Seconds != other.Seconds) return false; + if (IsDetonation != other.IsDetonation) return false; + if (IsWound != other.IsWound) 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 (IsFireIng != false) hash ^= IsFireIng.GetHashCode(); + if (IsSmokeIng != false) hash ^= IsSmokeIng.GetHashCode(); + if (FireDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FireDistance); + if (IsShock != false) hash ^= IsShock.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (Seconds != 0) hash ^= Seconds.GetHashCode(); + if (IsDetonation != false) hash ^= IsDetonation.GetHashCode(); + if (IsWound != false) hash ^= IsWound.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 (IsFireIng != false) { + output.WriteRawTag(8); + output.WriteBool(IsFireIng); + } + if (IsSmokeIng != false) { + output.WriteRawTag(16); + output.WriteBool(IsSmokeIng); + } + if (FireDistance != 0F) { + output.WriteRawTag(29); + output.WriteFloat(FireDistance); + } + if (RoomId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RoomId); + } + if (Seconds != 0) { + output.WriteRawTag(40); + output.WriteInt32(Seconds); + } + if (IsShock != false) { + output.WriteRawTag(48); + output.WriteBool(IsShock); + } + if (IsDetonation != false) { + output.WriteRawTag(56); + output.WriteBool(IsDetonation); + } + if (IsWound != false) { + output.WriteRawTag(64); + output.WriteBool(IsWound); + } + 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 (IsFireIng != false) { + output.WriteRawTag(8); + output.WriteBool(IsFireIng); + } + if (IsSmokeIng != false) { + output.WriteRawTag(16); + output.WriteBool(IsSmokeIng); + } + if (FireDistance != 0F) { + output.WriteRawTag(29); + output.WriteFloat(FireDistance); + } + if (RoomId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RoomId); + } + if (Seconds != 0) { + output.WriteRawTag(40); + output.WriteInt32(Seconds); + } + if (IsShock != false) { + output.WriteRawTag(48); + output.WriteBool(IsShock); + } + if (IsDetonation != false) { + output.WriteRawTag(56); + output.WriteBool(IsDetonation); + } + if (IsWound != false) { + output.WriteRawTag(64); + output.WriteBool(IsWound); + } + 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 (IsFireIng != false) { + size += 1 + 1; + } + if (IsSmokeIng != false) { + size += 1 + 1; + } + if (FireDistance != 0F) { + size += 1 + 4; + } + if (IsShock != false) { + size += 1 + 1; + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (Seconds != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Seconds); + } + if (IsDetonation != false) { + size += 1 + 1; + } + if (IsWound != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerCalculateRequest other) { + if (other == null) { + return; + } + if (other.IsFireIng != false) { + IsFireIng = other.IsFireIng; + } + if (other.IsSmokeIng != false) { + IsSmokeIng = other.IsSmokeIng; + } + if (other.FireDistance != 0F) { + FireDistance = other.FireDistance; + } + if (other.IsShock != false) { + IsShock = other.IsShock; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.Seconds != 0) { + Seconds = other.Seconds; + } + if (other.IsDetonation != false) { + IsDetonation = other.IsDetonation; + } + if (other.IsWound != false) { + IsWound = other.IsWound; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + IsFireIng = input.ReadBool(); + break; + } + case 16: { + IsSmokeIng = input.ReadBool(); + break; + } + case 29: { + FireDistance = input.ReadFloat(); + break; + } + case 34: { + RoomId = input.ReadString(); + break; + } + case 40: { + Seconds = input.ReadInt32(); + break; + } + case 48: { + IsShock = input.ReadBool(); + break; + } + case 56: { + IsDetonation = input.ReadBool(); + break; + } + case 64: { + IsWound = input.ReadBool(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + IsFireIng = input.ReadBool(); + break; + } + case 16: { + IsSmokeIng = input.ReadBool(); + break; + } + case 29: { + FireDistance = input.ReadFloat(); + break; + } + case 34: { + RoomId = input.ReadString(); + break; + } + case 40: { + Seconds = input.ReadInt32(); + break; + } + case 48: { + IsShock = input.ReadBool(); + break; + } + case 56: { + IsDetonation = input.ReadBool(); + break; + } + case 64: { + IsWound = input.ReadBool(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class PlayerLocalState : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerLocalState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::PlayerReflection.Descriptor.MessageTypes[1]; } + } + + [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 PlayerLocalState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLocalState(PlayerLocalState other) : this() { + type_ = other.type_; + status_ = other.status_; + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLocalState Clone() { + return new PlayerLocalState(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private string type_ = ""; + /// + /// 事件类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 2; + private int status_; + /// + /// 状态 1 开启 2 关闭 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "roomId" field. + public const int RoomIdFieldNumber = 3; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = 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 PlayerLocalState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerLocalState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Status != other.Status) return false; + if (RoomId != other.RoomId) 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 (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Status != 0) hash ^= Status.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.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 (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (Status != 0) { + output.WriteRawTag(16); + output.WriteInt32(Status); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + 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 (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); + } + if (Status != 0) { + output.WriteRawTag(16); + output.WriteInt32(Status); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + 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 (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (Status != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Status); + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerLocalState other) { + if (other == null) { + return; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.Status != 0) { + Status = other.Status; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 16: { + Status = input.ReadInt32(); + break; + } + case 26: { + RoomId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Type = input.ReadString(); + break; + } + case 16: { + Status = input.ReadInt32(); + break; + } + case 26: { + RoomId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class PlayerLocalRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerLocalRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::PlayerReflection.Descriptor.MessageTypes[2]; } + } + + [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 PlayerLocalRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLocalRequest(PlayerLocalRequest other) : this() { + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLocalRequest Clone() { + return new PlayerLocalRequest(this); + } + + /// Field number for the "userId" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// 用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = 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 PlayerLocalRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerLocalRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) 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 (UserId.Length != 0) hash ^= UserId.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerLocalRequest other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + UserId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class PlayerLocalResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerLocalResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::PlayerReflection.Descriptor.MessageTypes[3]; } + } + + [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 PlayerLocalResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLocalResponse(PlayerLocalResponse other) : this() { + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerLocalResponse Clone() { + return new PlayerLocalResponse(this); + } + + /// Field number for the "roomId" field. + public const int RoomIdFieldNumber = 1; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = 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 PlayerLocalResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerLocalResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomId != other.RoomId) 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 (RoomId.Length != 0) hash ^= RoomId.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 (RoomId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RoomId); + } + 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 (RoomId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RoomId); + } + 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 (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PlayerLocalResponse other) { + if (other == null) { + return; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + RoomId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + RoomId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +#endregion + + +#endregion Designer generated code diff --git a/xiaofang/Assets/ProtoBuf/Proto/Player.cs.meta b/xiaofang/Assets/ProtoBuf/Proto/Player.cs.meta new file mode 100644 index 00000000..6fe64da2 --- /dev/null +++ b/xiaofang/Assets/ProtoBuf/Proto/Player.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9b2ff411b5e682c439d271893fe57cf2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/ProtoBuf/Proto/Prop.cs b/xiaofang/Assets/ProtoBuf/Proto/Prop.cs index 11c7ee85..5272467e 100644 --- a/xiaofang/Assets/ProtoBuf/Proto/Prop.cs +++ b/xiaofang/Assets/ProtoBuf/Proto/Prop.cs @@ -22,24 +22,25 @@ public static partial class PropReflection { static PropReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cgpwcm9wLnByb3RvIlMKC1Byb3BSZXF1ZXN0Eg4KBnByb3BJZBgBIAEoBRIO", + "Cgpwcm9wLnByb3RvImMKC1Byb3BSZXF1ZXN0Eg4KBnByb3BJZBgBIAEoBRIO", "CgZhY3Rpb24YAiABKAUSFAoMcHJvcFNlcnZlcklkGAMgASgJEg4KBnJvb21J", - "ZBgEIAEoCSJhCgxQcm9wUmVzcG9uc2USDgoGcHJvcElkGAEgASgFEhQKDHBy", - "b3BTZXJ2ZXJJZBgFIAEoCRIMCgRuYW1lGAIgASgJEgwKBGNvZGUYAyABKAUS", - "DwoHbWVzc2FnZRgEIAEoCSIeChBQcm9wTW9kZWxSZXF1ZXN0EgoKAmlkGAEg", - "ASgFIvYCChFQcm9wTW9kZWxSZXNwb25zZRIKCgJpZBgBIAEoCRIQCghjYXRl", - "Z29yeRgCIAEoCRIMCgROb3RlGAMgASgJEgwKBE5hbWUYBCABKAkSDgoGV2Vp", - "Z2h0GAUgASgJEg0KBVNjZW5lGAYgASgJEgwKBEljb24YByABKAkSDwoHUmVz", - "UGF0aBgIIAEoCRIWCg5Db25zdW1hYmxlVHlwZRgJIAEoCRIRCglEdXJhdGlv", - "bnMYCiABKAkSEAoISXNQaWNrdXAYCyABKAkSCwoDTnVtGAwgASgFEhMKC0Nh", - "bGN1bGF0aW9uGA0gASgIEhAKCExvc3NUaW1lGA4gASgFEhQKDFByb3BTZXJ2", - "ZXJJZBgPIAEoCRIMCgRVc2VkGBAgASgIEg4KBlVzZXJJZBgRIAEoCRIOCgZS", - "b29tSWQYEiABKAkSEAoIVG90YWxOdW0YEyABKAUSDwoHUmVzdE51bRgUIAEo", - "BRIRCglBdHRyaWJ1dGUYFSABKAlCB1oFLi87cGJiBnByb3RvMw==")); + "ZBgEIAEoCRIOCgZ1c2VySWQYBSABKAkiYQoMUHJvcFJlc3BvbnNlEg4KBnBy", + "b3BJZBgBIAEoBRIUCgxwcm9wU2VydmVySWQYBSABKAkSDAoEbmFtZRgCIAEo", + "CRIMCgRjb2RlGAMgASgFEg8KB21lc3NhZ2UYBCABKAkiHgoQUHJvcE1vZGVs", + "UmVxdWVzdBIKCgJpZBgBIAEoBSL2AgoRUHJvcE1vZGVsUmVzcG9uc2USCgoC", + "aWQYASABKAkSEAoIY2F0ZWdvcnkYAiABKAkSDAoETm90ZRgDIAEoCRIMCgRO", + "YW1lGAQgASgJEg4KBldlaWdodBgFIAEoCRINCgVTY2VuZRgGIAEoCRIMCgRJ", + "Y29uGAcgASgJEg8KB1Jlc1BhdGgYCCABKAkSFgoOQ29uc3VtYWJsZVR5cGUY", + "CSABKAkSEQoJRHVyYXRpb25zGAogASgJEhAKCElzUGlja3VwGAsgASgJEgsK", + "A051bRgMIAEoBRITCgtDYWxjdWxhdGlvbhgNIAEoCBIQCghMb3NzVGltZRgO", + "IAEoBRIUCgxQcm9wU2VydmVySWQYDyABKAkSDAoEVXNlZBgQIAEoCBIOCgZV", + "c2VySWQYESABKAkSDgoGUm9vbUlkGBIgASgJEhAKCFRvdGFsTnVtGBMgASgF", + "Eg8KB1Jlc3ROdW0YFCABKAUSEQoJQXR0cmlidXRlGBUgASgJQgdaBS4vO3Bi", + "YgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::PropRequest), global::PropRequest.Parser, new[]{ "PropId", "Action", "PropServerId", "RoomId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::PropRequest), global::PropRequest.Parser, new[]{ "PropId", "Action", "PropServerId", "RoomId", "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::PropResponse), global::PropResponse.Parser, new[]{ "PropId", "PropServerId", "Name", "Code", "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::PropModelRequest), global::PropModelRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::PropModelResponse), global::PropModelResponse.Parser, new[]{ "Id", "Category", "Note", "Name", "Weight", "Scene", "Icon", "ResPath", "ConsumableType", "Durations", "IsPickup", "Num", "Calculation", "LossTime", "PropServerId", "Used", "UserId", "RoomId", "TotalNum", "RestNum", "Attribute" }, null, null, null, null) @@ -88,6 +89,7 @@ public sealed partial class PropRequest : pb::IMessage action_ = other.action_; propServerId_ = other.propServerId_; roomId_ = other.roomId_; + userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -154,6 +156,21 @@ public sealed partial class PropRequest : pb::IMessage } } + /// Field number for the "userId" field. + public const int UserIdFieldNumber = 5; + private string userId_ = ""; + /// + /// 用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -173,6 +190,7 @@ public sealed partial class PropRequest : pb::IMessage if (Action != other.Action) return false; if (PropServerId != other.PropServerId) return false; if (RoomId != other.RoomId) return false; + if (UserId != other.UserId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -184,6 +202,7 @@ public sealed partial class PropRequest : pb::IMessage if (Action != 0) hash ^= Action.GetHashCode(); if (PropServerId.Length != 0) hash ^= PropServerId.GetHashCode(); if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -218,6 +237,10 @@ public sealed partial class PropRequest : pb::IMessage output.WriteRawTag(34); output.WriteString(RoomId); } + if (UserId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(UserId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -244,6 +267,10 @@ public sealed partial class PropRequest : pb::IMessage output.WriteRawTag(34); output.WriteString(RoomId); } + if (UserId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(UserId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -266,6 +293,9 @@ public sealed partial class PropRequest : pb::IMessage if (RoomId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); } + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -290,6 +320,9 @@ public sealed partial class PropRequest : pb::IMessage if (other.RoomId.Length != 0) { RoomId = other.RoomId; } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -325,6 +358,10 @@ public sealed partial class PropRequest : pb::IMessage RoomId = input.ReadString(); break; } + case 42: { + UserId = input.ReadString(); + break; + } } } #endif @@ -360,6 +397,10 @@ public sealed partial class PropRequest : pb::IMessage RoomId = input.ReadString(); break; } + case 42: { + UserId = input.ReadString(); + break; + } } } } diff --git a/xiaofang/Assets/ProtoBuf/Proto/Select.cs b/xiaofang/Assets/ProtoBuf/Proto/Select.cs new file mode 100644 index 00000000..be4a918d --- /dev/null +++ b/xiaofang/Assets/ProtoBuf/Proto/Select.cs @@ -0,0 +1,2912 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: select.proto +// +#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; +/// Holder for reflection information generated from select.proto +public static partial class SelectReflection { + + #region Descriptor + /// File descriptor for select.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SelectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxzZWxlY3QucHJvdG8i6AEKDVNlbGVjdFJlcXVlc3QSEAoIU2VsZWN0SWQY", + "ASABKAkSDgoGVXNlcklkGAIgASgJEg4KBlJvb21JZBgDIAEoCRIOCgZUYXNr", + "SWQYBCABKAkSDgoGUm9sZUlkGAUgASgJEhAKCElucHV0TnVtGAYgASgFEi8K", + "DlNlbGVjdFVzZXJMaXN0GAcgAygLMhcuU2VsZWN0UmVxdWVzdC5Vc2VyTGlz", + "dBIWCg5TZWxlY3RSb2xlTGlzdBgIIAMoCRoqCghVc2VyTGlzdBIOCgZVc2Vy", + "SWQYASABKAkSDgoGUm9sZUlkGAIgASgJIqQFCg5TZWxlY3RSZXNwb25zZRIK", + "CgJJZBgBIAEoCRIOCgZCYXNlSWQYAiABKAkSDAoETm90ZRgDIAEoCRINCgVH", + "cm91cBgEIAEoCRIRCglVbkRpc3BsYXkYBSABKAkSEAoIU2hvd1RleHQYBiAB", + "KAkSDAoESWNvbhgHIAEoCRIVCg1QcmVjb25kaXRpb25zGAggASgJEhEKCUV4", + "Y2x1c2l2ZRgJIAEoCRIQCghUYXNrVGltZRgKIAEoCRIRCglUaW1lTGltaXQY", + "CyABKAMSEgoKTmV4dFNlbGVjdBgMIAEoCRIQCghUYXNrTGluaxgNIAEoCRIX", + "Cg9UYXNrTGlua0RldGFpbHMYDiABKAkSEAoIQ2FsbE1vZGUYDyABKAkSFQoN", + "Q2FsbFJlY2lwaWVudBgQIAEoCRIVCg1Db3JyZWN0T3B0aW9uGBEgASgJEg4K", + "BlJld2FyZBgSIAEoCRIOCgZSZXN1bHQYEyABKAkSDQoFUm91dGUYFCABKAkS", + "FAoMVGltaW5nQ2hhbmdlGBUgASgJEhEKCUFwcGxpZWRVSRgWIAEoCRIRCglV", + "SURldGFpbHMYFyABKAkSCwoDU2VxGBggASgJEhIKClBsYXlTY3JpcHQYGSAB", + "KAkSDgoGUm9vbUlkGBogASgJEhIKCkNyZWF0ZVRpbWUYGyABKAkSEgoKVXBk", + "YXRlVGltZRgcIAEoCRIOCgZVc2VySWQYHSABKAkSDgoGUm9sZUlkGB4gASgJ", + "EjAKDlNlbGVjdFVzZXJMaXN0GB8gAygLMhguU2VsZWN0UmVzcG9uc2UuVXNl", + "ckxpc3QSFgoOU2VsZWN0Um9sZUxpc3QYICADKAkaKgoIVXNlckxpc3QSDgoG", + "VXNlcklkGAEgASgJEg4KBlJvbGVJZBgCIAEoCSJIChRTZWxlY3RIaXN0b3J5", + "UmVxdWVzdBIQCghTZWxlY3RJZBgBIAEoCRIOCgZVc2VySWQYAiABKAkSDgoG", + "Um9vbUlkGAMgASgJIjkKFVNlbGVjdEhpc3RvcnlSZXNwb25zZRIgCgdTZWxl", + "Y3RzGAEgAygLMg8uU2VsZWN0UmVzcG9uc2VCB1oFLi87cGJiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::SelectRequest), global::SelectRequest.Parser, new[]{ "SelectId", "UserId", "RoomId", "TaskId", "RoleId", "InputNum", "SelectUserList", "SelectRoleList" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::SelectRequest.Types.UserList), global::SelectRequest.Types.UserList.Parser, new[]{ "UserId", "RoleId" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::SelectResponse), global::SelectResponse.Parser, new[]{ "Id", "BaseId", "Note", "Group", "UnDisplay", "ShowText", "Icon", "Preconditions", "Exclusive", "TaskTime", "TimeLimit", "NextSelect", "TaskLink", "TaskLinkDetails", "CallMode", "CallRecipient", "CorrectOption", "Reward", "Result", "Route", "TimingChange", "AppliedUI", "UIDetails", "Seq", "PlayScript", "RoomId", "CreateTime", "UpdateTime", "UserId", "RoleId", "SelectUserList", "SelectRoleList" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::SelectResponse.Types.UserList), global::SelectResponse.Types.UserList.Parser, new[]{ "UserId", "RoleId" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::SelectHistoryRequest), global::SelectHistoryRequest.Parser, new[]{ "SelectId", "UserId", "RoomId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::SelectHistoryResponse), global::SelectHistoryResponse.Parser, new[]{ "Selects" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class SelectRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::SelectReflection.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 SelectRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRequest(SelectRequest other) : this() { + selectId_ = other.selectId_; + userId_ = other.userId_; + roomId_ = other.roomId_; + taskId_ = other.taskId_; + roleId_ = other.roleId_; + inputNum_ = other.inputNum_; + selectUserList_ = other.selectUserList_.Clone(); + selectRoleList_ = other.selectRoleList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectRequest Clone() { + return new SelectRequest(this); + } + + /// Field number for the "SelectId" field. + public const int SelectIdFieldNumber = 1; + private string selectId_ = ""; + /// + /// 选择的ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SelectId { + get { return selectId_; } + set { + selectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserId" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// 当前操作用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 3; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TaskId" field. + public const int TaskIdFieldNumber = 4; + private string taskId_ = ""; + /// + /// 任务ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskId { + get { return taskId_; } + set { + taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoleId" field. + public const int RoleIdFieldNumber = 5; + private string roleId_ = ""; + /// + /// 角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoleId { + get { return roleId_; } + set { + roleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "InputNum" field. + public const int InputNumFieldNumber = 6; + private int inputNum_; + /// + /// 输入的数字 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InputNum { + get { return inputNum_; } + set { + inputNum_ = value; + } + } + + /// Field number for the "SelectUserList" field. + public const int SelectUserListFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_selectUserList_codec + = pb::FieldCodec.ForMessage(58, global::SelectRequest.Types.UserList.Parser); + private readonly pbc::RepeatedField selectUserList_ = new pbc::RepeatedField(); + /// + /// 选择的用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SelectUserList { + get { return selectUserList_; } + } + + /// Field number for the "SelectRoleList" field. + public const int SelectRoleListFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_selectRoleList_codec + = pb::FieldCodec.ForString(66); + private readonly pbc::RepeatedField selectRoleList_ = new pbc::RepeatedField(); + /// + /// 选择的角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SelectRoleList { + get { return selectRoleList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SelectId != other.SelectId) return false; + if (UserId != other.UserId) return false; + if (RoomId != other.RoomId) return false; + if (TaskId != other.TaskId) return false; + if (RoleId != other.RoleId) return false; + if (InputNum != other.InputNum) return false; + if(!selectUserList_.Equals(other.selectUserList_)) return false; + if(!selectRoleList_.Equals(other.selectRoleList_)) 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 (SelectId.Length != 0) hash ^= SelectId.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (TaskId.Length != 0) hash ^= TaskId.GetHashCode(); + if (RoleId.Length != 0) hash ^= RoleId.GetHashCode(); + if (InputNum != 0) hash ^= InputNum.GetHashCode(); + hash ^= selectUserList_.GetHashCode(); + hash ^= selectRoleList_.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 (SelectId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SelectId); + } + if (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + if (TaskId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TaskId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RoleId); + } + if (InputNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(InputNum); + } + selectUserList_.WriteTo(output, _repeated_selectUserList_codec); + selectRoleList_.WriteTo(output, _repeated_selectRoleList_codec); + 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 (SelectId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SelectId); + } + if (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + if (TaskId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(TaskId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RoleId); + } + if (InputNum != 0) { + output.WriteRawTag(48); + output.WriteInt32(InputNum); + } + selectUserList_.WriteTo(ref output, _repeated_selectUserList_codec); + selectRoleList_.WriteTo(ref output, _repeated_selectRoleList_codec); + 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 (SelectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectId); + } + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (TaskId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId); + } + if (RoleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId); + } + if (InputNum != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(InputNum); + } + size += selectUserList_.CalculateSize(_repeated_selectUserList_codec); + size += selectRoleList_.CalculateSize(_repeated_selectRoleList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectRequest other) { + if (other == null) { + return; + } + if (other.SelectId.Length != 0) { + SelectId = other.SelectId; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.TaskId.Length != 0) { + TaskId = other.TaskId; + } + if (other.RoleId.Length != 0) { + RoleId = other.RoleId; + } + if (other.InputNum != 0) { + InputNum = other.InputNum; + } + selectUserList_.Add(other.selectUserList_); + selectRoleList_.Add(other.selectRoleList_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SelectId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + case 26: { + RoomId = input.ReadString(); + break; + } + case 34: { + TaskId = input.ReadString(); + break; + } + case 42: { + RoleId = input.ReadString(); + break; + } + case 48: { + InputNum = input.ReadInt32(); + break; + } + case 58: { + selectUserList_.AddEntriesFrom(input, _repeated_selectUserList_codec); + break; + } + case 66: { + selectRoleList_.AddEntriesFrom(input, _repeated_selectRoleList_codec); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SelectId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + case 26: { + RoomId = input.ReadString(); + break; + } + case 34: { + TaskId = input.ReadString(); + break; + } + case 42: { + RoleId = input.ReadString(); + break; + } + case 48: { + InputNum = input.ReadInt32(); + break; + } + case 58: { + selectUserList_.AddEntriesFrom(ref input, _repeated_selectUserList_codec); + break; + } + case 66: { + selectRoleList_.AddEntriesFrom(ref input, _repeated_selectRoleList_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SelectRequest message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UserList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::SelectRequest.Descriptor.NestedTypes[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 UserList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserList(UserList other) : this() { + userId_ = other.userId_; + roleId_ = other.roleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserList Clone() { + return new UserList(this); + } + + /// Field number for the "UserId" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// 用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoleId" field. + public const int RoleIdFieldNumber = 2; + private string roleId_ = ""; + /// + /// 角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoleId { + get { return roleId_; } + set { + roleId_ = 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 UserList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) return false; + if (RoleId != other.RoleId) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (RoleId.Length != 0) hash ^= RoleId.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RoleId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RoleId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (RoleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserList other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.RoleId.Length != 0) { + RoleId = other.RoleId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + case 18: { + RoleId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + case 18: { + RoleId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class SelectResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::SelectReflection.Descriptor.MessageTypes[1]; } + } + + [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 SelectResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectResponse(SelectResponse other) : this() { + id_ = other.id_; + baseId_ = other.baseId_; + note_ = other.note_; + group_ = other.group_; + unDisplay_ = other.unDisplay_; + showText_ = other.showText_; + icon_ = other.icon_; + preconditions_ = other.preconditions_; + exclusive_ = other.exclusive_; + taskTime_ = other.taskTime_; + timeLimit_ = other.timeLimit_; + nextSelect_ = other.nextSelect_; + taskLink_ = other.taskLink_; + taskLinkDetails_ = other.taskLinkDetails_; + callMode_ = other.callMode_; + callRecipient_ = other.callRecipient_; + correctOption_ = other.correctOption_; + reward_ = other.reward_; + result_ = other.result_; + route_ = other.route_; + timingChange_ = other.timingChange_; + appliedUI_ = other.appliedUI_; + uIDetails_ = other.uIDetails_; + seq_ = other.seq_; + playScript_ = other.playScript_; + roomId_ = other.roomId_; + createTime_ = other.createTime_; + updateTime_ = other.updateTime_; + userId_ = other.userId_; + roleId_ = other.roleId_; + selectUserList_ = other.selectUserList_.Clone(); + selectRoleList_ = other.selectRoleList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectResponse Clone() { + return new SelectResponse(this); + } + + /// Field number for the "Id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// 选择的ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "BaseId" field. + public const int BaseIdFieldNumber = 2; + private string baseId_ = ""; + /// + /// 选项表基础ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseId { + get { return baseId_; } + set { + baseId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Note" field. + public const int NoteFieldNumber = 3; + private string note_ = ""; + /// + /// 选项说明 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Group" field. + public const int GroupFieldNumber = 4; + private string group_ = ""; + /// + /// 选项分组 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Group { + get { return group_; } + set { + group_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UnDisplay" field. + public const int UnDisplayFieldNumber = 5; + private string unDisplay_ = ""; + /// + /// 是否隐藏 1 只显示一次 2 可重复显示 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UnDisplay { + get { return unDisplay_; } + set { + unDisplay_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ShowText" field. + public const int ShowTextFieldNumber = 6; + private string showText_ = ""; + /// + /// 显示文本 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ShowText { + get { return showText_; } + set { + showText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Icon" field. + public const int IconFieldNumber = 7; + private string icon_ = ""; + /// + /// 图标 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Preconditions" field. + public const int PreconditionsFieldNumber = 8; + private string preconditions_ = ""; + /// + /// 前置条件 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Preconditions { + get { return preconditions_; } + set { + preconditions_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Exclusive" field. + public const int ExclusiveFieldNumber = 9; + private string exclusive_ = ""; + /// + /// 是否独占 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Exclusive { + get { return exclusive_; } + set { + exclusive_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TaskTime" field. + public const int TaskTimeFieldNumber = 10; + private string taskTime_ = ""; + /// + /// 任务时间 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskTime { + get { return taskTime_; } + set { + taskTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TimeLimit" field. + public const int TimeLimitFieldNumber = 11; + private long timeLimit_; + /// + /// 时间限制 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TimeLimit { + get { return timeLimit_; } + set { + timeLimit_ = value; + } + } + + /// Field number for the "NextSelect" field. + public const int NextSelectFieldNumber = 12; + private string nextSelect_ = ""; + /// + /// 下一个选项 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextSelect { + get { return nextSelect_; } + set { + nextSelect_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TaskLink" field. + public const int TaskLinkFieldNumber = 13; + private string taskLink_ = ""; + /// + /// 任务链接 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskLink { + get { return taskLink_; } + set { + taskLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TaskLinkDetails" field. + public const int TaskLinkDetailsFieldNumber = 14; + private string taskLinkDetails_ = ""; + /// + /// 任务链接详情 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskLinkDetails { + get { return taskLinkDetails_; } + set { + taskLinkDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CallMode" field. + public const int CallModeFieldNumber = 15; + private string callMode_ = ""; + /// + /// 呼叫方式 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CallMode { + get { return callMode_; } + set { + callMode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CallRecipient" field. + public const int CallRecipientFieldNumber = 16; + private string callRecipient_ = ""; + /// + /// 呼叫接收者 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CallRecipient { + get { return callRecipient_; } + set { + callRecipient_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CorrectOption" field. + public const int CorrectOptionFieldNumber = 17; + private string correctOption_ = ""; + /// + /// 正确选项 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CorrectOption { + get { return correctOption_; } + set { + correctOption_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Reward" field. + public const int RewardFieldNumber = 18; + private string reward_ = ""; + /// + /// 奖励 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reward { + get { return reward_; } + set { + reward_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Result" field. + public const int ResultFieldNumber = 19; + private string result_ = ""; + /// + /// 结果 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Result { + get { return result_; } + set { + result_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Route" field. + public const int RouteFieldNumber = 20; + private string route_ = ""; + /// + /// 路由 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Route { + get { return route_; } + set { + route_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TimingChange" field. + public const int TimingChangeFieldNumber = 21; + private string timingChange_ = ""; + /// + /// 是否允许定时修改 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TimingChange { + get { return timingChange_; } + set { + timingChange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "AppliedUI" field. + public const int AppliedUIFieldNumber = 22; + private string appliedUI_ = ""; + /// + /// 是否已应用UI + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppliedUI { + get { return appliedUI_; } + set { + appliedUI_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UIDetails" field. + public const int UIDetailsFieldNumber = 23; + private string uIDetails_ = ""; + /// + /// UI详情 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UIDetails { + get { return uIDetails_; } + set { + uIDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Seq" field. + public const int SeqFieldNumber = 24; + private string seq_ = ""; + /// + /// 执行时的序列帧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Seq { + get { return seq_; } + set { + seq_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "PlayScript" field. + public const int PlayScriptFieldNumber = 25; + private string playScript_ = ""; + /// + /// JSON格式的播放脚本 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayScript { + get { return playScript_; } + set { + playScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 26; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CreateTime" field. + public const int CreateTimeFieldNumber = 27; + private string createTime_ = ""; + /// + /// 创建时间 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CreateTime { + get { return createTime_; } + set { + createTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UpdateTime" field. + public const int UpdateTimeFieldNumber = 28; + private string updateTime_ = ""; + /// + /// 更新时间 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UpdateTime { + get { return updateTime_; } + set { + updateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserId" field. + public const int UserIdFieldNumber = 29; + private string userId_ = ""; + /// + /// 创建人ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoleId" field. + public const int RoleIdFieldNumber = 30; + private string roleId_ = ""; + /// + /// 角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoleId { + get { return roleId_; } + set { + roleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "SelectUserList" field. + public const int SelectUserListFieldNumber = 31; + private static readonly pb::FieldCodec _repeated_selectUserList_codec + = pb::FieldCodec.ForMessage(250, global::SelectResponse.Types.UserList.Parser); + private readonly pbc::RepeatedField selectUserList_ = new pbc::RepeatedField(); + /// + /// 选择的用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SelectUserList { + get { return selectUserList_; } + } + + /// Field number for the "SelectRoleList" field. + public const int SelectRoleListFieldNumber = 32; + private static readonly pb::FieldCodec _repeated_selectRoleList_codec + = pb::FieldCodec.ForString(258); + private readonly pbc::RepeatedField selectRoleList_ = new pbc::RepeatedField(); + /// + /// 选择的角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SelectRoleList { + get { return selectRoleList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (BaseId != other.BaseId) return false; + if (Note != other.Note) return false; + if (Group != other.Group) return false; + if (UnDisplay != other.UnDisplay) return false; + if (ShowText != other.ShowText) return false; + if (Icon != other.Icon) return false; + if (Preconditions != other.Preconditions) return false; + if (Exclusive != other.Exclusive) return false; + if (TaskTime != other.TaskTime) return false; + if (TimeLimit != other.TimeLimit) return false; + if (NextSelect != other.NextSelect) return false; + if (TaskLink != other.TaskLink) return false; + if (TaskLinkDetails != other.TaskLinkDetails) return false; + if (CallMode != other.CallMode) return false; + if (CallRecipient != other.CallRecipient) return false; + if (CorrectOption != other.CorrectOption) return false; + if (Reward != other.Reward) return false; + if (Result != other.Result) return false; + if (Route != other.Route) return false; + if (TimingChange != other.TimingChange) return false; + if (AppliedUI != other.AppliedUI) return false; + if (UIDetails != other.UIDetails) return false; + if (Seq != other.Seq) return false; + if (PlayScript != other.PlayScript) return false; + if (RoomId != other.RoomId) return false; + if (CreateTime != other.CreateTime) return false; + if (UpdateTime != other.UpdateTime) return false; + if (UserId != other.UserId) return false; + if (RoleId != other.RoleId) return false; + if(!selectUserList_.Equals(other.selectUserList_)) return false; + if(!selectRoleList_.Equals(other.selectRoleList_)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (BaseId.Length != 0) hash ^= BaseId.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (Group.Length != 0) hash ^= Group.GetHashCode(); + if (UnDisplay.Length != 0) hash ^= UnDisplay.GetHashCode(); + if (ShowText.Length != 0) hash ^= ShowText.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Preconditions.Length != 0) hash ^= Preconditions.GetHashCode(); + if (Exclusive.Length != 0) hash ^= Exclusive.GetHashCode(); + if (TaskTime.Length != 0) hash ^= TaskTime.GetHashCode(); + if (TimeLimit != 0L) hash ^= TimeLimit.GetHashCode(); + if (NextSelect.Length != 0) hash ^= NextSelect.GetHashCode(); + if (TaskLink.Length != 0) hash ^= TaskLink.GetHashCode(); + if (TaskLinkDetails.Length != 0) hash ^= TaskLinkDetails.GetHashCode(); + if (CallMode.Length != 0) hash ^= CallMode.GetHashCode(); + if (CallRecipient.Length != 0) hash ^= CallRecipient.GetHashCode(); + if (CorrectOption.Length != 0) hash ^= CorrectOption.GetHashCode(); + if (Reward.Length != 0) hash ^= Reward.GetHashCode(); + if (Result.Length != 0) hash ^= Result.GetHashCode(); + if (Route.Length != 0) hash ^= Route.GetHashCode(); + if (TimingChange.Length != 0) hash ^= TimingChange.GetHashCode(); + if (AppliedUI.Length != 0) hash ^= AppliedUI.GetHashCode(); + if (UIDetails.Length != 0) hash ^= UIDetails.GetHashCode(); + if (Seq.Length != 0) hash ^= Seq.GetHashCode(); + if (PlayScript.Length != 0) hash ^= PlayScript.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode(); + if (UpdateTime.Length != 0) hash ^= UpdateTime.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (RoleId.Length != 0) hash ^= RoleId.GetHashCode(); + hash ^= selectUserList_.GetHashCode(); + hash ^= selectRoleList_.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (BaseId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BaseId); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Group.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Group); + } + if (UnDisplay.Length != 0) { + output.WriteRawTag(42); + output.WriteString(UnDisplay); + } + if (ShowText.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ShowText); + } + if (Icon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (Preconditions.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Preconditions); + } + if (Exclusive.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Exclusive); + } + if (TaskTime.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TaskTime); + } + if (TimeLimit != 0L) { + output.WriteRawTag(88); + output.WriteInt64(TimeLimit); + } + if (NextSelect.Length != 0) { + output.WriteRawTag(98); + output.WriteString(NextSelect); + } + if (TaskLink.Length != 0) { + output.WriteRawTag(106); + output.WriteString(TaskLink); + } + if (TaskLinkDetails.Length != 0) { + output.WriteRawTag(114); + output.WriteString(TaskLinkDetails); + } + if (CallMode.Length != 0) { + output.WriteRawTag(122); + output.WriteString(CallMode); + } + if (CallRecipient.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(CallRecipient); + } + if (CorrectOption.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(CorrectOption); + } + if (Reward.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Reward); + } + if (Result.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Result); + } + if (Route.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Route); + } + if (TimingChange.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(TimingChange); + } + if (AppliedUI.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(AppliedUI); + } + if (UIDetails.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(UIDetails); + } + if (Seq.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Seq); + } + if (PlayScript.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(PlayScript); + } + if (RoomId.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(RoomId); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(UpdateTime); + } + if (UserId.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(UserId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(RoleId); + } + selectUserList_.WriteTo(output, _repeated_selectUserList_codec); + selectRoleList_.WriteTo(output, _repeated_selectRoleList_codec); + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (BaseId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BaseId); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Group.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Group); + } + if (UnDisplay.Length != 0) { + output.WriteRawTag(42); + output.WriteString(UnDisplay); + } + if (ShowText.Length != 0) { + output.WriteRawTag(50); + output.WriteString(ShowText); + } + if (Icon.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Icon); + } + if (Preconditions.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Preconditions); + } + if (Exclusive.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Exclusive); + } + if (TaskTime.Length != 0) { + output.WriteRawTag(82); + output.WriteString(TaskTime); + } + if (TimeLimit != 0L) { + output.WriteRawTag(88); + output.WriteInt64(TimeLimit); + } + if (NextSelect.Length != 0) { + output.WriteRawTag(98); + output.WriteString(NextSelect); + } + if (TaskLink.Length != 0) { + output.WriteRawTag(106); + output.WriteString(TaskLink); + } + if (TaskLinkDetails.Length != 0) { + output.WriteRawTag(114); + output.WriteString(TaskLinkDetails); + } + if (CallMode.Length != 0) { + output.WriteRawTag(122); + output.WriteString(CallMode); + } + if (CallRecipient.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(CallRecipient); + } + if (CorrectOption.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(CorrectOption); + } + if (Reward.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Reward); + } + if (Result.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(Result); + } + if (Route.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Route); + } + if (TimingChange.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(TimingChange); + } + if (AppliedUI.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(AppliedUI); + } + if (UIDetails.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(UIDetails); + } + if (Seq.Length != 0) { + output.WriteRawTag(194, 1); + output.WriteString(Seq); + } + if (PlayScript.Length != 0) { + output.WriteRawTag(202, 1); + output.WriteString(PlayScript); + } + if (RoomId.Length != 0) { + output.WriteRawTag(210, 1); + output.WriteString(RoomId); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(226, 1); + output.WriteString(UpdateTime); + } + if (UserId.Length != 0) { + output.WriteRawTag(234, 1); + output.WriteString(UserId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(RoleId); + } + selectUserList_.WriteTo(ref output, _repeated_selectUserList_codec); + selectRoleList_.WriteTo(ref output, _repeated_selectRoleList_codec); + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (BaseId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseId); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (Group.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Group); + } + if (UnDisplay.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UnDisplay); + } + if (ShowText.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ShowText); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Preconditions.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Preconditions); + } + if (Exclusive.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Exclusive); + } + if (TaskTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskTime); + } + if (TimeLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeLimit); + } + if (NextSelect.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextSelect); + } + if (TaskLink.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskLink); + } + if (TaskLinkDetails.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskLinkDetails); + } + if (CallMode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CallMode); + } + if (CallRecipient.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CallRecipient); + } + if (CorrectOption.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CorrectOption); + } + if (Reward.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Reward); + } + if (Result.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Result); + } + if (Route.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Route); + } + if (TimingChange.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TimingChange); + } + if (AppliedUI.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AppliedUI); + } + if (UIDetails.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UIDetails); + } + if (Seq.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Seq); + } + if (PlayScript.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PlayScript); + } + if (RoomId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (CreateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CreateTime); + } + if (UpdateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UpdateTime); + } + if (UserId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (RoleId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RoleId); + } + size += selectUserList_.CalculateSize(_repeated_selectUserList_codec); + size += selectRoleList_.CalculateSize(_repeated_selectRoleList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectResponse other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.BaseId.Length != 0) { + BaseId = other.BaseId; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + if (other.Group.Length != 0) { + Group = other.Group; + } + if (other.UnDisplay.Length != 0) { + UnDisplay = other.UnDisplay; + } + if (other.ShowText.Length != 0) { + ShowText = other.ShowText; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Preconditions.Length != 0) { + Preconditions = other.Preconditions; + } + if (other.Exclusive.Length != 0) { + Exclusive = other.Exclusive; + } + if (other.TaskTime.Length != 0) { + TaskTime = other.TaskTime; + } + if (other.TimeLimit != 0L) { + TimeLimit = other.TimeLimit; + } + if (other.NextSelect.Length != 0) { + NextSelect = other.NextSelect; + } + if (other.TaskLink.Length != 0) { + TaskLink = other.TaskLink; + } + if (other.TaskLinkDetails.Length != 0) { + TaskLinkDetails = other.TaskLinkDetails; + } + if (other.CallMode.Length != 0) { + CallMode = other.CallMode; + } + if (other.CallRecipient.Length != 0) { + CallRecipient = other.CallRecipient; + } + if (other.CorrectOption.Length != 0) { + CorrectOption = other.CorrectOption; + } + if (other.Reward.Length != 0) { + Reward = other.Reward; + } + if (other.Result.Length != 0) { + Result = other.Result; + } + if (other.Route.Length != 0) { + Route = other.Route; + } + if (other.TimingChange.Length != 0) { + TimingChange = other.TimingChange; + } + if (other.AppliedUI.Length != 0) { + AppliedUI = other.AppliedUI; + } + if (other.UIDetails.Length != 0) { + UIDetails = other.UIDetails; + } + if (other.Seq.Length != 0) { + Seq = other.Seq; + } + if (other.PlayScript.Length != 0) { + PlayScript = other.PlayScript; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.CreateTime.Length != 0) { + CreateTime = other.CreateTime; + } + if (other.UpdateTime.Length != 0) { + UpdateTime = other.UpdateTime; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.RoleId.Length != 0) { + RoleId = other.RoleId; + } + selectUserList_.Add(other.selectUserList_); + selectRoleList_.Add(other.selectRoleList_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + BaseId = input.ReadString(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Group = input.ReadString(); + break; + } + case 42: { + UnDisplay = input.ReadString(); + break; + } + case 50: { + ShowText = input.ReadString(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + Preconditions = input.ReadString(); + break; + } + case 74: { + Exclusive = input.ReadString(); + break; + } + case 82: { + TaskTime = input.ReadString(); + break; + } + case 88: { + TimeLimit = input.ReadInt64(); + break; + } + case 98: { + NextSelect = input.ReadString(); + break; + } + case 106: { + TaskLink = input.ReadString(); + break; + } + case 114: { + TaskLinkDetails = input.ReadString(); + break; + } + case 122: { + CallMode = input.ReadString(); + break; + } + case 130: { + CallRecipient = input.ReadString(); + break; + } + case 138: { + CorrectOption = input.ReadString(); + break; + } + case 146: { + Reward = input.ReadString(); + break; + } + case 154: { + Result = input.ReadString(); + break; + } + case 162: { + Route = input.ReadString(); + break; + } + case 170: { + TimingChange = input.ReadString(); + break; + } + case 178: { + AppliedUI = input.ReadString(); + break; + } + case 186: { + UIDetails = input.ReadString(); + break; + } + case 194: { + Seq = input.ReadString(); + break; + } + case 202: { + PlayScript = input.ReadString(); + break; + } + case 210: { + RoomId = input.ReadString(); + break; + } + case 218: { + CreateTime = input.ReadString(); + break; + } + case 226: { + UpdateTime = input.ReadString(); + break; + } + case 234: { + UserId = input.ReadString(); + break; + } + case 242: { + RoleId = input.ReadString(); + break; + } + case 250: { + selectUserList_.AddEntriesFrom(input, _repeated_selectUserList_codec); + break; + } + case 258: { + selectRoleList_.AddEntriesFrom(input, _repeated_selectRoleList_codec); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + BaseId = input.ReadString(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Group = input.ReadString(); + break; + } + case 42: { + UnDisplay = input.ReadString(); + break; + } + case 50: { + ShowText = input.ReadString(); + break; + } + case 58: { + Icon = input.ReadString(); + break; + } + case 66: { + Preconditions = input.ReadString(); + break; + } + case 74: { + Exclusive = input.ReadString(); + break; + } + case 82: { + TaskTime = input.ReadString(); + break; + } + case 88: { + TimeLimit = input.ReadInt64(); + break; + } + case 98: { + NextSelect = input.ReadString(); + break; + } + case 106: { + TaskLink = input.ReadString(); + break; + } + case 114: { + TaskLinkDetails = input.ReadString(); + break; + } + case 122: { + CallMode = input.ReadString(); + break; + } + case 130: { + CallRecipient = input.ReadString(); + break; + } + case 138: { + CorrectOption = input.ReadString(); + break; + } + case 146: { + Reward = input.ReadString(); + break; + } + case 154: { + Result = input.ReadString(); + break; + } + case 162: { + Route = input.ReadString(); + break; + } + case 170: { + TimingChange = input.ReadString(); + break; + } + case 178: { + AppliedUI = input.ReadString(); + break; + } + case 186: { + UIDetails = input.ReadString(); + break; + } + case 194: { + Seq = input.ReadString(); + break; + } + case 202: { + PlayScript = input.ReadString(); + break; + } + case 210: { + RoomId = input.ReadString(); + break; + } + case 218: { + CreateTime = input.ReadString(); + break; + } + case 226: { + UpdateTime = input.ReadString(); + break; + } + case 234: { + UserId = input.ReadString(); + break; + } + case 242: { + RoleId = input.ReadString(); + break; + } + case 250: { + selectUserList_.AddEntriesFrom(ref input, _repeated_selectUserList_codec); + break; + } + case 258: { + selectRoleList_.AddEntriesFrom(ref input, _repeated_selectRoleList_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SelectResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UserList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::SelectResponse.Descriptor.NestedTypes[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 UserList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserList(UserList other) : this() { + userId_ = other.userId_; + roleId_ = other.roleId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserList Clone() { + return new UserList(this); + } + + /// Field number for the "UserId" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// 用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoleId" field. + public const int RoleIdFieldNumber = 2; + private string roleId_ = ""; + /// + /// 角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoleId { + get { return roleId_; } + set { + roleId_ = 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 UserList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) return false; + if (RoleId != other.RoleId) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (RoleId.Length != 0) hash ^= RoleId.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RoleId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RoleId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (RoleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserList other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.RoleId.Length != 0) { + RoleId = other.RoleId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + case 18: { + RoleId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + UserId = input.ReadString(); + break; + } + case 18: { + RoleId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class SelectHistoryRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectHistoryRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::SelectReflection.Descriptor.MessageTypes[2]; } + } + + [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 SelectHistoryRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectHistoryRequest(SelectHistoryRequest other) : this() { + selectId_ = other.selectId_; + userId_ = other.userId_; + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectHistoryRequest Clone() { + return new SelectHistoryRequest(this); + } + + /// Field number for the "SelectId" field. + public const int SelectIdFieldNumber = 1; + private string selectId_ = ""; + /// + /// 选择的ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SelectId { + get { return selectId_; } + set { + selectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserId" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// 当前操作用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 3; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = 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 SelectHistoryRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectHistoryRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SelectId != other.SelectId) return false; + if (UserId != other.UserId) return false; + if (RoomId != other.RoomId) 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 (SelectId.Length != 0) hash ^= SelectId.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.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 (SelectId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SelectId); + } + if (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + 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 (SelectId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SelectId); + } + if (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + 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 (SelectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectId); + } + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectHistoryRequest other) { + if (other == null) { + return; + } + if (other.SelectId.Length != 0) { + SelectId = other.SelectId; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SelectId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + case 26: { + RoomId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SelectId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + case 26: { + RoomId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class SelectHistoryResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectHistoryResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::SelectReflection.Descriptor.MessageTypes[3]; } + } + + [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 SelectHistoryResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectHistoryResponse(SelectHistoryResponse other) : this() { + selects_ = other.selects_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectHistoryResponse Clone() { + return new SelectHistoryResponse(this); + } + + /// Field number for the "Selects" field. + public const int SelectsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_selects_codec + = pb::FieldCodec.ForMessage(10, global::SelectResponse.Parser); + private readonly pbc::RepeatedField selects_ = new pbc::RepeatedField(); + /// + /// 选择历史列表 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Selects { + get { return selects_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectHistoryResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectHistoryResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!selects_.Equals(other.selects_)) 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; + hash ^= selects_.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 + selects_.WriteTo(output, _repeated_selects_codec); + 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) { + selects_.WriteTo(ref output, _repeated_selects_codec); + 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; + size += selects_.CalculateSize(_repeated_selects_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectHistoryResponse other) { + if (other == null) { + return; + } + selects_.Add(other.selects_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + selects_.AddEntriesFrom(input, _repeated_selects_codec); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + selects_.AddEntriesFrom(ref input, _repeated_selects_codec); + break; + } + } + } + } + #endif + +} + +#endregion + + +#endregion Designer generated code diff --git a/xiaofang/Assets/ProtoBuf/Proto/Select.cs.meta b/xiaofang/Assets/ProtoBuf/Proto/Select.cs.meta new file mode 100644 index 00000000..4e9c2076 --- /dev/null +++ b/xiaofang/Assets/ProtoBuf/Proto/Select.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 66d3975862e2e444bac5aee094c9f89c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/ProtoBuf/Proto/Task.cs b/xiaofang/Assets/ProtoBuf/Proto/Task.cs index a0998dbe..66f7f95e 100644 --- a/xiaofang/Assets/ProtoBuf/Proto/Task.cs +++ b/xiaofang/Assets/ProtoBuf/Proto/Task.cs @@ -30,17 +30,33 @@ public static partial class TaskReflection { "DgoGVGFza0lkGAIgASgJEg4KBlVzZXJJZBgDIAEoCRIQCghTZWxlY3RJZBgE", "IAEoCRIQCghUb1VzZXJJZBgFIAEoCRIQCghVc2VyTmFtZRgGIAEoCRIOCgZQ", "cm9wSWQYByABKAkSEAoIUHJvcE5hbWUYCCABKAkSDwoHUHJvcE51bRgJIAEo", - "BRIOCgZTdGF0dXMYCiABKAkingIKDFRhc2tSZXNwb25zZRIOCgZUYXNrSWQY", - "ASABKAkSDgoGU3RhdHVzGAIgASgJEg4KBlJvb21JZBgDIAEoCRIJCgFYGAQg", - "ASgCEgkKAVkYBSABKAISCQoBWhgGIAEoAhIMCgRUeXBlGAcgASgJEhEKCVRp", - "bWVMaW1pdBgIIAEoAxIMCgREZXNjGAkgASgJEg8KB1RyaWdnZXIYCiABKAkS", - "EQoJTmV4dFRhc2tzGAsgASgJEhIKClRhcmdldFR5cGUYDCABKAkSDgoGUmV3", - "YXJkGA0gASgJEgwKBE5vdGUYDiABKAkSEgoKQ3JlYXRlVGltZRgPIAEoCRIS", - "CgpVcGRhdGVUaW1lGBAgASgJEhAKCFRvVXNlcklkGBEgASgJImMKC1Rhc2tU", - "cmlnZ2VyEg4KBlVzZXJJZBgCIAEoCRIOCgZSb29tSWQYAyABKAkSEQoJVHJp", - "Z2dlcklkGAQgASgJEg8KB1R5cGVTdHIYBSABKAkSEAoIVGFyZ2V0SWQYBiAB", - "KAkiIwoOVGFza09ybVJlcXVlc3QSEQoJc3ViamVjdElkGAEgASgJQgdaBS4v", - "O3BiYgZwcm90bzM=")); + "BRIOCgZTdGF0dXMYCiABKAkiMAoQVGFza0xpc3RSZXNwb25zZRIcCgV0YXNr", + "cxgBIAMoCzINLlRhc2tSZXNwb25zZSKyAgoMVGFza1Jlc3BvbnNlEg4KBlRh", + "c2tJZBgBIAEoCRIOCgZTdGF0dXMYAiABKAkSDgoGUm9vbUlkGAMgASgJEgkK", + "AVgYBCABKAISCQoBWRgFIAEoAhIJCgFaGAYgASgCEgwKBFR5cGUYByABKAkS", + "EQoJVGltZUxpbWl0GAggASgDEgwKBERlc2MYCSABKAkSDwoHVHJpZ2dlchgK", + "IAEoCRIRCglOZXh0VGFza3MYCyABKAkSEgoKVGFyZ2V0VHlwZRgMIAEoCRIO", + "CgZSZXdhcmQYDSABKAkSDAoETm90ZRgOIAEoCRISCgpDcmVhdGVUaW1lGA8g", + "ASgJEhIKClVwZGF0ZVRpbWUYECABKAkSEAoIVG9Vc2VySWQYESABKAkSEgoK", + "QmFzZVRhc2tJZBgSIAEoCSKDAQoLVGFza1RyaWdnZXISDgoGVXNlcklkGAEg", + "ASgJEg4KBlJvb21JZBgCIAEoCRIRCglUcmlnZ2VySWQYAyABKAkSDwoHVHlw", + "ZVN0chgEIAEoCRIQCghUYXJnZXRJZBgFIAEoCRIOCgZUYXNrSWQYBiABKAkS", + "DgoGUm9sZUlkGAcgASgJIiMKDlRhc2tPcm1SZXF1ZXN0EhEKCXN1YmplY3RJ", + "ZBgBIAEoCSLWAQoUU2VsZWN0SGFuZGxlVGFza0NvbmYSDgoGVGFza0lkGAEg", + "ASgJEg4KBlVzZXJJZBgCIAEoCRIPCgdVc2VySWRzGAMgAygJEg4KBlJvb21J", + "ZBgEIAEoCRIQCghTZWxlY3RJZBgFIAEoCRIOCgZSb2xlSWQYBiABKAkSEAoI", + "VHJpZ2dlcnMYByADKAkSEgoKVHJpZ2dlclN0chgIIAEoCRIQCghUYXJnZXRJ", + "ZBgJIAEoCRIjCgxCYXNrVGFza0NvbmYYCiABKAsyDS5CYXNlVGFza0NvbmYi", + "igMKDEJhc2VUYXNrQ29uZhIKCgJJZBgBIAEoCRIMCgROb3RlGAIgASgJEgwK", + "BE5hbWUYAyABKAkSDAoEVHlwZRgEIAEoCRIMCgREZXNjGAUgASgJEhIKClBs", + "YXlTY3JpcHQYBiABKAkSDwoHVHJpZ2dlchgHIAEoCRITCgtPdmVyc2VlQ29u", + "ZBgIIAEoCRIRCglUaW1lTGltaXQYCSABKAUSDAoEUm9sZRgKIAEoCRIPCgdT", + "ZWxlY3RzGAsgASgJEhIKClRhcmdldFR5cGUYDCABKAkSEAoIVGFyZ2V0czEY", + "DSABKAkSEAoIVGFyZ2V0czIYDiABKAkSFQoNVGFyZ2V0czJMb2dpYxgPIAEo", + "CRISCgpFeHRyYVZhbHVlGBAgASgJEhAKCE5leHRUYXNrGBEgASgJEgwKBFNv", + "cnQYEiABKAUSDgoGSXNTaG93GBMgASgFEhEKCUV4Y2x1c2l2ZRgUIAEoCRIO", + "CgZSZXdhcmQYFSABKAkSFAoMVHJpZ2dlckxvZ2ljGBYgASgJQgdaBS4vO3Bi", + "YgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -48,9 +64,12 @@ public static partial class TaskReflection { new pbr::GeneratedClrTypeInfo(typeof(global::BaseTask), global::BaseTask.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::TaskCreateResponse), global::TaskCreateResponse.Parser, new[]{ "Id", "X", "Y", "Z", "Type", "RoomId", "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::TaskUpdateRequest), global::TaskUpdateRequest.Parser, new[]{ "RoomId", "TaskId", "UserId", "SelectId", "ToUserId", "UserName", "PropId", "PropName", "PropNum", "Status" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::TaskResponse), global::TaskResponse.Parser, new[]{ "TaskId", "Status", "RoomId", "X", "Y", "Z", "Type", "TimeLimit", "Desc", "Trigger", "NextTasks", "TargetType", "Reward", "Note", "CreateTime", "UpdateTime", "ToUserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::TaskTrigger), global::TaskTrigger.Parser, new[]{ "UserId", "RoomId", "TriggerId", "TypeStr", "TargetId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::TaskOrmRequest), global::TaskOrmRequest.Parser, new[]{ "SubjectId" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::TaskListResponse), global::TaskListResponse.Parser, new[]{ "Tasks" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::TaskResponse), global::TaskResponse.Parser, new[]{ "TaskId", "Status", "RoomId", "X", "Y", "Z", "Type", "TimeLimit", "Desc", "Trigger", "NextTasks", "TargetType", "Reward", "Note", "CreateTime", "UpdateTime", "ToUserId", "BaseTaskId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::TaskTrigger), global::TaskTrigger.Parser, new[]{ "UserId", "RoomId", "TriggerId", "TypeStr", "TargetId", "TaskId", "RoleId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::TaskOrmRequest), global::TaskOrmRequest.Parser, new[]{ "SubjectId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::SelectHandleTaskConf), global::SelectHandleTaskConf.Parser, new[]{ "TaskId", "UserId", "UserIds", "RoomId", "SelectId", "RoleId", "Triggers", "TriggerStr", "TargetId", "BaskTaskConf" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::BaseTaskConf), global::BaseTaskConf.Parser, new[]{ "Id", "Note", "Name", "Type", "Desc", "PlayScript", "Trigger", "OverseeCond", "TimeLimit", "Role", "Selects", "TargetType", "Targets1", "Targets2", "Targets2Logic", "ExtraValue", "NextTask", "Sort", "IsShow", "Exclusive", "Reward", "TriggerLogic" }, null, null, null, null) })); } #endregion @@ -1461,6 +1480,196 @@ public sealed partial class TaskUpdateRequest : pb::IMessage } +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class TaskListResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskListResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::TaskReflection.Descriptor.MessageTypes[4]; } + } + + [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 TaskListResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TaskListResponse(TaskListResponse other) : this() { + tasks_ = other.tasks_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TaskListResponse Clone() { + return new TaskListResponse(this); + } + + /// Field number for the "tasks" field. + public const int TasksFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_tasks_codec + = pb::FieldCodec.ForMessage(10, global::TaskResponse.Parser); + private readonly pbc::RepeatedField tasks_ = new pbc::RepeatedField(); + /// + /// 任务列表 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tasks { + get { return tasks_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TaskListResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TaskListResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!tasks_.Equals(other.tasks_)) 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; + hash ^= tasks_.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 + tasks_.WriteTo(output, _repeated_tasks_codec); + 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) { + tasks_.WriteTo(ref output, _repeated_tasks_codec); + 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; + size += tasks_.CalculateSize(_repeated_tasks_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TaskListResponse other) { + if (other == null) { + return; + } + tasks_.Add(other.tasks_); + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + tasks_.AddEntriesFrom(input, _repeated_tasks_codec); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + tasks_.AddEntriesFrom(ref input, _repeated_tasks_codec); + break; + } + } + } + } + #endif + +} + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class TaskResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -1476,7 +1685,7 @@ public sealed partial class TaskResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::TaskReflection.Descriptor.MessageTypes[4]; } + get { return global::TaskReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1513,6 +1722,7 @@ public sealed partial class TaskResponse : pb::IMessage createTime_ = other.createTime_; updateTime_ = other.updateTime_; toUserId_ = other.toUserId_; + baseTaskId_ = other.baseTaskId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1777,6 +1987,21 @@ public sealed partial class TaskResponse : pb::IMessage } } + /// Field number for the "BaseTaskId" field. + public const int BaseTaskIdFieldNumber = 18; + private string baseTaskId_ = ""; + /// + /// 基础任务id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BaseTaskId { + get { return baseTaskId_; } + set { + baseTaskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1809,6 +2034,7 @@ public sealed partial class TaskResponse : pb::IMessage if (CreateTime != other.CreateTime) return false; if (UpdateTime != other.UpdateTime) return false; if (ToUserId != other.ToUserId) return false; + if (BaseTaskId != other.BaseTaskId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1833,6 +2059,7 @@ public sealed partial class TaskResponse : pb::IMessage if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode(); if (UpdateTime.Length != 0) hash ^= UpdateTime.GetHashCode(); if (ToUserId.Length != 0) hash ^= ToUserId.GetHashCode(); + if (BaseTaskId.Length != 0) hash ^= BaseTaskId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1919,6 +2146,10 @@ public sealed partial class TaskResponse : pb::IMessage output.WriteRawTag(138, 1); output.WriteString(ToUserId); } + if (BaseTaskId.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(BaseTaskId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1997,6 +2228,10 @@ public sealed partial class TaskResponse : pb::IMessage output.WriteRawTag(138, 1); output.WriteString(ToUserId); } + if (BaseTaskId.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(BaseTaskId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2058,6 +2293,9 @@ public sealed partial class TaskResponse : pb::IMessage if (ToUserId.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(ToUserId); } + if (BaseTaskId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseTaskId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2121,6 +2359,9 @@ public sealed partial class TaskResponse : pb::IMessage if (other.ToUserId.Length != 0) { ToUserId = other.ToUserId; } + if (other.BaseTaskId.Length != 0) { + BaseTaskId = other.BaseTaskId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2208,6 +2449,10 @@ public sealed partial class TaskResponse : pb::IMessage ToUserId = input.ReadString(); break; } + case 146: { + BaseTaskId = input.ReadString(); + break; + } } } #endif @@ -2295,6 +2540,10 @@ public sealed partial class TaskResponse : pb::IMessage ToUserId = input.ReadString(); break; } + case 146: { + BaseTaskId = input.ReadString(); + break; + } } } } @@ -2317,7 +2566,7 @@ public sealed partial class TaskTrigger : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::TaskReflection.Descriptor.MessageTypes[5]; } + get { return global::TaskReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2342,6 +2591,8 @@ public sealed partial class TaskTrigger : pb::IMessage triggerId_ = other.triggerId_; typeStr_ = other.typeStr_; targetId_ = other.targetId_; + taskId_ = other.taskId_; + roleId_ = other.roleId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2352,7 +2603,7 @@ public sealed partial class TaskTrigger : pb::IMessage } /// Field number for the "UserId" field. - public const int UserIdFieldNumber = 2; + public const int UserIdFieldNumber = 1; private string userId_ = ""; /// /// 用户id @@ -2367,7 +2618,7 @@ public sealed partial class TaskTrigger : pb::IMessage } /// Field number for the "RoomId" field. - public const int RoomIdFieldNumber = 3; + public const int RoomIdFieldNumber = 2; private string roomId_ = ""; /// /// 房间id @@ -2382,7 +2633,7 @@ public sealed partial class TaskTrigger : pb::IMessage } /// Field number for the "TriggerId" field. - public const int TriggerIdFieldNumber = 4; + public const int TriggerIdFieldNumber = 3; private string triggerId_ = ""; /// /// 触发器id @@ -2397,7 +2648,7 @@ public sealed partial class TaskTrigger : pb::IMessage } /// Field number for the "TypeStr" field. - public const int TypeStrFieldNumber = 5; + public const int TypeStrFieldNumber = 4; private string typeStr_ = ""; /// /// 触发器类型 @@ -2412,7 +2663,7 @@ public sealed partial class TaskTrigger : pb::IMessage } /// Field number for the "TargetId" field. - public const int TargetIdFieldNumber = 6; + public const int TargetIdFieldNumber = 5; private string targetId_ = ""; /// /// 目标id 例如消防栓ID @@ -2426,6 +2677,36 @@ public sealed partial class TaskTrigger : pb::IMessage } } + /// Field number for the "TaskId" field. + public const int TaskIdFieldNumber = 6; + private string taskId_ = ""; + /// + /// 任务id(当前操作选项相关的任务ID) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskId { + get { return taskId_; } + set { + taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoleId" field. + public const int RoleIdFieldNumber = 7; + private string roleId_ = ""; + /// + /// 角色id(当前选择的角色ID) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoleId { + get { return roleId_; } + set { + roleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -2446,6 +2727,8 @@ public sealed partial class TaskTrigger : pb::IMessage if (TriggerId != other.TriggerId) return false; if (TypeStr != other.TypeStr) return false; if (TargetId != other.TargetId) return false; + if (TaskId != other.TaskId) return false; + if (RoleId != other.RoleId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2458,6 +2741,8 @@ public sealed partial class TaskTrigger : pb::IMessage if (TriggerId.Length != 0) hash ^= TriggerId.GetHashCode(); if (TypeStr.Length != 0) hash ^= TypeStr.GetHashCode(); if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); + if (TaskId.Length != 0) hash ^= TaskId.GetHashCode(); + if (RoleId.Length != 0) hash ^= RoleId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2477,25 +2762,33 @@ public sealed partial class TaskTrigger : pb::IMessage output.WriteRawMessage(this); #else if (UserId.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(10); output.WriteString(UserId); } if (RoomId.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(18); output.WriteString(RoomId); } if (TriggerId.Length != 0) { - output.WriteRawTag(34); + output.WriteRawTag(26); output.WriteString(TriggerId); } if (TypeStr.Length != 0) { - output.WriteRawTag(42); + output.WriteRawTag(34); output.WriteString(TypeStr); } if (TargetId.Length != 0) { - output.WriteRawTag(50); + output.WriteRawTag(42); output.WriteString(TargetId); } + if (TaskId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TaskId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RoleId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2507,25 +2800,33 @@ public sealed partial class TaskTrigger : pb::IMessage [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (UserId.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(10); output.WriteString(UserId); } if (RoomId.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(18); output.WriteString(RoomId); } if (TriggerId.Length != 0) { - output.WriteRawTag(34); + output.WriteRawTag(26); output.WriteString(TriggerId); } if (TypeStr.Length != 0) { - output.WriteRawTag(42); + output.WriteRawTag(34); output.WriteString(TypeStr); } if (TargetId.Length != 0) { - output.WriteRawTag(50); + output.WriteRawTag(42); output.WriteString(TargetId); } + if (TaskId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(TaskId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RoleId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2551,6 +2852,12 @@ public sealed partial class TaskTrigger : pb::IMessage if (TargetId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } + if (TaskId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId); + } + if (RoleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2578,6 +2885,12 @@ public sealed partial class TaskTrigger : pb::IMessage if (other.TargetId.Length != 0) { TargetId = other.TargetId; } + if (other.TaskId.Length != 0) { + TaskId = other.TaskId; + } + if (other.RoleId.Length != 0) { + RoleId = other.RoleId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2597,26 +2910,34 @@ public sealed partial class TaskTrigger : pb::IMessage default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 18: { + case 10: { UserId = input.ReadString(); break; } - case 26: { + case 18: { RoomId = input.ReadString(); break; } - case 34: { + case 26: { TriggerId = input.ReadString(); break; } - case 42: { + case 34: { TypeStr = input.ReadString(); break; } - case 50: { + case 42: { TargetId = input.ReadString(); break; } + case 50: { + TaskId = input.ReadString(); + break; + } + case 58: { + RoleId = input.ReadString(); + break; + } } } #endif @@ -2636,26 +2957,34 @@ public sealed partial class TaskTrigger : pb::IMessage default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 18: { + case 10: { UserId = input.ReadString(); break; } - case 26: { + case 18: { RoomId = input.ReadString(); break; } - case 34: { + case 26: { TriggerId = input.ReadString(); break; } - case 42: { + case 34: { TypeStr = input.ReadString(); break; } - case 50: { + case 42: { TargetId = input.ReadString(); break; } + case 50: { + TaskId = input.ReadString(); + break; + } + case 58: { + RoleId = input.ReadString(); + break; + } } } } @@ -2678,7 +3007,7 @@ public sealed partial class TaskOrmRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::TaskReflection.Descriptor.MessageTypes[6]; } + get { return global::TaskReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2861,6 +3190,1595 @@ public sealed partial class TaskOrmRequest : pb::IMessage } +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class SelectHandleTaskConf : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectHandleTaskConf()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::TaskReflection.Descriptor.MessageTypes[8]; } + } + + [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 SelectHandleTaskConf() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectHandleTaskConf(SelectHandleTaskConf other) : this() { + taskId_ = other.taskId_; + userId_ = other.userId_; + userIds_ = other.userIds_.Clone(); + roomId_ = other.roomId_; + selectId_ = other.selectId_; + roleId_ = other.roleId_; + triggers_ = other.triggers_.Clone(); + triggerStr_ = other.triggerStr_; + targetId_ = other.targetId_; + baskTaskConf_ = other.baskTaskConf_ != null ? other.baskTaskConf_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectHandleTaskConf Clone() { + return new SelectHandleTaskConf(this); + } + + /// Field number for the "TaskId" field. + public const int TaskIdFieldNumber = 1; + private string taskId_ = ""; + /// + /// 任务ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskId { + get { return taskId_; } + set { + taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserId" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// 用户ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserIds" field. + public const int UserIdsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_userIds_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField userIds_ = new pbc::RepeatedField(); + /// + /// 参与者ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField UserIds { + get { return userIds_; } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 4; + private string roomId_ = ""; + /// + /// 房间ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "SelectId" field. + public const int SelectIdFieldNumber = 5; + private string selectId_ = ""; + /// + /// 选项ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SelectId { + get { return selectId_; } + set { + selectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoleId" field. + public const int RoleIdFieldNumber = 6; + private string roleId_ = ""; + /// + /// 角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoleId { + get { return roleId_; } + set { + roleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Triggers" field. + public const int TriggersFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_triggers_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField triggers_ = new pbc::RepeatedField(); + /// + /// 触发器ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Triggers { + get { return triggers_; } + } + + /// Field number for the "TriggerStr" field. + public const int TriggerStrFieldNumber = 8; + private string triggerStr_ = ""; + /// + /// 触发器类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerStr { + get { return triggerStr_; } + set { + triggerStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TargetId" field. + public const int TargetIdFieldNumber = 9; + private string targetId_ = ""; + /// + /// 目标类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetId { + get { return targetId_; } + set { + targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "BaskTaskConf" field. + public const int BaskTaskConfFieldNumber = 10; + private global::BaseTaskConf baskTaskConf_; + /// + /// 参与者ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::BaseTaskConf BaskTaskConf { + get { return baskTaskConf_; } + set { + baskTaskConf_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectHandleTaskConf); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectHandleTaskConf other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TaskId != other.TaskId) return false; + if (UserId != other.UserId) return false; + if(!userIds_.Equals(other.userIds_)) return false; + if (RoomId != other.RoomId) return false; + if (SelectId != other.SelectId) return false; + if (RoleId != other.RoleId) return false; + if(!triggers_.Equals(other.triggers_)) return false; + if (TriggerStr != other.TriggerStr) return false; + if (TargetId != other.TargetId) return false; + if (!object.Equals(BaskTaskConf, other.BaskTaskConf)) 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 (TaskId.Length != 0) hash ^= TaskId.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + hash ^= userIds_.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (SelectId.Length != 0) hash ^= SelectId.GetHashCode(); + if (RoleId.Length != 0) hash ^= RoleId.GetHashCode(); + hash ^= triggers_.GetHashCode(); + if (TriggerStr.Length != 0) hash ^= TriggerStr.GetHashCode(); + if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); + if (baskTaskConf_ != null) hash ^= BaskTaskConf.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 (TaskId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TaskId); + } + if (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + userIds_.WriteTo(output, _repeated_userIds_codec); + if (RoomId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RoomId); + } + if (SelectId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SelectId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RoleId); + } + triggers_.WriteTo(output, _repeated_triggers_codec); + if (TriggerStr.Length != 0) { + output.WriteRawTag(66); + output.WriteString(TriggerStr); + } + if (TargetId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TargetId); + } + if (baskTaskConf_ != null) { + output.WriteRawTag(82); + output.WriteMessage(BaskTaskConf); + } + 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 (TaskId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TaskId); + } + if (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + userIds_.WriteTo(ref output, _repeated_userIds_codec); + if (RoomId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RoomId); + } + if (SelectId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(SelectId); + } + if (RoleId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(RoleId); + } + triggers_.WriteTo(ref output, _repeated_triggers_codec); + if (TriggerStr.Length != 0) { + output.WriteRawTag(66); + output.WriteString(TriggerStr); + } + if (TargetId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(TargetId); + } + if (baskTaskConf_ != null) { + output.WriteRawTag(82); + output.WriteMessage(BaskTaskConf); + } + 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 (TaskId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId); + } + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + size += userIds_.CalculateSize(_repeated_userIds_codec); + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (SelectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectId); + } + if (RoleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId); + } + size += triggers_.CalculateSize(_repeated_triggers_codec); + if (TriggerStr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerStr); + } + if (TargetId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); + } + if (baskTaskConf_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaskTaskConf); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectHandleTaskConf other) { + if (other == null) { + return; + } + if (other.TaskId.Length != 0) { + TaskId = other.TaskId; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + userIds_.Add(other.userIds_); + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.SelectId.Length != 0) { + SelectId = other.SelectId; + } + if (other.RoleId.Length != 0) { + RoleId = other.RoleId; + } + triggers_.Add(other.triggers_); + if (other.TriggerStr.Length != 0) { + TriggerStr = other.TriggerStr; + } + if (other.TargetId.Length != 0) { + TargetId = other.TargetId; + } + if (other.baskTaskConf_ != null) { + if (baskTaskConf_ == null) { + BaskTaskConf = new global::BaseTaskConf(); + } + BaskTaskConf.MergeFrom(other.BaskTaskConf); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TaskId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + case 26: { + userIds_.AddEntriesFrom(input, _repeated_userIds_codec); + break; + } + case 34: { + RoomId = input.ReadString(); + break; + } + case 42: { + SelectId = input.ReadString(); + break; + } + case 50: { + RoleId = input.ReadString(); + break; + } + case 58: { + triggers_.AddEntriesFrom(input, _repeated_triggers_codec); + break; + } + case 66: { + TriggerStr = input.ReadString(); + break; + } + case 74: { + TargetId = input.ReadString(); + break; + } + case 82: { + if (baskTaskConf_ == null) { + BaskTaskConf = new global::BaseTaskConf(); + } + input.ReadMessage(BaskTaskConf); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TaskId = input.ReadString(); + break; + } + case 18: { + UserId = input.ReadString(); + break; + } + case 26: { + userIds_.AddEntriesFrom(ref input, _repeated_userIds_codec); + break; + } + case 34: { + RoomId = input.ReadString(); + break; + } + case 42: { + SelectId = input.ReadString(); + break; + } + case 50: { + RoleId = input.ReadString(); + break; + } + case 58: { + triggers_.AddEntriesFrom(ref input, _repeated_triggers_codec); + break; + } + case 66: { + TriggerStr = input.ReadString(); + break; + } + case 74: { + TargetId = input.ReadString(); + break; + } + case 82: { + if (baskTaskConf_ == null) { + BaskTaskConf = new global::BaseTaskConf(); + } + input.ReadMessage(BaskTaskConf); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class BaseTaskConf : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BaseTaskConf()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::TaskReflection.Descriptor.MessageTypes[9]; } + } + + [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 BaseTaskConf() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BaseTaskConf(BaseTaskConf other) : this() { + id_ = other.id_; + note_ = other.note_; + name_ = other.name_; + type_ = other.type_; + desc_ = other.desc_; + playScript_ = other.playScript_; + trigger_ = other.trigger_; + overseeCond_ = other.overseeCond_; + timeLimit_ = other.timeLimit_; + role_ = other.role_; + selects_ = other.selects_; + targetType_ = other.targetType_; + targets1_ = other.targets1_; + targets2_ = other.targets2_; + targets2Logic_ = other.targets2Logic_; + extraValue_ = other.extraValue_; + nextTask_ = other.nextTask_; + sort_ = other.sort_; + isShow_ = other.isShow_; + exclusive_ = other.exclusive_; + reward_ = other.reward_; + triggerLogic_ = other.triggerLogic_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BaseTaskConf Clone() { + return new BaseTaskConf(this); + } + + /// Field number for the "Id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// 任务ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Note" field. + public const int NoteFieldNumber = 2; + private string note_ = ""; + /// + /// 备注 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// 名称 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Type" field. + public const int TypeFieldNumber = 4; + private string type_ = ""; + /// + /// 任务类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Desc" field. + public const int DescFieldNumber = 5; + private string desc_ = ""; + /// + /// 描述 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "PlayScript" field. + public const int PlayScriptFieldNumber = 6; + private string playScript_ = ""; + /// + /// 执行脚本 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayScript { + get { return playScript_; } + set { + playScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Trigger" field. + public const int TriggerFieldNumber = 7; + private string trigger_ = ""; + /// + /// 触发条件 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Trigger { + get { return trigger_; } + set { + trigger_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "OverseeCond" field. + public const int OverseeCondFieldNumber = 8; + private string overseeCond_ = ""; + /// + /// 监控条件 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OverseeCond { + get { return overseeCond_; } + set { + overseeCond_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TimeLimit" field. + public const int TimeLimitFieldNumber = 9; + private int timeLimit_; + /// + /// 时间限制 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TimeLimit { + get { return timeLimit_; } + set { + timeLimit_ = value; + } + } + + /// Field number for the "Role" field. + public const int RoleFieldNumber = 10; + private string role_ = ""; + /// + /// 角色ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Role { + get { return role_; } + set { + role_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Selects" field. + public const int SelectsFieldNumber = 11; + private string selects_ = ""; + /// + /// 指令ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Selects { + get { return selects_; } + set { + selects_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TargetType" field. + public const int TargetTypeFieldNumber = 12; + private string targetType_ = ""; + /// + /// 目标类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetType { + get { return targetType_; } + set { + targetType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Targets1" field. + public const int Targets1FieldNumber = 13; + private string targets1_ = ""; + /// + /// 目标对象1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Targets1 { + get { return targets1_; } + set { + targets1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Targets2" field. + public const int Targets2FieldNumber = 14; + private string targets2_ = ""; + /// + /// 目标对象2 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Targets2 { + get { return targets2_; } + set { + targets2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Targets2Logic" field. + public const int Targets2LogicFieldNumber = 15; + private string targets2Logic_ = ""; + /// + /// 目标对象2逻辑运算符 1=并且 2=或者 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Targets2Logic { + get { return targets2Logic_; } + set { + targets2Logic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ExtraValue" field. + public const int ExtraValueFieldNumber = 16; + private string extraValue_ = ""; + /// + /// 额外值 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExtraValue { + get { return extraValue_; } + set { + extraValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "NextTask" field. + public const int NextTaskFieldNumber = 17; + private string nextTask_ = ""; + /// + /// 后续任务ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextTask { + get { return nextTask_; } + set { + nextTask_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Sort" field. + public const int SortFieldNumber = 18; + private int sort_; + /// + /// 排序 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Sort { + get { return sort_; } + set { + sort_ = value; + } + } + + /// Field number for the "IsShow" field. + public const int IsShowFieldNumber = 19; + private int isShow_; + /// + /// 是否显示 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IsShow { + get { return isShow_; } + set { + isShow_ = value; + } + } + + /// Field number for the "Exclusive" field. + public const int ExclusiveFieldNumber = 20; + private string exclusive_ = ""; + /// + /// 互斥任务 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Exclusive { + get { return exclusive_; } + set { + exclusive_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Reward" field. + public const int RewardFieldNumber = 21; + private string reward_ = ""; + /// + /// 奖励 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reward { + get { return reward_; } + set { + reward_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TriggerLogic" field. + public const int TriggerLogicFieldNumber = 22; + private string triggerLogic_ = ""; + /// + /// 触发器逻辑 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TriggerLogic { + get { return triggerLogic_; } + set { + triggerLogic_ = 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 BaseTaskConf); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BaseTaskConf other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Note != other.Note) return false; + if (Name != other.Name) return false; + if (Type != other.Type) return false; + if (Desc != other.Desc) return false; + if (PlayScript != other.PlayScript) return false; + if (Trigger != other.Trigger) return false; + if (OverseeCond != other.OverseeCond) return false; + if (TimeLimit != other.TimeLimit) return false; + if (Role != other.Role) return false; + if (Selects != other.Selects) return false; + if (TargetType != other.TargetType) return false; + if (Targets1 != other.Targets1) return false; + if (Targets2 != other.Targets2) return false; + if (Targets2Logic != other.Targets2Logic) return false; + if (ExtraValue != other.ExtraValue) return false; + if (NextTask != other.NextTask) return false; + if (Sort != other.Sort) return false; + if (IsShow != other.IsShow) return false; + if (Exclusive != other.Exclusive) return false; + if (Reward != other.Reward) return false; + if (TriggerLogic != other.TriggerLogic) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (PlayScript.Length != 0) hash ^= PlayScript.GetHashCode(); + if (Trigger.Length != 0) hash ^= Trigger.GetHashCode(); + if (OverseeCond.Length != 0) hash ^= OverseeCond.GetHashCode(); + if (TimeLimit != 0) hash ^= TimeLimit.GetHashCode(); + if (Role.Length != 0) hash ^= Role.GetHashCode(); + if (Selects.Length != 0) hash ^= Selects.GetHashCode(); + if (TargetType.Length != 0) hash ^= TargetType.GetHashCode(); + if (Targets1.Length != 0) hash ^= Targets1.GetHashCode(); + if (Targets2.Length != 0) hash ^= Targets2.GetHashCode(); + if (Targets2Logic.Length != 0) hash ^= Targets2Logic.GetHashCode(); + if (ExtraValue.Length != 0) hash ^= ExtraValue.GetHashCode(); + if (NextTask.Length != 0) hash ^= NextTask.GetHashCode(); + if (Sort != 0) hash ^= Sort.GetHashCode(); + if (IsShow != 0) hash ^= IsShow.GetHashCode(); + if (Exclusive.Length != 0) hash ^= Exclusive.GetHashCode(); + if (Reward.Length != 0) hash ^= Reward.GetHashCode(); + if (TriggerLogic.Length != 0) hash ^= TriggerLogic.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Note.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Note); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (PlayScript.Length != 0) { + output.WriteRawTag(50); + output.WriteString(PlayScript); + } + if (Trigger.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Trigger); + } + if (OverseeCond.Length != 0) { + output.WriteRawTag(66); + output.WriteString(OverseeCond); + } + if (TimeLimit != 0) { + output.WriteRawTag(72); + output.WriteInt32(TimeLimit); + } + if (Role.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Role); + } + if (Selects.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Selects); + } + if (TargetType.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TargetType); + } + if (Targets1.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Targets1); + } + if (Targets2.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Targets2); + } + if (Targets2Logic.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Targets2Logic); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(ExtraValue); + } + if (NextTask.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(NextTask); + } + if (Sort != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Sort); + } + if (IsShow != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(IsShow); + } + if (Exclusive.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Exclusive); + } + if (Reward.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Reward); + } + if (TriggerLogic.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(TriggerLogic); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Note.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Note); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (Desc.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Desc); + } + if (PlayScript.Length != 0) { + output.WriteRawTag(50); + output.WriteString(PlayScript); + } + if (Trigger.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Trigger); + } + if (OverseeCond.Length != 0) { + output.WriteRawTag(66); + output.WriteString(OverseeCond); + } + if (TimeLimit != 0) { + output.WriteRawTag(72); + output.WriteInt32(TimeLimit); + } + if (Role.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Role); + } + if (Selects.Length != 0) { + output.WriteRawTag(90); + output.WriteString(Selects); + } + if (TargetType.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TargetType); + } + if (Targets1.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Targets1); + } + if (Targets2.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Targets2); + } + if (Targets2Logic.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Targets2Logic); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(ExtraValue); + } + if (NextTask.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(NextTask); + } + if (Sort != 0) { + output.WriteRawTag(144, 1); + output.WriteInt32(Sort); + } + if (IsShow != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(IsShow); + } + if (Exclusive.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(Exclusive); + } + if (Reward.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(Reward); + } + if (TriggerLogic.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(TriggerLogic); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (PlayScript.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayScript); + } + if (Trigger.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Trigger); + } + if (OverseeCond.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OverseeCond); + } + if (TimeLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeLimit); + } + if (Role.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Role); + } + if (Selects.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Selects); + } + if (TargetType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetType); + } + if (Targets1.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Targets1); + } + if (Targets2.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Targets2); + } + if (Targets2Logic.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Targets2Logic); + } + if (ExtraValue.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ExtraValue); + } + if (NextTask.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(NextTask); + } + if (Sort != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Sort); + } + if (IsShow != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(IsShow); + } + if (Exclusive.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Exclusive); + } + if (Reward.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Reward); + } + if (TriggerLogic.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(TriggerLogic); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BaseTaskConf other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.PlayScript.Length != 0) { + PlayScript = other.PlayScript; + } + if (other.Trigger.Length != 0) { + Trigger = other.Trigger; + } + if (other.OverseeCond.Length != 0) { + OverseeCond = other.OverseeCond; + } + if (other.TimeLimit != 0) { + TimeLimit = other.TimeLimit; + } + if (other.Role.Length != 0) { + Role = other.Role; + } + if (other.Selects.Length != 0) { + Selects = other.Selects; + } + if (other.TargetType.Length != 0) { + TargetType = other.TargetType; + } + if (other.Targets1.Length != 0) { + Targets1 = other.Targets1; + } + if (other.Targets2.Length != 0) { + Targets2 = other.Targets2; + } + if (other.Targets2Logic.Length != 0) { + Targets2Logic = other.Targets2Logic; + } + if (other.ExtraValue.Length != 0) { + ExtraValue = other.ExtraValue; + } + if (other.NextTask.Length != 0) { + NextTask = other.NextTask; + } + if (other.Sort != 0) { + Sort = other.Sort; + } + if (other.IsShow != 0) { + IsShow = other.IsShow; + } + if (other.Exclusive.Length != 0) { + Exclusive = other.Exclusive; + } + if (other.Reward.Length != 0) { + Reward = other.Reward; + } + if (other.TriggerLogic.Length != 0) { + TriggerLogic = other.TriggerLogic; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Note = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + PlayScript = input.ReadString(); + break; + } + case 58: { + Trigger = input.ReadString(); + break; + } + case 66: { + OverseeCond = input.ReadString(); + break; + } + case 72: { + TimeLimit = input.ReadInt32(); + break; + } + case 82: { + Role = input.ReadString(); + break; + } + case 90: { + Selects = input.ReadString(); + break; + } + case 98: { + TargetType = input.ReadString(); + break; + } + case 106: { + Targets1 = input.ReadString(); + break; + } + case 114: { + Targets2 = input.ReadString(); + break; + } + case 122: { + Targets2Logic = input.ReadString(); + break; + } + case 130: { + ExtraValue = input.ReadString(); + break; + } + case 138: { + NextTask = input.ReadString(); + break; + } + case 144: { + Sort = input.ReadInt32(); + break; + } + case 152: { + IsShow = input.ReadInt32(); + break; + } + case 162: { + Exclusive = input.ReadString(); + break; + } + case 170: { + Reward = input.ReadString(); + break; + } + case 178: { + TriggerLogic = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Note = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + Desc = input.ReadString(); + break; + } + case 50: { + PlayScript = input.ReadString(); + break; + } + case 58: { + Trigger = input.ReadString(); + break; + } + case 66: { + OverseeCond = input.ReadString(); + break; + } + case 72: { + TimeLimit = input.ReadInt32(); + break; + } + case 82: { + Role = input.ReadString(); + break; + } + case 90: { + Selects = input.ReadString(); + break; + } + case 98: { + TargetType = input.ReadString(); + break; + } + case 106: { + Targets1 = input.ReadString(); + break; + } + case 114: { + Targets2 = input.ReadString(); + break; + } + case 122: { + Targets2Logic = input.ReadString(); + break; + } + case 130: { + ExtraValue = input.ReadString(); + break; + } + case 138: { + NextTask = input.ReadString(); + break; + } + case 144: { + Sort = input.ReadInt32(); + break; + } + case 152: { + IsShow = input.ReadInt32(); + break; + } + case 162: { + Exclusive = input.ReadString(); + break; + } + case 170: { + Reward = input.ReadString(); + break; + } + case 178: { + TriggerLogic = input.ReadString(); + break; + } + } + } + } + #endif + +} + #endregion diff --git a/xiaofang/Assets/ProtoBuf/Proto/User.cs b/xiaofang/Assets/ProtoBuf/Proto/User.cs index a818a57a..dc1c0901 100644 --- a/xiaofang/Assets/ProtoBuf/Proto/User.cs +++ b/xiaofang/Assets/ProtoBuf/Proto/User.cs @@ -24,18 +24,18 @@ public static partial class UserReflection { string.Concat( "Cgp1c2VyLnByb3RvIiQKElVzZXJPZmZsaW5lUmVxdWVzdBIOCgZ1c2VySWQY", "ASABKAkiJQoTVXNlck9mZmxpbmVSZXNwb25zZRIOCgZ1c2VySWQYASABKAki", - "IQoPVXNlclJvbGVSZXF1ZXN0Eg4KBnJvbGVJZBgBIAEoBSKCAQoQVXNlclJv", + "IQoPVXNlclJvbGVSZXF1ZXN0Eg4KBnJvbGVJZBgBIAEoBSKRAQoQVXNlclJv", "bGVSZXNwb25zZRIOCgZyb2xlSWQYASABKAUSEAoIcm9sZU5hbWUYAiABKAkS", "EgoKYWN0aW9uTW9kZRgDIAEoBRINCgVncm91cBgEIAEoBRITCgtncm91cExl", - "YWRlchgFIAEoBRIUCgxpc0xlYWRpbmdOUEMYBiABKAVCB1oFLi87cGJiBnBy", - "b3RvMw==")); + "YWRlchgFIAEoBRIUCgxpc0xlYWRpbmdOUEMYBiABKAUSDQoFc3RhdHMYByAB", + "KAlCB1oFLi87cGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UserOfflineRequest), global::UserOfflineRequest.Parser, new[]{ "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::UserOfflineResponse), global::UserOfflineResponse.Parser, new[]{ "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleRequest), global::UserRoleRequest.Parser, new[]{ "RoleId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleResponse), global::UserRoleResponse.Parser, new[]{ "RoleId", "RoleName", "ActionMode", "Group", "GroupLeader", "IsLeadingNPC" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleResponse), global::UserRoleResponse.Parser, new[]{ "RoleId", "RoleName", "ActionMode", "Group", "GroupLeader", "IsLeadingNPC", "Stats" }, null, null, null, null) })); } #endregion @@ -683,6 +683,7 @@ public sealed partial class UserRoleResponse : pb::IMessage group_ = other.group_; groupLeader_ = other.groupLeader_; isLeadingNPC_ = other.isLeadingNPC_; + stats_ = other.stats_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -764,6 +765,18 @@ public sealed partial class UserRoleResponse : pb::IMessage } } + /// Field number for the "stats" field. + public const int StatsFieldNumber = 7; + private string stats_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Stats { + get { return stats_; } + set { + stats_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -785,6 +798,7 @@ public sealed partial class UserRoleResponse : pb::IMessage if (Group != other.Group) return false; if (GroupLeader != other.GroupLeader) return false; if (IsLeadingNPC != other.IsLeadingNPC) return false; + if (Stats != other.Stats) return false; return Equals(_unknownFields, other._unknownFields); } @@ -798,6 +812,7 @@ public sealed partial class UserRoleResponse : pb::IMessage if (Group != 0) hash ^= Group.GetHashCode(); if (GroupLeader != 0) hash ^= GroupLeader.GetHashCode(); if (IsLeadingNPC != 0) hash ^= IsLeadingNPC.GetHashCode(); + if (Stats.Length != 0) hash ^= Stats.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -840,6 +855,10 @@ public sealed partial class UserRoleResponse : pb::IMessage output.WriteRawTag(48); output.WriteInt32(IsLeadingNPC); } + if (Stats.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Stats); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -874,6 +893,10 @@ public sealed partial class UserRoleResponse : pb::IMessage output.WriteRawTag(48); output.WriteInt32(IsLeadingNPC); } + if (Stats.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Stats); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -902,6 +925,9 @@ public sealed partial class UserRoleResponse : pb::IMessage if (IsLeadingNPC != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(IsLeadingNPC); } + if (Stats.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Stats); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -932,6 +958,9 @@ public sealed partial class UserRoleResponse : pb::IMessage if (other.IsLeadingNPC != 0) { IsLeadingNPC = other.IsLeadingNPC; } + if (other.Stats.Length != 0) { + Stats = other.Stats; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -975,6 +1004,10 @@ public sealed partial class UserRoleResponse : pb::IMessage IsLeadingNPC = input.ReadInt32(); break; } + case 58: { + Stats = input.ReadString(); + break; + } } } #endif @@ -1018,6 +1051,10 @@ public sealed partial class UserRoleResponse : pb::IMessage IsLeadingNPC = input.ReadInt32(); break; } + case 58: { + Stats = input.ReadString(); + break; + } } } } diff --git a/xiaofang/Assets/ProtoBuf/Proto/Voice.cs b/xiaofang/Assets/ProtoBuf/Proto/Voice.cs new file mode 100644 index 00000000..d428ed55 --- /dev/null +++ b/xiaofang/Assets/ProtoBuf/Proto/Voice.cs @@ -0,0 +1,807 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: voice.proto +// +#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; +/// Holder for reflection information generated from voice.proto +public static partial class VoiceReflection { + + #region Descriptor + /// File descriptor for voice.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static VoiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgt2b2ljZS5wcm90byJjCgxWb2ljZVJlcXVlc3QSCwoDVWlkGAEgASgNEhMK", + "C0NoYW5uZWxOYW1lGAIgASgJEhMKC0NoYW5uZWxUeXBlGAUgASgJEg4KBnJv", + "b21JZBgIIAEoCRIMCgRyb2xlGAYgASgJIncKDVZvaWNlUmVzcG9uc2USCwoD", + "VWlkGAEgASgNEhMKC0NoYW5uZWxOYW1lGAIgASgJEhEKCUNoYW5uZWxJZBgD", + "IAEoCRINCgVUb2tlbhgEIAEoCRITCgtDaGFubmVsVHlwZRgFIAEoCRINCgVh", + "cHBJZBgHIAEoCUIHWgUuLztwYmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::VoiceRequest), global::VoiceRequest.Parser, new[]{ "Uid", "ChannelName", "ChannelType", "RoomId", "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::VoiceResponse), global::VoiceResponse.Parser, new[]{ "Uid", "ChannelName", "ChannelId", "Token", "ChannelType", "AppId" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class VoiceRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VoiceRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::VoiceReflection.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 VoiceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoiceRequest(VoiceRequest other) : this() { + uid_ = other.uid_; + channelName_ = other.channelName_; + channelType_ = other.channelType_; + roomId_ = other.roomId_; + role_ = other.role_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoiceRequest Clone() { + return new VoiceRequest(this); + } + + /// Field number for the "Uid" field. + public const int UidFieldNumber = 1; + private uint uid_; + /// + /// 用户id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "ChannelName" field. + public const int ChannelNameFieldNumber = 2; + private string channelName_ = ""; + /// + /// 频道名称 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChannelName { + get { return channelName_; } + set { + channelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ChannelType" field. + public const int ChannelTypeFieldNumber = 5; + private string channelType_ = ""; + /// + /// 频道类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChannelType { + get { return channelType_; } + set { + channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "roomId" field. + public const int RoomIdFieldNumber = 8; + private string roomId_ = ""; + /// + /// 游戏房间id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 6; + private string role_ = ""; + /// + /// 需要通知的角色 例如1,2,3,4 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Role { + get { return role_; } + set { + role_ = 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 VoiceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VoiceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + if (ChannelName != other.ChannelName) return false; + if (ChannelType != other.ChannelType) return false; + if (RoomId != other.RoomId) return false; + if (Role != other.Role) 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 (Uid != 0) hash ^= Uid.GetHashCode(); + if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode(); + if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (Role.Length != 0) hash ^= Role.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 (Uid != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Uid); + } + if (ChannelName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChannelName); + } + if (ChannelType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ChannelType); + } + if (Role.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Role); + } + if (RoomId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(RoomId); + } + 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 (Uid != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Uid); + } + if (ChannelName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChannelName); + } + if (ChannelType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ChannelType); + } + if (Role.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Role); + } + if (RoomId.Length != 0) { + output.WriteRawTag(66); + output.WriteString(RoomId); + } + 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 (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (ChannelName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName); + } + if (ChannelType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType); + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (Role.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Role); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VoiceRequest other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.ChannelName.Length != 0) { + ChannelName = other.ChannelName; + } + if (other.ChannelType.Length != 0) { + ChannelType = other.ChannelType; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.Role.Length != 0) { + Role = other.Role; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Uid = input.ReadUInt32(); + break; + } + case 18: { + ChannelName = input.ReadString(); + break; + } + case 42: { + ChannelType = input.ReadString(); + break; + } + case 50: { + Role = input.ReadString(); + break; + } + case 66: { + RoomId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Uid = input.ReadUInt32(); + break; + } + case 18: { + ChannelName = input.ReadString(); + break; + } + case 42: { + ChannelType = input.ReadString(); + break; + } + case 50: { + Role = input.ReadString(); + break; + } + case 66: { + RoomId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class VoiceResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VoiceResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::VoiceReflection.Descriptor.MessageTypes[1]; } + } + + [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 VoiceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoiceResponse(VoiceResponse other) : this() { + uid_ = other.uid_; + channelName_ = other.channelName_; + channelId_ = other.channelId_; + token_ = other.token_; + channelType_ = other.channelType_; + appId_ = other.appId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VoiceResponse Clone() { + return new VoiceResponse(this); + } + + /// Field number for the "Uid" field. + public const int UidFieldNumber = 1; + private uint uid_; + /// + /// 用户id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Uid { + get { return uid_; } + set { + uid_ = value; + } + } + + /// Field number for the "ChannelName" field. + public const int ChannelNameFieldNumber = 2; + private string channelName_ = ""; + /// + /// 频道名称 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChannelName { + get { return channelName_; } + set { + channelName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ChannelId" field. + public const int ChannelIdFieldNumber = 3; + private string channelId_ = ""; + /// + /// 频道id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChannelId { + get { return channelId_; } + set { + channelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Token" field. + public const int TokenFieldNumber = 4; + private string token_ = ""; + /// + /// 语音token + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ChannelType" field. + public const int ChannelTypeFieldNumber = 5; + private string channelType_ = ""; + /// + /// 频道类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ChannelType { + get { return channelType_; } + set { + channelType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "appId" field. + public const int AppIdFieldNumber = 7; + private string appId_ = ""; + /// + /// 需要通知的角色 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppId { + get { return appId_; } + set { + appId_ = 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 VoiceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VoiceResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Uid != other.Uid) return false; + if (ChannelName != other.ChannelName) return false; + if (ChannelId != other.ChannelId) return false; + if (Token != other.Token) return false; + if (ChannelType != other.ChannelType) return false; + if (AppId != other.AppId) 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 (Uid != 0) hash ^= Uid.GetHashCode(); + if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode(); + if (ChannelId.Length != 0) hash ^= ChannelId.GetHashCode(); + if (Token.Length != 0) hash ^= Token.GetHashCode(); + if (ChannelType.Length != 0) hash ^= ChannelType.GetHashCode(); + if (AppId.Length != 0) hash ^= AppId.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 (Uid != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Uid); + } + if (ChannelName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChannelName); + } + if (ChannelId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ChannelId); + } + if (Token.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Token); + } + if (ChannelType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ChannelType); + } + if (AppId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AppId); + } + 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 (Uid != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Uid); + } + if (ChannelName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChannelName); + } + if (ChannelId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ChannelId); + } + if (Token.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Token); + } + if (ChannelType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ChannelType); + } + if (AppId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(AppId); + } + 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 (Uid != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uid); + } + if (ChannelName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelName); + } + if (ChannelId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelId); + } + if (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (ChannelType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelType); + } + if (AppId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VoiceResponse other) { + if (other == null) { + return; + } + if (other.Uid != 0) { + Uid = other.Uid; + } + if (other.ChannelName.Length != 0) { + ChannelName = other.ChannelName; + } + if (other.ChannelId.Length != 0) { + ChannelId = other.ChannelId; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + if (other.ChannelType.Length != 0) { + ChannelType = other.ChannelType; + } + if (other.AppId.Length != 0) { + AppId = other.AppId; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Uid = input.ReadUInt32(); + break; + } + case 18: { + ChannelName = input.ReadString(); + break; + } + case 26: { + ChannelId = input.ReadString(); + break; + } + case 34: { + Token = input.ReadString(); + break; + } + case 42: { + ChannelType = input.ReadString(); + break; + } + case 58: { + AppId = input.ReadString(); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Uid = input.ReadUInt32(); + break; + } + case 18: { + ChannelName = input.ReadString(); + break; + } + case 26: { + ChannelId = input.ReadString(); + break; + } + case 34: { + Token = input.ReadString(); + break; + } + case 42: { + ChannelType = input.ReadString(); + break; + } + case 58: { + AppId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +#endregion + + +#endregion Designer generated code diff --git a/xiaofang/Assets/ProtoBuf/Proto/Voice.cs.meta b/xiaofang/Assets/ProtoBuf/Proto/Voice.cs.meta new file mode 100644 index 00000000..27b94df0 --- /dev/null +++ b/xiaofang/Assets/ProtoBuf/Proto/Voice.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cd987ba33a5ad7d4887f53fd0957709a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: