github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/ledger/queryresult/kv_query_result.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: ledger/queryresult/kv_query_result.proto
     3  
     4  /*
     5  Package queryresult is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	ledger/queryresult/kv_query_result.proto
     9  
    10  It has these top-level messages:
    11  	KV
    12  	KeyModification
    13  */
    14  package queryresult
    15  
    16  import proto "github.com/golang/protobuf/proto"
    17  import fmt "fmt"
    18  import math "math"
    19  import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    31  
    32  // KV -- QueryResult for range/execute query. Holds a key and corresponding value.
    33  type KV struct {
    34  	Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"`
    35  	Key       string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
    36  	Value     []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
    37  }
    38  
    39  func (m *KV) Reset()                    { *m = KV{} }
    40  func (m *KV) String() string            { return proto.CompactTextString(m) }
    41  func (*KV) ProtoMessage()               {}
    42  func (*KV) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    43  
    44  func (m *KV) GetNamespace() string {
    45  	if m != nil {
    46  		return m.Namespace
    47  	}
    48  	return ""
    49  }
    50  
    51  func (m *KV) GetKey() string {
    52  	if m != nil {
    53  		return m.Key
    54  	}
    55  	return ""
    56  }
    57  
    58  func (m *KV) GetValue() []byte {
    59  	if m != nil {
    60  		return m.Value
    61  	}
    62  	return nil
    63  }
    64  
    65  // KeyModification -- QueryResult for history query. Holds a transaction ID, value,
    66  // timestamp, and delete marker which resulted from a history query.
    67  type KeyModification struct {
    68  	TxId      string                     `protobuf:"bytes,1,opt,name=tx_id,json=txId" json:"tx_id,omitempty"`
    69  	Value     []byte                     `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    70  	Timestamp *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
    71  	IsDelete  bool                       `protobuf:"varint,4,opt,name=is_delete,json=isDelete" json:"is_delete,omitempty"`
    72  }
    73  
    74  func (m *KeyModification) Reset()                    { *m = KeyModification{} }
    75  func (m *KeyModification) String() string            { return proto.CompactTextString(m) }
    76  func (*KeyModification) ProtoMessage()               {}
    77  func (*KeyModification) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    78  
    79  func (m *KeyModification) GetTxId() string {
    80  	if m != nil {
    81  		return m.TxId
    82  	}
    83  	return ""
    84  }
    85  
    86  func (m *KeyModification) GetValue() []byte {
    87  	if m != nil {
    88  		return m.Value
    89  	}
    90  	return nil
    91  }
    92  
    93  func (m *KeyModification) GetTimestamp() *google_protobuf.Timestamp {
    94  	if m != nil {
    95  		return m.Timestamp
    96  	}
    97  	return nil
    98  }
    99  
   100  func (m *KeyModification) GetIsDelete() bool {
   101  	if m != nil {
   102  		return m.IsDelete
   103  	}
   104  	return false
   105  }
   106  
   107  func init() {
   108  	proto.RegisterType((*KV)(nil), "queryresult.KV")
   109  	proto.RegisterType((*KeyModification)(nil), "queryresult.KeyModification")
   110  }
   111  
   112  func init() { proto.RegisterFile("ledger/queryresult/kv_query_result.proto", fileDescriptor0) }
   113  
   114  var fileDescriptor0 = []byte{
   115  	// 286 bytes of a gzipped FileDescriptorProto
   116  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x51, 0x4f, 0x4b, 0xc3, 0x30,
   117  	0x1c, 0xa5, 0xdd, 0x26, 0x6b, 0x26, 0x28, 0xd1, 0x43, 0x99, 0x82, 0x65, 0xa7, 0x9e, 0x12, 0xd1,
   118  	0x83, 0x9e, 0xc5, 0x8b, 0x0e, 0x2f, 0x45, 0x3c, 0x78, 0x29, 0x69, 0xfb, 0x6b, 0x17, 0xda, 0x2e,
   119  	0x35, 0x7f, 0xc6, 0xfa, 0x39, 0xfc, 0xc2, 0x62, 0xb2, 0xd9, 0x82, 0xb7, 0xbc, 0xf7, 0x7b, 0xef,
   120  	0xf1, 0x78, 0x41, 0x71, 0x03, 0x45, 0x05, 0x92, 0x7e, 0x19, 0x90, 0xbd, 0x04, 0x65, 0x1a, 0x4d,
   121  	0xeb, 0x5d, 0x6a, 0x61, 0xea, 0x30, 0xe9, 0xa4, 0xd0, 0x02, 0x2f, 0x46, 0x92, 0xe5, 0x4d, 0x25,
   122  	0x44, 0xd5, 0x00, 0xb5, 0xa7, 0xcc, 0x94, 0x54, 0xf3, 0x16, 0x94, 0x66, 0x6d, 0xe7, 0xd4, 0xab,
   123  	0x57, 0xe4, 0xaf, 0x3f, 0xf0, 0x35, 0x0a, 0xb6, 0xac, 0x05, 0xd5, 0xb1, 0x1c, 0x42, 0x2f, 0xf2,
   124  	0xe2, 0x20, 0x19, 0x08, 0x7c, 0x8e, 0x26, 0x35, 0xf4, 0xa1, 0x6f, 0xf9, 0xdf, 0x27, 0xbe, 0x44,
   125  	0xb3, 0x1d, 0x6b, 0x0c, 0x84, 0x93, 0xc8, 0x8b, 0x4f, 0x13, 0x07, 0x56, 0xdf, 0x1e, 0x3a, 0x5b,
   126  	0x43, 0xff, 0x26, 0x0a, 0x5e, 0xf2, 0x9c, 0x69, 0x2e, 0xb6, 0xf8, 0x02, 0xcd, 0xf4, 0x3e, 0xe5,
   127  	0xc5, 0x21, 0x75, 0xaa, 0xf7, 0x2f, 0xc5, 0x60, 0xf7, 0x47, 0x76, 0xfc, 0x88, 0x82, 0xbf, 0x76,
   128  	0x36, 0x78, 0x71, 0xb7, 0x24, 0xae, 0x3f, 0x39, 0xf6, 0x27, 0xef, 0x47, 0x45, 0x32, 0x88, 0xf1,
   129  	0x15, 0x0a, 0xb8, 0x4a, 0x0b, 0x68, 0x40, 0x43, 0x38, 0x8d, 0xbc, 0x78, 0x9e, 0xcc, 0xb9, 0x7a,
   130  	0xb6, 0xf8, 0xa9, 0x46, 0xb7, 0x42, 0x56, 0x64, 0xd3, 0x77, 0x20, 0xdd, 0x88, 0xa4, 0x64, 0x99,
   131  	0xe4, 0xb9, 0x0b, 0x55, 0xe4, 0x40, 0x8e, 0x66, 0xfb, 0x7c, 0xa8, 0xb8, 0xde, 0x98, 0x8c, 0xe4,
   132  	0xa2, 0xa5, 0x23, 0x23, 0x75, 0x46, 0xb7, 0xa6, 0xa2, 0xff, 0xbf, 0x24, 0x3b, 0xb1, 0xa7, 0xfb,
   133  	0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0xb7, 0x3e, 0x86, 0xaf, 0x01, 0x00, 0x00,
   134  }