snapshot_request.pb.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Code generated by protoc-gen-go.
  2. // source: snapshot_request.proto
  3. // DO NOT EDIT!
  4. package protobuf
  5. import proto "code.google.com/p/goprotobuf/proto"
  6. import json "encoding/json"
  7. import math "math"
  8. // Reference proto, json, and math imports to suppress error if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = &json.SyntaxError{}
  11. var _ = math.Inf
  12. type ProtoSnapshotRequest struct {
  13. LeaderName *string `protobuf:"bytes,1,req" json:"LeaderName,omitempty"`
  14. LastIndex *uint64 `protobuf:"varint,2,req" json:"LastIndex,omitempty"`
  15. LastTerm *uint64 `protobuf:"varint,3,req" json:"LastTerm,omitempty"`
  16. XXX_unrecognized []byte `json:"-"`
  17. }
  18. func (m *ProtoSnapshotRequest) Reset() { *m = ProtoSnapshotRequest{} }
  19. func (m *ProtoSnapshotRequest) String() string { return proto.CompactTextString(m) }
  20. func (*ProtoSnapshotRequest) ProtoMessage() {}
  21. func (m *ProtoSnapshotRequest) GetLeaderName() string {
  22. if m != nil && m.LeaderName != nil {
  23. return *m.LeaderName
  24. }
  25. return ""
  26. }
  27. func (m *ProtoSnapshotRequest) GetLastIndex() uint64 {
  28. if m != nil && m.LastIndex != nil {
  29. return *m.LastIndex
  30. }
  31. return 0
  32. }
  33. func (m *ProtoSnapshotRequest) GetLastTerm() uint64 {
  34. if m != nil && m.LastTerm != nil {
  35. return *m.LastTerm
  36. }
  37. return 0
  38. }
  39. func init() {
  40. }