-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathexample_pb.rbi
130 lines (104 loc) · 2.58 KB
/
example_pb.rbi
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Code generated by protoc-gen-rbi. DO NOT EDIT.
# source: example.proto
# typed: strict
# some description for request message
class Example::Request
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
sig { params(str: String).returns(Example::Request) }
def self.decode(str)
end
sig { params(msg: Example::Request).returns(String) }
def self.encode(msg)
end
sig { params(str: String, kw: T.untyped).returns(Example::Request) }
def self.decode_json(str, **kw)
end
sig { params(msg: Example::Request, kw: T.untyped).returns(String) }
def self.encode_json(msg, **kw)
end
sig { returns(::Google::Protobuf::Descriptor) }
def self.descriptor
end
sig do
params(
name: T.nilable(String)
).void
end
def initialize(
name: ""
)
end
# some description for name field
sig { returns(String) }
def name
end
# some description for name field
sig { params(value: String).void }
def name=(value)
end
# some description for name field
sig { void }
def clear_name
end
sig { params(field: String).returns(T.untyped) }
def [](field)
end
sig { params(field: String, value: T.untyped).void }
def []=(field, value)
end
sig { returns(T::Hash[Symbol, T.untyped]) }
def to_h
end
end
# some description for responsee message that is multi line and has a # in it
# that needs to be escaped
class Example::Response
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
sig { params(str: String).returns(Example::Response) }
def self.decode(str)
end
sig { params(msg: Example::Response).returns(String) }
def self.encode(msg)
end
sig { params(str: String, kw: T.untyped).returns(Example::Response) }
def self.decode_json(str, **kw)
end
sig { params(msg: Example::Response, kw: T.untyped).returns(String) }
def self.encode_json(msg, **kw)
end
sig { returns(::Google::Protobuf::Descriptor) }
def self.descriptor
end
sig do
params(
greeting: T.nilable(String)
).void
end
def initialize(
greeting: ""
)
end
# some description for greeting field
sig { returns(String) }
def greeting
end
# some description for greeting field
sig { params(value: String).void }
def greeting=(value)
end
# some description for greeting field
sig { void }
def clear_greeting
end
sig { params(field: String).returns(T.untyped) }
def [](field)
end
sig { params(field: String, value: T.untyped).void }
def []=(field, value)
end
sig { returns(T::Hash[Symbol, T.untyped]) }
def to_h
end
end