Interface DescEnumValue

Describes an individual value of an enumeration in a protobuf source file.

interface DescEnumValue {
    deprecated: boolean;
    kind: "enum_value";
    name: string;
    number: number;
    parent: DescEnum;
    proto: EnumValueDescriptorProto;
    declarationString(): string;
    getComments(): DescComments;
    getFeatures(): MergedFeatureSet;
    toString(): string;
}

Properties

deprecated: boolean

Marked as deprecated in the protobuf source.

kind: "enum_value"
name: string

The name of the enumeration value, as specified in the protobuf source.

number: number

The numeric enumeration value, as specified in the protobuf source.

parent: DescEnum

The enumeration this value belongs to.

The compiler-generated descriptor.

Methods

  • Return a string that (closely) matches the definition of the enumeration value in the protobuf source.

    Returns string

  • Get comments on the element in the protobuf source.

    Returns DescComments

  • Get the edition features for this protobuf element.

    Returns MergedFeatureSet

  • Returns string