Commit cc877821 authored by Tross Yvormes's avatar Tross Yvormes
Browse files

Update to 0.4.0

parent 00f2b153
This diff is collapsed.
......@@ -306,6 +306,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.TESTDatabaseUserRegisterManyStreaming = channel.stream_unary(
'/MurmurRPC.V1/TESTDatabaseUserRegisterManyStreaming',
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.SerializeToString,
response_deserializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.FromString,
)
self.TESTDatabaseUserUpdateMany = channel.unary_unary(
'/MurmurRPC.V1/TESTDatabaseUserUpdateMany',
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.List.SerializeToString,
......@@ -838,6 +843,13 @@ class V1Servicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def TESTDatabaseUserRegisterManyStreaming(self, request_iterator, context):
"""Same as TESTDatabaseUserRegisterMany, but takes a stream instead.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def TESTDatabaseUserUpdateMany(self, request, context):
"""TESTDatabaseUserUpdate updates multiple users. Users with colliding
names or aliases get overwritten. Parameters that are left out are
......@@ -1145,6 +1157,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,
),
'TESTDatabaseUserRegisterManyStreaming': grpc.stream_unary_rpc_method_handler(
servicer.TESTDatabaseUserRegisterManyStreaming,
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.FromString,
response_serializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.SerializeToString,
),
'TESTDatabaseUserUpdateMany': grpc.unary_unary_rpc_method_handler(
servicer.TESTDatabaseUserUpdateMany,
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.TESTDatabaseUser.List.FromString,
......
......@@ -916,6 +916,8 @@ service V1 {
// Note that only name on the DatabaseUser should be set, none of the other
// fields.
rpc TESTDatabaseUserRegisterMany(TESTDatabaseUser.List) returns(DatabaseUser.List);
// Same as TESTDatabaseUserRegisterMany, but takes a stream instead.
rpc TESTDatabaseUserRegisterManyStreaming(stream TESTDatabaseUser) returns (DatabaseUser.List);
// TESTDatabaseUserUpdate updates multiple users. Users with colliding
// names or aliases get overwritten. Parameters that are left out are
// unchanged. Returns a list of DatabaseUsers (with only IDs) that were
......
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