serving_proto

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

func (*Edge) GetFact added in v0.0.16

func (m *Edge) GetFact() []*kythe_proto_common.Fact

func (*Edge) GetSource added in v0.0.16

func (m *Edge) GetSource() *Node

func (*Edge) GetTarget added in v0.0.16

func (m *Edge) GetTarget() *Node

func (*Edge) Marshal added in v0.0.17

func (m *Edge) Marshal() (data []byte, err error)

func (*Edge) MarshalTo added in v0.0.17

func (m *Edge) MarshalTo(data []byte) (int, error)

func (*Edge) ProtoMessage added in v0.0.16

func (*Edge) ProtoMessage()

func (*Edge) Reset added in v0.0.16

func (m *Edge) Reset()

func (*Edge) Size added in v0.0.17

func (m *Edge) Size() (n int)

func (*Edge) String added in v0.0.16

func (m *Edge) String() string

func (*Edge) Unmarshal added in v0.0.17

func (m *Edge) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*EdgeGroup) GetEdge added in v0.0.21

func (m *EdgeGroup) GetEdge() []*EdgeGroup_Edge

func (*EdgeGroup) Marshal added in v0.0.17

func (m *EdgeGroup) Marshal() (data []byte, err error)

func (*EdgeGroup) MarshalTo added in v0.0.17

func (m *EdgeGroup) MarshalTo(data []byte) (int, error)

func (*EdgeGroup) ProtoMessage added in v0.0.17

func (*EdgeGroup) ProtoMessage()

func (*EdgeGroup) Reset added in v0.0.17

func (m *EdgeGroup) Reset()

func (*EdgeGroup) Size added in v0.0.17

func (m *EdgeGroup) Size() (n int)

func (*EdgeGroup) String added in v0.0.17

func (m *EdgeGroup) String() string

func (*EdgeGroup) Unmarshal added in v0.0.17

func (m *EdgeGroup) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*EdgePage) GetEdgesGroup

func (m *EdgePage) GetEdgesGroup() *EdgeGroup

func (*EdgePage) Marshal added in v0.0.17

func (m *EdgePage) Marshal() (data []byte, err error)

func (*EdgePage) MarshalTo added in v0.0.17

func (m *EdgePage) MarshalTo(data []byte) (int, error)

func (*EdgePage) ProtoMessage

func (*EdgePage) ProtoMessage()

func (*EdgePage) Reset

func (m *EdgePage) Reset()

func (*EdgePage) Size added in v0.0.17

func (m *EdgePage) Size() (n int)

func (*EdgePage) String

func (m *EdgePage) String() string

func (*EdgePage) Unmarshal added in v0.0.17

func (m *EdgePage) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*File) Marshal added in v0.0.17

func (m *File) Marshal() (data []byte, err error)

func (*File) MarshalTo added in v0.0.17

func (m *File) MarshalTo(data []byte) (int, error)

func (*File) ProtoMessage added in v0.0.16

func (*File) ProtoMessage()

func (*File) Reset added in v0.0.16

func (m *File) Reset()

func (*File) Size added in v0.0.17

func (m *File) Size() (n int)

func (*File) String added in v0.0.16

func (m *File) String() string

func (*File) Unmarshal added in v0.0.17

func (m *File) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*Node) GetFact

func (m *Node) GetFact() []*kythe_proto_common.Fact

func (*Node) Marshal added in v0.0.17

func (m *Node) Marshal() (data []byte, err error)

func (*Node) MarshalTo added in v0.0.17

func (m *Node) MarshalTo(data []byte) (int, error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size added in v0.0.17

func (m *Node) Size() (n int)

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal added in v0.0.17

func (m *Node) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*PageIndex) Marshal added in v0.0.17

func (m *PageIndex) Marshal() (data []byte, err error)

func (*PageIndex) MarshalTo added in v0.0.17

func (m *PageIndex) MarshalTo(data []byte) (int, error)

func (*PageIndex) ProtoMessage

func (*PageIndex) ProtoMessage()

func (*PageIndex) Reset

func (m *PageIndex) Reset()

func (*PageIndex) Size added in v0.0.17

func (m *PageIndex) Size() (n int)

func (*PageIndex) String

func (m *PageIndex) String() string

func (*PageIndex) Unmarshal added in v0.0.17

func (m *PageIndex) Unmarshal(data []byte) error

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 (*PagedCrossReferences) GetPageIndex added in v0.0.17

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 (*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 (*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) Descriptor() ([]byte, []int)

func (*RawAnchor) Marshal added in v0.0.17

func (m *RawAnchor) Marshal() (data []byte, err error)

func (*RawAnchor) MarshalTo added in v0.0.17

func (m *RawAnchor) MarshalTo(data []byte) (int, error)

func (*RawAnchor) ProtoMessage added in v0.0.17

func (*RawAnchor) ProtoMessage()

func (*RawAnchor) Reset added in v0.0.17

func (m *RawAnchor) Reset()

func (*RawAnchor) Size added in v0.0.17

func (m *RawAnchor) Size() (n int)

func (*RawAnchor) String added in v0.0.17

func (m *RawAnchor) String() string

func (*RawAnchor) Unmarshal added in v0.0.17

func (m *RawAnchor) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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