append_entries_responses.pb.go 1.5 KB

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