sample

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFloat32ByKey added in v0.0.4

func GetFloat32ByKey(features *Features, key string) float32

func GetFloat32ListByKey added in v0.0.4

func GetFloat32ListByKey(features *Features, key string) []float32

func GetInt64ByKey added in v0.0.4

func GetInt64ByKey(features *Features, key string) int64

func GetInt64ListByKey added in v0.0.4

func GetInt64ListByKey(features *Features, key string) []int64

func GetStringByKey added in v0.0.4

func GetStringByKey(features *Features, key string) string

func GetStringListByKey added in v0.0.4

func GetStringListByKey(features *Features, key string) []string

Types

type BytesList

type BytesList struct {
	Value                [][]byte `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Containers to hold repeated fundamental values.

func (*BytesList) Descriptor

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

func (*BytesList) GetValue

func (m *BytesList) GetValue() [][]byte

func (*BytesList) ProtoMessage

func (*BytesList) ProtoMessage()

func (*BytesList) Reset

func (m *BytesList) Reset()

func (*BytesList) String

func (m *BytesList) String() string

func (*BytesList) XXX_DiscardUnknown

func (m *BytesList) XXX_DiscardUnknown()

func (*BytesList) XXX_Marshal

func (m *BytesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BytesList) XXX_Merge

func (m *BytesList) XXX_Merge(src proto.Message)

func (*BytesList) XXX_Size

func (m *BytesList) XXX_Size() int

func (*BytesList) XXX_Unmarshal

func (m *BytesList) XXX_Unmarshal(b []byte) error

type Feature

type Feature struct {
	// Each feature can be exactly one kind.
	//
	// Types that are valid to be assigned to Kind:
	//	*Feature_BytesList
	//	*Feature_FloatList
	//	*Feature_Int64List
	Kind                 isFeature_Kind `protobuf_oneof:"kind"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Containers for non-sequential data.

func (*Feature) Descriptor

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

func (*Feature) GetBytesList

func (m *Feature) GetBytesList() *BytesList

func (*Feature) GetFloatList

func (m *Feature) GetFloatList() *FloatList

func (*Feature) GetInt64List

func (m *Feature) GetInt64List() *Int64List

func (*Feature) GetKind

func (m *Feature) GetKind() isFeature_Kind

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) Reset

func (m *Feature) Reset()

func (*Feature) String

func (m *Feature) String() string

func (*Feature) XXX_DiscardUnknown

func (m *Feature) XXX_DiscardUnknown()

func (*Feature) XXX_Marshal

func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Feature) XXX_Merge

func (m *Feature) XXX_Merge(src proto.Message)

func (*Feature) XXX_OneofWrappers

func (*Feature) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Feature) XXX_Size

func (m *Feature) XXX_Size() int

func (*Feature) XXX_Unmarshal

func (m *Feature) XXX_Unmarshal(b []byte) error

type FeatureList

