aiv1alpha1

package
v3.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AIService_GenerateCells_FullMethodName = "/runme.ai.v1alpha1.AIService/GenerateCells"
)

Variables

View Source
var AIService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "runme.ai.v1alpha1.AIService",
	HandlerType: (*AIServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateCells",
			Handler:    _AIService_GenerateCells_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "runme/ai/v1alpha1/ai.proto",
}

AIService_ServiceDesc is the grpc.ServiceDesc for AIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_runme_ai_v1alpha1_ai_proto protoreflect.FileDescriptor

Functions

func RegisterAIServiceServer

func RegisterAIServiceServer(s grpc.ServiceRegistrar, srv AIServiceServer)

Types

type AIServiceClient

type AIServiceClient interface {
	// GenerateCells uses the AI to generate cells to insert into the notebook.
	GenerateCells(ctx context.Context, in *GenerateCellsRequest, opts ...grpc.CallOption) (*GenerateCellsResponse, error)
}

AIServiceClient is the client API for AIService 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.

func NewAIServiceClient

func NewAIServiceClient(cc grpc.ClientConnInterface) AIServiceClient

type AIServiceServer

type AIServiceServer interface {
	// GenerateCells uses the AI to generate cells to insert into the notebook.
	GenerateCells(context.Context, *GenerateCellsRequest) (*GenerateCellsResponse, error)
	// contains filtered or unexported methods
}

AIServiceServer is the server API for AIService service. All implementations must embed UnimplementedAIServiceServer for forward compatibility

type GenerateCellsRequest

type GenerateCellsRequest struct {
	Notebook *v1.Notebook `protobuf:"bytes,1,opt,name=notebook,proto3" json:"notebook,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateCellsRequest) Descriptor deprecated

func (*GenerateCellsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenerateCellsRequest.ProtoReflect.Descriptor instead.

func (*GenerateCellsRequest) GetNotebook

func (x *GenerateCellsRequest) GetNotebook() *v1.Notebook

func (*GenerateCellsRequest) ProtoMessage

func (*GenerateCellsRequest) ProtoMessage()

func (*GenerateCellsRequest) ProtoReflect

func (x *GenerateCellsRequest) ProtoReflect() protoreflect.Message

func (*GenerateCellsRequest) Reset

func (x *GenerateCellsRequest) Reset()

func (*GenerateCellsRequest) String

func (x *GenerateCellsRequest) String() string

type GenerateCellsResponse

type GenerateCellsResponse struct {
	Cells []*v1.Cell `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateCellsResponse) Descriptor deprecated

func (*GenerateCellsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenerateCellsResponse.ProtoReflect.Descriptor instead.

func (*GenerateCellsResponse) GetCells

func (x *GenerateCellsResponse) GetCells() []*v1.Cell

func (*GenerateCellsResponse) ProtoMessage

func (*GenerateCellsResponse) ProtoMessage()

func (*GenerateCellsResponse) ProtoReflect

func (x *GenerateCellsResponse) ProtoReflect() protoreflect.Message

func (*GenerateCellsResponse) Reset

func (x *GenerateCellsResponse) Reset()

func (*GenerateCellsResponse) String

func (x *GenerateCellsResponse) String() string

type UnimplementedAIServiceServer

type UnimplementedAIServiceServer struct {
}

UnimplementedAIServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAIServiceServer) GenerateCells

type UnsafeAIServiceServer

type UnsafeAIServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAIServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AIServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL