proto

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 9 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.

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) CloneMessageVT added in v0.9.0

func (m *HistoryEntry) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*HistoryEntry) CloneVT added in v0.9.0

func (m *HistoryEntry) CloneVT() *HistoryEntry

func (*HistoryEntry) EqualMessageVT added in v0.9.0

func (this *HistoryEntry) EqualMessageVT(thatMsg any) bool

func (*HistoryEntry) EqualVT added in v0.9.0

func (this *HistoryEntry) EqualVT(that *HistoryEntry) bool

func (*HistoryEntry) GetHistory added in v0.7.0

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

func (*HistoryEntry) MarshalJSON added in v0.9.0

func (x *HistoryEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the HistoryEntry to JSON.

func (*HistoryEntry) MarshalProtoJSON added in v0.9.0

func (x *HistoryEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HistoryEntry message to JSON.

func (*HistoryEntry) MarshalProtoText added in v0.9.0

func (x *HistoryEntry) MarshalProtoText() string

func (*HistoryEntry) MarshalToSizedBufferVT added in v0.9.0

func (m *HistoryEntry) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HistoryEntry) MarshalToVT added in v0.9.0

func (m *HistoryEntry) MarshalToVT(dAtA []byte) (int, error)

func (*HistoryEntry) MarshalVT added in v0.9.0

func (m *HistoryEntry) MarshalVT() (dAtA []byte, err error)

func (*HistoryEntry) ProtoMessage

func (*HistoryEntry) ProtoMessage()

func (*HistoryEntry) Reset

func (x *HistoryEntry) Reset()

func (*HistoryEntry) SizeVT added in v0.9.0

func (m *HistoryEntry) SizeVT() (n int)

func (*HistoryEntry) String

func (x *HistoryEntry) String() string

func (*HistoryEntry) UnmarshalJSON added in v0.9.0

func (x *HistoryEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the HistoryEntry from JSON.

func (*HistoryEntry) UnmarshalProtoJSON added in v0.9.0

func (x *HistoryEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HistoryEntry message from JSON.

func (*HistoryEntry) UnmarshalVT added in v0.9.0

func (m *HistoryEntry) UnmarshalVT(dAtA []byte) error

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) CloneMessageVT added in v0.9.0

func (m *LogDelta) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*LogDelta) CloneVT added in v0.9.0

func (m *LogDelta) CloneVT() *LogDelta

func (*LogDelta) EqualMessageVT added in v0.9.0

func (this *LogDelta) EqualMessageVT(thatMsg any) bool

func (*LogDelta) EqualVT added in v0.9.0

func (this *LogDelta) EqualVT(that *LogDelta) bool

func (*LogDelta) GetAction added in v0.7.0

func (x *LogDelta) GetAction() int32

func (*LogDelta) GetID added in v0.7.0

func (x *LogDelta) GetID() uint64

func (*LogDelta) GetQuad

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

func (*LogDelta) GetTimestamp added in v0.7.0

func (x *LogDelta) GetTimestamp() int64

func (*LogDelta) MarshalJSON added in v0.9.0

func (x *LogDelta) MarshalJSON() ([]byte, error)

MarshalJSON marshals the LogDelta to JSON.

func (*LogDelta) MarshalProtoJSON added in v0.9.0

func (x *LogDelta) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the LogDelta message to JSON.

func (*LogDelta) MarshalProtoText added in v0.9.0

func (x *LogDelta) MarshalProtoText() string

func (*LogDelta) MarshalToSizedBufferVT added in v0.9.0

func (m *LogDelta) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*LogDelta) MarshalToVT added in v0.9.0

func (m *LogDelta) MarshalToVT(dAtA []byte) (int, error)

func (*LogDelta) MarshalVT added in v0.9.0

func (m *LogDelta) MarshalVT() (dAtA []byte, err error)

func (*LogDelta) ProtoMessage

func (*LogDelta) ProtoMessage()

func (*LogDelta) Reset

func (x *LogDelta) Reset()

func (*LogDelta) SizeVT added in v0.9.0

func (m *LogDelta) SizeVT() (n int)

func (*LogDelta) String

func (x *LogDelta) String() string

func (*LogDelta) UnmarshalJSON added in v0.9.0

func (x *LogDelta) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the LogDelta from JSON.

func (*LogDelta) UnmarshalProtoJSON added in v0.9.0

func (x *LogDelta) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the LogDelta message from JSON.

func (*LogDelta) UnmarshalVT added in v0.9.0

func (m *LogDelta) UnmarshalVT(dAtA []byte) error

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) CloneMessageVT added in v0.9.0

func (m *NodeData) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*NodeData) CloneVT added in v0.9.0

func (m *NodeData) CloneVT() *NodeData

func (*NodeData) EqualMessageVT added in v0.9.0

func (this *NodeData) EqualMessageVT(thatMsg any) bool

func (*NodeData) EqualVT added in v0.9.0

func (this *NodeData) EqualVT(that *NodeData) bool

func (*NodeData) GetName added in v0.7.0

func (x *NodeData) GetName() string

func (*NodeData) GetNativeValue added in v0.6.0

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

GetNativeValue returns the value stored in Node.

func (*NodeData) GetSize added in v0.7.0

func (x *NodeData) GetSize() int64

func (*NodeData) GetValue added in v0.6.0

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

func (*NodeData) MarshalJSON added in v0.9.0

func (x *NodeData) MarshalJSON() ([]byte, error)

MarshalJSON marshals the NodeData to JSON.

func (*NodeData) MarshalProtoJSON added in v0.9.0

