1// Code generated by protoc-gen-go. 2// source: test.proto 3// DO NOT EDIT! 4 5package testpb 6 7import proto "github.com/golang/protobuf/proto" 8import json "encoding/json" 9import math "math" 10 11// Reference proto, json, and math imports to suppress error if they are not otherwise used. 12var _ = proto.Marshal 13var _ = &json.SyntaxError{} 14var _ = math.Inf 15 16type 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:"-"` 20} 21 22func (m *TestMessage) Reset() { *m = TestMessage{} } 23func (m *TestMessage) String() string { return proto.CompactTextString(m) } 24func (*TestMessage) ProtoMessage() {} 25 26func (m *TestMessage) GetName() string { 27 if m != nil && m.Name != nil { 28 return *m.Name 29 } 30 return "" 31} 32 33func (m *TestMessage) GetCity() string { 34 if m != nil && m.City != nil { 35 return *m.City 36 } 37 return "" 38} 39 40type 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:"-"` 44} 45 46func (m *TestRequest) Reset() { *m = TestRequest{} } 47func (m *TestRequest) String() string { return proto.CompactTextString(m) } 48func (*TestRequest) ProtoMessage() {} 49 50const Default_TestRequest_RepeatCount int32 = 1 51 52func (m *TestRequest) GetLower() string { 53 if m != nil && m.Lower != nil { 54 return *m.Lower 55 } 56 return "" 57} 58 59func (m *TestRequest) GetRepeatCount() int32 { 60 if m != nil && m.RepeatCount != nil { 61 return *m.RepeatCount 62 } 63 return Default_TestRequest_RepeatCount 64} 65 66type TestResponse struct { 67 Value *string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` 68 XXX_unrecognized []byte `json:"-"` 69} 70 71func (m *TestResponse) Reset() { *m = TestResponse{} } 72func (m *TestResponse) String() string { return proto.CompactTextString(m) } 73func (*TestResponse) ProtoMessage() {} 74 75func (m *TestResponse) GetValue() string { 76 if m != nil && m.Value != nil { 77 return *m.Value 78 } 79 return "" 80} 81 82type 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:"-"` 89} 90 91func (m *CacheStats) Reset() { *m = CacheStats{} } 92func (m *CacheStats) String() string { return proto.CompactTextString(m) } 93func (*CacheStats) ProtoMessage() {} 94 95func (m *CacheStats) GetItems() int64 { 96 if m != nil && m.Items != nil { 97 return *m.Items 98 } 99 return 0 100} 101 102func (m *CacheStats) GetBytes() int64 { 103 if m != nil && m.Bytes != nil { 104 return *m.Bytes 105 } 106 return 0 107} 108 109func (m *CacheStats) GetGets() int64 { 110 if m != nil && m.Gets != nil { 111 return *m.Gets 112 } 113 return 0 114} 115 116func (m *CacheStats) GetHits() int64 { 117 if m != nil && m.Hits != nil { 118 return *m.Hits 119 } 120 return 0 121} 122 123func (m *CacheStats) GetEvicts() int64 { 124 if m != nil && m.Evicts != nil { 125 return *m.Evicts 126 } 127 return 0 128} 129 130type 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:"-"` 143} 144 145func (m *StatsResponse) Reset() { *m = StatsResponse{} } 146func (m *StatsResponse) String() string { return proto.CompactTextString(m) } 147func (*StatsResponse) ProtoMessage() {} 148 149func (m *StatsResponse) GetGets() int64 { 150 if m != nil && m.Gets != nil { 151 return *m.Gets 152 } 153 return 0 154} 155 156func (m *StatsResponse) GetCacheHits() int64 { 157 if m != nil && m.CacheHits != nil { 158 return *m.CacheHits 159 } 160 return 0 161} 162 163func (m *StatsResponse) GetFills() int64 { 164 if m != nil && m.Fills != nil { 165 return *m.Fills 166 } 167 return 0 168} 169 170func (m *StatsResponse) GetTotalAlloc() uint64 { 171 if m != nil && m.TotalAlloc != nil { 172 return *m.TotalAlloc 173 } 174 return 0 175} 176 177func (m *StatsResponse) GetMainCache() *CacheStats { 178 if m != nil { 179 return m.MainCache 180 } 181 return nil 182} 183 184func (m *StatsResponse) GetHotCache() *CacheStats { 185 if m != nil { 186 return m.HotCache 187 } 188 return nil 189} 190 191func (m *StatsResponse) GetServerIn() int64 { 192 if m != nil && m.ServerIn != nil { 193 return *m.ServerIn 194 } 195 return 0 196} 197 198func (m *StatsResponse) GetLoads() int64 { 199 if m != nil && m.Loads != nil { 200 return *m.Loads 201 } 202 return 0 203} 204 205func (m *StatsResponse) GetPeerLoads() int64 { 206 if m != nil && m.PeerLoads != nil { 207 return *m.PeerLoads 208 } 209 return 0 210} 211 212func (m *StatsResponse) GetPeerErrors() int64 { 213 if m != nil && m.PeerErrors != nil { 214 return *m.PeerErrors 215 } 216 return 0 217} 218 219func (m *StatsResponse) GetLocalLoads() int64 { 220 if m != nil && m.LocalLoads != nil { 221 return *m.LocalLoads 222 } 223 return 0 224} 225 226type Empty struct { 227 XXX_unrecognized []byte `json:"-"` 228} 229 230func (m *Empty) Reset() { *m = Empty{} } 231func (m *Empty) String() string { return proto.CompactTextString(m) } 232func (*Empty) ProtoMessage() {} 233 234func init() { 235} 236