github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/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 // 295 bytes of a gzipped FileDescriptorProto 116 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4f, 0x4b, 0xc3, 0x30, 117 0x18, 0xc6, 0xe9, 0xfe, 0xc8, 0x9a, 0x09, 0x4a, 0xf4, 0x50, 0xa6, 0xe0, 0xd8, 0xa9, 0xa7, 0x04, 118 0xf4, 0xb2, 0x9b, 0x20, 0x5e, 0x74, 0x78, 0x29, 0xe2, 0xc1, 0x4b, 0x49, 0x9b, 0x77, 0x5d, 0x58, 119 0xda, 0xcc, 0x26, 0x19, 0x2b, 0x7e, 0x0c, 0xbf, 0xb0, 0x2c, 0xb1, 0xb6, 0xb0, 0x5b, 0x9e, 0xf7, 120 0x7d, 0xde, 0x1f, 0x0f, 0x4f, 0x50, 0x2c, 0x81, 0x17, 0x50, 0xd3, 0x2f, 0x0b, 0x75, 0x53, 0x83, 121 0xb6, 0xd2, 0xd0, 0xed, 0x3e, 0x75, 0x32, 0xf5, 0x9a, 0xec, 0x6a, 0x65, 0x14, 0x9e, 0xf6, 0x2c, 122 0xb3, 0xbb, 0x42, 0xa9, 0x42, 0x02, 0x75, 0xab, 0xcc, 0xae, 0xa9, 0x11, 0x25, 0x68, 0xc3, 0xca, 123 0x9d, 0x77, 0x2f, 0x5e, 0xd1, 0x60, 0xf5, 0x81, 0x6f, 0x51, 0x58, 0xb1, 0x12, 0xf4, 0x8e, 0xe5, 124 0x10, 0x05, 0xf3, 0x20, 0x0e, 0x93, 0x6e, 0x80, 0x2f, 0xd1, 0x70, 0x0b, 0x4d, 0x34, 0x70, 0xf3, 125 0xe3, 0x13, 0x5f, 0xa3, 0xf1, 0x9e, 0x49, 0x0b, 0xd1, 0x70, 0x1e, 0xc4, 0xe7, 0x89, 0x17, 0x8b, 126 0x9f, 0x00, 0x5d, 0xac, 0xa0, 0x79, 0x53, 0x5c, 0xac, 0x45, 0xce, 0x8c, 0x50, 0x15, 0xbe, 0x42, 127 0x63, 0x73, 0x48, 0x05, 0xff, 0xa3, 0x8e, 0xcc, 0xe1, 0x85, 0x77, 0xe7, 0x83, 0xde, 0x39, 0x5e, 128 0xa2, 0xf0, 0x3f, 0x9d, 0x03, 0x4f, 0xef, 0x67, 0xc4, 0xe7, 0x27, 0x6d, 0x7e, 0xf2, 0xde, 0x3a, 129 0x92, 0xce, 0x8c, 0x6f, 0x50, 0x28, 0x74, 0xca, 0x41, 0x82, 0x81, 0x68, 0x34, 0x0f, 0xe2, 0x49, 130 0x32, 0x11, 0xfa, 0xd9, 0xe9, 0xa7, 0x6f, 0xb4, 0x54, 0x75, 0x41, 0x44, 0xb5, 0x95, 0x2c, 0xd3, 131 0x6b, 0x65, 0x2b, 0xee, 0xa2, 0x1d, 0x27, 0xf9, 0x86, 0x89, 0xca, 0xc3, 0x35, 0xf1, 0x0d, 0x93, 132 0x5e, 0x7d, 0x9f, 0x8f, 0x85, 0x30, 0x1b, 0x9b, 0x91, 0x5c, 0x95, 0xf4, 0x04, 0x40, 0x5b, 0x80, 133 0x6f, 0x57, 0xd3, 0xd3, 0x2f, 0xca, 0xce, 0xdc, 0xea, 0xe1, 0x37, 0x00, 0x00, 0xff, 0xff, 0x1c, 134 0x58, 0x49, 0xbc, 0xbf, 0x01, 0x00, 0x00, 135 }