Here are the examples of the python api client_pb2.request.SerializeToString taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
Source : client_pb2_grpc.py
with Apache License 2.0
from uni-tue-kn
with Apache License 2.0
from uni-tue-kn
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.requestTunnelByIP = channel.unary_unary(
'/TunnelService/requestTunnelByIP',
request_serializer=client__pb2.request.SerializeToString,
response_deserializer=client__pb2.tunnel.FromString,
)
self.renewTunnelByIP = channel.unary_unary(
'/TunnelService/renewTunnelByIP',
request_serializer=client__pb2.request.SerializeToString,
response_deserializer=client__pb2.tunnel.FromString,
)
self.deleteTunnelByIP = channel.unary_unary(
'/TunnelService/deleteTunnelByIP',
request_serializer=client__pb2.request.SerializeToString,
response_deserializer=client__pb2.status.FromString,
)
class TunnelServiceServicer(object):