1# Generated by the protocol buffer compiler. DO NOT EDIT! 2# Source: route_guide.proto for package 'routeguide' 3# Original file comments: 4# Copyright 2015 gRPC authors. 5# 6# Licensed under the Apache License, Version 2.0 (the "License"); 7# you may not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an "AS IS" BASIS, 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17# 18 19require 'grpc' 20require 'route_guide_pb' 21 22module Routeguide 23 module RouteGuide 24 # Interface exported by the server. 25 class Service 26 27 include GRPC::GenericService 28 29 self.marshal_class_method = :encode 30 self.unmarshal_class_method = :decode 31 self.service_name = 'routeguide.RouteGuide' 32 33 # A simple RPC. 34 # 35 # Obtains the feature at a given position. 36 # 37 # A feature with an empty name is returned if there's no feature at the given 38 # position. 39 rpc :GetFeature, Point, Feature 40 # A server-to-client streaming RPC. 41 # 42 # Obtains the Features available within the given Rectangle. Results are 43 # streamed rather than returned at once (e.g. in a response message with a 44 # repeated field), as the rectangle may cover a large area and contain a 45 # huge number of features. 46 rpc :ListFeatures, Rectangle, stream(Feature) 47 # A client-to-server streaming RPC. 48 # 49 # Accepts a stream of Points on a route being traversed, returning a 50 # RouteSummary when traversal is completed. 51 rpc :RecordRoute, stream(Point), RouteSummary 52 # A Bidirectional streaming RPC. 53 # 54 # Accepts a stream of RouteNotes sent while a route is being traversed, 55 # while receiving other RouteNotes (e.g. from other users). 56 rpc :RouteChat, stream(RouteNote), stream(RouteNote) 57 end 58 59 Stub = Service.rpc_stub_class 60 end 61end 62