grpc

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Filters_OperatorType_name = map[int32]string{
		0:  "OperatorEqual",
		1:  "OperatorNotEqual",
		2:  "OperatorGreaterThan",
		3:  "OperatorGreaterThanEqual",
		4:  "OperatorLessThan",
		5:  "OperatorLessThanEqual",
		6:  "OperatorAnd",
		7:  "OperatorOr",
		8:  "OperatorWithinGeoRange",
		9:  "OperatorLike",
		10: "OperatorIsNull",
	}
	Filters_OperatorType_value = map[string]int32{
		"OperatorEqual":            0,
		"OperatorNotEqual":         1,
		"OperatorGreaterThan":      2,
		"OperatorGreaterThanEqual": 3,
		"OperatorLessThan":         4,
		"OperatorLessThanEqual":    5,
		"OperatorAnd":              6,
		"OperatorOr":               7,
		"OperatorWithinGeoRange":   8,
		"OperatorLike":             9,
		"OperatorIsNull":           10,
	}
)

Enum value maps for Filters_OperatorType.

View Source
var (
	HybridSearchParams_FusionType_name = map[int32]string{
		0: "RANKED",
		1: "RELATIVE_SCORE",
	}
	HybridSearchParams_FusionType_value = map[string]int32{
		"RANKED":         0,
		"RELATIVE_SCORE": 1,
	}
)

Enum value maps for HybridSearchParams_FusionType.

View Source
var File_weaviate_proto protoreflect.FileDescriptor
View Source
var Weaviate_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "weaviategrpc.Weaviate",
	HandlerType: (*WeaviateServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Search",
			Handler:    _Weaviate_Search_Handler,
		},
		{
			MethodName: "BatchObjects",
			Handler:    _Weaviate_BatchObjects_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "weaviate.proto",
}

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

Functions

func RegisterWeaviateServer

func RegisterWeaviateServer(s grpc.ServiceRegistrar, srv WeaviateServer)

Types

type AdditionalProperties added in v1.19.3

type AdditionalProperties struct {
	Uuid               bool `protobuf:"varint,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Vector             bool `protobuf:"varint,2,opt,name=vector,proto3" json:"vector,omitempty"`
	CreationTimeUnix   bool `protobuf:"varint,3,opt,name=creationTimeUnix,proto3" json:"creationTimeUnix,omitempty"`
	LastUpdateTimeUnix bool `protobuf:"varint,4,opt,name=lastUpdateTimeUnix,proto3" json:"lastUpdateTimeUnix,omitempty"`
	Distance           bool `protobuf:"varint,5,opt,name=distance,proto3" json:"distance,omitempty"`
	Certainty          bool `protobuf:"varint,6,opt,name=certainty,proto3" json:"certainty,omitempty"`
	Score              bool `protobuf:"varint,7,opt,name=score,proto3" json:"score,omitempty"`
	ExplainScore       bool `protobuf:"varint,8,opt,name=explainScore,proto3" json:"explainScore,omitempty"`
	// contains filtered or unexported fields
}

func (*AdditionalProperties) Descriptor deprecated added in v1.19.3

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

Deprecated: Use AdditionalProperties.ProtoReflect.Descriptor instead.

func (*AdditionalProperties) GetCertainty added in v1.19.3

func (x *AdditionalProperties) GetCertainty() bool

func (*AdditionalProperties) GetCreationTimeUnix added in v1.19.3

func (x *AdditionalProperties) GetCreationTimeUnix() bool

func (*AdditionalProperties) GetDistance added in v1.19.3

func (x *AdditionalProperties) GetDistance() bool

func (*AdditionalProperties) GetExplainScore added in v1.19.3

func (x *AdditionalProperties) GetExplainScore() bool

func (*AdditionalProperties) GetLastUpdateTimeUnix added in v1.19.3

func (x *AdditionalProperties) GetLastUpdateTimeUnix() bool

func (*AdditionalProperties) GetScore added in v1.19.3

func (x *AdditionalProperties) GetScore() bool

func (*AdditionalProperties) GetUuid added in v1.19.3

func (x *AdditionalProperties) GetUuid() bool

func (*AdditionalProperties) GetVector added in v1.19.3

func (x *AdditionalProperties) GetVector() bool

func (*AdditionalProperties) ProtoMessage added in v1.19.3

func (*AdditionalProperties) ProtoMessage()

func (*AdditionalProperties) ProtoReflect added in v1.19.3

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

func (*AdditionalProperties) Reset added in v1.19.3

func (x *AdditionalProperties) Reset()

func (*AdditionalProperties) String added in v1.19.3

func (x *AdditionalProperties) String() string

type BM25SearchParams added in v1.19.3

type BM25SearchParams struct {
	Query      string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Properties []string `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*BM25SearchParams) Descriptor deprecated added in v1.19.3

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

