// Code generated by protoc-gen-go-grpc. DO NOT EDIT.

package debug_portal

import (
	context "context"
	types "github.com/gogo/protobuf/types"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7

// CentralDebugPortalServiceClient is the client API for CentralDebugPortalService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type CentralDebugPortalServiceClient interface {
	GetOAuthConfig(ctx context.Context, in *DebugPortalGetOAuthConfigReq, opts ...grpc.CallOption) (*DebugPortalGetOAuthConfigResp, error)
	ExchangeOAuthToken(ctx context.Context, in *DebugPortalExchangeOAuthTokenReq, opts ...grpc.CallOption) (*DebugPortalExchangeOAuthTokenResp, error)
	SignOut(ctx context.Context, in *DebugPortalSignOutReq, opts ...grpc.CallOption) (*DebugPortalSignOutResp, error)
	GetBasicSession(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*DebugPortalGetBasicSessionResp, error)
	ListTenants(ctx context.Context, in *ListTenantsReq, opts ...grpc.CallOption) (*ListTenantsResp, error)
	GetTenantById(ctx context.Context, in *OrgIdReq, opts ...grpc.CallOption) (*Tenant, error)
	ListTenantClusters(ctx context.Context, in *ListTenantClustersReq, opts ...grpc.CallOption) (*ListTenantClustersResp, error)
	GetDashboardLinks(ctx context.Context, in *GetDashboardLinksReq, opts ...grpc.CallOption) (*GetDashboardLinksResp, error)
}

type centralDebugPortalServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewCentralDebugPortalServiceClient(cc grpc.ClientConnInterface) CentralDebugPortalServiceClient {
	return &centralDebugPortalServiceClient{cc}
}

