pb

package
v0.4.6-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrimitiveType_name = map[int32]string{
		0:  "UNSPECIFIED_TYPE",
		1:  "INT_128",
		2:  "INT_64",
		3:  "INT_32",
		4:  "INT_16",
		5:  "INT_8",
		6:  "UINT_128",
		7:  "UINT_64",
		8:  "UINT_32",
		9:  "UINT_16",
		10: "UINT_8",
		11: "FLOAT_64",
		12: "FLOAT_32",
		13: "FLOAT_16",
		14: "CHAR",
		15: "BOOL",
		16: "STRING",
		17: "SYMBOL",
		18: "VARIABLE_SIZE_STRING",
	}
	PrimitiveType_value = map[string]int32{
		"UNSPECIFIED_TYPE":     0,
		"INT_128":              1,
		"INT_64":               2,
		"INT_32":               3,
		"INT_16":               4,
		"INT_8":                5,
		"UINT_128":             6,
		"UINT_64":              7,
		"UINT_32":              8,
		"UINT_16":              9,
		"UINT_8":               10,
		"FLOAT_64":             11,
		"FLOAT_32":             12,
		"FLOAT_16":             13,
		"CHAR":                 14,
		"BOOL":                 15,
		"STRING":               16,
		"SYMBOL":               17,
		"VARIABLE_SIZE_STRING": 18,
	}
)

Enum value maps for PrimitiveType.

View Source
var (
	Kind_name = map[int32]string{
		0: "UNSPECIFIED_KIND",
		1: "PRIMITIVE_TYPE",
		2: "VALUE_TYPE",
		3: "CONSTANT_TYPE",
	}
	Kind_value = map[string]int32{
		"UNSPECIFIED_KIND": 0,
		"PRIMITIVE_TYPE":   1,
		"VALUE_TYPE":       2,
		"CONSTANT_TYPE":    3,
	}
)

Enum value maps for Kind.

View Source
var File_message_proto protoreflect.FileDescriptor
View Source
var File_schema_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConstantType

