github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/protos/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 proto "github.com/golang/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto.Marshal
    12  var _ = fmt.Errorf
    13  var _ = math.Inf
    14  
    15  // Contains information about the blockchain ledger such as height, current
    16  // block hash, and previous block hash.
    17  type BlockchainInfo struct {
    18  	Height            uint64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
    19  	CurrentBlockHash  []byte `protobuf:"bytes,2,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"`
    20  	PreviousBlockHash []byte `protobuf:"bytes,3,opt,name=previousBlockHash,proto3" json:"previousBlockHash,omitempty"`
    21  }
    22  
    23  func (m *BlockchainInfo) Reset()                    { *m = BlockchainInfo{} }
    24  func (m *BlockchainInfo) String() string            { return proto.CompactTextString(m) }
    25  func (*BlockchainInfo) ProtoMessage()               {}
    26  func (*BlockchainInfo) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
    27  
    28  func (m *BlockchainInfo) GetHeight() uint64 {
    29  	if m != nil {
    30  		return m.Height
    31  	}
    32  	return 0
    33  }
    34  
    35  func (m *BlockchainInfo) GetCurrentBlockHash() []byte {
    36  	if m != nil {
    37  		return m.CurrentBlockHash
    38  	}
    39  	return nil
    40  }
    41  
    42  func (m *BlockchainInfo) GetPreviousBlockHash() []byte {
    43  	if m != nil {
    44  		return m.PreviousBlockHash
    45  	}
    46  	return nil
    47  }
    48  
    49  func init() {
    50  	proto.RegisterType((*BlockchainInfo)(nil), "common.BlockchainInfo")
    51  }
    52  
    53  func init() { proto.RegisterFile("common/ledger.proto", fileDescriptor3) }
    54  
    55  var fileDescriptor3 = []byte{
    56  	// 186 bytes of a gzipped FileDescriptorProto
    57  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd,
    58  	0xcd, 0xcf, 0xd3, 0xcf, 0x49, 0x4d, 0x49, 0x4f, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
    59  	0x62, 0x83, 0x08, 0x2a, 0x35, 0x31, 0x72, 0xf1, 0x39, 0xe5, 0xe4, 0x27, 0x67, 0x27, 0x67, 0x24,
    60  	0x66, 0xe6, 0x79, 0xe6, 0xa5, 0xe5, 0x0b, 0x89, 0x71, 0xb1, 0x65, 0xa4, 0x66, 0xa6, 0x67, 0x94,
    61  	0x48, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x04, 0x41, 0x79, 0x42, 0x5a, 0x5c, 0x02, 0xc9, 0xa5, 0x45,
    62  	0x45, 0xa9, 0x79, 0x25, 0x60, 0x0d, 0x1e, 0x89, 0xc5, 0x19, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x3c,
    63  	0x41, 0x18, 0xe2, 0x42, 0x3a, 0x5c, 0x82, 0x05, 0x45, 0xa9, 0x65, 0x99, 0xf9, 0xa5, 0xc5, 0x08,
    64  	0xc5, 0xcc, 0x60, 0xc5, 0x98, 0x12, 0x4e, 0xc1, 0x5c, 0x2a, 0xf9, 0x45, 0xe9, 0x7a, 0x19, 0x95,
    65  	0x05, 0xa9, 0x45, 0x50, 0x57, 0xa6, 0x25, 0x26, 0x15, 0x65, 0x26, 0x43, 0x1c, 0x5b, 0xac, 0x07,
    66  	0x71, 0x6c, 0x94, 0x76, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x12, 0x88, 0xab, 0x8f, 0xa4, 0x58, 0x1f,
    67  	0xa2, 0x58, 0x1f, 0xa2, 0x58, 0x1f, 0xa2, 0x38, 0x89, 0x0d, 0xcc, 0x35, 0x06, 0x04, 0x00, 0x00,
    68  	0xff, 0xff, 0x9f, 0xcc, 0x05, 0xd1, 0xff, 0x00, 0x00, 0x00,
    69  }