Reflection information for a protobuf enumeration.

interface EnumType {
    typeName: string;
    values: readonly EnumValueInfo[];
    findName(name): undefined | EnumValueInfo;
    findNumber(no): undefined | EnumValueInfo;
}

Properties

typeName: string

The fully qualified name of the enumeration.

values: readonly EnumValueInfo[]

Methods

  • Find an enum value by its (protobuf) name.

    Parameters

    • name: string

    Returns undefined | EnumValueInfo

  • Find an enum value by its number.

    Parameters

    • no: number

    Returns undefined | EnumValueInfo

Generated using TypeDoc