aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/ruby/lib/helloworld_pb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ruby/lib/helloworld_pb.rb')
-rw-r--r--examples/ruby/lib/helloworld_pb.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/ruby/lib/helloworld_pb.rb b/examples/ruby/lib/helloworld_pb.rb
new file mode 100644
index 0000000000..82bdd78e2a
--- /dev/null
+++ b/examples/ruby/lib/helloworld_pb.rb
@@ -0,0 +1,18 @@
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: helloworld.proto
+
+require 'google/protobuf'
+
+Google::Protobuf::DescriptorPool.generated_pool.build do
+ add_message "helloworld.HelloRequest" do
+ optional :name, :string, 1
+ end
+ add_message "helloworld.HelloReply" do
+ optional :message, :string, 1
+ end
+end
+
+module Helloworld
+ HelloRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("helloworld.HelloRequest").msgclass
+ HelloReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("helloworld.HelloReply").msgclass
+end