def _get_message(self, get_frame, auto_decode):
        """Get and return a message using a Basic.Get frame.

        :param Basic.Get get_frame:
        :param bool auto_decode: Auto-decode strings when possible.

        :rtype: Message
        """
        message_uuid = self._channel.rpc.register_request(
            get_frame.valid_responses + ['ContentHeader', 'ContentBody']
        )
        try:
            self._channel.write_frame(get_frame)
            get_ok_frame = self._channel.rpc.get_request(message_uuid,
                                                         raw=True,
                                                         multiple=True)
            if isinstance(get_ok_frame, specification.Basic.GetEmpty):
                return None
            content_header = self._channel.rpc.get_request(message_uuid,
                                                           raw=True,
                                                           multiple=True)
            body = self._get_content_body(message_uuid,
                                          content_header.body_size)
        finally:
            self._channel.rpc.remove(message_uuid)
        return Message(channel=self._channel,
                       body=body,
                       method=dict(get_ok_frame),
                       properties=dict(content_header.properties),
                       auto_decode=auto_decode)
def _get_message ( self , get_frame , auto_decode ) : message_uuid = self . _channel . rpc . register_request ( get_frame . valid_responses + [ 'ContentHeader' , 'ContentBody' ] ) try : self . _channel . write_frame ( get_frame ) get_ok_frame = self . _channel . rpc . get_request ( message_uuid , raw = True , multiple = True ) if isinstance ( get_ok_frame , specification . Basic . GetEmpty ) : return None content_header = self . _channel . rpc . get_request ( message_uuid , raw = True , multiple = True ) body = self . _get_content_body ( message_uuid , content_header . body_size ) finally : self . _channel . rpc . remove ( message_uuid ) return Message ( channel = self . _channel , body = body , method = dict ( get_ok_frame ) , properties = dict ( content_header . properties ) , auto_decode = auto_decode )
Get and return a message using a Basic.Get frame.

        :param Basic.Get get_frame:
        :param bool auto_decode: Auto-decode strings when possible.

        :rtype: Message