github.com/pachyderm/pachyderm@v1.13.4/src/client/health/health.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: client/health/health.proto 3 4 package health 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/gogo/protobuf/proto" 10 types "github.com/gogo/protobuf/types" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 math "math" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 27 28 func init() { proto.RegisterFile("client/health/health.proto", fileDescriptor_6a4830d93d85d5ea) } 29 30 var fileDescriptor_6a4830d93d85d5ea = []byte{ 31 // 148 bytes of a gzipped FileDescriptorProto 32 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xce, 0xc9, 0x4c, 33 0xcd, 0x2b, 0xd1, 0xcf, 0x48, 0x4d, 0xcc, 0x29, 0xc9, 0x80, 0x52, 0x7a, 0x05, 0x45, 0xf9, 0x25, 34 0xf9, 0x42, 0x6c, 0x10, 0x9e, 0x94, 0x74, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x3e, 0x58, 0x34, 35 0xa9, 0x34, 0x4d, 0x3f, 0x35, 0xb7, 0xa0, 0xa4, 0x12, 0xa2, 0xc8, 0xc8, 0x85, 0x8b, 0xcd, 0x03, 36 0xac, 0x4c, 0xc8, 0x0a, 0xce, 0x12, 0xd3, 0x83, 0xe8, 0xd0, 0x83, 0xe9, 0xd0, 0x73, 0x05, 0xe9, 37 0x90, 0xc2, 0x21, 0xae, 0xc4, 0xe0, 0x64, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 38 0x0f, 0x1e, 0xc9, 0x31, 0x46, 0x19, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 39 0xea, 0x17, 0x24, 0x26, 0x67, 0x54, 0xa6, 0xa4, 0x16, 0x21, 0xb3, 0x8a, 0x8b, 0x92, 0xf5, 0x51, 40 0xdc, 0x9d, 0xc4, 0x06, 0x36, 0xd1, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x9e, 0x89, 0xfb, 41 0xcf, 0x00, 0x00, 0x00, 42 } 43 44 // Reference imports to suppress errors if they are not otherwise used. 45 var _ context.Context 46 var _ grpc.ClientConn 47 48 // This is a compile-time assertion to ensure that this generated file 49 // is compatible with the grpc package it is being compiled against. 50 const _ = grpc.SupportPackageIsVersion4 51 52 // HealthClient is the client API for Health service. 53 // 54 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 55 type HealthClient interface { 56 Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*types.Empty, error) 57 } 58 59 type healthClient struct { 60 cc *grpc.ClientConn 61 } 62 63 func NewHealthClient(cc *grpc.ClientConn) HealthClient { 64 return &healthClient{cc} 65 } 66 67 func (c *healthClient) Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*types.Empty, error) { 68 out := new(types.Empty) 69 err := c.cc.Invoke(ctx, "/health.Health/Health", in, out, opts...) 70 if err != nil { 71 return nil, err 72 } 73 return out, nil 74 } 75 76 // HealthServer is the server API for Health service. 77 type HealthServer interface { 78 Health(context.Context, *types.Empty) (*types.Empty, error) 79 } 80 81 // UnimplementedHealthServer can be embedded to have forward compatible implementations. 82 type UnimplementedHealthServer struct { 83 } 84 85 func (*UnimplementedHealthServer) Health(ctx context.Context, req *types.Empty) (*types.Empty, error) { 86 return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") 87 } 88 89 func RegisterHealthServer(s *grpc.Server, srv HealthServer) { 90 s.RegisterService(&_Health_serviceDesc, srv) 91 } 92 93 func _Health_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 94 in := new(types.Empty) 95 if err := dec(in); err != nil { 96 return nil, err 97 } 98 if interceptor == nil { 99 return srv.(HealthServer).Health(ctx, in) 100 } 101 info := &grpc.UnaryServerInfo{ 102 Server: srv, 103 FullMethod: "/health.Health/Health", 104 } 105 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 106 return srv.(HealthServer).Health(ctx, req.(*types.Empty)) 107 } 108 return interceptor(ctx, in, info, handler) 109 } 110 111 var _Health_serviceDesc = grpc.ServiceDesc{ 112 ServiceName: "health.Health", 113 HandlerType: (*HealthServer)(nil), 114 Methods: []grpc.MethodDesc{ 115 { 116 MethodName: "Health", 117 Handler: _Health_Health_Handler, 118 }, 119 }, 120 Streams: []grpc.StreamDesc{}, 121 Metadata: "client/health/health.proto", 122 }