183 lines
7.3 KiB
Go
183 lines
7.3 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: backend/api/healthz.proto
|
|
|
|
package go_client
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type GetHealthzResponse struct {
|
|
// Returns if KFP in multi-user mode
|
|
MultiUser bool `protobuf:"varint,3,opt,name=multi_user,json=multiUser,proto3" json:"multi_user,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetHealthzResponse) Reset() { *m = GetHealthzResponse{} }
|
|
func (m *GetHealthzResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetHealthzResponse) ProtoMessage() {}
|
|
func (*GetHealthzResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_499453e9dc64832b, []int{0}
|
|
}
|
|
|
|
func (m *GetHealthzResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetHealthzResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GetHealthzResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetHealthzResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetHealthzResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetHealthzResponse.Merge(m, src)
|
|
}
|
|
func (m *GetHealthzResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GetHealthzResponse.Size(m)
|
|
}
|
|
func (m *GetHealthzResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetHealthzResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetHealthzResponse proto.InternalMessageInfo
|
|
|
|
func (m *GetHealthzResponse) GetMultiUser() bool {
|
|
if m != nil {
|
|
return m.MultiUser
|
|
}
|
|
return false
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*GetHealthzResponse)(nil), "api.GetHealthzResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("backend/api/healthz.proto", fileDescriptor_499453e9dc64832b) }
|
|
|
|
var fileDescriptor_499453e9dc64832b = []byte{
|
|
// 337 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4e, 0x32, 0x31,
|
|
0x14, 0x85, 0x7f, 0x20, 0xe1, 0xc7, 0x2a, 0x1a, 0x6b, 0x14, 0x1d, 0x21, 0x12, 0x56, 0x2e, 0x64,
|
|
0x1a, 0xe4, 0x09, 0x24, 0x31, 0xba, 0x71, 0x03, 0x71, 0x43, 0x4c, 0x48, 0x67, 0xb8, 0xcc, 0x34,
|
|
0x0c, 0x6d, 0xd3, 0xde, 0x42, 0x64, 0x69, 0xe2, 0x0b, 0xe8, 0xa3, 0xf9, 0x0a, 0x3e, 0x88, 0xa1,
|
|
0x03, 0x4a, 0xa2, 0xab, 0xa6, 0x3d, 0xf7, 0x9c, 0x7e, 0xf7, 0x90, 0xb3, 0x88, 0xc7, 0x53, 0x90,
|
|
0x63, 0xc6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47, 0x67, 0x87, 0x17, 0xa4, 0x41, 0xca, 0x3d, 0xe0, 0x06, 0x0c, 0x3d, 0xaa, 0x14,
|
|
0x83, 0x2a, 0x77, 0x98, 0x2a, 0x23, 0x96, 0xbe, 0x87, 0x66, 0x31, 0xda, 0x23, 0xe4, 0x7b, 0xe0,
|
|
0xdf, 0xb0, 0x9b, 0x08, 0x4c, 0x5d, 0x14, 0xc6, 0x6a, 0xc6, 0xa6, 0x2e, 0x82, 0x49, 0xa6, 0x16,
|
|
0x4c, 0x0b, 0x0d, 0x99, 0x90, 0x60, 0xd9, 0x76, 0x5d, 0x89, 0x1a, 0xc5, 0x99, 0x00, 0x89, 0x51,
|
|
0xd9, 0xef, 0xd3, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x04, 0x2d, 0x10, 0xd7, 0x01, 0x00,
|
|
0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// HealthzServiceClient is the client API for HealthzService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type HealthzServiceClient interface {
|
|
// Get healthz data.
|
|
GetHealthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetHealthzResponse, error)
|
|
}
|
|
|
|
type healthzServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewHealthzServiceClient(cc *grpc.ClientConn) HealthzServiceClient {
|
|
return &healthzServiceClient{cc}
|
|
}
|
|
|
|
func (c *healthzServiceClient) GetHealthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetHealthzResponse, error) {
|
|
out := new(GetHealthzResponse)
|
|
err := c.cc.Invoke(ctx, "/api.HealthzService/GetHealthz", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// HealthzServiceServer is the server API for HealthzService service.
|
|
type HealthzServiceServer interface {
|
|
// Get healthz data.
|
|
GetHealthz(context.Context, *empty.Empty) (*GetHealthzResponse, error)
|
|
}
|
|
|
|
// UnimplementedHealthzServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedHealthzServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedHealthzServiceServer) GetHealthz(ctx context.Context, req *empty.Empty) (*GetHealthzResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetHealthz not implemented")
|
|
}
|
|
|
|
func RegisterHealthzServiceServer(s *grpc.Server, srv HealthzServiceServer) {
|
|
s.RegisterService(&_HealthzService_serviceDesc, srv)
|
|
}
|
|
|
|
func _HealthzService_GetHealthz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HealthzServiceServer).GetHealthz(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.HealthzService/GetHealthz",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HealthzServiceServer).GetHealthz(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _HealthzService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "api.HealthzService",
|
|
HandlerType: (*HealthzServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetHealthz",
|
|
Handler: _HealthzService_GetHealthz_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "backend/api/healthz.proto",
|
|
}
|