// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.4.0
// - protoc             (unknown)
// source: global/nextgen/v1/rcu_quota.proto

package nextgenv1

import (
	context "context"
	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.62.0 or later.
const _ = grpc.SupportPackageIsVersion8

const (
	RcuQuotaService_GetRcuQuota_FullMethodName      = "/global.nextgen.v1.RcuQuotaService/GetRcuQuota"
	RcuQuotaService_CalculateMinRcu_FullMethodName  = "/global.nextgen.v1.RcuQuotaService/CalculateMinRcu"
	RcuQuotaService_ListOrgRcuQuotas_FullMethodName = "/global.nextgen.v1.RcuQuotaService/ListOrgRcuQuotas"
	RcuQuotaService_UpdateRcuQuota_FullMethodName   = "/global.nextgen.v1.RcuQuotaService/UpdateRcuQuota"
)

// RcuQuotaServiceClient is the client API for RcuQuotaService 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 RcuQuotaServiceClient interface {
	GetRcuQuota(ctx context.Context, in *GetRcuQuotaRequest, opts ...grpc.CallOption) (*RcuQuota, error)
	CalculateMinRcu(ctx context.Context, in *CalculateMinRcuRequest, opts ...grpc.CallOption) (*CalculateMinRcuResponse, error)
	ListOrgRcuQuotas(ctx context.Context, in *ListOrgRcuQuotasRequest, opts ...grpc.CallOption) (*ListOrgRcuQuotasResponse, error)
	UpdateRcuQuota(ctx context.Context, in *UpdateRcuQuotaRequest, opts ...grpc.CallOption) (*RcuQuota, error)
}

type rcuQuotaServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewRcuQuotaServiceClient(cc grpc.ClientConnInterface) RcuQuotaServiceClient {
	return &rcuQuotaServiceClient{cc}
}

func (c *rcuQuotaServiceClient) GetRcuQuota(ctx context.Context, in *GetRcuQuotaRequest, opts ...grpc.CallOption) (*RcuQuota, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(RcuQuota)
	err := c.cc.Invoke(ctx, RcuQuotaService_GetRcuQuota_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *rcuQuotaServiceClient) CalculateMinRcu(ctx context.Context, in *CalculateMinRcuRequest, opts ...grpc.CallOption) (*CalculateMinRcuResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CalculateMinRcuResponse)
	err := c.cc.Invoke(ctx, RcuQuotaService_CalculateMinRcu_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *rcuQuotaServiceClient) ListOrgRcuQuotas(ctx context.Context, in *ListOrgRcuQuotasRequest, opts ...grpc.CallOption) (*ListOrgRcuQuotasResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListOrgRcuQuotasResponse)
	err := c.cc.Invoke(ctx, RcuQuotaService_ListOrgRcuQuotas_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *rcuQuotaServiceClient) UpdateRcuQuota(ctx context.Context, in *UpdateRcuQuotaRequest, opts ...grpc.CallOption) (*RcuQuota, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(RcuQuota)
	err := c.cc.Invoke(ctx, RcuQuotaService_UpdateRcuQuota_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// RcuQuotaServiceServer is the server API for RcuQuotaService service.
// All implementations should embed UnimplementedRcuQuotaServiceServer
// for forward compatibility
type RcuQuotaServiceServer interface {
	GetRcuQuota(context.Context, *GetRcuQuotaRequest) (*RcuQuota, error)
	CalculateMinRcu(context.Context, *CalculateMinRcuRequest) (*CalculateMinRcuResponse, error)
	ListOrgRcuQuotas(context.Context, *ListOrgRcuQuotasRequest) (*ListOrgRcuQuotasResponse, error)
	UpdateRcuQuota(context.Context, *UpdateRcuQuotaRequest) (*RcuQuota, error)
}

// UnimplementedRcuQuotaServiceServer should be embedded to have forward compatible implementations.
type UnimplementedRcuQuotaServiceServer struct {
}

func (UnimplementedRcuQuotaServiceServer) GetRcuQuota(context.Context, *GetRcuQuotaRequest) (*RcuQuota, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRcuQuota not implemented")
}
func (UnimplementedRcuQuotaServiceServer) CalculateMinRcu(context.Context, *CalculateMinRcuRequest) (*CalculateMinRcuResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CalculateMinRcu not implemented")
}
func (UnimplementedRcuQuotaServiceServer) ListOrgRcuQuotas(context.Context, *ListOrgRcuQuotasRequest) (*ListOrgRcuQuotasResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListOrgRcuQuotas not implemented")
}
func (UnimplementedRcuQuotaServiceServer) UpdateRcuQuota(context.Context, *UpdateRcuQuotaRequest) (*RcuQuota, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateRcuQuota not implemented")
}

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

func RegisterRcuQuotaServiceServer(s grpc.ServiceRegistrar, srv RcuQuotaServiceServer) {
	s.RegisterService(&RcuQuotaService_ServiceDesc, srv)
}

func _RcuQuotaService_GetRcuQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetRcuQuotaRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RcuQuotaServiceServer).GetRcuQuota(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RcuQuotaService_GetRcuQuota_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RcuQuotaServiceServer).GetRcuQuota(ctx, req.(*GetRcuQuotaRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RcuQuotaService_CalculateMinRcu_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CalculateMinRcuRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RcuQuotaServiceServer).CalculateMinRcu(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RcuQuotaService_CalculateMinRcu_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RcuQuotaServiceServer).CalculateMinRcu(ctx, req.(*CalculateMinRcuRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RcuQuotaService_ListOrgRcuQuotas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListOrgRcuQuotasRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RcuQuotaServiceServer).ListOrgRcuQuotas(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RcuQuotaService_ListOrgRcuQuotas_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RcuQuotaServiceServer).ListOrgRcuQuotas(ctx, req.(*ListOrgRcuQuotasRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RcuQuotaService_UpdateRcuQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateRcuQuotaRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RcuQuotaServiceServer).UpdateRcuQuota(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RcuQuotaService_UpdateRcuQuota_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RcuQuotaServiceServer).UpdateRcuQuota(ctx, req.(*UpdateRcuQuotaRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// RcuQuotaService_ServiceDesc is the grpc.ServiceDesc for RcuQuotaService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RcuQuotaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "global.nextgen.v1.RcuQuotaService",
	HandlerType: (*RcuQuotaServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRcuQuota",
			Handler:    _RcuQuotaService_GetRcuQuota_Handler,
		},
		{
			MethodName: "CalculateMinRcu",
			Handler:    _RcuQuotaService_CalculateMinRcu_Handler,
		},
		{
			MethodName: "ListOrgRcuQuotas",
			Handler:    _RcuQuotaService_ListOrgRcuQuotas_Handler,
		},
		{
			MethodName: "UpdateRcuQuota",
			Handler:    _RcuQuotaService_UpdateRcuQuota_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "global/nextgen/v1/rcu_quota.proto",
}
