Interface DescMethod

Describes an RPC declaration in a protobuf source file.

interface DescMethod {
    deprecated: boolean;
    idempotency?: MethodIdempotency;
    input: DescMessage;
    kind: "rpc";
    methodKind: MethodKind;
    name: string;
    output: DescMessage;
    parent: DescService;
    proto: MethodDescriptorProto;
    getComments(): DescComments;
    getFeatures(): MergedFeatureSet;
    toString(): string;
}

Properties

deprecated: boolean

Marked as deprecated in the protobuf source.

idempotency?: MethodIdempotency

The idempotency level declared in the protobuf source, if any.

The message type for requests.

kind: "rpc"
methodKind: MethodKind

One of the four available method types.

name: string

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

output: DescMessage

The message type for responses.

parent: DescService

The parent service.

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