Home
last modified time | relevance | path

Searched refs:file_desc (Results 1 – 16 of 16) sorted by relevance

/third_party/grpc/src/cpp/ext/
Dproto_server_reflection.cc118 const protobuf::FileDescriptor* file_desc = in GetFileByName() local
120 if (file_desc == nullptr) { in GetFileByName()
124 FillFileDescriptorResponse(file_desc, response, &seen_files); in GetFileByName()
135 const protobuf::FileDescriptor* file_desc = in GetFileContainingSymbol() local
137 if (file_desc == nullptr) { in GetFileContainingSymbol()
141 FillFileDescriptorResponse(file_desc, response, &seen_files); in GetFileContainingSymbol()
192 const protobuf::FileDescriptor* file_desc, in FillFileDescriptorResponse() argument
195 if (seen_files->find(file_desc->name()) != seen_files->end()) { in FillFileDescriptorResponse()
198 seen_files->insert(file_desc->name()); in FillFileDescriptorResponse()
202 file_desc->CopyTo(&file_desc_proto); in FillFileDescriptorResponse()
[all …]
Dproto_server_reflection.h67 const protobuf::FileDescriptor* file_desc,
/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py355 def AddFileDescriptor(self, file_desc): argument
356 self._InternalAddFileDescriptor(file_desc)
359 def _InternalAddFileDescriptor(self, file_desc): argument
369 self._AddFileDescriptor(file_desc)
373 for extension in file_desc.extensions_by_name.values():
375 extension.full_name] = file_desc
377 def _AddFileDescriptor(self, file_desc): argument
387 if not isinstance(file_desc, descriptor.FileDescriptor):
389 self._file_descriptors[file_desc.name] = file_desc
815 file_desc = self._file_descriptors[file_proto.name]
[all …]
Dmessage_factory.py116 file_desc = self.pool.FindFileByName(file_name)
117 for desc in file_desc.message_types_by_name.values():
129 for extension in file_desc.extensions_by_name.values():
Dsymbol_database.py178 file_desc = self.pool.FindFileByName(file_name)
179 for msg_desc in file_desc.message_types_by_name.values():
/third_party/grpc/test/cpp/end2end/
Dproto_server_reflection_test.cc79 const protobuf::FileDescriptor* file_desc = service_desc->file(); in CompareService() local
80 if (known_files_.find(file_desc->package() + "/" + file_desc->name()) != in CompareService()
82 EXPECT_EQ(file_desc->DebugString(), in CompareService()
84 known_files_.insert(file_desc->package() + "/" + file_desc->name()); in CompareService()
/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py492 file_desc = descriptor_pb2.FileDescriptorProto(name='some/file.proto')
493 self.pool.Add(file_desc)
494 self.pool.AddSerializedFile(file_desc.SerializeToString())
706 file_desc = pool.FindFileByName(self.name)
707 test.assertEqual(self.name, file_desc.name)
708 test.assertEqual(self.package, file_desc.package)
709 dependencies_names = [f.name for f in file_desc.dependencies]
711 public_dependencies_names = [f.name for f in file_desc.public_dependencies]
714 msg_type.CheckType(test, None, name, file_desc)
722 def CheckType(self, test, msg_desc, name, file_desc): argument
[all …]
Dmessage_test.py2652 file_desc = """
2677 text_format.Parse(file_desc, desc)
/third_party/protobuf/php/tests/
DPhpImplementationTest.php320 $file_desc = $file_desc_set->getFile()[0];
321 $this->assertSame("test_include.proto", $file_desc->getName());
322 $this->assertSame("bar", $file_desc->getPackage());
323 $this->assertSame(0, sizeof($file_desc->getDependency()));
324 $this->assertSame(1, sizeof($file_desc->getMessageType()));
325 $this->assertSame(0, sizeof($file_desc->getEnumType()));
326 $this->assertSame("proto3", $file_desc->getSyntax());
328 $desc = $file_desc->getMessageType()[0];
/third_party/grpc/test/cpp/util/
Dproto_file_parser.cc87 const auto* file_desc = importer_->Import(file_name); in ProtoFileParser() local
88 if (file_desc) { in ProtoFileParser()
89 for (int i = 0; i < file_desc->service_count(); i++) { in ProtoFileParser()
90 service_desc_list_.push_back(file_desc->service(i)); in ProtoFileParser()
91 known_services.insert(file_desc->service(i)->full_name()); in ProtoFileParser()
/third_party/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc7277 const FileDescriptor* file_desc = in TEST_F() local
7280 const Descriptor* a_desc = file_desc->FindMessageTypeByName("A"); in TEST_F()
7288 const EnumDescriptor* e_desc = file_desc->FindEnumTypeByName("Indecision"); in TEST_F()
7296 const ServiceDescriptor* s_desc = file_desc->FindServiceByName("S"); in TEST_F()
7309 const FileDescriptor* file_desc = in TEST_F() local
7313 file_desc->FindExtensionByName("int32_extension"); in TEST_F()
7317 const Descriptor* c_desc = file_desc->FindMessageTypeByName("C"); in TEST_F()
7336 const FileDescriptor* file_desc = in TEST_F() local
7347 EXPECT_TRUE(file_desc->GetSourceLocation(vpath, &loc)); in TEST_F()
7351 EXPECT_FALSE(file_desc->GetSourceLocation(vunint, &loc)); in TEST_F()
[all …]
/third_party/ltp/testcases/kernel/sched/sched_stress/
Dsched_tc6.c262 int file_desc; in open_file() local
264 if ((file_desc = open(file, open_mode)) < 0) in open_file()
266 return (file_desc); in open_file()
/third_party/node/tools/gyp/pylib/gyp/generator/
Dmake.py1850 file_desc = "shared library"
1852 file_desc = "static library"
1854 file_desc = "executable"
1878 comment="Copy this to the %s output path." % file_desc,
1886 comment="Short alias for building this %s." % file_desc,
1893 comment='Add %s to "all" target.' % file_desc,
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
Dmake.py1662 file_desc = 'shared library'
1664 file_desc = 'static library'
1666 file_desc = 'executable'
1682 file_desc, part_of_all=part_of_all)
1687 file_desc, phony = True)
1690 comment = 'Add %s to "all" target.' % file_desc,
/third_party/libwebsockets/lib/plat/windows/
Dwindows-spawn.c427 lsp->stdwsi[n]->file_desc = 1; in lws_spawn_piped()
/third_party/libwebsockets/lib/core-net/
Dprivate-lib-core-net.h798 unsigned int file_desc:1; member