TerminalMessage.cs 41 KB

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