ImageDTO.cs 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: ImageDTO.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 IvfTl.Control.Entity.DTO {
  12. /// <summary>Holder for reflection information generated from ImageDTO.proto</summary>
  13. public static partial class ImageDTOReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for ImageDTO.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static ImageDTOReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cg5JbWFnZURUTy5wcm90bxIRaXZmX3RsX0VudGl0eS5EVE8iuAMKCEltYWdl",
  24. "RFRPEgwKBHRsU24YASABKAkSDwoHaG91c2VTbhgCIAEoBRIOCgZ3ZWxsU24Y",
  25. "AyABKAUSDQoFY2NkU24YBCABKAkSFwoPc291cmNlSW1hZ2VOYW1lGAUgASgJ",
  26. "EhcKD3NvdXJjZUltYWdlUGF0aBgGIAEoCRIYChBzb3VyY2VJbWFnZVdpZHRo",
  27. "GAcgASgFEhkKEXNvdXJjZUltYWdlSGVpZ2h0GAggASgFEhEKCWltYWdlVGlt",
  28. "ZRgJIAEoCRIZChFmZXJ0aWxpemF0aW9uVGltZRgKIAEoCRIWCg5waG90b2dy",
  29. "YXBoVHlwZRgLIAEoBRISCgp0b3RhbExheWVyGAwgASgFEhQKDHBpY3R1cmVM",
  30. "YXllchgNIAEoBRIYChBzaG9vdGluZ1Bvc2l0aW9uGA4gASgFEhAKCGNsZWFy",
  31. "ZXN0GA8gASgFEgsKA2VuZBgQIAEoBRIdChVlbWJyeW9DdWx0dXJlUmVjb3Jk",
  32. "SWQYESABKAQSEAoIZW1icnlvSWQYEiABKAQSEQoJaW1hZ2VEYXRhGBMgASgM",
  33. "EhoKEmhvcml6b250YWxQb3NpdGlvbhgUIAEoBWIGcHJvdG8z"));
  34. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  35. new pbr::FileDescriptor[] { },
  36. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  37. new pbr::GeneratedClrTypeInfo(typeof(global::IvfTl.Control.Entity.DTO.ImageDTO), global::IvfTl.Control.Entity.DTO.ImageDTO.Parser, new[]{ "TlSn", "HouseSn", "WellSn", "CcdSn", "SourceImageName", "SourceImagePath", "SourceImageWidth", "SourceImageHeight", "ImageTime", "FertilizationTime", "PhotographType", "TotalLayer", "PictureLayer", "ShootingPosition", "Clearest", "End", "EmbryoCultureRecordId", "EmbryoId", "ImageData", "HorizontalPosition" }, null, null, null, null)
  38. }));
  39. }
  40. #endregion
  41. }
  42. #region Messages
  43. public sealed partial class ImageDTO : pb::IMessage<ImageDTO>
  44. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  45. , pb::IBufferMessage
  46. #endif
  47. {
  48. private static readonly pb::MessageParser<ImageDTO> _parser = new pb::MessageParser<ImageDTO>(() => new ImageDTO());
  49. private pb::UnknownFieldSet _unknownFields;
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  51. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  52. public static pb::MessageParser<ImageDTO> Parser { get { return _parser; } }
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  54. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  55. public static pbr::MessageDescriptor Descriptor {
  56. get { return global::IvfTl.Control.Entity.DTO.ImageDTOReflection.Descriptor.MessageTypes[0]; }
  57. }
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  60. pbr::MessageDescriptor pb::IMessage.Descriptor {
  61. get { return Descriptor; }
  62. }
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  64. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  65. public ImageDTO() {
  66. OnConstruction();
  67. }
  68. partial void OnConstruction();
  69. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  70. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  71. public ImageDTO(ImageDTO other) : this() {
  72. tlSn_ = other.tlSn_;
  73. houseSn_ = other.houseSn_;
  74. wellSn_ = other.wellSn_;
  75. ccdSn_ = other.ccdSn_;
  76. sourceImageName_ = other.sourceImageName_;
  77. sourceImagePath_ = other.sourceImagePath_;
  78. sourceImageWidth_ = other.sourceImageWidth_;
  79. sourceImageHeight_ = other.sourceImageHeight_;
  80. imageTime_ = other.imageTime_;
  81. fertilizationTime_ = other.fertilizationTime_;
  82. photographType_ = other.photographType_;
  83. totalLayer_ = other.totalLayer_;
  84. pictureLayer_ = other.pictureLayer_;
  85. shootingPosition_ = other.shootingPosition_;
  86. clearest_ = other.clearest_;
  87. end_ = other.end_;
  88. embryoCultureRecordId_ = other.embryoCultureRecordId_;
  89. embryoId_ = other.embryoId_;
  90. imageData_ = other.imageData_;
  91. horizontalPosition_ = other.horizontalPosition_;
  92. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  93. }
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  95. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  96. public ImageDTO Clone() {
  97. return new ImageDTO(this);
  98. }
  99. /// <summary>Field number for the "tlSn" field.</summary>
  100. public const int TlSnFieldNumber = 1;
  101. private string tlSn_ = "";
  102. /// <summary>
  103. ///*
  104. /// tl设备编号
  105. /// </summary>
  106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  107. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  108. public string TlSn {
  109. get { return tlSn_; }
  110. set {
  111. tlSn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  112. }
  113. }
  114. /// <summary>Field number for the "houseSn" field.</summary>
  115. public const int HouseSnFieldNumber = 2;
  116. private int houseSn_;
  117. /// <summary>
  118. ///*
  119. /// 仓室编号:1-10
  120. /// </summary>
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  122. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  123. public int HouseSn {
  124. get { return houseSn_; }
  125. set {
  126. houseSn_ = value;
  127. }
  128. }
  129. /// <summary>Field number for the "wellSn" field.</summary>
  130. public const int WellSnFieldNumber = 3;
  131. private int wellSn_;
  132. /// <summary>
  133. ///*
  134. /// well编号 1-16
  135. /// </summary>
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  138. public int WellSn {
  139. get { return wellSn_; }
  140. set {
  141. wellSn_ = value;
  142. }
  143. }
  144. /// <summary>Field number for the "ccdSn" field.</summary>
  145. public const int CcdSnFieldNumber = 4;
  146. private string ccdSn_ = "";
  147. /// <summary>
  148. ///*
  149. /// ccd编号
  150. /// </summary>
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  152. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  153. public string CcdSn {
  154. get { return ccdSn_; }
  155. set {
  156. ccdSn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  157. }
  158. }
  159. /// <summary>Field number for the "sourceImageName" field.</summary>
  160. public const int SourceImageNameFieldNumber = 5;
  161. private string sourceImageName_ = "";
  162. /// <summary>
  163. ///*
  164. /// 原图名字
  165. /// </summary>
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  167. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  168. public string SourceImageName {
  169. get { return sourceImageName_; }
  170. set {
  171. sourceImageName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  172. }
  173. }
  174. /// <summary>Field number for the "sourceImagePath" field.</summary>
  175. public const int SourceImagePathFieldNumber = 6;
  176. private string sourceImagePath_ = "";
  177. /// <summary>
  178. ///*
  179. /// 原图的本地路径(不是上传后的保存路径)
  180. /// </summary>
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  182. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  183. public string SourceImagePath {
  184. get { return sourceImagePath_; }
  185. set {
  186. sourceImagePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  187. }
  188. }
  189. /// <summary>Field number for the "sourceImageWidth" field.</summary>
  190. public const int SourceImageWidthFieldNumber = 7;
  191. private int sourceImageWidth_;
  192. /// <summary>
  193. ///*
  194. /// 原图宽
  195. /// </summary>
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  197. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  198. public int SourceImageWidth {
  199. get { return sourceImageWidth_; }
  200. set {
  201. sourceImageWidth_ = value;
  202. }
  203. }
  204. /// <summary>Field number for the "sourceImageHeight" field.</summary>
  205. public const int SourceImageHeightFieldNumber = 8;
  206. private int sourceImageHeight_;
  207. /// <summary>
  208. ///*
  209. /// 原图高
  210. /// </summary>
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  212. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  213. public int SourceImageHeight {
  214. get { return sourceImageHeight_; }
  215. set {
  216. sourceImageHeight_ = value;
  217. }
  218. }
  219. /// <summary>Field number for the "imageTime" field.</summary>
  220. public const int ImageTimeFieldNumber = 9;
  221. private string imageTime_ = "";
  222. /// <summary>
  223. ///*
  224. /// 设备拍摄时间 格式2020-10-10 00:00:00 如果是自动对焦 该时间为这一轮自动对焦时间
  225. /// </summary>
  226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  227. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  228. public string ImageTime {
  229. get { return imageTime_; }
  230. set {
  231. imageTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  232. }
  233. }
  234. /// <summary>Field number for the "fertilizationTime" field.</summary>
  235. public const int FertilizationTimeFieldNumber = 10;
  236. private string fertilizationTime_ = "";
  237. /// <summary>
  238. ///*
  239. /// 受精时间 格式2020-10-10 00:00:00
  240. /// </summary>
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  242. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  243. public string FertilizationTime {
  244. get { return fertilizationTime_; }
  245. set {
  246. fertilizationTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  247. }
  248. }
  249. /// <summary>Field number for the "photographType" field.</summary>
  250. public const int PhotographTypeFieldNumber = 11;
  251. private int photographType_;
  252. /// <summary>
  253. ///*
  254. /// 对焦还是ccd拍照 1 自动对焦 0 CCD拍照
  255. /// </summary>
  256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  257. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  258. public int PhotographType {
  259. get { return photographType_; }
  260. set {
  261. photographType_ = value;
  262. }
  263. }
  264. /// <summary>Field number for the "totalLayer" field.</summary>
  265. public const int TotalLayerFieldNumber = 12;
  266. private int totalLayer_;
  267. /// <summary>
  268. ///*
  269. /// 拍照总层数
  270. /// </summary>
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  272. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  273. public int TotalLayer {
  274. get { return totalLayer_; }
  275. set {
  276. totalLayer_ = value;
  277. }
  278. }
  279. /// <summary>Field number for the "pictureLayer" field.</summary>
  280. public const int PictureLayerFieldNumber = 13;
  281. private int pictureLayer_;
  282. /// <summary>
  283. ///*
  284. /// 图片层
  285. /// </summary>
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  287. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  288. public int PictureLayer {
  289. get { return pictureLayer_; }
  290. set {
  291. pictureLayer_ = value;
  292. }
  293. }
  294. /// <summary>Field number for the "shootingPosition" field.</summary>
  295. public const int ShootingPositionFieldNumber = 14;
  296. private int shootingPosition_;
  297. /// <summary>
  298. ///*
  299. /// 垂直电机位置
  300. /// </summary>
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  302. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  303. public int ShootingPosition {
  304. get { return shootingPosition_; }
  305. set {
  306. shootingPosition_ = value;
  307. }
  308. }
  309. /// <summary>Field number for the "clearest" field.</summary>
  310. public const int ClearestFieldNumber = 15;
  311. private int clearest_;
  312. /// <summary>
  313. ///*
  314. /// 是否是最清晰的(CCD拍照才有)0不是 1最清晰
  315. /// </summary>
  316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  317. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  318. public int Clearest {
  319. get { return clearest_; }
  320. set {
  321. clearest_ = value;
  322. }
  323. }
  324. /// <summary>Field number for the "end" field.</summary>
  325. public const int EndFieldNumber = 16;
  326. private int end_;
  327. /// <summary>
  328. ///*
  329. /// 拍照结束标记 1 结束 0 未结束 (结束后开始更新对焦起点,ccd拍照结束开始合成视频)
  330. /// </summary>
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  332. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  333. public int End {
  334. get { return end_; }
  335. set {
  336. end_ = value;
  337. }
  338. }
  339. /// <summary>Field number for the "embryoCultureRecordId" field.</summary>
  340. public const int EmbryoCultureRecordIdFieldNumber = 17;
  341. private ulong embryoCultureRecordId_;
  342. /// <summary>
  343. ///*
  344. /// 培养记录id
  345. /// </summary>
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  347. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  348. public ulong EmbryoCultureRecordId {
  349. get { return embryoCultureRecordId_; }
  350. set {
  351. embryoCultureRecordId_ = value;
  352. }
  353. }
  354. /// <summary>Field number for the "embryoId" field.</summary>
  355. public const int EmbryoIdFieldNumber = 18;
  356. private ulong embryoId_;
  357. /// <summary>
  358. ///*
  359. /// 胚胎id
  360. /// </summary>
  361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  362. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  363. public ulong EmbryoId {
  364. get { return embryoId_; }
  365. set {
  366. embryoId_ = value;
  367. }
  368. }
  369. /// <summary>Field number for the "imageData" field.</summary>
  370. public const int ImageDataFieldNumber = 19;
  371. private pb::ByteString imageData_ = pb::ByteString.Empty;
  372. /// <summary>
  373. ///*
  374. /// 图片数据
  375. /// </summary>
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  377. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  378. public pb::ByteString ImageData {
  379. get { return imageData_; }
  380. set {
  381. imageData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  382. }
  383. }
  384. /// <summary>Field number for the "horizontalPosition" field.</summary>
  385. public const int HorizontalPositionFieldNumber = 20;
  386. private int horizontalPosition_;
  387. /// <summary>
  388. ///*
  389. /// 水平电机位置
  390. /// </summary>
  391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  392. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  393. public int HorizontalPosition {
  394. get { return horizontalPosition_; }
  395. set {
  396. horizontalPosition_ = value;
  397. }
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  400. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  401. public override bool Equals(object other) {
  402. return Equals(other as ImageDTO);
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  405. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  406. public bool Equals(ImageDTO other) {
  407. if (ReferenceEquals(other, null)) {
  408. return false;
  409. }
  410. if (ReferenceEquals(other, this)) {
  411. return true;
  412. }
  413. if (TlSn != other.TlSn) return false;
  414. if (HouseSn != other.HouseSn) return false;
  415. if (WellSn != other.WellSn) return false;
  416. if (CcdSn != other.CcdSn) return false;
  417. if (SourceImageName != other.SourceImageName) return false;
  418. if (SourceImagePath != other.SourceImagePath) return false;
  419. if (SourceImageWidth != other.SourceImageWidth) return false;
  420. if (SourceImageHeight != other.SourceImageHeight) return false;
  421. if (ImageTime != other.ImageTime) return false;
  422. if (FertilizationTime != other.FertilizationTime) return false;
  423. if (PhotographType != other.PhotographType) return false;
  424. if (TotalLayer != other.TotalLayer) return false;
  425. if (PictureLayer != other.PictureLayer) return false;
  426. if (ShootingPosition != other.ShootingPosition) return false;
  427. if (Clearest != other.Clearest) return false;
  428. if (End != other.End) return false;
  429. if (EmbryoCultureRecordId != other.EmbryoCultureRecordId) return false;
  430. if (EmbryoId != other.EmbryoId) return false;
  431. if (ImageData != other.ImageData) return false;
  432. if (HorizontalPosition != other.HorizontalPosition) return false;
  433. return Equals(_unknownFields, other._unknownFields);
  434. }
  435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  436. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  437. public override int GetHashCode() {
  438. int hash = 1;
  439. if (TlSn.Length != 0) hash ^= TlSn.GetHashCode();
  440. if (HouseSn != 0) hash ^= HouseSn.GetHashCode();
  441. if (WellSn != 0) hash ^= WellSn.GetHashCode();
  442. if (CcdSn.Length != 0) hash ^= CcdSn.GetHashCode();
  443. if (SourceImageName.Length != 0) hash ^= SourceImageName.GetHashCode();
  444. if (SourceImagePath.Length != 0) hash ^= SourceImagePath.GetHashCode();
  445. if (SourceImageWidth != 0) hash ^= SourceImageWidth.GetHashCode();
  446. if (SourceImageHeight != 0) hash ^= SourceImageHeight.GetHashCode();
  447. if (ImageTime.Length != 0) hash ^= ImageTime.GetHashCode();
  448. if (FertilizationTime.Length != 0) hash ^= FertilizationTime.GetHashCode();
  449. if (PhotographType != 0) hash ^= PhotographType.GetHashCode();
  450. if (TotalLayer != 0) hash ^= TotalLayer.GetHashCode();
  451. if (PictureLayer != 0) hash ^= PictureLayer.GetHashCode();
  452. if (ShootingPosition != 0) hash ^= ShootingPosition.GetHashCode();
  453. if (Clearest != 0) hash ^= Clearest.GetHashCode();
  454. if (End != 0) hash ^= End.GetHashCode();
  455. if (EmbryoCultureRecordId != 0UL) hash ^= EmbryoCultureRecordId.GetHashCode();
  456. if (EmbryoId != 0UL) hash ^= EmbryoId.GetHashCode();
  457. if (ImageData.Length != 0) hash ^= ImageData.GetHashCode();
  458. if (HorizontalPosition != 0) hash ^= HorizontalPosition.GetHashCode();
  459. if (_unknownFields != null) {
  460. hash ^= _unknownFields.GetHashCode();
  461. }
  462. return hash;
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  465. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  466. public override string ToString() {
  467. return pb::JsonFormatter.ToDiagnosticString(this);
  468. }
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  470. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  471. public void WriteTo(pb::CodedOutputStream output) {
  472. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  473. output.WriteRawMessage(this);
  474. #else
  475. if (TlSn.Length != 0) {
  476. output.WriteRawTag(10);
  477. output.WriteString(TlSn);
  478. }
  479. if (HouseSn != 0) {
  480. output.WriteRawTag(16);
  481. output.WriteInt32(HouseSn);
  482. }
  483. if (WellSn != 0) {
  484. output.WriteRawTag(24);
  485. output.WriteInt32(WellSn);
  486. }
  487. if (CcdSn.Length != 0) {
  488. output.WriteRawTag(34);
  489. output.WriteString(CcdSn);
  490. }
  491. if (SourceImageName.Length != 0) {
  492. output.WriteRawTag(42);
  493. output.WriteString(SourceImageName);
  494. }
  495. if (SourceImagePath.Length != 0) {
  496. output.WriteRawTag(50);
  497. output.WriteString(SourceImagePath);
  498. }
  499. if (SourceImageWidth != 0) {
  500. output.WriteRawTag(56);
  501. output.WriteInt32(SourceImageWidth);
  502. }
  503. if (SourceImageHeight != 0) {
  504. output.WriteRawTag(64);
  505. output.WriteInt32(SourceImageHeight);
  506. }
  507. if (ImageTime.Length != 0) {
  508. output.WriteRawTag(74);
  509. output.WriteString(ImageTime);
  510. }
  511. if (FertilizationTime.Length != 0) {
  512. output.WriteRawTag(82);
  513. output.WriteString(FertilizationTime);
  514. }
  515. if (PhotographType != 0) {
  516. output.WriteRawTag(88);
  517. output.WriteInt32(PhotographType);
  518. }
  519. if (TotalLayer != 0) {
  520. output.WriteRawTag(96);
  521. output.WriteInt32(TotalLayer);
  522. }
  523. if (PictureLayer != 0) {
  524. output.WriteRawTag(104);
  525. output.WriteInt32(PictureLayer);
  526. }
  527. if (ShootingPosition != 0) {
  528. output.WriteRawTag(112);
  529. output.WriteInt32(ShootingPosition);
  530. }
  531. if (Clearest != 0) {
  532. output.WriteRawTag(120);
  533. output.WriteInt32(Clearest);
  534. }
  535. if (End != 0) {
  536. output.WriteRawTag(128, 1);
  537. output.WriteInt32(End);
  538. }
  539. if (EmbryoCultureRecordId != 0UL) {
  540. output.WriteRawTag(136, 1);
  541. output.WriteUInt64(EmbryoCultureRecordId);
  542. }
  543. if (EmbryoId != 0UL) {
  544. output.WriteRawTag(144, 1);
  545. output.WriteUInt64(EmbryoId);
  546. }
  547. if (ImageData.Length != 0) {
  548. output.WriteRawTag(154, 1);
  549. output.WriteBytes(ImageData);
  550. }
  551. if (HorizontalPosition != 0) {
  552. output.WriteRawTag(160, 1);
  553. output.WriteInt32(HorizontalPosition);
  554. }
  555. if (_unknownFields != null) {
  556. _unknownFields.WriteTo(output);
  557. }
  558. #endif
  559. }
  560. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  562. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  563. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  564. if (TlSn.Length != 0) {
  565. output.WriteRawTag(10);
  566. output.WriteString(TlSn);
  567. }
  568. if (HouseSn != 0) {
  569. output.WriteRawTag(16);
  570. output.WriteInt32(HouseSn);
  571. }
  572. if (WellSn != 0) {
  573. output.WriteRawTag(24);
  574. output.WriteInt32(WellSn);
  575. }
  576. if (CcdSn.Length != 0) {
  577. output.WriteRawTag(34);
  578. output.WriteString(CcdSn);
  579. }
  580. if (SourceImageName.Length != 0) {
  581. output.WriteRawTag(42);
  582. output.WriteString(SourceImageName);
  583. }
  584. if (SourceImagePath.Length != 0) {
  585. output.WriteRawTag(50);
  586. output.WriteString(SourceImagePath);
  587. }
  588. if (SourceImageWidth != 0) {
  589. output.WriteRawTag(56);
  590. output.WriteInt32(SourceImageWidth);
  591. }
  592. if (SourceImageHeight != 0) {
  593. output.WriteRawTag(64);
  594. output.WriteInt32(SourceImageHeight);
  595. }
  596. if (ImageTime.Length != 0) {
  597. output.WriteRawTag(74);
  598. output.WriteString(ImageTime);
  599. }
  600. if (FertilizationTime.Length != 0) {
  601. output.WriteRawTag(82);
  602. output.WriteString(FertilizationTime);
  603. }
  604. if (PhotographType != 0) {
  605. output.WriteRawTag(88);
  606. output.WriteInt32(PhotographType);
  607. }
  608. if (TotalLayer != 0) {
  609. output.WriteRawTag(96);
  610. output.WriteInt32(TotalLayer);
  611. }
  612. if (PictureLayer != 0) {
  613. output.WriteRawTag(104);
  614. output.WriteInt32(PictureLayer);
  615. }
  616. if (ShootingPosition != 0) {
  617. output.WriteRawTag(112);
  618. output.WriteInt32(ShootingPosition);
  619. }
  620. if (Clearest != 0) {
  621. output.WriteRawTag(120);
  622. output.WriteInt32(Clearest);
  623. }
  624. if (End != 0) {
  625. output.WriteRawTag(128, 1);
  626. output.WriteInt32(End);
  627. }
  628. if (EmbryoCultureRecordId != 0UL) {
  629. output.WriteRawTag(136, 1);
  630. output.WriteUInt64(EmbryoCultureRecordId);
  631. }
  632. if (EmbryoId != 0UL) {
  633. output.WriteRawTag(144, 1);
  634. output.WriteUInt64(EmbryoId);
  635. }
  636. if (ImageData.Length != 0) {
  637. output.WriteRawTag(154, 1);
  638. output.WriteBytes(ImageData);
  639. }
  640. if (HorizontalPosition != 0) {
  641. output.WriteRawTag(160, 1);
  642. output.WriteInt32(HorizontalPosition);
  643. }
  644. if (_unknownFields != null) {
  645. _unknownFields.WriteTo(ref output);
  646. }
  647. }
  648. #endif
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  650. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  651. public int CalculateSize() {
  652. int size = 0;
  653. if (TlSn.Length != 0) {
  654. size += 1 + pb::CodedOutputStream.ComputeStringSize(TlSn);
  655. }
  656. if (HouseSn != 0) {
  657. size += 1 + pb::CodedOutputStream.ComputeInt32Size(HouseSn);
  658. }
  659. if (WellSn != 0) {
  660. size += 1 + pb::CodedOutputStream.ComputeInt32Size(WellSn);
  661. }
  662. if (CcdSn.Length != 0) {
  663. size += 1 + pb::CodedOutputStream.ComputeStringSize(CcdSn);
  664. }
  665. if (SourceImageName.Length != 0) {
  666. size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceImageName);
  667. }
  668. if (SourceImagePath.Length != 0) {
  669. size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceImagePath);
  670. }
  671. if (SourceImageWidth != 0) {
  672. size += 1 + pb::CodedOutputStream.ComputeInt32Size(SourceImageWidth);
  673. }
  674. if (SourceImageHeight != 0) {
  675. size += 1 + pb::CodedOutputStream.ComputeInt32Size(SourceImageHeight);
  676. }
  677. if (ImageTime.Length != 0) {
  678. size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageTime);
  679. }
  680. if (FertilizationTime.Length != 0) {
  681. size += 1 + pb::CodedOutputStream.ComputeStringSize(FertilizationTime);
  682. }
  683. if (PhotographType != 0) {
  684. size += 1 + pb::CodedOutputStream.ComputeInt32Size(PhotographType);
  685. }
  686. if (TotalLayer != 0) {
  687. size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalLayer);
  688. }
  689. if (PictureLayer != 0) {
  690. size += 1 + pb::CodedOutputStream.ComputeInt32Size(PictureLayer);
  691. }
  692. if (ShootingPosition != 0) {
  693. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShootingPosition);
  694. }
  695. if (Clearest != 0) {
  696. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Clearest);
  697. }
  698. if (End != 0) {
  699. size += 2 + pb::CodedOutputStream.ComputeInt32Size(End);
  700. }
  701. if (EmbryoCultureRecordId != 0UL) {
  702. size += 2 + pb::CodedOutputStream.ComputeUInt64Size(EmbryoCultureRecordId);
  703. }
  704. if (EmbryoId != 0UL) {
  705. size += 2 + pb::CodedOutputStream.ComputeUInt64Size(EmbryoId);
  706. }
  707. if (ImageData.Length != 0) {
  708. size += 2 + pb::CodedOutputStream.ComputeBytesSize(ImageData);
  709. }
  710. if (HorizontalPosition != 0) {
  711. size += 2 + pb::CodedOutputStream.ComputeInt32Size(HorizontalPosition);
  712. }
  713. if (_unknownFields != null) {
  714. size += _unknownFields.CalculateSize();
  715. }
  716. return size;
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  719. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  720. public void MergeFrom(ImageDTO other) {
  721. if (other == null) {
  722. return;
  723. }
  724. if (other.TlSn.Length != 0) {
  725. TlSn = other.TlSn;
  726. }
  727. if (other.HouseSn != 0) {
  728. HouseSn = other.HouseSn;
  729. }
  730. if (other.WellSn != 0) {
  731. WellSn = other.WellSn;
  732. }
  733. if (other.CcdSn.Length != 0) {
  734. CcdSn = other.CcdSn;
  735. }
  736. if (other.SourceImageName.Length != 0) {
  737. SourceImageName = other.SourceImageName;
  738. }
  739. if (other.SourceImagePath.Length != 0) {
  740. SourceImagePath = other.SourceImagePath;
  741. }
  742. if (other.SourceImageWidth != 0) {
  743. SourceImageWidth = other.SourceImageWidth;
  744. }
  745. if (other.SourceImageHeight != 0) {
  746. SourceImageHeight = other.SourceImageHeight;
  747. }
  748. if (other.ImageTime.Length != 0) {
  749. ImageTime = other.ImageTime;
  750. }
  751. if (other.FertilizationTime.Length != 0) {
  752. FertilizationTime = other.FertilizationTime;
  753. }
  754. if (other.PhotographType != 0) {
  755. PhotographType = other.PhotographType;
  756. }
  757. if (other.TotalLayer != 0) {
  758. TotalLayer = other.TotalLayer;
  759. }
  760. if (other.PictureLayer != 0) {
  761. PictureLayer = other.PictureLayer;
  762. }
  763. if (other.ShootingPosition != 0) {
  764. ShootingPosition = other.ShootingPosition;
  765. }
  766. if (other.Clearest != 0) {
  767. Clearest = other.Clearest;
  768. }
  769. if (other.End != 0) {
  770. End = other.End;
  771. }
  772. if (other.EmbryoCultureRecordId != 0UL) {
  773. EmbryoCultureRecordId = other.EmbryoCultureRecordId;
  774. }
  775. if (other.EmbryoId != 0UL) {
  776. EmbryoId = other.EmbryoId;
  777. }
  778. if (other.ImageData.Length != 0) {
  779. ImageData = other.ImageData;
  780. }
  781. if (other.HorizontalPosition != 0) {
  782. HorizontalPosition = other.HorizontalPosition;
  783. }
  784. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  787. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  788. public void MergeFrom(pb::CodedInputStream input) {
  789. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  790. input.ReadRawMessage(this);
  791. #else
  792. uint tag;
  793. while ((tag = input.ReadTag()) != 0) {
  794. switch(tag) {
  795. default:
  796. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  797. break;
  798. case 10: {
  799. TlSn = input.ReadString();
  800. break;
  801. }
  802. case 16: {
  803. HouseSn = input.ReadInt32();
  804. break;
  805. }
  806. case 24: {
  807. WellSn = input.ReadInt32();
  808. break;
  809. }
  810. case 34: {
  811. CcdSn = input.ReadString();
  812. break;
  813. }
  814. case 42: {
  815. SourceImageName = input.ReadString();
  816. break;
  817. }
  818. case 50: {
  819. SourceImagePath = input.ReadString();
  820. break;
  821. }
  822. case 56: {
  823. SourceImageWidth = input.ReadInt32();
  824. break;
  825. }
  826. case 64: {
  827. SourceImageHeight = input.ReadInt32();
  828. break;
  829. }
  830. case 74: {
  831. ImageTime = input.ReadString();
  832. break;
  833. }
  834. case 82: {
  835. FertilizationTime = input.ReadString();
  836. break;
  837. }
  838. case 88: {
  839. PhotographType = input.ReadInt32();
  840. break;
  841. }
  842. case 96: {
  843. TotalLayer = input.ReadInt32();
  844. break;
  845. }
  846. case 104: {
  847. PictureLayer = input.ReadInt32();
  848. break;
  849. }
  850. case 112: {
  851. ShootingPosition = input.ReadInt32();
  852. break;
  853. }
  854. case 120: {
  855. Clearest = input.ReadInt32();
  856. break;
  857. }
  858. case 128: {
  859. End = input.ReadInt32();
  860. break;
  861. }
  862. case 136: {
  863. EmbryoCultureRecordId = input.ReadUInt64();
  864. break;
  865. }
  866. case 144: {
  867. EmbryoId = input.ReadUInt64();
  868. break;
  869. }
  870. case 154: {
  871. ImageData = input.ReadBytes();
  872. break;
  873. }
  874. case 160: {
  875. HorizontalPosition = input.ReadInt32();
  876. break;
  877. }
  878. }
  879. }
  880. #endif
  881. }
  882. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  884. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  885. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  886. uint tag;
  887. while ((tag = input.ReadTag()) != 0) {
  888. switch(tag) {
  889. default:
  890. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  891. break;
  892. case 10: {
  893. TlSn = input.ReadString();
  894. break;
  895. }
  896. case 16: {
  897. HouseSn = input.ReadInt32();
  898. break;
  899. }
  900. case 24: {
  901. WellSn = input.ReadInt32();
  902. break;
  903. }
  904. case 34: {
  905. CcdSn = input.ReadString();
  906. break;
  907. }
  908. case 42: {
  909. SourceImageName = input.ReadString();
  910. break;
  911. }
  912. case 50: {
  913. SourceImagePath = input.ReadString();
  914. break;
  915. }
  916. case 56: {
  917. SourceImageWidth = input.ReadInt32();
  918. break;
  919. }
  920. case 64: {
  921. SourceImageHeight = input.ReadInt32();
  922. break;
  923. }
  924. case 74: {
  925. ImageTime = input.ReadString();
  926. break;
  927. }
  928. case 82: {
  929. FertilizationTime = input.ReadString();
  930. break;
  931. }
  932. case 88: {
  933. PhotographType = input.ReadInt32();
  934. break;
  935. }
  936. case 96: {
  937. TotalLayer = input.ReadInt32();
  938. break;
  939. }
  940. case 104: {
  941. PictureLayer = input.ReadInt32();
  942. break;
  943. }
  944. case 112: {
  945. ShootingPosition = input.ReadInt32();
  946. break;
  947. }
  948. case 120: {
  949. Clearest = input.ReadInt32();
  950. break;
  951. }
  952. case 128: {
  953. End = input.ReadInt32();
  954. break;
  955. }
  956. case 136: {
  957. EmbryoCultureRecordId = input.ReadUInt64();
  958. break;
  959. }
  960. case 144: {
  961. EmbryoId = input.ReadUInt64();
  962. break;
  963. }
  964. case 154: {
  965. ImageData = input.ReadBytes();
  966. break;
  967. }
  968. case 160: {
  969. HorizontalPosition = input.ReadInt32();
  970. break;
  971. }
  972. }
  973. }
  974. }
  975. #endif
  976. }
  977. #endregion
  978. }
  979. #endregion Designer generated code