Sync.cs 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625
  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. "cHJvdG8iEAoOUmVzdG9yZVJlcXVlc3Qi1QEKD1Jlc3RvcmVSZXNwb25zZRIf",
  23. "CgVVc2VycxgBIAMoCzIQLnByb3Rvcy5Vc2VySW5mbxIMCgRTdGVwGAIgASgE",
  24. "EjEKBXN0YXRlGAMgAygLMiIucHJvdG9zLlJlc3RvcmVSZXNwb25zZS5TdGF0",
  25. "ZUVudHJ5EgwKBFJvYWQYBCABKAkSEAoIQ3JlYXRlQXQYBSABKAQSEgoKc3Rh",
  26. "Z2VJbmRleBgGIAEoBRosCgpTdGF0ZUVudHJ5EgsKA2tleRgBIAEoCRINCgV2",
  27. "YWx1ZRgCIAEoDDoCOAEiewoLU3luY1JlcXVlc3QSDAoEU3RlcBgBIAEoBBIv",
  28. "CgZWYWx1ZXMYAiADKAsyHy5wcm90b3MuU3luY1JlcXVlc3QuVmFsdWVzRW50",
  29. "cnkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgM",
  30. "OgI4ASKYAQoMU3luY1Jlc3BvbnNlEg4KBlN0YXR1cxgBIAEoCBIMCgRTdGVw",
  31. "GAIgASgEEjAKBlZhbHVlcxgDIAMoCzIgLnByb3Rvcy5TeW5jUmVzcG9uc2Uu",
  32. "VmFsdWVzRW50cnkSCQoBVBgEIAEoBBotCgtWYWx1ZXNFbnRyeRILCgNrZXkY",
  33. "ASABKAkSDQoFdmFsdWUYAiABKAw6AjgBIoYBCg9ETWVzc2FnZVJlcXVlc3QS",
  34. "DwoHVXNlcklEcxgBIAMoDRIzCgZWYWx1ZXMYAiADKAsyIy5wcm90b3MuRE1l",
  35. "c3NhZ2VSZXF1ZXN0LlZhbHVlc0VudHJ5Gi0KC1ZhbHVlc0VudHJ5EgsKA2tl",
  36. "eRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEiMgoQRE1lc3NhZ2VSZXNwb25z",
  37. "ZRIeCgZSZXN1bHQYASABKAsyDi5wcm90b3MuUmVzdWx0Im8KDERNZXNzYWdl",
  38. "UHVzaBIwCgZWYWx1ZXMYASADKAsyIC5wcm90b3MuRE1lc3NhZ2VQdXNoLlZh",
  39. "bHVlc0VudHJ5Gi0KC1ZhbHVlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1",
  40. "ZRgCIAEoDDoCOAEigAEKCFN5bmNQdXNoEgwKBFN0ZXAYASABKAQSLAoGVmFs",
  41. "dWVzGAIgAygLMhwucHJvdG9zLlN5bmNQdXNoLlZhbHVlc0VudHJ5EgkKAVQY",
  42. "AyABKAQaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg",
  43. "ASgMOgI4ASKEAQoKTWFzdGVyUHVzaBIMCgRTdGVwGAEgASgEEi4KBlZhbHVl",
  44. "cxgCIAMoCzIeLnByb3Rvcy5NYXN0ZXJQdXNoLlZhbHVlc0VudHJ5EgkKAVQY",
  45. "AyABKAQaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg",
  46. "ASgMOgI4ASJ9CgxNYXN0ZXJOb3RpZnkSDAoEU3RlcBgBIAEoBBIwCgZWYWx1",
  47. "ZXMYAiADKAsyIC5wcm90b3MuTWFzdGVyTm90aWZ5LlZhbHVlc0VudHJ5Gi0K",
  48. "C1ZhbHVlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEi",
  49. "IQoUTWFzdGVyTm90aWZ5UmVzcG9uc2USCQoBVBgBIAEoBCJ5ChFNYXN0ZXJT",
  50. "dG9yZU5vdGlmeRI1CgZWYWx1ZXMYASADKAsyJS5wcm90b3MuTWFzdGVyU3Rv",
  51. "cmVOb3RpZnkuVmFsdWVzRW50cnkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEg",
  52. "ASgJEg0KBXZhbHVlGAIgASgMOgI4ASITChFNYXN0ZXJMb2FkUmVxdWVzdCKb",
  53. "AQoSTWFzdGVyTG9hZFJlc3BvbnNlEh4KBlJlc3VsdBgBIAEoCzIOLnByb3Rv",
  54. "cy5SZXN1bHQSNgoGVmFsdWVzGAIgAygLMiYucHJvdG9zLk1hc3RlckxvYWRS",
  55. "ZXNwb25zZS5WYWx1ZXNFbnRyeRotCgtWYWx1ZXNFbnRyeRILCgNrZXkYASAB",
  56. "KAkSDQoFdmFsdWUYAiABKAw6AjgBIoUBChBQYXJ0eVN5bmNSZXF1ZXN0EgwK",
  57. "BFN0ZXAYASABKAQSNAoGVmFsdWVzGAIgAygLMiQucHJvdG9zLlBhcnR5U3lu",
  58. "Y1JlcXVlc3QuVmFsdWVzRW50cnkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEg",
  59. "ASgJEg0KBXZhbHVlGAIgASgMOgI4ASKiAQoRUGFydHlTeW5jUmVzcG9uc2US",
  60. "DgoGU3RhdHVzGAEgASgIEgwKBFN0ZXAYAiABKAQSNQoGVmFsdWVzGAMgAygL",
  61. "MiUucHJvdG9zLlBhcnR5U3luY1Jlc3BvbnNlLlZhbHVlc0VudHJ5EgkKAVQY",
  62. "BCABKAQaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg",
  63. "ASgMOgI4ASKKAQoNUGFydHlTeW5jUHVzaBIMCgRTdGVwGAEgASgEEjEKBlZh",
  64. "bHVlcxgCIAMoCzIhLnByb3Rvcy5QYXJ0eVN5bmNQdXNoLlZhbHVlc0VudHJ5",
  65. "EgkKAVQYAyABKAQaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZh",
  66. "bHVlGAIgASgMOgI4AWIGcHJvdG8z"));
  67. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  68. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
  69. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  70. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RestoreRequest), global::Protos.RestoreRequest.Parser, null, null, null, null),
  71. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RestoreResponse), global::Protos.RestoreResponse.Parser, new[]{ "Users", "Step", "State", "Road", "CreateAt", "StageIndex" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  72. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncRequest), global::Protos.SyncRequest.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  73. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncResponse), global::Protos.SyncResponse.Parser, new[]{ "Status", "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  74. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessageRequest), global::Protos.DMessageRequest.Parser, new[]{ "UserIDs", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  75. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessageResponse), global::Protos.DMessageResponse.Parser, new[]{ "Result" }, null, null, null),
  76. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessagePush), global::Protos.DMessagePush.Parser, new[]{ "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  77. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncPush), global::Protos.SyncPush.Parser, new[]{ "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  78. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterPush), global::Protos.MasterPush.Parser, new[]{ "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  79. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterNotify), global::Protos.MasterNotify.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  80. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterNotifyResponse), global::Protos.MasterNotifyResponse.Parser, new[]{ "T" }, null, null, null),
  81. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterStoreNotify), global::Protos.MasterStoreNotify.Parser, new[]{ "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  82. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterLoadRequest), global::Protos.MasterLoadRequest.Parser, null, null, null, null),
  83. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterLoadResponse), global::Protos.MasterLoadResponse.Parser, new[]{ "Result", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  84. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.PartySyncRequest), global::Protos.PartySyncRequest.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  85. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.PartySyncResponse), global::Protos.PartySyncResponse.Parser, new[]{ "Status", "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  86. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.PartySyncPush), global::Protos.PartySyncPush.Parser, new[]{ "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
  87. }));
  88. }
  89. #endregion
  90. }
  91. #region Messages
  92. /// <summary>
  93. /// 载入游戏请求
  94. /// </summary>
  95. public sealed partial class RestoreRequest : pb::IMessage<RestoreRequest> {
  96. private static readonly pb::MessageParser<RestoreRequest> _parser = new pb::MessageParser<RestoreRequest>(() => new RestoreRequest());
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  98. public static pb::MessageParser<RestoreRequest> Parser { get { return _parser; } }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  100. public static pbr::MessageDescriptor Descriptor {
  101. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[0]; }
  102. }
  103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  104. pbr::MessageDescriptor pb::IMessage.Descriptor {
  105. get { return Descriptor; }
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  108. public RestoreRequest() {
  109. OnConstruction();
  110. }
  111. partial void OnConstruction();
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. public RestoreRequest(RestoreRequest other) : this() {
  114. }
  115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  116. public RestoreRequest Clone() {
  117. return new RestoreRequest(this);
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  120. public override bool Equals(object other) {
  121. return Equals(other as RestoreRequest);
  122. }
  123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  124. public bool Equals(RestoreRequest other) {
  125. if (ReferenceEquals(other, null)) {
  126. return false;
  127. }
  128. if (ReferenceEquals(other, this)) {
  129. return true;
  130. }
  131. return true;
  132. }
  133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  134. public override int GetHashCode() {
  135. int hash = 1;
  136. return hash;
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  139. public override string ToString() {
  140. return pb::JsonFormatter.ToDiagnosticString(this);
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. public void WriteTo(pb::CodedOutputStream output) {
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  146. public int CalculateSize() {
  147. int size = 0;
  148. return size;
  149. }
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  151. public void MergeFrom(RestoreRequest other) {
  152. if (other == null) {
  153. return;
  154. }
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  157. public void MergeFrom(pb::CodedInputStream input) {
  158. uint tag;
  159. while ((tag = input.ReadTag()) != 0) {
  160. switch(tag) {
  161. default:
  162. input.SkipLastField();
  163. break;
  164. }
  165. }
  166. }
  167. }
  168. /// <summary>
  169. /// 载入游戏响应
  170. /// </summary>
  171. public sealed partial class RestoreResponse : pb::IMessage<RestoreResponse> {
  172. private static readonly pb::MessageParser<RestoreResponse> _parser = new pb::MessageParser<RestoreResponse>(() => new RestoreResponse());
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  174. public static pb::MessageParser<RestoreResponse> Parser { get { return _parser; } }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. public static pbr::MessageDescriptor Descriptor {
  177. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[1]; }
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  180. pbr::MessageDescriptor pb::IMessage.Descriptor {
  181. get { return Descriptor; }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  184. public RestoreResponse() {
  185. OnConstruction();
  186. }
  187. partial void OnConstruction();
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  189. public RestoreResponse(RestoreResponse other) : this() {
  190. users_ = other.users_.Clone();
  191. step_ = other.step_;
  192. state_ = other.state_.Clone();
  193. road_ = other.road_;
  194. createAt_ = other.createAt_;
  195. stageIndex_ = other.stageIndex_;
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  198. public RestoreResponse Clone() {
  199. return new RestoreResponse(this);
  200. }
  201. /// <summary>Field number for the "Users" field.</summary>
  202. public const int UsersFieldNumber = 1;
  203. private static readonly pb::FieldCodec<global::Protos.UserInfo> _repeated_users_codec
  204. = pb::FieldCodec.ForMessage(10, global::Protos.UserInfo.Parser);
  205. private readonly pbc::RepeatedField<global::Protos.UserInfo> users_ = new pbc::RepeatedField<global::Protos.UserInfo>();
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  207. public pbc::RepeatedField<global::Protos.UserInfo> Users {
  208. get { return users_; }
  209. }
  210. /// <summary>Field number for the "Step" field.</summary>
  211. public const int StepFieldNumber = 2;
  212. private ulong step_;
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public ulong Step {
  215. get { return step_; }
  216. set {
  217. step_ = value;
  218. }
  219. }
  220. /// <summary>Field number for the "state" field.</summary>
  221. public const int StateFieldNumber = 3;
  222. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_state_codec
  223. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 26);
  224. private readonly pbc::MapField<string, pb::ByteString> state_ = new pbc::MapField<string, pb::ByteString>();
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  226. public pbc::MapField<string, pb::ByteString> State {
  227. get { return state_; }
  228. }
  229. /// <summary>Field number for the "Road" field.</summary>
  230. public const int RoadFieldNumber = 4;
  231. private string road_ = "";
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  233. public string Road {
  234. get { return road_; }
  235. set {
  236. road_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  237. }
  238. }
  239. /// <summary>Field number for the "CreateAt" field.</summary>
  240. public const int CreateAtFieldNumber = 5;
  241. private ulong createAt_;
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  243. public ulong CreateAt {
  244. get { return createAt_; }
  245. set {
  246. createAt_ = value;
  247. }
  248. }
  249. /// <summary>Field number for the "stageIndex" field.</summary>
  250. public const int StageIndexFieldNumber = 6;
  251. private int stageIndex_;
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  253. public int StageIndex {
  254. get { return stageIndex_; }
  255. set {
  256. stageIndex_ = value;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  260. public override bool Equals(object other) {
  261. return Equals(other as RestoreResponse);
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  264. public bool Equals(RestoreResponse other) {
  265. if (ReferenceEquals(other, null)) {
  266. return false;
  267. }
  268. if (ReferenceEquals(other, this)) {
  269. return true;
  270. }
  271. if(!users_.Equals(other.users_)) return false;
  272. if (Step != other.Step) return false;
  273. if (!State.Equals(other.State)) return false;
  274. if (Road != other.Road) return false;
  275. if (CreateAt != other.CreateAt) return false;
  276. if (StageIndex != other.StageIndex) return false;
  277. return true;
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  280. public override int GetHashCode() {
  281. int hash = 1;
  282. hash ^= users_.GetHashCode();
  283. if (Step != 0UL) hash ^= Step.GetHashCode();
  284. hash ^= State.GetHashCode();
  285. if (Road.Length != 0) hash ^= Road.GetHashCode();
  286. if (CreateAt != 0UL) hash ^= CreateAt.GetHashCode();
  287. if (StageIndex != 0) hash ^= StageIndex.GetHashCode();
  288. return hash;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  291. public override string ToString() {
  292. return pb::JsonFormatter.ToDiagnosticString(this);
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  295. public void WriteTo(pb::CodedOutputStream output) {
  296. users_.WriteTo(output, _repeated_users_codec);
  297. if (Step != 0UL) {
  298. output.WriteRawTag(16);
  299. output.WriteUInt64(Step);
  300. }
  301. state_.WriteTo(output, _map_state_codec);
  302. if (Road.Length != 0) {
  303. output.WriteRawTag(34);
  304. output.WriteString(Road);
  305. }
  306. if (CreateAt != 0UL) {
  307. output.WriteRawTag(40);
  308. output.WriteUInt64(CreateAt);
  309. }
  310. if (StageIndex != 0) {
  311. output.WriteRawTag(48);
  312. output.WriteInt32(StageIndex);
  313. }
  314. }
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  316. public int CalculateSize() {
  317. int size = 0;
  318. size += users_.CalculateSize(_repeated_users_codec);
  319. if (Step != 0UL) {
  320. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  321. }
  322. size += state_.CalculateSize(_map_state_codec);
  323. if (Road.Length != 0) {
  324. size += 1 + pb::CodedOutputStream.ComputeStringSize(Road);
  325. }
  326. if (CreateAt != 0UL) {
  327. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateAt);
  328. }
  329. if (StageIndex != 0) {
  330. size += 1 + pb::CodedOutputStream.ComputeInt32Size(StageIndex);
  331. }
  332. return size;
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  335. public void MergeFrom(RestoreResponse other) {
  336. if (other == null) {
  337. return;
  338. }
  339. users_.Add(other.users_);
  340. if (other.Step != 0UL) {
  341. Step = other.Step;
  342. }
  343. state_.Add(other.state_);
  344. if (other.Road.Length != 0) {
  345. Road = other.Road;
  346. }
  347. if (other.CreateAt != 0UL) {
  348. CreateAt = other.CreateAt;
  349. }
  350. if (other.StageIndex != 0) {
  351. StageIndex = other.StageIndex;
  352. }
  353. }
  354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  355. public void MergeFrom(pb::CodedInputStream input) {
  356. uint tag;
  357. while ((tag = input.ReadTag()) != 0) {
  358. switch(tag) {
  359. default:
  360. input.SkipLastField();
  361. break;
  362. case 10: {
  363. users_.AddEntriesFrom(input, _repeated_users_codec);
  364. break;
  365. }
  366. case 16: {
  367. Step = input.ReadUInt64();
  368. break;
  369. }
  370. case 26: {
  371. state_.AddEntriesFrom(input, _map_state_codec);
  372. break;
  373. }
  374. case 34: {
  375. Road = input.ReadString();
  376. break;
  377. }
  378. case 40: {
  379. CreateAt = input.ReadUInt64();
  380. break;
  381. }
  382. case 48: {
  383. StageIndex = input.ReadInt32();
  384. break;
  385. }
  386. }
  387. }
  388. }
  389. }
  390. /// <summary>
  391. /// 同步消息
  392. /// </summary>
  393. public sealed partial class SyncRequest : pb::IMessage<SyncRequest> {
  394. private static readonly pb::MessageParser<SyncRequest> _parser = new pb::MessageParser<SyncRequest>(() => new SyncRequest());
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  396. public static pb::MessageParser<SyncRequest> Parser { get { return _parser; } }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  398. public static pbr::MessageDescriptor Descriptor {
  399. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[2]; }
  400. }
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  402. pbr::MessageDescriptor pb::IMessage.Descriptor {
  403. get { return Descriptor; }
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  406. public SyncRequest() {
  407. OnConstruction();
  408. }
  409. partial void OnConstruction();
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  411. public SyncRequest(SyncRequest other) : this() {
  412. step_ = other.step_;
  413. values_ = other.values_.Clone();
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. public SyncRequest Clone() {
  417. return new SyncRequest(this);
  418. }
  419. /// <summary>Field number for the "Step" field.</summary>
  420. public const int StepFieldNumber = 1;
  421. private ulong step_;
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  423. public ulong Step {
  424. get { return step_; }
  425. set {
  426. step_ = value;
  427. }
  428. }
  429. /// <summary>Field number for the "Values" field.</summary>
  430. public const int ValuesFieldNumber = 2;
  431. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  432. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  433. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  435. public pbc::MapField<string, pb::ByteString> Values {
  436. get { return values_; }
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  439. public override bool Equals(object other) {
  440. return Equals(other as SyncRequest);
  441. }
  442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  443. public bool Equals(SyncRequest other) {
  444. if (ReferenceEquals(other, null)) {
  445. return false;
  446. }
  447. if (ReferenceEquals(other, this)) {
  448. return true;
  449. }
  450. if (Step != other.Step) return false;
  451. if (!Values.Equals(other.Values)) return false;
  452. return true;
  453. }
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  455. public override int GetHashCode() {
  456. int hash = 1;
  457. if (Step != 0UL) hash ^= Step.GetHashCode();
  458. hash ^= Values.GetHashCode();
  459. return hash;
  460. }
  461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  462. public override string ToString() {
  463. return pb::JsonFormatter.ToDiagnosticString(this);
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  466. public void WriteTo(pb::CodedOutputStream output) {
  467. if (Step != 0UL) {
  468. output.WriteRawTag(8);
  469. output.WriteUInt64(Step);
  470. }
  471. values_.WriteTo(output, _map_values_codec);
  472. }
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  474. public int CalculateSize() {
  475. int size = 0;
  476. if (Step != 0UL) {
  477. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  478. }
  479. size += values_.CalculateSize(_map_values_codec);
  480. return size;
  481. }
  482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  483. public void MergeFrom(SyncRequest other) {
  484. if (other == null) {
  485. return;
  486. }
  487. if (other.Step != 0UL) {
  488. Step = other.Step;
  489. }
  490. values_.Add(other.values_);
  491. }
  492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  493. public void MergeFrom(pb::CodedInputStream input) {
  494. uint tag;
  495. while ((tag = input.ReadTag()) != 0) {
  496. switch(tag) {
  497. default:
  498. input.SkipLastField();
  499. break;
  500. case 8: {
  501. Step = input.ReadUInt64();
  502. break;
  503. }
  504. case 18: {
  505. values_.AddEntriesFrom(input, _map_values_codec);
  506. break;
  507. }
  508. }
  509. }
  510. }
  511. }
  512. /// <summary>
  513. /// 同步消息响应
  514. /// </summary>
  515. public sealed partial class SyncResponse : pb::IMessage<SyncResponse> {
  516. private static readonly pb::MessageParser<SyncResponse> _parser = new pb::MessageParser<SyncResponse>(() => new SyncResponse());
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  518. public static pb::MessageParser<SyncResponse> Parser { get { return _parser; } }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  520. public static pbr::MessageDescriptor Descriptor {
  521. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[3]; }
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  524. pbr::MessageDescriptor pb::IMessage.Descriptor {
  525. get { return Descriptor; }
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  528. public SyncResponse() {
  529. OnConstruction();
  530. }
  531. partial void OnConstruction();
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  533. public SyncResponse(SyncResponse other) : this() {
  534. status_ = other.status_;
  535. step_ = other.step_;
  536. values_ = other.values_.Clone();
  537. t_ = other.t_;
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  540. public SyncResponse Clone() {
  541. return new SyncResponse(this);
  542. }
  543. /// <summary>Field number for the "Status" field.</summary>
  544. public const int StatusFieldNumber = 1;
  545. private bool status_;
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  547. public bool Status {
  548. get { return status_; }
  549. set {
  550. status_ = value;
  551. }
  552. }
  553. /// <summary>Field number for the "Step" field.</summary>
  554. public const int StepFieldNumber = 2;
  555. private ulong step_;
  556. /// <summary>
  557. /// status=false时才有值
  558. /// </summary>
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  560. public ulong Step {
  561. get { return step_; }
  562. set {
  563. step_ = value;
  564. }
  565. }
  566. /// <summary>Field number for the "Values" field.</summary>
  567. public const int ValuesFieldNumber = 3;
  568. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  569. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 26);
  570. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  571. /// <summary>
  572. /// status=false时才有值
  573. /// </summary>
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  575. public pbc::MapField<string, pb::ByteString> Values {
  576. get { return values_; }
  577. }
  578. /// <summary>Field number for the "T" field.</summary>
  579. public const int TFieldNumber = 4;
  580. private ulong t_;
  581. /// <summary>
  582. /// 服务器收到sync request的时间戳(毫秒)
  583. /// </summary>
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  585. public ulong T {
  586. get { return t_; }
  587. set {
  588. t_ = value;
  589. }
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  592. public override bool Equals(object other) {
  593. return Equals(other as SyncResponse);
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  596. public bool Equals(SyncResponse other) {
  597. if (ReferenceEquals(other, null)) {
  598. return false;
  599. }
  600. if (ReferenceEquals(other, this)) {
  601. return true;
  602. }
  603. if (Status != other.Status) return false;
  604. if (Step != other.Step) return false;
  605. if (!Values.Equals(other.Values)) return false;
  606. if (T != other.T) return false;
  607. return true;
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  610. public override int GetHashCode() {
  611. int hash = 1;
  612. if (Status != false) hash ^= Status.GetHashCode();
  613. if (Step != 0UL) hash ^= Step.GetHashCode();
  614. hash ^= Values.GetHashCode();
  615. if (T != 0UL) hash ^= T.GetHashCode();
  616. return hash;
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  619. public override string ToString() {
  620. return pb::JsonFormatter.ToDiagnosticString(this);
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  623. public void WriteTo(pb::CodedOutputStream output) {
  624. if (Status != false) {
  625. output.WriteRawTag(8);
  626. output.WriteBool(Status);
  627. }
  628. if (Step != 0UL) {
  629. output.WriteRawTag(16);
  630. output.WriteUInt64(Step);
  631. }
  632. values_.WriteTo(output, _map_values_codec);
  633. if (T != 0UL) {
  634. output.WriteRawTag(32);
  635. output.WriteUInt64(T);
  636. }
  637. }
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  639. public int CalculateSize() {
  640. int size = 0;
  641. if (Status != false) {
  642. size += 1 + 1;
  643. }
  644. if (Step != 0UL) {
  645. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  646. }
  647. size += values_.CalculateSize(_map_values_codec);
  648. if (T != 0UL) {
  649. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  650. }
  651. return size;
  652. }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  654. public void MergeFrom(SyncResponse other) {
  655. if (other == null) {
  656. return;
  657. }
  658. if (other.Status != false) {
  659. Status = other.Status;
  660. }
  661. if (other.Step != 0UL) {
  662. Step = other.Step;
  663. }
  664. values_.Add(other.values_);
  665. if (other.T != 0UL) {
  666. T = other.T;
  667. }
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  670. public void MergeFrom(pb::CodedInputStream input) {
  671. uint tag;
  672. while ((tag = input.ReadTag()) != 0) {
  673. switch(tag) {
  674. default:
  675. input.SkipLastField();
  676. break;
  677. case 8: {
  678. Status = input.ReadBool();
  679. break;
  680. }
  681. case 16: {
  682. Step = input.ReadUInt64();
  683. break;
  684. }
  685. case 26: {
  686. values_.AddEntriesFrom(input, _map_values_codec);
  687. break;
  688. }
  689. case 32: {
  690. T = input.ReadUInt64();
  691. break;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. /// <summary>
  698. /// 客户端发送实时消息
  699. /// </summary>
  700. public sealed partial class DMessageRequest : pb::IMessage<DMessageRequest> {
  701. private static readonly pb::MessageParser<DMessageRequest> _parser = new pb::MessageParser<DMessageRequest>(() => new DMessageRequest());
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  703. public static pb::MessageParser<DMessageRequest> Parser { get { return _parser; } }
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  705. public static pbr::MessageDescriptor Descriptor {
  706. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[4]; }
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  709. pbr::MessageDescriptor pb::IMessage.Descriptor {
  710. get { return Descriptor; }
  711. }
  712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  713. public DMessageRequest() {
  714. OnConstruction();
  715. }
  716. partial void OnConstruction();
  717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  718. public DMessageRequest(DMessageRequest other) : this() {
  719. userIDs_ = other.userIDs_.Clone();
  720. values_ = other.values_.Clone();
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  723. public DMessageRequest Clone() {
  724. return new DMessageRequest(this);
  725. }
  726. /// <summary>Field number for the "UserIDs" field.</summary>
  727. public const int UserIDsFieldNumber = 1;
  728. private static readonly pb::FieldCodec<uint> _repeated_userIDs_codec
  729. = pb::FieldCodec.ForUInt32(10);
  730. private readonly pbc::RepeatedField<uint> userIDs_ = new pbc::RepeatedField<uint>();
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  732. public pbc::RepeatedField<uint> UserIDs {
  733. get { return userIDs_; }
  734. }
  735. /// <summary>Field number for the "Values" field.</summary>
  736. public const int ValuesFieldNumber = 2;
  737. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  738. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  739. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  741. public pbc::MapField<string, pb::ByteString> Values {
  742. get { return values_; }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  745. public override bool Equals(object other) {
  746. return Equals(other as DMessageRequest);
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  749. public bool Equals(DMessageRequest other) {
  750. if (ReferenceEquals(other, null)) {
  751. return false;
  752. }
  753. if (ReferenceEquals(other, this)) {
  754. return true;
  755. }
  756. if(!userIDs_.Equals(other.userIDs_)) return false;
  757. if (!Values.Equals(other.Values)) return false;
  758. return true;
  759. }
  760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  761. public override int GetHashCode() {
  762. int hash = 1;
  763. hash ^= userIDs_.GetHashCode();
  764. hash ^= Values.GetHashCode();
  765. return hash;
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  768. public override string ToString() {
  769. return pb::JsonFormatter.ToDiagnosticString(this);
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  772. public void WriteTo(pb::CodedOutputStream output) {
  773. userIDs_.WriteTo(output, _repeated_userIDs_codec);
  774. values_.WriteTo(output, _map_values_codec);
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  777. public int CalculateSize() {
  778. int size = 0;
  779. size += userIDs_.CalculateSize(_repeated_userIDs_codec);
  780. size += values_.CalculateSize(_map_values_codec);
  781. return size;
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  784. public void MergeFrom(DMessageRequest other) {
  785. if (other == null) {
  786. return;
  787. }
  788. userIDs_.Add(other.userIDs_);
  789. values_.Add(other.values_);
  790. }
  791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  792. public void MergeFrom(pb::CodedInputStream input) {
  793. uint tag;
  794. while ((tag = input.ReadTag()) != 0) {
  795. switch(tag) {
  796. default:
  797. input.SkipLastField();
  798. break;
  799. case 10:
  800. case 8: {
  801. userIDs_.AddEntriesFrom(input, _repeated_userIDs_codec);
  802. break;
  803. }
  804. case 18: {
  805. values_.AddEntriesFrom(input, _map_values_codec);
  806. break;
  807. }
  808. }
  809. }
  810. }
  811. }
  812. /// <summary>
  813. /// 服务器响应用户实时消息结果
  814. /// </summary>
  815. public sealed partial class DMessageResponse : pb::IMessage<DMessageResponse> {
  816. private static readonly pb::MessageParser<DMessageResponse> _parser = new pb::MessageParser<DMessageResponse>(() => new DMessageResponse());
  817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  818. public static pb::MessageParser<DMessageResponse> Parser { get { return _parser; } }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  820. public static pbr::MessageDescriptor Descriptor {
  821. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[5]; }
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  824. pbr::MessageDescriptor pb::IMessage.Descriptor {
  825. get { return Descriptor; }
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  828. public DMessageResponse() {
  829. OnConstruction();
  830. }
  831. partial void OnConstruction();
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  833. public DMessageResponse(DMessageResponse other) : this() {
  834. Result = other.result_ != null ? other.Result.Clone() : null;
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  837. public DMessageResponse Clone() {
  838. return new DMessageResponse(this);
  839. }
  840. /// <summary>Field number for the "Result" field.</summary>
  841. public const int ResultFieldNumber = 1;
  842. private global::Protos.Result result_;
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  844. public global::Protos.Result Result {
  845. get { return result_; }
  846. set {
  847. result_ = value;
  848. }
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  851. public override bool Equals(object other) {
  852. return Equals(other as DMessageResponse);
  853. }
  854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  855. public bool Equals(DMessageResponse other) {
  856. if (ReferenceEquals(other, null)) {
  857. return false;
  858. }
  859. if (ReferenceEquals(other, this)) {
  860. return true;
  861. }
  862. if (!object.Equals(Result, other.Result)) return false;
  863. return true;
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  866. public override int GetHashCode() {
  867. int hash = 1;
  868. if (result_ != null) hash ^= Result.GetHashCode();
  869. return hash;
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  872. public override string ToString() {
  873. return pb::JsonFormatter.ToDiagnosticString(this);
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  876. public void WriteTo(pb::CodedOutputStream output) {
  877. if (result_ != null) {
  878. output.WriteRawTag(10);
  879. output.WriteMessage(Result);
  880. }
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  883. public int CalculateSize() {
  884. int size = 0;
  885. if (result_ != null) {
  886. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  887. }
  888. return size;
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  891. public void MergeFrom(DMessageResponse other) {
  892. if (other == null) {
  893. return;
  894. }
  895. if (other.result_ != null) {
  896. if (result_ == null) {
  897. result_ = new global::Protos.Result();
  898. }
  899. Result.MergeFrom(other.Result);
  900. }
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  903. public void MergeFrom(pb::CodedInputStream input) {
  904. uint tag;
  905. while ((tag = input.ReadTag()) != 0) {
  906. switch(tag) {
  907. default:
  908. input.SkipLastField();
  909. break;
  910. case 10: {
  911. if (result_ == null) {
  912. result_ = new global::Protos.Result();
  913. }
  914. input.ReadMessage(result_);
  915. break;
  916. }
  917. }
  918. }
  919. }
  920. }
  921. /// <summary>
  922. /// 服务器转发实时消息
  923. /// </summary>
  924. public sealed partial class DMessagePush : pb::IMessage<DMessagePush> {
  925. private static readonly pb::MessageParser<DMessagePush> _parser = new pb::MessageParser<DMessagePush>(() => new DMessagePush());
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  927. public static pb::MessageParser<DMessagePush> Parser { get { return _parser; } }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  929. public static pbr::MessageDescriptor Descriptor {
  930. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[6]; }
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  933. pbr::MessageDescriptor pb::IMessage.Descriptor {
  934. get { return Descriptor; }
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  937. public DMessagePush() {
  938. OnConstruction();
  939. }
  940. partial void OnConstruction();
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  942. public DMessagePush(DMessagePush other) : this() {
  943. values_ = other.values_.Clone();
  944. }
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  946. public DMessagePush Clone() {
  947. return new DMessagePush(this);
  948. }
  949. /// <summary>Field number for the "Values" field.</summary>
  950. public const int ValuesFieldNumber = 1;
  951. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  952. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 10);
  953. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  955. public pbc::MapField<string, pb::ByteString> Values {
  956. get { return values_; }
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  959. public override bool Equals(object other) {
  960. return Equals(other as DMessagePush);
  961. }
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  963. public bool Equals(DMessagePush other) {
  964. if (ReferenceEquals(other, null)) {
  965. return false;
  966. }
  967. if (ReferenceEquals(other, this)) {
  968. return true;
  969. }
  970. if (!Values.Equals(other.Values)) return false;
  971. return true;
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  974. public override int GetHashCode() {
  975. int hash = 1;
  976. hash ^= Values.GetHashCode();
  977. return hash;
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  980. public override string ToString() {
  981. return pb::JsonFormatter.ToDiagnosticString(this);
  982. }
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  984. public void WriteTo(pb::CodedOutputStream output) {
  985. values_.WriteTo(output, _map_values_codec);
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  988. public int CalculateSize() {
  989. int size = 0;
  990. size += values_.CalculateSize(_map_values_codec);
  991. return size;
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  994. public void MergeFrom(DMessagePush other) {
  995. if (other == null) {
  996. return;
  997. }
  998. values_.Add(other.values_);
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1001. public void MergeFrom(pb::CodedInputStream input) {
  1002. uint tag;
  1003. while ((tag = input.ReadTag()) != 0) {
  1004. switch(tag) {
  1005. default:
  1006. input.SkipLastField();
  1007. break;
  1008. case 10: {
  1009. values_.AddEntriesFrom(input, _map_values_codec);
  1010. break;
  1011. }
  1012. }
  1013. }
  1014. }
  1015. }
  1016. /// <summary>
  1017. /// 同步消息推送
  1018. /// </summary>
  1019. public sealed partial class SyncPush : pb::IMessage<SyncPush> {
  1020. private static readonly pb::MessageParser<SyncPush> _parser = new pb::MessageParser<SyncPush>(() => new SyncPush());
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1022. public static pb::MessageParser<SyncPush> Parser { get { return _parser; } }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1024. public static pbr::MessageDescriptor Descriptor {
  1025. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[7]; }
  1026. }
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1028. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1029. get { return Descriptor; }
  1030. }
  1031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1032. public SyncPush() {
  1033. OnConstruction();
  1034. }
  1035. partial void OnConstruction();
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1037. public SyncPush(SyncPush other) : this() {
  1038. step_ = other.step_;
  1039. values_ = other.values_.Clone();
  1040. t_ = other.t_;
  1041. }
  1042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1043. public SyncPush Clone() {
  1044. return new SyncPush(this);
  1045. }
  1046. /// <summary>Field number for the "Step" field.</summary>
  1047. public const int StepFieldNumber = 1;
  1048. private ulong step_;
  1049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1050. public ulong Step {
  1051. get { return step_; }
  1052. set {
  1053. step_ = value;
  1054. }
  1055. }
  1056. /// <summary>Field number for the "Values" field.</summary>
  1057. public const int ValuesFieldNumber = 2;
  1058. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1059. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1060. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1062. public pbc::MapField<string, pb::ByteString> Values {
  1063. get { return values_; }
  1064. }
  1065. /// <summary>Field number for the "T" field.</summary>
  1066. public const int TFieldNumber = 3;
  1067. private ulong t_;
  1068. /// <summary>
  1069. /// 服务器开始推送时间戳
  1070. /// </summary>
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1072. public ulong T {
  1073. get { return t_; }
  1074. set {
  1075. t_ = value;
  1076. }
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1079. public override bool Equals(object other) {
  1080. return Equals(other as SyncPush);
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1083. public bool Equals(SyncPush other) {
  1084. if (ReferenceEquals(other, null)) {
  1085. return false;
  1086. }
  1087. if (ReferenceEquals(other, this)) {
  1088. return true;
  1089. }
  1090. if (Step != other.Step) return false;
  1091. if (!Values.Equals(other.Values)) return false;
  1092. if (T != other.T) return false;
  1093. return true;
  1094. }
  1095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1096. public override int GetHashCode() {
  1097. int hash = 1;
  1098. if (Step != 0UL) hash ^= Step.GetHashCode();
  1099. hash ^= Values.GetHashCode();
  1100. if (T != 0UL) hash ^= T.GetHashCode();
  1101. return hash;
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1104. public override string ToString() {
  1105. return pb::JsonFormatter.ToDiagnosticString(this);
  1106. }
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1108. public void WriteTo(pb::CodedOutputStream output) {
  1109. if (Step != 0UL) {
  1110. output.WriteRawTag(8);
  1111. output.WriteUInt64(Step);
  1112. }
  1113. values_.WriteTo(output, _map_values_codec);
  1114. if (T != 0UL) {
  1115. output.WriteRawTag(24);
  1116. output.WriteUInt64(T);
  1117. }
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1120. public int CalculateSize() {
  1121. int size = 0;
  1122. if (Step != 0UL) {
  1123. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  1124. }
  1125. size += values_.CalculateSize(_map_values_codec);
  1126. if (T != 0UL) {
  1127. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  1128. }
  1129. return size;
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1132. public void MergeFrom(SyncPush other) {
  1133. if (other == null) {
  1134. return;
  1135. }
  1136. if (other.Step != 0UL) {
  1137. Step = other.Step;
  1138. }
  1139. values_.Add(other.values_);
  1140. if (other.T != 0UL) {
  1141. T = other.T;
  1142. }
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1145. public void MergeFrom(pb::CodedInputStream input) {
  1146. uint tag;
  1147. while ((tag = input.ReadTag()) != 0) {
  1148. switch(tag) {
  1149. default:
  1150. input.SkipLastField();
  1151. break;
  1152. case 8: {
  1153. Step = input.ReadUInt64();
  1154. break;
  1155. }
  1156. case 18: {
  1157. values_.AddEntriesFrom(input, _map_values_codec);
  1158. break;
  1159. }
  1160. case 24: {
  1161. T = input.ReadUInt64();
  1162. break;
  1163. }
  1164. }
  1165. }
  1166. }
  1167. }
  1168. /// <summary>
  1169. /// 服务器合并用户操作给master
  1170. /// </summary>
  1171. public sealed partial class MasterPush : pb::IMessage<MasterPush> {
  1172. private static readonly pb::MessageParser<MasterPush> _parser = new pb::MessageParser<MasterPush>(() => new MasterPush());
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1174. public static pb::MessageParser<MasterPush> Parser { get { return _parser; } }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1176. public static pbr::MessageDescriptor Descriptor {
  1177. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[8]; }
  1178. }
  1179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1180. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1181. get { return Descriptor; }
  1182. }
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1184. public MasterPush() {
  1185. OnConstruction();
  1186. }
  1187. partial void OnConstruction();
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1189. public MasterPush(MasterPush other) : this() {
  1190. step_ = other.step_;
  1191. values_ = other.values_.Clone();
  1192. t_ = other.t_;
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1195. public MasterPush Clone() {
  1196. return new MasterPush(this);
  1197. }
  1198. /// <summary>Field number for the "Step" field.</summary>
  1199. public const int StepFieldNumber = 1;
  1200. private ulong step_;
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1202. public ulong Step {
  1203. get { return step_; }
  1204. set {
  1205. step_ = value;
  1206. }
  1207. }
  1208. /// <summary>Field number for the "Values" field.</summary>
  1209. public const int ValuesFieldNumber = 2;
  1210. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1211. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1212. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1214. public pbc::MapField<string, pb::ByteString> Values {
  1215. get { return values_; }
  1216. }
  1217. /// <summary>Field number for the "T" field.</summary>
  1218. public const int TFieldNumber = 3;
  1219. private ulong t_;
  1220. /// <summary>
  1221. /// 服务器开始推送时间戳
  1222. /// </summary>
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1224. public ulong T {
  1225. get { return t_; }
  1226. set {
  1227. t_ = value;
  1228. }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1231. public override bool Equals(object other) {
  1232. return Equals(other as MasterPush);
  1233. }
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1235. public bool Equals(MasterPush other) {
  1236. if (ReferenceEquals(other, null)) {
  1237. return false;
  1238. }
  1239. if (ReferenceEquals(other, this)) {
  1240. return true;
  1241. }
  1242. if (Step != other.Step) return false;
  1243. if (!Values.Equals(other.Values)) return false;
  1244. if (T != other.T) return false;
  1245. return true;
  1246. }
  1247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1248. public override int GetHashCode() {
  1249. int hash = 1;
  1250. if (Step != 0UL) hash ^= Step.GetHashCode();
  1251. hash ^= Values.GetHashCode();
  1252. if (T != 0UL) hash ^= T.GetHashCode();
  1253. return hash;
  1254. }
  1255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1256. public override string ToString() {
  1257. return pb::JsonFormatter.ToDiagnosticString(this);
  1258. }
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1260. public void WriteTo(pb::CodedOutputStream output) {
  1261. if (Step != 0UL) {
  1262. output.WriteRawTag(8);
  1263. output.WriteUInt64(Step);
  1264. }
  1265. values_.WriteTo(output, _map_values_codec);
  1266. if (T != 0UL) {
  1267. output.WriteRawTag(24);
  1268. output.WriteUInt64(T);
  1269. }
  1270. }
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1272. public int CalculateSize() {
  1273. int size = 0;
  1274. if (Step != 0UL) {
  1275. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  1276. }
  1277. size += values_.CalculateSize(_map_values_codec);
  1278. if (T != 0UL) {
  1279. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  1280. }
  1281. return size;
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1284. public void MergeFrom(MasterPush other) {
  1285. if (other == null) {
  1286. return;
  1287. }
  1288. if (other.Step != 0UL) {
  1289. Step = other.Step;
  1290. }
  1291. values_.Add(other.values_);
  1292. if (other.T != 0UL) {
  1293. T = other.T;
  1294. }
  1295. }
  1296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1297. public void MergeFrom(pb::CodedInputStream input) {
  1298. uint tag;
  1299. while ((tag = input.ReadTag()) != 0) {
  1300. switch(tag) {
  1301. default:
  1302. input.SkipLastField();
  1303. break;
  1304. case 8: {
  1305. Step = input.ReadUInt64();
  1306. break;
  1307. }
  1308. case 18: {
  1309. values_.AddEntriesFrom(input, _map_values_codec);
  1310. break;
  1311. }
  1312. case 24: {
  1313. T = input.ReadUInt64();
  1314. break;
  1315. }
  1316. }
  1317. }
  1318. }
  1319. }
  1320. /// <summary>
  1321. /// 主机广播消息给flower
  1322. /// </summary>
  1323. public sealed partial class MasterNotify : pb::IMessage<MasterNotify> {
  1324. private static readonly pb::MessageParser<MasterNotify> _parser = new pb::MessageParser<MasterNotify>(() => new MasterNotify());
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1326. public static pb::MessageParser<MasterNotify> Parser { get { return _parser; } }
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1328. public static pbr::MessageDescriptor Descriptor {
  1329. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[9]; }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1332. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1333. get { return Descriptor; }
  1334. }
  1335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1336. public MasterNotify() {
  1337. OnConstruction();
  1338. }
  1339. partial void OnConstruction();
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1341. public MasterNotify(MasterNotify other) : this() {
  1342. step_ = other.step_;
  1343. values_ = other.values_.Clone();
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1346. public MasterNotify Clone() {
  1347. return new MasterNotify(this);
  1348. }
  1349. /// <summary>Field number for the "Step" field.</summary>
  1350. public const int StepFieldNumber = 1;
  1351. private ulong step_;
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1353. public ulong Step {
  1354. get { return step_; }
  1355. set {
  1356. step_ = value;
  1357. }
  1358. }
  1359. /// <summary>Field number for the "Values" field.</summary>
  1360. public const int ValuesFieldNumber = 2;
  1361. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1362. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1363. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1365. public pbc::MapField<string, pb::ByteString> Values {
  1366. get { return values_; }
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1369. public override bool Equals(object other) {
  1370. return Equals(other as MasterNotify);
  1371. }
  1372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1373. public bool Equals(MasterNotify other) {
  1374. if (ReferenceEquals(other, null)) {
  1375. return false;
  1376. }
  1377. if (ReferenceEquals(other, this)) {
  1378. return true;
  1379. }
  1380. if (Step != other.Step) return false;
  1381. if (!Values.Equals(other.Values)) return false;
  1382. return true;
  1383. }
  1384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1385. public override int GetHashCode() {
  1386. int hash = 1;
  1387. if (Step != 0UL) hash ^= Step.GetHashCode();
  1388. hash ^= Values.GetHashCode();
  1389. return hash;
  1390. }
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1392. public override string ToString() {
  1393. return pb::JsonFormatter.ToDiagnosticString(this);
  1394. }
  1395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1396. public void WriteTo(pb::CodedOutputStream output) {
  1397. if (Step != 0UL) {
  1398. output.WriteRawTag(8);
  1399. output.WriteUInt64(Step);
  1400. }
  1401. values_.WriteTo(output, _map_values_codec);
  1402. }
  1403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1404. public int CalculateSize() {
  1405. int size = 0;
  1406. if (Step != 0UL) {
  1407. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  1408. }
  1409. size += values_.CalculateSize(_map_values_codec);
  1410. return size;
  1411. }
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1413. public void MergeFrom(MasterNotify other) {
  1414. if (other == null) {
  1415. return;
  1416. }
  1417. if (other.Step != 0UL) {
  1418. Step = other.Step;
  1419. }
  1420. values_.Add(other.values_);
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1423. public void MergeFrom(pb::CodedInputStream input) {
  1424. uint tag;
  1425. while ((tag = input.ReadTag()) != 0) {
  1426. switch(tag) {
  1427. default:
  1428. input.SkipLastField();
  1429. break;
  1430. case 8: {
  1431. Step = input.ReadUInt64();
  1432. break;
  1433. }
  1434. case 18: {
  1435. values_.AddEntriesFrom(input, _map_values_codec);
  1436. break;
  1437. }
  1438. }
  1439. }
  1440. }
  1441. }
  1442. /// <summary>
  1443. /// 主机广播消息给flower
  1444. /// </summary>
  1445. public sealed partial class MasterNotifyResponse : pb::IMessage<MasterNotifyResponse> {
  1446. private static readonly pb::MessageParser<MasterNotifyResponse> _parser = new pb::MessageParser<MasterNotifyResponse>(() => new MasterNotifyResponse());
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1448. public static pb::MessageParser<MasterNotifyResponse> Parser { get { return _parser; } }
  1449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1450. public static pbr::MessageDescriptor Descriptor {
  1451. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[10]; }
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1454. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1455. get { return Descriptor; }
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1458. public MasterNotifyResponse() {
  1459. OnConstruction();
  1460. }
  1461. partial void OnConstruction();
  1462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1463. public MasterNotifyResponse(MasterNotifyResponse other) : this() {
  1464. t_ = other.t_;
  1465. }
  1466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1467. public MasterNotifyResponse Clone() {
  1468. return new MasterNotifyResponse(this);
  1469. }
  1470. /// <summary>Field number for the "T" field.</summary>
  1471. public const int TFieldNumber = 1;
  1472. private ulong t_;
  1473. /// <summary>
  1474. /// 服务器收到MasterNotify的时间戳(毫秒)
  1475. /// </summary>
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1477. public ulong T {
  1478. get { return t_; }
  1479. set {
  1480. t_ = value;
  1481. }
  1482. }
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1484. public override bool Equals(object other) {
  1485. return Equals(other as MasterNotifyResponse);
  1486. }
  1487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1488. public bool Equals(MasterNotifyResponse other) {
  1489. if (ReferenceEquals(other, null)) {
  1490. return false;
  1491. }
  1492. if (ReferenceEquals(other, this)) {
  1493. return true;
  1494. }
  1495. if (T != other.T) return false;
  1496. return true;
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1499. public override int GetHashCode() {
  1500. int hash = 1;
  1501. if (T != 0UL) hash ^= T.GetHashCode();
  1502. return hash;
  1503. }
  1504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1505. public override string ToString() {
  1506. return pb::JsonFormatter.ToDiagnosticString(this);
  1507. }
  1508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1509. public void WriteTo(pb::CodedOutputStream output) {
  1510. if (T != 0UL) {
  1511. output.WriteRawTag(8);
  1512. output.WriteUInt64(T);
  1513. }
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1516. public int CalculateSize() {
  1517. int size = 0;
  1518. if (T != 0UL) {
  1519. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  1520. }
  1521. return size;
  1522. }
  1523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1524. public void MergeFrom(MasterNotifyResponse other) {
  1525. if (other == null) {
  1526. return;
  1527. }
  1528. if (other.T != 0UL) {
  1529. T = other.T;
  1530. }
  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 8: {
  1541. T = input.ReadUInt64();
  1542. break;
  1543. }
  1544. }
  1545. }
  1546. }
  1547. }
  1548. /// <summary>
  1549. /// 主机存储状态
  1550. /// </summary>
  1551. public sealed partial class MasterStoreNotify : pb::IMessage<MasterStoreNotify> {
  1552. private static readonly pb::MessageParser<MasterStoreNotify> _parser = new pb::MessageParser<MasterStoreNotify>(() => new MasterStoreNotify());
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1554. public static pb::MessageParser<MasterStoreNotify> Parser { get { return _parser; } }
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1556. public static pbr::MessageDescriptor Descriptor {
  1557. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[11]; }
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1560. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1561. get { return Descriptor; }
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1564. public MasterStoreNotify() {
  1565. OnConstruction();
  1566. }
  1567. partial void OnConstruction();
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1569. public MasterStoreNotify(MasterStoreNotify other) : this() {
  1570. values_ = other.values_.Clone();
  1571. }
  1572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1573. public MasterStoreNotify Clone() {
  1574. return new MasterStoreNotify(this);
  1575. }
  1576. /// <summary>Field number for the "Values" field.</summary>
  1577. public const int ValuesFieldNumber = 1;
  1578. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1579. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 10);
  1580. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1582. public pbc::MapField<string, pb::ByteString> Values {
  1583. get { return values_; }
  1584. }
  1585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1586. public override bool Equals(object other) {
  1587. return Equals(other as MasterStoreNotify);
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1590. public bool Equals(MasterStoreNotify other) {
  1591. if (ReferenceEquals(other, null)) {
  1592. return false;
  1593. }
  1594. if (ReferenceEquals(other, this)) {
  1595. return true;
  1596. }
  1597. if (!Values.Equals(other.Values)) return false;
  1598. return true;
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1601. public override int GetHashCode() {
  1602. int hash = 1;
  1603. hash ^= Values.GetHashCode();
  1604. return hash;
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1607. public override string ToString() {
  1608. return pb::JsonFormatter.ToDiagnosticString(this);
  1609. }
  1610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1611. public void WriteTo(pb::CodedOutputStream output) {
  1612. values_.WriteTo(output, _map_values_codec);
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1615. public int CalculateSize() {
  1616. int size = 0;
  1617. size += values_.CalculateSize(_map_values_codec);
  1618. return size;
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1621. public void MergeFrom(MasterStoreNotify other) {
  1622. if (other == null) {
  1623. return;
  1624. }
  1625. values_.Add(other.values_);
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1628. public void MergeFrom(pb::CodedInputStream input) {
  1629. uint tag;
  1630. while ((tag = input.ReadTag()) != 0) {
  1631. switch(tag) {
  1632. default:
  1633. input.SkipLastField();
  1634. break;
  1635. case 10: {
  1636. values_.AddEntriesFrom(input, _map_values_codec);
  1637. break;
  1638. }
  1639. }
  1640. }
  1641. }
  1642. }
  1643. /// <summary>
  1644. /// 主机读取状态
  1645. /// </summary>
  1646. public sealed partial class MasterLoadRequest : pb::IMessage<MasterLoadRequest> {
  1647. private static readonly pb::MessageParser<MasterLoadRequest> _parser = new pb::MessageParser<MasterLoadRequest>(() => new MasterLoadRequest());
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1649. public static pb::MessageParser<MasterLoadRequest> Parser { get { return _parser; } }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1651. public static pbr::MessageDescriptor Descriptor {
  1652. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[12]; }
  1653. }
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1655. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1656. get { return Descriptor; }
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1659. public MasterLoadRequest() {
  1660. OnConstruction();
  1661. }
  1662. partial void OnConstruction();
  1663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1664. public MasterLoadRequest(MasterLoadRequest other) : this() {
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1667. public MasterLoadRequest Clone() {
  1668. return new MasterLoadRequest(this);
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1671. public override bool Equals(object other) {
  1672. return Equals(other as MasterLoadRequest);
  1673. }
  1674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1675. public bool Equals(MasterLoadRequest other) {
  1676. if (ReferenceEquals(other, null)) {
  1677. return false;
  1678. }
  1679. if (ReferenceEquals(other, this)) {
  1680. return true;
  1681. }
  1682. return true;
  1683. }
  1684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1685. public override int GetHashCode() {
  1686. int hash = 1;
  1687. return hash;
  1688. }
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1690. public override string ToString() {
  1691. return pb::JsonFormatter.ToDiagnosticString(this);
  1692. }
  1693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1694. public void WriteTo(pb::CodedOutputStream output) {
  1695. }
  1696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1697. public int CalculateSize() {
  1698. int size = 0;
  1699. return size;
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1702. public void MergeFrom(MasterLoadRequest other) {
  1703. if (other == null) {
  1704. return;
  1705. }
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1708. public void MergeFrom(pb::CodedInputStream input) {
  1709. uint tag;
  1710. while ((tag = input.ReadTag()) != 0) {
  1711. switch(tag) {
  1712. default:
  1713. input.SkipLastField();
  1714. break;
  1715. }
  1716. }
  1717. }
  1718. }
  1719. /// <summary>
  1720. /// 同步消息响应
  1721. /// </summary>
  1722. public sealed partial class MasterLoadResponse : pb::IMessage<MasterLoadResponse> {
  1723. private static readonly pb::MessageParser<MasterLoadResponse> _parser = new pb::MessageParser<MasterLoadResponse>(() => new MasterLoadResponse());
  1724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1725. public static pb::MessageParser<MasterLoadResponse> Parser { get { return _parser; } }
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1727. public static pbr::MessageDescriptor Descriptor {
  1728. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[13]; }
  1729. }
  1730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1731. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1732. get { return Descriptor; }
  1733. }
  1734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1735. public MasterLoadResponse() {
  1736. OnConstruction();
  1737. }
  1738. partial void OnConstruction();
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1740. public MasterLoadResponse(MasterLoadResponse other) : this() {
  1741. Result = other.result_ != null ? other.Result.Clone() : null;
  1742. values_ = other.values_.Clone();
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1745. public MasterLoadResponse Clone() {
  1746. return new MasterLoadResponse(this);
  1747. }
  1748. /// <summary>Field number for the "Result" field.</summary>
  1749. public const int ResultFieldNumber = 1;
  1750. private global::Protos.Result result_;
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1752. public global::Protos.Result Result {
  1753. get { return result_; }
  1754. set {
  1755. result_ = value;
  1756. }
  1757. }
  1758. /// <summary>Field number for the "Values" field.</summary>
  1759. public const int ValuesFieldNumber = 2;
  1760. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1761. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1762. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1764. public pbc::MapField<string, pb::ByteString> Values {
  1765. get { return values_; }
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1768. public override bool Equals(object other) {
  1769. return Equals(other as MasterLoadResponse);
  1770. }
  1771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1772. public bool Equals(MasterLoadResponse other) {
  1773. if (ReferenceEquals(other, null)) {
  1774. return false;
  1775. }
  1776. if (ReferenceEquals(other, this)) {
  1777. return true;
  1778. }
  1779. if (!object.Equals(Result, other.Result)) return false;
  1780. if (!Values.Equals(other.Values)) return false;
  1781. return true;
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1784. public override int GetHashCode() {
  1785. int hash = 1;
  1786. if (result_ != null) hash ^= Result.GetHashCode();
  1787. hash ^= Values.GetHashCode();
  1788. return hash;
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1791. public override string ToString() {
  1792. return pb::JsonFormatter.ToDiagnosticString(this);
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1795. public void WriteTo(pb::CodedOutputStream output) {
  1796. if (result_ != null) {
  1797. output.WriteRawTag(10);
  1798. output.WriteMessage(Result);
  1799. }
  1800. values_.WriteTo(output, _map_values_codec);
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1803. public int CalculateSize() {
  1804. int size = 0;
  1805. if (result_ != null) {
  1806. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  1807. }
  1808. size += values_.CalculateSize(_map_values_codec);
  1809. return size;
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1812. public void MergeFrom(MasterLoadResponse other) {
  1813. if (other == null) {
  1814. return;
  1815. }
  1816. if (other.result_ != null) {
  1817. if (result_ == null) {
  1818. result_ = new global::Protos.Result();
  1819. }
  1820. Result.MergeFrom(other.Result);
  1821. }
  1822. values_.Add(other.values_);
  1823. }
  1824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1825. public void MergeFrom(pb::CodedInputStream input) {
  1826. uint tag;
  1827. while ((tag = input.ReadTag()) != 0) {
  1828. switch(tag) {
  1829. default:
  1830. input.SkipLastField();
  1831. break;
  1832. case 10: {
  1833. if (result_ == null) {
  1834. result_ = new global::Protos.Result();
  1835. }
  1836. input.ReadMessage(result_);
  1837. break;
  1838. }
  1839. case 18: {
  1840. values_.AddEntriesFrom(input, _map_values_codec);
  1841. break;
  1842. }
  1843. }
  1844. }
  1845. }
  1846. }
  1847. /// <summary>
  1848. /// 同步消息
  1849. /// </summary>
  1850. public sealed partial class PartySyncRequest : pb::IMessage<PartySyncRequest> {
  1851. private static readonly pb::MessageParser<PartySyncRequest> _parser = new pb::MessageParser<PartySyncRequest>(() => new PartySyncRequest());
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1853. public static pb::MessageParser<PartySyncRequest> Parser { get { return _parser; } }
  1854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1855. public static pbr::MessageDescriptor Descriptor {
  1856. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[14]; }
  1857. }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1859. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1860. get { return Descriptor; }
  1861. }
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1863. public PartySyncRequest() {
  1864. OnConstruction();
  1865. }
  1866. partial void OnConstruction();
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1868. public PartySyncRequest(PartySyncRequest other) : this() {
  1869. step_ = other.step_;
  1870. values_ = other.values_.Clone();
  1871. }
  1872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1873. public PartySyncRequest Clone() {
  1874. return new PartySyncRequest(this);
  1875. }
  1876. /// <summary>Field number for the "Step" field.</summary>
  1877. public const int StepFieldNumber = 1;
  1878. private ulong step_;
  1879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1880. public ulong Step {
  1881. get { return step_; }
  1882. set {
  1883. step_ = value;
  1884. }
  1885. }
  1886. /// <summary>Field number for the "Values" field.</summary>
  1887. public const int ValuesFieldNumber = 2;
  1888. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  1889. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  1890. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1892. public pbc::MapField<string, pb::ByteString> Values {
  1893. get { return values_; }
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1896. public override bool Equals(object other) {
  1897. return Equals(other as PartySyncRequest);
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1900. public bool Equals(PartySyncRequest other) {
  1901. if (ReferenceEquals(other, null)) {
  1902. return false;
  1903. }
  1904. if (ReferenceEquals(other, this)) {
  1905. return true;
  1906. }
  1907. if (Step != other.Step) return false;
  1908. if (!Values.Equals(other.Values)) return false;
  1909. return true;
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1912. public override int GetHashCode() {
  1913. int hash = 1;
  1914. if (Step != 0UL) hash ^= Step.GetHashCode();
  1915. hash ^= Values.GetHashCode();
  1916. return hash;
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1919. public override string ToString() {
  1920. return pb::JsonFormatter.ToDiagnosticString(this);
  1921. }
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1923. public void WriteTo(pb::CodedOutputStream output) {
  1924. if (Step != 0UL) {
  1925. output.WriteRawTag(8);
  1926. output.WriteUInt64(Step);
  1927. }
  1928. values_.WriteTo(output, _map_values_codec);
  1929. }
  1930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1931. public int CalculateSize() {
  1932. int size = 0;
  1933. if (Step != 0UL) {
  1934. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  1935. }
  1936. size += values_.CalculateSize(_map_values_codec);
  1937. return size;
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1940. public void MergeFrom(PartySyncRequest other) {
  1941. if (other == null) {
  1942. return;
  1943. }
  1944. if (other.Step != 0UL) {
  1945. Step = other.Step;
  1946. }
  1947. values_.Add(other.values_);
  1948. }
  1949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1950. public void MergeFrom(pb::CodedInputStream input) {
  1951. uint tag;
  1952. while ((tag = input.ReadTag()) != 0) {
  1953. switch(tag) {
  1954. default:
  1955. input.SkipLastField();
  1956. break;
  1957. case 8: {
  1958. Step = input.ReadUInt64();
  1959. break;
  1960. }
  1961. case 18: {
  1962. values_.AddEntriesFrom(input, _map_values_codec);
  1963. break;
  1964. }
  1965. }
  1966. }
  1967. }
  1968. }
  1969. /// <summary>
  1970. /// 同步消息响应
  1971. /// </summary>
  1972. public sealed partial class PartySyncResponse : pb::IMessage<PartySyncResponse> {
  1973. private static readonly pb::MessageParser<PartySyncResponse> _parser = new pb::MessageParser<PartySyncResponse>(() => new PartySyncResponse());
  1974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1975. public static pb::MessageParser<PartySyncResponse> Parser { get { return _parser; } }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1977. public static pbr::MessageDescriptor Descriptor {
  1978. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[15]; }
  1979. }
  1980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1981. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1982. get { return Descriptor; }
  1983. }
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1985. public PartySyncResponse() {
  1986. OnConstruction();
  1987. }
  1988. partial void OnConstruction();
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1990. public PartySyncResponse(PartySyncResponse other) : this() {
  1991. status_ = other.status_;
  1992. step_ = other.step_;
  1993. values_ = other.values_.Clone();
  1994. t_ = other.t_;
  1995. }
  1996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1997. public PartySyncResponse Clone() {
  1998. return new PartySyncResponse(this);
  1999. }
  2000. /// <summary>Field number for the "Status" field.</summary>
  2001. public const int StatusFieldNumber = 1;
  2002. private bool status_;
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2004. public bool Status {
  2005. get { return status_; }
  2006. set {
  2007. status_ = value;
  2008. }
  2009. }
  2010. /// <summary>Field number for the "Step" field.</summary>
  2011. public const int StepFieldNumber = 2;
  2012. private ulong step_;
  2013. /// <summary>
  2014. /// status=false时才有值
  2015. /// </summary>
  2016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2017. public ulong Step {
  2018. get { return step_; }
  2019. set {
  2020. step_ = value;
  2021. }
  2022. }
  2023. /// <summary>Field number for the "Values" field.</summary>
  2024. public const int ValuesFieldNumber = 3;
  2025. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  2026. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 26);
  2027. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  2028. /// <summary>
  2029. /// status=false时才有值
  2030. /// </summary>
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2032. public pbc::MapField<string, pb::ByteString> Values {
  2033. get { return values_; }
  2034. }
  2035. /// <summary>Field number for the "T" field.</summary>
  2036. public const int TFieldNumber = 4;
  2037. private ulong t_;
  2038. /// <summary>
  2039. /// 服务器收到sync request的时间戳(毫秒)
  2040. /// </summary>
  2041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2042. public ulong T {
  2043. get { return t_; }
  2044. set {
  2045. t_ = value;
  2046. }
  2047. }
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2049. public override bool Equals(object other) {
  2050. return Equals(other as PartySyncResponse);
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2053. public bool Equals(PartySyncResponse other) {
  2054. if (ReferenceEquals(other, null)) {
  2055. return false;
  2056. }
  2057. if (ReferenceEquals(other, this)) {
  2058. return true;
  2059. }
  2060. if (Status != other.Status) return false;
  2061. if (Step != other.Step) return false;
  2062. if (!Values.Equals(other.Values)) return false;
  2063. if (T != other.T) return false;
  2064. return true;
  2065. }
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2067. public override int GetHashCode() {
  2068. int hash = 1;
  2069. if (Status != false) hash ^= Status.GetHashCode();
  2070. if (Step != 0UL) hash ^= Step.GetHashCode();
  2071. hash ^= Values.GetHashCode();
  2072. if (T != 0UL) hash ^= T.GetHashCode();
  2073. return hash;
  2074. }
  2075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2076. public override string ToString() {
  2077. return pb::JsonFormatter.ToDiagnosticString(this);
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2080. public void WriteTo(pb::CodedOutputStream output) {
  2081. if (Status != false) {
  2082. output.WriteRawTag(8);
  2083. output.WriteBool(Status);
  2084. }
  2085. if (Step != 0UL) {
  2086. output.WriteRawTag(16);
  2087. output.WriteUInt64(Step);
  2088. }
  2089. values_.WriteTo(output, _map_values_codec);
  2090. if (T != 0UL) {
  2091. output.WriteRawTag(32);
  2092. output.WriteUInt64(T);
  2093. }
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2096. public int CalculateSize() {
  2097. int size = 0;
  2098. if (Status != false) {
  2099. size += 1 + 1;
  2100. }
  2101. if (Step != 0UL) {
  2102. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  2103. }
  2104. size += values_.CalculateSize(_map_values_codec);
  2105. if (T != 0UL) {
  2106. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  2107. }
  2108. return size;
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2111. public void MergeFrom(PartySyncResponse other) {
  2112. if (other == null) {
  2113. return;
  2114. }
  2115. if (other.Status != false) {
  2116. Status = other.Status;
  2117. }
  2118. if (other.Step != 0UL) {
  2119. Step = other.Step;
  2120. }
  2121. values_.Add(other.values_);
  2122. if (other.T != 0UL) {
  2123. T = other.T;
  2124. }
  2125. }
  2126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2127. public void MergeFrom(pb::CodedInputStream input) {
  2128. uint tag;
  2129. while ((tag = input.ReadTag()) != 0) {
  2130. switch(tag) {
  2131. default:
  2132. input.SkipLastField();
  2133. break;
  2134. case 8: {
  2135. Status = input.ReadBool();
  2136. break;
  2137. }
  2138. case 16: {
  2139. Step = input.ReadUInt64();
  2140. break;
  2141. }
  2142. case 26: {
  2143. values_.AddEntriesFrom(input, _map_values_codec);
  2144. break;
  2145. }
  2146. case 32: {
  2147. T = input.ReadUInt64();
  2148. break;
  2149. }
  2150. }
  2151. }
  2152. }
  2153. }
  2154. /// <summary>
  2155. /// 同步消息推送
  2156. /// </summary>
  2157. public sealed partial class PartySyncPush : pb::IMessage<PartySyncPush> {
  2158. private static readonly pb::MessageParser<PartySyncPush> _parser = new pb::MessageParser<PartySyncPush>(() => new PartySyncPush());
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2160. public static pb::MessageParser<PartySyncPush> Parser { get { return _parser; } }
  2161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2162. public static pbr::MessageDescriptor Descriptor {
  2163. get { return global::Protos.SyncReflection.Descriptor.MessageTypes[16]; }
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2166. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2167. get { return Descriptor; }
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2170. public PartySyncPush() {
  2171. OnConstruction();
  2172. }
  2173. partial void OnConstruction();
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2175. public PartySyncPush(PartySyncPush other) : this() {
  2176. step_ = other.step_;
  2177. values_ = other.values_.Clone();
  2178. t_ = other.t_;
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2181. public PartySyncPush Clone() {
  2182. return new PartySyncPush(this);
  2183. }
  2184. /// <summary>Field number for the "Step" field.</summary>
  2185. public const int StepFieldNumber = 1;
  2186. private ulong step_;
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2188. public ulong Step {
  2189. get { return step_; }
  2190. set {
  2191. step_ = value;
  2192. }
  2193. }
  2194. /// <summary>Field number for the "Values" field.</summary>
  2195. public const int ValuesFieldNumber = 2;
  2196. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
  2197. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
  2198. private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2200. public pbc::MapField<string, pb::ByteString> Values {
  2201. get { return values_; }
  2202. }
  2203. /// <summary>Field number for the "T" field.</summary>
  2204. public const int TFieldNumber = 3;
  2205. private ulong t_;
  2206. /// <summary>
  2207. /// 服务器开始推送时间戳
  2208. /// </summary>
  2209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2210. public ulong T {
  2211. get { return t_; }
  2212. set {
  2213. t_ = value;
  2214. }
  2215. }
  2216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2217. public override bool Equals(object other) {
  2218. return Equals(other as PartySyncPush);
  2219. }
  2220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2221. public bool Equals(PartySyncPush other) {
  2222. if (ReferenceEquals(other, null)) {
  2223. return false;
  2224. }
  2225. if (ReferenceEquals(other, this)) {
  2226. return true;
  2227. }
  2228. if (Step != other.Step) return false;
  2229. if (!Values.Equals(other.Values)) return false;
  2230. if (T != other.T) return false;
  2231. return true;
  2232. }
  2233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2234. public override int GetHashCode() {
  2235. int hash = 1;
  2236. if (Step != 0UL) hash ^= Step.GetHashCode();
  2237. hash ^= Values.GetHashCode();
  2238. if (T != 0UL) hash ^= T.GetHashCode();
  2239. return hash;
  2240. }
  2241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2242. public override string ToString() {
  2243. return pb::JsonFormatter.ToDiagnosticString(this);
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2246. public void WriteTo(pb::CodedOutputStream output) {
  2247. if (Step != 0UL) {
  2248. output.WriteRawTag(8);
  2249. output.WriteUInt64(Step);
  2250. }
  2251. values_.WriteTo(output, _map_values_codec);
  2252. if (T != 0UL) {
  2253. output.WriteRawTag(24);
  2254. output.WriteUInt64(T);
  2255. }
  2256. }
  2257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2258. public int CalculateSize() {
  2259. int size = 0;
  2260. if (Step != 0UL) {
  2261. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
  2262. }
  2263. size += values_.CalculateSize(_map_values_codec);
  2264. if (T != 0UL) {
  2265. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  2266. }
  2267. return size;
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2270. public void MergeFrom(PartySyncPush other) {
  2271. if (other == null) {
  2272. return;
  2273. }
  2274. if (other.Step != 0UL) {
  2275. Step = other.Step;
  2276. }
  2277. values_.Add(other.values_);
  2278. if (other.T != 0UL) {
  2279. T = other.T;
  2280. }
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2283. public void MergeFrom(pb::CodedInputStream input) {
  2284. uint tag;
  2285. while ((tag = input.ReadTag()) != 0) {
  2286. switch(tag) {
  2287. default:
  2288. input.SkipLastField();
  2289. break;
  2290. case 8: {
  2291. Step = input.ReadUInt64();
  2292. break;
  2293. }
  2294. case 18: {
  2295. values_.AddEntriesFrom(input, _map_values_codec);
  2296. break;
  2297. }
  2298. case 24: {
  2299. T = input.ReadUInt64();
  2300. break;
  2301. }
  2302. }
  2303. }
  2304. }
  2305. }
  2306. #endregion
  2307. }
  2308. #endregion Designer generated code