github.com/myafeier/fabric@v1.0.1-0.20170722181825-3a4b1f2bce86/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  	// 248 bytes of a gzipped FileDescriptorProto
   111  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x90, 0x41, 0x4b, 0xc3, 0x30,
   112  	0x14, 0xc7, 0xed, 0x64, 0xd3, 0x3c, 0xa5, 0x48, 0x54, 0xe8, 0x41, 0x70, 0xec, 0x54, 0x3c, 0x24,
   113  	0x3a, 0xef, 0x1e, 0x64, 0x37, 0xd1, 0x43, 0x14, 0x05, 0x2f, 0xe5, 0xb5, 0x79, 0x76, 0x85, 0xb5,
   114  	0x29, 0x49, 0x44, 0xfd, 0x24, 0x7e, 0x5d, 0x31, 0xd9, 0xb4, 0xbb, 0x84, 0xbc, 0x3f, 0xbf, 0x5f,
   115  	0xf2, 0xf8, 0x43, 0xb6, 0x22, 0x5d, 0x93, 0x95, 0xf6, 0xc3, 0x91, 0x8f, 0xa7, 0xe8, 0xad, 0xf1,
   116  	0x86, 0x8f, 0xc3, 0x30, 0xfb, 0x4e, 0x20, 0x7d, 0xfa, 0x54, 0x84, 0xfa, 0xc5, 0x36, 0x9e, 0x1e,
   117  	0xc9, 0xf3, 0x1b, 0x00, 0x8d, 0x1e, 0x8b, 0xd6, 0x68, 0x5a, 0x65, 0xc9, 0x34, 0xc9, 0xd3, 0xf9,
   118  	0xb9, 0x88, 0xee, 0x36, 0x2a, 0x16, 0xe8, 0xf1, 0xfe, 0x17, 0x53, 0x4c, 0x6f, 0xae, 0xfc, 0x12,
   119  	0xf6, 0x3b, 0x57, 0x04, 0x3e, 0x1b, 0x4d, 0x77, 0xf3, 0x83, 0xf9, 0xe9, 0xda, 0x7e, 0x70, 0x43,
   120  	0x5b, 0xed, 0x75, 0x4e, 0x85, 0x25, 0x8e, 0x81, 0xfd, 0xbd, 0xc4, 0x27, 0x30, 0xba, 0x7b, 0x3e,
   121  	0xda, 0x99, 0x2d, 0x20, 0xdd, 0xe6, 0xf9, 0x19, 0xb0, 0x0e, 0x5b, 0x72, 0x3d, 0x56, 0x14, 0xf6,
   122  	0x62, 0xea, 0x3f, 0xe0, 0x27, 0x30, 0xde, 0xfc, 0x99, 0xe4, 0x87, 0x2a, 0x0e, 0xb7, 0x05, 0x5c,
   123  	0x18, 0x5b, 0x8b, 0xe5, 0x57, 0x4f, 0x36, 0x76, 0x21, 0xde, 0xb0, 0xb4, 0x4d, 0x15, 0x6b, 0x70,
   124  	0x62, 0x1d, 0x06, 0xfa, 0xf5, 0xaa, 0x6e, 0xfc, 0xf2, 0xbd, 0x14, 0x95, 0x69, 0xe5, 0x40, 0x91,
   125  	0x51, 0x91, 0x51, 0x91, 0xc3, 0x4e, 0xcb, 0x49, 0x08, 0xaf, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff,
   126  	0xcd, 0x3b, 0xef, 0x59, 0x6a, 0x01, 0x00, 0x00,
   127  }