// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc             v3.21.12
// source: yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_service.proto

package mcpgateway

import (
	context "context"
	access "github.com/yandex-cloud/go-genproto/yandex/cloud/access"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9

const (
	McpGatewayService_Get_FullMethodName                  = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/Get"
	McpGatewayService_List_FullMethodName                 = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/List"
	McpGatewayService_Create_FullMethodName               = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/Create"
	McpGatewayService_Update_FullMethodName               = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/Update"
	McpGatewayService_Delete_FullMethodName               = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/Delete"
	McpGatewayService_ListOperations_FullMethodName       = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/ListOperations"
	McpGatewayService_ListAccessBindings_FullMethodName   = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/ListAccessBindings"
	McpGatewayService_SetAccessBindings_FullMethodName    = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/SetAccessBindings"
	McpGatewayService_UpdateAccessBindings_FullMethodName = "/yandex.cloud.serverless.mcpgateway.v1.McpGatewayService/UpdateAccessBindings"
)

// McpGatewayServiceClient is the client API for McpGatewayService 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.
//
// A set of methods for managing MCP Gateway resources.
type McpGatewayServiceClient interface {
	// Retrieves the specified MCP Gateway.
	Get(ctx context.Context, in *GetMcpGatewayRequest, opts ...grpc.CallOption) (*McpGateway, error)
	// Retrieves the list of MCP Gateways in the specified folder.
	List(ctx context.Context, in *ListMcpGatewayRequest, opts ...grpc.CallOption) (*ListMcpGatewayResponse, error)
	// Creates an MCP Gateway in the specified folder.
	Create(ctx context.Context, in *CreateMcpGatewayRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates the specified MCP Gateway.
	Update(ctx context.Context, in *UpdateMcpGatewayRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified MCP Gateway.
	Delete(ctx context.Context, in *DeleteMcpGatewayRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Lists operations for the specified MCP Gateway.
	ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error)
	// Lists access bindings for the specified MCP Gateway.
	ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the specified MCP Gateway.
	SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates access bindings for the specified MCP Gateway.
	UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

type mcpGatewayServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewMcpGatewayServiceClient(cc grpc.ClientConnInterface) McpGatewayServiceClient {
	return &mcpGatewayServiceClient{cc}
}

func (c *mcpGatewayServiceClient) Get(ctx context.Context, in *GetMcpGatewayRequest, opts ...grpc.CallOption) (*McpGateway, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(McpGateway)
	err := c.cc.Invoke(ctx, McpGatewayService_Get_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) List(ctx context.Context, in *ListMcpGatewayRequest, opts ...grpc.CallOption) (*ListMcpGatewayResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListMcpGatewayResponse)
	err := c.cc.Invoke(ctx, McpGatewayService_List_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) Create(ctx context.Context, in *CreateMcpGatewayRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, McpGatewayService_Create_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) Update(ctx context.Context, in *UpdateMcpGatewayRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, McpGatewayService_Update_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) Delete(ctx context.Context, in *DeleteMcpGatewayRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, McpGatewayService_Delete_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListOperationsResponse)
	err := c.cc.Invoke(ctx, McpGatewayService_ListOperations_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(access.ListAccessBindingsResponse)
	err := c.cc.Invoke(ctx, McpGatewayService_ListAccessBindings_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, McpGatewayService_SetAccessBindings_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *mcpGatewayServiceClient) UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(operation.Operation)
	err := c.cc.Invoke(ctx, McpGatewayService_UpdateAccessBindings_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// McpGatewayServiceServer is the server API for McpGatewayService service.
// All implementations should embed UnimplementedMcpGatewayServiceServer
// for forward compatibility.
//
// A set of methods for managing MCP Gateway resources.
type McpGatewayServiceServer interface {
	// Retrieves the specified MCP Gateway.
	Get(context.Context, *GetMcpGatewayRequest) (*McpGateway, error)
	// Retrieves the list of MCP Gateways in the specified folder.
	List(context.Context, *ListMcpGatewayRequest) (*ListMcpGatewayResponse, error)
	// Creates an MCP Gateway in the specified folder.
	Create(context.Context, *CreateMcpGatewayRequest) (*operation.Operation, error)
	// Updates the specified MCP Gateway.
	Update(context.Context, *UpdateMcpGatewayRequest) (*operation.Operation, error)
	// Deletes the specified MCP Gateway.
	Delete(context.Context, *DeleteMcpGatewayRequest) (*operation.Operation, error)
	// Lists operations for the specified MCP Gateway.
	ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error)
	// Lists access bindings for the specified MCP Gateway.
	ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the specified MCP Gateway.
	SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error)
	// Updates access bindings for the specified MCP Gateway.
	UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error)
}

// UnimplementedMcpGatewayServiceServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedMcpGatewayServiceServer struct{}

func (UnimplementedMcpGatewayServiceServer) Get(context.Context, *GetMcpGatewayRequest) (*McpGateway, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (UnimplementedMcpGatewayServiceServer) List(context.Context, *ListMcpGatewayRequest) (*ListMcpGatewayResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (UnimplementedMcpGatewayServiceServer) Create(context.Context, *CreateMcpGatewayRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedMcpGatewayServiceServer) Update(context.Context, *UpdateMcpGatewayRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (UnimplementedMcpGatewayServiceServer) Delete(context.Context, *DeleteMcpGatewayRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (UnimplementedMcpGatewayServiceServer) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented")
}
func (UnimplementedMcpGatewayServiceServer) ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListAccessBindings not implemented")
}
func (UnimplementedMcpGatewayServiceServer) SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method SetAccessBindings not implemented")
}
func (UnimplementedMcpGatewayServiceServer) UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateAccessBindings not implemented")
}
func (UnimplementedMcpGatewayServiceServer) testEmbeddedByValue() {}

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

func RegisterMcpGatewayServiceServer(s grpc.ServiceRegistrar, srv McpGatewayServiceServer) {
	// If the following call pancis, it indicates UnimplementedMcpGatewayServiceServer was
	// embedded by pointer and is nil.  This will cause panics if an
	// unimplemented method is ever invoked, so we test this at initialization
	// time to prevent it from happening at runtime later due to I/O.
	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
		t.testEmbeddedByValue()
	}
	s.RegisterService(&McpGatewayService_ServiceDesc, srv)
}

func _McpGatewayService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetMcpGatewayRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).Get(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_Get_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).Get(ctx, req.(*GetMcpGatewayRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListMcpGatewayRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).List(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_List_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).List(ctx, req.(*ListMcpGatewayRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateMcpGatewayRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).Create(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_Create_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).Create(ctx, req.(*CreateMcpGatewayRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateMcpGatewayRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).Update(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_Update_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).Update(ctx, req.(*UpdateMcpGatewayRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteMcpGatewayRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).Delete(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_Delete_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).Delete(ctx, req.(*DeleteMcpGatewayRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListOperationsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).ListOperations(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_ListOperations_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).ListOperations(ctx, req.(*ListOperationsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_ListAccessBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(access.ListAccessBindingsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).ListAccessBindings(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_ListAccessBindings_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).ListAccessBindings(ctx, req.(*access.ListAccessBindingsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_SetAccessBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(access.SetAccessBindingsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).SetAccessBindings(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_SetAccessBindings_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).SetAccessBindings(ctx, req.(*access.SetAccessBindingsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _McpGatewayService_UpdateAccessBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(access.UpdateAccessBindingsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(McpGatewayServiceServer).UpdateAccessBindings(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: McpGatewayService_UpdateAccessBindings_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(McpGatewayServiceServer).UpdateAccessBindings(ctx, req.(*access.UpdateAccessBindingsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// McpGatewayService_ServiceDesc is the grpc.ServiceDesc for McpGatewayService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var McpGatewayService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.serverless.mcpgateway.v1.McpGatewayService",
	HandlerType: (*McpGatewayServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _McpGatewayService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _McpGatewayService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _McpGatewayService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _McpGatewayService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _McpGatewayService_Delete_Handler,
		},
		{
			MethodName: "ListOperations",
			Handler:    _McpGatewayService_ListOperations_Handler,
		},
		{
			MethodName: "ListAccessBindings",
			Handler:    _McpGatewayService_ListAccessBindings_Handler,
		},
		{
			MethodName: "SetAccessBindings",
			Handler:    _McpGatewayService_SetAccessBindings_Handler,
		},
		{
			MethodName: "UpdateAccessBindings",
			Handler:    _McpGatewayService_UpdateAccessBindings_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/serverless/mcpgateway/v1/mcp_gateway_service.proto",
}
