// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.25.1 // source: shell.proto package proto 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.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( ShellService_CreateStandaloneShell_FullMethodName = "/shell.ShellService/CreateStandaloneShell" ShellService_CreateShellInExistingContainer_FullMethodName = "/shell.ShellService/CreateShellInExistingContainer" ) // ShellServiceClient is the client API for ShellService 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 ShellServiceClient interface { CreateStandaloneShell(ctx context.Context, in *CreateStandaloneShellRequest, opts ...grpc.CallOption) (*CreateStandaloneShellResponse, error) CreateShellInExistingContainer(ctx context.Context, in *CreateShellInExistingContainerRequest, opts ...grpc.CallOption) (*CreateShellInExistingContainerResponse, error) } type shellServiceClient struct { cc grpc.ClientConnInterface } func NewShellServiceClient(cc grpc.ClientConnInterface) ShellServiceClient { return &shellServiceClient{cc} } func (c *shellServiceClient) CreateStandaloneShell(ctx context.Context, in *CreateStandaloneShellRequest, opts ...grpc.CallOption) (*CreateStandaloneShellResponse, error) { out := new(CreateStandaloneShellResponse) err := c.cc.Invoke(ctx, ShellService_CreateStandaloneShell_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *shellServiceClient) CreateShellInExistingContainer(ctx context.Context, in *CreateShellInExistingContainerRequest, opts ...grpc.CallOption) (*CreateShellInExistingContainerResponse, error) { out := new(CreateShellInExistingContainerResponse) err := c.cc.Invoke(ctx, ShellService_CreateShellInExistingContainer_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // ShellServiceServer is the server API for ShellService service. // All implementations must embed UnimplementedShellServiceServer // for forward compatibility type ShellServiceServer interface { CreateStandaloneShell(context.Context, *CreateStandaloneShellRequest) (*CreateStandaloneShellResponse, error) CreateShellInExistingContainer(context.Context, *CreateShellInExistingContainerRequest) (*CreateShellInExistingContainerResponse, error) mustEmbedUnimplementedShellServiceServer() } // UnimplementedShellServiceServer must be embedded to have forward compatible implementations. type UnimplementedShellServiceServer struct { } func (UnimplementedShellServiceServer) CreateStandaloneShell(context.Context, *CreateStandaloneShellRequest) (*CreateStandaloneShellResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateStandaloneShell not implemented") } func (UnimplementedShellServiceServer) CreateShellInExistingContainer(context.Context, *CreateShellInExistingContainerRequest) (*CreateShellInExistingContainerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateShellInExistingContainer not implemented") } func (UnimplementedShellServiceServer) mustEmbedUnimplementedShellServiceServer() {} // UnsafeShellServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ShellServiceServer will // result in compilation errors. type UnsafeShellServiceServer interface { mustEmbedUnimplementedShellServiceServer() } func RegisterShellServiceServer(s grpc.ServiceRegistrar, srv ShellServiceServer) { s.RegisterService(&ShellService_ServiceDesc, srv) } func _ShellService_CreateStandaloneShell_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateStandaloneShellRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ShellServiceServer).CreateStandaloneShell(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ShellService_CreateStandaloneShell_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ShellServiceServer).CreateStandaloneShell(ctx, req.(*CreateStandaloneShellRequest)) } return interceptor(ctx, in, info, handler) } func _ShellService_CreateShellInExistingContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateShellInExistingContainerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ShellServiceServer).CreateShellInExistingContainer(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ShellService_CreateShellInExistingContainer_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ShellServiceServer).CreateShellInExistingContainer(ctx, req.(*CreateShellInExistingContainerRequest)) } return interceptor(ctx, in, info, handler) } // ShellService_ServiceDesc is the grpc.ServiceDesc for ShellService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ShellService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shell.ShellService", HandlerType: (*ShellServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateStandaloneShell", Handler: _ShellService_CreateStandaloneShell_Handler, }, { MethodName: "CreateShellInExistingContainer", Handler: _ShellService_CreateShellInExistingContainer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "shell.proto", }