Describes a .proto file, including everything defined within. IDescriptor is implemented such that the File property returns this descriptor, and the FullName is the same as the Name.
More...
|
string | Name => Proto.Name |
|
string | Package => Proto.Package |
| The package as declared in the .proto file. This may or may not be equivalent to the .NET namespace of the generated classes. More...
|
|
Describes a .proto file, including everything defined within. IDescriptor is implemented such that the File property returns this descriptor, and the FullName is the same as the Name.
◆ FindTypeByName< T >()
T Google.Protobuf.Reflection.FileDescriptor.FindTypeByName< T > |
( |
String |
name | ) |
|
|
inline |
Finds a type (message, enum, service or extension) in the file by name. Does not find nested types.
- Parameters
-
name | The unqualified type name to look for. |
- Template Parameters
-
T | The type of descriptor to look for |
- Returns
- The type's descriptor, or null if not found.
◆ FromGeneratedCode()
Creates a descriptor for generated code.
This method is only designed to be used by the results of generating code with protoc, which creates the appropriate dependencies etc. It has to be public because the generated code is "external", but should not be called directly by end users.
◆ ToString()
override string Google.Protobuf.Reflection.FileDescriptor.ToString |
( |
| ) |
|
|
inline |
◆ Name
string Google.Protobuf.Reflection.FileDescriptor.Name => Proto.Name |
◆ Package
string Google.Protobuf.Reflection.FileDescriptor.Package => Proto.Package |
The package as declared in the .proto file. This may or may not be equivalent to the .NET namespace of the generated classes.
◆ Dependencies
IList<FileDescriptor> Google.Protobuf.Reflection.FileDescriptor.Dependencies |
|
get |
Unmodifiable list of this file's dependencies (imports).
◆ DescriptorProtoFileDescriptor
FileDescriptor Google.Protobuf.Reflection.FileDescriptor.DescriptorProtoFileDescriptor |
|
staticget |
Returns the file descriptor for descriptor.proto.
This is used for protos which take a direct dependency on descriptor.proto
, typically for annotations. While descriptor.proto
is a proto2 file, it is built into the Google.Protobuf runtime for reflection purposes. The messages are internal to the runtime as they would require proto2 semantics for full support, but the file descriptor is available via this property. The C# codegen in protoc automatically uses this property when it detects a dependency on descriptor.proto
.
The file descriptor for descriptor.proto
.
◆ EnumTypes
IList<EnumDescriptor> Google.Protobuf.Reflection.FileDescriptor.EnumTypes |
|
get |
Unmodifiable list of top-level enum types declared in this file.
◆ MessageTypes
Unmodifiable list of top-level message types declared in this file.
◆ PublicDependencies
IList<FileDescriptor> Google.Protobuf.Reflection.FileDescriptor.PublicDependencies |
|
get |
Unmodifiable list of this file's public dependencies (public imports).
◆ SerializedData
ByteString Google.Protobuf.Reflection.FileDescriptor.SerializedData |
|
get |
The original serialized binary form of this descriptor.
◆ Services
Unmodifiable list of top-level services declared in this file.
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs