Interface DescService

Describes a service declaration in a protobuf source file.

interface DescService {
    deprecated: boolean;
    file: DescFile;
    kind: "service";
    methods: DescMethod[];
    name: string;
    proto: ServiceDescriptorProto;
    typeName: string;
    getComments(): DescComments;
    getFeatures(): MergedFeatureSet;
    toString(): string;
}

Properties

deprecated: boolean

Marked as deprecated in the protobuf source.

file: DescFile

The file this service was declared in.

kind: "service"
methods: DescMethod[]

The RPCs this service declares.

name: string

The name of the service, as specified in the protobuf source.

The compiler-generated descriptor.

typeName: string

The fully qualified name of the service. (We omit the leading dot.)

Methods

  • Get comments on the element in the protobuf source.

    Returns DescComments

  • Get the edition features for this protobuf element.

    Returns MergedFeatureSet

  • Returns string