'Internal method used as get_result_hook for Get operation.'

def __get_indexes_hook(self, rpc):

    self.check_rpc_success(rpc)
    indexes = [self.__adapter.pb_to_index(index) for index in rpc.response.index_list()]
    if rpc.user_data:
        indexes = rpc.user_data(indexes)
    return indexes
