UnNormalizedModuleMessage.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: UnNormalized_module_message.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  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 Message {
  12. /// <summary>Holder for reflection information generated from UnNormalized_module_message.proto</summary>
  13. public static partial class UnNormalizedModuleMessageReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for UnNormalized_module_message.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnNormalizedModuleMessageReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiFVbk5vcm1hbGl6ZWRfbW9kdWxlX21lc3NhZ2UucHJvdG8SB21lc3NhZ2Ua",
  24. "Em1lc3NhZ2VfYmFzZS5wcm90byKuAQodVW5Ob3JtYWxpemVkX21vZHVsZV9z",
  25. "dGF0dV9tc2cSJQoJYmFzZV9pbmZvGAEgAigLMhIubWVzc2FnZS5CYXNlX2lu",
  26. "Zm8SJQoJaWRfc3RydWN0GAIgAigLMhIubWVzc2FnZS5JZF9zdHJ1Y3QSKgoK",
  27. "c3RhdHVfY29kZRgDIAIoCzIWLm1lc3NhZ2UuRXJyb3JfbWFuYWdlchITCgtj",
  28. "YXJfbGljZW5zZRgEIAEoCQ=="));
  29. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  30. new pbr::FileDescriptor[] { global::Message.MessageBaseReflection.Descriptor, },
  31. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  32. new pbr::GeneratedClrTypeInfo(typeof(global::Message.UnNormalized_module_statu_msg), global::Message.UnNormalized_module_statu_msg.Parser, new[]{ "BaseInfo", "IdStruct", "StatuCode", "CarLicense" }, null, null, null, null)
  33. }));
  34. }
  35. #endregion
  36. }
  37. #region Messages
  38. /// <summary>
  39. ///地面定位模块测量结果
  40. /// </summary>
  41. public sealed partial class UnNormalized_module_statu_msg : pb::IMessage<UnNormalized_module_statu_msg>
  42. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  43. , pb::IBufferMessage
  44. #endif
  45. {
  46. private static readonly pb::MessageParser<UnNormalized_module_statu_msg> _parser = new pb::MessageParser<UnNormalized_module_statu_msg>(() => new UnNormalized_module_statu_msg());
  47. private pb::UnknownFieldSet _unknownFields;
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  49. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  50. public static pb::MessageParser<UnNormalized_module_statu_msg> Parser { get { return _parser; } }
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  52. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  53. public static pbr::MessageDescriptor Descriptor {
  54. get { return global::Message.UnNormalizedModuleMessageReflection.Descriptor.MessageTypes[0]; }
  55. }
  56. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  57. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  58. pbr::MessageDescriptor pb::IMessage.Descriptor {
  59. get { return Descriptor; }
  60. }
  61. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  62. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  63. public UnNormalized_module_statu_msg() {
  64. OnConstruction();
  65. }
  66. partial void OnConstruction();
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  69. public UnNormalized_module_statu_msg(UnNormalized_module_statu_msg other) : this() {
  70. baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
  71. idStruct_ = other.idStruct_ != null ? other.idStruct_.Clone() : null;
  72. statuCode_ = other.statuCode_ != null ? other.statuCode_.Clone() : null;
  73. carLicense_ = other.carLicense_;
  74. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  75. }
  76. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  77. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  78. public UnNormalized_module_statu_msg Clone() {
  79. return new UnNormalized_module_statu_msg(this);
  80. }
  81. /// <summary>Field number for the "base_info" field.</summary>
  82. public const int BaseInfoFieldNumber = 1;
  83. private global::Message.Base_info baseInfo_;
  84. /// <summary>
  85. ///消息类型
  86. /// </summary>
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  89. public global::Message.Base_info BaseInfo {
  90. get { return baseInfo_; }
  91. set {
  92. baseInfo_ = value;
  93. }
  94. }
  95. /// <summary>Field number for the "id_struct" field.</summary>
  96. public const int IdStructFieldNumber = 2;
  97. private global::Message.Id_struct idStruct_;
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  99. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  100. public global::Message.Id_struct IdStruct {
  101. get { return idStruct_; }
  102. set {
  103. idStruct_ = value;
  104. }
  105. }
  106. /// <summary>Field number for the "statu_code" field.</summary>
  107. public const int StatuCodeFieldNumber = 3;
  108. private global::Message.Error_manager statuCode_;
  109. /// <summary>
  110. ///模块状态
  111. /// </summary>
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  114. public global::Message.Error_manager StatuCode {
  115. get { return statuCode_; }
  116. set {
  117. statuCode_ = value;
  118. }
  119. }
  120. /// <summary>Field number for the "car_license" field.</summary>
  121. public const int CarLicenseFieldNumber = 4;
  122. private readonly static string CarLicenseDefaultValue = "";
  123. private string carLicense_;
  124. /// <summary>
  125. ///号牌数据
  126. /// </summary>
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  128. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  129. public string CarLicense {
  130. get { return carLicense_ ?? CarLicenseDefaultValue; }
  131. set {
  132. carLicense_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  133. }
  134. }
  135. /// <summary>Gets whether the "car_license" field is set</summary>
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  138. public bool HasCarLicense {
  139. get { return carLicense_ != null; }
  140. }
  141. /// <summary>Clears the value of the "car_license" field</summary>
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  144. public void ClearCarLicense() {
  145. carLicense_ = null;
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  148. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  149. public override bool Equals(object other) {
  150. return Equals(other as UnNormalized_module_statu_msg);
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  153. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  154. public bool Equals(UnNormalized_module_statu_msg other) {
  155. if (ReferenceEquals(other, null)) {
  156. return false;
  157. }
  158. if (ReferenceEquals(other, this)) {
  159. return true;
  160. }
  161. if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
  162. if (!object.Equals(IdStruct, other.IdStruct)) return false;
  163. if (!object.Equals(StatuCode, other.StatuCode)) return false;
  164. if (CarLicense != other.CarLicense) return false;
  165. return Equals(_unknownFields, other._unknownFields);
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  168. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  169. public override int GetHashCode() {
  170. int hash = 1;
  171. if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
  172. if (idStruct_ != null) hash ^= IdStruct.GetHashCode();
  173. if (statuCode_ != null) hash ^= StatuCode.GetHashCode();
  174. if (HasCarLicense) hash ^= CarLicense.GetHashCode();
  175. if (_unknownFields != null) {
  176. hash ^= _unknownFields.GetHashCode();
  177. }
  178. return hash;
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  181. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  182. public override string ToString() {
  183. return pb::JsonFormatter.ToDiagnosticString(this);
  184. }
  185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  186. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  187. public void WriteTo(pb::CodedOutputStream output) {
  188. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  189. output.WriteRawMessage(this);
  190. #else
  191. if (baseInfo_ != null) {
  192. output.WriteRawTag(10);
  193. output.WriteMessage(BaseInfo);
  194. }
  195. if (idStruct_ != null) {
  196. output.WriteRawTag(18);
  197. output.WriteMessage(IdStruct);
  198. }
  199. if (statuCode_ != null) {
  200. output.WriteRawTag(26);
  201. output.WriteMessage(StatuCode);
  202. }
  203. if (HasCarLicense) {
  204. output.WriteRawTag(34);
  205. output.WriteString(CarLicense);
  206. }
  207. if (_unknownFields != null) {
  208. _unknownFields.WriteTo(output);
  209. }
  210. #endif
  211. }
  212. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  215. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  216. if (baseInfo_ != null) {
  217. output.WriteRawTag(10);
  218. output.WriteMessage(BaseInfo);
  219. }
  220. if (idStruct_ != null) {
  221. output.WriteRawTag(18);
  222. output.WriteMessage(IdStruct);
  223. }
  224. if (statuCode_ != null) {
  225. output.WriteRawTag(26);
  226. output.WriteMessage(StatuCode);
  227. }
  228. if (HasCarLicense) {
  229. output.WriteRawTag(34);
  230. output.WriteString(CarLicense);
  231. }
  232. if (_unknownFields != null) {
  233. _unknownFields.WriteTo(ref output);
  234. }
  235. }
  236. #endif
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  238. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  239. public int CalculateSize() {
  240. int size = 0;
  241. if (baseInfo_ != null) {
  242. size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
  243. }
  244. if (idStruct_ != null) {
  245. size += 1 + pb::CodedOutputStream.ComputeMessageSize(IdStruct);
  246. }
  247. if (statuCode_ != null) {
  248. size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatuCode);
  249. }
  250. if (HasCarLicense) {
  251. size += 1 + pb::CodedOutputStream.ComputeStringSize(CarLicense);
  252. }
  253. if (_unknownFields != null) {
  254. size += _unknownFields.CalculateSize();
  255. }
  256. return size;
  257. }
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  259. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  260. public void MergeFrom(UnNormalized_module_statu_msg other) {
  261. if (other == null) {
  262. return;
  263. }
  264. if (other.baseInfo_ != null) {
  265. if (baseInfo_ == null) {
  266. BaseInfo = new global::Message.Base_info();
  267. }
  268. BaseInfo.MergeFrom(other.BaseInfo);
  269. }
  270. if (other.idStruct_ != null) {
  271. if (idStruct_ == null) {
  272. IdStruct = new global::Message.Id_struct();
  273. }
  274. IdStruct.MergeFrom(other.IdStruct);
  275. }
  276. if (other.statuCode_ != null) {
  277. if (statuCode_ == null) {
  278. StatuCode = new global::Message.Error_manager();
  279. }
  280. StatuCode.MergeFrom(other.StatuCode);
  281. }
  282. if (other.HasCarLicense) {
  283. CarLicense = other.CarLicense;
  284. }
  285. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  288. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  289. public void MergeFrom(pb::CodedInputStream input) {
  290. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  291. input.ReadRawMessage(this);
  292. #else
  293. uint tag;
  294. while ((tag = input.ReadTag()) != 0) {
  295. switch(tag) {
  296. default:
  297. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  298. break;
  299. case 10: {
  300. if (baseInfo_ == null) {
  301. BaseInfo = new global::Message.Base_info();
  302. }
  303. input.ReadMessage(BaseInfo);
  304. break;
  305. }
  306. case 18: {
  307. if (idStruct_ == null) {
  308. IdStruct = new global::Message.Id_struct();
  309. }
  310. input.ReadMessage(IdStruct);
  311. break;
  312. }
  313. case 26: {
  314. if (statuCode_ == null) {
  315. StatuCode = new global::Message.Error_manager();
  316. }
  317. input.ReadMessage(StatuCode);
  318. break;
  319. }
  320. case 34: {
  321. CarLicense = input.ReadString();
  322. break;
  323. }
  324. }
  325. }
  326. #endif
  327. }
  328. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  330. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  331. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  332. uint tag;
  333. while ((tag = input.ReadTag()) != 0) {
  334. switch(tag) {
  335. default:
  336. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  337. break;
  338. case 10: {
  339. if (baseInfo_ == null) {
  340. BaseInfo = new global::Message.Base_info();
  341. }
  342. input.ReadMessage(BaseInfo);
  343. break;
  344. }
  345. case 18: {
  346. if (idStruct_ == null) {
  347. IdStruct = new global::Message.Id_struct();
  348. }
  349. input.ReadMessage(IdStruct);
  350. break;
  351. }
  352. case 26: {
  353. if (statuCode_ == null) {
  354. StatuCode = new global::Message.Error_manager();
  355. }
  356. input.ReadMessage(StatuCode);
  357. break;
  358. }
  359. case 34: {
  360. CarLicense = input.ReadString();
  361. break;
  362. }
  363. }
  364. }
  365. }
  366. #endif
  367. }
  368. #endregion
  369. }
  370. #endregion Designer generated code