Documentation ¶
Overview ¶
Package serving_proto is a generated protocol buffer package.
It is generated from these files:
kythe/proto/serving.proto
It has these top-level messages:
Node Edge EdgeGroup PagedEdgeSet PageIndex EdgePage FileDirectory CorpusRoots File RawAnchor ExpandedAnchor FileDecorations PagedCrossReferences
Index ¶
- Variables
- type CorpusRoots
- func (*CorpusRoots) Descriptor() ([]byte, []int)
- func (m *CorpusRoots) GetCorpus() []*CorpusRoots_Corpus
- func (m *CorpusRoots) Marshal() (data []byte, err error)
- func (m *CorpusRoots) MarshalTo(data []byte) (int, error)
- func (*CorpusRoots) ProtoMessage()
- func (m *CorpusRoots) Reset()
- func (m *CorpusRoots) Size() (n int)
- func (m *CorpusRoots) String() string
- func (m *CorpusRoots) Unmarshal(data []byte) error
- type CorpusRoots_Corpus
- func (*CorpusRoots_Corpus) Descriptor() ([]byte, []int)
- func (m *CorpusRoots_Corpus) Marshal() (data []byte, err error)
- func (m *CorpusRoots_Corpus) MarshalTo(data []byte) (int, error)
- func (*CorpusRoots_Corpus) ProtoMessage()
- func (m *CorpusRoots_Corpus) Reset()
- func (m *CorpusRoots_Corpus) Size() (n int)
- func (m *CorpusRoots_Corpus) String() string
- func (m *CorpusRoots_Corpus) Unmarshal(data []byte) error
- type Edge
- func (*Edge) Descriptor() ([]byte, []int)
- func (m *Edge) GetFact() []*kythe_proto_common.Fact
- func (m *Edge) GetSource() *Node
- func (m *Edge) GetTarget() *Node
- func (m *Edge) Marshal() (data []byte, err error)
- func (m *Edge) MarshalTo(data []byte) (int, error)
- func (*Edge) ProtoMessage()
- func (m *Edge) Reset()
- func (m *Edge) Size() (n int)
- func (m *Edge) String() string
- func (m *Edge) Unmarshal(data []byte) error
- type EdgeGroup
- func (*EdgeGroup) Descriptor() ([]byte, []int)
- func (m *EdgeGroup) GetEdge() []*EdgeGroup_Edge
- func (m *EdgeGroup) Marshal() (data []byte, err error)
- func (m *EdgeGroup) MarshalTo(data []byte) (int, error)
- func (*EdgeGroup) ProtoMessage()
- func (m *EdgeGroup) Reset()
- func (m *EdgeGroup) Size() (n int)
- func (m *EdgeGroup) String() string
- func (m *EdgeGroup) Unmarshal(data []byte) error
- type EdgeGroup_Edge
- func (*EdgeGroup_Edge) Descriptor() ([]byte, []int)
- func (m *EdgeGroup_Edge) GetTarget() *Node
- func (m *EdgeGroup_Edge) Marshal() (data []byte, err error)
- func (m *EdgeGroup_Edge) MarshalTo(data []byte) (int, error)
- func (*EdgeGroup_Edge) ProtoMessage()
- func (m *EdgeGroup_Edge) Reset()
- func (m *EdgeGroup_Edge) Size() (n int)
- func (m *EdgeGroup_Edge) String() string
- func (m *EdgeGroup_Edge) Unmarshal(data []byte) error
- type EdgePage
- func (*EdgePage) Descriptor() ([]byte, []int)
- func (m *EdgePage) GetEdgesGroup() *EdgeGroup
- func (m *EdgePage) Marshal() (data []byte, err error)
- func (m *EdgePage) MarshalTo(data []byte) (int, error)
- func (*EdgePage) ProtoMessage()
- func (m *EdgePage) Reset()
- func (m *EdgePage) Size() (n int)
- func (m *EdgePage) String() string
- func (m *EdgePage) Unmarshal(data []byte) error
- type ExpandedAnchor
- func (*ExpandedAnchor) Descriptor() ([]byte, []int)
- func (m *ExpandedAnchor) GetSnippetSpan() *kythe_proto_common.Span
- func (m *ExpandedAnchor) GetSpan() *kythe_proto_common.Span
- func (m *ExpandedAnchor) Marshal() (data []byte, err error)
- func (m *ExpandedAnchor) MarshalTo(data []byte) (int, error)
- func (*ExpandedAnchor) ProtoMessage()
- func (m *ExpandedAnchor) Reset()
- func (m *ExpandedAnchor) Size() (n int)
- func (m *ExpandedAnchor) String() string
- func (m *ExpandedAnchor) Unmarshal(data []byte) error
- type File
- type FileDecorations
- func (*FileDecorations) Descriptor() ([]byte, []int)
- func (m *FileDecorations) GetDecoration() []*FileDecorations_Decoration
- func (m *FileDecorations) GetFile() *File
- func (m *FileDecorations) GetTarget() []*Node
- func (m *FileDecorations) GetTargetDefinitions() []*ExpandedAnchor
- func (m *FileDecorations) Marshal() (data []byte, err error)
- func (m *FileDecorations) MarshalTo(data []byte) (int, error)
- func (*FileDecorations) ProtoMessage()
- func (m *FileDecorations) Reset()
- func (m *FileDecorations) Size() (n int)
- func (m *FileDecorations) String() string
- func (m *FileDecorations) Unmarshal(data []byte) error
- type FileDecorations_Decoration
- func (*FileDecorations_Decoration) Descriptor() ([]byte, []int)
- func (m *FileDecorations_Decoration) GetAnchor() *RawAnchor
- func (m *FileDecorations_Decoration) Marshal() (data []byte, err error)
- func (m *FileDecorations_Decoration) MarshalTo(data []byte) (int, error)
- func (*FileDecorations_Decoration) ProtoMessage()
- func (m *FileDecorations_Decoration) Reset()
- func (m *FileDecorations_Decoration) Size() (n int)
- func (m *FileDecorations_Decoration) String() string
- func (m *FileDecorations_Decoration) Unmarshal(data []byte) error
- type FileDirectory
- func (*FileDirectory) Descriptor() ([]byte, []int)
- func (m *FileDirectory) Marshal() (data []byte, err error)
- func (m *FileDirectory) MarshalTo(data []byte) (int, error)
- func (*FileDirectory) ProtoMessage()
- func (m *FileDirectory) Reset()
- func (m *FileDirectory) Size() (n int)
- func (m *FileDirectory) String() string
- func (m *FileDirectory) Unmarshal(data []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetFact() []*kythe_proto_common.Fact
- func (m *Node) Marshal() (data []byte, err error)
- func (m *Node) MarshalTo(data []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(data []byte) error
- type PageIndex
- func (*PageIndex) Descriptor() ([]byte, []int)
- func (m *PageIndex) Marshal() (data []byte, err error)
- func (m *PageIndex) MarshalTo(data []byte) (int, error)
- func (*PageIndex) ProtoMessage()
- func (m *PageIndex) Reset()
- func (m *PageIndex) Size() (n int)
- func (m *PageIndex) String() string
- func (m *PageIndex) Unmarshal(data []byte) error
- type PagedCrossReferences
- func (*PagedCrossReferences) Descriptor() ([]byte, []int)
- func (m *PagedCrossReferences) GetGroup() []*PagedCrossReferences_Group
- func (m *PagedCrossReferences) GetPageIndex() []*PagedCrossReferences_PageIndex
- func (m *PagedCrossReferences) Marshal() (data []byte, err error)
- func (m *PagedCrossReferences) MarshalTo(data []byte) (int, error)
- func (*PagedCrossReferences) ProtoMessage()
- func (m *PagedCrossReferences) Reset()
- func (m *PagedCrossReferences) Size() (n int)
- func (m *PagedCrossReferences) String() string
- func (m *PagedCrossReferences) Unmarshal(data []byte) error
- type PagedCrossReferences_Group
- func (*PagedCrossReferences_Group) Descriptor() ([]byte, []int)
- func (m *PagedCrossReferences_Group) GetAnchor() []*ExpandedAnchor
- func (m *PagedCrossReferences_Group) Marshal() (data []byte, err error)
- func (m *PagedCrossReferences_Group) MarshalTo(data []byte) (int, error)
- func (*PagedCrossReferences_Group) ProtoMessage()
- func (m *PagedCrossReferences_Group) Reset()
- func (m *PagedCrossReferences_Group) Size() (n int)
- func (m *PagedCrossReferences_Group) String() string
- func (m *PagedCrossReferences_Group) Unmarshal(data []byte) error
- type PagedCrossReferences_Page
- func (*PagedCrossReferences_Page) Descriptor() ([]byte, []int)
- func (m *PagedCrossReferences_Page) GetGroup() *PagedCrossReferences_Group
- func (m *PagedCrossReferences_Page) Marshal() (data []byte, err error)
- func (m *PagedCrossReferences_Page) MarshalTo(data []byte) (int, error)
- func (*PagedCrossReferences_Page) ProtoMessage()
- func (m *PagedCrossReferences_Page) Reset()
- func (m *PagedCrossReferences_Page) Size() (n int)
- func (m *PagedCrossReferences_Page) String() string
- func (m *PagedCrossReferences_Page) Unmarshal(data []byte) error
- type PagedCrossReferences_PageIndex
- func (*PagedCrossReferences_PageIndex) Descriptor() ([]byte, []int)
- func (m *PagedCrossReferences_PageIndex) Marshal() (data []byte, err error)
- func (m *PagedCrossReferences_PageIndex) MarshalTo(data []byte) (int, error)
- func (*PagedCrossReferences_PageIndex) ProtoMessage()
- func (m *PagedCrossReferences_PageIndex) Reset()
- func (m *PagedCrossReferences_PageIndex) Size() (n int)
- func (m *PagedCrossReferences_PageIndex) String() string
- func (m *PagedCrossReferences_PageIndex) Unmarshal(data []byte) error
- type PagedEdgeSet
- func (*PagedEdgeSet) Descriptor() ([]byte, []int)
- func (m *PagedEdgeSet) GetGroup() []*EdgeGroup
- func (m *PagedEdgeSet) GetPageIndex() []*PageIndex
- func (m *PagedEdgeSet) GetSource() *Node
- func (m *PagedEdgeSet) Marshal() (data []byte, err error)
- func (m *PagedEdgeSet) MarshalTo(data []byte) (int, error)
- func (*PagedEdgeSet) ProtoMessage()
- func (m *PagedEdgeSet) Reset()
- func (m *PagedEdgeSet) Size() (n int)
- func (m *PagedEdgeSet) String() string
- func (m *PagedEdgeSet) Unmarshal(data []byte) error
- type RawAnchor
- func (*RawAnchor) Descriptor() ([]byte, []int)
- func (m *RawAnchor) Marshal() (data []byte, err error)
- func (m *RawAnchor) MarshalTo(data []byte) (int, error)
- func (*RawAnchor) ProtoMessage()
- func (m *RawAnchor) Reset()
- func (m *RawAnchor) Size() (n int)
- func (m *RawAnchor) String() string
- func (m *RawAnchor) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthServing = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowServing = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type CorpusRoots ¶
type CorpusRoots struct {
Corpus []*CorpusRoots_Corpus `protobuf:"bytes,1,rep,name=corpus" json:"corpus,omitempty"`
}
CorpusRoots describes all of the known corpus/root pairs that contain file nodes.
func (*CorpusRoots) Descriptor ¶ added in v0.0.21
func (*CorpusRoots) Descriptor() ([]byte, []int)
func (*CorpusRoots) GetCorpus ¶
func (m *CorpusRoots) GetCorpus() []*CorpusRoots_Corpus
func (*CorpusRoots) Marshal ¶ added in v0.0.17
func (m *CorpusRoots) Marshal() (data []byte, err error)
func (*CorpusRoots) MarshalTo ¶ added in v0.0.17
func (m *CorpusRoots) MarshalTo(data []byte) (int, error)
func (*CorpusRoots) ProtoMessage ¶
func (*CorpusRoots) ProtoMessage()
func (*CorpusRoots) Reset ¶
func (m *CorpusRoots) Reset()
func (*CorpusRoots) Size ¶ added in v0.0.17
func (m *CorpusRoots) Size() (n int)
func (*CorpusRoots) String ¶
func (m *CorpusRoots) String() string
func (*CorpusRoots) Unmarshal ¶ added in v0.0.17
func (m *CorpusRoots) Unmarshal(data []byte) error
type CorpusRoots_Corpus ¶
type CorpusRoots_Corpus struct { Corpus string `protobuf:"bytes,1,opt,name=corpus,proto3" json:"corpus,omitempty"` Root []string `protobuf:"bytes,2,rep,name=root" json:"root,omitempty"` }
func (*CorpusRoots_Corpus) Descriptor ¶ added in v0.0.21
func (*CorpusRoots_Corpus) Descriptor() ([]byte, []int)
func (*CorpusRoots_Corpus) Marshal ¶ added in v0.0.17
func (m *CorpusRoots_Corpus) Marshal() (data []byte, err error)
func (*CorpusRoots_Corpus) MarshalTo ¶ added in v0.0.17
func (m *CorpusRoots_Corpus) MarshalTo(data []byte) (int, error)
func (*CorpusRoots_Corpus) ProtoMessage ¶
func (*CorpusRoots_Corpus) ProtoMessage()
func (*CorpusRoots_Corpus) Reset ¶
func (m *CorpusRoots_Corpus) Reset()
func (*CorpusRoots_Corpus) Size ¶ added in v0.0.17
func (m *CorpusRoots_Corpus) Size() (n int)
func (*CorpusRoots_Corpus) String ¶
func (m *CorpusRoots_Corpus) String() string
func (*CorpusRoots_Corpus) Unmarshal ¶ added in v0.0.17
func (m *CorpusRoots_Corpus) Unmarshal(data []byte) error
type Edge ¶ added in v0.0.16
type Edge struct { Source *Node `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Ordinal int32 `protobuf:"varint,5,opt,name=ordinal,proto3" json:"ordinal,omitempty"` Target *Node `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"` Fact []*kythe_proto_common.Fact `protobuf:"bytes,4,rep,name=fact" json:"fact,omitempty"` }
Full representation of a Kythe edge; useful during post-processing.
func (*Edge) Descriptor ¶ added in v0.0.21
func (*Edge) GetFact ¶ added in v0.0.16
func (m *Edge) GetFact() []*kythe_proto_common.Fact
func (*Edge) ProtoMessage ¶ added in v0.0.16
func (*Edge) ProtoMessage()
type EdgeGroup ¶ added in v0.0.17
type EdgeGroup struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Edge []*EdgeGroup_Edge `protobuf:"bytes,2,rep,name=edge" json:"edge,omitempty"` }
An EdgeGroup represents a set of edges with the same kind and source.
Note: this is a derivative of xref.EdgeSet_Group
func (*EdgeGroup) Descriptor ¶ added in v0.0.21
func (*EdgeGroup) GetEdge ¶ added in v0.0.21
func (m *EdgeGroup) GetEdge() []*EdgeGroup_Edge
func (*EdgeGroup) ProtoMessage ¶ added in v0.0.17
func (*EdgeGroup) ProtoMessage()
type EdgeGroup_Edge ¶ added in v0.0.21
type EdgeGroup_Edge struct { Target *Node `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` Ordinal int32 `protobuf:"varint,2,opt,name=ordinal,proto3" json:"ordinal,omitempty"` }
func (*EdgeGroup_Edge) Descriptor ¶ added in v0.0.21
func (*EdgeGroup_Edge) Descriptor() ([]byte, []int)
func (*EdgeGroup_Edge) GetTarget ¶ added in v0.0.21
func (m *EdgeGroup_Edge) GetTarget() *Node
func (*EdgeGroup_Edge) Marshal ¶ added in v0.0.21
func (m *EdgeGroup_Edge) Marshal() (data []byte, err error)
func (*EdgeGroup_Edge) MarshalTo ¶ added in v0.0.21
func (m *EdgeGroup_Edge) MarshalTo(data []byte) (int, error)
func (*EdgeGroup_Edge) ProtoMessage ¶ added in v0.0.21
func (*EdgeGroup_Edge) ProtoMessage()
func (*EdgeGroup_Edge) Reset ¶ added in v0.0.21
func (m *EdgeGroup_Edge) Reset()
func (*EdgeGroup_Edge) Size ¶ added in v0.0.21
func (m *EdgeGroup_Edge) Size() (n int)
func (*EdgeGroup_Edge) String ¶ added in v0.0.21
func (m *EdgeGroup_Edge) String() string
func (*EdgeGroup_Edge) Unmarshal ¶ added in v0.0.21
func (m *EdgeGroup_Edge) Unmarshal(data []byte) error
type EdgePage ¶
type EdgePage struct { // Corresponding PageIndex key that can be used to lookup this page. PageKey string `protobuf:"bytes,1,opt,name=page_key,json=pageKey,proto3" json:"page_key,omitempty"` SourceTicket string `protobuf:"bytes,2,opt,name=source_ticket,json=sourceTicket,proto3" json:"source_ticket,omitempty"` EdgesGroup *EdgeGroup `protobuf:"bytes,3,opt,name=edges_group,json=edgesGroup" json:"edges_group,omitempty"` }
EdgePages are a group of edges for a particular edge kind and source ticket.
func (*EdgePage) Descriptor ¶ added in v0.0.21
func (*EdgePage) GetEdgesGroup ¶
func (*EdgePage) ProtoMessage ¶
func (*EdgePage) ProtoMessage()
type ExpandedAnchor ¶ added in v0.0.17
type ExpandedAnchor struct { Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` Span *kythe_proto_common.Span `protobuf:"bytes,5,opt,name=span" json:"span,omitempty"` Snippet string `protobuf:"bytes,6,opt,name=snippet,proto3" json:"snippet,omitempty"` SnippetSpan *kythe_proto_common.Span `protobuf:"bytes,7,opt,name=snippet_span,json=snippetSpan" json:"snippet_span,omitempty"` }
ExpandedAnchors are constructed from an RawAnchor and its associated File. They contain normalized Spans based on their parent file's text as well as the UTF8-encoded text for both the anchor's span and its snippet span.
func (*ExpandedAnchor) Descriptor ¶ added in v0.0.21
func (*ExpandedAnchor) Descriptor() ([]byte, []int)
func (*ExpandedAnchor) GetSnippetSpan ¶ added in v0.0.17
func (m *ExpandedAnchor) GetSnippetSpan() *kythe_proto_common.Span
func (*ExpandedAnchor) GetSpan ¶ added in v0.0.17
func (m *ExpandedAnchor) GetSpan() *kythe_proto_common.Span
func (*ExpandedAnchor) Marshal ¶ added in v0.0.17
func (m *ExpandedAnchor) Marshal() (data []byte, err error)
func (*ExpandedAnchor) MarshalTo ¶ added in v0.0.17
func (m *ExpandedAnchor) MarshalTo(data []byte) (int, error)
func (*ExpandedAnchor) ProtoMessage ¶ added in v0.0.17
func (*ExpandedAnchor) ProtoMessage()
func (*ExpandedAnchor) Reset ¶ added in v0.0.17
func (m *ExpandedAnchor) Reset()
func (*ExpandedAnchor) Size ¶ added in v0.0.17
func (m *ExpandedAnchor) Size() (n int)
func (*ExpandedAnchor) String ¶ added in v0.0.17
func (m *ExpandedAnchor) String() string
func (*ExpandedAnchor) Unmarshal ¶ added in v0.0.17
func (m *ExpandedAnchor) Unmarshal(data []byte) error
type File ¶ added in v0.0.16
type File struct { Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` Text []byte `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Encoding string `protobuf:"bytes,3,opt,name=encoding,proto3" json:"encoding,omitempty"` }
A File is a specialized Node structure for file nodes.
func (*File) Descriptor ¶ added in v0.0.21
func (*File) ProtoMessage ¶ added in v0.0.16
func (*File) ProtoMessage()
type FileDecorations ¶
type FileDecorations struct { File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` // The decorations located in the file, sorted by starting offset. Decoration []*FileDecorations_Decoration `protobuf:"bytes,2,rep,name=decoration" json:"decoration,omitempty"` // Set of nodes associated with each Decoration.target. Target []*Node `protobuf:"bytes,4,rep,name=target" json:"target,omitempty"` // Set of definition locations for each Decoration.target. TargetDefinitions []*ExpandedAnchor `protobuf:"bytes,3,rep,name=target_definitions,json=targetDefinitions" json:"target_definitions,omitempty"` }
FileDecorations stores a file's contents and all contained anchor edges.
func (*FileDecorations) Descriptor ¶ added in v0.0.21
func (*FileDecorations) Descriptor() ([]byte, []int)
func (*FileDecorations) GetDecoration ¶
func (m *FileDecorations) GetDecoration() []*FileDecorations_Decoration
func (*FileDecorations) GetFile ¶ added in v0.0.16
func (m *FileDecorations) GetFile() *File
func (*FileDecorations) GetTarget ¶ added in v0.0.25
func (m *FileDecorations) GetTarget() []*Node
func (*FileDecorations) GetTargetDefinitions ¶ added in v0.0.25
func (m *FileDecorations) GetTargetDefinitions() []*ExpandedAnchor
func (*FileDecorations) Marshal ¶ added in v0.0.17
func (m *FileDecorations) Marshal() (data []byte, err error)
func (*FileDecorations) MarshalTo ¶ added in v0.0.17
func (m *FileDecorations) MarshalTo(data []byte) (int, error)
func (*FileDecorations) ProtoMessage ¶
func (*FileDecorations) ProtoMessage()
func (*FileDecorations) Reset ¶
func (m *FileDecorations) Reset()
func (*FileDecorations) Size ¶ added in v0.0.17
func (m *FileDecorations) Size() (n int)
func (*FileDecorations) String ¶
func (m *FileDecorations) String() string
func (*FileDecorations) Unmarshal ¶ added in v0.0.17
func (m *FileDecorations) Unmarshal(data []byte) error
type FileDecorations_Decoration ¶
type FileDecorations_Decoration struct { Anchor *RawAnchor `protobuf:"bytes,1,opt,name=anchor" json:"anchor,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` TargetDefinition string `protobuf:"bytes,4,opt,name=target_definition,json=targetDefinition,proto3" json:"target_definition,omitempty"` }
Represents an edge from an anchor contained within the file to some target.
func (*FileDecorations_Decoration) Descriptor ¶ added in v0.0.21
func (*FileDecorations_Decoration) Descriptor() ([]byte, []int)
func (*FileDecorations_Decoration) GetAnchor ¶
func (m *FileDecorations_Decoration) GetAnchor() *RawAnchor
func (*FileDecorations_Decoration) Marshal ¶ added in v0.0.17
func (m *FileDecorations_Decoration) Marshal() (data []byte, err error)
func (*FileDecorations_Decoration) MarshalTo ¶ added in v0.0.17
func (m *FileDecorations_Decoration) MarshalTo(data []byte) (int, error)
func (*FileDecorations_Decoration) ProtoMessage ¶
func (*FileDecorations_Decoration) ProtoMessage()
func (*FileDecorations_Decoration) Reset ¶
func (m *FileDecorations_Decoration) Reset()
func (*FileDecorations_Decoration) Size ¶ added in v0.0.17
func (m *FileDecorations_Decoration) Size() (n int)
func (*FileDecorations_Decoration) String ¶
func (m *FileDecorations_Decoration) String() string
func (*FileDecorations_Decoration) Unmarshal ¶ added in v0.0.17
func (m *FileDecorations_Decoration) Unmarshal(data []byte) error
type FileDirectory ¶
type FileDirectory struct { // Set of URIs for each contained sub-directory's corpus, root, and full path. Subdirectory []string `protobuf:"bytes,1,rep,name=subdirectory" json:"subdirectory,omitempty"` // Set of file node tickets contained within this directory. FileTicket []string `protobuf:"bytes,2,rep,name=file_ticket,json=fileTicket" json:"file_ticket,omitempty"` }
FileDirectory describes a virtual directory of file nodes.
func (*FileDirectory) Descriptor ¶ added in v0.0.21
func (*FileDirectory) Descriptor() ([]byte, []int)
func (*FileDirectory) Marshal ¶ added in v0.0.17
func (m *FileDirectory) Marshal() (data []byte, err error)
func (*FileDirectory) MarshalTo ¶ added in v0.0.17
func (m *FileDirectory) MarshalTo(data []byte) (int, error)
func (*FileDirectory) ProtoMessage ¶
func (*FileDirectory) ProtoMessage()
func (*FileDirectory) Reset ¶
func (m *FileDirectory) Reset()
func (*FileDirectory) Size ¶ added in v0.0.17
func (m *FileDirectory) Size() (n int)
func (*FileDirectory) String ¶
func (m *FileDirectory) String() string
func (*FileDirectory) Unmarshal ¶ added in v0.0.17
func (m *FileDirectory) Unmarshal(data []byte) error
type Node ¶
type Node struct { Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` Fact []*kythe_proto_common.Fact `protobuf:"bytes,2,rep,name=fact" json:"fact,omitempty"` }
A derivative of xref.NodeInfo for serving.
func (*Node) Descriptor ¶ added in v0.0.21
func (*Node) GetFact ¶
func (m *Node) GetFact() []*kythe_proto_common.Fact
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type PageIndex ¶
type PageIndex struct { // The kind of all edges on the referred EdgePage. EdgeKind string `protobuf:"bytes,1,opt,name=edge_kind,json=edgeKind,proto3" json:"edge_kind,omitempty"` // Total number of edges on the referred EdgePage. EdgeCount int32 `protobuf:"varint,2,opt,name=edge_count,json=edgeCount,proto3" json:"edge_count,omitempty"` // Key that can be used to lookup the referred EdgePage. PageKey string `protobuf:"bytes,3,opt,name=page_key,json=pageKey,proto3" json:"page_key,omitempty"` }
PageIndex is a pointer to an EdgePage. In order to keep the PagedEdgeSet small, we don't store edges here. We just store a key for looking up an EdgePage and the type of edge.
func (*PageIndex) Descriptor ¶ added in v0.0.21
func (*PageIndex) ProtoMessage ¶
func (*PageIndex) ProtoMessage()
type PagedCrossReferences ¶ added in v0.0.17
type PagedCrossReferences struct { SourceTicket string `protobuf:"bytes,1,opt,name=source_ticket,json=sourceTicket,proto3" json:"source_ticket,omitempty"` Group []*PagedCrossReferences_Group `protobuf:"bytes,2,rep,name=group" json:"group,omitempty"` PageIndex []*PagedCrossReferences_PageIndex `protobuf:"bytes,3,rep,name=page_index,json=pageIndex" json:"page_index,omitempty"` TotalReferences int32 `protobuf:"varint,4,opt,name=total_references,json=totalReferences,proto3" json:"total_references,omitempty"` // Whether the source node is incomplete. This changes whether // /kythe/edge/defines edges are considered declarations or definitions. // /kythe/edge/completes edges are always grouped as definitions. Incomplete bool `protobuf:"varint,5,opt,name=incomplete,proto3" json:"incomplete,omitempty"` }
PagedCrossReferences are used for efficiently storing pre-cached data for CrossReferencesReply.{definition,reference,documentation} anchors. Related nodes can be retrieved from edge sets/pages.
func (*PagedCrossReferences) Descriptor ¶ added in v0.0.21
func (*PagedCrossReferences) Descriptor() ([]byte, []int)
func (*PagedCrossReferences) GetGroup ¶ added in v0.0.17
func (m *PagedCrossReferences) GetGroup() []*PagedCrossReferences_Group
func (*PagedCrossReferences) GetPageIndex ¶ added in v0.0.17
func (m *PagedCrossReferences) GetPageIndex() []*PagedCrossReferences_PageIndex
func (*PagedCrossReferences) Marshal ¶ added in v0.0.17
func (m *PagedCrossReferences) Marshal() (data []byte, err error)
func (*PagedCrossReferences) MarshalTo ¶ added in v0.0.17
func (m *PagedCrossReferences) MarshalTo(data []byte) (int, error)
func (*PagedCrossReferences) ProtoMessage ¶ added in v0.0.17
func (*PagedCrossReferences) ProtoMessage()
func (*PagedCrossReferences) Reset ¶ added in v0.0.17
func (m *PagedCrossReferences) Reset()
func (*PagedCrossReferences) Size ¶ added in v0.0.17
func (m *PagedCrossReferences) Size() (n int)
func (*PagedCrossReferences) String ¶ added in v0.0.17
func (m *PagedCrossReferences) String() string
func (*PagedCrossReferences) Unmarshal ¶ added in v0.0.17
func (m *PagedCrossReferences) Unmarshal(data []byte) error
type PagedCrossReferences_Group ¶ added in v0.0.17
type PagedCrossReferences_Group struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Anchor []*ExpandedAnchor `protobuf:"bytes,2,rep,name=anchor" json:"anchor,omitempty"` }
func (*PagedCrossReferences_Group) Descriptor ¶ added in v0.0.21
func (*PagedCrossReferences_Group) Descriptor() ([]byte, []int)
func (*PagedCrossReferences_Group) GetAnchor ¶ added in v0.0.17
func (m *PagedCrossReferences_Group) GetAnchor() []*ExpandedAnchor
func (*PagedCrossReferences_Group) Marshal ¶ added in v0.0.17
func (m *PagedCrossReferences_Group) Marshal() (data []byte, err error)
func (*PagedCrossReferences_Group) MarshalTo ¶ added in v0.0.17
func (m *PagedCrossReferences_Group) MarshalTo(data []byte) (int, error)
func (*PagedCrossReferences_Group) ProtoMessage ¶ added in v0.0.17
func (*PagedCrossReferences_Group) ProtoMessage()
func (*PagedCrossReferences_Group) Reset ¶ added in v0.0.17
func (m *PagedCrossReferences_Group) Reset()
func (*PagedCrossReferences_Group) Size ¶ added in v0.0.17
func (m *PagedCrossReferences_Group) Size() (n int)
func (*PagedCrossReferences_Group) String ¶ added in v0.0.17
func (m *PagedCrossReferences_Group) String() string
func (*PagedCrossReferences_Group) Unmarshal ¶ added in v0.0.17
func (m *PagedCrossReferences_Group) Unmarshal(data []byte) error
type PagedCrossReferences_Page ¶ added in v0.0.17
type PagedCrossReferences_Page struct { PageKey string `protobuf:"bytes,1,opt,name=page_key,json=pageKey,proto3" json:"page_key,omitempty"` SourceTicket string `protobuf:"bytes,2,opt,name=source_ticket,json=sourceTicket,proto3" json:"source_ticket,omitempty"` Group *PagedCrossReferences_Group `protobuf:"bytes,3,opt,name=group" json:"group,omitempty"` }
func (*PagedCrossReferences_Page) Descriptor ¶ added in v0.0.21
func (*PagedCrossReferences_Page) Descriptor() ([]byte, []int)
func (*PagedCrossReferences_Page) GetGroup ¶ added in v0.0.17
func (m *PagedCrossReferences_Page) GetGroup() *PagedCrossReferences_Group
func (*PagedCrossReferences_Page) Marshal ¶ added in v0.0.17
func (m *PagedCrossReferences_Page) Marshal() (data []byte, err error)
func (*PagedCrossReferences_Page) MarshalTo ¶ added in v0.0.17
func (m *PagedCrossReferences_Page) MarshalTo(data []byte) (int, error)
func (*PagedCrossReferences_Page) ProtoMessage ¶ added in v0.0.17
func (*PagedCrossReferences_Page) ProtoMessage()
func (*PagedCrossReferences_Page) Reset ¶ added in v0.0.17
func (m *PagedCrossReferences_Page) Reset()
func (*PagedCrossReferences_Page) Size ¶ added in v0.0.17
func (m *PagedCrossReferences_Page) Size() (n int)
func (*PagedCrossReferences_Page) String ¶ added in v0.0.17
func (m *PagedCrossReferences_Page) String() string
func (*PagedCrossReferences_Page) Unmarshal ¶ added in v0.0.17
func (m *PagedCrossReferences_Page) Unmarshal(data []byte) error
type PagedCrossReferences_PageIndex ¶ added in v0.0.17
type PagedCrossReferences_PageIndex struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` PageKey string `protobuf:"bytes,3,opt,name=page_key,json=pageKey,proto3" json:"page_key,omitempty"` }
A PageIndex is a reference to a Page.
func (*PagedCrossReferences_PageIndex) Descriptor ¶ added in v0.0.21
func (*PagedCrossReferences_PageIndex) Descriptor() ([]byte, []int)
func (*PagedCrossReferences_PageIndex) Marshal ¶ added in v0.0.17
func (m *PagedCrossReferences_PageIndex) Marshal() (data []byte, err error)
func (*PagedCrossReferences_PageIndex) MarshalTo ¶ added in v0.0.17
func (m *PagedCrossReferences_PageIndex) MarshalTo(data []byte) (int, error)
func (*PagedCrossReferences_PageIndex) ProtoMessage ¶ added in v0.0.17
func (*PagedCrossReferences_PageIndex) ProtoMessage()
func (*PagedCrossReferences_PageIndex) Reset ¶ added in v0.0.17
func (m *PagedCrossReferences_PageIndex) Reset()
func (*PagedCrossReferences_PageIndex) Size ¶ added in v0.0.17
func (m *PagedCrossReferences_PageIndex) Size() (n int)
func (*PagedCrossReferences_PageIndex) String ¶ added in v0.0.17
func (m *PagedCrossReferences_PageIndex) String() string
func (*PagedCrossReferences_PageIndex) Unmarshal ¶ added in v0.0.17
func (m *PagedCrossReferences_PageIndex) Unmarshal(data []byte) error
type PagedEdgeSet ¶
type PagedEdgeSet struct { // The source node for all the edges in the edge set. Source *Node `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` // Each group is a collection of outbound edges from source node sharing a // given kind. Group []*EdgeGroup `protobuf:"bytes,2,rep,name=group" json:"group,omitempty"` // Total number of edges in all of the EdgePages, including this one. TotalEdges int32 `protobuf:"varint,3,opt,name=total_edges,json=totalEdges,proto3" json:"total_edges,omitempty"` // Page indices for other EdgePages, sorted by edge kind. PageIndex []*PageIndex `protobuf:"bytes,4,rep,name=page_index,json=pageIndex" json:"page_index,omitempty"` }
PagedEdgeSets are used for efficiently storing EdgeSets, all originating from the same source ticket, in order to handle pagination requests.
func (*PagedEdgeSet) Descriptor ¶ added in v0.0.21
func (*PagedEdgeSet) Descriptor() ([]byte, []int)
func (*PagedEdgeSet) GetGroup ¶ added in v0.0.17
func (m *PagedEdgeSet) GetGroup() []*EdgeGroup
func (*PagedEdgeSet) GetPageIndex ¶
func (m *PagedEdgeSet) GetPageIndex() []*PageIndex
func (*PagedEdgeSet) GetSource ¶ added in v0.0.17
func (m *PagedEdgeSet) GetSource() *Node
func (*PagedEdgeSet) Marshal ¶ added in v0.0.17
func (m *PagedEdgeSet) Marshal() (data []byte, err error)
func (*PagedEdgeSet) MarshalTo ¶ added in v0.0.17
func (m *PagedEdgeSet) MarshalTo(data []byte) (int, error)
func (*PagedEdgeSet) ProtoMessage ¶
func (*PagedEdgeSet) ProtoMessage()
func (*PagedEdgeSet) Reset ¶
func (m *PagedEdgeSet) Reset()
func (*PagedEdgeSet) Size ¶ added in v0.0.17
func (m *PagedEdgeSet) Size() (n int)
func (*PagedEdgeSet) String ¶
func (m *PagedEdgeSet) String() string
func (*PagedEdgeSet) Unmarshal ¶ added in v0.0.17
func (m *PagedEdgeSet) Unmarshal(data []byte) error
type RawAnchor ¶ added in v0.0.17
type RawAnchor struct { Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` StartOffset int32 `protobuf:"varint,2,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"` EndOffset int32 `protobuf:"varint,3,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"` SnippetStart int32 `protobuf:"varint,4,opt,name=snippet_start,json=snippetStart,proto3" json:"snippet_start,omitempty"` SnippetEnd int32 `protobuf:"varint,5,opt,name=snippet_end,json=snippetEnd,proto3" json:"snippet_end,omitempty"` }
A RawAnchor is a specialized Node structure for anchor nodes.
func (*RawAnchor) Descriptor ¶ added in v0.0.21
func (*RawAnchor) ProtoMessage ¶ added in v0.0.17
func (*RawAnchor) ProtoMessage()