// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc             (unknown)
// source: runtime/v1/layout_authoring.proto

package runtimev1

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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9

const (
	LayoutAuthoringService_Submit_FullMethodName           = "/nexuscrm.runtime.v1.LayoutAuthoringService/Submit"
	LayoutAuthoringService_GetCommand_FullMethodName       = "/nexuscrm.runtime.v1.LayoutAuthoringService/GetCommand"
	LayoutAuthoringService_ReadWorkspace_FullMethodName    = "/nexuscrm.runtime.v1.LayoutAuthoringService/ReadWorkspace"
	LayoutAuthoringService_ReadStoredLayout_FullMethodName = "/nexuscrm.runtime.v1.LayoutAuthoringService/ReadStoredLayout"
)

// LayoutAuthoringServiceClient is the client API for LayoutAuthoringService 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.
//
// LayoutAuthoringService exposes one typed Layout lifecycle. Authentication,
// delegated authority, admission, and transport policy remain host-owned.
type LayoutAuthoringServiceClient interface {
	Submit(ctx context.Context, in *LayoutAuthoringServiceSubmitRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceSubmitResponse, error)
	GetCommand(ctx context.Context, in *LayoutAuthoringServiceGetCommandRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceGetCommandResponse, error)
	ReadWorkspace(ctx context.Context, in *LayoutAuthoringServiceReadWorkspaceRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceReadWorkspaceResponse, error)
	ReadStoredLayout(ctx context.Context, in *LayoutAuthoringServiceReadStoredLayoutRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceReadStoredLayoutResponse, error)
}

type layoutAuthoringServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewLayoutAuthoringServiceClient(cc grpc.ClientConnInterface) LayoutAuthoringServiceClient {
	return &layoutAuthoringServiceClient{cc}
}

