internal_proto

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package internal_proto is a generated protocol buffer package.

It is generated from these files:

kythe/proto/internal.proto

It has these top-level messages:

Source
PageToken
CrossReference
SortedKeyValue
Path

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthInternal = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInternal   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type CrossReference

type CrossReference struct {
	SourceDecoration *CrossReference_Decoration          `protobuf:"bytes,1,opt,name=source_decoration,json=sourceDecoration" json:"source_decoration,omitempty"`
	Referent         *kythe_proto_serving.Node           `protobuf:"bytes,2,opt,name=referent" json:"referent,omitempty"`
	TargetDecoration *CrossReference_Decoration          `protobuf:"bytes,3,opt,name=target_decoration,json=targetDecoration" json:"target_decoration,omitempty"`
	SourceAnchor     *kythe_proto_serving.ExpandedAnchor `protobuf:"bytes,4,opt,name=source_anchor,json=sourceAnchor" json:"source_anchor,omitempty"`
	TargetAnchor     *kythe_proto_serving.ExpandedAnchor `protobuf:"bytes,5,opt,name=target_anchor,json=targetAnchor" json:"target_anchor,omitempty"`
}

A CrossReference represents a path between two anchors, crossing between a single common node. Abstractly this a (file, anchor, kind, node, kind', anchor', file') tuple where the two (file, anchor, kind) sub-components have been named Decorations.

This structure can be used to represent the intermediary* structures needed to build pre-cached responses to the Decorations and CrossReferences service methods.

* where only a subset of this structure is known at that moment in time

func (*CrossReference) Descriptor

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

func (*CrossReference) GetReferent

func (m *CrossReference) GetReferent() *kythe_proto_serving.Node

func (*CrossReference) GetSourceAnchor

func (m *CrossReference) GetSourceAnchor() *kythe_proto_serving.ExpandedAnchor

func (*CrossReference) GetSourceDecoration

func (m *CrossReference) GetSourceDecoration() *CrossReference_Decoration

func (*CrossReference) GetTargetAnchor

func (m *CrossReference) GetTargetAnchor() *kythe_proto_serving.ExpandedAnchor

func (*CrossReference) GetTargetDecoration

func (m *CrossReference) GetTargetDecoration() *CrossReference_Decoration

func (*CrossReference) Marshal

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

func (*CrossReference) MarshalTo

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

func (*CrossReference) ProtoMessage

func (*CrossReference) ProtoMessage()

func (*CrossReference) Reset

func (m *CrossReference) Reset()

func (*CrossReference) Size

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

func (*CrossReference) String

func (m *CrossReference) String() string

func (*CrossReference) Unmarshal

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

type CrossReference_Decoration

type CrossReference_Decoration struct {
	File   *kythe_proto_serving.File      `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"`
	Anchor *kythe_proto_serving.RawAnchor `protobuf:"bytes,2,opt,name=anchor" json:"anchor,omitempty"`
	Kind   string                         `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
}

A Decoration is specialized partial edge with an anchor on one end, stored along side its parent file node. The partial edge's other end is stored in the referent field of the parent CrossReference.

func (*CrossReference_Decoration) Descriptor

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

func (*CrossReference_Decoration) GetAnchor

func (*CrossReference_Decoration) GetFile

func (*CrossReference_Decoration) Marshal

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

func (*CrossReference_Decoration) MarshalTo

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

func (*CrossReference_Decoration) ProtoMessage

func (*CrossReference_Decoration) ProtoMessage()

func (*CrossReference_Decoration) Reset

func (m *CrossReference_Decoration) Reset()

func (*CrossReference_Decoration) Size

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

func (*CrossReference_Decoration) String

func (m *CrossReference_Decoration) String() string

func (*CrossReference_Decoration) Unmarshal

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

type PageToken

type PageToken struct {
	// Index into the primary reply sequence.
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Secondary page token for reply sub-query.
	SecondaryToken string `protobuf:"bytes,2,opt,name=secondary_token,json=secondaryToken,proto3" json:"secondary_token,omitempty"`
}

Internal encoding for an EdgesReply/CrossReferencesReply page_token

func (*PageToken) Descriptor

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

func (*PageToken) Marshal

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

func (*PageToken) MarshalTo

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

func (*PageToken) ProtoMessage

func (*PageToken) ProtoMessage()

func (*PageToken) Reset

func (m *PageToken) Reset()

func (*PageToken) Size

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

func (*PageToken) String

func (m *PageToken) String() string

func (*PageToken) Unmarshal

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

type Path added in v0.0.25

type Path struct {
	// The central node of this Path.
	Pivot *Path_Node `protobuf:"bytes,1,opt,name=pivot" json:"pivot,omitempty"`
	// A sequence of edges leading from the pivot node.
	Edges []*Path_Edge `protobuf:"bytes,2,rep,name=edges" json:"edges,omitempty"`
}

A Path represents a chain of Kythe edges starting from a particular node known as the Path's pivot node.

Example Path representing a FileDecorations_Decoration:

pivot: <
  file: <
    ticket: "kythe://kythe?path=kythe/java/com/google/devtools/kythe/analyzers/base/EntrySet.java"
    text: "..."
    encoding: "UTF-8"
  >
  ticket: "kythe://kythe?path=kythe/java/com/google/devtools/kythe/analyzers/base/EntrySet.java"
  node_kind: "file"
>
edges: <
  kind: "%/kythe/edge/childof"
  target: <
    expanded_anchor: <
      ticket: "kythe://kythe?lang=java?path=kythe/java/com/google/devtools/kythe/analyzers/base/EntrySet.java#b2b44a5e5d4b7f521b192a99ab6172ad24bf055db0c3e6353775a31f83e4e8b9"
      kind: "%/kythe/edge/childof"
      parent: "kythe://kythe?path=kythe/java/com/google/devtools/kythe/analyzers/base/EntrySet.java"
      text: "edgeOrdinal"
      span: <...>
      snippet: "this.edgeOrdinal = -1"
      snippet_span: <...>
    >
    ticket: "kythe://kythe?lang=java?path=kythe/java/com/google/devtools/kythe/analyzers/base/EntrySet.java#b2b44a5e5d4b7f521b192a99ab6172ad24bf055db0c3e6353775a31f83e4e8b9"
    node_kind: "anchor"
  >
>
edges: <
  kind: "/kythe/edge/ref"
  target: <
    ticket: "kythe://kythe?lang=java?path=kythe/java/com/google/devtools/kythe/analyzers/base/EntrySet.java#3397da0c78948141fc85aa634e6d42e4461968ad33409c104e3a5e566306b8c5"
    node_kind: "variable"
    original: <...>
  >
>

func (*Path) Descriptor added in v0.0.25

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

func (*Path) GetEdges added in v0.0.25

func (m *Path) GetEdges() []*Path_Edge

func (*Path) GetPivot added in v0.0.25

func (m *Path) GetPivot() *Path_Node

func (*Path) Marshal added in v0.0.25

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

func (*Path) MarshalTo added in v0.0.25

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

func (*Path) ProtoMessage added in v0.0.25

func (*Path) ProtoMessage()

func (*Path) Reset added in v0.0.25

func (m *Path) Reset()

func (*Path) Size added in v0.0.25

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

func (*Path) String added in v0.0.25

func (m *Path) String() string

func (*Path) Unmarshal added in v0.0.25

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

type Path_Edge added in v0.0.25

type Path_Edge struct {
	Kind    string     `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	Ordinal int32      `protobuf:"varint,2,opt,name=ordinal,proto3" json:"ordinal,omitempty"`
	Target  *Path_Node `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
}

func (*Path_Edge) Descriptor added in v0.0.25

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

func (*Path_Edge) GetTarget added in v0.0.25

func (m *Path_Edge) GetTarget() *Path_Node

func (*Path_Edge) Marshal added in v0.0.25

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

func (*Path_Edge) MarshalTo added in v0.0.25

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

func (*Path_Edge) ProtoMessage added in v0.0.25

func (*Path_Edge) ProtoMessage()

func (*Path_Edge) Reset added in v0.0.25

func (m *Path_Edge) Reset()

func (*Path_Edge) Size added in v0.0.25

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

func (*Path_Edge) String added in v0.0.25

func (m *Path_Edge) String() string

func (*Path_Edge) Unmarshal added in v0.0.25

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

type Path_Node added in v0.0.25

type Path_Node struct {
	// Types that are valid to be assigned to Specialization:
	//	*Path_Node_RawAnchor
	//	*Path_Node_ExpandedAnchor
	//	*Path_Node_File
	Specialization isPath_Node_Specialization `protobuf_oneof:"specialization"`
	Ticket         string                     `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	NodeKind       string                     `protobuf:"bytes,2,opt,name=node_kind,json=nodeKind,proto3" json:"node_kind,omitempty"`
	Original       *kythe_proto_serving.Node  `protobuf:"bytes,3,opt,name=original" json:"original,omitempty"`
}

A serving node with a possible specialization that unwraps/parses the original node's facts.

func (*Path_Node) Descriptor added in v0.0.25

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

func (*Path_Node) GetExpandedAnchor added in v0.0.25

func (m *Path_Node) GetExpandedAnchor() *kythe_proto_serving.ExpandedAnchor

func (*Path_Node) GetFile added in v0.0.25

func (m *Path_Node) GetFile() *kythe_proto_serving.File

func (*Path_Node) GetOriginal added in v0.0.25

func (m *Path_Node) GetOriginal() *kythe_proto_serving.Node

func (*Path_Node) GetRawAnchor added in v0.0.25

func (m *Path_Node) GetRawAnchor() *kythe_proto_serving.RawAnchor

func (*Path_Node) GetSpecialization added in v0.0.25

func (m *Path_Node) GetSpecialization() isPath_Node_Specialization

func (*Path_Node) Marshal added in v0.0.25

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

func (*Path_Node) MarshalTo added in v0.0.25

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

func (*Path_Node) ProtoMessage added in v0.0.25

func (*Path_Node) ProtoMessage()

func (*Path_Node) Reset added in v0.0.25

func (m *Path_Node) Reset()

func (*Path_Node) Size added in v0.0.25

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

func (*Path_Node) String added in v0.0.25

func (m *Path_Node) String() string

func (*Path_Node) Unmarshal added in v0.0.25

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

func (*Path_Node) XXX_OneofFuncs added in v0.0.25

func (*Path_Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Path_Node_ExpandedAnchor added in v0.0.25

type Path_Node_ExpandedAnchor struct {
	ExpandedAnchor *kythe_proto_serving.ExpandedAnchor `protobuf:"bytes,11,opt,name=expanded_anchor,json=expandedAnchor,oneof"`
}

func (*Path_Node_ExpandedAnchor) MarshalTo added in v0.0.25

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

func (*Path_Node_ExpandedAnchor) Size added in v0.0.25

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

type Path_Node_File added in v0.0.25

type Path_Node_File struct {
	File *kythe_proto_serving.File `protobuf:"bytes,12,opt,name=file,oneof"`
}

func (*Path_Node_File) MarshalTo added in v0.0.25

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

func (*Path_Node_File) Size added in v0.0.25

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

type Path_Node_RawAnchor added in v0.0.25

type Path_Node_RawAnchor struct {
	RawAnchor *kythe_proto_serving.RawAnchor `protobuf:"bytes,10,opt,name=raw_anchor,json=rawAnchor,oneof"`
}

func (*Path_Node_RawAnchor) MarshalTo added in v0.0.25

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

func (*Path_Node_RawAnchor) Size added in v0.0.25

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

type SortedKeyValue added in v0.0.22

type SortedKeyValue struct {
	Key     string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	SortKey string `protobuf:"bytes,2,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
	Value   []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}

func (*SortedKeyValue) Descriptor added in v0.0.22

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

func (*SortedKeyValue) Marshal added in v0.0.22

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

func (*SortedKeyValue) MarshalTo added in v0.0.22

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

func (*SortedKeyValue) ProtoMessage added in v0.0.22

func (*SortedKeyValue) ProtoMessage()

func (*SortedKeyValue) Reset added in v0.0.22

func (m *SortedKeyValue) Reset()

func (*SortedKeyValue) Size added in v0.0.22

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

func (*SortedKeyValue) String added in v0.0.22

func (m *SortedKeyValue) String() string

func (*SortedKeyValue) Unmarshal added in v0.0.22

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

type Source added in v0.0.22

type Source struct {
	// Ticket of the source node
	Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// Fact name -> fact value
	Facts map[string][]byte `` /* 144-byte string literal not displayed */
	// Edge kind -> EdgeGroup
	EdgeGroups map[string]*Source_EdgeGroup `` /* 165-byte string literal not displayed */
}

Source is a collection of facts and edges with a common source.

func (*Source) Descriptor added in v0.0.22

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

func (*Source) GetEdgeGroups added in v0.0.22

func (m *Source) GetEdgeGroups() map[string]*Source_EdgeGroup

func (*Source) GetFacts added in v0.0.22

func (m *Source) GetFacts() map[string][]byte

func (*Source) Marshal added in v0.0.22

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

func (*Source) MarshalTo added in v0.0.22

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

func (*Source) ProtoMessage added in v0.0.22

func (*Source) ProtoMessage()

func (*Source) Reset added in v0.0.22

func (m *Source) Reset()

func (*Source) Size added in v0.0.22

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

func (*Source) String added in v0.0.22

func (m *Source) String() string

func (*Source) Unmarshal added in v0.0.22

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

type Source_Edge added in v0.0.22

type Source_Edge struct {
	// Target ticket of the edge
	Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// Ordinal of the edge
	Ordinal int32 `protobuf:"varint,2,opt,name=ordinal,proto3" json:"ordinal,omitempty"`
}

func (*Source_Edge) Descriptor added in v0.0.22

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

func (*Source_Edge) Marshal added in v0.0.22

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

func (*Source_Edge) MarshalTo added in v0.0.22

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

func (*Source_Edge) ProtoMessage added in v0.0.22

func (*Source_Edge) ProtoMessage()

func (*Source_Edge) Reset added in v0.0.22

func (m *Source_Edge) Reset()

func (*Source_Edge) Size added in v0.0.22

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

func (*Source_Edge) String added in v0.0.22

func (m *Source_Edge) String() string

func (*Source_Edge) Unmarshal added in v0.0.22

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

type Source_EdgeGroup added in v0.0.22

type Source_EdgeGroup struct {
	// Set of Edges sharing the same kind and source
	Edges []*Source_Edge `protobuf:"bytes,1,rep,name=edges" json:"edges,omitempty"`
}

func (*Source_EdgeGroup) Descriptor added in v0.0.22

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

func (*Source_EdgeGroup) GetEdges added in v0.0.22

func (m *Source_EdgeGroup) GetEdges() []*Source_Edge

func (*Source_EdgeGroup) Marshal added in v0.0.22

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

func (*Source_EdgeGroup) MarshalTo added in v0.0.22

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

func (*Source_EdgeGroup) ProtoMessage added in v0.0.22

func (*Source_EdgeGroup) ProtoMessage()

func (*Source_EdgeGroup) Reset added in v0.0.22

func (m *Source_EdgeGroup) Reset()

func (*Source_EdgeGroup) Size added in v0.0.22

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

func (*Source_EdgeGroup) String added in v0.0.22

func (m *Source_EdgeGroup) String() string

func (*Source_EdgeGroup) Unmarshal added in v0.0.22

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

Jump to

Keyboard shortcuts

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