github.com/true-sqn/fabric@v2.1.1+incompatible/core/ledger/kvledger/msgs/ledger_metadata.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: ledger_metadata.proto
     3  
     4  package msgs
     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  // Status specifies the status of a ledger
    24  type Status int32
    25  
    26  const (
    27  	Status_ACTIVE   Status = 0
    28  	Status_INACTIVE Status = 1
    29  )
    30  
    31  var Status_name = map[int32]string{
    32  	0: "ACTIVE",
    33  	1: "INACTIVE",
    34  }
    35  
    36  var Status_value = map[string]int32{
    37  	"ACTIVE":   0,
    38  	"INACTIVE": 1,
    39  }
    40  
    41  func (x Status) String() string {
    42  	return proto.EnumName(Status_name, int32(x))
    43  }
    44  
    45  func (Status) EnumDescriptor() ([]byte, []int) {
    46  	return fileDescriptor_8173a53a47b026a1, []int{0}
    47  }
    48  
    49  // LedgerMetadata specifies the metadata of a ledger
    50  type LedgerMetadata struct {
    51  	Status               Status   `protobuf:"varint,1,opt,name=status,proto3,enum=msgs.Status" json:"status,omitempty"`
    52  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    53  	XXX_unrecognized     []byte   `json:"-"`
    54  	XXX_sizecache        int32    `json:"-"`
    55  }
    56  
    57  func (m *LedgerMetadata) Reset()         { *m = LedgerMetadata{} }
    58  func (m *LedgerMetadata) String() string { return proto.CompactTextString(m) }
    59  func (*LedgerMetadata) ProtoMessage()    {}
    60  func (*LedgerMetadata) Descriptor() ([]byte, []int) {
    61  	return fileDescriptor_8173a53a47b026a1, []int{0}
    62  }
    63  
    64  func (m *LedgerMetadata) XXX_Unmarshal(b []byte) error {
    65  	return xxx_messageInfo_LedgerMetadata.Unmarshal(m, b)
    66  }
    67  func (m *LedgerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    68  	return xxx_messageInfo_LedgerMetadata.Marshal(b, m, deterministic)
    69  }
    70  func (m *LedgerMetadata) XXX_Merge(src proto.Message) {
    71  	xxx_messageInfo_LedgerMetadata.Merge(m, src)
    72  }
    73  func (m *LedgerMetadata) XXX_Size() int {
    74  	return xxx_messageInfo_LedgerMetadata.Size(m)
    75  }
    76  func (m *LedgerMetadata) XXX_DiscardUnknown() {
    77  	xxx_messageInfo_LedgerMetadata.DiscardUnknown(m)
    78  }
    79  
    80  var xxx_messageInfo_LedgerMetadata proto.InternalMessageInfo
    81  
    82  func (m *LedgerMetadata) GetStatus() Status {
    83  	if m != nil {
    84  		return m.Status
    85  	}
    86  	return Status_ACTIVE
    87  }
    88  
    89  func init() {
    90  	proto.RegisterEnum("msgs.Status", Status_name, Status_value)
    91  	proto.RegisterType((*LedgerMetadata)(nil), "msgs.LedgerMetadata")
    92  }
    93  
    94  func init() { proto.RegisterFile("ledger_metadata.proto", fileDescriptor_8173a53a47b026a1) }
    95  
    96  var fileDescriptor_8173a53a47b026a1 = []byte{
    97  	// 165 bytes of a gzipped FileDescriptorProto
    98  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0x49, 0x4d, 0x49,
    99  	0x4f, 0x2d, 0x8a, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f,
   100  	0xc9, 0x17, 0x62, 0xc9, 0x2d, 0x4e, 0x2f, 0x56, 0x32, 0xe3, 0xe2, 0xf3, 0x01, 0x4b, 0xfb, 0x42,
   101  	0x65, 0x85, 0x54, 0xb8, 0xd8, 0x8a, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35,
   102  	0xf8, 0x8c, 0x78, 0xf4, 0x40, 0x0a, 0xf5, 0x82, 0xc1, 0x62, 0x41, 0x50, 0x39, 0x2d, 0x25, 0x2e,
   103  	0x36, 0x88, 0x88, 0x10, 0x17, 0x17, 0x9b, 0xa3, 0x73, 0x88, 0x67, 0x98, 0xab, 0x00, 0x83, 0x10,
   104  	0x0f, 0x17, 0x87, 0xa7, 0x1f, 0x94, 0xc7, 0xe8, 0x64, 0x19, 0x65, 0x9e, 0x9e, 0x59, 0x92, 0x51,
   105  	0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, 0x51, 0x59, 0x90, 0x5a, 0x04, 0x71, 0x8a, 0x7e, 0x5a,
   106  	0x62, 0x52, 0x51, 0x66, 0xb2, 0x7e, 0x72, 0x7e, 0x51, 0xaa, 0x3e, 0x54, 0x28, 0xbb, 0x0c, 0xca,
   107  	0x00, 0xd9, 0x96, 0xc4, 0x06, 0x76, 0xa3, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x6b, 0xab,
   108  	0x30, 0xbc, 0x00, 0x00, 0x00,
   109  }