Skip to content

Commit

Permalink
chore: auto-gen by protobufs
Browse files Browse the repository at this point in the history
triggered by commit: instill-ai/protobufs@055bbd0
  • Loading branch information
droplet-bot committed Aug 5, 2024
1 parent 8b95920 commit 17b74a9
Show file tree
Hide file tree
Showing 13 changed files with 571 additions and 17 deletions.
4 changes: 2 additions & 2 deletions artifact/artifact/v1alpha/artifact_pb2.py

Large diffs are not rendered by default.

44 changes: 32 additions & 12 deletions artifact/artifact/v1alpha/artifact_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ class _FileProcessStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapp
FILE_PROCESS_STATUS_NOTSTARTED: _FileProcessStatus.ValueType # 1
"""NOTSTARTED"""
FILE_PROCESS_STATUS_WAITING: _FileProcessStatus.ValueType # 2
"""waiting"""
"""file is waiting for embedding process"""
FILE_PROCESS_STATUS_CONVERTING: _FileProcessStatus.ValueType # 3
"""embedding process is running"""
"""file is converting"""
FILE_PROCESS_STATUS_CHUNKING: _FileProcessStatus.ValueType # 4
"""embedding process is done"""
"""file is chunking"""
FILE_PROCESS_STATUS_EMBEDDING: _FileProcessStatus.ValueType # 5
"""embedding process is failed"""
"""file is embedding"""
FILE_PROCESS_STATUS_COMPLETED: _FileProcessStatus.ValueType # 6
"""COMPLETED"""
"""completed"""
FILE_PROCESS_STATUS_FAILED: _FileProcessStatus.ValueType # 7
"""Failed"""
"""failed"""

class FileProcessStatus(_FileProcessStatus, metaclass=_FileProcessStatusEnumTypeWrapper):
"""file embedding process status"""
Expand All @@ -51,17 +51,17 @@ FILE_PROCESS_STATUS_UNSPECIFIED: FileProcessStatus.ValueType # 0
FILE_PROCESS_STATUS_NOTSTARTED: FileProcessStatus.ValueType # 1
"""NOTSTARTED"""
FILE_PROCESS_STATUS_WAITING: FileProcessStatus.ValueType # 2
"""waiting"""
"""file is waiting for embedding process"""
FILE_PROCESS_STATUS_CONVERTING: FileProcessStatus.ValueType # 3
"""embedding process is running"""
"""file is converting"""
FILE_PROCESS_STATUS_CHUNKING: FileProcessStatus.ValueType # 4
"""embedding process is done"""
"""file is chunking"""
FILE_PROCESS_STATUS_EMBEDDING: FileProcessStatus.ValueType # 5
"""embedding process is failed"""
"""file is embedding"""
FILE_PROCESS_STATUS_COMPLETED: FileProcessStatus.ValueType # 6
"""COMPLETED"""
"""completed"""
FILE_PROCESS_STATUS_FAILED: FileProcessStatus.ValueType # 7
"""Failed"""
"""failed"""
global___FileProcessStatus = FileProcessStatus

class _FileType:
Expand All @@ -84,6 +84,16 @@ class _FileTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumT
"""JPEG"""
FILE_TYPE_JPG: _FileType.ValueType # 6
"""JPG"""
FILE_TYPE_HTML: _FileType.ValueType # 7
"""HTML"""
FILE_TYPE_DOCX: _FileType.ValueType # 8
"""DOCX"""
FILE_TYPE_DOC: _FileType.ValueType # 9
"""DOC"""
FILE_TYPE_PPT: _FileType.ValueType # 10
"""PPT"""
FILE_TYPE_PPTX: _FileType.ValueType # 11
"""PPTX"""

class FileType(_FileType, metaclass=_FileTypeEnumTypeWrapper):
"""file type"""
Expand All @@ -102,6 +112,16 @@ FILE_TYPE_JPEG: FileType.ValueType # 5
"""JPEG"""
FILE_TYPE_JPG: FileType.ValueType # 6
"""JPG"""
FILE_TYPE_HTML: FileType.ValueType # 7
"""HTML"""
FILE_TYPE_DOCX: FileType.ValueType # 8
"""DOCX"""
FILE_TYPE_DOC: FileType.ValueType # 9
"""DOC"""
FILE_TYPE_PPT: FileType.ValueType # 10
"""PPT"""
FILE_TYPE_PPTX: FileType.ValueType # 11
"""PPTX"""
global___FileType = FileType

@typing_extensions.final
Expand Down
12 changes: 9 additions & 3 deletions artifact/artifact/v1alpha/artifact_public_service_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from artifact.artifact.v1alpha import artifact_pb2 as artifact_dot_artifact_dot_v1alpha_dot_artifact__pb2
from artifact.artifact.v1alpha import chunk_pb2 as artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2
from artifact.artifact.v1alpha import file_catalog_pb2 as artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2
from artifact.artifact.v1alpha import qa_pb2 as artifact_dot_artifact_dot_v1alpha_dot_qa__pb2


class ArtifactPublicServiceStub(object):
Expand Down Expand Up @@ -87,6 +89,16 @@ def __init__(self, channel):
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchRequest.SerializeToString,
response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.FromString,
)
self.QuestionAnswering = channel.unary_unary(
'/artifact.artifact.v1alpha.ArtifactPublicService/QuestionAnswering',
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringRequest.SerializeToString,
response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringResponse.FromString,
)
self.GetFileCatalog = channel.unary_unary(
'/artifact.artifact.v1alpha.ArtifactPublicService/GetFileCatalog',
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogRequest.SerializeToString,
response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogResponse.FromString,
)


class ArtifactPublicServiceServicer(object):
Expand Down Expand Up @@ -196,6 +208,20 @@ def SimilarityChunksSearch(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def QuestionAnswering(self, request, context):
"""Question Answering
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def GetFileCatalog(self, request, context):
"""Get file catalog
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')


def add_ArtifactPublicServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
Expand Down Expand Up @@ -269,6 +295,16 @@ def add_ArtifactPublicServiceServicer_to_server(servicer, server):
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchRequest.FromString,
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.SerializeToString,
),
'QuestionAnswering': grpc.unary_unary_rpc_method_handler(
servicer.QuestionAnswering,
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringRequest.FromString,
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringResponse.SerializeToString,
),
'GetFileCatalog': grpc.unary_unary_rpc_method_handler(
servicer.GetFileCatalog,
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogRequest.FromString,
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'artifact.artifact.v1alpha.ArtifactPublicService', rpc_method_handlers)
Expand Down Expand Up @@ -518,3 +554,37 @@ def SimilarityChunksSearch(request,
artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def QuestionAnswering(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/QuestionAnswering',
artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringRequest.SerializeToString,
artifact_dot_artifact_dot_v1alpha_dot_qa__pb2.QuestionAnsweringResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def GetFileCatalog(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/GetFileCatalog',
artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogRequest.SerializeToString,
artifact_dot_artifact_dot_v1alpha_dot_file__catalog__pb2.GetFileCatalogResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Loading

0 comments on commit 17b74a9

Please sign in to comment.