github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/protos/ledger/rwset/rwset.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: ledger/rwset/rwset.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package rwset is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	ledger/rwset/rwset.proto
    10  
    11  It has these top-level messages:
    12  	TxReadWriteSet
    13  	NsReadWriteSet
    14  */
    15  package rwset
    16  
    17  import proto "github.com/golang/protobuf/proto"
    18  import fmt "fmt"
    19  import math "math"
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    31  
    32  type TxReadWriteSet_DataModel int32
    33  
    34  const (
    35  	TxReadWriteSet_KV TxReadWriteSet_DataModel = 0
    36  )
    37  
    38  var TxReadWriteSet_DataModel_name = map[int32]string{
    39  	0: "KV",
    40  }
    41  var TxReadWriteSet_DataModel_value = map[string]int32{
    42  	"KV": 0,
    43  }
    44  
    45  func (x TxReadWriteSet_DataModel) String() string {
    46  	return proto.EnumName(TxReadWriteSet_DataModel_name, int32(x))
    47  }
    48  func (TxReadWriteSet_DataModel) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
    49  
    50  // TxReadWriteSet encapsulates a read-write set for a transaction
    51  // DataModel specifies the enum value of the data model
    52  // ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode)
    53  type TxReadWriteSet struct {
    54  	DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"`
    55  	NsRwset   []*NsReadWriteSet        `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset" json:"ns_rwset,omitempty"`
    56  }
    57  
    58  func (m *TxReadWriteSet) Reset()                    { *m = TxReadWriteSet{} }
    59  func (m *TxReadWriteSet) String() string            { return proto.CompactTextString(m) }
    60  func (*TxReadWriteSet) ProtoMessage()               {}
    61  func (*TxReadWriteSet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    62  
    63  func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet {
    64  	if m != nil {
    65  		return m.NsRwset
    66  	}
    67  	return nil
    68  }
    69  
    70  // NsReadWriteSet encapsulates the read-write set for a chaincode
    71  type NsReadWriteSet struct {
    72  	Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"`
    73  	Rwset     []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"`
    74  }
    75  
    76  func (m *NsReadWriteSet) Reset()                    { *m = NsReadWriteSet{} }
    77  func (m *NsReadWriteSet) String() string            { return proto.CompactTextString(m) }
    78  func (*NsReadWriteSet) ProtoMessage()               {}
    79  func (*NsReadWriteSet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    80  
    81  func init() {
    82  	proto.RegisterType((*TxReadWriteSet)(nil), "rwset.TxReadWriteSet")
    83  	proto.RegisterType((*NsReadWriteSet)(nil), "rwset.NsReadWriteSet")
    84  	proto.RegisterEnum("rwset.TxReadWriteSet_DataModel", TxReadWriteSet_DataModel_name, TxReadWriteSet_DataModel_value)
    85  }
    86  
    87  func init() { proto.RegisterFile("ledger/rwset/rwset.proto", fileDescriptor0) }
    88  
    89  var fileDescriptor0 = []byte{
    90  	// 248 bytes of a gzipped FileDescriptorProto
    91  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x90, 0x41, 0x4b, 0xc3, 0x30,
    92  	0x14, 0xc7, 0xed, 0x64, 0xd3, 0x3c, 0xa5, 0x48, 0x54, 0xe8, 0x41, 0x70, 0xec, 0x54, 0x3c, 0x24,
    93  	0x3a, 0xef, 0x1e, 0x64, 0x37, 0xd1, 0x43, 0x14, 0x05, 0x2f, 0xe5, 0xb5, 0x79, 0x76, 0x85, 0xb5,
    94  	0x29, 0x49, 0x44, 0xfd, 0x24, 0x7e, 0x5d, 0x31, 0xd9, 0xb4, 0xbb, 0x84, 0xbc, 0x3f, 0xbf, 0x5f,
    95  	0xf2, 0xf8, 0x43, 0xb6, 0x22, 0x5d, 0x93, 0x95, 0xf6, 0xc3, 0x91, 0x8f, 0xa7, 0xe8, 0xad, 0xf1,
    96  	0x86, 0x8f, 0xc3, 0x30, 0xfb, 0x4e, 0x20, 0x7d, 0xfa, 0x54, 0x84, 0xfa, 0xc5, 0x36, 0x9e, 0x1e,
    97  	0xc9, 0xf3, 0x1b, 0x00, 0x8d, 0x1e, 0x8b, 0xd6, 0x68, 0x5a, 0x65, 0xc9, 0x34, 0xc9, 0xd3, 0xf9,
    98  	0xb9, 0x88, 0xee, 0x36, 0x2a, 0x16, 0xe8, 0xf1, 0xfe, 0x17, 0x53, 0x4c, 0x6f, 0xae, 0xfc, 0x12,
    99  	0xf6, 0x3b, 0x57, 0x04, 0x3e, 0x1b, 0x4d, 0x77, 0xf3, 0x83, 0xf9, 0xe9, 0xda, 0x7e, 0x70, 0x43,
   100  	0x5b, 0xed, 0x75, 0x4e, 0x85, 0x25, 0x8e, 0x81, 0xfd, 0xbd, 0xc4, 0x27, 0x30, 0xba, 0x7b, 0x3e,
   101  	0xda, 0x99, 0x2d, 0x20, 0xdd, 0xe6, 0xf9, 0x19, 0xb0, 0x0e, 0x5b, 0x72, 0x3d, 0x56, 0x14, 0xf6,
   102  	0x62, 0xea, 0x3f, 0xe0, 0x27, 0x30, 0xde, 0xfc, 0x99, 0xe4, 0x87, 0x2a, 0x0e, 0xb7, 0x05, 0x5c,
   103  	0x18, 0x5b, 0x8b, 0xe5, 0x57, 0x4f, 0x36, 0x76, 0x21, 0xde, 0xb0, 0xb4, 0x4d, 0x15, 0x6b, 0x70,
   104  	0x62, 0x1d, 0x06, 0xfa, 0xf5, 0xaa, 0x6e, 0xfc, 0xf2, 0xbd, 0x14, 0x95, 0x69, 0xe5, 0x40, 0x91,
   105  	0x51, 0x91, 0x51, 0x91, 0xc3, 0x4e, 0xcb, 0x49, 0x08, 0xaf, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff,
   106  	0xcd, 0x3b, 0xef, 0x59, 0x6a, 0x01, 0x00, 0x00,
   107  }