All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.iotdb.mpp.rpc.thrift.TDataNodeHeartbeatResp Maven / Gradle / Ivy

The newest version!
/**
 * Autogenerated by Thrift Compiler (0.14.1)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.apache.iotdb.mpp.rpc.thrift;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.1)", date = "2024-09-12")
public class TDataNodeHeartbeatResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDataNodeHeartbeatResp");

  private static final org.apache.thrift.protocol.TField HEARTBEAT_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("heartbeatTimestamp", org.apache.thrift.protocol.TType.I64, (short)1);
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)2);
  private static final org.apache.thrift.protocol.TField STATUS_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("statusReason", org.apache.thrift.protocol.TType.STRING, (short)3);
  private static final org.apache.thrift.protocol.TField JUDGED_LEADERS_FIELD_DESC = new org.apache.thrift.protocol.TField("judgedLeaders", org.apache.thrift.protocol.TType.MAP, (short)4);
  private static final org.apache.thrift.protocol.TField LOAD_SAMPLE_FIELD_DESC = new org.apache.thrift.protocol.TField("loadSample", org.apache.thrift.protocol.TType.STRUCT, (short)5);
  private static final org.apache.thrift.protocol.TField REGION_SERIES_USAGE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("regionSeriesUsageMap", org.apache.thrift.protocol.TType.MAP, (short)6);
  private static final org.apache.thrift.protocol.TField REGION_DEVICE_USAGE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("regionDeviceUsageMap", org.apache.thrift.protocol.TType.MAP, (short)7);
  private static final org.apache.thrift.protocol.TField REGION_DISK_FIELD_DESC = new org.apache.thrift.protocol.TField("regionDisk", org.apache.thrift.protocol.TType.MAP, (short)8);
  private static final org.apache.thrift.protocol.TField SCHEMA_LIMIT_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("schemaLimitLevel", org.apache.thrift.protocol.TType.I32, (short)9);
  private static final org.apache.thrift.protocol.TField PIPE_META_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("pipeMetaList", org.apache.thrift.protocol.TType.LIST, (short)10);
  private static final org.apache.thrift.protocol.TField ACTIVATE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("activateStatus", org.apache.thrift.protocol.TType.STRING, (short)11);
  private static final org.apache.thrift.protocol.TField CONFIRMED_CONFIG_NODE_END_POINTS_FIELD_DESC = new org.apache.thrift.protocol.TField("confirmedConfigNodeEndPoints", org.apache.thrift.protocol.TType.SET, (short)12);
  private static final org.apache.thrift.protocol.TField CONSENSUS_LOGICAL_TIME_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("consensusLogicalTimeMap", org.apache.thrift.protocol.TType.MAP, (short)13);
  private static final org.apache.thrift.protocol.TField PIPE_COMPLETED_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("pipeCompletedList", org.apache.thrift.protocol.TType.LIST, (short)14);
  private static final org.apache.thrift.protocol.TField PIPE_REMAINING_EVENT_COUNT_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("pipeRemainingEventCountList", org.apache.thrift.protocol.TType.LIST, (short)15);
  private static final org.apache.thrift.protocol.TField PIPE_REMAINING_TIME_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("pipeRemainingTimeList", org.apache.thrift.protocol.TType.LIST, (short)16);

  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TDataNodeHeartbeatRespStandardSchemeFactory();
  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TDataNodeHeartbeatRespTupleSchemeFactory();

  public long heartbeatTimestamp; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String status; // required
  public @org.apache.thrift.annotation.Nullable java.lang.String statusReason; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map judgedLeaders; // optional
  public @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TLoadSample loadSample; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map regionSeriesUsageMap; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map regionDeviceUsageMap; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map regionDisk; // optional
  public @org.apache.thrift.annotation.Nullable TSchemaLimitLevel schemaLimitLevel; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List pipeMetaList; // optional
  public @org.apache.thrift.annotation.Nullable java.lang.String activateStatus; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Set confirmedConfigNodeEndPoints; // optional
  public @org.apache.thrift.annotation.Nullable java.util.Map consensusLogicalTimeMap; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List pipeCompletedList; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List pipeRemainingEventCountList; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List pipeRemainingTimeList; // optional

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    HEARTBEAT_TIMESTAMP((short)1, "heartbeatTimestamp"),
    STATUS((short)2, "status"),
    STATUS_REASON((short)3, "statusReason"),
    JUDGED_LEADERS((short)4, "judgedLeaders"),
    LOAD_SAMPLE((short)5, "loadSample"),
    REGION_SERIES_USAGE_MAP((short)6, "regionSeriesUsageMap"),
    REGION_DEVICE_USAGE_MAP((short)7, "regionDeviceUsageMap"),
    REGION_DISK((short)8, "regionDisk"),
    SCHEMA_LIMIT_LEVEL((short)9, "schemaLimitLevel"),
    PIPE_META_LIST((short)10, "pipeMetaList"),
    ACTIVATE_STATUS((short)11, "activateStatus"),
    CONFIRMED_CONFIG_NODE_END_POINTS((short)12, "confirmedConfigNodeEndPoints"),
    CONSENSUS_LOGICAL_TIME_MAP((short)13, "consensusLogicalTimeMap"),
    PIPE_COMPLETED_LIST((short)14, "pipeCompletedList"),
    PIPE_REMAINING_EVENT_COUNT_LIST((short)15, "pipeRemainingEventCountList"),
    PIPE_REMAINING_TIME_LIST((short)16, "pipeRemainingTimeList");

    private static final java.util.Map byName = new java.util.HashMap();

    static {
      for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
        byName.put(field.getFieldName(), field);
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // HEARTBEAT_TIMESTAMP
          return HEARTBEAT_TIMESTAMP;
        case 2: // STATUS
          return STATUS;
        case 3: // STATUS_REASON
          return STATUS_REASON;
        case 4: // JUDGED_LEADERS
          return JUDGED_LEADERS;
        case 5: // LOAD_SAMPLE
          return LOAD_SAMPLE;
        case 6: // REGION_SERIES_USAGE_MAP
          return REGION_SERIES_USAGE_MAP;
        case 7: // REGION_DEVICE_USAGE_MAP
          return REGION_DEVICE_USAGE_MAP;
        case 8: // REGION_DISK
          return REGION_DISK;
        case 9: // SCHEMA_LIMIT_LEVEL
          return SCHEMA_LIMIT_LEVEL;
        case 10: // PIPE_META_LIST
          return PIPE_META_LIST;
        case 11: // ACTIVATE_STATUS
          return ACTIVATE_STATUS;
        case 12: // CONFIRMED_CONFIG_NODE_END_POINTS
          return CONFIRMED_CONFIG_NODE_END_POINTS;
        case 13: // CONSENSUS_LOGICAL_TIME_MAP
          return CONSENSUS_LOGICAL_TIME_MAP;
        case 14: // PIPE_COMPLETED_LIST
          return PIPE_COMPLETED_LIST;
        case 15: // PIPE_REMAINING_EVENT_COUNT_LIST
          return PIPE_REMAINING_EVENT_COUNT_LIST;
        case 16: // PIPE_REMAINING_TIME_LIST
          return PIPE_REMAINING_TIME_LIST;
        default:
          return null;
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, throwing an exception
     * if it is not found.
     */
    public static _Fields findByThriftIdOrThrow(int fieldId) {
      _Fields fields = findByThriftId(fieldId);
      if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByName(java.lang.String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final java.lang.String _fieldName;

    _Fields(short thriftId, java.lang.String fieldName) {
      _thriftId = thriftId;
      _fieldName = fieldName;
    }

    public short getThriftFieldId() {
      return _thriftId;
    }

    public java.lang.String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __HEARTBEATTIMESTAMP_ISSET_ID = 0;
  private byte __isset_bitfield = 0;
  private static final _Fields optionals[] = {_Fields.STATUS_REASON,_Fields.JUDGED_LEADERS,_Fields.LOAD_SAMPLE,_Fields.REGION_SERIES_USAGE_MAP,_Fields.REGION_DEVICE_USAGE_MAP,_Fields.REGION_DISK,_Fields.SCHEMA_LIMIT_LEVEL,_Fields.PIPE_META_LIST,_Fields.ACTIVATE_STATUS,_Fields.CONFIRMED_CONFIG_NODE_END_POINTS,_Fields.CONSENSUS_LOGICAL_TIME_MAP,_Fields.PIPE_COMPLETED_LIST,_Fields.PIPE_REMAINING_EVENT_COUNT_LIST,_Fields.PIPE_REMAINING_TIME_LIST};
  public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.HEARTBEAT_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("heartbeatTimestamp", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.STATUS_REASON, new org.apache.thrift.meta_data.FieldMetaData("statusReason", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.JUDGED_LEADERS, new org.apache.thrift.meta_data.FieldMetaData("judgedLeaders", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.iotdb.common.rpc.thrift.TConsensusGroupId.class), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
    tmpMap.put(_Fields.LOAD_SAMPLE, new org.apache.thrift.meta_data.FieldMetaData("loadSample", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.iotdb.common.rpc.thrift.TLoadSample.class)));
    tmpMap.put(_Fields.REGION_SERIES_USAGE_MAP, new org.apache.thrift.meta_data.FieldMetaData("regionSeriesUsageMap", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.REGION_DEVICE_USAGE_MAP, new org.apache.thrift.meta_data.FieldMetaData("regionDeviceUsageMap", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.REGION_DISK, new org.apache.thrift.meta_data.FieldMetaData("regionDisk", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.SCHEMA_LIMIT_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("schemaLimitLevel", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.ENUM        , "TSchemaLimitLevel")));
    tmpMap.put(_Fields.PIPE_META_LIST, new org.apache.thrift.meta_data.FieldMetaData("pipeMetaList", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING            , true))));
    tmpMap.put(_Fields.ACTIVATE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("activateStatus", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CONFIRMED_CONFIG_NODE_END_POINTS, new org.apache.thrift.meta_data.FieldMetaData("confirmedConfigNodeEndPoints", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, 
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.iotdb.common.rpc.thrift.TEndPoint.class))));
    tmpMap.put(_Fields.CONSENSUS_LOGICAL_TIME_MAP, new org.apache.thrift.meta_data.FieldMetaData("consensusLogicalTimeMap", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.iotdb.common.rpc.thrift.TConsensusGroupId.class), 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.PIPE_COMPLETED_LIST, new org.apache.thrift.meta_data.FieldMetaData("pipeCompletedList", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
    tmpMap.put(_Fields.PIPE_REMAINING_EVENT_COUNT_LIST, new org.apache.thrift.meta_data.FieldMetaData("pipeRemainingEventCountList", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
    tmpMap.put(_Fields.PIPE_REMAINING_TIME_LIST, new org.apache.thrift.meta_data.FieldMetaData("pipeRemainingTimeList", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TDataNodeHeartbeatResp.class, metaDataMap);
  }

  public TDataNodeHeartbeatResp() {
  }

  public TDataNodeHeartbeatResp(
    long heartbeatTimestamp,
    java.lang.String status)
  {
    this();
    this.heartbeatTimestamp = heartbeatTimestamp;
    setHeartbeatTimestampIsSet(true);
    this.status = status;
  }

  /**
   * Performs a deep copy on other.
   */
  public TDataNodeHeartbeatResp(TDataNodeHeartbeatResp other) {
    __isset_bitfield = other.__isset_bitfield;
    this.heartbeatTimestamp = other.heartbeatTimestamp;
    if (other.isSetStatus()) {
      this.status = other.status;
    }
    if (other.isSetStatusReason()) {
      this.statusReason = other.statusReason;
    }
    if (other.isSetJudgedLeaders()) {
      java.util.Map __this__judgedLeaders = new java.util.HashMap(other.judgedLeaders.size());
      for (java.util.Map.Entry other_element : other.judgedLeaders.entrySet()) {

        org.apache.iotdb.common.rpc.thrift.TConsensusGroupId other_element_key = other_element.getKey();
        java.lang.Boolean other_element_value = other_element.getValue();

        org.apache.iotdb.common.rpc.thrift.TConsensusGroupId __this__judgedLeaders_copy_key = new org.apache.iotdb.common.rpc.thrift.TConsensusGroupId(other_element_key);

        java.lang.Boolean __this__judgedLeaders_copy_value = other_element_value;

        __this__judgedLeaders.put(__this__judgedLeaders_copy_key, __this__judgedLeaders_copy_value);
      }
      this.judgedLeaders = __this__judgedLeaders;
    }
    if (other.isSetLoadSample()) {
      this.loadSample = new org.apache.iotdb.common.rpc.thrift.TLoadSample(other.loadSample);
    }
    if (other.isSetRegionSeriesUsageMap()) {
      java.util.Map __this__regionSeriesUsageMap = new java.util.HashMap(other.regionSeriesUsageMap);
      this.regionSeriesUsageMap = __this__regionSeriesUsageMap;
    }
    if (other.isSetRegionDeviceUsageMap()) {
      java.util.Map __this__regionDeviceUsageMap = new java.util.HashMap(other.regionDeviceUsageMap);
      this.regionDeviceUsageMap = __this__regionDeviceUsageMap;
    }
    if (other.isSetRegionDisk()) {
      java.util.Map __this__regionDisk = new java.util.HashMap(other.regionDisk);
      this.regionDisk = __this__regionDisk;
    }
    if (other.isSetSchemaLimitLevel()) {
      this.schemaLimitLevel = other.schemaLimitLevel;
    }
    if (other.isSetPipeMetaList()) {
      java.util.List __this__pipeMetaList = new java.util.ArrayList(other.pipeMetaList);
      this.pipeMetaList = __this__pipeMetaList;
    }
    if (other.isSetActivateStatus()) {
      this.activateStatus = other.activateStatus;
    }
    if (other.isSetConfirmedConfigNodeEndPoints()) {
      java.util.Set __this__confirmedConfigNodeEndPoints = new java.util.HashSet(other.confirmedConfigNodeEndPoints.size());
      for (org.apache.iotdb.common.rpc.thrift.TEndPoint other_element : other.confirmedConfigNodeEndPoints) {
        __this__confirmedConfigNodeEndPoints.add(new org.apache.iotdb.common.rpc.thrift.TEndPoint(other_element));
      }
      this.confirmedConfigNodeEndPoints = __this__confirmedConfigNodeEndPoints;
    }
    if (other.isSetConsensusLogicalTimeMap()) {
      java.util.Map __this__consensusLogicalTimeMap = new java.util.HashMap(other.consensusLogicalTimeMap.size());
      for (java.util.Map.Entry other_element : other.consensusLogicalTimeMap.entrySet()) {

        org.apache.iotdb.common.rpc.thrift.TConsensusGroupId other_element_key = other_element.getKey();
        java.lang.Long other_element_value = other_element.getValue();

        org.apache.iotdb.common.rpc.thrift.TConsensusGroupId __this__consensusLogicalTimeMap_copy_key = new org.apache.iotdb.common.rpc.thrift.TConsensusGroupId(other_element_key);

        java.lang.Long __this__consensusLogicalTimeMap_copy_value = other_element_value;

        __this__consensusLogicalTimeMap.put(__this__consensusLogicalTimeMap_copy_key, __this__consensusLogicalTimeMap_copy_value);
      }
      this.consensusLogicalTimeMap = __this__consensusLogicalTimeMap;
    }
    if (other.isSetPipeCompletedList()) {
      java.util.List __this__pipeCompletedList = new java.util.ArrayList(other.pipeCompletedList);
      this.pipeCompletedList = __this__pipeCompletedList;
    }
    if (other.isSetPipeRemainingEventCountList()) {
      java.util.List __this__pipeRemainingEventCountList = new java.util.ArrayList(other.pipeRemainingEventCountList);
      this.pipeRemainingEventCountList = __this__pipeRemainingEventCountList;
    }
    if (other.isSetPipeRemainingTimeList()) {
      java.util.List __this__pipeRemainingTimeList = new java.util.ArrayList(other.pipeRemainingTimeList);
      this.pipeRemainingTimeList = __this__pipeRemainingTimeList;
    }
  }

  public TDataNodeHeartbeatResp deepCopy() {
    return new TDataNodeHeartbeatResp(this);
  }

  @Override
  public void clear() {
    setHeartbeatTimestampIsSet(false);
    this.heartbeatTimestamp = 0;
    this.status = null;
    this.statusReason = null;
    this.judgedLeaders = null;
    this.loadSample = null;
    this.regionSeriesUsageMap = null;
    this.regionDeviceUsageMap = null;
    this.regionDisk = null;
    this.schemaLimitLevel = null;
    this.pipeMetaList = null;
    this.activateStatus = null;
    this.confirmedConfigNodeEndPoints = null;
    this.consensusLogicalTimeMap = null;
    this.pipeCompletedList = null;
    this.pipeRemainingEventCountList = null;
    this.pipeRemainingTimeList = null;
  }

  public long getHeartbeatTimestamp() {
    return this.heartbeatTimestamp;
  }

  public TDataNodeHeartbeatResp setHeartbeatTimestamp(long heartbeatTimestamp) {
    this.heartbeatTimestamp = heartbeatTimestamp;
    setHeartbeatTimestampIsSet(true);
    return this;
  }

  public void unsetHeartbeatTimestamp() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __HEARTBEATTIMESTAMP_ISSET_ID);
  }

  /** Returns true if field heartbeatTimestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetHeartbeatTimestamp() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __HEARTBEATTIMESTAMP_ISSET_ID);
  }

  public void setHeartbeatTimestampIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __HEARTBEATTIMESTAMP_ISSET_ID, value);
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getStatus() {
    return this.status;
  }

  public TDataNodeHeartbeatResp setStatus(@org.apache.thrift.annotation.Nullable java.lang.String status) {
    this.status = status;
    return this;
  }

  public void unsetStatus() {
    this.status = null;
  }

  /** Returns true if field status is set (has been assigned a value) and false otherwise */
  public boolean isSetStatus() {
    return this.status != null;
  }

  public void setStatusIsSet(boolean value) {
    if (!value) {
      this.status = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getStatusReason() {
    return this.statusReason;
  }

  public TDataNodeHeartbeatResp setStatusReason(@org.apache.thrift.annotation.Nullable java.lang.String statusReason) {
    this.statusReason = statusReason;
    return this;
  }

  public void unsetStatusReason() {
    this.statusReason = null;
  }

  /** Returns true if field statusReason is set (has been assigned a value) and false otherwise */
  public boolean isSetStatusReason() {
    return this.statusReason != null;
  }

  public void setStatusReasonIsSet(boolean value) {
    if (!value) {
      this.statusReason = null;
    }
  }

  public int getJudgedLeadersSize() {
    return (this.judgedLeaders == null) ? 0 : this.judgedLeaders.size();
  }

  public void putToJudgedLeaders(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId key, boolean val) {
    if (this.judgedLeaders == null) {
      this.judgedLeaders = new java.util.HashMap();
    }
    this.judgedLeaders.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map getJudgedLeaders() {
    return this.judgedLeaders;
  }

  public TDataNodeHeartbeatResp setJudgedLeaders(@org.apache.thrift.annotation.Nullable java.util.Map judgedLeaders) {
    this.judgedLeaders = judgedLeaders;
    return this;
  }

  public void unsetJudgedLeaders() {
    this.judgedLeaders = null;
  }

  /** Returns true if field judgedLeaders is set (has been assigned a value) and false otherwise */
  public boolean isSetJudgedLeaders() {
    return this.judgedLeaders != null;
  }

  public void setJudgedLeadersIsSet(boolean value) {
    if (!value) {
      this.judgedLeaders = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public org.apache.iotdb.common.rpc.thrift.TLoadSample getLoadSample() {
    return this.loadSample;
  }

  public TDataNodeHeartbeatResp setLoadSample(@org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TLoadSample loadSample) {
    this.loadSample = loadSample;
    return this;
  }

  public void unsetLoadSample() {
    this.loadSample = null;
  }

  /** Returns true if field loadSample is set (has been assigned a value) and false otherwise */
  public boolean isSetLoadSample() {
    return this.loadSample != null;
  }

  public void setLoadSampleIsSet(boolean value) {
    if (!value) {
      this.loadSample = null;
    }
  }

  public int getRegionSeriesUsageMapSize() {
    return (this.regionSeriesUsageMap == null) ? 0 : this.regionSeriesUsageMap.size();
  }

  public void putToRegionSeriesUsageMap(int key, long val) {
    if (this.regionSeriesUsageMap == null) {
      this.regionSeriesUsageMap = new java.util.HashMap();
    }
    this.regionSeriesUsageMap.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map getRegionSeriesUsageMap() {
    return this.regionSeriesUsageMap;
  }

  public TDataNodeHeartbeatResp setRegionSeriesUsageMap(@org.apache.thrift.annotation.Nullable java.util.Map regionSeriesUsageMap) {
    this.regionSeriesUsageMap = regionSeriesUsageMap;
    return this;
  }

  public void unsetRegionSeriesUsageMap() {
    this.regionSeriesUsageMap = null;
  }

  /** Returns true if field regionSeriesUsageMap is set (has been assigned a value) and false otherwise */
  public boolean isSetRegionSeriesUsageMap() {
    return this.regionSeriesUsageMap != null;
  }

  public void setRegionSeriesUsageMapIsSet(boolean value) {
    if (!value) {
      this.regionSeriesUsageMap = null;
    }
  }

  public int getRegionDeviceUsageMapSize() {
    return (this.regionDeviceUsageMap == null) ? 0 : this.regionDeviceUsageMap.size();
  }

  public void putToRegionDeviceUsageMap(int key, long val) {
    if (this.regionDeviceUsageMap == null) {
      this.regionDeviceUsageMap = new java.util.HashMap();
    }
    this.regionDeviceUsageMap.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map getRegionDeviceUsageMap() {
    return this.regionDeviceUsageMap;
  }

  public TDataNodeHeartbeatResp setRegionDeviceUsageMap(@org.apache.thrift.annotation.Nullable java.util.Map regionDeviceUsageMap) {
    this.regionDeviceUsageMap = regionDeviceUsageMap;
    return this;
  }

  public void unsetRegionDeviceUsageMap() {
    this.regionDeviceUsageMap = null;
  }

  /** Returns true if field regionDeviceUsageMap is set (has been assigned a value) and false otherwise */
  public boolean isSetRegionDeviceUsageMap() {
    return this.regionDeviceUsageMap != null;
  }

  public void setRegionDeviceUsageMapIsSet(boolean value) {
    if (!value) {
      this.regionDeviceUsageMap = null;
    }
  }

  public int getRegionDiskSize() {
    return (this.regionDisk == null) ? 0 : this.regionDisk.size();
  }

  public void putToRegionDisk(int key, long val) {
    if (this.regionDisk == null) {
      this.regionDisk = new java.util.HashMap();
    }
    this.regionDisk.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map getRegionDisk() {
    return this.regionDisk;
  }

  public TDataNodeHeartbeatResp setRegionDisk(@org.apache.thrift.annotation.Nullable java.util.Map regionDisk) {
    this.regionDisk = regionDisk;
    return this;
  }

  public void unsetRegionDisk() {
    this.regionDisk = null;
  }

  /** Returns true if field regionDisk is set (has been assigned a value) and false otherwise */
  public boolean isSetRegionDisk() {
    return this.regionDisk != null;
  }

  public void setRegionDiskIsSet(boolean value) {
    if (!value) {
      this.regionDisk = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public TSchemaLimitLevel getSchemaLimitLevel() {
    return this.schemaLimitLevel;
  }

  public TDataNodeHeartbeatResp setSchemaLimitLevel(@org.apache.thrift.annotation.Nullable TSchemaLimitLevel schemaLimitLevel) {
    this.schemaLimitLevel = schemaLimitLevel;
    return this;
  }

  public void unsetSchemaLimitLevel() {
    this.schemaLimitLevel = null;
  }

  /** Returns true if field schemaLimitLevel is set (has been assigned a value) and false otherwise */
  public boolean isSetSchemaLimitLevel() {
    return this.schemaLimitLevel != null;
  }

  public void setSchemaLimitLevelIsSet(boolean value) {
    if (!value) {
      this.schemaLimitLevel = null;
    }
  }

  public int getPipeMetaListSize() {
    return (this.pipeMetaList == null) ? 0 : this.pipeMetaList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getPipeMetaListIterator() {
    return (this.pipeMetaList == null) ? null : this.pipeMetaList.iterator();
  }

  public void addToPipeMetaList(java.nio.ByteBuffer elem) {
    if (this.pipeMetaList == null) {
      this.pipeMetaList = new java.util.ArrayList();
    }
    this.pipeMetaList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getPipeMetaList() {
    return this.pipeMetaList;
  }

  public TDataNodeHeartbeatResp setPipeMetaList(@org.apache.thrift.annotation.Nullable java.util.List pipeMetaList) {
    this.pipeMetaList = pipeMetaList;
    return this;
  }

  public void unsetPipeMetaList() {
    this.pipeMetaList = null;
  }

  /** Returns true if field pipeMetaList is set (has been assigned a value) and false otherwise */
  public boolean isSetPipeMetaList() {
    return this.pipeMetaList != null;
  }

  public void setPipeMetaListIsSet(boolean value) {
    if (!value) {
      this.pipeMetaList = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getActivateStatus() {
    return this.activateStatus;
  }

  public TDataNodeHeartbeatResp setActivateStatus(@org.apache.thrift.annotation.Nullable java.lang.String activateStatus) {
    this.activateStatus = activateStatus;
    return this;
  }

  public void unsetActivateStatus() {
    this.activateStatus = null;
  }

  /** Returns true if field activateStatus is set (has been assigned a value) and false otherwise */
  public boolean isSetActivateStatus() {
    return this.activateStatus != null;
  }

  public void setActivateStatusIsSet(boolean value) {
    if (!value) {
      this.activateStatus = null;
    }
  }

  public int getConfirmedConfigNodeEndPointsSize() {
    return (this.confirmedConfigNodeEndPoints == null) ? 0 : this.confirmedConfigNodeEndPoints.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getConfirmedConfigNodeEndPointsIterator() {
    return (this.confirmedConfigNodeEndPoints == null) ? null : this.confirmedConfigNodeEndPoints.iterator();
  }

  public void addToConfirmedConfigNodeEndPoints(org.apache.iotdb.common.rpc.thrift.TEndPoint elem) {
    if (this.confirmedConfigNodeEndPoints == null) {
      this.confirmedConfigNodeEndPoints = new java.util.HashSet();
    }
    this.confirmedConfigNodeEndPoints.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Set getConfirmedConfigNodeEndPoints() {
    return this.confirmedConfigNodeEndPoints;
  }

  public TDataNodeHeartbeatResp setConfirmedConfigNodeEndPoints(@org.apache.thrift.annotation.Nullable java.util.Set confirmedConfigNodeEndPoints) {
    this.confirmedConfigNodeEndPoints = confirmedConfigNodeEndPoints;
    return this;
  }

  public void unsetConfirmedConfigNodeEndPoints() {
    this.confirmedConfigNodeEndPoints = null;
  }

  /** Returns true if field confirmedConfigNodeEndPoints is set (has been assigned a value) and false otherwise */
  public boolean isSetConfirmedConfigNodeEndPoints() {
    return this.confirmedConfigNodeEndPoints != null;
  }

  public void setConfirmedConfigNodeEndPointsIsSet(boolean value) {
    if (!value) {
      this.confirmedConfigNodeEndPoints = null;
    }
  }

  public int getConsensusLogicalTimeMapSize() {
    return (this.consensusLogicalTimeMap == null) ? 0 : this.consensusLogicalTimeMap.size();
  }

  public void putToConsensusLogicalTimeMap(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId key, long val) {
    if (this.consensusLogicalTimeMap == null) {
      this.consensusLogicalTimeMap = new java.util.HashMap();
    }
    this.consensusLogicalTimeMap.put(key, val);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Map getConsensusLogicalTimeMap() {
    return this.consensusLogicalTimeMap;
  }

  public TDataNodeHeartbeatResp setConsensusLogicalTimeMap(@org.apache.thrift.annotation.Nullable java.util.Map consensusLogicalTimeMap) {
    this.consensusLogicalTimeMap = consensusLogicalTimeMap;
    return this;
  }

  public void unsetConsensusLogicalTimeMap() {
    this.consensusLogicalTimeMap = null;
  }

  /** Returns true if field consensusLogicalTimeMap is set (has been assigned a value) and false otherwise */
  public boolean isSetConsensusLogicalTimeMap() {
    return this.consensusLogicalTimeMap != null;
  }

  public void setConsensusLogicalTimeMapIsSet(boolean value) {
    if (!value) {
      this.consensusLogicalTimeMap = null;
    }
  }

  public int getPipeCompletedListSize() {
    return (this.pipeCompletedList == null) ? 0 : this.pipeCompletedList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getPipeCompletedListIterator() {
    return (this.pipeCompletedList == null) ? null : this.pipeCompletedList.iterator();
  }

  public void addToPipeCompletedList(boolean elem) {
    if (this.pipeCompletedList == null) {
      this.pipeCompletedList = new java.util.ArrayList();
    }
    this.pipeCompletedList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getPipeCompletedList() {
    return this.pipeCompletedList;
  }

  public TDataNodeHeartbeatResp setPipeCompletedList(@org.apache.thrift.annotation.Nullable java.util.List pipeCompletedList) {
    this.pipeCompletedList = pipeCompletedList;
    return this;
  }

  public void unsetPipeCompletedList() {
    this.pipeCompletedList = null;
  }

  /** Returns true if field pipeCompletedList is set (has been assigned a value) and false otherwise */
  public boolean isSetPipeCompletedList() {
    return this.pipeCompletedList != null;
  }

  public void setPipeCompletedListIsSet(boolean value) {
    if (!value) {
      this.pipeCompletedList = null;
    }
  }

  public int getPipeRemainingEventCountListSize() {
    return (this.pipeRemainingEventCountList == null) ? 0 : this.pipeRemainingEventCountList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getPipeRemainingEventCountListIterator() {
    return (this.pipeRemainingEventCountList == null) ? null : this.pipeRemainingEventCountList.iterator();
  }

  public void addToPipeRemainingEventCountList(long elem) {
    if (this.pipeRemainingEventCountList == null) {
      this.pipeRemainingEventCountList = new java.util.ArrayList();
    }
    this.pipeRemainingEventCountList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getPipeRemainingEventCountList() {
    return this.pipeRemainingEventCountList;
  }

  public TDataNodeHeartbeatResp setPipeRemainingEventCountList(@org.apache.thrift.annotation.Nullable java.util.List pipeRemainingEventCountList) {
    this.pipeRemainingEventCountList = pipeRemainingEventCountList;
    return this;
  }

  public void unsetPipeRemainingEventCountList() {
    this.pipeRemainingEventCountList = null;
  }

  /** Returns true if field pipeRemainingEventCountList is set (has been assigned a value) and false otherwise */
  public boolean isSetPipeRemainingEventCountList() {
    return this.pipeRemainingEventCountList != null;
  }

  public void setPipeRemainingEventCountListIsSet(boolean value) {
    if (!value) {
      this.pipeRemainingEventCountList = null;
    }
  }

  public int getPipeRemainingTimeListSize() {
    return (this.pipeRemainingTimeList == null) ? 0 : this.pipeRemainingTimeList.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator getPipeRemainingTimeListIterator() {
    return (this.pipeRemainingTimeList == null) ? null : this.pipeRemainingTimeList.iterator();
  }

  public void addToPipeRemainingTimeList(double elem) {
    if (this.pipeRemainingTimeList == null) {
      this.pipeRemainingTimeList = new java.util.ArrayList();
    }
    this.pipeRemainingTimeList.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List getPipeRemainingTimeList() {
    return this.pipeRemainingTimeList;
  }

  public TDataNodeHeartbeatResp setPipeRemainingTimeList(@org.apache.thrift.annotation.Nullable java.util.List pipeRemainingTimeList) {
    this.pipeRemainingTimeList = pipeRemainingTimeList;
    return this;
  }

  public void unsetPipeRemainingTimeList() {
    this.pipeRemainingTimeList = null;
  }

  /** Returns true if field pipeRemainingTimeList is set (has been assigned a value) and false otherwise */
  public boolean isSetPipeRemainingTimeList() {
    return this.pipeRemainingTimeList != null;
  }

  public void setPipeRemainingTimeListIsSet(boolean value) {
    if (!value) {
      this.pipeRemainingTimeList = null;
    }
  }

  public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case HEARTBEAT_TIMESTAMP:
      if (value == null) {
        unsetHeartbeatTimestamp();
      } else {
        setHeartbeatTimestamp((java.lang.Long)value);
      }
      break;

    case STATUS:
      if (value == null) {
        unsetStatus();
      } else {
        setStatus((java.lang.String)value);
      }
      break;

    case STATUS_REASON:
      if (value == null) {
        unsetStatusReason();
      } else {
        setStatusReason((java.lang.String)value);
      }
      break;

    case JUDGED_LEADERS:
      if (value == null) {
        unsetJudgedLeaders();
      } else {
        setJudgedLeaders((java.util.Map)value);
      }
      break;

    case LOAD_SAMPLE:
      if (value == null) {
        unsetLoadSample();
      } else {
        setLoadSample((org.apache.iotdb.common.rpc.thrift.TLoadSample)value);
      }
      break;

    case REGION_SERIES_USAGE_MAP:
      if (value == null) {
        unsetRegionSeriesUsageMap();
      } else {
        setRegionSeriesUsageMap((java.util.Map)value);
      }
      break;

    case REGION_DEVICE_USAGE_MAP:
      if (value == null) {
        unsetRegionDeviceUsageMap();
      } else {
        setRegionDeviceUsageMap((java.util.Map)value);
      }
      break;

    case REGION_DISK:
      if (value == null) {
        unsetRegionDisk();
      } else {
        setRegionDisk((java.util.Map)value);
      }
      break;

    case SCHEMA_LIMIT_LEVEL:
      if (value == null) {
        unsetSchemaLimitLevel();
      } else {
        setSchemaLimitLevel((TSchemaLimitLevel)value);
      }
      break;

    case PIPE_META_LIST:
      if (value == null) {
        unsetPipeMetaList();
      } else {
        setPipeMetaList((java.util.List)value);
      }
      break;

    case ACTIVATE_STATUS:
      if (value == null) {
        unsetActivateStatus();
      } else {
        setActivateStatus((java.lang.String)value);
      }
      break;

    case CONFIRMED_CONFIG_NODE_END_POINTS:
      if (value == null) {
        unsetConfirmedConfigNodeEndPoints();
      } else {
        setConfirmedConfigNodeEndPoints((java.util.Set)value);
      }
      break;

    case CONSENSUS_LOGICAL_TIME_MAP:
      if (value == null) {
        unsetConsensusLogicalTimeMap();
      } else {
        setConsensusLogicalTimeMap((java.util.Map)value);
      }
      break;

    case PIPE_COMPLETED_LIST:
      if (value == null) {
        unsetPipeCompletedList();
      } else {
        setPipeCompletedList((java.util.List)value);
      }
      break;

    case PIPE_REMAINING_EVENT_COUNT_LIST:
      if (value == null) {
        unsetPipeRemainingEventCountList();
      } else {
        setPipeRemainingEventCountList((java.util.List)value);
      }
      break;

    case PIPE_REMAINING_TIME_LIST:
      if (value == null) {
        unsetPipeRemainingTimeList();
      } else {
        setPipeRemainingTimeList((java.util.List)value);
      }
      break;

    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.Object getFieldValue(_Fields field) {
    switch (field) {
    case HEARTBEAT_TIMESTAMP:
      return getHeartbeatTimestamp();

    case STATUS:
      return getStatus();

    case STATUS_REASON:
      return getStatusReason();

    case JUDGED_LEADERS:
      return getJudgedLeaders();

    case LOAD_SAMPLE:
      return getLoadSample();

    case REGION_SERIES_USAGE_MAP:
      return getRegionSeriesUsageMap();

    case REGION_DEVICE_USAGE_MAP:
      return getRegionDeviceUsageMap();

    case REGION_DISK:
      return getRegionDisk();

    case SCHEMA_LIMIT_LEVEL:
      return getSchemaLimitLevel();

    case PIPE_META_LIST:
      return getPipeMetaList();

    case ACTIVATE_STATUS:
      return getActivateStatus();

    case CONFIRMED_CONFIG_NODE_END_POINTS:
      return getConfirmedConfigNodeEndPoints();

    case CONSENSUS_LOGICAL_TIME_MAP:
      return getConsensusLogicalTimeMap();

    case PIPE_COMPLETED_LIST:
      return getPipeCompletedList();

    case PIPE_REMAINING_EVENT_COUNT_LIST:
      return getPipeRemainingEventCountList();

    case PIPE_REMAINING_TIME_LIST:
      return getPipeRemainingTimeList();

    }
    throw new java.lang.IllegalStateException();
  }

  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
  public boolean isSet(_Fields field) {
    if (field == null) {
      throw new java.lang.IllegalArgumentException();
    }

    switch (field) {
    case HEARTBEAT_TIMESTAMP:
      return isSetHeartbeatTimestamp();
    case STATUS:
      return isSetStatus();
    case STATUS_REASON:
      return isSetStatusReason();
    case JUDGED_LEADERS:
      return isSetJudgedLeaders();
    case LOAD_SAMPLE:
      return isSetLoadSample();
    case REGION_SERIES_USAGE_MAP:
      return isSetRegionSeriesUsageMap();
    case REGION_DEVICE_USAGE_MAP:
      return isSetRegionDeviceUsageMap();
    case REGION_DISK:
      return isSetRegionDisk();
    case SCHEMA_LIMIT_LEVEL:
      return isSetSchemaLimitLevel();
    case PIPE_META_LIST:
      return isSetPipeMetaList();
    case ACTIVATE_STATUS:
      return isSetActivateStatus();
    case CONFIRMED_CONFIG_NODE_END_POINTS:
      return isSetConfirmedConfigNodeEndPoints();
    case CONSENSUS_LOGICAL_TIME_MAP:
      return isSetConsensusLogicalTimeMap();
    case PIPE_COMPLETED_LIST:
      return isSetPipeCompletedList();
    case PIPE_REMAINING_EVENT_COUNT_LIST:
      return isSetPipeRemainingEventCountList();
    case PIPE_REMAINING_TIME_LIST:
      return isSetPipeRemainingTimeList();
    }
    throw new java.lang.IllegalStateException();
  }

  @Override
  public boolean equals(java.lang.Object that) {
    if (that instanceof TDataNodeHeartbeatResp)
      return this.equals((TDataNodeHeartbeatResp)that);
    return false;
  }

  public boolean equals(TDataNodeHeartbeatResp that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_heartbeatTimestamp = true;
    boolean that_present_heartbeatTimestamp = true;
    if (this_present_heartbeatTimestamp || that_present_heartbeatTimestamp) {
      if (!(this_present_heartbeatTimestamp && that_present_heartbeatTimestamp))
        return false;
      if (this.heartbeatTimestamp != that.heartbeatTimestamp)
        return false;
    }

    boolean this_present_status = true && this.isSetStatus();
    boolean that_present_status = true && that.isSetStatus();
    if (this_present_status || that_present_status) {
      if (!(this_present_status && that_present_status))
        return false;
      if (!this.status.equals(that.status))
        return false;
    }

    boolean this_present_statusReason = true && this.isSetStatusReason();
    boolean that_present_statusReason = true && that.isSetStatusReason();
    if (this_present_statusReason || that_present_statusReason) {
      if (!(this_present_statusReason && that_present_statusReason))
        return false;
      if (!this.statusReason.equals(that.statusReason))
        return false;
    }

    boolean this_present_judgedLeaders = true && this.isSetJudgedLeaders();
    boolean that_present_judgedLeaders = true && that.isSetJudgedLeaders();
    if (this_present_judgedLeaders || that_present_judgedLeaders) {
      if (!(this_present_judgedLeaders && that_present_judgedLeaders))
        return false;
      if (!this.judgedLeaders.equals(that.judgedLeaders))
        return false;
    }

    boolean this_present_loadSample = true && this.isSetLoadSample();
    boolean that_present_loadSample = true && that.isSetLoadSample();
    if (this_present_loadSample || that_present_loadSample) {
      if (!(this_present_loadSample && that_present_loadSample))
        return false;
      if (!this.loadSample.equals(that.loadSample))
        return false;
    }

    boolean this_present_regionSeriesUsageMap = true && this.isSetRegionSeriesUsageMap();
    boolean that_present_regionSeriesUsageMap = true && that.isSetRegionSeriesUsageMap();
    if (this_present_regionSeriesUsageMap || that_present_regionSeriesUsageMap) {
      if (!(this_present_regionSeriesUsageMap && that_present_regionSeriesUsageMap))
        return false;
      if (!this.regionSeriesUsageMap.equals(that.regionSeriesUsageMap))
        return false;
    }

    boolean this_present_regionDeviceUsageMap = true && this.isSetRegionDeviceUsageMap();
    boolean that_present_regionDeviceUsageMap = true && that.isSetRegionDeviceUsageMap();
    if (this_present_regionDeviceUsageMap || that_present_regionDeviceUsageMap) {
      if (!(this_present_regionDeviceUsageMap && that_present_regionDeviceUsageMap))
        return false;
      if (!this.regionDeviceUsageMap.equals(that.regionDeviceUsageMap))
        return false;
    }

    boolean this_present_regionDisk = true && this.isSetRegionDisk();
    boolean that_present_regionDisk = true && that.isSetRegionDisk();
    if (this_present_regionDisk || that_present_regionDisk) {
      if (!(this_present_regionDisk && that_present_regionDisk))
        return false;
      if (!this.regionDisk.equals(that.regionDisk))
        return false;
    }

    boolean this_present_schemaLimitLevel = true && this.isSetSchemaLimitLevel();
    boolean that_present_schemaLimitLevel = true && that.isSetSchemaLimitLevel();
    if (this_present_schemaLimitLevel || that_present_schemaLimitLevel) {
      if (!(this_present_schemaLimitLevel && that_present_schemaLimitLevel))
        return false;
      if (!this.schemaLimitLevel.equals(that.schemaLimitLevel))
        return false;
    }

    boolean this_present_pipeMetaList = true && this.isSetPipeMetaList();
    boolean that_present_pipeMetaList = true && that.isSetPipeMetaList();
    if (this_present_pipeMetaList || that_present_pipeMetaList) {
      if (!(this_present_pipeMetaList && that_present_pipeMetaList))
        return false;
      if (!this.pipeMetaList.equals(that.pipeMetaList))
        return false;
    }

    boolean this_present_activateStatus = true && this.isSetActivateStatus();
    boolean that_present_activateStatus = true && that.isSetActivateStatus();
    if (this_present_activateStatus || that_present_activateStatus) {
      if (!(this_present_activateStatus && that_present_activateStatus))
        return false;
      if (!this.activateStatus.equals(that.activateStatus))
        return false;
    }

    boolean this_present_confirmedConfigNodeEndPoints = true && this.isSetConfirmedConfigNodeEndPoints();
    boolean that_present_confirmedConfigNodeEndPoints = true && that.isSetConfirmedConfigNodeEndPoints();
    if (this_present_confirmedConfigNodeEndPoints || that_present_confirmedConfigNodeEndPoints) {
      if (!(this_present_confirmedConfigNodeEndPoints && that_present_confirmedConfigNodeEndPoints))
        return false;
      if (!this.confirmedConfigNodeEndPoints.equals(that.confirmedConfigNodeEndPoints))
        return false;
    }

    boolean this_present_consensusLogicalTimeMap = true && this.isSetConsensusLogicalTimeMap();
    boolean that_present_consensusLogicalTimeMap = true && that.isSetConsensusLogicalTimeMap();
    if (this_present_consensusLogicalTimeMap || that_present_consensusLogicalTimeMap) {
      if (!(this_present_consensusLogicalTimeMap && that_present_consensusLogicalTimeMap))
        return false;
      if (!this.consensusLogicalTimeMap.equals(that.consensusLogicalTimeMap))
        return false;
    }

    boolean this_present_pipeCompletedList = true && this.isSetPipeCompletedList();
    boolean that_present_pipeCompletedList = true && that.isSetPipeCompletedList();
    if (this_present_pipeCompletedList || that_present_pipeCompletedList) {
      if (!(this_present_pipeCompletedList && that_present_pipeCompletedList))
        return false;
      if (!this.pipeCompletedList.equals(that.pipeCompletedList))
        return false;
    }

    boolean this_present_pipeRemainingEventCountList = true && this.isSetPipeRemainingEventCountList();
    boolean that_present_pipeRemainingEventCountList = true && that.isSetPipeRemainingEventCountList();
    if (this_present_pipeRemainingEventCountList || that_present_pipeRemainingEventCountList) {
      if (!(this_present_pipeRemainingEventCountList && that_present_pipeRemainingEventCountList))
        return false;
      if (!this.pipeRemainingEventCountList.equals(that.pipeRemainingEventCountList))
        return false;
    }

    boolean this_present_pipeRemainingTimeList = true && this.isSetPipeRemainingTimeList();
    boolean that_present_pipeRemainingTimeList = true && that.isSetPipeRemainingTimeList();
    if (this_present_pipeRemainingTimeList || that_present_pipeRemainingTimeList) {
      if (!(this_present_pipeRemainingTimeList && that_present_pipeRemainingTimeList))
        return false;
      if (!this.pipeRemainingTimeList.equals(that.pipeRemainingTimeList))
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(heartbeatTimestamp);

    hashCode = hashCode * 8191 + ((isSetStatus()) ? 131071 : 524287);
    if (isSetStatus())
      hashCode = hashCode * 8191 + status.hashCode();

    hashCode = hashCode * 8191 + ((isSetStatusReason()) ? 131071 : 524287);
    if (isSetStatusReason())
      hashCode = hashCode * 8191 + statusReason.hashCode();

    hashCode = hashCode * 8191 + ((isSetJudgedLeaders()) ? 131071 : 524287);
    if (isSetJudgedLeaders())
      hashCode = hashCode * 8191 + judgedLeaders.hashCode();

    hashCode = hashCode * 8191 + ((isSetLoadSample()) ? 131071 : 524287);
    if (isSetLoadSample())
      hashCode = hashCode * 8191 + loadSample.hashCode();

    hashCode = hashCode * 8191 + ((isSetRegionSeriesUsageMap()) ? 131071 : 524287);
    if (isSetRegionSeriesUsageMap())
      hashCode = hashCode * 8191 + regionSeriesUsageMap.hashCode();

    hashCode = hashCode * 8191 + ((isSetRegionDeviceUsageMap()) ? 131071 : 524287);
    if (isSetRegionDeviceUsageMap())
      hashCode = hashCode * 8191 + regionDeviceUsageMap.hashCode();

    hashCode = hashCode * 8191 + ((isSetRegionDisk()) ? 131071 : 524287);
    if (isSetRegionDisk())
      hashCode = hashCode * 8191 + regionDisk.hashCode();

    hashCode = hashCode * 8191 + ((isSetSchemaLimitLevel()) ? 131071 : 524287);
    if (isSetSchemaLimitLevel())
      hashCode = hashCode * 8191 + schemaLimitLevel.getValue();

    hashCode = hashCode * 8191 + ((isSetPipeMetaList()) ? 131071 : 524287);
    if (isSetPipeMetaList())
      hashCode = hashCode * 8191 + pipeMetaList.hashCode();

    hashCode = hashCode * 8191 + ((isSetActivateStatus()) ? 131071 : 524287);
    if (isSetActivateStatus())
      hashCode = hashCode * 8191 + activateStatus.hashCode();

    hashCode = hashCode * 8191 + ((isSetConfirmedConfigNodeEndPoints()) ? 131071 : 524287);
    if (isSetConfirmedConfigNodeEndPoints())
      hashCode = hashCode * 8191 + confirmedConfigNodeEndPoints.hashCode();

    hashCode = hashCode * 8191 + ((isSetConsensusLogicalTimeMap()) ? 131071 : 524287);
    if (isSetConsensusLogicalTimeMap())
      hashCode = hashCode * 8191 + consensusLogicalTimeMap.hashCode();

    hashCode = hashCode * 8191 + ((isSetPipeCompletedList()) ? 131071 : 524287);
    if (isSetPipeCompletedList())
      hashCode = hashCode * 8191 + pipeCompletedList.hashCode();

    hashCode = hashCode * 8191 + ((isSetPipeRemainingEventCountList()) ? 131071 : 524287);
    if (isSetPipeRemainingEventCountList())
      hashCode = hashCode * 8191 + pipeRemainingEventCountList.hashCode();

    hashCode = hashCode * 8191 + ((isSetPipeRemainingTimeList()) ? 131071 : 524287);
    if (isSetPipeRemainingTimeList())
      hashCode = hashCode * 8191 + pipeRemainingTimeList.hashCode();

    return hashCode;
  }

  @Override
  public int compareTo(TDataNodeHeartbeatResp other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetHeartbeatTimestamp(), other.isSetHeartbeatTimestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetHeartbeatTimestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.heartbeatTimestamp, other.heartbeatTimestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetStatus(), other.isSetStatus());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetStatus()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetStatusReason(), other.isSetStatusReason());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetStatusReason()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusReason, other.statusReason);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetJudgedLeaders(), other.isSetJudgedLeaders());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetJudgedLeaders()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.judgedLeaders, other.judgedLeaders);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetLoadSample(), other.isSetLoadSample());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLoadSample()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.loadSample, other.loadSample);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetRegionSeriesUsageMap(), other.isSetRegionSeriesUsageMap());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRegionSeriesUsageMap()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionSeriesUsageMap, other.regionSeriesUsageMap);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetRegionDeviceUsageMap(), other.isSetRegionDeviceUsageMap());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRegionDeviceUsageMap()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionDeviceUsageMap, other.regionDeviceUsageMap);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetRegionDisk(), other.isSetRegionDisk());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRegionDisk()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionDisk, other.regionDisk);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetSchemaLimitLevel(), other.isSetSchemaLimitLevel());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSchemaLimitLevel()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaLimitLevel, other.schemaLimitLevel);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPipeMetaList(), other.isSetPipeMetaList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPipeMetaList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pipeMetaList, other.pipeMetaList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetActivateStatus(), other.isSetActivateStatus());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetActivateStatus()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activateStatus, other.activateStatus);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetConfirmedConfigNodeEndPoints(), other.isSetConfirmedConfigNodeEndPoints());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetConfirmedConfigNodeEndPoints()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.confirmedConfigNodeEndPoints, other.confirmedConfigNodeEndPoints);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetConsensusLogicalTimeMap(), other.isSetConsensusLogicalTimeMap());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetConsensusLogicalTimeMap()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consensusLogicalTimeMap, other.consensusLogicalTimeMap);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPipeCompletedList(), other.isSetPipeCompletedList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPipeCompletedList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pipeCompletedList, other.pipeCompletedList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPipeRemainingEventCountList(), other.isSetPipeRemainingEventCountList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPipeRemainingEventCountList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pipeRemainingEventCountList, other.pipeRemainingEventCountList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPipeRemainingTimeList(), other.isSetPipeRemainingTimeList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPipeRemainingTimeList()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pipeRemainingTimeList, other.pipeRemainingTimeList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  @org.apache.thrift.annotation.Nullable
  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    scheme(iprot).read(iprot, this);
  }

  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    scheme(oprot).write(oprot, this);
  }

  @Override
  public java.lang.String toString() {
    java.lang.StringBuilder sb = new java.lang.StringBuilder("TDataNodeHeartbeatResp(");
    boolean first = true;

    sb.append("heartbeatTimestamp:");
    sb.append(this.heartbeatTimestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("status:");
    if (this.status == null) {
      sb.append("null");
    } else {
      sb.append(this.status);
    }
    first = false;
    if (isSetStatusReason()) {
      if (!first) sb.append(", ");
      sb.append("statusReason:");
      if (this.statusReason == null) {
        sb.append("null");
      } else {
        sb.append(this.statusReason);
      }
      first = false;
    }
    if (isSetJudgedLeaders()) {
      if (!first) sb.append(", ");
      sb.append("judgedLeaders:");
      if (this.judgedLeaders == null) {
        sb.append("null");
      } else {
        sb.append(this.judgedLeaders);
      }
      first = false;
    }
    if (isSetLoadSample()) {
      if (!first) sb.append(", ");
      sb.append("loadSample:");
      if (this.loadSample == null) {
        sb.append("null");
      } else {
        sb.append(this.loadSample);
      }
      first = false;
    }
    if (isSetRegionSeriesUsageMap()) {
      if (!first) sb.append(", ");
      sb.append("regionSeriesUsageMap:");
      if (this.regionSeriesUsageMap == null) {
        sb.append("null");
      } else {
        sb.append(this.regionSeriesUsageMap);
      }
      first = false;
    }
    if (isSetRegionDeviceUsageMap()) {
      if (!first) sb.append(", ");
      sb.append("regionDeviceUsageMap:");
      if (this.regionDeviceUsageMap == null) {
        sb.append("null");
      } else {
        sb.append(this.regionDeviceUsageMap);
      }
      first = false;
    }
    if (isSetRegionDisk()) {
      if (!first) sb.append(", ");
      sb.append("regionDisk:");
      if (this.regionDisk == null) {
        sb.append("null");
      } else {
        sb.append(this.regionDisk);
      }
      first = false;
    }
    if (isSetSchemaLimitLevel()) {
      if (!first) sb.append(", ");
      sb.append("schemaLimitLevel:");
      if (this.schemaLimitLevel == null) {
        sb.append("null");
      } else {
        sb.append(this.schemaLimitLevel);
      }
      first = false;
    }
    if (isSetPipeMetaList()) {
      if (!first) sb.append(", ");
      sb.append("pipeMetaList:");
      if (this.pipeMetaList == null) {
        sb.append("null");
      } else {
        org.apache.thrift.TBaseHelper.toString(this.pipeMetaList, sb);
      }
      first = false;
    }
    if (isSetActivateStatus()) {
      if (!first) sb.append(", ");
      sb.append("activateStatus:");
      if (this.activateStatus == null) {
        sb.append("null");
      } else {
        sb.append(this.activateStatus);
      }
      first = false;
    }
    if (isSetConfirmedConfigNodeEndPoints()) {
      if (!first) sb.append(", ");
      sb.append("confirmedConfigNodeEndPoints:");
      if (this.confirmedConfigNodeEndPoints == null) {
        sb.append("null");
      } else {
        sb.append(this.confirmedConfigNodeEndPoints);
      }
      first = false;
    }
    if (isSetConsensusLogicalTimeMap()) {
      if (!first) sb.append(", ");
      sb.append("consensusLogicalTimeMap:");
      if (this.consensusLogicalTimeMap == null) {
        sb.append("null");
      } else {
        sb.append(this.consensusLogicalTimeMap);
      }
      first = false;
    }
    if (isSetPipeCompletedList()) {
      if (!first) sb.append(", ");
      sb.append("pipeCompletedList:");
      if (this.pipeCompletedList == null) {
        sb.append("null");
      } else {
        sb.append(this.pipeCompletedList);
      }
      first = false;
    }
    if (isSetPipeRemainingEventCountList()) {
      if (!first) sb.append(", ");
      sb.append("pipeRemainingEventCountList:");
      if (this.pipeRemainingEventCountList == null) {
        sb.append("null");
      } else {
        sb.append(this.pipeRemainingEventCountList);
      }
      first = false;
    }
    if (isSetPipeRemainingTimeList()) {
      if (!first) sb.append(", ");
      sb.append("pipeRemainingTimeList:");
      if (this.pipeRemainingTimeList == null) {
        sb.append("null");
      } else {
        sb.append(this.pipeRemainingTimeList);
      }
      first = false;
    }
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    // alas, we cannot check 'heartbeatTimestamp' because it's a primitive and you chose the non-beans generator.
    if (status == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' was not present! Struct: " + toString());
    }
    // check for sub-struct validity
    if (loadSample != null) {
      loadSample.validate();
    }
  }

  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    try {
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
    try {
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
      __isset_bitfield = 0;
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private static class TDataNodeHeartbeatRespStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TDataNodeHeartbeatRespStandardScheme getScheme() {
      return new TDataNodeHeartbeatRespStandardScheme();
    }
  }

  private static class TDataNodeHeartbeatRespStandardScheme extends org.apache.thrift.scheme.StandardScheme {

    public void read(org.apache.thrift.protocol.TProtocol iprot, TDataNodeHeartbeatResp struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TField schemeField;
      iprot.readStructBegin();
      while (true)
      {
        schemeField = iprot.readFieldBegin();
        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
          break;
        }
        switch (schemeField.id) {
          case 1: // HEARTBEAT_TIMESTAMP
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.heartbeatTimestamp = iprot.readI64();
              struct.setHeartbeatTimestampIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // STATUS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.status = iprot.readString();
              struct.setStatusIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // STATUS_REASON
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.statusReason = iprot.readString();
              struct.setStatusReasonIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // JUDGED_LEADERS
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map116 = iprot.readMapBegin();
                struct.judgedLeaders = new java.util.HashMap(2*_map116.size);
                @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TConsensusGroupId _key117;
                boolean _val118;
                for (int _i119 = 0; _i119 < _map116.size; ++_i119)
                {
                  _key117 = new org.apache.iotdb.common.rpc.thrift.TConsensusGroupId();
                  _key117.read(iprot);
                  _val118 = iprot.readBool();
                  struct.judgedLeaders.put(_key117, _val118);
                }
                iprot.readMapEnd();
              }
              struct.setJudgedLeadersIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // LOAD_SAMPLE
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.loadSample = new org.apache.iotdb.common.rpc.thrift.TLoadSample();
              struct.loadSample.read(iprot);
              struct.setLoadSampleIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 6: // REGION_SERIES_USAGE_MAP
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map120 = iprot.readMapBegin();
                struct.regionSeriesUsageMap = new java.util.HashMap(2*_map120.size);
                int _key121;
                long _val122;
                for (int _i123 = 0; _i123 < _map120.size; ++_i123)
                {
                  _key121 = iprot.readI32();
                  _val122 = iprot.readI64();
                  struct.regionSeriesUsageMap.put(_key121, _val122);
                }
                iprot.readMapEnd();
              }
              struct.setRegionSeriesUsageMapIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 7: // REGION_DEVICE_USAGE_MAP
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map124 = iprot.readMapBegin();
                struct.regionDeviceUsageMap = new java.util.HashMap(2*_map124.size);
                int _key125;
                long _val126;
                for (int _i127 = 0; _i127 < _map124.size; ++_i127)
                {
                  _key125 = iprot.readI32();
                  _val126 = iprot.readI64();
                  struct.regionDeviceUsageMap.put(_key125, _val126);
                }
                iprot.readMapEnd();
              }
              struct.setRegionDeviceUsageMapIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 8: // REGION_DISK
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map128 = iprot.readMapBegin();
                struct.regionDisk = new java.util.HashMap(2*_map128.size);
                int _key129;
                long _val130;
                for (int _i131 = 0; _i131 < _map128.size; ++_i131)
                {
                  _key129 = iprot.readI32();
                  _val130 = iprot.readI64();
                  struct.regionDisk.put(_key129, _val130);
                }
                iprot.readMapEnd();
              }
              struct.setRegionDiskIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 9: // SCHEMA_LIMIT_LEVEL
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.schemaLimitLevel = org.apache.iotdb.mpp.rpc.thrift.TSchemaLimitLevel.findByValue(iprot.readI32());
              struct.setSchemaLimitLevelIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 10: // PIPE_META_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list132 = iprot.readListBegin();
                struct.pipeMetaList = new java.util.ArrayList(_list132.size);
                @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem133;
                for (int _i134 = 0; _i134 < _list132.size; ++_i134)
                {
                  _elem133 = iprot.readBinary();
                  struct.pipeMetaList.add(_elem133);
                }
                iprot.readListEnd();
              }
              struct.setPipeMetaListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 11: // ACTIVATE_STATUS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.activateStatus = iprot.readString();
              struct.setActivateStatusIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 12: // CONFIRMED_CONFIG_NODE_END_POINTS
            if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
              {
                org.apache.thrift.protocol.TSet _set135 = iprot.readSetBegin();
                struct.confirmedConfigNodeEndPoints = new java.util.HashSet(2*_set135.size);
                @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TEndPoint _elem136;
                for (int _i137 = 0; _i137 < _set135.size; ++_i137)
                {
                  _elem136 = new org.apache.iotdb.common.rpc.thrift.TEndPoint();
                  _elem136.read(iprot);
                  struct.confirmedConfigNodeEndPoints.add(_elem136);
                }
                iprot.readSetEnd();
              }
              struct.setConfirmedConfigNodeEndPointsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 13: // CONSENSUS_LOGICAL_TIME_MAP
            if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
              {
                org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin();
                struct.consensusLogicalTimeMap = new java.util.HashMap(2*_map138.size);
                @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TConsensusGroupId _key139;
                long _val140;
                for (int _i141 = 0; _i141 < _map138.size; ++_i141)
                {
                  _key139 = new org.apache.iotdb.common.rpc.thrift.TConsensusGroupId();
                  _key139.read(iprot);
                  _val140 = iprot.readI64();
                  struct.consensusLogicalTimeMap.put(_key139, _val140);
                }
                iprot.readMapEnd();
              }
              struct.setConsensusLogicalTimeMapIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 14: // PIPE_COMPLETED_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list142 = iprot.readListBegin();
                struct.pipeCompletedList = new java.util.ArrayList(_list142.size);
                boolean _elem143;
                for (int _i144 = 0; _i144 < _list142.size; ++_i144)
                {
                  _elem143 = iprot.readBool();
                  struct.pipeCompletedList.add(_elem143);
                }
                iprot.readListEnd();
              }
              struct.setPipeCompletedListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 15: // PIPE_REMAINING_EVENT_COUNT_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list145 = iprot.readListBegin();
                struct.pipeRemainingEventCountList = new java.util.ArrayList(_list145.size);
                long _elem146;
                for (int _i147 = 0; _i147 < _list145.size; ++_i147)
                {
                  _elem146 = iprot.readI64();
                  struct.pipeRemainingEventCountList.add(_elem146);
                }
                iprot.readListEnd();
              }
              struct.setPipeRemainingEventCountListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 16: // PIPE_REMAINING_TIME_LIST
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
                struct.pipeRemainingTimeList = new java.util.ArrayList(_list148.size);
                double _elem149;
                for (int _i150 = 0; _i150 < _list148.size; ++_i150)
                {
                  _elem149 = iprot.readDouble();
                  struct.pipeRemainingTimeList.add(_elem149);
                }
                iprot.readListEnd();
              }
              struct.setPipeRemainingTimeListIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          default:
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
        }
        iprot.readFieldEnd();
      }
      iprot.readStructEnd();

      // check for required fields of primitive type, which can't be checked in the validate method
      if (!struct.isSetHeartbeatTimestamp()) {
        throw new org.apache.thrift.protocol.TProtocolException("Required field 'heartbeatTimestamp' was not found in serialized data! Struct: " + toString());
      }
      struct.validate();
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot, TDataNodeHeartbeatResp struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(HEARTBEAT_TIMESTAMP_FIELD_DESC);
      oprot.writeI64(struct.heartbeatTimestamp);
      oprot.writeFieldEnd();
      if (struct.status != null) {
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
        oprot.writeString(struct.status);
        oprot.writeFieldEnd();
      }
      if (struct.statusReason != null) {
        if (struct.isSetStatusReason()) {
          oprot.writeFieldBegin(STATUS_REASON_FIELD_DESC);
          oprot.writeString(struct.statusReason);
          oprot.writeFieldEnd();
        }
      }
      if (struct.judgedLeaders != null) {
        if (struct.isSetJudgedLeaders()) {
          oprot.writeFieldBegin(JUDGED_LEADERS_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.BOOL, struct.judgedLeaders.size()));
            for (java.util.Map.Entry _iter151 : struct.judgedLeaders.entrySet())
            {
              _iter151.getKey().write(oprot);
              oprot.writeBool(_iter151.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.loadSample != null) {
        if (struct.isSetLoadSample()) {
          oprot.writeFieldBegin(LOAD_SAMPLE_FIELD_DESC);
          struct.loadSample.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.regionSeriesUsageMap != null) {
        if (struct.isSetRegionSeriesUsageMap()) {
          oprot.writeFieldBegin(REGION_SERIES_USAGE_MAP_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, struct.regionSeriesUsageMap.size()));
            for (java.util.Map.Entry _iter152 : struct.regionSeriesUsageMap.entrySet())
            {
              oprot.writeI32(_iter152.getKey());
              oprot.writeI64(_iter152.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.regionDeviceUsageMap != null) {
        if (struct.isSetRegionDeviceUsageMap()) {
          oprot.writeFieldBegin(REGION_DEVICE_USAGE_MAP_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, struct.regionDeviceUsageMap.size()));
            for (java.util.Map.Entry _iter153 : struct.regionDeviceUsageMap.entrySet())
            {
              oprot.writeI32(_iter153.getKey());
              oprot.writeI64(_iter153.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.regionDisk != null) {
        if (struct.isSetRegionDisk()) {
          oprot.writeFieldBegin(REGION_DISK_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, struct.regionDisk.size()));
            for (java.util.Map.Entry _iter154 : struct.regionDisk.entrySet())
            {
              oprot.writeI32(_iter154.getKey());
              oprot.writeI64(_iter154.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.schemaLimitLevel != null) {
        if (struct.isSetSchemaLimitLevel()) {
          oprot.writeFieldBegin(SCHEMA_LIMIT_LEVEL_FIELD_DESC);
          oprot.writeI32(struct.schemaLimitLevel.getValue());
          oprot.writeFieldEnd();
        }
      }
      if (struct.pipeMetaList != null) {
        if (struct.isSetPipeMetaList()) {
          oprot.writeFieldBegin(PIPE_META_LIST_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.pipeMetaList.size()));
            for (java.nio.ByteBuffer _iter155 : struct.pipeMetaList)
            {
              oprot.writeBinary(_iter155);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.activateStatus != null) {
        if (struct.isSetActivateStatus()) {
          oprot.writeFieldBegin(ACTIVATE_STATUS_FIELD_DESC);
          oprot.writeString(struct.activateStatus);
          oprot.writeFieldEnd();
        }
      }
      if (struct.confirmedConfigNodeEndPoints != null) {
        if (struct.isSetConfirmedConfigNodeEndPoints()) {
          oprot.writeFieldBegin(CONFIRMED_CONFIG_NODE_END_POINTS_FIELD_DESC);
          {
            oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.confirmedConfigNodeEndPoints.size()));
            for (org.apache.iotdb.common.rpc.thrift.TEndPoint _iter156 : struct.confirmedConfigNodeEndPoints)
            {
              _iter156.write(oprot);
            }
            oprot.writeSetEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.consensusLogicalTimeMap != null) {
        if (struct.isSetConsensusLogicalTimeMap()) {
          oprot.writeFieldBegin(CONSENSUS_LOGICAL_TIME_MAP_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I64, struct.consensusLogicalTimeMap.size()));
            for (java.util.Map.Entry _iter157 : struct.consensusLogicalTimeMap.entrySet())
            {
              _iter157.getKey().write(oprot);
              oprot.writeI64(_iter157.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.pipeCompletedList != null) {
        if (struct.isSetPipeCompletedList()) {
          oprot.writeFieldBegin(PIPE_COMPLETED_LIST_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, struct.pipeCompletedList.size()));
            for (boolean _iter158 : struct.pipeCompletedList)
            {
              oprot.writeBool(_iter158);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.pipeRemainingEventCountList != null) {
        if (struct.isSetPipeRemainingEventCountList()) {
          oprot.writeFieldBegin(PIPE_REMAINING_EVENT_COUNT_LIST_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.pipeRemainingEventCountList.size()));
            for (long _iter159 : struct.pipeRemainingEventCountList)
            {
              oprot.writeI64(_iter159);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.pipeRemainingTimeList != null) {
        if (struct.isSetPipeRemainingTimeList()) {
          oprot.writeFieldBegin(PIPE_REMAINING_TIME_LIST_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, struct.pipeRemainingTimeList.size()));
            for (double _iter160 : struct.pipeRemainingTimeList)
            {
              oprot.writeDouble(_iter160);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

  private static class TDataNodeHeartbeatRespTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TDataNodeHeartbeatRespTupleScheme getScheme() {
      return new TDataNodeHeartbeatRespTupleScheme();
    }
  }

  private static class TDataNodeHeartbeatRespTupleScheme extends org.apache.thrift.scheme.TupleScheme {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, TDataNodeHeartbeatResp struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeI64(struct.heartbeatTimestamp);
      oprot.writeString(struct.status);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetStatusReason()) {
        optionals.set(0);
      }
      if (struct.isSetJudgedLeaders()) {
        optionals.set(1);
      }
      if (struct.isSetLoadSample()) {
        optionals.set(2);
      }
      if (struct.isSetRegionSeriesUsageMap()) {
        optionals.set(3);
      }
      if (struct.isSetRegionDeviceUsageMap()) {
        optionals.set(4);
      }
      if (struct.isSetRegionDisk()) {
        optionals.set(5);
      }
      if (struct.isSetSchemaLimitLevel()) {
        optionals.set(6);
      }
      if (struct.isSetPipeMetaList()) {
        optionals.set(7);
      }
      if (struct.isSetActivateStatus()) {
        optionals.set(8);
      }
      if (struct.isSetConfirmedConfigNodeEndPoints()) {
        optionals.set(9);
      }
      if (struct.isSetConsensusLogicalTimeMap()) {
        optionals.set(10);
      }
      if (struct.isSetPipeCompletedList()) {
        optionals.set(11);
      }
      if (struct.isSetPipeRemainingEventCountList()) {
        optionals.set(12);
      }
      if (struct.isSetPipeRemainingTimeList()) {
        optionals.set(13);
      }
      oprot.writeBitSet(optionals, 14);
      if (struct.isSetStatusReason()) {
        oprot.writeString(struct.statusReason);
      }
      if (struct.isSetJudgedLeaders()) {
        {
          oprot.writeI32(struct.judgedLeaders.size());
          for (java.util.Map.Entry _iter161 : struct.judgedLeaders.entrySet())
          {
            _iter161.getKey().write(oprot);
            oprot.writeBool(_iter161.getValue());
          }
        }
      }
      if (struct.isSetLoadSample()) {
        struct.loadSample.write(oprot);
      }
      if (struct.isSetRegionSeriesUsageMap()) {
        {
          oprot.writeI32(struct.regionSeriesUsageMap.size());
          for (java.util.Map.Entry _iter162 : struct.regionSeriesUsageMap.entrySet())
          {
            oprot.writeI32(_iter162.getKey());
            oprot.writeI64(_iter162.getValue());
          }
        }
      }
      if (struct.isSetRegionDeviceUsageMap()) {
        {
          oprot.writeI32(struct.regionDeviceUsageMap.size());
          for (java.util.Map.Entry _iter163 : struct.regionDeviceUsageMap.entrySet())
          {
            oprot.writeI32(_iter163.getKey());
            oprot.writeI64(_iter163.getValue());
          }
        }
      }
      if (struct.isSetRegionDisk()) {
        {
          oprot.writeI32(struct.regionDisk.size());
          for (java.util.Map.Entry _iter164 : struct.regionDisk.entrySet())
          {
            oprot.writeI32(_iter164.getKey());
            oprot.writeI64(_iter164.getValue());
          }
        }
      }
      if (struct.isSetSchemaLimitLevel()) {
        oprot.writeI32(struct.schemaLimitLevel.getValue());
      }
      if (struct.isSetPipeMetaList()) {
        {
          oprot.writeI32(struct.pipeMetaList.size());
          for (java.nio.ByteBuffer _iter165 : struct.pipeMetaList)
          {
            oprot.writeBinary(_iter165);
          }
        }
      }
      if (struct.isSetActivateStatus()) {
        oprot.writeString(struct.activateStatus);
      }
      if (struct.isSetConfirmedConfigNodeEndPoints()) {
        {
          oprot.writeI32(struct.confirmedConfigNodeEndPoints.size());
          for (org.apache.iotdb.common.rpc.thrift.TEndPoint _iter166 : struct.confirmedConfigNodeEndPoints)
          {
            _iter166.write(oprot);
          }
        }
      }
      if (struct.isSetConsensusLogicalTimeMap()) {
        {
          oprot.writeI32(struct.consensusLogicalTimeMap.size());
          for (java.util.Map.Entry _iter167 : struct.consensusLogicalTimeMap.entrySet())
          {
            _iter167.getKey().write(oprot);
            oprot.writeI64(_iter167.getValue());
          }
        }
      }
      if (struct.isSetPipeCompletedList()) {
        {
          oprot.writeI32(struct.pipeCompletedList.size());
          for (boolean _iter168 : struct.pipeCompletedList)
          {
            oprot.writeBool(_iter168);
          }
        }
      }
      if (struct.isSetPipeRemainingEventCountList()) {
        {
          oprot.writeI32(struct.pipeRemainingEventCountList.size());
          for (long _iter169 : struct.pipeRemainingEventCountList)
          {
            oprot.writeI64(_iter169);
          }
        }
      }
      if (struct.isSetPipeRemainingTimeList()) {
        {
          oprot.writeI32(struct.pipeRemainingTimeList.size());
          for (double _iter170 : struct.pipeRemainingTimeList)
          {
            oprot.writeDouble(_iter170);
          }
        }
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, TDataNodeHeartbeatResp struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.heartbeatTimestamp = iprot.readI64();
      struct.setHeartbeatTimestampIsSet(true);
      struct.status = iprot.readString();
      struct.setStatusIsSet(true);
      java.util.BitSet incoming = iprot.readBitSet(14);
      if (incoming.get(0)) {
        struct.statusReason = iprot.readString();
        struct.setStatusReasonIsSet(true);
      }
      if (incoming.get(1)) {
        {
          org.apache.thrift.protocol.TMap _map171 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.BOOL); 
          struct.judgedLeaders = new java.util.HashMap(2*_map171.size);
          @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TConsensusGroupId _key172;
          boolean _val173;
          for (int _i174 = 0; _i174 < _map171.size; ++_i174)
          {
            _key172 = new org.apache.iotdb.common.rpc.thrift.TConsensusGroupId();
            _key172.read(iprot);
            _val173 = iprot.readBool();
            struct.judgedLeaders.put(_key172, _val173);
          }
        }
        struct.setJudgedLeadersIsSet(true);
      }
      if (incoming.get(2)) {
        struct.loadSample = new org.apache.iotdb.common.rpc.thrift.TLoadSample();
        struct.loadSample.read(iprot);
        struct.setLoadSampleIsSet(true);
      }
      if (incoming.get(3)) {
        {
          org.apache.thrift.protocol.TMap _map175 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64); 
          struct.regionSeriesUsageMap = new java.util.HashMap(2*_map175.size);
          int _key176;
          long _val177;
          for (int _i178 = 0; _i178 < _map175.size; ++_i178)
          {
            _key176 = iprot.readI32();
            _val177 = iprot.readI64();
            struct.regionSeriesUsageMap.put(_key176, _val177);
          }
        }
        struct.setRegionSeriesUsageMapIsSet(true);
      }
      if (incoming.get(4)) {
        {
          org.apache.thrift.protocol.TMap _map179 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64); 
          struct.regionDeviceUsageMap = new java.util.HashMap(2*_map179.size);
          int _key180;
          long _val181;
          for (int _i182 = 0; _i182 < _map179.size; ++_i182)
          {
            _key180 = iprot.readI32();
            _val181 = iprot.readI64();
            struct.regionDeviceUsageMap.put(_key180, _val181);
          }
        }
        struct.setRegionDeviceUsageMapIsSet(true);
      }
      if (incoming.get(5)) {
        {
          org.apache.thrift.protocol.TMap _map183 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64); 
          struct.regionDisk = new java.util.HashMap(2*_map183.size);
          int _key184;
          long _val185;
          for (int _i186 = 0; _i186 < _map183.size; ++_i186)
          {
            _key184 = iprot.readI32();
            _val185 = iprot.readI64();
            struct.regionDisk.put(_key184, _val185);
          }
        }
        struct.setRegionDiskIsSet(true);
      }
      if (incoming.get(6)) {
        struct.schemaLimitLevel = org.apache.iotdb.mpp.rpc.thrift.TSchemaLimitLevel.findByValue(iprot.readI32());
        struct.setSchemaLimitLevelIsSet(true);
      }
      if (incoming.get(7)) {
        {
          org.apache.thrift.protocol.TList _list187 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
          struct.pipeMetaList = new java.util.ArrayList(_list187.size);
          @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem188;
          for (int _i189 = 0; _i189 < _list187.size; ++_i189)
          {
            _elem188 = iprot.readBinary();
            struct.pipeMetaList.add(_elem188);
          }
        }
        struct.setPipeMetaListIsSet(true);
      }
      if (incoming.get(8)) {
        struct.activateStatus = iprot.readString();
        struct.setActivateStatusIsSet(true);
      }
      if (incoming.get(9)) {
        {
          org.apache.thrift.protocol.TSet _set190 = iprot.readSetBegin(org.apache.thrift.protocol.TType.STRUCT);
          struct.confirmedConfigNodeEndPoints = new java.util.HashSet(2*_set190.size);
          @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TEndPoint _elem191;
          for (int _i192 = 0; _i192 < _set190.size; ++_i192)
          {
            _elem191 = new org.apache.iotdb.common.rpc.thrift.TEndPoint();
            _elem191.read(iprot);
            struct.confirmedConfigNodeEndPoints.add(_elem191);
          }
        }
        struct.setConfirmedConfigNodeEndPointsIsSet(true);
      }
      if (incoming.get(10)) {
        {
          org.apache.thrift.protocol.TMap _map193 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.I64); 
          struct.consensusLogicalTimeMap = new java.util.HashMap(2*_map193.size);
          @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TConsensusGroupId _key194;
          long _val195;
          for (int _i196 = 0; _i196 < _map193.size; ++_i196)
          {
            _key194 = new org.apache.iotdb.common.rpc.thrift.TConsensusGroupId();
            _key194.read(iprot);
            _val195 = iprot.readI64();
            struct.consensusLogicalTimeMap.put(_key194, _val195);
          }
        }
        struct.setConsensusLogicalTimeMapIsSet(true);
      }
      if (incoming.get(11)) {
        {
          org.apache.thrift.protocol.TList _list197 = iprot.readListBegin(org.apache.thrift.protocol.TType.BOOL);
          struct.pipeCompletedList = new java.util.ArrayList(_list197.size);
          boolean _elem198;
          for (int _i199 = 0; _i199 < _list197.size; ++_i199)
          {
            _elem198 = iprot.readBool();
            struct.pipeCompletedList.add(_elem198);
          }
        }
        struct.setPipeCompletedListIsSet(true);
      }
      if (incoming.get(12)) {
        {
          org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
          struct.pipeRemainingEventCountList = new java.util.ArrayList(_list200.size);
          long _elem201;
          for (int _i202 = 0; _i202 < _list200.size; ++_i202)
          {
            _elem201 = iprot.readI64();
            struct.pipeRemainingEventCountList.add(_elem201);
          }
        }
        struct.setPipeRemainingEventCountListIsSet(true);
      }
      if (incoming.get(13)) {
        {
          org.apache.thrift.protocol.TList _list203 = iprot.readListBegin(org.apache.thrift.protocol.TType.DOUBLE);
          struct.pipeRemainingTimeList = new java.util.ArrayList(_list203.size);
          double _elem204;
          for (int _i205 = 0; _i205 < _list203.size; ++_i205)
          {
            _elem204 = iprot.readDouble();
            struct.pipeRemainingTimeList.add(_elem204);
          }
        }
        struct.setPipeRemainingTimeListIsSet(true);
      }
    }
  }

  private static  S scheme(org.apache.thrift.protocol.TProtocol proto) {
    return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy