code: def Modified(self):
      
      try:
        self._parent_message_weakref._UpdateOneofState(self._field)
        super(_OneofListener, self).Modified()
      except ReferenceError:
        pass
docs: Also updates the state of the containing oneof in the parent message.