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

package types

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
)

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

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"`
	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
}

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 {
	// 董事会成员参与率,以%为单位,只保留整数部分
	BoardAttendRatio int32 `protobuf:"varint,1,opt,name=boardAttendRatio,proto3" json:"boardAttendRatio,omitempty"`
	// 董事会成员赞成率
	BoardApproveRatio int32 `protobuf:"varint,2,opt,name=boardApproveRatio,proto3" json:"boardApproveRatio,omitempty"`
	// 全体持票人否决率
	PubOpposeRatio int32 `protobuf:"varint,3,opt,name=pubOpposeRatio,proto3" json:"pubOpposeRatio,omitempty"`
	// 提案金额
	ProposalAmount int64 `protobuf:"varint,4,opt,name=proposalAmount,proto3" json:"proposalAmount,omitempty"`
	// 重大项目公示金额阈值
	LargeProjectAmount int64 `protobuf:"varint,5,opt,name=largeProjectAmount,proto3" json:"largeProjectAmount,omitempty"`
	// 重大项目公示时间（以区块数为单位）
	PublicPeriod         int32    `protobuf:"varint,6,opt,name=publicPeriod,proto3" json:"publicPeriod,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) GetBoardAttendRatio() int32 {
	if m != nil {
		return m.BoardAttendRatio
	}
	return 0
}

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 init() {
	proto.RegisterType((*VoteResult)(nil), "types.VoteResult")
	proto.RegisterType((*PublicVote)(nil), "types.PublicVote")
	proto.RegisterType((*VotesRecord)(nil), "types.VotesRecord")
	proto.RegisterType((*RuleConfig)(nil), "types.RuleConfig")
}

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

var fileDescriptor_d916a933dd8220ff = []byte{
	// 314 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x3d, 0x4e, 0xf3, 0x40,
	0x10, 0x86, 0xe5, 0xfc, 0x7d, 0xc9, 0xe4, 0x03, 0xc1, 0x54, 0x2e, 0x10, 0x8a, 0x5c, 0x40, 0x84,
	0x50, 0x1a, 0x4e, 0x10, 0x71, 0x00, 0xac, 0x2d, 0xe8, 0xd7, 0xf6, 0x12, 0x19, 0x6d, 0x3c, 0xab,
	0xdd, 0x31, 0x52, 0x2e, 0x40, 0xc1, 0xa9, 0x91, 0x67, 0x13, 0x25, 0xc4, 0x48, 0x74, 0x9e, 0x67,
	0x9f, 0xe2, 0x9d, 0x77, 0x0c, 0x17, 0xb6, 0xa4, 0xed, 0x96, 0x9a, 0x95, 0xf3, 0xc4, 0x84, 0x63,
	0xde, 0x39, 0x13, 0xb2, 0xcf, 0x04, 0xe0, 0x95, 0xd8, 0x28, 0x13, 0x5a, 0xcb, 0x78, 0x0b, 0xc0,
	0xc4, 0xda, 0x76, 0x28, 0xa4, 0xc9, 0x22, 0x59, 0x8e, 0xd5, 0x09, 0xc1, 0x0c, 0xfe, 0x6b, 0xe7,
	0x3c, 0x7d, 0x98, 0x68, 0x0c, 0xc4, 0xf8, 0xc1,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