| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // Code generated by protoc-gen-go.
- // source: snapshot_recovery_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 ProtoSnapshotRecoveryRequest 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"`
- Peers []string `protobuf:"bytes,4,rep" json:"Peers,omitempty"`
- State []byte `protobuf:"bytes,5,req" json:"State,omitempty"`
- XXX_unrecognized []byte `json:"-"`
- }
- func (m *ProtoSnapshotRecoveryRequest) Reset() { *m = ProtoSnapshotRecoveryRequest{} }
- func (m *ProtoSnapshotRecoveryRequest) String() string { return proto.CompactTextString(m) }
- func (*ProtoSnapshotRecoveryRequest) ProtoMessage() {}
- func (m *ProtoSnapshotRecoveryRequest) GetLeaderName() string {
- if m != nil && m.LeaderName != nil {
- return *m.LeaderName
- }
- return ""
- }
- func (m *ProtoSnapshotRecoveryRequest) GetLastIndex() uint64 {
- if m != nil && m.LastIndex != nil {
- return *m.LastIndex
- }
- return 0
- }
- func (m *ProtoSnapshotRecoveryRequest) GetLastTerm() uint64 {
- if m != nil && m.LastTerm != nil {
- return *m.LastTerm
- }
- return 0
- }
- func (m *ProtoSnapshotRecoveryRequest) GetPeers() []string {
- if m != nil {
- return m.Peers
- }
- return nil
- }
- func (m *ProtoSnapshotRecoveryRequest) GetState() []byte {
- if m != nil {
- return m.State
- }
- return nil
- }
- func init() {
- }
|