SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v3.21.12
// source: vector.proto
package vector_pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type DistanceMetric int32
const (
DistanceMetric_DISTANCE_METRIC_UNSPECIFIED DistanceMetric = 0
DistanceMetric_L2 DistanceMetric = 1
DistanceMetric_COSINE DistanceMetric = 2
DistanceMetric_DOT_PRODUCT DistanceMetric = 3
)
// Enum value maps for DistanceMetric.
var (
DistanceMetric_name = map[int32]string{
0: "DISTANCE_METRIC_UNSPECIFIED",
1: "L2",
2: "COSINE",
3: "DOT_PRODUCT",
}
DistanceMetric_value = map[string]int32{
"DISTANCE_METRIC_UNSPECIFIED": 0,
"L2": 1,
"COSINE": 2,
"DOT_PRODUCT": 3,
}
)
func (x DistanceMetric) Enum() *DistanceMetric {
p := new(DistanceMetric)
*p = x
return p
}
func (x DistanceMetric) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DistanceMetric) Descriptor() protoreflect.EnumDescriptor {
return file_vector_proto_enumTypes[0].Descriptor()
}
func (DistanceMetric) Type() protoreflect.EnumType {
return &file_vector_proto_enumTypes[0]
}
func (x DistanceMetric) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DistanceMetric.Descriptor instead.
func (DistanceMetric) EnumDescriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{0}
}
// Table addresses a Lance table through the namespace: the id parts as the
// namespace catalog joins them. The gateway resolves the table before it
// calls, so the engine opens it without a catalog round trip of its own.
type Table struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
// Dataset version to pin reads to; 0 means latest.
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
// The table's Lance location, as the catalog describes it.
Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
// The bucket encrypts its objects with SSE-S3; the engine writes the
// table's files that way.
SseS3 bool `protobuf:"varint,5,opt,name=sse_s3,json=sseS3,proto3" json:"sse_s3,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Table) Reset() {
*x = Table{}
mi := &file_vector_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Table) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Table) ProtoMessage() {}
func (x *Table) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Table.ProtoReflect.Descriptor instead.
func (*Table) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{0}
}
func (x *Table) GetId() []string {
if x != nil {
return x.Id
}
return nil
}
func (x *Table) GetVersion() uint64 {
if x != nil {
return x.Version
}
return 0
}
func (x *Table) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
func (x *Table) GetSseS3() bool {
if x != nil {
return x.SseS3
}
return false
}
type CreateIndexRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
Dimension uint32 `protobuf:"varint,2,opt,name=dimension,proto3" json:"dimension,omitempty"`
DistanceMetric DistanceMetric `protobuf:"varint,3,opt,name=distance_metric,json=distanceMetric,proto3,enum=vector_pb.DistanceMetric" json:"distance_metric,omitempty"`
NonFilterableMetadataKeys []string `protobuf:"bytes,4,rep,name=non_filterable_metadata_keys,json=nonFilterableMetadataKeys,proto3" json:"non_filterable_metadata_keys,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateIndexRequest) Reset() {
*x = CreateIndexRequest{}
mi := &file_vector_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateIndexRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateIndexRequest) ProtoMessage() {}
func (x *CreateIndexRequest) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateIndexRequest.ProtoReflect.Descriptor instead.
func (*CreateIndexRequest) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{1}
}
func (x *CreateIndexRequest) GetTable() *Table {
if x != nil {
return x.Table
}
return nil
}
func (x *CreateIndexRequest) GetDimension() uint32 {
if x != nil {
return x.Dimension
}
return 0
}
func (x *CreateIndexRequest) GetDistanceMetric() DistanceMetric {
if x != nil {
return x.DistanceMetric
}
return DistanceMetric_DISTANCE_METRIC_UNSPECIFIED
}
func (x *CreateIndexRequest) GetNonFilterableMetadataKeys() []string {
if x != nil {
return x.NonFilterableMetadataKeys
}
return nil
}
type CreateIndexResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateIndexResponse) Reset() {
*x = CreateIndexResponse{}
mi := &file_vector_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateIndexResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateIndexResponse) ProtoMessage() {}
func (x *CreateIndexResponse) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateIndexResponse.ProtoReflect.Descriptor instead.
func (*CreateIndexResponse) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{2}
}
func (x *CreateIndexResponse) GetVersion() uint64 {
if x != nil {
return x.Version
}
return 0
}
type DropIndexRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DropIndexRequest) Reset() {
*x = DropIndexRequest{}
mi := &file_vector_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DropIndexRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DropIndexRequest) ProtoMessage() {}
func (x *DropIndexRequest) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DropIndexRequest.ProtoReflect.Descriptor instead.
func (*DropIndexRequest) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{3}
}
func (x *DropIndexRequest) GetTable() *Table {
if x != nil {
return x.Table
}
return nil
}
type DropIndexResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DropIndexResponse) Reset() {
*x = DropIndexResponse{}
mi := &file_vector_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DropIndexResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DropIndexResponse) ProtoMessage() {}
func (x *DropIndexResponse) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DropIndexResponse.ProtoReflect.Descriptor instead.
func (*DropIndexResponse) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{4}
}
type Vector struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Data []float32 `protobuf:"fixed32,2,rep,packed,name=data,proto3" json:"data,omitempty"`
// JSON-typed metadata: numbers carry double precision, as on the wire.
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Vector) Reset() {
*x = Vector{}
mi := &file_vector_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Vector) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Vector) ProtoMessage() {}
func (x *Vector) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Vector.ProtoReflect.Descriptor instead.
func (*Vector) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{5}
}
func (x *Vector) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Vector) GetData() []float32 {
if x != nil {
return x.Data
}
return nil
}
func (x *Vector) GetMetadata() *structpb.Struct {
if x != nil {
return x.Metadata
}
return nil
}
type PutVectorsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
Vectors []*Vector `protobuf:"bytes,2,rep,name=vectors,proto3" json:"vectors,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PutVectorsRequest) Reset() {
*x = PutVectorsRequest{}
mi := &file_vector_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PutVectorsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PutVectorsRequest) ProtoMessage() {}
func (x *PutVectorsRequest) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PutVectorsRequest.ProtoReflect.Descriptor instead.
func (*PutVectorsRequest) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{6}
}
func (x *PutVectorsRequest) GetTable() *Table {
if x != nil {
return x.Table
}
return nil
}
func (x *PutVectorsRequest) GetVectors() []*Vector {
if x != nil {
return x.Vectors
}
return nil
}
type PutVectorsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PutVectorsResponse) Reset() {
*x = PutVectorsResponse{}
mi := &file_vector_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PutVectorsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PutVectorsResponse) ProtoMessage() {}
func (x *PutVectorsResponse) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PutVectorsResponse.ProtoReflect.Descriptor instead.
func (*PutVectorsResponse) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{7}
}
func (x *PutVectorsResponse) GetVersion() uint64 {
if x != nil {
return x.Version
}
return 0
}
type GetVectorsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
ReturnData bool `protobuf:"varint,3,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
ReturnMetadata bool `protobuf:"varint,4,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetVectorsRequest) Reset() {
*x = GetVectorsRequest{}
mi := &file_vector_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetVectorsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetVectorsRequest) ProtoMessage() {}
func (x *GetVectorsRequest) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetVectorsRequest.ProtoReflect.Descriptor instead.
func (*GetVectorsRequest) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{8}
}
func (x *GetVectorsRequest) GetTable() *Table {
if x != nil {
return x.Table
}
return nil
}
func (x *GetVectorsRequest) GetKeys() []string {
if x != nil {
return x.Keys
}
return nil
}
func (x *GetVectorsRequest) GetReturnData() bool {
if x != nil {
return x.ReturnData
}
return false
}
func (x *GetVectorsRequest) GetReturnMetadata() bool {
if x != nil {
return x.ReturnMetadata
}
return false
}
type GetVectorsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Vectors []*Vector `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetVectorsResponse) Reset() {
*x = GetVectorsResponse{}
mi := &file_vector_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetVectorsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetVectorsResponse) ProtoMessage() {}
func (x *GetVectorsResponse) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetVectorsResponse.ProtoReflect.Descriptor instead.
func (*GetVectorsResponse) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{9}
}
func (x *GetVectorsResponse) GetVectors() []*Vector {
if x != nil {
return x.Vectors
}
return nil
}
type DeleteVectorsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteVectorsRequest) Reset() {
*x = DeleteVectorsRequest{}
mi := &file_vector_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteVectorsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteVectorsRequest) ProtoMessage() {}
func (x *DeleteVectorsRequest) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteVectorsRequest.ProtoReflect.Descriptor instead.
func (*DeleteVectorsRequest) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{10}
}
func (x *DeleteVectorsRequest) GetTable() *Table {
if x != nil {
return x.Table
}
return nil
}
func (x *DeleteVectorsRequest) GetKeys() []string {
if x != nil {
return x.Keys
}
return nil
}
type DeleteVectorsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteVectorsResponse) Reset() {
*x = DeleteVectorsResponse{}
mi := &file_vector_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteVectorsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteVectorsResponse) ProtoMessage() {}
func (x *DeleteVectorsResponse) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteVectorsResponse.ProtoReflect.Descriptor instead.
func (*DeleteVectorsResponse) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{11}
}
func (x *DeleteVectorsResponse) GetVersion() uint64 {
if x != nil {
return x.Version
}
return 0
}
type ListVectorsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
MaxResults uint32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"`
NextToken string `protobuf:"bytes,3,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
ReturnData bool `protobuf:"varint,4,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
ReturnMetadata bool `protobuf:"varint,5,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
// A nonzero segment_count lists only the rows whose position modulo
// segment_count is segment_index; next_token stays a row position.
SegmentCount uint32 `protobuf:"varint,6,opt,name=segment_count,json=segmentCount,proto3" json:"segment_count,omitempty"`
SegmentIndex uint32 `protobuf:"varint,7,opt,name=segment_index,json=segmentIndex,proto3" json:"segment_index,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListVectorsRequest) Reset() {
*x = ListVectorsRequest{}
mi := &file_vector_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListVectorsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVectorsRequest) ProtoMessage() {}
func (x *ListVectorsRequest) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVectorsRequest.ProtoReflect.Descriptor instead.
func (*ListVectorsRequest) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{12}
}
func (x *ListVectorsRequest) GetTable() *Table {
if x != nil {
return x.Table
}
return nil
}
func (x *ListVectorsRequest) GetMaxResults() uint32 {
if x != nil {
return x.MaxResults
}
return 0
}
func (x *ListVectorsRequest) GetNextToken() string {
if x != nil {
return x.NextToken
}
return ""
}
func (x *ListVectorsRequest) GetReturnData() bool {
if x != nil {
return x.ReturnData
}
return false
}
func (x *ListVectorsRequest) GetReturnMetadata() bool {
if x != nil {
return x.ReturnMetadata
}
return false
}
func (x *ListVectorsRequest) GetSegmentCount() uint32 {
if x != nil {
return x.SegmentCount
}
return 0
}
func (x *ListVectorsRequest) GetSegmentIndex() uint32 {
if x != nil {
return x.SegmentIndex
}
return 0
}
type ListVectorsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Vectors []*Vector `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
// Set when segment_count was applied; an older engine ignores it.
Segmented bool `protobuf:"varint,3,opt,name=segmented,proto3" json:"segmented,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListVectorsResponse) Reset() {
*x = ListVectorsResponse{}
mi := &file_vector_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListVectorsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVectorsResponse) ProtoMessage() {}
func (x *ListVectorsResponse) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVectorsResponse.ProtoReflect.Descriptor instead.
func (*ListVectorsResponse) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{13}
}
func (x *ListVectorsResponse) GetVectors() []*Vector {
if x != nil {
return x.Vectors
}
return nil
}
func (x *ListVectorsResponse) GetNextToken() string {
if x != nil {
return x.NextToken
}
return ""
}
func (x *ListVectorsResponse) GetSegmented() bool {
if x != nil {
return x.Segmented
}
return false
}
type QueryVectorsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
QueryVector []float32 `protobuf:"fixed32,2,rep,packed,name=query_vector,json=queryVector,proto3" json:"query_vector,omitempty"`
TopK uint32 `protobuf:"varint,3,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"`
// Lance SQL filter; empty means unfiltered. Metadata is one JSON
// `metadata` column, so the gateway translates S3 Vectors filter
// expressions onto it before they land here.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Lance's post-filter escape hatch; off prefilters, matching S3 Vectors.
Postfilter bool `protobuf:"varint,5,opt,name=postfilter,proto3" json:"postfilter,omitempty"`
ReturnMetadata bool `protobuf:"varint,6,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
ReturnDistance bool `protobuf:"varint,7,opt,name=return_distance,json=returnDistance,proto3" json:"return_distance,omitempty"`
ReturnData bool `protobuf:"varint,8,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryVectorsRequest) Reset() {
*x = QueryVectorsRequest{}
mi := &file_vector_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryVectorsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryVectorsRequest) ProtoMessage() {}
func (x *QueryVectorsRequest) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QueryVectorsRequest.ProtoReflect.Descriptor instead.
func (*QueryVectorsRequest) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{14}
}
func (x *QueryVectorsRequest) GetTable() *Table {
if x != nil {
return x.Table
}
return nil
}
func (x *QueryVectorsRequest) GetQueryVector() []float32 {
if x != nil {
return x.QueryVector
}
return nil
}
func (x *QueryVectorsRequest) GetTopK() uint32 {
if x != nil {
return x.TopK
}
return 0
}
func (x *QueryVectorsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *QueryVectorsRequest) GetPostfilter() bool {
if x != nil {
return x.Postfilter
}
return false
}
func (x *QueryVectorsRequest) GetReturnMetadata() bool {
if x != nil {
return x.ReturnMetadata
}
return false
}
func (x *QueryVectorsRequest) GetReturnDistance() bool {
if x != nil {
return x.ReturnDistance
}
return false
}
func (x *QueryVectorsRequest) GetReturnData() bool {
if x != nil {
return x.ReturnData
}
return false
}
type QueryResult struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Distance float32 `protobuf:"fixed32,2,opt,name=distance,proto3" json:"distance,omitempty"`
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
Data []float32 `protobuf:"fixed32,4,rep,packed,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryResult) Reset() {
*x = QueryResult{}
mi := &file_vector_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryResult) ProtoMessage() {}
func (x *QueryResult) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.
func (*QueryResult) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{15}
}
func (x *QueryResult) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *QueryResult) GetDistance() float32 {
if x != nil {
return x.Distance
}
return 0
}
func (x *QueryResult) GetMetadata() *structpb.Struct {
if x != nil {
return x.Metadata
}
return nil
}
func (x *QueryResult) GetData() []float32 {
if x != nil {
return x.Data
}
return nil
}
type QueryVectorsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Vectors []*QueryResult `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryVectorsResponse) Reset() {
*x = QueryVectorsResponse{}
mi := &file_vector_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryVectorsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryVectorsResponse) ProtoMessage() {}
func (x *QueryVectorsResponse) ProtoReflect() protoreflect.Message {
mi := &file_vector_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QueryVectorsResponse.ProtoReflect.Descriptor instead.
func (*QueryVectorsResponse) Descriptor() ([]byte, []int) {
return file_vector_proto_rawDescGZIP(), []int{16}
}
func (x *QueryVectorsResponse) GetVectors() []*QueryResult {
if x != nil {
return x.Vectors
}
return nil
}
var File_vector_proto protoreflect.FileDescriptor
const file_vector_proto_rawDesc = "" +
"\n" +
"\fvector.proto\x12\tvector_pb\x1a\x1cgoogle/protobuf/struct.proto\"{\n" +
"\x05Table\x12\x0e\n" +
"\x02id\x18\x01 \x03(\tR\x02id\x12\x18\n" +
"\aversion\x18\x02 \x01(\x04R\aversion\x12\x1a\n" +
"\blocation\x18\x03 \x01(\tR\blocation\x12\x15\n" +
"\x06sse_s3\x18\x05 \x01(\bR\x05sseS3J\x04\b\x04\x10\x05R\x0fstorage_options\"\xdf\x01\n" +
"\x12CreateIndexRequest\x12&\n" +
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x1c\n" +
"\tdimension\x18\x02 \x01(\rR\tdimension\x12B\n" +
"\x0fdistance_metric\x18\x03 \x01(\x0e2\x19.vector_pb.DistanceMetricR\x0edistanceMetric\x12?\n" +
"\x1cnon_filterable_metadata_keys\x18\x04 \x03(\tR\x19nonFilterableMetadataKeys\"/\n" +
"\x13CreateIndexResponse\x12\x18\n" +
"\aversion\x18\x01 \x01(\x04R\aversion\":\n" +
"\x10DropIndexRequest\x12&\n" +
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\"\x13\n" +
"\x11DropIndexResponse\"c\n" +
"\x06Vector\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x12\n" +
"\x04data\x18\x02 \x03(\x02R\x04data\x123\n" +
"\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"h\n" +
"\x11PutVectorsRequest\x12&\n" +
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12+\n" +
"\avectors\x18\x02 \x03(\v2\x11.vector_pb.VectorR\avectors\".\n" +
"\x12PutVectorsResponse\x12\x18\n" +
"\aversion\x18\x01 \x01(\x04R\aversion\"\x99\x01\n" +
"\x11GetVectorsRequest\x12&\n" +
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x12\n" +
"\x04keys\x18\x02 \x03(\tR\x04keys\x12\x1f\n" +
"\vreturn_data\x18\x03 \x01(\bR\n" +
"returnData\x12'\n" +
"\x0freturn_metadata\x18\x04 \x01(\bR\x0ereturnMetadata\"A\n" +
"\x12GetVectorsResponse\x12+\n" +
"\avectors\x18\x01 \x03(\v2\x11.vector_pb.VectorR\avectors\"R\n" +
"\x14DeleteVectorsRequest\x12&\n" +
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x12\n" +
"\x04keys\x18\x02 \x03(\tR\x04keys\"1\n" +
"\x15DeleteVectorsResponse\x12\x18\n" +
"\aversion\x18\x01 \x01(\x04R\aversion\"\x90\x02\n" +
"\x12ListVectorsRequest\x12&\n" +
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x1f\n" +
"\vmax_results\x18\x02 \x01(\rR\n" +
"maxResults\x12\x1d\n" +
"\n" +
"next_token\x18\x03 \x01(\tR\tnextToken\x12\x1f\n" +
"\vreturn_data\x18\x04 \x01(\bR\n" +
"returnData\x12'\n" +
"\x0freturn_metadata\x18\x05 \x01(\bR\x0ereturnMetadata\x12#\n" +
"\rsegment_count\x18\x06 \x01(\rR\fsegmentCount\x12#\n" +
"\rsegment_index\x18\a \x01(\rR\fsegmentIndex\"\x7f\n" +
"\x13ListVectorsResponse\x12+\n" +
"\avectors\x18\x01 \x03(\v2\x11.vector_pb.VectorR\avectors\x12\x1d\n" +
"\n" +
"next_token\x18\x02 \x01(\tR\tnextToken\x12\x1c\n" +
"\tsegmented\x18\x03 \x01(\bR\tsegmented\"\xa0\x02\n" +
"\x13QueryVectorsRequest\x12&\n" +
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12!\n" +
"\fquery_vector\x18\x02 \x03(\x02R\vqueryVector\x12\x13\n" +
"\x05top_k\x18\x03 \x01(\rR\x04topK\x12\x16\n" +
"\x06filter\x18\x04 \x01(\tR\x06filter\x12\x1e\n" +
"\n" +
"postfilter\x18\x05 \x01(\bR\n" +
"postfilter\x12'\n" +
"\x0freturn_metadata\x18\x06 \x01(\bR\x0ereturnMetadata\x12'\n" +
"\x0freturn_distance\x18\a \x01(\bR\x0ereturnDistance\x12\x1f\n" +
"\vreturn_data\x18\b \x01(\bR\n" +
"returnData\"\x84\x01\n" +
"\vQueryResult\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x1a\n" +
"\bdistance\x18\x02 \x01(\x02R\bdistance\x123\n" +
"\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\x12\x12\n" +
"\x04data\x18\x04 \x03(\x02R\x04data\"H\n" +
"\x14QueryVectorsResponse\x120\n" +
"\avectors\x18\x01 \x03(\v2\x16.vector_pb.QueryResultR\avectors*V\n" +
"\x0eDistanceMetric\x12\x1f\n" +
"\x1bDISTANCE_METRIC_UNSPECIFIED\x10\x00\x12\x06\n" +
"\x02L2\x10\x01\x12\n" +
"\n" +
"\x06COSINE\x10\x02\x12\x0f\n" +
"\vDOT_PRODUCT\x10\x032\xae\x04\n" +
"\rVectorService\x12L\n" +
"\vCreateIndex\x12\x1d.vector_pb.CreateIndexRequest\x1a\x1e.vector_pb.CreateIndexResponse\x12F\n" +
"\tDropIndex\x12\x1b.vector_pb.DropIndexRequest\x1a\x1c.vector_pb.DropIndexResponse\x12I\n" +
"\n" +
"PutVectors\x12\x1c.vector_pb.PutVectorsRequest\x1a\x1d.vector_pb.PutVectorsResponse\x12I\n" +
"\n" +
"GetVectors\x12\x1c.vector_pb.GetVectorsRequest\x1a\x1d.vector_pb.GetVectorsResponse\x12R\n" +
"\rDeleteVectors\x12\x1f.vector_pb.DeleteVectorsRequest\x1a .vector_pb.DeleteVectorsResponse\x12L\n" +
"\vListVectors\x12\x1d.vector_pb.ListVectorsRequest\x1a\x1e.vector_pb.ListVectorsResponse\x12O\n" +
"\fQueryVectors\x12\x1e.vector_pb.QueryVectorsRequest\x1a\x1f.vector_pb.QueryVectorsResponseB2Z0github.com/seaweedfs/seaweedfs/weed/pb/vector_pbb\x06proto3"
var (
file_vector_proto_rawDescOnce sync.Once
file_vector_proto_rawDescData []byte
)
func file_vector_proto_rawDescGZIP() []byte {
file_vector_proto_rawDescOnce.Do(func() {
file_vector_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vector_proto_rawDesc), len(file_vector_proto_rawDesc)))
})
return file_vector_proto_rawDescData
}
var file_vector_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_vector_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
var file_vector_proto_goTypes = []any{
(DistanceMetric)(0), // 0: vector_pb.DistanceMetric
(*Table)(nil), // 1: vector_pb.Table
(*CreateIndexRequest)(nil), // 2: vector_pb.CreateIndexRequest
(*CreateIndexResponse)(nil), // 3: vector_pb.CreateIndexResponse
(*DropIndexRequest)(nil), // 4: vector_pb.DropIndexRequest
(*DropIndexResponse)(nil), // 5: vector_pb.DropIndexResponse
(*Vector)(nil), // 6: vector_pb.Vector
(*PutVectorsRequest)(nil), // 7: vector_pb.PutVectorsRequest
(*PutVectorsResponse)(nil), // 8: vector_pb.PutVectorsResponse
(*GetVectorsRequest)(nil), // 9: vector_pb.GetVectorsRequest
(*GetVectorsResponse)(nil), // 10: vector_pb.GetVectorsResponse
(*DeleteVectorsRequest)(nil), // 11: vector_pb.DeleteVectorsRequest
(*DeleteVectorsResponse)(nil), // 12: vector_pb.DeleteVectorsResponse
(*ListVectorsRequest)(nil), // 13: vector_pb.ListVectorsRequest
(*ListVectorsResponse)(nil), // 14: vector_pb.ListVectorsResponse
(*QueryVectorsRequest)(nil), // 15: vector_pb.QueryVectorsRequest
(*QueryResult)(nil), // 16: vector_pb.QueryResult
(*QueryVectorsResponse)(nil), // 17: vector_pb.QueryVectorsResponse
(*structpb.Struct)(nil), // 18: google.protobuf.Struct
}
var file_vector_proto_depIdxs = []int32{
1, // 0: vector_pb.CreateIndexRequest.table:type_name -> vector_pb.Table
0, // 1: vector_pb.CreateIndexRequest.distance_metric:type_name -> vector_pb.DistanceMetric
1, // 2: vector_pb.DropIndexRequest.table:type_name -> vector_pb.Table
18, // 3: vector_pb.Vector.metadata:type_name -> google.protobuf.Struct
1, // 4: vector_pb.PutVectorsRequest.table:type_name -> vector_pb.Table
6, // 5: vector_pb.PutVectorsRequest.vectors:type_name -> vector_pb.Vector
1, // 6: vector_pb.GetVectorsRequest.table:type_name -> vector_pb.Table
6, // 7: vector_pb.GetVectorsResponse.vectors:type_name -> vector_pb.Vector
1, // 8: vector_pb.DeleteVectorsRequest.table:type_name -> vector_pb.Table
1, // 9: vector_pb.ListVectorsRequest.table:type_name -> vector_pb.Table
6, // 10: vector_pb.ListVectorsResponse.vectors:type_name -> vector_pb.Vector
1, // 11: vector_pb.QueryVectorsRequest.table:type_name -> vector_pb.Table
18, // 12: vector_pb.QueryResult.metadata:type_name -> google.protobuf.Struct
16, // 13: vector_pb.QueryVectorsResponse.vectors:type_name -> vector_pb.QueryResult
2, // 14: vector_pb.VectorService.CreateIndex:input_type -> vector_pb.CreateIndexRequest
4, // 15: vector_pb.VectorService.DropIndex:input_type -> vector_pb.DropIndexRequest
7, // 16: vector_pb.VectorService.PutVectors:input_type -> vector_pb.PutVectorsRequest
9, // 17: vector_pb.VectorService.GetVectors:input_type -> vector_pb.GetVectorsRequest
11, // 18: vector_pb.VectorService.DeleteVectors:input_type -> vector_pb.DeleteVectorsRequest
13, // 19: vector_pb.VectorService.ListVectors:input_type -> vector_pb.ListVectorsRequest
15, // 20: vector_pb.VectorService.QueryVectors:input_type -> vector_pb.QueryVectorsRequest
3, // 21: vector_pb.VectorService.CreateIndex:output_type -> vector_pb.CreateIndexResponse
5, // 22: vector_pb.VectorService.DropIndex:output_type -> vector_pb.DropIndexResponse
8, // 23: vector_pb.VectorService.PutVectors:output_type -> vector_pb.PutVectorsResponse
10, // 24: vector_pb.VectorService.GetVectors:output_type -> vector_pb.GetVectorsResponse
12, // 25: vector_pb.VectorService.DeleteVectors:output_type -> vector_pb.DeleteVectorsResponse
14, // 26: vector_pb.VectorService.ListVectors:output_type -> vector_pb.ListVectorsResponse
17, // 27: vector_pb.VectorService.QueryVectors:output_type -> vector_pb.QueryVectorsResponse
21, // [21:28] is the sub-list for method output_type
14, // [14:21] is the sub-list for method input_type
14, // [14:14] is the sub-list for extension type_name
14, // [14:14] is the sub-list for extension extendee
0, // [0:14] is the sub-list for field type_name
}
func init() { file_vector_proto_init() }
func file_vector_proto_init() {
if File_vector_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_vector_proto_rawDesc), len(file_vector_proto_rawDesc)),
NumEnums: 1,
NumMessages: 17,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_vector_proto_goTypes,
DependencyIndexes: file_vector_proto_depIdxs,
EnumInfos: file_vector_proto_enumTypes,
MessageInfos: file_vector_proto_msgTypes,
}.Build()
File_vector_proto = out.File
file_vector_proto_goTypes = nil
file_vector_proto_depIdxs = nil
}