async def get_messages(self, name):
        """Get stored messages for a service.

        Args:
            name (string): The name of the service to get messages from.

        Returns:
            list(ServiceMessage): A list of the messages stored for this service
        """

        resp = await self.send_command(OPERATIONS.CMD_QUERY_MESSAGES, {'name': name},
                                       MESSAGES.QueryMessagesResponse, timeout=5.0)

        return [states.ServiceMessage.FromDictionary(x) for x in resp]
Get stored messages for a service.

        Args:
            name (string): The name of the service to get messages from.

        Returns:
            list(ServiceMessage): A list of the messages stored for this service