aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/pb/test/proto/test_services.rb
blob: 9df9cc5860b027758386054fbc87b7803c8757ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: test/proto/test.proto for package 'grpc.testing'

require 'grpc'
require 'test/proto/test'

module Grpc
  module Testing
    module TestService

      # TODO: add proto service documentation here
      class Service

        include GRPC::GenericService

        self.marshal_class_method = :encode
        self.unmarshal_class_method = :decode
        self.service_name = 'grpc.testing.TestService'

        rpc :EmptyCall, Empty, Empty
        rpc :UnaryCall, SimpleRequest, SimpleResponse
        rpc :StreamingOutputCall, StreamingOutputCallRequest, stream(StreamingOutputCallResponse)
        rpc :StreamingInputCall, stream(StreamingInputCallRequest), StreamingInputCallResponse
        rpc :FullDuplexCall, stream(StreamingOutputCallRequest), stream(StreamingOutputCallResponse)
        rpc :HalfDuplexCall, stream(StreamingOutputCallRequest), stream(StreamingOutputCallResponse)
      end

      Stub = Service.rpc_stub_class
    end
    module UnimplementedService

      # TODO: add proto service documentation here
      class Service

        include GRPC::GenericService

        self.marshal_class_method = :encode
        self.unmarshal_class_method = :decode
        self.service_name = 'grpc.testing.UnimplementedService'

        rpc :UnimplementedCall, Empty, Empty
      end

      Stub = Service.rpc_stub_class
    end
    module ReconnectService

      # TODO: add proto service documentation here
      class Service

        include GRPC::GenericService

        self.marshal_class_method = :encode
        self.unmarshal_class_method = :decode
        self.service_name = 'grpc.testing.ReconnectService'

        rpc :Start, Empty, Empty
        rpc :Stop, Empty, ReconnectInfo
      end

      Stub = Service.rpc_stub_class
    end
  end
end