Home
last modified time | relevance | path

Searched refs:field_desc (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Ddescriptor_pool_test.py438 field_desc = msg_desc.fields_by_name[name]
440 test.assertEqual(name, field_desc.name)
442 test.assertEqual(expected_field_full_name, field_desc.full_name)
443 test.assertEqual(index, field_desc.index)
444 test.assertEqual(self.number, field_desc.number)
445 test.assertEqual(descriptor.FieldDescriptor.TYPE_ENUM, field_desc.type)
447 field_desc.cpp_type)
448 test.assertTrue(field_desc.has_default_value)
450 field_desc.default_value)
451 test.assertEqual(msg_desc, field_desc.containing_type)
[all …]
Dgenerator_test.py302 for field_name, field_desc in desc.fields_by_name.items():
304 self.assertIs(desc.oneofs[0], field_desc.containing_oneof)
306 self.assertIsNone(field_desc.containing_oneof)
Dpython_message.py1105 field_decoder, field_desc = decoders_by_tag.get(tag_bytes, (None, None))
1119 if field_desc:
1120 self._UpdateOneofState(field_desc)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Ddescriptor_pool.py477 for field_index, field_desc in enumerate(desc_proto.field):
478 if field_desc.HasField('oneof_index'):
479 oneof_index = field_desc.oneof_index
587 for field_proto, field_desc in zip(desc_proto.field, main_desc.fields):
588 self._SetFieldType(field_proto, field_desc, nested_package, scope)
599 def _SetFieldType(self, field_proto, field_desc, package, scope): argument
619 field_desc.cpp_type = descriptor.FieldDescriptor.ProtoTypeToCppProtoType(
624 field_desc.message_type = desc
627 field_desc.enum_type = desc
630 field_desc.has_default_value = False
[all …]