Home
last modified time | relevance | path

Searched refs:file_desc_proto (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/python/google/protobuf/
Ddescriptor_database.py51 def Add(self, file_desc_proto): argument
61 proto_name = file_desc_proto.name
63 self._file_desc_protos_by_file[proto_name] = file_desc_proto
64 elif self._file_desc_protos_by_file[proto_name] != file_desc_proto:
69 package = file_desc_proto.package
70 for message in file_desc_proto.message_type:
72 (name, file_desc_proto) for name in _ExtractSymbols(message, package))
73 for enum in file_desc_proto.enum_type:
75 '.'.join((package, enum.name))] = file_desc_proto
76 for extension in file_desc_proto.extension:
[all …]
Ddescriptor_pool.py111 def Add(self, file_desc_proto): argument
118 self._internal_db.Add(file_desc_proto)
130 file_desc_proto = descriptor_pb2.FileDescriptorProto.FromString(
132 self.Add(file_desc_proto)
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_database_test.py51 file_desc_proto = descriptor_pb2.FileDescriptorProto.FromString(
53 db.Add(file_desc_proto)
55 self.assertEqual(file_desc_proto, db.FindFileByName(
57 self.assertEqual(file_desc_proto, db.FindFileContainingSymbol(
59 self.assertEqual(file_desc_proto, db.FindFileContainingSymbol(
61 self.assertEqual(file_desc_proto, db.FindFileContainingSymbol(
63 self.assertEqual(file_desc_proto, db.FindFileContainingSymbol(
65 self.assertEqual(file_desc_proto, db.FindFileContainingSymbol(
/external/nanopb-c/generator/google/protobuf/
Ddescriptor_database.py43 def Add(self, file_desc_proto): argument
50 self._file_desc_protos_by_file[file_desc_proto.name] = file_desc_proto
51 package = file_desc_proto.package
52 for message in file_desc_proto.message_type:
54 (name, file_desc_proto) for name in _ExtractSymbols(message, package))
55 for enum in file_desc_proto.enum_type:
57 '.'.join((package, enum.name))] = file_desc_proto
Ddescriptor_pool.py83 def Add(self, file_desc_proto): argument
90 self._internal_db.Add(file_desc_proto)
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc6581 FileDescriptorProto file_desc_proto; in TEST_F() local
6582 ASSERT_FALSE(file_desc_proto.has_source_code_info()); in TEST_F()
6584 file_desc->CopyTo(&file_desc_proto); in TEST_F()
6585 EXPECT_FALSE(file_desc_proto.has_source_code_info()); in TEST_F()
6591 FileDescriptorProto file_desc_proto; in TEST_F() local
6592 ASSERT_FALSE(file_desc_proto.has_source_code_info()); in TEST_F()
6594 file_desc->CopySourceCodeInfoTo(&file_desc_proto); in TEST_F()
6595 const SourceCodeInfo& info = file_desc_proto.source_code_info(); in TEST_F()