class_docstr: Simple, type-checked, list-like container for holding repeated scalars.
class_docstr_tok: ["Simple",",","type-checked",",","list-like","container","for","holding","repeated","scalars","."]
docstr: Sets the item on the specified position.
docstr_tok: ["Sets","the","item","on","the","specified","position","."]
code: def __setitem__(self, key, value):
      """Sets the item on the specified position."""
      if isinstance(key, slice):  # PY3
          if key.step is not None:
              raise ValueError("Extended slices not supported")
          self.__setslice__(key.start, key.stop, value)
      else:
          self._values[key] = self._type_checker.CheckValue(value)
          self._message_listener.Modified()
  
imports: import collections
  import sys
label_desc: Use image node_id 8 for calling the RepeatedScalarFieldContainer obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types