snapshot_recovery_response.pb.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Code generated by protoc-gen-go.
  2. // source: snapshot_recovery_response.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 ProtoSnapshotRecoveryResponse struct {
  13. Term *uint64 `protobuf:"varint,1,req" json:"Term,omitempty"`
  14. Success *bool `protobuf:"varint,2,req" json:"Success,omitempty"`
  15. CommitIndex *uint64 `protobuf:"varint,3,req" json:"CommitIndex,omitempty"`
  16. XXX_unrecognized []byte `json:"-"`
  17. }
  18. func (m *ProtoSnapshotRecoveryResponse) Reset() { *m = ProtoSnapshotRecoveryResponse{} }
  19. func (m *ProtoSnapshotRecoveryResponse) String() string { return proto.CompactTextString(m) }
  20. func (*ProtoSnapshotRecoveryResponse) ProtoMessage() {}
  21. func (m *ProtoSnapshotRecoveryResponse) GetTerm() uint64 {
  22. if m != nil && m.Term != nil {
  23. return *m.Term
  24. }
  25. return 0
  26. }
  27. func (m *ProtoSnapshotRecoveryResponse) GetSuccess() bool {
  28. if m != nil && m.Success != nil {
  29. return *m.Success
  30. }
  31. return false
  32. }
  33. func (m *ProtoSnapshotRecoveryResponse) GetCommitIndex() uint64 {
  34. if m != nil && m.CommitIndex != nil {
  35. return *m.CommitIndex
  36. }
  37. return 0
  38. }
  39. func init() {
  40. }