Documentation ¶
Overview ¶
Package pquads implements Cayley-specific protobuf-based quads format.
Index ¶
- Constants
- Variables
- func MarshalValue(v quad.Value) ([]byte, error)
- func UnmarshalValue(ctx context.Context, data []byte) (quad.Value, error)
- type Header
- func (m *Header) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Header) CloneVT() *Header
- func (this *Header) EqualMessageVT(thatMsg any) bool
- func (this *Header) EqualVT(that *Header) bool
- func (x *Header) GetFull() bool
- func (x *Header) GetNotStrict() bool
- func (x *Header) MarshalJSON() ([]byte, error)
- func (x *Header) MarshalProtoJSON(s *json.MarshalState)
- func (x *Header) MarshalProtoText() string
- func (m *Header) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Header) MarshalToVT(dAtA []byte) (int, error)
- func (m *Header) MarshalVT() (dAtA []byte, err error)
- func (*Header) ProtoMessage()
- func (x *Header) Reset()
- func (m *Header) SizeVT() (n int)
- func (x *Header) String() string
- func (x *Header) UnmarshalJSON(b []byte) error
- func (x *Header) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Header) UnmarshalVT(dAtA []byte) error
- type Options
- type Quad
- func (m *Quad) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Quad) CloneVT() *Quad
- func (this *Quad) EqualMessageVT(thatMsg any) bool
- func (this *Quad) EqualVT(that *Quad) bool
- func (x *Quad) GetLabel() string
- func (x *Quad) GetLabelValue() *Value
- func (x *Quad) GetObject() string
- func (x *Quad) GetObjectValue() *Value
- func (x *Quad) GetPredicate() string
- func (x *Quad) GetPredicateValue() *Value
- func (x *Quad) GetSubject() string
- func (x *Quad) GetSubjectValue() *Value
- func (x *Quad) MarshalJSON() ([]byte, error)
- func (x *Quad) MarshalProtoJSON(s *json.MarshalState)
- func (x *Quad) MarshalProtoText() string
- func (m *Quad) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Quad) MarshalToVT(dAtA []byte) (int, error)
- func (m *Quad) MarshalVT() (dAtA []byte, err error)
- func (*Quad) ProtoMessage()
- func (x *Quad) Reset()
- func (m *Quad) SizeVT() (n int)
- func (x *Quad) String() string
- func (m *Quad) ToNative() (q quad.Quad)
- func (x *Quad) UnmarshalJSON(b []byte) error
- func (x *Quad) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Quad) UnmarshalVT(dAtA []byte) error
- func (m *Quad) Upgrade()
- type Reader
- type StrictQuad
- func (m *StrictQuad) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *StrictQuad) CloneVT() *StrictQuad
- func (this *StrictQuad) EqualMessageVT(thatMsg any) bool
- func (this *StrictQuad) EqualVT(that *StrictQuad) bool
- func (x *StrictQuad) GetLabel() *StrictQuad_Ref
- func (x *StrictQuad) GetObject() *Value
- func (x *StrictQuad) GetPredicate() *StrictQuad_Ref
- func (x *StrictQuad) GetSubject() *StrictQuad_Ref
- func (x *StrictQuad) MarshalJSON() ([]byte, error)
- func (x *StrictQuad) MarshalProtoJSON(s *json.MarshalState)
- func (x *StrictQuad) MarshalProtoText() string
- func (m *StrictQuad) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StrictQuad) MarshalToVT(dAtA []byte) (int, error)
- func (m *StrictQuad) MarshalVT() (dAtA []byte, err error)
- func (*StrictQuad) ProtoMessage()
- func (x *StrictQuad) Reset()
- func (m *StrictQuad) SizeVT() (n int)
- func (x *StrictQuad) String() string
- func (m *StrictQuad) ToNative() (q quad.Quad)
- func (x *StrictQuad) UnmarshalJSON(b []byte) error
- func (x *StrictQuad) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *StrictQuad) UnmarshalVT(dAtA []byte) error
- type StrictQuadRaw
- func (m *StrictQuadRaw) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *StrictQuadRaw) CloneVT() *StrictQuadRaw
- func (this *StrictQuadRaw) EqualMessageVT(thatMsg any) bool
- func (this *StrictQuadRaw) EqualVT(that *StrictQuadRaw) bool
- func (x *StrictQuadRaw) GetLabel() []byte
- func (x *StrictQuadRaw) GetObject() []byte
- func (x *StrictQuadRaw) GetPredicate() []byte
- func (x *StrictQuadRaw) GetSubject() []byte
- func (x *StrictQuadRaw) MarshalJSON() ([]byte, error)
- func (x *StrictQuadRaw) MarshalProtoJSON(s *json.MarshalState)
- func (x *StrictQuadRaw) MarshalProtoText() string
- func (m *StrictQuadRaw) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StrictQuadRaw) MarshalToVT(dAtA []byte) (int, error)
- func (m *StrictQuadRaw) MarshalVT() (dAtA []byte, err error)
- func (*StrictQuadRaw) ProtoMessage()
- func (x *StrictQuadRaw) Reset()
- func (m *StrictQuadRaw) SizeVT() (n int)
- func (x *StrictQuadRaw) String() string
- func (x *StrictQuadRaw) UnmarshalJSON(b []byte) error
- func (x *StrictQuadRaw) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *StrictQuadRaw) UnmarshalVT(dAtA []byte) error
- type StrictQuad_Ref
- func (m *StrictQuad_Ref) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *StrictQuad_Ref) CloneVT() *StrictQuad_Ref
- func (this *StrictQuad_Ref) EqualMessageVT(thatMsg any) bool
- func (this *StrictQuad_Ref) EqualVT(that *StrictQuad_Ref) bool
- func (x *StrictQuad_Ref) GetBnodeLabel() string
- func (x *StrictQuad_Ref) GetIri() string
- func (m *StrictQuad_Ref) GetValue() isStrictQuad_Ref_Value
- func (x *StrictQuad_Ref) MarshalJSON() ([]byte, error)
- func (x *StrictQuad_Ref) MarshalProtoJSON(s *json.MarshalState)
- func (x *StrictQuad_Ref) MarshalProtoText() string
- func (m *StrictQuad_Ref) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StrictQuad_Ref) MarshalToVT(dAtA []byte) (int, error)
- func (m *StrictQuad_Ref) MarshalVT() (dAtA []byte, err error)
- func (*StrictQuad_Ref) ProtoMessage()
- func (x *StrictQuad_Ref) Reset()
- func (m *StrictQuad_Ref) SizeVT() (n int)
- func (x *StrictQuad_Ref) String() string
- func (m *StrictQuad_Ref) ToNative() (qv quad.Value)
- func (x *StrictQuad_Ref) UnmarshalJSON(b []byte) error
- func (x *StrictQuad_Ref) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *StrictQuad_Ref) UnmarshalVT(dAtA []byte) error
- type StrictQuad_Ref_BnodeLabel
- func (m *StrictQuad_Ref_BnodeLabel) CloneOneofVT() isStrictQuad_Ref_Value
- func (m *StrictQuad_Ref_BnodeLabel) CloneVT() *StrictQuad_Ref_BnodeLabel
- func (this *StrictQuad_Ref_BnodeLabel) EqualVT(thatIface isStrictQuad_Ref_Value) bool
- func (m *StrictQuad_Ref_BnodeLabel) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StrictQuad_Ref_BnodeLabel) MarshalToVT(dAtA []byte) (int, error)
- func (m *StrictQuad_Ref_BnodeLabel) SizeVT() (n int)
- type StrictQuad_Ref_Iri
- func (m *StrictQuad_Ref_Iri) CloneOneofVT() isStrictQuad_Ref_Value
- func (m *StrictQuad_Ref_Iri) CloneVT() *StrictQuad_Ref_Iri
- func (this *StrictQuad_Ref_Iri) EqualVT(thatIface isStrictQuad_Ref_Value) bool
- func (m *StrictQuad_Ref_Iri) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StrictQuad_Ref_Iri) MarshalToVT(dAtA []byte) (int, error)
- func (m *StrictQuad_Ref_Iri) SizeVT() (n int)
- type Value
- func (m *Value) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Value) CloneVT() *Value
- func (this *Value) EqualMessageVT(thatMsg any) bool
- func (this *Value) EqualVT(that *Value) bool
- func (x *Value) GetBnode() string
- func (x *Value) GetBoolean() bool
- func (x *Value) GetFloat() float64
- func (x *Value) GetInt() int64
- func (x *Value) GetIri() string
- func (x *Value) GetLangStr() *Value_LangString
- func (x *Value) GetRaw() []byte
- func (x *Value) GetStr() string
- func (x *Value) GetTime() *Value_Timestamp
- func (x *Value) GetTypedStr() *Value_TypedString
- func (m *Value) GetValue() isValue_Value
- func (x *Value) MarshalJSON() ([]byte, error)
- func (x *Value) MarshalProtoJSON(s *json.MarshalState)
- func (x *Value) MarshalProtoText() string
- func (m *Value) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value) MarshalVT() (dAtA []byte, err error)
- func (*Value) ProtoMessage()
- func (x *Value) Reset()
- func (m *Value) SizeVT() (n int)
- func (x *Value) String() string
- func (m *Value) ToNative() (qv quad.Value)
- func (x *Value) UnmarshalJSON(b []byte) error
- func (x *Value) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Value) UnmarshalVT(dAtA []byte) error
- type Value_Bnode
- func (m *Value_Bnode) CloneOneofVT() isValue_Value
- func (m *Value_Bnode) CloneVT() *Value_Bnode
- func (this *Value_Bnode) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Bnode) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Bnode) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Bnode) SizeVT() (n int)
- type Value_Boolean
- func (m *Value_Boolean) CloneOneofVT() isValue_Value
- func (m *Value_Boolean) CloneVT() *Value_Boolean
- func (this *Value_Boolean) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Boolean) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Boolean) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Boolean) SizeVT() (n int)
- type Value_Float
- func (m *Value_Float) CloneOneofVT() isValue_Value
- func (m *Value_Float) CloneVT() *Value_Float
- func (this *Value_Float) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Float) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Float) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Float) SizeVT() (n int)
- type Value_Int
- func (m *Value_Int) CloneOneofVT() isValue_Value
- func (m *Value_Int) CloneVT() *Value_Int
- func (this *Value_Int) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Int) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Int) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Int) SizeVT() (n int)
- type Value_Iri
- func (m *Value_Iri) CloneOneofVT() isValue_Value
- func (m *Value_Iri) CloneVT() *Value_Iri
- func (this *Value_Iri) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Iri) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Iri) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Iri) SizeVT() (n int)
- type Value_LangStr
- func (m *Value_LangStr) CloneOneofVT() isValue_Value
- func (m *Value_LangStr) CloneVT() *Value_LangStr
- func (this *Value_LangStr) EqualVT(thatIface isValue_Value) bool
- func (m *Value_LangStr) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_LangStr) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_LangStr) SizeVT() (n int)
- type Value_LangString
- func (m *Value_LangString) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Value_LangString) CloneVT() *Value_LangString
- func (this *Value_LangString) EqualMessageVT(thatMsg any) bool
- func (this *Value_LangString) EqualVT(that *Value_LangString) bool
- func (x *Value_LangString) GetLang() string
- func (x *Value_LangString) GetValue() string
- func (x *Value_LangString) MarshalJSON() ([]byte, error)
- func (x *Value_LangString) MarshalProtoJSON(s *json.MarshalState)
- func (x *Value_LangString) MarshalProtoText() string
- func (m *Value_LangString) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_LangString) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_LangString) MarshalVT() (dAtA []byte, err error)
- func (*Value_LangString) ProtoMessage()
- func (x *Value_LangString) Reset()
- func (m *Value_LangString) SizeVT() (n int)
- func (x *Value_LangString) String() string
- func (x *Value_LangString) UnmarshalJSON(b []byte) error
- func (x *Value_LangString) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Value_LangString) UnmarshalVT(dAtA []byte) error
- type Value_Raw
- func (m *Value_Raw) CloneOneofVT() isValue_Value
- func (m *Value_Raw) CloneVT() *Value_Raw
- func (this *Value_Raw) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Raw) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Raw) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Raw) SizeVT() (n int)
- type Value_Str
- func (m *Value_Str) CloneOneofVT() isValue_Value
- func (m *Value_Str) CloneVT() *Value_Str
- func (this *Value_Str) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Str) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Str) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Str) SizeVT() (n int)
- type Value_Time
- func (m *Value_Time) CloneOneofVT() isValue_Value
- func (m *Value_Time) CloneVT() *Value_Time
- func (this *Value_Time) EqualVT(thatIface isValue_Value) bool
- func (m *Value_Time) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Time) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Time) SizeVT() (n int)
- type Value_Timestamp
- func (m *Value_Timestamp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Value_Timestamp) CloneVT() *Value_Timestamp
- func (this *Value_Timestamp) EqualMessageVT(thatMsg any) bool
- func (this *Value_Timestamp) EqualVT(that *Value_Timestamp) bool
- func (x *Value_Timestamp) GetNanos() int32
- func (x *Value_Timestamp) GetSeconds() int64
- func (x *Value_Timestamp) MarshalJSON() ([]byte, error)
- func (x *Value_Timestamp) MarshalProtoJSON(s *json.MarshalState)
- func (x *Value_Timestamp) MarshalProtoText() string
- func (m *Value_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_Timestamp) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_Timestamp) MarshalVT() (dAtA []byte, err error)
- func (*Value_Timestamp) ProtoMessage()
- func (x *Value_Timestamp) Reset()
- func (m *Value_Timestamp) SizeVT() (n int)
- func (x *Value_Timestamp) String() string
- func (x *Value_Timestamp) UnmarshalJSON(b []byte) error
- func (x *Value_Timestamp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Value_Timestamp) UnmarshalVT(dAtA []byte) error
- type Value_TypedStr
- func (m *Value_TypedStr) CloneOneofVT() isValue_Value
- func (m *Value_TypedStr) CloneVT() *Value_TypedStr
- func (this *Value_TypedStr) EqualVT(thatIface isValue_Value) bool
- func (m *Value_TypedStr) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_TypedStr) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_TypedStr) SizeVT() (n int)
- type Value_TypedString
- func (m *Value_TypedString) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Value_TypedString) CloneVT() *Value_TypedString
- func (this *Value_TypedString) EqualMessageVT(thatMsg any) bool
- func (this *Value_TypedString) EqualVT(that *Value_TypedString) bool
- func (x *Value_TypedString) GetType() string
- func (x *Value_TypedString) GetValue() string
- func (x *Value_TypedString) MarshalJSON() ([]byte, error)
- func (x *Value_TypedString) MarshalProtoJSON(s *json.MarshalState)
- func (x *Value_TypedString) MarshalProtoText() string
- func (m *Value_TypedString) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Value_TypedString) MarshalToVT(dAtA []byte) (int, error)
- func (m *Value_TypedString) MarshalVT() (dAtA []byte, err error)
- func (*Value_TypedString) ProtoMessage()
- func (x *Value_TypedString) Reset()
- func (m *Value_TypedString) SizeVT() (n int)
- func (x *Value_TypedString) String() string
- func (x *Value_TypedString) UnmarshalJSON(b []byte) error
- func (x *Value_TypedString) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Value_TypedString) UnmarshalVT(dAtA []byte) error
- type WireQuad
- func (m *WireQuad) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *WireQuad) CloneVT() *WireQuad
- func (this *WireQuad) EqualMessageVT(thatMsg any) bool
- func (this *WireQuad) EqualVT(that *WireQuad) bool
- func (x *WireQuad) GetLabel() *Value
- func (x *WireQuad) GetObject() *Value
- func (x *WireQuad) GetPredicate() *Value
- func (x *WireQuad) GetSubject() *Value
- func (x *WireQuad) MarshalJSON() ([]byte, error)
- func (x *WireQuad) MarshalProtoJSON(s *json.MarshalState)
- func (x *WireQuad) MarshalProtoText() string
- func (m *WireQuad) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WireQuad) MarshalToVT(dAtA []byte) (int, error)
- func (m *WireQuad) MarshalVT() (dAtA []byte, err error)
- func (*WireQuad) ProtoMessage()
- func (x *WireQuad) Reset()
- func (m *WireQuad) SizeVT() (n int)
- func (x *WireQuad) String() string
- func (m *WireQuad) ToNative() (q quad.Quad)
- func (x *WireQuad) UnmarshalJSON(b []byte) error
- func (x *WireQuad) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *WireQuad) UnmarshalVT(dAtA []byte) error
- type WireQuadRaw
- func (m *WireQuadRaw) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *WireQuadRaw) CloneVT() *WireQuadRaw
- func (this *WireQuadRaw) EqualMessageVT(thatMsg any) bool
- func (this *WireQuadRaw) EqualVT(that *WireQuadRaw) bool
- func (x *WireQuadRaw) GetLabel() []byte
- func (x *WireQuadRaw) GetObject() []byte
- func (x *WireQuadRaw) GetPredicate() []byte
- func (x *WireQuadRaw) GetSubject() []byte
- func (x *WireQuadRaw) MarshalJSON() ([]byte, error)
- func (x *WireQuadRaw) MarshalProtoJSON(s *json.MarshalState)
- func (x *WireQuadRaw) MarshalProtoText() string
- func (m *WireQuadRaw) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WireQuadRaw) MarshalToVT(dAtA []byte) (int, error)
- func (m *WireQuadRaw) MarshalVT() (dAtA []byte, err error)
- func (*WireQuadRaw) ProtoMessage()
- func (x *WireQuadRaw) Reset()
- func (m *WireQuadRaw) SizeVT() (n int)
- func (x *WireQuadRaw) String() string
- func (x *WireQuadRaw) UnmarshalJSON(b []byte) error
- func (x *WireQuadRaw) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *WireQuadRaw) UnmarshalVT(dAtA []byte) error
- type Writer
Constants ¶
const ContentType = "application/x-protobuf"
Variables ¶
var DefaultMaxSize = 1024 * 1024
Functions ¶
func MarshalValue ¶
MarshalValue is a helper for serialization of quad.Value.
Types ¶
type Header ¶
type Header struct { // Full is set if encoder always writes every quad directions instead of // skipping duplicated values on each direction (except label) for subsequent quads. Full bool `protobuf:"varint,1,opt,name=full,proto3" json:"full,omitempty"` // NotStrict is set if encoder emits WireQuad instead of StrictQuad messages. NotStrict bool `protobuf:"varint,2,opt,name=not_strict,json=notStrict,proto3" json:"notStrict,omitempty"` // contains filtered or unexported fields }
func (*Header) CloneMessageVT ¶ added in v0.9.0
func (m *Header) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Header) EqualMessageVT ¶ added in v0.9.0
func (*Header) GetNotStrict ¶ added in v0.9.0
func (*Header) MarshalJSON ¶ added in v0.9.0
MarshalJSON marshals the Header to JSON.
func (*Header) MarshalProtoJSON ¶ added in v0.9.0
func (x *Header) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Header message to JSON.
func (*Header) MarshalProtoText ¶ added in v0.9.0
func (*Header) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) UnmarshalJSON ¶ added in v0.9.0
UnmarshalJSON unmarshals the Header from JSON.
func (*Header) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *Header) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Header message from JSON.
func (*Header) UnmarshalVT ¶ added in v0.9.0
type Quad ¶
type Quad struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` SubjectValue *Value `protobuf:"bytes,5,opt,name=subject_value,json=subjectValue,proto3" json:"subjectValue,omitempty"` PredicateValue *Value `protobuf:"bytes,6,opt,name=predicate_value,json=predicateValue,proto3" json:"predicateValue,omitempty"` ObjectValue *Value `protobuf:"bytes,7,opt,name=object_value,json=objectValue,proto3" json:"objectValue,omitempty"` LabelValue *Value `protobuf:"bytes,8,opt,name=label_value,json=labelValue,proto3" json:"labelValue,omitempty"` // contains filtered or unexported fields }
Quad is in internal representation of quad used by Cayley.
func (*Quad) CloneMessageVT ¶ added in v0.9.0
func (m *Quad) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Quad) EqualMessageVT ¶ added in v0.9.0
func (*Quad) GetLabelValue ¶
func (*Quad) GetObjectValue ¶
func (*Quad) GetPredicate ¶ added in v0.9.0
func (*Quad) GetPredicateValue ¶
func (*Quad) GetSubject ¶ added in v0.9.0
func (*Quad) GetSubjectValue ¶
func (*Quad) MarshalJSON ¶ added in v0.9.0
MarshalJSON marshals the Quad to JSON.
func (*Quad) MarshalProtoJSON ¶ added in v0.9.0
func (x *Quad) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Quad message to JSON.
func (*Quad) MarshalProtoText ¶ added in v0.9.0
func (*Quad) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*Quad) ProtoMessage ¶
func (*Quad) ProtoMessage()
func (*Quad) UnmarshalJSON ¶ added in v0.9.0
UnmarshalJSON unmarshals the Quad from JSON.
func (*Quad) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *Quad) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Quad message from JSON.
func (*Quad) UnmarshalVT ¶ added in v0.9.0
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
type StrictQuad ¶
type StrictQuad struct { Subject *StrictQuad_Ref `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate *StrictQuad_Ref `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object *Value `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label *StrictQuad_Ref `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
StrictQuad is a quad as described by RDF spec.
func (*StrictQuad) CloneMessageVT ¶ added in v0.9.0
func (m *StrictQuad) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*StrictQuad) CloneVT ¶ added in v0.9.0
func (m *StrictQuad) CloneVT() *StrictQuad
func (*StrictQuad) EqualMessageVT ¶ added in v0.9.0
func (this *StrictQuad) EqualMessageVT(thatMsg any) bool
func (*StrictQuad) EqualVT ¶ added in v0.9.0
func (this *StrictQuad) EqualVT(that *StrictQuad) bool
func (*StrictQuad) GetLabel ¶
func (x *StrictQuad) GetLabel() *StrictQuad_Ref
func (*StrictQuad) GetObject ¶
func (x *StrictQuad) GetObject() *Value
func (*StrictQuad) GetPredicate ¶
func (x *StrictQuad) GetPredicate() *StrictQuad_Ref
func (*StrictQuad) GetSubject ¶
func (x *StrictQuad) GetSubject() *StrictQuad_Ref
func (*StrictQuad) MarshalJSON ¶ added in v0.9.0
func (x *StrictQuad) MarshalJSON() ([]byte, error)
MarshalJSON marshals the StrictQuad to JSON.
func (*StrictQuad) MarshalProtoJSON ¶ added in v0.9.0
func (x *StrictQuad) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the StrictQuad message to JSON.
func (*StrictQuad) MarshalProtoText ¶ added in v0.9.0
func (x *StrictQuad) MarshalProtoText() string
func (*StrictQuad) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *StrictQuad) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StrictQuad) MarshalToVT ¶ added in v0.9.0
func (m *StrictQuad) MarshalToVT(dAtA []byte) (int, error)
func (*StrictQuad) MarshalVT ¶ added in v0.9.0
func (m *StrictQuad) MarshalVT() (dAtA []byte, err error)
func (*StrictQuad) ProtoMessage ¶
func (*StrictQuad) ProtoMessage()
func (*StrictQuad) Reset ¶
func (x *StrictQuad) Reset()
func (*StrictQuad) SizeVT ¶ added in v0.9.0
func (m *StrictQuad) SizeVT() (n int)
func (*StrictQuad) String ¶
func (x *StrictQuad) String() string
func (*StrictQuad) ToNative ¶
func (m *StrictQuad) ToNative() (q quad.Quad)
ToNative converts protobuf StrictQuad to quad.Quad.
func (*StrictQuad) UnmarshalJSON ¶ added in v0.9.0
func (x *StrictQuad) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the StrictQuad from JSON.
func (*StrictQuad) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *StrictQuad) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the StrictQuad message from JSON.
func (*StrictQuad) UnmarshalVT ¶ added in v0.9.0
func (m *StrictQuad) UnmarshalVT(dAtA []byte) error
type StrictQuadRaw ¶ added in v0.9.0
type StrictQuadRaw struct { Subject []byte `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate []byte `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object []byte `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label []byte `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
StrictQuadRaw is the same as StrictQuad, but doesn't decode underlying values.
func (*StrictQuadRaw) CloneMessageVT ¶ added in v0.9.0
func (m *StrictQuadRaw) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*StrictQuadRaw) CloneVT ¶ added in v0.9.0
func (m *StrictQuadRaw) CloneVT() *StrictQuadRaw
func (*StrictQuadRaw) EqualMessageVT ¶ added in v0.9.0
func (this *StrictQuadRaw) EqualMessageVT(thatMsg any) bool
func (*StrictQuadRaw) EqualVT ¶ added in v0.9.0
func (this *StrictQuadRaw) EqualVT(that *StrictQuadRaw) bool
func (*StrictQuadRaw) GetLabel ¶ added in v0.9.0
func (x *StrictQuadRaw) GetLabel() []byte
func (*StrictQuadRaw) GetObject ¶ added in v0.9.0
func (x *StrictQuadRaw) GetObject() []byte
func (*StrictQuadRaw) GetPredicate ¶ added in v0.9.0
func (x *StrictQuadRaw) GetPredicate() []byte
func (*StrictQuadRaw) GetSubject ¶ added in v0.9.0
func (x *StrictQuadRaw) GetSubject() []byte
func (*StrictQuadRaw) MarshalJSON ¶ added in v0.9.0
func (x *StrictQuadRaw) MarshalJSON() ([]byte, error)
MarshalJSON marshals the StrictQuadRaw to JSON.
func (*StrictQuadRaw) MarshalProtoJSON ¶ added in v0.9.0
func (x *StrictQuadRaw) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the StrictQuadRaw message to JSON.
func (*StrictQuadRaw) MarshalProtoText ¶ added in v0.9.0
func (x *StrictQuadRaw) MarshalProtoText() string
func (*StrictQuadRaw) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *StrictQuadRaw) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StrictQuadRaw) MarshalToVT ¶ added in v0.9.0
func (m *StrictQuadRaw) MarshalToVT(dAtA []byte) (int, error)
func (*StrictQuadRaw) MarshalVT ¶ added in v0.9.0
func (m *StrictQuadRaw) MarshalVT() (dAtA []byte, err error)
func (*StrictQuadRaw) ProtoMessage ¶ added in v0.9.0
func (*StrictQuadRaw) ProtoMessage()
func (*StrictQuadRaw) Reset ¶ added in v0.9.0
func (x *StrictQuadRaw) Reset()
func (*StrictQuadRaw) SizeVT ¶ added in v0.9.0
func (m *StrictQuadRaw) SizeVT() (n int)
func (*StrictQuadRaw) String ¶ added in v0.9.0
func (x *StrictQuadRaw) String() string
func (*StrictQuadRaw) UnmarshalJSON ¶ added in v0.9.0
func (x *StrictQuadRaw) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the StrictQuadRaw from JSON.
func (*StrictQuadRaw) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *StrictQuadRaw) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the StrictQuadRaw message from JSON.
func (*StrictQuadRaw) UnmarshalVT ¶ added in v0.9.0
func (m *StrictQuadRaw) UnmarshalVT(dAtA []byte) error
type StrictQuad_Ref ¶
type StrictQuad_Ref struct { // Types that are assignable to Value: // // *StrictQuad_Ref_BnodeLabel // *StrictQuad_Ref_Iri Value isStrictQuad_Ref_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*StrictQuad_Ref) CloneMessageVT ¶ added in v0.9.0
func (m *StrictQuad_Ref) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*StrictQuad_Ref) CloneVT ¶ added in v0.9.0
func (m *StrictQuad_Ref) CloneVT() *StrictQuad_Ref
func (*StrictQuad_Ref) EqualMessageVT ¶ added in v0.9.0
func (this *StrictQuad_Ref) EqualMessageVT(thatMsg any) bool
func (*StrictQuad_Ref) EqualVT ¶ added in v0.9.0
func (this *StrictQuad_Ref) EqualVT(that *StrictQuad_Ref) bool
func (*StrictQuad_Ref) GetBnodeLabel ¶
func (x *StrictQuad_Ref) GetBnodeLabel() string
func (*StrictQuad_Ref) GetIri ¶
func (x *StrictQuad_Ref) GetIri() string
func (*StrictQuad_Ref) GetValue ¶
func (m *StrictQuad_Ref) GetValue() isStrictQuad_Ref_Value
func (*StrictQuad_Ref) MarshalJSON ¶ added in v0.9.0
func (x *StrictQuad_Ref) MarshalJSON() ([]byte, error)
MarshalJSON marshals the StrictQuad_Ref to JSON.
func (*StrictQuad_Ref) MarshalProtoJSON ¶ added in v0.9.0
func (x *StrictQuad_Ref) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the StrictQuad_Ref message to JSON.
func (*StrictQuad_Ref) MarshalProtoText ¶ added in v0.9.0
func (x *StrictQuad_Ref) MarshalProtoText() string
func (*StrictQuad_Ref) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *StrictQuad_Ref) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StrictQuad_Ref) MarshalToVT ¶ added in v0.9.0
func (m *StrictQuad_Ref) MarshalToVT(dAtA []byte) (int, error)
func (*StrictQuad_Ref) MarshalVT ¶ added in v0.9.0
func (m *StrictQuad_Ref) MarshalVT() (dAtA []byte, err error)
func (*StrictQuad_Ref) ProtoMessage ¶
func (*StrictQuad_Ref) ProtoMessage()
func (*StrictQuad_Ref) Reset ¶
func (x *StrictQuad_Ref) Reset()
func (*StrictQuad_Ref) SizeVT ¶ added in v0.9.0
func (m *StrictQuad_Ref) SizeVT() (n int)
func (*StrictQuad_Ref) String ¶
func (x *StrictQuad_Ref) String() string
func (*StrictQuad_Ref) ToNative ¶
func (m *StrictQuad_Ref) ToNative() (qv quad.Value)
ToNative converts protobuf Value to quad.Value.
func (*StrictQuad_Ref) UnmarshalJSON ¶ added in v0.9.0
func (x *StrictQuad_Ref) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the StrictQuad_Ref from JSON.
func (*StrictQuad_Ref) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *StrictQuad_Ref) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the StrictQuad_Ref message from JSON.
func (*StrictQuad_Ref) UnmarshalVT ¶ added in v0.9.0
func (m *StrictQuad_Ref) UnmarshalVT(dAtA []byte) error
type StrictQuad_Ref_BnodeLabel ¶
type StrictQuad_Ref_BnodeLabel struct {
BnodeLabel string `protobuf:"bytes,2,opt,name=bnode_label,json=bnodeLabel,proto3,oneof"`
}
func (*StrictQuad_Ref_BnodeLabel) CloneOneofVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_BnodeLabel) CloneOneofVT() isStrictQuad_Ref_Value
func (*StrictQuad_Ref_BnodeLabel) CloneVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_BnodeLabel) CloneVT() *StrictQuad_Ref_BnodeLabel
func (*StrictQuad_Ref_BnodeLabel) EqualVT ¶ added in v0.9.0
func (this *StrictQuad_Ref_BnodeLabel) EqualVT(thatIface isStrictQuad_Ref_Value) bool
func (*StrictQuad_Ref_BnodeLabel) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_BnodeLabel) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StrictQuad_Ref_BnodeLabel) MarshalToVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_BnodeLabel) MarshalToVT(dAtA []byte) (int, error)
func (*StrictQuad_Ref_BnodeLabel) SizeVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_BnodeLabel) SizeVT() (n int)
type StrictQuad_Ref_Iri ¶
type StrictQuad_Ref_Iri struct {
Iri string `protobuf:"bytes,3,opt,name=iri,proto3,oneof"`
}
func (*StrictQuad_Ref_Iri) CloneOneofVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_Iri) CloneOneofVT() isStrictQuad_Ref_Value
func (*StrictQuad_Ref_Iri) CloneVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_Iri) CloneVT() *StrictQuad_Ref_Iri
func (*StrictQuad_Ref_Iri) EqualVT ¶ added in v0.9.0
func (this *StrictQuad_Ref_Iri) EqualVT(thatIface isStrictQuad_Ref_Value) bool
func (*StrictQuad_Ref_Iri) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_Iri) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StrictQuad_Ref_Iri) MarshalToVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_Iri) MarshalToVT(dAtA []byte) (int, error)
func (*StrictQuad_Ref_Iri) SizeVT ¶ added in v0.9.0
func (m *StrictQuad_Ref_Iri) SizeVT() (n int)
type Value ¶
type Value struct { // Types that are assignable to Value: // // *Value_Raw // *Value_Str // *Value_Iri // *Value_Bnode // *Value_TypedStr // *Value_LangStr // *Value_Int // *Value_Float // *Value_Boolean // *Value_Time Value isValue_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*Value) CloneMessageVT ¶ added in v0.9.0
func (m *Value) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Value) EqualMessageVT ¶ added in v0.9.0
func (*Value) GetBoolean ¶
func (*Value) GetLangStr ¶
func (x *Value) GetLangStr() *Value_LangString
func (*Value) GetTime ¶
func (x *Value) GetTime() *Value_Timestamp
func (*Value) GetTypedStr ¶
func (x *Value) GetTypedStr() *Value_TypedString
func (*Value) MarshalJSON ¶ added in v0.9.0
MarshalJSON marshals the Value to JSON.
func (*Value) MarshalProtoJSON ¶ added in v0.9.0
func (x *Value) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Value message to JSON.
func (*Value) MarshalProtoText ¶ added in v0.9.0
func (*Value) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) UnmarshalJSON ¶ added in v0.9.0
UnmarshalJSON unmarshals the Value from JSON.
func (*Value) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *Value) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Value message from JSON.
func (*Value) UnmarshalVT ¶ added in v0.9.0
type Value_Bnode ¶
type Value_Bnode struct {
Bnode string `protobuf:"bytes,4,opt,name=bnode,proto3,oneof"`
}
func (*Value_Bnode) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Bnode) CloneOneofVT() isValue_Value
func (*Value_Bnode) CloneVT ¶ added in v0.9.0
func (m *Value_Bnode) CloneVT() *Value_Bnode
func (*Value_Bnode) EqualVT ¶ added in v0.9.0
func (this *Value_Bnode) EqualVT(thatIface isValue_Value) bool
func (*Value_Bnode) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_Bnode) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_Bnode) MarshalToVT ¶ added in v0.9.0
func (m *Value_Bnode) MarshalToVT(dAtA []byte) (int, error)
func (*Value_Bnode) SizeVT ¶ added in v0.9.0
func (m *Value_Bnode) SizeVT() (n int)
type Value_Boolean ¶
type Value_Boolean struct {
Boolean bool `protobuf:"varint,9,opt,name=boolean,proto3,oneof"`
}
func (*Value_Boolean) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Boolean) CloneOneofVT() isValue_Value
func (*Value_Boolean) CloneVT ¶ added in v0.9.0
func (m *Value_Boolean) CloneVT() *Value_Boolean
func (*Value_Boolean) EqualVT ¶ added in v0.9.0
func (this *Value_Boolean) EqualVT(thatIface isValue_Value) bool
func (*Value_Boolean) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_Boolean) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_Boolean) MarshalToVT ¶ added in v0.9.0
func (m *Value_Boolean) MarshalToVT(dAtA []byte) (int, error)
func (*Value_Boolean) SizeVT ¶ added in v0.9.0
func (m *Value_Boolean) SizeVT() (n int)
type Value_Float ¶
type Value_Float struct {
Float float64 `protobuf:"fixed64,8,opt,name=float,proto3,oneof"`
}
func (*Value_Float) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Float) CloneOneofVT() isValue_Value
func (*Value_Float) CloneVT ¶ added in v0.9.0
func (m *Value_Float) CloneVT() *Value_Float
func (*Value_Float) EqualVT ¶ added in v0.9.0
func (this *Value_Float) EqualVT(thatIface isValue_Value) bool
func (*Value_Float) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_Float) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_Float) MarshalToVT ¶ added in v0.9.0
func (m *Value_Float) MarshalToVT(dAtA []byte) (int, error)
func (*Value_Float) SizeVT ¶ added in v0.9.0
func (m *Value_Float) SizeVT() (n int)
type Value_Int ¶
type Value_Int struct {
Int int64 `protobuf:"varint,7,opt,name=int,proto3,oneof"`
}
func (*Value_Int) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Int) CloneOneofVT() isValue_Value
func (*Value_Int) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*Value_Int) MarshalToVT ¶ added in v0.9.0
type Value_Iri ¶
type Value_Iri struct {
Iri string `protobuf:"bytes,3,opt,name=iri,proto3,oneof"`
}
func (*Value_Iri) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Iri) CloneOneofVT() isValue_Value
func (*Value_Iri) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*Value_Iri) MarshalToVT ¶ added in v0.9.0
type Value_LangStr ¶
type Value_LangStr struct {
LangStr *Value_LangString `protobuf:"bytes,6,opt,name=lang_str,json=langStr,proto3,oneof"`
}
func (*Value_LangStr) CloneOneofVT ¶ added in v0.9.0
func (m *Value_LangStr) CloneOneofVT() isValue_Value
func (*Value_LangStr) CloneVT ¶ added in v0.9.0
func (m *Value_LangStr) CloneVT() *Value_LangStr
func (*Value_LangStr) EqualVT ¶ added in v0.9.0
func (this *Value_LangStr) EqualVT(thatIface isValue_Value) bool
func (*Value_LangStr) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_LangStr) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_LangStr) MarshalToVT ¶ added in v0.9.0
func (m *Value_LangStr) MarshalToVT(dAtA []byte) (int, error)
func (*Value_LangStr) SizeVT ¶ added in v0.9.0
func (m *Value_LangStr) SizeVT() (n int)
type Value_LangString ¶
type Value_LangString struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` // contains filtered or unexported fields }
func (*Value_LangString) CloneMessageVT ¶ added in v0.9.0
func (m *Value_LangString) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Value_LangString) CloneVT ¶ added in v0.9.0
func (m *Value_LangString) CloneVT() *Value_LangString
func (*Value_LangString) EqualMessageVT ¶ added in v0.9.0
func (this *Value_LangString) EqualMessageVT(thatMsg any) bool
func (*Value_LangString) EqualVT ¶ added in v0.9.0
func (this *Value_LangString) EqualVT(that *Value_LangString) bool
func (*Value_LangString) GetLang ¶ added in v0.9.0
func (x *Value_LangString) GetLang() string
func (*Value_LangString) GetValue ¶ added in v0.9.0
func (x *Value_LangString) GetValue() string
func (*Value_LangString) MarshalJSON ¶ added in v0.9.0
func (x *Value_LangString) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Value_LangString to JSON.
func (*Value_LangString) MarshalProtoJSON ¶ added in v0.9.0
func (x *Value_LangString) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Value_LangString message to JSON.
func (*Value_LangString) MarshalProtoText ¶ added in v0.9.0
func (x *Value_LangString) MarshalProtoText() string
func (*Value_LangString) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_LangString) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_LangString) MarshalToVT ¶ added in v0.9.0
func (m *Value_LangString) MarshalToVT(dAtA []byte) (int, error)
func (*Value_LangString) MarshalVT ¶ added in v0.9.0
func (m *Value_LangString) MarshalVT() (dAtA []byte, err error)
func (*Value_LangString) ProtoMessage ¶
func (*Value_LangString) ProtoMessage()
func (*Value_LangString) Reset ¶
func (x *Value_LangString) Reset()
func (*Value_LangString) SizeVT ¶ added in v0.9.0
func (m *Value_LangString) SizeVT() (n int)
func (*Value_LangString) String ¶
func (x *Value_LangString) String() string
func (*Value_LangString) UnmarshalJSON ¶ added in v0.9.0
func (x *Value_LangString) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Value_LangString from JSON.
func (*Value_LangString) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *Value_LangString) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Value_LangString message from JSON.
func (*Value_LangString) UnmarshalVT ¶ added in v0.9.0
func (m *Value_LangString) UnmarshalVT(dAtA []byte) error
type Value_Raw ¶
type Value_Raw struct {
Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3,oneof"`
}
func (*Value_Raw) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Raw) CloneOneofVT() isValue_Value
func (*Value_Raw) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*Value_Raw) MarshalToVT ¶ added in v0.9.0
type Value_Str ¶
type Value_Str struct {
Str string `protobuf:"bytes,2,opt,name=str,proto3,oneof"`
}
func (*Value_Str) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Str) CloneOneofVT() isValue_Value
func (*Value_Str) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*Value_Str) MarshalToVT ¶ added in v0.9.0
type Value_Time ¶
type Value_Time struct {
Time *Value_Timestamp `protobuf:"bytes,10,opt,name=time,proto3,oneof"`
}
func (*Value_Time) CloneOneofVT ¶ added in v0.9.0
func (m *Value_Time) CloneOneofVT() isValue_Value
func (*Value_Time) CloneVT ¶ added in v0.9.0
func (m *Value_Time) CloneVT() *Value_Time
func (*Value_Time) EqualVT ¶ added in v0.9.0
func (this *Value_Time) EqualVT(thatIface isValue_Value) bool
func (*Value_Time) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_Time) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_Time) MarshalToVT ¶ added in v0.9.0
func (m *Value_Time) MarshalToVT(dAtA []byte) (int, error)
func (*Value_Time) SizeVT ¶ added in v0.9.0
func (m *Value_Time) SizeVT() (n int)
type Value_Timestamp ¶
type Value_Timestamp struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` // contains filtered or unexported fields }
func (*Value_Timestamp) CloneMessageVT ¶ added in v0.9.0
func (m *Value_Timestamp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Value_Timestamp) CloneVT ¶ added in v0.9.0
func (m *Value_Timestamp) CloneVT() *Value_Timestamp
func (*Value_Timestamp) EqualMessageVT ¶ added in v0.9.0
func (this *Value_Timestamp) EqualMessageVT(thatMsg any) bool
func (*Value_Timestamp) EqualVT ¶ added in v0.9.0
func (this *Value_Timestamp) EqualVT(that *Value_Timestamp) bool
func (*Value_Timestamp) GetNanos ¶ added in v0.9.0
func (x *Value_Timestamp) GetNanos() int32
func (*Value_Timestamp) GetSeconds ¶ added in v0.9.0
func (x *Value_Timestamp) GetSeconds() int64
func (*Value_Timestamp) MarshalJSON ¶ added in v0.9.0
func (x *Value_Timestamp) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Value_Timestamp to JSON.
func (*Value_Timestamp) MarshalProtoJSON ¶ added in v0.9.0
func (x *Value_Timestamp) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Value_Timestamp message to JSON.
func (*Value_Timestamp) MarshalProtoText ¶ added in v0.9.0
func (x *Value_Timestamp) MarshalProtoText() string
func (*Value_Timestamp) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_Timestamp) MarshalToVT ¶ added in v0.9.0
func (m *Value_Timestamp) MarshalToVT(dAtA []byte) (int, error)
func (*Value_Timestamp) MarshalVT ¶ added in v0.9.0
func (m *Value_Timestamp) MarshalVT() (dAtA []byte, err error)
func (*Value_Timestamp) ProtoMessage ¶
func (*Value_Timestamp) ProtoMessage()
func (*Value_Timestamp) Reset ¶
func (x *Value_Timestamp) Reset()
func (*Value_Timestamp) SizeVT ¶ added in v0.9.0
func (m *Value_Timestamp) SizeVT() (n int)
func (*Value_Timestamp) String ¶
func (x *Value_Timestamp) String() string
func (*Value_Timestamp) UnmarshalJSON ¶ added in v0.9.0
func (x *Value_Timestamp) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Value_Timestamp from JSON.
func (*Value_Timestamp) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *Value_Timestamp) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Value_Timestamp message from JSON.
func (*Value_Timestamp) UnmarshalVT ¶ added in v0.9.0
func (m *Value_Timestamp) UnmarshalVT(dAtA []byte) error
type Value_TypedStr ¶
type Value_TypedStr struct {
TypedStr *Value_TypedString `protobuf:"bytes,5,opt,name=typed_str,json=typedStr,proto3,oneof"`
}
func (*Value_TypedStr) CloneOneofVT ¶ added in v0.9.0
func (m *Value_TypedStr) CloneOneofVT() isValue_Value
func (*Value_TypedStr) CloneVT ¶ added in v0.9.0
func (m *Value_TypedStr) CloneVT() *Value_TypedStr
func (*Value_TypedStr) EqualVT ¶ added in v0.9.0
func (this *Value_TypedStr) EqualVT(thatIface isValue_Value) bool
func (*Value_TypedStr) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_TypedStr) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_TypedStr) MarshalToVT ¶ added in v0.9.0
func (m *Value_TypedStr) MarshalToVT(dAtA []byte) (int, error)
func (*Value_TypedStr) SizeVT ¶ added in v0.9.0
func (m *Value_TypedStr) SizeVT() (n int)
type Value_TypedString ¶
type Value_TypedString struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Value_TypedString) CloneMessageVT ¶ added in v0.9.0
func (m *Value_TypedString) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Value_TypedString) CloneVT ¶ added in v0.9.0
func (m *Value_TypedString) CloneVT() *Value_TypedString
func (*Value_TypedString) EqualMessageVT ¶ added in v0.9.0
func (this *Value_TypedString) EqualMessageVT(thatMsg any) bool
func (*Value_TypedString) EqualVT ¶ added in v0.9.0
func (this *Value_TypedString) EqualVT(that *Value_TypedString) bool
func (*Value_TypedString) GetType ¶ added in v0.9.0
func (x *Value_TypedString) GetType() string
func (*Value_TypedString) GetValue ¶ added in v0.9.0
func (x *Value_TypedString) GetValue() string
func (*Value_TypedString) MarshalJSON ¶ added in v0.9.0
func (x *Value_TypedString) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Value_TypedString to JSON.
func (*Value_TypedString) MarshalProtoJSON ¶ added in v0.9.0
func (x *Value_TypedString) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Value_TypedString message to JSON.
func (*Value_TypedString) MarshalProtoText ¶ added in v0.9.0
func (x *Value_TypedString) MarshalProtoText() string
func (*Value_TypedString) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *Value_TypedString) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Value_TypedString) MarshalToVT ¶ added in v0.9.0
func (m *Value_TypedString) MarshalToVT(dAtA []byte) (int, error)
func (*Value_TypedString) MarshalVT ¶ added in v0.9.0
func (m *Value_TypedString) MarshalVT() (dAtA []byte, err error)
func (*Value_TypedString) ProtoMessage ¶
func (*Value_TypedString) ProtoMessage()
func (*Value_TypedString) Reset ¶
func (x *Value_TypedString) Reset()
func (*Value_TypedString) SizeVT ¶ added in v0.9.0
func (m *Value_TypedString) SizeVT() (n int)
func (*Value_TypedString) String ¶
func (x *Value_TypedString) String() string
func (*Value_TypedString) UnmarshalJSON ¶ added in v0.9.0
func (x *Value_TypedString) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Value_TypedString from JSON.
func (*Value_TypedString) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *Value_TypedString) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Value_TypedString message from JSON.
func (*Value_TypedString) UnmarshalVT ¶ added in v0.9.0
func (m *Value_TypedString) UnmarshalVT(dAtA []byte) error
type WireQuad ¶
type WireQuad struct { Subject *Value `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate *Value `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object *Value `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label *Value `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
WireQuad is a quad that allows any value for it's directions.
func (*WireQuad) CloneMessageVT ¶ added in v0.9.0
func (m *WireQuad) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*WireQuad) EqualMessageVT ¶ added in v0.9.0
func (*WireQuad) GetPredicate ¶
func (*WireQuad) GetSubject ¶
func (*WireQuad) MarshalJSON ¶ added in v0.9.0
MarshalJSON marshals the WireQuad to JSON.
func (*WireQuad) MarshalProtoJSON ¶ added in v0.9.0
func (x *WireQuad) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the WireQuad message to JSON.
func (*WireQuad) MarshalProtoText ¶ added in v0.9.0
func (*WireQuad) MarshalToSizedBufferVT ¶ added in v0.9.0
func (*WireQuad) MarshalToVT ¶ added in v0.9.0
func (*WireQuad) ProtoMessage ¶
func (*WireQuad) ProtoMessage()
func (*WireQuad) UnmarshalJSON ¶ added in v0.9.0
UnmarshalJSON unmarshals the WireQuad from JSON.
func (*WireQuad) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *WireQuad) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the WireQuad message from JSON.
func (*WireQuad) UnmarshalVT ¶ added in v0.9.0
type WireQuadRaw ¶ added in v0.9.0
type WireQuadRaw struct { Subject []byte `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate []byte `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` Object []byte `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"` Label []byte `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
WireQuadRaw is the same as WireQuad, but doesn't decode underlying values.
func (*WireQuadRaw) CloneMessageVT ¶ added in v0.9.0
func (m *WireQuadRaw) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*WireQuadRaw) CloneVT ¶ added in v0.9.0
func (m *WireQuadRaw) CloneVT() *WireQuadRaw
func (*WireQuadRaw) EqualMessageVT ¶ added in v0.9.0
func (this *WireQuadRaw) EqualMessageVT(thatMsg any) bool
func (*WireQuadRaw) EqualVT ¶ added in v0.9.0
func (this *WireQuadRaw) EqualVT(that *WireQuadRaw) bool
func (*WireQuadRaw) GetLabel ¶ added in v0.9.0
func (x *WireQuadRaw) GetLabel() []byte
func (*WireQuadRaw) GetObject ¶ added in v0.9.0
func (x *WireQuadRaw) GetObject() []byte
func (*WireQuadRaw) GetPredicate ¶ added in v0.9.0
func (x *WireQuadRaw) GetPredicate() []byte
func (*WireQuadRaw) GetSubject ¶ added in v0.9.0
func (x *WireQuadRaw) GetSubject() []byte
func (*WireQuadRaw) MarshalJSON ¶ added in v0.9.0
func (x *WireQuadRaw) MarshalJSON() ([]byte, error)
MarshalJSON marshals the WireQuadRaw to JSON.
func (*WireQuadRaw) MarshalProtoJSON ¶ added in v0.9.0
func (x *WireQuadRaw) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the WireQuadRaw message to JSON.
func (*WireQuadRaw) MarshalProtoText ¶ added in v0.9.0
func (x *WireQuadRaw) MarshalProtoText() string
func (*WireQuadRaw) MarshalToSizedBufferVT ¶ added in v0.9.0
func (m *WireQuadRaw) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*WireQuadRaw) MarshalToVT ¶ added in v0.9.0
func (m *WireQuadRaw) MarshalToVT(dAtA []byte) (int, error)
func (*WireQuadRaw) MarshalVT ¶ added in v0.9.0
func (m *WireQuadRaw) MarshalVT() (dAtA []byte, err error)
func (*WireQuadRaw) ProtoMessage ¶ added in v0.9.0
func (*WireQuadRaw) ProtoMessage()
func (*WireQuadRaw) Reset ¶ added in v0.9.0
func (x *WireQuadRaw) Reset()
func (*WireQuadRaw) SizeVT ¶ added in v0.9.0
func (m *WireQuadRaw) SizeVT() (n int)
func (*WireQuadRaw) String ¶ added in v0.9.0
func (x *WireQuadRaw) String() string
func (*WireQuadRaw) UnmarshalJSON ¶ added in v0.9.0
func (x *WireQuadRaw) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the WireQuadRaw from JSON.
func (*WireQuadRaw) UnmarshalProtoJSON ¶ added in v0.9.0
func (x *WireQuadRaw) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the WireQuadRaw message from JSON.
func (*WireQuadRaw) UnmarshalVT ¶ added in v0.9.0
func (m *WireQuadRaw) UnmarshalVT(dAtA []byte) error