OLD | NEW |
(Empty) | |
| 1 # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 # Source: test/proto/test.proto for package 'grpc.testing' |
| 3 |
| 4 require 'grpc' |
| 5 require 'test/proto/test' |
| 6 |
| 7 module Grpc |
| 8 module Testing |
| 9 module TestService |
| 10 |
| 11 # TODO: add proto service documentation here |
| 12 class Service |
| 13 |
| 14 include GRPC::GenericService |
| 15 |
| 16 self.marshal_class_method = :encode |
| 17 self.unmarshal_class_method = :decode |
| 18 self.service_name = 'grpc.testing.TestService' |
| 19 |
| 20 rpc :EmptyCall, Empty, Empty |
| 21 rpc :UnaryCall, SimpleRequest, SimpleResponse |
| 22 rpc :StreamingOutputCall, StreamingOutputCallRequest, stream(StreamingOu
tputCallResponse) |
| 23 rpc :StreamingInputCall, stream(StreamingInputCallRequest), StreamingInp
utCallResponse |
| 24 rpc :FullDuplexCall, stream(StreamingOutputCallRequest), stream(Streamin
gOutputCallResponse) |
| 25 rpc :HalfDuplexCall, stream(StreamingOutputCallRequest), stream(Streamin
gOutputCallResponse) |
| 26 end |
| 27 |
| 28 Stub = Service.rpc_stub_class |
| 29 end |
| 30 module UnimplementedService |
| 31 |
| 32 # TODO: add proto service documentation here |
| 33 class Service |
| 34 |
| 35 include GRPC::GenericService |
| 36 |
| 37 self.marshal_class_method = :encode |
| 38 self.unmarshal_class_method = :decode |
| 39 self.service_name = 'grpc.testing.UnimplementedService' |
| 40 |
| 41 rpc :UnimplementedCall, Empty, Empty |
| 42 end |
| 43 |
| 44 Stub = Service.rpc_stub_class |
| 45 end |
| 46 module ReconnectService |
| 47 |
| 48 # TODO: add proto service documentation here |
| 49 class Service |
| 50 |
| 51 include GRPC::GenericService |
| 52 |
| 53 self.marshal_class_method = :encode |
| 54 self.unmarshal_class_method = :decode |
| 55 self.service_name = 'grpc.testing.ReconnectService' |
| 56 |
| 57 rpc :Start, Empty, Empty |
| 58 rpc :Stop, Empty, ReconnectInfo |
| 59 end |
| 60 |
| 61 Stub = Service.rpc_stub_class |
| 62 end |
| 63 end |
| 64 end |
OLD | NEW |