// Code generated by protoc-gen-go. DO NOT EDIT.
// source: orderer/tbft/metadata.proto

package tbft

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

// BlockMetadata stores data used by the TBFT OSNs when
// coordinating with each other, to be serialized into
// block meta dta field and used after failres and restarts.
type BlockMetadata struct {
	// Maintains a mapping between the cluster's OSNs
	// and their TBFT IDs.
	ConsenterIds []uint64 `protobuf:"varint,1,rep,packed,name=consenter_ids,json=consenterIds,proto3" json:"consenter_ids,omitempty"`
	// Carries the TBFT ID value that will be assigned
	// to the next OSN that will join this cluster.
	NextConsenterId      uint64   `protobuf:"varint,2,opt,name=next_consenter_id,json=nextConsenterId,proto3" json:"next_consenter_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_BlockMetadata proto.InternalMessageInfo

func (m *BlockMetadata) GetConsenterIds() []uint64 {
	if m != nil {
		return m.ConsenterIds
	}
	return nil
}

func (m *BlockMetadata) GetNextConsenterId() uint64 {
	if m != nil {
		return m.NextConsenterId
	}
	return 0
}

func init() {
	proto.RegisterType((*BlockMetadata)(nil), "tbft.BlockMetadata")
}

func init() { proto.RegisterFile("orderer/tbft/metadata.proto", fileDescriptor_1fa9a50a28884c5a) }

var fileDescriptor_1fa9a50a28884c5a = []byte{
	// 191 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xce, 0x2f, 0x4a, 0x49,
	0x2d, 0x4a, 0x2d, 0xd2, 0x2f, 0x49, 0x4a, 0x2b, 0xd1, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c,
	0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0x09, 0x2a, 0x25, 0x70, 0xf1, 0x3a,
	0xe5, 0xe4, 0x27, 0x67, 0xfb, 0x42, 0x25, 0x85, 0x94, 0xb9, 0x78, 0x93, 0xf3, 0xf3, 0x8a, 0x53,
	0xf3, 0x4a, 0x52, 0x8b, 0xe2, 0x33, 0x53, 0x8a, 0x25, 0x18, 0x15, 0x98, 0x35, 0x58, 0x82, 0x78,
	0xe0, 0x82, 0x9e, 0x29, 0xc5, 0x42, 0x5a, 0x5c, 0x82, 0x79, 0xa9, 0x15, 0x25, 0xf1, 0xc8, 0x2a,
	0x25, 0x98, 0x14, 0x18, 0x35, 0x58, 0x82, 0xf8, 0x41, 0x12, 0xce, 0x08, 0xc5, 0x4e, 0x49, 0x5c,
	0x5a, 0xf9, 0x45, 0xe9, 0x7a, 0x19, 0x95, 0x05, 0xa9, 0x45, 0x39, 0xa9, 0x29, 0xe9, 0xa9, 0x45,
	0x7a, 0x69, 0x89, 0x49, 0x45, 0x99, 0xc9, 0x10, 0x77, 0x14, 0xeb, 0x41, 0x1d, 0xa9, 0x07, 0x72,
	0x4f, 0x94, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x92, 0x16,
	0x7d, 0x88, 0x16, 0x5d, 0x88, 0x16, 0xdd, 0xf4, 0x7c, 0x7d, 0x64, 0xaf, 0x25, 0xb1, 0x81, 0xc5,
	0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x23, 0x85, 0x61, 0x12, 0xf1, 0x00, 0x00, 0x00,
}
