// @generated by protobuf-ts 2.9.4 with parameter generate_dependencies // @generated from protobuf file "proto/document/document.proto" (package "DocumentService", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { DocumentService } from "./document"; import type { UpdateDocumentBlockRequest } from "./document"; import type { DeleteDocumentBlockRequest } from "./document"; import type { GetDocumentBlocksRequest } from "./document"; import type { GetDocumentBlockRequest } from "./document"; import type { DocumentBlock } from "./document"; import type { CreateDocumentBlockRequest } from "./document"; import type { DocumentBlockList } from "./document"; import type { VectorSearchByTextInDocumentRequest } from "./document"; import type { Empty } from "./document"; import type { DeleteDocumentRequest } from "./document"; import type { UpdateDocumentRequest } from "./document"; import type { GetDocumentRequest } from "./document"; import type { Document } from "./document"; import type { CreateDocumentRequest } from "./document"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { DocumentList } from "./document"; import type { ListDocumentsRequest } from "./document"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service DocumentService.DocumentService */ export interface IDocumentServiceClient { /** * @generated from protobuf rpc: ListDocuments(DocumentService.ListDocumentsRequest) returns (DocumentService.DocumentList); */ listDocuments(input: ListDocumentsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateDocument(DocumentService.CreateDocumentRequest) returns (DocumentService.Document); */ createDocument(input: CreateDocumentRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetDocument(DocumentService.GetDocumentRequest) returns (DocumentService.Document); */ getDocument(input: GetDocumentRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: UpdateDocument(DocumentService.UpdateDocumentRequest) returns (DocumentService.Document); */ updateDocument(input: UpdateDocumentRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteDocument(DocumentService.DeleteDocumentRequest) returns (DocumentService.Empty); */ deleteDocument(input: DeleteDocumentRequest, options?: RpcOptions): UnaryCall; /** * rpc SearchTextInDocument(TextSearchInDocumentRequest) returns (SearchResponse) {} * * @generated from protobuf rpc: VectorSearchByTextInDocument(DocumentService.VectorSearchByTextInDocumentRequest) returns (DocumentService.DocumentBlockList); */ vectorSearchByTextInDocument(input: VectorSearchByTextInDocumentRequest, options?: RpcOptions): UnaryCall; /** * rpc TestStream(Empty) returns (stream TestStreamResponse) {} * * @generated from protobuf rpc: CreateDocumentBlock(DocumentService.CreateDocumentBlockRequest) returns (DocumentService.DocumentBlock); */ createDocumentBlock(input: CreateDocumentBlockRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetBlock(DocumentService.GetDocumentBlockRequest) returns (DocumentService.DocumentBlock); */ getBlock(input: GetDocumentBlockRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetDocumentBlocks(DocumentService.GetDocumentBlocksRequest) returns (DocumentService.DocumentBlockList); */ getDocumentBlocks(input: GetDocumentBlocksRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteBlock(DocumentService.DeleteDocumentBlockRequest) returns (DocumentService.Empty); */ deleteBlock(input: DeleteDocumentBlockRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: UpdateBlock(DocumentService.UpdateDocumentBlockRequest) returns (DocumentService.DocumentBlock); */ updateBlock(input: UpdateDocumentBlockRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service DocumentService.DocumentService */ export class DocumentServiceClient implements IDocumentServiceClient, ServiceInfo { typeName = DocumentService.typeName; methods = DocumentService.methods; options = DocumentService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: ListDocuments(DocumentService.ListDocumentsRequest) returns (DocumentService.DocumentList); */ listDocuments(input: ListDocumentsRequest, 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: CreateDocument(DocumentService.CreateDocumentRequest) returns (DocumentService.Document); */ createDocument(input: CreateDocumentRequest, 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: GetDocument(DocumentService.GetDocumentRequest) returns (DocumentService.Document); */ getDocument(input: GetDocumentRequest, 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: UpdateDocument(DocumentService.UpdateDocumentRequest) returns (DocumentService.Document); */ updateDocument(input: UpdateDocumentRequest, 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: DeleteDocument(DocumentService.DeleteDocumentRequest) returns (DocumentService.Empty); */ deleteDocument(input: DeleteDocumentRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * rpc SearchTextInDocument(TextSearchInDocumentRequest) returns (SearchResponse) {} * * @generated from protobuf rpc: VectorSearchByTextInDocument(DocumentService.VectorSearchByTextInDocumentRequest) returns (DocumentService.DocumentBlockList); */ vectorSearchByTextInDocument(input: VectorSearchByTextInDocumentRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * rpc TestStream(Empty) returns (stream TestStreamResponse) {} * * @generated from protobuf rpc: CreateDocumentBlock(DocumentService.CreateDocumentBlockRequest) returns (DocumentService.DocumentBlock); */ createDocumentBlock(input: CreateDocumentBlockRequest, 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: GetBlock(DocumentService.GetDocumentBlockRequest) returns (DocumentService.DocumentBlock); */ getBlock(input: GetDocumentBlockRequest, 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: GetDocumentBlocks(DocumentService.GetDocumentBlocksRequest) returns (DocumentService.DocumentBlockList); */ getDocumentBlocks(input: GetDocumentBlocksRequest, 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: DeleteBlock(DocumentService.DeleteDocumentBlockRequest) returns (DocumentService.Empty); */ deleteBlock(input: DeleteDocumentBlockRequest, 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: UpdateBlock(DocumentService.UpdateDocumentBlockRequest) returns (DocumentService.DocumentBlock); */ updateBlock(input: UpdateDocumentBlockRequest, options?: RpcOptions): UnaryCall { const method = this.methods[10], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }