50 lines
1.3 KiB
Go
50 lines
1.3 KiB
Go
|
// 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() {
|
||
|
}
|