You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

393 lines
16 KiB

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ledger/rwset/rwset.proto
package rwset
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // 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 fileDescriptor_794d00b812408f20, []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,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"`
NsRwset []*NsReadWriteSet `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset,proto3" json:"ns_rwset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TxReadWriteSet) Reset() { *m = TxReadWriteSet{} }
func (m *TxReadWriteSet) String() string { return proto.CompactTextString(m) }
func (*TxReadWriteSet) ProtoMessage() {}
func (*TxReadWriteSet) Descriptor() ([]byte, []int) {
return fileDescriptor_794d00b812408f20, []int{0}
}
func (m *TxReadWriteSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxReadWriteSet.Unmarshal(m, b)
}
func (m *TxReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxReadWriteSet.Marshal(b, m, deterministic)
}
func (m *TxReadWriteSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxReadWriteSet.Merge(m, src)
}
func (m *TxReadWriteSet) XXX_Size() int {
return xxx_messageInfo_TxReadWriteSet.Size(m)
}
func (m *TxReadWriteSet) XXX_DiscardUnknown() {
xxx_messageInfo_TxReadWriteSet.DiscardUnknown(m)
}
var xxx_messageInfo_TxReadWriteSet proto.InternalMessageInfo
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,proto3" json:"namespace,omitempty"`
Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"`
CollectionHashedRwset []*CollectionHashedReadWriteSet `protobuf:"bytes,3,rep,name=collection_hashed_rwset,json=collectionHashedRwset,proto3" json:"collection_hashed_rwset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NsReadWriteSet) Reset() { *m = NsReadWriteSet{} }
func (m *NsReadWriteSet) String() string { return proto.CompactTextString(m) }
func (*NsReadWriteSet) ProtoMessage() {}
func (*NsReadWriteSet) Descriptor() ([]byte, []int) {
return fileDescriptor_794d00b812408f20, []int{1}
}
func (m *NsReadWriteSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NsReadWriteSet.Unmarshal(m, b)
}
func (m *NsReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NsReadWriteSet.Marshal(b, m, deterministic)
}
func (m *NsReadWriteSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_NsReadWriteSet.Merge(m, src)
}
func (m *NsReadWriteSet) XXX_Size() int {
return xxx_messageInfo_NsReadWriteSet.Size(m)
}
func (m *NsReadWriteSet) XXX_DiscardUnknown() {
xxx_messageInfo_NsReadWriteSet.DiscardUnknown(m)
}
var xxx_messageInfo_NsReadWriteSet proto.InternalMessageInfo
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 (m *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet {
if m != nil {
return m.CollectionHashedRwset
}
return nil
}
// CollectionHashedReadWriteSet encapsulate the hashed representation for the private read-write set for a collection
type CollectionHashedReadWriteSet struct {
CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
HashedRwset []byte `protobuf:"bytes,2,opt,name=hashed_rwset,json=hashedRwset,proto3" json:"hashed_rwset,omitempty"`
PvtRwsetHash []byte `protobuf:"bytes,3,opt,name=pvt_rwset_hash,json=pvtRwsetHash,proto3" json:"pvt_rwset_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CollectionHashedReadWriteSet) Reset() { *m = CollectionHashedReadWriteSet{} }
func (m *CollectionHashedReadWriteSet) String() string { return proto.CompactTextString(m) }
func (*CollectionHashedReadWriteSet) ProtoMessage() {}
func (*CollectionHashedReadWriteSet) Descriptor() ([]byte, []int) {
return fileDescriptor_794d00b812408f20, []int{2}
}
func (m *CollectionHashedReadWriteSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollectionHashedReadWriteSet.Unmarshal(m, b)
}
func (m *CollectionHashedReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollectionHashedReadWriteSet.Marshal(b, m, deterministic)
}
func (m *CollectionHashedReadWriteSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectionHashedReadWriteSet.Merge(m, src)
}
func (m *CollectionHashedReadWriteSet) XXX_Size() int {
return xxx_messageInfo_CollectionHashedReadWriteSet.Size(m)
}
func (m *CollectionHashedReadWriteSet) XXX_DiscardUnknown() {
xxx_messageInfo_CollectionHashedReadWriteSet.DiscardUnknown(m)
}
var xxx_messageInfo_CollectionHashedReadWriteSet proto.InternalMessageInfo
func (m *CollectionHashedReadWriteSet) GetCollectionName() string {
if m != nil {
return m.CollectionName
}
return ""
}
func (m *CollectionHashedReadWriteSet) GetHashedRwset() []byte {
if m != nil {
return m.HashedRwset
}
return nil
}
func (m *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte {
if m != nil {
return m.PvtRwsetHash
}
return nil
}
// TxPvtReadWriteSet encapsulate the private read-write set for a transaction
type TxPvtReadWriteSet struct {
DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"`
NsPvtRwset []*NsPvtReadWriteSet `protobuf:"bytes,2,rep,name=ns_pvt_rwset,json=nsPvtRwset,proto3" json:"ns_pvt_rwset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TxPvtReadWriteSet) Reset() { *m = TxPvtReadWriteSet{} }
func (m *TxPvtReadWriteSet) String() string { return proto.CompactTextString(m) }
func (*TxPvtReadWriteSet) ProtoMessage() {}
func (*TxPvtReadWriteSet) Descriptor() ([]byte, []int) {
return fileDescriptor_794d00b812408f20, []int{3}
}
func (m *TxPvtReadWriteSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxPvtReadWriteSet.Unmarshal(m, b)
}
func (m *TxPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxPvtReadWriteSet.Marshal(b, m, deterministic)
}
func (m *TxPvtReadWriteSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxPvtReadWriteSet.Merge(m, src)
}
func (m *TxPvtReadWriteSet) XXX_Size() int {
return xxx_messageInfo_TxPvtReadWriteSet.Size(m)
}
func (m *TxPvtReadWriteSet) XXX_DiscardUnknown() {
xxx_messageInfo_TxPvtReadWriteSet.DiscardUnknown(m)
}
var xxx_messageInfo_TxPvtReadWriteSet proto.InternalMessageInfo
func (m *TxPvtReadWriteSet) GetDataModel() TxReadWriteSet_DataModel {
if m != nil {
return m.DataModel
}
return TxReadWriteSet_KV
}
func (m *TxPvtReadWriteSet) GetNsPvtRwset() []*NsPvtReadWriteSet {
if m != nil {
return m.NsPvtRwset
}
return nil
}
// NsPvtReadWriteSet encapsulates the private read-write set for a chaincode
type NsPvtReadWriteSet struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
CollectionPvtRwset []*CollectionPvtReadWriteSet `protobuf:"bytes,2,rep,name=collection_pvt_rwset,json=collectionPvtRwset,proto3" json:"collection_pvt_rwset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NsPvtReadWriteSet) Reset() { *m = NsPvtReadWriteSet{} }
func (m *NsPvtReadWriteSet) String() string { return proto.CompactTextString(m) }
func (*NsPvtReadWriteSet) ProtoMessage() {}
func (*NsPvtReadWriteSet) Descriptor() ([]byte, []int) {
return fileDescriptor_794d00b812408f20, []int{4}
}
func (m *NsPvtReadWriteSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NsPvtReadWriteSet.Unmarshal(m, b)
}
func (m *NsPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NsPvtReadWriteSet.Marshal(b, m, deterministic)
}
func (m *NsPvtReadWriteSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_NsPvtReadWriteSet.Merge(m, src)
}
func (m *NsPvtReadWriteSet) XXX_Size() int {
return xxx_messageInfo_NsPvtReadWriteSet.Size(m)
}
func (m *NsPvtReadWriteSet) XXX_DiscardUnknown() {
xxx_messageInfo_NsPvtReadWriteSet.DiscardUnknown(m)
}
var xxx_messageInfo_NsPvtReadWriteSet proto.InternalMessageInfo
func (m *NsPvtReadWriteSet) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *NsPvtReadWriteSet) GetCollectionPvtRwset() []*CollectionPvtReadWriteSet {
if m != nil {
return m.CollectionPvtRwset
}
return nil
}
// CollectionPvtReadWriteSet encapsulates the private read-write set for a collection
type CollectionPvtReadWriteSet struct {
CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CollectionPvtReadWriteSet) Reset() { *m = CollectionPvtReadWriteSet{} }
func (m *CollectionPvtReadWriteSet) String() string { return proto.CompactTextString(m) }
func (*CollectionPvtReadWriteSet) ProtoMessage() {}
func (*CollectionPvtReadWriteSet) Descriptor() ([]byte, []int) {
return fileDescriptor_794d00b812408f20, []int{5}
}
func (m *CollectionPvtReadWriteSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollectionPvtReadWriteSet.Unmarshal(m, b)
}
func (m *CollectionPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollectionPvtReadWriteSet.Marshal(b, m, deterministic)
}
func (m *CollectionPvtReadWriteSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectionPvtReadWriteSet.Merge(m, src)
}
func (m *CollectionPvtReadWriteSet) XXX_Size() int {
return xxx_messageInfo_CollectionPvtReadWriteSet.Size(m)
}
func (m *CollectionPvtReadWriteSet) XXX_DiscardUnknown() {
xxx_messageInfo_CollectionPvtReadWriteSet.DiscardUnknown(m)
}
var xxx_messageInfo_CollectionPvtReadWriteSet proto.InternalMessageInfo
func (m *CollectionPvtReadWriteSet) GetCollectionName() string {
if m != nil {
return m.CollectionName
}
return ""
}
func (m *CollectionPvtReadWriteSet) GetRwset() []byte {
if m != nil {
return m.Rwset
}
return nil
}
func init() {
proto.RegisterEnum("rwset.TxReadWriteSet_DataModel", TxReadWriteSet_DataModel_name, TxReadWriteSet_DataModel_value)
proto.RegisterType((*TxReadWriteSet)(nil), "rwset.TxReadWriteSet")
proto.RegisterType((*NsReadWriteSet)(nil), "rwset.NsReadWriteSet")
proto.RegisterType((*CollectionHashedReadWriteSet)(nil), "rwset.CollectionHashedReadWriteSet")
proto.RegisterType((*TxPvtReadWriteSet)(nil), "rwset.TxPvtReadWriteSet")
proto.RegisterType((*NsPvtReadWriteSet)(nil), "rwset.NsPvtReadWriteSet")
proto.RegisterType((*CollectionPvtReadWriteSet)(nil), "rwset.CollectionPvtReadWriteSet")
}
func init() { proto.RegisterFile("ledger/rwset/rwset.proto", fileDescriptor_794d00b812408f20) }
var fileDescriptor_794d00b812408f20 = []byte{
// 421 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcf, 0xef, 0x93, 0x30,
0x18, 0xc6, 0xed, 0x77, 0xd9, 0x94, 0x77, 0x04, 0x5d, 0xdd, 0x22, 0x26, 0x4b, 0x9c, 0xd3, 0xc4,
0xc5, 0x64, 0x60, 0xa6, 0x27, 0x0f, 0x1e, 0xd4, 0x83, 0x89, 0x71, 0x31, 0x75, 0xd1, 0x64, 0x1e,
0x48, 0x81, 0x0a, 0x24, 0x40, 0x09, 0xad, 0x73, 0xfe, 0x01, 0x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