webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self, message_listener, message_descriptor) |
def | add (self, kwargs) |
def | extend (self, elem_seq) |
def | MergeFrom (self, other) |
def | remove (self, elem) |
def | pop (self, key=-1) |
def | __getslice__ (self, start, stop) |
def | __delitem__ (self, key) |
def | __delslice__ (self, start, stop) |
def | __eq__ (self, other) |
![]() | |
def | __init__ (self, message_listener) |
def | __getitem__ (self, key) |
def | __len__ (self) |
def | __ne__ (self, other) |
def | __hash__ (self) |
def | __repr__ (self) |
def | sort (self, args, kwargs) |
Simple, list-like container for holding repeated composite fields.
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().
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__delitem__ | ( | self, | |
key | |||
) |
Deletes the item at the specified position.
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__delslice__ | ( | self, | |
start, | |||
stop | |||
) |
Deletes the subset of items from between the specified indices.
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__eq__ | ( | self, | |
other | |||
) |
Compares the current instance with another one.
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__getslice__ | ( | self, | |
start, | |||
stop | |||
) |
Retrieves the subset of items from between the specified indices.
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.
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.
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.
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.pop | ( | self, | |
key = -1 |
|||
) |
Removes and returns an item at a given index. Similar to list.pop().
def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.remove | ( | self, | |
elem | |||
) |
Removes an item from the list. Similar to list.remove().