github.com/hyperledger/fabric-protos-go@v0.3.3/common/ledger.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: common/ledger.proto
     3  
     4  package common
     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  // Contains information about the blockchain ledger such as height, current
    24  // block hash, and previous block hash.
    25  type BlockchainInfo struct {
    26  	Height            uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
    27  	CurrentBlockHash  []byte `protobuf:"bytes,2,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"`
    28  	PreviousBlockHash []byte `protobuf:"bytes,3,opt,name=previousBlockHash,proto3" json:"previousBlockHash,omitempty"`
    29  	// Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot.
    30  	// It is nil if the channel is not bootstrapped from a snapshot.
    31  	BootstrappingSnapshotInfo *BootstrappingSnapshotInfo `protobuf:"bytes,4,opt,name=bootstrappingSnapshotInfo,proto3" json:"bootstrappingSnapshotInfo,omitempty"`
    32  	XXX_NoUnkeyedLiteral      struct{}                   `json:"-"`
    33  	XXX_unrecognized          []byte                     `json:"-"`
    34  	XXX_sizecache             int32                      `json:"-"`
    35  }
    36  
    37  func (m *BlockchainInfo) Reset()         { *m = BlockchainInfo{} }
    38  func (m *BlockchainInfo) String() string { return proto.CompactTextString(m) }
    39  func (*BlockchainInfo) ProtoMessage()    {}
    40  func (*BlockchainInfo) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_da3410306adbea27, []int{0}
    42  }
    43  
    44  func (m *BlockchainInfo) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_BlockchainInfo.Unmarshal(m, b)
    46  }
    47  func (m *BlockchainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_BlockchainInfo.Marshal(b, m, deterministic)
    49  }
    50  func (m *BlockchainInfo) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_BlockchainInfo.Merge(m, src)
    52  }
    53  func (m *BlockchainInfo) XXX_Size() int {
    54  	return xxx_messageInfo_BlockchainInfo.Size(m)
    55  }
    56  func (m *BlockchainInfo) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_BlockchainInfo.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_BlockchainInfo proto.InternalMessageInfo
    61  
    62  func (m *BlockchainInfo) GetHeight() uint64 {
    63  	if m != nil {
    64  		return m.Height
    65  	}
    66  	return 0
    67  }
    68  
    69  func (m *BlockchainInfo) GetCurrentBlockHash() []byte {
    70  	if m != nil {
    71  		return m.CurrentBlockHash
    72  	}
    73  	return nil
    74  }
    75  
    76  func (m *BlockchainInfo) GetPreviousBlockHash() []byte {
    77  	if m != nil {
    78  		return m.PreviousBlockHash
    79  	}
    80  	return nil
    81  }
    82  
    83  func (m *BlockchainInfo) GetBootstrappingSnapshotInfo() *BootstrappingSnapshotInfo {
    84  	if m != nil {
    85  		return m.BootstrappingSnapshotInfo
    86  	}
    87  	return nil
    88  }
    89  
    90  // Contains information for the bootstrapping snapshot.
    91  type BootstrappingSnapshotInfo struct {
    92  	LastBlockInSnapshot  uint64   `protobuf:"varint,1,opt,name=lastBlockInSnapshot,proto3" json:"lastBlockInSnapshot,omitempty"`
    93  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    94  	XXX_unrecognized     []byte   `json:"-"`
    95  	XXX_sizecache        int32    `json:"-"`
    96  }
    97  
    98  func (m *BootstrappingSnapshotInfo) Reset()         { *m = BootstrappingSnapshotInfo{} }
    99  func (m *BootstrappingSnapshotInfo) String() string { return proto.CompactTextString(m) }
   100  func (*BootstrappingSnapshotInfo) ProtoMessage()    {}
   101  func (*BootstrappingSnapshotInfo) Descriptor() ([]byte, []int) {
   102  	return fileDescriptor_da3410306adbea27, []int{1}
   103  }
   104  
   105  func (m *BootstrappingSnapshotInfo) XXX_Unmarshal(b []byte) error {
   106  	return xxx_messageInfo_BootstrappingSnapshotInfo.Unmarshal(m, b)
   107  }
   108  func (m *BootstrappingSnapshotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   109  	return xxx_messageInfo_BootstrappingSnapshotInfo.Marshal(b, m, deterministic)
   110  }
   111  func (m *BootstrappingSnapshotInfo) XXX_Merge(src proto.Message) {
   112  	xxx_messageInfo_BootstrappingSnapshotInfo.Merge(m, src)
   113  }
   114  func (m *BootstrappingSnapshotInfo) XXX_Size() int {
   115  	return xxx_messageInfo_BootstrappingSnapshotInfo.Size(m)
   116  }
   117  func (m *BootstrappingSnapshotInfo) XXX_DiscardUnknown() {
   118  	xxx_messageInfo_BootstrappingSnapshotInfo.DiscardUnknown(m)
   119  }
   120  
   121  var xxx_messageInfo_BootstrappingSnapshotInfo proto.InternalMessageInfo
   122  
   123  func (m *BootstrappingSnapshotInfo) GetLastBlockInSnapshot() uint64 {
   124  	if m != nil {
   125  		return m.LastBlockInSnapshot
   126  	}
   127  	return 0
   128  }
   129  
   130  func init() {
   131  	proto.RegisterType((*BlockchainInfo)(nil), "common.BlockchainInfo")
   132  	proto.RegisterType((*BootstrappingSnapshotInfo)(nil), "common.BootstrappingSnapshotInfo")
   133  }
   134  
   135  func init() { proto.RegisterFile("common/ledger.proto", fileDescriptor_da3410306adbea27) }
   136  
   137  var fileDescriptor_da3410306adbea27 = []byte{
   138  	// 252 bytes of a gzipped FileDescriptorProto
   139  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xc1, 0x4a, 0xc4, 0x30,
   140  	0x10, 0x86, 0x89, 0x2e, 0x3d, 0x44, 0x11, 0xcd, 0x82, 0x74, 0x6f, 0x75, 0xf1, 0x50, 0xc4, 0x4d,
   141  	0x45, 0xdf, 0xa0, 0x27, 0xf7, 0xe0, 0xa5, 0x82, 0x07, 0x2f, 0x92, 0xc6, 0x6c, 0x12, 0xec, 0x66,
   142  	0xc2, 0x24, 0x15, 0x7c, 0x5e, 0x5f, 0x44, 0xb6, 0xa9, 0x28, 0xec, 0xf6, 0x38, 0xff, 0xff, 0x4d,
   143  	0xf8, 0x32, 0x74, 0x2e, 0x61, 0xbb, 0x05, 0x57, 0x75, 0xea, 0x5d, 0x2b, 0xe4, 0x1e, 0x21, 0x02,
   144  	0xcb, 0x52, 0xb8, 0xfc, 0x26, 0xf4, 0xac, 0xee, 0x40, 0x7e, 0x48, 0x23, 0xac, 0x5b, 0xbb, 0x0d,
   145  	0xb0, 0x4b, 0x9a, 0x19, 0x65, 0xb5, 0x89, 0x39, 0x29, 0x48, 0x39, 0x6b, 0xc6, 0x89, 0xdd, 0xd0,
   146  	0x73, 0xd9, 0x23, 0x2a, 0x17, 0x87, 0x85, 0x47, 0x11, 0x4c, 0x7e, 0x54, 0x90, 0xf2, 0xb4, 0xd9,
   147  	0xcb, 0xd9, 0x2d, 0xbd, 0xf0, 0xa8, 0x3e, 0x2d, 0xf4, 0xe1, 0x0f, 0x3e, 0x1e, 0xe0, 0xfd, 0x82,
   148  	0xbd, 0xd1, 0x45, 0x0b, 0x10, 0x43, 0x44, 0xe1, 0xbd, 0x75, 0xfa, 0xd9, 0x09, 0x1f, 0x0c, 0xc4,
   149  	0x9d, 0x4e, 0x3e, 0x2b, 0x48, 0x79, 0x72, 0x7f, 0xc5, 0x93, 0x30, 0xaf, 0xa7, 0xc0, 0x66, 0xfa,
   150  	0x8d, 0xe5, 0x13, 0x5d, 0x4c, 0xee, 0xb1, 0x3b, 0x3a, 0xef, 0x44, 0x48, 0xf2, 0x6b, 0xf7, 0x5b,
   151  	0x8d, 0x9f, 0x3f, 0x54, 0xd5, 0x2f, 0xf4, 0x1a, 0x50, 0x73, 0xf3, 0xe5, 0x15, 0x8e, 0x57, 0xdd,
   152  	0x88, 0x16, 0xad, 0x4c, 0xc7, 0x0d, 0xa3, 0xeb, 0x2b, 0xd7, 0x36, 0x9a, 0xbe, 0xdd, 0x8d, 0xd5,
   153  	0x3f, 0xb8, 0x4a, 0xf0, 0x2a, 0xc1, 0x2b, 0x0d, 0x55, 0xe2, 0xdb, 0x6c, 0x48, 0x1e, 0x7e, 0x02,
   154  	0x00, 0x00, 0xff, 0xff, 0x34, 0xc4, 0xfd, 0x0b, 0xb2, 0x01, 0x00, 0x00,
   155  }