// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: EnergyConsumption.proto // #pragma warning disable 1591, 0612, 3021, 8981 #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 BLWData.Entity { /// Holder for reflection information generated from EnergyConsumption.proto public static partial class EnergyConsumptionReflection { #region Descriptor /// File descriptor for EnergyConsumption.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static EnergyConsumptionReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChdFbmVyZ3lDb25zdW1wdGlvbi5wcm90bxIOQkxXRGF0YS5FbnRpdHkivgEK", "CkRldmljZURhdGESDgoGSG9zdElEGAEgASgDEhIKCkRldmljZVR5cGUYAiAB", "KAkSDwoHQWRkcmVzcxgDIAEoCRIOCgZTdGF0dXMYBCABKAUSEgoKQnJpZ2h0", "bmVzcxgFIAEoBRITCgtDdXJyZW50VGVtcBgGIAEoBRITCgtTZXR0aW5nVGVt", "cBgHIAEoBRIQCghGYW5TcGVlZBgIIAEoBRIMCgRNb2RlGAkgASgFEg0KBVZh", "bHZlGAogASgFIoABChZTaW5nbGVQb3dlckNoYW5uZWxEYXRhEg8KB2FkZHJl", "c3MYASABKAkSDgoGZGlhbnlhGAIgASgBEg8KB2RpYW5saXUYAyABKAESDgoG", "Z29uZ2x2GAQgASgBEg8KB25lbmdoYW8YBSABKAESEwoLem9uZ25lbmdoYW8Y", "BiABKAEihAMKEUVuZXJneUNvbnN1bXB0aW9uEhEKCUhvdGVsQ29kZRgBIAEo", "AxISCgpIb3N0TnVtYmVyGAIgASgJEgsKA01hYxgDIAEoCRIQCghFbmRQb2lu", "dBgEIAEoCRIPCgdWZXJzaW9uGAUgASgJEhIKCklzVGFrZUNhcmQYBiABKAgS", "QAoQUG93ZXJDaGFubmVsTGlzdBgHIAMoCzImLkJMV0RhdGEuRW50aXR5LlNp", "bmdsZVBvd2VyQ2hhbm5lbERhdGESEgoKQ3JlYXRlVGltZRgIIAEoAxISCgpS", "b29tTnVtYmVyGAkgASgJEhEKCUNhcmJvblZJUBgKIAEoBRIUCgxJZGVudGl0", "eUluZm8YCyABKAUSNAoQRGV2aWNlU3RhdHVzTGlzdBgMIAMoCzIaLkJMV0Rh", "dGEuRW50aXR5LkRldmljZURhdGESEQoJQ2FyZEV2ZW50GA0gASgFEhQKDElz", "SW5zZXJ0Q2FyZBgOIAEoBRISCgpQTVNfU3RhdHVzGA8gASgJYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.DeviceData), global::BLWData.Entity.DeviceData.Parser, new[]{ "HostID", "DeviceType", "Address", "Status", "Brightness", "CurrentTemp", "SettingTemp", "FanSpeed", "Mode", "Valve" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.SinglePowerChannelData), global::BLWData.Entity.SinglePowerChannelData.Parser, new[]{ "Address", "Dianya", "Dianliu", "Gonglv", "Nenghao", "Zongnenghao" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.EnergyConsumption), global::BLWData.Entity.EnergyConsumption.Parser, new[]{ "HotelCode", "HostNumber", "Mac", "EndPoint", "Version", "IsTakeCard", "PowerChannelList", "CreateTime", "RoomNumber", "CarbonVIP", "IdentityInfo", "DeviceStatusList", "CardEvent", "IsInsertCard", "PMSStatus" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class DeviceData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceData()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::BLWData.Entity.EnergyConsumptionReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceData(DeviceData other) : this() { hostID_ = other.hostID_; deviceType_ = other.deviceType_; address_ = other.address_; status_ = other.status_; brightness_ = other.brightness_; currentTemp_ = other.currentTemp_; settingTemp_ = other.settingTemp_; fanSpeed_ = other.fanSpeed_; mode_ = other.mode_; valve_ = other.valve_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceData Clone() { return new DeviceData(this); } /// Field number for the "HostID" field. public const int HostIDFieldNumber = 1; private long hostID_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long HostID { get { return hostID_; } set { hostID_ = value; } } /// Field number for the "DeviceType" field. public const int DeviceTypeFieldNumber = 2; private string deviceType_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceType { get { return deviceType_; } set { deviceType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Address" field. public const int AddressFieldNumber = 3; private string address_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Address { get { return address_; } set { address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Status" field. public const int StatusFieldNumber = 4; private int status_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Status { get { return status_; } set { status_ = value; } } /// Field number for the "Brightness" field. public const int BrightnessFieldNumber = 5; private int brightness_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Brightness { get { return brightness_; } set { brightness_ = value; } } /// Field number for the "CurrentTemp" field. public const int CurrentTempFieldNumber = 6; private int currentTemp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CurrentTemp { get { return currentTemp_; } set { currentTemp_ = value; } } /// Field number for the "SettingTemp" field. public const int SettingTempFieldNumber = 7; private int settingTemp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SettingTemp { get { return settingTemp_; } set { settingTemp_ = value; } } /// Field number for the "FanSpeed" field. public const int FanSpeedFieldNumber = 8; private int fanSpeed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FanSpeed { get { return fanSpeed_; } set { fanSpeed_ = value; } } /// Field number for the "Mode" field. public const int ModeFieldNumber = 9; private int mode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Mode { get { return mode_; } set { mode_ = value; } } /// Field number for the "Valve" field. public const int ValveFieldNumber = 10; private int valve_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Valve { get { return valve_; } set { valve_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HostID != other.HostID) return false; if (DeviceType != other.DeviceType) return false; if (Address != other.Address) return false; if (Status != other.Status) return false; if (Brightness != other.Brightness) return false; if (CurrentTemp != other.CurrentTemp) return false; if (SettingTemp != other.SettingTemp) return false; if (FanSpeed != other.FanSpeed) return false; if (Mode != other.Mode) return false; if (Valve != other.Valve) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HostID != 0L) hash ^= HostID.GetHashCode(); if (DeviceType.Length != 0) hash ^= DeviceType.GetHashCode(); if (Address.Length != 0) hash ^= Address.GetHashCode(); if (Status != 0) hash ^= Status.GetHashCode(); if (Brightness != 0) hash ^= Brightness.GetHashCode(); if (CurrentTemp != 0) hash ^= CurrentTemp.GetHashCode(); if (SettingTemp != 0) hash ^= SettingTemp.GetHashCode(); if (FanSpeed != 0) hash ^= FanSpeed.GetHashCode(); if (Mode != 0) hash ^= Mode.GetHashCode(); if (Valve != 0) hash ^= Valve.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HostID != 0L) { output.WriteRawTag(8); output.WriteInt64(HostID); } if (DeviceType.Length != 0) { output.WriteRawTag(18); output.WriteString(DeviceType); } if (Address.Length != 0) { output.WriteRawTag(26); output.WriteString(Address); } if (Status != 0) { output.WriteRawTag(32); output.WriteInt32(Status); } if (Brightness != 0) { output.WriteRawTag(40); output.WriteInt32(Brightness); } if (CurrentTemp != 0) { output.WriteRawTag(48); output.WriteInt32(CurrentTemp); } if (SettingTemp != 0) { output.WriteRawTag(56); output.WriteInt32(SettingTemp); } if (FanSpeed != 0) { output.WriteRawTag(64); output.WriteInt32(FanSpeed); } if (Mode != 0) { output.WriteRawTag(72); output.WriteInt32(Mode); } if (Valve != 0) { output.WriteRawTag(80); output.WriteInt32(Valve); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HostID != 0L) { output.WriteRawTag(8); output.WriteInt64(HostID); } if (DeviceType.Length != 0) { output.WriteRawTag(18); output.WriteString(DeviceType); } if (Address.Length != 0) { output.WriteRawTag(26); output.WriteString(Address); } if (Status != 0) { output.WriteRawTag(32); output.WriteInt32(Status); } if (Brightness != 0) { output.WriteRawTag(40); output.WriteInt32(Brightness); } if (CurrentTemp != 0) { output.WriteRawTag(48); output.WriteInt32(CurrentTemp); } if (SettingTemp != 0) { output.WriteRawTag(56); output.WriteInt32(SettingTemp); } if (FanSpeed != 0) { output.WriteRawTag(64); output.WriteInt32(FanSpeed); } if (Mode != 0) { output.WriteRawTag(72); output.WriteInt32(Mode); } if (Valve != 0) { output.WriteRawTag(80); output.WriteInt32(Valve); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HostID != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(HostID); } if (DeviceType.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceType); } if (Address.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); } if (Status != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Status); } if (Brightness != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Brightness); } if (CurrentTemp != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrentTemp); } if (SettingTemp != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SettingTemp); } if (FanSpeed != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FanSpeed); } if (Mode != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mode); } if (Valve != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Valve); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceData other) { if (other == null) { return; } if (other.HostID != 0L) { HostID = other.HostID; } if (other.DeviceType.Length != 0) { DeviceType = other.DeviceType; } if (other.Address.Length != 0) { Address = other.Address; } if (other.Status != 0) { Status = other.Status; } if (other.Brightness != 0) { Brightness = other.Brightness; } if (other.CurrentTemp != 0) { CurrentTemp = other.CurrentTemp; } if (other.SettingTemp != 0) { SettingTemp = other.SettingTemp; } if (other.FanSpeed != 0) { FanSpeed = other.FanSpeed; } if (other.Mode != 0) { Mode = other.Mode; } if (other.Valve != 0) { Valve = other.Valve; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { if ((tag & 7) == 4) { // Abort on any end group tag. return; } switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { HostID = input.ReadInt64(); break; } case 18: { DeviceType = input.ReadString(); break; } case 26: { Address = input.ReadString(); break; } case 32: { Status = input.ReadInt32(); break; } case 40: { Brightness = input.ReadInt32(); break; } case 48: { CurrentTemp = input.ReadInt32(); break; } case 56: { SettingTemp = input.ReadInt32(); break; } case 64: { FanSpeed = input.ReadInt32(); break; } case 72: { Mode = input.ReadInt32(); break; } case 80: { Valve = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { if ((tag & 7) == 4) { // Abort on any end group tag. return; } switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { HostID = input.ReadInt64(); break; } case 18: { DeviceType = input.ReadString(); break; } case 26: { Address = input.ReadString(); break; } case 32: { Status = input.ReadInt32(); break; } case 40: { Brightness = input.ReadInt32(); break; } case 48: { CurrentTemp = input.ReadInt32(); break; } case 56: { SettingTemp = input.ReadInt32(); break; } case 64: { FanSpeed = input.ReadInt32(); break; } case 72: { Mode = input.ReadInt32(); break; } case 80: { Valve = input.ReadInt32(); break; } } } } #endif } /// ///定义单个电力通道数据 /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class SinglePowerChannelData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SinglePowerChannelData()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::BLWData.Entity.EnergyConsumptionReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SinglePowerChannelData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SinglePowerChannelData(SinglePowerChannelData other) : this() { address_ = other.address_; dianya_ = other.dianya_; dianliu_ = other.dianliu_; gonglv_ = other.gonglv_; nenghao_ = other.nenghao_; zongnenghao_ = other.zongnenghao_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SinglePowerChannelData Clone() { return new SinglePowerChannelData(this); } /// Field number for the "address" field. public const int AddressFieldNumber = 1; private string address_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Address { get { return address_; } set { address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "dianya" field. public const int DianyaFieldNumber = 2; private double dianya_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Dianya { get { return dianya_; } set { dianya_ = value; } } /// Field number for the "dianliu" field. public const int DianliuFieldNumber = 3; private double dianliu_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Dianliu { get { return dianliu_; } set { dianliu_ = value; } } /// Field number for the "gonglv" field. public const int GonglvFieldNumber = 4; private double gonglv_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Gonglv { get { return gonglv_; } set { gonglv_ = value; } } /// Field number for the "nenghao" field. public const int NenghaoFieldNumber = 5; private double nenghao_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Nenghao { get { return nenghao_; } set { nenghao_ = value; } } /// Field number for the "zongnenghao" field. public const int ZongnenghaoFieldNumber = 6; private double zongnenghao_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Zongnenghao { get { return zongnenghao_; } set { zongnenghao_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SinglePowerChannelData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SinglePowerChannelData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Address != other.Address) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Dianya, other.Dianya)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Dianliu, other.Dianliu)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Gonglv, other.Gonglv)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Nenghao, other.Nenghao)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Zongnenghao, other.Zongnenghao)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Address.Length != 0) hash ^= Address.GetHashCode(); if (Dianya != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Dianya); if (Dianliu != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Dianliu); if (Gonglv != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Gonglv); if (Nenghao != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Nenghao); if (Zongnenghao != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Zongnenghao); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Address.Length != 0) { output.WriteRawTag(10); output.WriteString(Address); } if (Dianya != 0D) { output.WriteRawTag(17); output.WriteDouble(Dianya); } if (Dianliu != 0D) { output.WriteRawTag(25); output.WriteDouble(Dianliu); } if (Gonglv != 0D) { output.WriteRawTag(33); output.WriteDouble(Gonglv); } if (Nenghao != 0D) { output.WriteRawTag(41); output.WriteDouble(Nenghao); } if (Zongnenghao != 0D) { output.WriteRawTag(49); output.WriteDouble(Zongnenghao); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Address.Length != 0) { output.WriteRawTag(10); output.WriteString(Address); } if (Dianya != 0D) { output.WriteRawTag(17); output.WriteDouble(Dianya); } if (Dianliu != 0D) { output.WriteRawTag(25); output.WriteDouble(Dianliu); } if (Gonglv != 0D) { output.WriteRawTag(33); output.WriteDouble(Gonglv); } if (Nenghao != 0D) { output.WriteRawTag(41); output.WriteDouble(Nenghao); } if (Zongnenghao != 0D) { output.WriteRawTag(49); output.WriteDouble(Zongnenghao); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Address.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); } if (Dianya != 0D) { size += 1 + 8; } if (Dianliu != 0D) { size += 1 + 8; } if (Gonglv != 0D) { size += 1 + 8; } if (Nenghao != 0D) { size += 1 + 8; } if (Zongnenghao != 0D) { size += 1 + 8; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SinglePowerChannelData other) { if (other == null) { return; } if (other.Address.Length != 0) { Address = other.Address; } if (other.Dianya != 0D) { Dianya = other.Dianya; } if (other.Dianliu != 0D) { Dianliu = other.Dianliu; } if (other.Gonglv != 0D) { Gonglv = other.Gonglv; } if (other.Nenghao != 0D) { Nenghao = other.Nenghao; } if (other.Zongnenghao != 0D) { Zongnenghao = other.Zongnenghao; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { if ((tag & 7) == 4) { // Abort on any end group tag. return; } switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Address = input.ReadString(); break; } case 17: { Dianya = input.ReadDouble(); break; } case 25: { Dianliu = input.ReadDouble(); break; } case 33: { Gonglv = input.ReadDouble(); break; } case 41: { Nenghao = input.ReadDouble(); break; } case 49: { Zongnenghao = input.ReadDouble(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { if ((tag & 7) == 4) { // Abort on any end group tag. return; } switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Address = input.ReadString(); break; } case 17: { Dianya = input.ReadDouble(); break; } case 25: { Dianliu = input.ReadDouble(); break; } case 33: { Gonglv = input.ReadDouble(); break; } case 41: { Nenghao = input.ReadDouble(); break; } case 49: { Zongnenghao = input.ReadDouble(); break; } } } } #endif } /// /// 定义一个Person消息类型 /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class EnergyConsumption : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnergyConsumption()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::BLWData.Entity.EnergyConsumptionReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnergyConsumption() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnergyConsumption(EnergyConsumption other) : this() { hotelCode_ = other.hotelCode_; hostNumber_ = other.hostNumber_; mac_ = other.mac_; endPoint_ = other.endPoint_; version_ = other.version_; isTakeCard_ = other.isTakeCard_; powerChannelList_ = other.powerChannelList_.Clone(); createTime_ = other.createTime_; roomNumber_ = other.roomNumber_; carbonVIP_ = other.carbonVIP_; identityInfo_ = other.identityInfo_; deviceStatusList_ = other.deviceStatusList_.Clone(); cardEvent_ = other.cardEvent_; isInsertCard_ = other.isInsertCard_; pMSStatus_ = other.pMSStatus_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnergyConsumption Clone() { return new EnergyConsumption(this); } /// Field number for the "HotelCode" field. public const int HotelCodeFieldNumber = 1; private long hotelCode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long HotelCode { get { return hotelCode_; } set { hotelCode_ = value; } } /// Field number for the "HostNumber" field. public const int HostNumberFieldNumber = 2; private string hostNumber_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HostNumber { get { return hostNumber_; } set { hostNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Mac" field. public const int MacFieldNumber = 3; private string mac_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Mac { get { return mac_; } set { mac_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "EndPoint" field. public const int EndPointFieldNumber = 4; private string endPoint_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EndPoint { get { return endPoint_; } set { endPoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Version" field. public const int VersionFieldNumber = 5; private string version_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Version { get { return version_; } set { version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "IsTakeCard" field. public const int IsTakeCardFieldNumber = 6; private bool isTakeCard_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsTakeCard { get { return isTakeCard_; } set { isTakeCard_ = value; } } /// Field number for the "PowerChannelList" field. public const int PowerChannelListFieldNumber = 7; private static readonly pb::FieldCodec _repeated_powerChannelList_codec = pb::FieldCodec.ForMessage(58, global::BLWData.Entity.SinglePowerChannelData.Parser); private readonly pbc::RepeatedField powerChannelList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField PowerChannelList { get { return powerChannelList_; } } /// Field number for the "CreateTime" field. public const int CreateTimeFieldNumber = 8; private long createTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long CreateTime { get { return createTime_; } set { createTime_ = value; } } /// Field number for the "RoomNumber" field. public const int RoomNumberFieldNumber = 9; private string roomNumber_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoomNumber { get { return roomNumber_; } set { roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "CarbonVIP" field. public const int CarbonVIPFieldNumber = 10; private int carbonVIP_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CarbonVIP { get { return carbonVIP_; } set { carbonVIP_ = value; } } /// Field number for the "IdentityInfo" field. public const int IdentityInfoFieldNumber = 11; private int identityInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IdentityInfo { get { return identityInfo_; } set { identityInfo_ = value; } } /// Field number for the "DeviceStatusList" field. public const int DeviceStatusListFieldNumber = 12; private static readonly pb::FieldCodec _repeated_deviceStatusList_codec = pb::FieldCodec.ForMessage(98, global::BLWData.Entity.DeviceData.Parser); private readonly pbc::RepeatedField deviceStatusList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceStatusList { get { return deviceStatusList_; } } /// Field number for the "CardEvent" field. public const int CardEventFieldNumber = 13; private int cardEvent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CardEvent { get { return cardEvent_; } set { cardEvent_ = value; } } /// Field number for the "IsInsertCard" field. public const int IsInsertCardFieldNumber = 14; private int isInsertCard_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IsInsertCard { get { return isInsertCard_; } set { isInsertCard_ = value; } } /// Field number for the "PMS_Status" field. public const int PMSStatusFieldNumber = 15; private string pMSStatus_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PMSStatus { get { return pMSStatus_; } set { pMSStatus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EnergyConsumption); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EnergyConsumption other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HotelCode != other.HotelCode) return false; if (HostNumber != other.HostNumber) return false; if (Mac != other.Mac) return false; if (EndPoint != other.EndPoint) return false; if (Version != other.Version) return false; if (IsTakeCard != other.IsTakeCard) return false; if(!powerChannelList_.Equals(other.powerChannelList_)) return false; if (CreateTime != other.CreateTime) return false; if (RoomNumber != other.RoomNumber) return false; if (CarbonVIP != other.CarbonVIP) return false; if (IdentityInfo != other.IdentityInfo) return false; if(!deviceStatusList_.Equals(other.deviceStatusList_)) return false; if (CardEvent != other.CardEvent) return false; if (IsInsertCard != other.IsInsertCard) return false; if (PMSStatus != other.PMSStatus) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HotelCode != 0L) hash ^= HotelCode.GetHashCode(); if (HostNumber.Length != 0) hash ^= HostNumber.GetHashCode(); if (Mac.Length != 0) hash ^= Mac.GetHashCode(); if (EndPoint.Length != 0) hash ^= EndPoint.GetHashCode(); if (Version.Length != 0) hash ^= Version.GetHashCode(); if (IsTakeCard != false) hash ^= IsTakeCard.GetHashCode(); hash ^= powerChannelList_.GetHashCode(); if (CreateTime != 0L) hash ^= CreateTime.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (CarbonVIP != 0) hash ^= CarbonVIP.GetHashCode(); if (IdentityInfo != 0) hash ^= IdentityInfo.GetHashCode(); hash ^= deviceStatusList_.GetHashCode(); if (CardEvent != 0) hash ^= CardEvent.GetHashCode(); if (IsInsertCard != 0) hash ^= IsInsertCard.GetHashCode(); if (PMSStatus.Length != 0) hash ^= PMSStatus.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HotelCode != 0L) { output.WriteRawTag(8); output.WriteInt64(HotelCode); } if (HostNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(HostNumber); } if (Mac.Length != 0) { output.WriteRawTag(26); output.WriteString(Mac); } if (EndPoint.Length != 0) { output.WriteRawTag(34); output.WriteString(EndPoint); } if (Version.Length != 0) { output.WriteRawTag(42); output.WriteString(Version); } if (IsTakeCard != false) { output.WriteRawTag(48); output.WriteBool(IsTakeCard); } powerChannelList_.WriteTo(output, _repeated_powerChannelList_codec); if (CreateTime != 0L) { output.WriteRawTag(64); output.WriteInt64(CreateTime); } if (RoomNumber.Length != 0) { output.WriteRawTag(74); output.WriteString(RoomNumber); } if (CarbonVIP != 0) { output.WriteRawTag(80); output.WriteInt32(CarbonVIP); } if (IdentityInfo != 0) { output.WriteRawTag(88); output.WriteInt32(IdentityInfo); } deviceStatusList_.WriteTo(output, _repeated_deviceStatusList_codec); if (CardEvent != 0) { output.WriteRawTag(104); output.WriteInt32(CardEvent); } if (IsInsertCard != 0) { output.WriteRawTag(112); output.WriteInt32(IsInsertCard); } if (PMSStatus.Length != 0) { output.WriteRawTag(122); output.WriteString(PMSStatus); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HotelCode != 0L) { output.WriteRawTag(8); output.WriteInt64(HotelCode); } if (HostNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(HostNumber); } if (Mac.Length != 0) { output.WriteRawTag(26); output.WriteString(Mac); } if (EndPoint.Length != 0) { output.WriteRawTag(34); output.WriteString(EndPoint); } if (Version.Length != 0) { output.WriteRawTag(42); output.WriteString(Version); } if (IsTakeCard != false) { output.WriteRawTag(48); output.WriteBool(IsTakeCard); } powerChannelList_.WriteTo(ref output, _repeated_powerChannelList_codec); if (CreateTime != 0L) { output.WriteRawTag(64); output.WriteInt64(CreateTime); } if (RoomNumber.Length != 0) { output.WriteRawTag(74); output.WriteString(RoomNumber); } if (CarbonVIP != 0) { output.WriteRawTag(80); output.WriteInt32(CarbonVIP); } if (IdentityInfo != 0) { output.WriteRawTag(88); output.WriteInt32(IdentityInfo); } deviceStatusList_.WriteTo(ref output, _repeated_deviceStatusList_codec); if (CardEvent != 0) { output.WriteRawTag(104); output.WriteInt32(CardEvent); } if (IsInsertCard != 0) { output.WriteRawTag(112); output.WriteInt32(IsInsertCard); } if (PMSStatus.Length != 0) { output.WriteRawTag(122); output.WriteString(PMSStatus); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HotelCode != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(HotelCode); } if (HostNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostNumber); } if (Mac.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Mac); } if (EndPoint.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EndPoint); } if (Version.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); } if (IsTakeCard != false) { size += 1 + 1; } size += powerChannelList_.CalculateSize(_repeated_powerChannelList_codec); if (CreateTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(CreateTime); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (CarbonVIP != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CarbonVIP); } if (IdentityInfo != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(IdentityInfo); } size += deviceStatusList_.CalculateSize(_repeated_deviceStatusList_codec); if (CardEvent != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CardEvent); } if (IsInsertCard != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(IsInsertCard); } if (PMSStatus.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PMSStatus); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EnergyConsumption other) { if (other == null) { return; } if (other.HotelCode != 0L) { HotelCode = other.HotelCode; } if (other.HostNumber.Length != 0) { HostNumber = other.HostNumber; } if (other.Mac.Length != 0) { Mac = other.Mac; } if (other.EndPoint.Length != 0) { EndPoint = other.EndPoint; } if (other.Version.Length != 0) { Version = other.Version; } if (other.IsTakeCard != false) { IsTakeCard = other.IsTakeCard; } powerChannelList_.Add(other.powerChannelList_); if (other.CreateTime != 0L) { CreateTime = other.CreateTime; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.CarbonVIP != 0) { CarbonVIP = other.CarbonVIP; } if (other.IdentityInfo != 0) { IdentityInfo = other.IdentityInfo; } deviceStatusList_.Add(other.deviceStatusList_); if (other.CardEvent != 0) { CardEvent = other.CardEvent; } if (other.IsInsertCard != 0) { IsInsertCard = other.IsInsertCard; } if (other.PMSStatus.Length != 0) { PMSStatus = other.PMSStatus; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { if ((tag & 7) == 4) { // Abort on any end group tag. return; } switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { HotelCode = input.ReadInt64(); break; } case 18: { HostNumber = input.ReadString(); break; } case 26: { Mac = input.ReadString(); break; } case 34: { EndPoint = input.ReadString(); break; } case 42: { Version = input.ReadString(); break; } case 48: { IsTakeCard = input.ReadBool(); break; } case 58: { powerChannelList_.AddEntriesFrom(input, _repeated_powerChannelList_codec); break; } case 64: { CreateTime = input.ReadInt64(); break; } case 74: { RoomNumber = input.ReadString(); break; } case 80: { CarbonVIP = input.ReadInt32(); break; } case 88: { IdentityInfo = input.ReadInt32(); break; } case 98: { deviceStatusList_.AddEntriesFrom(input, _repeated_deviceStatusList_codec); break; } case 104: { CardEvent = input.ReadInt32(); break; } case 112: { IsInsertCard = input.ReadInt32(); break; } case 122: { PMSStatus = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { if ((tag & 7) == 4) { // Abort on any end group tag. return; } switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { HotelCode = input.ReadInt64(); break; } case 18: { HostNumber = input.ReadString(); break; } case 26: { Mac = input.ReadString(); break; } case 34: { EndPoint = input.ReadString(); break; } case 42: { Version = input.ReadString(); break; } case 48: { IsTakeCard = input.ReadBool(); break; } case 58: { powerChannelList_.AddEntriesFrom(ref input, _repeated_powerChannelList_codec); break; } case 64: { CreateTime = input.ReadInt64(); break; } case 74: { RoomNumber = input.ReadString(); break; } case 80: { CarbonVIP = input.ReadInt32(); break; } case 88: { IdentityInfo = input.ReadInt32(); break; } case 98: { deviceStatusList_.AddEntriesFrom(ref input, _repeated_deviceStatusList_codec); break; } case 104: { CardEvent = input.ReadInt32(); break; } case 112: { IsInsertCard = input.ReadInt32(); break; } case 122: { PMSStatus = input.ReadString(); break; } } } } #endif } #endregion } #endregion Designer generated code