// Code generated by protoc-gen-go. DO NOT EDIT.
// source: lcommon.proto

package types

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

//三种投票选项
type AutonomyVoteOption int32

const (
	AutonomyVoteOption_INVALID AutonomyVoteOption = 0
	//支持
	AutonomyVoteOption_APPROVE AutonomyVoteOption = 1
	//反对
	AutonomyVoteOption_OPPOSE AutonomyVoteOption = 2
	//弃权
	AutonomyVoteOption_QUIT AutonomyVoteOption = 3
)

var AutonomyVoteOption_name = map[int32]string{
	0: "INVALID",
	1: "APPROVE",
	2: "OPPOSE",
	3: "QUIT",
}

var AutonomyVoteOption_value = map[string]int32{
	"INVALID": 0,
	"APPROVE": 1,
	"OPPOSE":  2,
	"QUIT":    3,
}

func (x AutonomyVoteOption) String() string {
	return proto.EnumName(AutonomyVoteOption_name, int32(x))
}

func (AutonomyVoteOption) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_d916a933dd8220ff, []int{0}
}

type VoteResult struct {
	// 总票数
	TotalVotes int32 `protobuf:"varint,1,opt,name=totalVotes,proto3" json:"totalVotes,omitempty"`
	// 赞成票
	ApproveVotes int32 `protobuf:"varint,2,opt,name=approveVotes,proto3" json:"approveVotes,omitempty"`
	// 反对票
	OpposeVotes int32 `protobuf:"varint,3,opt,name=opposeVotes,proto3" json:"opposeVotes,omitempty"`
	// 是否通过
	Pass bool `protobuf:"varint,4,opt,name=pass,proto3" json:"pass,omitempty"`
	//弃权票
	QuitVotes            int32    `protobuf:"varint,5,opt,name=quitVotes,proto3" json:"quitVotes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *VoteResult) Reset()         { *m = VoteResult{} }
func (m *VoteResult) String() string { return proto.CompactTextString(m) }
func (*VoteResult) ProtoMessage()    {}
func (*VoteResult) Descriptor() ([]byte, []int) {
	return fileDescriptor_d916a933dd8220ff, []int{0}
}

func (m *VoteResult) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_VoteResult.Unmarshal(m, b)
}
func (m *VoteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_VoteResult.Marshal(b, m, deterministic)
}
func (m *VoteResult) XXX_Merge(src proto.Message) {
	xxx_messageInfo_VoteResult.Merge(m, src)
}
func (m *VoteResult) XXX_Size() int {
	return xxx_messageInfo_VoteResult.Size(m)
}
func (m *VoteResult) XXX_DiscardUnknown() {
	xxx_messageInfo_VoteResult.DiscardUnknown(m)
}

var xxx_messageInfo_VoteResult proto.InternalMessageInfo

func (m *VoteResult) GetTotalVotes() int32 {
	if m != nil {
		return m.TotalVotes
	}
	return 0
}

func (m *VoteResult) GetApproveVotes() int32 {
	if m != nil {
		return m.ApproveVotes
	}
	return 0
}

func (m *VoteResult) GetOpposeVotes() int32 {
	if m != nil {
		return m.OpposeVotes
	}
	return 0
}

func (m *VoteResult) GetPass() bool {
	if m != nil {
		return m.Pass
	}
	return false
}

func (m *VoteResult) GetQuitVotes() int32 {
	if m != nil {
		return m.QuitVotes
	}
	return 0
}

type PublicVote struct {
	// 是否需要公示
	Publicity bool `protobuf:"varint,1,opt,name=publicity,proto3" json:"publicity,omitempty"`
	// 总票数
	TotalVotes int32 `protobuf:"varint,2,opt,name=totalVotes,proto3" json:"totalVotes,omitempty"`
	// 全体持票人反对票
	OpposeVotes int32 `protobuf:"varint,3,opt,name=opposeVotes,proto3" json:"opposeVotes,omitempty"`
	// 是否通过
	PubPass              bool     `protobuf:"varint,4,opt,name=pubPass,proto3" json:"pubPass,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *PublicVote) Reset()         { *m = PublicVote{} }
func (m *PublicVote) String() string { return proto.CompactTextString(m) }
func (*PublicVote) ProtoMessage()    {}
func (*PublicVote) Descriptor() ([]byte, []int) {
	return fileDescriptor_d916a933dd8220ff, []int{1}
}

func (m *PublicVote) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_PublicVote.Unmarshal(m, b)
}
func (m *PublicVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_PublicVote.Marshal(b, m, deterministic)
}
func (m *PublicVote) XXX_Merge(src proto.Message) {
	xxx_messageInfo_PublicVote.Merge(m, src)
}
func (m *PublicVote) XXX_Size() int {
	return xxx_messageInfo_PublicVote.Size(m)
}
func (m *PublicVote) XXX_DiscardUnknown() {
	xxx_messageInfo_PublicVote.DiscardUnknown(m)
}

var xxx_messageInfo_PublicVote proto.InternalMessageInfo

func (m *PublicVote) GetPublicity() bool {
	if m != nil {
		return m.Publicity
	}
	return false
}

func (m *PublicVote) GetTotalVotes() int32 {
	if m != nil {
		return m.TotalVotes
	}
	return 0
}

func (m *PublicVote) GetOpposeVotes() int32 {
	if m != nil {
		return m.OpposeVotes
	}
	return 0
}

func (m *PublicVote) GetPubPass() bool {
	if m != nil {
		return m.PubPass
	}
	return false
}

type VotesRecord struct {
	Address              []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *VotesRecord) Reset()         { *m = VotesRecord{} }
func (m *VotesRecord) String() string { return proto.CompactTextString(m) }
func (*VotesRecord) ProtoMessage()    {}
func (*VotesRecord) Descriptor() ([]byte, []int) {
	return fileDescriptor_d916a933dd8220ff, []int{2}
}

func (m *VotesRecord) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_VotesRecord.Unmarshal(m, b)
}
func (m *VotesRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_VotesRecord.Marshal(b, m, deterministic)
}
func (m *VotesRecord) XXX_Merge(src proto.Message) {
	xxx_messageInfo_VotesRecord.Merge(m, src)
}
func (m *VotesRecord) XXX_Size() int {
	return xxx_messageInfo_VotesRecord.Size(m)
}
func (m *VotesRecord) XXX_DiscardUnknown() {
	xxx_messageInfo_VotesRecord.DiscardUnknown(m)
}

var xxx_messageInfo_VotesRecord proto.InternalMessageInfo

func (m *VotesRecord) GetAddress() []string {
	if m != nil {
		return m.Address
	}
	return nil
}

type RuleConfig struct {
	// 董事会成员赞成率,以%为单位,只保留整数部分
	BoardApproveRatio int32 `protobuf:"varint,1,opt,name=boardApproveRatio,proto3" json:"boardApproveRatio,omitempty"`
	// 全体持票人否决率
	PubOpposeRatio int32 `protobuf:"varint,2,opt,name=pubOpposeRatio,proto3" json:"pubOpposeRatio,omitempty"`
	// 提案金额
	ProposalAmount int64 `protobuf:"varint,3,opt,name=proposalAmount,proto3" json:"proposalAmount,omitempty"`
	// 重大项目公示金额阈值
	LargeProjectAmount int64 `protobuf:"varint,4,opt,name=largeProjectAmount,proto3" json:"largeProjectAmount,omitempty"`
	// 重大项目公示时间（以区块数为单位）
	PublicPeriod int32 `protobuf:"varint,5,opt,name=publicPeriod,proto3" json:"publicPeriod,omitempty"`
	// 全体持票人参与率
	PubAttendRatio int32 `protobuf:"varint,6,opt,name=pubAttendRatio,proto3" json:"pubAttendRatio,omitempty"`
	// 全体持票人赞成率
	PubApproveRatio      int32    `protobuf:"varint,7,opt,name=pubApproveRatio,proto3" json:"pubApproveRatio,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *RuleConfig) Reset()         { *m = RuleConfig{} }
func (m *RuleConfig) String() string { return proto.CompactTextString(m) }
func (*RuleConfig) ProtoMessage()    {}
func (*RuleConfig) Descriptor() ([]byte, []int) {
	return fileDescriptor_d916a933dd8220ff, []int{3}
}

func (m *RuleConfig) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_RuleConfig.Unmarshal(m, b)
}
func (m *RuleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_RuleConfig.Marshal(b, m, deterministic)
}
func (m *RuleConfig) XXX_Merge(src proto.Message) {
	xxx_messageInfo_RuleConfig.Merge(m, src)
}
func (m *RuleConfig) XXX_Size() int {
	return xxx_messageInfo_RuleConfig.Size(m)
}
func (m *RuleConfig) XXX_DiscardUnknown() {
	xxx_messageInfo_RuleConfig.DiscardUnknown(m)
}

var xxx_messageInfo_RuleConfig proto.InternalMessageInfo

func (m *RuleConfig) GetBoardApproveRatio() int32 {
	if m != nil {
		return m.BoardApproveRatio
	}
	return 0
}

func (m *RuleConfig) GetPubOpposeRatio() int32 {
	if m != nil {
		return m.PubOpposeRatio
	}
	return 0
}

func (m *RuleConfig) GetProposalAmount() int64 {
	if m != nil {
		return m.ProposalAmount
	}
	return 0
}

func (m *RuleConfig) GetLargeProjectAmount() int64 {
	if m != nil {
		return m.LargeProjectAmount
	}
	return 0
}

func (m *RuleConfig) GetPublicPeriod() int32 {
	if m != nil {
		return m.PublicPeriod
	}
	return 0
}

func (m *RuleConfig) GetPubAttendRatio() int32 {
	if m != nil {
		return m.PubAttendRatio
	}
	return 0
}

func (m *RuleConfig) GetPubApproveRatio() int32 {
	if m != nil {
		return m.PubApproveRatio
	}
	return 0
}

type ActiveBoard struct {
	Boards               []string `protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"`
	Revboards            []string `protobuf:"bytes,2,rep,name=revboards,proto3" json:"revboards,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	StartHeight          int64    `protobuf:"varint,4,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ActiveBoard) Reset()         { *m = ActiveBoard{} }
func (m *ActiveBoard) String() string { return proto.CompactTextString(m) }
func (*ActiveBoard) ProtoMessage()    {}
func (*ActiveBoard) Descriptor() ([]byte, []int) {
	return fileDescriptor_d916a933dd8220ff, []int{4}
}

func (m *ActiveBoard) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ActiveBoard.Unmarshal(m, b)
}
func (m *ActiveBoard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ActiveBoard.Marshal(b, m, deterministic)
}
func (m *ActiveBoard) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ActiveBoard.Merge(m, src)
}
func (m *ActiveBoard) XXX_Size() int {
	return xxx_messageInfo_ActiveBoard.Size(m)
}
func (m *ActiveBoard) XXX_DiscardUnknown() {
	xxx_messageInfo_ActiveBoard.DiscardUnknown(m)
}

