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 ¶
- Variables
- type FOO
- type TestItem
- func (*TestItem) Descriptor() ([]byte, []int)
- func (m *TestItem) GetAge() int32
- func (m *TestItem) GetName() string
- func (m *TestItem) Marshal() (dAtA []byte, err error)
- func (m *TestItem) MarshalTo(dAtA []byte) (int, error)
- func (*TestItem) ProtoMessage()
- func (m *TestItem) Reset()
- func (m *TestItem) Size() (n int)
- func (m *TestItem) String() string
- func (m *TestItem) Unmarshal(dAtA []byte) error
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 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) ProtoMessage ¶
func (*TestItem) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.