Using uvm_reg_indirect_data for indirect register

Hello,can anyone show me an example of the build function for a block which has a uvm_reg_indirect_data. and how i passing the fields of uvm_reg idx,
uvm_reg reg_a,to configure function