aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/ruby/lib/route_guide_services.rb
blob: 082daef7543f5922c83bb14a30bd088acf6e4ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: route_guide.proto for package 'routeguide'

require 'grpc'
require 'route_guide'

module Routeguide
  module RouteGuide

    # TODO: add proto service documentation here
    class Service

      include GRPC::GenericService

      self.marshal_class_method = :encode
      self.unmarshal_class_method = :decode
      self.service_name = 'routeguide.RouteGuide'

      rpc :GetFeature, Point, Feature
      rpc :ListFeatures, Rectangle, stream(Feature)
      rpc :RecordRoute, stream(Point), RouteSummary
      rpc :RouteChat, stream(RouteNote), stream(RouteNote)
    end

    Stub = Service.rpc_stub_class
  end
end