...
1
2
3
4
5 package groupcachepb
6
7 import proto "github.com/golang/protobuf/proto"
8 import json "encoding/json"
9 import math "math"
10
11
12 var _ = proto.Marshal
13 var _ = &json.SyntaxError{}
14 var _ = math.Inf
15
16 type GetRequest struct {
17 Group *string `protobuf:"bytes,1,req,name=group" json:"group,omitempty"`
18 Key *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"`
19 XXX_unrecognized []byte `json:"-"`
20 }
21
22 func (m *GetRequest) Reset() { *m = GetRequest{} }
23 func (m *GetRequest) String() string { return proto.CompactTextString(m) }
24 func (*GetRequest) ProtoMessage() {}
25
26 func (m *GetRequest) GetGroup() string {
27 if m != nil && m.Group != nil {
28 return *m.Group
29 }
30 return ""
31 }
32
33 func (m *GetRequest) GetKey() string {
34 if m != nil && m.Key != nil {
35 return *m.Key
36 }
37 return ""
38 }
39
40 type GetResponse struct {
41 Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
42 MinuteQps *float64 `protobuf:"fixed64,2,opt,name=minute_qps" json:"minute_qps,omitempty"`
43 XXX_unrecognized []byte `json:"-"`
44 }
45
46 func (m *GetResponse) Reset() { *m = GetResponse{} }
47 func (m *GetResponse) String() string { return proto.CompactTextString(m) }
48 func (*GetResponse) ProtoMessage() {}
49
50 func (m *GetResponse) GetValue() []byte {
51 if m != nil {
52 return m.Value
53 }
54 return nil
55 }
56
57 func (m *GetResponse) GetMinuteQps() float64 {
58 if m != nil && m.MinuteQps != nil {
59 return *m.MinuteQps
60 }
61 return 0
62 }
63
64 func init() {
65 }
66
View as plain text