• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
22require 'grpc'
23require 'grpc/health/v1/health_pb'
24
25module 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          # If the requested service is unknown, the call will fail with status
38          # NOT_FOUND.
39          rpc :Check, ::Grpc::Health::V1::HealthCheckRequest, ::Grpc::Health::V1::HealthCheckResponse
40          # Performs a watch for the serving status of the requested service.
41          # The server will immediately send back a message indicating the current
42          # serving status.  It will then subsequently send a new message whenever
43          # the service's serving status changes.
44          #
45          # If the requested service is unknown when the call is received, the
46          # server will send a message setting the serving status to
47          # SERVICE_UNKNOWN but will *not* terminate the call.  If at some
48          # future point, the serving status of the service becomes known, the
49          # server will send a new message with the service's serving status.
50          #
51          # If the call terminates with status UNIMPLEMENTED, then clients
52          # should assume this method is not supported and should not retry the
53          # call.  If the call terminates with any other status (including OK),
54          # clients should retry the call with appropriate exponential backoff.
55          rpc :Watch, ::Grpc::Health::V1::HealthCheckRequest, stream(::Grpc::Health::V1::HealthCheckResponse)
56        end
57
58        Stub = Service.rpc_stub_class
59      end
60    end
61  end
62end
63