Documentation ¶
Index ¶
- Variables
- type Gender
- type Person
- func (person *Person) DeepCp() *Person
- func (*Person) Descriptor() ([]byte, []int)
- func (m *Person) GetAge() int32
- func (m *Person) GetBirthDay() int32
- func (m *Person) GetGender() Gender
- func (m *Person) GetName() string
- func (m *Person) GetPhone() string
- func (m *Person) Marshal() (dAtA []byte, err error)
- func (m *Person) MarshalTo(dAtA []byte) (int, error)
- func (m *Person) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Person) ProtoMessage()
- func (m *Person) Reset()
- func (m *Person) Size() (n int)
- func (m *Person) String() string
- func (m *Person) Unmarshal(dAtA []byte) error
- func (m *Person) XXX_DiscardUnknown()
- func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Person) XXX_Merge(src proto.Message)
- func (m *Person) XXX_Size() int
- func (m *Person) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthData = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowData = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupData = fmt.Errorf("proto: unexpected end of group") )
View Source
var Gender_name = map[int32]string{
0: "men",
1: "women",
}
View Source
var Gender_value = map[string]int32{
"men": 0,
"women": 1,
}
Functions ¶
This section is empty.
Types ¶
type Person ¶
type Person struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" idx:"normal"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty" idx:"unique"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty" idx:"normal"` BirthDay int32 `protobuf:"varint,4,opt,name=birthDay,proto3" json:"birthDay,omitempty"` Gender Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=pb.Gender" json:"gender,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Person) Descriptor ¶
func (*Person) GetBirthDay ¶
func (*Person) MarshalToSizedBuffer ¶
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) XXX_DiscardUnknown ¶
func (m *Person) XXX_DiscardUnknown()
func (*Person) XXX_Marshal ¶
func (*Person) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.