Skip to content

Commit 8bdec8b

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@fd47fac
1 parent ff289c3 commit 8bdec8b

File tree

5 files changed

+147
-12
lines changed

5 files changed

+147
-12
lines changed

artifact/artifact/v1alpha/artifact_public_service_pb2.py

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def __init__(self, channel):
7575
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.UpdateFileRequest.SerializeToString,
7676
response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.UpdateFileResponse.FromString,
7777
)
78+
self.ReprocessFile = channel.unary_unary(
79+
'/artifact.artifact.v1alpha.ArtifactPublicService/ReprocessFile',
80+
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.ReprocessFileRequest.SerializeToString,
81+
response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.ReprocessFileResponse.FromString,
82+
)
7883
self.DeleteFile = channel.unary_unary(
7984
'/artifact.artifact.v1alpha.ArtifactPublicService/DeleteFile',
8085
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.DeleteFileRequest.SerializeToString,
@@ -221,6 +226,16 @@ def UpdateFile(self, request, context):
221226
context.set_details('Method not implemented!')
222227
raise NotImplementedError('Method not implemented!')
223228

229+
def ReprocessFile(self, request, context):
230+
"""Reprocess a file
231+
232+
Triggers reprocessing of a file with its current configuration.
233+
This will regenerate embeddings, chunks, and summaries.
234+
"""
235+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
236+
context.set_details('Method not implemented!')
237+
raise NotImplementedError('Method not implemented!')
238+
224239
def DeleteFile(self, request, context):
225240
"""Delete a file
226241
@@ -351,6 +366,11 @@ def add_ArtifactPublicServiceServicer_to_server(servicer, server):
351366
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.UpdateFileRequest.FromString,
352367
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.UpdateFileResponse.SerializeToString,
353368
),
369+
'ReprocessFile': grpc.unary_unary_rpc_method_handler(
370+
servicer.ReprocessFile,
371+
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.ReprocessFileRequest.FromString,
372+
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.ReprocessFileResponse.SerializeToString,
373+
),
354374
'DeleteFile': grpc.unary_unary_rpc_method_handler(
355375
servicer.DeleteFile,
356376
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_file__pb2.DeleteFileRequest.FromString,
@@ -590,6 +610,23 @@ def UpdateFile(request,
590610
options, channel_credentials,
591611
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
592612

613+
@staticmethod
614+
def ReprocessFile(request,
615+
target,
616+
options=(),
617+
channel_credentials=None,
618+
call_credentials=None,
619+
insecure=False,
620+
compression=None,
621+
wait_for_ready=None,
622+
timeout=None,
623+
metadata=None):
624+
return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ReprocessFile',
625+
artifact_dot_artifact_dot_v1alpha_dot_file__pb2.ReprocessFileRequest.SerializeToString,
626+
artifact_dot_artifact_dot_v1alpha_dot_file__pb2.ReprocessFileResponse.FromString,
627+
options, channel_credentials,
628+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
629+
593630
@staticmethod
594631
def DeleteFile(request,
595632
target,

0 commit comments

Comments
 (0)