type ConstantType struct {

	// Required
	// This is the type of the constant and describes whatever is in the RelTuple value
	RelType *RelType `protobuf:"bytes,1,opt,name=rel_type,json=relType,proto3" json:"rel_type,omitempty"`
	// The tuple contains only the values that are not constant.
	// E.g. for decimal[64](3.14) only 3.14 is part of the data.
	// Required
	//
	// Tuple because of e.g. specialize on Uniform distribution
	Value *RelTuple `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Every value can be used as a type.

func (*ConstantType) Descriptor deprecated

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

Deprecated: Use ConstantType.ProtoReflect.Descriptor instead.

func (*ConstantType) GetRelType

func (x *ConstantType) GetRelType() *RelType

func (*ConstantType) GetValue

func (x *ConstantType) GetValue() *RelTuple

func (*ConstantType) ProtoMessage

func (*ConstantType) ProtoMessage()

func (*ConstantType) ProtoReflect

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

func (*ConstantType) Reset

func (x *ConstantType) Reset()

func (*ConstantType) String

func (x *ConstantType) String() string

type Kind

type Kind int32
const (
	// https://developers.google.com/protocol-buffers/docs/style#enums
	Kind_UNSPECIFIED_KIND Kind = 0
	Kind_PRIMITIVE_TYPE   Kind = 1
	Kind_VALUE_TYPE       Kind = 2
	Kind_CONSTANT_TYPE    Kind = 3
)

func (Kind) Descriptor

func (Kind) Descriptor() protoreflect.EnumDescriptor

func (Kind) Enum

func (x Kind) Enum() *Kind

func (Kind) EnumDescriptor deprecated

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

Deprecated: Use Kind.Descriptor instead.

func (Kind) Number

func (x Kind) Number() protoreflect.EnumNumber

func (Kind) String

func (x Kind) String() string

func (Kind) Type

func (Kind) Type() protoreflect.EnumType

type MetadataInfo

type MetadataInfo struct {
	Relations []*RelationMetadata `protobuf:"bytes,1,rep,name=relations,proto3" json:"relations,omitempty"`
	// contains filtered or unexported fields
}

Describes metadata of a set of relations.

func (*MetadataInfo) Descriptor deprecated

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

Deprecated: Use MetadataInfo.ProtoReflect.Descriptor instead.

func (*MetadataInfo) GetRelations

func (x *MetadataInfo) GetRelations() []*RelationMetadata

func (*MetadataInfo) ProtoMessage

func (*MetadataInfo) ProtoMessage()

func (*MetadataInfo) ProtoReflect

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

func (*MetadataInfo) Reset

func (x *MetadataInfo) Reset()

func (*MetadataInfo) String

func (x *MetadataInfo) String() string

type PrimitiveType

type PrimitiveType int32
const (
	// https://developers.google.com/protocol-buffers/docs/style#enums
	PrimitiveType_UNSPECIFIED_TYPE PrimitiveType = 0
	PrimitiveType_INT_128          PrimitiveType = 1 // Not present in protobuf, needs two 64-bit ints
	PrimitiveType_INT_64           PrimitiveType = 2
	PrimitiveType_INT_32           PrimitiveType = 3
	PrimitiveType_INT_16           PrimitiveType = 4 // Not present in protobuf
	PrimitiveType_INT_8            PrimitiveType = 5 // Not present in protobuf
	PrimitiveType_UINT_128         PrimitiveType = 6 // Not present in protobuf, needs two 64-bit ints
	PrimitiveType_UINT_64          PrimitiveType = 7
	PrimitiveType_UINT_32          PrimitiveType = 8
	PrimitiveType_UINT_16          PrimitiveType = 9  // Not present in protobuf
	PrimitiveType_UINT_8           PrimitiveType = 10 // Not present in protobuf
	PrimitiveType_FLOAT_64         PrimitiveType = 11
	PrimitiveType_FLOAT_32         PrimitiveType = 12
	PrimitiveType_FLOAT_16         PrimitiveType = 13 // Not present in protobuf
	PrimitiveType_CHAR             PrimitiveType = 14
	PrimitiveType_BOOL             PrimitiveType = 15
	// these share the string_val field
	PrimitiveType_STRING PrimitiveType = 16 // In protobuf this is really bytes.
	PrimitiveType_SYMBOL PrimitiveType = 17 // In protobuf this is really bytes.
	// VariableSizeStrings are not supported as PrimitiveValues, though the type can
	// show up in (internal) type signatures.
	PrimitiveType_VARIABLE_SIZE_STRING PrimitiveType = 18
)

func (PrimitiveType) Descriptor

func (PrimitiveType) Enum

func (x PrimitiveType) Enum() *PrimitiveType

func (PrimitiveType) EnumDescriptor deprecated

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

Deprecated: Use PrimitiveType.Descriptor instead.

func (PrimitiveType) Number

func (PrimitiveType) String

func (x PrimitiveType) String() string

func (PrimitiveType) Type

type PrimitiveValue

type PrimitiveValue struct {

	// Type tag indicates which value field is set
	Tag PrimitiveType `protobuf:"varint,1,opt,name=tag,proto3,enum=relationalai.protocol.PrimitiveType" json:"tag,omitempty"`
	// Types that are assignable to Value:
	//	*PrimitiveValue_Int128Val
	//	*PrimitiveValue_Int64Val
	//	*PrimitiveValue_Int32Val
	//	*PrimitiveValue_Int16Val
	//	*PrimitiveValue_Int8Val
	//	*PrimitiveValue_Uint128Val
	//	*PrimitiveValue_Uint64Val
	//	*PrimitiveValue_Uint32Val
	//	*PrimitiveValue_Uint16Val
	//	*PrimitiveValue_Uint8Val
	//	*PrimitiveValue_Float64Val
	//	*PrimitiveValue_Float32Val
	//	*PrimitiveValue_Float16Val
	//	*PrimitiveValue_CharVal
	//	*PrimitiveValue_BoolVal
	//	*PrimitiveValue_StringVal
	Value isPrimitiveValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*PrimitiveValue) Descriptor deprecated

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

Deprecated: Use PrimitiveValue.ProtoReflect.Descriptor instead.

func (*PrimitiveValue) GetBoolVal

func (x *PrimitiveValue) GetBoolVal() bool

func (*PrimitiveValue) GetCharVal

func (x *PrimitiveValue) GetCharVal() uint32

func (*PrimitiveValue) GetFloat16Val

func (x *PrimitiveValue) GetFloat16Val() float32

func (*PrimitiveValue) GetFloat32Val

func (x *PrimitiveValue) GetFloat32Val() float32

func (*PrimitiveValue) GetFloat64Val

func (x *PrimitiveValue) GetFloat64Val() float64

func (*PrimitiveValue) GetInt128Val

func (x *PrimitiveValue) GetInt128Val() *RelInt128

func (*PrimitiveValue) GetInt16Val

func (x *PrimitiveValue) GetInt16Val() int32

func (*PrimitiveValue) GetInt32Val

func (x *PrimitiveValue) GetInt32Val() int32

func (*PrimitiveValue) GetInt64Val

func (x *PrimitiveValue) GetInt64Val() int64

func (*PrimitiveValue) GetInt8Val

func (x *PrimitiveValue) GetInt8Val() int32

func (*PrimitiveValue) GetStringVal

func (x *PrimitiveValue) GetStringVal() []byte

func (*PrimitiveValue) GetTag

func (x *PrimitiveValue) GetTag() PrimitiveType

func (*PrimitiveValue) GetUint128Val

func (x *PrimitiveValue) GetUint128Val() *RelUInt128

func (*PrimitiveValue) GetUint16Val

func (x *PrimitiveValue) GetUint16Val() uint32

func (*PrimitiveValue) GetUint32Val

func (x *PrimitiveValue) GetUint32Val() uint32

func (*PrimitiveValue) GetUint64Val

func (x *PrimitiveValue) GetUint64Val() uint64

func (*PrimitiveValue) GetUint8Val

func (x *PrimitiveValue) GetUint8Val() uint32

func (*PrimitiveValue) GetValue

func (m *PrimitiveValue) GetValue() isPrimitiveValue_Value

func (*PrimitiveValue) ProtoMessage

func (*PrimitiveValue) ProtoMessage()

func (*PrimitiveValue) ProtoReflect

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

func (*PrimitiveValue) Reset

func (x *PrimitiveValue) Reset()

func (*PrimitiveValue) String

func (x *PrimitiveValue) String() string

type PrimitiveValue_BoolVal

type PrimitiveValue_BoolVal struct {
	BoolVal bool `protobuf:"varint,16,opt,name=bool_val,json=boolVal,proto3,oneof"`
}

type PrimitiveValue_CharVal

type PrimitiveValue_CharVal struct {
	CharVal uint32 `protobuf:"varint,15,opt,name=char_val,json=charVal,proto3,oneof"`
}

type PrimitiveValue_Float16Val

type PrimitiveValue_Float16Val struct {
	Float16Val float32 `protobuf:"fixed32,14,opt,name=float16_val,json=float16Val,proto3,oneof"` // Not present in protobuf
}

type PrimitiveValue_Float32Val

type PrimitiveValue_Float32Val struct {
	Float32Val float32 `protobuf:"fixed32,13,opt,name=float32_val,json=float32Val,proto3,oneof"`
}

type PrimitiveValue_Float64Val

type PrimitiveValue_Float64Val struct {
	Float64Val float64 `protobuf:"fixed64,12,opt,name=float64_val,json=float64Val,proto3,oneof"`
}

type PrimitiveValue_Int128Val

type PrimitiveValue_Int128Val struct {
	Int128Val *RelInt128 `protobuf:"bytes,2,opt,name=int128_val,json=int128Val,proto3,oneof"` // Not present in protobuf
}

type PrimitiveValue_Int16Val

type PrimitiveValue_Int16Val struct {
	Int16Val int32 `protobuf:"varint,5,opt,name=int16_val,json=int16Val,proto3,oneof"` // Not present in protobuf; int32
}

type PrimitiveValue_Int32Val

type PrimitiveValue_Int32Val struct {
	Int32Val int32 `protobuf:"varint,4,opt,name=int32_val,json=int32Val,proto3,oneof"`
}

type PrimitiveValue_Int64Val

type PrimitiveValue_Int64Val struct {
	Int64Val int64 `protobuf:"varint,3,opt,name=int64_val,json=int64Val,proto3,oneof"`
}

type PrimitiveValue_Int8Val

type PrimitiveValue_Int8Val struct {
	Int8Val int32 `protobuf:"varint,6,opt,name=int8_val,json=int8Val,proto3,oneof"` // Not present in protobuf; int32
}

type PrimitiveValue_StringVal

type PrimitiveValue_StringVal struct {
	// We use bytes for strings because proto has an encoding
	// requirement for the proto3::string type.
	StringVal []byte `protobuf:"bytes,17,opt,name=string_val,json=stringVal,proto3,oneof"`
}

type PrimitiveValue_Uint128Val

type PrimitiveValue_Uint128Val struct {
	Uint128Val *RelUInt128 `protobuf:"bytes,7,opt,name=uint128_val,json=uint128Val,proto3,oneof"` // Not present in protobuf
}

type PrimitiveValue_Uint16Val

type PrimitiveValue_Uint16Val struct {
	Uint16Val uint32 `protobuf:"varint,10,opt,name=uint16_val,json=uint16Val,proto3,oneof"` // Not present in protobuf; uint32
}

type PrimitiveValue_Uint32Val

type PrimitiveValue_Uint32Val struct {
	Uint32Val uint32 `protobuf:"varint,9,opt,name=uint32_val,json=uint32Val,proto3,oneof"`
}

type PrimitiveValue_Uint64Val

type PrimitiveValue_Uint64Val struct {
	Uint64Val uint64 `protobuf:"varint,8,opt,name=uint64_val,json=uint64Val,proto3,oneof"`
}

type PrimitiveValue_Uint8Val

type PrimitiveValue_Uint8Val struct {
	Uint8Val uint32 `protobuf:"varint,11,opt,name=uint8_val,json=uint8Val,proto3,oneof"` // Not present in protobuf; uint32
}

type RelInt128

type RelInt128 struct {
	Highbits uint64 `protobuf:"varint,1,opt,name=highbits,proto3" json:"highbits,omitempty"`
	Lowbits  uint64 `protobuf:"varint,2,opt,name=lowbits,proto3" json:"lowbits,omitempty"`
	// contains filtered or unexported fields
}

Named this way to avoid collision with julia's Core.{U,}Int128.

func (*RelInt128) Descriptor deprecated

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

Deprecated: Use RelInt128.ProtoReflect.Descriptor instead.

func (*RelInt128) GetHighbits

func (x *RelInt128) GetHighbits() uint64

func (*RelInt128) GetLowbits

func (x *RelInt128) GetLowbits() uint64

func (*RelInt128) ProtoMessage

func (*RelInt128) ProtoMessage()

func (*RelInt128) ProtoReflect

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

func (*RelInt128) Reset

func (x *RelInt128) Reset()

func (*RelInt128) String

func (x *RelInt128) String() string

type RelTuple

type RelTuple struct {
	Arguments []*PrimitiveValue `protobuf:"bytes,1,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

Renamed from Tuple to avoid collision with julia and python `Tuple`. Value types are flattened into their underlying primitive values.

func (*RelTuple) Descriptor deprecated

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

Deprecated: Use RelTuple.ProtoReflect.Descriptor instead.

func (*RelTuple) GetArguments

func (x *RelTuple) GetArguments() []*PrimitiveValue

func (*RelTuple) ProtoMessage

func (*RelTuple) ProtoMessage()

func (*RelTuple) ProtoReflect

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

func (*RelTuple) Reset

func (x *RelTuple) Reset()

func (*RelTuple) String

func (x *RelTuple) String() string

type RelType

type RelType struct {
	Tag Kind `protobuf:"varint,1,opt,name=tag,proto3,enum=relationalai.protocol.Kind" json:"tag,omitempty"`
	// Only one of the following is allowed.
	PrimitiveType PrimitiveType `` /* 142-byte string literal not displayed */
	ValueType     *ValueType    `protobuf:"bytes,3,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"`
	ConstantType  *ConstantType `protobuf:"bytes,4,opt,name=constant_type,json=constantType,proto3" json:"constant_type,omitempty"`
	// contains filtered or unexported fields
}

Union

func (*RelType) Descriptor deprecated

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

Deprecated: Use RelType.ProtoReflect.Descriptor instead.

func (*RelType) GetConstantType

func (x *RelType) GetConstantType() *ConstantType

func (*RelType) GetPrimitiveType

func (x *RelType) GetPrimitiveType() PrimitiveType

func (*RelType) GetTag

func (x *RelType) GetTag() Kind

func (*RelType) GetValueType

func (x *RelType) GetValueType() *ValueType

func (*RelType) ProtoMessage

func (*RelType) ProtoMessage()

func (*RelType) ProtoReflect

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

func (*RelType) Reset

func (x *RelType) Reset()

func (*RelType) String

func (x *RelType) String() string

type RelUInt128

type RelUInt128 struct {
	Highbits uint64 `protobuf:"varint,1,opt,name=highbits,proto3" json:"highbits,omitempty"`
	Lowbits  uint64 `protobuf:"varint,2,opt,name=lowbits,proto3" json:"lowbits,omitempty"`
	// contains filtered or unexported fields
}

func (*RelUInt128) Descriptor deprecated

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

Deprecated: Use RelUInt128.ProtoReflect.Descriptor instead.

func (*RelUInt128) GetHighbits

func (x *RelUInt128) GetHighbits() uint64

func (*RelUInt128) GetLowbits

func (x *RelUInt128) GetLowbits() uint64

func (*RelUInt128) ProtoMessage

func (*RelUInt128) ProtoMessage()

func (*RelUInt128) ProtoReflect

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

func (*RelUInt128) Reset

func (x *RelUInt128) Reset()

func (*RelUInt128) String

func (x *RelUInt128) String() string

type RelationId

type RelationId struct {
	Arguments []*RelType `protobuf:"bytes,1,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

Relations are currently identified by their type signature.

func (*RelationId) Descriptor deprecated

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

Deprecated: Use RelationId.ProtoReflect.Descriptor instead.

func (*RelationId) GetArguments

func (x *RelationId) GetArguments() []*RelType

func (*RelationId) ProtoMessage

func (*RelationId) ProtoMessage()

func (*RelationId) ProtoReflect

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

func (*RelationId) Reset

func (x *RelationId) Reset()

func (*RelationId) String

func (x *RelationId) String() string

type RelationMetadata

type RelationMetadata struct {

	// Type signature of this relation.
	RelationId *RelationId `protobuf:"bytes,1,opt,name=relation_id,json=relationId,proto3" json:"relation_id,omitempty"`
	// Identifier for the corresponding data file.
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// contains filtered or unexported fields
}

Describes metadata of a single relation.

func (*RelationMetadata) Descriptor deprecated

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

Deprecated: Use RelationMetadata.ProtoReflect.Descriptor instead.

func (*RelationMetadata) GetFileName

func (x *RelationMetadata) GetFileName() string

func (*RelationMetadata) GetRelationId

func (x *RelationMetadata) GetRelationId() *RelationId

func (*RelationMetadata) ProtoMessage

func (*RelationMetadata) ProtoMessage()

func (*RelationMetadata) ProtoReflect

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

func (*RelationMetadata) Reset

func (x *RelationMetadata) Reset()

func (*RelationMetadata) String

func (x *RelationMetadata) String() string

type ValueType

type ValueType struct {

	// Constant types are allowed, e.g. the `64` in `decimal[64]`. They serve as type
	// parameters.
	ArgumentTypes []*RelType `protobuf:"bytes,1,rep,name=argument_types,json=argumentTypes,proto3" json:"argument_types,omitempty"`
	// contains filtered or unexported fields
}

func (*ValueType) Descriptor deprecated

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

Deprecated: Use ValueType.ProtoReflect.Descriptor instead.

func (*ValueType) GetArgumentTypes

func (x *ValueType) GetArgumentTypes() []*RelType

func (*ValueType) ProtoMessage

func (*ValueType) ProtoMessage()

func (*ValueType) ProtoReflect

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

func (*ValueType) Reset

func (x *ValueType) Reset()

func (*ValueType) String

func (x *ValueType) String() string

Jump to

Keyboard shortcuts

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