Sync.cs 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: sync.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Protos {
  10. /// <summary>Holder for reflection information generated from sync.proto</summary>
  11. public static partial class SyncReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for sync.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static SyncReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "CgpzeW5jLnByb3RvEgZwcm90b3MaDnVzZXJpbmZvLnByb3RvGgxyZXN1bHQu",
  22. "cHJvdG8iEAoOUmVzdG9yZVJlcXVlc3QioQEKD1Jlc3RvcmVSZXNwb25zZRIf",
  23. "CgVVc2VycxgBIAMoCzIQLnByb3Rvcy5Vc2VySW5mbxIMCgRTdGVwGAIgASgE",
  24. "EjEKBXN0YXRlGAMgAygLMiIucHJvdG9zLlJlc3RvcmVSZXNwb25zZS5TdGF0",
  25. "ZUVudHJ5GiwKClN0YXRlRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg",
  26. "ASgMOgI4ASJ7CgtTeW5jUmVxdWVzdBIMCgRTdGVwGAEgASgEEi8KBlZhbHVl",
  27. "cxgCIAMoCzIfLnByb3Rvcy5TeW5jUmVxdWVzdC5WYWx1ZXNFbnRyeRotCgtW",
  28. "YWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAw6AjgBIpgB",
  29. "CgxTeW5jUmVzcG9uc2USDgoGU3RhdHVzGAEgASgIEgwKBFN0ZXAYAiABKAQS",
  30. "MAoGVmFsdWVzGAMgAygLMiAucHJvdG9zLlN5bmNSZXNwb25zZS5WYWx1ZXNF",
  31. "bnRyeRIJCgFUGAQgASgEGi0KC1ZhbHVlc0VudHJ5EgsKA2tleRgBIAEoCRIN",
  32. "CgV2YWx1ZRgCIAEoDDoCOAEihgEKD0RNZXNzYWdlUmVxdWVzdBIPCgdVc2Vy",
  33. "SURzGAEgAygNEjMKBlZhbHVlcxgCIAMoCzIjLnByb3Rvcy5ETWVzc2FnZVJl",
  34. "cXVlc3QuVmFsdWVzRW50cnkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJ",
  35. "Eg0KBXZhbHVlGAIgASgMOgI4ASIyChBETWVzc2FnZVJlc3BvbnNlEh4KBlJl",
  36. "c3VsdBgBIAEoCzIOLnByb3Rvcy5SZXN1bHQibwoMRE1lc3NhZ2VQdXNoEjAK",
  37. "BlZhbHVlcxgBIAMoCzIgLnByb3Rvcy5ETWVzc2FnZVB1c2guVmFsdWVzRW50",
  38. "cnkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgM",
  39. "OgI4ASKAAQoIU3luY1B1c2gSDAoEU3RlcBgBIAEoBBIsCgZWYWx1ZXMYAiAD",
  40. "KAsyHC5wcm90b3MuU3luY1B1c2guVmFsdWVzRW50cnkSCQoBVBgDIAEoBBot",
  41. "CgtWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAw6AjgB",
  42. "IoQBCgpNYXN0ZXJQdXNoEgwKBFN0ZXAYASABKAQSLgoGVmFsdWVzGAIgAygL",
  43. "Mh4ucHJvdG9zLk1hc3RlclB1c2guVmFsdWVzRW50cnkSCQoBVBgDIAEoBBot",
  44. "CgtWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAw6AjgB",
  45. "In0KDE1hc3Rlck5vdGlmeRIMCgRTdGVwGAEgASgEEjAKBlZhbHVlcxgCIAMo",
  46. "CzIgLnByb3Rvcy5NYXN0ZXJOb3RpZnkuVmFsdWVzRW50cnkaLQoLVmFsdWVz",
  47. "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4ASIhChRNYXN0",
  48. "ZXJOb3RpZnlSZXNwb25zZRIJCgFUGAEgASgEInkKEU1hc3RlclN0b3JlTm90",
  49. "aWZ5EjUKBlZhbHVlcxgBIAMoCzIlLnByb3Rvcy5NYXN0ZXJTdG9yZU5vdGlm",
  50. "eS5WYWx1ZXNFbnRyeRotCgtWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoF",
  51. "dmFsdWUYAiABKAw6AjgBIhMKEU1hc3RlckxvYWRSZXF1ZXN0IpsBChJNYXN0",
  52. "ZXJMb2FkUmVzcG9uc2USHgoGUmVzdWx0GAEgASgLMg4ucHJvdG9zLlJlc3Vs",
  53. "dBI2CgZWYWx1ZXMYAiADKAsyJi5wcm90b3MuTWFzdGVyTG9hZFJlc3BvbnNl",
  54. "LlZhbHVlc0VudHJ5Gi0KC1ZhbHVlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2",
  55. "YWx1ZRgCIAEoDDoCOAFiBnByb3RvMw=="));
  56. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  57. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
  58. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  59. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RestoreRequest), global::Protos.RestoreRequest.Parser, null, null, null, null),
  60. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RestoreResponse), global::Protos.RestoreResponse.Parser, new[]{ "Users", "Step", "State" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  61. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncRequest), global::Protos.SyncRequest.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  62. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncResponse), global::Protos.SyncResponse.Parser, new[]{ "Status", "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  63. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessageRequest), global::Protos.DMessageRequest.Parser, new[]{ "UserIDs", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  64. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessageResponse), global::Protos.DMessageResponse.Parser, new[]{ "Result" }, null, null, null),
  65. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessagePush), global::Protos.DMessagePush.Parser, new[]{ "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  66. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncPush), global::Protos.SyncPush.Parser, new[]{ "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  67. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterPush), global::Protos.MasterPush.Parser, new[]{ "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  68. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterNotify), global::Protos.MasterNotify.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  69. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterNotifyResponse), global::Protos.MasterNotifyResponse.Parser, new[]{ "T" }, null, null, null),
  70. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterStoreNotify), global::Protos.MasterStoreNotify.Parser, new[]{ "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  71. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterLoadRequest), global::Protos.MasterLoadRequest.Parser, null, null, null, null),
  72. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterLoadResponse), global::Protos.MasterLoadResponse.Parser, new[]{ "Result", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
  73. }));
  74. }
  75. #endregion
  76. }
  77. #region Messages
  78. /// <summary>
  79. /// 载入游戏请求
  80. /// </summary>
  81. public sealed partial class RestoreRequest : pb::IMessage<RestoreRequest> {
  82. private static readonly pb::MessageParser<RestoreRequest> _parser = new pb::MessageParser<RestoreRequest>(() => new RestoreRequest());
  83. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  84. public static pb::MessageParser<RestoreRequest> Parser { get { return _parser; } }
  85. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  86. public static pbr::MessageDescriptor Descriptor {
  87. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[0]; }
  88. }
  89. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  90. pbr::MessageDescriptor pb::IMessage.Descriptor {
  91. get { return Descriptor; }
  92. }
  93. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  94. public RestoreRequest() {
  95. OnConstruction();
  96. }
  97. partial void OnConstruction();
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  99. public RestoreRequest(RestoreRequest other) : this() {
  100. }
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  102. public RestoreRequest Clone() {
  103. return new RestoreRequest(this);
  104. }
  105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  106. public override bool Equals(object other) {
  107. return Equals(other as RestoreRequest);
  108. }
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  110. public bool Equals(RestoreRequest other) {
  111. if (ReferenceEquals(other, null)) {
  112. return false;
  113. }
  114. if (ReferenceEquals(other, this)) {
  115. return true;
  116. }
  117. return true;
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  120. public override int GetHashCode() {
  121. int hash = 1;
  122. return hash;
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  125. public override string ToString() {
  126. return pb::JsonFormatter.ToDiagnosticString(this);
  127. }
  128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  129. public void WriteTo(pb::CodedOutputStream output) {
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  132. public int CalculateSize() {
  133. int size = 0;
  134. return size;
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. public void MergeFrom(RestoreRequest other) {
  138. if (other == null) {
  139. return;
  140. }
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. public void MergeFrom(pb::CodedInputStream input) {
  144. uint tag;
  145. while ((tag = input.ReadTag()) != 0) {
  146. switch(tag) {
  147. default:
  148. input.SkipLastField();
  149. break;
  150. }
  151. }
  152. }
  153. }
  154. /// <summary>
  155. /// 载入游戏响应
  156. /// </summary>
  157. public sealed partial class RestoreResponse : pb::IMessage<RestoreResponse> {
  158. private static readonly pb::MessageParser<RestoreResponse> _parser = new pb::MessageParser<RestoreResponse>(() => new RestoreResponse());
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  160. public static pb::MessageParser<RestoreResponse> Parser { get { return _parser; } }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  162. public static pbr::MessageDescriptor Descriptor {
  163. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[1]; }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  166. pbr::MessageDescriptor pb::IMessage.Descriptor {
  167. get { return Descriptor; }
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  170. public RestoreResponse() {
  171. OnConstruction();
  172. }
  173. partial void OnConstruction();
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  175. public RestoreResponse(RestoreResponse other) : this() {
  176. users_ = other.users_.Clone();
  177. step_ = other.step_;
  178. state_ = other.state_.Clone();
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  181. public RestoreResponse Clone() {
  182. return new RestoreResponse(this);
  183. }
  184. /// <summary>Field number for the "Users" field.</summary>
  185. public const int UsersFieldNumber = 1;
  186. private static readonly pb::FieldCodec<global::Protos.UserInfo> _repeated_users_codec
  187. = pb::FieldCodec.ForMessage(10, global::Protos.UserInfo.Parser);
  188. private readonly pbc::RepeatedField<global::Protos.UserInfo> users_ = new pbc::RepeatedField<global::Protos.UserInfo>();
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  190. public pbc::RepeatedField<global::Protos.UserInfo> Users {
  191. get { return users_; }
  192. }
  193. /// <summary>Field number for the "Step" field.</summary>
  194. public const int StepFieldNumber = 2;
  195. private ulong step_;
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  197. public ulong Step {
  198. get { return step_; }
  199. set {
  200. step_ = value;
  201. }
  202. }
  203. /// <summary>Field number for the "state" field.</summary>
  204. public const int StateFieldNumber = 3;
  205. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_state_codec
  206. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 26);
  207. private readonly pbc::MapField<string, pb::ByteString> state_ = new pbc::MapField<string, pb::ByteString>();
  208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  209. public pbc::MapField<string, pb::ByteString> State {
  210. get { return state_; }
  211. }
  212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  213. public override bool Equals(object other) {
  214. return Equals(other as RestoreResponse);
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  217. public bool Equals(RestoreResponse other) {
  218. if (ReferenceEquals(other, null)) {
  219. return false;
  220. }
  221. if (ReferenceEquals(other, this)) {
  222. return true;
  223. }
  224. if(!users_.Equals(other.users_)) return false;
  225. if (Step != other.Step) return false;
  226. if (!State.Equals(other.State)) return false;
  227. return true;
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  230. public override int GetHashCode() {
  231. int hash = 1;
  232. hash ^= users_.GetHashCode();
  233. if (Step != 0UL) hash ^= Step.GetHashCode();
  234. hash ^= State.GetHashCode();
  235. return hash;
  236. }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  238. public override string ToString() {
  239. return pb::JsonFormatter.ToDiagnosticString(this);
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  242. public void WriteTo(pb::CodedOutputStream output) {
  243. users_.WriteTo(output, _repeated_users_codec);
  244. if (Step != 0UL) {
  245. output.WriteRawTag(16);
  246. output.WriteUInt64(Step);
  247. }
  248. state_.WriteTo(output, _map_state_codec);
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  251. public int CalculateSize() {
  252. int size = 0;
  253. size += users_.CalculateSize(_repeated_users_codec);
  254. if (Step != 0UL) {
  255. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  256. }
  257. size += state_.CalculateSize(_map_state_codec);
  258. return size;
  259. }
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  261. public void MergeFrom(RestoreResponse other) {
  262. if (other == null) {
  263. return;
  264. }
  265. users_.Add(other.users_);
  266. if (other.Step != 0UL) {
  267. Step = other.Step;
  268. }
  269. state_.Add(other.state_);
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  272. public void MergeFrom(pb::CodedInputStream input) {
  273. uint tag;
  274. while ((tag = input.ReadTag()) != 0) {
  275. switch(tag) {
  276. default:
  277. input.SkipLastField();
  278. break;
  279. case 10: {
  280. users_.AddEntriesFrom(input, _repeated_users_codec);
  281. break;
  282. }
  283. case 16: {
  284. Step = input.ReadUInt64();
  285. break;
  286. }
  287. case 26: {
  288. state_.AddEntriesFrom(input, _map_state_codec);
  289. break;
  290. }
  291. }
  292. }
  293. }
  294. }
  295. /// <summary>
  296. /// 同步消息
  297. /// </summary>
  298. public sealed partial class SyncRequest : pb::IMessage<SyncRequest> {
  299. private static readonly pb::MessageParser<SyncRequest> _parser = new pb::MessageParser<SyncRequest>(() => new SyncRequest());
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  301. public static pb::MessageParser<SyncRequest> Parser { get { return _parser; } }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  303. public static pbr::MessageDescriptor Descriptor {
  304. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[2]; }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. pbr::MessageDescriptor pb::IMessage.Descriptor {
  308. get { return Descriptor; }
  309. }
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  311. public SyncRequest() {
  312. OnConstruction();
  313. }
  314. partial void OnConstruction();
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  316. public SyncRequest(SyncRequest other) : this() {
  317. step_ = other.step_;
  318. values_ = other.values_.Clone();
  319. }
  320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  321. public SyncRequest Clone() {
  322. return new SyncRequest(this);
  323. }
  324. /// <summary>Field number for the "Step" field.</summary>
  325. public const int StepFieldNumber = 1;
  326. private ulong step_;
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  328. public ulong Step {
  329. get { return step_; }
  330. set {
  331. step_ = value;
  332. }
  333. }
  334. /// <summary>Field number for the "Values" field.</summary>
  335. public const int ValuesFieldNumber = 2;
  336. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  337. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  338. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  340. public pbc::MapField<string, pb::ByteString> Values {
  341. get { return values_; }
  342. }
  343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  344. public override bool Equals(object other) {
  345. return Equals(other as SyncRequest);
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  348. public bool Equals(SyncRequest other) {
  349. if (ReferenceEquals(other, null)) {
  350. return false;
  351. }
  352. if (ReferenceEquals(other, this)) {
  353. return true;
  354. }
  355. if (Step != other.Step) return false;
  356. if (!Values.Equals(other.Values)) return false;
  357. return true;
  358. }
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  360. public override int GetHashCode() {
  361. int hash = 1;
  362. if (Step != 0UL) hash ^= Step.GetHashCode();
  363. hash ^= Values.GetHashCode();
  364. return hash;
  365. }
  366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  367. public override string ToString() {
  368. return pb::JsonFormatter.ToDiagnosticString(this);
  369. }
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  371. public void WriteTo(pb::CodedOutputStream output) {
  372. if (Step != 0UL) {
  373. output.WriteRawTag(8);
  374. output.WriteUInt64(Step);
  375. }
  376. values_.WriteTo(output, _map_values_codec);
  377. }
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  379. public int CalculateSize() {
  380. int size = 0;
  381. if (Step != 0UL) {
  382. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  383. }
  384. size += values_.CalculateSize(_map_values_codec);
  385. return size;
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  388. public void MergeFrom(SyncRequest other) {
  389. if (other == null) {
  390. return;
  391. }
  392. if (other.Step != 0UL) {
  393. Step = other.Step;
  394. }
  395. values_.Add(other.values_);
  396. }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  398. public void MergeFrom(pb::CodedInputStream input) {
  399. uint tag;
  400. while ((tag = input.ReadTag()) != 0) {
  401. switch(tag) {
  402. default:
  403. input.SkipLastField();
  404. break;
  405. case 8: {
  406. Step = input.ReadUInt64();
  407. break;
  408. }
  409. case 18: {
  410. values_.AddEntriesFrom(input, _map_values_codec);
  411. break;
  412. }
  413. }
  414. }
  415. }
  416. }
  417. /// <summary>
  418. /// 同步消息响应
  419. /// </summary>
  420. public sealed partial class SyncResponse : pb::IMessage<SyncResponse> {
  421. private static readonly pb::MessageParser<SyncResponse> _parser = new pb::MessageParser<SyncResponse>(() => new SyncResponse());
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  423. public static pb::MessageParser<SyncResponse> Parser { get { return _parser; } }
  424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  425. public static pbr::MessageDescriptor Descriptor {
  426. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[3]; }
  427. }
  428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  429. pbr::MessageDescriptor pb::IMessage.Descriptor {
  430. get { return Descriptor; }
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  433. public SyncResponse() {
  434. OnConstruction();
  435. }
  436. partial void OnConstruction();
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  438. public SyncResponse(SyncResponse other) : this() {
  439. status_ = other.status_;
  440. step_ = other.step_;
  441. values_ = other.values_.Clone();
  442. t_ = other.t_;
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  445. public SyncResponse Clone() {
  446. return new SyncResponse(this);
  447. }
  448. /// <summary>Field number for the "Status" field.</summary>
  449. public const int StatusFieldNumber = 1;
  450. private bool status_;
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  452. public bool Status {
  453. get { return status_; }
  454. set {
  455. status_ = value;
  456. }
  457. }
  458. /// <summary>Field number for the "Step" field.</summary>
  459. public const int StepFieldNumber = 2;
  460. private ulong step_;
  461. /// <summary>
  462. /// status=false时才有值
  463. /// </summary>
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  465. public ulong Step {
  466. get { return step_; }
  467. set {
  468. step_ = value;
  469. }
  470. }
  471. /// <summary>Field number for the "Values" field.</summary>
  472. public const int ValuesFieldNumber = 3;
  473. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  474. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 26);
  475. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  476. /// <summary>
  477. /// status=false时才有值
  478. /// </summary>
  479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  480. public pbc::MapField<string, pb::ByteString> Values {
  481. get { return values_; }
  482. }
  483. /// <summary>Field number for the "T" field.</summary>
  484. public const int TFieldNumber = 4;
  485. private ulong t_;
  486. /// <summary>
  487. /// 服务器收到sync request的时间戳(毫秒)
  488. /// </summary>
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  490. public ulong T {
  491. get { return t_; }
  492. set {
  493. t_ = value;
  494. }
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  497. public override bool Equals(object other) {
  498. return Equals(other as SyncResponse);
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. public bool Equals(SyncResponse other) {
  502. if (ReferenceEquals(other, null)) {
  503. return false;
  504. }
  505. if (ReferenceEquals(other, this)) {
  506. return true;
  507. }
  508. if (Status != other.Status) return false;
  509. if (Step != other.Step) return false;
  510. if (!Values.Equals(other.Values)) return false;
  511. if (T != other.T) return false;
  512. return true;
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public override int GetHashCode() {
  516. int hash = 1;
  517. if (Status != false) hash ^= Status.GetHashCode();
  518. if (Step != 0UL) hash ^= Step.GetHashCode();
  519. hash ^= Values.GetHashCode();
  520. if (T != 0UL) hash ^= T.GetHashCode();
  521. return hash;
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  524. public override string ToString() {
  525. return pb::JsonFormatter.ToDiagnosticString(this);
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  528. public void WriteTo(pb::CodedOutputStream output) {
  529. if (Status != false) {
  530. output.WriteRawTag(8);
  531. output.WriteBool(Status);
  532. }
  533. if (Step != 0UL) {
  534. output.WriteRawTag(16);
  535. output.WriteUInt64(Step);
  536. }
  537. values_.WriteTo(output, _map_values_codec);
  538. if (T != 0UL) {
  539. output.WriteRawTag(32);
  540. output.WriteUInt64(T);
  541. }
  542. }
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  544. public int CalculateSize() {
  545. int size = 0;
  546. if (Status != false) {
  547. size += 1 + 1;
  548. }
  549. if (Step != 0UL) {
  550. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  551. }
  552. size += values_.CalculateSize(_map_values_codec);
  553. if (T != 0UL) {
  554. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  555. }
  556. return size;
  557. }
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  559. public void MergeFrom(SyncResponse other) {
  560. if (other == null) {
  561. return;
  562. }
  563. if (other.Status != false) {
  564. Status = other.Status;
  565. }
  566. if (other.Step != 0UL) {
  567. Step = other.Step;
  568. }
  569. values_.Add(other.values_);
  570. if (other.T != 0UL) {
  571. T = other.T;
  572. }
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  575. public void MergeFrom(pb::CodedInputStream input) {
  576. uint tag;
  577. while ((tag = input.ReadTag()) != 0) {
  578. switch(tag) {
  579. default:
  580. input.SkipLastField();
  581. break;
  582. case 8: {
  583. Status = input.ReadBool();
  584. break;
  585. }
  586. case 16: {
  587. Step = input.ReadUInt64();
  588. break;
  589. }
  590. case 26: {
  591. values_.AddEntriesFrom(input, _map_values_codec);
  592. break;
  593. }
  594. case 32: {
  595. T = input.ReadUInt64();
  596. break;
  597. }
  598. }
  599. }
  600. }
  601. }
  602. /// <summary>
  603. /// 客户端发送实时消息
  604. /// </summary>
  605. public sealed partial class DMessageRequest : pb::IMessage<DMessageRequest> {
  606. private static readonly pb::MessageParser<DMessageRequest> _parser = new pb::MessageParser<DMessageRequest>(() => new DMessageRequest());
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  608. public static pb::MessageParser<DMessageRequest> Parser { get { return _parser; } }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  610. public static pbr::MessageDescriptor Descriptor {
  611. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[4]; }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  614. pbr::MessageDescriptor pb::IMessage.Descriptor {
  615. get { return Descriptor; }
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  618. public DMessageRequest() {
  619. OnConstruction();
  620. }
  621. partial void OnConstruction();
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  623. public DMessageRequest(DMessageRequest other) : this() {
  624. userIDs_ = other.userIDs_.Clone();
  625. values_ = other.values_.Clone();
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  628. public DMessageRequest Clone() {
  629. return new DMessageRequest(this);
  630. }
  631. /// <summary>Field number for the "UserIDs" field.</summary>
  632. public const int UserIDsFieldNumber = 1;
  633. private static readonly pb::FieldCodec<uint> _repeated_userIDs_codec
  634. = pb::FieldCodec.ForUInt32(10);
  635. private readonly pbc::RepeatedField<uint> userIDs_ = new pbc::RepeatedField<uint>();
  636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  637. public pbc::RepeatedField<uint> UserIDs {
  638. get { return userIDs_; }
  639. }
  640. /// <summary>Field number for the "Values" field.</summary>
  641. public const int ValuesFieldNumber = 2;
  642. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  643. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  644. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  646. public pbc::MapField<string, pb::ByteString> Values {
  647. get { return values_; }
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  650. public override bool Equals(object other) {
  651. return Equals(other as DMessageRequest);
  652. }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  654. public bool Equals(DMessageRequest other) {
  655. if (ReferenceEquals(other, null)) {
  656. return false;
  657. }
  658. if (ReferenceEquals(other, this)) {
  659. return true;
  660. }
  661. if(!userIDs_.Equals(other.userIDs_)) return false;
  662. if (!Values.Equals(other.Values)) return false;
  663. return true;
  664. }
  665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  666. public override int GetHashCode() {
  667. int hash = 1;
  668. hash ^= userIDs_.GetHashCode();
  669. hash ^= Values.GetHashCode();
  670. return hash;
  671. }
  672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  673. public override string ToString() {
  674. return pb::JsonFormatter.ToDiagnosticString(this);
  675. }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  677. public void WriteTo(pb::CodedOutputStream output) {
  678. userIDs_.WriteTo(output, _repeated_userIDs_codec);
  679. values_.WriteTo(output, _map_values_codec);
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  682. public int CalculateSize() {
  683. int size = 0;
  684. size += userIDs_.CalculateSize(_repeated_userIDs_codec);
  685. size += values_.CalculateSize(_map_values_codec);
  686. return size;
  687. }
  688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  689. public void MergeFrom(DMessageRequest other) {
  690. if (other == null) {
  691. return;
  692. }
  693. userIDs_.Add(other.userIDs_);
  694. values_.Add(other.values_);
  695. }
  696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  697. public void MergeFrom(pb::CodedInputStream input) {
  698. uint tag;
  699. while ((tag = input.ReadTag()) != 0) {
  700. switch(tag) {
  701. default:
  702. input.SkipLastField();
  703. break;
  704. case 10:
  705. case 8: {
  706. userIDs_.AddEntriesFrom(input, _repeated_userIDs_codec);
  707. break;
  708. }
  709. case 18: {
  710. values_.AddEntriesFrom(input, _map_values_codec);
  711. break;
  712. }
  713. }
  714. }
  715. }
  716. }
  717. /// <summary>
  718. /// 服务器响应用户实时消息结果
  719. /// </summary>
  720. public sealed partial class DMessageResponse : pb::IMessage<DMessageResponse> {
  721. private static readonly pb::MessageParser<DMessageResponse> _parser = new pb::MessageParser<DMessageResponse>(() => new DMessageResponse());
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  723. public static pb::MessageParser<DMessageResponse> Parser { get { return _parser; } }
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  725. public static pbr::MessageDescriptor Descriptor {
  726. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[5]; }
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  729. pbr::MessageDescriptor pb::IMessage.Descriptor {
  730. get { return Descriptor; }
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  733. public DMessageResponse() {
  734. OnConstruction();
  735. }
  736. partial void OnConstruction();
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  738. public DMessageResponse(DMessageResponse other) : this() {
  739. Result = other.result_ != null ? other.Result.Clone() : null;
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  742. public DMessageResponse Clone() {
  743. return new DMessageResponse(this);
  744. }
  745. /// <summary>Field number for the "Result" field.</summary>
  746. public const int ResultFieldNumber = 1;
  747. private global::Protos.Result result_;
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  749. public global::Protos.Result Result {
  750. get { return result_; }
  751. set {
  752. result_ = value;
  753. }
  754. }
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  756. public override bool Equals(object other) {
  757. return Equals(other as DMessageResponse);
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  760. public bool Equals(DMessageResponse other) {
  761. if (ReferenceEquals(other, null)) {
  762. return false;
  763. }
  764. if (ReferenceEquals(other, this)) {
  765. return true;
  766. }
  767. if (!object.Equals(Result, other.Result)) return false;
  768. return true;
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  771. public override int GetHashCode() {
  772. int hash = 1;
  773. if (result_ != null) hash ^= Result.GetHashCode();
  774. return hash;
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  777. public override string ToString() {
  778. return pb::JsonFormatter.ToDiagnosticString(this);
  779. }
  780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  781. public void WriteTo(pb::CodedOutputStream output) {
  782. if (result_ != null) {
  783. output.WriteRawTag(10);
  784. output.WriteMessage(Result);
  785. }
  786. }
  787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  788. public int CalculateSize() {
  789. int size = 0;
  790. if (result_ != null) {
  791. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  792. }
  793. return size;
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  796. public void MergeFrom(DMessageResponse other) {
  797. if (other == null) {
  798. return;
  799. }
  800. if (other.result_ != null) {
  801. if (result_ == null) {
  802. result_ = new global::Protos.Result();
  803. }
  804. Result.MergeFrom(other.Result);
  805. }
  806. }
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  808. public void MergeFrom(pb::CodedInputStream input) {
  809. uint tag;
  810. while ((tag = input.ReadTag()) != 0) {
  811. switch(tag) {
  812. default:
  813. input.SkipLastField();
  814. break;
  815. case 10: {
  816. if (result_ == null) {
  817. result_ = new global::Protos.Result();
  818. }
  819. input.ReadMessage(result_);
  820. break;
  821. }
  822. }
  823. }
  824. }
  825. }
  826. /// <summary>
  827. /// 服务器转发实时消息
  828. /// </summary>
  829. public sealed partial class DMessagePush : pb::IMessage<DMessagePush> {
  830. private static readonly pb::MessageParser<DMessagePush> _parser = new pb::MessageParser<DMessagePush>(() => new DMessagePush());
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  832. public static pb::MessageParser<DMessagePush> Parser { get { return _parser; } }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  834. public static pbr::MessageDescriptor Descriptor {
  835. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[6]; }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  838. pbr::MessageDescriptor pb::IMessage.Descriptor {
  839. get { return Descriptor; }
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  842. public DMessagePush() {
  843. OnConstruction();
  844. }
  845. partial void OnConstruction();
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  847. public DMessagePush(DMessagePush other) : this() {
  848. values_ = other.values_.Clone();
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  851. public DMessagePush Clone() {
  852. return new DMessagePush(this);
  853. }
  854. /// <summary>Field number for the "Values" field.</summary>
  855. public const int ValuesFieldNumber = 1;
  856. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  857. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 10);
  858. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  860. public pbc::MapField<string, pb::ByteString> Values {
  861. get { return values_; }
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  864. public override bool Equals(object other) {
  865. return Equals(other as DMessagePush);
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  868. public bool Equals(DMessagePush other) {
  869. if (ReferenceEquals(other, null)) {
  870. return false;
  871. }
  872. if (ReferenceEquals(other, this)) {
  873. return true;
  874. }
  875. if (!Values.Equals(other.Values)) return false;
  876. return true;
  877. }
  878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  879. public override int GetHashCode() {
  880. int hash = 1;
  881. hash ^= Values.GetHashCode();
  882. return hash;
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  885. public override string ToString() {
  886. return pb::JsonFormatter.ToDiagnosticString(this);
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  889. public void WriteTo(pb::CodedOutputStream output) {
  890. values_.WriteTo(output, _map_values_codec);
  891. }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  893. public int CalculateSize() {
  894. int size = 0;
  895. size += values_.CalculateSize(_map_values_codec);
  896. return size;
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  899. public void MergeFrom(DMessagePush other) {
  900. if (other == null) {
  901. return;
  902. }
  903. values_.Add(other.values_);
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  906. public void MergeFrom(pb::CodedInputStream input) {
  907. uint tag;
  908. while ((tag = input.ReadTag()) != 0) {
  909. switch(tag) {
  910. default:
  911. input.SkipLastField();
  912. break;
  913. case 10: {
  914. values_.AddEntriesFrom(input, _map_values_codec);
  915. break;
  916. }
  917. }
  918. }
  919. }
  920. }
  921. /// <summary>
  922. /// 同步消息推送
  923. /// </summary>
  924. public sealed partial class SyncPush : pb::IMessage<SyncPush> {
  925. private static readonly pb::MessageParser<SyncPush> _parser = new pb::MessageParser<SyncPush>(() => new SyncPush());
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  927. public static pb::MessageParser<SyncPush> Parser { get { return _parser; } }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  929. public static pbr::MessageDescriptor Descriptor {
  930. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[7]; }
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  933. pbr::MessageDescriptor pb::IMessage.Descriptor {
  934. get { return Descriptor; }
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  937. public SyncPush() {
  938. OnConstruction();
  939. }
  940. partial void OnConstruction();
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  942. public SyncPush(SyncPush other) : this() {
  943. step_ = other.step_;
  944. values_ = other.values_.Clone();
  945. t_ = other.t_;
  946. }
  947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  948. public SyncPush Clone() {
  949. return new SyncPush(this);
  950. }
  951. /// <summary>Field number for the "Step" field.</summary>
  952. public const int StepFieldNumber = 1;
  953. private ulong step_;
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  955. public ulong Step {
  956. get { return step_; }
  957. set {
  958. step_ = value;
  959. }
  960. }
  961. /// <summary>Field number for the "Values" field.</summary>
  962. public const int ValuesFieldNumber = 2;
  963. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  964. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  965. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  967. public pbc::MapField<string, pb::ByteString> Values {
  968. get { return values_; }
  969. }
  970. /// <summary>Field number for the "T" field.</summary>
  971. public const int TFieldNumber = 3;
  972. private ulong t_;
  973. /// <summary>
  974. /// 服务器开始推送时间戳
  975. /// </summary>
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  977. public ulong T {
  978. get { return t_; }
  979. set {
  980. t_ = value;
  981. }
  982. }
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  984. public override bool Equals(object other) {
  985. return Equals(other as SyncPush);
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  988. public bool Equals(SyncPush other) {
  989. if (ReferenceEquals(other, null)) {
  990. return false;
  991. }
  992. if (ReferenceEquals(other, this)) {
  993. return true;
  994. }
  995. if (Step != other.Step) return false;
  996. if (!Values.Equals(other.Values)) return false;
  997. if (T != other.T) return false;
  998. return true;
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1001. public override int GetHashCode() {
  1002. int hash = 1;
  1003. if (Step != 0UL) hash ^= Step.GetHashCode();
  1004. hash ^= Values.GetHashCode();
  1005. if (T != 0UL) hash ^= T.GetHashCode();
  1006. return hash;
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1009. public override string ToString() {
  1010. return pb::JsonFormatter.ToDiagnosticString(this);
  1011. }
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1013. public void WriteTo(pb::CodedOutputStream output) {
  1014. if (Step != 0UL) {
  1015. output.WriteRawTag(8);
  1016. output.WriteUInt64(Step);
  1017. }
  1018. values_.WriteTo(output, _map_values_codec);
  1019. if (T != 0UL) {
  1020. output.WriteRawTag(24);
  1021. output.WriteUInt64(T);
  1022. }
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1025. public int CalculateSize() {
  1026. int size = 0;
  1027. if (Step != 0UL) {
  1028. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  1029. }
  1030. size += values_.CalculateSize(_map_values_codec);
  1031. if (T != 0UL) {
  1032. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  1033. }
  1034. return size;
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1037. public void MergeFrom(SyncPush other) {
  1038. if (other == null) {
  1039. return;
  1040. }
  1041. if (other.Step != 0UL) {
  1042. Step = other.Step;
  1043. }
  1044. values_.Add(other.values_);
  1045. if (other.T != 0UL) {
  1046. T = other.T;
  1047. }
  1048. }
  1049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1050. public void MergeFrom(pb::CodedInputStream input) {
  1051. uint tag;
  1052. while ((tag = input.ReadTag()) != 0) {
  1053. switch(tag) {
  1054. default:
  1055. input.SkipLastField();
  1056. break;
  1057. case 8: {
  1058. Step = input.ReadUInt64();
  1059. break;
  1060. }
  1061. case 18: {
  1062. values_.AddEntriesFrom(input, _map_values_codec);
  1063. break;
  1064. }
  1065. case 24: {
  1066. T = input.ReadUInt64();
  1067. break;
  1068. }
  1069. }
  1070. }
  1071. }
  1072. }
  1073. /// <summary>
  1074. /// 服务器合并用户操作给master
  1075. /// </summary>
  1076. public sealed partial class MasterPush : pb::IMessage<MasterPush> {
  1077. private static readonly pb::MessageParser<MasterPush> _parser = new pb::MessageParser<MasterPush>(() => new MasterPush());
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1079. public static pb::MessageParser<MasterPush> Parser { get { return _parser; } }
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1081. public static pbr::MessageDescriptor Descriptor {
  1082. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[8]; }
  1083. }
  1084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1085. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1086. get { return Descriptor; }
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1089. public MasterPush() {
  1090. OnConstruction();
  1091. }
  1092. partial void OnConstruction();
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1094. public MasterPush(MasterPush other) : this() {
  1095. step_ = other.step_;
  1096. values_ = other.values_.Clone();
  1097. t_ = other.t_;
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1100. public MasterPush Clone() {
  1101. return new MasterPush(this);
  1102. }
  1103. /// <summary>Field number for the "Step" field.</summary>
  1104. public const int StepFieldNumber = 1;
  1105. private ulong step_;
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1107. public ulong Step {
  1108. get { return step_; }
  1109. set {
  1110. step_ = value;
  1111. }
  1112. }
  1113. /// <summary>Field number for the "Values" field.</summary>
  1114. public const int ValuesFieldNumber = 2;
  1115. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1116. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1117. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1119. public pbc::MapField<string, pb::ByteString> Values {
  1120. get { return values_; }
  1121. }
  1122. /// <summary>Field number for the "T" field.</summary>
  1123. public const int TFieldNumber = 3;
  1124. private ulong t_;
  1125. /// <summary>
  1126. /// 服务器开始推送时间戳
  1127. /// </summary>
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1129. public ulong T {
  1130. get { return t_; }
  1131. set {
  1132. t_ = value;
  1133. }
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1136. public override bool Equals(object other) {
  1137. return Equals(other as MasterPush);
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1140. public bool Equals(MasterPush other) {
  1141. if (ReferenceEquals(other, null)) {
  1142. return false;
  1143. }
  1144. if (ReferenceEquals(other, this)) {
  1145. return true;
  1146. }
  1147. if (Step != other.Step) return false;
  1148. if (!Values.Equals(other.Values)) return false;
  1149. if (T != other.T) return false;
  1150. return true;
  1151. }
  1152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1153. public override int GetHashCode() {
  1154. int hash = 1;
  1155. if (Step != 0UL) hash ^= Step.GetHashCode();
  1156. hash ^= Values.GetHashCode();
  1157. if (T != 0UL) hash ^= T.GetHashCode();
  1158. return hash;
  1159. }
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1161. public override string ToString() {
  1162. return pb::JsonFormatter.ToDiagnosticString(this);
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1165. public void WriteTo(pb::CodedOutputStream output) {
  1166. if (Step != 0UL) {
  1167. output.WriteRawTag(8);
  1168. output.WriteUInt64(Step);
  1169. }
  1170. values_.WriteTo(output, _map_values_codec);
  1171. if (T != 0UL) {
  1172. output.WriteRawTag(24);
  1173. output.WriteUInt64(T);
  1174. }
  1175. }
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1177. public int CalculateSize() {
  1178. int size = 0;
  1179. if (Step != 0UL) {
  1180. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  1181. }
  1182. size += values_.CalculateSize(_map_values_codec);
  1183. if (T != 0UL) {
  1184. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  1185. }
  1186. return size;
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1189. public void MergeFrom(MasterPush other) {
  1190. if (other == null) {
  1191. return;
  1192. }
  1193. if (other.Step != 0UL) {
  1194. Step = other.Step;
  1195. }
  1196. values_.Add(other.values_);
  1197. if (other.T != 0UL) {
  1198. T = other.T;
  1199. }
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1202. public void MergeFrom(pb::CodedInputStream input) {
  1203. uint tag;
  1204. while ((tag = input.ReadTag()) != 0) {
  1205. switch(tag) {
  1206. default:
  1207. input.SkipLastField();
  1208. break;
  1209. case 8: {
  1210. Step = input.ReadUInt64();
  1211. break;
  1212. }
  1213. case 18: {
  1214. values_.AddEntriesFrom(input, _map_values_codec);
  1215. break;
  1216. }
  1217. case 24: {
  1218. T = input.ReadUInt64();
  1219. break;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. }
  1225. /// <summary>
  1226. /// 主机广播消息给flower
  1227. /// </summary>
  1228. public sealed partial class MasterNotify : pb::IMessage<MasterNotify> {
  1229. private static readonly pb::MessageParser<MasterNotify> _parser = new pb::MessageParser<MasterNotify>(() => new MasterNotify());
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1231. public static pb::MessageParser<MasterNotify> Parser { get { return _parser; } }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1233. public static pbr::MessageDescriptor Descriptor {
  1234. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[9]; }
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1237. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1238. get { return Descriptor; }
  1239. }
  1240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1241. public MasterNotify() {
  1242. OnConstruction();
  1243. }
  1244. partial void OnConstruction();
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1246. public MasterNotify(MasterNotify other) : this() {
  1247. step_ = other.step_;
  1248. values_ = other.values_.Clone();
  1249. }
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1251. public MasterNotify Clone() {
  1252. return new MasterNotify(this);
  1253. }
  1254. /// <summary>Field number for the "Step" field.</summary>
  1255. public const int StepFieldNumber = 1;
  1256. private ulong step_;
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1258. public ulong Step {
  1259. get { return step_; }
  1260. set {
  1261. step_ = value;
  1262. }
  1263. }
  1264. /// <summary>Field number for the "Values" field.</summary>
  1265. public const int ValuesFieldNumber = 2;
  1266. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1267. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1268. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1270. public pbc::MapField<string, pb::ByteString> Values {
  1271. get { return values_; }
  1272. }
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1274. public override bool Equals(object other) {
  1275. return Equals(other as MasterNotify);
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1278. public bool Equals(MasterNotify other) {
  1279. if (ReferenceEquals(other, null)) {
  1280. return false;
  1281. }
  1282. if (ReferenceEquals(other, this)) {
  1283. return true;
  1284. }
  1285. if (Step != other.Step) return false;
  1286. if (!Values.Equals(other.Values)) return false;
  1287. return true;
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1290. public override int GetHashCode() {
  1291. int hash = 1;
  1292. if (Step != 0UL) hash ^= Step.GetHashCode();
  1293. hash ^= Values.GetHashCode();
  1294. return hash;
  1295. }
  1296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1297. public override string ToString() {
  1298. return pb::JsonFormatter.ToDiagnosticString(this);
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1301. public void WriteTo(pb::CodedOutputStream output) {
  1302. if (Step != 0UL) {
  1303. output.WriteRawTag(8);
  1304. output.WriteUInt64(Step);
  1305. }
  1306. values_.WriteTo(output, _map_values_codec);
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1309. public int CalculateSize() {
  1310. int size = 0;
  1311. if (Step != 0UL) {
  1312. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  1313. }
  1314. size += values_.CalculateSize(_map_values_codec);
  1315. return size;
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1318. public void MergeFrom(MasterNotify other) {
  1319. if (other == null) {
  1320. return;
  1321. }
  1322. if (other.Step != 0UL) {
  1323. Step = other.Step;
  1324. }
  1325. values_.Add(other.values_);
  1326. }
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1328. public void MergeFrom(pb::CodedInputStream input) {
  1329. uint tag;
  1330. while ((tag = input.ReadTag()) != 0) {
  1331. switch(tag) {
  1332. default:
  1333. input.SkipLastField();
  1334. break;
  1335. case 8: {
  1336. Step = input.ReadUInt64();
  1337. break;
  1338. }
  1339. case 18: {
  1340. values_.AddEntriesFrom(input, _map_values_codec);
  1341. break;
  1342. }
  1343. }
  1344. }
  1345. }
  1346. }
  1347. /// <summary>
  1348. /// 主机广播消息给flower
  1349. /// </summary>
  1350. public sealed partial class MasterNotifyResponse : pb::IMessage<MasterNotifyResponse> {
  1351. private static readonly pb::MessageParser<MasterNotifyResponse> _parser = new pb::MessageParser<MasterNotifyResponse>(() => new MasterNotifyResponse());
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1353. public static pb::MessageParser<MasterNotifyResponse> Parser { get { return _parser; } }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1355. public static pbr::MessageDescriptor Descriptor {
  1356. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[10]; }
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1359. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1360. get { return Descriptor; }
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1363. public MasterNotifyResponse() {
  1364. OnConstruction();
  1365. }
  1366. partial void OnConstruction();
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1368. public MasterNotifyResponse(MasterNotifyResponse other) : this() {
  1369. t_ = other.t_;
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1372. public MasterNotifyResponse Clone() {
  1373. return new MasterNotifyResponse(this);
  1374. }
  1375. /// <summary>Field number for the "T" field.</summary>
  1376. public const int TFieldNumber = 1;
  1377. private ulong t_;
  1378. /// <summary>
  1379. /// 服务器收到MasterNotify的时间戳(毫秒)
  1380. /// </summary>
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1382. public ulong T {
  1383. get { return t_; }
  1384. set {
  1385. t_ = value;
  1386. }
  1387. }
  1388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1389. public override bool Equals(object other) {
  1390. return Equals(other as MasterNotifyResponse);
  1391. }
  1392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1393. public bool Equals(MasterNotifyResponse other) {
  1394. if (ReferenceEquals(other, null)) {
  1395. return false;
  1396. }
  1397. if (ReferenceEquals(other, this)) {
  1398. return true;
  1399. }
  1400. if (T != other.T) return false;
  1401. return true;
  1402. }
  1403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1404. public override int GetHashCode() {
  1405. int hash = 1;
  1406. if (T != 0UL) hash ^= T.GetHashCode();
  1407. return hash;
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1410. public override string ToString() {
  1411. return pb::JsonFormatter.ToDiagnosticString(this);
  1412. }
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1414. public void WriteTo(pb::CodedOutputStream output) {
  1415. if (T != 0UL) {
  1416. output.WriteRawTag(8);
  1417. output.WriteUInt64(T);
  1418. }
  1419. }
  1420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1421. public int CalculateSize() {
  1422. int size = 0;
  1423. if (T != 0UL) {
  1424. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  1425. }
  1426. return size;
  1427. }
  1428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1429. public void MergeFrom(MasterNotifyResponse other) {
  1430. if (other == null) {
  1431. return;
  1432. }
  1433. if (other.T != 0UL) {
  1434. T = other.T;
  1435. }
  1436. }
  1437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1438. public void MergeFrom(pb::CodedInputStream input) {
  1439. uint tag;
  1440. while ((tag = input.ReadTag()) != 0) {
  1441. switch(tag) {
  1442. default:
  1443. input.SkipLastField();
  1444. break;
  1445. case 8: {
  1446. T = input.ReadUInt64();
  1447. break;
  1448. }
  1449. }
  1450. }
  1451. }
  1452. }
  1453. /// <summary>
  1454. /// 主机存储状态
  1455. /// </summary>
  1456. public sealed partial class MasterStoreNotify : pb::IMessage<MasterStoreNotify> {
  1457. private static readonly pb::MessageParser<MasterStoreNotify> _parser = new pb::MessageParser<MasterStoreNotify>(() => new MasterStoreNotify());
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1459. public static pb::MessageParser<MasterStoreNotify> Parser { get { return _parser; } }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1461. public static pbr::MessageDescriptor Descriptor {
  1462. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[11]; }
  1463. }
  1464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1465. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1466. get { return Descriptor; }
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1469. public MasterStoreNotify() {
  1470. OnConstruction();
  1471. }
  1472. partial void OnConstruction();
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1474. public MasterStoreNotify(MasterStoreNotify other) : this() {
  1475. values_ = other.values_.Clone();
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1478. public MasterStoreNotify Clone() {
  1479. return new MasterStoreNotify(this);
  1480. }
  1481. /// <summary>Field number for the "Values" field.</summary>
  1482. public const int ValuesFieldNumber = 1;
  1483. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1484. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 10);
  1485. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1487. public pbc::MapField<string, pb::ByteString> Values {
  1488. get { return values_; }
  1489. }
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1491. public override bool Equals(object other) {
  1492. return Equals(other as MasterStoreNotify);
  1493. }
  1494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1495. public bool Equals(MasterStoreNotify other) {
  1496. if (ReferenceEquals(other, null)) {
  1497. return false;
  1498. }
  1499. if (ReferenceEquals(other, this)) {
  1500. return true;
  1501. }
  1502. if (!Values.Equals(other.Values)) return false;
  1503. return true;
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1506. public override int GetHashCode() {
  1507. int hash = 1;
  1508. hash ^= Values.GetHashCode();
  1509. return hash;
  1510. }
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1512. public override string ToString() {
  1513. return pb::JsonFormatter.ToDiagnosticString(this);
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1516. public void WriteTo(pb::CodedOutputStream output) {
  1517. values_.WriteTo(output, _map_values_codec);
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1520. public int CalculateSize() {
  1521. int size = 0;
  1522. size += values_.CalculateSize(_map_values_codec);
  1523. return size;
  1524. }
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1526. public void MergeFrom(MasterStoreNotify other) {
  1527. if (other == null) {
  1528. return;
  1529. }
  1530. values_.Add(other.values_);
  1531. }
  1532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1533. public void MergeFrom(pb::CodedInputStream input) {
  1534. uint tag;
  1535. while ((tag = input.ReadTag()) != 0) {
  1536. switch(tag) {
  1537. default:
  1538. input.SkipLastField();
  1539. break;
  1540. case 10: {
  1541. values_.AddEntriesFrom(input, _map_values_codec);
  1542. break;
  1543. }
  1544. }
  1545. }
  1546. }
  1547. }
  1548. /// <summary>
  1549. /// 主机读取状态
  1550. /// </summary>
  1551. public sealed partial class MasterLoadRequest : pb::IMessage<MasterLoadRequest> {
  1552. private static readonly pb::MessageParser<MasterLoadRequest> _parser = new pb::MessageParser<MasterLoadRequest>(() => new MasterLoadRequest());
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1554. public static pb::MessageParser<MasterLoadRequest> Parser { get { return _parser; } }
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1556. public static pbr::MessageDescriptor Descriptor {
  1557. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[12]; }
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1560. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1561. get { return Descriptor; }
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1564. public MasterLoadRequest() {
  1565. OnConstruction();
  1566. }
  1567. partial void OnConstruction();
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1569. public MasterLoadRequest(MasterLoadRequest other) : this() {
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1572. public MasterLoadRequest Clone() {
  1573. return new MasterLoadRequest(this);
  1574. }
  1575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1576. public override bool Equals(object other) {
  1577. return Equals(other as MasterLoadRequest);
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1580. public bool Equals(MasterLoadRequest other) {
  1581. if (ReferenceEquals(other, null)) {
  1582. return false;
  1583. }
  1584. if (ReferenceEquals(other, this)) {
  1585. return true;
  1586. }
  1587. return true;
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1590. public override int GetHashCode() {
  1591. int hash = 1;
  1592. return hash;
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1595. public override string ToString() {
  1596. return pb::JsonFormatter.ToDiagnosticString(this);
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1599. public void WriteTo(pb::CodedOutputStream output) {
  1600. }
  1601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1602. public int CalculateSize() {
  1603. int size = 0;
  1604. return size;
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1607. public void MergeFrom(MasterLoadRequest other) {
  1608. if (other == null) {
  1609. return;
  1610. }
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1613. public void MergeFrom(pb::CodedInputStream input) {
  1614. uint tag;
  1615. while ((tag = input.ReadTag()) != 0) {
  1616. switch(tag) {
  1617. default:
  1618. input.SkipLastField();
  1619. break;
  1620. }
  1621. }
  1622. }
  1623. }
  1624. /// <summary>
  1625. /// 同步消息响应
  1626. /// </summary>
  1627. public sealed partial class MasterLoadResponse : pb::IMessage<MasterLoadResponse> {
  1628. private static readonly pb::MessageParser<MasterLoadResponse> _parser = new pb::MessageParser<MasterLoadResponse>(() => new MasterLoadResponse());
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1630. public static pb::MessageParser<MasterLoadResponse> Parser { get { return _parser; } }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1632. public static pbr::MessageDescriptor Descriptor {
  1633. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[13]; }
  1634. }
  1635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1636. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1637. get { return Descriptor; }
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1640. public MasterLoadResponse() {
  1641. OnConstruction();
  1642. }
  1643. partial void OnConstruction();
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1645. public MasterLoadResponse(MasterLoadResponse other) : this() {
  1646. Result = other.result_ != null ? other.Result.Clone() : null;
  1647. values_ = other.values_.Clone();
  1648. }
  1649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1650. public MasterLoadResponse Clone() {
  1651. return new MasterLoadResponse(this);
  1652. }
  1653. /// <summary>Field number for the "Result" field.</summary>
  1654. public const int ResultFieldNumber = 1;
  1655. private global::Protos.Result result_;
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1657. public global::Protos.Result Result {
  1658. get { return result_; }
  1659. set {
  1660. result_ = value;
  1661. }
  1662. }
  1663. /// <summary>Field number for the "Values" field.</summary>
  1664. public const int ValuesFieldNumber = 2;
  1665. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1666. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1667. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1669. public pbc::MapField<string, pb::ByteString> Values {
  1670. get { return values_; }
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1673. public override bool Equals(object other) {
  1674. return Equals(other as MasterLoadResponse);
  1675. }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1677. public bool Equals(MasterLoadResponse other) {
  1678. if (ReferenceEquals(other, null)) {
  1679. return false;
  1680. }
  1681. if (ReferenceEquals(other, this)) {
  1682. return true;
  1683. }
  1684. if (!object.Equals(Result, other.Result)) return false;
  1685. if (!Values.Equals(other.Values)) return false;
  1686. return true;
  1687. }
  1688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1689. public override int GetHashCode() {
  1690. int hash = 1;
  1691. if (result_ != null) hash ^= Result.GetHashCode();
  1692. hash ^= Values.GetHashCode();
  1693. return hash;
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1696. public override string ToString() {
  1697. return pb::JsonFormatter.ToDiagnosticString(this);
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1700. public void WriteTo(pb::CodedOutputStream output) {
  1701. if (result_ != null) {
  1702. output.WriteRawTag(10);
  1703. output.WriteMessage(Result);
  1704. }
  1705. values_.WriteTo(output, _map_values_codec);
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1708. public int CalculateSize() {
  1709. int size = 0;
  1710. if (result_ != null) {
  1711. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  1712. }
  1713. size += values_.CalculateSize(_map_values_codec);
  1714. return size;
  1715. }
  1716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1717. public void MergeFrom(MasterLoadResponse other) {
  1718. if (other == null) {
  1719. return;
  1720. }
  1721. if (other.result_ != null) {
  1722. if (result_ == null) {
  1723. result_ = new global::Protos.Result();
  1724. }
  1725. Result.MergeFrom(other.Result);
  1726. }
  1727. values_.Add(other.values_);
  1728. }
  1729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1730. public void MergeFrom(pb::CodedInputStream input) {
  1731. uint tag;
  1732. while ((tag = input.ReadTag()) != 0) {
  1733. switch(tag) {
  1734. default:
  1735. input.SkipLastField();
  1736. break;
  1737. case 10: {
  1738. if (result_ == null) {
  1739. result_ = new global::Protos.Result();
  1740. }
  1741. input.ReadMessage(result_);
  1742. break;
  1743. }
  1744. case 18: {
  1745. values_.AddEntriesFrom(input, _map_values_codec);
  1746. break;
  1747. }
  1748. }
  1749. }
  1750. }
  1751. }
  1752. #endregion
  1753. }
  1754. #endregion Designer generated code