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@8aff3ef
  • Loading branch information
droplet-bot committed Sep 27, 2024
1 parent 9745860 commit 29f8cd5
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 43 deletions.
8 changes: 4 additions & 4 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.

28 changes: 14 additions & 14 deletions artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def __init__(self, channel):
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.UpdateChunkRequest.SerializeToString,
response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.UpdateChunkResponse.FromString,
)
self.SimilarityChunksSearch = channel.unary_unary(
'/artifact.artifact.v1alpha.ArtifactPublicService/SimilarityChunksSearch',
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.ViewChunks = channel.unary_unary(
'/artifact.artifact.v1alpha.ArtifactPublicService/ViewChunks',
request_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ViewChunksRequest.SerializeToString,
response_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ViewChunksResponse.FromString,
)
self.QuestionAnswering = channel.unary_unary(
'/artifact.artifact.v1alpha.ArtifactPublicService/QuestionAnswering',
Expand Down Expand Up @@ -208,8 +208,8 @@ def UpdateChunk(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def SimilarityChunksSearch(self, request, context):
"""Retrieve similar chunks
def ViewChunks(self, request, context):
"""View similar chunks
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -304,10 +304,10 @@ def add_ArtifactPublicServiceServicer_to_server(servicer, server):
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.UpdateChunkRequest.FromString,
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.UpdateChunkResponse.SerializeToString,
),
'SimilarityChunksSearch': grpc.unary_unary_rpc_method_handler(
servicer.SimilarityChunksSearch,
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchRequest.FromString,
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.SerializeToString,
'ViewChunks': grpc.unary_unary_rpc_method_handler(
servicer.ViewChunks,
request_deserializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ViewChunksRequest.FromString,
response_serializer=artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ViewChunksResponse.SerializeToString,
),
'QuestionAnswering': grpc.unary_unary_rpc_method_handler(
servicer.QuestionAnswering,
Expand Down Expand Up @@ -558,7 +558,7 @@ def UpdateChunk(request,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def SimilarityChunksSearch(request,
def ViewChunks(request,
target,
options=(),
channel_credentials=None,
Expand All @@ -568,9 +568,9 @@ def SimilarityChunksSearch(request,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/SimilarityChunksSearch',
artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchRequest.SerializeToString,
artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.SimilarityChunksSearchResponse.FromString,
return grpc.experimental.unary_unary(request, target, '/artifact.artifact.v1alpha.ArtifactPublicService/ViewChunks',
artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ViewChunksRequest.SerializeToString,
artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2.ViewChunksResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

Expand Down
Loading

0 comments on commit 29f8cd5

Please sign in to comment.