Google.Protobuf.Reflection.DescriptorBase

Base class for nearly all descriptors, providing common functionality.

Summary

Inheritance

Inherits from: Google.Protobuf.Reflection.IDescriptor
Direct Known Subclasses:Google.Protobuf.Reflection.EnumDescriptor, Google.Protobuf.Reflection.EnumValueDescriptor, Google.Protobuf.Reflection.FieldDescriptor, Google.Protobuf.Reflection.MessageDescriptor, Google.Protobuf.Reflection.MethodDescriptor, Google.Protobuf.Reflection.OneofDescriptor, Google.Protobuf.Reflection.ServiceDescriptor

Properties

File
FileDescriptor
The file this descriptor was declared in.
FullName
string
The fully qualified name of the descriptor's target.
Index
int
The index of this descriptor within its parent descriptor.
Name
abstract string
Returns the name of the entity (field, message etc) being described.

Properties

File

FileDescriptor File

The file this descriptor was declared in.

FullName

string FullName

The fully qualified name of the descriptor's target.

Index

int Index

The index of this descriptor within its parent descriptor.

This returns the index of this descriptor within its parent, for this descriptor's type. (There can be duplicate values for different types, e.g. one enum type with index 0 and one message type with index 0.)

Name

abstract string Name

Returns the name of the entity (field, message etc) being described.