Home | History | Annotate | Download | only in duplicate
      1 # Generated by the protocol buffer compiler.  DO NOT EDIT!
      2 # Source: src/proto/grpc/testing/duplicate/echo_duplicate.proto for package 'grpc.testing.duplicate'
      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 # This is a partial copy of echo.proto with a different package name.
     19 #
     20 
     21 require 'grpc'
     22 require 'src/proto/grpc/testing/duplicate/echo_duplicate_pb'
     23 
     24 module Grpc
     25   module Testing
     26     module Duplicate
     27       module EchoTestService
     28         class Service
     29 
     30           include GRPC::GenericService
     31 
     32           self.marshal_class_method = :encode
     33           self.unmarshal_class_method = :decode
     34           self.service_name = 'grpc.testing.duplicate.EchoTestService'
     35 
     36           rpc :Echo, Grpc::Testing::EchoRequest, Grpc::Testing::EchoResponse
     37           rpc :ResponseStream, Grpc::Testing::EchoRequest, stream(Grpc::Testing::EchoResponse)
     38         end
     39 
     40         Stub = Service.rpc_stub_class
     41       end
     42     end
     43   end
     44 end
     45