1 // Code generated by protoc-gen-go.
7 import proto "github.com/golang/protobuf/proto"
8 import json "encoding/json"
11 // Reference proto, json, and math imports to suppress error if they are not otherwise used.
13 var _ = &json.SyntaxError{}
16 type TestMessage struct {
17 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
18 City *string `protobuf:"bytes,2,opt,name=city" json:"city,omitempty"`
19 XXX_unrecognized []byte `json:"-"`
22 func (m *TestMessage) Reset() { *m = TestMessage{} }
23 func (m *TestMessage) String() string { return proto.CompactTextString(m) }
24 func (*TestMessage) ProtoMessage() {}
26 func (m *TestMessage) GetName() string {
27 if m != nil && m.Name != nil {
33 func (m *TestMessage) GetCity() string {
34 if m != nil && m.City != nil {
40 type TestRequest struct {
41 Lower *string `protobuf:"bytes,1,req,name=lower" json:"lower,omitempty"`
42 RepeatCount *int32 `protobuf:"varint,2,opt,name=repeat_count,def=1" json:"repeat_count,omitempty"`
43 XXX_unrecognized []byte `json:"-"`
46 func (m *TestRequest) Reset() { *m = TestRequest{} }
47 func (m *TestRequest) String() string { return proto.CompactTextString(m) }
48 func (*TestRequest) ProtoMessage() {}
50 const Default_TestRequest_RepeatCount int32 = 1
52 func (m *TestRequest) GetLower() string {
53 if m != nil && m.Lower != nil {
59 func (m *TestRequest) GetRepeatCount() int32 {
60 if m != nil && m.RepeatCount != nil {
63 return Default_TestRequest_RepeatCount
66 type TestResponse struct {
67 Value *string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
68 XXX_unrecognized []byte `json:"-"`
71 func (m *TestResponse) Reset() { *m = TestResponse{} }
72 func (m *TestResponse) String() string { return proto.CompactTextString(m) }
73 func (*TestResponse) ProtoMessage() {}
75 func (m *TestResponse) GetValue() string {
76 if m != nil && m.Value != nil {
82 type CacheStats struct {
83 Items *int64 `protobuf:"varint,1,opt,name=items" json:"items,omitempty"`
84 Bytes *int64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"`
85 Gets *int64 `protobuf:"varint,3,opt,name=gets" json:"gets,omitempty"`
86 Hits *int64 `protobuf:"varint,4,opt,name=hits" json:"hits,omitempty"`
87 Evicts *int64 `protobuf:"varint,5,opt,name=evicts" json:"evicts,omitempty"`
88 XXX_unrecognized []byte `json:"-"`
91 func (m *CacheStats) Reset() { *m = CacheStats{} }
92 func (m *CacheStats) String() string { return proto.CompactTextString(m) }
93 func (*CacheStats) ProtoMessage() {}
95 func (m *CacheStats) GetItems() int64 {
96 if m != nil && m.Items != nil {
102 func (m *CacheStats) GetBytes() int64 {
103 if m != nil && m.Bytes != nil {
109 func (m *CacheStats) GetGets() int64 {
110 if m != nil && m.Gets != nil {
116 func (m *CacheStats) GetHits() int64 {
117 if m != nil && m.Hits != nil {
123 func (m *CacheStats) GetEvicts() int64 {
124 if m != nil && m.Evicts != nil {
130 type StatsResponse struct {
131 Gets *int64 `protobuf:"varint,1,opt,name=gets" json:"gets,omitempty"`
132 CacheHits *int64 `protobuf:"varint,12,opt,name=cache_hits" json:"cache_hits,omitempty"`
133 Fills *int64 `protobuf:"varint,2,opt,name=fills" json:"fills,omitempty"`
134 TotalAlloc *uint64 `protobuf:"varint,3,opt,name=total_alloc" json:"total_alloc,omitempty"`
135 MainCache *CacheStats `protobuf:"bytes,4,opt,name=main_cache" json:"main_cache,omitempty"`
136 HotCache *CacheStats `protobuf:"bytes,5,opt,name=hot_cache" json:"hot_cache,omitempty"`
137 ServerIn *int64 `protobuf:"varint,6,opt,name=server_in" json:"server_in,omitempty"`
138 Loads *int64 `protobuf:"varint,8,opt,name=loads" json:"loads,omitempty"`
139 PeerLoads *int64 `protobuf:"varint,9,opt,name=peer_loads" json:"peer_loads,omitempty"`
140 PeerErrors *int64 `protobuf:"varint,10,opt,name=peer_errors" json:"peer_errors,omitempty"`
141 LocalLoads *int64 `protobuf:"varint,11,opt,name=local_loads" json:"local_loads,omitempty"`
142 XXX_unrecognized []byte `json:"-"`
145 func (m *StatsResponse) Reset() { *m = StatsResponse{} }
146 func (m *StatsResponse) String() string { return proto.CompactTextString(m) }
147 func (*StatsResponse) ProtoMessage() {}
149 func (m *StatsResponse) GetGets() int64 {
150 if m != nil && m.Gets != nil {
156 func (m *StatsResponse) GetCacheHits() int64 {
157 if m != nil && m.CacheHits != nil {
163 func (m *StatsResponse) GetFills() int64 {
164 if m != nil && m.Fills != nil {
170 func (m *StatsResponse) GetTotalAlloc() uint64 {
171 if m != nil && m.TotalAlloc != nil {
177 func (m *StatsResponse) GetMainCache() *CacheStats {
184 func (m *StatsResponse) GetHotCache() *CacheStats {
191 func (m *StatsResponse) GetServerIn() int64 {
192 if m != nil && m.ServerIn != nil {
198 func (m *StatsResponse) GetLoads() int64 {
199 if m != nil && m.Loads != nil {
205 func (m *StatsResponse) GetPeerLoads() int64 {
206 if m != nil && m.PeerLoads != nil {
212 func (m *StatsResponse) GetPeerErrors() int64 {
213 if m != nil && m.PeerErrors != nil {
219 func (m *StatsResponse) GetLocalLoads() int64 {
220 if m != nil && m.LocalLoads != nil {
227 XXX_unrecognized []byte `json:"-"`
230 func (m *Empty) Reset() { *m = Empty{} }
231 func (m *Empty) String() string { return proto.CompactTextString(m) }
232 func (*Empty) ProtoMessage() {}