forked from dolthub/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vschema.pb.go
262 lines (227 loc) · 9.75 KB
/
vschema.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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
// Code generated by protoc-gen-go.
// source: vschema.proto
// DO NOT EDIT!
/*
Package vschema is a generated protocol buffer package.
It is generated from these files:
vschema.proto
It has these top-level messages:
Keyspace
Vindex
Table
ColumnVindex
AutoIncrement
SrvVSchema
*/
package vschema
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
// 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
// Keyspace is the vschema for a keyspace.
type Keyspace struct {
// If sharded is false, vindexes and tables are ignored.
Sharded bool `protobuf:"varint,1,opt,name=sharded" json:"sharded,omitempty"`
Vindexes map[string]*Vindex `protobuf:"bytes,2,rep,name=vindexes" json:"vindexes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Tables map[string]*Table `protobuf:"bytes,3,rep,name=tables" json:"tables,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *Keyspace) Reset() { *m = Keyspace{} }
func (m *Keyspace) String() string { return proto.CompactTextString(m) }
func (*Keyspace) ProtoMessage() {}
func (*Keyspace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Keyspace) GetSharded() bool {
if m != nil {
return m.Sharded
}
return false
}
func (m *Keyspace) GetVindexes() map[string]*Vindex {
if m != nil {
return m.Vindexes
}
return nil
}
func (m *Keyspace) GetTables() map[string]*Table {
if m != nil {
return m.Tables
}
return nil
}
// Vindex is the vindex info for a Keyspace.
type Vindex struct {
// The type must match one of the predefined
// (or plugged in) vindex names.
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// params is a map of attribute value pairs
// that must be defined as required by the
// vindex constructors. The values can only
// be strings.
Params map[string]string `protobuf:"bytes,2,rep,name=params" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// A lookup vindex can have an owner table defined.
// If so, rows in the lookup table are created or
// deleted in sync with corresponding rows in the
// owner table.
Owner string `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"`
}
func (m *Vindex) Reset() { *m = Vindex{} }
func (m *Vindex) String() string { return proto.CompactTextString(m) }
func (*Vindex) ProtoMessage() {}
func (*Vindex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Vindex) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Vindex) GetParams() map[string]string {
if m != nil {
return m.Params
}
return nil
}
func (m *Vindex) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
// Table is the table info for a Keyspace.
type Table struct {
// If the table is a sequence, type must be
// "sequence". Otherwise, it should be empty.
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// column_vindexes associates columns to vindexes.
ColumnVindexes []*ColumnVindex `protobuf:"bytes,2,rep,name=column_vindexes,json=columnVindexes" json:"column_vindexes,omitempty"`
// auto_increment is specified if a column needs
// to be associated with a sequence.
AutoIncrement *AutoIncrement `protobuf:"bytes,3,opt,name=auto_increment,json=autoIncrement" json:"auto_increment,omitempty"`
}
func (m *Table) Reset() { *m = Table{} }
func (m *Table) String() string { return proto.CompactTextString(m) }
func (*Table) ProtoMessage() {}
func (*Table) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Table) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Table) GetColumnVindexes() []*ColumnVindex {
if m != nil {
return m.ColumnVindexes
}
return nil
}
func (m *Table) GetAutoIncrement() *AutoIncrement {
if m != nil {
return m.AutoIncrement
}
return nil
}
// ColumnVindex is used to associate a column to a vindex.
type ColumnVindex struct {
Column string `protobuf:"bytes,1,opt,name=column" json:"column,omitempty"`
// The name must match a vindex defined in Keyspace.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
func (m *ColumnVindex) Reset() { *m = ColumnVindex{} }
func (m *ColumnVindex) String() string { return proto.CompactTextString(m) }
func (*ColumnVindex) ProtoMessage() {}
func (*ColumnVindex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ColumnVindex) GetColumn() string {
if m != nil {
return m.Column
}
return ""
}
func (m *ColumnVindex) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Autoincrement is used to designate a column as auto-inc.
type AutoIncrement struct {
Column string `protobuf:"bytes,1,opt,name=column" json:"column,omitempty"`
// The sequence must match a table of type SEQUENCE.
Sequence string `protobuf:"bytes,2,opt,name=sequence" json:"sequence,omitempty"`
}
func (m *AutoIncrement) Reset() { *m = AutoIncrement{} }
func (m *AutoIncrement) String() string { return proto.CompactTextString(m) }
func (*AutoIncrement) ProtoMessage() {}
func (*AutoIncrement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *AutoIncrement) GetColumn() string {
if m != nil {
return m.Column
}
return ""
}
func (m *AutoIncrement) GetSequence() string {
if m != nil {
return m.Sequence
}
return ""
}
// SrvVSchema is the roll-up of all the Keyspace schema for a cell.
type SrvVSchema struct {
// keyspaces is a map of keyspace name -> Keyspace object.
Keyspaces map[string]*Keyspace `protobuf:"bytes,1,rep,name=keyspaces" json:"keyspaces,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *SrvVSchema) Reset() { *m = SrvVSchema{} }
func (m *SrvVSchema) String() string { return proto.CompactTextString(m) }
func (*SrvVSchema) ProtoMessage() {}
func (*SrvVSchema) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *SrvVSchema) GetKeyspaces() map[string]*Keyspace {
if m != nil {
return m.Keyspaces
}
return nil
}
func init() {
proto.RegisterType((*Keyspace)(nil), "vschema.Keyspace")
proto.RegisterType((*Vindex)(nil), "vschema.Vindex")
proto.RegisterType((*Table)(nil), "vschema.Table")
proto.RegisterType((*ColumnVindex)(nil), "vschema.ColumnVindex")
proto.RegisterType((*AutoIncrement)(nil), "vschema.AutoIncrement")
proto.RegisterType((*SrvVSchema)(nil), "vschema.SrvVSchema")
}
func init() { proto.RegisterFile("vschema.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 436 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xd1, 0x6a, 0xd4, 0x40,
0x14, 0x86, 0x99, 0xc4, 0x4d, 0xb3, 0x27, 0x26, 0xd5, 0xa1, 0x96, 0x10, 0x11, 0x97, 0xa0, 0xb8,
0x57, 0xb9, 0xd8, 0x22, 0x68, 0x45, 0x51, 0x8a, 0x17, 0x45, 0x41, 0x49, 0xa5, 0xb7, 0x65, 0x9a,
0x3d, 0xd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