2013-07-18 20:39:07 +00:00
|
|
|
// Code generated by protoc-gen-go.
|
2013-07-22 21:29:54 +00:00
|
|
|
// source: snapshot_recovery_request.proto
|
2013-07-18 20:39:07 +00:00
|
|
|
// 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 {
|
2013-08-15 23:35:01 +00:00
|
|
|
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 []*ProtoSnapshotRecoveryRequest_ProtoPeer `protobuf:"bytes,4,rep" json:"Peers,omitempty"`
|
|
|
|
State []byte `protobuf:"bytes,5,req" json:"State,omitempty"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
2013-07-18 20:39:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2013-08-15 23:35:01 +00:00
|
|
|
func (m *ProtoSnapshotRecoveryRequest) GetPeers() []*ProtoSnapshotRecoveryRequest_ProtoPeer {
|
2013-07-18 20:39:07 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Peers
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProtoSnapshotRecoveryRequest) GetState() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.State
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2013-08-15 23:35:01 +00:00
|
|
|
type ProtoSnapshotRecoveryRequest_ProtoPeer struct {
|
|
|
|
Name *string `protobuf:"bytes,1,req" json:"Name,omitempty"`
|
|
|
|
ConnectionString *string `protobuf:"bytes,2,req" json:"ConnectionString,omitempty"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProtoSnapshotRecoveryRequest_ProtoPeer) Reset() {
|
|
|
|
*m = ProtoSnapshotRecoveryRequest_ProtoPeer{}
|
|
|
|
}
|
|
|
|
func (m *ProtoSnapshotRecoveryRequest_ProtoPeer) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ProtoSnapshotRecoveryRequest_ProtoPeer) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (m *ProtoSnapshotRecoveryRequest_ProtoPeer) GetName() string {
|
|
|
|
if m != nil && m.Name != nil {
|
|
|
|
return *m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProtoSnapshotRecoveryRequest_ProtoPeer) GetConnectionString() string {
|
|
|
|
if m != nil && m.ConnectionString != nil {
|
|
|
|
return *m.ConnectionString
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2013-07-18 20:39:07 +00:00
|
|
|
func init() {
|
|
|
|
}
|