Google.Protobuf.Reflection.EnumDescriptor
Descriptor for an enum type in a .proto file.
namespace Google.Protobuf.Reflection
{
public sealed class EnumDescriptor : DescriptorBase
{
public Type ClrType { get; }
public MessageDescriptor ContainingType { get; }
public IList<EnumValueDescriptor> Values { get; }
public CustomOptions CustomOptions { get; }
public EnumDescriptorProto ToProto();
public EnumValueDescriptor FindValueByNumber(int number);
public EnumValueDescriptor FindValueByName(string name);
public EnumOptions GetOptions();
public T GetOption<T>(Extension<EnumOptions, T> extension);
public RepeatedField<T> GetOption<T>(RepeatedExtension<EnumOptions, T> extension);
}
}