Interface DescOneof

Describes a oneof group in a protobuf source file.

interface DescOneof {
    deprecated: boolean;
    fields: DescField[];
    kind: "oneof";
    name: string;
    parent: DescMessage;
    proto: OneofDescriptorProto;
    getComments(): DescComments;
    getFeatures(): MergedFeatureSet;
    toString(): string;
}

Properties

deprecated: boolean

Marked as deprecated in the protobuf source. Note that oneof groups cannot be marked as deprecated, this property only exists for consistency and will always be false.

fields: DescField[]

The fields declared in this oneof group.

kind: "oneof"
name: string

The name of the oneof group, as specified in the protobuf source.

parent: DescMessage

The message this oneof group was declared in.

The compiler-generated descriptor.

Methods

  • Get comments on the element in the protobuf source.

    Returns DescComments

  • Get the edition features for this protobuf element.

    Returns MergedFeatureSet

  • Returns string