type FeatureList struct {
	Feature              []*Feature `protobuf:"bytes,1,rep,name=feature,proto3" json:"feature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Containers for sequential data.

A FeatureList contains lists of Features. These may hold zero or more Feature values.

FeatureLists are organized into categories by name. The FeatureLists message contains the mapping from name to FeatureList.

func (*FeatureList) Descriptor

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

func (*FeatureList) GetFeature

func (m *FeatureList) GetFeature() []*Feature

func (*FeatureList) ProtoMessage

func (*FeatureList) ProtoMessage()

func (*FeatureList) Reset

func (m *FeatureList) Reset()

func (*FeatureList) String

func (m *FeatureList) String() string

func (*FeatureList) XXX_DiscardUnknown

func (m *FeatureList) XXX_DiscardUnknown()

func (*FeatureList) XXX_Marshal

func (m *FeatureList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeatureList) XXX_Merge

func (m *FeatureList) XXX_Merge(src proto.Message)

func (*FeatureList) XXX_Size

func (m *FeatureList) XXX_Size() int

func (*FeatureList) XXX_Unmarshal

func (m *FeatureList) XXX_Unmarshal(b []byte) error

type FeatureLists

type FeatureLists struct {
	// Map from feature name to feature list.
	FeatureList          map[string]*FeatureList `` /* 182-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*FeatureLists) Descriptor

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

func (*FeatureLists) GetFeatureList

func (m *FeatureLists) GetFeatureList() map[string]*FeatureList

func (*FeatureLists) ProtoMessage

func (*FeatureLists) ProtoMessage()

func (*FeatureLists) Reset

func (m *FeatureLists) Reset()

func (*FeatureLists) String

func (m *FeatureLists) String() string

func (*FeatureLists) XXX_DiscardUnknown

func (m *FeatureLists) XXX_DiscardUnknown()

func (*FeatureLists) XXX_Marshal

func (m *FeatureLists) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeatureLists) XXX_Merge

func (m *FeatureLists) XXX_Merge(src proto.Message)

func (*FeatureLists) XXX_Size

func (m *FeatureLists) XXX_Size() int

func (*FeatureLists) XXX_Unmarshal

func (m *FeatureLists) XXX_Unmarshal(b []byte) error

type Feature_BytesList

type Feature_BytesList struct {
	BytesList *BytesList `protobuf:"bytes,1,opt,name=bytes_list,json=bytesList,proto3,oneof"`
}

type Feature_FloatList

type Feature_FloatList struct {
	FloatList *FloatList `protobuf:"bytes,2,opt,name=float_list,json=floatList,proto3,oneof"`
}

type Feature_Int64List

type Feature_Int64List struct {
	Int64List *Int64List `protobuf:"bytes,3,opt,name=int64_list,json=int64List,proto3,oneof"`
}

type Features

type Features struct {
	// Map from feature name to feature.
	Feature              map[string]*Feature `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*Features) Descriptor

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

func (*Features) GetFeature

func (m *Features) GetFeature() map[string]*Feature

func (*Features) ProtoMessage

func (*Features) ProtoMessage()

func (*Features) Reset

func (m *Features) Reset()

func (*Features) String

func (m *Features) String() string

func (*Features) XXX_DiscardUnknown

func (m *Features) XXX_DiscardUnknown()

func (*Features) XXX_Marshal

func (m *Features) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features) XXX_Merge

func (m *Features) XXX_Merge(src proto.Message)

func (*Features) XXX_Size

func (m *Features) XXX_Size() int

func (*Features) XXX_Unmarshal

func (m *Features) XXX_Unmarshal(b []byte) error

type FloatList

type FloatList struct {
	Value                []float32 `protobuf:"fixed32,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*FloatList) Descriptor

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

func (*FloatList) GetValue

func (m *FloatList) GetValue() []float32

func (*FloatList) ProtoMessage

func (*FloatList) ProtoMessage()

func (*FloatList) Reset

func (m *FloatList) Reset()

func (*FloatList) String

func (m *FloatList) String() string

func (*FloatList) XXX_DiscardUnknown

func (m *FloatList) XXX_DiscardUnknown()

func (*FloatList) XXX_Marshal

func (m *FloatList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FloatList) XXX_Merge

func (m *FloatList) XXX_Merge(src proto.Message)

func (*FloatList) XXX_Size

func (m *FloatList) XXX_Size() int

func (*FloatList) XXX_Unmarshal

func (m *FloatList) XXX_Unmarshal(b []byte) error

type Int64List

type Int64List struct {
	Value                []int64  `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Int64List) Descriptor

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

func (*Int64List) GetValue

func (m *Int64List) GetValue() []int64

func (*Int64List) ProtoMessage

func (*Int64List) ProtoMessage()

func (*Int64List) Reset

func (m *Int64List) Reset()

func (*Int64List) String

func (m *Int64List) String() string

func (*Int64List) XXX_DiscardUnknown

func (m *Int64List) XXX_DiscardUnknown()

func (*Int64List) XXX_Marshal

func (m *Int64List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int64List) XXX_Merge

func (m *Int64List) XXX_Merge(src proto.Message)

func (*Int64List) XXX_Size

func (m *Int64List) XXX_Size() int

func (*Int64List) XXX_Unmarshal

func (m *Int64List) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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