Documentation ¶
Overview ¶
Package common_proto is a generated protocol buffer package.
It is generated from these files:
kythe/proto/common.proto
It has these top-level messages:
Fact Point Span
Index ¶
- Variables
- type Fact
- type Point
- func (*Point) Descriptor() ([]byte, []int)
- func (m *Point) Marshal() (data []byte, err error)
- func (m *Point) MarshalTo(data []byte) (int, error)
- func (*Point) ProtoMessage()
- func (m *Point) Reset()
- func (m *Point) Size() (n int)
- func (m *Point) String() string
- func (m *Point) Unmarshal(data []byte) error
- type Span
- func (*Span) Descriptor() ([]byte, []int)
- func (m *Span) GetEnd() *Point
- func (m *Span) GetStart() *Point
- func (m *Span) Marshal() (data []byte, err error)
- func (m *Span) MarshalTo(data []byte) (int, error)
- func (*Span) ProtoMessage()
- func (m *Span) Reset()
- func (m *Span) Size() (n int)
- func (m *Span) String() string
- func (m *Span) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommon = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Fact ¶
type Fact struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
Fact represents a single key/value fact from the graph.
func (*Fact) Descriptor ¶ added in v0.0.21
func (*Fact) ProtoMessage ¶
func (*Fact) ProtoMessage()
type Point ¶
type Point struct { ByteOffset int32 `protobuf:"varint,1,opt,name=byte_offset,json=byteOffset,proto3" json:"byte_offset,omitempty"` LineNumber int32 `protobuf:"varint,2,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"` ColumnOffset int32 `protobuf:"varint,3,opt,name=column_offset,json=columnOffset,proto3" json:"column_offset,omitempty"` }
A Point represents a location within a file or buffer.
If line_number ≤ 0, the line number and column offset are considered unknown and will be ignored.
A point with line_number > 0 is said to be _normalized_ if it satisfies the constraint 0 ≤ column_offset ≤ bytelen(line_number); that is, if the column_offset is within the actual range of the corresponding line. A point can be normalized by adjusting line_number and column_offset so that this constraint is satisfied. This may be impossible if the column offset exceeds the bounds of the file.
func (*Point) Descriptor ¶ added in v0.0.21
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
type Span ¶
type Span struct { Start *Point `protobuf:"bytes,1,opt,name=start" json:"start,omitempty"` End *Point `protobuf:"bytes,2,opt,name=end" json:"end,omitempty"` }
A Span represents an inclusive-exclusive range inside of a file or buffer.
func (*Span) Descriptor ¶ added in v0.0.21
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()