Home
last modified time | relevance | path

Searched refs:FileDescriptor (Results 1 – 25 of 237) sorted by relevance

12345678910

/third_party/grpc/src/csharp/Grpc.Reflection/
DSymbolRegistry.cs26 private readonly Dictionary<string, FileDescriptor> filesByName;
27 private readonly Dictionary<string, FileDescriptor> filesBySymbol;
29 …private SymbolRegistry(Dictionary<string, FileDescriptor> filesByName, Dictionary<string, FileDesc… in SymbolRegistry()
31 this.filesByName = new Dictionary<string, FileDescriptor>(filesByName); in SymbolRegistry()
32 this.filesBySymbol = new Dictionary<string, FileDescriptor>(filesBySymbol); in SymbolRegistry()
40 public static SymbolRegistry FromFiles(IEnumerable<FileDescriptor> fileDescriptors) in FromFiles()
54 public FileDescriptor FileByName(string filename) in FileByName()
56 FileDescriptor file; in FileByName()
64 public FileDescriptor FileContainingSymbol(string symbol) in FileContainingSymbol()
66 FileDescriptor file; in FileContainingSymbol()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DFileDescriptor.cs69 public sealed class FileDescriptor : IDescriptor class
72 static FileDescriptor() in FileDescriptor() method in Google.Protobuf.Reflection.FileDescriptor
83 …private FileDescriptor(ByteString descriptorData, FileDescriptorProto proto, IEnumerable<FileDescr… in FileDescriptor() method in Google.Protobuf.Reflection.FileDescriptor
88 Dependencies = new ReadOnlyCollection<FileDescriptor>(dependencies.ToList()); in FileDescriptor()
218 …ate static IList<FileDescriptor> DeterminePublicDependencies(FileDescriptor @this, FileDescriptorP…
221 var publicDependencies = new List<FileDescriptor>();
230 FileDescriptor file;
244 return new ReadOnlyCollection<FileDescriptor>(publicDependencies);
294 public IList<FileDescriptor> Dependencies { get; }
299 public IList<FileDescriptor> PublicDependencies { get; }
[all …]
DDescriptorPool.cs54 private readonly HashSet<FileDescriptor> dependencies;
56 internal DescriptorPool(IEnumerable<FileDescriptor> dependencyFiles) in DescriptorPool()
58 dependencies = new HashSet<FileDescriptor>(); in DescriptorPool()
65 foreach (FileDescriptor dependency in dependencyFiles) in DescriptorPool()
71 private void ImportPublicDependencies(FileDescriptor file) in ImportPublicDependencies()
73 foreach (FileDescriptor dependency in file.PublicDependencies) in ImportPublicDependencies()
101 foreach (FileDescriptor dependency in dependencies)
120 internal void AddPackage(string fullName, FileDescriptor file) in AddPackage()
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_file.cc89 bool FileContainsEnums(const FileDescriptor* file) { in FileContainsEnums()
103 bool FileContainsExtensions(const FileDescriptor* file) { in FileContainsExtensions()
118 const FileDescriptor* file, in PruneFileAndDepsMarkingAsVisited()
119 std::vector<const FileDescriptor*>* files, in PruneFileAndDepsMarkingAsVisited()
120 std::set<const FileDescriptor*>* files_visited) { in PruneFileAndDepsMarkingAsVisited()
121 std::vector<const FileDescriptor*>::iterator iter = in PruneFileAndDepsMarkingAsVisited()
134 const FileDescriptor* file, in CollectMinimalFileDepsContainingExtensionsWorker()
135 std::vector<const FileDescriptor*>* files, in CollectMinimalFileDepsContainingExtensionsWorker()
136 std::set<const FileDescriptor*>* files_visited) { in CollectMinimalFileDepsContainingExtensionsWorker()
145 const FileDescriptor* dep = file->dependency(i); in CollectMinimalFileDepsContainingExtensionsWorker()
[all …]
Dobjectivec_helpers.h77 string PROTOC_EXPORT FileClassPrefix(const FileDescriptor* file);
82 string PROTOC_EXPORT FilePath(const FileDescriptor* file);
85 string PROTOC_EXPORT FilePathBasename(const FileDescriptor* file);
90 string PROTOC_EXPORT FileClassName(const FileDescriptor* file);
130 inline bool HasPreservingUnknownEnumSemantics(const FileDescriptor* file) { in HasPreservingUnknownEnumSemantics()
131 return file->syntax() == FileDescriptor::SYNTAX_PROTO3; in HasPreservingUnknownEnumSemantics()
165 const FileDescriptor* file = NULL,
178 const FileDescriptor* sourceFile = descriptor->file();
233 IsProtobufLibraryBundledProtoFile(const FileDescriptor* file);
239 ValidateObjCClassPrefixes(const std::vector<const FileDescriptor*>& files,
[all …]
/third_party/protobuf/src/google/protobuf/
Ddescriptor.h90 class FileDescriptor; variable
206 void SetLazy(StringPiece name, const FileDescriptor* file);
224 const FileDescriptor* file_;
252 const FileDescriptor* file() const;
528 const FileDescriptor* file_;
571 friend class FileDescriptor; variable
664 const FileDescriptor* file() const; // File in which this field was defined.
872 const FileDescriptor* file_;
922 friend class FileDescriptor; variable
945 const FileDescriptor* file() const;
[all …]
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_name_resolver.h44 class FileDescriptor; variable
62 std::string GetFileClassName(const FileDescriptor* file, bool immutable);
64 std::string GetFileImmutableClassName(const FileDescriptor* file);
67 std::string GetFileDefaultImmutableClassName(const FileDescriptor* file);
71 bool HasConflictingClassName(const FileDescriptor* file,
79 std::string GetDescriptorClassName(const FileDescriptor* file);
85 std::string GetClassName(const FileDescriptor* descriptor, bool immutable);
110 const FileDescriptor* file, bool immutable,
114 const FileDescriptor* file, bool immutable);
116 std::map<const FileDescriptor*, std::string>
Djava_helpers.h105 std::string FileClassName(const FileDescriptor* file, bool immutable = true);
108 std::string FileJavaPackage(const FileDescriptor* file);
109 std::string FileJavaPackage(const FileDescriptor* file, bool immutable);
121 std::string ClassName(const FileDescriptor* descriptor);
158 inline bool MultipleJavaFiles(const FileDescriptor* descriptor, in MultipleJavaFiles()
254 inline bool HasDescriptorMethods(const FileDescriptor* descriptor, in HasDescriptorMethods()
260 inline bool HasGenericServices(const FileDescriptor* file, bool enforce_lite) { in HasGenericServices()
358 inline bool IsProto2(const FileDescriptor* descriptor) { in IsProto2()
359 return descriptor->syntax() == FileDescriptor::SYNTAX_PROTO2; in IsProto2()
385 inline bool ExposePublicParser(const FileDescriptor* descriptor) { in ExposePublicParser()
[all …]
Djava_name_resolver.cc55 const FileDescriptor* file) { in StripPackageName()
133 const FileDescriptor* file) { in GetFileDefaultImmutableClassName()
145 const FileDescriptor* file) { in GetFileImmutableClassName()
161 std::string ClassNameResolver::GetFileClassName(const FileDescriptor* file, in GetFileClassName()
172 bool ClassNameResolver::HasConflictingClassName(const FileDescriptor* file, in HasConflictingClassName()
197 const FileDescriptor* descriptor) { in GetDescriptorClassName()
201 std::string ClassNameResolver::GetClassName(const FileDescriptor* descriptor, in GetClassName()
212 const std::string& name_without_package, const FileDescriptor* file, in GetClassFullName()
250 const std::string& name_without_package, const FileDescriptor* file, in GetJavaClassFullName()
/third_party/boost/libs/iostreams/test/
Ddeprecated_file_descriptor_test.cpp17 template <class FileDescriptor>
18 void file_handle_test_impl(FileDescriptor*) in file_handle_test_impl() argument
28 FileDescriptor device1(handle); in file_handle_test_impl()
38 FileDescriptor device1(handle, false); in file_handle_test_impl()
48 FileDescriptor device1(handle, true); in file_handle_test_impl()
56 FileDescriptor device1(handle); in file_handle_test_impl()
65 FileDescriptor device1(handle, false); in file_handle_test_impl()
74 FileDescriptor device1(handle, true); in file_handle_test_impl()
86 FileDescriptor device1; in file_handle_test_impl()
97 FileDescriptor device1; in file_handle_test_impl()
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java51 import com.google.protobuf.Descriptors.FileDescriptor.Syntax;
87 public static final class FileDescriptor extends GenericDescriptor { class in Descriptors
102 public FileDescriptor getFile() { in getFile()
146 public List<FileDescriptor> getDependencies() { in getDependencies()
151 public List<FileDescriptor> getPublicDependencies() { in getPublicDependencies()
279 public static FileDescriptor buildFrom( in buildFrom()
280 final FileDescriptorProto proto, final FileDescriptor[] dependencies) in buildFrom()
296 public static FileDescriptor buildFrom( in buildFrom()
298 final FileDescriptor[] dependencies, in buildFrom()
311 final FileDescriptor result = in buildFrom()
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java48 import com.google.protobuf.Descriptors.FileDescriptor;
96 FileDescriptor file = UnittestProto.getDescriptor(); in testFileDescriptor()
437 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, new FileDescriptor[0]); in testDescriptorValidatorException()
481 FileDescriptor file = in testDescriptorComplexCrosslink()
482 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, new FileDescriptor[0]); in testDescriptorComplexCrosslink()
515 FileDescriptor fooFile = Descriptors.FileDescriptor.buildFrom(fooProto, new FileDescriptor[0]); in testDependencyOrder()
516 FileDescriptor barFile = in testDependencyOrder()
517 Descriptors.FileDescriptor.buildFrom(barProto, new FileDescriptor[] {fooFile}); in testDependencyOrder()
520 Descriptors.FileDescriptor.buildFrom(bazProto, new FileDescriptor[] {fooFile, barFile}); in testDependencyOrder()
521 Descriptors.FileDescriptor.buildFrom(bazProto, new FileDescriptor[] {barFile, fooFile}); in testDependencyOrder()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.h94 bool IsBootstrapProto(const Options& options, const FileDescriptor* file);
100 std::string Namespace(const FileDescriptor* d, const Options& options);
163 std::string DescriptorTableName(const FileDescriptor* file,
168 std::string FileDllExport(const FileDescriptor* file, const Options& options);
239 inline std::string UniqueName(const std::string& name, const FileDescriptor* d, in UniqueName()
269 const FileDescriptor* d) { in UniqueName()
285 std::string QualifiedFileLevelSymbol(const FileDescriptor* file,
299 return message->file()->syntax() != FileDescriptor::SYNTAX_PROTO3; in PublicUnknownFieldsAccessors()
303 FileOptions_OptimizeMode GetOptimizeFor(const FileDescriptor* file,
308 inline bool UseUnknownFieldSet(const FileDescriptor* file, in UseUnknownFieldSet()
[all …]
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDescriptorsTest.java40 import com.google.protobuf.Descriptors.FileDescriptor;
92 FileDescriptor file = UnittestProto.getDescriptor(); in testFileDescriptor()
452 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, in testDescriptorValidatorException()
453 new FileDescriptor[0]); in testDescriptorValidatorException()
492 FileDescriptor file = in testDescriptorComplexCrosslink()
493 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, in testDescriptorComplexCrosslink()
494 new FileDescriptor[0]); in testDescriptorComplexCrosslink()
523 FileDescriptor fooFile = Descriptors.FileDescriptor.buildFrom(fooProto, in testInvalidPublicDependency()
524 new FileDescriptor[0]); in testInvalidPublicDependency()
526 Descriptors.FileDescriptor.buildFrom(barProto, in testInvalidPublicDependency()
[all …]
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.h43 class FileDescriptor; variable
87 PyObject* NewFileMessageTypesByName(const FileDescriptor* descriptor);
89 PyObject* NewFileEnumTypesByName(const FileDescriptor* descriptor);
91 PyObject* NewFileExtensionsByName(const FileDescriptor* descriptor);
93 PyObject* NewFileServicesByName(const FileDescriptor* descriptor);
95 PyObject* NewFileDependencies(const FileDescriptor* descriptor);
96 PyObject* NewFilePublicDependencies(const FileDescriptor* descriptor);
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.h53 class FileDescriptor; variable
145 bool Generate(const FileDescriptor* file, const std::string& parameter, in Generate()
153 bool GenerateAll(const std::vector<const FileDescriptor*>& files,
163 const FileDescriptor* file, io::Printer* printer) const;
167 const std::vector<const FileDescriptor*>& file,
170 io::Printer* printer, const FileDescriptor* file,
194 const std::vector<const FileDescriptor*>& files,
226 bool GenerateFile(const FileDescriptor* file, const GeneratorOptions& options,
229 const FileDescriptor* file) const;
235 const std::vector<const FileDescriptor*>& file) const;
[all …]
/third_party/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface.h59 class FileDescriptor; // descriptor.h variable
232 bool AllowProto3Optional(const FileDescriptor& file) const;
238 const std::vector<const FileDescriptor*>& parsed_files) const;
286 std::vector<const FileDescriptor*>* parsed_files);
290 bool GenerateOutput(const std::vector<const FileDescriptor*>& parsed_files,
294 const std::vector<const FileDescriptor*>& parsed_files,
303 const std::vector<const FileDescriptor*>& parsed_files);
307 const std::vector<const FileDescriptor*>& parsed_files,
321 const FileDescriptor* file, bool include_json_name,
323 std::set<const FileDescriptor*>* already_seen,
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DOldExtensions2.cs19 public static pbr::FileDescriptor Descriptor {
22 private static pbr::FileDescriptor descriptor;
31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, in OldExtensions2Reflection()
32 new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, }, in OldExtensions2Reflection()
/third_party/boost/boost/process/detail/posix/
Dfd.hpp64 template <class FileDescriptor>
68 bind_fd_(int id, const FileDescriptor &fd) : id_(id), fd_(fd) {} in bind_fd_()
82 FileDescriptor fd_;
94 template <class FileDescriptor>
95 bind_fd_<FileDescriptor> bind(int id, const FileDescriptor & fd) const {return {id, fd};} in bind()
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_names.h52 class FileDescriptor; variable
63 string PROTOC_EXPORT GetFileNamespace(const FileDescriptor* descriptor);
79 string PROTOC_EXPORT GetReflectionClassName(const FileDescriptor* descriptor);
95 string PROTOC_EXPORT GetOutputFile(const FileDescriptor* descriptor,
Dcsharp_helpers.h78 std::string GetReflectionClassUnqualifiedName(const FileDescriptor* descriptor);
80 std::string GetExtensionClassUnqualifiedName(const FileDescriptor* descriptor);
110 std::string FileDescriptorToBase64(const FileDescriptor* descriptor);
132 inline bool IsDescriptorProto(const FileDescriptor* descriptor) { in IsDescriptorProto()
157 inline bool IsProto2(const FileDescriptor* descriptor) { in IsProto2()
158 return descriptor->syntax() == FileDescriptor::SYNTAX_PROTO2; in IsProto2()
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc81 field->file()->syntax() == FileDescriptor::SYNTAX_PROTO3) { in LabelForField()
116 string StringifySyntax(FileDescriptor::Syntax syntax) { in StringifySyntax()
118 case FileDescriptor::SYNTAX_PROTO2: in StringifySyntax()
120 case FileDescriptor::SYNTAX_PROTO3: in StringifySyntax()
122 case FileDescriptor::SYNTAX_UNKNOWN: in StringifySyntax()
403 int GeneratePackageModules(const FileDescriptor* file, io::Printer* printer) { in GeneratePackageModules()
464 bool UsesTypeFromFile(const Descriptor* message, const FileDescriptor* file, in UsesTypeFromFile()
499 bool MaybeEmitDependency(const FileDescriptor* import, in MaybeEmitDependency()
500 const FileDescriptor* from, in MaybeEmitDependency()
503 if (from->syntax() == FileDescriptor::SYNTAX_PROTO3 && in MaybeEmitDependency()
[all …]
/third_party/grpc/src/csharp/Grpc.IntegrationTesting/
DEmptyService.cs19 public static pbr::FileDescriptor Descriptor {
22 private static pbr::FileDescriptor descriptor;
29 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, in EmptyServiceReflection()
30 new pbr::FileDescriptor[] { }, in EmptyServiceReflection()
DBenchmarkService.cs19 public static pbr::FileDescriptor Descriptor {
22 private static pbr::FileDescriptor descriptor;
39 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, in BenchmarkServiceReflection()
40 new pbr::FileDescriptor[] { global::Grpc.Testing.MessagesReflection.Descriptor, }, in BenchmarkServiceReflection()
DReportQpsScenarioService.cs19 public static pbr::FileDescriptor Descriptor {
22 private static pbr::FileDescriptor descriptor;
32 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, in ReportQpsScenarioServiceReflection()
33 new pbr::FileDescriptor[] { global::Grpc.Testing.ControlReflection.Descriptor, }, in ReportQpsScenarioServiceReflection()

12345678910