|
4 | 4 |
|
5 | 5 | from artifact.artifact.v1alpha import artifact_pb2 as artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2
|
6 | 6 | from artifact.artifact.v1alpha import chunk_pb2 as artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2
|
| 7 | +from artifact.artifact.v1alpha import file_catalog_pb2 as artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2 |
| 8 | +from artifact.artifact.v1alpha import qa_pb2 as artifact_dot_artifact_dot_v1alpha_dot_qa__pb2 |
7 | 9 |
|
8 | 10 |
|
9 | 11 | class ArtifactPublicServiceStub(object):
|
@@ -87,6 +89,16 @@ def __init__(self, channel):
|
87 | 89 | request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchRequest.SerializeToString,
|
88 | 90 | response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.FromString,
|
89 | 91 | )
|
| 92 | + self.QuestionAnswering = channel.unary_unary( |
| 93 | + '/artifact.artifact.v1alpha.ArtifactPublicService/QuestionAnswering', |
| 94 | + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringRequest.SerializeToString, |
| 95 | + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringResponse.FromString, |
| 96 | + ) |
| 97 | + self.GetFileCatalog = channel.unary_unary( |
| 98 | + '/artifact.artifact.v1alpha.ArtifactPublicService/GetFileCatalog', |
| 99 | + request_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogRequest.SerializeToString, |
| 100 | + response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogResponse.FromString, |
| 101 | + ) |
90 | 102 |
|
91 | 103 |
|
92 | 104 | class ArtifactPublicServiceServicer(object):
|
@@ -196,6 +208,20 @@ def SimilarityChunksSearch(self, request, context):
|
196 | 208 | context.set_details('Method not implemented!')
|
197 | 209 | raise NotImplementedError('Method not implemented!')
|
198 | 210 |
|
| 211 | + def QuestionAnswering(self, request, context): |
| 212 | + """Question Answering |
| 213 | + """ |
| 214 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 215 | + context.set_details('Method not implemented!') |
| 216 | + raise NotImplementedError('Method not implemented!') |
| 217 | + |
| 218 | + def GetFileCatalog(self, request, context): |
| 219 | + """Get file catalog |
| 220 | + """ |
| 221 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 222 | + context.set_details('Method not implemented!') |
| 223 | + raise NotImplementedError('Method not implemented!') |
| 224 | + |
199 | 225 |
|
200 | 226 | def add_ArtifactPublicServiceServicer_to_server(servicer, server):
|
201 | 227 | rpc_method_handlers = {
|
@@ -269,6 +295,16 @@ def add_ArtifactPublicServiceServicer_to_server(servicer, server):
|
269 | 295 | request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchRequest.FromString,
|
270 | 296 | response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.SerializeToString,
|
271 | 297 | ),
|
| 298 | + 'QuestionAnswering': grpc.unary_unary_rpc_method_handler( |
| 299 | + servicer.QuestionAnswering, |
| 300 | + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringRequest.FromString, |
| 301 | + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringResponse.SerializeToString, |
| 302 | + ), |
| 303 | + 'GetFileCatalog': grpc.unary_unary_rpc_method_handler( |
| 304 | + servicer.GetFileCatalog, |
| 305 | + request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogRequest.FromString, |
| 306 | + response_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogResponse.SerializeToString, |
| 307 | + ), |
272 | 308 | }
|
273 | 309 | generic_handler = grpc.method_handlers_generic_handler(
|
274 | 310 | 'artifact.artifact.v1alpha.ArtifactPublicService', rpc_method_handlers)
|
@@ -518,3 +554,37 @@ def SimilarityChunksSearch(request,
|
518 | 554 | artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.FromString,
|
519 | 555 | options, channel_credentials,
|
520 | 556 | insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
| 557 | + |
| 558 | + @staticmethod |
| 559 | + def QuestionAnswering(request, |
| 560 | + target, |
| 561 | + options=(), |
| 562 | + channel_credentials=None, |
| 563 | + call_credentials=None, |
| 564 | + insecure=False, |
| 565 | + compression=None, |
| 566 | + wait_for_ready=None, |
| 567 | + timeout=None, |
| 568 | + metadata=None): |
| 569 | + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/QuestionAnswering', |
| 570 | + artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringRequest.SerializeToString, |
| 571 | + artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringResponse.FromString, |
| 572 | + options, channel_credentials, |
| 573 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 574 | + |
| 575 | + @staticmethod |
| 576 | + def GetFileCatalog(request, |
| 577 | + target, |
| 578 | + options=(), |
| 579 | + channel_credentials=None, |
| 580 | + call_credentials=None, |
| 581 | + insecure=False, |
| 582 | + compression=None, |
| 583 | + wait_for_ready=None, |
| 584 | + timeout=None, |
| 585 | + metadata=None): |
| 586 | + return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/GetFileCatalog', |
| 587 | + artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogRequest.SerializeToString, |
| 588 | + artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogResponse.FromString, |
| 589 | + options, channel_credentials, |
| 590 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
0 commit comments