// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: EnergyConsumption.proto
// </auto-generated>
#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 {

  /// <summary>Holder for reflection information generated from EnergyConsumption.proto</summary>
  public static partial class EnergyConsumptionReflection {

    #region Descriptor
    /// <summary>File descriptor for EnergyConsumption.proto</summary>
    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",
            "bHZlGAogASgFIuICChFFbmVyZ3lDb25zdW1wdGlvbhIRCglIb3RlbENvZGUY",
            "ASABKAMSEgoKSG9zdE51bWJlchgCIAEoCRILCgNNYWMYAyABKAkSEAoIRW5k",
            "UG9pbnQYBCABKAkSDwoHVmVyc2lvbhgFIAEoCRISCgpJc1Rha2VDYXJkGAYg",
            "ASgIEgkKAVYYByABKAESCQoBQRgIIAEoARIJCgFQGAkgASgBEhoKEkVuZXJn",
            "eV9Db25zdW1wdGlvbhgKIAEoARIeChZTdW1fRW5lcmd5X0NvbnN1bXB0aW9u",
            "GAsgASgBEhIKCkNyZWF0ZVRpbWUYDCABKAMSEgoKUm9vbU51bWJlchgNIAEo",
            "CRIRCglDYXJib25WSVAYDiABKAUSFAoMSWRlbnRpdHlJbmZvGA8gASgFEjQK",
            "EERldmljZVN0YXR1c0xpc3QYECADKAsyGi5CTFdEYXRhLkVudGl0eS5EZXZp",
            "Y2VEYXRhYgZwcm90bzM="));
      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.EnergyConsumption), global::BLWData.Entity.EnergyConsumption.Parser, new[]{ "HotelCode", "HostNumber", "Mac", "EndPoint", "Version", "IsTakeCard", "V", "A", "P", "EnergyConsumption_", "SumEnergyConsumption", "CreateTime", "RoomNumber", "CarbonVIP", "IdentityInfo", "DeviceStatusList" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class DeviceData : pb::IMessage<DeviceData>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<DeviceData> _parser = new pb::MessageParser<DeviceData>(() => new DeviceData());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<DeviceData> 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);
    }

    /// <summary>Field number for the "HostID" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "DeviceType" field.</summary>
    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");
      }
    }

    /// <summary>Field number for the "Address" field.</summary>
    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");
      }
    }

    /// <summary>Field number for the "Status" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "Brightness" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "CurrentTemp" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "SettingTemp" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "FanSpeed" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "Mode" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "Valve" field.</summary>
    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

  }

  /// <summary>
  /// 定义一个Person消息类型
  /// </summary>
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class EnergyConsumption : pb::IMessage<EnergyConsumption>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<EnergyConsumption> _parser = new pb::MessageParser<EnergyConsumption>(() => new EnergyConsumption());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<EnergyConsumption> 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 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_;
      v_ = other.v_;
      a_ = other.a_;
      p_ = other.p_;
      energyConsumption_ = other.energyConsumption_;
      sumEnergyConsumption_ = other.sumEnergyConsumption_;
      createTime_ = other.createTime_;
      roomNumber_ = other.roomNumber_;
      carbonVIP_ = other.carbonVIP_;
      identityInfo_ = other.identityInfo_;
      deviceStatusList_ = other.deviceStatusList_.Clone();
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public EnergyConsumption Clone() {
      return new EnergyConsumption(this);
    }

    /// <summary>Field number for the "HotelCode" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "HostNumber" field.</summary>
    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");
      }
    }

    /// <summary>Field number for the "Mac" field.</summary>
    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");
      }
    }

    /// <summary>Field number for the "EndPoint" field.</summary>
    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");
      }
    }

    /// <summary>Field number for the "Version" field.</summary>
    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");
      }
    }

    /// <summary>Field number for the "IsTakeCard" field.</summary>
    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;
      }
    }

    /// <summary>Field number for the "V" field.</summary>
    public const int VFieldNumber = 7;
    private double v_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public double V {
      get { return v_; }
      set {
        v_ = value;
      }
    }

    /// <summary>Field number for the "A" field.</summary>
    public const int AFieldNumber = 8;
    private double a_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public double A {
      get { return a_; }
      set {
        a_ = value;
      }
    }

    /// <summary>Field number for the "P" field.</summary>
    public const int PFieldNumber = 9;
    private double p_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public double P {
      get { return p_; }
      set {
        p_ = value;
      }
    }

    /// <summary>Field number for the "Energy_Consumption" field.</summary>
    public const int EnergyConsumption_FieldNumber = 10;
    private double energyConsumption_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public double EnergyConsumption_ {
      get { return energyConsumption_; }
      set {
        energyConsumption_ = value;
      }
    }

    /// <summary>Field number for the "Sum_Energy_Consumption" field.</summary>
    public const int SumEnergyConsumptionFieldNumber = 11;
    private double sumEnergyConsumption_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public double SumEnergyConsumption {
      get { return sumEnergyConsumption_; }
      set {
        sumEnergyConsumption_ = value;
      }
    }

    /// <summary>Field number for the "CreateTime" field.</summary>
    public const int CreateTimeFieldNumber = 12;
    private long createTime_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public long CreateTime {
      get { return createTime_; }
      set {
        createTime_ = value;
      }
    }

    /// <summary>Field number for the "RoomNumber" field.</summary>
    public const int RoomNumberFieldNumber = 13;
    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");
      }
    }

    /// <summary>Field number for the "CarbonVIP" field.</summary>
    public const int CarbonVIPFieldNumber = 14;
    private int carbonVIP_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CarbonVIP {
      get { return carbonVIP_; }
      set {
        carbonVIP_ = value;
      }
    }

    /// <summary>Field number for the "IdentityInfo" field.</summary>
    public const int IdentityInfoFieldNumber = 15;
    private int identityInfo_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int IdentityInfo {
      get { return identityInfo_; }
      set {
        identityInfo_ = value;
      }
    }

    /// <summary>Field number for the "DeviceStatusList" field.</summary>
    public const int DeviceStatusListFieldNumber = 16;
    private static readonly pb::FieldCodec<global::BLWData.Entity.DeviceData> _repeated_deviceStatusList_codec
        = pb::FieldCodec.ForMessage(130, global::BLWData.Entity.DeviceData.Parser);
    private readonly pbc::RepeatedField<global::BLWData.Entity.DeviceData> deviceStatusList_ = new pbc::RepeatedField<global::BLWData.Entity.DeviceData>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::BLWData.Entity.DeviceData> DeviceStatusList {
      get { return deviceStatusList_; }
    }

    [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 (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(V, other.V)) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(A, other.A)) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(P, other.P)) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EnergyConsumption_, other.EnergyConsumption_)) return false;
      if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumEnergyConsumption, other.SumEnergyConsumption)) 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;
      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();
      if (V != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(V);
      if (A != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(A);
      if (P != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(P);
      if (EnergyConsumption_ != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EnergyConsumption_);
      if (SumEnergyConsumption != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumEnergyConsumption);
      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 (_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);
      }
      if (V != 0D) {
        output.WriteRawTag(57);
        output.WriteDouble(V);
      }
      if (A != 0D) {
        output.WriteRawTag(65);
        output.WriteDouble(A);
      }
      if (P != 0D) {
        output.WriteRawTag(73);
        output.WriteDouble(P);
      }
      if (EnergyConsumption_ != 0D) {
        output.WriteRawTag(81);
        output.WriteDouble(EnergyConsumption_);
      }
      if (SumEnergyConsumption != 0D) {
        output.WriteRawTag(89);
        output.WriteDouble(SumEnergyConsumption);
      }
      if (CreateTime != 0L) {
        output.WriteRawTag(96);
        output.WriteInt64(CreateTime);
      }
      if (RoomNumber.Length != 0) {
        output.WriteRawTag(106);
        output.WriteString(RoomNumber);
      }
      if (CarbonVIP != 0) {
        output.WriteRawTag(112);
        output.WriteInt32(CarbonVIP);
      }
      if (IdentityInfo != 0) {
        output.WriteRawTag(120);
        output.WriteInt32(IdentityInfo);
      }
      deviceStatusList_.WriteTo(output, _repeated_deviceStatusList_codec);
      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);
      }
      if (V != 0D) {
        output.WriteRawTag(57);
        output.WriteDouble(V);
      }
      if (A != 0D) {
        output.WriteRawTag(65);
        output.WriteDouble(A);
      }
      if (P != 0D) {
        output.WriteRawTag(73);
        output.WriteDouble(P);
      }
      if (EnergyConsumption_ != 0D) {
        output.WriteRawTag(81);
        output.WriteDouble(EnergyConsumption_);
      }
      if (SumEnergyConsumption != 0D) {
        output.WriteRawTag(89);
        output.WriteDouble(SumEnergyConsumption);
      }
      if (CreateTime != 0L) {
        output.WriteRawTag(96);
        output.WriteInt64(CreateTime);
      }
      if (RoomNumber.Length != 0) {
        output.WriteRawTag(106);
        output.WriteString(RoomNumber);
      }
      if (CarbonVIP != 0) {
        output.WriteRawTag(112);
        output.WriteInt32(CarbonVIP);
      }
      if (IdentityInfo != 0) {
        output.WriteRawTag(120);
        output.WriteInt32(IdentityInfo);
      }
      deviceStatusList_.WriteTo(ref output, _repeated_deviceStatusList_codec);
      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;
      }
      if (V != 0D) {
        size += 1 + 8;
      }
      if (A != 0D) {
        size += 1 + 8;
      }
      if (P != 0D) {
        size += 1 + 8;
      }
      if (EnergyConsumption_ != 0D) {
        size += 1 + 8;
      }
      if (SumEnergyConsumption != 0D) {
        size += 1 + 8;
      }
      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 (_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;
      }
      if (other.V != 0D) {
        V = other.V;
      }
      if (other.A != 0D) {
        A = other.A;
      }
      if (other.P != 0D) {
        P = other.P;
      }
      if (other.EnergyConsumption_ != 0D) {
        EnergyConsumption_ = other.EnergyConsumption_;
      }
      if (other.SumEnergyConsumption != 0D) {
        SumEnergyConsumption = other.SumEnergyConsumption;
      }
      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_);
      _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 57: {
            V = input.ReadDouble();
            break;
          }
          case 65: {
            A = input.ReadDouble();
            break;
          }
          case 73: {
            P = input.ReadDouble();
            break;
          }
          case 81: {
            EnergyConsumption_ = input.ReadDouble();
            break;
          }
          case 89: {
            SumEnergyConsumption = input.ReadDouble();
            break;
          }
          case 96: {
            CreateTime = input.ReadInt64();
            break;
          }
          case 106: {
            RoomNumber = input.ReadString();
            break;
          }
          case 112: {
            CarbonVIP = input.ReadInt32();
            break;
          }
          case 120: {
            IdentityInfo = input.ReadInt32();
            break;
          }
          case 130: {
            deviceStatusList_.AddEntriesFrom(input, _repeated_deviceStatusList_codec);
            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 57: {
            V = input.ReadDouble();
            break;
          }
          case 65: {
            A = input.ReadDouble();
            break;
          }
          case 73: {
            P = input.ReadDouble();
            break;
          }
          case 81: {
            EnergyConsumption_ = input.ReadDouble();
            break;
          }
          case 89: {
            SumEnergyConsumption = input.ReadDouble();
            break;
          }
          case 96: {
            CreateTime = input.ReadInt64();
            break;
          }
          case 106: {
            RoomNumber = input.ReadString();
            break;
          }
          case 112: {
            CarbonVIP = input.ReadInt32();
            break;
          }
          case 120: {
            IdentityInfo = input.ReadInt32();
            break;
          }
          case 130: {
            deviceStatusList_.AddEntriesFrom(ref input, _repeated_deviceStatusList_codec);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
