// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "attachmentV2.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { AttachmentServiceV2 } from "./attachmentV2"; import type { DeleteAllAttachmentsV2Response } from "./attachmentV2"; import type { DeleteAllAttachmentsV2Request } from "./attachmentV2"; import type { ShareAttachmentV2Response } from "./attachmentV2"; import type { ShareAttachmentV2Request } from "./attachmentV2"; import type { ListAttachmentsV2Response } from "./attachmentV2"; import type { ListAttachmentsV2Request } from "./attachmentV2"; import type { DeleteAttachmentV2Response } from "./attachmentV2"; import type { DeleteAttachmentV2Request } from "./attachmentV2"; import type { DownloadAttachmentV2Response } from "./attachmentV2"; import type { DownloadAttachmentV2Request } from "./attachmentV2"; import type { AddLinkV2Response } from "./attachmentV2"; import type { AddLinkV2Request } from "./attachmentV2"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { UploadAttachmentV2Response } from "./attachmentV2"; import type { UploadAttachmentV2Request } from "./attachmentV2"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.AttachmentServiceV2 */ export interface IAttachmentServiceV2Client { /** * @generated from protobuf rpc: Upload */ upload(input: UploadAttachmentV2Request, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: AddLink */ addLink(input: AddLinkV2Request, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Download */ download(input: DownloadAttachmentV2Request, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Delete */ delete(input: DeleteAttachmentV2Request, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: List */ list(input: ListAttachmentsV2Request, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: Share */ share(input: ShareAttachmentV2Request, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteAll */ deleteAll(input: DeleteAllAttachmentsV2Request, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.AttachmentServiceV2 */ export class AttachmentServiceV2Client implements IAttachmentServiceV2Client, ServiceInfo { typeName = AttachmentServiceV2.typeName; methods = AttachmentServiceV2.methods; options = AttachmentServiceV2.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: Upload */ upload(input: UploadAttachmentV2Request, 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: AddLink */ addLink(input: AddLinkV2Request, 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: Download */ download(input: DownloadAttachmentV2Request, 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: Delete */ delete(input: DeleteAttachmentV2Request, 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: List */ list(input: ListAttachmentsV2Request, 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: Share */ share(input: ShareAttachmentV2Request, 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: DeleteAll */ deleteAll(input: DeleteAllAttachmentsV2Request, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }