github.com/hyperledger/fabric-protos-go@v0.3.3/orderer/etcdraft/metadata.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: orderer/etcdraft/metadata.proto
     3  
     4  package etcdraft
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	math "math"
    10  )
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // This is a compile-time assertion to ensure that this generated file
    18  // is compatible with the proto package it is being compiled against.
    19  // A compilation error at this line likely means your copy of the
    20  // proto package needs to be updated.
    21  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    22  
    23  // BlockMetadata stores data used by the Raft OSNs when
    24  // coordinating with each other, to be serialized into
    25  // block meta dta field and used after failres and restarts.
    26  type BlockMetadata struct {
    27  	// Maintains a mapping between the cluster's OSNs
    28  	// and their Raft IDs.
    29  	ConsenterIds []uint64 `protobuf:"varint,1,rep,packed,name=consenter_ids,json=consenterIds,proto3" json:"consenter_ids,omitempty"`
    30  	// Carries the Raft ID value that will be assigned
    31  	// to the next OSN that will join this cluster.
    32  	NextConsenterId uint64 `protobuf:"varint,2,opt,name=next_consenter_id,json=nextConsenterId,proto3" json:"next_consenter_id,omitempty"`
    33  	// Index of etcd/raft entry for current block.
    34  	RaftIndex            uint64   `protobuf:"varint,3,opt,name=raft_index,json=raftIndex,proto3" json:"raft_index,omitempty"`
    35  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    36  	XXX_unrecognized     []byte   `json:"-"`
    37  	XXX_sizecache        int32    `json:"-"`
    38  }
    39  
    40  func (m *BlockMetadata) Reset()         { *m = BlockMetadata{} }
    41  func (m *BlockMetadata) String() string { return proto.CompactTextString(m) }
    42  func (*BlockMetadata) ProtoMessage()    {}
    43  func (*BlockMetadata) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_6d0323e5051228ea, []int{0}
    45  }
    46  
    47  func (m *BlockMetadata) XXX_Unmarshal(b []byte) error {
    48  	return xxx_messageInfo_BlockMetadata.Unmarshal(m, b)
    49  }
    50  func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    51  	return xxx_messageInfo_BlockMetadata.Marshal(b, m, deterministic)
    52  }
    53  func (m *BlockMetadata) XXX_Merge(src proto.Message) {
    54  	xxx_messageInfo_BlockMetadata.Merge(m, src)
    55  }
    56  func (m *BlockMetadata) XXX_Size() int {
    57  	return xxx_messageInfo_BlockMetadata.Size(m)
    58  }
    59  func (m *BlockMetadata) XXX_DiscardUnknown() {
    60  	xxx_messageInfo_BlockMetadata.DiscardUnknown(m)
    61  }
    62  
    63  var xxx_messageInfo_BlockMetadata proto.InternalMessageInfo
    64  
    65  func (m *BlockMetadata) GetConsenterIds() []uint64 {
    66  	if m != nil {
    67  		return m.ConsenterIds
    68  	}
    69  	return nil
    70  }
    71  
    72  func (m *BlockMetadata) GetNextConsenterId() uint64 {
    73  	if m != nil {
    74  		return m.NextConsenterId
    75  	}
    76  	return 0
    77  }
    78  
    79  func (m *BlockMetadata) GetRaftIndex() uint64 {
    80  	if m != nil {
    81  		return m.RaftIndex
    82  	}
    83  	return 0
    84  }
    85  
    86  // ClusterMetadata encapsulates metadata that is exchanged among cluster nodes
    87  type ClusterMetadata struct {
    88  	// Indicates active nodes in cluster that are reacheable by Raft leader
    89  	ActiveNodes          []uint64 `protobuf:"varint,1,rep,packed,name=active_nodes,json=activeNodes,proto3" json:"active_nodes,omitempty"`
    90  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    91  	XXX_unrecognized     []byte   `json:"-"`
    92  	XXX_sizecache        int32    `json:"-"`
    93  }
    94  
    95  func (m *ClusterMetadata) Reset()         { *m = ClusterMetadata{} }
    96  func (m *ClusterMetadata) String() string { return proto.CompactTextString(m) }
    97  func (*ClusterMetadata) ProtoMessage()    {}
    98  func (*ClusterMetadata) Descriptor() ([]byte, []int) {
    99  	return fileDescriptor_6d0323e5051228ea, []int{1}
   100  }
   101  
   102  func (m *ClusterMetadata) XXX_Unmarshal(b []byte) error {
   103  	return xxx_messageInfo_ClusterMetadata.Unmarshal(m, b)
   104  }
   105  func (m *ClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   106  	return xxx_messageInfo_ClusterMetadata.Marshal(b, m, deterministic)
   107  }
   108  func (m *ClusterMetadata) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_ClusterMetadata.Merge(m, src)
   110  }
   111  func (m *ClusterMetadata) XXX_Size() int {
   112  	return xxx_messageInfo_ClusterMetadata.Size(m)
   113  }
   114  func (m *ClusterMetadata) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_ClusterMetadata.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_ClusterMetadata proto.InternalMessageInfo
   119  
   120  func (m *ClusterMetadata) GetActiveNodes() []uint64 {
   121  	if m != nil {
   122  		return m.ActiveNodes
   123  	}
   124  	return nil
   125  }
   126  
   127  func init() {
   128  	proto.RegisterType((*BlockMetadata)(nil), "etcdraft.BlockMetadata")
   129  	proto.RegisterType((*ClusterMetadata)(nil), "etcdraft.ClusterMetadata")
   130  }
   131  
   132  func init() { proto.RegisterFile("orderer/etcdraft/metadata.proto", fileDescriptor_6d0323e5051228ea) }
   133  
   134  var fileDescriptor_6d0323e5051228ea = []byte{
   135  	// 244 bytes of a gzipped FileDescriptorProto
   136  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xbf, 0x4f, 0x32, 0x41,
   137  	0x10, 0x86, 0xc3, 0x07, 0xf9, 0xa2, 0x23, 0x84, 0x78, 0xd5, 0x35, 0x46, 0xc4, 0x86, 0x98, 0xb0,
   138  	0x5b, 0x68, 0x61, 0x0d, 0x15, 0x85, 0x16, 0x94, 0x36, 0x97, 0xbd, 0xdd, 0xe1, 0x58, 0x3d, 0x76,
   139  	0xc8, 0xec, 0x60, 0xb0, 0xf2, 0x5f, 0x37, 0xcb, 0x71, 0x48, 0x6c, 0x9f, 0xf7, 0x79, 0x33, 0x3f,
   140  	0xe0, 0x96, 0xd8, 0x21, 0x23, 0x6b, 0x14, 0xeb, 0xd8, 0xac, 0x44, 0x6f, 0x50, 0x8c, 0x33, 0x62,
   141  	0xd4, 0x96, 0x49, 0x28, 0xbb, 0x68, 0x83, 0xf1, 0x37, 0x0c, 0x66, 0x35, 0xd9, 0x8f, 0x97, 0xa3,
   142  	0x90, 0xdd, 0xc3, 0xc0, 0x52, 0x88, 0x18, 0x04, 0xb9, 0xf0, 0x2e, 0xe6, 0x9d, 0x51, 0x77, 0xd2,
   143  	0x5b, 0xf6, 0x4f, 0x70, 0xe1, 0x62, 0xf6, 0x00, 0xd7, 0x01, 0xf7, 0x52, 0x9c, 0x9b, 0xf9, 0xbf,
   144  	0x51, 0x67, 0xd2, 0x5b, 0x0e, 0x53, 0x30, 0xff, 0x95, 0xb3, 0x1b, 0x80, 0x34, 0xa9, 0xf0, 0xc1,
   145  	0xe1, 0x3e, 0xef, 0x1e, 0xa4, 0xcb, 0x44, 0x16, 0x09, 0x8c, 0x9f, 0x60, 0x38, 0xaf, 0x77, 0x51,
   146  	0x90, 0x4f, 0x2b, 0xdc, 0x41, 0xdf, 0x58, 0xf1, 0x9f, 0x58, 0x04, 0x72, 0xd8, 0x6e, 0x70, 0xd5,
   147  	0xb0, 0xd7, 0x84, 0x66, 0xef, 0xa0, 0x88, 0x2b, 0xb5, 0xfe, 0xda, 0x22, 0xd7, 0xe8, 0x2a, 0x64,
   148  	0xb5, 0x32, 0x25, 0x7b, 0xdb, 0x1c, 0x18, 0xd5, 0xf1, 0x03, 0xaa, 0x3d, 0xf4, 0xed, 0xb9, 0xf2,
   149  	0xb2, 0xde, 0x95, 0xca, 0xd2, 0x46, 0x9f, 0xd5, 0x74, 0x53, 0x9b, 0x36, 0xb5, 0x69, 0x45, 0xfa,
   150  	0xef, 0xef, 0xca, 0xff, 0x87, 0xec, 0xf1, 0x27, 0x00, 0x00, 0xff, 0xff, 0xcf, 0xbd, 0xfc, 0x44,
   151  	0x56, 0x01, 0x00, 0x00,
   152  }