github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/protos/ledger/rwset/rwset.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: ledger/rwset/rwset.proto 3 4 /* 5 Package rwset is a generated protocol buffer package. 6 7 It is generated from these files: 8 ledger/rwset/rwset.proto 9 10 It has these top-level messages: 11 TxReadWriteSet 12 NsReadWriteSet 13 */ 14 package rwset 15 16 import proto "github.com/golang/protobuf/proto" 17 import fmt "fmt" 18 import math "math" 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 30 31 type TxReadWriteSet_DataModel int32 32 33 const ( 34 TxReadWriteSet_KV TxReadWriteSet_DataModel = 0 35 ) 36 37 var TxReadWriteSet_DataModel_name = map[int32]string{ 38 0: "KV", 39 } 40 var TxReadWriteSet_DataModel_value = map[string]int32{ 41 "KV": 0, 42 } 43 44 func (x TxReadWriteSet_DataModel) String() string { 45 return proto.EnumName(TxReadWriteSet_DataModel_name, int32(x)) 46 } 47 func (TxReadWriteSet_DataModel) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } 48 49 // TxReadWriteSet encapsulates a read-write set for a transaction 50 // DataModel specifies the enum value of the data model 51 // ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode) 52 type TxReadWriteSet struct { 53 DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"` 54 NsRwset []*NsReadWriteSet `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset" json:"ns_rwset,omitempty"` 55 } 56 57 func (m *TxReadWriteSet) Reset() { *m = TxReadWriteSet{} } 58 func (m *TxReadWriteSet) String() string { return proto.CompactTextString(m) } 59 func (*TxReadWriteSet) ProtoMessage() {} 60 func (*TxReadWriteSet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 61 62 func (m *TxReadWriteSet) GetDataModel() TxReadWriteSet_DataModel { 63 if m != nil { 64 return m.DataModel 65 } 66 return TxReadWriteSet_KV 67 } 68 69 func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet { 70 if m != nil { 71 return m.NsRwset 72 } 73 return nil 74 } 75 76 // NsReadWriteSet encapsulates the read-write set for a chaincode 77 type NsReadWriteSet struct { 78 Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` 79 Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"` 80 } 81 82 func (m *NsReadWriteSet) Reset() { *m = NsReadWriteSet{} } 83 func (m *NsReadWriteSet) String() string { return proto.CompactTextString(m) } 84 func (*NsReadWriteSet) ProtoMessage() {} 85 func (*NsReadWriteSet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } 86 87 func (m *NsReadWriteSet) GetNamespace() string { 88 if m != nil { 89 return m.Namespace 90 } 91 return "" 92 } 93 94 func (m *NsReadWriteSet) GetRwset() []byte { 95 if m != nil { 96 return m.Rwset 97 } 98 return nil 99 } 100 101 func init() { 102 proto.RegisterType((*TxReadWriteSet)(nil), "rwset.TxReadWriteSet") 103 proto.RegisterType((*NsReadWriteSet)(nil), "rwset.NsReadWriteSet") 104 proto.RegisterEnum("rwset.TxReadWriteSet_DataModel", TxReadWriteSet_DataModel_name, TxReadWriteSet_DataModel_value) 105 } 106 107 func init() { proto.RegisterFile("ledger/rwset/rwset.proto", fileDescriptor0) } 108 109 var fileDescriptor0 = []byte{ 110 // 256 bytes of a gzipped FileDescriptorProto 111 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x41, 0x4b, 0xc3, 0x30, 112 0x1c, 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