Sync.cs 59 KB

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