Chat.cs 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: pb/chat.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Chat {
  12. /// <summary>Holder for reflection information generated from pb/chat.proto</summary>
  13. public static partial class ChatReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for pb/chat.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static ChatReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cg1wYi9jaGF0LnByb3RvEgRDaGF0IjkKDENTX0NoYXRMb2dpbhIOCgZab25l",
  24. "aWQYASABKAUSCwoDVWlkGAIgASgJEgwKBE5hbWUYAyABKAkiVwoOQ1NfQ2hh",
  25. "dFNlbmRNc2cSJAoJVG9DaGFubmVsGAEgASgOMhEuQ2hhdC5DaGF0Q2hhbm5l",
  26. "bBILCgNNc2cYAiABKAkSEgoKVG9OaWNrTmFtZRgDIAEoCSKCAQoMU0NfQ2hh",
  27. "dExvZ2luEioKBGNvZGUYASABKA4yHC5DaGF0LlNDX0NoYXRMb2dpbi5FcnJv",
  28. "ckNvZGUiRgoJRXJyb3JDb2RlEgYKAk9LEAASEAoMQWNjSURJbnZhbGlkEAES",
  29. "DwoLTG9naW5SZXBlYXQQAhIOCgpJbm5lckVycm9yEAMiawoNU0NfQ2hhdE5l",
  30. "d01zZxImCgtGcm9tQ2hhbm5lbBgBIAEoDjIRLkNoYXQuQ2hhdENoYW5uZWwS",
  31. "CwoDTXNnGAIgASgJEhIKClNlbmRlck5hbWUYAyABKAkSEQoJU2VuZGVyVWlk",
  32. "GAQgASgJKjsKC0NoYXRDaGFubmVsEgoKBlN5c3RlbRAAEgkKBVdvcmxkEAES",
  33. "CQoFR3VpbGQQAhIKCgZTaW5nbGUQA2IGcHJvdG8z"));
  34. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  35. new pbr::FileDescriptor[] { },
  36. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Chat.ChatChannel), }, null, new pbr::GeneratedClrTypeInfo[] {
  37. new pbr::GeneratedClrTypeInfo(typeof(global::Chat.CS_ChatLogin), global::Chat.CS_ChatLogin.Parser, new[]{ "Zoneid", "Uid", "Name" }, null, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::Chat.CS_ChatSendMsg), global::Chat.CS_ChatSendMsg.Parser, new[]{ "ToChannel", "Msg", "ToNickName" }, null, null, null, null),
  39. new pbr::GeneratedClrTypeInfo(typeof(global::Chat.SC_ChatLogin), global::Chat.SC_ChatLogin.Parser, new[]{ "Code" }, null, new[]{ typeof(global::Chat.SC_ChatLogin.Types.ErrorCode) }, null, null),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::Chat.SC_ChatNewMsg), global::Chat.SC_ChatNewMsg.Parser, new[]{ "FromChannel", "Msg", "SenderName", "SenderUid" }, null, null, null, null)
  41. }));
  42. }
  43. #endregion
  44. }
  45. #region Enums
  46. /// <summary>
  47. /// 频道
  48. /// </summary>
  49. public enum ChatChannel {
  50. /// <summary>
  51. /// 系统频道
  52. /// </summary>
  53. [pbr::OriginalName("System")] System = 0,
  54. /// <summary>
  55. /// 世界频道
  56. /// </summary>
  57. [pbr::OriginalName("World")] World = 1,
  58. /// <summary>
  59. /// 公会频道
  60. /// </summary>
  61. [pbr::OriginalName("Guild")] Guild = 2,
  62. /// <summary>
  63. /// 密语(单独发送给某人)
  64. /// </summary>
  65. [pbr::OriginalName("Single")] Single = 3,
  66. }
  67. #endregion
  68. #region Messages
  69. /// <summary>
  70. /// 聊天, 登录
  71. /// </summary>
  72. public sealed partial class CS_ChatLogin : pb::IMessage<CS_ChatLogin>
  73. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  74. , pb::IBufferMessage
  75. #endif
  76. {
  77. private static readonly pb::MessageParser<CS_ChatLogin> _parser = new pb::MessageParser<CS_ChatLogin>(() => new CS_ChatLogin());
  78. private pb::UnknownFieldSet _unknownFields;
  79. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  80. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  81. public static pb::MessageParser<CS_ChatLogin> Parser { get { return _parser; } }
  82. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  83. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  84. public static pbr::MessageDescriptor Descriptor {
  85. get { return global::Chat.ChatReflection.Descriptor.MessageTypes[0]; }
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  89. pbr::MessageDescriptor pb::IMessage.Descriptor {
  90. get { return Descriptor; }
  91. }
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  93. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  94. public CS_ChatLogin() {
  95. OnConstruction();
  96. }
  97. partial void OnConstruction();
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  99. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  100. public CS_ChatLogin(CS_ChatLogin other) : this() {
  101. zoneid_ = other.zoneid_;
  102. uid_ = other.uid_;
  103. name_ = other.name_;
  104. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  105. }
  106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  107. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  108. public CS_ChatLogin Clone() {
  109. return new CS_ChatLogin(this);
  110. }
  111. /// <summary>Field number for the "Zoneid" field.</summary>
  112. public const int ZoneidFieldNumber = 1;
  113. private int zoneid_;
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  115. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  116. public int Zoneid {
  117. get { return zoneid_; }
  118. set {
  119. zoneid_ = value;
  120. }
  121. }
  122. /// <summary>Field number for the "Uid" field.</summary>
  123. public const int UidFieldNumber = 2;
  124. private string uid_ = "";
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  126. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  127. public string Uid {
  128. get { return uid_; }
  129. set {
  130. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  131. }
  132. }
  133. /// <summary>Field number for the "Name" field.</summary>
  134. public const int NameFieldNumber = 3;
  135. private string name_ = "";
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  138. public string Name {
  139. get { return name_; }
  140. set {
  141. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  145. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  146. public override bool Equals(object other) {
  147. return Equals(other as CS_ChatLogin);
  148. }
  149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  150. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  151. public bool Equals(CS_ChatLogin other) {
  152. if (ReferenceEquals(other, null)) {
  153. return false;
  154. }
  155. if (ReferenceEquals(other, this)) {
  156. return true;
  157. }
  158. if (Zoneid != other.Zoneid) return false;
  159. if (Uid != other.Uid) return false;
  160. if (Name != other.Name) return false;
  161. return Equals(_unknownFields, other._unknownFields);
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  164. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  165. public override int GetHashCode() {
  166. int hash = 1;
  167. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  168. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  169. if (Name.Length != 0) hash ^= Name.GetHashCode();
  170. if (_unknownFields != null) {
  171. hash ^= _unknownFields.GetHashCode();
  172. }
  173. return hash;
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  177. public override string ToString() {
  178. return pb::JsonFormatter.ToDiagnosticString(this);
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  181. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  182. public void WriteTo(pb::CodedOutputStream output) {
  183. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  184. output.WriteRawMessage(this);
  185. #else
  186. if (Zoneid != 0) {
  187. output.WriteRawTag(8);
  188. output.WriteInt32(Zoneid);
  189. }
  190. if (Uid.Length != 0) {
  191. output.WriteRawTag(18);
  192. output.WriteString(Uid);
  193. }
  194. if (Name.Length != 0) {
  195. output.WriteRawTag(26);
  196. output.WriteString(Name);
  197. }
  198. if (_unknownFields != null) {
  199. _unknownFields.WriteTo(output);
  200. }
  201. #endif
  202. }
  203. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  205. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  206. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  207. if (Zoneid != 0) {
  208. output.WriteRawTag(8);
  209. output.WriteInt32(Zoneid);
  210. }
  211. if (Uid.Length != 0) {
  212. output.WriteRawTag(18);
  213. output.WriteString(Uid);
  214. }
  215. if (Name.Length != 0) {
  216. output.WriteRawTag(26);
  217. output.WriteString(Name);
  218. }
  219. if (_unknownFields != null) {
  220. _unknownFields.WriteTo(ref output);
  221. }
  222. }
  223. #endif
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  225. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  226. public int CalculateSize() {
  227. int size = 0;
  228. if (Zoneid != 0) {
  229. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  230. }
  231. if (Uid.Length != 0) {
  232. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  233. }
  234. if (Name.Length != 0) {
  235. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  236. }
  237. if (_unknownFields != null) {
  238. size += _unknownFields.CalculateSize();
  239. }
  240. return size;
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  243. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  244. public void MergeFrom(CS_ChatLogin other) {
  245. if (other == null) {
  246. return;
  247. }
  248. if (other.Zoneid != 0) {
  249. Zoneid = other.Zoneid;
  250. }
  251. if (other.Uid.Length != 0) {
  252. Uid = other.Uid;
  253. }
  254. if (other.Name.Length != 0) {
  255. Name = other.Name;
  256. }
  257. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  260. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  261. public void MergeFrom(pb::CodedInputStream input) {
  262. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  263. input.ReadRawMessage(this);
  264. #else
  265. uint tag;
  266. while ((tag = input.ReadTag()) != 0) {
  267. switch(tag) {
  268. default:
  269. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  270. break;
  271. case 8: {
  272. Zoneid = input.ReadInt32();
  273. break;
  274. }
  275. case 18: {
  276. Uid = input.ReadString();
  277. break;
  278. }
  279. case 26: {
  280. Name = input.ReadString();
  281. break;
  282. }
  283. }
  284. }
  285. #endif
  286. }
  287. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  289. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  290. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  291. uint tag;
  292. while ((tag = input.ReadTag()) != 0) {
  293. switch(tag) {
  294. default:
  295. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  296. break;
  297. case 8: {
  298. Zoneid = input.ReadInt32();
  299. break;
  300. }
  301. case 18: {
  302. Uid = input.ReadString();
  303. break;
  304. }
  305. case 26: {
  306. Name = input.ReadString();
  307. break;
  308. }
  309. }
  310. }
  311. }
  312. #endif
  313. }
  314. /// <summary>
  315. /// 聊天, 发送消息
  316. /// </summary>
  317. public sealed partial class CS_ChatSendMsg : pb::IMessage<CS_ChatSendMsg>
  318. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  319. , pb::IBufferMessage
  320. #endif
  321. {
  322. private static readonly pb::MessageParser<CS_ChatSendMsg> _parser = new pb::MessageParser<CS_ChatSendMsg>(() => new CS_ChatSendMsg());
  323. private pb::UnknownFieldSet _unknownFields;
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  325. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  326. public static pb::MessageParser<CS_ChatSendMsg> Parser { get { return _parser; } }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  328. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  329. public static pbr::MessageDescriptor Descriptor {
  330. get { return global::Chat.ChatReflection.Descriptor.MessageTypes[1]; }
  331. }
  332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  333. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  334. pbr::MessageDescriptor pb::IMessage.Descriptor {
  335. get { return Descriptor; }
  336. }
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  338. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  339. public CS_ChatSendMsg() {
  340. OnConstruction();
  341. }
  342. partial void OnConstruction();
  343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  344. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  345. public CS_ChatSendMsg(CS_ChatSendMsg other) : this() {
  346. toChannel_ = other.toChannel_;
  347. msg_ = other.msg_;
  348. toNickName_ = other.toNickName_;
  349. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  353. public CS_ChatSendMsg Clone() {
  354. return new CS_ChatSendMsg(this);
  355. }
  356. /// <summary>Field number for the "ToChannel" field.</summary>
  357. public const int ToChannelFieldNumber = 1;
  358. private global::Chat.ChatChannel toChannel_ = global::Chat.ChatChannel.System;
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  360. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  361. public global::Chat.ChatChannel ToChannel {
  362. get { return toChannel_; }
  363. set {
  364. toChannel_ = value;
  365. }
  366. }
  367. /// <summary>Field number for the "Msg" field.</summary>
  368. public const int MsgFieldNumber = 2;
  369. private string msg_ = "";
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  371. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  372. public string Msg {
  373. get { return msg_; }
  374. set {
  375. msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  376. }
  377. }
  378. /// <summary>Field number for the "ToNickName" field.</summary>
  379. public const int ToNickNameFieldNumber = 3;
  380. private string toNickName_ = "";
  381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  382. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  383. public string ToNickName {
  384. get { return toNickName_; }
  385. set {
  386. toNickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  387. }
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  390. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  391. public override bool Equals(object other) {
  392. return Equals(other as CS_ChatSendMsg);
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  395. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  396. public bool Equals(CS_ChatSendMsg other) {
  397. if (ReferenceEquals(other, null)) {
  398. return false;
  399. }
  400. if (ReferenceEquals(other, this)) {
  401. return true;
  402. }
  403. if (ToChannel != other.ToChannel) return false;
  404. if (Msg != other.Msg) return false;
  405. if (ToNickName != other.ToNickName) return false;
  406. return Equals(_unknownFields, other._unknownFields);
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  409. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  410. public override int GetHashCode() {
  411. int hash = 1;
  412. if (ToChannel != global::Chat.ChatChannel.System) hash ^= ToChannel.GetHashCode();
  413. if (Msg.Length != 0) hash ^= Msg.GetHashCode();
  414. if (ToNickName.Length != 0) hash ^= ToNickName.GetHashCode();
  415. if (_unknownFields != null) {
  416. hash ^= _unknownFields.GetHashCode();
  417. }
  418. return hash;
  419. }
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  421. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  422. public override string ToString() {
  423. return pb::JsonFormatter.ToDiagnosticString(this);
  424. }
  425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  426. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  427. public void WriteTo(pb::CodedOutputStream output) {
  428. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  429. output.WriteRawMessage(this);
  430. #else
  431. if (ToChannel != global::Chat.ChatChannel.System) {
  432. output.WriteRawTag(8);
  433. output.WriteEnum((int) ToChannel);
  434. }
  435. if (Msg.Length != 0) {
  436. output.WriteRawTag(18);
  437. output.WriteString(Msg);
  438. }
  439. if (ToNickName.Length != 0) {
  440. output.WriteRawTag(26);
  441. output.WriteString(ToNickName);
  442. }
  443. if (_unknownFields != null) {
  444. _unknownFields.WriteTo(output);
  445. }
  446. #endif
  447. }
  448. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  450. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  451. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  452. if (ToChannel != global::Chat.ChatChannel.System) {
  453. output.WriteRawTag(8);
  454. output.WriteEnum((int) ToChannel);
  455. }
  456. if (Msg.Length != 0) {
  457. output.WriteRawTag(18);
  458. output.WriteString(Msg);
  459. }
  460. if (ToNickName.Length != 0) {
  461. output.WriteRawTag(26);
  462. output.WriteString(ToNickName);
  463. }
  464. if (_unknownFields != null) {
  465. _unknownFields.WriteTo(ref output);
  466. }
  467. }
  468. #endif
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  470. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  471. public int CalculateSize() {
  472. int size = 0;
  473. if (ToChannel != global::Chat.ChatChannel.System) {
  474. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ToChannel);
  475. }
  476. if (Msg.Length != 0) {
  477. size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
  478. }
  479. if (ToNickName.Length != 0) {
  480. size += 1 + pb::CodedOutputStream.ComputeStringSize(ToNickName);
  481. }
  482. if (_unknownFields != null) {
  483. size += _unknownFields.CalculateSize();
  484. }
  485. return size;
  486. }
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  488. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  489. public void MergeFrom(CS_ChatSendMsg other) {
  490. if (other == null) {
  491. return;
  492. }
  493. if (other.ToChannel != global::Chat.ChatChannel.System) {
  494. ToChannel = other.ToChannel;
  495. }
  496. if (other.Msg.Length != 0) {
  497. Msg = other.Msg;
  498. }
  499. if (other.ToNickName.Length != 0) {
  500. ToNickName = other.ToNickName;
  501. }
  502. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  503. }
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  505. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  506. public void MergeFrom(pb::CodedInputStream input) {
  507. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  508. input.ReadRawMessage(this);
  509. #else
  510. uint tag;
  511. while ((tag = input.ReadTag()) != 0) {
  512. switch(tag) {
  513. default:
  514. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  515. break;
  516. case 8: {
  517. ToChannel = (global::Chat.ChatChannel) input.ReadEnum();
  518. break;
  519. }
  520. case 18: {
  521. Msg = input.ReadString();
  522. break;
  523. }
  524. case 26: {
  525. ToNickName = input.ReadString();
  526. break;
  527. }
  528. }
  529. }
  530. #endif
  531. }
  532. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  534. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  535. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  536. uint tag;
  537. while ((tag = input.ReadTag()) != 0) {
  538. switch(tag) {
  539. default:
  540. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  541. break;
  542. case 8: {
  543. ToChannel = (global::Chat.ChatChannel) input.ReadEnum();
  544. break;
  545. }
  546. case 18: {
  547. Msg = input.ReadString();
  548. break;
  549. }
  550. case 26: {
  551. ToNickName = input.ReadString();
  552. break;
  553. }
  554. }
  555. }
  556. }
  557. #endif
  558. }
  559. /// <summary>
  560. /// 聊天, 初始化返回值
  561. /// </summary>
  562. public sealed partial class SC_ChatLogin : pb::IMessage<SC_ChatLogin>
  563. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  564. , pb::IBufferMessage
  565. #endif
  566. {
  567. private static readonly pb::MessageParser<SC_ChatLogin> _parser = new pb::MessageParser<SC_ChatLogin>(() => new SC_ChatLogin());
  568. private pb::UnknownFieldSet _unknownFields;
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  570. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  571. public static pb::MessageParser<SC_ChatLogin> Parser { get { return _parser; } }
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  573. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  574. public static pbr::MessageDescriptor Descriptor {
  575. get { return global::Chat.ChatReflection.Descriptor.MessageTypes[2]; }
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  578. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  579. pbr::MessageDescriptor pb::IMessage.Descriptor {
  580. get { return Descriptor; }
  581. }
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  583. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  584. public SC_ChatLogin() {
  585. OnConstruction();
  586. }
  587. partial void OnConstruction();
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  589. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  590. public SC_ChatLogin(SC_ChatLogin other) : this() {
  591. code_ = other.code_;
  592. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  593. }
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  595. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  596. public SC_ChatLogin Clone() {
  597. return new SC_ChatLogin(this);
  598. }
  599. /// <summary>Field number for the "code" field.</summary>
  600. public const int CodeFieldNumber = 1;
  601. private global::Chat.SC_ChatLogin.Types.ErrorCode code_ = global::Chat.SC_ChatLogin.Types.ErrorCode.Ok;
  602. /// <summary>
  603. /// 错误码
  604. /// </summary>
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  606. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  607. public global::Chat.SC_ChatLogin.Types.ErrorCode Code {
  608. get { return code_; }
  609. set {
  610. code_ = value;
  611. }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  614. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  615. public override bool Equals(object other) {
  616. return Equals(other as SC_ChatLogin);
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  619. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  620. public bool Equals(SC_ChatLogin other) {
  621. if (ReferenceEquals(other, null)) {
  622. return false;
  623. }
  624. if (ReferenceEquals(other, this)) {
  625. return true;
  626. }
  627. if (Code != other.Code) return false;
  628. return Equals(_unknownFields, other._unknownFields);
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  631. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  632. public override int GetHashCode() {
  633. int hash = 1;
  634. if (Code != global::Chat.SC_ChatLogin.Types.ErrorCode.Ok) hash ^= Code.GetHashCode();
  635. if (_unknownFields != null) {
  636. hash ^= _unknownFields.GetHashCode();
  637. }
  638. return hash;
  639. }
  640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  641. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  642. public override string ToString() {
  643. return pb::JsonFormatter.ToDiagnosticString(this);
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  646. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  647. public void WriteTo(pb::CodedOutputStream output) {
  648. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  649. output.WriteRawMessage(this);
  650. #else
  651. if (Code != global::Chat.SC_ChatLogin.Types.ErrorCode.Ok) {
  652. output.WriteRawTag(8);
  653. output.WriteEnum((int) Code);
  654. }
  655. if (_unknownFields != null) {
  656. _unknownFields.WriteTo(output);
  657. }
  658. #endif
  659. }
  660. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  662. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  663. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  664. if (Code != global::Chat.SC_ChatLogin.Types.ErrorCode.Ok) {
  665. output.WriteRawTag(8);
  666. output.WriteEnum((int) Code);
  667. }
  668. if (_unknownFields != null) {
  669. _unknownFields.WriteTo(ref output);
  670. }
  671. }
  672. #endif
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  674. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  675. public int CalculateSize() {
  676. int size = 0;
  677. if (Code != global::Chat.SC_ChatLogin.Types.ErrorCode.Ok) {
  678. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code);
  679. }
  680. if (_unknownFields != null) {
  681. size += _unknownFields.CalculateSize();
  682. }
  683. return size;
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  686. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  687. public void MergeFrom(SC_ChatLogin other) {
  688. if (other == null) {
  689. return;
  690. }
  691. if (other.Code != global::Chat.SC_ChatLogin.Types.ErrorCode.Ok) {
  692. Code = other.Code;
  693. }
  694. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  695. }
  696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  697. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  698. public void MergeFrom(pb::CodedInputStream input) {
  699. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  700. input.ReadRawMessage(this);
  701. #else
  702. uint tag;
  703. while ((tag = input.ReadTag()) != 0) {
  704. switch(tag) {
  705. default:
  706. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  707. break;
  708. case 8: {
  709. Code = (global::Chat.SC_ChatLogin.Types.ErrorCode) input.ReadEnum();
  710. break;
  711. }
  712. }
  713. }
  714. #endif
  715. }
  716. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  718. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  719. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  720. uint tag;
  721. while ((tag = input.ReadTag()) != 0) {
  722. switch(tag) {
  723. default:
  724. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  725. break;
  726. case 8: {
  727. Code = (global::Chat.SC_ChatLogin.Types.ErrorCode) input.ReadEnum();
  728. break;
  729. }
  730. }
  731. }
  732. }
  733. #endif
  734. #region Nested types
  735. /// <summary>Container for nested types declared in the SC_ChatLogin message type.</summary>
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  737. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  738. public static partial class Types {
  739. /// <summary>
  740. /// 错误码
  741. /// </summary>
  742. public enum ErrorCode {
  743. /// <summary>
  744. /// 成功
  745. /// </summary>
  746. [pbr::OriginalName("OK")] Ok = 0,
  747. /// <summary>
  748. /// 未知的UID
  749. /// </summary>
  750. [pbr::OriginalName("AccIDInvalid")] AccIdinvalid = 1,
  751. /// <summary>
  752. /// 重复登入
  753. /// </summary>
  754. [pbr::OriginalName("LoginRepeat")] LoginRepeat = 2,
  755. /// <summary>
  756. /// 内部错误
  757. /// </summary>
  758. [pbr::OriginalName("InnerError")] InnerError = 3,
  759. }
  760. }
  761. #endregion
  762. }
  763. /// <summary>
  764. /// 聊天, 新的消息
  765. /// </summary>
  766. public sealed partial class SC_ChatNewMsg : pb::IMessage<SC_ChatNewMsg>
  767. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  768. , pb::IBufferMessage
  769. #endif
  770. {
  771. private static readonly pb::MessageParser<SC_ChatNewMsg> _parser = new pb::MessageParser<SC_ChatNewMsg>(() => new SC_ChatNewMsg());
  772. private pb::UnknownFieldSet _unknownFields;
  773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  774. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  775. public static pb::MessageParser<SC_ChatNewMsg> Parser { get { return _parser; } }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  777. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  778. public static pbr::MessageDescriptor Descriptor {
  779. get { return global::Chat.ChatReflection.Descriptor.MessageTypes[3]; }
  780. }
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  782. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  783. pbr::MessageDescriptor pb::IMessage.Descriptor {
  784. get { return Descriptor; }
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  787. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  788. public SC_ChatNewMsg() {
  789. OnConstruction();
  790. }
  791. partial void OnConstruction();
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  793. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  794. public SC_ChatNewMsg(SC_ChatNewMsg other) : this() {
  795. fromChannel_ = other.fromChannel_;
  796. msg_ = other.msg_;
  797. senderName_ = other.senderName_;
  798. senderUid_ = other.senderUid_;
  799. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  800. }
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  802. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  803. public SC_ChatNewMsg Clone() {
  804. return new SC_ChatNewMsg(this);
  805. }
  806. /// <summary>Field number for the "FromChannel" field.</summary>
  807. public const int FromChannelFieldNumber = 1;
  808. private global::Chat.ChatChannel fromChannel_ = global::Chat.ChatChannel.System;
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  810. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  811. public global::Chat.ChatChannel FromChannel {
  812. get { return fromChannel_; }
  813. set {
  814. fromChannel_ = value;
  815. }
  816. }
  817. /// <summary>Field number for the "Msg" field.</summary>
  818. public const int MsgFieldNumber = 2;
  819. private string msg_ = "";
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  821. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  822. public string Msg {
  823. get { return msg_; }
  824. set {
  825. msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  826. }
  827. }
  828. /// <summary>Field number for the "SenderName" field.</summary>
  829. public const int SenderNameFieldNumber = 3;
  830. private string senderName_ = "";
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  832. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  833. public string SenderName {
  834. get { return senderName_; }
  835. set {
  836. senderName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  837. }
  838. }
  839. /// <summary>Field number for the "SenderUid" field.</summary>
  840. public const int SenderUidFieldNumber = 4;
  841. private string senderUid_ = "";
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  843. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  844. public string SenderUid {
  845. get { return senderUid_; }
  846. set {
  847. senderUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  848. }
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  851. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  852. public override bool Equals(object other) {
  853. return Equals(other as SC_ChatNewMsg);
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  856. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  857. public bool Equals(SC_ChatNewMsg other) {
  858. if (ReferenceEquals(other, null)) {
  859. return false;
  860. }
  861. if (ReferenceEquals(other, this)) {
  862. return true;
  863. }
  864. if (FromChannel != other.FromChannel) return false;
  865. if (Msg != other.Msg) return false;
  866. if (SenderName != other.SenderName) return false;
  867. if (SenderUid != other.SenderUid) return false;
  868. return Equals(_unknownFields, other._unknownFields);
  869. }
  870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  871. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  872. public override int GetHashCode() {
  873. int hash = 1;
  874. if (FromChannel != global::Chat.ChatChannel.System) hash ^= FromChannel.GetHashCode();
  875. if (Msg.Length != 0) hash ^= Msg.GetHashCode();
  876. if (SenderName.Length != 0) hash ^= SenderName.GetHashCode();
  877. if (SenderUid.Length != 0) hash ^= SenderUid.GetHashCode();
  878. if (_unknownFields != null) {
  879. hash ^= _unknownFields.GetHashCode();
  880. }
  881. return hash;
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  884. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  885. public override string ToString() {
  886. return pb::JsonFormatter.ToDiagnosticString(this);
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  889. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  890. public void WriteTo(pb::CodedOutputStream output) {
  891. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  892. output.WriteRawMessage(this);
  893. #else
  894. if (FromChannel != global::Chat.ChatChannel.System) {
  895. output.WriteRawTag(8);
  896. output.WriteEnum((int) FromChannel);
  897. }
  898. if (Msg.Length != 0) {
  899. output.WriteRawTag(18);
  900. output.WriteString(Msg);
  901. }
  902. if (SenderName.Length != 0) {
  903. output.WriteRawTag(26);
  904. output.WriteString(SenderName);
  905. }
  906. if (SenderUid.Length != 0) {
  907. output.WriteRawTag(34);
  908. output.WriteString(SenderUid);
  909. }
  910. if (_unknownFields != null) {
  911. _unknownFields.WriteTo(output);
  912. }
  913. #endif
  914. }
  915. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  917. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  918. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  919. if (FromChannel != global::Chat.ChatChannel.System) {
  920. output.WriteRawTag(8);
  921. output.WriteEnum((int) FromChannel);
  922. }
  923. if (Msg.Length != 0) {
  924. output.WriteRawTag(18);
  925. output.WriteString(Msg);
  926. }
  927. if (SenderName.Length != 0) {
  928. output.WriteRawTag(26);
  929. output.WriteString(SenderName);
  930. }
  931. if (SenderUid.Length != 0) {
  932. output.WriteRawTag(34);
  933. output.WriteString(SenderUid);
  934. }
  935. if (_unknownFields != null) {
  936. _unknownFields.WriteTo(ref output);
  937. }
  938. }
  939. #endif
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  941. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  942. public int CalculateSize() {
  943. int size = 0;
  944. if (FromChannel != global::Chat.ChatChannel.System) {
  945. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FromChannel);
  946. }
  947. if (Msg.Length != 0) {
  948. size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
  949. }
  950. if (SenderName.Length != 0) {
  951. size += 1 + pb::CodedOutputStream.ComputeStringSize(SenderName);
  952. }
  953. if (SenderUid.Length != 0) {
  954. size += 1 + pb::CodedOutputStream.ComputeStringSize(SenderUid);
  955. }
  956. if (_unknownFields != null) {
  957. size += _unknownFields.CalculateSize();
  958. }
  959. return size;
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  962. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  963. public void MergeFrom(SC_ChatNewMsg other) {
  964. if (other == null) {
  965. return;
  966. }
  967. if (other.FromChannel != global::Chat.ChatChannel.System) {
  968. FromChannel = other.FromChannel;
  969. }
  970. if (other.Msg.Length != 0) {
  971. Msg = other.Msg;
  972. }
  973. if (other.SenderName.Length != 0) {
  974. SenderName = other.SenderName;
  975. }
  976. if (other.SenderUid.Length != 0) {
  977. SenderUid = other.SenderUid;
  978. }
  979. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  982. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  983. public void MergeFrom(pb::CodedInputStream input) {
  984. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  985. input.ReadRawMessage(this);
  986. #else
  987. uint tag;
  988. while ((tag = input.ReadTag()) != 0) {
  989. switch(tag) {
  990. default:
  991. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  992. break;
  993. case 8: {
  994. FromChannel = (global::Chat.ChatChannel) input.ReadEnum();
  995. break;
  996. }
  997. case 18: {
  998. Msg = input.ReadString();
  999. break;
  1000. }
  1001. case 26: {
  1002. SenderName = input.ReadString();
  1003. break;
  1004. }
  1005. case 34: {
  1006. SenderUid = input.ReadString();
  1007. break;
  1008. }
  1009. }
  1010. }
  1011. #endif
  1012. }
  1013. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1015. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1016. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1017. uint tag;
  1018. while ((tag = input.ReadTag()) != 0) {
  1019. switch(tag) {
  1020. default:
  1021. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1022. break;
  1023. case 8: {
  1024. FromChannel = (global::Chat.ChatChannel) input.ReadEnum();
  1025. break;
  1026. }
  1027. case 18: {
  1028. Msg = input.ReadString();
  1029. break;
  1030. }
  1031. case 26: {
  1032. SenderName = input.ReadString();
  1033. break;
  1034. }
  1035. case 34: {
  1036. SenderUid = input.ReadString();
  1037. break;
  1038. }
  1039. }
  1040. }
  1041. }
  1042. #endif
  1043. }
  1044. #endregion
  1045. }
  1046. #endregion Designer generated code