...

Source file src/github.com/golang/groupcache/testpb/test.pb.go

Documentation: github.com/golang/groupcache/testpb

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

View as plain text