Lily.cs 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: lily.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021, 8981
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Palm.Lily.V1 {
  12. /// <summary>Holder for reflection information generated from lily.proto</summary>
  13. public static partial class LilyReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for lily.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static LilyReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CgpsaWx5LnByb3RvEgxwYWxtLmxpbHkudjEiQwoERmlsZRIZCgxjb250ZW50",
  24. "X3R5cGUYASABKAlIAIgBARIPCgdwYXlsb2FkGAIgASgMQg8KDV9jb250ZW50",
  25. "X3R5cGUitgEKCkV4Y2VsTW9kZWwSLgoGc2hlZXRzGAEgAygLMh4ucGFsbS5s",
  26. "aWx5LnYxLkV4Y2VsTW9kZWwuU2hlZXQaeAoFU2hlZXQSDAoEbmFtZRgBIAEo",
  27. "CRIyCgVjZWxscxgCIAMoCzIjLnBhbG0ubGlseS52MS5FeGNlbE1vZGVsLlNo",
  28. "ZWV0LkNlbGwaLQoEQ2VsbBILCgNyb3cYASABKA0SCwoDY29sGAIgASgNEgsK",
  29. "A3ZhbBgDIAEoCSJyCgxUZXhUb1JlcXVlc3QSNAoFZmlsZXMYASADKAsyJS5w",
  30. "YWxtLmxpbHkudjEuVGV4VG9SZXF1ZXN0LkZpbGVzRW50cnkaLAoKRmlsZXNF",
  31. "bnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAw6AjgBIhIKEEVwdWJC",
  32. "dWlsZFJlcXVlc3QyfAoFRXhjZWwSNwoFUGFyc2USEi5wYWxtLmxpbHkudjEu",
  33. "RmlsZRoYLnBhbG0ubGlseS52MS5FeGNlbE1vZGVsIgASOgoIR2VuZXJhdGUS",
  34. "GC5wYWxtLmxpbHkudjEuRXhjZWxNb2RlbBoSLnBhbG0ubGlseS52MS5GaWxl",
  35. "IgAyfAoDVGV4EjkKBVRvUGRmEhoucGFsbS5saWx5LnYxLlRleFRvUmVxdWVz",
  36. "dBoSLnBhbG0ubGlseS52MS5GaWxlIgASOgoGVG9Xb3JkEhoucGFsbS5saWx5",
  37. "LnYxLlRleFRvUmVxdWVzdBoSLnBhbG0ubGlseS52MS5GaWxlIgAyRQoERXB1",
  38. "YhI9CgVCdWlsZBIeLnBhbG0ubGlseS52MS5FcHViQnVpbGRSZXF1ZXN0GhIu",
  39. "cGFsbS5saWx5LnYxLkZpbGUiAEIuCipjb20uZ2l0aHViLnNhdHVybl94aXYu",
  40. "cGFsbS5wbHVnaW5zLmxpbHkudjFQAWIGcHJvdG8z"));
  41. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  42. new pbr::FileDescriptor[] { },
  43. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  44. new pbr::GeneratedClrTypeInfo(typeof(global::Palm.Lily.V1.File), global::Palm.Lily.V1.File.Parser, new[]{ "ContentType", "Payload" }, new[]{ "ContentType" }, null, null, null),
  45. new pbr::GeneratedClrTypeInfo(typeof(global::Palm.Lily.V1.ExcelModel), global::Palm.Lily.V1.ExcelModel.Parser, new[]{ "Sheets" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Palm.Lily.V1.ExcelModel.Types.Sheet), global::Palm.Lily.V1.ExcelModel.Types.Sheet.Parser, new[]{ "Name", "Cells" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Palm.Lily.V1.ExcelModel.Types.Sheet.Types.Cell), global::Palm.Lily.V1.ExcelModel.Types.Sheet.Types.Cell.Parser, new[]{ "Row", "Col", "Val" }, null, null, null, null)})}),
  46. new pbr::GeneratedClrTypeInfo(typeof(global::Palm.Lily.V1.TexToRequest), global::Palm.Lily.V1.TexToRequest.Parser, new[]{ "Files" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
  47. new pbr::GeneratedClrTypeInfo(typeof(global::Palm.Lily.V1.EpubBuildRequest), global::Palm.Lily.V1.EpubBuildRequest.Parser, null, null, null, null, null)
  48. }));
  49. }
  50. #endregion
  51. }
  52. #region Messages
  53. public sealed partial class File : pb::IMessage<File>
  54. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  55. , pb::IBufferMessage
  56. #endif
  57. {
  58. private static readonly pb::MessageParser<File> _parser = new pb::MessageParser<File>(() => new File());
  59. private pb::UnknownFieldSet _unknownFields;
  60. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  61. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  62. public static pb::MessageParser<File> Parser { get { return _parser; } }
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  64. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  65. public static pbr::MessageDescriptor Descriptor {
  66. get { return global::Palm.Lily.V1.LilyReflection.Descriptor.MessageTypes[0]; }
  67. }
  68. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  69. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  70. pbr::MessageDescriptor pb::IMessage.Descriptor {
  71. get { return Descriptor; }
  72. }
  73. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  74. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  75. public File() {
  76. OnConstruction();
  77. }
  78. partial void OnConstruction();
  79. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  80. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  81. public File(File other) : this() {
  82. contentType_ = other.contentType_;
  83. payload_ = other.payload_;
  84. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  85. }
  86. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  87. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  88. public File Clone() {
  89. return new File(this);
  90. }
  91. /// <summary>Field number for the "content_type" field.</summary>
  92. public const int ContentTypeFieldNumber = 1;
  93. private readonly static string ContentTypeDefaultValue = "";
  94. private string contentType_;
  95. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  96. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  97. public string ContentType {
  98. get { return contentType_ ?? ContentTypeDefaultValue; }
  99. set {
  100. contentType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  101. }
  102. }
  103. /// <summary>Gets whether the "content_type" field is set</summary>
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  105. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  106. public bool HasContentType {
  107. get { return contentType_ != null; }
  108. }
  109. /// <summary>Clears the value of the "content_type" field</summary>
  110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  111. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  112. public void ClearContentType() {
  113. contentType_ = null;
  114. }
  115. /// <summary>Field number for the "payload" field.</summary>
  116. public const int PayloadFieldNumber = 2;
  117. private pb::ByteString payload_ = pb::ByteString.Empty;
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  119. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  120. public pb::ByteString Payload {
  121. get { return payload_; }
  122. set {
  123. payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  124. }
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  127. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  128. public override bool Equals(object other) {
  129. return Equals(other as File);
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  132. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  133. public bool Equals(File other) {
  134. if (ReferenceEquals(other, null)) {
  135. return false;
  136. }
  137. if (ReferenceEquals(other, this)) {
  138. return true;
  139. }
  140. if (ContentType != other.ContentType) return false;
  141. if (Payload != other.Payload) return false;
  142. return Equals(_unknownFields, other._unknownFields);
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  145. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  146. public override int GetHashCode() {
  147. int hash = 1;
  148. if (HasContentType) hash ^= ContentType.GetHashCode();
  149. if (Payload.Length != 0) hash ^= Payload.GetHashCode();
  150. if (_unknownFields != null) {
  151. hash ^= _unknownFields.GetHashCode();
  152. }
  153. return hash;
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  156. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  157. public override string ToString() {
  158. return pb::JsonFormatter.ToDiagnosticString(this);
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  161. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  162. public void WriteTo(pb::CodedOutputStream output) {
  163. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  164. output.WriteRawMessage(this);
  165. #else
  166. if (HasContentType) {
  167. output.WriteRawTag(10);
  168. output.WriteString(ContentType);
  169. }
  170. if (Payload.Length != 0) {
  171. output.WriteRawTag(18);
  172. output.WriteBytes(Payload);
  173. }
  174. if (_unknownFields != null) {
  175. _unknownFields.WriteTo(output);
  176. }
  177. #endif
  178. }
  179. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  181. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  182. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  183. if (HasContentType) {
  184. output.WriteRawTag(10);
  185. output.WriteString(ContentType);
  186. }
  187. if (Payload.Length != 0) {
  188. output.WriteRawTag(18);
  189. output.WriteBytes(Payload);
  190. }
  191. if (_unknownFields != null) {
  192. _unknownFields.WriteTo(ref output);
  193. }
  194. }
  195. #endif
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  197. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  198. public int CalculateSize() {
  199. int size = 0;
  200. if (HasContentType) {
  201. size += 1 + pb::CodedOutputStream.ComputeStringSize(ContentType);
  202. }
  203. if (Payload.Length != 0) {
  204. size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload);
  205. }
  206. if (_unknownFields != null) {
  207. size += _unknownFields.CalculateSize();
  208. }
  209. return size;
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  212. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  213. public void MergeFrom(File other) {
  214. if (other == null) {
  215. return;
  216. }
  217. if (other.HasContentType) {
  218. ContentType = other.ContentType;
  219. }
  220. if (other.Payload.Length != 0) {
  221. Payload = other.Payload;
  222. }
  223. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  226. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  227. public void MergeFrom(pb::CodedInputStream input) {
  228. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  229. input.ReadRawMessage(this);
  230. #else
  231. uint tag;
  232. while ((tag = input.ReadTag()) != 0) {
  233. switch(tag) {
  234. default:
  235. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  236. break;
  237. case 10: {
  238. ContentType = input.ReadString();
  239. break;
  240. }
  241. case 18: {
  242. Payload = input.ReadBytes();
  243. break;
  244. }
  245. }
  246. }
  247. #endif
  248. }
  249. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  251. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  252. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  253. uint tag;
  254. while ((tag = input.ReadTag()) != 0) {
  255. switch(tag) {
  256. default:
  257. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  258. break;
  259. case 10: {
  260. ContentType = input.ReadString();
  261. break;
  262. }
  263. case 18: {
  264. Payload = input.ReadBytes();
  265. break;
  266. }
  267. }
  268. }
  269. }
  270. #endif
  271. }
  272. public sealed partial class ExcelModel : pb::IMessage<ExcelModel>
  273. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  274. , pb::IBufferMessage
  275. #endif
  276. {
  277. private static readonly pb::MessageParser<ExcelModel> _parser = new pb::MessageParser<ExcelModel>(() => new ExcelModel());
  278. private pb::UnknownFieldSet _unknownFields;
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  280. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  281. public static pb::MessageParser<ExcelModel> Parser { get { return _parser; } }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  283. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  284. public static pbr::MessageDescriptor Descriptor {
  285. get { return global::Palm.Lily.V1.LilyReflection.Descriptor.MessageTypes[1]; }
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  288. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  289. pbr::MessageDescriptor pb::IMessage.Descriptor {
  290. get { return Descriptor; }
  291. }
  292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  293. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  294. public ExcelModel() {
  295. OnConstruction();
  296. }
  297. partial void OnConstruction();
  298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  299. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  300. public ExcelModel(ExcelModel other) : this() {
  301. sheets_ = other.sheets_.Clone();
  302. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  303. }
  304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  305. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  306. public ExcelModel Clone() {
  307. return new ExcelModel(this);
  308. }
  309. /// <summary>Field number for the "sheets" field.</summary>
  310. public const int SheetsFieldNumber = 1;
  311. private static readonly pb::FieldCodec<global::Palm.Lily.V1.ExcelModel.Types.Sheet> _repeated_sheets_codec
  312. = pb::FieldCodec.ForMessage(10, global::Palm.Lily.V1.ExcelModel.Types.Sheet.Parser);
  313. private readonly pbc::RepeatedField<global::Palm.Lily.V1.ExcelModel.Types.Sheet> sheets_ = new pbc::RepeatedField<global::Palm.Lily.V1.ExcelModel.Types.Sheet>();
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  315. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  316. public pbc::RepeatedField<global::Palm.Lily.V1.ExcelModel.Types.Sheet> Sheets {
  317. get { return sheets_; }
  318. }
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  320. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  321. public override bool Equals(object other) {
  322. return Equals(other as ExcelModel);
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  325. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  326. public bool Equals(ExcelModel other) {
  327. if (ReferenceEquals(other, null)) {
  328. return false;
  329. }
  330. if (ReferenceEquals(other, this)) {
  331. return true;
  332. }
  333. if(!sheets_.Equals(other.sheets_)) return false;
  334. return Equals(_unknownFields, other._unknownFields);
  335. }
  336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  337. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  338. public override int GetHashCode() {
  339. int hash = 1;
  340. hash ^= sheets_.GetHashCode();
  341. if (_unknownFields != null) {
  342. hash ^= _unknownFields.GetHashCode();
  343. }
  344. return hash;
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  347. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  348. public override string ToString() {
  349. return pb::JsonFormatter.ToDiagnosticString(this);
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  353. public void WriteTo(pb::CodedOutputStream output) {
  354. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  355. output.WriteRawMessage(this);
  356. #else
  357. sheets_.WriteTo(output, _repeated_sheets_codec);
  358. if (_unknownFields != null) {
  359. _unknownFields.WriteTo(output);
  360. }
  361. #endif
  362. }
  363. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  365. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  366. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  367. sheets_.WriteTo(ref output, _repeated_sheets_codec);
  368. if (_unknownFields != null) {
  369. _unknownFields.WriteTo(ref output);
  370. }
  371. }
  372. #endif
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  374. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  375. public int CalculateSize() {
  376. int size = 0;
  377. size += sheets_.CalculateSize(_repeated_sheets_codec);
  378. if (_unknownFields != null) {
  379. size += _unknownFields.CalculateSize();
  380. }
  381. return size;
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  384. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  385. public void MergeFrom(ExcelModel other) {
  386. if (other == null) {
  387. return;
  388. }
  389. sheets_.Add(other.sheets_);
  390. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  391. }
  392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  393. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  394. public void MergeFrom(pb::CodedInputStream input) {
  395. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  396. input.ReadRawMessage(this);
  397. #else
  398. uint tag;
  399. while ((tag = input.ReadTag()) != 0) {
  400. switch(tag) {
  401. default:
  402. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  403. break;
  404. case 10: {
  405. sheets_.AddEntriesFrom(input, _repeated_sheets_codec);
  406. break;
  407. }
  408. }
  409. }
  410. #endif
  411. }
  412. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  414. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  415. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  416. uint tag;
  417. while ((tag = input.ReadTag()) != 0) {
  418. switch(tag) {
  419. default:
  420. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  421. break;
  422. case 10: {
  423. sheets_.AddEntriesFrom(ref input, _repeated_sheets_codec);
  424. break;
  425. }
  426. }
  427. }
  428. }
  429. #endif
  430. #region Nested types
  431. /// <summary>Container for nested types declared in the ExcelModel message type.</summary>
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  433. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  434. public static partial class Types {
  435. public sealed partial class Sheet : pb::IMessage<Sheet>
  436. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  437. , pb::IBufferMessage
  438. #endif
  439. {
  440. private static readonly pb::MessageParser<Sheet> _parser = new pb::MessageParser<Sheet>(() => new Sheet());
  441. private pb::UnknownFieldSet _unknownFields;
  442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  443. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  444. public static pb::MessageParser<Sheet> Parser { get { return _parser; } }
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  446. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  447. public static pbr::MessageDescriptor Descriptor {
  448. get { return global::Palm.Lily.V1.ExcelModel.Descriptor.NestedTypes[0]; }
  449. }
  450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  451. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  452. pbr::MessageDescriptor pb::IMessage.Descriptor {
  453. get { return Descriptor; }
  454. }
  455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  456. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  457. public Sheet() {
  458. OnConstruction();
  459. }
  460. partial void OnConstruction();
  461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  462. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  463. public Sheet(Sheet other) : this() {
  464. name_ = other.name_;
  465. cells_ = other.cells_.Clone();
  466. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  467. }
  468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  469. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  470. public Sheet Clone() {
  471. return new Sheet(this);
  472. }
  473. /// <summary>Field number for the "name" field.</summary>
  474. public const int NameFieldNumber = 1;
  475. private string name_ = "";
  476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  477. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  478. public string Name {
  479. get { return name_; }
  480. set {
  481. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  482. }
  483. }
  484. /// <summary>Field number for the "cells" field.</summary>
  485. public const int CellsFieldNumber = 2;
  486. private static readonly pb::FieldCodec<global::Palm.Lily.V1.ExcelModel.Types.Sheet.Types.Cell> _repeated_cells_codec
  487. = pb::FieldCodec.ForMessage(18, global::Palm.Lily.V1.ExcelModel.Types.Sheet.Types.Cell.Parser);
  488. private readonly pbc::RepeatedField<global::Palm.Lily.V1.ExcelModel.Types.Sheet.Types.Cell> cells_ = new pbc::RepeatedField<global::Palm.Lily.V1.ExcelModel.Types.Sheet.Types.Cell>();
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  490. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  491. public pbc::RepeatedField<global::Palm.Lily.V1.ExcelModel.Types.Sheet.Types.Cell> Cells {
  492. get { return cells_; }
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  495. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  496. public override bool Equals(object other) {
  497. return Equals(other as Sheet);
  498. }
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  500. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  501. public bool Equals(Sheet other) {
  502. if (ReferenceEquals(other, null)) {
  503. return false;
  504. }
  505. if (ReferenceEquals(other, this)) {
  506. return true;
  507. }
  508. if (Name != other.Name) return false;
  509. if(!cells_.Equals(other.cells_)) return false;
  510. return Equals(_unknownFields, other._unknownFields);
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  513. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  514. public override int GetHashCode() {
  515. int hash = 1;
  516. if (Name.Length != 0) hash ^= Name.GetHashCode();
  517. hash ^= cells_.GetHashCode();
  518. if (_unknownFields != null) {
  519. hash ^= _unknownFields.GetHashCode();
  520. }
  521. return hash;
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  524. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  525. public override string ToString() {
  526. return pb::JsonFormatter.ToDiagnosticString(this);
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  529. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  530. public void WriteTo(pb::CodedOutputStream output) {
  531. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  532. output.WriteRawMessage(this);
  533. #else
  534. if (Name.Length != 0) {
  535. output.WriteRawTag(10);
  536. output.WriteString(Name);
  537. }
  538. cells_.WriteTo(output, _repeated_cells_codec);
  539. if (_unknownFields != null) {
  540. _unknownFields.WriteTo(output);
  541. }
  542. #endif
  543. }
  544. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  546. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  547. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  548. if (Name.Length != 0) {
  549. output.WriteRawTag(10);
  550. output.WriteString(Name);
  551. }
  552. cells_.WriteTo(ref output, _repeated_cells_codec);
  553. if (_unknownFields != null) {
  554. _unknownFields.WriteTo(ref output);
  555. }
  556. }
  557. #endif
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  559. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  560. public int CalculateSize() {
  561. int size = 0;
  562. if (Name.Length != 0) {
  563. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  564. }
  565. size += cells_.CalculateSize(_repeated_cells_codec);
  566. if (_unknownFields != null) {
  567. size += _unknownFields.CalculateSize();
  568. }
  569. return size;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  572. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  573. public void MergeFrom(Sheet other) {
  574. if (other == null) {
  575. return;
  576. }
  577. if (other.Name.Length != 0) {
  578. Name = other.Name;
  579. }
  580. cells_.Add(other.cells_);
  581. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  582. }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  585. public void MergeFrom(pb::CodedInputStream input) {
  586. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  587. input.ReadRawMessage(this);
  588. #else
  589. uint tag;
  590. while ((tag = input.ReadTag()) != 0) {
  591. switch(tag) {
  592. default:
  593. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  594. break;
  595. case 10: {
  596. Name = input.ReadString();
  597. break;
  598. }
  599. case 18: {
  600. cells_.AddEntriesFrom(input, _repeated_cells_codec);
  601. break;
  602. }
  603. }
  604. }
  605. #endif
  606. }
  607. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  609. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  610. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  611. uint tag;
  612. while ((tag = input.ReadTag()) != 0) {
  613. switch(tag) {
  614. default:
  615. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  616. break;
  617. case 10: {
  618. Name = input.ReadString();
  619. break;
  620. }
  621. case 18: {
  622. cells_.AddEntriesFrom(ref input, _repeated_cells_codec);
  623. break;
  624. }
  625. }
  626. }
  627. }
  628. #endif
  629. #region Nested types
  630. /// <summary>Container for nested types declared in the Sheet message type.</summary>
  631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  632. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  633. public static partial class Types {
  634. public sealed partial class Cell : pb::IMessage<Cell>
  635. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  636. , pb::IBufferMessage
  637. #endif
  638. {
  639. private static readonly pb::MessageParser<Cell> _parser = new pb::MessageParser<Cell>(() => new Cell());
  640. private pb::UnknownFieldSet _unknownFields;
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  642. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  643. public static pb::MessageParser<Cell> Parser { get { return _parser; } }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  645. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  646. public static pbr::MessageDescriptor Descriptor {
  647. get { return global::Palm.Lily.V1.ExcelModel.Types.Sheet.Descriptor.NestedTypes[0]; }
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  650. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  651. pbr::MessageDescriptor pb::IMessage.Descriptor {
  652. get { return Descriptor; }
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  655. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  656. public Cell() {
  657. OnConstruction();
  658. }
  659. partial void OnConstruction();
  660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  661. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  662. public Cell(Cell other) : this() {
  663. row_ = other.row_;
  664. col_ = other.col_;
  665. val_ = other.val_;
  666. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  669. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  670. public Cell Clone() {
  671. return new Cell(this);
  672. }
  673. /// <summary>Field number for the "row" field.</summary>
  674. public const int RowFieldNumber = 1;
  675. private uint row_;
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  677. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  678. public uint Row {
  679. get { return row_; }
  680. set {
  681. row_ = value;
  682. }
  683. }
  684. /// <summary>Field number for the "col" field.</summary>
  685. public const int ColFieldNumber = 2;
  686. private uint col_;
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  688. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  689. public uint Col {
  690. get { return col_; }
  691. set {
  692. col_ = value;
  693. }
  694. }
  695. /// <summary>Field number for the "val" field.</summary>
  696. public const int ValFieldNumber = 3;
  697. private string val_ = "";
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  699. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  700. public string Val {
  701. get { return val_; }
  702. set {
  703. val_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  704. }
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  707. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  708. public override bool Equals(object other) {
  709. return Equals(other as Cell);
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  712. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  713. public bool Equals(Cell other) {
  714. if (ReferenceEquals(other, null)) {
  715. return false;
  716. }
  717. if (ReferenceEquals(other, this)) {
  718. return true;
  719. }
  720. if (Row != other.Row) return false;
  721. if (Col != other.Col) return false;
  722. if (Val != other.Val) return false;
  723. return Equals(_unknownFields, other._unknownFields);
  724. }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  726. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  727. public override int GetHashCode() {
  728. int hash = 1;
  729. if (Row != 0) hash ^= Row.GetHashCode();
  730. if (Col != 0) hash ^= Col.GetHashCode();
  731. if (Val.Length != 0) hash ^= Val.GetHashCode();
  732. if (_unknownFields != null) {
  733. hash ^= _unknownFields.GetHashCode();
  734. }
  735. return hash;
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  738. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  739. public override string ToString() {
  740. return pb::JsonFormatter.ToDiagnosticString(this);
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  743. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  744. public void WriteTo(pb::CodedOutputStream output) {
  745. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  746. output.WriteRawMessage(this);
  747. #else
  748. if (Row != 0) {
  749. output.WriteRawTag(8);
  750. output.WriteUInt32(Row);
  751. }
  752. if (Col != 0) {
  753. output.WriteRawTag(16);
  754. output.WriteUInt32(Col);
  755. }
  756. if (Val.Length != 0) {
  757. output.WriteRawTag(26);
  758. output.WriteString(Val);
  759. }
  760. if (_unknownFields != null) {
  761. _unknownFields.WriteTo(output);
  762. }
  763. #endif
  764. }
  765. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  767. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  768. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  769. if (Row != 0) {
  770. output.WriteRawTag(8);
  771. output.WriteUInt32(Row);
  772. }
  773. if (Col != 0) {
  774. output.WriteRawTag(16);
  775. output.WriteUInt32(Col);
  776. }
  777. if (Val.Length != 0) {
  778. output.WriteRawTag(26);
  779. output.WriteString(Val);
  780. }
  781. if (_unknownFields != null) {
  782. _unknownFields.WriteTo(ref output);
  783. }
  784. }
  785. #endif
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  787. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  788. public int CalculateSize() {
  789. int size = 0;
  790. if (Row != 0) {
  791. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Row);
  792. }
  793. if (Col != 0) {
  794. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Col);
  795. }
  796. if (Val.Length != 0) {
  797. size += 1 + pb::CodedOutputStream.ComputeStringSize(Val);
  798. }
  799. if (_unknownFields != null) {
  800. size += _unknownFields.CalculateSize();
  801. }
  802. return size;
  803. }
  804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  805. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  806. public void MergeFrom(Cell other) {
  807. if (other == null) {
  808. return;
  809. }
  810. if (other.Row != 0) {
  811. Row = other.Row;
  812. }
  813. if (other.Col != 0) {
  814. Col = other.Col;
  815. }
  816. if (other.Val.Length != 0) {
  817. Val = other.Val;
  818. }
  819. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  822. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  823. public void MergeFrom(pb::CodedInputStream input) {
  824. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  825. input.ReadRawMessage(this);
  826. #else
  827. uint tag;
  828. while ((tag = input.ReadTag()) != 0) {
  829. switch(tag) {
  830. default:
  831. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  832. break;
  833. case 8: {
  834. Row = input.ReadUInt32();
  835. break;
  836. }
  837. case 16: {
  838. Col = input.ReadUInt32();
  839. break;
  840. }
  841. case 26: {
  842. Val = input.ReadString();
  843. break;
  844. }
  845. }
  846. }
  847. #endif
  848. }
  849. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  851. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  852. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  853. uint tag;
  854. while ((tag = input.ReadTag()) != 0) {
  855. switch(tag) {
  856. default:
  857. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  858. break;
  859. case 8: {
  860. Row = input.ReadUInt32();
  861. break;
  862. }
  863. case 16: {
  864. Col = input.ReadUInt32();
  865. break;
  866. }
  867. case 26: {
  868. Val = input.ReadString();
  869. break;
  870. }
  871. }
  872. }
  873. }
  874. #endif
  875. }
  876. }
  877. #endregion
  878. }
  879. }
  880. #endregion
  881. }
  882. public sealed partial class TexToRequest : pb::IMessage<TexToRequest>
  883. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  884. , pb::IBufferMessage
  885. #endif
  886. {
  887. private static readonly pb::MessageParser<TexToRequest> _parser = new pb::MessageParser<TexToRequest>(() => new TexToRequest());
  888. private pb::UnknownFieldSet _unknownFields;
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  890. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  891. public static pb::MessageParser<TexToRequest> Parser { get { return _parser; } }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  893. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  894. public static pbr::MessageDescriptor Descriptor {
  895. get { return global::Palm.Lily.V1.LilyReflection.Descriptor.MessageTypes[2]; }
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  898. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  899. pbr::MessageDescriptor pb::IMessage.Descriptor {
  900. get { return Descriptor; }
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  903. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  904. public TexToRequest() {
  905. OnConstruction();
  906. }
  907. partial void OnConstruction();
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  909. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  910. public TexToRequest(TexToRequest other) : this() {
  911. files_ = other.files_.Clone();
  912. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  915. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  916. public TexToRequest Clone() {
  917. return new TexToRequest(this);
  918. }
  919. /// <summary>Field number for the "files" field.</summary>
  920. public const int FilesFieldNumber = 1;
  921. private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_files_codec
  922. = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 10);
  923. private readonly pbc::MapField<string, pb::ByteString> files_ = new pbc::MapField<string, pb::ByteString>();
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  925. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  926. public pbc::MapField<string, pb::ByteString> Files {
  927. get { return files_; }
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  930. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  931. public override bool Equals(object other) {
  932. return Equals(other as TexToRequest);
  933. }
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  935. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  936. public bool Equals(TexToRequest other) {
  937. if (ReferenceEquals(other, null)) {
  938. return false;
  939. }
  940. if (ReferenceEquals(other, this)) {
  941. return true;
  942. }
  943. if (!Files.Equals(other.Files)) return false;
  944. return Equals(_unknownFields, other._unknownFields);
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  947. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  948. public override int GetHashCode() {
  949. int hash = 1;
  950. hash ^= Files.GetHashCode();
  951. if (_unknownFields != null) {
  952. hash ^= _unknownFields.GetHashCode();
  953. }
  954. return hash;
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  957. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  958. public override string ToString() {
  959. return pb::JsonFormatter.ToDiagnosticString(this);
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  962. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  963. public void WriteTo(pb::CodedOutputStream output) {
  964. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  965. output.WriteRawMessage(this);
  966. #else
  967. files_.WriteTo(output, _map_files_codec);
  968. if (_unknownFields != null) {
  969. _unknownFields.WriteTo(output);
  970. }
  971. #endif
  972. }
  973. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  975. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  976. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  977. files_.WriteTo(ref output, _map_files_codec);
  978. if (_unknownFields != null) {
  979. _unknownFields.WriteTo(ref output);
  980. }
  981. }
  982. #endif
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  984. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  985. public int CalculateSize() {
  986. int size = 0;
  987. size += files_.CalculateSize(_map_files_codec);
  988. if (_unknownFields != null) {
  989. size += _unknownFields.CalculateSize();
  990. }
  991. return size;
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  994. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  995. public void MergeFrom(TexToRequest other) {
  996. if (other == null) {
  997. return;
  998. }
  999. files_.MergeFrom(other.files_);
  1000. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1003. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1004. public void MergeFrom(pb::CodedInputStream input) {
  1005. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1006. input.ReadRawMessage(this);
  1007. #else
  1008. uint tag;
  1009. while ((tag = input.ReadTag()) != 0) {
  1010. switch(tag) {
  1011. default:
  1012. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1013. break;
  1014. case 10: {
  1015. files_.AddEntriesFrom(input, _map_files_codec);
  1016. break;
  1017. }
  1018. }
  1019. }
  1020. #endif
  1021. }
  1022. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1024. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1025. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1026. uint tag;
  1027. while ((tag = input.ReadTag()) != 0) {
  1028. switch(tag) {
  1029. default:
  1030. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1031. break;
  1032. case 10: {
  1033. files_.AddEntriesFrom(ref input, _map_files_codec);
  1034. break;
  1035. }
  1036. }
  1037. }
  1038. }
  1039. #endif
  1040. }
  1041. public sealed partial class EpubBuildRequest : pb::IMessage<EpubBuildRequest>
  1042. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1043. , pb::IBufferMessage
  1044. #endif
  1045. {
  1046. private static readonly pb::MessageParser<EpubBuildRequest> _parser = new pb::MessageParser<EpubBuildRequest>(() => new EpubBuildRequest());
  1047. private pb::UnknownFieldSet _unknownFields;
  1048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1049. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1050. public static pb::MessageParser<EpubBuildRequest> Parser { get { return _parser; } }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1052. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1053. public static pbr::MessageDescriptor Descriptor {
  1054. get { return global::Palm.Lily.V1.LilyReflection.Descriptor.MessageTypes[3]; }
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1057. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1058. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1059. get { return Descriptor; }
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1062. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1063. public EpubBuildRequest() {
  1064. OnConstruction();
  1065. }
  1066. partial void OnConstruction();
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1068. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1069. public EpubBuildRequest(EpubBuildRequest other) : this() {
  1070. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1073. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1074. public EpubBuildRequest Clone() {
  1075. return new EpubBuildRequest(this);
  1076. }
  1077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1078. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1079. public override bool Equals(object other) {
  1080. return Equals(other as EpubBuildRequest);
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1083. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1084. public bool Equals(EpubBuildRequest other) {
  1085. if (ReferenceEquals(other, null)) {
  1086. return false;
  1087. }
  1088. if (ReferenceEquals(other, this)) {
  1089. return true;
  1090. }
  1091. return Equals(_unknownFields, other._unknownFields);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1094. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1095. public override int GetHashCode() {
  1096. int hash = 1;
  1097. if (_unknownFields != null) {
  1098. hash ^= _unknownFields.GetHashCode();
  1099. }
  1100. return hash;
  1101. }
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1103. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1104. public override string ToString() {
  1105. return pb::JsonFormatter.ToDiagnosticString(this);
  1106. }
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1108. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1109. public void WriteTo(pb::CodedOutputStream output) {
  1110. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1111. output.WriteRawMessage(this);
  1112. #else
  1113. if (_unknownFields != null) {
  1114. _unknownFields.WriteTo(output);
  1115. }
  1116. #endif
  1117. }
  1118. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1120. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1121. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1122. if (_unknownFields != null) {
  1123. _unknownFields.WriteTo(ref output);
  1124. }
  1125. }
  1126. #endif
  1127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1128. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1129. public int CalculateSize() {
  1130. int size = 0;
  1131. if (_unknownFields != null) {
  1132. size += _unknownFields.CalculateSize();
  1133. }
  1134. return size;
  1135. }
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1137. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1138. public void MergeFrom(EpubBuildRequest other) {
  1139. if (other == null) {
  1140. return;
  1141. }
  1142. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1145. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1146. public void MergeFrom(pb::CodedInputStream input) {
  1147. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1148. input.ReadRawMessage(this);
  1149. #else
  1150. uint tag;
  1151. while ((tag = input.ReadTag()) != 0) {
  1152. switch(tag) {
  1153. default:
  1154. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1155. break;
  1156. }
  1157. }
  1158. #endif
  1159. }
  1160. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1162. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1163. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1164. uint tag;
  1165. while ((tag = input.ReadTag()) != 0) {
  1166. switch(tag) {
  1167. default:
  1168. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1169. break;
  1170. }
  1171. }
  1172. }
  1173. #endif
  1174. }
  1175. #endregion
  1176. }
  1177. #endregion Designer generated code