mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
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.
28 lines
679 B
28 lines
679 B
10 years ago
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
# Source: route_guide.proto for package 'examples'
|
||
|
|
||
|
require 'grpc'
|
||
|
require 'route_guide'
|
||
|
|
||
|
module Examples
|
||
|
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 = 'examples.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
|