github.com/ZihuaZhang/fabric-protos-go@v1.0.7/ledger/rwset/rwset.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: ledger/rwset/rwset.proto 3 4 package rwset 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 type TxReadWriteSet_DataModel int32 24 25 const ( 26 TxReadWriteSet_KV TxReadWriteSet_DataModel = 0 27 ) 28 29 var TxReadWriteSet_DataModel_name = map[int32]string{ 30 0: "KV", 31 } 32 33 var TxReadWriteSet_DataModel_value = map[string]int32{ 34 "KV": 0, 35 } 36 37 func (x TxReadWriteSet_DataModel) String() string { 38 return proto.EnumName(TxReadWriteSet_DataModel_name, int32(x)) 39 } 40 41 func (TxReadWriteSet_DataModel) EnumDescriptor() ([]byte, []int) { 42 return fileDescriptor_794d00b812408f20, []int{0, 0} 43 } 44 45 // TxReadWriteSet encapsulates a read-write set for a transaction 46 // DataModel specifies the enum value of the data model 47 // ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode) 48 type TxReadWriteSet struct { 49 DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"` 50 NsRwset []*NsReadWriteSet `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset,proto3" json:"ns_rwset,omitempty"` 51 XXX_NoUnkeyedLiteral struct{} `json:"-"` 52 XXX_unrecognized []byte `json:"-"` 53 XXX_sizecache int32 `json:"-"` 54 } 55 56 func (m *TxReadWriteSet) Reset() { *m = TxReadWriteSet{} } 57 func (m *TxReadWriteSet) String() string { return proto.CompactTextString(m) } 58 func (*TxReadWriteSet) ProtoMessage() {} 59 func (*TxReadWriteSet) Descriptor() ([]byte, []int) { 60 return fileDescriptor_794d00b812408f20, []int{0} 61 } 62 63 func (m *TxReadWriteSet) XXX_Unmarshal(b []byte) error { 64 return xxx_messageInfo_TxReadWriteSet.Unmarshal(m, b) 65 } 66 func (m *TxReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 67 return xxx_messageInfo_TxReadWriteSet.Marshal(b, m, deterministic) 68 } 69 func (m *TxReadWriteSet) XXX_Merge(src proto.Message) { 70 xxx_messageInfo_TxReadWriteSet.Merge(m, src) 71 } 72 func (m *TxReadWriteSet) XXX_Size() int { 73 return xxx_messageInfo_TxReadWriteSet.Size(m) 74 } 75 func (m *TxReadWriteSet) XXX_DiscardUnknown() { 76 xxx_messageInfo_TxReadWriteSet.DiscardUnknown(m) 77 } 78 79 var xxx_messageInfo_TxReadWriteSet proto.InternalMessageInfo 80 81 func (m *TxReadWriteSet) GetDataModel() TxReadWriteSet_DataModel { 82 if m != nil { 83 return m.DataModel 84 } 85 return TxReadWriteSet_KV 86 } 87 88 func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet { 89 if m != nil { 90 return m.NsRwset 91 } 92 return nil 93 } 94 95 // NsReadWriteSet encapsulates the read-write set for a chaincode 96 type NsReadWriteSet struct { 97 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 98 Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"` 99 CollectionHashedRwset []*CollectionHashedReadWriteSet `protobuf:"bytes,3,rep,name=collection_hashed_rwset,json=collectionHashedRwset,proto3" json:"collection_hashed_rwset,omitempty"` 100 XXX_NoUnkeyedLiteral struct{} `json:"-"` 101 XXX_unrecognized []byte `json:"-"` 102 XXX_sizecache int32 `json:"-"` 103 } 104 105 func (m *NsReadWriteSet) Reset() { *m = NsReadWriteSet{} } 106 func (m *NsReadWriteSet) String() string { return proto.CompactTextString(m) } 107 func (*NsReadWriteSet) ProtoMessage() {} 108 func (*NsReadWriteSet) Descriptor() ([]byte, []int) { 109 return fileDescriptor_794d00b812408f20, []int{1} 110 } 111 112 func (m *NsReadWriteSet) XXX_Unmarshal(b []byte) error { 113 return xxx_messageInfo_NsReadWriteSet.Unmarshal(m, b) 114 } 115 func (m *NsReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 116 return xxx_messageInfo_NsReadWriteSet.Marshal(b, m, deterministic) 117 } 118 func (m *NsReadWriteSet) XXX_Merge(src proto.Message) { 119 xxx_messageInfo_NsReadWriteSet.Merge(m, src) 120 } 121 func (m *NsReadWriteSet) XXX_Size() int { 122 return xxx_messageInfo_NsReadWriteSet.Size(m) 123 } 124 func (m *NsReadWriteSet) XXX_DiscardUnknown() { 125 xxx_messageInfo_NsReadWriteSet.DiscardUnknown(m) 126 } 127 128 var xxx_messageInfo_NsReadWriteSet proto.InternalMessageInfo 129 130 func (m *NsReadWriteSet) GetNamespace() string { 131 if m != nil { 132 return m.Namespace 133 } 134 return "" 135 } 136 137 func (m *NsReadWriteSet) GetRwset() []byte { 138 if m != nil { 139 return m.Rwset 140 } 141 return nil 142 } 143 144 func (m *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet { 145 if m != nil { 146 return m.CollectionHashedRwset 147 } 148 return nil 149 } 150 151 // CollectionHashedReadWriteSet encapsulate the hashed representation for the private read-write set for a collection 152 type CollectionHashedReadWriteSet struct { 153 CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` 154 HashedRwset []byte `protobuf:"bytes,2,opt,name=hashed_rwset,json=hashedRwset,proto3" json:"hashed_rwset,omitempty"` 155 PvtRwsetHash []byte `protobuf:"bytes,3,opt,name=pvt_rwset_hash,json=pvtRwsetHash,proto3" json:"pvt_rwset_hash,omitempty"` 156 XXX_NoUnkeyedLiteral struct{} `json:"-"` 157 XXX_unrecognized []byte `json:"-"` 158 XXX_sizecache int32 `json:"-"` 159 } 160 161 func (m *CollectionHashedReadWriteSet) Reset() { *m = CollectionHashedReadWriteSet{} } 162 func (m *CollectionHashedReadWriteSet) String() string { return proto.CompactTextString(m) } 163 func (*CollectionHashedReadWriteSet) ProtoMessage() {} 164 func (*CollectionHashedReadWriteSet) Descriptor() ([]byte, []int) { 165 return fileDescriptor_794d00b812408f20, []int{2} 166 } 167 168 func (m *CollectionHashedReadWriteSet) XXX_Unmarshal(b []byte) error { 169 return xxx_messageInfo_CollectionHashedReadWriteSet.Unmarshal(m, b) 170 } 171 func (m *CollectionHashedReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 return xxx_messageInfo_CollectionHashedReadWriteSet.Marshal(b, m, deterministic) 173 } 174 func (m *CollectionHashedReadWriteSet) XXX_Merge(src proto.Message) { 175 xxx_messageInfo_CollectionHashedReadWriteSet.Merge(m, src) 176 } 177 func (m *CollectionHashedReadWriteSet) XXX_Size() int { 178 return xxx_messageInfo_CollectionHashedReadWriteSet.Size(m) 179 } 180 func (m *CollectionHashedReadWriteSet) XXX_DiscardUnknown() { 181 xxx_messageInfo_CollectionHashedReadWriteSet.DiscardUnknown(m) 182 } 183 184 var xxx_messageInfo_CollectionHashedReadWriteSet proto.InternalMessageInfo 185 186 func (m *CollectionHashedReadWriteSet) GetCollectionName() string { 187 if m != nil { 188 return m.CollectionName 189 } 190 return "" 191 } 192 193 func (m *CollectionHashedReadWriteSet) GetHashedRwset() []byte { 194 if m != nil { 195 return m.HashedRwset 196 } 197 return nil 198 } 199 200 func (m *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte { 201 if m != nil { 202 return m.PvtRwsetHash 203 } 204 return nil 205 } 206 207 // TxPvtReadWriteSet encapsulate the private read-write set for a transaction 208 type TxPvtReadWriteSet struct { 209 DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"` 210 NsPvtRwset []*NsPvtReadWriteSet `protobuf:"bytes,2,rep,name=ns_pvt_rwset,json=nsPvtRwset,proto3" json:"ns_pvt_rwset,omitempty"` 211 XXX_NoUnkeyedLiteral struct{} `json:"-"` 212 XXX_unrecognized []byte `json:"-"` 213 XXX_sizecache int32 `json:"-"` 214 } 215 216 func (m *TxPvtReadWriteSet) Reset() { *m = TxPvtReadWriteSet{} } 217 func (m *TxPvtReadWriteSet) String() string { return proto.CompactTextString(m) } 218 func (*TxPvtReadWriteSet) ProtoMessage() {} 219 func (*TxPvtReadWriteSet) Descriptor() ([]byte, []int) { 220 return fileDescriptor_794d00b812408f20, []int{3} 221 } 222 223 func (m *TxPvtReadWriteSet) XXX_Unmarshal(b []byte) error { 224 return xxx_messageInfo_TxPvtReadWriteSet.Unmarshal(m, b) 225 } 226 func (m *TxPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 227 return xxx_messageInfo_TxPvtReadWriteSet.Marshal(b, m, deterministic) 228 } 229 func (m *TxPvtReadWriteSet) XXX_Merge(src proto.Message) { 230 xxx_messageInfo_TxPvtReadWriteSet.Merge(m, src) 231 } 232 func (m *TxPvtReadWriteSet) XXX_Size() int { 233 return xxx_messageInfo_TxPvtReadWriteSet.Size(m) 234 } 235 func (m *TxPvtReadWriteSet) XXX_DiscardUnknown() { 236 xxx_messageInfo_TxPvtReadWriteSet.DiscardUnknown(m) 237 } 238 239 var xxx_messageInfo_TxPvtReadWriteSet proto.InternalMessageInfo 240 241 func (m *TxPvtReadWriteSet) GetDataModel() TxReadWriteSet_DataModel { 242 if m != nil { 243 return m.DataModel 244 } 245 return TxReadWriteSet_KV 246 } 247 248 func (m *TxPvtReadWriteSet) GetNsPvtRwset() []*NsPvtReadWriteSet { 249 if m != nil { 250 return m.NsPvtRwset 251 } 252 return nil 253 } 254 255 // NsPvtReadWriteSet encapsulates the private read-write set for a chaincode 256 type NsPvtReadWriteSet struct { 257 Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 258 CollectionPvtRwset []*CollectionPvtReadWriteSet `protobuf:"bytes,2,rep,name=collection_pvt_rwset,json=collectionPvtRwset,proto3" json:"collection_pvt_rwset,omitempty"` 259 XXX_NoUnkeyedLiteral struct{} `json:"-"` 260 XXX_unrecognized []byte `json:"-"` 261 XXX_sizecache int32 `json:"-"` 262 } 263 264 func (m *NsPvtReadWriteSet) Reset() { *m = NsPvtReadWriteSet{} } 265 func (m *NsPvtReadWriteSet) String() string { return proto.CompactTextString(m) } 266 func (*NsPvtReadWriteSet) ProtoMessage() {} 267 func (*NsPvtReadWriteSet) Descriptor() ([]byte, []int) { 268 return fileDescriptor_794d00b812408f20, []int{4} 269 } 270 271 func (m *NsPvtReadWriteSet) XXX_Unmarshal(b []byte) error { 272 return xxx_messageInfo_NsPvtReadWriteSet.Unmarshal(m, b) 273 } 274 func (m *NsPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 275 return xxx_messageInfo_NsPvtReadWriteSet.Marshal(b, m, deterministic) 276 } 277 func (m *NsPvtReadWriteSet) XXX_Merge(src proto.Message) { 278 xxx_messageInfo_NsPvtReadWriteSet.Merge(m, src) 279 } 280 func (m *NsPvtReadWriteSet) XXX_Size() int { 281 return xxx_messageInfo_NsPvtReadWriteSet.Size(m) 282 } 283 func (m *NsPvtReadWriteSet) XXX_DiscardUnknown() { 284 xxx_messageInfo_NsPvtReadWriteSet.DiscardUnknown(m) 285 } 286 287 var xxx_messageInfo_NsPvtReadWriteSet proto.InternalMessageInfo 288 289 func (m *NsPvtReadWriteSet) GetNamespace() string { 290 if m != nil { 291 return m.Namespace 292 } 293 return "" 294 } 295 296 func (m *NsPvtReadWriteSet) GetCollectionPvtRwset() []*CollectionPvtReadWriteSet { 297 if m != nil { 298 return m.CollectionPvtRwset 299 } 300 return nil 301 } 302 303 // CollectionPvtReadWriteSet encapsulates the private read-write set for a collection 304 type CollectionPvtReadWriteSet struct { 305 CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` 306 Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"` 307 XXX_NoUnkeyedLiteral struct{} `json:"-"` 308 XXX_unrecognized []byte `json:"-"` 309 XXX_sizecache int32 `json:"-"` 310 } 311 312 func (m *CollectionPvtReadWriteSet) Reset() { *m = CollectionPvtReadWriteSet{} } 313 func (m *CollectionPvtReadWriteSet) String() string { return proto.CompactTextString(m) } 314 func (*CollectionPvtReadWriteSet) ProtoMessage() {} 315 func (*CollectionPvtReadWriteSet) Descriptor() ([]byte, []int) { 316 return fileDescriptor_794d00b812408f20, []int{5} 317 } 318 319 func (m *CollectionPvtReadWriteSet) XXX_Unmarshal(b []byte) error { 320 return xxx_messageInfo_CollectionPvtReadWriteSet.Unmarshal(m, b) 321 } 322 func (m *CollectionPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 323 return xxx_messageInfo_CollectionPvtReadWriteSet.Marshal(b, m, deterministic) 324 } 325 func (m *CollectionPvtReadWriteSet) XXX_Merge(src proto.Message) { 326 xxx_messageInfo_CollectionPvtReadWriteSet.Merge(m, src) 327 } 328 func (m *CollectionPvtReadWriteSet) XXX_Size() int { 329 return xxx_messageInfo_CollectionPvtReadWriteSet.Size(m) 330 } 331 func (m *CollectionPvtReadWriteSet) XXX_DiscardUnknown() { 332 xxx_messageInfo_CollectionPvtReadWriteSet.DiscardUnknown(m) 333 } 334 335 var xxx_messageInfo_CollectionPvtReadWriteSet proto.InternalMessageInfo 336 337 func (m *CollectionPvtReadWriteSet) GetCollectionName() string { 338 if m != nil { 339 return m.CollectionName 340 } 341 return "" 342 } 343 344 func (m *CollectionPvtReadWriteSet) GetRwset() []byte { 345 if m != nil { 346 return m.Rwset 347 } 348 return nil 349 } 350 351 func init() { 352 proto.RegisterEnum("rwset.TxReadWriteSet_DataModel", TxReadWriteSet_DataModel_name, TxReadWriteSet_DataModel_value) 353 proto.RegisterType((*TxReadWriteSet)(nil), "rwset.TxReadWriteSet") 354 proto.RegisterType((*NsReadWriteSet)(nil), "rwset.NsReadWriteSet") 355 proto.RegisterType((*CollectionHashedReadWriteSet)(nil), "rwset.CollectionHashedReadWriteSet") 356 proto.RegisterType((*TxPvtReadWriteSet)(nil), "rwset.TxPvtReadWriteSet") 357 proto.RegisterType((*NsPvtReadWriteSet)(nil), "rwset.NsPvtReadWriteSet") 358 proto.RegisterType((*CollectionPvtReadWriteSet)(nil), "rwset.CollectionPvtReadWriteSet") 359 } 360 361 func init() { proto.RegisterFile("ledger/rwset/rwset.proto", fileDescriptor_794d00b812408f20) } 362 363 var fileDescriptor_794d00b812408f20 = []byte{ 364 // 421 bytes of a gzipped FileDescriptorProto 365 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcf, 0xef, 0x93, 0x30, 366 0x18, 0xc6, 0xed, 0x77, 0xd9, 0x94, 0x77, 0x04, 0x5d, 0xdd, 0x22, 0x26, 0x4b, 0x9c, 0xd3, 0xc4, 367 0xc5, 0x64, 0x60, 0xa6, 0x27, 0x0f, 0x1e, 0xd4, 0x83, 0x89, 0x71, 0x31, 0x75, 0xd1, 0x64, 0x1e, 368 0x48, 0x81, 0x0a, 0x24, 0x40, 0x09, 0xad, 0x73, 0xfe, 0x01, 0x9e, 0xf5, 0xe6, 0xd9, 0xff, 0xd4, 369 0xac, 0x65, 0x0c, 0x98, 0xbf, 0x0e, 0x5e, 0x08, 0x7d, 0xfb, 0x3c, 0x3c, 0x9f, 0xf6, 0xe5, 0x05, 370 0x3b, 0x65, 0x61, 0xc4, 0x4a, 0xb7, 0xfc, 0x24, 0x98, 0xd4, 0x4f, 0xa7, 0x28, 0xb9, 0xe4, 0xb8, 371 0xaf, 0x16, 0xf3, 0xef, 0x08, 0xac, 0xcd, 0x9e, 0x30, 0x1a, 0xbe, 0x2b, 0x13, 0xc9, 0xde, 0x30, 372 0x89, 0x9f, 0x00, 0x84, 0x54, 0x52, 0x2f, 0xe3, 0x21, 0x4b, 0x6d, 0x34, 0x43, 0x0b, 0x6b, 0x75, 373 0xcb, 0xd1, 0xde, 0xb6, 0xd4, 0x79, 0x4e, 0x25, 0x7d, 0x75, 0x90, 0x11, 0x23, 0x3c, 0xbe, 0xe2, 374 0x07, 0x70, 0x25, 0x17, 0x9e, 0xd2, 0xdb, 0x17, 0xb3, 0xde, 0x62, 0xb8, 0x9a, 0x54, 0xee, 0xb5, 375 0x68, 0xba, 0xc9, 0xe5, 0x5c, 0x10, 0x05, 0x71, 0x1d, 0x8c, 0xfa, 0x4b, 0x78, 0x00, 0x17, 0x2f, 376 0xdf, 0x5e, 0xbb, 0x34, 0xff, 0x81, 0xc0, 0x6a, 0x1b, 0xf0, 0x14, 0x8c, 0x9c, 0x66, 0x4c, 0x14, 377 0x34, 0x60, 0x0a, 0xcc, 0x20, 0xa7, 0x02, 0x1e, 0x43, 0xff, 0x18, 0x8a, 0x16, 0x26, 0xd1, 0x0b, 378 0xfc, 0x1e, 0x6e, 0x04, 0x3c, 0x4d, 0x59, 0x20, 0x13, 0x9e, 0x7b, 0x31, 0x15, 0x31, 0x0b, 0x2b, 379 0xb8, 0x9e, 0x82, 0xbb, 0x53, 0xc1, 0x3d, 0xab, 0x55, 0x2f, 0x94, 0xa8, 0x85, 0x3a, 0x09, 0xba, 380 0xbb, 0x0a, 0xfc, 0x1b, 0x82, 0xe9, 0x9f, 0x7c, 0xf8, 0x1e, 0x5c, 0x6d, 0xa4, 0x1f, 0x58, 0x2b, 381 0x6e, 0xeb, 0x54, 0x5e, 0xd3, 0x8c, 0xe1, 0xdb, 0x60, 0xb6, 0xd8, 0xf4, 0x19, 0x86, 0xf1, 0x29, 382 0x0c, 0xdf, 0x05, 0xab, 0xd8, 0x49, 0xbd, 0xaf, 0x0e, 0x62, 0xf7, 0x94, 0xc8, 0x2c, 0x76, 0x52, 383 0x29, 0x0e, 0xf9, 0xf3, 0xaf, 0x08, 0x46, 0x9b, 0xfd, 0xeb, 0x9d, 0xfc, 0xaf, 0x3d, 0x7d, 0x0c, 384 0x66, 0x2e, 0xbc, 0x3a, 0xbe, 0xea, 0xab, 0x5d, 0xf7, 0xb5, 0x93, 0x47, 0x20, 0x57, 0x25, 0x75, 385 0x49, 0x5f, 0x10, 0x8c, 0xce, 0x14, 0x7f, 0xe9, 0x25, 0x81, 0x71, 0xe3, 0xde, 0xba, 0xb9, 0xb3, 386 0xb3, 0x96, 0x75, 0xf3, 0x71, 0xd0, 0xda, 0x52, 0x1c, 0x5b, 0xb8, 0xf9, 0x5b, 0xc3, 0xbf, 0x37, 387 0xea, 0x97, 0x7f, 0xd9, 0x53, 0x1f, 0xee, 0xf3, 0x32, 0x72, 0xe2, 0xcf, 0x05, 0x2b, 0xf5, 0xc8, 388 0x39, 0x1f, 0xa8, 0x5f, 0x26, 0x81, 0x9e, 0x36, 0xe1, 0x54, 0x45, 0xa5, 0xde, 0x3e, 0x8a, 0x12, 389 0x19, 0x7f, 0xf4, 0x9d, 0x80, 0x67, 0x6e, 0xc3, 0xe2, 0x6a, 0xcb, 0x52, 0x5b, 0x96, 0x11, 0x77, 390 0x9b, 0xd3, 0xeb, 0x0f, 0x54, 0xfd, 0xe1, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0x32, 0x8f, 391 0x91, 0xd4, 0x03, 0x00, 0x00, 392 }