/
types.pb.go
194 lines (168 loc) · 7.06 KB
/
types.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: types.proto
package redcloud
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Column_ColumnContentType int32
const (
Column_DATA Column_ColumnContentType = 0
Column_TOMBSTONE Column_ColumnContentType = 1
)
var Column_ColumnContentType_name = map[int32]string{
0: "DATA",
1: "TOMBSTONE",
}
var Column_ColumnContentType_value = map[string]int32{
"DATA": 0,
"TOMBSTONE": 1,
}
func (x Column_ColumnContentType) String() string {
return proto.EnumName(Column_ColumnContentType_name, int32(x))
}
func (Column_ColumnContentType) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{1, 0} }
//
// Empty is an empty message. There's a similar definition in the protocol buffer
// base, but that doesn't seem to work with all protobuf compilers, so we have
// our own.
type Empty struct {
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
//
// Column contains information about data contained within a column.
type Column struct {
//
// Type of the data contained in the column. In journals and minor sstables,
// this might be set to TOMBSTONE to represent that data in the column has
// been deleted.
Type Column_ColumnContentType `protobuf:"varint,1,opt,name=type,enum=redcloud.Column_ColumnContentType" json:"type,omitempty"`
//
// timestamp describes the exact point in time, encoded as milliseconds,
// when the datum has been written. This will be used both for expiry (see
// ttl) and to determine the most current datum in the column.
//
// Nonetheless, this field is filled in by the client because red-cloud
// can't claim to know where the data came from.
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"`
//
// ttl describes the number of milliseconds this datum will be considered
// valid. A compaction running after timestamp+ttl will discard this datum.
// A ttl of 0 describes permanent data which will never expire.
Ttl int64 `protobuf:"varint,3,opt,name=ttl" json:"ttl,omitempty"`
// content contains the data actually written to the column.
Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
}
func (m *Column) Reset() { *m = Column{} }
func (m *Column) String() string { return proto.CompactTextString(m) }
func (*Column) ProtoMessage() {}
func (*Column) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *Column) GetType() Column_ColumnContentType {
if m != nil {
return m.Type
}
return Column_DATA
}
func (m *Column) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
func (m *Column) GetTtl() int64 {
if m != nil {
return m.Ttl
}
return 0
}
func (m *Column) GetContent() []byte {
if m != nil {
return m.Content
}
return nil
}
//
// ColumnSet is a list of data records for a single column within a single row.
type ColumnSet struct {
// name contains the name of the column being represented.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
//
// A ColumnSet consists of a number of Columns. They represent different
// versions of the data contained in the column.
Column []*Column `protobuf:"bytes,2,rep,name=column" json:"column,omitempty"`
}
func (m *ColumnSet) Reset() { *m = ColumnSet{} }
func (m *ColumnSet) String() string { return proto.CompactTextString(m) }
func (*ColumnSet) ProtoMessage() {}
func (*ColumnSet) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
func (m *ColumnSet) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ColumnSet) GetColumn() []*Column {
if m != nil {
return m.Column
}
return nil
}
//
// ColumnFamily contains all ColumnSet objects associated with a single row
// which belong to a single column family.
type ColumnFamily struct {
// Row key to identify the row this ColumnFamily pertains to.
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Many ColumnSets make a ColumnFamily.
ColumnSet []*ColumnSet `protobuf:"bytes,2,rep,name=column_set,json=columnSet" json:"column_set,omitempty"`
}
func (m *ColumnFamily) Reset() { *m = ColumnFamily{} }
func (m *ColumnFamily) String() string { return proto.CompactTextString(m) }
func (*ColumnFamily) ProtoMessage() {}
func (*ColumnFamily) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
func (m *ColumnFamily) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *ColumnFamily) GetColumnSet() []*ColumnSet {
if m != nil {
return m.ColumnSet
}
return nil
}
func init() {
proto.RegisterType((*Empty)(nil), "redcloud.Empty")
proto.RegisterType((*Column)(nil), "redcloud.Column")
proto.RegisterType((*ColumnSet)(nil), "redcloud.ColumnSet")
proto.RegisterType((*ColumnFamily)(nil), "redcloud.ColumnFamily")
proto.RegisterEnum("redcloud.Column_ColumnContentType", Column_ColumnContentType_name, Column_ColumnContentType_value)
}
func init() { proto.RegisterFile("types.proto", fileDescriptor4) }
var fileDescriptor4 = []byte{
// 268 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x31, 0x6f, 0xbb, 0x30,
0x10, 0xc5, 0xff, 0x0e, 0xfc, 0x49, 0xb8, 0xd0, 0x8a, 0x5e, 0x17, 0x0f, 0x1d, 0x90, 0x27, 0x86,
0x8a, 0x81, 0x4a, 0xdd, 0xd3, 0x34, 0x95, 0x3a, 0xb4, 0x91, 0x0c, 0x7b, 0x45, 0x89, 0x87, 0xa8,
0x18, 0x50, 0xb8, 0x0c, 0xfe, 0x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