// @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 { DocumentChunkList } 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.DocumentChunkList); */ vectorSearchByTextInDocument(input: VectorSearchByTextInDocumentRequest, 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.DocumentChunkList); */ vectorSearchByTextInDocument(input: VectorSearchByTextInDocumentRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }