Public Member Functions | Private Attributes | Static Private Attributes | List of all members
google.protobuf.internal.containers.RepeatedScalarFieldContainer Class Reference
Inheritance diagram for google.protobuf.internal.containers.RepeatedScalarFieldContainer:
Inheritance graph
[legend]

Public Member Functions

def __delitem__ (self, key)
 
def __delitem__ (self, key)
 
def __delslice__ (self, start, stop)
 
def __delslice__ (self, start, stop)
 
def __eq__ (self, other)
 
def __eq__ (self, other)
 
def __getslice__ (self, start, stop)
 
def __getslice__ (self, start, stop)
 
def __init__ (self, message_listener, type_checker)
 
def __init__ (self, message_listener, type_checker)
 
def __setitem__ (self, key, value)
 
def __setitem__ (self, key, value)
 
def __setslice__ (self, start, stop, values)
 
def __setslice__ (self, start, stop, values)
 
def append (self, value)
 
def append (self, value)
 
def extend (self, elem_seq)
 
def extend (self, elem_seq)
 
def insert (self, key, value)
 
def insert (self, key, value)
 
def MergeFrom (self, other)
 
def MergeFrom (self, other)
 
def pop (self, key=-1)
 
def pop (self, key=-1)
 
def remove (self, elem)
 
def remove (self, elem)
 
- Public Member Functions inherited from google.protobuf.internal.containers.BaseContainer
def __getitem__ (self, key)
 
def __getitem__ (self, key)
 
def __hash__ (self)
 
def __hash__ (self)
 
def __init__ (self, message_listener)
 
def __init__ (self, message_listener)
 
def __len__ (self)
 
def __len__ (self)
 
def __ne__ (self, other)
 
def __ne__ (self, other)
 
def __repr__ (self)
 
def __repr__ (self)
 
def reverse (self)
 
def sort (self, *args, **kwargs)
 
def sort (self, *args, **kwargs)
 

Private Attributes

 _type_checker
 

Static Private Attributes

list __slots__ = ['_type_checker']
 

Detailed Description

Simple, type-checked, list-like container for holding repeated scalars.

Definition at line 236 of file bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ __init__() [2/2]

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 105 of file protobuf/python/google/protobuf/internal/containers.py.

Member Function Documentation

◆ __delitem__() [1/2]

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

Definition at line 188 of file protobuf/python/google/protobuf/internal/containers.py.

◆ __delitem__() [2/2]

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

Definition at line 326 of file bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ __delslice__() [1/2]

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

Definition at line 193 of file protobuf/python/google/protobuf/internal/containers.py.

◆ __delslice__() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ __eq__() [1/2]

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

Definition at line 198 of file protobuf/python/google/protobuf/internal/containers.py.

◆ __eq__() [2/2]

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

Definition at line 336 of file bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ __getslice__() [1/2]

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

Definition at line 176 of file protobuf/python/google/protobuf/internal/containers.py.

◆ __getslice__() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ __setitem__() [1/2]

def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__setitem__ (   self,
  key,
  value 
)
Sets the item on the specified position.

Definition at line 166 of file protobuf/python/google/protobuf/internal/containers.py.

◆ __setitem__() [2/2]

def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__setitem__ (   self,
  key,
  value 
)
Sets the item on the specified position.

Definition at line 304 of file bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ __setslice__() [1/2]

def google.protobuf.internal.containers.RepeatedScalarFieldContainer.__setslice__ (   self,
  start,
  stop,
  values 
)
Sets the subset of items from between the specified indices.

Definition at line 180 of file protobuf/python/google/protobuf/internal/containers.py.

◆ __setslice__() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ append() [1/2]

def google.protobuf.internal.containers.RepeatedScalarFieldContainer.append (   self,
  value 
)
Appends an item to the list. Similar to list.append().

Definition at line 117 of file protobuf/python/google/protobuf/internal/containers.py.

◆ append() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ extend() [1/2]

def google.protobuf.internal.containers.RepeatedScalarFieldContainer.extend (   self,
  elem_seq 
)
Extends by appending the given iterable. Similar to list.extend().

Definition at line 129 of file protobuf/python/google/protobuf/internal/containers.py.

◆ extend() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ insert() [1/2]

def google.protobuf.internal.containers.RepeatedScalarFieldContainer.insert (   self,
  key,
  value 
)
Inserts the item at the specified position. Similar to list.insert().

Definition at line 123 of file protobuf/python/google/protobuf/internal/containers.py.

◆ insert() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ MergeFrom() [1/2]

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 148 of file protobuf/python/google/protobuf/internal/containers.py.

◆ MergeFrom() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ pop() [1/2]

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 160 of file protobuf/python/google/protobuf/internal/containers.py.

◆ pop() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

◆ remove() [1/2]

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

Definition at line 155 of file protobuf/python/google/protobuf/internal/containers.py.

◆ remove() [2/2]

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 bloaty/third_party/protobuf/python/google/protobuf/internal/containers.py.

Member Data Documentation

◆ __slots__

list google.protobuf.internal.containers.RepeatedScalarFieldContainer.__slots__ = ['_type_checker']
staticprivate

◆ _type_checker

google.protobuf.internal.containers.RepeatedScalarFieldContainer._type_checker
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:26