@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMemstoreLoad()) { hash = (37 * hash) + MEMSTORELOAD_FIELD_NUMBER; hash = (53 * hash) + getMemstoreLoad(); } if (hasHeapOccupancy()) { hash = (37 * hash) + HEAPOCCUPANCY_FIELD_NUMBER; hash = (53 * hash) + getHeapOccupancy(); } if (hasCompactionPressure()) { hash = (37 * hash) + COMPACTIONPRESSURE_FIELD_NUMBER; hash = (53 * hash) + getCompactionPressure(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats) obj; boolean result = true; result = result && (hasMemstoreLoad() == other.hasMemstoreLoad()); if (hasMemstoreLoad()) { result = result && (getMemstoreLoad() == other.getMemstoreLoad()); } result = result && (hasHeapOccupancy() == other.hasHeapOccupancy()); if (hasHeapOccupancy()) { result = result && (getHeapOccupancy() == other.getHeapOccupancy()); } result = result && (hasCompactionPressure() == other.hasCompactionPressure()); if (hasCompactionPressure()) { result = result && (getCompactionPressure() == other.getCompactionPressure()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats other) { if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance()) return this; if (other.hasMemstoreLoad()) { setMemstoreLoad(other.getMemstoreLoad()); } if (other.hasHeapOccupancy()) { setHeapOccupancy(other.getHeapOccupancy()); } if (other.hasCompactionPressure()) { setCompactionPressure(other.getCompactionPressure()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }