webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
google.protobuf.internal.containers.RepeatedCompositeFieldContainer Class Reference
Inheritance diagram for google.protobuf.internal.containers.RepeatedCompositeFieldContainer:
google.protobuf.internal.containers.BaseContainer

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)
 
- Public Member Functions inherited from google.protobuf.internal.containers.BaseContainer
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)
 

Detailed Description

Simple, list-like container for holding repeated composite fields.

Constructor & Destructor Documentation

◆ __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().

Member Function Documentation

◆ __delitem__()

def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__delitem__ (   self,
  key 
)
Deletes the item at the specified position.

◆ __delslice__()

def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__delslice__ (   self,
  start,
  stop 
)
Deletes the subset of items from between the specified indices.

◆ __eq__()

def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__eq__ (   self,
  other 
)
Compares the current instance with another one.

◆ __getslice__()

def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.__getslice__ (   self,
  start,
  stop 
)
Retrieves the subset of items from between the specified indices.

◆ 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.

◆ 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.

◆ 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.

◆ pop()

def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.pop (   self,
  key = -1 
)
Removes and returns an item at a given index. Similar to list.pop().

◆ remove()

def google.protobuf.internal.containers.RepeatedCompositeFieldContainer.remove (   self,
  elem 
)
Removes an item from the list. Similar to list.remove().

The documentation for this class was generated from the following file: