From 5b4d3625ebbf638080d07b7d267c5d90904d4f14 Mon Sep 17 00:00:00 2001 From: Ken Payson Date: Wed, 3 Aug 2016 15:33:37 -0700 Subject: Update ruby examples to use new _pb protobuf format --- examples/ruby/lib/helloworld_pb.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/ruby/lib/helloworld_pb.rb (limited to 'examples/ruby/lib/helloworld_pb.rb') 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 -- cgit v1.2.3