func (c *layoutAuthoringServiceClient) Submit(ctx context.Context, in *LayoutAuthoringServiceSubmitRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceSubmitResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(LayoutAuthoringServiceSubmitResponse)
	err := c.cc.Invoke(ctx, LayoutAuthoringService_Submit_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *layoutAuthoringServiceClient) GetCommand(ctx context.Context, in *LayoutAuthoringServiceGetCommandRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceGetCommandResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(LayoutAuthoringServiceGetCommandResponse)
	err := c.cc.Invoke(ctx, LayoutAuthoringService_GetCommand_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *layoutAuthoringServiceClient) ReadWorkspace(ctx context.Context, in *LayoutAuthoringServiceReadWorkspaceRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceReadWorkspaceResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(LayoutAuthoringServiceReadWorkspaceResponse)
	err := c.cc.Invoke(ctx, LayoutAuthoringService_ReadWorkspace_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *layoutAuthoringServiceClient) ReadStoredLayout(ctx context.Context, in *LayoutAuthoringServiceReadStoredLayoutRequest, opts ...grpc.CallOption) (*LayoutAuthoringServiceReadStoredLayoutResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(LayoutAuthoringServiceReadStoredLayoutResponse)
	err := c.cc.Invoke(ctx, LayoutAuthoringService_ReadStoredLayout_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// LayoutAuthoringServiceServer is the server API for LayoutAuthoringService service.
// All implementations must embed UnimplementedLayoutAuthoringServiceServer
// for forward compatibility.
//
// LayoutAuthoringService exposes one typed Layout lifecycle. Authentication,
// delegated authority, admission, and transport policy remain host-owned.
type LayoutAuthoringServiceServer interface {
	Submit(context.Context, *LayoutAuthoringServiceSubmitRequest) (*LayoutAuthoringServiceSubmitResponse, error)
	GetCommand(context.Context, *LayoutAuthoringServiceGetCommandRequest) (*LayoutAuthoringServiceGetCommandResponse, error)
	ReadWorkspace(context.Context, *LayoutAuthoringServiceReadWorkspaceRequest) (*LayoutAuthoringServiceReadWorkspaceResponse, error)
	ReadStoredLayout(context.Context, *LayoutAuthoringServiceReadStoredLayoutRequest) (*LayoutAuthoringServiceReadStoredLayoutResponse, error)
	mustEmbedUnimplementedLayoutAuthoringServiceServer()
}

// UnimplementedLayoutAuthoringServiceServer must 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 UnimplementedLayoutAuthoringServiceServer struct{}

func (UnimplementedLayoutAuthoringServiceServer) Submit(context.Context, *LayoutAuthoringServiceSubmitRequest) (*LayoutAuthoringServiceSubmitResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method Submit not implemented")
}
func (UnimplementedLayoutAuthoringServiceServer) GetCommand(context.Context, *LayoutAuthoringServiceGetCommandRequest) (*LayoutAuthoringServiceGetCommandResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method GetCommand not implemented")
}
func (UnimplementedLayoutAuthoringServiceServer) ReadWorkspace(context.Context, *LayoutAuthoringServiceReadWorkspaceRequest) (*LayoutAuthoringServiceReadWorkspaceResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method ReadWorkspace not implemented")
}
func (UnimplementedLayoutAuthoringServiceServer) ReadStoredLayout(context.Context, *LayoutAuthoringServiceReadStoredLayoutRequest) (*LayoutAuthoringServiceReadStoredLayoutResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method ReadStoredLayout not implemented")
}
func (UnimplementedLayoutAuthoringServiceServer) mustEmbedUnimplementedLayoutAuthoringServiceServer() {
}
func (UnimplementedLayoutAuthoringServiceServer) testEmbeddedByValue() {}

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

func RegisterLayoutAuthoringServiceServer(s grpc.ServiceRegistrar, srv LayoutAuthoringServiceServer) {
	// If the following call panics, it indicates UnimplementedLayoutAuthoringServiceServer 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(&LayoutAuthoringService_ServiceDesc, srv)
}

func _LayoutAuthoringService_Submit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(LayoutAuthoringServiceSubmitRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(LayoutAuthoringServiceServer).Submit(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: LayoutAuthoringService_Submit_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(LayoutAuthoringServiceServer).Submit(ctx, req.(*LayoutAuthoringServiceSubmitRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _LayoutAuthoringService_GetCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(LayoutAuthoringServiceGetCommandRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(LayoutAuthoringServiceServer).GetCommand(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: LayoutAuthoringService_GetCommand_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(LayoutAuthoringServiceServer).GetCommand(ctx, req.(*LayoutAuthoringServiceGetCommandRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _LayoutAuthoringService_ReadWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(LayoutAuthoringServiceReadWorkspaceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(LayoutAuthoringServiceServer).ReadWorkspace(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: LayoutAuthoringService_ReadWorkspace_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(LayoutAuthoringServiceServer).ReadWorkspace(ctx, req.(*LayoutAuthoringServiceReadWorkspaceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _LayoutAuthoringService_ReadStoredLayout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(LayoutAuthoringServiceReadStoredLayoutRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(LayoutAuthoringServiceServer).ReadStoredLayout(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: LayoutAuthoringService_ReadStoredLayout_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(LayoutAuthoringServiceServer).ReadStoredLayout(ctx, req.(*LayoutAuthoringServiceReadStoredLayoutRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// LayoutAuthoringService_ServiceDesc is the grpc.ServiceDesc for LayoutAuthoringService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var LayoutAuthoringService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nexuscrm.runtime.v1.LayoutAuthoringService",
	HandlerType: (*LayoutAuthoringServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Submit",
			Handler:    _LayoutAuthoringService_Submit_Handler,
		},
		{
			MethodName: "GetCommand",
			Handler:    _LayoutAuthoringService_GetCommand_Handler,
		},
		{
			MethodName: "ReadWorkspace",
			Handler:    _LayoutAuthoringService_ReadWorkspace_Handler,
		},
		{
			MethodName: "ReadStoredLayout",
			Handler:    _LayoutAuthoringService_ReadStoredLayout_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "runtime/v1/layout_authoring.proto",
}
