graphv1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeKind_name = map[int32]string{
		0: "NODE_KIND_UNSPECIFIED",
		1: "NODE_KIND_REPOSITORY",
		2: "NODE_KIND_FILE",
		3: "NODE_KIND_SYMBOL",
	}
	NodeKind_value = map[string]int32{
		"NODE_KIND_UNSPECIFIED": 0,
		"NODE_KIND_REPOSITORY":  1,
		"NODE_KIND_FILE":        2,
		"NODE_KIND_SYMBOL":      3,
	}
)

Enum value maps for NodeKind.

View Source
var (
	EdgeKind_name = map[int32]string{
		0: "EDGE_KIND_UNSPECIFIED",
		1: "EDGE_KIND_CONTAINS",
		2: "EDGE_KIND_IMPORTS",
		3: "EDGE_KIND_REFERENCES",
		4: "EDGE_KIND_CALLS",
		5: "EDGE_KIND_EXTENDS",
		6: "EDGE_KIND_IMPLEMENTS",
	}
	EdgeKind_value = map[string]int32{
		"EDGE_KIND_UNSPECIFIED": 0,
		"EDGE_KIND_CONTAINS":    1,
		"EDGE_KIND_IMPORTS":     2,
		"EDGE_KIND_REFERENCES":  3,
		"EDGE_KIND_CALLS":       4,
		"EDGE_KIND_EXTENDS":     5,
		"EDGE_KIND_IMPLEMENTS":  6,
	}
)

Enum value maps for EdgeKind.

View Source
var File_artifact_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Analyzer) Descriptor deprecated

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

Deprecated: Use Analyzer.ProtoReflect.Descriptor instead.

func (*Analyzer) GetName

func (x *Analyzer) GetName() string

func (*Analyzer) GetVersion

func (x *Analyzer) GetVersion() string

func (*Analyzer) ProtoMessage

func (*Analyzer) ProtoMessage()

func (*Analyzer) ProtoReflect

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

func (*Analyzer) Reset

func (x *Analyzer) Reset()

func (*Analyzer) String

func (x *Analyzer) String() string

type Artifact

type Artifact struct {
	SchemaVersion uint32    `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	RepositoryId  int64     `protobuf:"varint,2,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`
	Commit        string    `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
	ContentHash   []byte    `protobuf:"bytes,4,opt,name=content_hash,json=contentHash,proto3" json:"content_hash,omitempty"`
	Analyzer      *Analyzer `protobuf:"bytes,5,opt,name=analyzer,proto3" json:"analyzer,omitempty"`
	Nodes         []*Node   `protobuf:"bytes,6,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Edges         []*Edge   `protobuf:"bytes,7,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*Artifact) Descriptor deprecated

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

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetAnalyzer

func (x *Artifact) GetAnalyzer() *Analyzer

func (*Artifact) GetCommit

func (x *Artifact) GetCommit() string

func (*Artifact) GetContentHash

func (x *Artifact) GetContentHash() []byte

func (*Artifact) GetEdges

func (x *Artifact) GetEdges() []*Edge

func (*Artifact) GetNodes

func (x *Artifact) GetNodes() []*Node

func (*Artifact) GetRepositoryId

func (x *Artifact) GetRepositoryId() int64

func (*Artifact) GetSchemaVersion

func (x *Artifact) GetSchemaVersion() uint32

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

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

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

type Edge

type Edge struct {
	SourceUid        string   `protobuf:"bytes,1,opt,name=source_uid,json=sourceUid,proto3" json:"source_uid,omitempty"`
	TargetUid        string   `protobuf:"bytes,2,opt,name=target_uid,json=targetUid,proto3" json:"target_uid,omitempty"`
	Kind             EdgeKind `protobuf:"varint,3,opt,name=kind,proto3,enum=graphnest.graph.v1.EdgeKind" json:"kind,omitempty"`
	Path             string   `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Range            *Range   `protobuf:"bytes,5,opt,name=range,proto3" json:"range,omitempty"`
	Confidence       float32  `protobuf:"fixed32,6,opt,name=confidence,proto3" json:"confidence,omitempty"`
	ResolutionReason string   `protobuf:"bytes,7,opt,name=resolution_reason,json=resolutionReason,proto3" json:"resolution_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Edge) Descriptor deprecated

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

Deprecated: Use Edge.ProtoReflect.Descriptor instead.

func (*Edge) GetConfidence

func (x *Edge) GetConfidence() float32

func (*Edge) GetKind

func (x *Edge) GetKind() EdgeKind

func (*Edge) GetPath

func (x *Edge) GetPath() string

func (*Edge) GetRange

func (x *Edge) GetRange() *Range

func (*Edge) GetResolutionReason

func (x *Edge) GetResolutionReason() string

func (*Edge) GetSourceUid

func (x *Edge) GetSourceUid() string

func (*Edge) GetTargetUid

func (x *Edge) GetTargetUid() string

func (*Edge) ProtoMessage

func (*Edge) ProtoMessage()

func (*Edge) ProtoReflect

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

func (*Edge) Reset

func (x *Edge) Reset()

func (*Edge) String

func (x *Edge) String() string

type EdgeKind

type EdgeKind int32
const (
	EdgeKind_EDGE_KIND_UNSPECIFIED EdgeKind = 0
	EdgeKind_EDGE_KIND_CONTAINS    EdgeKind = 1
	EdgeKind_EDGE_KIND_IMPORTS     EdgeKind = 2
	EdgeKind_EDGE_KIND_REFERENCES  EdgeKind = 3
	EdgeKind_EDGE_KIND_CALLS       EdgeKind = 4
	EdgeKind_EDGE_KIND_EXTENDS     EdgeKind = 5
	EdgeKind_EDGE_KIND_IMPLEMENTS  EdgeKind = 6
)

func (EdgeKind) Descriptor

func (EdgeKind) Descriptor() protoreflect.EnumDescriptor

func (EdgeKind) Enum

func (x EdgeKind) Enum() *EdgeKind

func (EdgeKind) EnumDescriptor deprecated

func (EdgeKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use EdgeKind.Descriptor instead.

func (EdgeKind) Number

func (x EdgeKind) Number() protoreflect.EnumNumber

func (EdgeKind) String

func (x EdgeKind) String() string

func (EdgeKind) Type

type Node

type Node struct {
	Uid           string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Kind          NodeKind `protobuf:"varint,2,opt,name=kind,proto3,enum=graphnest.graph.v1.NodeKind" json:"kind,omitempty"`
	Path          string   `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Language      string   `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	SymbolKind    string   `protobuf:"bytes,5,opt,name=symbol_kind,json=symbolKind,proto3" json:"symbol_kind,omitempty"`
	QualifiedName string   `protobuf:"bytes,6,opt,name=qualified_name,json=qualifiedName,proto3" json:"qualified_name,omitempty"`
	Signature     string   `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	ScipSymbol    string   `protobuf:"bytes,8,opt,name=scip_symbol,json=scipSymbol,proto3" json:"scip_symbol,omitempty"`
	Range         *Range   `protobuf:"bytes,9,opt,name=range,proto3" json:"range,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetKind

func (x *Node) GetKind() NodeKind

func (*Node) GetLanguage

func (x *Node) GetLanguage() string

func (*Node) GetPath

func (x *Node) GetPath() string

func (*Node) GetQualifiedName

func (x *Node) GetQualifiedName() string

func (*Node) GetRange

func (x *Node) GetRange() *Range

func (*Node) GetScipSymbol

func (x *Node) GetScipSymbol() string

func (*Node) GetSignature

func (x *Node) GetSignature() string

func (*Node) GetSymbolKind

func (x *Node) GetSymbolKind() string

func (*Node) GetUid

func (x *Node) GetUid() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeKind

type NodeKind int32
const (
	NodeKind_NODE_KIND_UNSPECIFIED NodeKind = 0
	NodeKind_NODE_KIND_REPOSITORY  NodeKind = 1
	NodeKind_NODE_KIND_FILE        NodeKind = 2
	NodeKind_NODE_KIND_SYMBOL      NodeKind = 3
)

func (NodeKind) Descriptor

func (NodeKind) Descriptor() protoreflect.EnumDescriptor

func (NodeKind) Enum

func (x NodeKind) Enum() *NodeKind

func (NodeKind) EnumDescriptor deprecated

func (NodeKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use NodeKind.Descriptor instead.

func (NodeKind) Number

func (x NodeKind) Number() protoreflect.EnumNumber

func (NodeKind) String

func (x NodeKind) String() string

func (NodeKind) Type

type Range

type Range struct {
	StartLine      int32 `protobuf:"varint,1,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"`
	StartCharacter int32 `protobuf:"varint,2,opt,name=start_character,json=startCharacter,proto3" json:"start_character,omitempty"`
	EndLine        int32 `protobuf:"varint,3,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	EndCharacter   int32 `protobuf:"varint,4,opt,name=end_character,json=endCharacter,proto3" json:"end_character,omitempty"`
	// contains filtered or unexported fields
}

func (*Range) Descriptor deprecated

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

Deprecated: Use Range.ProtoReflect.Descriptor instead.

func (*Range) GetEndCharacter

func (x *Range) GetEndCharacter() int32

func (*Range) GetEndLine

func (x *Range) GetEndLine() int32

func (*Range) GetStartCharacter

func (x *Range) GetStartCharacter() int32

func (*Range) GetStartLine

func (x *Range) GetStartLine() int32

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) ProtoReflect

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

func (*Range) Reset

func (x *Range) Reset()

func (*Range) String

func (x *Range) String() string

Jump to

Keyboard shortcuts

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