Public Member Functions | |
def | __delitem__ (self, key) |
def | __delslice__ (self, start, stop) |
def | __eq__ (self, other) |
def | __getslice__ (self, start, stop) |
def | __init__ (self, message_listener, type_checker) |
def | __setitem__ (self, key, value) |
def | __setslice__ (self, start, stop, values) |
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) |
Private Attributes | |
_type_checker | |
Static Private Attributes | |
list | __slots__ = ['_type_checker'] |
Simple, type-checked, list-like container for holding repeated scalars.
Definition at line 236 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__init__ | ( | self, | |
message_listener, | |||
type_checker | |||
) |
Args: message_listener: A MessageListener implementation. The RepeatedScalarFieldContainer will call this object's Modified() method when it is modified. type_checker: A type_checkers.ValueChecker instance to run on elements inserted into this container.
Definition at line 243 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__delitem__ | ( | self, | |
key | |||
) |
Deletes the item at the specified position.
Definition at line 326 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__delslice__ | ( | self, | |
start, | |||
stop | |||
) |
Deletes the subset of items from between the specified indices.
Definition at line 331 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__eq__ | ( | self, | |
other | |||
) |
Compares the current instance with another one.
Definition at line 336 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__getslice__ | ( | self, | |
start, | |||
stop | |||
) |
Retrieves the subset of items from between the specified indices.
Definition at line 314 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__setitem__ | ( | self, | |
key, | |||
value | |||
) |
Sets the item on the specified position.
Definition at line 304 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__setslice__ | ( | self, | |
start, | |||
stop, | |||
values | |||
) |
Sets the subset of items from between the specified indices.
Definition at line 318 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.append | ( | self, | |
value | |||
) |
Appends an item to the list. Similar to list.append().
Definition at line 255 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.extend | ( | self, | |
elem_seq | |||
) |
Extends by appending the given iterable. Similar to list.extend().
Definition at line 267 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.insert | ( | self, | |
key, | |||
value | |||
) |
Inserts the item at the specified position. Similar to list.insert().
Definition at line 261 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.MergeFrom | ( | self, | |
other | |||
) |
Appends the contents of another repeated field of the same type to this one. We do not check the types of the individual fields.
Definition at line 286 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.pop | ( | self, | |
key = -1 |
|||
) |
Removes and returns an item at a given index. Similar to list.pop().
Definition at line 298 of file containers.py.
def google.protobuf.internal.containers.RepeatedScalarFieldContainer.remove | ( | self, | |
elem | |||
) |
Removes an item from the list. Similar to list.remove().
Definition at line 293 of file containers.py.
|
staticprivate |
Definition at line 241 of file containers.py.
|
private |
Definition at line 253 of file containers.py.