Help us shape the future of Go! Take the 2026 Go Developer Survey

quad

package
v0.57.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuadBlock

func NewQuadBlock() block.Block

NewQuadBlock constructs a new object block.

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) Clone

func (o *Quad) Clone() *Quad

Clone clones the graph quad.

func (*Quad) CloneMessageVT

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

func (*Quad) CloneVT

func (m *Quad) CloneVT() *Quad

func (*Quad) EqualMessageVT

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

func (*Quad) EqualVT

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

func (*Quad) GetLabel

func (x *Quad) GetLabel() string

func (*Quad) GetObj

func (x *Quad) GetObj() string

func (*Quad) GetPredicate

func (x *Quad) GetPredicate() string

func (*Quad) GetSubject

func (x *Quad) GetSubject() string

func (*Quad) IsEmpty

func (o *Quad) IsEmpty() bool

IsEmpty checks if the graph quad is empty. Considered empty if subject, predicate, or object fields are empty.

func (*Quad) MarshalBlock

func (o *Quad) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary. This is the initial step of marshaling, before transformations.

func (*Quad) MarshalJSON

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

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 (x *Quad) MarshalProtoText() string

func (*Quad) MarshalToSizedBufferVT

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

func (*Quad) MarshalToVT

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

func (*Quad) MarshalVT

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

func (*Quad) ProtoMessage

func (*Quad) ProtoMessage()

func (*Quad) Reset

func (x *Quad) Reset()

func (*Quad) SizeVT

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

func (*Quad) String

func (x *Quad) String() string

func (*Quad) UnmarshalBlock

func (o *Quad) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block to the object. This is the final step of decoding, after transformations.

func (*Quad) UnmarshalJSON

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

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

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

Jump to

Keyboard shortcuts

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