'Declare queue.'

def queue_declare(self, queue=None, passive=False, **kwargs):

    queue = (queue or (u'amq.gen-%s' % uuid()))
    if (passive and (not self._has_queue(queue, **kwargs))):
        raise ChannelError(u'NOT_FOUND    -    no    queue    {0!r}    in    vhost    {1!r}'.format(queue, (self.connection.client.virtual_host or u'/')), (50, 10), u'Channel.queue_declare', u'404')
    else:
        self._new_queue(queue, **kwargs)
    return queue_declare_ok_t(queue, self._size(queue), 0)
