Searched refs:file_desc_proto (Results 1 – 6 of 6) sorted by relevance
/external/protobuf/python/google/protobuf/ |
D | descriptor_database.py | 51 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 …]
|
D | descriptor_pool.py | 111 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/ |
D | descriptor_database_test.py | 51 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/grpc-grpc/src/cpp/ext/ |
D | proto_server_reflection.cc | 201 protobuf::FileDescriptorProto file_desc_proto; in FillFileDescriptorResponse() local 203 file_desc->CopyTo(&file_desc_proto); in FillFileDescriptorResponse() 204 file_desc_proto.SerializeToString(&data); in FillFileDescriptorResponse()
|
/external/grpc-grpc/test/cpp/util/ |
D | proto_reflection_descriptor_database.cc | 293 protobuf::FileDescriptorProto file_desc_proto; in ParseFileDescriptorProtoResponse() local 294 file_desc_proto.ParseFromString(byte_fd_proto); in ParseFileDescriptorProtoResponse() 295 return file_desc_proto; in ParseFileDescriptorProtoResponse()
|
/external/protobuf/src/google/protobuf/ |
D | descriptor_unittest.cc | 6581 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()
|