123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: terminal_message.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Message {
- /// <summary>Holder for reflection information generated from terminal_message.proto</summary>
- public static partial class TerminalMessageReflection {
- #region Descriptor
- /// <summary>File descriptor for terminal_message.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static TerminalMessageReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "ChZ0ZXJtaW5hbF9tZXNzYWdlLnByb3RvEgdtZXNzYWdlGhJtZXNzYWdlX2Jh",
- "c2UucHJvdG8itQEKGVN0b3JlX2NvbW1hbmRfcmVxdWVzdF9tc2cSJQoJYmFz",
- "ZV9pbmZvGAEgAigLMhIubWVzc2FnZS5CYXNlX2luZm8SEwoLdGVybWluYWxf",
- "aWQYAiACKAUSNwoSbG9jYXRlX2luZm9ybWF0aW9uGAMgAigLMhsubWVzc2Fn",
- "ZS5Mb2NhdGVfaW5mb3JtYXRpb24SIwoIY2FyX2luZm8YBCACKAsyES5tZXNz",
- "YWdlLkNhcl9pbmZvIn4KGlN0b3JlX2NvbW1hbmRfcmVzcG9uc2VfbXNnEiUK",
- "CWJhc2VfaW5mbxgBIAIoCzISLm1lc3NhZ2UuQmFzZV9pbmZvEhMKC3Rlcm1p",
- "bmFsX2lkGAIgAigFEiQKBGNvZGUYAyACKAsyFi5tZXNzYWdlLkVycm9yX21h",
- "bmFnZXIifQoaUGlja3VwX2NvbW1hbmRfcmVxdWVzdF9tc2cSJQoJYmFzZV9p",
- "bmZvGAEgAigLMhIubWVzc2FnZS5CYXNlX2luZm8SEwoLdGVybWluYWxfaWQY",
- "AiACKAUSIwoIY2FyX2luZm8YBCACKAsyES5tZXNzYWdlLkNhcl9pbmZvIn8K",
- "G1BpY2t1cF9jb21tYW5kX3Jlc3BvbnNlX21zZxIlCgliYXNlX2luZm8YASAC",
- "KAsyEi5tZXNzYWdlLkJhc2VfaW5mbxITCgt0ZXJtaW5hbF9pZBgCIAIoBRIk",
- "CgRjb2RlGAMgAigLMhYubWVzc2FnZS5FcnJvcl9tYW5hZ2Vy"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Message.MessageBaseReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- 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),
- 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),
- 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),
- 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)
- }));
- }
- #endregion
- }
- #region Messages
- public sealed partial class Store_command_request_msg : pb::IMessage<Store_command_request_msg> {
- private static readonly pb::MessageParser<Store_command_request_msg> _parser = new pb::MessageParser<Store_command_request_msg>(() => new Store_command_request_msg());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Store_command_request_msg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Store_command_request_msg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Store_command_request_msg(Store_command_request_msg other) : this() {
- _hasBits0 = other._hasBits0;
- baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
- terminalId_ = other.terminalId_;
- locateInformation_ = other.locateInformation_ != null ? other.locateInformation_.Clone() : null;
- carInfo_ = other.carInfo_ != null ? other.carInfo_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Store_command_request_msg Clone() {
- return new Store_command_request_msg(this);
- }
- /// <summary>Field number for the "base_info" field.</summary>
- public const int BaseInfoFieldNumber = 1;
- private global::Message.Base_info baseInfo_;
- /// <summary>
- ///消息类型
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Base_info BaseInfo {
- get { return baseInfo_; }
- set {
- baseInfo_ = value;
- }
- }
- /// <summary>Field number for the "terminal_id" field.</summary>
- public const int TerminalIdFieldNumber = 2;
- private readonly static int TerminalIdDefaultValue = 0;
- private int terminalId_;
- /// <summary>
- ///终端id
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int TerminalId {
- get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
- set {
- _hasBits0 |= 1;
- terminalId_ = value;
- }
- }
- /// <summary>Gets whether the "terminal_id" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasTerminalId {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "terminal_id" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearTerminalId() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "locate_information" field.</summary>
- public const int LocateInformationFieldNumber = 3;
- private global::Message.Locate_information locateInformation_;
- /// <summary>
- ///终端测量数据,主要需要车高和车宽
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Locate_information LocateInformation {
- get { return locateInformation_; }
- set {
- locateInformation_ = value;
- }
- }
- /// <summary>Field number for the "car_info" field.</summary>
- public const int CarInfoFieldNumber = 4;
- private global::Message.Car_info carInfo_;
- /// <summary>
- ///车辆标识(车牌号)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Car_info CarInfo {
- get { return carInfo_; }
- set {
- carInfo_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Store_command_request_msg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Store_command_request_msg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
- if (TerminalId != other.TerminalId) return false;
- if (!object.Equals(LocateInformation, other.LocateInformation)) return false;
- if (!object.Equals(CarInfo, other.CarInfo)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
- if (HasTerminalId) hash ^= TerminalId.GetHashCode();
- if (locateInformation_ != null) hash ^= LocateInformation.GetHashCode();
- if (carInfo_ != null) hash ^= CarInfo.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (baseInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(BaseInfo);
- }
- if (HasTerminalId) {
- output.WriteRawTag(16);
- output.WriteInt32(TerminalId);
- }
- if (locateInformation_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(LocateInformation);
- }
- if (carInfo_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(CarInfo);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (baseInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
- }
- if (HasTerminalId) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
- }
- if (locateInformation_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocateInformation);
- }
- if (carInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CarInfo);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Store_command_request_msg other) {
- if (other == null) {
- return;
- }
- if (other.baseInfo_ != null) {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- BaseInfo.MergeFrom(other.BaseInfo);
- }
- if (other.HasTerminalId) {
- TerminalId = other.TerminalId;
- }
- if (other.locateInformation_ != null) {
- if (locateInformation_ == null) {
- LocateInformation = new global::Message.Locate_information();
- }
- LocateInformation.MergeFrom(other.LocateInformation);
- }
- if (other.carInfo_ != null) {
- if (carInfo_ == null) {
- CarInfo = new global::Message.Car_info();
- }
- CarInfo.MergeFrom(other.CarInfo);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- input.ReadMessage(BaseInfo);
- break;
- }
- case 16: {
- TerminalId = input.ReadInt32();
- break;
- }
- case 26: {
- if (locateInformation_ == null) {
- LocateInformation = new global::Message.Locate_information();
- }
- input.ReadMessage(LocateInformation);
- break;
- }
- case 34: {
- if (carInfo_ == null) {
- CarInfo = new global::Message.Car_info();
- }
- input.ReadMessage(CarInfo);
- break;
- }
- }
- }
- }
- }
- public sealed partial class Store_command_response_msg : pb::IMessage<Store_command_response_msg> {
- private static readonly pb::MessageParser<Store_command_response_msg> _parser = new pb::MessageParser<Store_command_response_msg>(() => new Store_command_response_msg());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Store_command_response_msg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Store_command_response_msg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Store_command_response_msg(Store_command_response_msg other) : this() {
- _hasBits0 = other._hasBits0;
- baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
- terminalId_ = other.terminalId_;
- code_ = other.code_ != null ? other.code_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Store_command_response_msg Clone() {
- return new Store_command_response_msg(this);
- }
- /// <summary>Field number for the "base_info" field.</summary>
- public const int BaseInfoFieldNumber = 1;
- private global::Message.Base_info baseInfo_;
- /// <summary>
- ///消息类型
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Base_info BaseInfo {
- get { return baseInfo_; }
- set {
- baseInfo_ = value;
- }
- }
- /// <summary>Field number for the "terminal_id" field.</summary>
- public const int TerminalIdFieldNumber = 2;
- private readonly static int TerminalIdDefaultValue = 0;
- private int terminalId_;
- /// <summary>
- ///终端id
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int TerminalId {
- get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
- set {
- _hasBits0 |= 1;
- terminalId_ = value;
- }
- }
- /// <summary>Gets whether the "terminal_id" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasTerminalId {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "terminal_id" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearTerminalId() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "code" field.</summary>
- public const int CodeFieldNumber = 3;
- private global::Message.Error_manager code_;
- /// <summary>
- ///请求结果码
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Error_manager Code {
- get { return code_; }
- set {
- code_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Store_command_response_msg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Store_command_response_msg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
- if (TerminalId != other.TerminalId) return false;
- if (!object.Equals(Code, other.Code)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
- if (HasTerminalId) hash ^= TerminalId.GetHashCode();
- if (code_ != null) hash ^= Code.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (baseInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(BaseInfo);
- }
- if (HasTerminalId) {
- output.WriteRawTag(16);
- output.WriteInt32(TerminalId);
- }
- if (code_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Code);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (baseInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
- }
- if (HasTerminalId) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
- }
- if (code_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Code);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Store_command_response_msg other) {
- if (other == null) {
- return;
- }
- if (other.baseInfo_ != null) {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- BaseInfo.MergeFrom(other.BaseInfo);
- }
- if (other.HasTerminalId) {
- TerminalId = other.TerminalId;
- }
- if (other.code_ != null) {
- if (code_ == null) {
- Code = new global::Message.Error_manager();
- }
- Code.MergeFrom(other.Code);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- input.ReadMessage(BaseInfo);
- break;
- }
- case 16: {
- TerminalId = input.ReadInt32();
- break;
- }
- case 26: {
- if (code_ == null) {
- Code = new global::Message.Error_manager();
- }
- input.ReadMessage(Code);
- break;
- }
- }
- }
- }
- }
- public sealed partial class Pickup_command_request_msg : pb::IMessage<Pickup_command_request_msg> {
- private static readonly pb::MessageParser<Pickup_command_request_msg> _parser = new pb::MessageParser<Pickup_command_request_msg>(() => new Pickup_command_request_msg());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Pickup_command_request_msg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Pickup_command_request_msg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Pickup_command_request_msg(Pickup_command_request_msg other) : this() {
- _hasBits0 = other._hasBits0;
- baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
- terminalId_ = other.terminalId_;
- carInfo_ = other.carInfo_ != null ? other.carInfo_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Pickup_command_request_msg Clone() {
- return new Pickup_command_request_msg(this);
- }
- /// <summary>Field number for the "base_info" field.</summary>
- public const int BaseInfoFieldNumber = 1;
- private global::Message.Base_info baseInfo_;
- /// <summary>
- ///消息类型
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Base_info BaseInfo {
- get { return baseInfo_; }
- set {
- baseInfo_ = value;
- }
- }
- /// <summary>Field number for the "terminal_id" field.</summary>
- public const int TerminalIdFieldNumber = 2;
- private readonly static int TerminalIdDefaultValue = 0;
- private int terminalId_;
- /// <summary>
- ///终端id
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int TerminalId {
- get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
- set {
- _hasBits0 |= 1;
- terminalId_ = value;
- }
- }
- /// <summary>Gets whether the "terminal_id" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasTerminalId {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "terminal_id" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearTerminalId() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "car_info" field.</summary>
- public const int CarInfoFieldNumber = 4;
- private global::Message.Car_info carInfo_;
- /// <summary>
- ///车辆信息
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Car_info CarInfo {
- get { return carInfo_; }
- set {
- carInfo_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Pickup_command_request_msg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Pickup_command_request_msg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
- if (TerminalId != other.TerminalId) return false;
- if (!object.Equals(CarInfo, other.CarInfo)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
- if (HasTerminalId) hash ^= TerminalId.GetHashCode();
- if (carInfo_ != null) hash ^= CarInfo.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (baseInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(BaseInfo);
- }
- if (HasTerminalId) {
- output.WriteRawTag(16);
- output.WriteInt32(TerminalId);
- }
- if (carInfo_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(CarInfo);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (baseInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
- }
- if (HasTerminalId) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
- }
- if (carInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CarInfo);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Pickup_command_request_msg other) {
- if (other == null) {
- return;
- }
- if (other.baseInfo_ != null) {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- BaseInfo.MergeFrom(other.BaseInfo);
- }
- if (other.HasTerminalId) {
- TerminalId = other.TerminalId;
- }
- if (other.carInfo_ != null) {
- if (carInfo_ == null) {
- CarInfo = new global::Message.Car_info();
- }
- CarInfo.MergeFrom(other.CarInfo);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- input.ReadMessage(BaseInfo);
- break;
- }
- case 16: {
- TerminalId = input.ReadInt32();
- break;
- }
- case 34: {
- if (carInfo_ == null) {
- CarInfo = new global::Message.Car_info();
- }
- input.ReadMessage(CarInfo);
- break;
- }
- }
- }
- }
- }
- public sealed partial class Pickup_command_response_msg : pb::IMessage<Pickup_command_response_msg> {
- private static readonly pb::MessageParser<Pickup_command_response_msg> _parser = new pb::MessageParser<Pickup_command_response_msg>(() => new Pickup_command_response_msg());
- private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Pickup_command_response_msg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Message.TerminalMessageReflection.Descriptor.MessageTypes[3]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Pickup_command_response_msg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Pickup_command_response_msg(Pickup_command_response_msg other) : this() {
- _hasBits0 = other._hasBits0;
- baseInfo_ = other.baseInfo_ != null ? other.baseInfo_.Clone() : null;
- terminalId_ = other.terminalId_;
- code_ = other.code_ != null ? other.code_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Pickup_command_response_msg Clone() {
- return new Pickup_command_response_msg(this);
- }
- /// <summary>Field number for the "base_info" field.</summary>
- public const int BaseInfoFieldNumber = 1;
- private global::Message.Base_info baseInfo_;
- /// <summary>
- ///消息类型
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Base_info BaseInfo {
- get { return baseInfo_; }
- set {
- baseInfo_ = value;
- }
- }
- /// <summary>Field number for the "terminal_id" field.</summary>
- public const int TerminalIdFieldNumber = 2;
- private readonly static int TerminalIdDefaultValue = 0;
- private int terminalId_;
- /// <summary>
- ///终端id
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int TerminalId {
- get { if ((_hasBits0 & 1) != 0) { return terminalId_; } else { return TerminalIdDefaultValue; } }
- set {
- _hasBits0 |= 1;
- terminalId_ = value;
- }
- }
- /// <summary>Gets whether the "terminal_id" field is set</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool HasTerminalId {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// <summary>Clears the value of the "terminal_id" field</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearTerminalId() {
- _hasBits0 &= ~1;
- }
- /// <summary>Field number for the "code" field.</summary>
- public const int CodeFieldNumber = 3;
- private global::Message.Error_manager code_;
- /// <summary>
- ///请求结果码
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Message.Error_manager Code {
- get { return code_; }
- set {
- code_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Pickup_command_response_msg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Pickup_command_response_msg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(BaseInfo, other.BaseInfo)) return false;
- if (TerminalId != other.TerminalId) return false;
- if (!object.Equals(Code, other.Code)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (baseInfo_ != null) hash ^= BaseInfo.GetHashCode();
- if (HasTerminalId) hash ^= TerminalId.GetHashCode();
- if (code_ != null) hash ^= Code.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (baseInfo_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(BaseInfo);
- }
- if (HasTerminalId) {
- output.WriteRawTag(16);
- output.WriteInt32(TerminalId);
- }
- if (code_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Code);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (baseInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseInfo);
- }
- if (HasTerminalId) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(TerminalId);
- }
- if (code_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Code);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Pickup_command_response_msg other) {
- if (other == null) {
- return;
- }
- if (other.baseInfo_ != null) {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- BaseInfo.MergeFrom(other.BaseInfo);
- }
- if (other.HasTerminalId) {
- TerminalId = other.TerminalId;
- }
- if (other.code_ != null) {
- if (code_ == null) {
- Code = new global::Message.Error_manager();
- }
- Code.MergeFrom(other.Code);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (baseInfo_ == null) {
- BaseInfo = new global::Message.Base_info();
- }
- input.ReadMessage(BaseInfo);
- break;
- }
- case 16: {
- TerminalId = input.ReadInt32();
- break;
- }
- case 26: {
- if (code_ == null) {
- Code = new global::Message.Error_manager();
- }
- input.ReadMessage(Code);
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|