Skip to main content
Module

x/steam_trader/types/protobuf.d.ts>Method

https://deno.land/x/steam_trader
Latest
class Method
import { Method } from "https://deno.land/x/steam_trader@v0.4.0/types/protobuf.d.ts";

Reflected service method.

Constructors

new
Method(
name: string,
type: (string | undefined),
requestType: string,
responseType: string,
requestStream?: (boolean | { [k: string]: any; }),
responseStream?: (boolean | { [k: string]: any; }),
options?: { [k: string]: any; },
comment?: string,
)

Constructs a new service method instance.

Properties

comment: (string | null)

Comment for this method

optional
requestStream: boolean

Whether requests are streamed or not.

requestType: string

Request type.

resolvedRequestType: (Type | null)

Resolved request type.

resolvedResponseType: (Type | null)

Resolved response type.

optional
responseStream: boolean

Whether responses are streamed or not.

responseType: string

Response type.

type: string

Method type.

Methods

toJSON(toJSONOptions?: IToJSONOptions): IMethod

Converts this method to a method descriptor.

Static Methods

fromJSON(name: string, json: IMethod): Method

Constructs a method from a method descriptor.