/
structdef.pb.go
80 lines (66 loc) · 1.85 KB
/
structdef.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Code generated by protoc-gen-go.
// source: structdef.proto
// DO NOT EDIT!
/*
Package goserbench is a generated protocol buffer package.
It is generated from these files:
structdef.proto
It has these top-level messages:
ProtoBufA
*/
package goserbench
import proto "code.google.com/p/goprotobuf/proto"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = math.Inf
type ProtoBufA struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
BirthDay *int64 `protobuf:"varint,2,req,name=birthDay" json:"birthDay,omitempty"`
Phone *string `protobuf:"bytes,3,req,name=phone" json:"phone,omitempty"`
Siblings *int32 `protobuf:"varint,4,req,name=siblings" json:"siblings,omitempty"`
Spouse *bool `protobuf:"varint,5,req,name=spouse" json:"spouse,omitempty"`
Money *float64 `protobuf:"fixed64,6,req,name=money" json:"money,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ProtoBufA) Reset() { *m = ProtoBufA{} }
func (m *ProtoBufA) String() string { return proto.CompactTextString(m) }
func (*ProtoBufA) ProtoMessage() {}
func (m *ProtoBufA) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *ProtoBufA) GetBirthDay() int64 {
if m != nil && m.BirthDay != nil {
return *m.BirthDay
}
return 0
}
func (m *ProtoBufA) GetPhone() string {
if m != nil && m.Phone != nil {
return *m.Phone
}
return ""
}
func (m *ProtoBufA) GetSiblings() int32 {
if m != nil && m.Siblings != nil {
return *m.Siblings
}
return 0
}
func (m *ProtoBufA) GetSpouse() bool {
if m != nil && m.Spouse != nil {
return *m.Spouse
}
return false
}
func (m *ProtoBufA) GetMoney() float64 {
if m != nil && m.Money != nil {
return *m.Money
}
return 0
}
func init() {
}