blob: 69aac41fa105e70a5275154723fb9f5c58fa74dc [file] [log] [blame]
Serge Bazanski0d3a6cc2018-10-05 16:34:36 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: config.proto
3
4package config
5
6import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10)
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
22
23type Switch_Connector int32
24
25const (
26 Switch_CONNECTOR_INVALID Switch_Connector = 0
27 Switch_CONNECTOR_M6220 Switch_Connector = 1
28 Switch_CONNECTOR_ARISTA Switch_Connector = 2
29)
30
31var Switch_Connector_name = map[int32]string{
32 0: "CONNECTOR_INVALID",
33 1: "CONNECTOR_M6220",
34 2: "CONNECTOR_ARISTA",
35}
36
37var Switch_Connector_value = map[string]int32{
38 "CONNECTOR_INVALID": 0,
39 "CONNECTOR_M6220": 1,
40 "CONNECTOR_ARISTA": 2,
41}
42
43func (x Switch_Connector) String() string {
44 return proto.EnumName(Switch_Connector_name, int32(x))
45}
46
47func (Switch_Connector) EnumDescriptor() ([]byte, []int) {
48 return fileDescriptor_3eaf2c85e69e9ea4, []int{1, 0}
49}
50
51type Switch_Segment_Type int32
52
53const (
54 Switch_Segment_TYPE_INVALID Switch_Segment_Type = 0
55 Switch_Segment_TYPE_VLAN Switch_Segment_Type = 1
56)
57
58var Switch_Segment_Type_name = map[int32]string{
59 0: "TYPE_INVALID",
60 1: "TYPE_VLAN",
61}
62
63var Switch_Segment_Type_value = map[string]int32{
64 "TYPE_INVALID": 0,
65 "TYPE_VLAN": 1,
66}
67
68func (x Switch_Segment_Type) String() string {
69 return proto.EnumName(Switch_Segment_Type_name, int32(x))
70}
71
72func (Switch_Segment_Type) EnumDescriptor() ([]byte, []int) {
73 return fileDescriptor_3eaf2c85e69e9ea4, []int{1, 1, 0}
74}
75
76type Config struct {
77 Switch []*Switch `protobuf:"bytes,1,rep,name=switch,proto3" json:"switch,omitempty"`
78 Machine []*Machine `protobuf:"bytes,2,rep,name=machine,proto3" json:"machine,omitempty"`
79 XXX_NoUnkeyedLiteral struct{} `json:"-"`
80 XXX_unrecognized []byte `json:"-"`
81 XXX_sizecache int32 `json:"-"`
82}
83
84func (m *Config) Reset() { *m = Config{} }
85func (m *Config) String() string { return proto.CompactTextString(m) }
86func (*Config) ProtoMessage() {}
87func (*Config) Descriptor() ([]byte, []int) {
88 return fileDescriptor_3eaf2c85e69e9ea4, []int{0}
89}
90
91func (m *Config) XXX_Unmarshal(b []byte) error {
92 return xxx_messageInfo_Config.Unmarshal(m, b)
93}
94func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
95 return xxx_messageInfo_Config.Marshal(b, m, deterministic)
96}
97func (m *Config) XXX_Merge(src proto.Message) {
98 xxx_messageInfo_Config.Merge(m, src)
99}
100func (m *Config) XXX_Size() int {
101 return xxx_messageInfo_Config.Size(m)
102}
103func (m *Config) XXX_DiscardUnknown() {
104 xxx_messageInfo_Config.DiscardUnknown(m)
105}
106
107var xxx_messageInfo_Config proto.InternalMessageInfo
108
109func (m *Config) GetSwitch() []*Switch {
110 if m != nil {
111 return m.Switch
112 }
113 return nil
114}
115
116func (m *Config) GetMachine() []*Machine {
117 if m != nil {
118 return m.Machine
119 }
120 return nil
121}
122
123type Switch struct {
124 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
125 Connector Switch_Connector `protobuf:"varint,2,opt,name=connector,proto3,enum=Switch_Connector" json:"connector,omitempty"`
126 Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
127 ManagedPort []*Switch_SwitchPort `protobuf:"bytes,4,rep,name=managed_port,json=managedPort,proto3" json:"managed_port,omitempty"`
128 AvailableSegment []*Switch_Segment `protobuf:"bytes,5,rep,name=available_segment,json=availableSegment,proto3" json:"available_segment,omitempty"`
129 XXX_NoUnkeyedLiteral struct{} `json:"-"`
130 XXX_unrecognized []byte `json:"-"`
131 XXX_sizecache int32 `json:"-"`
132}
133
134func (m *Switch) Reset() { *m = Switch{} }
135func (m *Switch) String() string { return proto.CompactTextString(m) }
136func (*Switch) ProtoMessage() {}
137func (*Switch) Descriptor() ([]byte, []int) {
138 return fileDescriptor_3eaf2c85e69e9ea4, []int{1}
139}
140
141func (m *Switch) XXX_Unmarshal(b []byte) error {
142 return xxx_messageInfo_Switch.Unmarshal(m, b)
143}
144func (m *Switch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
145 return xxx_messageInfo_Switch.Marshal(b, m, deterministic)
146}
147func (m *Switch) XXX_Merge(src proto.Message) {
148 xxx_messageInfo_Switch.Merge(m, src)
149}
150func (m *Switch) XXX_Size() int {
151 return xxx_messageInfo_Switch.Size(m)
152}
153func (m *Switch) XXX_DiscardUnknown() {
154 xxx_messageInfo_Switch.DiscardUnknown(m)
155}
156
157var xxx_messageInfo_Switch proto.InternalMessageInfo
158
159func (m *Switch) GetName() string {
160 if m != nil {
161 return m.Name
162 }
163 return ""
164}
165
166func (m *Switch) GetConnector() Switch_Connector {
167 if m != nil {
168 return m.Connector
169 }
170 return Switch_CONNECTOR_INVALID
171}
172
173func (m *Switch) GetAddress() string {
174 if m != nil {
175 return m.Address
176 }
177 return ""
178}
179
180func (m *Switch) GetManagedPort() []*Switch_SwitchPort {
181 if m != nil {
182 return m.ManagedPort
183 }
184 return nil
185}
186
187func (m *Switch) GetAvailableSegment() []*Switch_Segment {
188 if m != nil {
189 return m.AvailableSegment
190 }
191 return nil
192}
193
194type Switch_SwitchPort struct {
195 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
196 XXX_NoUnkeyedLiteral struct{} `json:"-"`
197 XXX_unrecognized []byte `json:"-"`
198 XXX_sizecache int32 `json:"-"`
199}
200
201func (m *Switch_SwitchPort) Reset() { *m = Switch_SwitchPort{} }
202func (m *Switch_SwitchPort) String() string { return proto.CompactTextString(m) }
203func (*Switch_SwitchPort) ProtoMessage() {}
204func (*Switch_SwitchPort) Descriptor() ([]byte, []int) {
205 return fileDescriptor_3eaf2c85e69e9ea4, []int{1, 0}
206}
207
208func (m *Switch_SwitchPort) XXX_Unmarshal(b []byte) error {
209 return xxx_messageInfo_Switch_SwitchPort.Unmarshal(m, b)
210}
211func (m *Switch_SwitchPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
212 return xxx_messageInfo_Switch_SwitchPort.Marshal(b, m, deterministic)
213}
214func (m *Switch_SwitchPort) XXX_Merge(src proto.Message) {
215 xxx_messageInfo_Switch_SwitchPort.Merge(m, src)
216}
217func (m *Switch_SwitchPort) XXX_Size() int {
218 return xxx_messageInfo_Switch_SwitchPort.Size(m)
219}
220func (m *Switch_SwitchPort) XXX_DiscardUnknown() {
221 xxx_messageInfo_Switch_SwitchPort.DiscardUnknown(m)
222}
223
224var xxx_messageInfo_Switch_SwitchPort proto.InternalMessageInfo
225
226func (m *Switch_SwitchPort) GetName() string {
227 if m != nil {
228 return m.Name
229 }
230 return ""
231}
232
233type Switch_Segment struct {
234 SegmentType Switch_Segment_Type `protobuf:"varint,1,opt,name=segment_type,json=segmentType,proto3,enum=Switch_Segment_Type" json:"segment_type,omitempty"`
235 VlanId int32 `protobuf:"varint,2,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"`
236 XXX_NoUnkeyedLiteral struct{} `json:"-"`
237 XXX_unrecognized []byte `json:"-"`
238 XXX_sizecache int32 `json:"-"`
239}
240
241func (m *Switch_Segment) Reset() { *m = Switch_Segment{} }
242func (m *Switch_Segment) String() string { return proto.CompactTextString(m) }
243func (*Switch_Segment) ProtoMessage() {}
244func (*Switch_Segment) Descriptor() ([]byte, []int) {
245 return fileDescriptor_3eaf2c85e69e9ea4, []int{1, 1}
246}
247
248func (m *Switch_Segment) XXX_Unmarshal(b []byte) error {
249 return xxx_messageInfo_Switch_Segment.Unmarshal(m, b)
250}
251func (m *Switch_Segment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
252 return xxx_messageInfo_Switch_Segment.Marshal(b, m, deterministic)
253}
254func (m *Switch_Segment) XXX_Merge(src proto.Message) {
255 xxx_messageInfo_Switch_Segment.Merge(m, src)
256}
257func (m *Switch_Segment) XXX_Size() int {
258 return xxx_messageInfo_Switch_Segment.Size(m)
259}
260func (m *Switch_Segment) XXX_DiscardUnknown() {
261 xxx_messageInfo_Switch_Segment.DiscardUnknown(m)
262}
263
264var xxx_messageInfo_Switch_Segment proto.InternalMessageInfo
265
266func (m *Switch_Segment) GetSegmentType() Switch_Segment_Type {
267 if m != nil {
268 return m.SegmentType
269 }
270 return Switch_Segment_TYPE_INVALID
271}
272
273func (m *Switch_Segment) GetVlanId() int32 {
274 if m != nil {
275 return m.VlanId
276 }
277 return 0
278}
279
280type Machine struct {
281 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
282 ManagedPort []*Machine_Port `protobuf:"bytes,2,rep,name=managed_port,json=managedPort,proto3" json:"managed_port,omitempty"`
283 XXX_NoUnkeyedLiteral struct{} `json:"-"`
284 XXX_unrecognized []byte `json:"-"`
285 XXX_sizecache int32 `json:"-"`
286}
287
288func (m *Machine) Reset() { *m = Machine{} }
289func (m *Machine) String() string { return proto.CompactTextString(m) }
290func (*Machine) ProtoMessage() {}
291func (*Machine) Descriptor() ([]byte, []int) {
292 return fileDescriptor_3eaf2c85e69e9ea4, []int{2}
293}
294
295func (m *Machine) XXX_Unmarshal(b []byte) error {
296 return xxx_messageInfo_Machine.Unmarshal(m, b)
297}
298func (m *Machine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
299 return xxx_messageInfo_Machine.Marshal(b, m, deterministic)
300}
301func (m *Machine) XXX_Merge(src proto.Message) {
302 xxx_messageInfo_Machine.Merge(m, src)
303}
304func (m *Machine) XXX_Size() int {
305 return xxx_messageInfo_Machine.Size(m)
306}
307func (m *Machine) XXX_DiscardUnknown() {
308 xxx_messageInfo_Machine.DiscardUnknown(m)
309}
310
311var xxx_messageInfo_Machine proto.InternalMessageInfo
312
313func (m *Machine) GetName() string {
314 if m != nil {
315 return m.Name
316 }
317 return ""
318}
319
320func (m *Machine) GetManagedPort() []*Machine_Port {
321 if m != nil {
322 return m.ManagedPort
323 }
324 return nil
325}
326
327type Machine_Port struct {
328 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
329 XXX_NoUnkeyedLiteral struct{} `json:"-"`
330 XXX_unrecognized []byte `json:"-"`
331 XXX_sizecache int32 `json:"-"`
332}
333
334func (m *Machine_Port) Reset() { *m = Machine_Port{} }
335func (m *Machine_Port) String() string { return proto.CompactTextString(m) }
336func (*Machine_Port) ProtoMessage() {}
337func (*Machine_Port) Descriptor() ([]byte, []int) {
338 return fileDescriptor_3eaf2c85e69e9ea4, []int{2, 0}
339}
340
341func (m *Machine_Port) XXX_Unmarshal(b []byte) error {
342 return xxx_messageInfo_Machine_Port.Unmarshal(m, b)
343}
344func (m *Machine_Port) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
345 return xxx_messageInfo_Machine_Port.Marshal(b, m, deterministic)
346}
347func (m *Machine_Port) XXX_Merge(src proto.Message) {
348 xxx_messageInfo_Machine_Port.Merge(m, src)
349}
350func (m *Machine_Port) XXX_Size() int {
351 return xxx_messageInfo_Machine_Port.Size(m)
352}
353func (m *Machine_Port) XXX_DiscardUnknown() {
354 xxx_messageInfo_Machine_Port.DiscardUnknown(m)
355}
356
357var xxx_messageInfo_Machine_Port proto.InternalMessageInfo
358
359func (m *Machine_Port) GetName() string {
360 if m != nil {
361 return m.Name
362 }
363 return ""
364}
365
366func init() {
367 proto.RegisterEnum("Switch_Connector", Switch_Connector_name, Switch_Connector_value)
368 proto.RegisterEnum("Switch_Segment_Type", Switch_Segment_Type_name, Switch_Segment_Type_value)
369 proto.RegisterType((*Config)(nil), "Config")
370 proto.RegisterType((*Switch)(nil), "Switch")
371 proto.RegisterType((*Switch_SwitchPort)(nil), "Switch.SwitchPort")
372 proto.RegisterType((*Switch_Segment)(nil), "Switch.Segment")
373 proto.RegisterType((*Machine)(nil), "Machine")
374 proto.RegisterType((*Machine_Port)(nil), "Machine.Port")
375}
376
377func init() { proto.RegisterFile("config.proto", fileDescriptor_3eaf2c85e69e9ea4) }
378
379var fileDescriptor_3eaf2c85e69e9ea4 = []byte{
380 // 394 bytes of a gzipped FileDescriptorProto
381 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0x9b, 0x40,
382 0x10, 0x86, 0x8b, 0x4d, 0xa0, 0x8c, 0x49, 0x82, 0xb7, 0xa9, 0xba, 0xe2, 0x52, 0xc4, 0xa5, 0x3e,
383 0xd1, 0x88, 0xaa, 0xed, 0xa5, 0x17, 0x44, 0x73, 0x40, 0x0a, 0x24, 0xda, 0xa0, 0x48, 0x3d, 0xa1,
384 0x0d, 0x6c, 0x1d, 0x54, 0xb3, 0x20, 0x40, 0xae, 0x7c, 0xef, 0x23, 0xf6, 0x81, 0x2a, 0x2f, 0x8b,
385 0xa9, 0x5c, 0xf7, 0x04, 0xff, 0x3f, 0xdf, 0xcc, 0xc0, 0xcc, 0x80, 0x99, 0xd7, 0xfc, 0x7b, 0xb9,
386 0xf6, 0x9a, 0xb6, 0xee, 0x6b, 0x37, 0x06, 0x2d, 0x14, 0x1a, 0xbd, 0x05, 0xad, 0xfb, 0x59, 0xf6,
387 0xf9, 0x33, 0x56, 0x9c, 0xf9, 0x6a, 0xe1, 0xeb, 0xde, 0x83, 0x90, 0x44, 0xda, 0xc8, 0x05, 0xbd,
388 0xa2, 0xf9, 0x73, 0xc9, 0x19, 0x9e, 0x09, 0xe2, 0xa5, 0x17, 0x0f, 0x9a, 0x8c, 0x01, 0xf7, 0xf7,
389 0x1c, 0xb4, 0x21, 0x0d, 0x21, 0x50, 0x39, 0xad, 0x18, 0x56, 0x1c, 0x65, 0x65, 0x10, 0xf1, 0x8e,
390 0xde, 0x83, 0x91, 0xd7, 0x9c, 0xb3, 0xbc, 0xaf, 0x5b, 0x3c, 0x73, 0x94, 0xd5, 0x85, 0xbf, 0x94,
391 0x6d, 0xbc, 0x70, 0x0c, 0x90, 0x89, 0x41, 0x18, 0x74, 0x5a, 0x14, 0x2d, 0xeb, 0x3a, 0x3c, 0x17,
392 0x75, 0x46, 0x89, 0x3e, 0x82, 0x59, 0x51, 0x4e, 0xd7, 0xac, 0xc8, 0x9a, 0xba, 0xed, 0xb1, 0x2a,
393 0x3e, 0x09, 0x8d, 0xd5, 0x86, 0xc7, 0x7d, 0xdd, 0xf6, 0x64, 0x21, 0xb9, 0xbd, 0x40, 0x5f, 0x60,
394 0x49, 0xb7, 0xb4, 0xdc, 0xd0, 0xa7, 0x0d, 0xcb, 0x3a, 0xb6, 0xae, 0x18, 0xef, 0xf1, 0x99, 0xc8,
395 0xbd, 0x3c, 0xe4, 0x0e, 0x36, 0xb1, 0x0e, 0xa4, 0x74, 0x6c, 0x07, 0x60, 0x2a, 0x7c, 0xea, 0x0f,
396 0xed, 0x5f, 0x0a, 0xe8, 0x92, 0x46, 0x9f, 0xc1, 0x94, 0x1d, 0xb2, 0x7e, 0xd7, 0x0c, 0xdc, 0x85,
397 0x7f, 0x75, 0xd4, 0xc6, 0x4b, 0x77, 0x0d, 0x23, 0x0b, 0x49, 0xee, 0x05, 0x7a, 0x03, 0xfa, 0x76,
398 0x43, 0x79, 0x56, 0x16, 0x62, 0x48, 0x67, 0x44, 0xdb, 0xcb, 0xa8, 0x70, 0xdf, 0x81, 0x2a, 0x00,
399 0x0b, 0xcc, 0xf4, 0xdb, 0xfd, 0x4d, 0x16, 0x25, 0x8f, 0xc1, 0x6d, 0xf4, 0xd5, 0x7a, 0x81, 0xce,
400 0xc1, 0x10, 0xce, 0xe3, 0x6d, 0x90, 0x58, 0x8a, 0x1b, 0x83, 0x71, 0x98, 0x27, 0x7a, 0x0d, 0xcb,
401 0xf0, 0x2e, 0x49, 0x6e, 0xc2, 0xf4, 0x8e, 0xfc, 0x95, 0xf2, 0x0a, 0x2e, 0x27, 0x3b, 0xfe, 0xe4,
402 0xfb, 0xd7, 0x96, 0x82, 0xae, 0xc0, 0x9a, 0xcc, 0x80, 0x44, 0x0f, 0x69, 0x60, 0xcd, 0xdc, 0x1f,
403 0xa0, 0xcb, 0x55, 0x9f, 0x5c, 0xeb, 0xf5, 0xd1, 0x2e, 0x86, 0xf3, 0x38, 0x1f, 0xcf, 0xc3, 0xfb,
404 0x67, 0x0d, 0xb6, 0x0d, 0xea, 0xff, 0x46, 0xf8, 0xa4, 0x89, 0xcb, 0xfc, 0xf0, 0x27, 0x00, 0x00,
405 0xff, 0xff, 0x30, 0x75, 0x6a, 0x03, 0xa9, 0x02, 0x00, 0x00,
406}