<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_protocols(self, device):
 """Returns a list of available protocols for the specified device."""

        return self._reg.device_builder(device, self._rv).protocols