webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Properties | List of all members
Google.Protobuf.Reflection.EnumDescriptor Class Reference

Descriptor for an enum type in a .proto file. More...

Inheritance diagram for Google.Protobuf.Reflection.EnumDescriptor:
Google.Protobuf.Reflection.DescriptorBase Google.Protobuf.Reflection.IDescriptor

Public Member Functions

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. More...
 
EnumValueDescriptor FindValueByName (string name)
 Finds an enum value by name. More...
 

Properties

override string Name [get]
 The brief name of the descriptor's target. More...
 
Type ClrType [get]
 The CLR type for this enum. For generated code, this will be a CLR enum type. More...
 
MessageDescriptor ContainingType [get]
 
IList< EnumValueDescriptorValues [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...
 

Detailed Description

Descriptor for an enum type in a .proto file.

Member Function Documentation

◆ FindValueByName()

EnumValueDescriptor Google.Protobuf.Reflection.EnumDescriptor.FindValueByName ( string  name)
inline

Finds an enum value by name.

Parameters
nameThe unqualified name of the value (e.g. "FOO").
Returns
The value's descriptor, or null if not found.

◆ FindValueByNumber()

EnumValueDescriptor Google.Protobuf.Reflection.EnumDescriptor.FindValueByNumber ( int  number)
inline

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.

Property Documentation

◆ ClrType

Type Google.Protobuf.Reflection.EnumDescriptor.ClrType
get

The CLR type for this enum. For generated code, this will be a CLR enum type.

◆ ContainingType

MessageDescriptor Google.Protobuf.Reflection.EnumDescriptor.ContainingType
get

If this is a nested type, get the outer descriptor, otherwise null.

◆ Name

override string Google.Protobuf.Reflection.EnumDescriptor.Name
get

The brief name of the descriptor's target.

◆ Values

IList<EnumValueDescriptor> Google.Protobuf.Reflection.EnumDescriptor.Values
get

An unmodifiable list of defined value descriptors for this enum.


The documentation for this class was generated from the following file: