// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "role.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { RoleService } from "./role"; import type { GetRoleResourceTypesResult } from "./role"; import type { GetRoleResourceTypesRequest } from "./role"; import type { DeleteRolesOnResourceResult } from "./role"; import type { DeleteRolesOnResourceRequest } from "./role"; import type { PropagateRolesOnResourceResult } from "./role"; import type { PropagateRolesOnResourceRequest } from "./role"; import type { DeleteRoleExternalPermissionsResult } from "./role"; import type { DeleteRoleExternalPermissionsRequest } from "./role"; import type { PutRoleExternalPermissionsResult } from "./role"; import type { PutRoleExternalPermissionsRequest } from "./role"; import type { ListProjectRolesResult } from "./role"; import type { ListProjectRolesRequest } from "./role"; import type { ListOrganisationRolesResult } from "./role"; import type { ListOrganisationRolesRequest } from "./role"; import type { ListPlatformRolesResult } from "./role"; import type { ListPlatformRolesRequest } from "./role"; import type { GetProjectRoleResult } from "./role"; import type { GetProjectRoleRequest } from "./role"; import type { GetOrganisationRoleResult } from "./role"; import type { GetOrganisationRoleRequest } from "./role"; import type { GetPlatformRoleResult } from "./role"; import type { GetPlatformRoleRequest } from "./role"; import type { DeleteProjectRoleResult } from "./role"; import type { DeleteProjectRoleRequest } from "./role"; import type { DeleteOrganisationRoleResult } from "./role"; import type { DeleteOrganisationRoleRequest } from "./role"; import type { DeletePlatformRoleResult } from "./role"; import type { DeletePlatformRoleRequest } from "./role"; import type { DeleteAllPlatformRolesResult } from "./role"; import type { DeleteAllPlatformRolesRequest } from "./role"; import type { UpdateProjectRoleResult } from "./role"; import type { UpdateProjectRoleRequest } from "./role"; import type { UpdateOrganisationRoleResult } from "./role"; import type { UpdateOrganisationRoleRequest } from "./role"; import type { UpdatePlatformRoleResult } from "./role"; import type { UpdatePlatformRoleRequest } from "./role"; import type { CreateProjectRoleResult } from "./role"; import type { CreateProjectRoleRequest } from "./role"; import type { CreateOrganisationRoleResult } from "./role"; import type { CreateOrganisationRoleRequest } from "./role"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { CreatePlatformRoleResult } from "./role"; import type { CreatePlatformRoleRequest } from "./role"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.RoleService */ export interface IRoleServiceClient { /** * @generated from protobuf rpc: CreatePlatformRole */ createPlatformRole(input: CreatePlatformRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateOrganisationRole */ createOrganisationRole(input: CreateOrganisationRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateProjectRole */ createProjectRole(input: CreateProjectRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: UpdatePlatformRole */ updatePlatformRole(input: UpdatePlatformRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: UpdateOrganisationRole */ updateOrganisationRole(input: UpdateOrganisationRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: UpdateProjectRole */ updateProjectRole(input: UpdateProjectRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteAllPlatformRoles */ deleteAllPlatformRoles(input: DeleteAllPlatformRolesRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeletePlatformRole */ deletePlatformRole(input: DeletePlatformRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteOrganisationRole */ deleteOrganisationRole(input: DeleteOrganisationRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteProjectRole */ deleteProjectRole(input: DeleteProjectRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetPlatformRole */ getPlatformRole(input: GetPlatformRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetOrganisationRole */ getOrganisationRole(input: GetOrganisationRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetProjectRole */ getProjectRole(input: GetProjectRoleRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListPlatformRoles */ listPlatformRoles(input: ListPlatformRolesRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListOrganisationRoles */ listOrganisationRoles(input: ListOrganisationRolesRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListProjectRoles */ listProjectRoles(input: ListProjectRolesRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: PutRoleExternalPermissions */ putRoleExternalPermissions(input: PutRoleExternalPermissionsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteRoleExternalPermissions */ deleteRoleExternalPermissions(input: DeleteRoleExternalPermissionsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: PropagateRolesOnResource */ propagateRolesOnResource(input: PropagateRolesOnResourceRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteRolesOnResource */ deleteRolesOnResource(input: DeleteRolesOnResourceRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetRoleResourceTypes */ getRoleResourceTypes(input: GetRoleResourceTypesRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.RoleService */ export class RoleServiceClient implements IRoleServiceClient, ServiceInfo { typeName = RoleService.typeName; methods = RoleService.methods; options = RoleService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: CreatePlatformRole */ createPlatformRole(input: CreatePlatformRoleRequest, 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: CreateOrganisationRole */ createOrganisationRole(input: CreateOrganisationRoleRequest, 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: CreateProjectRole */ createProjectRole(input: CreateProjectRoleRequest, 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: UpdatePlatformRole */ updatePlatformRole(input: UpdatePlatformRoleRequest, 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: UpdateOrganisationRole */ updateOrganisationRole(input: UpdateOrganisationRoleRequest, 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: UpdateProjectRole */ updateProjectRole(input: UpdateProjectRoleRequest, 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: DeleteAllPlatformRoles */ deleteAllPlatformRoles(input: DeleteAllPlatformRolesRequest, 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: DeletePlatformRole */ deletePlatformRole(input: DeletePlatformRoleRequest, 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: DeleteOrganisationRole */ deleteOrganisationRole(input: DeleteOrganisationRoleRequest, 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: DeleteProjectRole */ deleteProjectRole(input: DeleteProjectRoleRequest, 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: GetPlatformRole */ getPlatformRole(input: GetPlatformRoleRequest, 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: GetOrganisationRole */ getOrganisationRole(input: GetOrganisationRoleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[11], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetProjectRole */ getProjectRole(input: GetProjectRoleRequest, options?: RpcOptions): UnaryCall { const method = this.methods[12], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListPlatformRoles */ listPlatformRoles(input: ListPlatformRolesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[13], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListOrganisationRoles */ listOrganisationRoles(input: ListOrganisationRolesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[14], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListProjectRoles */ listProjectRoles(input: ListProjectRolesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[15], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: PutRoleExternalPermissions */ putRoleExternalPermissions(input: PutRoleExternalPermissionsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[16], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeleteRoleExternalPermissions */ deleteRoleExternalPermissions(input: DeleteRoleExternalPermissionsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[17], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: PropagateRolesOnResource */ propagateRolesOnResource(input: PropagateRolesOnResourceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[18], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeleteRolesOnResource */ deleteRolesOnResource(input: DeleteRolesOnResourceRequest, options?: RpcOptions): UnaryCall { const method = this.methods[19], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetRoleResourceTypes */ getRoleResourceTypes(input: GetRoleResourceTypesRequest, options?: RpcOptions): UnaryCall { const method = this.methods[20], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }