log_entry.pb.go 1.3 KB

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