proto

package
v0.0.0-...-dc6e3ae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrimitiveType_name = map[int32]string{
		0: "LINK",
		1: "IRI",
		2: "STRING",
		3: "BNODE",
		4: "TYPED_STR",
		5: "LANG_STR",
		6: "INT",
		7: "FLOAT",
		8: "BOOL",
		9: "TIMESTAMP",
	}
	PrimitiveType_value = map[string]int32{
		"LINK":      0,
		"IRI":       1,
		"STRING":    2,
		"BNODE":     3,
		"TYPED_STR": 4,
		"LANG_STR":  5,
		"INT":       6,
		"FLOAT":     7,
		"BOOL":      8,
		"TIMESTAMP": 9,
	}
)

Enum value maps for PrimitiveType.

View Source
var File_primitive_proto protoreflect.FileDescriptor
View Source
var File_serializations_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HistoryEntry

type HistoryEntry struct {
	History []uint64 `protobuf:"varint,1,rep,packed,name=History,proto3" json:"History,omitempty"`
	// contains filtered or unexported fields
}

func (*HistoryEntry) Descriptor deprecated

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

Deprecated: Use HistoryEntry.ProtoReflect.Descriptor instead.

func (*HistoryEntry) GetHistory

func (x *HistoryEntry) GetHistory() []uint64

func (*HistoryEntry) ProtoMessage

func (*HistoryEntry) ProtoMessage()

func (*HistoryEntry) ProtoReflect

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

func (*HistoryEntry) Reset

func (x *HistoryEntry) Reset()

func (*HistoryEntry) String

func (x *HistoryEntry) String() string

type LogDelta

type LogDelta struct {
	ID        uint64       `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Quad      *pquads.Quad `protobuf:"bytes,2,opt,name=Quad,proto3" json:"Quad,omitempty"`
	Action    int32        `protobuf:"varint,3,opt,name=Action,proto3" json:"Action,omitempty"`
	Timestamp int64        `protobuf:"varint,4,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*LogDelta) Descriptor deprecated

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

Deprecated: Use LogDelta.ProtoReflect.Descriptor instead.

func (*LogDelta) GetAction

func (x *LogDelta) GetAction() int32

func (*LogDelta) GetID

func (x *LogDelta) GetID() uint64

func (*LogDelta) GetQuad

func (x *LogDelta) GetQuad() *pquads.Quad

func (*LogDelta) GetTimestamp

func (x *LogDelta) GetTimestamp() int64

func (*LogDelta) ProtoMessage

func (*LogDelta) ProtoMessage()

func (*LogDelta) ProtoReflect

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

func (*LogDelta) Reset

func (x *LogDelta) Reset()

func (*LogDelta) String

func (x *LogDelta) String() string

type NodeData

type NodeData struct {
	Name  string        `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Size  int64         `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"`
	Value *pquads.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeData) Descriptor deprecated

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

Deprecated: Use NodeData.ProtoReflect.Descriptor instead.

func (*NodeData) GetName

func (x *NodeData) GetName() string

func (*NodeData) GetNativeValue

func (m *NodeData) GetNativeValue() quad.Value

GetNativeValue returns the value stored in Node.

func (*NodeData) GetSize

func (x *NodeData) GetSize() int64

func (*NodeData) GetValue

func (x *NodeData) GetValue() *pquads.Value

func (*NodeData) ProtoMessage

func (*NodeData) ProtoMessage()

func (*NodeData) ProtoReflect

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

func (*NodeData) Reset

func (x *NodeData) Reset()

func (*NodeData) String

func (x *NodeData) String() string

func (*NodeData) Upgrade

func (m *NodeData) Upgrade()

type Primitive

type Primitive struct {
	ID        uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Subject   uint64 `protobuf:"varint,2,opt,name=Subject,proto3" json:"Subject,omitempty"`
	Predicate uint64 `protobuf:"varint,3,opt,name=Predicate,proto3" json:"Predicate,omitempty"`
	Object    uint64 `protobuf:"varint,4,opt,name=Object,proto3" json:"Object,omitempty"`
	Label     uint64 `protobuf:"varint,5,opt,name=Label,proto3" json:"Label,omitempty"`
	Replaces  uint64 `protobuf:"varint,6,opt,name=Replaces,proto3" json:"Replaces,omitempty"`
	Timestamp int64  `protobuf:"varint,7,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	Value     []byte `protobuf:"bytes,8,opt,name=Value,proto3" json:"Value,omitempty"`
	Deleted   bool   `protobuf:"varint,9,opt,name=Deleted,proto3" json:"Deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*Primitive) Descriptor deprecated

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

Deprecated: Use Primitive.ProtoReflect.Descriptor instead.

func (*Primitive) GetDeleted

func (x *Primitive) GetDeleted() bool

func (*Primitive) GetDirection

func (p *Primitive) GetDirection(d quad.Direction) uint64

func (*Primitive) GetID

func (x *Primitive) GetID() uint64

func (*Primitive) GetLabel

func (x *Primitive) GetLabel() uint64

func (*Primitive) GetObject

func (x *Primitive) GetObject() uint64

func (*Primitive) GetPredicate

func (x *Primitive) GetPredicate() uint64

func (*Primitive) GetReplaces

func (x *Primitive) GetReplaces() uint64

func (*Primitive) GetSubject

func (x *Primitive) GetSubject() uint64

func (*Primitive) GetTimestamp

func (x *Primitive) GetTimestamp() int64

func (*Primitive) GetValue

func (x *Primitive) GetValue() []byte

func (*Primitive) IsNode

func (p *Primitive) IsNode() bool
func (p *Primitive) IsSameLink(q *Primitive) bool

func (*Primitive) Key

func (p *Primitive) Key() interface{}

func (*Primitive) ProtoMessage

func (*Primitive) ProtoMessage()

func (*Primitive) ProtoReflect

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

func (*Primitive) Reset

func (x *Primitive) Reset()

func (*Primitive) SetDirection

func (p *Primitive) SetDirection(d quad.Direction, v uint64)

func (*Primitive) String

func (x *Primitive) String() string

type PrimitiveType

type PrimitiveType int32
const (
	PrimitiveType_LINK      PrimitiveType = 0
	PrimitiveType_IRI       PrimitiveType = 1
	PrimitiveType_STRING    PrimitiveType = 2
	PrimitiveType_BNODE     PrimitiveType = 3
	PrimitiveType_TYPED_STR PrimitiveType = 4
	PrimitiveType_LANG_STR  PrimitiveType = 5
	PrimitiveType_INT       PrimitiveType = 6
	PrimitiveType_FLOAT     PrimitiveType = 7
	PrimitiveType_BOOL      PrimitiveType = 8
	PrimitiveType_TIMESTAMP PrimitiveType = 9
)

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

Jump to

Keyboard shortcuts

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