|
def | __delitem__ (self, key) |
|
def | __delslice__ (self, start, stop) |
|
def | __eq__ (self, other) |
|
def | __getslice__ (self, start, stop) |
|
def | __init__ (self, message_listener, message_descriptor) |
|
def | add (self, **kwargs) |
|
def | append (self, value) |
|
def | extend (self, elem_seq) |
|
def | insert (self, key, value) |
|
def | MergeFrom (self, other) |
|
def | pop (self, key=-1) |
|
def | remove (self, elem) |
|
def | __getitem__ (self, key) |
|
def | __hash__ (self) |
|
def | __init__ (self, message_listener) |
|
def | __len__ (self) |
|
def | __ne__ (self, other) |
|
def | __repr__ (self) |
|
def | sort (self, *args, **kwargs) |
|
Simple, list-like container for holding repeated composite fields.
Definition at line 347 of file containers.py.
◆ __init__()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__init__ |
( |
|
self, |
|
|
|
message_listener, |
|
|
|
message_descriptor |
|
) |
| |
Note that we pass in a descriptor instead of the generated directly,
since at the time we construct a _RepeatedCompositeFieldContainer we
haven't yet necessarily initialized the type that will be contained in the
container.
Args:
message_listener: A MessageListener implementation.
The RepeatedCompositeFieldContainer will call this object's
Modified() method when it is modified.
message_descriptor: A Descriptor instance describing the protocol type
that should be present in this container. We'll use the
_concrete_class field of this descriptor when the client calls add().
Definition at line 354 of file containers.py.
◆ __delitem__()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__delitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Deletes the item at the specified position.
Definition at line 436 of file containers.py.
◆ __delslice__()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__delslice__ |
( |
|
self, |
|
|
|
start, |
|
|
|
stop |
|
) |
| |
Deletes the subset of items from between the specified indices.
Definition at line 441 of file containers.py.
◆ __eq__()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Compares the current instance with another one.
Definition at line 446 of file containers.py.
◆ __getslice__()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__getslice__ |
( |
|
self, |
|
|
|
start, |
|
|
|
stop |
|
) |
| |
Retrieves the subset of items from between the specified indices.
Definition at line 432 of file containers.py.
◆ add()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.add |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
Adds a new element at the end of the list and returns it. Keyword
arguments may be used to initialize the element.
Definition at line 372 of file containers.py.
◆ append()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.append |
( |
|
self, |
|
|
|
value |
|
) |
| |
Appends one element by copying the message.
Definition at line 383 of file containers.py.
◆ extend()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.extend |
( |
|
self, |
|
|
|
elem_seq |
|
) |
| |
Extends by appending the given sequence of elements of the same type
as this one, copying each individual message.
Definition at line 401 of file containers.py.
◆ insert()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.insert |
( |
|
self, |
|
|
|
key, |
|
|
|
value |
|
) |
| |
Inserts the item at the specified position by copying.
Definition at line 392 of file containers.py.
◆ MergeFrom()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.MergeFrom |
( |
|
self, |
|
|
|
other |
|
) |
| |
Appends the contents of another repeated field of the same type to this
one, copying each individual message.
Definition at line 415 of file containers.py.
◆ pop()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.pop |
( |
|
self, |
|
|
|
key = -1 |
|
) |
| |
Removes and returns an item at a given index. Similar to list.pop().
Definition at line 426 of file containers.py.
◆ remove()
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.remove |
( |
|
self, |
|
|
|
elem |
|
) |
| |
Removes an item from the list. Similar to list.remove().
Definition at line 421 of file containers.py.
◆ __slots__
list google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__slots__ = ['_message_descriptor'] |
|
staticprivate |
◆ _message_descriptor
google.protobuf.internal.containers.RepeatedCompositeFieldContainer._message_descriptor |
|
private |
◆ _values
google.protobuf.internal.containers.RepeatedCompositeFieldContainer._values |
|
private |
The documentation for this class was generated from the following file: