*: regen protofiles with latest protobuf tools

This commit is contained in:
Anthony Romano
2017-06-12 14:25:01 -07:00
parent 2afd0a726f
commit 4ebeba0e18
5 changed files with 912 additions and 37 deletions

View File

@@ -67,6 +67,27 @@ func (m *CampaignRequest) String() string { return proto.CompactTextS
func (*CampaignRequest) ProtoMessage() {}
func (*CampaignRequest) Descriptor() ([]byte, []int) { return fileDescriptorV3Election, []int{0} }
func (m *CampaignRequest) GetName() []byte {
if m != nil {
return m.Name
}
return nil
}
func (m *CampaignRequest) GetLease() int64 {
if m != nil {
return m.Lease
}
return 0
}
func (m *CampaignRequest) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
type CampaignResponse struct {
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
// leader describes the resources used for holding leadereship of the election.
@@ -111,6 +132,34 @@ func (m *LeaderKey) String() string { return proto.CompactTextString(
func (*LeaderKey) ProtoMessage() {}
func (*LeaderKey) Descriptor() ([]byte, []int) { return fileDescriptorV3Election, []int{2} }
func (m *LeaderKey) GetName() []byte {
if m != nil {
return m.Name
}
return nil
}
func (m *LeaderKey) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *LeaderKey) GetRev() int64 {
if m != nil {
return m.Rev
}
return 0
}
func (m *LeaderKey) GetLease() int64 {
if m != nil {
return m.Lease
}
return 0
}
type LeaderRequest struct {
// name is the election identifier for the leadership information.
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
@@ -121,6 +170,13 @@ func (m *LeaderRequest) String() string { return proto.CompactTextStr
func (*LeaderRequest) ProtoMessage() {}
func (*LeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorV3Election, []int{3} }
func (m *LeaderRequest) GetName() []byte {
if m != nil {
return m.Name
}
return nil
}
type LeaderResponse struct {
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
// kv is the key-value pair representing the latest leader update.
@@ -198,6 +254,13 @@ func (m *ProclaimRequest) GetLeader() *LeaderKey {
return nil
}
func (m *ProclaimRequest) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
type ProclaimResponse struct {
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

View File

@@ -59,6 +59,20 @@ func (m *LockRequest) String() string { return proto.CompactTextStrin
func (*LockRequest) ProtoMessage() {}
func (*LockRequest) Descriptor() ([]byte, []int) { return fileDescriptorV3Lock, []int{0} }
func (m *LockRequest) GetName() []byte {
if m != nil {
return m.Name
}
return nil
}
func (m *LockRequest) GetLease() int64 {
if m != nil {
return m.Lease
}
return 0
}
type LockResponse struct {
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
// key is a key that will exist on etcd for the duration that the Lock caller
@@ -79,6 +93,13 @@ func (m *LockResponse) GetHeader() *etcdserverpb.ResponseHeader {
return nil
}
func (m *LockResponse) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
type UnlockRequest struct {
// key is the lock ownership key granted by Lock.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
@@ -89,6 +110,13 @@ func (m *UnlockRequest) String() string { return proto.CompactTextStr
func (*UnlockRequest) ProtoMessage() {}
func (*UnlockRequest) Descriptor() ([]byte, []int) { return fileDescriptorV3Lock, []int{2} }
func (m *UnlockRequest) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
type UnlockResponse struct {
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}