PageRenderTime 81ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/VitaliiSmal.OS.KPIZ.DictionaryServer/Dictionary/gen/Dictionary.cs

https://gitlab.com/vitaliismal/dictionaryServer
C# | 504 lines | 419 code | 76 blank | 9 comment | 82 complexity | 752285afdd32a768533bde242825f9d6 MD5 | raw file
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dictionary.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 Dictionary {
  10. /// <summary>Holder for reflection information generated from dictionary.proto</summary>
  11. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12. public static partial class DictionaryReflection {
  13. #region Descriptor
  14. /// <summary>File descriptor for dictionary.proto</summary>
  15. public static pbr::FileDescriptor Descriptor {
  16. get { return descriptor; }
  17. }
  18. private static pbr::FileDescriptor descriptor;
  19. static DictionaryReflection() {
  20. byte[] descriptorData = global::System.Convert.FromBase64String(
  21. string.Concat(
  22. "ChBkaWN0aW9uYXJ5LnByb3RvEgpkaWN0aW9uYXJ5IlIKDkRpY3Rpb25hcnlO",
  23. "b2RlEh8KA3VrchgBIAEoCzISLmRpY3Rpb25hcnkuVWtyVmFsEh8KA2VuZxgC",
  24. "IAEoCzISLmRpY3Rpb25hcnkuRW5nVmFsIhcKBlVrclZhbBINCgV2YWx1ZRgB",
  25. "IAEoCSIXCgZFbmdWYWwSDQoFdmFsdWUYASABKAkiFQoEQm9vbBINCgV2YWx1",
  26. "ZRgBIAEoCDK0AQoKRGljdGlvbmFyeRI1CglUcmFuc2xhdGUSEi5kaWN0aW9u",
  27. "YXJ5LlVrclZhbBoSLmRpY3Rpb25hcnkuRW5nVmFsIgASNQoDQWRkEhouZGlj",
  28. "dGlvbmFyeS5EaWN0aW9uYXJ5Tm9kZRoQLmRpY3Rpb25hcnkuQm9vbCIAEjgK",
  29. "BlJlbW92ZRIaLmRpY3Rpb25hcnkuRGljdGlvbmFyeU5vZGUaEC5kaWN0aW9u",
  30. "YXJ5LkJvb2wiAEI2Chtpby5ncnBjLmV4YW1wbGVzLmRpY3Rpb25hcnlCD0Rp",
  31. "Y3Rpb25hcnlQcm90b1ABogIDRENUYgZwcm90bzM="));
  32. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  33. new pbr::FileDescriptor[] { },
  34. new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
  35. new pbr::GeneratedCodeInfo(typeof(global::Dictionary.DictionaryNode), global::Dictionary.DictionaryNode.Parser, new[]{ "Ukr", "Eng" }, null, null, null),
  36. new pbr::GeneratedCodeInfo(typeof(global::Dictionary.UkrVal), global::Dictionary.UkrVal.Parser, new[]{ "Value" }, null, null, null),
  37. new pbr::GeneratedCodeInfo(typeof(global::Dictionary.EngVal), global::Dictionary.EngVal.Parser, new[]{ "Value" }, null, null, null),
  38. new pbr::GeneratedCodeInfo(typeof(global::Dictionary.Bool), global::Dictionary.Bool.Parser, new[]{ "Value" }, null, null, null)
  39. }));
  40. }
  41. #endregion
  42. }
  43. #region Messages
  44. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  45. public sealed partial class DictionaryNode : pb::IMessage<DictionaryNode> {
  46. private static readonly pb::MessageParser<DictionaryNode> _parser = new pb::MessageParser<DictionaryNode>(() => new DictionaryNode());
  47. public static pb::MessageParser<DictionaryNode> Parser { get { return _parser; } }
  48. public static pbr::MessageDescriptor Descriptor {
  49. get { return global::Dictionary.DictionaryReflection.Descriptor.MessageTypes[0]; }
  50. }
  51. pbr::MessageDescriptor pb::IMessage.Descriptor {
  52. get { return Descriptor; }
  53. }
  54. public DictionaryNode() {
  55. OnConstruction();
  56. }
  57. partial void OnConstruction();
  58. public DictionaryNode(DictionaryNode other) : this() {
  59. Ukr = other.ukr_ != null ? other.Ukr.Clone() : null;
  60. Eng = other.eng_ != null ? other.Eng.Clone() : null;
  61. }
  62. public DictionaryNode Clone() {
  63. return new DictionaryNode(this);
  64. }
  65. /// <summary>Field number for the "ukr" field.</summary>
  66. public const int UkrFieldNumber = 1;
  67. private global::Dictionary.UkrVal ukr_;
  68. public global::Dictionary.UkrVal Ukr {
  69. get { return ukr_; }
  70. set {
  71. ukr_ = value;
  72. }
  73. }
  74. /// <summary>Field number for the "eng" field.</summary>
  75. public const int EngFieldNumber = 2;
  76. private global::Dictionary.EngVal eng_;
  77. public global::Dictionary.EngVal Eng {
  78. get { return eng_; }
  79. set {
  80. eng_ = value;
  81. }
  82. }
  83. public override bool Equals(object other) {
  84. return Equals(other as DictionaryNode);
  85. }
  86. public bool Equals(DictionaryNode other) {
  87. if (ReferenceEquals(other, null)) {
  88. return false;
  89. }
  90. if (ReferenceEquals(other, this)) {
  91. return true;
  92. }
  93. if (!object.Equals(Ukr, other.Ukr)) return false;
  94. if (!object.Equals(Eng, other.Eng)) return false;
  95. return true;
  96. }
  97. public override int GetHashCode() {
  98. int hash = 1;
  99. if (ukr_ != null) hash ^= Ukr.GetHashCode();
  100. if (eng_ != null) hash ^= Eng.GetHashCode();
  101. return hash;
  102. }
  103. public override string ToString() {
  104. return pb::JsonFormatter.ToDiagnosticString(this);
  105. }
  106. public void WriteTo(pb::CodedOutputStream output) {
  107. if (ukr_ != null) {
  108. output.WriteRawTag(10);
  109. output.WriteMessage(Ukr);
  110. }
  111. if (eng_ != null) {
  112. output.WriteRawTag(18);
  113. output.WriteMessage(Eng);
  114. }
  115. }
  116. public int CalculateSize() {
  117. int size = 0;
  118. if (ukr_ != null) {
  119. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ukr);
  120. }
  121. if (eng_ != null) {
  122. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eng);
  123. }
  124. return size;
  125. }
  126. public void MergeFrom(DictionaryNode other) {
  127. if (other == null) {
  128. return;
  129. }
  130. if (other.ukr_ != null) {
  131. if (ukr_ == null) {
  132. ukr_ = new global::Dictionary.UkrVal();
  133. }
  134. Ukr.MergeFrom(other.Ukr);
  135. }
  136. if (other.eng_ != null) {
  137. if (eng_ == null) {
  138. eng_ = new global::Dictionary.EngVal();
  139. }
  140. Eng.MergeFrom(other.Eng);
  141. }
  142. }
  143. public void MergeFrom(pb::CodedInputStream input) {
  144. uint tag;
  145. while ((tag = input.ReadTag()) != 0) {
  146. switch(tag) {
  147. default:
  148. input.SkipLastField();
  149. break;
  150. case 10: {
  151. if (ukr_ == null) {
  152. ukr_ = new global::Dictionary.UkrVal();
  153. }
  154. input.ReadMessage(ukr_);
  155. break;
  156. }
  157. case 18: {
  158. if (eng_ == null) {
  159. eng_ = new global::Dictionary.EngVal();
  160. }
  161. input.ReadMessage(eng_);
  162. break;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. public sealed partial class UkrVal : pb::IMessage<UkrVal> {
  170. private static readonly pb::MessageParser<UkrVal> _parser = new pb::MessageParser<UkrVal>(() => new UkrVal());
  171. public static pb::MessageParser<UkrVal> Parser { get { return _parser; } }
  172. public static pbr::MessageDescriptor Descriptor {
  173. get { return global::Dictionary.DictionaryReflection.Descriptor.MessageTypes[1]; }
  174. }
  175. pbr::MessageDescriptor pb::IMessage.Descriptor {
  176. get { return Descriptor; }
  177. }
  178. public UkrVal() {
  179. OnConstruction();
  180. }
  181. partial void OnConstruction();
  182. public UkrVal(UkrVal other) : this() {
  183. value_ = other.value_;
  184. }
  185. public UkrVal Clone() {
  186. return new UkrVal(this);
  187. }
  188. /// <summary>Field number for the "value" field.</summary>
  189. public const int ValueFieldNumber = 1;
  190. private string value_ = "";
  191. public string Value {
  192. get { return value_; }
  193. set {
  194. value_ = pb::Preconditions.CheckNotNull(value, "value");
  195. }
  196. }
  197. public override bool Equals(object other) {
  198. return Equals(other as UkrVal);
  199. }
  200. public bool Equals(UkrVal other) {
  201. if (ReferenceEquals(other, null)) {
  202. return false;
  203. }
  204. if (ReferenceEquals(other, this)) {
  205. return true;
  206. }
  207. if (Value != other.Value) return false;
  208. return true;
  209. }
  210. public override int GetHashCode() {
  211. int hash = 1;
  212. if (Value.Length != 0) hash ^= Value.GetHashCode();
  213. return hash;
  214. }
  215. public override string ToString() {
  216. return pb::JsonFormatter.ToDiagnosticString(this);
  217. }
  218. public void WriteTo(pb::CodedOutputStream output) {
  219. if (Value.Length != 0) {
  220. output.WriteRawTag(10);
  221. output.WriteString(Value);
  222. }
  223. }
  224. public int CalculateSize() {
  225. int size = 0;
  226. if (Value.Length != 0) {
  227. size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
  228. }
  229. return size;
  230. }
  231. public void MergeFrom(UkrVal other) {
  232. if (other == null) {
  233. return;
  234. }
  235. if (other.Value.Length != 0) {
  236. Value = other.Value;
  237. }
  238. }
  239. public void MergeFrom(pb::CodedInputStream input) {
  240. uint tag;
  241. while ((tag = input.ReadTag()) != 0) {
  242. switch(tag) {
  243. default:
  244. input.SkipLastField();
  245. break;
  246. case 10: {
  247. Value = input.ReadString();
  248. break;
  249. }
  250. }
  251. }
  252. }
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. public sealed partial class EngVal : pb::IMessage<EngVal> {
  256. private static readonly pb::MessageParser<EngVal> _parser = new pb::MessageParser<EngVal>(() => new EngVal());
  257. public static pb::MessageParser<EngVal> Parser { get { return _parser; } }
  258. public static pbr::MessageDescriptor Descriptor {
  259. get { return global::Dictionary.DictionaryReflection.Descriptor.MessageTypes[2]; }
  260. }
  261. pbr::MessageDescriptor pb::IMessage.Descriptor {
  262. get { return Descriptor; }
  263. }
  264. public EngVal() {
  265. OnConstruction();
  266. }
  267. partial void OnConstruction();
  268. public EngVal(EngVal other) : this() {
  269. value_ = other.value_;
  270. }
  271. public EngVal Clone() {
  272. return new EngVal(this);
  273. }
  274. /// <summary>Field number for the "value" field.</summary>
  275. public const int ValueFieldNumber = 1;
  276. private string value_ = "";
  277. public string Value {
  278. get { return value_; }
  279. set {
  280. value_ = pb::Preconditions.CheckNotNull(value, "value");
  281. }
  282. }
  283. public override bool Equals(object other) {
  284. return Equals(other as EngVal);
  285. }
  286. public bool Equals(EngVal other) {
  287. if (ReferenceEquals(other, null)) {
  288. return false;
  289. }
  290. if (ReferenceEquals(other, this)) {
  291. return true;
  292. }
  293. if (Value != other.Value) return false;
  294. return true;
  295. }
  296. public override int GetHashCode() {
  297. int hash = 1;
  298. if (Value.Length != 0) hash ^= Value.GetHashCode();
  299. return hash;
  300. }
  301. public override string ToString() {
  302. return pb::JsonFormatter.ToDiagnosticString(this);
  303. }
  304. public void WriteTo(pb::CodedOutputStream output) {
  305. if (Value.Length != 0) {
  306. output.WriteRawTag(10);
  307. output.WriteString(Value);
  308. }
  309. }
  310. public int CalculateSize() {
  311. int size = 0;
  312. if (Value.Length != 0) {
  313. size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
  314. }
  315. return size;
  316. }
  317. public void MergeFrom(EngVal other) {
  318. if (other == null) {
  319. return;
  320. }
  321. if (other.Value.Length != 0) {
  322. Value = other.Value;
  323. }
  324. }
  325. public void MergeFrom(pb::CodedInputStream input) {
  326. uint tag;
  327. while ((tag = input.ReadTag()) != 0) {
  328. switch(tag) {
  329. default:
  330. input.SkipLastField();
  331. break;
  332. case 10: {
  333. Value = input.ReadString();
  334. break;
  335. }
  336. }
  337. }
  338. }
  339. }
  340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  341. public sealed partial class Bool : pb::IMessage<Bool> {
  342. private static readonly pb::MessageParser<Bool> _parser = new pb::MessageParser<Bool>(() => new Bool());
  343. public static pb::MessageParser<Bool> Parser { get { return _parser; } }
  344. public static pbr::MessageDescriptor Descriptor {
  345. get { return global::Dictionary.DictionaryReflection.Descriptor.MessageTypes[3]; }
  346. }
  347. pbr::MessageDescriptor pb::IMessage.Descriptor {
  348. get { return Descriptor; }
  349. }
  350. public Bool() {
  351. OnConstruction();
  352. }
  353. partial void OnConstruction();
  354. public Bool(Bool other) : this() {
  355. value_ = other.value_;
  356. }
  357. public Bool Clone() {
  358. return new Bool(this);
  359. }
  360. /// <summary>Field number for the "value" field.</summary>
  361. public const int ValueFieldNumber = 1;
  362. private bool value_;
  363. public bool Value {
  364. get { return value_; }
  365. set {
  366. value_ = value;
  367. }
  368. }
  369. public override bool Equals(object other) {
  370. return Equals(other as Bool);
  371. }
  372. public bool Equals(Bool other) {
  373. if (ReferenceEquals(other, null)) {
  374. return false;
  375. }
  376. if (ReferenceEquals(other, this)) {
  377. return true;
  378. }
  379. if (Value != other.Value) return false;
  380. return true;
  381. }
  382. public override int GetHashCode() {
  383. int hash = 1;
  384. if (Value != false) hash ^= Value.GetHashCode();
  385. return hash;
  386. }
  387. public override string ToString() {
  388. return pb::JsonFormatter.ToDiagnosticString(this);
  389. }
  390. public void WriteTo(pb::CodedOutputStream output) {
  391. if (Value != false) {
  392. output.WriteRawTag(8);
  393. output.WriteBool(Value);
  394. }
  395. }
  396. public int CalculateSize() {
  397. int size = 0;
  398. if (Value != false) {
  399. size += 1 + 1;
  400. }
  401. return size;
  402. }
  403. public void MergeFrom(Bool other) {
  404. if (other == null) {
  405. return;
  406. }
  407. if (other.Value != false) {
  408. Value = other.Value;
  409. }
  410. }
  411. public void MergeFrom(pb::CodedInputStream input) {
  412. uint tag;
  413. while ((tag = input.ReadTag()) != 0) {
  414. switch(tag) {
  415. default:
  416. input.SkipLastField();
  417. break;
  418. case 8: {
  419. Value = input.ReadBool();
  420. break;
  421. }
  422. }
  423. }
  424. }
  425. }
  426. #endregion
  427. }
  428. #endregion Designer generated code