Commit 970ea456 authored by Tross Yvormes's avatar Tross Yvormes
Browse files

Update to 0.5.0

parent cc877821
This diff is collapsed.
......@@ -316,6 +316,11 @@ class V1Stub(object):
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.List.SerializeToString,
response_deserializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.FromString,
)
self.TESTDatabaseUserUpdateManyStreaming = channel.stream_unary(
'/MurmurRPC.V1/TESTDatabaseUserUpdateManyStreaming',
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.SerializeToString,
response_deserializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.FromString,
)
class V1Servicer(object):
......@@ -864,6 +869,13 @@ class V1Servicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def TESTDatabaseUserUpdateManyStreaming(self, request_iterator, context):
"""Same as TESTDatabaseUserUpdateMany, but takes a stream instead.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_V1Servicer_to_server(servicer, server):
rpc_method_handlers = {
......@@ -1167,6 +1179,11 @@ def add_V1Servicer_to_server(servicer, server):
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.List.FromString,
response_serializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.SerializeToString,
),
'TESTDatabaseUserUpdateManyStreaming': grpc.stream_unary_rpc_method_handler(
servicer.TESTDatabaseUserUpdateManyStreaming,
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.FromString,
response_serializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'MurmurRPC.V1', rpc_method_handlers)
......
......@@ -927,4 +927,6 @@ service V1 {
// Note that only name on the DatabaseUser should be set, none of the other
// fields.
rpc TESTDatabaseUserUpdateMany(TESTDatabaseUser.List) returns(DatabaseUser.List);
// Same as TESTDatabaseUserUpdateMany, but takes a stream instead.
rpc TESTDatabaseUserUpdateManyStreaming(stream TESTDatabaseUser) returns(DatabaseUser.List);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment