Documentation
¶
Index ¶
- func NewQuadBlock() block.Block
- type Quad
- func (o *Quad) Clone() *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) GetObj() string
- func (x *Quad) GetPredicate() string
- func (x *Quad) GetSubject() string
- func (o *Quad) IsEmpty() bool
- func (o *Quad) MarshalBlock() ([]byte, error)
- 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 (o *Quad) UnmarshalBlock(data []byte) error
- func (x *Quad) UnmarshalJSON(b []byte) error
- func (x *Quad) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Quad) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Quad ¶
type Quad struct {
// Subject is the subject field.
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
// Predicate is the object field.
Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
// Obj is the object field.
Obj string `protobuf:"bytes,3,opt,name=obj,proto3" json:"obj,omitempty"`
// Label is the label field.
Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
Quad implements a graph quad backed by a protobuf.
func (*Quad) CloneMessageVT ¶
func (m *Quad) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Quad) EqualMessageVT ¶
func (*Quad) GetPredicate ¶
func (*Quad) GetSubject ¶
func (*Quad) IsEmpty ¶
IsEmpty checks if the graph quad is empty. Considered empty if subject, predicate, or object fields are empty.
func (*Quad) MarshalBlock ¶
MarshalBlock marshals the block to binary. This is the initial step of marshaling, before transformations.
func (*Quad) MarshalJSON ¶
MarshalJSON marshals the Quad to JSON.
func (*Quad) MarshalProtoJSON ¶
func (x *Quad) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Quad message to JSON.
func (*Quad) MarshalProtoText ¶
func (*Quad) MarshalToSizedBufferVT ¶
func (*Quad) ProtoMessage ¶
func (*Quad) ProtoMessage()
func (*Quad) UnmarshalBlock ¶
UnmarshalBlock unmarshals the block to the object. This is the final step of decoding, after transformations.
func (*Quad) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Quad from JSON.
func (*Quad) UnmarshalProtoJSON ¶
func (x *Quad) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Quad message from JSON.
func (*Quad) UnmarshalVT ¶
Click to show internal directories.
Click to hide internal directories.