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

    boolean this_present_serverName = true && this.isSetServerName();
    boolean that_present_serverName = true && that.isSetServerName();
    if (this_present_serverName || that_present_serverName) {
      if (!(this_present_serverName && that_present_serverName))
        return false;
      if (!this.serverName.equals(that.serverName))
        return false;
    }

    boolean this_present_regionInfo = true && this.isSetRegionInfo();
    boolean that_present_regionInfo = true && that.isSetRegionInfo();
    if (this_present_regionInfo || that_present_regionInfo) {
      if (!(this_present_regionInfo && that_present_regionInfo))
        return false;
      if (!this.regionInfo.equals(that.regionInfo))
        return false;
    }

    return true;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java