2024-05-23 07:36:26 +00:00
|
|
|
// @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";
|
2024-05-24 01:49:05 +00:00
|
|
|
import type { TestStreamResponse } from "./document";
|
|
|
|
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
2024-05-23 07:36:26 +00:00
|
|
|
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<ListDocumentsRequest, DocumentList>;
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: CreateDocument(DocumentService.CreateDocumentRequest) returns (DocumentService.Document);
|
|
|
|
*/
|
|
|
|
createDocument(input: CreateDocumentRequest, options?: RpcOptions): UnaryCall<CreateDocumentRequest, Document>;
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: GetDocument(DocumentService.GetDocumentRequest) returns (DocumentService.Document);
|
|
|
|
*/
|
|
|
|
getDocument(input: GetDocumentRequest, options?: RpcOptions): UnaryCall<GetDocumentRequest, Document>;
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: UpdateDocument(DocumentService.UpdateDocumentRequest) returns (DocumentService.Document);
|
|
|
|
*/
|
|
|
|
updateDocument(input: UpdateDocumentRequest, options?: RpcOptions): UnaryCall<UpdateDocumentRequest, Document>;
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: DeleteDocument(DocumentService.DeleteDocumentRequest) returns (DocumentService.Empty);
|
|
|
|
*/
|
|
|
|
deleteDocument(input: DeleteDocumentRequest, options?: RpcOptions): UnaryCall<DeleteDocumentRequest, Empty>;
|
|
|
|
/**
|
|
|
|
* rpc SearchTextInDocument(TextSearchInDocumentRequest) returns (SearchResponse) {}
|
|
|
|
*
|
|
|
|
* @generated from protobuf rpc: VectorSearchByTextInDocument(DocumentService.VectorSearchByTextInDocumentRequest) returns (DocumentService.DocumentChunkList);
|
|
|
|
*/
|
|
|
|
vectorSearchByTextInDocument(input: VectorSearchByTextInDocumentRequest, options?: RpcOptions): UnaryCall<VectorSearchByTextInDocumentRequest, DocumentChunkList>;
|
2024-05-24 01:49:05 +00:00
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: TestStream(DocumentService.Empty) returns (stream DocumentService.TestStreamResponse);
|
|
|
|
*/
|
|
|
|
testStream(input: Empty, options?: RpcOptions): ServerStreamingCall<Empty, TestStreamResponse>;
|
2024-05-23 07:36:26 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @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<ListDocumentsRequest, DocumentList> {
|
|
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
|
|
return stackIntercept<ListDocumentsRequest, DocumentList>("unary", this._transport, method, opt, input);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: CreateDocument(DocumentService.CreateDocumentRequest) returns (DocumentService.Document);
|
|
|
|
*/
|
|
|
|
createDocument(input: CreateDocumentRequest, options?: RpcOptions): UnaryCall<CreateDocumentRequest, Document> {
|
|
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
|
|
return stackIntercept<CreateDocumentRequest, Document>("unary", this._transport, method, opt, input);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: GetDocument(DocumentService.GetDocumentRequest) returns (DocumentService.Document);
|
|
|
|
*/
|
|
|
|
getDocument(input: GetDocumentRequest, options?: RpcOptions): UnaryCall<GetDocumentRequest, Document> {
|
|
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
|
|
return stackIntercept<GetDocumentRequest, Document>("unary", this._transport, method, opt, input);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: UpdateDocument(DocumentService.UpdateDocumentRequest) returns (DocumentService.Document);
|
|
|
|
*/
|
|
|
|
updateDocument(input: UpdateDocumentRequest, options?: RpcOptions): UnaryCall<UpdateDocumentRequest, Document> {
|
|
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
|
|
return stackIntercept<UpdateDocumentRequest, Document>("unary", this._transport, method, opt, input);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: DeleteDocument(DocumentService.DeleteDocumentRequest) returns (DocumentService.Empty);
|
|
|
|
*/
|
|
|
|
deleteDocument(input: DeleteDocumentRequest, options?: RpcOptions): UnaryCall<DeleteDocumentRequest, Empty> {
|
|
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
|
|
return stackIntercept<DeleteDocumentRequest, Empty>("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<VectorSearchByTextInDocumentRequest, DocumentChunkList> {
|
|
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
|
|
return stackIntercept<VectorSearchByTextInDocumentRequest, DocumentChunkList>("unary", this._transport, method, opt, input);
|
|
|
|
}
|
2024-05-24 01:49:05 +00:00
|
|
|
/**
|
|
|
|
* @generated from protobuf rpc: TestStream(DocumentService.Empty) returns (stream DocumentService.TestStreamResponse);
|
|
|
|
*/
|
|
|
|
testStream(input: Empty, options?: RpcOptions): ServerStreamingCall<Empty, TestStreamResponse> {
|
|
|
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
|
|
return stackIntercept<Empty, TestStreamResponse>("serverStreaming", this._transport, method, opt, input);
|
|
|
|
}
|
2024-05-23 07:36:26 +00:00
|
|
|
}
|