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