webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Describes a message type. More...
Classes | |
class | FieldCollection |
A collection to simplify retrieving the field accessor for a particular field. More... | |
Public Member Functions | |
FieldDescriptor | FindFieldByName (String name) |
Finds a field by field name. More... | |
Public Attributes | |
override string | Name => Proto.Name |
The brief name of the descriptor's target. More... | |
Properties | |
Type | ClrType [get] |
The CLR type used to represent message instances from this descriptor. More... | |
MessageParser | Parser [get] |
A parser for this message type. More... | |
MessageDescriptor | ContainingType [get] |
FieldCollection | Fields [get] |
IList< MessageDescriptor > | NestedTypes [get] |
IList< EnumDescriptor > | EnumTypes [get] |
IList< OneofDescriptor > | Oneofs [get] |
Properties inherited from Google.Protobuf.Reflection.DescriptorBase | |
int | Index [get] |
abstract string | Name [get] |
Returns the name of the entity (field, message etc) being described. More... | |
string | FullName [get] |
The fully qualified name of the descriptor's target. More... | |
FileDescriptor | File [get] |
Properties inherited from Google.Protobuf.Reflection.IDescriptor | |
string | Name [get] |
Returns the name of the entity (message, field etc) being described. More... | |
string | FullName [get] |
Returns the fully-qualified name of the entity being described. More... | |
FileDescriptor | File [get] |
Returns the descriptor for the .proto file that this entity is part of. More... | |
Describes a message type.
|
inline |
override string Google.Protobuf.Reflection.MessageDescriptor.Name => Proto.Name |
The brief name of the descriptor's target.
|
get |
The CLR type used to represent message instances from this descriptor.
The value returned by this property will be non-null for all regular fields. However, if a message containing a map field is introspected, the list of nested messages will include an auto-generated nested key/value pair message for the field. This is not represented in any generated type, so this property will return null in such cases.
For wrapper types (Google.Protobuf.WellKnownTypes.StringValue and the like), the type returned here will be the generated message type, not the native type used by reflection for fields of those types. Code using reflection should call IsWrapperType to determine whether a message descriptor represents a wrapper type, and handle the result appropriately.
|
get |
If this is a nested type, get the outer descriptor, otherwise null.
|
get |
An unmodifiable list of this message type's enum types.
|
get |
A collection of fields, which can be retrieved by name or field number.
|
get |
An unmodifiable list of this message type's nested types.
|
get |
An unmodifiable list of the "oneof" field collections in this message type.
|
get |
A parser for this message type.
As MessageDescriptor is not generic, this cannot be statically typed to the relevant type, but it should produce objects of a type compatible with ClrType.
The value returned by this property will be non-null for all regular fields. However, if a message containing a map field is introspected, the list of nested messages will include an auto-generated nested key/value pair message for the field. No message parser object is created for such messages, so this property will return null in such cases.
For wrapper types (Google.Protobuf.WellKnownTypes.StringValue and the like), the parser returned here will be the generated message type, not the native type used by reflection for fields of those types. Code using reflection should call IsWrapperType to determine whether a message descriptor represents a wrapper type, and handle the result appropriately.