Back to godoc.org

Package proto

v0.3.3
Latest Go to latest

The latest major version is .

Published: Jan 20, 2020 | License: MIT | Module: github.com/bilibili/kratos

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

Variables

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier