Documentation ¶
Index ¶
- Constants
- Variables
- type ArrayDataType
- func (ArrayDataType) Descriptor() protoreflect.EnumDescriptor
- func (x ArrayDataType) Enum() *ArrayDataType
- func (ArrayDataType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ArrayDataType) Number() protoreflect.EnumNumber
- func (x ArrayDataType) String() string
- func (ArrayDataType) Type() protoreflect.EnumType
- type ArrayProto
- func (*ArrayProto) Descriptor() ([]byte, []int)deprecated
- func (x *ArrayProto) GetArrayShape() *ArrayShape
- func (x *ArrayProto) GetBoolVal() []bool
- func (x *ArrayProto) GetDoubleVal() []float64
- func (x *ArrayProto) GetDtype() ArrayDataType
- func (x *ArrayProto) GetFloatVal() []float32
- func (x *ArrayProto) GetInt64Val() []int64
- func (x *ArrayProto) GetIntVal() []int32
- func (x *ArrayProto) GetStringVal() [][]byte
- func (*ArrayProto) ProtoMessage()
- func (x *ArrayProto) ProtoReflect() protoreflect.Message
- func (x *ArrayProto) Reset()
- func (x *ArrayProto) String() string
- type ArrayShape
- type ContextFeatures
- type DoubleList
- type DoubleLists
- type EasyrecRequestBuilder
- func (b *EasyrecRequestBuilder) AddContextFeature(key string, features []interface{})
- func (b *EasyrecRequestBuilder) AddItemId(itemId string)
- func (b *EasyrecRequestBuilder) AddItemIds(itemIdsStr string)
- func (b *EasyrecRequestBuilder) AddUserFeature(k string, v interface{})
- func (b *EasyrecRequestBuilder) AddUserFeatureStr(featureStr string)
- func (b *EasyrecRequestBuilder) EasyrecRequest() *PBRequest
- type FloatList
- type FloatLists
- type IntDoubleMap
- type IntFloatMap
- type IntIntMap
- type IntList
- type IntLists
- type IntLongMap
- type IntStringMap
- type LongDoubleMap
- type LongFloatMap
- type LongIntMap
- type LongList
- type LongLists
- type LongLongMap
- type LongStringMap
- type PBFeature
- func (*PBFeature) Descriptor() ([]byte, []int)deprecated
- func (x *PBFeature) GetDoubleFeature() float64
- func (x *PBFeature) GetDoubleList() *DoubleList
- func (x *PBFeature) GetDoubleLists() *DoubleLists
- func (x *PBFeature) GetFloatFeature() float32
- func (x *PBFeature) GetFloatList() *FloatList
- func (x *PBFeature) GetFloatLists() *FloatLists
- func (x *PBFeature) GetIntDoubleMap() *IntDoubleMap
- func (x *PBFeature) GetIntFeature() int32
- func (x *PBFeature) GetIntFloatMap() *IntFloatMap
- func (x *PBFeature) GetIntIntMap() *IntIntMap
- func (x *PBFeature) GetIntList() *IntList
- func (x *PBFeature) GetIntLists() *IntLists
- func (x *PBFeature) GetIntLongMap() *IntLongMap
- func (x *PBFeature) GetIntStringMap() *IntStringMap
- func (x *PBFeature) GetLongDoubleMap() *LongDoubleMap
- func (x *PBFeature) GetLongFeature() int64
- func (x *PBFeature) GetLongFloatMap() *LongFloatMap
- func (x *PBFeature) GetLongIntMap() *LongIntMap
- func (x *PBFeature) GetLongList() *LongList
- func (x *PBFeature) GetLongLists() *LongLists
- func (x *PBFeature) GetLongLongMap() *LongLongMap
- func (x *PBFeature) GetLongStringMap() *LongStringMap
- func (x *PBFeature) GetStringDoubleMap() *StringDoubleMap
- func (x *PBFeature) GetStringFeature() string
- func (x *PBFeature) GetStringFloatMap() *StringFloatMap
- func (x *PBFeature) GetStringIntMap() *StringIntMap
- func (x *PBFeature) GetStringList() *StringList
- func (x *PBFeature) GetStringLists() *StringLists
- func (x *PBFeature) GetStringLongMap() *StringLongMap
- func (x *PBFeature) GetStringStringMap() *StringStringMap
- func (m *PBFeature) GetValue() isPBFeature_Value
- func (*PBFeature) ProtoMessage()
- func (x *PBFeature) ProtoReflect() protoreflect.Message
- func (x *PBFeature) Reset()
- func (x *PBFeature) String() string
- type PBFeature_DoubleFeature
- type PBFeature_DoubleList
- type PBFeature_DoubleLists
- type PBFeature_FloatFeature
- type PBFeature_FloatList
- type PBFeature_FloatLists
- type PBFeature_IntDoubleMap
- type PBFeature_IntFeature
- type PBFeature_IntFloatMap
- type PBFeature_IntIntMap
- type PBFeature_IntList
- type PBFeature_IntLists
- type PBFeature_IntLongMap
- type PBFeature_IntStringMap
- type PBFeature_LongDoubleMap
- type PBFeature_LongFeature
- type PBFeature_LongFloatMap
- type PBFeature_LongIntMap
- type PBFeature_LongList
- type PBFeature_LongLists
- type PBFeature_LongLongMap
- type PBFeature_LongStringMap
- type PBFeature_StringDoubleMap
- type PBFeature_StringFeature
- type PBFeature_StringFloatMap
- type PBFeature_StringIntMap
- type PBFeature_StringList
- type PBFeature_StringLists
- type PBFeature_StringLongMap
- type PBFeature_StringStringMap
- type PBRequest
- func (*PBRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PBRequest) GetContextFeatures() map[string]*ContextFeatures
- func (x *PBRequest) GetDebugLevel() int32
- func (x *PBRequest) GetFaissNeighNum() int32
- func (x *PBRequest) GetItemIds() []string
- func (x *PBRequest) GetUserFeatures() map[string]*PBFeature
- func (*PBRequest) ProtoMessage()
- func (x *PBRequest) ProtoReflect() protoreflect.Message
- func (x *PBRequest) Reset()
- func (x *PBRequest) String() string
- type PBResponse
- func (*PBResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PBResponse) GetContextFeatures() map[string]*ContextFeatures
- func (x *PBResponse) GetErrorMsg() string
- func (x *PBResponse) GetGenerateFeatures() map[string]string
- func (x *PBResponse) GetItemFeatures() map[string]string
- func (x *PBResponse) GetItemIds() []string
- func (x *PBResponse) GetOutputs() []string
- func (x *PBResponse) GetRawFeatures() map[string]string
- func (x *PBResponse) GetResults() map[string]*Results
- func (x *PBResponse) GetStatusCode() StatusCode
- func (x *PBResponse) GetTfOutputs() map[string]*ArrayProto
- func (*PBResponse) ProtoMessage()
- func (x *PBResponse) ProtoReflect() protoreflect.Message
- func (x *PBResponse) Reset()
- func (x *PBResponse) String() string
- type Results
- type StatusCode
- type StringDoubleMap
- type StringFloatMap
- type StringIntMap
- type StringList
- type StringLists
- type StringLongMap
- type StringStringMap
- type TorchRecPBResponse
- func (*TorchRecPBResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TorchRecPBResponse) GetGenerateFeatures() map[string]string
- func (x *TorchRecPBResponse) GetItemIds() []string
- func (x *TorchRecPBResponse) GetMapOutputs() map[string]*ArrayProto
- func (x *TorchRecPBResponse) GetRawFeatures() map[string]string
- func (*TorchRecPBResponse) ProtoMessage()
- func (x *TorchRecPBResponse) ProtoReflect() protoreflect.Message
- func (x *TorchRecPBResponse) Reset()
- func (x *TorchRecPBResponse) String() string
Constants ¶
const ( MULTI_SPLIT = "|" HA3_MULTI_SPLIT = "\u001D" FEA_LIST_MIN_LEN = 2 )
Variables ¶
var ( ArrayDataType_name = map[int32]string{ 0: "DT_INVALID", 1: "DT_FLOAT", 2: "DT_DOUBLE", 3: "DT_INT32", 4: "DT_UINT8", 5: "DT_INT16", 6: "DT_INT8", 7: "DT_STRING", 8: "DT_COMPLEX64", 9: "DT_INT64", 10: "DT_BOOL", 11: "DT_QINT8", 12: "DT_QUINT8", 13: "DT_QINT32", 14: "DT_BFLOAT16", 15: "DT_QINT16", 16: "DT_QUINT16", 17: "DT_UINT16", 18: "DT_COMPLEX128", 19: "DT_HALF", 20: "DT_RESOURCE", 21: "DT_VARIANT", } ArrayDataType_value = map[string]int32{ "DT_INVALID": 0, "DT_FLOAT": 1, "DT_DOUBLE": 2, "DT_INT32": 3, "DT_UINT8": 4, "DT_INT16": 5, "DT_INT8": 6, "DT_STRING": 7, "DT_COMPLEX64": 8, "DT_INT64": 9, "DT_BOOL": 10, "DT_QINT8": 11, "DT_QUINT8": 12, "DT_QINT32": 13, "DT_BFLOAT16": 14, "DT_QINT16": 15, "DT_QUINT16": 16, "DT_UINT16": 17, "DT_COMPLEX128": 18, "DT_HALF": 19, "DT_RESOURCE": 20, "DT_VARIANT": 21, } )
Enum value maps for ArrayDataType.
var ( StatusCode_name = map[int32]string{ 0: "OK", 1: "INPUT_EMPTY", 2: "EXCEPTION", } StatusCode_value = map[string]int32{ "OK": 0, "INPUT_EMPTY": 1, "EXCEPTION": 2, } )
Enum value maps for StatusCode.
var File_easyrec_predict_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ArrayDataType ¶
type ArrayDataType int32
const ( // Not a legal value for DataType. Used to indicate a DataType field // has not been set. ArrayDataType_DT_INVALID ArrayDataType = 0 // Data types that all computation devices are expected to be // capable to support. ArrayDataType_DT_FLOAT ArrayDataType = 1 ArrayDataType_DT_DOUBLE ArrayDataType = 2 ArrayDataType_DT_INT32 ArrayDataType = 3 ArrayDataType_DT_UINT8 ArrayDataType = 4 ArrayDataType_DT_INT16 ArrayDataType = 5 ArrayDataType_DT_INT8 ArrayDataType = 6 ArrayDataType_DT_STRING ArrayDataType = 7 ArrayDataType_DT_COMPLEX64 ArrayDataType = 8 // Single-precision complex ArrayDataType_DT_INT64 ArrayDataType = 9 ArrayDataType_DT_BOOL ArrayDataType = 10 ArrayDataType_DT_QINT8 ArrayDataType = 11 // Quantized int8 ArrayDataType_DT_QUINT8 ArrayDataType = 12 // Quantized uint8 ArrayDataType_DT_QINT32 ArrayDataType = 13 // Quantized int32 ArrayDataType_DT_BFLOAT16 ArrayDataType = 14 // Float32 truncated to 16 bits. Only for cast ops. ArrayDataType_DT_QINT16 ArrayDataType = 15 // Quantized int16 ArrayDataType_DT_QUINT16 ArrayDataType = 16 // Quantized uint16 ArrayDataType_DT_UINT16 ArrayDataType = 17 ArrayDataType_DT_COMPLEX128 ArrayDataType = 18 // Double-precision complex ArrayDataType_DT_HALF ArrayDataType = 19 ArrayDataType_DT_RESOURCE ArrayDataType = 20 ArrayDataType_DT_VARIANT ArrayDataType = 21 // Arbitrary C++ data types )
func (ArrayDataType) Descriptor ¶
func (ArrayDataType) Descriptor() protoreflect.EnumDescriptor
func (ArrayDataType) Enum ¶
func (x ArrayDataType) Enum() *ArrayDataType
func (ArrayDataType) EnumDescriptor
deprecated
func (ArrayDataType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ArrayDataType.Descriptor instead.
func (ArrayDataType) Number ¶
func (x ArrayDataType) Number() protoreflect.EnumNumber
func (ArrayDataType) String ¶
func (x ArrayDataType) String() string
func (ArrayDataType) Type ¶
func (ArrayDataType) Type() protoreflect.EnumType
type ArrayProto ¶
type ArrayProto struct { // Data Type. Dtype ArrayDataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=easyrec.ArrayDataType" json:"dtype,omitempty"` // Shape of the array. ArrayShape *ArrayShape `protobuf:"bytes,2,opt,name=array_shape,json=arrayShape,proto3" json:"array_shape,omitempty"` // DT_FLOAT. FloatVal []float32 `protobuf:"fixed32,3,rep,packed,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"` // DT_DOUBLE. DoubleVal []float64 `protobuf:"fixed64,4,rep,packed,name=double_val,json=doubleVal,proto3" json:"double_val,omitempty"` // DT_INT32, DT_INT16, DT_INT8, DT_UINT8. IntVal []int32 `protobuf:"varint,5,rep,packed,name=int_val,json=intVal,proto3" json:"int_val,omitempty"` // DT_STRING. StringVal [][]byte `protobuf:"bytes,6,rep,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"` // DT_INT64. Int64Val []int64 `protobuf:"varint,7,rep,packed,name=int64_val,json=int64Val,proto3" json:"int64_val,omitempty"` // DT_BOOL. BoolVal []bool `protobuf:"varint,8,rep,packed,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"` // contains filtered or unexported fields }
Protocol buffer representing an array
func (*ArrayProto) Descriptor
deprecated
func (*ArrayProto) Descriptor() ([]byte, []int)
Deprecated: Use ArrayProto.ProtoReflect.Descriptor instead.
func (*ArrayProto) GetArrayShape ¶
func (x *ArrayProto) GetArrayShape() *ArrayShape
func (*ArrayProto) GetBoolVal ¶
func (x *ArrayProto) GetBoolVal() []bool
func (*ArrayProto) GetDoubleVal ¶
func (x *ArrayProto) GetDoubleVal() []float64
func (*ArrayProto) GetDtype ¶
func (x *ArrayProto) GetDtype() ArrayDataType
func (*ArrayProto) GetFloatVal ¶
func (x *ArrayProto) GetFloatVal() []float32
func (*ArrayProto) GetInt64Val ¶
func (x *ArrayProto) GetInt64Val() []int64
func (*ArrayProto) GetIntVal ¶
func (x *ArrayProto) GetIntVal() []int32
func (*ArrayProto) GetStringVal ¶
func (x *ArrayProto) GetStringVal() [][]byte
func (*ArrayProto) ProtoMessage ¶
func (*ArrayProto) ProtoMessage()
func (*ArrayProto) ProtoReflect ¶
func (x *ArrayProto) ProtoReflect() protoreflect.Message
func (*ArrayProto) Reset ¶
func (x *ArrayProto) Reset()
func (*ArrayProto) String ¶
func (x *ArrayProto) String() string
type ArrayShape ¶
type ArrayShape struct { Dim []int64 `protobuf:"varint,1,rep,packed,name=dim,proto3" json:"dim,omitempty"` // contains filtered or unexported fields }
Dimensions of an array
func (*ArrayShape) Descriptor
deprecated
func (*ArrayShape) Descriptor() ([]byte, []int)
Deprecated: Use ArrayShape.ProtoReflect.Descriptor instead.
func (*ArrayShape) GetDim ¶
func (x *ArrayShape) GetDim() []int64
func (*ArrayShape) ProtoMessage ¶
func (*ArrayShape) ProtoMessage()
func (*ArrayShape) ProtoReflect ¶
func (x *ArrayShape) ProtoReflect() protoreflect.Message
func (*ArrayShape) Reset ¶
func (x *ArrayShape) Reset()
func (*ArrayShape) String ¶
func (x *ArrayShape) String() string
type ContextFeatures ¶
type ContextFeatures struct { Features []*PBFeature `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
context features
func (*ContextFeatures) Descriptor
deprecated
func (*ContextFeatures) Descriptor() ([]byte, []int)
Deprecated: Use ContextFeatures.ProtoReflect.Descriptor instead.
func (*ContextFeatures) GetFeatures ¶
func (x *ContextFeatures) GetFeatures() []*PBFeature
func (*ContextFeatures) ProtoMessage ¶
func (*ContextFeatures) ProtoMessage()
func (*ContextFeatures) ProtoReflect ¶
func (x *ContextFeatures) ProtoReflect() protoreflect.Message
func (*ContextFeatures) Reset ¶
func (x *ContextFeatures) Reset()
func (*ContextFeatures) String ¶
func (x *ContextFeatures) String() string
type DoubleList ¶ added in v2.2.5
type DoubleList struct { Features []float64 `protobuf:"fixed64,1,rep,packed,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*DoubleList) Descriptor
deprecated
added in
v2.2.5
func (*DoubleList) Descriptor() ([]byte, []int)
Deprecated: Use DoubleList.ProtoReflect.Descriptor instead.
func (*DoubleList) GetFeatures ¶ added in v2.2.5
func (x *DoubleList) GetFeatures() []float64
func (*DoubleList) ProtoMessage ¶ added in v2.2.5
func (*DoubleList) ProtoMessage()
func (*DoubleList) ProtoReflect ¶ added in v2.2.5
func (x *DoubleList) ProtoReflect() protoreflect.Message
func (*DoubleList) Reset ¶ added in v2.2.5
func (x *DoubleList) Reset()
func (*DoubleList) String ¶ added in v2.2.5
func (x *DoubleList) String() string
type DoubleLists ¶ added in v2.2.5
type DoubleLists struct { Lists []*DoubleList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` // contains filtered or unexported fields }
func (*DoubleLists) Descriptor
deprecated
added in
v2.2.5
func (*DoubleLists) Descriptor() ([]byte, []int)
Deprecated: Use DoubleLists.ProtoReflect.Descriptor instead.
func (*DoubleLists) GetLists ¶ added in v2.2.5
func (x *DoubleLists) GetLists() []*DoubleList
func (*DoubleLists) ProtoMessage ¶ added in v2.2.5
func (*DoubleLists) ProtoMessage()
func (*DoubleLists) ProtoReflect ¶ added in v2.2.5
func (x *DoubleLists) ProtoReflect() protoreflect.Message
func (*DoubleLists) Reset ¶ added in v2.2.5
func (x *DoubleLists) Reset()
func (*DoubleLists) String ¶ added in v2.2.5
func (x *DoubleLists) String() string
type EasyrecRequestBuilder ¶
type EasyrecRequestBuilder struct {
// contains filtered or unexported fields
}
func NewEasyrecRequestBuilder ¶
func NewEasyrecRequestBuilder() *EasyrecRequestBuilder
func NewEasyrecRequestBuilderDebug ¶
func NewEasyrecRequestBuilderDebug() *EasyrecRequestBuilder
func NewEasyrecRequestBuilderDebugWithLevel ¶
func NewEasyrecRequestBuilderDebugWithLevel(level int) *EasyrecRequestBuilder
func (*EasyrecRequestBuilder) AddContextFeature ¶
func (b *EasyrecRequestBuilder) AddContextFeature(key string, features []interface{})
func (*EasyrecRequestBuilder) AddItemId ¶
func (b *EasyrecRequestBuilder) AddItemId(itemId string)
func (*EasyrecRequestBuilder) AddItemIds ¶
func (b *EasyrecRequestBuilder) AddItemIds(itemIdsStr string)
func (*EasyrecRequestBuilder) AddUserFeature ¶
func (b *EasyrecRequestBuilder) AddUserFeature(k string, v interface{})
func (*EasyrecRequestBuilder) AddUserFeatureStr ¶
func (b *EasyrecRequestBuilder) AddUserFeatureStr(featureStr string)
func (*EasyrecRequestBuilder) EasyrecRequest ¶
func (b *EasyrecRequestBuilder) EasyrecRequest() *PBRequest
type FloatList ¶ added in v2.2.5
type FloatList struct { Features []float32 `protobuf:"fixed32,1,rep,packed,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*FloatList) Descriptor
deprecated
added in
v2.2.5
func (*FloatList) GetFeatures ¶ added in v2.2.5
func (*FloatList) ProtoMessage ¶ added in v2.2.5
func (*FloatList) ProtoMessage()
func (*FloatList) ProtoReflect ¶ added in v2.2.5
func (x *FloatList) ProtoReflect() protoreflect.Message
type FloatLists ¶ added in v2.2.5
type FloatLists struct { Lists []*FloatList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` // contains filtered or unexported fields }
func (*FloatLists) Descriptor
deprecated
added in
v2.2.5
func (*FloatLists) Descriptor() ([]byte, []int)
Deprecated: Use FloatLists.ProtoReflect.Descriptor instead.
func (*FloatLists) GetLists ¶ added in v2.2.5
func (x *FloatLists) GetLists() []*FloatList
func (*FloatLists) ProtoMessage ¶ added in v2.2.5
func (*FloatLists) ProtoMessage()
func (*FloatLists) ProtoReflect ¶ added in v2.2.5
func (x *FloatLists) ProtoReflect() protoreflect.Message
func (*FloatLists) Reset ¶ added in v2.2.5
func (x *FloatLists) Reset()
func (*FloatLists) String ¶ added in v2.2.5
func (x *FloatLists) String() string
type IntDoubleMap ¶ added in v2.2.5
type IntDoubleMap struct { MapField map[int32]float64 `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IntDoubleMap) Descriptor
deprecated
added in
v2.2.5
func (*IntDoubleMap) Descriptor() ([]byte, []int)
Deprecated: Use IntDoubleMap.ProtoReflect.Descriptor instead.
func (*IntDoubleMap) GetMapField ¶ added in v2.2.5
func (x *IntDoubleMap) GetMapField() map[int32]float64
func (*IntDoubleMap) ProtoMessage ¶ added in v2.2.5
func (*IntDoubleMap) ProtoMessage()
func (*IntDoubleMap) ProtoReflect ¶ added in v2.2.5
func (x *IntDoubleMap) ProtoReflect() protoreflect.Message
func (*IntDoubleMap) Reset ¶ added in v2.2.5
func (x *IntDoubleMap) Reset()
func (*IntDoubleMap) String ¶ added in v2.2.5
func (x *IntDoubleMap) String() string
type IntFloatMap ¶ added in v2.2.5
type IntFloatMap struct { MapField map[int32]float32 `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IntFloatMap) Descriptor
deprecated
added in
v2.2.5
func (*IntFloatMap) Descriptor() ([]byte, []int)
Deprecated: Use IntFloatMap.ProtoReflect.Descriptor instead.
func (*IntFloatMap) GetMapField ¶ added in v2.2.5
func (x *IntFloatMap) GetMapField() map[int32]float32
func (*IntFloatMap) ProtoMessage ¶ added in v2.2.5
func (*IntFloatMap) ProtoMessage()
func (*IntFloatMap) ProtoReflect ¶ added in v2.2.5
func (x *IntFloatMap) ProtoReflect() protoreflect.Message
func (*IntFloatMap) Reset ¶ added in v2.2.5
func (x *IntFloatMap) Reset()
func (*IntFloatMap) String ¶ added in v2.2.5
func (x *IntFloatMap) String() string
type IntIntMap ¶ added in v2.2.5
type IntIntMap struct { MapField map[int32]int32 `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IntIntMap) Descriptor
deprecated
added in
v2.2.5
func (*IntIntMap) GetMapField ¶ added in v2.2.5
func (*IntIntMap) ProtoMessage ¶ added in v2.2.5
func (*IntIntMap) ProtoMessage()
func (*IntIntMap) ProtoReflect ¶ added in v2.2.5
func (x *IntIntMap) ProtoReflect() protoreflect.Message
type IntList ¶ added in v2.2.5
type IntList struct { Features []int32 `protobuf:"varint,1,rep,packed,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
list
func (*IntList) Descriptor
deprecated
added in
v2.2.5
func (*IntList) GetFeatures ¶ added in v2.2.5
func (*IntList) ProtoMessage ¶ added in v2.2.5
func (*IntList) ProtoMessage()
func (*IntList) ProtoReflect ¶ added in v2.2.5
func (x *IntList) ProtoReflect() protoreflect.Message
type IntLists ¶ added in v2.2.5
type IntLists struct { Lists []*IntList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` // contains filtered or unexported fields }
lists
func (*IntLists) Descriptor
deprecated
added in
v2.2.5
func (*IntLists) ProtoMessage ¶ added in v2.2.5
func (*IntLists) ProtoMessage()
func (*IntLists) ProtoReflect ¶ added in v2.2.5
func (x *IntLists) ProtoReflect() protoreflect.Message
type IntLongMap ¶ added in v2.2.5
type IntLongMap struct { MapField map[int32]int64 `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IntLongMap) Descriptor
deprecated
added in
v2.2.5
func (*IntLongMap) Descriptor() ([]byte, []int)
Deprecated: Use IntLongMap.ProtoReflect.Descriptor instead.
func (*IntLongMap) GetMapField ¶ added in v2.2.5
func (x *IntLongMap) GetMapField() map[int32]int64
func (*IntLongMap) ProtoMessage ¶ added in v2.2.5
func (*IntLongMap) ProtoMessage()
func (*IntLongMap) ProtoReflect ¶ added in v2.2.5
func (x *IntLongMap) ProtoReflect() protoreflect.Message
func (*IntLongMap) Reset ¶ added in v2.2.5
func (x *IntLongMap) Reset()
func (*IntLongMap) String ¶ added in v2.2.5
func (x *IntLongMap) String() string
type IntStringMap ¶ added in v2.2.5
type IntStringMap struct { MapField map[int32]string `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
int32->others
func (*IntStringMap) Descriptor
deprecated
added in
v2.2.5
func (*IntStringMap) Descriptor() ([]byte, []int)
Deprecated: Use IntStringMap.ProtoReflect.Descriptor instead.
func (*IntStringMap) GetMapField ¶ added in v2.2.5
func (x *IntStringMap) GetMapField() map[int32]string
func (*IntStringMap) ProtoMessage ¶ added in v2.2.5
func (*IntStringMap) ProtoMessage()
func (*IntStringMap) ProtoReflect ¶ added in v2.2.5
func (x *IntStringMap) ProtoReflect() protoreflect.Message
func (*IntStringMap) Reset ¶ added in v2.2.5
func (x *IntStringMap) Reset()
func (*IntStringMap) String ¶ added in v2.2.5
func (x *IntStringMap) String() string
type LongDoubleMap ¶ added in v2.2.5
type LongDoubleMap struct { MapField map[int64]float64 `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LongDoubleMap) Descriptor
deprecated
added in
v2.2.5
func (*LongDoubleMap) Descriptor() ([]byte, []int)
Deprecated: Use LongDoubleMap.ProtoReflect.Descriptor instead.
func (*LongDoubleMap) GetMapField ¶ added in v2.2.5
func (x *LongDoubleMap) GetMapField() map[int64]float64
func (*LongDoubleMap) ProtoMessage ¶ added in v2.2.5
func (*LongDoubleMap) ProtoMessage()
func (*LongDoubleMap) ProtoReflect ¶ added in v2.2.5
func (x *LongDoubleMap) ProtoReflect() protoreflect.Message
func (*LongDoubleMap) Reset ¶ added in v2.2.5
func (x *LongDoubleMap) Reset()
func (*LongDoubleMap) String ¶ added in v2.2.5
func (x *LongDoubleMap) String() string
type LongFloatMap ¶ added in v2.2.5
type LongFloatMap struct { MapField map[int64]float32 `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LongFloatMap) Descriptor
deprecated
added in
v2.2.5
func (*LongFloatMap) Descriptor() ([]byte, []int)
Deprecated: Use LongFloatMap.ProtoReflect.Descriptor instead.
func (*LongFloatMap) GetMapField ¶ added in v2.2.5
func (x *LongFloatMap) GetMapField() map[int64]float32
func (*LongFloatMap) ProtoMessage ¶ added in v2.2.5
func (*LongFloatMap) ProtoMessage()
func (*LongFloatMap) ProtoReflect ¶ added in v2.2.5
func (x *LongFloatMap) ProtoReflect() protoreflect.Message
func (*LongFloatMap) Reset ¶ added in v2.2.5
func (x *LongFloatMap) Reset()
func (*LongFloatMap) String ¶ added in v2.2.5
func (x *LongFloatMap) String() string
type LongIntMap ¶ added in v2.2.5
type LongIntMap struct { MapField map[int64]int32 `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LongIntMap) Descriptor
deprecated
added in
v2.2.5
func (*LongIntMap) Descriptor() ([]byte, []int)
Deprecated: Use LongIntMap.ProtoReflect.Descriptor instead.
func (*LongIntMap) GetMapField ¶ added in v2.2.5
func (x *LongIntMap) GetMapField() map[int64]int32
func (*LongIntMap) ProtoMessage ¶ added in v2.2.5
func (*LongIntMap) ProtoMessage()
func (*LongIntMap) ProtoReflect ¶ added in v2.2.5
func (x *LongIntMap) ProtoReflect() protoreflect.Message
func (*LongIntMap) Reset ¶ added in v2.2.5
func (x *LongIntMap) Reset()
func (*LongIntMap) String ¶ added in v2.2.5
func (x *LongIntMap) String() string
type LongList ¶ added in v2.2.5
type LongList struct { Features []int64 `protobuf:"varint,1,rep,packed,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*LongList) Descriptor
deprecated
added in
v2.2.5
func (*LongList) GetFeatures ¶ added in v2.2.5
func (*LongList) ProtoMessage ¶ added in v2.2.5
func (*LongList) ProtoMessage()
func (*LongList) ProtoReflect ¶ added in v2.2.5
func (x *LongList) ProtoReflect() protoreflect.Message
type LongLists ¶ added in v2.2.5
type LongLists struct { Lists []*LongList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` // contains filtered or unexported fields }
func (*LongLists) Descriptor
deprecated
added in
v2.2.5
func (*LongLists) ProtoMessage ¶ added in v2.2.5
func (*LongLists) ProtoMessage()
func (*LongLists) ProtoReflect ¶ added in v2.2.5
func (x *LongLists) ProtoReflect() protoreflect.Message
type LongLongMap ¶ added in v2.2.5
type LongLongMap struct { MapField map[int64]int64 `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LongLongMap) Descriptor
deprecated
added in
v2.2.5
func (*LongLongMap) Descriptor() ([]byte, []int)
Deprecated: Use LongLongMap.ProtoReflect.Descriptor instead.
func (*LongLongMap) GetMapField ¶ added in v2.2.5
func (x *LongLongMap) GetMapField() map[int64]int64
func (*LongLongMap) ProtoMessage ¶ added in v2.2.5
func (*LongLongMap) ProtoMessage()
func (*LongLongMap) ProtoReflect ¶ added in v2.2.5
func (x *LongLongMap) ProtoReflect() protoreflect.Message
func (*LongLongMap) Reset ¶ added in v2.2.5
func (x *LongLongMap) Reset()
func (*LongLongMap) String ¶ added in v2.2.5
func (x *LongLongMap) String() string
type LongStringMap ¶ added in v2.2.5
type LongStringMap struct { MapField map[int64]string `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
long->others
func (*LongStringMap) Descriptor
deprecated
added in
v2.2.5
func (*LongStringMap) Descriptor() ([]byte, []int)
Deprecated: Use LongStringMap.ProtoReflect.Descriptor instead.
func (*LongStringMap) GetMapField ¶ added in v2.2.5
func (x *LongStringMap) GetMapField() map[int64]string
func (*LongStringMap) ProtoMessage ¶ added in v2.2.5
func (*LongStringMap) ProtoMessage()
func (*LongStringMap) ProtoReflect ¶ added in v2.2.5
func (x *LongStringMap) ProtoReflect() protoreflect.Message
func (*LongStringMap) Reset ¶ added in v2.2.5
func (x *LongStringMap) Reset()
func (*LongStringMap) String ¶ added in v2.2.5
func (x *LongStringMap) String() string
type PBFeature ¶
type PBFeature struct { // Types that are assignable to Value: // // *PBFeature_IntFeature // *PBFeature_LongFeature // *PBFeature_StringFeature // *PBFeature_FloatFeature // *PBFeature_DoubleFeature // *PBFeature_LongStringMap // *PBFeature_LongIntMap // *PBFeature_LongLongMap // *PBFeature_LongFloatMap // *PBFeature_LongDoubleMap // *PBFeature_StringStringMap // *PBFeature_StringIntMap // *PBFeature_StringLongMap // *PBFeature_StringFloatMap // *PBFeature_StringDoubleMap // *PBFeature_IntStringMap // *PBFeature_IntIntMap // *PBFeature_IntLongMap // *PBFeature_IntFloatMap // *PBFeature_IntDoubleMap // *PBFeature_IntList // *PBFeature_LongList // *PBFeature_StringList // *PBFeature_FloatList // *PBFeature_DoubleList // *PBFeature_IntLists // *PBFeature_LongLists // *PBFeature_StringLists // *PBFeature_FloatLists // *PBFeature_DoubleLists Value isPBFeature_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*PBFeature) Descriptor
deprecated
func (*PBFeature) GetDoubleFeature ¶ added in v2.2.5
func (*PBFeature) GetDoubleList ¶ added in v2.2.5
func (x *PBFeature) GetDoubleList() *DoubleList
func (*PBFeature) GetDoubleLists ¶ added in v2.2.5
func (x *PBFeature) GetDoubleLists() *DoubleLists
func (*PBFeature) GetFloatFeature ¶
func (*PBFeature) GetFloatList ¶ added in v2.2.5
func (*PBFeature) GetFloatLists ¶ added in v2.2.5
func (x *PBFeature) GetFloatLists() *FloatLists
func (*PBFeature) GetIntDoubleMap ¶ added in v2.2.5
func (x *PBFeature) GetIntDoubleMap() *IntDoubleMap
func (*PBFeature) GetIntFeature ¶
func (*PBFeature) GetIntFloatMap ¶ added in v2.2.5
func (x *PBFeature) GetIntFloatMap() *IntFloatMap
func (*PBFeature) GetIntIntMap ¶ added in v2.2.5
func (*PBFeature) GetIntList ¶ added in v2.2.5
func (*PBFeature) GetIntLists ¶ added in v2.2.5
func (*PBFeature) GetIntLongMap ¶ added in v2.2.5
func (x *PBFeature) GetIntLongMap() *IntLongMap
func (*PBFeature) GetIntStringMap ¶ added in v2.2.5
func (x *PBFeature) GetIntStringMap() *IntStringMap
func (*PBFeature) GetLongDoubleMap ¶ added in v2.2.5
func (x *PBFeature) GetLongDoubleMap() *LongDoubleMap
func (*PBFeature) GetLongFeature ¶
func (*PBFeature) GetLongFloatMap ¶ added in v2.2.5
func (x *PBFeature) GetLongFloatMap() *LongFloatMap
func (*PBFeature) GetLongIntMap ¶ added in v2.2.5
func (x *PBFeature) GetLongIntMap() *LongIntMap
func (*PBFeature) GetLongList ¶ added in v2.2.5
func (*PBFeature) GetLongLists ¶ added in v2.2.5
func (*PBFeature) GetLongLongMap ¶ added in v2.2.5
func (x *PBFeature) GetLongLongMap() *LongLongMap
func (*PBFeature) GetLongStringMap ¶ added in v2.2.5
func (x *PBFeature) GetLongStringMap() *LongStringMap
func (*PBFeature) GetStringDoubleMap ¶ added in v2.2.5
func (x *PBFeature) GetStringDoubleMap() *StringDoubleMap
func (*PBFeature) GetStringFeature ¶
func (*PBFeature) GetStringFloatMap ¶ added in v2.2.5
func (x *PBFeature) GetStringFloatMap() *StringFloatMap
func (*PBFeature) GetStringIntMap ¶ added in v2.2.5
func (x *PBFeature) GetStringIntMap() *StringIntMap
func (*PBFeature) GetStringList ¶ added in v2.2.5
func (x *PBFeature) GetStringList() *StringList
func (*PBFeature) GetStringLists ¶ added in v2.2.5
func (x *PBFeature) GetStringLists() *StringLists
func (*PBFeature) GetStringLongMap ¶ added in v2.2.5
func (x *PBFeature) GetStringLongMap() *StringLongMap
func (*PBFeature) GetStringStringMap ¶ added in v2.2.5
func (x *PBFeature) GetStringStringMap() *StringStringMap
func (*PBFeature) ProtoMessage ¶
func (*PBFeature) ProtoMessage()
func (*PBFeature) ProtoReflect ¶
func (x *PBFeature) ProtoReflect() protoreflect.Message
type PBFeature_DoubleFeature ¶ added in v2.2.5
type PBFeature_DoubleFeature struct {
DoubleFeature float64 `protobuf:"fixed64,5,opt,name=double_feature,json=doubleFeature,proto3,oneof"`
}
type PBFeature_DoubleList ¶ added in v2.2.5
type PBFeature_DoubleList struct {
DoubleList *DoubleList `protobuf:"bytes,25,opt,name=double_list,json=doubleList,proto3,oneof"`
}
type PBFeature_DoubleLists ¶ added in v2.2.5
type PBFeature_DoubleLists struct {
DoubleLists *DoubleLists `protobuf:"bytes,30,opt,name=double_lists,json=doubleLists,proto3,oneof"`
}
type PBFeature_FloatFeature ¶
type PBFeature_FloatFeature struct {
FloatFeature float32 `protobuf:"fixed32,4,opt,name=float_feature,json=floatFeature,proto3,oneof"`
}
type PBFeature_FloatList ¶ added in v2.2.5
type PBFeature_FloatList struct {
FloatList *FloatList `protobuf:"bytes,24,opt,name=float_list,json=floatList,proto3,oneof"`
}
type PBFeature_FloatLists ¶ added in v2.2.5
type PBFeature_FloatLists struct {
FloatLists *FloatLists `protobuf:"bytes,29,opt,name=float_lists,json=floatLists,proto3,oneof"`
}
type PBFeature_IntDoubleMap ¶ added in v2.2.5
type PBFeature_IntDoubleMap struct {
IntDoubleMap *IntDoubleMap `protobuf:"bytes,20,opt,name=int_double_map,json=intDoubleMap,proto3,oneof"`
}
type PBFeature_IntFeature ¶
type PBFeature_IntFeature struct {
IntFeature int32 `protobuf:"varint,1,opt,name=int_feature,json=intFeature,proto3,oneof"`
}
type PBFeature_IntFloatMap ¶ added in v2.2.5
type PBFeature_IntFloatMap struct {
IntFloatMap *IntFloatMap `protobuf:"bytes,19,opt,name=int_float_map,json=intFloatMap,proto3,oneof"`
}
type PBFeature_IntIntMap ¶ added in v2.2.5
type PBFeature_IntIntMap struct {
IntIntMap *IntIntMap `protobuf:"bytes,17,opt,name=int_int_map,json=intIntMap,proto3,oneof"`
}
type PBFeature_IntList ¶ added in v2.2.5
type PBFeature_IntList struct {
IntList *IntList `protobuf:"bytes,21,opt,name=int_list,json=intList,proto3,oneof"`
}
type PBFeature_IntLists ¶ added in v2.2.5
type PBFeature_IntLists struct {
IntLists *IntLists `protobuf:"bytes,26,opt,name=int_lists,json=intLists,proto3,oneof"`
}
type PBFeature_IntLongMap ¶ added in v2.2.5
type PBFeature_IntLongMap struct {
IntLongMap *IntLongMap `protobuf:"bytes,18,opt,name=int_long_map,json=intLongMap,proto3,oneof"`
}
type PBFeature_IntStringMap ¶ added in v2.2.5
type PBFeature_IntStringMap struct {
IntStringMap *IntStringMap `protobuf:"bytes,16,opt,name=int_string_map,json=intStringMap,proto3,oneof"`
}
type PBFeature_LongDoubleMap ¶ added in v2.2.5
type PBFeature_LongDoubleMap struct {
LongDoubleMap *LongDoubleMap `protobuf:"bytes,10,opt,name=long_double_map,json=longDoubleMap,proto3,oneof"`
}
type PBFeature_LongFeature ¶
type PBFeature_LongFeature struct {
LongFeature int64 `protobuf:"varint,2,opt,name=long_feature,json=longFeature,proto3,oneof"`
}
type PBFeature_LongFloatMap ¶ added in v2.2.5
type PBFeature_LongFloatMap struct {
LongFloatMap *LongFloatMap `protobuf:"bytes,9,opt,name=long_float_map,json=longFloatMap,proto3,oneof"`
}
type PBFeature_LongIntMap ¶ added in v2.2.5
type PBFeature_LongIntMap struct {
LongIntMap *LongIntMap `protobuf:"bytes,7,opt,name=long_int_map,json=longIntMap,proto3,oneof"`
}
type PBFeature_LongList ¶ added in v2.2.5
type PBFeature_LongList struct {
LongList *LongList `protobuf:"bytes,22,opt,name=long_list,json=longList,proto3,oneof"`
}
type PBFeature_LongLists ¶ added in v2.2.5
type PBFeature_LongLists struct {
LongLists *LongLists `protobuf:"bytes,27,opt,name=long_lists,json=longLists,proto3,oneof"`
}
type PBFeature_LongLongMap ¶ added in v2.2.5
type PBFeature_LongLongMap struct {
LongLongMap *LongLongMap `protobuf:"bytes,8,opt,name=long_long_map,json=longLongMap,proto3,oneof"`
}
type PBFeature_LongStringMap ¶ added in v2.2.5
type PBFeature_LongStringMap struct {
LongStringMap *LongStringMap `protobuf:"bytes,6,opt,name=long_string_map,json=longStringMap,proto3,oneof"`
}
type PBFeature_StringDoubleMap ¶ added in v2.2.5
type PBFeature_StringDoubleMap struct {
StringDoubleMap *StringDoubleMap `protobuf:"bytes,15,opt,name=string_double_map,json=stringDoubleMap,proto3,oneof"`
}
type PBFeature_StringFeature ¶
type PBFeature_StringFeature struct {
StringFeature string `protobuf:"bytes,3,opt,name=string_feature,json=stringFeature,proto3,oneof"`
}
type PBFeature_StringFloatMap ¶ added in v2.2.5
type PBFeature_StringFloatMap struct {
StringFloatMap *StringFloatMap `protobuf:"bytes,14,opt,name=string_float_map,json=stringFloatMap,proto3,oneof"`
}
type PBFeature_StringIntMap ¶ added in v2.2.5
type PBFeature_StringIntMap struct {
StringIntMap *StringIntMap `protobuf:"bytes,12,opt,name=string_int_map,json=stringIntMap,proto3,oneof"`
}
type PBFeature_StringList ¶ added in v2.2.5
type PBFeature_StringList struct {
StringList *StringList `protobuf:"bytes,23,opt,name=string_list,json=stringList,proto3,oneof"`
}
type PBFeature_StringLists ¶ added in v2.2.5
type PBFeature_StringLists struct {
StringLists *StringLists `protobuf:"bytes,28,opt,name=string_lists,json=stringLists,proto3,oneof"`
}
type PBFeature_StringLongMap ¶ added in v2.2.5
type PBFeature_StringLongMap struct {
StringLongMap *StringLongMap `protobuf:"bytes,13,opt,name=string_long_map,json=stringLongMap,proto3,oneof"`
}
type PBFeature_StringStringMap ¶ added in v2.2.5
type PBFeature_StringStringMap struct {
StringStringMap *StringStringMap `protobuf:"bytes,11,opt,name=string_string_map,json=stringStringMap,proto3,oneof"`
}
type PBRequest ¶
type PBRequest struct { // debug mode DebugLevel int32 `protobuf:"varint,1,opt,name=debug_level,json=debugLevel,proto3" json:"debug_level,omitempty"` // user features UserFeatures map[string]*PBFeature `` /* 185-byte string literal not displayed */ // item ids ItemIds []string `protobuf:"bytes,3,rep,name=item_ids,json=itemIds,proto3" json:"item_ids,omitempty"` // context features for each item ContextFeatures map[string]*ContextFeatures `` /* 194-byte string literal not displayed */ // user realtime embedding return num FaissNeighNum int32 `protobuf:"varint,5,opt,name=faiss_neigh_num,json=faissNeighNum,proto3" json:"faiss_neigh_num,omitempty"` // contains filtered or unexported fields }
PBRequest specifies the request for aggregator
func (*PBRequest) Descriptor
deprecated
func (*PBRequest) GetContextFeatures ¶
func (x *PBRequest) GetContextFeatures() map[string]*ContextFeatures
func (*PBRequest) GetDebugLevel ¶
func (*PBRequest) GetFaissNeighNum ¶
func (*PBRequest) GetItemIds ¶
func (*PBRequest) GetUserFeatures ¶
func (*PBRequest) ProtoMessage ¶
func (*PBRequest) ProtoMessage()
func (*PBRequest) ProtoReflect ¶
func (x *PBRequest) ProtoReflect() protoreflect.Message
type PBResponse ¶
type PBResponse struct { // results Results map[string]*Results `` /* 155-byte string literal not displayed */ // item features ItemFeatures map[string]string `` /* 185-byte string literal not displayed */ // generate features GenerateFeatures map[string]string `` /* 197-byte string literal not displayed */ // context features ContextFeatures map[string]*ContextFeatures `` /* 194-byte string literal not displayed */ ErrorMsg string `protobuf:"bytes,5,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` StatusCode StatusCode `protobuf:"varint,6,opt,name=status_code,json=statusCode,proto3,enum=easyrec.StatusCode" json:"status_code,omitempty"` // item ids ItemIds []string `protobuf:"bytes,7,rep,name=item_ids,json=itemIds,proto3" json:"item_ids,omitempty"` Outputs []string `protobuf:"bytes,8,rep,name=outputs,proto3" json:"outputs,omitempty"` // all fg input features RawFeatures map[string]string `` /* 182-byte string literal not displayed */ TfOutputs map[string]*ArrayProto `` /* 177-byte string literal not displayed */ // contains filtered or unexported fields }
PBResponse specifies the response for aggregator
func (*PBResponse) Descriptor
deprecated
func (*PBResponse) Descriptor() ([]byte, []int)
Deprecated: Use PBResponse.ProtoReflect.Descriptor instead.
func (*PBResponse) GetContextFeatures ¶
func (x *PBResponse) GetContextFeatures() map[string]*ContextFeatures
func (*PBResponse) GetErrorMsg ¶
func (x *PBResponse) GetErrorMsg() string
func (*PBResponse) GetGenerateFeatures ¶
func (x *PBResponse) GetGenerateFeatures() map[string]string
func (*PBResponse) GetItemFeatures ¶
func (x *PBResponse) GetItemFeatures() map[string]string
func (*PBResponse) GetItemIds ¶
func (x *PBResponse) GetItemIds() []string
func (*PBResponse) GetOutputs ¶
func (x *PBResponse) GetOutputs() []string
func (*PBResponse) GetRawFeatures ¶
func (x *PBResponse) GetRawFeatures() map[string]string
func (*PBResponse) GetResults ¶
func (x *PBResponse) GetResults() map[string]*Results
func (*PBResponse) GetStatusCode ¶
func (x *PBResponse) GetStatusCode() StatusCode
func (*PBResponse) GetTfOutputs ¶
func (x *PBResponse) GetTfOutputs() map[string]*ArrayProto
func (*PBResponse) ProtoMessage ¶
func (*PBResponse) ProtoMessage()
func (*PBResponse) ProtoReflect ¶
func (x *PBResponse) ProtoReflect() protoreflect.Message
func (*PBResponse) Reset ¶
func (x *PBResponse) Reset()
func (*PBResponse) String ¶
func (x *PBResponse) String() string
type Results ¶
type Results struct { Scores []float64 `protobuf:"fixed64,1,rep,packed,name=scores,proto3" json:"scores,omitempty"` // contains filtered or unexported fields }
return results
func (*Results) Descriptor
deprecated
func (*Results) ProtoMessage ¶
func (*Results) ProtoMessage()
func (*Results) ProtoReflect ¶
func (x *Results) ProtoReflect() protoreflect.Message
type StatusCode ¶
type StatusCode int32
const ( StatusCode_OK StatusCode = 0 StatusCode_INPUT_EMPTY StatusCode = 1 StatusCode_EXCEPTION StatusCode = 2 )
func (StatusCode) Descriptor ¶
func (StatusCode) Descriptor() protoreflect.EnumDescriptor
func (StatusCode) Enum ¶
func (x StatusCode) Enum() *StatusCode
func (StatusCode) EnumDescriptor
deprecated
func (StatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusCode.Descriptor instead.
func (StatusCode) Number ¶
func (x StatusCode) Number() protoreflect.EnumNumber
func (StatusCode) String ¶
func (x StatusCode) String() string
func (StatusCode) Type ¶
func (StatusCode) Type() protoreflect.EnumType
type StringDoubleMap ¶ added in v2.2.5
type StringDoubleMap struct { MapField map[string]float64 `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*StringDoubleMap) Descriptor
deprecated
added in
v2.2.5
func (*StringDoubleMap) Descriptor() ([]byte, []int)
Deprecated: Use StringDoubleMap.ProtoReflect.Descriptor instead.
func (*StringDoubleMap) GetMapField ¶ added in v2.2.5
func (x *StringDoubleMap) GetMapField() map[string]float64
func (*StringDoubleMap) ProtoMessage ¶ added in v2.2.5
func (*StringDoubleMap) ProtoMessage()
func (*StringDoubleMap) ProtoReflect ¶ added in v2.2.5
func (x *StringDoubleMap) ProtoReflect() protoreflect.Message
func (*StringDoubleMap) Reset ¶ added in v2.2.5
func (x *StringDoubleMap) Reset()
func (*StringDoubleMap) String ¶ added in v2.2.5
func (x *StringDoubleMap) String() string
type StringFloatMap ¶ added in v2.2.5
type StringFloatMap struct { MapField map[string]float32 `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*StringFloatMap) Descriptor
deprecated
added in
v2.2.5
func (*StringFloatMap) Descriptor() ([]byte, []int)
Deprecated: Use StringFloatMap.ProtoReflect.Descriptor instead.
func (*StringFloatMap) GetMapField ¶ added in v2.2.5
func (x *StringFloatMap) GetMapField() map[string]float32
func (*StringFloatMap) ProtoMessage ¶ added in v2.2.5
func (*StringFloatMap) ProtoMessage()
func (*StringFloatMap) ProtoReflect ¶ added in v2.2.5
func (x *StringFloatMap) ProtoReflect() protoreflect.Message
func (*StringFloatMap) Reset ¶ added in v2.2.5
func (x *StringFloatMap) Reset()
func (*StringFloatMap) String ¶ added in v2.2.5
func (x *StringFloatMap) String() string
type StringIntMap ¶ added in v2.2.5
type StringIntMap struct { MapField map[string]int32 `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*StringIntMap) Descriptor
deprecated
added in
v2.2.5
func (*StringIntMap) Descriptor() ([]byte, []int)
Deprecated: Use StringIntMap.ProtoReflect.Descriptor instead.
func (*StringIntMap) GetMapField ¶ added in v2.2.5
func (x *StringIntMap) GetMapField() map[string]int32
func (*StringIntMap) ProtoMessage ¶ added in v2.2.5
func (*StringIntMap) ProtoMessage()
func (*StringIntMap) ProtoReflect ¶ added in v2.2.5
func (x *StringIntMap) ProtoReflect() protoreflect.Message
func (*StringIntMap) Reset ¶ added in v2.2.5
func (x *StringIntMap) Reset()
func (*StringIntMap) String ¶ added in v2.2.5
func (x *StringIntMap) String() string
type StringList ¶ added in v2.2.5
type StringList struct { Features []string `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*StringList) Descriptor
deprecated
added in
v2.2.5
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetFeatures ¶ added in v2.2.5
func (x *StringList) GetFeatures() []string
func (*StringList) ProtoMessage ¶ added in v2.2.5
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶ added in v2.2.5
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶ added in v2.2.5
func (x *StringList) Reset()
func (*StringList) String ¶ added in v2.2.5
func (x *StringList) String() string
type StringLists ¶ added in v2.2.5
type StringLists struct { Lists []*StringList `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` // contains filtered or unexported fields }
func (*StringLists) Descriptor
deprecated
added in
v2.2.5
func (*StringLists) Descriptor() ([]byte, []int)
Deprecated: Use StringLists.ProtoReflect.Descriptor instead.
func (*StringLists) GetLists ¶ added in v2.2.5
func (x *StringLists) GetLists() []*StringList
func (*StringLists) ProtoMessage ¶ added in v2.2.5
func (*StringLists) ProtoMessage()
func (*StringLists) ProtoReflect ¶ added in v2.2.5
func (x *StringLists) ProtoReflect() protoreflect.Message
func (*StringLists) Reset ¶ added in v2.2.5
func (x *StringLists) Reset()
func (*StringLists) String ¶ added in v2.2.5
func (x *StringLists) String() string
type StringLongMap ¶ added in v2.2.5
type StringLongMap struct { MapField map[string]int64 `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*StringLongMap) Descriptor
deprecated
added in
v2.2.5
func (*StringLongMap) Descriptor() ([]byte, []int)
Deprecated: Use StringLongMap.ProtoReflect.Descriptor instead.
func (*StringLongMap) GetMapField ¶ added in v2.2.5
func (x *StringLongMap) GetMapField() map[string]int64
func (*StringLongMap) ProtoMessage ¶ added in v2.2.5
func (*StringLongMap) ProtoMessage()
func (*StringLongMap) ProtoReflect ¶ added in v2.2.5
func (x *StringLongMap) ProtoReflect() protoreflect.Message
func (*StringLongMap) Reset ¶ added in v2.2.5
func (x *StringLongMap) Reset()
func (*StringLongMap) String ¶ added in v2.2.5
func (x *StringLongMap) String() string
type StringStringMap ¶ added in v2.2.5
type StringStringMap struct { MapField map[string]string `` /* 173-byte string literal not displayed */ // contains filtered or unexported fields }
string->others
func (*StringStringMap) Descriptor
deprecated
added in
v2.2.5
func (*StringStringMap) Descriptor() ([]byte, []int)
Deprecated: Use StringStringMap.ProtoReflect.Descriptor instead.
func (*StringStringMap) GetMapField ¶ added in v2.2.5
func (x *StringStringMap) GetMapField() map[string]string
func (*StringStringMap) ProtoMessage ¶ added in v2.2.5
func (*StringStringMap) ProtoMessage()
func (*StringStringMap) ProtoReflect ¶ added in v2.2.5
func (x *StringStringMap) ProtoReflect() protoreflect.Message
func (*StringStringMap) Reset ¶ added in v2.2.5
func (x *StringStringMap) Reset()
func (*StringStringMap) String ¶ added in v2.2.5
func (x *StringStringMap) String() string
type TorchRecPBResponse ¶ added in v2.1.6
type TorchRecPBResponse struct { // torch output tensors MapOutputs map[string]*ArrayProto `` /* 179-byte string literal not displayed */ // fg ouput features GenerateFeatures map[string]string `` /* 197-byte string literal not displayed */ // all fg input features RawFeatures map[string]string `` /* 182-byte string literal not displayed */ // item ids ItemIds []string `protobuf:"bytes,4,rep,name=item_ids,json=itemIds,proto3" json:"item_ids,omitempty"` // contains filtered or unexported fields }
TorchRecPBResponse specifies the response for aggregator
func (*TorchRecPBResponse) Descriptor
deprecated
added in
v2.1.6
func (*TorchRecPBResponse) Descriptor() ([]byte, []int)
Deprecated: Use TorchRecPBResponse.ProtoReflect.Descriptor instead.
func (*TorchRecPBResponse) GetGenerateFeatures ¶ added in v2.1.6
func (x *TorchRecPBResponse) GetGenerateFeatures() map[string]string
func (*TorchRecPBResponse) GetItemIds ¶ added in v2.1.6
func (x *TorchRecPBResponse) GetItemIds() []string
func (*TorchRecPBResponse) GetMapOutputs ¶ added in v2.1.6
func (x *TorchRecPBResponse) GetMapOutputs() map[string]*ArrayProto
func (*TorchRecPBResponse) GetRawFeatures ¶ added in v2.1.6
func (x *TorchRecPBResponse) GetRawFeatures() map[string]string
func (*TorchRecPBResponse) ProtoMessage ¶ added in v2.1.6
func (*TorchRecPBResponse) ProtoMessage()
func (*TorchRecPBResponse) ProtoReflect ¶ added in v2.1.6
func (x *TorchRecPBResponse) ProtoReflect() protoreflect.Message
func (*TorchRecPBResponse) Reset ¶ added in v2.1.6
func (x *TorchRecPBResponse) Reset()
func (*TorchRecPBResponse) String ¶ added in v2.1.6
func (x *TorchRecPBResponse) String() string