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:
68 package = file_desc_proto.package
69 for message in file_desc_proto.message_type:
71 (name, file_desc_proto) for name in _ExtractSymbols(message, package))
72 for enum in file_desc_proto.enum_type:
74 '.'.join((package, enum.name))] = file_desc_proto
Ddescriptor_pool.py104 def Add(self, file_desc_proto): argument
111 self._internal_db.Add(file_desc_proto)
/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/python/google/protobuf/internal/
Ddescriptor_database_test.py47 file_desc_proto = descriptor_pb2.FileDescriptorProto.FromString(
49 db.Add(file_desc_proto)
51 self.assertEquals(file_desc_proto, db.FindFileByName(
53 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
55 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
57 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
59 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc5469 FileDescriptorProto file_desc_proto; in TEST_F() local
5470 ASSERT_FALSE(file_desc_proto.has_source_code_info()); in TEST_F()
5472 file_desc->CopyTo(&file_desc_proto); in TEST_F()
5473 EXPECT_FALSE(file_desc_proto.has_source_code_info()); in TEST_F()
5479 FileDescriptorProto file_desc_proto; in TEST_F() local
5480 ASSERT_FALSE(file_desc_proto.has_source_code_info()); in TEST_F()
5482 file_desc->CopySourceCodeInfoTo(&file_desc_proto); in TEST_F()
5483 const SourceCodeInfo& info = file_desc_proto.source_code_info(); in TEST_F()