-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: PoAn Yang <[email protected]>
- Loading branch information
1 parent
ab949bb
commit ef450e1
Showing
6 changed files
with
516 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
"""Client and server classes corresponding to protobuf-defined services.""" | ||
import grpc | ||
|
||
from profilerrpc import profilerrpc_pb2 as profilerrpc_dot_profilerrpc__pb2 | ||
|
||
|
||
class ProfilerStub(object): | ||
"""Missing associated documentation comment in .proto file.""" | ||
|
||
def __init__(self, channel): | ||
"""Constructor. | ||
Args: | ||
channel: A grpc.Channel. | ||
""" | ||
self.ProfilerOP = channel.unary_unary( | ||
'/profilerrpc.Profiler/ProfilerOP', | ||
request_serializer=profilerrpc_dot_profilerrpc__pb2.ProfilerOPRequest.SerializeToString, | ||
response_deserializer=profilerrpc_dot_profilerrpc__pb2.ProfilerOPResponse.FromString, | ||
) | ||
|
||
|
||
class ProfilerServicer(object): | ||
"""Missing associated documentation comment in .proto file.""" | ||
|
||
def ProfilerOP(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_ProfilerServicer_to_server(servicer, server): | ||
rpc_method_handlers = { | ||
'ProfilerOP': grpc.unary_unary_rpc_method_handler( | ||
servicer.ProfilerOP, | ||
request_deserializer=profilerrpc_dot_profilerrpc__pb2.ProfilerOPRequest.FromString, | ||
response_serializer=profilerrpc_dot_profilerrpc__pb2.ProfilerOPResponse.SerializeToString, | ||
), | ||
} | ||
generic_handler = grpc.method_handlers_generic_handler( | ||
'profilerrpc.Profiler', rpc_method_handlers) | ||
server.add_generic_rpc_handlers((generic_handler,)) | ||
|
||
|
||
# This class is part of an EXPERIMENTAL API. | ||
class Profiler(object): | ||
"""Missing associated documentation comment in .proto file.""" | ||
|
||
@staticmethod | ||
def ProfilerOP(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, '/profilerrpc.Profiler/ProfilerOP', | ||
profilerrpc_dot_profilerrpc__pb2.ProfilerOPRequest.SerializeToString, | ||
profilerrpc_dot_profilerrpc__pb2.ProfilerOPResponse.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.