request_vote_responses.pb.go 1.1 KB

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