var xxx_messageInfo_ActiveBoard proto.InternalMessageInfo

func (m *ActiveBoard) GetBoards() []string {
	if m != nil {
		return m.Boards
	}
	return nil
}

func (m *ActiveBoard) GetRevboards() []string {
	if m != nil {
		return m.Revboards
	}
	return nil
}

func (m *ActiveBoard) GetAmount() int64 {
	if m != nil {
		return m.Amount
	}
	return 0
}

func (m *ActiveBoard) GetStartHeight() int64 {
	if m != nil {
		return m.StartHeight
	}
	return 0
}

func init() {
	proto.RegisterEnum("types.AutonomyVoteOption", AutonomyVoteOption_name, AutonomyVoteOption_value)
	proto.RegisterType((*VoteResult)(nil), "types.VoteResult")
	proto.RegisterType((*PublicVote)(nil), "types.PublicVote")
	proto.RegisterType((*VotesRecord)(nil), "types.VotesRecord")
	proto.RegisterType((*RuleConfig)(nil), "types.RuleConfig")
	proto.RegisterType((*ActiveBoard)(nil), "types.ActiveBoard")
}

func init() { proto.RegisterFile("lcommon.proto", fileDescriptor_d916a933dd8220ff) }

var fileDescriptor_d916a933dd8220ff = []byte{
	// 456 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcd, 0x8e, 0xd3, 0x30,
	0x14, 0x85, 0x49, 0xfa, 0x3b, 0xb7, 0xfc, 0x14, 0x2f, 0x50, 0x17, 0x08, 0x55, 0x59, 0x40, 0x85,
	0x50, 0x59, 0xf0, 0x04, 0x19, 0x66, 0x24, 0x2a, 0x21, 0x12, 0x0c, 0x74, 0xc1, 0xce, 0x49, 0x4c,
	0x31, 0x4a, 0x73, 0x8d, 0x7d, 0x53, 0xa9, 0x0b, 0xb6, 0x3c, 0x09, 0x0f, 0xc0, 0x23, 0x22, 0x3b,
	0x29, 0xcd, 0x64, 0x90, 0xd8, 0xe5, 0x7c, 0xf7, 0x58, 0x3a, 0xf7, 0x5c, 0x05, 0xee, 0x95, 0x39,
	0xee, 0xf7, 0x58, 0xad, 0xb5, 0x41, 0x42, 0x36, 0xa2, 0xa3, 0x96, 0x36, 0xfa, 0x15, 0x00, 0x6c,
	0x91, 0x24, 0x97, 0xb6, 0x2e, 0x89, 0x3d, 0x01, 0x20, 0x24, 0x51, 0x3a, 0x64, 0x17, 0xc1, 0x32,
	0x58, 0x8d, 0x78, 0x87, 0xb0, 0x08, 0xee, 0x0a, 0xad, 0x0d, 0x1e, 0x64, 0xe3, 0x08, 0xbd, 0xe3,
	0x06, 0x63, 0x4b, 0x98, 0xa1, 0xd6, 0x68, 0x5b, 0xcb, 0xc0, 0x5b, 0xba, 0x88, 0x31, 0x18, 0x6a,
	0x61, 0xed, 0x62, 0xb8, 0x0c, 0x56, 0x53, 0xee, 0xbf, 0xd9, 0x63, 0xb8, 0xf8, 0x5e, 0x2b, 0x6a,
	0xde, 0x8c, 0xfc, 0x9b, 0x33, 0x88, 0x7e, 0x06, 0x00, 0x69, 0x9d, 0x95, 0x2a, 0x77, 0xda, 0x99,
	0xb5, 0x57, 0x8a, 0x8e, 0x3e, 0xe5, 0x94, 0x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