func (c *centralDebugPortalServiceClient) GetOAuthConfig(ctx context.Context, in *DebugPortalGetOAuthConfigReq, opts ...grpc.CallOption) (*DebugPortalGetOAuthConfigResp, error) {
	out := new(DebugPortalGetOAuthConfigResp)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/GetOAuthConfig", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *centralDebugPortalServiceClient) ExchangeOAuthToken(ctx context.Context, in *DebugPortalExchangeOAuthTokenReq, opts ...grpc.CallOption) (*DebugPortalExchangeOAuthTokenResp, error) {
	out := new(DebugPortalExchangeOAuthTokenResp)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/ExchangeOAuthToken", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *centralDebugPortalServiceClient) SignOut(ctx context.Context, in *DebugPortalSignOutReq, opts ...grpc.CallOption) (*DebugPortalSignOutResp, error) {
	out := new(DebugPortalSignOutResp)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/SignOut", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *centralDebugPortalServiceClient) GetBasicSession(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*DebugPortalGetBasicSessionResp, error) {
	out := new(DebugPortalGetBasicSessionResp)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/GetBasicSession", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *centralDebugPortalServiceClient) ListTenants(ctx context.Context, in *ListTenantsReq, opts ...grpc.CallOption) (*ListTenantsResp, error) {
	out := new(ListTenantsResp)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/ListTenants", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *centralDebugPortalServiceClient) GetTenantById(ctx context.Context, in *OrgIdReq, opts ...grpc.CallOption) (*Tenant, error) {
	out := new(Tenant)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/GetTenantById", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *centralDebugPortalServiceClient) ListTenantClusters(ctx context.Context, in *ListTenantClustersReq, opts ...grpc.CallOption) (*ListTenantClustersResp, error) {
	out := new(ListTenantClustersResp)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/ListTenantClusters", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *centralDebugPortalServiceClient) GetDashboardLinks(ctx context.Context, in *GetDashboardLinksReq, opts ...grpc.CallOption) (*GetDashboardLinksResp, error) {
	out := new(GetDashboardLinksResp)
	err := c.cc.Invoke(ctx, "/debug_portal.CentralDebugPortalService/GetDashboardLinks", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// CentralDebugPortalServiceServer is the server API for CentralDebugPortalService service.
// All implementations must embed UnimplementedCentralDebugPortalServiceServer
// for forward compatibility
type CentralDebugPortalServiceServer interface {
	GetOAuthConfig(context.Context, *DebugPortalGetOAuthConfigReq) (*DebugPortalGetOAuthConfigResp, error)
	ExchangeOAuthToken(context.Context, *DebugPortalExchangeOAuthTokenReq) (*DebugPortalExchangeOAuthTokenResp, error)
	SignOut(context.Context, *DebugPortalSignOutReq) (*DebugPortalSignOutResp, error)
	GetBasicSession(context.Context, *types.Empty) (*DebugPortalGetBasicSessionResp, error)
	ListTenants(context.Context, *ListTenantsReq) (*ListTenantsResp, error)
	GetTenantById(context.Context, *OrgIdReq) (*Tenant, error)
	ListTenantClusters(context.Context, *ListTenantClustersReq) (*ListTenantClustersResp, error)
	GetDashboardLinks(context.Context, *GetDashboardLinksReq) (*GetDashboardLinksResp, error)
	mustEmbedUnimplementedCentralDebugPortalServiceServer()
}

// UnimplementedCentralDebugPortalServiceServer must be embedded to have forward compatible implementations.
type UnimplementedCentralDebugPortalServiceServer struct {
}

func (UnimplementedCentralDebugPortalServiceServer) GetOAuthConfig(context.Context, *DebugPortalGetOAuthConfigReq) (*DebugPortalGetOAuthConfigResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetOAuthConfig not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) ExchangeOAuthToken(context.Context, *DebugPortalExchangeOAuthTokenReq) (*DebugPortalExchangeOAuthTokenResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ExchangeOAuthToken not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) SignOut(context.Context, *DebugPortalSignOutReq) (*DebugPortalSignOutResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method SignOut not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) GetBasicSession(context.Context, *types.Empty) (*DebugPortalGetBasicSessionResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetBasicSession not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) ListTenants(context.Context, *ListTenantsReq) (*ListTenantsResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListTenants not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) GetTenantById(context.Context, *OrgIdReq) (*Tenant, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetTenantById not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) ListTenantClusters(context.Context, *ListTenantClustersReq) (*ListTenantClustersResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListTenantClusters not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) GetDashboardLinks(context.Context, *GetDashboardLinksReq) (*GetDashboardLinksResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetDashboardLinks not implemented")
}
func (UnimplementedCentralDebugPortalServiceServer) mustEmbedUnimplementedCentralDebugPortalServiceServer() {
}

// UnsafeCentralDebugPortalServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CentralDebugPortalServiceServer will
// result in compilation errors.
type UnsafeCentralDebugPortalServiceServer interface {
	mustEmbedUnimplementedCentralDebugPortalServiceServer()
}

func RegisterCentralDebugPortalServiceServer(s grpc.ServiceRegistrar, srv CentralDebugPortalServiceServer) {
	s.RegisterService(&CentralDebugPortalService_ServiceDesc, srv)
}

func _CentralDebugPortalService_GetOAuthConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DebugPortalGetOAuthConfigReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).GetOAuthConfig(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/GetOAuthConfig",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).GetOAuthConfig(ctx, req.(*DebugPortalGetOAuthConfigReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _CentralDebugPortalService_ExchangeOAuthToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DebugPortalExchangeOAuthTokenReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).ExchangeOAuthToken(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/ExchangeOAuthToken",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).ExchangeOAuthToken(ctx, req.(*DebugPortalExchangeOAuthTokenReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _CentralDebugPortalService_SignOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DebugPortalSignOutReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).SignOut(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/SignOut",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).SignOut(ctx, req.(*DebugPortalSignOutReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _CentralDebugPortalService_GetBasicSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(types.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).GetBasicSession(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/GetBasicSession",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).GetBasicSession(ctx, req.(*types.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _CentralDebugPortalService_ListTenants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListTenantsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).ListTenants(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/ListTenants",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).ListTenants(ctx, req.(*ListTenantsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _CentralDebugPortalService_GetTenantById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(OrgIdReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).GetTenantById(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/GetTenantById",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).GetTenantById(ctx, req.(*OrgIdReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _CentralDebugPortalService_ListTenantClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListTenantClustersReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).ListTenantClusters(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/ListTenantClusters",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).ListTenantClusters(ctx, req.(*ListTenantClustersReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _CentralDebugPortalService_GetDashboardLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetDashboardLinksReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CentralDebugPortalServiceServer).GetDashboardLinks(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/debug_portal.CentralDebugPortalService/GetDashboardLinks",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CentralDebugPortalServiceServer).GetDashboardLinks(ctx, req.(*GetDashboardLinksReq))
	}
	return interceptor(ctx, in, info, handler)
}

// CentralDebugPortalService_ServiceDesc is the grpc.ServiceDesc for CentralDebugPortalService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var CentralDebugPortalService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "debug_portal.CentralDebugPortalService",
	HandlerType: (*CentralDebugPortalServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOAuthConfig",
			Handler:    _CentralDebugPortalService_GetOAuthConfig_Handler,
		},
		{
			MethodName: "ExchangeOAuthToken",
			Handler:    _CentralDebugPortalService_ExchangeOAuthToken_Handler,
		},
		{
			MethodName: "SignOut",
			Handler:    _CentralDebugPortalService_SignOut_Handler,
		},
		{
			MethodName: "GetBasicSession",
			Handler:    _CentralDebugPortalService_GetBasicSession_Handler,
		},
		{
			MethodName: "ListTenants",
			Handler:    _CentralDebugPortalService_ListTenants_Handler,
		},
		{
			MethodName: "GetTenantById",
			Handler:    _CentralDebugPortalService_GetTenantById_Handler,
		},
		{
			MethodName: "ListTenantClusters",
			Handler:    _CentralDebugPortalService_ListTenantClusters_Handler,
		},
		{
			MethodName: "GetDashboardLinks",
			Handler:    _CentralDebugPortalService_GetDashboardLinks_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "debug_portal/service.proto",
}
