Home
last modified time | relevance | path

Searched refs:WhichOneof (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/python/google/protobuf/internal/
Dmessage_test.py568 self.assertRaises(ValueError, m.WhichOneof, 'no_such_oneof_field')
572 self.assertIs(None, m.WhichOneof('oneof_field'))
575 self.assertEqual('oneof_uint32', m.WhichOneof('oneof_field'))
579 self.assertEqual('oneof_string', m.WhichOneof('oneof_field'))
584 self.assertEqual('oneof_nested_message', m.WhichOneof('oneof_field'))
589 self.assertEqual('oneof_bytes', m.WhichOneof('oneof_field'))
598 self.assertEqual('oneof_uint32', m.WhichOneof('oneof_field'))
617 self.assertIs(None, m.WhichOneof('oneof_field'))
625 self.assertIs(None, m.WhichOneof('oneof_field'))
635 self.assertEqual('oneof_uint32', m.WhichOneof('oneof_field'))
[all …]
Dpython_message.py1006 def WhichOneof(self, oneof_name): function
1020 cls.WhichOneof = WhichOneof
Dtext_format_test.py595 self.assertEqual('oneof_uint32', m2.WhichOneof('oneof_field'))
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc1456 static PyObject* WhichOneof(CMessage* self, PyObject* arg) { in CheckAndGetInteger() function
2183 { "WhichOneof", (PyCFunction)WhichOneof, METH_O, in CheckAndGetInteger()
/external/protobuf/
DCHANGES.txt16 * Fixed WhichOneof() to work with de-serialized protobuf messages.