-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from jez/jez-hide-options
Add two options for minimizing RBI output
- Loading branch information
Showing
26 changed files
with
2,924 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: broken_field_name.proto | ||
# typed: strict | ||
|
||
class Example::Broken_field_name < ::Google::Protobuf::AbstractMessage | ||
# Constants of the form Constant_1 are invalid. We've declined to type this as a result, taking a hash instead. | ||
sig { params(args: T::Hash[T.untyped, T.untyped]).void } | ||
def initialize(args); end | ||
|
||
sig { returns(String) } | ||
def name | ||
end | ||
|
||
sig { params(value: String).void } | ||
def name=(value) | ||
end | ||
|
||
sig { void } | ||
def clear_name | ||
end | ||
|
||
sig { returns(String) } | ||
def Field_name_1 | ||
end | ||
|
||
sig { params(value: String).void } | ||
def Field_name_1=(value) | ||
end | ||
|
||
sig { void } | ||
def clear_Field_name_1 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: broken_package_name.proto | ||
# typed: strict | ||
|
||
class Package2test::Message2test < ::Google::Protobuf::AbstractMessage | ||
sig do | ||
params( | ||
field2test: T.nilable(String) | ||
).void | ||
end | ||
def initialize( | ||
field2test: "" | ||
) | ||
end | ||
|
||
sig { returns(String) } | ||
def field2test | ||
end | ||
|
||
sig { params(value: String).void } | ||
def field2test=(value) | ||
end | ||
|
||
sig { void } | ||
def clear_field2test | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: example.proto | ||
# typed: strict | ||
|
||
class Example::Request < ::Google::Protobuf::AbstractMessage | ||
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 { void } | ||
def clear_name | ||
end | ||
end | ||
|
||
class Example::Response < ::Google::Protobuf::AbstractMessage | ||
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 { void } | ||
def clear_greeting | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: example.proto | ||
# typed: strict | ||
|
||
module Example::Greeter | ||
class Service | ||
include ::GRPC::GenericService | ||
end | ||
|
||
class Stub < ::GRPC::ClientStub | ||
sig do | ||
params( | ||
host: String, | ||
creds: T.any(::GRPC::Core::ChannelCredentials, Symbol), | ||
kw: T.untyped, | ||
).void | ||
end | ||
def initialize(host, creds, **kw) | ||
end | ||
|
||
sig do | ||
params( | ||
request: Example::Request | ||
).returns(Example::Response) | ||
end | ||
def hello(request) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: lowercase.proto | ||
# typed: strict | ||
|
||
class Example::Lowercase < ::Google::Protobuf::AbstractMessage | ||
sig do | ||
params( | ||
example_proto_field: T.nilable(String) | ||
).void | ||
end | ||
def initialize( | ||
example_proto_field: "" | ||
) | ||
end | ||
|
||
sig { returns(String) } | ||
def example_proto_field | ||
end | ||
|
||
sig { params(value: String).void } | ||
def example_proto_field=(value) | ||
end | ||
|
||
sig { void } | ||
def clear_example_proto_field | ||
end | ||
end | ||
|
||
class Example::Lowercase_with_underscores < ::Google::Protobuf::AbstractMessage | ||
sig do | ||
params( | ||
example_proto_field: T.nilable(String) | ||
).void | ||
end | ||
def initialize( | ||
example_proto_field: "" | ||
) | ||
end | ||
|
||
sig { returns(String) } | ||
def example_proto_field | ||
end | ||
|
||
sig { params(value: String).void } | ||
def example_proto_field=(value) | ||
end | ||
|
||
sig { void } | ||
def clear_example_proto_field | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: services.proto | ||
# typed: strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: services.proto | ||
# typed: strict | ||
|
||
module Testdata::SimpleMathematics | ||
class Service | ||
include ::GRPC::GenericService | ||
end | ||
|
||
class Stub < ::GRPC::ClientStub | ||
sig do | ||
params( | ||
host: String, | ||
creds: T.any(::GRPC::Core::ChannelCredentials, Symbol), | ||
kw: T.untyped, | ||
).void | ||
end | ||
def initialize(host, creds, **kw) | ||
end | ||
|
||
sig do | ||
params( | ||
request: Testdata::Subdir::IntegerMessage | ||
).returns(Testdata::Subdir::IntegerMessage) | ||
end | ||
def negate(request) | ||
end | ||
|
||
sig do | ||
params( | ||
request: T::Enumerable[Testdata::Subdir::IntegerMessage] | ||
).returns(Testdata::Subdir::IntegerMessage) | ||
end | ||
def median(request) | ||
end | ||
end | ||
end | ||
|
||
module Testdata::ComplexMathematics | ||
class Service | ||
include ::GRPC::GenericService | ||
end | ||
|
||
class Stub < ::GRPC::ClientStub | ||
sig do | ||
params( | ||
host: String, | ||
creds: T.any(::GRPC::Core::ChannelCredentials, Symbol), | ||
kw: T.untyped, | ||
).void | ||
end | ||
def initialize(host, creds, **kw) | ||
end | ||
|
||
sig do | ||
params( | ||
request: Testdata::Subdir::IntegerMessage | ||
).returns(T::Enumerable[Testdata::Subdir::IntegerMessage]) | ||
end | ||
def fibonacci(request) | ||
end | ||
|
||
sig do | ||
params( | ||
request: T::Enumerable[Testdata::Subdir::IntegerMessage] | ||
).returns(T::Enumerable[Testdata::Subdir::IntegerMessage]) | ||
end | ||
def running_max(request) | ||
end | ||
|
||
sig do | ||
params( | ||
request: T::Enumerable[Testdata::Subdir::IntegerMessage] | ||
).returns(T::Enumerable[Testdata::Subdir::IntegerMessage]) | ||
end | ||
def periodic_max(request) | ||
end | ||
end | ||
end |
Oops, something went wrong.