-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreeter.client.ts-B.txt
45 lines (45 loc) · 1.72 KB
/
greeter.client.ts-B.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// @generated by protobuf-ts 2.9.4
// @generated from protobuf file "helloworld/v1/greeter.proto" (package "helloworld.v1", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { Greeter } from "./greeter";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { HelloReply } from "./greeter";
import type { HelloRequest } from "./greeter";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* The greeting service definition.
*
* @generated from protobuf service helloworld.v1.Greeter
*/
export interface IGreeterClient {
/**
* Sends a greeting
*
* @generated from protobuf rpc: SayHello(helloworld.v1.HelloRequest) returns (helloworld.v1.HelloReply);
*/
sayHello(input: HelloRequest, options?: RpcOptions): UnaryCall<HelloRequest, HelloReply>;
}
/**
* The greeting service definition.
*
* @generated from protobuf service helloworld.v1.Greeter
*/
export class GreeterClient implements IGreeterClient, ServiceInfo {
typeName = Greeter.typeName;
methods = Greeter.methods;
options = Greeter.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* Sends a greeting
*
* @generated from protobuf rpc: SayHello(helloworld.v1.HelloRequest) returns (helloworld.v1.HelloReply);
*/
sayHello(input: HelloRequest, options?: RpcOptions): UnaryCall<HelloRequest, HelloReply> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<HelloRequest, HelloReply>("unary", this._transport, method, opt, input);
}
}