Google.Protobuf.Reflection.EnumDescriptor
Descriptor for an enum type in a .proto file.
The CLR type for this enum. For generated code, this will be a CLR enum type.
The (possibly empty) set of custom options for this enum.
Finds an enum value by name.
Finds an enum value by number. If multiple enum values have the
same number, this returns the first defined value with that number.
If there is no value for the given number, this returns null.
Gets a single value enum option for this descriptor
Gets a repeated value enum option for this descriptor
The EnumOptions, defined in descriptor.proto.
If the options message is not present (i.e. there are no options), null is returned.
Custom options can be retrieved as extensions of the returned message.
NOTE: A defensive copy is created each time this property is retrieved.
Returns a clone of the underlying EnumDescriptorProto describing this enum.
Note that a copy is taken every time this method is called, so clients using it frequently
(and not modifying it) may want to cache the returned value.