Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/grpc/examples/ruby/lib/route_guide.rb

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/grpc/examples/ruby/lib/route_guide.rb
diff --git a/third_party/grpc/examples/ruby/lib/route_guide.rb b/third_party/grpc/examples/ruby/lib/route_guide.rb
new file mode 100644
index 0000000000000000000000000000000000000000..424395c4f5f062d377d91991fdf817a13a945103
--- /dev/null
+++ b/third_party/grpc/examples/ruby/lib/route_guide.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
« no previous file with comments | « third_party/grpc/examples/ruby/lib/helloworld_services.rb ('k') | third_party/grpc/examples/ruby/lib/route_guide_services.rb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698