aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/ruby/lib/route_guide_pb.rb
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-08-18 15:04:25 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-08-18 15:04:25 -0700
commit80763dd7c48f9fe9f0499f9a3d6c340b81d1acb7 (patch)
tree0696c8d9b1a5bbf20dc34070eb625bc97f915be9 /examples/ruby/lib/route_guide_pb.rb
parent5b0e9462f0d40b171d50c03b29016c36588a3520 (diff)
parentf4112fc06e126ae4adc4dce99d71d021ff36bf9a (diff)
Merge branch 'master' of github.com:grpc/grpc into lb_add_md
Diffstat (limited to 'examples/ruby/lib/route_guide_pb.rb')
-rw-r--r--examples/ruby/lib/route_guide_pb.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/ruby/lib/route_guide_pb.rb b/examples/ruby/lib/route_guide_pb.rb
new file mode 100644
index 0000000000..424395c4f5
--- /dev/null
+++ b/examples/ruby/lib/route_guide_pb.rb
@@ -0,0 +1,37 @@
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: route_guide.proto
+
+require 'google/protobuf'
+
+Google::Protobuf::DescriptorPool.generated_pool.build do
+ add_message "routeguide.Point" do
+ optional :latitude, :int32, 1
+ optional :longitude, :int32, 2
+ end
+ add_message "routeguide.Rectangle" do
+ optional :lo, :message, 1, "routeguide.Point"
+ optional :hi, :message, 2, "routeguide.Point"
+ end
+ add_message "routeguide.Feature" do
+ optional :name, :string, 1
+ optional :location, :message, 2, "routeguide.Point"
+ end
+ add_message "routeguide.RouteNote" do
+ optional :location, :message, 1, "routeguide.Point"
+ optional :message, :string, 2
+ end
+ add_message "routeguide.RouteSummary" do
+ optional :point_count, :int32, 1
+ optional :feature_count, :int32, 2
+ optional :distance, :int32, 3
+ optional :elapsed_time, :int32, 4
+ end
+end
+
+module Routeguide
+ Point = Google::Protobuf::DescriptorPool.generated_pool.lookup("routeguide.Point").msgclass
+ Rectangle = Google::Protobuf::DescriptorPool.generated_pool.lookup("routeguide.Rectangle").msgclass
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("routeguide.Feature").msgclass
+ RouteNote = Google::Protobuf::DescriptorPool.generated_pool.lookup("routeguide.RouteNote").msgclass
+ RouteSummary = Google::Protobuf::DescriptorPool.generated_pool.lookup("routeguide.RouteSummary").msgclass
+end