TerminalMessage.cs 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: terminal_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 terminal_message.proto</summary>
  13. public static partial class TerminalMessageReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for terminal_message.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static TerminalMessageReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "ChZ0ZXJtaW5hbF9tZXNzYWdlLnByb3RvEgdtZXNzYWdlGhJtZXNzYWdlX2Jh",
  24. "c2UucHJvdG8itQEKGVN0b3JlX2NvbW1hbmRfcmVxdWVzdF9tc2cSJQoJYmFz",
  25. "ZV9pbmZvGAEgAigLMhIubWVzc2FnZS5CYXNlX2luZm8SEwoLdGVybWluYWxf",
  26. "aWQYAiACKAUSNwoSbG9jYXRlX2luZm9ybWF0aW9uGAMgAigLMhsubWVzc2Fn",
  27. "ZS5Mb2NhdGVfaW5mb3JtYXRpb24SIwoIY2FyX2luZm8YBCACKAsyES5tZXNz",
  28. "YWdlLkNhcl9pbmZvIn4KGlN0b3JlX2NvbW1hbmRfcmVzcG9uc2VfbXNnEiUK",
  29. "CWJhc2VfaW5mbxgBIAIoCzISLm1lc3NhZ2UuQmFzZV9pbmZvEhMKC3Rlcm1p",
  30. "bmFsX2lkGAIgAigFEiQKBGNvZGUYAyACKAsyFi5tZXNzYWdlLkVycm9yX21h",
  31. "bmFnZXIifQoaUGlja3VwX2NvbW1hbmRfcmVxdWVzdF9tc2cSJQoJYmFzZV9p",
  32. "bmZvGAEgAigLMhIubWVzc2FnZS5CYXNlX2luZm8SEwoLdGVybWluYWxfaWQY",
  33. "AiACKAUSIwoIY2FyX2luZm8YBCACKAsyES5tZXNzYWdlLkNhcl9pbmZvIn8K",
  34. "G1BpY2t1cF9jb21tYW5kX3Jlc3BvbnNlX21zZxIlCgliYXNlX2luZm8YASAC",
  35. "KAsyEi5tZXNzYWdlLkJhc2VfaW5mbxITCgt0ZXJtaW5hbF9pZBgCIAIoBRIk",
  36. "CgRjb2RlGAMgAigLMhYubWVzc2FnZS5FcnJvcl9tYW5hZ2Vy"));
  37. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  38. new pbr::FileDescriptor[] { global::Message.MessageBaseReflection.Descriptor, },
  39. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  40. new pbr::GeneratedClrTypeInfo(typeof(global::Message.Store_command_request_msg), global::Message.Store_command_request_msg.Parser, new[]{ "BaseInfo", "TerminalId", "LocateInformation", "CarInfo" }, null, null, null, null),
  41. new pbr::GeneratedClrTypeInfo(typeof(global::Message.Store_command_response_msg), global::Message.Store_command_response_msg.Parser, new[]{ "BaseInfo", "TerminalId", "Code" }, null, null, null, null),
  42. new pbr::GeneratedClrTypeInfo(typeof(global::Message.Pickup_command_request_msg), global::Message.Pickup_command_request_msg.Parser, new[]{ "BaseInfo", "TerminalId", "CarInfo" }, null, null, null, null),
  43. new pbr::GeneratedClrTypeInfo(typeof(global::Message.Pickup_command_response_msg), global::Message.Pickup_command_response_msg.Parser, new[]{ "BaseInfo", "TerminalId", "Code" }, null, null, null, null)
  44. }));
  45. }
  46. #endregion
  47. }
  48. #region Messages
  49. public sealed partial class Store_command_request_msg : pb::IMessage<Store_command_request_msg> {
  50. private static readonly pb::MessageParser<Store_command_request_msg> _parser = new pb::MessageParser<Store_command_request_msg>(() => new Store_command_request_msg());
  51. private pb::UnknownFieldSet _unknownFields;
  52. private int _hasBits0;
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  54. public static pb::MessageParser<Store_command_request_msg> Parser { get { return _parser; } }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  56. public static pbr::MessageDescriptor Descriptor {
  57. get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[0]; }
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. pbr::MessageDescriptor pb::IMessage.Descriptor {
  61. get { return Descriptor; }
  62. }
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  64. public Store_command_request_msg() {
  65. OnConstruction();
  66. }
  67. partial void OnConstruction();
  68. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  69. public Store_command_request_msg(Store_command_request_msg other) : this() {
  70. _hasBits0 = other._hasBits0;
  71. baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
  72. terminalId_ = other.terminalId_;
  73. locateInformation_ = other.locateInformation_ != null ? other.locateInformation_.Clone() : null;
  74. carInfo_ = other.carInfo_ != null ? other.carInfo_.Clone() : null;
  75. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  76. }
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  78. public Store_command_request_msg Clone() {
  79. return new Store_command_request_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. public global::Message.Base_info BaseInfo {
  89. get { return baseInfo_; }
  90. set {
  91. baseInfo_ = value;
  92. }
  93. }
  94. /// <summary>Field number for the "terminal_id" field.</summary>
  95. public const int TerminalIdFieldNumber = 2;
  96. private readonly static int TerminalIdDefaultValue = 0;
  97. private int terminalId_;
  98. /// <summary>
  99. ///终端id
  100. /// </summary>
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  102. public int TerminalId {
  103. get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
  104. set {
  105. _hasBits0 |= 1;
  106. terminalId_ = value;
  107. }
  108. }
  109. /// <summary>Gets whether the "terminal_id" field is set</summary>
  110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  111. public bool HasTerminalId {
  112. get { return (_hasBits0 & 1) != 0; }
  113. }
  114. /// <summary>Clears the value of the "terminal_id" field</summary>
  115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  116. public void ClearTerminalId() {
  117. _hasBits0 &= ~1;
  118. }
  119. /// <summary>Field number for the "locate_information" field.</summary>
  120. public const int LocateInformationFieldNumber = 3;
  121. private global::Message.Locate_information locateInformation_;
  122. /// <summary>
  123. ///终端测量数据,主要需要车高和车宽
  124. /// </summary>
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  126. public global::Message.Locate_information LocateInformation {
  127. get { return locateInformation_; }
  128. set {
  129. locateInformation_ = value;
  130. }
  131. }
  132. /// <summary>Field number for the "car_info" field.</summary>
  133. public const int CarInfoFieldNumber = 4;
  134. private global::Message.Car_info carInfo_;
  135. /// <summary>
  136. ///车辆标识(车牌号)
  137. /// </summary>
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  139. public global::Message.Car_info CarInfo {
  140. get { return carInfo_; }
  141. set {
  142. carInfo_ = value;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  146. public override bool Equals(object other) {
  147. return Equals(other as Store_command_request_msg);
  148. }
  149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  150. public bool Equals(Store_command_request_msg other) {
  151. if (ReferenceEquals(other, null)) {
  152. return false;
  153. }
  154. if (ReferenceEquals(other, this)) {
  155. return true;
  156. }
  157. if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
  158. if (TerminalId != other.TerminalId) return false;
  159. if (!object.Equals(LocateInformation, other.LocateInformation)) return false;
  160. if (!object.Equals(CarInfo, other.CarInfo)) return false;
  161. return Equals(_unknownFields, other._unknownFields);
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  164. public override int GetHashCode() {
  165. int hash = 1;
  166. if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
  167. if (HasTerminalId) hash ^= TerminalId.GetHashCode();
  168. if (locateInformation_ != null) hash ^= LocateInformation.GetHashCode();
  169. if (carInfo_ != null) hash ^= CarInfo.GetHashCode();
  170. if (_unknownFields != null) {
  171. hash ^= _unknownFields.GetHashCode();
  172. }
  173. return hash;
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. public override string ToString() {
  177. return pb::JsonFormatter.ToDiagnosticString(this);
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  180. public void WriteTo(pb::CodedOutputStream output) {
  181. if (baseInfo_ != null) {
  182. output.WriteRawTag(10);
  183. output.WriteMessage(BaseInfo);
  184. }
  185. if (HasTerminalId) {
  186. output.WriteRawTag(16);
  187. output.WriteInt32(TerminalId);
  188. }
  189. if (locateInformation_ != null) {
  190. output.WriteRawTag(26);
  191. output.WriteMessage(LocateInformation);
  192. }
  193. if (carInfo_ != null) {
  194. output.WriteRawTag(34);
  195. output.WriteMessage(CarInfo);
  196. }
  197. if (_unknownFields != null) {
  198. _unknownFields.WriteTo(output);
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  202. public int CalculateSize() {
  203. int size = 0;
  204. if (baseInfo_ != null) {
  205. size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
  206. }
  207. if (HasTerminalId) {
  208. size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
  209. }
  210. if (locateInformation_ != null) {
  211. size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocateInformation);
  212. }
  213. if (carInfo_ != null) {
  214. size += 1 + pb::CodedOutputStream.ComputeMessageSize(CarInfo);
  215. }
  216. if (_unknownFields != null) {
  217. size += _unknownFields.CalculateSize();
  218. }
  219. return size;
  220. }
  221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  222. public void MergeFrom(Store_command_request_msg other) {
  223. if (other == null) {
  224. return;
  225. }
  226. if (other.baseInfo_ != null) {
  227. if (baseInfo_ == null) {
  228. BaseInfo = new global::Message.Base_info();
  229. }
  230. BaseInfo.MergeFrom(other.BaseInfo);
  231. }
  232. if (other.HasTerminalId) {
  233. TerminalId = other.TerminalId;
  234. }
  235. if (other.locateInformation_ != null) {
  236. if (locateInformation_ == null) {
  237. LocateInformation = new global::Message.Locate_information();
  238. }
  239. LocateInformation.MergeFrom(other.LocateInformation);
  240. }
  241. if (other.carInfo_ != null) {
  242. if (carInfo_ == null) {
  243. CarInfo = new global::Message.Car_info();
  244. }
  245. CarInfo.MergeFrom(other.CarInfo);
  246. }
  247. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  250. public void MergeFrom(pb::CodedInputStream input) {
  251. uint tag;
  252. while ((tag = input.ReadTag()) != 0) {
  253. switch(tag) {
  254. default:
  255. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  256. break;
  257. case 10: {
  258. if (baseInfo_ == null) {
  259. BaseInfo = new global::Message.Base_info();
  260. }
  261. input.ReadMessage(BaseInfo);
  262. break;
  263. }
  264. case 16: {
  265. TerminalId = input.ReadInt32();
  266. break;
  267. }
  268. case 26: {
  269. if (locateInformation_ == null) {
  270. LocateInformation = new global::Message.Locate_information();
  271. }
  272. input.ReadMessage(LocateInformation);
  273. break;
  274. }
  275. case 34: {
  276. if (carInfo_ == null) {
  277. CarInfo = new global::Message.Car_info();
  278. }
  279. input.ReadMessage(CarInfo);
  280. break;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. public sealed partial class Store_command_response_msg : pb::IMessage<Store_command_response_msg> {
  287. private static readonly pb::MessageParser<Store_command_response_msg> _parser = new pb::MessageParser<Store_command_response_msg>(() => new Store_command_response_msg());
  288. private pb::UnknownFieldSet _unknownFields;
  289. private int _hasBits0;
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  291. public static pb::MessageParser<Store_command_response_msg> Parser { get { return _parser; } }
  292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  293. public static pbr::MessageDescriptor Descriptor {
  294. get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[1]; }
  295. }
  296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  297. pbr::MessageDescriptor pb::IMessage.Descriptor {
  298. get { return Descriptor; }
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  301. public Store_command_response_msg() {
  302. OnConstruction();
  303. }
  304. partial void OnConstruction();
  305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  306. public Store_command_response_msg(Store_command_response_msg other) : this() {
  307. _hasBits0 = other._hasBits0;
  308. baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
  309. terminalId_ = other.terminalId_;
  310. code_ = other.code_ != null ? other.code_.Clone() : null;
  311. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  312. }
  313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  314. public Store_command_response_msg Clone() {
  315. return new Store_command_response_msg(this);
  316. }
  317. /// <summary>Field number for the "base_info" field.</summary>
  318. public const int BaseInfoFieldNumber = 1;
  319. private global::Message.Base_info baseInfo_;
  320. /// <summary>
  321. ///消息类型
  322. /// </summary>
  323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  324. public global::Message.Base_info BaseInfo {
  325. get { return baseInfo_; }
  326. set {
  327. baseInfo_ = value;
  328. }
  329. }
  330. /// <summary>Field number for the "terminal_id" field.</summary>
  331. public const int TerminalIdFieldNumber = 2;
  332. private readonly static int TerminalIdDefaultValue = 0;
  333. private int terminalId_;
  334. /// <summary>
  335. ///终端id
  336. /// </summary>
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  338. public int TerminalId {
  339. get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
  340. set {
  341. _hasBits0 |= 1;
  342. terminalId_ = value;
  343. }
  344. }
  345. /// <summary>Gets whether the "terminal_id" field is set</summary>
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  347. public bool HasTerminalId {
  348. get { return (_hasBits0 & 1) != 0; }
  349. }
  350. /// <summary>Clears the value of the "terminal_id" field</summary>
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. public void ClearTerminalId() {
  353. _hasBits0 &= ~1;
  354. }
  355. /// <summary>Field number for the "code" field.</summary>
  356. public const int CodeFieldNumber = 3;
  357. private global::Message.Error_manager code_;
  358. /// <summary>
  359. ///请求结果码
  360. /// </summary>
  361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  362. public global::Message.Error_manager Code {
  363. get { return code_; }
  364. set {
  365. code_ = value;
  366. }
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  369. public override bool Equals(object other) {
  370. return Equals(other as Store_command_response_msg);
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  373. public bool Equals(Store_command_response_msg other) {
  374. if (ReferenceEquals(other, null)) {
  375. return false;
  376. }
  377. if (ReferenceEquals(other, this)) {
  378. return true;
  379. }
  380. if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
  381. if (TerminalId != other.TerminalId) return false;
  382. if (!object.Equals(Code, other.Code)) return false;
  383. return Equals(_unknownFields, other._unknownFields);
  384. }
  385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  386. public override int GetHashCode() {
  387. int hash = 1;
  388. if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
  389. if (HasTerminalId) hash ^= TerminalId.GetHashCode();
  390. if (code_ != null) hash ^= Code.GetHashCode();
  391. if (_unknownFields != null) {
  392. hash ^= _unknownFields.GetHashCode();
  393. }
  394. return hash;
  395. }
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  397. public override string ToString() {
  398. return pb::JsonFormatter.ToDiagnosticString(this);
  399. }
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. public void WriteTo(pb::CodedOutputStream output) {
  402. if (baseInfo_ != null) {
  403. output.WriteRawTag(10);
  404. output.WriteMessage(BaseInfo);
  405. }
  406. if (HasTerminalId) {
  407. output.WriteRawTag(16);
  408. output.WriteInt32(TerminalId);
  409. }
  410. if (code_ != null) {
  411. output.WriteRawTag(26);
  412. output.WriteMessage(Code);
  413. }
  414. if (_unknownFields != null) {
  415. _unknownFields.WriteTo(output);
  416. }
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  419. public int CalculateSize() {
  420. int size = 0;
  421. if (baseInfo_ != null) {
  422. size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
  423. }
  424. if (HasTerminalId) {
  425. size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
  426. }
  427. if (code_ != null) {
  428. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Code);
  429. }
  430. if (_unknownFields != null) {
  431. size += _unknownFields.CalculateSize();
  432. }
  433. return size;
  434. }
  435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  436. public void MergeFrom(Store_command_response_msg other) {
  437. if (other == null) {
  438. return;
  439. }
  440. if (other.baseInfo_ != null) {
  441. if (baseInfo_ == null) {
  442. BaseInfo = new global::Message.Base_info();
  443. }
  444. BaseInfo.MergeFrom(other.BaseInfo);
  445. }
  446. if (other.HasTerminalId) {
  447. TerminalId = other.TerminalId;
  448. }
  449. if (other.code_ != null) {
  450. if (code_ == null) {
  451. Code = new global::Message.Error_manager();
  452. }
  453. Code.MergeFrom(other.Code);
  454. }
  455. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  456. }
  457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  458. public void MergeFrom(pb::CodedInputStream input) {
  459. uint tag;
  460. while ((tag = input.ReadTag()) != 0) {
  461. switch(tag) {
  462. default:
  463. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  464. break;
  465. case 10: {
  466. if (baseInfo_ == null) {
  467. BaseInfo = new global::Message.Base_info();
  468. }
  469. input.ReadMessage(BaseInfo);
  470. break;
  471. }
  472. case 16: {
  473. TerminalId = input.ReadInt32();
  474. break;
  475. }
  476. case 26: {
  477. if (code_ == null) {
  478. Code = new global::Message.Error_manager();
  479. }
  480. input.ReadMessage(Code);
  481. break;
  482. }
  483. }
  484. }
  485. }
  486. }
  487. public sealed partial class Pickup_command_request_msg : pb::IMessage<Pickup_command_request_msg> {
  488. private static readonly pb::MessageParser<Pickup_command_request_msg> _parser = new pb::MessageParser<Pickup_command_request_msg>(() => new Pickup_command_request_msg());
  489. private pb::UnknownFieldSet _unknownFields;
  490. private int _hasBits0;
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  492. public static pb::MessageParser<Pickup_command_request_msg> Parser { get { return _parser; } }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  494. public static pbr::MessageDescriptor Descriptor {
  495. get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[2]; }
  496. }
  497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  498. pbr::MessageDescriptor pb::IMessage.Descriptor {
  499. get { return Descriptor; }
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  502. public Pickup_command_request_msg() {
  503. OnConstruction();
  504. }
  505. partial void OnConstruction();
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  507. public Pickup_command_request_msg(Pickup_command_request_msg other) : this() {
  508. _hasBits0 = other._hasBits0;
  509. baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
  510. terminalId_ = other.terminalId_;
  511. carInfo_ = other.carInfo_ != null ? other.carInfo_.Clone() : null;
  512. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public Pickup_command_request_msg Clone() {
  516. return new Pickup_command_request_msg(this);
  517. }
  518. /// <summary>Field number for the "base_info" field.</summary>
  519. public const int BaseInfoFieldNumber = 1;
  520. private global::Message.Base_info baseInfo_;
  521. /// <summary>
  522. ///消息类型
  523. /// </summary>
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  525. public global::Message.Base_info BaseInfo {
  526. get { return baseInfo_; }
  527. set {
  528. baseInfo_ = value;
  529. }
  530. }
  531. /// <summary>Field number for the "terminal_id" field.</summary>
  532. public const int TerminalIdFieldNumber = 2;
  533. private readonly static int TerminalIdDefaultValue = 0;
  534. private int terminalId_;
  535. /// <summary>
  536. ///终端id
  537. /// </summary>
  538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  539. public int TerminalId {
  540. get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
  541. set {
  542. _hasBits0 |= 1;
  543. terminalId_ = value;
  544. }
  545. }
  546. /// <summary>Gets whether the "terminal_id" field is set</summary>
  547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  548. public bool HasTerminalId {
  549. get { return (_hasBits0 & 1) != 0; }
  550. }
  551. /// <summary>Clears the value of the "terminal_id" field</summary>
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  553. public void ClearTerminalId() {
  554. _hasBits0 &= ~1;
  555. }
  556. /// <summary>Field number for the "car_info" field.</summary>
  557. public const int CarInfoFieldNumber = 4;
  558. private global::Message.Car_info carInfo_;
  559. /// <summary>
  560. ///车辆信息
  561. /// </summary>
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  563. public global::Message.Car_info CarInfo {
  564. get { return carInfo_; }
  565. set {
  566. carInfo_ = value;
  567. }
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  570. public override bool Equals(object other) {
  571. return Equals(other as Pickup_command_request_msg);
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  574. public bool Equals(Pickup_command_request_msg other) {
  575. if (ReferenceEquals(other, null)) {
  576. return false;
  577. }
  578. if (ReferenceEquals(other, this)) {
  579. return true;
  580. }
  581. if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
  582. if (TerminalId != other.TerminalId) return false;
  583. if (!object.Equals(CarInfo, other.CarInfo)) return false;
  584. return Equals(_unknownFields, other._unknownFields);
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  587. public override int GetHashCode() {
  588. int hash = 1;
  589. if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
  590. if (HasTerminalId) hash ^= TerminalId.GetHashCode();
  591. if (carInfo_ != null) hash ^= CarInfo.GetHashCode();
  592. if (_unknownFields != null) {
  593. hash ^= _unknownFields.GetHashCode();
  594. }
  595. return hash;
  596. }
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  598. public override string ToString() {
  599. return pb::JsonFormatter.ToDiagnosticString(this);
  600. }
  601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  602. public void WriteTo(pb::CodedOutputStream output) {
  603. if (baseInfo_ != null) {
  604. output.WriteRawTag(10);
  605. output.WriteMessage(BaseInfo);
  606. }
  607. if (HasTerminalId) {
  608. output.WriteRawTag(16);
  609. output.WriteInt32(TerminalId);
  610. }
  611. if (carInfo_ != null) {
  612. output.WriteRawTag(34);
  613. output.WriteMessage(CarInfo);
  614. }
  615. if (_unknownFields != null) {
  616. _unknownFields.WriteTo(output);
  617. }
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  620. public int CalculateSize() {
  621. int size = 0;
  622. if (baseInfo_ != null) {
  623. size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
  624. }
  625. if (HasTerminalId) {
  626. size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
  627. }
  628. if (carInfo_ != null) {
  629. size += 1 + pb::CodedOutputStream.ComputeMessageSize(CarInfo);
  630. }
  631. if (_unknownFields != null) {
  632. size += _unknownFields.CalculateSize();
  633. }
  634. return size;
  635. }
  636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  637. public void MergeFrom(Pickup_command_request_msg other) {
  638. if (other == null) {
  639. return;
  640. }
  641. if (other.baseInfo_ != null) {
  642. if (baseInfo_ == null) {
  643. BaseInfo = new global::Message.Base_info();
  644. }
  645. BaseInfo.MergeFrom(other.BaseInfo);
  646. }
  647. if (other.HasTerminalId) {
  648. TerminalId = other.TerminalId;
  649. }
  650. if (other.carInfo_ != null) {
  651. if (carInfo_ == null) {
  652. CarInfo = new global::Message.Car_info();
  653. }
  654. CarInfo.MergeFrom(other.CarInfo);
  655. }
  656. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  659. public void MergeFrom(pb::CodedInputStream input) {
  660. uint tag;
  661. while ((tag = input.ReadTag()) != 0) {
  662. switch(tag) {
  663. default:
  664. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  665. break;
  666. case 10: {
  667. if (baseInfo_ == null) {
  668. BaseInfo = new global::Message.Base_info();
  669. }
  670. input.ReadMessage(BaseInfo);
  671. break;
  672. }
  673. case 16: {
  674. TerminalId = input.ReadInt32();
  675. break;
  676. }
  677. case 34: {
  678. if (carInfo_ == null) {
  679. CarInfo = new global::Message.Car_info();
  680. }
  681. input.ReadMessage(CarInfo);
  682. break;
  683. }
  684. }
  685. }
  686. }
  687. }
  688. public sealed partial class Pickup_command_response_msg : pb::IMessage<Pickup_command_response_msg> {
  689. private static readonly pb::MessageParser<Pickup_command_response_msg> _parser = new pb::MessageParser<Pickup_command_response_msg>(() => new Pickup_command_response_msg());
  690. private pb::UnknownFieldSet _unknownFields;
  691. private int _hasBits0;
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  693. public static pb::MessageParser<Pickup_command_response_msg> Parser { get { return _parser; } }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  695. public static pbr::MessageDescriptor Descriptor {
  696. get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[3]; }
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  699. pbr::MessageDescriptor pb::IMessage.Descriptor {
  700. get { return Descriptor; }
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  703. public Pickup_command_response_msg() {
  704. OnConstruction();
  705. }
  706. partial void OnConstruction();
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  708. public Pickup_command_response_msg(Pickup_command_response_msg other) : this() {
  709. _hasBits0 = other._hasBits0;
  710. baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
  711. terminalId_ = other.terminalId_;
  712. code_ = other.code_ != null ? other.code_.Clone() : null;
  713. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  716. public Pickup_command_response_msg Clone() {
  717. return new Pickup_command_response_msg(this);
  718. }
  719. /// <summary>Field number for the "base_info" field.</summary>
  720. public const int BaseInfoFieldNumber = 1;
  721. private global::Message.Base_info baseInfo_;
  722. /// <summary>
  723. ///消息类型
  724. /// </summary>
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  726. public global::Message.Base_info BaseInfo {
  727. get { return baseInfo_; }
  728. set {
  729. baseInfo_ = value;
  730. }
  731. }
  732. /// <summary>Field number for the "terminal_id" field.</summary>
  733. public const int TerminalIdFieldNumber = 2;
  734. private readonly static int TerminalIdDefaultValue = 0;
  735. private int terminalId_;
  736. /// <summary>
  737. ///终端id
  738. /// </summary>
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  740. public int TerminalId {
  741. get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
  742. set {
  743. _hasBits0 |= 1;
  744. terminalId_ = value;
  745. }
  746. }
  747. /// <summary>Gets whether the "terminal_id" field is set</summary>
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  749. public bool HasTerminalId {
  750. get { return (_hasBits0 & 1) != 0; }
  751. }
  752. /// <summary>Clears the value of the "terminal_id" field</summary>
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  754. public void ClearTerminalId() {
  755. _hasBits0 &= ~1;
  756. }
  757. /// <summary>Field number for the "code" field.</summary>
  758. public const int CodeFieldNumber = 3;
  759. private global::Message.Error_manager code_;
  760. /// <summary>
  761. ///请求结果码
  762. /// </summary>
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  764. public global::Message.Error_manager Code {
  765. get { return code_; }
  766. set {
  767. code_ = value;
  768. }
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  771. public override bool Equals(object other) {
  772. return Equals(other as Pickup_command_response_msg);
  773. }
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  775. public bool Equals(Pickup_command_response_msg other) {
  776. if (ReferenceEquals(other, null)) {
  777. return false;
  778. }
  779. if (ReferenceEquals(other, this)) {
  780. return true;
  781. }
  782. if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
  783. if (TerminalId != other.TerminalId) return false;
  784. if (!object.Equals(Code, other.Code)) return false;
  785. return Equals(_unknownFields, other._unknownFields);
  786. }
  787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  788. public override int GetHashCode() {
  789. int hash = 1;
  790. if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
  791. if (HasTerminalId) hash ^= TerminalId.GetHashCode();
  792. if (code_ != null) hash ^= Code.GetHashCode();
  793. if (_unknownFields != null) {
  794. hash ^= _unknownFields.GetHashCode();
  795. }
  796. return hash;
  797. }
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  799. public override string ToString() {
  800. return pb::JsonFormatter.ToDiagnosticString(this);
  801. }
  802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  803. public void WriteTo(pb::CodedOutputStream output) {
  804. if (baseInfo_ != null) {
  805. output.WriteRawTag(10);
  806. output.WriteMessage(BaseInfo);
  807. }
  808. if (HasTerminalId) {
  809. output.WriteRawTag(16);
  810. output.WriteInt32(TerminalId);
  811. }
  812. if (code_ != null) {
  813. output.WriteRawTag(26);
  814. output.WriteMessage(Code);
  815. }
  816. if (_unknownFields != null) {
  817. _unknownFields.WriteTo(output);
  818. }
  819. }
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  821. public int CalculateSize() {
  822. int size = 0;
  823. if (baseInfo_ != null) {
  824. size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
  825. }
  826. if (HasTerminalId) {
  827. size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
  828. }
  829. if (code_ != null) {
  830. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Code);
  831. }
  832. if (_unknownFields != null) {
  833. size += _unknownFields.CalculateSize();
  834. }
  835. return size;
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  838. public void MergeFrom(Pickup_command_response_msg other) {
  839. if (other == null) {
  840. return;
  841. }
  842. if (other.baseInfo_ != null) {
  843. if (baseInfo_ == null) {
  844. BaseInfo = new global::Message.Base_info();
  845. }
  846. BaseInfo.MergeFrom(other.BaseInfo);
  847. }
  848. if (other.HasTerminalId) {
  849. TerminalId = other.TerminalId;
  850. }
  851. if (other.code_ != null) {
  852. if (code_ == null) {
  853. Code = new global::Message.Error_manager();
  854. }
  855. Code.MergeFrom(other.Code);
  856. }
  857. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  860. public void MergeFrom(pb::CodedInputStream input) {
  861. uint tag;
  862. while ((tag = input.ReadTag()) != 0) {
  863. switch(tag) {
  864. default:
  865. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  866. break;
  867. case 10: {
  868. if (baseInfo_ == null) {
  869. BaseInfo = new global::Message.Base_info();
  870. }
  871. input.ReadMessage(BaseInfo);
  872. break;
  873. }
  874. case 16: {
  875. TerminalId = input.ReadInt32();
  876. break;
  877. }
  878. case 26: {
  879. if (code_ == null) {
  880. Code = new global::Message.Error_manager();
  881. }
  882. input.ReadMessage(Code);
  883. break;
  884. }
  885. }
  886. }
  887. }
  888. }
  889. #endregion
  890. }
  891. #endregion Designer generated code