1 # Generated by the protocol buffer compiler. DO NOT EDIT! 2 # Source: grpc/health/v1/health.proto for package 'grpc.health.v1' 3 # Original file comments: 4 # Copyright 2015 The 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 # The canonical version of this proto can be found at 19 # https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto 20 # 21 22 require 'grpc' 23 require 'grpc/health/v1/health_pb' 24 25 module Grpc 26 module Health 27 module V1 28 module Health 29 class Service 30 31 include GRPC::GenericService 32 33 self.marshal_class_method = :encode 34 self.unmarshal_class_method = :decode 35 self.service_name = 'grpc.health.v1.Health' 36 37 rpc :Check, HealthCheckRequest, HealthCheckResponse 38 end 39 40 Stub = Service.rpc_stub_class 41 end 42 end 43 end 44 end 45