proto

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

TestItem

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTest   = fmt.Errorf("proto: integer overflow")
)
View Source
var FOO_name = map[int32]string{
	0: "X",
}
View Source
var FOO_value = map[string]int32{
	"X": 0,
}

Functions

This section is empty.

Types

type FOO

type FOO int32
const (
	FOO_X FOO = 0
)

func (FOO) EnumDescriptor

func (FOO) EnumDescriptor() ([]byte, []int)

func (FOO) String

func (x FOO) String() string

type TestItem

type TestItem struct {
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Age  int32  `protobuf:"varint,2,opt,name=Age,proto3" json:"Age,omitempty"`
}

func (*TestItem) Descriptor

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

func (*TestItem) GetAge

func (m *TestItem) GetAge() int32

func (*TestItem) GetName

func (m *TestItem) GetName() string

func (*TestItem) Marshal

func (m *TestItem) Marshal() (dAtA []byte, err error)

func (*TestItem) MarshalTo

func (m *TestItem) MarshalTo(dAtA []byte) (int, error)

func (*TestItem) ProtoMessage

func (*TestItem) ProtoMessage()

func (*TestItem) Reset

func (m *TestItem) Reset()

func (*TestItem) Size

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

func (*TestItem) String

func (m *TestItem) String() string

func (*TestItem) Unmarshal

func (m *TestItem) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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