forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vttest.pb.go
248 lines (221 loc) · 9.21 KB
/
vttest.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: vttest.proto
package vttest // import "vitess.io/vitess/go/vt/proto/vttest"
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
// Shard describes a single shard in a keyspace.
type Shard struct {
// name has to be unique in a keyspace. For unsharded keyspaces, it
// should be '0'. For sharded keyspace, it should be derived from
// the keyrange, like '-80' or '40-80'.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// db_name_override is the mysql db name for this shard. Has to be
// globally unique. If not specified, we will by default use
// 'vt_<keyspace>_<shard>'.
DbNameOverride string `protobuf:"bytes,2,opt,name=db_name_override,json=dbNameOverride,proto3" json:"db_name_override,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Shard) Reset() { *m = Shard{} }
func (m *Shard) String() string { return proto.CompactTextString(m) }
func (*Shard) ProtoMessage() {}
func (*Shard) Descriptor() ([]byte, []int) {
return fileDescriptor_vttest_beaece7261b82562, []int{0}
}
func (m *Shard) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Shard.Unmarshal(m, b)
}
func (m *Shard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Shard.Marshal(b, m, deterministic)
}
func (dst *Shard) XXX_Merge(src proto.Message) {
xxx_messageInfo_Shard.Merge(dst, src)
}
func (m *Shard) XXX_Size() int {
return xxx_messageInfo_Shard.Size(m)
}
func (m *Shard) XXX_DiscardUnknown() {
xxx_messageInfo_Shard.DiscardUnknown(m)
}
var xxx_messageInfo_Shard proto.InternalMessageInfo
func (m *Shard) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Shard) GetDbNameOverride() string {
if m != nil {
return m.DbNameOverride
}
return ""
}
// Keyspace describes a single keyspace.
type Keyspace struct {
// name has to be unique in a VTTestTopology.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// shards inside this keyspace. Ignored if redirect is set.
Shards []*Shard `protobuf:"bytes,2,rep,name=shards,proto3" json:"shards,omitempty"`
// sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
ShardingColumnName string `protobuf:"bytes,3,opt,name=sharding_column_name,json=shardingColumnName,proto3" json:"sharding_column_name,omitempty"`
// sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
ShardingColumnType string `protobuf:"bytes,4,opt,name=sharding_column_type,json=shardingColumnType,proto3" json:"sharding_column_type,omitempty"`
// redirects all traffic to another keyspace. If set, shards is ignored.
ServedFrom string `protobuf:"bytes,5,opt,name=served_from,json=servedFrom,proto3" json:"served_from,omitempty"`
// number of replica tablets to instantiate. This includes the master tablet.
ReplicaCount int32 `protobuf:"varint,6,opt,name=replica_count,json=replicaCount,proto3" json:"replica_count,omitempty"`
// number of rdonly tablets to instantiate.
RdonlyCount int32 `protobuf:"varint,7,opt,name=rdonly_count,json=rdonlyCount,proto3" json:"rdonly_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Keyspace) Reset() { *m = Keyspace{} }
func (m *Keyspace) String() string { return proto.CompactTextString(m) }
func (*Keyspace) ProtoMessage() {}
func (*Keyspace) Descriptor() ([]byte, []int) {
return fileDescriptor_vttest_beaece7261b82562, []int{1}
}
func (m *Keyspace) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Keyspace.Unmarshal(m, b)
}
func (m *Keyspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Keyspace.Marshal(b, m, deterministic)
}
func (dst *Keyspace) XXX_Merge(src proto.Message) {
xxx_messageInfo_Keyspace.Merge(dst, src)
}
func (m *Keyspace) XXX_Size() int {
return xxx_messageInfo_Keyspace.Size(m)
}
func (m *Keyspace) XXX_DiscardUnknown() {
xxx_messageInfo_Keyspace.DiscardUnknown(m)
}
var xxx_messageInfo_Keyspace proto.InternalMessageInfo
func (m *Keyspace) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Keyspace) GetShards() []*Shard {
if m != nil {
return m.Shards
}
return nil
}
func (m *Keyspace) GetShardingColumnName() string {
if m != nil {
return m.ShardingColumnName
}
return ""
}
func (m *Keyspace) GetShardingColumnType() string {
if m != nil {
return m.ShardingColumnType
}
return ""
}
func (m *Keyspace) GetServedFrom() string {
if m != nil {
return m.ServedFrom
}
return ""
}
func (m *Keyspace) GetReplicaCount() int32 {
if m != nil {
return m.ReplicaCount
}
return 0
}
func (m *Keyspace) GetRdonlyCount() int32 {
if m != nil {
return m.RdonlyCount
}
return 0
}
// VTTestTopology describes the keyspaces in the topology.
type VTTestTopology struct {
// all keyspaces in the topology.
Keyspaces []*Keyspace `protobuf:"bytes,1,rep,name=keyspaces,proto3" json:"keyspaces,omitempty"`
// list of cells the keyspaces reside in. Vtgate is started in only the first cell.
Cells []string `protobuf:"bytes,2,rep,name=cells,proto3" json:"cells,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VTTestTopology) Reset() { *m = VTTestTopology{} }
func (m *VTTestTopology) String() string { return proto.CompactTextString(m) }
func (*VTTestTopology) ProtoMessage() {}
func (*VTTestTopology) Descriptor() ([]byte, []int) {
return fileDescriptor_vttest_beaece7261b82562, []int{2}
}
func (m *VTTestTopology) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VTTestTopology.Unmarshal(m, b)
}
func (m *VTTestTopology) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VTTestTopology.Marshal(b, m, deterministic)
}
func (dst *VTTestTopology) XXX_Merge(src proto.Message) {
xxx_messageInfo_VTTestTopology.Merge(dst, src)
}
func (m *VTTestTopology) XXX_Size() int {
return xxx_messageInfo_VTTestTopology.Size(m)
}
func (m *VTTestTopology) XXX_DiscardUnknown() {
xxx_messageInfo_VTTestTopology.DiscardUnknown(m)
}
var xxx_messageInfo_VTTestTopology proto.InternalMessageInfo
func (m *VTTestTopology) GetKeyspaces() []*Keyspace {
if m != nil {
return m.Keyspaces
}
return nil
}
func (m *VTTestTopology) GetCells() []string {
if m != nil {
return m.Cells
}
return nil
}
func init() {
proto.RegisterType((*Shard)(nil), "vttest.Shard")
proto.RegisterType((*Keyspace)(nil), "vttest.Keyspace")
proto.RegisterType((*VTTestTopology)(nil), "vttest.VTTestTopology")
}
func init() { proto.RegisterFile("vttest.proto", fileDescriptor_vttest_beaece7261b82562) }
var fileDescriptor_vttest_beaece7261b82562 = []byte{
// 322 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0xcb, 0x6a, 0xe3, 0x40,
0x10, 0x44, 0xb6, 0xa5, 0x5d, 0xb7, 0x1f, 0x98, 0xc1, 0x87, 0xb9, 0xad, 0xd7, 0xc6, 0xa0, 0x93,
0xb4, 0x6c, 0xfe, 0x20, 0x26, 0xb9, 0x04, 0x12, 0x50, 0x84, 0x0f, 0xb9, 0x08, 0x59, 0xea, 0x38,
0x22, 0x92, 0x5a, 0xcc, 0x8c, 0x05, 0xfa, 0x8d, 0x7c, 0x71, 0x50, 0x8f, 0x4c, 0x2e, 0xbe, 0x55,
0x57, 0xd5, 0x74, 0x35, 0x35, 0x30, 0x6f, 0x8d, 0x41, 0x6d, 0x82, 0x46, 0x91, 0x21, 0xe1, 0xd9,
0x69, 0xfb, 0x00, 0xee, 0xeb, 0x47, 0xaa, 0x72, 0x21, 0x60, 0x52, 0xa7, 0x15, 0x4a, 0x67, 0xe3,
0xf8, 0xd3, 0x88, 0xb1, 0xf0, 0x61, 0x95, 0x9f, 0x92, 0x1e, 0x26, 0xd4, 0xa2, 0x52, 0x45, 0x8e,
0x72, 0xc4, 0xfa, 0x32, 0x3f, 0x3d, 0xa7, 0x15, 0xbe, 0x0c, 0xec, 0xf6, 0x6b, 0x04, 0xbf, 0x9f,
0xb0, 0xd3, 0x4d, 0x9a, 0xe1, 0xcd, 0x55, 0x7b, 0xf0, 0x74, 0x9f, 0xa3, 0xe5, 0x68, 0x33, 0xf6,
0x67, 0xff, 0x17, 0xc1, 0x70, 0x0e, 0xa7, 0x47, 0x83, 0x28, 0xfe, 0xc1, 0x9a, 0x51, 0x51, 0x9f,
0x93, 0x8c, 0xca, 0x4b, 0x55, 0x73, 0xbc, 0x1c, 0xf3, 0x2a, 0x71, 0xd5, 0x0e, 0x2c, 0xf5, 0x17,
0xdc, 0x7a,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