func (x *NodeData) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the NodeData message to JSON.

func (*NodeData) MarshalProtoText added in v0.9.0

func (x *NodeData) MarshalProtoText() string

func (*NodeData) MarshalToSizedBufferVT added in v0.9.0

func (m *NodeData) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*NodeData) MarshalToVT added in v0.9.0

func (m *NodeData) MarshalToVT(dAtA []byte) (int, error)

func (*NodeData) MarshalVT added in v0.9.0

func (m *NodeData) MarshalVT() (dAtA []byte, err error)

func (*NodeData) ProtoMessage

func (*NodeData) ProtoMessage()

func (*NodeData) Reset

func (x *NodeData) Reset()

func (*NodeData) SizeVT added in v0.9.0

func (m *NodeData) SizeVT() (n int)

func (*NodeData) String

func (x *NodeData) String() string

func (*NodeData) UnmarshalJSON added in v0.9.0

func (x *NodeData) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the NodeData from JSON.

func (*NodeData) UnmarshalProtoJSON added in v0.9.0

func (x *NodeData) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the NodeData message from JSON.

func (*NodeData) UnmarshalVT added in v0.9.0

func (m *NodeData) UnmarshalVT(dAtA []byte) error

func (*NodeData) Upgrade added in v0.6.0

func (m *NodeData) Upgrade()

type Primitive added in v0.7.0

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"`
	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) CloneMessageVT added in v0.9.0

func (m *Primitive) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Primitive) CloneVT added in v0.9.0

func (m *Primitive) CloneVT() *Primitive

func (*Primitive) EqualMessageVT added in v0.9.0

func (this *Primitive) EqualMessageVT(thatMsg any) bool

func (*Primitive) EqualVT added in v0.9.0

func (this *Primitive) EqualVT(that *Primitive) bool

func (*Primitive) GetDeleted added in v0.7.0

func (x *Primitive) GetDeleted() bool

func (Primitive) GetDirection added in v0.7.0

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

func (*Primitive) GetID added in v0.7.0

func (x *Primitive) GetID() uint64

func (*Primitive) GetLabel added in v0.7.0

func (x *Primitive) GetLabel() uint64

func (*Primitive) GetObject added in v0.7.0

func (x *Primitive) GetObject() uint64

func (*Primitive) GetPredicate added in v0.7.0

func (x *Primitive) GetPredicate() uint64

func (*Primitive) GetReplaces added in v0.7.0

func (x *Primitive) GetReplaces() uint64

func (*Primitive) GetSubject added in v0.7.0

func (x *Primitive) GetSubject() uint64

func (*Primitive) GetValue added in v0.7.0

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

func (Primitive) IsNode added in v0.7.0

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

func (Primitive) Key added in v0.7.0

func (p Primitive) Key() interface{}

func (*Primitive) MarshalJSON added in v0.9.0

func (x *Primitive) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Primitive to JSON.

func (*Primitive) MarshalProtoJSON added in v0.9.0

func (x *Primitive) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Primitive message to JSON.

func (*Primitive) MarshalProtoText added in v0.9.0

func (x *Primitive) MarshalProtoText() string

func (*Primitive) MarshalToSizedBufferVT added in v0.9.0

func (m *Primitive) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Primitive) MarshalToVT added in v0.9.0

func (m *Primitive) MarshalToVT(dAtA []byte) (int, error)

func (*Primitive) MarshalVT added in v0.9.0

func (m *Primitive) MarshalVT() (dAtA []byte, err error)

func (*Primitive) ProtoMessage added in v0.7.0

func (*Primitive) ProtoMessage()

func (*Primitive) Reset added in v0.7.0

func (x *Primitive) Reset()

func (*Primitive) SetDirection added in v0.7.0

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

func (*Primitive) SizeVT added in v0.9.0

func (m *Primitive) SizeVT() (n int)

func (*Primitive) String added in v0.7.0

func (x *Primitive) String() string

func (*Primitive) UnmarshalJSON added in v0.9.0

func (x *Primitive) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Primitive from JSON.

func (*Primitive) UnmarshalProtoJSON added in v0.9.0

func (x *Primitive) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Primitive message from JSON.

func (*Primitive) UnmarshalVT added in v0.9.0

func (m *Primitive) UnmarshalVT(dAtA []byte) error

type PrimitiveType added in v0.7.0

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) Enum added in v0.9.0

func (x PrimitiveType) Enum() *PrimitiveType

func (PrimitiveType) MarshalJSON added in v0.9.0

func (x PrimitiveType) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PrimitiveType to JSON.

func (PrimitiveType) MarshalProtoJSON added in v0.9.0

func (x PrimitiveType) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PrimitiveType to JSON.

func (PrimitiveType) MarshalProtoText added in v0.9.0

func (x PrimitiveType) MarshalProtoText() string

func (PrimitiveType) MarshalText added in v0.9.0

func (x PrimitiveType) MarshalText() ([]byte, error)

MarshalText marshals the PrimitiveType to text.

func (PrimitiveType) String added in v0.7.0

func (x PrimitiveType) String() string

func (*PrimitiveType) UnmarshalJSON added in v0.9.0

func (x *PrimitiveType) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PrimitiveType from JSON.

func (*PrimitiveType) UnmarshalProtoJSON added in v0.9.0

func (x *PrimitiveType) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PrimitiveType from JSON.

func (*PrimitiveType) UnmarshalText added in v0.9.0

func (x *PrimitiveType) UnmarshalText(b []byte) error

UnmarshalText unmarshals the PrimitiveType from text.

Jump to

Keyboard shortcuts

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