// Code generated by protoc-gen-go. DO NOT EDIT. // source: valnode.proto package types import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf type ValNode struct { PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"` Power int64 `protobuf:"varint,2,opt,name=power" json:"power,omitempty"` } func (m *ValNode) Reset() { *m = ValNode{} } func (m *ValNode) String() string { return proto.CompactTextString(m) } func (*ValNode) ProtoMessage() {} func (*ValNode) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } func (m *ValNode) GetPubKey() []byte { if m != nil { return m.PubKey } return nil } func (m *ValNode) GetPower() int64 { if m != nil { return m.Power } return 0 } type ValNodes struct { Nodes []*ValNode `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"` } func (m *ValNodes) Reset() { *m = ValNodes{} } func (m *ValNodes) String() string { return proto.CompactTextString(m) } func (*ValNodes) ProtoMessage() {} func (*ValNodes) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } func (m *ValNodes) GetNodes() []*ValNode { if m != nil { return m.Nodes } return nil } type ValNodeAction struct { // Types that are valid to be assigned to Value: // *ValNodeAction_Node // *ValNodeAction_BlockInfo Value isValNodeAction_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,3,opt,name=Ty" json:"Ty,omitempty"` } func (m *ValNodeAction) Reset() { *m = ValNodeAction{} } func (m *ValNodeAction) String() string { return proto.CompactTextString(m) } func (*ValNodeAction) ProtoMessage() {} func (*ValNodeAction) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} } type isValNodeAction_Value interface { isValNodeAction_Value() } type ValNodeAction_Node struct { Node *ValNode `protobuf:"bytes,1,opt,name=node,oneof"` } type ValNodeAction_BlockInfo struct { BlockInfo *TendermintBlockInfo `protobuf:"bytes,2,opt,name=blockInfo,oneof"` } func (*ValNodeAction_Node) isValNodeAction_Value() {} func (*ValNodeAction_BlockInfo) isValNodeAction_Value() {} func (m *ValNodeAction) GetValue() isValNodeAction_Value { if m != nil { return m.Value } return nil } func (m *ValNodeAction) GetNode() *ValNode { if x, ok := m.GetValue().(*ValNodeAction_Node); ok { return x.Node } return nil } func (m *ValNodeAction) GetBlockInfo() *TendermintBlockInfo { if x, ok := m.GetValue().(*ValNodeAction_BlockInfo); ok { return x.BlockInfo } return nil } func (m *ValNodeAction) GetTy() int32 { if m != nil { return m.Ty } return 0 } // XXX_OneofFuncs is for the internal use of the proto package. func (*ValNodeAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _ValNodeAction_OneofMarshaler, _ValNodeAction_OneofUnmarshaler, _ValNodeAction_OneofSizer, []interface{}{ (*ValNodeAction_Node)(nil), (*ValNodeAction_BlockInfo)(nil), } } func _ValNodeAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*ValNodeAction) // value switch x := m.Value.(type) { case *ValNodeAction_Node: b.EncodeVarint(1<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Node); err != nil { return err } case *ValNodeAction_BlockInfo: b.EncodeVarint(2<<3 | proto.WireBytes) if err := b.EncodeMessage(x.BlockInfo); err != nil { return err } case nil: default: return fmt.Errorf("ValNodeAction.Value has unexpected type %T", x) } return nil } func _ValNodeAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*ValNodeAction) switch tag { case 1: // value.node if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ValNode) err := b.DecodeMessage(msg) m.Value = &ValNodeAction_Node{msg} return true, err case 2: // value.blockInfo if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(TendermintBlockInfo) err := b.DecodeMessage(msg) m.Value = &ValNodeAction_BlockInfo{msg} return true, err default: return false, nil } } func _ValNodeAction_OneofSizer(msg proto.Message) (n int) { m := msg.(*ValNodeAction) // value switch x := m.Value.(type) { case *ValNodeAction_Node: s := proto.Size(x.Node) n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *ValNodeAction_BlockInfo: s := proto.Size(x.BlockInfo) n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) } return n } type ReqNodeInfo struct { Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"` } func (m *ReqNodeInfo) Reset() { *m = ReqNodeInfo{} } func (m *ReqNodeInfo) String() string { return proto.CompactTextString(m) } func (*ReqNodeInfo) ProtoMessage() {} func (*ReqNodeInfo) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} } func (m *ReqNodeInfo) GetHeight() int64 { if m != nil { return m.Height } return 0 } type ReqBlockInfo struct { Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"` } func (m *ReqBlockInfo) Reset() { *m = ReqBlockInfo{} } func (m *ReqBlockInfo) String() string { return proto.CompactTextString(m) } func (*ReqBlockInfo) ProtoMessage() {} func (*ReqBlockInfo) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} } func (m *ReqBlockInfo) GetHeight() int64 { if m != nil { return m.Height } return 0 } func init() { proto.RegisterType((*ValNode)(nil), "types.ValNode") proto.RegisterType((*ValNodes)(nil), "types.ValNodes") proto.RegisterType((*ValNodeAction)(nil), "types.ValNodeAction") proto.RegisterType((*ReqNodeInfo)(nil), "types.ReqNodeInfo") proto.RegisterType((*ReqBlockInfo)(nil), "types.ReqBlockInfo") } func init() { proto.RegisterFile("valnode.proto", fileDescriptor1) } var fileDescriptor1 = []byte{ // 261 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x41, 0x4b, 0xc3, 0x30, 0x14, 0xc7, 0x97, 0xd6, 0x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