aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/bin/interop/third_party/stubby/testing/proto/messages.pb.rb
blob: 9a913f93e58161104241bf39d44fb1fc58fc337f (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
## Generated from third_party/stubby/testing/proto/messages.proto for grpc.testing
require 'beefcake'

require 'net/proto2/bridge/proto/message_set.pb'

module Grpc
  module Testing

    module PayloadType
      COMPRESSABLE = 0
      UNCOMPRESSABLE = 1
      RANDOM = 2
    end

    class Payload
      include Beefcake::Message
    end

    class SimpleRequest
      include Beefcake::Message
    end

    class SimpleResponse
      include Beefcake::Message
    end

    class SimpleContext
      include Beefcake::Message
    end

    class StreamingInputCallRequest
      include Beefcake::Message
    end

    class StreamingInputCallResponse
      include Beefcake::Message
    end

    class ResponseParameters
      include Beefcake::Message
    end

    class StreamingOutputCallRequest
      include Beefcake::Message
    end

    class StreamingOutputCallResponse
      include Beefcake::Message
    end

    class Payload
      optional :type, PayloadType, 1
      optional :body, :bytes, 2
    end

    class SimpleRequest
      optional :response_type, PayloadType, 1
      optional :response_size, :int32, 2
      optional :payload, Payload, 3
    end

    class SimpleResponse
      optional :payload, Payload, 1
      optional :effective_gaia_user_id, :int64, 2
    end

    class SimpleContext
      optional :value, :string, 1
    end

    class StreamingInputCallRequest
      optional :payload, Payload, 1
    end

    class StreamingInputCallResponse
      optional :aggregated_payload_size, :int32, 1
    end

    class ResponseParameters
      optional :size, :int32, 1
      optional :interval_us, :int32, 2
    end

    class StreamingOutputCallRequest
      optional :response_type, PayloadType, 1
      repeated :response_parameters, ResponseParameters, 2
      optional :payload, Payload, 3
    end

    class StreamingOutputCallResponse
      optional :payload, Payload, 1
    end
  end
end