You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# 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
|