| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- // Code generated by protoc-gen-go.
- // source: snapshot_request.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 ProtoSnapshotRequest struct {
- LeaderName *string `protobuf:"bytes,1,req" json:"LeaderName,omitempty"`
- LastIndex *uint64 `protobuf:"varint,2,req" json:"LastIndex,omitempty"`
- LastTerm *uint64 `protobuf:"varint,3,req" json:"LastTerm,omitempty"`
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *ProtoSnapshotRequest) Reset() { *m = ProtoSnapshotRequest{} }
- func (m *ProtoSnapshotRequest) String() string { return proto.CompactTextString(m) }
- func (*ProtoSnapshotRequest) ProtoMessage() {}
- func (m *ProtoSnapshotRequest) GetLeaderName() string {
- if m != nil && m.LeaderName != nil {
- return *m.LeaderName
- }
- return ""
- }
- func (m *ProtoSnapshotRequest) GetLastIndex() uint64 {
- if m != nil && m.LastIndex != nil {
- return *m.LastIndex
- }
- return 0
- }
- func (m *ProtoSnapshotRequest) GetLastTerm() uint64 {
- if m != nil && m.LastTerm != nil {
- return *m.LastTerm
- }
- return 0
- }
- func init() {
- }
|