// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "rules.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { RuleService } from "./rules"; import type { GetJSONTreeResponse } from "./rules"; import type { GetJSONTreeRequest } from "./rules"; import type { DisableRuleResponse } from "./rules"; import type { DisableRuleRequest } from "./rules"; import type { EnableRuleResponse } from "./rules"; import type { EnableRuleRequest } from "./rules"; import type { DeleteRuleResponse } from "./rules"; import type { DeleteRuleRequest } from "./rules"; import type { ListRulesResponse } from "./rules"; import type { ListRulesRequest } from "./rules"; import type { GetRuleResponse } from "./rules"; import type { GetRuleRequest } from "./rules"; import type { UpdateRuleResponse } from "./rules"; import type { UpdateRuleRequest } from "./rules"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { CreateRuleResponse } from "./rules"; import type { CreateRuleRequest } from "./rules"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.RuleService */ export interface IRuleServiceClient { /** * @generated from protobuf rpc: Create */ create(input: CreateRuleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Update */ update(input: UpdateRuleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Get */ get(input: GetRuleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: List */ list(input: ListRulesRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Delete */ delete(input: DeleteRuleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Enable */ enable(input: EnableRuleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Disable */ disable(input: DisableRuleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetJSONTree */ getJSONTree(input: GetJSONTreeRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.RuleService */ export class RuleServiceClient implements IRuleServiceClient, ServiceInfo { typeName = RuleService.typeName; methods = RuleService.methods; options = RuleService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: Create */ create(input: CreateRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Update */ update(input: UpdateRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Get */ get(input: GetRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: List */ list(input: ListRulesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Delete */ delete(input: DeleteRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Enable */ enable(input: EnableRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Disable */ disable(input: DisableRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetJSONTree */ getJSONTree(input: GetJSONTreeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }