From e67f8e566208987598fbd0d2a46633fc564fbf1e Mon Sep 17 00:00:00 2001 From: droplet-bot Date: Fri, 29 Nov 2024 08:27:54 +0000 Subject: [PATCH] chore: auto-gen by protobufs triggered by commit: https://github.com/instill-ai/protobufs/commit/357476dc5520665ec5e0eddfe759f1300557a0ef --- .../v1alpha/artifact_public_service_pb2.py | 8 +- .../artifact_public_service_pb2_grpc.py | 72 ++++++++++++++ .../artifact_public_service_pb2_grpc.pyi | 52 ++++++++++ artifact/artifact/v1alpha/chunk_pb2.py | 50 ++++++---- artifact/artifact/v1alpha/chunk_pb2.pyi | 97 +++++++++++++++++-- 5 files changed, 249 insertions(+), 30 deletions(-) diff --git a/artifact/artifact/v1alpha/artifact_public_service_pb2.py b/artifact/artifact/v1alpha/artifact_public_service_pb2.py index e9190b6..4f39f29 100644 --- a/artifact/artifact/v1alpha/artifact_public_service_pb2.py +++ b/artifact/artifact/v1alpha/artifact_public_service_pb2.py @@ -21,7 +21,7 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7artifact/artifact/v1alpha/artifact_public_service.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a(artifact/artifact/v1alpha/artifact.proto\x1a%artifact/artifact/v1alpha/chunk.proto\x1a,artifact/artifact/v1alpha/file_catalog.proto\x1a&artifact/artifact/v1alpha/object.proto\x1a\"artifact/artifact/v1alpha/qa.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/api/visibility.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xc8$\n\x15\x41rtifactPublicService\x12\xac\x01\n\x08Liveness\x12*.artifact.artifact.v1alpha.LivenessRequest\x1a+.artifact.artifact.v1alpha.LivenessResponse\"G\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x31\x12\x13/v1alpha/__livenessZ\x1a\x12\x18/v1alpha/health/artifact\x12\xaf\x01\n\tReadiness\x12+.artifact.artifact.v1alpha.ReadinessRequest\x1a,.artifact.artifact.v1alpha.ReadinessResponse\"G\xfa\xd2\xe4\x93\x02\n\x12\x08INTERNAL\x82\xd3\xe4\x93\x02\x31\x12\x14/v1alpha/__readinessZ\x19\x12\x17/v1alpha/ready/artifact\x12\xcf\x01\n\rCreateCatalog\x12/.artifact.artifact.v1alpha.CreateCatalogRequest\x1a\x30.artifact.artifact.v1alpha.CreateCatalogResponse\"[\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02\x30\"+/v1alpha/namespaces/{namespace_id}/catalogs:\x01*\x12\xc9\x01\n\x0cListCatalogs\x12..artifact.artifact.v1alpha.ListCatalogsRequest\x1a/.artifact.artifact.v1alpha.ListCatalogsResponse\"X\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02-\x12+/v1alpha/namespaces/{namespace_id}/catalogs\x12\xdc\x01\n\rUpdateCatalog\x12/.artifact.artifact.v1alpha.UpdateCatalogRequest\x1a\x30.artifact.artifact.v1alpha.UpdateCatalogResponse\"h\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02=\x1a\x38/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}:\x01*\x12\xd9\x01\n\rDeleteCatalog\x12/.artifact.artifact.v1alpha.DeleteCatalogRequest\x1a\x30.artifact.artifact.v1alpha.DeleteCatalogResponse\"e\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02:*8/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}\x12\xf1\x01\n\x11UploadCatalogFile\x12\x33.artifact.artifact.v1alpha.UploadCatalogFileRequest\x1a\x34.artifact.artifact.v1alpha.UploadCatalogFileResponse\"q\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02\x46\">/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files:\x04\x66ile\x12\xc4\x01\n\x11\x44\x65leteCatalogFile\x12\x33.artifact.artifact.v1alpha.DeleteCatalogFileRequest\x1a\x34.artifact.artifact.v1alpha.DeleteCatalogFileResponse\"D\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02\x19*\x17/v1alpha/catalogs/files\x12\xec\x02\n\x13ProcessCatalogFiles\x12\x35.artifact.artifact.v1alpha.ProcessCatalogFilesRequest\x1a\x36.artifact.artifact.v1alpha.ProcessCatalogFilesResponse\"\xe5\x01\x92\x41\xb2\x01\n\r\xf0\x9f\x92\xbe Artifactr\xa0\x01\n\x9d\x01\n\x15Instill-Requester-Uid\x12\x81\x01Indicates the authenticated namespace is making the request on behalf of another entity, typically an organization they belong to\x18\x01\x82\xd3\xe4\x93\x02)\"$/v1alpha/catalogs/files/processAsync:\x01*\x12\xe8\x01\n\x10ListCatalogFiles\x12\x32.artifact.artifact.v1alpha.ListCatalogFilesRequest\x1a\x33.artifact.artifact.v1alpha.ListCatalogFilesResponse\"k\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02@\x12>/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files\x12\xd7\x01\n\nListChunks\x12,.artifact.artifact.v1alpha.ListChunksRequest\x1a-.artifact.artifact.v1alpha.ListChunksResponse\"l\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02\x41\x12?/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks\x12\xf1\x01\n\rGetSourceFile\x12/.artifact.artifact.v1alpha.GetSourceFileRequest\x1a\x30.artifact.artifact.v1alpha.GetSourceFileResponse\"}\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02R\x12P/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files/{file_uid}/source\x12\xb9\x01\n\x0bUpdateChunk\x12-.artifact.artifact.v1alpha.UpdateChunkRequest\x1a..artifact.artifact.v1alpha.UpdateChunkResponse\"K\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02 \"\x1b/v1alpha/chunks/{chunk_uid}:\x01*\x12\x99\x03\n\x16SimilarityChunksSearch\x12\x38.artifact.artifact.v1alpha.SimilarityChunksSearchRequest\x1a\x39.artifact.artifact.v1alpha.SimilarityChunksSearchResponse\"\x89\x02\x92\x41\xb2\x01\n\r\xf0\x9f\x92\xbe Artifactr\xa0\x01\n\x9d\x01\n\x15Instill-Requester-Uid\x12\x81\x01Indicates the authenticated namespace is making the request on behalf of another entity, typically an organization they belong to\x18\x01\x82\xd3\xe4\x93\x02M\"H/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/retrieve:\x01*\x12\xfe\x02\n\x11QuestionAnswering\x12\x33.artifact.artifact.v1alpha.QuestionAnsweringRequest\x1a\x34.artifact.artifact.v1alpha.QuestionAnsweringResponse\"\xfd\x01\x92\x41\xb2\x01\n\r\xf0\x9f\x92\xbe Artifactr\xa0\x01\n\x9d\x01\n\x15Instill-Requester-Uid\x12\x81\x01Indicates the authenticated namespace is making the request on behalf of another entity, typically an organization they belong to\x18\x01\x82\xd3\xe4\x93\x02\x41\"\x12/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files:\x04\x66ile\x12\xc4\x01\n\x11\x44\x65leteCatalogFile\x12\x33.artifact.artifact.v1alpha.DeleteCatalogFileRequest\x1a\x34.artifact.artifact.v1alpha.DeleteCatalogFileResponse\"D\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02\x19*\x17/v1alpha/catalogs/files\x12\xec\x02\n\x13ProcessCatalogFiles\x12\x35.artifact.artifact.v1alpha.ProcessCatalogFilesRequest\x1a\x36.artifact.artifact.v1alpha.ProcessCatalogFilesResponse\"\xe5\x01\x92\x41\xb2\x01\n\r\xf0\x9f\x92\xbe Artifactr\xa0\x01\n\x9d\x01\n\x15Instill-Requester-Uid\x12\x81\x01Indicates the authenticated namespace is making the request on behalf of another entity, typically an organization they belong to\x18\x01\x82\xd3\xe4\x93\x02)\"$/v1alpha/catalogs/files/processAsync:\x01*\x12\xe8\x01\n\x10ListCatalogFiles\x12\x32.artifact.artifact.v1alpha.ListCatalogFilesRequest\x1a\x33.artifact.artifact.v1alpha.ListCatalogFilesResponse\"k\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02@\x12>/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files\x12\xd7\x01\n\nListChunks\x12,.artifact.artifact.v1alpha.ListChunksRequest\x1a-.artifact.artifact.v1alpha.ListChunksResponse\"l\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02\x41\x12?/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks\x12\xc7\x01\n\x0cSearchChunks\x12..artifact.artifact.v1alpha.SearchChunksRequest\x1a/.artifact.artifact.v1alpha.SearchChunksResponse\"V\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02+\x12)/v1alpha/namespaces/{namespace_id}/chunks\x12\xf1\x01\n\rGetSourceFile\x12/.artifact.artifact.v1alpha.GetSourceFileRequest\x1a\x30.artifact.artifact.v1alpha.GetSourceFileResponse\"}\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02R\x12P/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files/{file_uid}/source\x12\xdc\x01\n\x11SearchSourceFiles\x12\x33.artifact.artifact.v1alpha.SearchSourceFilesRequest\x1a\x34.artifact.artifact.v1alpha.SearchSourceFilesResponse\"\\\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/namespaces/{namespace_id}/source-files\x12\xb9\x01\n\x0bUpdateChunk\x12-.artifact.artifact.v1alpha.UpdateChunkRequest\x1a..artifact.artifact.v1alpha.UpdateChunkResponse\"K\x92\x41\"\n\r\xf0\x9f\x92\xbe Artifactj\x11\n\x07x-stage\x12\x06\x1a\x04\x62\x65ta\x82\xd3\xe4\x93\x02 \"\x1b/v1alpha/chunks/{chunk_uid}:\x01*\x12\x99\x03\n\x16SimilarityChunksSearch\x12\x38.artifact.artifact.v1alpha.SimilarityChunksSearchRequest\x1a\x39.artifact.artifact.v1alpha.SimilarityChunksSearchResponse\"\x89\x02\x92\x41\xb2\x01\n\r\xf0\x9f\x92\xbe Artifactr\xa0\x01\n\x9d\x01\n\x15Instill-Requester-Uid\x12\x81\x01Indicates the authenticated namespace is making the request on behalf of another entity, typically an organization they belong to\x18\x01\x82\xd3\xe4\x93\x02M\"H/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/retrieve:\x01*\x12\xfe\x02\n\x11QuestionAnswering\x12\x33.artifact.artifact.v1alpha.QuestionAnsweringRequest\x1a\x34.artifact.artifact.v1alpha.QuestionAnsweringResponse\"\xfd\x01\x92\x41\xb2\x01\n\r\xf0\x9f\x92\xbe Artifactr\xa0\x01\n\x9d\x01\n\x15Instill-Requester-Uid\x12\x81\x01Indicates the authenticated namespace is making the request on behalf of another entity, typically an organization they belong to\x18\x01\x82\xd3\xe4\x93\x02\x41\"\x12/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files' _ARTIFACTPUBLICSERVICE.methods_by_name['ListChunks']._options = None _ARTIFACTPUBLICSERVICE.methods_by_name['ListChunks']._serialized_options = b'\222A\"\n\r\360\237\222\276 Artifactj\021\n\007x-stage\022\006\032\004beta\202\323\344\223\002A\022?/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks' + _ARTIFACTPUBLICSERVICE.methods_by_name['SearchChunks']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['SearchChunks']._serialized_options = b'\222A\"\n\r\360\237\222\276 Artifactj\021\n\007x-stage\022\006\032\004beta\202\323\344\223\002+\022)/v1alpha/namespaces/{namespace_id}/chunks' _ARTIFACTPUBLICSERVICE.methods_by_name['GetSourceFile']._options = None _ARTIFACTPUBLICSERVICE.methods_by_name['GetSourceFile']._serialized_options = b'\222A\"\n\r\360\237\222\276 Artifactj\021\n\007x-stage\022\006\032\004beta\202\323\344\223\002R\022P/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/files/{file_uid}/source' + _ARTIFACTPUBLICSERVICE.methods_by_name['SearchSourceFiles']._options = None + _ARTIFACTPUBLICSERVICE.methods_by_name['SearchSourceFiles']._serialized_options = b'\222A\"\n\r\360\237\222\276 Artifactj\021\n\007x-stage\022\006\032\004beta\202\323\344\223\0021\022//v1alpha/namespaces/{namespace_id}/source-files' _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateChunk']._options = None _ARTIFACTPUBLICSERVICE.methods_by_name['UpdateChunk']._serialized_options = b'\222A\"\n\r\360\237\222\276 Artifactj\021\n\007x-stage\022\006\032\004beta\202\323\344\223\002 \"\033/v1alpha/chunks/{chunk_uid}:\001*' _ARTIFACTPUBLICSERVICE.methods_by_name['SimilarityChunksSearch']._options = None @@ -71,5 +75,5 @@ _ARTIFACTPUBLICSERVICE.methods_by_name['GetObjectDownloadURL']._options = None _ARTIFACTPUBLICSERVICE.methods_by_name['GetObjectDownloadURL']._serialized_options = b'\222A\"\n\r\360\237\222\276 Artifactj\021\n\007x-stage\022\006\032\004beta\202\323\344\223\0028\0226/v1alpha/namespaces/{namespace_id}/object-download-url' _globals['_ARTIFACTPUBLICSERVICE']._serialized_start=397 - _globals['_ARTIFACTPUBLICSERVICE']._serialized_end=5077 + _globals['_ARTIFACTPUBLICSERVICE']._serialized_end=5502 # @@protoc_insertion_point(module_scope) diff --git a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py index 8fc1cd5..523f578 100644 --- a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py +++ b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py @@ -75,11 +75,21 @@ def __init__(self, channel): request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ListChunksRequest.SerializeToString, response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ListChunksResponse.FromString, ) + self.SearchChunks = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/SearchChunks', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchChunksRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchChunksResponse.FromString, + ) self.GetSourceFile = channel.unary_unary( '/artifact.artifact.v1alpha.ArtifactPublicService/GetSourceFile', request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.GetSourceFileRequest.SerializeToString, response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.GetSourceFileResponse.FromString, ) + self.SearchSourceFiles = channel.unary_unary( + '/artifact.artifact.v1alpha.ArtifactPublicService/SearchSourceFiles', + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchSourceFilesRequest.SerializeToString, + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchSourceFilesResponse.FromString, + ) self.UpdateChunk = channel.unary_unary( '/artifact.artifact.v1alpha.ArtifactPublicService/UpdateChunk', request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.UpdateChunkRequest.SerializeToString, @@ -221,6 +231,15 @@ def ListChunks(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def SearchChunks(self, request, context): + """Search catalog chunks + + Returns a paginated list of catalog chunks based on search criteria. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def GetSourceFile(self, request, context): """Get catalog single-source-of-truth file @@ -230,6 +249,15 @@ def GetSourceFile(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def SearchSourceFiles(self, request, context): + """Search single-source-of-truth files + + Searches the single-source-of-truth files of a catalog. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def UpdateChunk(self, request, context): """Update catalog chunk @@ -351,11 +379,21 @@ def add_ArtifactPublicServiceServicer_to_server(servicer, server): request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ListChunksRequest.FromString, response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ListChunksResponse.SerializeToString, ), + 'SearchChunks': grpc.unary_unary_rpc_method_handler( + servicer.SearchChunks, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchChunksRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchChunksResponse.SerializeToString, + ), 'GetSourceFile': grpc.unary_unary_rpc_method_handler( servicer.GetSourceFile, request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.GetSourceFileRequest.FromString, response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.GetSourceFileResponse.SerializeToString, ), + 'SearchSourceFiles': grpc.unary_unary_rpc_method_handler( + servicer.SearchSourceFiles, + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchSourceFilesRequest.FromString, + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchSourceFilesResponse.SerializeToString, + ), 'UpdateChunk': grpc.unary_unary_rpc_method_handler( servicer.UpdateChunk, request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.UpdateChunkRequest.FromString, @@ -590,6 +628,23 @@ def ListChunks(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def SearchChunks(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/SearchChunks', + artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchChunksRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchChunksResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def GetSourceFile(request, target, @@ -607,6 +662,23 @@ def GetSourceFile(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def SearchSourceFiles(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/SearchSourceFiles', + artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchSourceFilesRequest.SerializeToString, + artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SearchSourceFilesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def UpdateChunk(request, target, diff --git a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi index 948767a..5a36b90 100644 --- a/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi +++ b/artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi @@ -115,6 +115,14 @@ class ArtifactPublicServiceStub: Returns a paginated list of catalog chunks. """ + SearchChunks: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.chunk_pb2.SearchChunksRequest, + artifact.artifact.v1alpha.chunk_pb2.SearchChunksResponse, + ] + """Search catalog chunks + + Returns a paginated list of catalog chunks based on search criteria. + """ GetSourceFile: grpc.UnaryUnaryMultiCallable[ artifact.artifact.v1alpha.chunk_pb2.GetSourceFileRequest, artifact.artifact.v1alpha.chunk_pb2.GetSourceFileResponse, @@ -123,6 +131,14 @@ class ArtifactPublicServiceStub: Gets the single-source-of-truth file of a catalog. """ + SearchSourceFiles: grpc.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.chunk_pb2.SearchSourceFilesRequest, + artifact.artifact.v1alpha.chunk_pb2.SearchSourceFilesResponse, + ] + """Search single-source-of-truth files + + Searches the single-source-of-truth files of a catalog. + """ UpdateChunk: grpc.UnaryUnaryMultiCallable[ artifact.artifact.v1alpha.chunk_pb2.UpdateChunkRequest, artifact.artifact.v1alpha.chunk_pb2.UpdateChunkResponse, @@ -273,6 +289,14 @@ class ArtifactPublicServiceAsyncStub: Returns a paginated list of catalog chunks. """ + SearchChunks: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.chunk_pb2.SearchChunksRequest, + artifact.artifact.v1alpha.chunk_pb2.SearchChunksResponse, + ] + """Search catalog chunks + + Returns a paginated list of catalog chunks based on search criteria. + """ GetSourceFile: grpc.aio.UnaryUnaryMultiCallable[ artifact.artifact.v1alpha.chunk_pb2.GetSourceFileRequest, artifact.artifact.v1alpha.chunk_pb2.GetSourceFileResponse, @@ -281,6 +305,14 @@ class ArtifactPublicServiceAsyncStub: Gets the single-source-of-truth file of a catalog. """ + SearchSourceFiles: grpc.aio.UnaryUnaryMultiCallable[ + artifact.artifact.v1alpha.chunk_pb2.SearchSourceFilesRequest, + artifact.artifact.v1alpha.chunk_pb2.SearchSourceFilesResponse, + ] + """Search single-source-of-truth files + + Searches the single-source-of-truth files of a catalog. + """ UpdateChunk: grpc.aio.UnaryUnaryMultiCallable[ artifact.artifact.v1alpha.chunk_pb2.UpdateChunkRequest, artifact.artifact.v1alpha.chunk_pb2.UpdateChunkResponse, @@ -454,6 +486,16 @@ class ArtifactPublicServiceServicer(metaclass=abc.ABCMeta): Returns a paginated list of catalog chunks. """ @abc.abstractmethod + def SearchChunks( + self, + request: artifact.artifact.v1alpha.chunk_pb2.SearchChunksRequest, + context: _ServicerContext, + ) -> typing.Union[artifact.artifact.v1alpha.chunk_pb2.SearchChunksResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.chunk_pb2.SearchChunksResponse]]: + """Search catalog chunks + + Returns a paginated list of catalog chunks based on search criteria. + """ + @abc.abstractmethod def GetSourceFile( self, request: artifact.artifact.v1alpha.chunk_pb2.GetSourceFileRequest, @@ -464,6 +506,16 @@ class ArtifactPublicServiceServicer(metaclass=abc.ABCMeta): Gets the single-source-of-truth file of a catalog. """ @abc.abstractmethod + def SearchSourceFiles( + self, + request: artifact.artifact.v1alpha.chunk_pb2.SearchSourceFilesRequest, + context: _ServicerContext, + ) -> typing.Union[artifact.artifact.v1alpha.chunk_pb2.SearchSourceFilesResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.chunk_pb2.SearchSourceFilesResponse]]: + """Search single-source-of-truth files + + Searches the single-source-of-truth files of a catalog. + """ + @abc.abstractmethod def UpdateChunk( self, request: artifact.artifact.v1alpha.chunk_pb2.UpdateChunkRequest, diff --git a/artifact/artifact/v1alpha/chunk_pb2.py b/artifact/artifact/v1alpha/chunk_pb2.py index 8a56b5a..e285ab5 100644 --- a/artifact/artifact/v1alpha/chunk_pb2.py +++ b/artifact/artifact/v1alpha/chunk_pb2.py @@ -14,7 +14,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%artifact/artifact/v1alpha/chunk.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x01\n\x05\x43hunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\x12\x1b\n\tstart_pos\x18\x04 \x01(\rR\x08startPos\x12\x17\n\x07\x65nd_pos\x18\x05 \x01(\rR\x06\x65ndPos\x12\x16\n\x06tokens\x18\x06 \x01(\rR\x06tokens\x12;\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12*\n\x11original_file_uid\x18\x08 \x01(\tR\x0foriginalFileUid\"\x8f\x01\n\x11ListChunksRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\x12\x1d\n\nchunk_uids\x18\x04 \x03(\tR\tchunkUids\"N\n\x12ListChunksResponse\x12\x38\n\x06\x63hunks\x18\x01 \x03(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x06\x63hunks\"\xcc\x01\n\nSourceFile\x12*\n\x11original_file_uid\x18\x01 \x01(\tR\x0foriginalFileUid\x12\x18\n\x07\x63ontent\x18\x03 \x01(\tR\x07\x63ontent\x12;\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\"s\n\x14GetSourceFileRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\"_\n\x15GetSourceFileResponse\x12\x46\n\x0bsource_file\x18\x01 \x01(\x0b\x32%.artifact.artifact.v1alpha.SourceFileR\nsourceFile\"S\n\x12UpdateChunkRequest\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\"M\n\x13UpdateChunkResponse\x12\x36\n\x05\x63hunk\x18\x01 \x01(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x05\x63hunk\"\x97\x01\n\x1dSimilarityChunksSearchRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x1f\n\x0btext_prompt\x18\x03 \x01(\tR\ntextPrompt\x12\x13\n\x05top_k\x18\x04 \x01(\rR\x04topK\"s\n\x1eSimilarityChunksSearchResponse\x12Q\n\x0esimilar_chunks\x18\x01 \x03(\x0b\x32*.artifact.artifact.v1alpha.SimilarityChunkR\rsimilarChunks\"\xe6\x01\n\x0fSimilarityChunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12)\n\x10similarity_score\x18\x02 \x01(\x02R\x0fsimilarityScore\x12!\n\x0ctext_content\x18\x03 \x01(\tR\x0btextContent\x12\x1f\n\x0bsource_file\x18\x04 \x01(\tR\nsourceFile\x12G\n\x0e\x63hunk_metadata\x18\x05 \x01(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\rchunkMetadataB\xfe\x01\n\x1d\x63om.artifact.artifact.v1alphaB\nChunkProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%artifact/artifact/v1alpha/chunk.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x01\n\x05\x43hunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\x12\x1b\n\tstart_pos\x18\x04 \x01(\rR\x08startPos\x12\x17\n\x07\x65nd_pos\x18\x05 \x01(\rR\x06\x65ndPos\x12\x16\n\x06tokens\x18\x06 \x01(\rR\x06tokens\x12;\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12*\n\x11original_file_uid\x18\x08 \x01(\tR\x0foriginalFileUid\"p\n\x11ListChunksRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\"N\n\x12ListChunksResponse\x12\x38\n\x06\x63hunks\x18\x01 \x03(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x06\x63hunks\"W\n\x13SearchChunksRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\nchunk_uids\x18\x02 \x03(\tR\tchunkUids\"P\n\x14SearchChunksResponse\x12\x38\n\x06\x63hunks\x18\x01 \x03(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x06\x63hunks\"\xfa\x01\n\nSourceFile\x12*\n\x11original_file_uid\x18\x01 \x01(\tR\x0foriginalFileUid\x12\x18\n\x07\x63ontent\x18\x03 \x01(\tR\x07\x63ontent\x12;\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\x12,\n\x12original_file_name\x18\x07 \x01(\tR\x10originalFileName\"s\n\x14GetSourceFileRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x19\n\x08\x66ile_uid\x18\x03 \x01(\tR\x07\x66ileUid\"_\n\x15GetSourceFileResponse\x12\x46\n\x0bsource_file\x18\x01 \x01(\x0b\x32%.artifact.artifact.v1alpha.SourceFileR\nsourceFile\"Z\n\x18SearchSourceFilesRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1b\n\tfile_uids\x18\x02 \x03(\tR\x08\x66ileUids\"e\n\x19SearchSourceFilesResponse\x12H\n\x0csource_files\x18\x01 \x03(\x0b\x32%.artifact.artifact.v1alpha.SourceFileR\x0bsourceFiles\"S\n\x12UpdateChunkRequest\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12 \n\x0bretrievable\x18\x02 \x01(\x08R\x0bretrievable\"M\n\x13UpdateChunkResponse\x12\x36\n\x05\x63hunk\x18\x01 \x01(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\x05\x63hunk\"\x97\x01\n\x1dSimilarityChunksSearchRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x1f\n\x0btext_prompt\x18\x03 \x01(\tR\ntextPrompt\x12\x13\n\x05top_k\x18\x04 \x01(\rR\x04topK\"s\n\x1eSimilarityChunksSearchResponse\x12Q\n\x0esimilar_chunks\x18\x01 \x03(\x0b\x32*.artifact.artifact.v1alpha.SimilarityChunkR\rsimilarChunks\"\xe6\x01\n\x0fSimilarityChunk\x12\x1b\n\tchunk_uid\x18\x01 \x01(\tR\x08\x63hunkUid\x12)\n\x10similarity_score\x18\x02 \x01(\x02R\x0fsimilarityScore\x12!\n\x0ctext_content\x18\x03 \x01(\tR\x0btextContent\x12\x1f\n\x0bsource_file\x18\x04 \x01(\tR\nsourceFile\x12G\n\x0e\x63hunk_metadata\x18\x05 \x01(\x0b\x32 .artifact.artifact.v1alpha.ChunkR\rchunkMetadataB\xfe\x01\n\x1d\x63om.artifact.artifact.v1alphaB\nChunkProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -25,24 +25,32 @@ DESCRIPTOR._serialized_options = b'\n\035com.artifact.artifact.v1alphaB\nChunkProtoP\001ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\242\002\003AAX\252\002\031Artifact.Artifact.V1alpha\312\002\031Artifact\\Artifact\\V1alpha\342\002%Artifact\\Artifact\\V1alpha\\GPBMetadata\352\002\033Artifact::Artifact::V1alpha' _globals['_CHUNK']._serialized_start=102 _globals['_CHUNK']._serialized_end=355 - _globals['_LISTCHUNKSREQUEST']._serialized_start=358 - _globals['_LISTCHUNKSREQUEST']._serialized_end=501 - _globals['_LISTCHUNKSRESPONSE']._serialized_start=503 - _globals['_LISTCHUNKSRESPONSE']._serialized_end=581 - _globals['_SOURCEFILE']._serialized_start=584 - _globals['_SOURCEFILE']._serialized_end=788 - _globals['_GETSOURCEFILEREQUEST']._serialized_start=790 - _globals['_GETSOURCEFILEREQUEST']._serialized_end=905 - _globals['_GETSOURCEFILERESPONSE']._serialized_start=907 - _globals['_GETSOURCEFILERESPONSE']._serialized_end=1002 - _globals['_UPDATECHUNKREQUEST']._serialized_start=1004 - _globals['_UPDATECHUNKREQUEST']._serialized_end=1087 - _globals['_UPDATECHUNKRESPONSE']._serialized_start=1089 - _globals['_UPDATECHUNKRESPONSE']._serialized_end=1166 - _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_start=1169 - _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_end=1320 - _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_start=1322 - _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_end=1437 - _globals['_SIMILARITYCHUNK']._serialized_start=1440 - _globals['_SIMILARITYCHUNK']._serialized_end=1670 + _globals['_LISTCHUNKSREQUEST']._serialized_start=357 + _globals['_LISTCHUNKSREQUEST']._serialized_end=469 + _globals['_LISTCHUNKSRESPONSE']._serialized_start=471 + _globals['_LISTCHUNKSRESPONSE']._serialized_end=549 + _globals['_SEARCHCHUNKSREQUEST']._serialized_start=551 + _globals['_SEARCHCHUNKSREQUEST']._serialized_end=638 + _globals['_SEARCHCHUNKSRESPONSE']._serialized_start=640 + _globals['_SEARCHCHUNKSRESPONSE']._serialized_end=720 + _globals['_SOURCEFILE']._serialized_start=723 + _globals['_SOURCEFILE']._serialized_end=973 + _globals['_GETSOURCEFILEREQUEST']._serialized_start=975 + _globals['_GETSOURCEFILEREQUEST']._serialized_end=1090 + _globals['_GETSOURCEFILERESPONSE']._serialized_start=1092 + _globals['_GETSOURCEFILERESPONSE']._serialized_end=1187 + _globals['_SEARCHSOURCEFILESREQUEST']._serialized_start=1189 + _globals['_SEARCHSOURCEFILESREQUEST']._serialized_end=1279 + _globals['_SEARCHSOURCEFILESRESPONSE']._serialized_start=1281 + _globals['_SEARCHSOURCEFILESRESPONSE']._serialized_end=1382 + _globals['_UPDATECHUNKREQUEST']._serialized_start=1384 + _globals['_UPDATECHUNKREQUEST']._serialized_end=1467 + _globals['_UPDATECHUNKRESPONSE']._serialized_start=1469 + _globals['_UPDATECHUNKRESPONSE']._serialized_end=1546 + _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_start=1549 + _globals['_SIMILARITYCHUNKSSEARCHREQUEST']._serialized_end=1700 + _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_start=1702 + _globals['_SIMILARITYCHUNKSSEARCHRESPONSE']._serialized_end=1817 + _globals['_SIMILARITYCHUNK']._serialized_start=1820 + _globals['_SIMILARITYCHUNK']._serialized_end=2050 # @@protoc_insertion_point(module_scope) diff --git a/artifact/artifact/v1alpha/chunk_pb2.pyi b/artifact/artifact/v1alpha/chunk_pb2.pyi index 6b21548..46be5d1 100644 --- a/artifact/artifact/v1alpha/chunk_pb2.pyi +++ b/artifact/artifact/v1alpha/chunk_pb2.pyi @@ -73,25 +73,20 @@ class ListChunksRequest(google.protobuf.message.Message): NAMESPACE_ID_FIELD_NUMBER: builtins.int CATALOG_ID_FIELD_NUMBER: builtins.int FILE_UID_FIELD_NUMBER: builtins.int - CHUNK_UIDS_FIELD_NUMBER: builtins.int namespace_id: builtins.str """owner/namespace id (not uid)""" catalog_id: builtins.str """catalog id (not uid)""" file_uid: builtins.str """unique identifier of the file""" - @property - def chunk_uids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """repeated chunk uid(not implemented yet)""" def __init__( self, *, namespace_id: builtins.str = ..., catalog_id: builtins.str = ..., file_uid: builtins.str = ..., - chunk_uids: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "chunk_uids", b"chunk_uids", "file_uid", b"file_uid", "namespace_id", b"namespace_id"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "file_uid", b"file_uid", "namespace_id", b"namespace_id"]) -> None: ... global___ListChunksRequest = ListChunksRequest @@ -114,6 +109,48 @@ class ListChunksResponse(google.protobuf.message.Message): global___ListChunksResponse = ListChunksResponse +@typing_extensions.final +class SearchChunksRequest(google.protobuf.message.Message): + """Search chunks request""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_ID_FIELD_NUMBER: builtins.int + CHUNK_UIDS_FIELD_NUMBER: builtins.int + namespace_id: builtins.str + """owner/namespace id (not uid)""" + @property + def chunk_uids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """chunk uids""" + def __init__( + self, + *, + namespace_id: builtins.str = ..., + chunk_uids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["chunk_uids", b"chunk_uids", "namespace_id", b"namespace_id"]) -> None: ... + +global___SearchChunksRequest = SearchChunksRequest + +@typing_extensions.final +class SearchChunksResponse(google.protobuf.message.Message): + """Search chunks response""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CHUNKS_FIELD_NUMBER: builtins.int + @property + def chunks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Chunk]: + """repeated chunks""" + def __init__( + self, + *, + chunks: collections.abc.Iterable[global___Chunk] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["chunks", b"chunks"]) -> None: ... + +global___SearchChunksResponse = SearchChunksResponse + @typing_extensions.final class SourceFile(google.protobuf.message.Message): """The SourceFile message represents a source file in the artifact system.""" @@ -124,6 +161,7 @@ class SourceFile(google.protobuf.message.Message): CONTENT_FIELD_NUMBER: builtins.int CREATE_TIME_FIELD_NUMBER: builtins.int UPDATE_TIME_FIELD_NUMBER: builtins.int + ORIGINAL_FILE_NAME_FIELD_NUMBER: builtins.int original_file_uid: builtins.str """original file unique identifier""" content: builtins.str @@ -134,6 +172,8 @@ class SourceFile(google.protobuf.message.Message): @property def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """update time of the source file""" + original_file_name: builtins.str + """original file name""" def __init__( self, *, @@ -141,9 +181,10 @@ class SourceFile(google.protobuf.message.Message): content: builtins.str = ..., create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + original_file_name: builtins.str = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["create_time", b"create_time", "update_time", b"update_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "create_time", b"create_time", "original_file_uid", b"original_file_uid", "update_time", b"update_time"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["content", b"content", "create_time", b"create_time", "original_file_name", b"original_file_name", "original_file_uid", b"original_file_uid", "update_time", b"update_time"]) -> None: ... global___SourceFile = SourceFile @@ -193,6 +234,48 @@ class GetSourceFileResponse(google.protobuf.message.Message): global___GetSourceFileResponse = GetSourceFileResponse +@typing_extensions.final +class SearchSourceFilesRequest(google.protobuf.message.Message): + """search source file request""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_ID_FIELD_NUMBER: builtins.int + FILE_UIDS_FIELD_NUMBER: builtins.int + namespace_id: builtins.str + """owner/namespace id""" + @property + def file_uids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """search file uid""" + def __init__( + self, + *, + namespace_id: builtins.str = ..., + file_uids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["file_uids", b"file_uids", "namespace_id", b"namespace_id"]) -> None: ... + +global___SearchSourceFilesRequest = SearchSourceFilesRequest + +@typing_extensions.final +class SearchSourceFilesResponse(google.protobuf.message.Message): + """search source file response""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SOURCE_FILES_FIELD_NUMBER: builtins.int + @property + def source_files(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SourceFile]: + """source files""" + def __init__( + self, + *, + source_files: collections.abc.Iterable[global___SourceFile] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["source_files", b"source_files"]) -> None: ... + +global___SearchSourceFilesResponse = SearchSourceFilesResponse + @typing_extensions.final class UpdateChunkRequest(google.protobuf.message.Message): """Create chunk response"""