-
Notifications
You must be signed in to change notification settings - Fork 6
/
kv_query_result.pb.go
134 lines (114 loc) · 5.06 KB
/
kv_query_result.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ledger/queryresult/kv_query_result.proto
/*
Package queryresult is a generated protocol buffer package.
It is generated from these files:
ledger/queryresult/kv_query_result.proto
It has these top-level messages:
KV
KeyModification
*/
package queryresult
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
// KV -- QueryResult for range/execute query. Holds a key and corresponding value.
type KV struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *KV) Reset() { *m = KV{} }
func (m *KV) String() string { return proto.CompactTextString(m) }
func (*KV) ProtoMessage() {}
func (*KV) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *KV) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *KV) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *KV) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
// KeyModification -- QueryResult for history query. Holds a transaction ID, value,
// timestamp, and delete marker which resulted from a history query.
type KeyModification struct {
TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId" json:"tx_id,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Timestamp *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
IsDelete bool `protobuf:"varint,4,opt,name=is_delete,json=isDelete" json:"is_delete,omitempty"`
}
func (m *KeyModification) Reset() { *m = KeyModification{} }
func (m *KeyModification) String() string { return proto.CompactTextString(m) }
func (*KeyModification) ProtoMessage() {}
func (*KeyModification) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *KeyModification) GetTxId() string {
if m != nil {
return m.TxId
}
return ""
}
func (m *KeyModification) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *KeyModification) GetTimestamp() *google_protobuf.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
func (m *KeyModification) GetIsDelete() bool {
if m != nil {
return m.IsDelete
}
return false
}
func init() {
proto.RegisterType((*KV)(nil), "queryresult.KV")
proto.RegisterType((*KeyModification)(nil), "queryresult.KeyModification")
}
func init() { proto.RegisterFile("ledger/queryresult/kv_query_result.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 286 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x51, 0x4f, 0x4b, 0xc3, 0x30,
0x1c, 0xa5, 0xdd, 0x26, 0x6b, 0x26, 0x28, 0xd1, 0x43, 0x99, 0x82, 0x65, 0xa7, 0x9e, 0x12, 0xd1,
0x83, 0x9e, 0xc5, 0x8b, 0x0e, 0x2f, 0x45, 0x3c, 0x78, 0x29, 0x69, 0xfb, 0x6b, 0x17, 0xda, 0x2e,
0x35, 0x7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