forked from sorbet/protoc-gen-rbi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_pb.rbi
91 lines (72 loc) · 1.64 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
# Code generated by protoc-gen-rbi. DO NOT EDIT.
# source: example.proto
# typed: strict
module Example; end
class Example::Request
include Google::Protobuf
include Google::Protobuf::MessageExts
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 do
params(
name: T.nilable(String)
).void
end
def initialize(
name: ""
)
end
sig { returns(String) }
def name
end
sig { params(value: String).void }
def name=(value)
end
sig { returns(T::Hash[Symbol, T.untyped]) }
def to_h
end
end
class Example::Response
include Google::Protobuf
include Google::Protobuf::MessageExts
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 do
params(
greeting: T.nilable(String)
).void
end
def initialize(
greeting: ""
)
end
sig { returns(String) }
def greeting
end
sig { params(value: String).void }
def greeting=(value)
end
sig { returns(T::Hash[Symbol, T.untyped]) }
def to_h
end
end