def _enqueue_new_element_delta(self, marshall_element, delta_type, last_index=None, element_width=None, element_height=None):
    'Create NewElement delta, fill it, and enqueue it.\n\n        Parameters\n        ----------\n        marshall_element : callable\n            Function which sets the fields for a NewElement protobuf.\n        element_width : int or None\n            Desired width for the element\n        element_height : int or None\n            Desired height for the element\n\n        Returns\n        -------\n        DeltaGenerator\n            A DeltaGenerator that can be used to modify the newly-created\n            element.\n\n        '
    rv = None
    msg = ForwardMsg_pb2.ForwardMsg()
    rv = marshall_element(msg.delta.new_element)
    msg_was_enqueued = False
    if (self._container and self._cursor):
        msg.metadata.parent_block.container = self._container
        msg.metadata.parent_block.path[:] = self._cursor.path
        msg.metadata.delta_id = self._cursor.index
        if (element_width is not None):
            msg.metadata.element_dimension_spec.width = element_width
        if (element_height is not None):
            msg.metadata.element_dimension_spec.height = element_height
        _enqueue_message(msg)
        msg_was_enqueued = True
    if msg_was_enqueued:
        output_dg = DeltaGenerator(container=self._container, cursor=self._cursor.get_locked_cursor(delta_type=delta_type, last_index=last_index))
    else:
        output_dg = self
    return _value_or_dg(rv, output_dg)
Create NewElement delta, fill it, and enqueue it.

Parameters
----------
marshall_element : callable
    Function which sets the fields for a NewElement protobuf.
element_width : int or None
    Desired width for the element
element_height : int or None
    Desired height for the element

Returns
-------
DeltaGenerator
    A DeltaGenerator that can be used to modify the newly-created
    element.
def _enqueue_new_element_delta(self, marshall_element, delta_type, last_index=None, element_width=None, element_height=None):
    'Create NewElement delta, fill it, and enqueue it.\n\n        Parameters\n        ----------\n        marshall_element : callable\n            Function which sets the fields for a NewElement protobuf.\n        element_width : int or None\n            Desired width for the element\n        element_height : int or None\n            Desired height for the element\n\n        Returns\n        -------\n        DeltaGenerator\n            A DeltaGenerator that can be used to modify the newly-created\n            element.\n\n        '
    rv = None
    msg = ForwardMsg_pb2.ForwardMsg()
    rv = marshall_element(msg.delta.new_element)
    msg_was_enqueued = False
    if (self._container and self._cursor):
        msg.metadata.parent_block.container = self._container
        msg.metadata.parent_block.path[:] = self._cursor.path
        msg.metadata.delta_id = self._cursor.index
        if (element_width is not None):
            msg.metadata.element_dimension_spec.width = element_width
        if (element_height is not None):
            msg.metadata.element_dimension_spec.height = element_height
        _enqueue_message(msg)
        msg_was_enqueued = True
    if msg_was_enqueued:
        output_dg = DeltaGenerator(container=self._container, cursor=self._cursor.get_locked_cursor(delta_type=delta_type, last_index=last_index))
    else:
        output_dg = self
    return _value_or_dg(rv, output_dg)