common_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: 4 Imported by: 0

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

Constants

This section is empty.

Variables

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

func (*Fact) Marshal

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

func (*Fact) MarshalTo

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

func (*Fact) ProtoMessage

func (*Fact) ProtoMessage()

func (*Fact) Reset

func (m *Fact) Reset()

func (*Fact) Size

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

func (*Fact) String

func (m *Fact) String() string

func (*Fact) Unmarshal

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

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

func (*Point) Marshal

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

func (*Point) MarshalTo

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

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) Size

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

func (*Point) String

func (m *Point) String() string

func (*Point) Unmarshal

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

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

func (*Span) GetEnd

func (m *Span) GetEnd() *Point

func (*Span) GetStart

func (m *Span) GetStart() *Point

func (*Span) Marshal

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

func (*Span) MarshalTo

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

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) Size

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

func (*Span) String

func (m *Span) String() string

func (*Span) Unmarshal

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

Jump to

Keyboard shortcuts

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