// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: mod-service.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;
/// <summary>Holder for reflection information generated from mod-service.proto</summary>
public static partial class ModServiceReflection {

  #region Descriptor
  /// <summary>File descriptor for mod-service.proto</summary>
  public static pbr::FileDescriptor Descriptor {
    get { return descriptor; }
  }
  private static pbr::FileDescriptor descriptor;

  static ModServiceReflection() {
    byte[] descriptorData = global::System.Convert.FromBase64String(
        string.Concat(
          "ChFtb2Qtc2VydmljZS5wcm90byJsChRSZXFSZXRTZXJ2aWNlRWxlbWVudBIK",
          "CgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEgoKAmlwGAMgASgJEgwKBHBvcnQY",
          "BCABKAUSDgoGcmVtYXJrGAUgASgJEhAKCHVwZGF0ZUR0GAYgASgJIkgKE1Jl",
          "cVNlcnZpY2VGYXVsdExpc3QSEQoJc2VydmljZUlkGAEgASgFEg8KB3N0YXJ0",
          "RHQYAiABKAkSDQoFZW5kRHQYAyABKAkifAoWUmV0U2VydmljZUZhdWx0RWxl",
          "bWVudBIKCgJpZBgBIAEoBRIMCgRuYW1lGAIgASgJEg0KBWdyYWRlGAMgASgF",
          "EgwKBGNvZGUYBCABKAkSCwoDbXNnGAUgASgJEg8KB3N0YXJ0RHQYBiABKAkS",
          "DQoFZW5kRHQYByABKAlCDFoKLi4vcHJvdG9nb2IGcHJvdG8z"));
    descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
        new pbr::FileDescriptor[] { },
        new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
          new pbr::GeneratedClrTypeInfo(typeof(global::ReqRetServiceElement), global::ReqRetServiceElement.Parser, new[]{ "Id", "Name", "Ip", "Port", "Remark", "UpdateDt" }, null, null, null, null),
          new pbr::GeneratedClrTypeInfo(typeof(global::ReqServiceFaultList), global::ReqServiceFaultList.Parser, new[]{ "ServiceId", "StartDt", "EndDt" }, null, null, null, null),
          new pbr::GeneratedClrTypeInfo(typeof(global::RetServiceFaultElement), global::RetServiceFaultElement.Parser, new[]{ "Id", "Name", "Grade", "Code", "Msg", "StartDt", "EndDt" }, null, null, null, null)
        }));
  }
  #endregion

}
#region Messages
/// <summary>
/// 后端返回: 设备列表（通信参数列表）/ 前端请求：设备通信参数修改
/// tableId: Service_List/Service_Update
/// </summary>
public sealed partial class ReqRetServiceElement : pb::IMessage<ReqRetServiceElement>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    , pb::IBufferMessage
#endif
{
  private static readonly pb::MessageParser<ReqRetServiceElement> _parser = new pb::MessageParser<ReqRetServiceElement>(() => new ReqRetServiceElement());
  private pb::UnknownFieldSet _unknownFields;
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public static pb::MessageParser<ReqRetServiceElement> Parser { get { return _parser; } }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public static pbr::MessageDescriptor Descriptor {
    get { return global::ModServiceReflection.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 ReqRetServiceElement() {
    OnConstruction();
  }

  partial void OnConstruction();

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public ReqRetServiceElement(ReqRetServiceElement other) : this() {
    id_ = other.id_;
    name_ = other.name_;
    ip_ = other.ip_;
    port_ = other.port_;
    remark_ = other.remark_;
    updateDt_ = other.updateDt_;
    _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  }

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

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

  /// <summary>Field number for the "name" field.</summary>
  public const int NameFieldNumber = 2;
  private string name_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string Name {
    get { return name_; }
    set {
      name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

  /// <summary>Field number for the "ip" field.</summary>
  public const int IpFieldNumber = 3;
  private string ip_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string Ip {
    get { return ip_; }
    set {
      ip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

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

  /// <summary>Field number for the "remark" field.</summary>
  public const int RemarkFieldNumber = 5;
  private string remark_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string Remark {
    get { return remark_; }
    set {
      remark_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

  /// <summary>Field number for the "updateDt" field.</summary>
  public const int UpdateDtFieldNumber = 6;
  private string updateDt_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string UpdateDt {
    get { return updateDt_; }
    set {
      updateDt_ = 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 ReqRetServiceElement);
  }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public bool Equals(ReqRetServiceElement other) {
    if (ReferenceEquals(other, null)) {
      return false;
    }
    if (ReferenceEquals(other, this)) {
      return true;
    }
    if (Id != other.Id) return false;
    if (Name != other.Name) return false;
    if (Ip != other.Ip) return false;
    if (Port != other.Port) return false;
    if (Remark != other.Remark) return false;
    if (UpdateDt != other.UpdateDt) 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 (Id != 0) hash ^= Id.GetHashCode();
    if (Name.Length != 0) hash ^= Name.GetHashCode();
    if (Ip.Length != 0) hash ^= Ip.GetHashCode();
    if (Port != 0) hash ^= Port.GetHashCode();
    if (Remark.Length != 0) hash ^= Remark.GetHashCode();
    if (UpdateDt.Length != 0) hash ^= UpdateDt.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 (Id != 0) {
      output.WriteRawTag(8);
      output.WriteInt32(Id);
    }
    if (Name.Length != 0) {
      output.WriteRawTag(18);
      output.WriteString(Name);
    }
    if (Ip.Length != 0) {
      output.WriteRawTag(26);
      output.WriteString(Ip);
    }
    if (Port != 0) {
      output.WriteRawTag(32);
      output.WriteInt32(Port);
    }
    if (Remark.Length != 0) {
      output.WriteRawTag(42);
      output.WriteString(Remark);
    }
    if (UpdateDt.Length != 0) {
      output.WriteRawTag(50);
      output.WriteString(UpdateDt);
    }
    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 (Id != 0) {
      output.WriteRawTag(8);
      output.WriteInt32(Id);
    }
    if (Name.Length != 0) {
      output.WriteRawTag(18);
      output.WriteString(Name);
    }
    if (Ip.Length != 0) {
      output.WriteRawTag(26);
      output.WriteString(Ip);
    }
    if (Port != 0) {
      output.WriteRawTag(32);
      output.WriteInt32(Port);
    }
    if (Remark.Length != 0) {
      output.WriteRawTag(42);
      output.WriteString(Remark);
    }
    if (UpdateDt.Length != 0) {
      output.WriteRawTag(50);
      output.WriteString(UpdateDt);
    }
    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 (Id != 0) {
      size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
    }
    if (Name.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
    }
    if (Ip.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip);
    }
    if (Port != 0) {
      size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
    }
    if (Remark.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(Remark);
    }
    if (UpdateDt.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(UpdateDt);
    }
    if (_unknownFields != null) {
      size += _unknownFields.CalculateSize();
    }
    return size;
  }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public void MergeFrom(ReqRetServiceElement other) {
    if (other == null) {
      return;
    }
    if (other.Id != 0) {
      Id = other.Id;
    }
    if (other.Name.Length != 0) {
      Name = other.Name;
    }
    if (other.Ip.Length != 0) {
      Ip = other.Ip;
    }
    if (other.Port != 0) {
      Port = other.Port;
    }
    if (other.Remark.Length != 0) {
      Remark = other.Remark;
    }
    if (other.UpdateDt.Length != 0) {
      UpdateDt = other.UpdateDt;
    }
    _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) {
      switch(tag) {
        default:
          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
          break;
        case 8: {
          Id = input.ReadInt32();
          break;
        }
        case 18: {
          Name = input.ReadString();
          break;
        }
        case 26: {
          Ip = input.ReadString();
          break;
        }
        case 32: {
          Port = input.ReadInt32();
          break;
        }
        case 42: {
          Remark = input.ReadString();
          break;
        }
        case 50: {
          UpdateDt = 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) {
      switch(tag) {
        default:
          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
          break;
        case 8: {
          Id = input.ReadInt32();
          break;
        }
        case 18: {
          Name = input.ReadString();
          break;
        }
        case 26: {
          Ip = input.ReadString();
          break;
        }
        case 32: {
          Port = input.ReadInt32();
          break;
        }
        case 42: {
          Remark = input.ReadString();
          break;
        }
        case 50: {
          UpdateDt = input.ReadString();
          break;
        }
      }
    }
  }
  #endif

}

/// <summary>
/// 前端请求: 设备故障列表
/// tableId: Service_Fault_list
/// </summary>
public sealed partial class ReqServiceFaultList : pb::IMessage<ReqServiceFaultList>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    , pb::IBufferMessage
#endif
{
  private static readonly pb::MessageParser<ReqServiceFaultList> _parser = new pb::MessageParser<ReqServiceFaultList>(() => new ReqServiceFaultList());
  private pb::UnknownFieldSet _unknownFields;
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public static pb::MessageParser<ReqServiceFaultList> Parser { get { return _parser; } }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public static pbr::MessageDescriptor Descriptor {
    get { return global::ModServiceReflection.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 ReqServiceFaultList() {
    OnConstruction();
  }

  partial void OnConstruction();

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public ReqServiceFaultList(ReqServiceFaultList other) : this() {
    serviceId_ = other.serviceId_;
    startDt_ = other.startDt_;
    endDt_ = other.endDt_;
    _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  }

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

  /// <summary>Field number for the "serviceId" field.</summary>
  public const int ServiceIdFieldNumber = 1;
  private int serviceId_;
  /// <summary>
  /// 可选；设备id
  /// </summary>
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public int ServiceId {
    get { return serviceId_; }
    set {
      serviceId_ = value;
    }
  }

  /// <summary>Field number for the "startDt" field.</summary>
  public const int StartDtFieldNumber = 2;
  private string startDt_ = "";
  /// <summary>
  /// 可选
  /// </summary>
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string StartDt {
    get { return startDt_; }
    set {
      startDt_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

  /// <summary>Field number for the "endDt" field.</summary>
  public const int EndDtFieldNumber = 3;
  private string endDt_ = "";
  /// <summary>
  /// 可选
  /// </summary>
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string EndDt {
    get { return endDt_; }
    set {
      endDt_ = 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 ReqServiceFaultList);
  }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public bool Equals(ReqServiceFaultList other) {
    if (ReferenceEquals(other, null)) {
      return false;
    }
    if (ReferenceEquals(other, this)) {
      return true;
    }
    if (ServiceId != other.ServiceId) return false;
    if (StartDt != other.StartDt) return false;
    if (EndDt != other.EndDt) 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 (ServiceId != 0) hash ^= ServiceId.GetHashCode();
    if (StartDt.Length != 0) hash ^= StartDt.GetHashCode();
    if (EndDt.Length != 0) hash ^= EndDt.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 (ServiceId != 0) {
      output.WriteRawTag(8);
      output.WriteInt32(ServiceId);
    }
    if (StartDt.Length != 0) {
      output.WriteRawTag(18);
      output.WriteString(StartDt);
    }
    if (EndDt.Length != 0) {
      output.WriteRawTag(26);
      output.WriteString(EndDt);
    }
    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 (ServiceId != 0) {
      output.WriteRawTag(8);
      output.WriteInt32(ServiceId);
    }
    if (StartDt.Length != 0) {
      output.WriteRawTag(18);
      output.WriteString(StartDt);
    }
    if (EndDt.Length != 0) {
      output.WriteRawTag(26);
      output.WriteString(EndDt);
    }
    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 (ServiceId != 0) {
      size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServiceId);
    }
    if (StartDt.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDt);
    }
    if (EndDt.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDt);
    }
    if (_unknownFields != null) {
      size += _unknownFields.CalculateSize();
    }
    return size;
  }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public void MergeFrom(ReqServiceFaultList other) {
    if (other == null) {
      return;
    }
    if (other.ServiceId != 0) {
      ServiceId = other.ServiceId;
    }
    if (other.StartDt.Length != 0) {
      StartDt = other.StartDt;
    }
    if (other.EndDt.Length != 0) {
      EndDt = other.EndDt;
    }
    _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) {
      switch(tag) {
        default:
          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
          break;
        case 8: {
          ServiceId = input.ReadInt32();
          break;
        }
        case 18: {
          StartDt = input.ReadString();
          break;
        }
        case 26: {
          EndDt = 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) {
      switch(tag) {
        default:
          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
          break;
        case 8: {
          ServiceId = input.ReadInt32();
          break;
        }
        case 18: {
          StartDt = input.ReadString();
          break;
        }
        case 26: {
          EndDt = input.ReadString();
          break;
        }
      }
    }
  }
  #endif

}

/// <summary>
/// 后端返回: 设备故障列表
/// tableId: Service_Fault_list
/// </summary>
public sealed partial class RetServiceFaultElement : pb::IMessage<RetServiceFaultElement>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    , pb::IBufferMessage
#endif
{
  private static readonly pb::MessageParser<RetServiceFaultElement> _parser = new pb::MessageParser<RetServiceFaultElement>(() => new RetServiceFaultElement());
  private pb::UnknownFieldSet _unknownFields;
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public static pb::MessageParser<RetServiceFaultElement> Parser { get { return _parser; } }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public static pbr::MessageDescriptor Descriptor {
    get { return global::ModServiceReflection.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 RetServiceFaultElement() {
    OnConstruction();
  }

  partial void OnConstruction();

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public RetServiceFaultElement(RetServiceFaultElement other) : this() {
    id_ = other.id_;
    name_ = other.name_;
    grade_ = other.grade_;
    code_ = other.code_;
    msg_ = other.msg_;
    startDt_ = other.startDt_;
    endDt_ = other.endDt_;
    _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  }

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

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

  /// <summary>Field number for the "name" field.</summary>
  public const int NameFieldNumber = 2;
  private string name_ = "";
  /// <summary>
  /// 设备名称
  /// </summary>
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string Name {
    get { return name_; }
    set {
      name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

  /// <summary>Field number for the "grade" field.</summary>
  public const int GradeFieldNumber = 3;
  private int grade_;
  /// <summary>
  /// 故障等级
  /// </summary>
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public int Grade {
    get { return grade_; }
    set {
      grade_ = value;
    }
  }

  /// <summary>Field number for the "code" field.</summary>
  public const int CodeFieldNumber = 4;
  private string code_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string Code {
    get { return code_; }
    set {
      code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

  /// <summary>Field number for the "msg" field.</summary>
  public const int MsgFieldNumber = 5;
  private string msg_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string Msg {
    get { return msg_; }
    set {
      msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

  /// <summary>Field number for the "startDt" field.</summary>
  public const int StartDtFieldNumber = 6;
  private string startDt_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string StartDt {
    get { return startDt_; }
    set {
      startDt_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
    }
  }

  /// <summary>Field number for the "endDt" field.</summary>
  public const int EndDtFieldNumber = 7;
  private string endDt_ = "";
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public string EndDt {
    get { return endDt_; }
    set {
      endDt_ = 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 RetServiceFaultElement);
  }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public bool Equals(RetServiceFaultElement other) {
    if (ReferenceEquals(other, null)) {
      return false;
    }
    if (ReferenceEquals(other, this)) {
      return true;
    }
    if (Id != other.Id) return false;
    if (Name != other.Name) return false;
    if (Grade != other.Grade) return false;
    if (Code != other.Code) return false;
    if (Msg != other.Msg) return false;
    if (StartDt != other.StartDt) return false;
    if (EndDt != other.EndDt) 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 (Id != 0) hash ^= Id.GetHashCode();
    if (Name.Length != 0) hash ^= Name.GetHashCode();
    if (Grade != 0) hash ^= Grade.GetHashCode();
    if (Code.Length != 0) hash ^= Code.GetHashCode();
    if (Msg.Length != 0) hash ^= Msg.GetHashCode();
    if (StartDt.Length != 0) hash ^= StartDt.GetHashCode();
    if (EndDt.Length != 0) hash ^= EndDt.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 (Id != 0) {
      output.WriteRawTag(8);
      output.WriteInt32(Id);
    }
    if (Name.Length != 0) {
      output.WriteRawTag(18);
      output.WriteString(Name);
    }
    if (Grade != 0) {
      output.WriteRawTag(24);
      output.WriteInt32(Grade);
    }
    if (Code.Length != 0) {
      output.WriteRawTag(34);
      output.WriteString(Code);
    }
    if (Msg.Length != 0) {
      output.WriteRawTag(42);
      output.WriteString(Msg);
    }
    if (StartDt.Length != 0) {
      output.WriteRawTag(50);
      output.WriteString(StartDt);
    }
    if (EndDt.Length != 0) {
      output.WriteRawTag(58);
      output.WriteString(EndDt);
    }
    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 (Id != 0) {
      output.WriteRawTag(8);
      output.WriteInt32(Id);
    }
    if (Name.Length != 0) {
      output.WriteRawTag(18);
      output.WriteString(Name);
    }
    if (Grade != 0) {
      output.WriteRawTag(24);
      output.WriteInt32(Grade);
    }
    if (Code.Length != 0) {
      output.WriteRawTag(34);
      output.WriteString(Code);
    }
    if (Msg.Length != 0) {
      output.WriteRawTag(42);
      output.WriteString(Msg);
    }
    if (StartDt.Length != 0) {
      output.WriteRawTag(50);
      output.WriteString(StartDt);
    }
    if (EndDt.Length != 0) {
      output.WriteRawTag(58);
      output.WriteString(EndDt);
    }
    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 (Id != 0) {
      size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
    }
    if (Name.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
    }
    if (Grade != 0) {
      size += 1 + pb::CodedOutputStream.ComputeInt32Size(Grade);
    }
    if (Code.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(Code);
    }
    if (Msg.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
    }
    if (StartDt.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDt);
    }
    if (EndDt.Length != 0) {
      size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDt);
    }
    if (_unknownFields != null) {
      size += _unknownFields.CalculateSize();
    }
    return size;
  }

  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  public void MergeFrom(RetServiceFaultElement other) {
    if (other == null) {
      return;
    }
    if (other.Id != 0) {
      Id = other.Id;
    }
    if (other.Name.Length != 0) {
      Name = other.Name;
    }
    if (other.Grade != 0) {
      Grade = other.Grade;
    }
    if (other.Code.Length != 0) {
      Code = other.Code;
    }
    if (other.Msg.Length != 0) {
      Msg = other.Msg;
    }
    if (other.StartDt.Length != 0) {
      StartDt = other.StartDt;
    }
    if (other.EndDt.Length != 0) {
      EndDt = other.EndDt;
    }
    _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) {
      switch(tag) {
        default:
          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
          break;
        case 8: {
          Id = input.ReadInt32();
          break;
        }
        case 18: {
          Name = input.ReadString();
          break;
        }
        case 24: {
          Grade = input.ReadInt32();
          break;
        }
        case 34: {
          Code = input.ReadString();
          break;
        }
        case 42: {
          Msg = input.ReadString();
          break;
        }
        case 50: {
          StartDt = input.ReadString();
          break;
        }
        case 58: {
          EndDt = 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) {
      switch(tag) {
        default:
          _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
          break;
        case 8: {
          Id = input.ReadInt32();
          break;
        }
        case 18: {
          Name = input.ReadString();
          break;
        }
        case 24: {
          Grade = input.ReadInt32();
          break;
        }
        case 34: {
          Code = input.ReadString();
          break;
        }
        case 42: {
          Msg = input.ReadString();
          break;
        }
        case 50: {
          StartDt = input.ReadString();
          break;
        }
        case 58: {
          EndDt = input.ReadString();
          break;
        }
      }
    }
  }
  #endif

}

#endregion


#endregion Designer generated code
