public EnumValueDescriptor FindValueByNumber(int number)
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `EnumDescriptor` class provides a descriptor for an enum type within a .proto file, acting as an interface to the enum's structure and metadata."],["This class allows access to properties like `ClrType`, `ContainingType`, `CustomOptions`, `Name`, and `Values`, offering information about the enum's CLR type, containing message, custom options, name, and its defined values respectively."],["Methods like `FindValueByName` and `FindValueByNumber` enable searching for enum values by their name or numerical value, respectively."],["The `GetOptions()` method enables the retrieval of the `EnumOptions` message, which contains options for the enum, including custom extensions, with the note that it is a defensive copy of the message each time it is called."],["The `ToProto()` method returns a copy of the underlying `EnumDescriptorProto`, which is a protobuf representation of this enum descriptor, useful for serialization or inspection."]]],[]]