Skip to content

Commit

Permalink
updated services
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Sep 12, 2021
1 parent 0f7a556 commit 37a06c0
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 28 deletions.
10 changes: 6 additions & 4 deletions dist/csharp/PluginService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ static PluginServiceReflection() {
string.Concat(
"Ch1zZXJ2aWNlcy9wbHVnaW5fc2VydmljZS5wcm90bxIEZ3JwYxobZW50aXR5",
"L3BsdWdpbl9yZXF1ZXN0LnByb3RvGhVlbnRpdHkvcmVzcG9uc2UucHJvdG8a",
"G2VudGl0eS9zdHJlYW1fbWVzc2FnZS5wcm90bzJ9Cg1QbHVnaW5TZXJ2aWNl",
"EjEKCFJlZ2lzdGVyEhMuZ3JwYy5QbHVnaW5SZXF1ZXN0Gg4uZ3JwYy5SZXNw",
"b25zZSIAEjkKCVN1YnNjcmliZRITLmdycGMuUGx1Z2luUmVxdWVzdBoTLmdy",
"cGMuU3RyZWFtTWVzc2FnZSIAMAFCCFoGLjtncnBjYgZwcm90bzM="));
"G2VudGl0eS9zdHJlYW1fbWVzc2FnZS5wcm90bzK2AQoNUGx1Z2luU2Vydmlj",
"ZRIxCghSZWdpc3RlchITLmdycGMuUGx1Z2luUmVxdWVzdBoOLmdycGMuUmVz",
"cG9uc2UiABI5CglTdWJzY3JpYmUSEy5ncnBjLlBsdWdpblJlcXVlc3QaEy5n",
"cnBjLlN0cmVhbU1lc3NhZ2UiADABEjcKB1JlcXVlc3QSEy5ncnBjLlN0cmVh",
"bU1lc3NhZ2UaEy5ncnBjLlBsdWdpblJlcXVlc3QiACgBQghaBi47Z3JwY2IG",
"cHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Grpc.PluginRequestReflection.Descriptor, global::Grpc.ResponseReflection.Descriptor, global::Grpc.StreamMessageReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, null));
Expand Down
12 changes: 7 additions & 5 deletions dist/java/grpc/PluginServiceOuterClass.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/php/GPBMetadata/Services/PluginService.php
Binary file not shown.
16 changes: 13 additions & 3 deletions dist/python/services/plugin_service_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions dist/python/services/plugin_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ def __init__(self, channel):
request_serializer=entity_dot_plugin__request__pb2.PluginRequest.SerializeToString,
response_deserializer=entity_dot_stream__message__pb2.StreamMessage.FromString,
)
self.Request = channel.stream_unary(
'/grpc.PluginService/Request',
request_serializer=entity_dot_stream__message__pb2.StreamMessage.SerializeToString,
response_deserializer=entity_dot_plugin__request__pb2.PluginRequest.FromString,
)


class PluginServiceServicer(object):
Expand All @@ -43,6 +48,12 @@ def Subscribe(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def Request(self, request_iterator, 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_PluginServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
Expand All @@ -56,6 +67,11 @@ def add_PluginServiceServicer_to_server(servicer, server):
request_deserializer=entity_dot_plugin__request__pb2.PluginRequest.FromString,
response_serializer=entity_dot_stream__message__pb2.StreamMessage.SerializeToString,
),
'Request': grpc.stream_unary_rpc_method_handler(
servicer.Request,
request_deserializer=entity_dot_stream__message__pb2.StreamMessage.FromString,
response_serializer=entity_dot_plugin__request__pb2.PluginRequest.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'grpc.PluginService', rpc_method_handlers)
Expand Down Expand Up @@ -99,3 +115,20 @@ def Subscribe(request,
entity_dot_stream__message__pb2.StreamMessage.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def Request(request_iterator,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.stream_unary(request_iterator, target, '/grpc.PluginService/Request',
entity_dot_stream__message__pb2.StreamMessage.SerializeToString,
entity_dot_plugin__request__pb2.PluginRequest.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
38 changes: 22 additions & 16 deletions plugin_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions plugin_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37a06c0

Please sign in to comment.