// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "restrictions.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { RestrictionService } from "./restrictions"; import type { ComputeRuleResponse } from "./restrictions"; import type { ComputeRuleRequest } from "./restrictions"; import type { GetRuleJSONTreeResponse } from "./restrictions"; import type { GetRuleJSONTreeRequest } from "./restrictions"; import type { ValidateRestrictionRuleResponse } from "./restrictions"; import type { ValidateRestrictionRuleRequest } from "./restrictions"; import type { GetRulesJSONTreeResponse } from "./restrictions"; import type { GetRulesJSONTreeRequest } from "./restrictions"; import type { DeleteForProjectRestrictionResponse } from "./restrictions"; import type { DeleteForProjectRestrictionRequest } from "./restrictions"; import type { DisableRestrictionResponse } from "./restrictions"; import type { DisableRestrictionRequest } from "./restrictions"; import type { EnableRestrictionResponse } from "./restrictions"; import type { EnableRestrictionRequest } from "./restrictions"; import type { DeleteRestrictionResponse } from "./restrictions"; import type { DeleteRestrictionRequest } from "./restrictions"; import type { ListRestrictionsResponse } from "./restrictions"; import type { ListRestrictionsRequest } from "./restrictions"; import type { GetRestrictionResponse } from "./restrictions"; import type { GetRestrictionRequest } from "./restrictions"; import type { UpdateRestrictionResponse } from "./restrictions"; import type { UpdateRestrictionRequest } from "./restrictions"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { CreateRestrictionResponse } from "./restrictions"; import type { CreateRestrictionRequest } from "./restrictions"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.RestrictionService */ export interface IRestrictionServiceClient { /** * @generated from protobuf rpc: Create */ create(input: CreateRestrictionRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Update */ update(input: UpdateRestrictionRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Get */ get(input: GetRestrictionRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: List */ list(input: ListRestrictionsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Delete */ delete(input: DeleteRestrictionRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Enable */ enable(input: EnableRestrictionRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Disable */ disable(input: DisableRestrictionRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteForProject */ deleteForProject(input: DeleteForProjectRestrictionRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetRulesJSONTree */ getRulesJSONTree(input: GetRulesJSONTreeRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ValidateRule */ validateRule(input: ValidateRestrictionRuleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetRuleJSONTree */ getRuleJSONTree(input: GetRuleJSONTreeRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Compute */ compute(input: ComputeRuleRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.RestrictionService */ export class RestrictionServiceClient implements IRestrictionServiceClient, ServiceInfo { typeName = RestrictionService.typeName; methods = RestrictionService.methods; options = RestrictionService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: Create */ create(input: CreateRestrictionRequest, 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: UpdateRestrictionRequest, 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: GetRestrictionRequest, 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: ListRestrictionsRequest, 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: DeleteRestrictionRequest, 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: EnableRestrictionRequest, 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: DisableRestrictionRequest, 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: DeleteForProject */ deleteForProject(input: DeleteForProjectRestrictionRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetRulesJSONTree */ getRulesJSONTree(input: GetRulesJSONTreeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ValidateRule */ validateRule(input: ValidateRestrictionRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[9], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetRuleJSONTree */ getRuleJSONTree(input: GetRuleJSONTreeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[10], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Compute */ compute(input: ComputeRuleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[11], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }