public static BalanceResponse toBalanceResponse(MasterProtos.BalanceResponse response) {
    return BalanceResponse.newBuilder()
      .setBalancerRan(response.hasBalancerRan() && response.getBalancerRan())
      .setMovesCalculated(response.hasMovesCalculated() ? response.getMovesExecuted() : 0)
      .setMovesExecuted(response.hasMovesExecuted() ? response.getMovesExecuted() : 0).build();
  }
Convert {@link ClearSlowLogResponses} to boolean
@param clearSlowLogResponses Clear slowlog response protobuf instance
@return boolean representing clear slowlog response
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java