Documentation ¶
Overview ¶
Package dist is a generated protocol buffer package.
It is generated from these files:
person.proto
It has these top-level messages:
Person Address Obj
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gender_name = map[int32]string{
0: "M",
1: "F",
}
View Source
var Gender_value = map[string]int32{
"M": 0,
"F": 1,
}
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { City string `protobuf:"bytes,1,opt,name=city" json:"city,omitempty"` Places []string `protobuf:"bytes,2,rep,name=places" json:"places,omitempty"` Child *Obj `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"` }
func (*Address) Descriptor ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
type Obj ¶
type Obj struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*Obj) Descriptor ¶
func (*Obj) ProtoMessage ¶
func (*Obj) ProtoMessage()
type Person ¶
type Person struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Age int32 `protobuf:"varint,2,opt,name=age" json:"age,omitempty"` Gender Gender `protobuf:"varint,3,opt,name=gender,enum=Gender" json:"gender,omitempty"` Address *Address `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"` }
func (*Person) Descriptor ¶
func (*Person) GetAddress ¶
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.