42 lines
1.1 KiB
Go
42 lines
1.1 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: request_vote_responses.proto
|
|
// DO NOT EDIT!
|
|
|
|
package protobuf
|
|
|
|
import proto "code.google.com/p/goprotobuf/proto"
|
|
import json "encoding/json"
|
|
import math "math"
|
|
|
|
// Reference proto, json, and math imports to suppress error if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = &json.SyntaxError{}
|
|
var _ = math.Inf
|
|
|
|
type ProtoRequestVoteResponse struct {
|
|
Term *uint64 `protobuf:"varint,1,req" json:"Term,omitempty"`
|
|
VoteGranted *bool `protobuf:"varint,2,req" json:"VoteGranted,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *ProtoRequestVoteResponse) Reset() { *m = ProtoRequestVoteResponse{} }
|
|
func (m *ProtoRequestVoteResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ProtoRequestVoteResponse) ProtoMessage() {}
|
|
|
|
func (m *ProtoRequestVoteResponse) GetTerm() uint64 {
|
|
if m != nil && m.Term != nil {
|
|
return *m.Term
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProtoRequestVoteResponse) GetVoteGranted() bool {
|
|
if m != nil && m.VoteGranted != nil {
|
|
return *m.VoteGranted
|
|
}
|
|
return false
|
|
}
|
|
|
|
func init() {
|
|
}
|