proto

package
v0.0.0-...-d405b47 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ibodai_Stream_FullMethodName = "/Ibodai/Stream"
)

Variables

View Source
var (
	ClientMessageType_name = map[int32]string{
		0: "HELLO",
		1: "OUTPUT",
		2: "DONE",
	}
	ClientMessageType_value = map[string]int32{
		"HELLO":  0,
		"OUTPUT": 1,
		"DONE":   2,
	}
)

Enum value maps for ClientMessageType.

View Source
var File_butterfish_proto protoreflect.FileDescriptor
View Source
var File_ibodai_proto protoreflect.FileDescriptor
View Source
var Ibodai_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Ibodai",
	HandlerType: (*IbodaiServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Stream",
			Handler:       _Ibodai_Stream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "ibodai.proto",
}

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

Functions

func RegisterIbodaiServer

func RegisterIbodaiServer(s grpc.ServiceRegistrar, srv IbodaiServer)

Types

type AnnotatedEmbedding

type AnnotatedEmbedding struct {
	Start  uint64    `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` // start index in bytes to the file chunk
	End    uint64    `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`     // end index in bytes to the file chunk
	Vector []float32 `protobuf:"fixed32,4,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	// contains filtered or unexported fields
}

func (*AnnotatedEmbedding) Descriptor deprecated

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

Deprecated: Use AnnotatedEmbedding.ProtoReflect.Descriptor instead.

func (*AnnotatedEmbedding) GetEnd

func (x *AnnotatedEmbedding) GetEnd() uint64

func (*AnnotatedEmbedding) GetStart

func (x *AnnotatedEmbedding) GetStart() uint64

func (*AnnotatedEmbedding) GetVector

func (x *AnnotatedEmbedding) GetVector() []float32

func (*AnnotatedEmbedding) ProtoMessage

func (*AnnotatedEmbedding) ProtoMessage()

func (*AnnotatedEmbedding) ProtoReflect

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

func (*AnnotatedEmbedding) Reset

func (x *AnnotatedEmbedding) Reset()

func (*AnnotatedEmbedding) String

func (x *AnnotatedEmbedding) String() string

type ClientMessage

type ClientMessage struct {
	Type        ClientMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=ClientMessageType" json:"type,omitempty"`
	ClientToken string            `protobuf:"bytes,2,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"` // for HELLO
	CommandId   string            `protobuf:"bytes,3,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`       // for OUTPUT and DONE
	Data        []byte            `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`                                  // for OUTPUT
	ExitCode    int32             `protobuf:"varint,5,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`         // for DONE
	// contains filtered or unexported fields
}

func (*ClientMessage) Descriptor deprecated

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

Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.

func (*ClientMessage) GetClientToken

func (x *ClientMessage) GetClientToken() string

func (*ClientMessage) GetCommandId

func (x *ClientMessage) GetCommandId() string

func (*ClientMessage) GetData

func (x *ClientMessage) GetData() []byte

func (*ClientMessage) GetExitCode

func (x *ClientMessage) GetExitCode() int32

func (*ClientMessage) GetType

func (x *ClientMessage) GetType() ClientMessageType

func (*ClientMessage) ProtoMessage

func (*ClientMessage) ProtoMessage()

func (*ClientMessage) ProtoReflect

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

func (*ClientMessage) Reset

func (x *ClientMessage) Reset()

func (*ClientMessage) String

func (x *ClientMessage) String() string

type ClientMessageType

type ClientMessageType int32
const (
	ClientMessageType_HELLO  ClientMessageType = 0
	ClientMessageType_OUTPUT ClientMessageType = 1
	ClientMessageType_DONE   ClientMessageType = 2
)

func (ClientMessageType) Descriptor

func (ClientMessageType) Enum

func (ClientMessageType) EnumDescriptor deprecated

func (ClientMessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClientMessageType.Descriptor instead.

func (ClientMessageType) Number

func (ClientMessageType) String

func (x ClientMessageType) String() string

func (ClientMessageType) Type

type Command

type Command struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

The Command message is sent from the server to the client. The client should respond with a Response message with the same ID.

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetCommand

func (x *Command) GetCommand() string

func (*Command) GetId

func (x *Command) GetId() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type DirectoryIndex

type DirectoryIndex struct {

	// string should be a relative path, e.g. "./foo.txt"
	Files map[string]*FileEmbeddings `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents the constituent files of a directory, this should map a relative path from the directory to a file within it (but not within a child dir).

func (*DirectoryIndex) Descriptor deprecated

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

Deprecated: Use DirectoryIndex.ProtoReflect.Descriptor instead.

func (*DirectoryIndex) GetFiles

func (x *DirectoryIndex) GetFiles() map[string]*FileEmbeddings

func (*DirectoryIndex) ProtoMessage

func (*DirectoryIndex) ProtoMessage()

func (*DirectoryIndex) ProtoReflect

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

func (*DirectoryIndex) Reset

func (x *DirectoryIndex) Reset()

func (*DirectoryIndex) String

func (x *DirectoryIndex) String() string

type FileEmbeddings

type FileEmbeddings struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // filename, relative path to the DirectoryIndex, e.g. ./foo
	// When the embedding was created, if an earlier timestamp than the file
	// edit time then the file should be re-embedded.
	UpdatedAt  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Embeddings []*AnnotatedEmbedding  `protobuf:"bytes,3,rep,name=embeddings,proto3" json:"embeddings,omitempty"`
	// contains filtered or unexported fields
}

func (*FileEmbeddings) Descriptor deprecated

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

Deprecated: Use FileEmbeddings.ProtoReflect.Descriptor instead.

func (*FileEmbeddings) GetEmbeddings

func (x *FileEmbeddings) GetEmbeddings() []*AnnotatedEmbedding

func (*FileEmbeddings) GetPath

func (x *FileEmbeddings) GetPath() string

func (*FileEmbeddings) GetUpdatedAt

func (x *FileEmbeddings) GetUpdatedAt() *timestamppb.Timestamp

func (*FileEmbeddings) ProtoMessage

func (*FileEmbeddings) ProtoMessage()

func (*FileEmbeddings) ProtoReflect

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

func (*FileEmbeddings) Reset

func (x *FileEmbeddings) Reset()

func (*FileEmbeddings) String

func (x *FileEmbeddings) String() string

type IbodaiClient

type IbodaiClient interface {
	Stream(ctx context.Context, opts ...grpc.CallOption) (Ibodai_StreamClient, error)
}

IbodaiClient is the client API for Ibodai 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 NewIbodaiClient

func NewIbodaiClient(cc grpc.ClientConnInterface) IbodaiClient

type IbodaiServer

type IbodaiServer interface {
	Stream(Ibodai_StreamServer) error
	// contains filtered or unexported methods
}

IbodaiServer is the server API for Ibodai service. All implementations must embed UnimplementedIbodaiServer for forward compatibility

type Ibodai_StreamClient

type Ibodai_StreamClient interface {
	Send(*ClientMessage) error
	Recv() (*Command, error)
	grpc.ClientStream
}

type Ibodai_StreamServer

type Ibodai_StreamServer interface {
	Send(*Command) error
	Recv() (*ClientMessage, error)
	grpc.ServerStream
}

type UnimplementedIbodaiServer

type UnimplementedIbodaiServer struct {
}

UnimplementedIbodaiServer must be embedded to have forward compatible implementations.

func (UnimplementedIbodaiServer) Stream

type UnsafeIbodaiServer

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

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

Jump to

Keyboard shortcuts

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