snapshot_recovery_request.pb.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Code generated by protoc-gen-go.
  2. // source: snapshot_recovery_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 ProtoSnapshotRecoveryRequest 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. Peers []string `protobuf:"bytes,4,rep" json:"Peers,omitempty"`
  17. State []byte `protobuf:"bytes,5,req" json:"State,omitempty"`
  18. XXX_unrecognized []byte `json:"-"`
  19. }
  20. func (m *ProtoSnapshotRecoveryRequest) Reset() { *m = ProtoSnapshotRecoveryRequest{} }
  21. func (m *ProtoSnapshotRecoveryRequest) String() string { return proto.CompactTextString(m) }
  22. func (*ProtoSnapshotRecoveryRequest) ProtoMessage() {}
  23. func (m *ProtoSnapshotRecoveryRequest) GetLeaderName() string {
  24. if m != nil && m.LeaderName != nil {
  25. return *m.LeaderName
  26. }
  27. return ""
  28. }
  29. func (m *ProtoSnapshotRecoveryRequest) GetLastIndex() uint64 {
  30. if m != nil && m.LastIndex != nil {
  31. return *m.LastIndex
  32. }
  33. return 0
  34. }
  35. func (m *ProtoSnapshotRecoveryRequest) GetLastTerm() uint64 {
  36. if m != nil && m.LastTerm != nil {
  37. return *m.LastTerm
  38. }
  39. return 0
  40. }
  41. func (m *ProtoSnapshotRecoveryRequest) GetPeers() []string {
  42. if m != nil {
  43. return m.Peers
  44. }
  45. return nil
  46. }
  47. func (m *ProtoSnapshotRecoveryRequest) GetState() []byte {
  48. if m != nil {
  49. return m.State
  50. }
  51. return nil
  52. }
  53. func init() {
  54. }