mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-12 12:47:46 +01:00
68 lines
2.7 KiB
Python
68 lines
2.7 KiB
Python
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||
|
"""Client and server classes corresponding to protobuf-defined services."""
|
||
|
import grpc
|
||
|
from nexus.meta_api.proto import \
|
||
|
search_service_pb2 as \
|
||
|
nexus_dot_meta__api_dot_proto_dot_search__service__pb2
|
||
|
|
||
|
|
||
|
class SearchStub(object):
|
||
|
"""Missing associated documentation comment in .proto file."""
|
||
|
|
||
|
def __init__(self, channel):
|
||
|
"""Constructor.
|
||
|
|
||
|
Args:
|
||
|
channel: A grpc.Channel.
|
||
|
"""
|
||
|
self.search = channel.unary_unary(
|
||
|
'/nexus.meta_api.proto.Search/search',
|
||
|
request_serializer=nexus_dot_meta__api_dot_proto_dot_search__service__pb2.SearchRequest.SerializeToString,
|
||
|
response_deserializer=nexus_dot_meta__api_dot_proto_dot_search__service__pb2.SearchResponse.FromString,
|
||
|
)
|
||
|
|
||
|
|
||
|
class SearchServicer(object):
|
||
|
"""Missing associated documentation comment in .proto file."""
|
||
|
|
||
|
def search(self, request, context):
|
||
|
"""Missing associated documentation comment in .proto file."""
|
||
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||
|
context.set_details('Method not implemented!')
|
||
|
raise NotImplementedError('Method not implemented!')
|
||
|
|
||
|
|
||
|
def add_SearchServicer_to_server(servicer, server):
|
||
|
rpc_method_handlers = {
|
||
|
'search': grpc.unary_unary_rpc_method_handler(
|
||
|
servicer.search,
|
||
|
request_deserializer=nexus_dot_meta__api_dot_proto_dot_search__service__pb2.SearchRequest.FromString,
|
||
|
response_serializer=nexus_dot_meta__api_dot_proto_dot_search__service__pb2.SearchResponse.SerializeToString,
|
||
|
),
|
||
|
}
|
||
|
generic_handler = grpc.method_handlers_generic_handler(
|
||
|
'nexus.meta_api.proto.Search', rpc_method_handlers)
|
||
|
server.add_generic_rpc_handlers((generic_handler,))
|
||
|
|
||
|
|
||
|
# This class is part of an EXPERIMENTAL API.
|
||
|
class Search(object):
|
||
|
"""Missing associated documentation comment in .proto file."""
|
||
|
|
||
|
@staticmethod
|
||
|
def search(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, '/nexus.meta_api.proto.Search/search',
|
||
|
nexus_dot_meta__api_dot_proto_dot_search__service__pb2.SearchRequest.SerializeToString,
|
||
|
nexus_dot_meta__api_dot_proto_dot_search__service__pb2.SearchResponse.FromString,
|
||
|
options, channel_credentials,
|
||
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|