Deprecated: Use BM25SearchParams.ProtoReflect.Descriptor instead.

func (*BM25SearchParams) GetProperties added in v1.19.3

func (x *BM25SearchParams) GetProperties() []string

func (*BM25SearchParams) GetQuery added in v1.19.3

func (x *BM25SearchParams) GetQuery() string

func (*BM25SearchParams) ProtoMessage added in v1.19.3

func (*BM25SearchParams) ProtoMessage()

func (*BM25SearchParams) ProtoReflect added in v1.19.3

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

func (*BM25SearchParams) Reset added in v1.19.3

func (x *BM25SearchParams) Reset()

func (*BM25SearchParams) String added in v1.19.3

func (x *BM25SearchParams) String() string

type BatchObject added in v1.21.0

type BatchObject struct {
	Uuid       string                  `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Vector     []float32               `protobuf:"fixed32,2,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	Properties *BatchObject_Properties `protobuf:"bytes,3,opt,name=properties,proto3" json:"properties,omitempty"`
	ClassName  string                  `protobuf:"bytes,4,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"`
	Tenant     string                  `protobuf:"bytes,5,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchObject) Descriptor deprecated added in v1.21.0

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

Deprecated: Use BatchObject.ProtoReflect.Descriptor instead.

func (*BatchObject) GetClassName added in v1.21.0

func (x *BatchObject) GetClassName() string

func (*BatchObject) GetProperties added in v1.21.0

func (x *BatchObject) GetProperties() *BatchObject_Properties

func (*BatchObject) GetTenant added in v1.21.0

func (x *BatchObject) GetTenant() string

func (*BatchObject) GetUuid added in v1.21.0

func (x *BatchObject) GetUuid() string

func (*BatchObject) GetVector added in v1.21.0

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

func (*BatchObject) ProtoMessage added in v1.21.0

func (*BatchObject) ProtoMessage()

func (*BatchObject) ProtoReflect added in v1.21.0

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

func (*BatchObject) Reset added in v1.21.0

func (x *BatchObject) Reset()

func (*BatchObject) String added in v1.21.0

func (x *BatchObject) String() string

type BatchObject_Properties added in v1.21.0

type BatchObject_Properties struct {
	NonRefProperties *structpb.Struct                         `protobuf:"bytes,1,opt,name=non_ref_properties,json=nonRefProperties,proto3" json:"non_ref_properties,omitempty"`
	RefPropsSingle   []*BatchObject_RefPropertiesSingleTarget `protobuf:"bytes,2,rep,name=ref_props_single,json=refPropsSingle,proto3" json:"ref_props_single,omitempty"`
	RefPropsMulti    []*BatchObject_RefPropertiesMultiTarget  `protobuf:"bytes,3,rep,name=ref_props_multi,json=refPropsMulti,proto3" json:"ref_props_multi,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchObject_Properties) Descriptor deprecated added in v1.21.0

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

Deprecated: Use BatchObject_Properties.ProtoReflect.Descriptor instead.

func (*BatchObject_Properties) GetNonRefProperties added in v1.21.0

func (x *BatchObject_Properties) GetNonRefProperties() *structpb.Struct

func (*BatchObject_Properties) GetRefPropsMulti added in v1.21.0

func (*BatchObject_Properties) GetRefPropsSingle added in v1.21.0

func (*BatchObject_Properties) ProtoMessage added in v1.21.0

func (*BatchObject_Properties) ProtoMessage()

func (*BatchObject_Properties) ProtoReflect added in v1.21.0

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

func (*BatchObject_Properties) Reset added in v1.21.0

func (x *BatchObject_Properties) Reset()

func (*BatchObject_Properties) String added in v1.21.0

func (x *BatchObject_Properties) String() string

type BatchObject_RefPropertiesMultiTarget added in v1.21.0

type BatchObject_RefPropertiesMultiTarget struct {
	Uuids            []string `protobuf:"bytes,1,rep,name=uuids,proto3" json:"uuids,omitempty"`
	PropName         string   `protobuf:"bytes,2,opt,name=prop_name,json=propName,proto3" json:"prop_name,omitempty"`
	TargetCollection string   `protobuf:"bytes,3,opt,name=target_collection,json=targetCollection,proto3" json:"target_collection,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchObject_RefPropertiesMultiTarget) Descriptor deprecated added in v1.21.0

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

Deprecated: Use BatchObject_RefPropertiesMultiTarget.ProtoReflect.Descriptor instead.

func (*BatchObject_RefPropertiesMultiTarget) GetPropName added in v1.21.0

func (*BatchObject_RefPropertiesMultiTarget) GetTargetCollection added in v1.21.0

func (x *BatchObject_RefPropertiesMultiTarget) GetTargetCollection() string

func (*BatchObject_RefPropertiesMultiTarget) GetUuids added in v1.21.0

func (*BatchObject_RefPropertiesMultiTarget) ProtoMessage added in v1.21.0

func (*BatchObject_RefPropertiesMultiTarget) ProtoMessage()

func (*BatchObject_RefPropertiesMultiTarget) ProtoReflect added in v1.21.0

func (*BatchObject_RefPropertiesMultiTarget) Reset added in v1.21.0

func (*BatchObject_RefPropertiesMultiTarget) String added in v1.21.0

type BatchObject_RefPropertiesSingleTarget added in v1.21.0

type BatchObject_RefPropertiesSingleTarget struct {
	Uuids    []string `protobuf:"bytes,1,rep,name=uuids,proto3" json:"uuids,omitempty"`
	PropName string   `protobuf:"bytes,2,opt,name=prop_name,json=propName,proto3" json:"prop_name,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchObject_RefPropertiesSingleTarget) Descriptor deprecated added in v1.21.0

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

Deprecated: Use BatchObject_RefPropertiesSingleTarget.ProtoReflect.Descriptor instead.

func (*BatchObject_RefPropertiesSingleTarget) GetPropName added in v1.21.0

func (*BatchObject_RefPropertiesSingleTarget) GetUuids added in v1.21.0

func (*BatchObject_RefPropertiesSingleTarget) ProtoMessage added in v1.21.0

func (*BatchObject_RefPropertiesSingleTarget) ProtoMessage()

func (*BatchObject_RefPropertiesSingleTarget) ProtoReflect added in v1.21.0

func (*BatchObject_RefPropertiesSingleTarget) Reset added in v1.21.0

func (*BatchObject_RefPropertiesSingleTarget) String added in v1.21.0

type BatchObjectsReply added in v1.21.0

type BatchObjectsReply struct {
	Results []*BatchObjectsReply_BatchResults `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	Took    float32                           `protobuf:"fixed32,2,opt,name=took,proto3" json:"took,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchObjectsReply) Descriptor deprecated added in v1.21.0

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

Deprecated: Use BatchObjectsReply.ProtoReflect.Descriptor instead.

func (*BatchObjectsReply) GetResults added in v1.21.0

func (*BatchObjectsReply) GetTook added in v1.21.0

func (x *BatchObjectsReply) GetTook() float32

func (*BatchObjectsReply) ProtoMessage added in v1.21.0

func (*BatchObjectsReply) ProtoMessage()

func (*BatchObjectsReply) ProtoReflect added in v1.21.0

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

func (*BatchObjectsReply) Reset added in v1.21.0

func (x *BatchObjectsReply) Reset()

func (*BatchObjectsReply) String added in v1.21.0

func (x *BatchObjectsReply) String() string

type BatchObjectsReply_BatchResults added in v1.21.0

type BatchObjectsReply_BatchResults struct {
	Index int32  `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchObjectsReply_BatchResults) Descriptor deprecated added in v1.21.0

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

Deprecated: Use BatchObjectsReply_BatchResults.ProtoReflect.Descriptor instead.

func (*BatchObjectsReply_BatchResults) GetError added in v1.21.0

func (x *BatchObjectsReply_BatchResults) GetError() string

func (*BatchObjectsReply_BatchResults) GetIndex added in v1.21.0

func (x *BatchObjectsReply_BatchResults) GetIndex() int32

func (*BatchObjectsReply_BatchResults) ProtoMessage added in v1.21.0

func (*BatchObjectsReply_BatchResults) ProtoMessage()

func (*BatchObjectsReply_BatchResults) ProtoReflect added in v1.21.0

func (*BatchObjectsReply_BatchResults) Reset added in v1.21.0

func (x *BatchObjectsReply_BatchResults) Reset()

func (*BatchObjectsReply_BatchResults) String added in v1.21.0

type BatchObjectsRequest added in v1.21.0

type BatchObjectsRequest struct {
	Objects []*BatchObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchObjectsRequest) Descriptor deprecated added in v1.21.0

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

Deprecated: Use BatchObjectsRequest.ProtoReflect.Descriptor instead.

func (*BatchObjectsRequest) GetObjects added in v1.21.0

func (x *BatchObjectsRequest) GetObjects() []*BatchObject

func (*BatchObjectsRequest) ProtoMessage added in v1.21.0

func (*BatchObjectsRequest) ProtoMessage()

func (*BatchObjectsRequest) ProtoReflect added in v1.21.0

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

func (*BatchObjectsRequest) Reset added in v1.21.0

func (x *BatchObjectsRequest) Reset()

func (*BatchObjectsRequest) String added in v1.21.0

func (x *BatchObjectsRequest) String() string

type Filters added in v1.21.0

type Filters struct {
	Operator Filters_OperatorType `protobuf:"varint,1,opt,name=operator,proto3,enum=weaviategrpc.Filters_OperatorType" json:"operator,omitempty"`
	On       []string             `protobuf:"bytes,2,rep,name=on,proto3" json:"on,omitempty"`
	Filters  []*Filters           `protobuf:"bytes,3,rep,name=filters,proto3" json:"filters,omitempty"`
	// Types that are assignable to TestValue:
	//
	//	*Filters_ValueStr
	//	*Filters_ValueInt
	//	*Filters_ValueBool
	//	*Filters_ValueFloat
	//	*Filters_ValueDate
	TestValue isFilters_TestValue `protobuf_oneof:"test_value"`
	// contains filtered or unexported fields
}

func (*Filters) Descriptor deprecated added in v1.21.0

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

Deprecated: Use Filters.ProtoReflect.Descriptor instead.

func (*Filters) GetFilters added in v1.21.0

func (x *Filters) GetFilters() []*Filters

func (*Filters) GetOn added in v1.21.0

func (x *Filters) GetOn() []string

func (*Filters) GetOperator added in v1.21.0

func (x *Filters) GetOperator() Filters_OperatorType

func (*Filters) GetTestValue added in v1.21.0

func (m *Filters) GetTestValue() isFilters_TestValue

func (*Filters) GetValueBool added in v1.21.0

func (x *Filters) GetValueBool() bool

func (*Filters) GetValueDate added in v1.21.0

func (x *Filters) GetValueDate() *timestamppb.Timestamp

func (*Filters) GetValueFloat added in v1.21.0

func (x *Filters) GetValueFloat() float32

func (*Filters) GetValueInt added in v1.21.0

func (x *Filters) GetValueInt() int64

func (*Filters) GetValueStr added in v1.21.0

func (x *Filters) GetValueStr() string

func (*Filters) ProtoMessage added in v1.21.0

func (*Filters) ProtoMessage()

func (*Filters) ProtoReflect added in v1.21.0

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

func (*Filters) Reset added in v1.21.0

func (x *Filters) Reset()

func (*Filters) String added in v1.21.0

func (x *Filters) String() string

type Filters_OperatorType added in v1.21.0

type Filters_OperatorType int32
const (
	Filters_OperatorEqual            Filters_OperatorType = 0
	Filters_OperatorNotEqual         Filters_OperatorType = 1
	Filters_OperatorGreaterThan      Filters_OperatorType = 2
	Filters_OperatorGreaterThanEqual Filters_OperatorType = 3
	Filters_OperatorLessThan         Filters_OperatorType = 4
	Filters_OperatorLessThanEqual    Filters_OperatorType = 5
	Filters_OperatorAnd              Filters_OperatorType = 6
	Filters_OperatorOr               Filters_OperatorType = 7
	Filters_OperatorWithinGeoRange   Filters_OperatorType = 8
	Filters_OperatorLike             Filters_OperatorType = 9
	Filters_OperatorIsNull           Filters_OperatorType = 10
)

func (Filters_OperatorType) Descriptor added in v1.21.0

func (Filters_OperatorType) Enum added in v1.21.0

func (Filters_OperatorType) EnumDescriptor deprecated added in v1.21.0

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

Deprecated: Use Filters_OperatorType.Descriptor instead.

func (Filters_OperatorType) Number added in v1.21.0

func (Filters_OperatorType) String added in v1.21.0

func (x Filters_OperatorType) String() string

func (Filters_OperatorType) Type added in v1.21.0

type Filters_ValueBool added in v1.21.0

type Filters_ValueBool struct {
	ValueBool bool `protobuf:"varint,6,opt,name=value_bool,json=valueBool,proto3,oneof"`
}

type Filters_ValueDate added in v1.21.0

type Filters_ValueDate struct {
	ValueDate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=value_date,json=valueDate,proto3,oneof"`
}

type Filters_ValueFloat added in v1.21.0

type Filters_ValueFloat struct {
	ValueFloat float32 `protobuf:"fixed32,7,opt,name=value_float,json=valueFloat,proto3,oneof"`
}

type Filters_ValueInt added in v1.21.0

type Filters_ValueInt struct {
	ValueInt int64 `protobuf:"varint,5,opt,name=value_int,json=valueInt,proto3,oneof"`
}

type Filters_ValueStr added in v1.21.0

type Filters_ValueStr struct {
	ValueStr string `protobuf:"bytes,4,opt,name=value_str,json=valueStr,proto3,oneof"`
}

type HybridSearchParams added in v1.19.3

type HybridSearchParams struct {
	Query      string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Properties []string `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
	// protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
	Vector     []float32                     `protobuf:"fixed32,3,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	Alpha      float32                       `protobuf:"fixed32,4,opt,name=alpha,proto3" json:"alpha,omitempty"`
	FusionType HybridSearchParams_FusionType `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HybridSearchParams) Descriptor deprecated added in v1.19.3

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

Deprecated: Use HybridSearchParams.ProtoReflect.Descriptor instead.

func (*HybridSearchParams) GetAlpha added in v1.19.3

func (x *HybridSearchParams) GetAlpha() float32

func (*HybridSearchParams) GetFusionType added in v1.21.0

func (*HybridSearchParams) GetProperties added in v1.19.3

func (x *HybridSearchParams) GetProperties() []string

func (*HybridSearchParams) GetQuery added in v1.19.3

func (x *HybridSearchParams) GetQuery() string

func (*HybridSearchParams) GetVector added in v1.19.3

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

func (*HybridSearchParams) ProtoMessage added in v1.19.3

func (*HybridSearchParams) ProtoMessage()

func (*HybridSearchParams) ProtoReflect added in v1.19.3

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

func (*HybridSearchParams) Reset added in v1.19.3

func (x *HybridSearchParams) Reset()

func (*HybridSearchParams) String added in v1.19.3

func (x *HybridSearchParams) String() string

type HybridSearchParams_FusionType added in v1.21.0

type HybridSearchParams_FusionType int32
const (
	HybridSearchParams_RANKED         HybridSearchParams_FusionType = 0
	HybridSearchParams_RELATIVE_SCORE HybridSearchParams_FusionType = 1
)

func (HybridSearchParams_FusionType) Descriptor added in v1.21.0

func (HybridSearchParams_FusionType) Enum added in v1.21.0

func (HybridSearchParams_FusionType) EnumDescriptor deprecated added in v1.21.0

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

Deprecated: Use HybridSearchParams_FusionType.Descriptor instead.

func (HybridSearchParams_FusionType) Number added in v1.21.0

func (HybridSearchParams_FusionType) String added in v1.21.0

func (HybridSearchParams_FusionType) Type added in v1.21.0

type NearObjectParams

type NearObjectParams struct {
	Id        string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Certainty *float64 `protobuf:"fixed64,2,opt,name=certainty,proto3,oneof" json:"certainty,omitempty"`
	Distance  *float64 `protobuf:"fixed64,3,opt,name=distance,proto3,oneof" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*NearObjectParams) Descriptor deprecated

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

Deprecated: Use NearObjectParams.ProtoReflect.Descriptor instead.

func (*NearObjectParams) GetCertainty

func (x *NearObjectParams) GetCertainty() float64

func (*NearObjectParams) GetDistance

func (x *NearObjectParams) GetDistance() float64

func (*NearObjectParams) GetId

func (x *NearObjectParams) GetId() string

func (*NearObjectParams) ProtoMessage

func (*NearObjectParams) ProtoMessage()

func (*NearObjectParams) ProtoReflect

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

func (*NearObjectParams) Reset

func (x *NearObjectParams) Reset()

func (*NearObjectParams) String

func (x *NearObjectParams) String() string

type NearVectorParams

type NearVectorParams struct {

	// protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
	Vector    []float32 `protobuf:"fixed32,1,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	Certainty *float64  `protobuf:"fixed64,2,opt,name=certainty,proto3,oneof" json:"certainty,omitempty"`
	Distance  *float64  `protobuf:"fixed64,3,opt,name=distance,proto3,oneof" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*NearVectorParams) Descriptor deprecated

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

Deprecated: Use NearVectorParams.ProtoReflect.Descriptor instead.

func (*NearVectorParams) GetCertainty

func (x *NearVectorParams) GetCertainty() float64

func (*NearVectorParams) GetDistance

func (x *NearVectorParams) GetDistance() float64

func (*NearVectorParams) GetVector

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

func (*NearVectorParams) ProtoMessage

func (*NearVectorParams) ProtoMessage()

func (*NearVectorParams) ProtoReflect

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

func (*NearVectorParams) Reset

func (x *NearVectorParams) Reset()

func (*NearVectorParams) String

func (x *NearVectorParams) String() string

type Properties added in v1.19.3

type Properties struct {
	NonRefProperties []string         `protobuf:"bytes,1,rep,name=non_ref_properties,json=nonRefProperties,proto3" json:"non_ref_properties,omitempty"`
	RefProperties    []*RefProperties `protobuf:"bytes,2,rep,name=ref_properties,json=refProperties,proto3" json:"ref_properties,omitempty"`
	// contains filtered or unexported fields
}

func (*Properties) Descriptor deprecated added in v1.19.3

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

Deprecated: Use Properties.ProtoReflect.Descriptor instead.

func (*Properties) GetNonRefProperties added in v1.19.3

func (x *Properties) GetNonRefProperties() []string

func (*Properties) GetRefProperties added in v1.19.3

func (x *Properties) GetRefProperties() []*RefProperties

func (*Properties) ProtoMessage added in v1.19.3

func (*Properties) ProtoMessage()

func (*Properties) ProtoReflect added in v1.19.3

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

func (*Properties) Reset added in v1.19.3

func (x *Properties) Reset()

func (*Properties) String added in v1.19.3

func (x *Properties) String() string

type RefProperties added in v1.19.3

type RefProperties struct {
	ReferenceProperty string                `protobuf:"bytes,2,opt,name=reference_property,json=referenceProperty,proto3" json:"reference_property,omitempty"`
	LinkedProperties  *Properties           `protobuf:"bytes,3,opt,name=linked_properties,json=linkedProperties,proto3" json:"linked_properties,omitempty"`
	Metadata          *AdditionalProperties `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	WhichCollection   string                `protobuf:"bytes,5,opt,name=which_collection,json=whichCollection,proto3" json:"which_collection,omitempty"`
	// contains filtered or unexported fields
}

func (*RefProperties) Descriptor deprecated added in v1.19.3

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

Deprecated: Use RefProperties.ProtoReflect.Descriptor instead.

func (*RefProperties) GetLinkedProperties added in v1.19.3

func (x *RefProperties) GetLinkedProperties() *Properties

func (*RefProperties) GetMetadata added in v1.21.0

func (x *RefProperties) GetMetadata() *AdditionalProperties

func (*RefProperties) GetReferenceProperty added in v1.19.3

func (x *RefProperties) GetReferenceProperty() string

func (*RefProperties) GetWhichCollection added in v1.21.0

func (x *RefProperties) GetWhichCollection() string

func (*RefProperties) ProtoMessage added in v1.19.3

func (*RefProperties) ProtoMessage()

func (*RefProperties) ProtoReflect added in v1.19.3

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

func (*RefProperties) Reset added in v1.19.3

func (x *RefProperties) Reset()

func (*RefProperties) String added in v1.19.3

func (x *RefProperties) String() string

type ResultAdditionalProps added in v1.19.3

type ResultAdditionalProps struct {
	Id                        string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Vector                    []float32 `protobuf:"fixed32,2,rep,packed,name=vector,proto3" json:"vector,omitempty"`
	CreationTimeUnix          int64     `protobuf:"varint,3,opt,name=creation_time_unix,json=creationTimeUnix,proto3" json:"creation_time_unix,omitempty"`
	CreationTimeUnixPresent   bool      `` /* 135-byte string literal not displayed */
	LastUpdateTimeUnix        int64     `protobuf:"varint,5,opt,name=last_update_time_unix,json=lastUpdateTimeUnix,proto3" json:"last_update_time_unix,omitempty"`
	LastUpdateTimeUnixPresent bool      `` /* 143-byte string literal not displayed */
	Distance                  float32   `protobuf:"fixed32,7,opt,name=distance,proto3" json:"distance,omitempty"`
	DistancePresent           bool      `protobuf:"varint,8,opt,name=distance_present,json=distancePresent,proto3" json:"distance_present,omitempty"`
	Certainty                 float32   `protobuf:"fixed32,9,opt,name=certainty,proto3" json:"certainty,omitempty"`
	CertaintyPresent          bool      `protobuf:"varint,10,opt,name=certainty_present,json=certaintyPresent,proto3" json:"certainty_present,omitempty"`
	Score                     float32   `protobuf:"fixed32,11,opt,name=score,proto3" json:"score,omitempty"`
	ScorePresent              bool      `protobuf:"varint,12,opt,name=score_present,json=scorePresent,proto3" json:"score_present,omitempty"`
	ExplainScore              string    `protobuf:"bytes,13,opt,name=explain_score,json=explainScore,proto3" json:"explain_score,omitempty"`
	ExplainScorePresent       bool      `protobuf:"varint,14,opt,name=explain_score_present,json=explainScorePresent,proto3" json:"explain_score_present,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultAdditionalProps) Descriptor deprecated added in v1.19.3

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

Deprecated: Use ResultAdditionalProps.ProtoReflect.Descriptor instead.

func (*ResultAdditionalProps) GetCertainty added in v1.19.3

func (x *ResultAdditionalProps) GetCertainty() float32

func (*ResultAdditionalProps) GetCertaintyPresent added in v1.19.3

func (x *ResultAdditionalProps) GetCertaintyPresent() bool

func (*ResultAdditionalProps) GetCreationTimeUnix added in v1.19.3

func (x *ResultAdditionalProps) GetCreationTimeUnix() int64

func (*ResultAdditionalProps) GetCreationTimeUnixPresent added in v1.19.3

func (x *ResultAdditionalProps) GetCreationTimeUnixPresent() bool

func (*ResultAdditionalProps) GetDistance added in v1.19.3

func (x *ResultAdditionalProps) GetDistance() float32

func (*ResultAdditionalProps) GetDistancePresent added in v1.19.3

func (x *ResultAdditionalProps) GetDistancePresent() bool

func (*ResultAdditionalProps) GetExplainScore added in v1.19.3

func (x *ResultAdditionalProps) GetExplainScore() string

func (*ResultAdditionalProps) GetExplainScorePresent added in v1.19.3

func (x *ResultAdditionalProps) GetExplainScorePresent() bool

func (*ResultAdditionalProps) GetId added in v1.19.3

func (x *ResultAdditionalProps) GetId() string

func (*ResultAdditionalProps) GetLastUpdateTimeUnix added in v1.19.3

func (x *ResultAdditionalProps) GetLastUpdateTimeUnix() int64

func (*ResultAdditionalProps) GetLastUpdateTimeUnixPresent added in v1.19.3

func (x *ResultAdditionalProps) GetLastUpdateTimeUnixPresent() bool

func (*ResultAdditionalProps) GetScore added in v1.19.3

func (x *ResultAdditionalProps) GetScore() float32

func (*ResultAdditionalProps) GetScorePresent added in v1.19.3

func (x *ResultAdditionalProps) GetScorePresent() bool

func (*ResultAdditionalProps) GetVector added in v1.19.3

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

func (*ResultAdditionalProps) ProtoMessage added in v1.19.3

func (*ResultAdditionalProps) ProtoMessage()

func (*ResultAdditionalProps) ProtoReflect added in v1.19.3

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

func (*ResultAdditionalProps) Reset added in v1.19.3

func (x *ResultAdditionalProps) Reset()

func (*ResultAdditionalProps) String added in v1.19.3

func (x *ResultAdditionalProps) String() string

type ResultProperties added in v1.19.3

type ResultProperties struct {
	NonRefProperties *structpb.Struct       `protobuf:"bytes,1,opt,name=non_ref_properties,json=nonRefProperties,proto3" json:"non_ref_properties,omitempty"`
	RefProps         []*ReturnRefProperties `protobuf:"bytes,2,rep,name=ref_props,json=refProps,proto3" json:"ref_props,omitempty"`
	ClassName        string                 `protobuf:"bytes,3,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"`
	Metadata         *ResultAdditionalProps `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultProperties) Descriptor deprecated added in v1.19.3

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

Deprecated: Use ResultProperties.ProtoReflect.Descriptor instead.

func (*ResultProperties) GetClassName added in v1.19.3

func (x *ResultProperties) GetClassName() string

func (*ResultProperties) GetMetadata added in v1.21.0

func (x *ResultProperties) GetMetadata() *ResultAdditionalProps

func (*ResultProperties) GetNonRefProperties added in v1.19.3

func (x *ResultProperties) GetNonRefProperties() *structpb.Struct

func (*ResultProperties) GetRefProps added in v1.19.3

func (x *ResultProperties) GetRefProps() []*ReturnRefProperties

func (*ResultProperties) ProtoMessage added in v1.19.3

func (*ResultProperties) ProtoMessage()

func (*ResultProperties) ProtoReflect added in v1.19.3

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

func (*ResultProperties) Reset added in v1.19.3

func (x *ResultProperties) Reset()

func (*ResultProperties) String added in v1.19.3

func (x *ResultProperties) String() string

type ReturnRefProperties added in v1.19.3

type ReturnRefProperties struct {
	Properties []*ResultProperties `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
	PropName   string              `protobuf:"bytes,2,opt,name=prop_name,json=propName,proto3" json:"prop_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ReturnRefProperties) Descriptor deprecated added in v1.19.3

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

Deprecated: Use ReturnRefProperties.ProtoReflect.Descriptor instead.

func (*ReturnRefProperties) GetPropName added in v1.19.3

func (x *ReturnRefProperties) GetPropName() string

func (*ReturnRefProperties) GetProperties added in v1.19.3

func (x *ReturnRefProperties) GetProperties() []*ResultProperties

func (*ReturnRefProperties) ProtoMessage added in v1.19.3

func (*ReturnRefProperties) ProtoMessage()

func (*ReturnRefProperties) ProtoReflect added in v1.19.3

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

func (*ReturnRefProperties) Reset added in v1.19.3

func (x *ReturnRefProperties) Reset()

func (*ReturnRefProperties) String added in v1.19.3

func (x *ReturnRefProperties) String() string

type SearchReply

type SearchReply struct {
	Results []*SearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	Took    float32         `protobuf:"fixed32,2,opt,name=took,proto3" json:"took,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchReply) Descriptor deprecated

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

Deprecated: Use SearchReply.ProtoReflect.Descriptor instead.

func (*SearchReply) GetResults

func (x *SearchReply) GetResults() []*SearchResult

func (*SearchReply) GetTook

func (x *SearchReply) GetTook() float32

func (*SearchReply) ProtoMessage

func (*SearchReply) ProtoMessage()

func (*SearchReply) ProtoReflect

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

func (*SearchReply) Reset

func (x *SearchReply) Reset()

func (*SearchReply) String

func (x *SearchReply) String() string

type SearchRequest

type SearchRequest struct {
	ClassName            string                `protobuf:"bytes,1,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"`
	Limit                uint32                `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	AdditionalProperties *AdditionalProperties `protobuf:"bytes,3,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
	NearVector           *NearVectorParams     `protobuf:"bytes,4,opt,name=near_vector,json=nearVector,proto3" json:"near_vector,omitempty"`
	NearObject           *NearObjectParams     `protobuf:"bytes,5,opt,name=near_object,json=nearObject,proto3" json:"near_object,omitempty"`
	Properties           *Properties           `protobuf:"bytes,6,opt,name=properties,proto3" json:"properties,omitempty"`
	HybridSearch         *HybridSearchParams   `protobuf:"bytes,7,opt,name=hybrid_search,json=hybridSearch,proto3" json:"hybrid_search,omitempty"`
	Bm25Search           *BM25SearchParams     `protobuf:"bytes,8,opt,name=bm25_search,json=bm25Search,proto3" json:"bm25_search,omitempty"`
	Offset               uint32                `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"`
	Autocut              uint32                `protobuf:"varint,10,opt,name=autocut,proto3" json:"autocut,omitempty"`
	After                string                `protobuf:"bytes,11,opt,name=after,proto3" json:"after,omitempty"`
	Tenant               string                `protobuf:"bytes,12,opt,name=tenant,proto3" json:"tenant,omitempty"`
	Filters              *Filters              `protobuf:"bytes,13,opt,name=filters,proto3" json:"filters,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetAdditionalProperties

func (x *SearchRequest) GetAdditionalProperties() *AdditionalProperties

func (*SearchRequest) GetAfter added in v1.21.0

func (x *SearchRequest) GetAfter() string

func (*SearchRequest) GetAutocut added in v1.21.0

func (x *SearchRequest) GetAutocut() uint32

func (*SearchRequest) GetBm25Search added in v1.19.3

func (x *SearchRequest) GetBm25Search() *BM25SearchParams

func (*SearchRequest) GetClassName

func (x *SearchRequest) GetClassName() string

func (*SearchRequest) GetFilters added in v1.21.0

func (x *SearchRequest) GetFilters() *Filters

func (*SearchRequest) GetHybridSearch added in v1.19.3

func (x *SearchRequest) GetHybridSearch() *HybridSearchParams

func (*SearchRequest) GetLimit

func (x *SearchRequest) GetLimit() uint32

func (*SearchRequest) GetNearObject

func (x *SearchRequest) GetNearObject() *NearObjectParams

func (*SearchRequest) GetNearVector

func (x *SearchRequest) GetNearVector() *NearVectorParams

func (*SearchRequest) GetOffset added in v1.21.0

func (x *SearchRequest) GetOffset() uint32

func (*SearchRequest) GetProperties

func (x *SearchRequest) GetProperties() *Properties

func (*SearchRequest) GetTenant added in v1.21.0

func (x *SearchRequest) GetTenant() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

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

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type SearchResult

type SearchResult struct {
	Properties           *ResultProperties      `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"`
	AdditionalProperties *ResultAdditionalProps `protobuf:"bytes,2,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResult) Descriptor deprecated

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

Deprecated: Use SearchResult.ProtoReflect.Descriptor instead.

func (*SearchResult) GetAdditionalProperties

func (x *SearchResult) GetAdditionalProperties() *ResultAdditionalProps

func (*SearchResult) GetProperties

func (x *SearchResult) GetProperties() *ResultProperties

func (*SearchResult) ProtoMessage

func (*SearchResult) ProtoMessage()

func (*SearchResult) ProtoReflect

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

func (*SearchResult) Reset

func (x *SearchResult) Reset()

func (*SearchResult) String

func (x *SearchResult) String() string

type UnimplementedWeaviateServer

type UnimplementedWeaviateServer struct{}

UnimplementedWeaviateServer must be embedded to have forward compatible implementations.

func (UnimplementedWeaviateServer) BatchObjects added in v1.21.0

func (UnimplementedWeaviateServer) Search

type UnsafeWeaviateServer

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

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

type WeaviateClient

type WeaviateClient interface {
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error)
	BatchObjects(ctx context.Context, in *BatchObjectsRequest, opts ...grpc.CallOption) (*BatchObjectsReply, error)
}

WeaviateClient is the client API for Weaviate 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 NewWeaviateClient

func NewWeaviateClient(cc grpc.ClientConnInterface) WeaviateClient

type WeaviateServer

type WeaviateServer interface {
	Search(context.Context, *SearchRequest) (*SearchReply, error)
	BatchObjects(context.Context, *BatchObjectsRequest) (*BatchObjectsReply, error)
	// contains filtered or unexported methods
}

WeaviateServer is the server API for Weaviate service. All implementations must embed UnimplementedWeaviateServer for forward compatibility

Jump to

Keyboard shortcuts

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